@arcgis/core 4.28.0-next.20230729 → 4.28.0-next.20230801
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/1b55a562f8dba4d0f44f.js +1 -0
- package/assets/esri/core/workers/chunks/{182d6d264c27cba0679e.js → 1ccb2c4007e2729bc7de.js} +1 -1
- package/assets/esri/core/workers/chunks/253b4da40a0808c8419d.js +1 -0
- package/assets/esri/core/workers/chunks/2bb4d1e09fc7b182fc2c.js +1 -0
- package/assets/esri/core/workers/chunks/{47e39ea18d665208a5e5.js → 2e4d550751be7031783f.js} +1 -1
- package/assets/esri/core/workers/chunks/{eb240dc2570e3649665d.js → 35c65646b2c8c5f9c926.js} +1 -1
- package/assets/esri/core/workers/chunks/46c245daf1244625d353.js +1 -0
- package/assets/esri/core/workers/chunks/{14a6067d462b75794d24.js → 68657e7a845fbec517b6.js} +1 -1
- package/assets/esri/core/workers/chunks/6a7fb6f95bcc5953a581.js +1 -0
- package/assets/esri/core/workers/chunks/6c96e0e5e4af72d88b8b.js +1 -0
- package/assets/esri/core/workers/chunks/7bba310c4a8787864159.js +1 -0
- package/assets/esri/core/workers/chunks/8ab084d7c7f3f44712f4.js +1 -0
- package/assets/esri/core/workers/chunks/914adb8839e250bb8390.js +1 -0
- package/assets/esri/core/workers/chunks/{2d9d80b2d0042a9c09fb.js → 92ed6ca73ca080d9f1a7.js} +1 -1
- package/assets/esri/core/workers/chunks/{0dccbc6c2559fdc0c2ad.js → a82cbf399ff34c63d265.js} +1 -1
- package/assets/esri/core/workers/chunks/aadbdc5f09bb6d39f0e2.js +1 -0
- package/assets/esri/core/workers/chunks/b6ba935da9884de355d3.js +1 -0
- package/assets/esri/core/workers/chunks/bce770970078fc4549a8.js +1 -0
- package/assets/esri/core/workers/chunks/{c7ceba668013e9740ce2.js → c79368559fad8e7ca9cf.js} +1 -1
- package/assets/esri/core/workers/chunks/e21315601e2e3301aa3a.js +1 -0
- package/assets/esri/core/workers/chunks/e5e59fff4e41a69eb477.js +1 -0
- package/assets/esri/core/workers/chunks/e83c9a71d2cce98c5a57.js +1 -0
- package/assets/esri/core/workers/chunks/{5f36b5fe1ee4194a4824.js → f9738ee5a97115e8735f.js} +1 -1
- package/assets/esri/themes/base/widgets/_Features.scss +35 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/index.js +1 -1
- package/core/image/apng.js +1 -1
- package/core/image/gif.js +1 -1
- package/core/imageUtils.js +1 -1
- package/interfaces.d.ts +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/support/Subtype.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/rasterFunctions/ContrastBrightnessFunction.js +5 -0
- package/layers/support/rasterFunctions/ContrastBrightnessFunctionArguments.js +5 -0
- package/layers/support/rasterFunctions/StatisticsFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/imagery/processor/contrastProcessor.js +5 -0
- package/views/2d/engine/imagery/processor/rasterProcessor.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/draw/support/HighlightHelper.js +1 -1
- package/webdoc/webdocLoadUtils.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/Features/FeaturesRelatedRecords.js +1 -1
- package/widgets/Features/FeaturesVisibleElements.js +1 -1
- package/widgets/Features/css.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actions.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
- package/widgets/support/Selector2D.js +1 -1
- package/widgets/support/chartUtils.js +1 -1
- package/widgets/support/dateUtils.js +5 -0
- package/assets/esri/core/workers/chunks/0d656759ea733b21d018.js +0 -1
- package/assets/esri/core/workers/chunks/2c57c9bd71637c5bed8a.js +0 -1
- package/assets/esri/core/workers/chunks/317a39368da0c03b6315.js +0 -1
- package/assets/esri/core/workers/chunks/3c95800e6f8d6a8f7ec3.js +0 -1
- package/assets/esri/core/workers/chunks/467a780059e4725e5bd7.js +0 -1
- package/assets/esri/core/workers/chunks/4afe954fa8ab750d0edd.js +0 -1
- package/assets/esri/core/workers/chunks/5361afe34a5c95ea2526.js +0 -1
- package/assets/esri/core/workers/chunks/721ac89b13134f2377bf.js +0 -1
- package/assets/esri/core/workers/chunks/9c133fd8c1fbd0295b86.js +0 -1
- package/assets/esri/core/workers/chunks/a2a403b24f6a9618f619.js +0 -1
- package/assets/esri/core/workers/chunks/bea5428738e358379620.js +0 -1
- package/assets/esri/core/workers/chunks/c9dfe3fe8c17406a7223.js +0 -1
- package/assets/esri/core/workers/chunks/d86ec98a0582cd3dfe8c.js +0 -1
- package/assets/esri/core/workers/chunks/ec86a1b86ef43e5caf20.js +0 -1
- package/chunks/index2.js +0 -5
- package/chunks/index3.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8153,5732],{92835:(e,t,r)=>{r.d(t,{Z:()=>g});var s,n=r(43697),l=r(96674),i=r(35463),o=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),p=r(30556);let c=s=class extends l.wq{static get allTime(){return h}static get empty(){return d}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=null!=this.start?this.start.getTime():this.start,r=null!=this.end?this.end.getTime():this.end,s=null!=e.start?e.start.getTime():e.start,n=null!=e.end?e.end.getTime():e.end;return t===s&&r===n}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();let t=this.start;t&&(t=(0,i.JE)(t,e));let r=this.end;if(r){const t=(0,i.JE)(r,e);r=r.getTime()===t.getTime()?t:(0,i.Nm)(t,1,e)}return new s({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let i,o;if(n>=t&&n<=r?i=n:t>=n&&t<=l&&(i=t),r>=n&&r<=l?o=r:l>=t&&l<=r&&(o=l),null!=i&&null!=o&&!isNaN(i)&&!isNaN(o)){const e=new s;return e.start=i===-1/0?null:new Date(i),e.end=o===1/0?null:new Date(o),e}return s.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new s,{start:n,end:l}=this;return null!=n&&(r.start=(0,i.Nm)(n,e,t)),null!=l&&(r.end=(0,i.Nm)(l,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,n._)([(0,o.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,p.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,o.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,o.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,o.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,p.c)("start")],c.prototype,"writeStart",null),c=s=(0,n._)([(0,u.j)("esri.TimeExtent")],c);const h=new c,d=new c({start:void 0,end:void 0}),g=c},5732:(e,t,r)=>{r.d(t,{c:()=>s,g:()=>n});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},35463:(e,t,r)=>{r.d(t,{JE:()=>i,Nm:()=>l,rJ:()=>o}),r(80442);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},n={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function l(e,t,r){const s=new Date(e.getTime());if(t&&r){const e=n[r],{getter:l,setter:i,multiplier:o}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(s.getFullYear(),s.getMonth()+t);s.getDate()>e&&s.setDate(e)}s[i](s[l]()+t*o)}return s}function i(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,r){return 0===e?0:e*s[t]/s[r]}},2723:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var s,n=r(43697),l=(r(66577),r(3172)),i=r(20102),o=r(35454),a=r(16453),u=r(5600),p=(r(75215),r(67676),r(80442),r(52011)),c=r(82971),h=r(6570),d=r(24470),g=r(87085),y=r(71612),f=r(34760),m=r(72965),w=r(90082),b=r(11145);const v=new(r(43077).f)("0/0/0",0,0,0,void 0);let _=s=class extends((0,y.h)((0,m.M)((0,f.Q)(g.Z)))){constructor(){super(...arguments),this.tileInfo=b.Z.create({spatialReference:c.Z.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new h.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,c.Z.WebMercator),this.spatialReference=c.Z.WebMercator}getTileBounds(e,t,r,s){const n=s||(0,d.Ue)();return v.level=e,v.row=t,v.col=r,v.extent=n,this.tileInfo.updateTileInfo(v),v.extent=void 0,n}fetchTile(e,t,r,s={}){const{signal:n}=s,i=this.getTileUrl(e,t,r),o={responseType:"image",signal:n,query:{...this.refreshParameters}};return(0,l.Z)(i??"",o).then((e=>e.data))}async fetchImageBitmapTile(e,t,r,n={}){const{signal:i}=n;if(this.fetchTile!==s.prototype.fetchTile){const s=await this.fetchTile(e,t,r,n);return(0,w.V)(s,e,t,r,i)}const o=this.getTileUrl(e,t,r)??"",a={responseType:"blob",signal:i,query:{...this.refreshParameters}},{data:u}=await(0,l.Z)(o,a);return(0,w.V)(u,e,t,r,i)}getTileUrl(){throw new i.Z("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,n._)([(0,u.Cb)({type:b.Z})],_.prototype,"tileInfo",void 0),(0,n._)([(0,u.Cb)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,value:"base-tile"})],_.prototype,"type",void 0),(0,n._)([(0,u.Cb)({nonNullable:!0})],_.prototype,"fullExtent",void 0),(0,n._)([(0,u.Cb)()],_.prototype,"spatialReference",void 0),_=s=(0,n._)([(0,p.j)("esri.layers.BaseTileLayer")],_);const T=_;var M=r(38009),Z=r(39450),C=r(94139);const D=new o.X({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let x=class extends((0,y.h)((0,M.q)((0,a.R)(T)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new b.Z({size:[256,256],dpi:96,origin:new C.Z({x:-20037508.342787,y:20037508.342787,spatialReference:c.Z.WebMercator}),spatialReference:c.Z.WebMercator,lods:[new Z.Z({level:1,resolution:78271.5169639999,scale:295828763.795777}),new Z.Z({level:2,resolution:39135.7584820001,scale:147914381.897889}),new Z.Z({level:3,resolution:19567.8792409999,scale:73957190.948944}),new Z.Z({level:4,resolution:9783.93962049996,scale:36978595.474472}),new Z.Z({level:5,resolution:4891.96981024998,scale:18489297.737236}),new Z.Z({level:6,resolution:2445.98490512499,scale:9244648.868618}),new Z.Z({level:7,resolution:1222.99245256249,scale:4622324.434309}),new Z.Z({level:8,resolution:611.49622628138,scale:2311162.217155}),new Z.Z({level:9,resolution:305.748113140558,scale:1155581.108577}),new Z.Z({level:10,resolution:152.874056570411,scale:577790.554289}),new Z.Z({level:11,resolution:76.4370282850732,scale:288895.277144}),new Z.Z({level:12,resolution:38.2185141425366,scale:144447.638572}),new Z.Z({level:13,resolution:19.1092570712683,scale:72223.819286}),new Z.Z({level:14,resolution:9.55462853563415,scale:36111.909643}),new Z.Z({level:15,resolution:4.77731426794937,scale:18055.954822}),new Z.Z({level:16,resolution:2.38865713397468,scale:9027.977411}),new Z.Z({level:17,resolution:1.19432856685505,scale:4513.988705}),new Z.Z({level:18,resolution:.597164283559817,scale:2256.994353}),new Z.Z({level:19,resolution:.298582141647617,scale:1128.497176}),new Z.Z({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return D.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then((()=>this._getMetadata()))):this.addResolvingPromise(Promise.reject(new i.Z("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,r){if(!this.loaded||null==this.bingMetadata)return null;const s=this.bingMetadata.resourceSets[0].resources[0],n=s.imageUrlSubdomains[t%s.imageUrlSubdomains.length],l=this._getQuadKey(e,t,r);return s.imageUrl.replace("{subdomain}",n).replace("{quadkey}",l)}async fetchAttributionData(){return this.load().then((()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map((e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]})))})))}))}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,l.Z)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((e=>{const t=e.data;if(200!==t.statusCode)throw new i.Z("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new i.Z("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new i.Z("bingmapslayer:getmetadata","no bing resources")})).catch((e=>{throw new i.Z("bingmapslayer:getmetadata",e.message)}))}_getPortalBingKey(){return(0,l.Z)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((e=>{if(!e.data.bingKey)throw new i.Z("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey})).catch((e=>{throw new i.Z("bingmapslayer:getportalbingkey",e.message)}))}_getQuadKey(e,t,r){let s="";for(let n=e;n>0;n--){let e=0;const l=1<<n-1;0!=(r&l)&&(e+=1),0!=(t&l)&&(e+=2),s+=e.toString()}return s}};(0,n._)([(0,u.Cb)({json:{read:!1,write:!1},value:null})],x.prototype,"bingMetadata",null),(0,n._)([(0,u.Cb)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],x.prototype,"type",void 0),(0,n._)([(0,u.Cb)({type:b.Z})],x.prototype,"tileInfo",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0,json:{read:!1,write:!1}})],x.prototype,"copyright",null),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],x.prototype,"key",void 0),(0,n._)([(0,u.Cb)({type:D.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:D.read}}})],x.prototype,"style",void 0),(0,n._)([(0,u.Cb)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],x.prototype,"operationalLayerType",null),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],x.prototype,"culture",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],x.prototype,"region",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!0,read:!0}})],x.prototype,"portalUrl",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!1,read:!1}})],x.prototype,"hasAttributionData",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0})],x.prototype,"bingLogo",null),x=(0,n._)([(0,p.j)("esri.layers.BingMapsLayer")],x);const j=x},34760:(e,t,r)=>{r.d(t,{Q:()=>v});var s=r(43697),n=r(92604),l=r(95330),i=r(5600),o=r(90578),a=(r(67676),r(80442),r(52011)),u=r(46791),p=(r(66643),r(20102),r(26258),r(87538));const c=new u.Z,h=new WeakMap;function d(e){y(e)&&c.push(e)}function g(e){y(e)&&c.includes(e)&&c.remove(e)}function y(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function f(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:f(t,e%t):0}let m=0,w=0;function b(){const e=Date.now();for(const t of c)t.refreshInterval&&e-(h.get(t)??0)+5>=6e4*t.refreshInterval&&(h.set(t,e),t.refresh(e))}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of c)t=f(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?h.get(r)||h.set(r,e):h.delete(r);if(t!==w){if(w=t,clearInterval(m),0===w)return void(m=0);m=setInterval(b,w)}}));const v=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,l.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||d(this)}),(()=>{}))}destroy(){g(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,l.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,s._)([(0,o.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,s._)([(0,i.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,s._)([(0,i.Cb)()],t.prototype,"refreshParameters",null),t=(0,s._)([(0,a.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>p});var s,n=r(43697),l=r(96674),i=r(5600),o=r(75215),a=(r(67676),r(80442),r(52011));let u=s=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,n._)([(0,i.Cb)({type:o.z8,json:{write:!0}})],u.prototype,"level",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=s=(0,n._)([(0,a.j)("esri.layers.support.LOD")],u);const p=u},11145:(e,t,r)=>{r.d(t,{Z:()=>Z});var s,n=r(43697),l=r(35454),i=r(96674),o=r(67900),a=r(5600),u=r(75215),p=(r(67676),r(80442),r(71715)),c=r(52011),h=r(30556),d=r(94139),g=r(82971),y=r(24470),f=r(8744),m=r(40488),w=r(39450),b=r(43077);const v=new l.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=s=class extends i.wq{static create(e={}){const{resolutionFactor:t=1,scales:r,size:n=256,spatialReference:l=g.Z.WebMercator,numLODs:i=24}=e;if(!(0,f.JY)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const s=r[t];e.push(new w.Z({level:t,scale:s,resolution:s}))}else{let t=5e-4;for(let r=i-1;r>=0;r--)e.unshift(new w.Z({level:r,scale:t,resolution:t})),t*=2}return new s({dpi:96,lods:e,origin:new d.Z(0,0,l),size:[n,n],spatialReference:l})}const a=(0,f.C5)(l),u=e.origin?new d.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new d.Z(a?{x:a.origin[0],y:a.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),p=1/(39.37*(0,o.c9)(l)*96),c=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],s=t*p;c.push(new w.Z({level:e,scale:t,resolution:s}))}else{let e=(0,f.sT)(l)?512/n*591657527.5917094:256/n*591657527.591555;const r=Math.ceil(i/t);c.push(new w.Z({level:0,scale:e,resolution:e*p}));for(let s=1;s<r;s++){const r=e/2**t,n=r*p;c.push(new w.Z({level:s,scale:r,resolution:n})),e=r}}return new s({dpi:96,lods:c,origin:u,size:[n,n],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,f.C5)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return d.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const s=[],n=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,n[e.level]=e}))),this._set("scales",s),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),s=r+1;return t[r]/(t[r]/t[s])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let s=0;for(;s<r;s++){const r=t[s],n=t[s+1];if(r<=e)return s;if(n===e)return s+1;if(r>e&&n<e)return s+Math.log(r/e)/Math.log(r/n)}return s}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,s){const n=this.lodAt(e);if(!n)return null;let l,i;if("number"==typeof t)l=t,i=r;else if((0,f.fS)(t.spatialReference,this.spatialReference))l=t.x,i=t.y,s=r;else{const e=(0,m.iV)(t,this.spatialReference);if(null==e)return null;l=e.x,i=e.y,s=r}const o=n.resolution*this.size[0],a=n.resolution*this.size[1];return s||(s=new b.f(null,0,0,0,(0,y.Ue)())),s.level=e,s.row=Math.floor((this.origin.y-i)/a+.001),s.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const n=e.level-r.level,l=r.resolution*this.size[0]/2**n,i=r.resolution*this.size[1]/2**n;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,y.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+i}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const r=this.lodAt(t.level);if(null==r)return null;const{resolution:s}=r,n=s*this.size[0],l=s*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+n,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return s.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],n=this.lods.length;for(let e=0;e<n;e++){const s=this.lods[e],n=s.resolution*t;r.push(new w.Z({level:s.level,scale:s.scale,resolution:n}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const s=e[r];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var T,M;(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],_.prototype,"isWrappable",null),(0,n._)([(0,a.Cb)({type:d.Z,json:{write:!0}})],_.prototype,"origin",void 0),(0,n._)([(0,p.r)("origin")],_.prototype,"readOrigin",null),(0,n._)([(0,a.Cb)({type:[w.Z],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,n._)([(0,a.Cb)({readOnly:!0})],_.prototype,"scales",void 0),(0,n._)([(0,a.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,n._)([(0,p.r)("size",["rows","cols"])],_.prototype,"readSize",null),(0,n._)([(0,h.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],_.prototype,"writeSize",null),(0,n._)([(0,a.Cb)({type:g.Z,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=s=(0,n._)([(0,c.j)("esri.layers.support.TileInfo")],_),(M=(T=_||(_={})).ExtrapolateOptions||(T.ExtrapolateOptions={}))[M.NONE=0]="NONE",M[M.POWER_OF_TWO=1]="POWER_OF_TWO";const Z=_},43077:(e,t,r)=>{r.d(t,{f:()=>s});class s{constructor(e,t,r,s,n=void 0){this.id=e,this.level=t,this.row=r,this.col=s,this.extent=n}}},90082:(e,t,r)=>{r.d(t,{V:()=>i,g:()=>l});var s=r(20102),n=r(95330);async function l(e,t,r){let l;try{l=await createImageBitmap(e)}catch(e){throw new s.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.k_)(r),l}async function i(e,t,r,l,i){let o;try{o=await createImageBitmap(e)}catch(e){throw new s.Z("request:server",`Unable to load tile ${t}/${r}/${l}`,{error:e,level:t,row:r,col:l})}return(0,n.k_)(i),o}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[774],{95401:(t,e,n)=>{n.d(e,{e:()=>l});var r,i,o,s=n(5732),a={exports:{}};r=a,i=function(){function t(t,n,i){i=i||2;var o,s,a,c,u,h,f,p=n&&n.length,d=p?n[0]*i:t.length,g=e(t,0,d,i,!0),m=[];if(!g||g.next===g.prev)return m;if(p&&(g=l(t,n,g,i)),t.length>80*i){o=a=t[0],s=c=t[1];for(var y=i;y<d;y+=i)(u=t[y])<o&&(o=u),(h=t[y+1])<s&&(s=h),u>a&&(a=u),h>c&&(c=h);f=0!==(f=Math.max(a-o,c-s))?1/f:0}return r(g,m,i,o,s,f),m}function e(t,e,n,r,i){var o,s;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)s=M(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=M(o,t[o],t[o+1],s);if(s&&v(s,s.next)){var a=s.next;S(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==x(r.prev,r,r.next))r=r.next;else{var i=r.prev;if(S(r),(r=e=i)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,h,f){if(t){!f&&h&&p(t,c,u,h);for(var d,g,m=t;t.prev!==t.next;)if(d=t.prev,g=t.next,h?o(t,c,u,h):i(t))e.push(d.i/l),e.push(t.i/l),e.push(g.i/l),S(t),t=g.next,m=g.next;else if((t=g)===m){f?1===f?r(t=s(n(t),e,l),e,l,c,u,h,2):2===f&&a(t,e,l,c,u,h):r(n(t),e,l,c,u,h,1);break}}}function i(t){var e=t.prev,n=t,r=t.next;if(x(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&x(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function o(t,e,n,r){var i=t.prev,o=t,s=t.next;if(x(i,o,s)>=0)return!1;for(var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,l=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,c=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,u=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=d(a,l,e,n,r),f=d(c,u,e,n,r),p=t.prevZ,g=t.nextZ;p&&p.z>=h&&g&&g.z<=f;){if(p!==t.prev&&p!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&x(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==t.prev&&g!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&x(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&x(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=f;){if(g!==t.prev&&g!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&x(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function s(t,e,r){var i=t;do{var o=i.prev,s=i.next.next;!v(o,s)&&w(o,i,i.next,s)&&T(o,s)&&T(s,o)&&(e.push(o.i/r),e.push(i.i/r),e.push(s.i/r),S(i),S(i.next),i=t=s),i=i.next}while(i!==t);return n(i)}function a(t,e,i,o,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&y(l,c)){var u=_(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,i,o,s,a),void r(u,e,i,o,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,i,o){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*o,s<a-1?r[s+1]*o:t.length,o,!1))===l.next&&(l.steiner=!0),u.push(g(l));for(u.sort(c),s=0;s<u.length;s++)i=n(i=h(u[s],i),i.next);return i}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function h(t,e){var r=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===s)return n;var l,c=n,u=n.x,h=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&m(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),T(r,t)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&f(n,r)))&&(n=r,p=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var i=_(r,t),o=n(r,r.next);let s=u(i);return n(s,s.next),o=u(o),u(e===r?o:e)}function f(t,e){return x(t.prev,t,e.prev)<0&&x(e.next,t,t.next)<0}function p(t,e,n,r){var i=t;do{null===i.z&&(i.z=d(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,l,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}function d(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function m(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(x(t.prev,t,e.prev)||x(t,e.prev,e))||v(t,e)&&x(t.prev,t,t.next)>0&&x(e.prev,e,e.next)>0)}function x(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var i=A(x(t,e,n)),o=A(x(t,e,r)),s=A(x(n,r,t)),a=A(x(n,r,e));return i!==o&&s!==a||!(0!==i||!b(t,n,e))||!(0!==o||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function A(t){return t>0?1:t<0?-1:0}function T(t,e){return x(t.prev,t,t.next)<0?x(t,e,t.next)>=0&&x(t,t.prev,e)>=0:x(t,e,t.prev)<0||x(t,t.next,e)<0}function _(t,e){var n=new O(t.i,t.x,t.y),r=new O(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function M(t,e,n,r){var i=new O(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function O(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}return t.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(I(t,0,o,n));if(i)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(I(t,c,u,n))}var h=0;for(a=0;a<r.length;a+=3){var f=r[a]*n,p=r[a+1]*n,d=r[a+2]*n;h+=Math.abs((t[f]-t[d])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[d+1]-t[f+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n},t},void 0!==(o=i())&&(r.exports=o);const l=(0,s.g)(a.exports)},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,l){return[t,e,n,r,i,o,s,a,l]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>o,c:()=>r,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:o,fromValues:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function o(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>o,b:()=>i,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r,i,o,s,a,l,c,u,h,f,p,d,g){return[t,e,n,r,i,o,s,a,l,c,u,h,f,p,d,g]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}function o(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>i,b:()=>r,c:()=>o});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>y,c:()=>g,g:()=>x,h:()=>m,j:()=>b,l:()=>I}),n(80442);var r=n(92604),i=n(22021),o=n(52138),s=n(17896),a=n(65617),l=n(98766),c=n(88669),u=n(62155),h=n(78341),f=n(61277),p=n(12981);const d=g();function g(){return(0,c.c)()}function m(t,e=g()){return(0,l.c)(e,t)}function y(t){return t[3]}function x(t){return t}function v(t,e,n){if(null==e)return!1;const{origin:r,direction:i}=e,o=w;o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const a=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),l=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(l<0)return!1;const c=Math.sqrt(l);let u=(-a-c)/(2*s);const h=(-a+c)/(2*s);return(u<0||h<u&&h>0)&&(u=h),!(u<0||(n&&(n[0]=r[0]+i[0]*u,n[1]=r[1]+i[1]*u,n[2]=r[2]+i[2]*u),0))}const w=(0,a.c)();function b(t,e){return v(t,e,null)}function A(t,e,n){const r=p.WM.get(),i=p.MP.get();(0,s.f)(r,e.origin,e.direction);const a=y(t);(0,s.f)(n,r,e.origin),(0,s.g)(n,n,1/(0,s.l)(n)*a);const l=_(t,e.origin),c=(0,f.EU)(e.origin,n);return(0,o.d)(i,c+l,r),(0,s.m)(n,n,i),n}function T(t,e,n){const r=(0,s.b)(p.WM.get(),e,t),i=(0,s.g)(p.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.a)(n,i,t)}function _(t,e){const n=(0,s.b)(p.WM.get(),e,t),r=(0,s.l)(n),o=y(t),a=o+Math.abs(o-r);return(0,i.ZF)(o/a)}const M=(0,a.c)();function S(t,e,n,r){const o=(0,s.b)(M,e,t);switch(n){case u.R.X:{const t=(0,i.jE)(o,M)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case u.R.Y:{const t=(0,i.jE)(o,M),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case u.R.Z:return(0,s.n)(r,o);default:return}}function O(t,e){const n=(0,s.b)(C,e,t);return(0,s.l)(n)-t[3]}function I(t,e){const n=(0,s.d)(t,e),r=y(t);return n<=r*r}const C=(0,a.c)(),E=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:d,altitudeAt:O,angleToSilhouette:_,axisAt:S,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return v(t,e,n)?n:((0,h.JI)(e,t,n),T(t,n,n))},closestPointOnSilhouette:A,containsPoint:I,copy:m,create:g,distanceToSilhouette:function(t,e){const n=(0,s.b)(p.WM.get(),e,t),r=(0,s.p)(n),i=t[3]*t[3];return Math.sqrt(Math.abs(r-i))},elevate:function(t,e,n){return t!==n&&(0,s.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,c.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,c.f)(t,e,n,r)},getCenter:x,getRadius:y,intersectRay:v,intersectRayClosestSilhouette:function(t,e,n){if(v(t,e,n))return n;const r=A(t,e,p.WM.get());return(0,s.a)(n,e.origin,(0,s.g)(p.WM.get(),e.direction,(0,s.i)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:b,projectPoint:T,setAltitudeAt:function(t,e,n,r){const i=O(t,e),o=S(t,e,u.R.Z,C),a=(0,s.g)(C,o,n-i);return(0,s.a)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:m(t,n)},tmpSphere:E,union:function(t,e,n=g()){const r=(0,s.i)(t,e),i=t[3],o=e[3];return r+o<i?((0,l.c)(n,t),n):r+i<o?((0,l.c)(n,e),n):((0,s.h)(n,t,e,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(t,e){return new Float64Array(t,e,2)}function s(){return i(1,1)}function a(){return i(1,0)}function l(){return i(0,1)}n.d(e,{a:()=>r,c:()=>o,f:()=>i});const c=s(),u=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:o,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(t,e,n)=>{n.d(e,{a:()=>a,b:()=>s,c:()=>i,d:()=>u,e:()=>l,n:()=>h,s:()=>c,t:()=>o});var r=n(72220);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return r.c.error("source and destination buffers need to have the same number of elements"),t;const s=t.length/i,a=n[0],l=n[1],c=n[2],u=n[4],h=n[5],f=n[6],p=n[8],d=n[9],g=n[10],m=n[12],y=n[13],x=n[14];let v=0,w=0;for(let n=0;n<s;n++){const n=e[v],r=e[v+1],s=e[v+2];t[w]=a*n+u*r+p*s+m,t[w+1]=l*n+h*r+d*s+y,t[w+2]=c*n+f*r+g*s+x,v+=o,w+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return void r.c.error("source and destination buffers need to have the same number of elements");const s=t.length/i,a=n[0],l=n[1],c=n[2],u=n[3],h=n[4],f=n[5],p=n[6],d=n[7],g=n[8];let m=0,y=0;for(let n=0;n<s;n++){const n=e[m],r=e[m+1],s=e[m+2];t[y]=a*n+u*r+p*s,t[y+1]=l*n+h*r+d*s,t[y+2]=c*n+f*r+g*s,m+=o,y+=i}}function l(t,e,n){c(t.typedBuffer,e,n,t.typedBufferStride)}function c(t,e,n,r=3){const i=Math.min(t.length/r,e.count),o=e.typedBuffer,s=e.typedBufferStride;let a=0,l=0;for(let e=0;e<i;e++)t[l]=n*o[a],t[l+1]=n*o[a+1],t[l+2]=n*o[a+2],a+=s,l+=r}function u(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let o=0,s=0;for(let a=0;a<i;a++){const i=e[o],a=e[o+1],l=e[o+2],c=i*i+a*a+l*l;if(c>0){const e=1/Math.sqrt(c);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*l}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:u,scale:c,scaleView:l,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let l=0,c=0;for(let t=0;t<r;t++)i[c]=s[l]>>n,i[c+1]=s[l+1]>>n,i[c+2]=s[l+2]>>n,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>i});var r=n(41213);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},70163:(t,e,n)=>{n.d(e,{Jl:()=>u,n$:()=>h});var r=n(3172),i=n(20102),o=n(95330),s=n(17452),a=n(49917);let l=null,c=!0;function u(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(t,e,n)}catch(t){c=!1}const i=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return i.data.set(t,0),i}async function h(t,e){const{arrayBuffer:l,mediaType:c}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const i=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader("Content-Type")}}(t,e),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(u){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.D_)(t))throw new i.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),e)}},83025:(t,e,n)=>{n.d(e,{JK:()=>a,QZ:()=>o,Rq:()=>s,bg:()=>i,mB:()=>l});var r=n(1533);function i(t,e=!1){return t<=r.DB?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function o(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.DB?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function l(t){return Array.isArray(t)?new Float64Array(t):t}},24882:(t,e,n)=>{n.d(e,{$z:()=>s,KF:()=>u,mi:()=>i});var r=n(1533);function i(t){return(0,r.kJ)(t)?t.length<r.DB?t:o(t):t.length<r.DB?Array.from(t):t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:o(t)}function o(t){let e=!0;for(const n of t){if(n>=65536)return(0,r.kJ)(t)?new Uint32Array(t):t;n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}function s(t){return t<=r.DB?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let a=(()=>{const t=new Uint32Array(131072);for(let e=0;e<t.length;++e)t[e]=e;return t})();const l=[0],c=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function u(t){if(1===t)return l;if(t<r.DB)return Array.from(new Uint16Array(c.buffer,0,t));if(t<c.length)return new Uint16Array(c.buffer,0,t);if(t>a.length){const e=Math.max(2*a.length,t);a=new Uint32Array(e);for(let t=0;t<a.length;t++)a[t]=t}return new Uint32Array(a.buffer,0,t)}new Uint8Array(65536)},62540:(t,e,n)=>{n.d(e,{Z:()=>x});var r,i=n(43697),o=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),h=n(75215),f=n(65542),p=n(60746),d=n(71630);const g="esri.geometry.support.MeshComponent",m=a.Z.getLogger(g);let y=r=class extends o.wq{static from(t){return(0,h.TJ)(r,t)}constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}castFaces(t){return(0,d.X)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},m)}castMaterial(t){return(0,h.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?p.Z:f.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}get memoryUsage(){let t=0;return null!=this.faces&&(t+=this.faces.byteLength),null!=this.material&&(t+=this.material.memoryUsage),t}};(0,i._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"faces",void 0),(0,i._)([(0,c.p)("faces")],y.prototype,"castFaces",null),(0,i._)([(0,l.Cb)({type:f.Z,json:{write:!0}})],y.prototype,"material",void 0),(0,i._)([(0,c.p)("material")],y.prototype,"castMaterial",null),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"shading",void 0),(0,i._)([(0,l.Cb)({type:Boolean})],y.prototype,"trustSourceNormals",void 0),y=r=(0,i._)([(0,u.j)(g)],y);const x=y},85872:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),u=n(94139);let h=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new u.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r._)([(0,l.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],h);const f=h},50567:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(43697),i=n(2368),o=n(96674),s=(n(92604),n(75215),n(67676),n(80442),n(20102),n(36030)),a=n(52011);let l=class extends((0,i.J)(o.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,r._)([(0,s.J)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),l=(0,r._)([(0,a.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l);const c=l},84555:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),u=n(94139);let h=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new u.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,a.J)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r._)([(0,l.j)("esri.geometry.support.MeshLocalVertexSpace")],h);const f=h},65542:(t,e,n)=>{n.d(e,{Z:()=>f});var r,i=n(43697),o=n(22303),s=n(96674),a=n(5600),l=(n(75215),n(67676),n(80442),n(52011)),c=n(85965),u=n(80218);let h=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=null!=t?t.get(this):null;if(n)return n;const i=new r(this.clonePropertiesWithDeduplication(e));return null!=t&&t.set(this,i),i}clonePropertiesWithDeduplication(t){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(t),normalTexture:this.normalTexture?.cloneWithDeduplication(t),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let t=0;return t+=null!=this.color?16:0,null!=this.colorTexture&&(t+=this.colorTexture.memoryUsage),t+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(t+=this.normalTexture.memoryUsage),t+=null!=this.normalTextureTransform?20:0,t}};(0,i._)([(0,a.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,i._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"colorTexture",void 0),(0,i._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"colorTextureTransform",void 0),(0,i._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"normalTexture",void 0),(0,i._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"normalTextureTransform",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaMode",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaCutoff",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"doubleSided",void 0),h=r=(0,i._)([(0,l.j)("esri.geometry.support.MeshMaterial")],h);const f=h},60746:(t,e,n)=>{n.d(e,{Z:()=>f});var r,i=n(43697),o=n(22303),s=n(5600),a=(n(75215),n(67676),n(80442),n(52011)),l=n(65542),c=n(85965),u=n(80218);let h=r=class extends l.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=null!=t?t.get(this):null;if(n)return n;const i=new r(this.clonePropertiesWithDeduplication(e));return null!=t&&t.set(this,i),i}getMemoryUsage(){let t=super.getMemoryUsage();return t+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(t+=this.emissiveTexture.memoryUsage),t+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(t+=this.occlusionTexture.memoryUsage),t+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(t+=this.metallicRoughnessTexture.memoryUsage),t+=null!=this.metallicRoughnessTextureTransform?20:0,t}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(t),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(t),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(t),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,i._)([(0,s.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"emissiveColor",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"emissiveTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"emissiveTextureTransform",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"occlusionTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"occlusionTextureTransform",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],h.prototype,"metallic",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],h.prototype,"roughness",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"metallicRoughnessTextureTransform",void 0),h=r=(0,i._)([(0,a.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],h);const f=h},85965:(t,e,n)=>{n.d(e,{Z:()=>m});var r,i=n(43697),o=(n(80442),n(70163)),s=n(96674),a=n(5600),l=n(75215),c=(n(67676),n(71715)),u=n(52011),h=n(30556),f=n(25929);const p=new WeakMap;let d=0,g=r=class extends s.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const i={type:"image-element",src:(0,f.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=i}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),i={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=i}else if(t instanceof HTMLVideoElement){const i={type:"video-element",src:(0,f.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=i}else if(t instanceof ImageData){const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){this._overrideIfSome("transparent",t)}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(p.has(this.data)||p.set(this.data,++d),e(p.get(this.data))):e()}get memoryUsage(){let t=0;if(t+=null!=this.url?this.url.length:0,null!=this.data){const e=this.data;"data"in e?t+=e.data.byteLength:e instanceof HTMLImageElement?t+=e.naturalWidth*e.naturalHeight*3:e instanceof HTMLCanvasElement&&(t+=e.width*e.height*3)}return t}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new r(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return(0,o.Jl)(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new r({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new r({data:t}):(0,l.TJ)(r,t)}};(0,i._)([(0,a.Cb)({type:String,json:{write:f.w}})],g.prototype,"url",null),(0,i._)([(0,a.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,a.Cb)()],g.prototype,"data",null),(0,i._)([(0,h.c)("data")],g.prototype,"writeData",null),(0,i._)([(0,c.r)("data")],g.prototype,"readData",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],g.prototype,"transparent",null),(0,i._)([(0,a.Cb)({json:{write:!0}})],g.prototype,"wrap",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],g.prototype,"contentHash",null),g=r=(0,i._)([(0,u.j)("esri.geometry.support.MeshTexture")],g);const m=g},80218:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(52011));let l=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r._)([(0,a.j)("esri.geometry.support.MeshTextureTransform")],l);const c=l},71630:(t,e,n)=>{n.d(e,{Q:()=>p,X:()=>g});var r,i=n(43697),o=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const h="esri.geometry.support.MeshVertexAttributes",f=a.Z.getLogger(h);let p=r=class extends o.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},f)}castPosition(t){return t&&t instanceof Float32Array&&f.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},f)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},f)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},f)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},f)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get memoryUsage(){let t=0;return t+=this.position.byteLength,null!=this.uv&&(t+=this.uv.byteLength),null!=this.normal&&(t+=this.normal.byteLength),null!=this.tangent&&(t+=this.tangent.byteLength),null!=this.color&&(t+=this.color.byteLength),t}};function d(t,e,n,r){const{loggerTag:i,stride:o}=e;return t.length%o!=0?(r.error(i,`Invalid array length, expected a multiple of ${o}`),new n([])):t}function g(t,e,n,r,i){if(!t)return t;if(t instanceof e)return d(t,r,e,i);for(const o of n)if(t instanceof o)return d(new e(t),r,e,i);if(Array.isArray(t))return d(new e(t),r,e,i);{const r=n.map((t=>`'${t.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function m(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"color",void 0),(0,i._)([(0,c.p)("color")],p.prototype,"castColor",null),(0,i._)([(0,l.Cb)({nonNullable:!0,json:{write:m}})],p.prototype,"position",void 0),(0,i._)([(0,c.p)("position")],p.prototype,"castPosition",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"uv",void 0),(0,i._)([(0,c.p)("uv")],p.prototype,"castUv",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"normal",void 0),(0,i._)([(0,c.p)("normal")],p.prototype,"castNormal",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"tangent",void 0),(0,i._)([(0,c.p)("tangent")],p.prototype,"castTangent",null),p=r=(0,i._)([(0,u.j)(h)],p)},72220:(t,e,n)=>{n.d(e,{c:()=>r});const r=n(92604).Z.getLogger("esri.views.3d.support.buffer.math")},16996:(t,e,n)=>{n.d(e,{Ue:()=>l,nF:()=>u,zk:()=>c});var r=n(22021),i=n(22807),o=n(17896),s=n(65617),a=n(12981);function l(t){return t?{origin:(0,s.a)(t.origin),vector:(0,s.a)(t.vector)}:{origin:(0,s.c)(),vector:(0,s.c)()}}function c(t,e,n=l()){return(0,o.c)(n.origin,t),(0,o.b)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,i,s){const{vector:l,origin:c}=t,u=(0,o.b)(a.WM.get(),e,c),h=(0,o.e)(l,u)/(0,o.p)(l);return(0,o.g)(s,l,(0,r.uZ)(h,0,1)),(0,o.a)(s,s,t.origin)}(t,e,0,0,n)}(0,s.c)(),(0,s.c)(),new i.x((()=>l()))},84470:(t,e,n)=>{n.d(e,{CP:()=>a,JG:()=>d,LL:()=>l,NZ:()=>c,fV:()=>g,vj:()=>y,yT:()=>v,zE:()=>x});var r=n(3172),i=n(67676),o=n(95330),s=n(2981);class a{constructor(t,e,n){this.assetName=t,this.assetMimeType=e,this.parts=n}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,i.fS)(this.parts,t.parts,((t,e)=>t.equals(e)))}isOnService(t){return this.parts.every((e=>e.isOnService(t)))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const n=await Promise.all(e.map((e=>e.toBlob(t))));return(0,o.k_)(t),new Blob(n)}}class l{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.Z)(this.partUrl,{responseType:"blob"});return(0,o.k_)(t),e}}function c(t){return function(t){return!!t&&(Array.isArray(t)?t.some(p):p(t))}(t?.source)}function u(t){return!!Array.isArray(t)&&t.every((t=>t instanceof a))}const h=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(t){if(t instanceof File){const{type:e,name:n}=t;return h.test(e)||f.test(n)}return h.test(t.assetMimeType)||f.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:n}=t;return function(t,e){return Array.isArray(t)?t.every((t=>m(t,e))):m(t,e)}(n,e)}function g(t,e){if(t===e)return!0;const{source:n}=t,{source:r}=e;if(n===r)return!0;if(u(n)&&u(r)){if(n.length!==r.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...n].sort(t),i=[...r].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(i[t]))return!1;return!0}return!1}function m(t,e){return t instanceof a&&t.isOnService(e)}function y(t,e){return t instanceof File?(0,s.Ow)(t.name,e)??(0,s.S0)(t.type,e):(0,s.S0)(t.assetMimeType,e)??(0,s.Ow)(t.assetName,e)}function x(t){return Array.isArray(t)?t:[t]}function v(t){return!!t.original}},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021),i=n(24882);function o(t,e,n){const o=Array.isArray(t),u=o?t.length/e:t.byteLength/(4*e),h=o?t:new Uint32Array(t,0,u*e),f=n?.minReduction??0,p=n?.originalIndices||null,d=p?p.length:0,g=n?.componentOffsets||null;let m=0;if(g)for(let t=0;t<g.length-1;t++){const e=g[t+1]-g[t];e>m&&(m=e)}else m=u;const y=Math.floor(1.1*m)+1;(null==c||c.length<2*y)&&(c=new Uint32Array((0,r.Sf)(2*y)));for(let t=0;t<2*y;t++)c[t]=0;let x=0;const v=!!g&&!!p,w=v?d:u;let b=(0,i.$z)(u);const A=new Uint32Array(d),T=1.96;let _=0!==f?Math.ceil(4*T*T/(f*f)*f*(1-f)):w,M=1,S=g?g[1]:w;for(let t=0;t<w;t++){if(t===_){const e=1-x/t;if(e+T*Math.sqrt(e*(1-e)/t)<f)return null;_*=2}if(t===S){for(let t=0;t<2*y;t++)c[t]=0;if(p)for(let t=g[M-1];t<g[M];t++)A[t]=b[p[t]];S=g[++M]}const n=v?p[t]:t,r=n*e,i=l(h,r,e);let o=i%y,a=x;for(;0!==c[2*o+1];){if(c[2*o]===i){const t=c[2*o+1]-1;if(s(h,r,t*e,e)){a=b[t];break}}o++,o>=y&&(o-=y)}a===x&&(c[2*o]=i,c[2*o+1]=n+1,x++),b[n]=a}if(0!==f&&1-x/u<f)return null;if(v){for(let t=g[M-1];t<A.length;t++)A[t]=b[p[t]];b=(0,i.mi)(A)}const O=o?new Array(x):new Uint32Array(x*e);x=0;for(let t=0;t<w;t++)b[t]===x&&(a(h,(v?p[t]:t)*e,O,x*e,e),x++);if(p&&!v){const t=new Uint32Array(d);for(let e=0;e<t.length;e++)t[e]=b[p[e]];b=(0,i.mi)(t)}return{buffer:Array.isArray(O)?O:O.buffer,indices:b,uniqueCount:x}}function s(t,e,n,r){for(let i=0;i<r;i++)if(t[e+i]!==t[n+i])return!1;return!0}function a(t,e,n,r,i){for(let o=0;o<i;o++)n[r+o]=t[e+o]}function l(t,e,n){let r=0;for(let i=0;i<n;i++)r=t[e+i]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null},62073:(t,e,n)=>{n.d(e,{Ue:()=>o,zu:()=>s,mJ:()=>p}),n(22021);var r=n(17896),i=n(65617);function o(t=d){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,i=0,p=Math.floor(n*(1/3)),d=Math.floor(n*(2/3))){if(n<3)return!1;e(l,i);let g=p,m=!1;for(;g<n-1&&!m;)e(c,g),g++,m=!(0,r.k)(l,c);if(!m)return!1;for(g=Math.max(g,d),m=!1;g<n&&!m;)e(u,g),g++,(0,r.b)(h,l,c),(0,r.n)(h,h),(0,r.b)(f,c,u),(0,r.n)(f,f),m=!(0,r.k)(l,u)&&!(0,r.k)(c,u)&&Math.abs((0,r.e)(h,f))<a;return m?(function(t,e,n,r=o()){const i=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2],l=t[0]-e[0],c=t[1]-e[1],u=t[2]-e[2],h=s*u-a*c,f=a*l-i*u,p=i*c-s*l,d=h*h+f*f+p*p,g=Math.abs(d-1)>1e-5&&d>1e-12?1/Math.sqrt(d):1;r[0]=h*g,r[1]=f*g,r[2]=p*g,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(l,c,u,t),!0):(0!==i||1!==p||2!==d)&&s(t,e,n,0,1,2)}n(8310),n(61277),n(12981),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)();const a=.99619469809,l=(0,i.c)(),c=(0,i.c)(),u=(0,i.c)(),h=(0,i.c)(),f=(0,i.c)();function p(t){return t}const d=[0,0,1,0];var g,m;(m=g||(g={}))[m.NONE=0]="NONE",m[m.CLAMP=1]="CLAMP",m[m.INFINITE_MIN=4]="INFINITE_MIN",m[m.INFINITE_MAX=8]="INFINITE_MAX",g.INFINITE_MIN,g.INFINITE_MAX,g.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>l}),n(67676);var r=n(22807),i=n(17896),o=n(65617);function s(t){return t?a((0,o.a)(t.origin),(0,o.a)(t.direction)):a((0,o.c)(),(0,o.c)())}function a(t,e){return{origin:t,direction:e}}function l(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,i.e)(t.direction,(0,i.b)(n,e,t.origin));return(0,i.a)(n,t.origin,(0,i.g)(n,t.direction,r)),n}n(12981);const u=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),i=n(17896),o=n(65617);function s(t,e){const n=(0,i.e)(t,e)/((0,i.l)(t)*(0,i.l)(e));return-(0,r.ZF)(n)}(0,o.c)(),(0,o.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>d,WM:()=>p});var r=n(91303),i=n(41213),o=n(46521),s=n(13598),a=n(94961),l=n(97323),c=n(65617),u=n(88669);class h{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,i.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=f){return new h(16,l.c,t)}static createVec3f64(t=f){return new h(24,c.b,t)}static createVec4f64(t=f){return new h(32,u.a,t)}static createMat3f64(t=f){return new h(72,o.a,t)}static createMat4f64(t=f){return new h(128,s.a,t)}static createQuatf64(t=f){return new h(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const f=4*r.Y.KILOBYTES,p=(h.createVec2f64(),h.createVec3f64()),d=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64());h.createQuatf64()},47378:(t,e,n)=>{n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>Qt,extractMesh:()=>qt,meshFeatureSetFromJSON:()=>$t});var r=n(38171),i=n(92604),o=n(30175),s=n(65617),a=n(6570),l=n(43697),c=n(20102),u=n(83379),h=n(609),f=n(95330),p=n(17445),d=n(5600),g=(n(75215),n(67676),n(80442),n(52011)),m=n(9361),y=n(94139),x=n(38913),v=n(3709),w=n(62540),b=n(85872),A=n(50567),T=n(84555),_=n(2674),M=n(71630),S=n(95401),O=n(62155),I=n(86662),C=n(83025),E=n(24882),R=n(47545),N=(n(66577),n(22021)),L=n(67900),P=n(17896),Z=n(62073);n(4726),n(22631),n(35065);const F=(0,Z.Ue)();function U(t,e,n,r,i,o,s){i*=3;for(let a=0;a<o;++a){const o=t[e];r[i++]=o[0],r[i++]=o[1],r[i++]=s?o[2]:0,e+=n}return i/3}function D(t,e,n){if(e){const e=function(t,e,n){const r=function(t,e,n,r){const i=(t=>!Array.isArray(t[0]))(e)?(t,n)=>e[3*t+n]:(t,n)=>e[t][n],o=r?(0,L.c9)(r)/(0,L._R)(r):1;return(0,Z.zu)(t,((t,e)=>(0,P.s)(t,i(e,0)*o,i(e,1)*o,i(e,2))),n)}(F,t,e,n)?(0,Z.mJ)(F):[0,0,1];return Math.abs(r[2])>Math.cos((0,N.Vl)(80))?O.R.Z:Math.abs(r[1])>Math.abs(r[0])?O.R.Y:O.R.X}(t,t.length-1,n);if(e===O.R.X)return!(0,I.bu)(t,O.R.Y,O.R.Z);if(e===O.R.Y)return!(0,I.bu)(t,O.R.X,O.R.Z)}return!(0,I.bu)(t,O.R.X,O.R.Y)}var j,B;(B=j||(j={}))[B.NONE=0]="NONE",B[B.CCW_IS_HOLE=1]="CCW_IS_HOLE";var z=n(66459);let k=null;function V(t,e){let n=1/0,r=1/0,i=1/0,o=-1/0,s=-1/0,l=-1/0;const c=t.length;let u=0;for(;u<c;){const e=t[u++],a=t[u++],c=t[u++];n=Math.min(n,e),r=Math.min(r,a),i=Math.min(i,c),o=Math.max(o,e),s=Math.max(s,a),l=Math.max(l,c)}return new a.Z({xmin:n,ymin:r,zmin:i,xmax:o,ymax:s,zmax:l,spatialReference:e})}var G=n(44547),W=n(13442);const H="esri.geometry.support.meshUtils.centerAt";const Y=(0,s.c)(),J=(0,s.c)(),$=(0,s.c)();n(99880),n(3172);var q=n(17452);function X(t){const e=(0,q.Yd)(t.url);return n=>{const r=(0,q.PF)(n,e,e),i=r?r.replace(/^ *\.\//,""):null;return(i?t.files.get(i):null)??n}}function K(t){return nt.fromBlob(t)}n(47026);const Q=/^(model\/gltf\+json)|(model\/gltf-binary)$/,tt=/\.(gltf|glb)/i;function et(t){const e=new Map;let n=null;for(const{name:r,mimeType:i,source:o}of t)(null==n||Q.test(i)||tt.test(r))&&(n=o.url),e.set(r,o.url),o.files.forEach(((t,n)=>e.set(n,t)));if(null==n)throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new nt(n,(()=>t.forEach((({source:t})=>t.dispose()))),e)}class nt{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new nt(e,(()=>URL.revokeObjectURL(e)))}}var rt=n(2368),it=n(46791),ot=n(84470);let st=class extends rt.j{constructor(){super(),this.externalSources=new it.Z,this._explicitDisplaySource=null,this.addHandles((0,p.on)((()=>this.externalSources),"after-remove",(({item:t})=>{t===this._explicitDisplaySource&&(this._explicitDisplaySource=null)}),{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(t){if(null!=t&&!(0,ot.NZ)(t))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=t,t&&this.externalSources.every((e=>!(0,ot.fV)(e,t)))&&this.externalSources.add(t)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(t){return this.externalSources.items.filter((e=>(0,ot.JG)(e,t)))}get _implicitDisplaySource(){return this.externalSources.find(ot.NZ)}};(0,l._)([(0,d.Cb)()],st.prototype,"externalSources",void 0),(0,l._)([(0,d.Cb)()],st.prototype,"displaySource",null),(0,l._)([(0,d.Cb)()],st.prototype,"_implicitDisplaySource",null),(0,l._)([(0,d.Cb)()],st.prototype,"_explicitDisplaySource",void 0),st=(0,l._)([(0,g.j)("esri.geometry.support.meshUtils.Metadata")],st);var at=n(21787),lt=n(46521),ct=n(13598),ut=n(58995),ht=n(56493);function ft(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const pt=(0,s.c)(),dt=(0,ct.c)(),gt=(0,lt.c)(),mt={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function yt(t,e,n){t.isPlane||function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5}(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];bt[0]=n[0],bt[4]=n[1],bt[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)wt[n]=t.position[e+n];(0,P.t)(wt,wt,bt);for(let n=0;n<3;n++)t.position[e+n]=wt[n]}if(n[0]!==n[1]||n[1]!==n[2]){bt[0]=1/n[0],bt[4]=1/n[1],bt[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)wt[n]=t.normal[e+n];(0,P.t)(wt,wt,bt),(0,P.n)(wt,wt);for(let n=0;n<3;n++)t.normal[e+n]=wt[n]}}}(t,n?.size);const{vertexAttributes:r,vertexSpace:i,transform:o}=(0,z.w1)(t,e,n);return{vertexAttributes:new M.Q({...r,uv:t.uv}),vertexSpace:i,transform:o,components:[new w.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const xt={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},vt={south:0,east:1,north:2,west:3,up:4,down:5},wt=(0,s.c)(),bt=(0,lt.c)();var At=n(52138);const Tt="esri.geometry.support.meshUtils.rotate";function _t(t,e,n,r=s.Z){if(null!=t){(0,At.d)(It,(0,v.WH)(e),(0,v.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)Mt[n]=t[e+n]-r[n];(0,P.m)(Mt,Mt,It);for(let n=0;n<3;n++)t[e+n]=Mt[n]+r[n]}}}const Mt=(0,s.c)(),St=(0,s.c)(),Ot=(0,v.Ue)(),It=(0,ct.c)(),Ct=(0,lt.c)(),Et=(0,s.c)(),Rt="esri.geometry.support.meshUtils.scale";function Nt(t,e,n=s.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)Lt[e]=t[r+e]-n[e];(0,P.g)(Lt,Lt,e);for(let e=0;e<3;e++)t[r+e]=Lt[e]+n[e]}}const Lt=(0,s.c)(),Pt=(0,s.c)(),Zt=(0,s.c)();async function Ft(t){const e=[];for(const n of t)n.name.toLowerCase().endsWith(".zip")?e.push(Ut(n)):e.push(Promise.resolve(n));return(await Promise.all(e)).flat()}async function Ut(t){const{BlobReader:e,ZipReader:r,BlobWriter:i}=await Promise.all([n.e(2712),n.e(4041)]).then(n.bind(n,74041)),o=[],s=new r(new e(t));return(await s.getEntries()).forEach((t=>{if(t.directory)return;const e=new i,n=t.getData?.(e).then((e=>new File([e],t.filename)));n&&o.push(n)})),Promise.all(o)}var Dt;const jt="esri.geometry.Mesh",Bt={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:A.Z,"georeferenced-relative":b.Z,local:T.Z}};let zt=Dt=class extends(u.Z.LoadableMixin((0,h.v)(m.Z))){constructor(t){super(t),this.components=null,this.vertexSpace=new A.Z,this.transform=null,this.metadata=new st,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new M.Q,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.addHandles((0,p.YP)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((t=>t.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{components:t,spatialReference:e,vertexAttributes:n,vertexSpace:r}=this,i=n.position;if(0===i.length||t&&0===t.length)return new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e});if("local"===r.type){const{_untransformedExtent:t,transform:n}=this;return function({xmin:t,xmax:e,ymin:n,ymax:r,zmin:i,zmax:o},s,a,l){i??=0,o??=0,k??=new Float64Array(24);const c=k;return c[0]=t,c[1]=n,c[2]=i,c[3]=t,c[4]=r,c[5]=i,c[6]=e,c[7]=r,c[8]=i,c[9]=e,c[10]=n,c[11]=i,c[12]=t,c[13]=n,c[14]=o,c[15]=t,c[16]=r,c[17]=o,c[18]=e,c[19]=r,c[20]=o,c[21]=e,c[22]=n,c[23]=o,(0,z.project)({positions:c,transform:s,vertexSpace:a,inSpatialReference:l,outSpatialReference:l,outPositions:c,local:!1}),V(c,l)}(t,n,r,e)}if("georeferenced-relative"===r.type){const{transform:t}=this;return V((0,z.project)({positions:i,transform:t,vertexSpace:r,inSpatialReference:e,outSpatialReference:e,local:!1}),e)}return V(i,e)}get _untransformedExtent(){return V(this.vertexAttributes.position,this.spatialReference)}get anchor(){const{vertexSpace:t}=this;if(t.isRelative)return t.getOriginPoint(this.spatialReference);const{center:e,zmin:n}=this._transformedExtent;return new y.Z({x:e.x,y:e.y,z:n,spatialReference:this.spatialReference})}get origin(){const{vertexSpace:t}=this;return t.isRelative?t.getOriginPoint(this.spatialReference):this._transformedExtent.center}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(w.Z.from(t)),this.notifyChange("components")):i.Z.getLogger(this).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}i.Z.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}else i.Z.getLogger(this).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,v.qw)(t,e,n,Vt),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const{spatialReference:r,vertexSpace:o}=t;if(o.isRelative){(0,W.A)(o,Tt,n);const r=n?.origin??t.origin;t.transform??=new _.Z,function(t,e,n,r){const i=e.origin,o=(0,P.s)(Mt,r.x,r.y,r.z??0),a=(0,P.b)(Mt,o,i);t.applyLocalInverse(a,St),t.rotation=(0,v.qC)(t.rotation,n,(0,v.Ue)()),t.applyLocalInverse(a,a),(0,P.b)(a,a,St),t.translation=(0,P.a)((0,s.c)(),t.translation,a)}(t.transform,o,e,r)}else{const o=n?.origin??t.origin;(0,W.h)(r,n)?function(t,e,n){const r=t.spatialReference,i=(0,ut.rS)(r),o=Et;(0,G.KC)(n,o,i)||(0,G.KC)(t.origin,o,i);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,c=new Float64Array(s.length),u=null!=a?new Float32Array(a.length):null,h=null!=l?new Float32Array(l.length):null;(0,G.Bm)(i,o,It,i),(0,at.f)(Ct,It);const f=Ot;(0,P.t)((0,v.ZZ)(Ot),(0,v.ZZ)(e),Ct),f[3]=e[3],(0,ht.XO)(s,r,c),null!=a&&null!=u&&(0,ht.Iz)(a,s,c,r,u),null!=l&&null!=h&&(0,ht.wi)(l,s,c,r,h),_t(c,f,3,o),(0,ht.To)(c,s,r),null!=a&&null!=u&&(_t(u,f,3),(0,ht.Yk)(u,s,c,r,a)),null!=l&&null!=h&&(_t(h,f,4),(0,ht.M2)(h,s,c,r,l)),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=Et;if(!(0,G.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(Tt).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}_t(t.vertexAttributes.position,e,3,r),_t(t.vertexAttributes.normal,e,3),_t(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,o)}}(this,Vt,r),this}offset(t,e,n,r){return this.loaded?(kt[0]=t,kt[1]=e,kt[2]=n,function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t;r.isRelative?((0,W.A)(r,"esri.geometry.support.meshUtils.offset",n),function(t,e){const n=t.origin;t.origin=(0,P.a)((0,s.c)(),n,e)}(r,e)):(0,W.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,i=t.vertexAttributes.normal,o=t.vertexAttributes.tangent,s=new Float64Array(r.length),a=null!=i?new Float32Array(i.length):null,l=null!=o?new Float32Array(o.length):null,c=t.extent.center,u=pt;(0,G.Bm)(n,[c.x,c.y,c.z],dt,(0,ut.rS)(n)),(0,at.f)(gt,dt),(0,P.t)(u,e,gt),(0,ht.XO)(r,n,s),null!=i&&null!=a&&(0,ht.Iz)(i,r,s,n,a),null!=o&&null!=l&&(0,ht.wi)(o,r,s,n,l),ft(s,u),(0,ht.To)(s,r,n),null!=i&&null!=a&&(0,ht.Yk)(a,r,s,n,i),null!=o&&null!=l&&(0,ht.M2)(l,r,s,n,o),t.vertexAttributesChanged()}(t,e):function(t,e){ft(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e)}(this,kt,r),this):(i.Z.getLogger(this).error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{spatialReference:r,vertexSpace:o}=t;if(o.isRelative){(0,W.A)(o,Rt,n);const r=n?.origin??t.origin;t.transform??=new _.Z,function(t,e,n,r){const i=e.origin,o=(0,P.s)(Lt,r.x,r.y,r.z),a=(0,P.b)(Lt,o,i);t.applyLocalInverse(a,Pt);const l=(0,P.g)((0,s.c)(),t.scale,n);t.scale=l,t.applyLocalInverse(a,a),(0,P.b)(a,a,Pt),t.translation=(0,P.a)((0,s.c)(),t.translation,a)}(t.transform,o,e,r)}else{const o=(0,W.h)(r,n),s=n?.origin??t.origin;o?function(t,e,n){const r=t.spatialReference,i=(0,ut.rS)(r),o=Zt;(0,G.KC)(n,o,i)||(0,G.KC)(t.origin,o,i);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,c=new Float64Array(s.length),u=null!=a?new Float32Array(a.length):null,h=null!=l?new Float32Array(l.length):null;(0,ht.XO)(s,r,c),null!=a&&null!=u&&(0,ht.Iz)(a,s,c,r,u),null!=l&&null!=h&&(0,ht.wi)(l,s,c,r,h),Nt(c,e,o),(0,ht.To)(c,s,r),null!=a&&null!=u&&(0,ht.Yk)(u,s,c,r,a),null!=l&&null!=h&&(0,ht.M2)(h,s,c,r,l),t.vertexAttributesChanged()}(t,e,s):function(t,e,n){const r=Zt;if(!(0,G.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(Rt).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}Nt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,s)}}(this,t,e),this):(i.Z.getLogger(this).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t,o=n?.origin??t.origin;r.isRelative?((0,W.A)(r,H,n),function(t,e,n){const{vertexSpace:r}=t;if(!r.isRelative)return;const o=J,a=Y;if(!(0,G.KC)(e,a,t.spatialReference))return void i.Z.getLogger(H).error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`);if(!(0,G.KC)(n,o,t.spatialReference)){const e=t.origin;o[0]=e.x,o[1]=e.y,o[2]=e.z,i.Z.getLogger(H).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}const l=(0,P.b)($,a,o),c=r.origin;r.origin=(0,P.a)((0,s.c)(),c,l)}(t,e,o)):(0,W.h)(t.spatialReference,n)?function(t,e,n){const r=(0,z.FF)(t.vertexAttributes,n,{geographic:!0}),{position:i,normal:o,tangent:s}=(0,z.iv)(r,e,{geographic:!0});t.vertexAttributes.position=i,t.vertexAttributes.normal=o,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=J,o=Y;if((0,G.KC)(e,o,t.spatialReference)){if(!(0,G.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(H).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let i=0;i<3;i++)t[r+i]+=e[i]-n[i]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else i.Z.getLogger(H).error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(t,e,o)}(this,t,e),this):(i.Z.getLogger(this).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){const{metadata:{displaySource:e}}=this;return e&&this.addResolvingPromise(async function(t,e,r){const{source:i}=e,{loadGLTFMesh:o}=await(0,f.Hl)(Promise.all([n.e(8598),n.e(8079)]).then(n.bind(n,78079)),r),s=await async function(t,e){if(Array.isArray(t)){if(!t.length)throw new c.Z("mesh-load-external:missing-assets","There must be at least one file to load");return t[0]instanceof File?function(t){return et(t.map((t=>({name:t.name,mimeType:t.type,source:K(t)}))))}(t):async function(t,e){const n=await(0,f.OT)(t.map((async t=>{const n=await async function(t,e){const{parts:n}=t;if(1===n.length)return new nt(n[0].partUrl);const r=await t.toBlob(e);return(0,f.k_)(e),nt.fromBlob(r)}(t);return(0,f.k_)(e),{name:t.assetName,mimeType:t.assetMimeType,source:n}})));if((0,f.Hc)(e))throw n.forEach((t=>t.source.dispose())),(0,f.zE)();return et(n)}(t,e)}return K(t)}(i,r);(0,f.k_)(r);const a=o(new y.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),s.url,{resolveFile:X(s),requestFile:void 0,useTransform:!0,signal:r?.signal});a.then((()=>s.dispose()),(()=>s.dispose()));const{vertexAttributes:l,components:u}=await a;t.vertexAttributes=l,t.components=u}(this,e,t)),Promise.resolve(this)}addExternalSources(t){this.metadata.externalSources.addMany(t)}updateDisplaySource(t){this.metadata.displaySource=t}clone(){return this.cloneWithVertexSpace(this.vertexSpace.clone())}cloneWithVertexSpace(t){let e=null;if(this.components){const t=new Map,n=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,n)))}const n={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),vertexSpace:t,transform:this.transform?.clone()??null,metadata:this.metadata.clone()};return new Dt(n)}cloneShallow(){return new Dt({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const e=n.e(7277).then(n.bind(n,7277)),r=this.load(),i=await Promise.all([e,r]),{toBinaryGLTF:o}=i[0];return o(this,t)}get memoryUsage(){let t=0;if(t+=this.vertexAttributes.memoryUsage,null!=this.components)for(const e of this.components)t+=e.memoryUsage;return t}_clearSources(){this.metadata.clearSources()}static createBox(t,e){if(!(t instanceof y.Z))return i.Z.getLogger(jt).error(".createBox()","expected location to be a Point instance"),null;const n=new Dt(yt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=xt,r=4*t.length,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,h=0;for(let r=0;r<t.length;r++){const f=t[r],p=l/3;for(const t of e)a[h++]=p+t;const d=f.corners;for(let t=0;t<4;t++){const e=d[t];let r=0;s[u++]=.25*n[t][0]+f.uvOrigin[0],s[u++]=f.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==f.axis[t]?(i[l++]=.5*f.axis[t],o[c++]=f.axis[t]):(i[l++]=.5*e[r++],o[c++]=0)}}return{position:i,normal:o,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,i=vt[e],o=6*i,s=new Array(6),a=new Array(r.length-6);let l=0,c=0;for(let t=0;t<r.length;t++)t>=o&&t<o+6?s[l++]=r[t]:a[c++]=r[t];if(null!=t.vertexAttributes.uv){const e=new Float32Array(t.vertexAttributes.uv),n=4*i*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new w.Z({faces:s,material:n.material}),new w.Z({faces:a})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof y.Z?new Dt(yt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,h=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,f=Math.cos(r),p=Math.sin(r);wt[2]=p;const d=0===t||t===e,g=d?n-1:n;for(let r=0;r<=g;r++){const p=r/g*2*Math.PI;wt[0]=-Math.sin(p)*f,wt[1]=Math.cos(p)*f;for(let t=0;t<3;t++)i[l]=.5*wt[t],o[l]=wt[t],++l;s[c++]=(r+(d?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=h,a[u++]=h+1,a[u++]=h-n),1!==t&&(a[u++]=h,a[u++]=h-n,a[u++]=h-n-1)),h++}}return{position:i,normal:o,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(i.Z.getLogger(jt).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof y.Z?new Dt(yt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),i=new Float32Array(3*n),o=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,h=0;for(let t=0;t<=5;t++){const n=0===t||5===t,f=t<=1||t>=4,p=2===t||4===t,d=n?e-1:e;for(let g=0;g<=d;g++){const m=g/d*2*Math.PI,y=n?0:.5;wt[0]=y*Math.sin(m),wt[1]=y*-Math.cos(m),wt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=wt[e],i[l++]=f?2===e?t<=1?1:-1:0:2===e?0:wt[e]/y;o[c++]=(g+(n?.5:0))/e,o[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,p||0===t||g===e||(5!==t&&(s[u++]=h,s[u++]=h+1,s[u++]=h-e),1!==t&&(s[u++]=h,s[u++]=h-e,s[u++]=h-e-1)),h++}}return{position:r,normal:i,uv:o,faces:s}}(e&&e.densificationFactor||0),t,e)):(i.Z.getLogger(jt).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){if(!(t instanceof y.Z))return i.Z.getLogger(jt).error(".createPlane()","expected location to be a Point instance"),null;const n=e?.facing??"up",r=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,e?.size);return new Dt(yt(function(t){const e=mt.facingAxisOrderSwap[t],n=mt.position,r=mt.normal,i=new Float64Array(n.length),o=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;i[s]=n[t+c]*u,o[s]=r[t+c]*u,s++}}return{position:i,normal:o,uv:new Float32Array(mt.uv),faces:new Uint32Array(mt.faces),isPlane:!0}}(n),t,{...e,size:r}))}static createFromPolygon(t,e){if(!(t instanceof x.Z))return i.Z.getLogger(jt).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=function(t,e,n,r){const i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);let l=0,c=0,u=0,h=0;for(let e=0;e<i;++e)h+=t[e].length;const f=(0,C.bg)(3*h);let p=0;for(let h=i-1;h>=0;h--){const d=t[h],g=n===j.CCW_IS_HOLE&&D(d,e,r);if(g&&1!==i)o[l++]=d;else{let t=d.length;for(let e=0;e<l;++e)t+=o[e].length;const n={index:p,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=d.length,d.length>0&&(a[u++]={index:p,count:d.length}),p=g?U(d,d.length-1,-1,f,p,d.length,e):U(d,0,1,f,p,d.length,e);for(let t=0;t<l;++t){const r=o[t];n.holeIndices[t]=p,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:p,count:r.length}),p=U(r,0,1,f,p,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=o[t];n.length>0&&(a[u++]={index:p,count:n.length}),p=U(n,0,1,f,p,n.length,e)}return s.length=c,a.length=u,{position:f,polygons:s,outlines:a}}(t.rings,t.hasZ,j.CCW_IS_HOLE,t.spatialReference),n=new Array;let r=0,i=0;for(const t of e.polygons){const o=t.count,s=t.index,a=(0,C.Rq)(e.position,3*s,3*o),l=t.holeIndices.map((t=>t-s)),c=(0,E.mi)((0,S.e)(a,l,3));n.push({position:a,faces:c}),r+=a.length,i+=c.length}const o=function(t,e,n){if(1===t.length)return t[0];const r=(0,C.bg)(e),i=new Array(n);let o=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[o++]=e.position[t];for(const t of e.faces)i[s++]=t+a;a=o/3}return{position:r,faces:(0,E.mi)(i)}}(n,r,i),s=Array.isArray(o.position)?(0,R.d)(o.position,3,{originalIndices:o.faces}):(0,R.d)(o.position.buffer,6,{originalIndices:o.faces});return o.position=(0,C.QZ)(new Float64Array(s.buffer)),o.faces=s.indices,o}(t);return new Dt({vertexAttributes:new M.Q({position:n.position}),components:[new w.Z({faces:n.faces,shading:"flat",material:e?.material??null})],spatialReference:t.spatialReference,vertexSpace:new A.Z})}static async createFromGLTF(t,e,r){if(!(t instanceof y.Z))throw i.Z.getLogger(jt).error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,f.Hl)(Promise.all([n.e(8598),n.e(8079)]).then(n.bind(n,78079)),r);return new Dt(await o(t,e,r))}static async createFromFiles(t,e,n){if(!(t instanceof y.Z)){const t="Expected location to be a Point instance";throw i.Z.getLogger(jt).error(".createFromFiles()",t),new c.Z("invalid-input",t)}const r=await Ft(e),o=Dt.createWithExternalSource(t,r),s=n?.layer;if(!s){const t="A layer is needed to convert the files";throw i.Z.getLogger(jt).error(".createFromFiles()",t),new c.Z("invalid-input",t)}const[a]=await s.uploadAssets([o],n);return a}static createWithExternalSource(t,e,n){const r=n?.extent??null,{x:i,y:o,z:s,spatialReference:a}=t,l=n?.transform?.clone()??new _.Z,c=n?.vertexSpace??new T.Z({origin:[i,o,s??0]}),u={source:e,extent:r},h=new st;return h.externalSources.push(u),new Dt({metadata:h,transform:l,vertexSpace:c,spatialReference:a})}static createIncomplete(t,e){const{x:n,y:r,z:i,spatialReference:o}=t,s=e?.transform?.clone()??new _.Z,a=e?.vertexSpace??new T.Z({origin:[n,r,i??0]}),l=new Dt({transform:s,vertexSpace:a,spatialReference:o});return l.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),l}};(0,l._)([(0,d.Cb)({type:[w.Z],json:{write:!0}})],zt.prototype,"components",void 0),(0,l._)([(0,d.Cb)({nonNullable:!0,types:Bt,constructOnly:!0,json:{write:!0}})],zt.prototype,"vertexSpace",void 0),(0,l._)([(0,d.Cb)({type:_.Z,json:{write:!0}})],zt.prototype,"transform",void 0),(0,l._)([(0,d.Cb)({constructOnly:!0})],zt.prototype,"metadata",void 0),(0,l._)([(0,d.Cb)()],zt.prototype,"hasExtent",null),(0,l._)([(0,d.Cb)()],zt.prototype,"_transformedExtent",null),(0,l._)([(0,d.Cb)()],zt.prototype,"_untransformedExtent",null),(0,l._)([(0,d.Cb)()],zt.prototype,"anchor",null),(0,l._)([(0,d.Cb)()],zt.prototype,"origin",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],zt.prototype,"extent",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],zt.prototype,"hasZ",void 0),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],zt.prototype,"hasM",void 0),(0,l._)([(0,d.Cb)({type:M.Q,nonNullable:!0,json:{write:!0}})],zt.prototype,"vertexAttributes",void 0),zt=Dt=(0,l._)([(0,g.j)(jt)],zt);const kt=(0,s.c)(),Vt=(0,v.Ue)(),Gt=zt;var Wt=n(82971),Ht=n(2981),Yt=n(74889);const Jt=()=>i.Z.getLogger("esri.rest.support.meshFeatureSet");function $t(t,e,n){const i=n.features;n.features=[],delete n.geometryType;const o=Yt.Z.fromJSON(n);if(o.geometryType="mesh",!n.assetMaps)return o;const s=Qt(e,n.assetMaps),a=t.sourceSpatialReference??Wt.Z.WGS84,l=n.globalIdFieldName,{outFields:c}=t,u=null!=c&&c.length>0?(h=c.includes("*")?null:new Set(c),({attributes:t})=>{if(!t)return{};if(!h)return t;for(const e in t)h.has(e)||delete t[e];return t}):()=>({});var h;for(const t of i){const n=qt(t,l,a,e,s);null!=n&&o.features.push(new r.Z({geometry:n,attributes:u(t)}))}return o}function qt(t,e,n,r,i){const o=t.attributes[e],l=i.get(o);if(null==l)return Jt().error("mesh-feature-set:asset-not-found","Service returned a feature which was not found in the asset map",t),null;if(!t.geometry)return Jt().error("mesh-feature-set:no-geometry","Service returned a feature without geometry",t),null;const{originPoint:c,originVector:u}=function({attributes:t},e,{transformFieldRoles:n}){const r=t[n.originX],i=t[n.originY],o=t[n.originZ];return{originPoint:new y.Z({x:r,y:i,z:o,spatialReference:e}),originVector:(0,s.f)(r,i,o)}}(t,n,r),h=a.Z.fromJSON(t.geometry);h.spatialReference=n;const f=function(t,{transformFieldRoles:e}){return new _.Z({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}(t.attributes,r),p=l.projectVertices?new b.Z({origin:u}):new T.Z({origin:u}),d=function(t){const e=Array.from(t.files.values()),n=new Array;for(const t of e){if(t.status!==Xt.COMPLETED)return null;const e=new Array;for(const n of t.parts){if(!n)return null;e.push(new ot.LL(n.url,n.hash))}n.push(new ot.CP(t.name,t.mimeType,e))}return n}(l);return d?Gt.createWithExternalSource(c,d,{extent:h,transform:f,vertexSpace:p}):Gt.createIncomplete(c,{extent:h,transform:f,vertexSpace:p})}var Xt,Kt;function Qt(t,e){const n=new Map;for(const r of e){const e=r.parentGlobalId;if(null==e)continue;const i=r.assetName,s=r.assetType,a=r.assetHash,l=r.assetURL,c=r.conversionStatus,u=r.seqNo,h=(0,Ht.d1)(s,t.supportedFormats);if(!h){Jt().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const f=(0,o.s1)(n,e,(()=>({projectVertices:ee(r.flags).projectVertices,files:new Map})));(0,o.s1)(f.files,i,(()=>({name:i,type:s,mimeType:h,status:te(c),parts:[]}))).parts[u]={hash:a,url:l}}return n}function te(t){switch(t){case"COMPLETED":case"SUBMITTED":return Xt.COMPLETED;case"INPROGRESS":return Xt.PENDING;default:return Xt.FAILED}}function ee(t){return{projectVertices:t.includes("PROJECT_VERTICES")}}(Kt=Xt||(Xt={}))[Kt.FAILED=0]="FAILED",Kt[Kt.PENDING=1]="PENDING",Kt[Kt.COMPLETED=2]="COMPLETED"},17662:(t,e,n)=>{n.d(e,{c:()=>i});var r=n(99001);class i{constructor(){this.id=(0,r.D)()}unload(){}}},4726:(t,e,n)=>{var r;n.d(e,{U:()=>r}),function(t){t[t.Layer=0]="Layer",t[t.Object=1]="Object",t[t.Mesh=2]="Mesh",t[t.Line=3]="Line",t[t.Point=4]="Point",t[t.Material=5]="Material",t[t.Texture=6]="Texture",t[t.COUNT=7]="COUNT"}(r||(r={}))},22631:(t,e,n)=>{n.d(e,{Z:()=>C});var r=n(13598),i=n(17896),o=n(24882),s=n(1533);function a(t){if(t.length<s.DB)return Array.from(t);if((0,s.kJ)(t))return Float64Array.from(t);if(!("BYTES_PER_ELEMENT"in t))return Array.from(t);switch(t.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(t);case 2:return(0,s.Uc)(t)?Uint16Array.from(t):Int16Array.from(t);case 4:return Float32Array.from(t);default:return Float64Array.from(t)}}var l=n(47026),c=n(44553),u=n(65617),h=n(11726);class f{constructor(t,e,n,r){this.primitiveIndices=t,this._numIndexPerPrimitive=e,this.indices=n,this.position=r,this._children=void 0,(0,h.hu)(t.length>=1),(0,h.hu)(n.length%this._numIndexPerPrimitive==0),(0,h.hu)(n.length>=t.length*this._numIndexPerPrimitive),(0,h.hu)(3===r.size||4===r.size);const{data:o,size:s}=r,a=t.length;let l=s*n[this._numIndexPerPrimitive*t[0]];p.clear(),p.push(l);const c=(0,u.f)(o[l],o[l+1],o[l+2]),f=(0,u.a)(c);for(let e=0;e<a;++e){const r=this._numIndexPerPrimitive*t[e];for(let t=0;t<this._numIndexPerPrimitive;++t){l=s*n[r+t],p.push(l);let e=o[l];c[0]=Math.min(e,c[0]),f[0]=Math.max(e,f[0]),e=o[l+1],c[1]=Math.min(e,c[1]),f[1]=Math.max(e,f[1]),e=o[l+2],c[2]=Math.min(e,c[2]),f[2]=Math.max(e,f[2])}}this.bbMin=c,this.bbMax=f;const d=(0,i.h)((0,u.c)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(f[0]-c[0],f[1]-c[1]),f[2]-c[2]);let g=this.radius*this.radius;for(let t=0;t<p.length;++t){l=p.at(t);const e=o[l]-d[0],n=o[l+1]-d[1],r=o[l+2]-d[2],i=e*e+n*n+r*r;if(i<=g)continue;const s=Math.sqrt(i),a=.5*(s-this.radius);this.radius=this.radius+a,g=this.radius*this.radius;const c=a/s;d[0]+=e*c,d[1]+=n*c,d[2]+=r*c}this.center=d,p.clear()}getChildren(){if(this._children||(0,i.d)(this.bbMin,this.bbMax)<=1)return this._children;const t=(0,i.h)((0,u.c)(),this.bbMin,this.bbMax,.5),e=this.primitiveIndices.length,n=new Uint8Array(e),r=new Array(8);for(let t=0;t<8;++t)r[t]=0;const{data:o,size:s}=this.position;for(let i=0;i<e;++i){let e=0;const a=this._numIndexPerPrimitive*this.primitiveIndices[i];let l=s*this.indices[a],c=o[l],u=o[l+1],h=o[l+2];for(let t=1;t<this._numIndexPerPrimitive;++t){l=s*this.indices[a+t];const e=o[l],n=o[l+1],r=o[l+2];e<c&&(c=e),n<u&&(u=n),r<h&&(h=r)}c<t[0]&&(e|=1),u<t[1]&&(e|=2),h<t[2]&&(e|=4),n[i]=e,++r[e]}let a=0;for(let t=0;t<8;++t)r[t]>0&&++a;if(a<2)return;const l=new Array(8);for(let t=0;t<8;++t)l[t]=r[t]>0?new Uint32Array(r[t]):void 0;for(let t=0;t<8;++t)r[t]=0;for(let t=0;t<e;++t){const e=n[t];l[e][r[e]++]=this.primitiveIndices[t]}this._children=new Array;for(let t=0;t<8;++t)void 0!==l[t]&&this._children.push(new f(l[t],this._numIndexPerPrimitive,this.indices,this.position));return this._children}static prune(){p.prune()}}const p=new c.Z({deallocator:null});var d=n(17662),g=n(4726),m=n(22807),y=n(16996);function x(t,e,n){return(0,i.b)(v,e,t),(0,i.b)(w,n,t),(0,i.l)((0,i.f)(v,v,w))/2}n(12981),new m.x(y.Ue),new m.x((()=>{return t?{p0:(0,u.a)(t.p0),p1:(0,u.a)(t.p1),p2:(0,u.a)(t.p2)}:{p0:(0,u.c)(),p1:(0,u.c)(),p2:(0,u.c)()};var t}));const v=(0,u.c)(),w=(0,u.c)();function b(t,e,n,r){if(!t)return!1;(0,i.s)(r,0,0,0),(0,i.s)(M,0,0,0);let o=0,s=0;const{size:a,data:l}=t,c=e?e.length-1:l.length/a-1,u=c+(n?2:0);for(let t=0;t<u;t+=2){const n=t<c?t:c,u=t<c?t+1:0,h=(e?e[n]:n)*a,f=(e?e[u]:u)*a;A[0]=l[h],A[1]=l[h+1],A[2]=l[h+2],T[0]=l[f],T[1]=l[f+1],T[2]=l[f+2],(0,i.g)(A,(0,i.a)(A,A,T),.5);const p=(0,i.j)(A,T);p>0?((0,i.a)(r,r,(0,i.g)(A,A,p)),o+=p):0===o&&((0,i.a)(M,M,A),s++)}return 0!==o?((0,i.g)(r,r,1/o),!0):0!==s&&((0,i.g)(r,M,1/s),!0)}const A=(0,u.c)(),T=(0,u.c)(),_=(0,u.c)(),M=(0,u.c)();var S=n(99001);class O{constructor(t){this.channel=t,this.id=(0,S.D)()}}var I=n(35065);n(9820),(0,u.c)(),new Float32Array(6);class C extends d.c{constructor(t,e,n=[],r=null,i=g.U.Mesh,s=null,a=-1){super(),this.material=t,this.mapPositions=r,this.type=i,this.objectAndLayerIdColor=s,this.edgeIndicesLength=a,this.visible=!0,this._vertexAttributes=new Map,this._indices=new Map,this._boundingInfo=null;for(const[t,n]of e)n&&this._vertexAttributes.set(t,{...n});if(null==n||0===n.length){const t=function(t){const e=t.values().next().value;return null==e?0:e.data.length/e.size}(this._vertexAttributes),e=(0,o.KF)(t);this.edgeIndicesLength=this.edgeIndicesLength<0?t:this.edgeIndicesLength;for(const t of this._vertexAttributes.keys())this._indices.set(t,e)}else for(const[t,e]of n)e&&(this._indices.set(t,(0,o.mi)(e)),t===I.T.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._indices.get(t).length:this.edgeIndicesLength))}instantiate(t={}){const e=new C(t.material||this.material,[],void 0,this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._vertexAttributes.forEach(((t,n)=>{t.exclusive=!1,e._vertexAttributes.set(n,t)})),this._indices.forEach(((t,n)=>e._indices.set(n,t))),e._boundingInfo=this._boundingInfo,e.transformation=t.transformation||this.transformation,e}get vertexAttributes(){return this._vertexAttributes}getMutableAttribute(t){let e=this._vertexAttributes.get(t);return e&&!e.exclusive&&(e={...e,exclusive:!0,data:a(e.data)},this._vertexAttributes.set(t,e)),e}setAttributeData(t,e){const n=this._vertexAttributes.get(t);n&&this._vertexAttributes.set(t,{...n,exclusive:!0,data:e})}get indices(){return this._indices}get indexCount(){const t=this._indices.values().next().value;return t?t.length:0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(t){return!!(this.type===g.U.Mesh?this._computeAttachmentOriginTriangles(t):this.type===g.U.Line?this._computeAttachmentOriginLines(t):this._computeAttachmentOriginPoints(t))&&(null!=this._transformation&&(0,i.m)(t,t,this._transformation),!0)}_computeAttachmentOriginTriangles(t){const e=this.indices.get(I.T.POSITION);return function(t,e,n){if(!t||!e)return!1;const{size:r,data:o}=t;(0,i.s)(n,0,0,0),(0,i.s)(M,0,0,0);let s=0,a=0;for(let t=0;t<e.length-2;t+=3){const l=e[t]*r,c=e[t+1]*r,u=e[t+2]*r;(0,i.s)(A,o[l],o[l+1],o[l+2]),(0,i.s)(T,o[c],o[c+1],o[c+2]),(0,i.s)(_,o[u],o[u+1],o[u+2]);const h=x(A,T,_);h?((0,i.a)(A,A,T),(0,i.a)(A,A,_),(0,i.g)(A,A,1/3*h),(0,i.a)(n,n,A),s+=h):((0,i.a)(M,M,A),(0,i.a)(M,M,T),(0,i.a)(M,M,_),a+=3)}return!(0===a&&0===s||(0!==s?((0,i.g)(n,n,1/s),0):0===a||((0,i.g)(n,M,1/a),0)))}(this.vertexAttributes.get(I.T.POSITION),e,t)}_computeAttachmentOriginLines(t){const e=this.vertexAttributes.get(I.T.POSITION),n=this.indices.get(I.T.POSITION);return b(e,n,n&&function(t,e,n){return!(!("isClosed"in t)||!t.isClosed)&&(n?n.length>2:e.data.length>6)}(this.material.parameters,e,n),t)}_computeAttachmentOriginPoints(t){const e=this.indices.get(I.T.POSITION);return function(t,e,n){if(!t||!e)return!1;const{size:r,data:o}=t;(0,i.s)(n,0,0,0);let s=-1,a=0;for(let t=0;t<e.length;t++){const i=e[t]*r;s!==i&&(n[0]+=o[i],n[1]+=o[i+1],n[2]+=o[i+2],a++),s=i}return a>1&&(0,i.g)(n,n,1/a),a>0}(this.vertexAttributes.get(I.T.POSITION),e,t)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const t=this.indices.get(I.T.POSITION),e=this.vertexAttributes.get(I.T.POSITION);if(!t||0===t.length||!e)return null;const n=this.type===g.U.Mesh?3:1;(0,h.hu)(t.length%n==0,"Indexing error: "+t.length+" not divisible by "+n);const r=(0,o.KF)(t.length/n);return new f(r,n,t,e)}get transformation(){return this._transformation??r.I}set transformation(t){this._transformation=t&&t!==r.I?(0,r.b)(t):null}addHighlight(){const t=new O(l.V_.Highlight);return this.highlights=function(t,e){return null==t&&(t=[]),t.push(e),t}(this.highlights,t),t}removeHighlight(t){this.highlights=function(t,e){if(null==t)return null;const n=t.filter((t=>t!==e));return 0===n.length?null:n}(this.highlights,t)}}},11726:(t,e,n)=>{n.d(e,{hu:()=>i,yK:()=>o}),n(97323),n(98766),(0,n(88669).c)();class r{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e){if(!t){e=e||"Assertion";const t=new Error(e).stack;throw new r(`${e} at ${t}`)}}function o(t,e,n,r){let i,o=(n[0]-t[0])/e[0],s=(r[0]-t[0])/e[0];o>s&&(i=o,o=s,s=i);let a=(n[1]-t[1])/e[1],l=(r[1]-t[1])/e[1];if(a>l&&(i=a,a=l,l=i),o>l||a>s)return!1;a>o&&(o=a),l<s&&(s=l);let c=(n[2]-t[2])/e[2],u=(r[2]-t[2])/e[2];return c>u&&(i=c,c=u,u=i),!(o>u||c>s||(u<s&&(s=u),s<0))}},35065:(t,e,n)=>{var r;n.d(e,{T:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},47026:(t,e,n)=>{var r,i,o,s,a,l,c,u,h;n.d(e,{Gv:()=>i,Iq:()=>u,JJ:()=>c,Rw:()=>s,Ti:()=>h,V_:()=>l,Vr:()=>r,hU:()=>a}),function(t){t[t.None=0]="None",t[t.Front=1]="Front",t[t.Back=2]="Back",t[t.COUNT=3]="COUNT"}(r||(r={})),function(t){t[t.Less=0]="Less",t[t.Lequal=1]="Lequal",t[t.COUNT=2]="COUNT"}(i||(i={})),function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.UPDATE=1]="UPDATE"}(o||(o={})),function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"}(s||(s={})),function(t){t[t.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",t[t.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(a||(a={})),function(t){t[t.Highlight=0]="Highlight",t[t.MaskOccludee=1]="MaskOccludee",t[t.COUNT=2]="COUNT"}(l||(l={})),function(t){t[t.Blend=0]="Blend",t[t.Opaque=1]="Opaque",t[t.Mask=2]="Mask",t[t.MaskBlend=3]="MaskBlend",t[t.COUNT=4]="COUNT"}(c||(c={})),function(t){t[t.OFF=0]="OFF",t[t.ON=1]="ON"}(u||(u={})),function(t){t.DDS_ENCODING="image/vnd-ms.dds",t.KTX2_ENCODING="image/ktx2",t.BASIS_ENCODING="image/x.basis"}(h||(h={}))},9820:(t,e,n)=>{function r(t,e){const n=t.length;for(let r=0;r<n;++r)o[0]=t[r],e[r]=o[0];return e}function i(t,e){const n=t.length;for(let r=0;r<n;++r)o[0]=t[r],o[1]=t[r]-o[0],e[r]=o[1];return e}n.d(e,{GB:()=>i,U8:()=>r});const o=new Float32Array(2)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4885],{84552:(e,t,i)=>{i.d(t,{Z:()=>p});var n=i(43697),r=i(2368),o=i(96674),a=i(35463),s=i(5600),l=(i(75215),i(67676),i(80442),i(36030)),u=i(52011),c=i(78981);let d=class extends((0,r.J)(o.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,l.J)(c.v,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n._)([(0,u.j)("esri.TimeInterval")],d);const p=d},22862:(e,t,i)=>{i.d(t,{Hg:()=>y,V7:()=>m,uD:()=>p});var n=i(92036),r=i(46791),o=i(1153);const a=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function s(e){return e instanceof n.Z}function l(e){return e instanceof r.Z?Object.keys(e.items):s(e)?(0,o.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.Z?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=l(e),r=l(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=r.filter((e=>!n.includes(e))),p=n.filter((e=>!r.includes(e))),m=n.filter((i=>r.includes(i)&&u(e,i)!==u(t,i))).concat(o,p).sort(),y=c(e);if(y&&a.includes(y)&&m.length)return{type:"complete",oldValue:e,newValue:t};let g;const h=s(e)&&s(t);for(const n of m){const r=u(e,n),o=u(t,n);let a;if((h||"function"!=typeof r&&"function"!=typeof o)&&r!==o&&(null!=r||null!=o)){if(i&&i[n]&&"function"==typeof i[n])a=i[n]?.(r,o);else if(r instanceof Date&&o instanceof Date){if(r.getTime()===o.getTime())continue;a={type:"complete",oldValue:r,newValue:o}}else a="object"==typeof r&&"object"==typeof o&&c(r)===c(o)?d(r,o):{type:"complete",oldValue:r,newValue:o};null!=a&&(null!=g?g.diff[n]=a:g={type:"partial",diff:{[n]:a}})}}return g}function p(e,t){if(null==e)return!1;const i=t.split(".");let n=e;for(const e of i){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const t=n.diff[e];if(!t)return!1;n=t}}return!0}function m(e,t){for(const i of t)if(p(e,i))return!0;return!1}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},17017:(e,t,i)=>{i.d(t,{N:()=>a});var n=i(43697),r=i(5600),o=(i(75215),i(67676),i(80442),i(52011));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,n._)([(0,r.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},34760:(e,t,i)=>{i.d(t,{Q:()=>I});var n=i(43697),r=i(92604),o=i(95330),a=i(5600),s=i(90578),l=(i(67676),i(80442),i(52011)),u=i(46791),c=(i(66643),i(20102),i(26258),i(87538));const d=new u.Z,p=new WeakMap;function m(e){g(e)&&d.push(e)}function y(e){g(e)&&d.includes(e)&&d.remove(e)}function g(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let M=0,w=0;function f(){const e=Date.now();for(const t of d)t.refreshInterval&&e-(p.get(t)??0)+5>=6e4*t.refreshInterval&&(p.set(t,e),t.refresh(e))}(0,c.EH)((()=>{const e=Date.now();let t=0;for(const i of d)t=h(Math.round(6e4*i.refreshInterval),t),i.refreshInterval?p.get(i)||p.set(i,e):p.delete(i);if(t!==w){if(w=t,clearInterval(M),0===w)return void(M=0);M=setInterval(f,w)}}));const I=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,o.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||m(this)}),(()=>{}))}destroy(){y(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,o.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{r.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,n._)([(0,s.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,n._)([(0,a.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,n._)([(0,a.Cb)()],t.prototype,"refreshParameters",null),t=(0,n._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>p});var n=i(43697),r=i(92835),o=i(84552),a=i(5600),s=(i(75215),i(67676),i(80442),i(71715)),l=i(52011),u=i(35671),c=i(76259),d=i(78981);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=d.v.fromJSON(i.timeOffsetUnits);return n&&r?new o.Z({value:n,unit:r}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,a.Cb)({type:r.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,a.Cb)({type:o.Z})],t.prototype,"timeOffset",void 0),(0,n._)([(0,s.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,a.Cb)({value:null,type:c.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},35956:(e,t,i)=>{i.d(t,{Z:()=>d});var n,r=i(43697),o=i(96674),a=i(22974),s=i(5600),l=i(75215),u=i(52011);let c=n=class extends o.wq{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new n({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,a.d9)(this.values),isSlice:this.isSlice})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"variableName",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"dimensionName",void 0),(0,r._)([(0,s.Cb)({type:l.V5.array(l.V5.oneOf([l.V5.native(Number),l.V5.array(l.V5.native(Number))])),json:{write:!0}})],c.prototype,"values",void 0),(0,r._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"isSlice",void 0),c=n=(0,r._)([(0,u.j)("esri.layers.support.DimensionalDefinition")],c);const d=c},98974:(e,t,i)=>{i.d(t,{Z:()=>v});var n,r=i(43697),o=i(60235),a=i(35454),s=i(96674),l=i(22974),u=i(92604),c=i(5600),d=i(90578),p=i(71715),m=i(52011),y=i(30556),g=i(75215),h=i(94139),M=i(35956),w=i(45663);const f=(0,a.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),I=(0,a.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let b=n=class extends s.wq{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=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}get itemRenderingRule(){return(0,o.Mr)(u.Z.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._get("itemRasterFunction")}set itemRenderingRule(e){(0,o.Mr)(u.Z.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0}),this._set("itemRasterFunction",e)}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 I.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t))).length&&(t[i]=e.map((e=>e.toJSON())))}readOperation(e,t){const i=t.mosaicOperation,n=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),r=i||(n?f.toJSON(n):null);return f.fromJSON(r)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new n({ascending:this.ascending,itemRasterFunction:(0,l.d9)(this.itemRasterFunction),lockRasterIds:(0,l.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,l.d9)(this.multidimensionalDefinition),objectIds:(0,l.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,l.d9)(this.viewpoint),where:this.where})}};(0,r._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"ascending",void 0),(0,r._)([(0,p.r)("ascending",["ascending","sortAscending"])],b.prototype,"readAscending",null),(0,r._)([(0,c.Cb)({type:w.Z,json:{name:"itemRenderingRule",write:!0}})],b.prototype,"itemRasterFunction",void 0),(0,r._)([(0,c.Cb)({type:w.Z})],b.prototype,"itemRenderingRule",null),(0,r._)([(0,c.Cb)({type:[g.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],b.prototype,"lockRasterIds",void 0),(0,r._)([(0,c.Cb)({type:String,json:{type:I.jsonValues,write:{target:"mosaicMethod",writer:I.write}}})],b.prototype,"method",void 0),(0,r._)([(0,p.r)("method",["mosaicMethod","defaultMosaicMethod"])],b.prototype,"readMethod",null),(0,r._)([(0,c.Cb)({type:[M.Z],json:{write:!0}})],b.prototype,"multidimensionalDefinition",void 0),(0,r._)([(0,y.c)("multidimensionalDefinition")],b.prototype,"writeMultidimensionalDefinition",null),(0,r._)([(0,c.Cb)({type:[g.z8],json:{name:"fids",write:!0}})],b.prototype,"objectIds",void 0),(0,r._)([(0,c.Cb)({json:{type:f.jsonValues,read:{reader:f.read},write:{target:"mosaicOperation",writer:f.write}}})],b.prototype,"operation",void 0),(0,r._)([(0,p.r)("operation",["mosaicOperation","mosaicOperator"])],b.prototype,"readOperation",null),(0,r._)([(0,c.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],b.prototype,"sortField",void 0),(0,r._)([(0,c.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],b.prototype,"sortValue",void 0),(0,r._)([(0,d.p)("sortValue")],b.prototype,"castSortValue",null),(0,r._)([(0,c.Cb)({type:h.Z,json:{write:!0}})],b.prototype,"viewpoint",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"where",void 0),b=n=(0,r._)([(0,m.j)("esri.layers.support.MosaicRule")],b);const v=b},29876:(e,t,i)=>{i.d(t,{Z:()=>y});var n,r=i(43697),o=(i(66577),i(96674)),a=i(5600),s=(i(75215),i(67676),i(80442),i(52011)),l=i(6570),u=i(38913),c=i(33955),d=i(35956);const p={base:i(9361).Z,key:"type",typeMap:{extent:l.Z,polygon:u.Z}};let m=n=class extends o.wq{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach((e=>{if(!e.dimensionName)return;let i,n;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],n=t[e.values.length-1][1]}else{const t=e.values;i=t[0],n=t[e.values.length-1]}if(t.has(e.dimensionName)){const r=t.get(e.dimensionName);r[0]=Math.min(i,r[0]),r[1]=Math.max(n,r[1])}else t.set(e.dimensionName,[i,n])}));const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach((e=>{e.variableName&&t.add(e.variableName)})),[...t]}clone(){const e=this.subsetDefinitions?.map((e=>e.clone())),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new n({areaOfInterest:t,subsetDefinitions:e})}};(0,r._)([(0,a.Cb)({types:p,json:{read:c.im,write:!0}})],m.prototype,"areaOfInterest",void 0),(0,r._)([(0,a.Cb)({readOnly:!0})],m.prototype,"dimensions",null),(0,r._)([(0,a.Cb)({readOnly:!0})],m.prototype,"variables",null),(0,r._)([(0,a.Cb)({type:[d.Z],json:{write:!0}})],m.prototype,"subsetDefinitions",void 0),m=n=(0,r._)([(0,s.j)("esri.layers.support.MultidimensionalSubset")],m);const y=m},45663:(e,t,i)=>{i.d(t,{Z:()=>x});var n=i(43697),r=i(96674),o=i(22974),a=i(5600),s=i(75215),l=i(36030),u=i(71715),c=i(52011),d=i(30556),p=i(35454),m=(i(67676),i(80442),i(69608));let y=class extends r.wq{constructor(){super(...arguments),this.pixelType="unknown"}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,a.Cb)({type:s.z8,json:{type:s.z8,write:!0,name:"_object_id"}})],y.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String,json:{type:m.sM.jsonValues,read:m.sM.read,write:m.sM.write}})],y.prototype,"pixelType",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"type",void 0),y=(0,n._)([(0,c.j)("esri.layers.support.RasterFunctionInfo")],y);const g=y;let h=class extends r.wq{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{type:s.z8,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"isDataset",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"isPublic",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"value",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,n._)([(0,c.j)("esri.layers.support.RasterFunctionVariable")],h);const M={key:"type",base:null,typeMap:{RasterFunctionVariable:h}};let w=class extends r.wq{};(0,n._)([(0,a.Cb)({types:M,json:{types:M,name:"MatchVariable"}})],w.prototype,"matchVariable",void 0),(0,n._)([(0,a.Cb)({types:M,json:{types:M,name:"UnionDimension"}})],w.prototype,"unionDimension",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{type:s.z8,write:!0,name:"_object_id"}})],w.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"type",void 0),w=(0,n._)([(0,c.j)("esri.layers.support.RasterFunctionProperties")],w);const f=w,I=new p.X({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let b=class extends r.wq{constructor(){super(...arguments),this.functionType="mosaic",this.type="RasterFunctionTemplate"}};(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],b.prototype,"aliases",void 0),(0,n._)([(0,a.Cb)({type:Object,json:{write:!0}})],b.prototype,"arguments",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"description",void 0),(0,n._)([(0,a.Cb)({type:g,json:{write:!0,name:"function"}})],b.prototype,"functionInfo",void 0),(0,n._)([(0,a.Cb)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:I.write}})],b.prototype,"functionType",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"group",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"help",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{type:s.z8,write:!0,name:"_object_id"}})],b.prototype,"id",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0,name:"definition"}})],b.prototype,"queryDefinition",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"tag",void 0),(0,n._)([(0,a.Cb)({type:f,json:{write:!0}})],b.prototype,"properties",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"thumbnail",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],b.prototype,"thumbnailEx",void 0),(0,n._)([(0,a.Cb)({json:{type:["RasterFunctionTemplate"],write:!0}})],b.prototype,"type",void 0),b=(0,n._)([(0,c.j)("esri.layers.support.RasterFunctionTemplate")],b);const v=b;var A;const C=new Set(["raster","raster2","dem","fillraster"]),D=new Set(["rasters"]),j=e=>e&&e.rasterFunction?L.fromJSON(e):e,T=e=>e&&e instanceof L?e.toJSON():e,N=e=>e?.functionName&&!e.declaredClass,S=e=>N(e)?new L(e):e,Z={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:v}},json:{write:!0,name:"rasterFunctionDefinition"}};let L=A=class extends r.wq{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>C.has(t.toLowerCase())&&N(e[t])))||t.some((t=>D.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>N(e)))))){e=(0,o.d9)(e);for(const i of t)C.has(i.toLowerCase())?e[i]=S(e[i]):D.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map((e=>S(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,o.d9)(e);const t={};for(const i of Object.keys(e))C.has(i.toLowerCase())?t[i]=j(e[i]):D.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(j):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const n={};for(const t of Object.keys(e))C.has(t.toLowerCase())?n[t]=T(e[t]):D.has(t.toLowerCase())&&Array.isArray(e[t])?n[t]=e[t].map(T):n[t]=T(e[t]);t[i]=n}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i&&i.length&&"None"!==i[0].name?i[0].name:t.rasterFunctionDefinition?t.rasterFunctionDefinition.name:t.rasterFunction)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=e?v.fromJSON(e):null}clone(){return new A({functionName:this.functionName,functionArguments:(0,o.d9)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,o.d9)(this.rasterFunctionDefinition)})}};(0,n._)([(0,a.Cb)({json:{type:Object,name:"rasterFunctionArguments"}})],L.prototype,"functionArguments",null),(0,n._)([(0,u.r)("functionArguments")],L.prototype,"readFunctionArguments",null),(0,n._)([(0,d.c)("functionArguments")],L.prototype,"writeFunctionArguments",null),(0,n._)([(0,a.Cb)({json:{type:String,write:{target:"rasterFunction"}}})],L.prototype,"functionName",void 0),(0,n._)([(0,u.r)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],L.prototype,"readFunctionName",null),(0,n._)([(0,l.J)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,a.Cb)({json:{default:"unknown"}})],L.prototype,"outputPixelType",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:!0,write:!0}})],L.prototype,"variableName",void 0),(0,n._)([(0,a.Cb)()],L.prototype,"rasterFunctionDefinition",null),(0,n._)([(0,a.Cb)(Z)],L.prototype,"functionDefinition",void 0),L=A=(0,n._)([(0,c.j)("esri.layers.support.RasterFunction")],L);const x=L},88281:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(20102),r=i(56569),o=i(5847);class a{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,r.bA)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:e.pixelBlock.toJSON(),type:e.dataType},t);return i?new o.Z(i):null}computeStatisticsHistograms(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");return this._workerThread.invoke("computeStatisticsHistograms",{pixelBlock:e.pixelBlock.toJSON()},t)}async decode(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("decode",e,t);return i?new o.Z(i):null}async symbolize(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i={extent:e.extent&&e.extent.toJSON(),pixelBlock:null!=e.pixelBlock&&e.pixelBlock.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},r=await this._workerThread.invoke("symbolize",i,t);return r?new o.Z(r):null}async updateSymbolizer(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:i},t))}async updateRasterFunction(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?e.toJSON():null)),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?e.toJSON():null)),primaryRasterIds:e.primaryRasterIds},t);return i?new o.Z(i):null}async stretch(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},r=await this._workerThread.invoke("stretch",i,t);return r?new o.Z(r):null}async split(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON(),tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel},r=await this._workerThread.invoke("split",i,t);return r&&r.forEach(((e,t)=>{r.set(t,e?o.Z.fromJSON(e):null)})),r}async estimateStatisticsHistograms(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");if(!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.toJSON()};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");if(!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i={...e,srcPixelBlocks:e.srcPixelBlocks.map((e=>null!=e?e.toJSON():null))},r=await this._workerThread.invoke("mosaicAndTransform",i,t);return{pixelBlock:r.pixelBlock?new o.Z(r.pixelBlock):null,localNorthDirections:r.localNorthDirections}}async createFlowMesh(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:r,simulationSettings:o}=e,a=await this._workerThread.invoke("createFlowMesh",{meshType:r,flowData:i,simulationSettings:o},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(a.vertexBuffer),indexData:new Uint32Array(a.indexBuffer)}}getProjectionOffsetGrid(e,t){if(!this._workerThread)throw new n.Z("raster-jobhandler:no-connection","no available worker connection");const i=null!=e.datumTransformation?e.datumTransformation.steps.map((e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))):null,r=null!=e.rasterTransform?e.rasterTransform.toJSON():null,o={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:r,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",o,t)}}},76259:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(43697),r=i(92835),o=i(84552),a=i(2368),s=i(96674),l=i(5600),u=(i(75215),i(67676),i(80442),i(71715)),c=i(52011),d=i(30556),p=i(80216);function m(e,t){return o.Z.fromJSON({value:e,unit:t})}let y=class extends((0,a.J)(s.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),n=new Date(t.timeExtent[1]);return new r.Z({start:i,end:n})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n._)([(0,l.Cb)({type:r.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n._)([(0,u.r)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n._)([(0,d.c)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n._)([(0,l.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n._)([(0,d.c)("interval")],y.prototype,"writeInterval",null),(0,n._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n._)([(0,l.Cb)({type:p.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"timeReference",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,n._)([(0,c.j)("esri.layers.support.TimeInfo")],y);const g=y},99815:(e,t,i)=>{i.d(t,{MO:()=>a,Tj:()=>g,Ur:()=>s,W2:()=>m,WU:()=>h,WY:()=>y,gk:()=>I,jj:()=>M,nb:()=>p});var n=i(67676),r=i(35956);function o(e,t,i){const n=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const r=i.length;for(let t=0;t<r;t++){const t=i.shift().multidimensionalDefinition;n.values?.forEach((r=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:n.name,values:[r]}]})}))}t.length&&o(e,t,i)}function a(e,t){const i=[];let n=0;return(t?e.variables.filter((e=>e.name.toLowerCase()===t.toLowerCase())):[...e.variables].sort(((e,t)=>e.name>t.name?1:-1))).forEach((e=>{const t=[],r=[...e.dimensions].sort(((e,t)=>e.name>t.name?-1:1));o(e.name,r,t),t.forEach((e=>{i.push({...e,sliceId:n++})}))})),i}function s(e,t,i){let n=e;if(t&&(t=[...t].sort(((e,t)=>e.dimensionName<t.dimensionName?-1:1))).forEach((({dimensionName:e,values:t,isSlice:i})=>{t.length&&(n=n.filter((n=>{const r=n.multidimensionalDefinition.find((t=>t.dimensionName===e));if(null==r)return!1;const o=r.values[0];return"number"==typeof o?"number"==typeof t[0]?t.includes(o):t.some((e=>e[0]<=o&&e[1]>=o)):"number"==typeof t[0]?t.some((e=>o[0]<=e&&o[1]>=e)):i?t.some((e=>e[0]===o[0]&&e[0]===o[1])):t.some((e=>e[0]>=o[0]&&e[0]<=o[1]||e[1]>=o[0]&&e[1]<=o[1]||e[0]<o[0]&&e[1]>o[1]))})))})),n.length&&i&&null!=i.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),r=n[0].multidimensionalDefinition.findIndex((e=>"StdTime"===e.dimensionName));r>-1&&(n=n.filter((i=>{const n=i.multidimensionalDefinition[r].values[0];return e<=n&&t>=n})))}return n.map((e=>e.sliceId))}function l(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function u(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function c(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function d(e,t,i){if(!t?.subsetDefinitions?.length)return e;let n;if(i){const{variables:r}=t;if(r.length&&!r.includes(i))return null;const o=t.subsetDefinitions.find((t=>t.dimensionName===e.name&&t.variableName===i));if(!o?.values?.length)return e;n=c(o.values)}else{const i=t.dimensions.find((({name:t})=>t===e.name));n=i?.extent}const r=n;if(!r||!r?.length)return e;const o=e.values.filter((e=>l(e,r)));return{...e,extent:[...r],values:o}}function p(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:n}=t;if(n.length&&e.some((({variableName:e})=>e&&!n.includes(e))))return!0;for(let n=0;n<e.length;n++){const r=e[n],o=t.subsetDefinitions.find((e=>(""===r.variableName||e.variableName===r.variableName)&&e.dimensionName===r.dimensionName));if(o?.values.length){const e=c(o.values);if(r.isSlice||2!==r.values.length||Array.isArray(r.values[0])||r.values[0]===r.values[1]||!i){if(r.values.some((t=>!l(t,e))))return!0}else if(!u(r.values,e))return!0}}return!1}function m(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:n,multidimensionalDefinition:o}=t;let a=null;if(null!=n&&(a=function(e,t){const i=e.dimensions.find((({name:e})=>"StdTime"===e));if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:n,end:o}=t.toJSON(),a=n===o?[n]:null!=n&&null!=o?[n,o]:[n??o];return 2===a.length&&i?.extent.length&&(a[0]=Math.max(a[0],i.extent[0]),a[1]=Math.min(a[1],i.extent[1]??i.extent[0]),a[1]<a[0])||p([new r.Z({variableName:"",dimensionName:"StdTime",isSlice:1===a.length,values:a})],e,!0)?null:(t.start=new Date(a[0]),t.end=new Date(a[1]??a[0]),t)}(e,n),null==a))return{isOutside:!0};const{areaOfInterest:s}=e;if(s&&i){const e="point"===i.type?i:"extent"===i.type?i.center:"polygon"===i.type?i.centroid:null;if(e&&!s.contains(e))return{isOutside:!0}}return null!=o&&o.length&&p(o,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:a,multidimensionalDefinition:o}}}function y(e,t={}){const{multidimensionalInfo:i,keyProperties:n}=e;if(null==i)return null;const{variableName:r,multidimensionalSubset:o,multidimensionalDefinition:a}=t,s=null!=a?a[0]?.variableName:null,l=r||s||n?.DefaultVariable;let{variables:u}=i;return o?.variables?.length&&(u=u.filter((({name:e})=>o.variables.includes(e)))),l?u.find((({name:e})=>e===l))??u[0]:u[0]}function g(e,t={}){const i=y(e,t);if(!i)return null;const n=[],{dimensions:o,name:a}=i;if(0===o.length)return[new r.Z({variableName:a,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<o.length;e++){const i=d(o[e],t.multidimensionalSubset,a);if(!i)return null;const{values:s,extent:l}=i;let u=s?.[0]??l[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&Math.abs(l[1])<=Math.abs(l[0])&&(u=s?.length?s[s.length-1]:l[1]),n.push(new r.Z({variableName:a,dimensionName:i.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return n}function h(e){return!(null==e||!e.length)&&e.some((e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])}))}function M(e,t){if(null==t||null==e)return null;let i=t.variables.map((e=>({...e})));return e?.variables?.length&&(i=i.filter((({name:t})=>e.variables.includes(t))),i.forEach((t=>{t.dimensions=t.dimensions.map((i=>d(i,e,t.name))).filter(n.pC)}))),i}function w(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),n=Array.isArray(e);return t!==n?-1:t&&n?i.findIndex((t=>t[0]===e[0]&&t[1]===e[1])):i.indexOf(e)}const{extent:n}=t;if(Array.isArray(e)||e<n[0]||e>n[1])return-1;const r=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-n[0])/r);const o=n[0];let a=-1;switch(t.intervalUnit?.toLowerCase()||"seconds"){case"seconds":a=Math.round((e-o)/1e3/r);break;case"minutes":a=Math.round((e-o)/6e4/r);break;case"hours":a=Math.round((e-o)/36e5/r);break;case"days":a=Math.round((e-o)/864e5/r);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear(),i=new Date(o).getUTCMonth(),n=new Date(e).getUTCMonth();a=0===t?n-i:n+11-i+12*(t-1)}break;case"years":a=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/r);break;case"decades":a=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/10/r)}return a}function f(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:n}=e,r=e.interval||1,o=i?i[1]-i[0]:0;if("ISO8601"!==n)return Math.round(o/r);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(o/1e3/r);break;case"minutes":t=Math.round(o/6e4/r);break;case"hours":t=Math.round(o/36e5/r);break;case"days":t=Math.round(o/864e5/r);break;case"months":{const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),n=new Date(i[0]).getUTCMonth(),r=new Date(i[1]).getUTCMonth();t=0===e?r-n+1:r+11-n+12*(e-1)+1}break;case"years":t=Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/r);break;case"decades":t=Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/r);break;default:t=0}return t}function I(e,t){let i=0;const n=e[0].variableName,r=[...t.variables].sort(((e,t)=>e.name>t.name?1:-1));for(let t=0;t<r.length;t++){const o=r[t],a=[...o.dimensions].sort(((e,t)=>e.name>t.name?-1:1));if(o.name!==n){i+=a.map((e=>f(e))).reduce(((e,t)=>e*t));continue}const s=a.map((e=>f(e))),l=a.length;for(let t=0;t<l;t++){const n=e.find((e=>e.dimensionName===a[t].name));if(null==n)return null;const r=w(n.values[0],a[t]);if(-1===r)return null;s.shift(),i+=t===l-1?r:r*s.reduce(((e,t)=>e*t))}break}return i}},69608:(e,t,i)=>{i.d(t,{cl:()=>r,kQ:()=>o,sM:()=>a});var n=i(35454);const r=(0,n.w)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),o=(0,n.w)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),a=(0,n.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"})},78981:(e,t,i)=>{i.d(t,{v:()=>n});const n=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},30030:(e,t,i)=>{i.d(t,{FK:()=>p,dr:()=>d,ij:()=>y});var n=i(20941),r=i(16050),o=i(24705),a=i(28092),s=i(73622),l=i(60849),u=i(81571),c=i(3943);const d={key:"type",base:null,typeMap:{"unique-value":u.Z,"class-breaks":r.Z,"raster-colormap":a.Z,"raster-stretch":l.Z,"vector-field":c.Z,"raster-shaded-relief":s.Z,flow:o.Z}},p={...d,typeMap:{...d.typeMap}};delete p.typeMap["vector-field"],delete p.typeMap.flow;const m={uniqueValue:u.Z,classBreaks:r.Z,rasterStretch:l.Z,rasterColormap:a.Z,vectorField:c.Z,rasterShadedRelief:s.Z,flowRenderer:o.Z};function y(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=(r=e)&&m[r.type]||null;var r;if(i){const n=new i;return n.read(e,t),n}return t&&t.messages&&e&&t.messages.push(new n.Z("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},24705:(e,t,i)=>{i.d(t,{Z:()=>M});var n,r=i(43697),o=i(22303),a=i(35454),s=i(96674),l=i(62357),u=i(5600),c=(i(75215),i(67676),i(80442),i(36030)),d=i(52011),p=i(41733),m=i(69237),y=i(66338);const g=new a.X({flow_from:"flow-from",flow_to:"flow-to"});let h=n=class extends((0,p.W)(s.wq)){constructor(e){super(e),this.density=.8,this.color=new o.Z([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:o,smoothing:a,flowRepresentation:s,trailCap:l,background:u}=this,c=this.color.clone(),d=(this.visualVariables||[]).map((e=>e.clone())),p=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new n({density:e,color:c,maxPathLength:t,trailWidth:i,flowSpeed:r,trailLength:o,trailCap:l,background:u,smoothing:a,flowRepresentation:s,visualVariables:d,authoringInfo:p,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],h.prototype,"density",void 0),(0,r._)([(0,u.Cb)({type:o.Z,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"maxPathLength",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"trailWidth",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],h.prototype,"flowSpeed",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],h.prototype,"trailLength",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,json:{write:!1}})],h.prototype,"smoothing",void 0),(0,r._)([(0,u.Cb)({type:g.apiValues,json:{type:g.jsonValues,read:{reader:g.read},write:{writer:g.write}}})],h.prototype,"flowRepresentation",void 0),(0,r._)([(0,c.J)({flowRenderer:"flow"})],h.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:m.Z,json:{write:!0}})],h.prototype,"authoringInfo",void 0),(0,r._)([(0,u.Cb)({type:y.I,json:{write:!0}})],h.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"trailCap",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"background",void 0),h=n=(0,r._)([(0,d.j)("esri.renderers.FlowRenderer")],h);const M=h},28092:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(43697),r=i(96674),o=i(5600),a=i(75215),s=(i(67676),i(80442),i(36030)),l=i(52011),u=i(22303);let c=class extends r.wq{constructor(){super(...arguments),this.value=null,this.label=null,this.color=null}};(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],c.prototype,"value",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n._)([(0,o.Cb)({type:u.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),c=(0,n._)([(0,l.j)("esri.renderers.support.ColormapInfo")],c);const d=c;var p,m=i(93010);let y=p=class extends r.wq{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,n=[...e].sort(((e,t)=>e[0]-t[0])).map((e=>d.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]})));return new p({colormapInfos:n})}static createFromColorramp(e){const t=(0,m.Jw)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map((e=>e.toJSON()))})}extractColormap(){return this.colormapInfos.map((({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255])).sort(((e,t)=>e[0]-t[0]))}};(0,n._)([(0,o.Cb)({type:[d],json:{write:!0}})],y.prototype,"colormapInfos",void 0),(0,n._)([(0,s.J)({rasterColormap:"raster-colormap"})],y.prototype,"type",void 0),y=p=(0,n._)([(0,l.j)("esri.renderers.RasterColormapRenderer")],y);const g=y},73622:(e,t,i)=>{i.d(t,{Z:()=>m});var n,r=i(43697),o=i(96674),a=i(22974),s=i(5600),l=(i(75215),i(36030)),u=i(71715),c=i(52011),d=i(94593);let p=n=class extends o.wq{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,d.i)(e)}clone(){return new n({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,a.d9)(this.colorRamp)})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],p.prototype,"altitude",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],p.prototype,"azimuth",void 0),(0,r._)([(0,s.Cb)({types:d.V,json:{write:!0}})],p.prototype,"colorRamp",void 0),(0,r._)([(0,u.r)("colorRamp")],p.prototype,"readColorRamp",null),(0,r._)([(0,s.Cb)({type:["traditional","multi-directional"],json:{write:!0}})],p.prototype,"hillshadeType",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],p.prototype,"pixelSizePower",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],p.prototype,"pixelSizeFactor",void 0),(0,r._)([(0,s.Cb)({type:["none","adjusted"],json:{write:!0}})],p.prototype,"scalingType",void 0),(0,r._)([(0,l.J)({rasterShadedRelief:"raster-shaded-relief"})],p.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],p.prototype,"zFactor",void 0),p=n=(0,r._)([(0,c.j)("esri.renderers.RasterShadedReliefRenderer")],p);const m=p},60849:(e,t,i)=>{i.d(t,{Z:()=>g});var n,r=i(43697),o=i(96674),a=i(22974),s=i(5600),l=(i(75215),i(36030)),u=i(71715),c=i(52011),d=i(30556),p=i(75509),m=i(94593);let y=n=class extends o.wq{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.statistics=[],this.histograms=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,m.i)(e)}writeStatistics(e,t,i){e?.length&&(Array.isArray(e[0])||(e=e.map((e=>[e.min,e.max,e.avg,e.stddev]))),t[i]=e)}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=p.J[i]),p.v.read(i)}clone(){return new n({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,a.d9)(this.statistics),gamma:(0,a.d9)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,a.d9)(this.colorRamp),histograms:(0,a.d9)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,r._)([(0,s.Cb)({types:m.V,json:{write:!0}})],y.prototype,"colorRamp",void 0),(0,r._)([(0,u.r)("colorRamp")],y.prototype,"readColorRamp",null),(0,r._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"computeGamma",void 0),(0,r._)([(0,s.Cb)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],y.prototype,"dynamicRangeAdjustment",void 0),(0,r._)([(0,s.Cb)({type:[Number],json:{write:!0}})],y.prototype,"gamma",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxPercent",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],y.prototype,"minPercent",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],y.prototype,"numberOfStandardDeviations",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],y.prototype,"outputMax",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],y.prototype,"outputMin",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],y.prototype,"sigmoidStrengthLevel",void 0),(0,r._)([(0,s.Cb)({json:{type:[[Number]],write:!0}})],y.prototype,"statistics",void 0),(0,r._)([(0,s.Cb)()],y.prototype,"histograms",void 0),(0,r._)([(0,d.c)("statistics")],y.prototype,"writeStatistics",null),(0,r._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"useGamma",void 0),(0,r._)([(0,s.Cb)({type:p.v.apiValues,json:{type:p.v.jsonValues,write:p.v.write}})],y.prototype,"stretchType",void 0),(0,r._)([(0,u.r)("stretchType",["stretchType"])],y.prototype,"readStretchType",null),(0,r._)([(0,l.J)({rasterStretch:"raster-stretch"})],y.prototype,"type",void 0),y=n=(0,r._)([(0,c.j)("esri.renderers.RasterStretchRenderer")],y);const g=y},3943:(e,t,i)=>{i.d(t,{Z:()=>k});var n=i(43697),r=i(22303),o=(i(66577),i(38171)),a=i(9790),s=i(35454),l=i(96674),u=i(22974),c=i(5600),d=(i(75215),i(36030)),p=i(71715),m=i(52011),y=i(16306),g=i(80676),h=i(16050),M=i(41733),w=i(32984),f=i(89513),I=i(23847),b=i(28101),v=i(4095),A=i(77987),C=i(66643),D=(i(80442),i(65617));function j(e){for(const t of e)if("number"==typeof t)return t;return null}function T(e,t,i){for(let n=0;n<3;n++){const r=e[n];switch(r){case"symbol-value":{const e=i[n];return null!=e?e/t[n]:1}case"proportional":break;default:if(r&&t[n])return r/t[n]}}return 1}function N(e,t,i,n){switch(e){case"proportional":return i*n;case"symbol-value":return null!=t?t:i;default:return e}}async function S(e,t){if(e&&t)return(0,a.dU)(e)?async function(e,t){const n=e.symbolLayers;n&&await(0,C.Ed)(n,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){e.size="number"==typeof t[2]?t[2]:0}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=j(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=T(t,D.O,[e.width,void 0,e.height]);e.width=N(t[0],e.width,1,i),e.height=N(t[2],e.height,1,i)}(e,t);break;case"object":await async function(e,t){const{resourceSize:n,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(2134).then(i.bind(i,42134)),n=await t(e,10),{width:r,height:o,depth:a}=e,s=[r,a,o];let l=1;for(let e=0;e<3;e++){const t=s[e];if(null!=t){l=t/n[e];break}}for(let e=0;e<3;e++)null==s[e]&&(s[e]=n[e]*l);return{resourceSize:n,symbolSize:s}}(e),o=T(t,n,r);e.width=N(t[0],r[0],n[0],o),e.depth=N(t[1],r[1],n[1],o),e.height=N(t[2],r[2],n[2],o)}(e,t)}}(e,t)))}(e,t):void((0,a.cT)(e)&&function(e,t){const i=j(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}i(67760),i(99880),i(3172),new(i(13867).z)(1e3),new r.Z([128,128,128]),i(52879),new r.Z("white");var Z,L=i(94139),x=i(37898);const z=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),U=new s.X({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),B=new s.X({flow_from:"flow-from",flow_to:"flow-to"});let _=Z=class extends((0,M.W)(l.wq)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return z.has(e)?g.NL.fromJSON(e):null}readOutputUnit(e,t){return z.has(e)?g.NL.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new I.Z({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new f.Z({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new Z({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.d9)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const n=new Array,r=(0,g.Yx)(this.inputUnit,this.outputUnit),a=this.rotationVariables[0]?.rotationType||this.rotationType,s=t?(0,g.KC)(e.pixelBlock,"vector-uv",a,r):(0,g.QI)(e.pixelBlock,"vector-magdir",r);if(null==s)return n;const l=e.extent,u=null!=s.mask&&s.mask.length>0;let c=0;const d=(l.xmax-l.xmin)/s.width,p=(l.ymax-l.ymin)/s.height;for(let e=0;e<s.height;e++)for(let t=0;t<s.width;t++,c++){let r=new L.Z({x:l.xmin+t*d+d/2,y:l.ymax-e*p-p/2,spatialReference:l.spatialReference});r=(await(0,y.aX)(r))[0];const a=i.some((e=>e.intersects(r)));if((!u||s.mask[c])&&!a){const e={Magnitude:s.pixels[0][c],Direction:s.pixels[1][c]},t=new o.Z({geometry:{type:"point",x:r.x,y:r.y,spatialReference:l.spatialReference},attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),n.push(t)}}return n}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new A.Z({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new v.Z({width:0}),size:20,color:e||new r.Z([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,n=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach((i=>S(t,(0,b.PR)([i],e)))),n&&n.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach((i=>function(e,t,i){if(e&&null!=t)if((0,a.dU)(e)){const n=e.symbolLayers;n&&n.forEach((e=>{if(e&&"object"===e.type)switch(i){case"tilt":e.tilt=t;break;case"roll":e.roll=t;break;default:e.heading=t}}))}else(0,a.cT)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle=t))}(t,(0,b.cM)(i,e),i.axis)))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new h.Z(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new r.Z([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new r.Z([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new r.Z([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.28084*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new r.Z([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>2.23694*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new r.Z([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map((e=>3.6*e)),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new r.Z([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new r.Z([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new r.Z([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(e&&i){const n=(i-e)/5;t=Array.from(Array(6).keys()).map((t=>e+n*t))}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:x.Z.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map((e=>5*e)),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=x.Z.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),n=e.map(((n,r)=>{let o;if(r!==e.length-1)if(0===r)o={minValue:n,maxValue:e[r+1],symbol:i};else{const i=x.Z.fromJSON({type:"esriPMS",imageData:t[r].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});o={minValue:n,maxValue:e[r+1],symbol:i}}return new w.Z(o)}));return{defaultSymbol:i,classBreakInfos:n}}_getClassBreaks(e,t){return t.map(((t,i)=>new w.Z({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new r.Z(t))})))}};(0,n._)([(0,c.Cb)({type:String,json:{write:!0}})],_.prototype,"attributeField",void 0),(0,n._)([(0,c.Cb)({type:B.apiValues,json:{type:B.jsonValues,read:{reader:B.read},write:{writer:B.write}}})],_.prototype,"flowRepresentation",void 0),(0,n._)([(0,c.Cb)({type:["geographic","arithmetic"],json:{write:!0}})],_.prototype,"rotationType",void 0),(0,n._)([(0,c.Cb)({type:U.apiValues,json:{type:U.jsonValues,read:{reader:U.read},write:{writer:U.write}}})],_.prototype,"style",void 0),(0,n._)([(0,c.Cb)({json:{write:!0}})],_.prototype,"symbolTileSize",void 0),(0,n._)([(0,c.Cb)({type:g.NL.apiValues,json:{type:g.NL.jsonValues,write:{writer:g.NL.write}}})],_.prototype,"inputUnit",void 0),(0,n._)([(0,p.r)("inputUnit")],_.prototype,"readInputUnit",null),(0,n._)([(0,c.Cb)({type:g.NL.apiValues,json:{type:g.NL.jsonValues,read:{reader:g.NL.read},write:{writer:g.NL.write}}})],_.prototype,"outputUnit",void 0),(0,n._)([(0,p.r)("outputUnit")],_.prototype,"readOutputUnit",null),(0,n._)([(0,d.J)({vectorField:"vector-field"})],_.prototype,"type",void 0),(0,n._)([(0,c.Cb)({type:h.Z})],_.prototype,"styleRenderer",null),(0,n._)([(0,c.Cb)({type:I.Z})],_.prototype,"sizeVariables",null),(0,n._)([(0,c.Cb)({type:f.Z})],_.prototype,"rotationVariables",null),_=Z=(0,n._)([(0,m.j)("esri.renderers.VectorFieldRenderer")],_);const k=_},67058:(e,t,i)=>{i.d(t,{FI:()=>v,In:()=>b,Ob:()=>f,U0:()=>I,YD:()=>A,ol:()=>N});var n=i(22303),r=(i(30030),i(67900),i(1231)),o=i(25972),a=(i(24705),i(69237)),s=(i(32984),i(93010)),l=i(12163),u=i(44262),c=(i(10278),i(622),i(1515)),d=i(60849),p=i(81571),m=i(28092),y=(i(73622),i(16050),i(3943));const g=.25,h=c.Z.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),M=c.Z.fromJSON(s.Ms[0]),w=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function f(e,t){const{attributeTable:i,colormap:r}=e;if((0,l.LV)(e)){const t=function(e){if(!(0,l.LV)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:n}=function(e,t){let i,n;if("vector-magdir"===e)i=t[0].min,n=t[0].max;else{const e=t[0].min,r=t[0].max,o=t[1].min,a=t[1].max;i=0,n=Math.max(Math.abs(e),Math.abs(o),Math.abs(r),Math.abs(a))}return{minMagnitude:i,maxMagnitude:n}}(e.dataType,e.statistics);t=[{type:"size",field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:n}]}const i=null!=e.multidimensionalInfo?j.get(e.multidimensionalInfo.variables[0].unit):null,n=new y.Z({visualVariables:t,inputUnit:i,rotationType:"geographic"});return n.visualVariables=[...n.sizeVariables,...n.rotationVariables],n}(e);if(null!=t)return t}if(null!=r){const t=function(e){if(!(0,l.mO)(e))return null;let t;const{attributeTable:i,colormap:n}=e;if(null!=i){const e=D(i,"value"),n=C(i,null,!0);"string"===n.type&&(t={},i.features.forEach((i=>{const r=i.attributes;t[r[e.name]]=n?r[n.name]:r[e.name]})))}return m.Z.createFromColormap(n,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t,i,r){if(!(0,l.MG)(e,t))return null;const{attributeTable:o,statistics:c}=e,d=C(o,t),m=D(o,"red"),y=D(o,"green"),g=D(o,"blue"),h=new a.Z,w=[],f=new Set,I=!!(m&&y&&g);if(null!=o)o.features.forEach((e=>{const t=e.attributes[d.name];if(!f.has(e.attributes[d.name])&&null!=t){f.add(t);const i=I&&("single"===m.type||"double"===m.type)&&("single"===y.type||"double"===y.type)&&("single"===g.type||"double"===g.type)&&!o.features.some((e=>e.attributes[m.name]>1||e.attributes[y.name]>1||e.attributes[g.name]>1)),r=i?255:1;w.push(new u.Z({value:e.attributes[d.name],label:e.attributes[d.name]+"",symbol:{type:"simple-fill",style:"solid",outline:null,color:new n.Z(I?[e.attributes[m.name]*r,e.attributes[y.name]*r,e.attributes[g.name]*r,1]:[0,0,0,0])}}))}}));else if(c?.[0])for(let e=c[0].min;e<=c[0].max;e++)w.push(new u.Z({value:e,label:e.toString(),symbol:{type:"simple-fill",style:"solid",outline:null,color:new n.Z([0,0,0,0])}}));if(w.sort(((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1)),!I){const e=(0,s.Jw)(M,{numColors:w.length});w.forEach(((t,i)=>t.symbol.color=new n.Z(e[i].slice(1,4)))),h.colorRamp=M}return new p.Z({field:d.name,uniqueValueInfos:w,authoringInfo:h})}(e);if(null!=t)return t}return function(e,t){e=v(e,t?.variableName);const{bandCount:i}=e;let{bandIds:n,stretchType:r}=t||{};n?.some((e=>e>=i))&&(n=null);let o=e.statistics,a=e.histograms;i>1?(n=n?.length?n:A(e),o=null==o?null:n?.map((e=>o[e])),a=null==a?null:n?.map((e=>a[e]))):n=[0],null==r&&(r=function(e){let t="percent-clip";const{pixelType:i,dataType:n,histograms:r,statistics:o,multidimensionalInfo:a}=e,s=w.has(n)||"generic"===n&&null!=a;return"u8"!==i||"processed"!==n&&null!=r&&null!=o?"u8"===i||"elevation"===n||s?t="min-max":null!=r?t="percent-clip":null!=o&&(t="min-max"):t="none",t}(e));let s=!1;switch(r){case"none":s=!1;break;case"percent-clip":s=!a?.length;break;default:s=!o?.length}const{dataType:l}=e,u=1===n?.length&&w.has(l)?h:null,c=new d.Z({stretchType:r,dynamicRangeAdjustment:s,colorRamp:u,outputMin:0,outputMax:255,gamma:1===n?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===r?c.maxPercent=c.minPercent=g:"standard-deviation"===r&&(c.numberOfStandardDeviations=2),s||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===r?c.histograms=a:"min-max"!==r&&"standard-deviation"!==r||(c.statistics=o)),c}(e,t)}function I(e,t=!1){const i=["raster-stretch"];return(0,l.mO)(e,t)&&i.push("raster-colormap"),(0,l.MG)(e)&&i.push("unique-value"),(0,l.fI)(e,t)&&i.push("class-breaks"),(0,l.jX)(e)&&i.push("raster-shaded-relief"),(0,l.LV)(e)&&i.push("vector-field"),(0,l.aG)(e)&&i.push("flow"),i}function b(e,t,i){const n=["nearest","bilinear","cubic","majority"].find((e=>e===i?.toLowerCase()));return"Map"===t?n??"bilinear":"standard-time"===e.dataType?n??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===n||"majority"===n?n:"nearest":n??"bilinear"}function v(e,t){if(!t)return e;let i=e.statistics,n=e.histograms;const{multidimensionalInfo:r}=e;if(t&&null!=r){const e=r.variables.find((e=>e.name===t));if(e){const{statistics:t,histograms:r}=e;t?.length&&(i=t),r?.length&&(n=r)}}return o.Z.fromJSON({...e.toJSON(),statistics:i,histograms:n})}function A(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let n;if(i.length===t){const{red:e,green:t,blue:r,nir:o}=function(e){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=n.name.toLowerCase();if("red"===r)t.red=i;else if("green"===r)t.green=i;else if("blue"===r)t.blue=i;else if("nearinfrared"===r||"nearinfrared_1"===r||"nir"===r)t.nir=i;else if(n.maxWavelength&&n.minWavelength){const e=n.minWavelength,r=n.maxWavelength;null==t.blue&&e>=410&&e<=480&&r>=480&&r<=540?t.blue=i:null==t.green&&e>=490&&e<=560&&r>=560&&r<=610?t.green=i:null==t.red&&e>=595&&e<=670&&r>=660&&r<=730?t.red=i:null==t.nir&&e>=700&&e<=860&&r>=800&&r<=950&&(t.nir=i)}}return t}(i);null!=e&&null!=t&&null!=r?n=[e,t,r]:null!=o&&null!=e&&null!=t&&(n=[o,e,t])}return!n&&t>=3&&(n=[0,1,2]),n}function C(e,t,i){let n;return null!=e?(n=t?e.fields.find((e=>t.toLowerCase()===e.name.toLowerCase())):function(e){let t;for(let i=0;i<e.length;i++){const n=e[i].name.toLowerCase();if("string"===e[i].type){if(n.startsWith("class")){t=e[i];break}null==t&&(n.endsWith("name")||n.endsWith("type"))&&(t=e[i])}}return t}(e.fields),n||(i||(n=e.fields.find((e=>"string"===e.type))),n||(n=D(e,"value")))):n=new r.Z({name:"value"}),n}function D(e,t){return null==e?null:e.fields.find((e=>e.name.toLowerCase()===t))}const j=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function T(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function N(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map((e=>({value:e.value,label:e.label,symbol:e.symbol?T(e.symbol):null})))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map((e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?T(e.symbol):null})))),e}return e}},26059:(e,t,i)=>{i.d(t,{N:()=>p,g:()=>d});var n=i(3172),r=i(6570),o=i(94139),a=i(82971),s=i(25972),l=i(11282),u=i(74889);async function c(e,t,i){const c=(0,l.en)(e),{rasterFunction:d,sourceJSON:p}=t||{},m=d?JSON.stringify(d.rasterFunctionDefinition||d):null,y=(0,l.cv)({...c.query,renderingRule:m,f:"json"}),g=(0,l.lA)(y,i);e=c.path;const h=p||await(0,n.Z)(e,g).then((e=>e.data)),M=h.hasRasterAttributeTable?(0,n.Z)(`${e}/rasterAttributeTable`,g):null,w=h.hasColormap?(0,n.Z)(`${e}/colormap`,g):null,f=h.hasHistograms?(0,n.Z)(`${e}/histograms`,g):null,I=h.currentVersion>=10.3?(0,n.Z)(`${e}/keyProperties`,g):null,b=h.hasMultidimensions?(0,n.Z)(`${e}/multidimensionalInfo`,g):null,v=await Promise.allSettled([M,w,f,I,b]);let A=null;if(h.minValues&&h.minValues.length===h.bandCount){A=[];for(let e=0;e<h.minValues.length;e++)A.push({min:h.minValues[e],max:h.maxValues[e],avg:h.meanValues[e],stddev:h.stdvValues[e]})}const C=r.Z.fromJSON(h.extent),D=Math.ceil(C.width/h.pixelSizeX-.1),j=Math.ceil(C.height/h.pixelSizeY-.1),T=a.Z.fromJSON(h.spatialReference||h.extent.spatialReference),N="fulfilled"===v[0].status&&v[0].value?u.Z.fromJSON(v[0].value.data):null,S="fulfilled"===v[1].status?v[1].value?.data.colormap:null,Z="fulfilled"===v[2].status?v[2].value?.data.histograms:null,L=Z?.[0]?.counts?.length?Z:null,x="fulfilled"===v[3].status?v[3].value?.data??{}:{},z="fulfilled"===v[4].status?v[4].value?.data.multidimensionalInfo:null;z?.variables?.length&&z.variables.forEach((e=>{e.statistics?.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))}));const{defaultVariable:U,serviceDataType:B}=h;U&&U!==x.DefaultVariable&&(x.DefaultVariable=U),B&&B.includes("esriImageServiceDataTypeVector")&&!B.includes(x.DataType)&&(x.DataType=B.replace("esriImageServiceDataType",""));let _=h.noDataValue;return h.noDataValues?.length&&h.noDataValues.some((e=>e!==_))&&(_=h.noDataValues),new s.Z({width:D,height:j,bandCount:h.bandCount,extent:r.Z.fromJSON(h.extent),spatialReference:T,pixelSize:new o.Z({x:h.pixelSizeX,y:h.pixelSizeY,spatialReference:T}),pixelType:h.pixelType.toLowerCase(),statistics:A,attributeTable:N,colormap:S,histograms:L,keyProperties:x,noDataValue:_,multidimensionalInfo:z})}function d(e,t,i){return c(e,{sourceJSON:t},i)}function p(e,t,i){return c(e,{rasterFunction:t},i)}},74889:(e,t,i)=>{i.d(t,{Z:()=>f});var n,r=i(43697),o=i(66577),a=i(38171),s=i(35454),l=i(96674),u=i(22974),c=i(5600),d=(i(75215),i(71715)),p=i(52011),m=i(30556),y=i(82971),g=i(33955),h=i(1231);const M=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const i=y.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const r=e[t],o=a.Z.fromJSON(r),s=r.geometry&&r.geometry.spatialReference;null==o.geometry||s||(o.geometry.spatialReference=i);const l=r.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],n=l[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}n.push(o)}return n}writeGeometryType(e,t,i,n){if(e)return void M.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry)return void M.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,g.im)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=y.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const n=t.features[i];if(n.geometry){const t=e&&e[i];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,o=this.features,a=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((r-e)/i)));for(let e=0,t=o.length;e<t;e++)a?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[n,r],scale:[o,a]}=i;let s=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;s=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,(e=>e*o+n),(e=>r-e*a),s,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,i){let n,r;const o=[];for(let a=0,s=e.length;a<s;a++){const s=e[a];if(a>0){const e=t(s[0]),a=i(s[1]);e===n&&a===r||(o.push([e-n,a-r]),n=e,r=a)}else n=t(s[0]),r=i(s[1]),o.push([n,r])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,g.oU)(e)?e.rings:e.paths,r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],a=this._quantizePoints(o,t,i);a&&r.push(a)}return r.length>0?((0,g.oU)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,g.oU)(e)?e.rings:e.paths;let a,s;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(a+=r[0],s+=r[1]):(a=r[0],s=r[1]),r[0]=t(a),r[1]=i(s)}}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let a,s;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(a+=n[0],s+=n[1]):(a=n[0],s=n[1]),n[0]=t(a),n[1]=i(s)}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,c.Cb)({type:[a.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,r._)([(0,d.r)("features")],w.prototype,"readFeatures",null),(0,r._)([(0,c.Cb)({type:[h.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,r._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:M.read}}})],w.prototype,"geometryType",void 0),(0,r._)([(0,m.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,r._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,r._)([(0,c.Cb)({types:o.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,r._)([(0,d.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,r._)([(0,c.Cb)({type:y.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,r._)([(0,m.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,r._)([(0,c.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,r._)([(0,p.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const f=w},79681:(e,t,i)=>{i.d(t,{Z:()=>f});var n,r=i(43697),o=i(66577),a=i(92835),s=i(60235),l=i(96674),u=i(22974),c=i(92604),d=i(5600),p=(i(75215),i(52011)),m=i(30556),y=i(33955),g=i(98974),h=i(45663),M=i(94139);let w=n=class extends l.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,y.Ji)(e),t[i]=e.toJSON())}get renderingRule(){return(0,s.Mr)(c.Z.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._get("rasterFunction")}set renderingRule(e){(0,s.Mr)(c.Z.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0}),this._set("rasterFunction",e)}clone(){return new n((0,u.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,r._)([(0,d.Cb)({types:o.qM,json:{read:y.im}})],w.prototype,"geometry",void 0),(0,r._)([(0,m.c)("geometry")],w.prototype,"writeGeometry",null),(0,r._)([(0,d.Cb)({type:g.Z,json:{write:!0}})],w.prototype,"mosaicRule",void 0),(0,r._)([(0,d.Cb)({type:h.Z})],w.prototype,"renderingRule",null),(0,r._)([(0,d.Cb)({type:h.Z,json:{write:!0,name:"renderingRule"}})],w.prototype,"rasterFunction",void 0),(0,r._)([(0,d.Cb)({type:M.Z,json:{write:!0}})],w.prototype,"pixelSize",void 0),(0,r._)([(0,d.Cb)({json:{write:!0}})],w.prototype,"raster",void 0),(0,r._)([(0,d.Cb)({type:a.Z,json:{read:{source:"time"},write:{target:"time"}}})],w.prototype,"timeExtent",void 0),w=n=(0,r._)([(0,p.j)("esri.rest.support.ImageHistogramParameters")],w);const f=w},32163:(e,t,i)=>{i.d(t,{eZ:()=>u});var n=i(51773),r=i(35671),o=i(84649),a=(i(63801),i(48074),i(38745),i(9190)),s=(i(10214),i(71423),i(44951),i(422)),l=i(29986);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:u},m){if(!i)return null;const g=function(e,t){const i=t?.visibleFieldNames;return function(e,t){const i=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===i&&(e=e.slice()),e.sort(d),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new s.Z({fieldName:t.name,isEditable:(0,r.Hp)(t,e),label:t.alias,format:p(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!g.length)return null;const h=function(e){const t=(0,r.O5)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),M=[new a.Z,new o.Z];return new n.Z({title:h,content:M,fieldInfos:g})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,r.Fv)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.Z({digitSeparator:!0,places:0});case"double":return new l.Z({digitSeparator:!0,places:2});case"date":return new l.Z({dateFormat:"long-month-day-year"});default:return"string"===e.type&&(0,r.Ec)(e.name)?new l.Z({digitSeparator:!0,places:0}):null}}function m(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>c});var t=r(20102),n=r(17452),l=r(66677),s=r(52104),i=r(84230),o=r(87344),y=r(96187);const u={FeatureLayer:!0,SceneLayer:!0};async function c(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.Qc)(e);if(null==r&&(r=await async function(e,a){const r=await(0,y.T)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":f(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&f(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&r.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,a)),null==r)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let m;const b={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(c){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,a){return(await(0,y.T)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,y.T)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,y.T)(r.url.path,{customParameters:a});if(m="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=b[c]}const w="FeatureServer"===c,h={parsedUrl:r,Constructor:null,layerOrTableId:w?d:void 0,sublayerIds:null,tableIds:null};if(u[m]&&null==d){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await(0,s.V)(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await(0,y.T)(e,{customParameters:r});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,c,a);w&&(h.sublayerInfos=r.layerInfos,h.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(h.sublayerIds=r.layerIds,h.tableIds=r.tableIds):w&&(h.layerOrTableId=r.layerIds[0]??r.tableIds[0],h.sourceJSON=r.layerInfos?.[0]??r.tableInfos?.[0])}return h.Constructor=await async function(e){return(0,o.T[e])()}(m),h}(e.url,a),m={...e.properties,url:e.url};if(!c.sublayerIds)return null!=c.layerOrTableId&&(m.layerId=c.layerOrTableId,m.sourceJSON=c.sourceJSON),new c.Constructor(m);const b=new(0,(await Promise.all([r.e(163),r.e(4609),r.e(9059)]).then(r.bind(r,40504))).default)({title:c.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,d(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,d(a.tableInfos,r));e.tables.add(n)}))}(b,c,m),b}function d(e,a){return e?e.find((e=>e.id===a)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(l);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(8153)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(889),r.e(5243),r.e(37),r.e(4202)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(3025)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(9717)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(6569),r.e(223),r.e(1596)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(3582)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3398)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8024)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9059)]).then(r.bind(r,40504))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(4599),r.e(6610),r.e(4885),r.e(1194)]).then(r.bind(r,90444))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(223),r.e(6610),r.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>c});var t=r(20102),n=r(17452),l=r(66677),s=r(52104),i=r(84230),o=r(87344),y=r(96187);const u={FeatureLayer:!0,SceneLayer:!0};async function c(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.Qc)(e);if(null==r&&(r=await async function(e,a){const r=await(0,y.T)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":f(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&f(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&r.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,a)),null==r)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let m;const b={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(c){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,a){return(await(0,y.T)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,y.T)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,y.T)(r.url.path,{customParameters:a});if(m="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=b[c]}const w="FeatureServer"===c,h={parsedUrl:r,Constructor:null,layerOrTableId:w?d:void 0,sublayerIds:null,tableIds:null};if(u[m]&&null==d){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await(0,s.V)(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await(0,y.T)(e,{customParameters:r});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,c,a);w&&(h.sublayerInfos=r.layerInfos,h.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(h.sublayerIds=r.layerIds,h.tableIds=r.tableIds):w&&(h.layerOrTableId=r.layerIds[0]??r.tableIds[0],h.sourceJSON=r.layerInfos?.[0]??r.tableInfos?.[0])}return h.Constructor=await async function(e){return(0,o.T[e])()}(m),h}(e.url,a),m={...e.properties,url:e.url};if(!c.sublayerIds)return null!=c.layerOrTableId&&(m.layerId=c.layerOrTableId,m.sourceJSON=c.sourceJSON),new c.Constructor(m);const b=new(0,(await Promise.all([r.e(163),r.e(4609),r.e(9059)]).then(r.bind(r,40504))).default)({title:c.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,d(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,d(a.tableInfos,r));e.tables.add(n)}))}(b,c,m),b}function d(e,a){return e?e.find((e=>e.id===a)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(l);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(8153)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(889),r.e(5243),r.e(37),r.e(4202)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(3025)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(9717)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(6569),r.e(223),r.e(1596)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(3582)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3398)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8024)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9059)]).then(r.bind(r,40504))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(4599),r.e(6610),r.e(4885),r.e(1194)]).then(r.bind(r,90444))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(223),r.e(6610),r.e(8579),r.e(4885),r.e(4578)]).then(r.bind(r,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(163),r.e(889),r.e(1537)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(1423),r.e(853)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(163),r.e(4998)]).then(r.bind(r,21786))).default,LinkChartLayer:async()=>(await Promise.all([r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(1534),r.e(3194),r.e(5647)]).then(r.bind(r,28552))).default,MapImageLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(5983),r.e(1423),r.e(3887),r.e(4599),r.e(8855),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(9370)]).then(r.bind(r,62128))).default,MediaLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4828)]).then(r.bind(r,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(8263)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(6237)]).then(r.bind(r,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(17)]).then(r.bind(r,76604))).default,PointCloudLayer:async()=>(await Promise.all([r.e(163),r.e(1773),r.e(889),r.e(4266),r.e(6138)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(1423),r.e(1007)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(889),r.e(5243),r.e(37),r.e(7476)]).then(r.bind(r,57476))).default,StreamLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(5242)]).then(r.bind(r,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(5983),r.e(1423),r.e(3887),r.e(3712),r.e(2637)]).then(r.bind(r,30359))).default,TileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(5983),r.e(1423),r.e(3887),r.e(4599),r.e(223),r.e(8855),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(223),r.e(4325),r.e(9805),r.e(5481)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(163),r.e(1773),r.e(889),r.e(7528)]).then(r.bind(r,28865))).default,WFSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(7153),r.e(6569),r.e(5983),r.e(1423),r.e(3887),r.e(6404),r.e(3155)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1773),r.e(2462)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(2594)]).then(r.bind(r,72594))).default,WebTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971)]).then(r.bind(r,16199))).default}},96187:(e,a,r)=>{r.d(a,{T:()=>n});var t=r(3172);async function n(e,a){const{data:r}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
|