@arcgis/core 4.31.0-next.20240713 → 4.31.0-next.20240715

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.
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},90237:(e,t,r)=>{"use strict";function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}r.d(t,{_:()=>n,a:()=>s}),"function"==typeof SuppressedError&&SuppressedError},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637),s=r(18357);const o={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.31.0";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.$}/assets`}o.defaultAssetsPath=o.assetsPath}},69622:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(51447),s=r(71511),o=r(53966),i=r(97768),a=r(56454),c=r(16649),l=r(45873),u=r(96156),f=(r(44208),r(4718)),d=r(93687),h=r(11406),p=r(35666),g=r(62788),y=r(47328);class m extends h.T{constructor(e,t){super(),this.propertyName=e,this.metadata=t,this._accessed=null,this._handles=null,this.flags=0,this.flags=y.i.Dirty|(t.nonNullable?y.i.NonNullable:0)|(t.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===t.get?y.i.DepTrackingInitialized:0)|(void 0===t.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){(0,g.gc)(this);const t=e.store,r=this.propertyName,n=this.flags,s=t.get(r);if(n&y.i.Computing)return s;if(~n&y.i.Dirty&&t.has(r))return s;this.flags|=y.i.Computing;const o=e.host;let i;n&y.i.AutoTracked?i=(0,g.a)(this,this.metadata.get,o):((0,g.Xr)(o,this),i=this.metadata.get.call(o)),t.set(r,i,p.Gr.COMPUTED);const a=t.get(r);return a===s?this.flags&=~y.i.Dirty:(0,g.F_)(this.commit,this),this.flags&=~y.i.Computing,a}onObservableAccessed(e){e!==this&&(this._accessed??=new Set,this._accessed.add(e))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=y.i.DepTrackingInitialized,null!=this._accessed&&(this._handles??=[],this._accessed.forEach((e=>{this._handles.push(e.observe(this))})),this._accessed.clear())}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}}class b{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new b;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,f.o8)(r))})),t}get(e){return this._values.get(e)}originOf(){return p.Gr.USER}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}forEach(e){this._values.forEach(e)}}function _(e,t,r){return void 0!==e}function v(e,t,r,n){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new b,this._origin=p.Gr.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new m(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach((e=>e.destroy()))}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,g.gc)(t);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,p.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(_(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);_(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const n=this.propertiesByName.get(t);if(!_(n))return"";const s=new Set,o=(0,g.a)({onObservableAccessed:e=>s.add(e),onTrackingEnd:()=>{}},(()=>n.metadata.get?.call(e)));let i=`${r}${e.declaredClass.split(".").pop()}.${t}: ${o}\n`;if(0===s.size)return i;r+=" ";for(const e of s)e instanceof m&&(i+=`${r}${e.propertyName}: undefined\n`);return i}setAtOrigin(e,t,r){const n=this.propertiesByName.get(e);if(_(n))return this._setAtOrigin(n,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOverride(e){const t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}const s=r.metadata.set;s?s.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,p.aB)(e)}getDefaultOrigin(){return(0,p.OL)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:p.Gr.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const n=this.store,s=e.propertyName;n.has(s,r)&&(0,f.aI)(t,n.get(s))&&~e.flags&y.i.Overridden&&r===n.originOf(s)||(e.invalidate(),n.set(s,t,r),e.commit(),(0,g.fE)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new d.A(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var O=r(47821);var k;!function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"}(k||(k={}));var S,E,T=r(14012),N=r(10107),j=r(40608);function P(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const C=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class M{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:n}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const s=this;class o extends s{constructor(...e){super(...e),this.inherited=null,n&&n.apply(this,e)}}(0,u.tD)(o.prototype);for(const t in e){const r=e[t];o.prototype[t]="function"==typeof r?function(...e){const n=this.inherited;let o;this.inherited=function(...e){if(s.prototype[t])return s.prototype[t].apply(this,e)};try{o=r.apply(this,e)}catch(e){throw this.inherited=n,e}return this.inherited=n,o}:e[t]}for(const e in t){const r=P(t[e]);(0,N.MZ)(r)(o.prototype,e)}return(0,j.$)(r)(o)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===M)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){const e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[C]=(0,i.pR)(this[C])}destroy(){this.destroyed||((0,T.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===l.v.DESTROYED||!1}commitProperty(e){(0,c.Jt)(this,e)}get(e){return(0,n.eO)(o.A.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),(0,c.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,O.h)(this,e,t),this}watch(e,t,r){return(0,T.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove()}else(this[C]??=new s.A).add(e,t)}removeHandles(e){this[C]?.remove(e)}removeAllHandles(){this[C]?.removeAll()}removeHandlesReference(e){this[C]?.removeReference(e)}hasHandles(e){return!0===this[C]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}S=C,E=I},98291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93687);function s(e){e.length=0}class o{constructor(e=50,t=50){this._pool=new n.A(Array,void 0,s,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return i.acquire()}static release(e){return i.release(e)}static prune(){i.prune()}}const i=new o(100)},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4718),s=r(53966),o=r(79907);class i extends o.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}})))}}catch(e){throw s.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},71511:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5479);class s{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if((0,n.xZ)(e)){const r=this._getOrCreateGroup(t);for(const t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(o(e))}remove(e){if("string"!=typeof e&&(0,n.xZ)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(i(this._getGroup(e)),this._groups.delete(o(e)),this):this}removeAll(){return this._groups.forEach(i),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(o(e),t),t}_getGroup(e){return this._groups.get(o(e))}}function o(e){return e||"_default_"}function i(e){for(const t of e)t instanceof s?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof s)}},25482:(e,t,r)=>{"use strict";r.d(t,{oY:()=>m,Te:()=>p,Wj:()=>y});var n=r(90237),s=r(69622),o=r(4718),i=r(35666);class a{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new a;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??i.Gr.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===i.Gr.DEFAULTS){const t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new c(t,r))}delete(e,t){null!=(t=this._normalizeOrigin(t))&&this._values.get(e)?.origin!==t||this._values.delete(e)}has(e,t){return null!=(t=this._normalizeOrigin(t))?this._values.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===i.Gr.DEFAULTS?e:i.Gr.USER}}class c{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),f=r(88620),d=r(49422),h=r(40608);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,f.oY)(this),r=t.store,n=new a;t.store=n,(0,l.k)(t,r,n)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,d.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,n._)([(0,h.$)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}function y(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}let m=class extends(p(s.A)){};m=(0,n._)([(0,h.$)("esri.core.JSONSupport")],m)},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(92602),s=(r(44208),r(799));const o={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,s.Wm)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",a)}_matchLevel(e){const t=n.A.log.level||"warn";return o[this._parentWithMember("level",t)]<=o[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}function a(e,t,...r){console[e](`[${t}]`,...r)}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},91869:(e,t,r)=>{"use strict";function n(e,t){for(const r of e.values())if(t(r))return!0;return!1}function s(e,t,r){const n=e.get(t);if(void 0!==n)return n;const s=r();return e.set(t,s),s}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>n,tE:()=>s})},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(93637);class s{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},93687:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t,r,n=1,s=0){this._ctor=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s;for(let e=0;e<s;e++)this._pool[e]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n.test.disabled)t=new this._ctor;else{if(0===this._pool.length){const e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=new this._ctor}t=this._pool.pop()}return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&!n.test.disabled&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){const e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}n.test={disabled:!1}},61604:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort(((e,t)=>e-t))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((e,t)=>e+t),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}},3694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n,s=r(4576);!function(e){const t=(e,t,r,n)=>{let s=t,o=t;const i=r>>>1,a=e[s-1];for(;o<=i;){o=s<<1,o<r&&n(e[o-1],e[o])<0&&++o;const t=e[o-1];if(n(t,a)<=0)break;e[s-1]=t,s=o}e[s-1]=a},r=(e,t)=>e<t?-1:e>t?1:0;e.sort=function(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o);const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o)}},e.iterableSort=function*(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o),yield;const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o),yield}}}(n||(n={}));const o=n;class i{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.vW,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>a(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){const t=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];e(n)&&t.push(n)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){const r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,a(this)}pop(){if(0===this.length)return;const e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){const t=(0,s.qh)(this.data,e,this.length,this._hint);if(-1!==t)return this.data.splice(t,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex((0,s.qh)(this.data,e,this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,s.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;const r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){o.sort(this.data,0,this.length,e)}iterableSort(e){return o.iterableSort(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){for(let r=0;r<this.length;++r){const n=this.data[r];if(e.call(t,n,r))return n}}filterInPlace(e,t){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];e.call(t,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){const{data:r,length:n}=this;for(let s=0;s<n;++s)e.call(t,r[s],s,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=e.call(t,this.data[n],n,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){const t=this.length,r=this.data;for(let n=0;n<t;++n)if(r[n]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}function a(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67076:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(79907);class s extends n.A{constructor(e,t,r){super(e,t,r)}}s.prototype.type="warning"},11406:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(36563),s=r(4576);class o{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,s.TF)(this._observers,this._observer)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,n=!1;const s=t.length;for(let o=0;o<s;++o){const s=t[o];if(s.destroyed)n=!0;else if(s===e){r=!0;break}}return r||(t.push(e),n&&this._removeDestroyedObservers()),new o(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let n=0;n<t;++n){for(;n+r<t&&e[n+r].destroyed;)++r;if(r>0){if(!(n+r<t))break;e[n]=e[n+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,n.hA)()},35666:(e,t,r)=>{"use strict";var n;r.d(t,{AU:()=>s,Gr:()=>n,OL:()=>i,aB:()=>o,in:()=>a}),function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"}(n||(n={}));const s=n.USER+1;function o(e){switch(e){case"defaults":return n.DEFAULTS;case"service":return n.SERVICE;case"portal-item":return n.PORTAL_ITEM;case"web-scene":return n.WEB_SCENE;case"web-map":return n.WEB_MAP;case"link-chart":return n.LINK_CHART;case"user":return n.USER;default:return null}}function i(e){switch(e){case n.DEFAULTS:return"defaults";case n.SERVICE:return"service";case n.PORTAL_ITEM:return"portal-item";case n.WEB_SCENE:return"web-scene";case n.WEB_MAP:return"web-map";case n.LINK_CHART:return"link-chart";case n.USER:return"user"}}function a(e){return i(e)}},56454:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},10107:(e,t,r)=>{"use strict";r.d(t,{MZ:()=>c,Qp:()=>u,rM:()=>l});var n=r(53966),s=r(56507),o=r(16649),i=r(96156),a=r(47821);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,i.z4)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&n.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const f=e.aliasOf;if(f){const e="string"==typeof f?f:f.source,t="string"==typeof f?null:!0===f.overridable;let n;l.dependsOn=[e],l.get=function(){let t=(0,o.Jt)(this,e);if("function"==typeof t){n||(n=e.split(".").slice(0,-1).join("."));const r=(0,o.Jt)(this,n);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.h)(this,e,t)})}const d=e.type,h=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,s.Zu)(e))return(0,s.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const n=r;if((0,s.EK)(n))return 0===t?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),t);if(1===t)return(0,s.eC)(n);if(t>1)return(0,s.e6)(n,t);const o=e;return o.from?o.from:(0,s.dp)(o)}(d):h&&(Array.isArray(h)?l.cast=(0,s.wB)((0,s.aq)(h[0])):l.cast=(0,s.aq)(h))),(0,i.CX)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const n=(0,i.z4)(e,r);n.json||(n.json={});let s=n.json;return void 0!==t&&(s.origins||(s.origins={}),s.origins[t]||(s.origins[t]={}),s=s.origins[t]),s}function u(e,t){return r=>{let n=+e(r);return null!=t.step&&(n=Math.round(n/t.step)*t.step),null!=t.min&&(n=Math.max(t.min,n)),null!=t.max&&(n=Math.min(t.max,n)),n}}},40608:(e,t,r)=>{"use strict";r.d(t,{$:()=>f}),r(44208);var n=r(53966),s=r(56454),o=r(45873),i=r(96156),a=r(62788),c=r(51822);const l=new Set,u=new Set;function f(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,h(t);const r=[],n=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!l.has(o.initialize)&&(l.add(o.initialize),r.push(o.initialize)),o.hasOwnProperty("destroy")&&!u.has(o.destroy)&&(u.add(o.destroy),n.push(o.destroy)),o=Object.getPrototypeOf(o);l.clear(),u.clear();const a=class extends t{constructor(...e){if(super(...e),this.constructor===a&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),n.length){let e=!1;const t=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<n.length;e++)n[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};a.__accessorMetadata__=(0,i.tD)(t.prototype),a.prototype.declaredClass=e;const c=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(a,"name",{value:c,configurable:!0}),a}}function d(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;(0,a.gc)(r);const n=t.store;return n.has(e)?n.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function h(e){const t=e.prototype,r=(0,i.tD)(t),n={};for(const e of Object.getOwnPropertyNames(r)){const t=r[e];(0,c.qk)(t),n[e]={enumerable:!0,configurable:!0,get:d(e,t),set(r){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&t.readOnly?p("read-only",e):n.lifecycle===o.v.CONSTRUCTED&&t.constructOnly?p("construct-only",e):void n.set(e,r)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(e.prototype,n)}const p=(e,t)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},76953:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(35666);function s(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),n.Gr.DEFAULTS)}));const s=e.metadata;Object.keys(s).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),n.Gr.DEFAULTS)}))}},56507:(e,t,r)=>{"use strict";r.d(t,{EK:()=>E,GB:()=>l,GX:()=>c,MB:()=>T,Nd:()=>M,PZ:()=>m,Uv:()=>P,Vr:()=>u,Zu:()=>I,_e:()=>k,aq:()=>N,dp:()=>v,e6:()=>S,eC:()=>A,gK:()=>C,jz:()=>j,wB:()=>w}),r(44208);var n=r(53966),s=r(91869);const o=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function i(e){return null==e?e:new Date(e)}function a(e){return null==e?e:!!e}function c(e){return null==e?e:e.toString()}function l(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function u(e){return null==e?e:Math.round(parseFloat(e))}function f(e){return null}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function h(e,t){return null!=t&&e&&!(t instanceof e)}function p(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function y(e,t){return!!d(t)&&(o().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+b(e)+"'"),!0)}function m(e,t){return null==t?t:p(e)?function(e,t){if(!t?.constructor||!p(t.constructor))return y(e,t)?t:new e(t);const r=g(e.prototype.itemType),n=g(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(y(e,t),t):new e(t):t}(e,t):h(e,t)?y(e,t)?t:new e(t):t}function b(e){return e?.prototype?.declaredClass||"unknown"}const _=new WeakMap;function v(e,t){const r=function(e){switch(e){case Number:return l;case j:return u;case Boolean:return a;case String:return c;case Date:return i;case P:return f;default:return(0,s.tE)(_,e,(()=>m.bind(null,e)))}}(e);return 1===arguments.length?r:r(t)}function w(e,t,r){return 1===arguments.length?w.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,r))):[e(t,r)]:t}function A(e,t){return 1===arguments.length?w((t=>v(e,t))):w((t=>v(e,t)),t)}function O(e,t,r){return 0!==t&&Array.isArray(r)?r.map((r=>O(e,t-1,r))):e(r)}function k(e,t,r){if(2===arguments.length)return r=>k(e,t,r);if(!r)return r;r=O(e,t,r);let n=t,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let e=0;e<n;e++)r=[r];return r}function S(e,t,r){return 2===arguments.length?k((t=>v(e,t)),t):k((t=>v(e,t)),t,r)}function E(e){return!!Array.isArray(e)&&!e.some((t=>{const r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)}))}function T(e,t){if(2===arguments.length)return T(e).call(null,t);const r=new Set,n=e.filter((e=>"function"!=typeof e)),s=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||r.add(t);let i=null,a=null;return(e,t)=>{if(null==e)return e;const c=typeof e,l="string"===c||"number"===c;return l&&(r.has(e)||s.some((e=>"string"===c&&e===String||"number"===c&&e===Number)))||"object"===c&&s.some((t=>!h(e,t)))?e:(l&&n.length?(i||(i=n.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&s.length?(a||(a=s.map((e=>b(e))).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):o().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function N(e,t){if(2===arguments.length)return N(e).call(null,t);const r={},n=[],s=[];for(const t in e.typeMap){const o=e.typeMap[t];r[t]=v(o),n.push(b(o)),s.push(t)}const i=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!h(e.base,t))return t;if(null==t)return t;const n=c(t)||e.defaultKeyValue,s=r[n];if(!s)return o().error("Accessor#set",`Invalid property value, value needs to be one of ${i()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!h(e.typeMap[n],t))return t;if("string"==typeof e.key&&!d(t)){const r={};for(const n in t)n!==e.key&&(r[n]=t[n]);return s(r)}return s(t)}}class j{}class P{}const C={native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})};function I(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function M(e){switch(e.type){case"native":return v(e.value);case"array":return w(M(e.value));case"one-of":return function(e){let t=null;return(r,n)=>$(r,e)?r:(null==t&&(t=x(e)),o().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}(e);default:return null}}function x(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case j:return"integer";case Date:return"date";case P:return"null";default:return b(e.value)}case"array":return`array of ${x(e.value)}`;case"one-of":{const t=e.values.map((e=>x(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function $(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case j:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case P:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!$(e,t.value)));case"one-of":return t.values.some((t=>$(e,t)))}}},51822:(e,t,r)=>{"use strict";r.d(t,{xF:()=>u,N5:()=>f,k4:()=>d,qk:()=>m});var n=r(56507),s=r(90360);function o(e){if(e.json||(e.json={}),a(e.json),c(e.json),i(e.json),e.json.origins)for(const t in e.json.origins)a(e.json.origins[t]),c(e.json.origins[t]),i(e.json.origins[t]);return!0}function i(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function a(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function c(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var l=r(67124);function u(e,t){return h(e,"any",t?.origin)}function f(e,t){return h(e,"read",t?.origin)}function d(e,t){return h(e,"write",t?.origin)}function h(e,t,r){let n=e?.json;if(n?.origins&&r){let e;e="link-chart"===r?n.origins[r]&&("any"===t||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],e&&("any"===t||t in e)&&(n=e)}return n}function p(e){return e.type?g(e):y(e)}function g(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,n.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function y(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function m(e){o(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(const e in r)if(t[e]){const n=t[e];r[e].forEach((e=>{t[e]=n})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?y(e.json):e.type?g(e):y(e)}(e);if(e.json.origins)for(const r in e.json.origins){const n=e.json.origins[r],o=n.types?p(n):t;(0,s.v)(o,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),(0,l.v)(o,n)}(0,s.v)(t,e.json,!0),(0,l.v)(t,e.json)}(e))}},90360:(e,t,r)=>{"use strict";r.d(t,{C:()=>u,v:()=>l});var n=r(53966),s=r(93637),o=r(67076),i=r(96156),a=r(15903);const c=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function l(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?y(e.types):g(e.type)}(e)&&(0,s.sM)("read.reader",u(e),t))}function u(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=f(e),r=d.bind(null,t),n=e.ndimArray??0;return(e,t,s)=>{if(null==e)return e;e=r(e,s,n);let o=n,i=e;for(;o>0&&Array.isArray(i);)o--,i=i[0];if(void 0!==i)for(let t=0;t<o;t++)e=[e];return e}}(e);if(1===t)return h(e);if("type"in e&&p(e.type)){const t=e.type.prototype?.itemType?.Type,r=h("function"==typeof t?{type:t}:{types:t});return(t,n,s)=>{const o=r(t,n,s);return o?new e.type(o):o}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,n)=>{if(null==t)return t;const s=typeof t;if("object"!==s)return void c().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${s}'`);const o=new e;return o.read(t,n),o}:e.fromJSON}(e.type):function(e){let t=null;const r=e.errorContext??"type",n=e.validate;return(s,a,l)=>{if(null==s)return s;const u=typeof s;if("object"!==u)return void c().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const r in e.typeMap){const n=e.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof e.key)continue;const o=s[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=n;continue}const a=o.json?.write;if(!a?.writer){t[r]=n;continue}const c=a.target,l="string"==typeof c?c:e.key,u={};a.writer(r,u,l),u[l]&&(t[u[l]]=n)}return t}(e));const f=e.key;if("string"!=typeof f)return;const d=s[f],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){const e=`Type '${d||"unknown"}' is not supported`;return l?.messages&&s&&l.messages.push(new o.A(`${r}:unsupported`,e,{definition:s,context:l})),void c().error(e)}const p=new h;return p.read(s,l),n?n(p):p}}(e.types)}function d(e,t,r,n){return 0!==n&&Array.isArray(t)?t.map((t=>d(e,t,r,n-1))):e(t,void 0,r)}function h(e){const t=f(e);return(e,r,n)=>{if(null==e)return e;if(Array.isArray(e)){const r=[];for(const s of e){const e=t(s,void 0,n);void 0!==e&&r.push(e)}return r}const s=t(e,void 0,n);return void 0!==s?[s]:void 0}}function p(e){if(!(0,a.P)(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):y(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||p(e))}function y(e){for(const t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903:(e,t,r)=>{"use strict";function n(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>n})},67124:(e,t,r)=>{"use strict";r.d(t,{B:()=>f,v:()=>a});var n=r(49186),s=r(53966),o=r(93637),i=r(15903);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,i.P)(e.type))?t.write.writer=d:r>1?t.write.writer=function(e){return(t,r,n,s)=>{let i;if(null===t)i=null;else{i=h(t,s,e);let r=e,n=i;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let e=0;e<r;e++)i=[i]}(0,o.sM)(n,i,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,n,s)=>t&&Array.isArray(t)?l(t.filter((t=>c(t,e,s))),r,n,s):l(t,r,n,s)}(t.types[0]):t.write.writer=function(e){return(t,r,n,s)=>t?c(t,e,s)?l(t,r,n,s):void 0:l(t,r,n,s)}(t.types):t.write.writer=l}function c(e,t,r){for(const r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){const o=t.errorContext??"type",i=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new n.A(`${o}:unsupported`,i,{definition:e,context:r})),s.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(e,t,r,n){(0,o.sM)(r,u(e,n),t)}function u(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?f(e):e}function f(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function d(e,t,r,n){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map((e=>u(e,n))),"function"==typeof s.toArray&&(s=s.toArray())):s=[u(e,n)],(0,o.sM)(r,s,t)}function h(e,t,r){return 0!==r&&Array.isArray(e)?e.map((e=>h(e,t,r-1))):u(e,t)}},16649:(e,t,r)=>{"use strict";r.d(t,{Jt:()=>a,RP:()=>i,t2:()=>c});var n=r(88620);function s(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const s=(0,n.oY)(t);return(0,n.yh)(s,r)?s.get(r):t[r]}function o(e,t,r){if(null==e)return e;const n=s(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:o(n,t,r+1)}function i(e,t,r=0){return"string"!=typeof t||t.includes(".")?o(e,(0,n.AH)(t),r):s(t,e)}function a(e,t){return i(e,t)}function c(e,t){return void 0!==i(t,e)}},45873:(e,t,r)=>{"use strict";var n;r.d(t,{v:()=>n}),function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"}(n||(n={}))},96156:(e,t,r)=>{"use strict";r.d(t,{CX:()=>a,tD:()=>o,z4:()=>i});var n=r(4718),s=r(88620);function o(e){let t=e.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(const e in t)t[e]=(0,n.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function i(e,t){const r=o(e);let n=r[t];return n||(n=r[t]={}),n}function a(e,t){return(0,s.h1)(e,t,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(e){return c.test(e)?"replace":"merge"}},45917:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,t:()=>f});var n=r(16649),s=r(88620),o=r(51822);function i(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;const s=e.read.source;if("string"==typeof s){if(s===t)return!0;if(s.includes(".")&&0===s.indexOf(t)&&(0,n.t2)(s,r))return!0}else for(const e of s){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,n.t2)(e,r))return!0}return!1}function a(e,t,r,n,s){let a=(0,o.N5)(t[r],s);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,o.N5)(t[c],s),i(a,r,n)&&(e[c]=!0)}function c(e,t,r,n){const s=r.metadata,i=(0,o.xF)(s[t],n),a=i?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,n):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const i=(0,s.oY)(e),u=i.metadata,f={};for(const e of Object.getOwnPropertyNames(t))a(f,u,e,t,r);i.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(f)){const a=(0,o.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(t,c):t[s],a?.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&i.set(s,l)}if(!r||!r.ignoreDefaults){i.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))f[t]||c(e,t,i,r)}i.setDefaultOrigin("user")}function f(e,t,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach((t=>{"warning"!==t.type||e.loaded?n?.messages&&n.messages.push(t):e.loadWarnings.push(t)}))}},47821:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(49186),s=r(44208),o=(r(53966),r(16649));function i(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))i(e,r,t[r]);else{if(t.includes(".")){const n=t.split("."),s=n.splice(-1,1)[0];return void i((0,o.Jt)(e,n),s,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,s.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new n.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788:(e,t,r)=>{"use strict";r.d(t,{F_:()=>h,Xr:()=>_,a:()=>d,fE:()=>m,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),o=r(47328);const i={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},a=[];let c=i;function l(e){c.onObservableAccessed(e)}let u=!1,f=!1;function d(e,t,r){if(u)return p(e,t,r);let n=null;return g(e),n=t.call(r),y(),n}function h(e,t){return d(i,e,t)}function p(e,t,r){const s=u;u=!0,g(e);let o=null;try{o=t.call(r)}catch(e){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),u=s,o}function g(e){c=e,a.push(e)}function y(){const e=a.length;if(e>1){const t=a.pop();c=a[e-2],t.onTrackingEnd()}else if(1===e){const e=a.pop();c=i,e.onTrackingEnd()}else c=i}function m(e,t){if(t.flags&o.i.DepTrackingInitialized)return;const r=f;f=!1,t.flags&o.i.AutoTracked?p(t,t.metadata.get,e):_(e,t),f=r}const b=[];function _(e,t){t.flags&o.i.ExplicitlyTracking||(t.flags|=o.i.ExplicitlyTracking,p(t,(()=>{const r=t.metadata.dependsOn||b;for(const t of r)if("string"!=typeof t||t.includes(".")){const r=(0,s.AH)(t);for(let t=0,n=e;t<r.length&&null!=n&&"object"==typeof n;++t)n=v(n,r[t],t!==r.length-1)}else v(e,t,!1)})),t.flags&=~o.i.ExplicitlyTracking)}function v(e,t,r){const n="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(n,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=(0,s.oY)(e);if(o){const t=o.propertiesByName.get(n);t&&(l(t),m(e,t))}return r?e[n]:void 0}},47328:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"}(n||(n={}))},71429:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});class n{constructor(e){this._accessed=new Set,this._handles=[],this._observerObject=new s(e),o.register(this,new WeakRef(this._observerObject),this)}destroy(){o.unregister(this._observerObject),this._accessed.clear(),this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){this._accessed.add(e)}onTrackingEnd(){const e=this._handles,t=this._observerObject;this._accessed.forEach((r=>{e.push(r.observe(t))})),this._accessed.clear()}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const o=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function i(){}},80559:(e,t,r)=>{"use strict";r.d(t,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),o=r(71429);let i=!1;const a=[];function c(e,t){let r=new o.r((function n(){if(!r||c)return;if(i)return void f(n);const o=a;r.clear(),i=!0,c=!0,a=(0,s.a)(r,e),c=!1,i=!1,t(a,o),d()})),a=null,c=!1;return c=!0,a=(0,s.a)(r,e),c=!1,(0,n.hA)((function(){r&&(r.destroy(),r=null,a=null)}))}function l(e,t){let r=new o.r((function(){t(i,a)})),i=null;function a(){return r?(r.clear(),i=(0,s.a)(r,e),i):null}return a(),(0,n.hA)((function(){r&&(r.destroy(),r=null),i=null}))}function u(e){let t=new o.r((function n(){t&&!r&&(i?f(n):(t.clear(),i=!0,r=!0,(0,s.a)(t,e),r=!1,i=!1,d()))})),r=!1;return r=!0,(0,s.a)(t,e),r=!1,(0,n.hA)((function(){t&&(t.destroy(),t=null)}))}function f(e){a.includes(e)||a.unshift(e)}function d(){for(;a.length;)a.pop()()}},88620:(e,t,r)=>{"use strict";r.d(t,{AH:()=>l,h1:()=>a,oY:()=>o,qg:()=>f,yh:()=>i});var n=r(36563),s=r(4718);function o(e){return e.__accessor__??null}function i(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return c(e,t,r?{policy:r,path:""}:null)}function c(e,t,r){return t?Object.keys(t).reduce(((e,n)=>{const o=n;let i=null,a="merge";if(r&&(i=r.path?`${r.path}.${n}`:n,a=r.policy(i)),"replace"===a)return e[o]=t[o],e;if("replace-arrays"===a&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=(0,s.o8)(t[o]),e;let l=e[o],u=t[o];if(l===u)return e;if(Array.isArray(u)||Array.isArray(e))l=l?Array.isArray(l)?e[o]=l.concat():e[o]=[l]:e[o]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((e=>{l.includes(e)||l.push(e)})));else if(u&&"object"==typeof u)if(r){const t=r.path;r.path=i,e[o]=c(l,u,r),r.path=t}else e[o]=c(l,u,null);else e.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(e[o]=u);return e}),e||{}):e}function l(e){return Array.isArray(e)?e:e.split(".")}function u(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function f(e,t,r,s){const o=function(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(...u(r));return t}return u(e)}(t);if(1!==o.length){const t=o.map((t=>s(e,t,r)));return(0,n.vE)(t)}return s(e,o[0],r)}},14012:(e,t,r)=>{"use strict";r.d(t,{iS:()=>A,wB:()=>E,Cn:()=>T});var n=r(98291),s=r(36563),o=r(4718),i=r(93687);class a extends i.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){const t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var c,l,u=r(11932),f=r(24326),d=r(16649),h=r(45873),p=r(80559),g=r(88620);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class y{constructor(){this.uid=(0,f.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(e,t,r,n,s){return this.pool.acquire(c.Untracked,e,t,r,n,s,o.aI)}static acquireTracked(e,t,r,n){return this.pool.acquire(c.Tracked,e,t,r,null,null,n)}notify(e,t){this.type===c.Untracked?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,n,s,o,i){this.uid=(0,f.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=n,this.target=s,this.path=o,this.equals=i}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,f.c)(),this.removed=!0}}y.pool=new a(y);const m=new n.A,b=new Set;let _;function v(e){b.delete(e),b.add(e),_||(_=(0,u._)(O))}function w(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function A(e){for(const t of b.values())t.target===e&&(t.removed=!0)}function O(){let e=10;for(;_&&e--;){_=null;const e=k(),t=m.acquire();for(const r of e){const e=r.uid;w(r),e===r.uid&&r.removed&&t.push(r)}for(const e of b)e.removed&&(t.push(e),b.delete(e));for(const e of t)y.pool.release(e);m.release(t),m.release(e),S.forEach((e=>e()))}}function k(){const e=m.acquire();e.length=b.size;let t=0;for(const r of b)e[t]=r,++t;return b.clear(),e}const S=new Set;function E(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?n?function(e,t,r){const n=(0,g.qg)(e,t,r,((e,t,r)=>{let s=!1;return(0,p.mJ)((()=>(0,d.RP)(e,t)),((i,a)=>{e.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,o.aI)(a,i)||r.call(e,i,a,t,e),s=!1):n.remove()}))}));return n}(e,t,r):function(e,t,r){let n=(0,g.qg)(e,t,r,((e,t,r)=>{let o,i,a=(0,p.Df)((()=>(0,d.RP)(e,t)),((s,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||o&&o.uid!==i?n.remove():(o||(o=y.acquireUntracked(s,r,a,e,t),i=o.uid),v(o))}));return(0,s.hA)((()=>{a.remove(),o&&(o.uid!==i||o.removed||(o.removed=!0,v(o)),o=null),n=a=null}))}));return n}(e,t,r):(0,s.hA)()}function T(e,t,r=!1,n=o.gh){return r?function(e,t,r){let n=!1;return(0,p.mJ)(e,((e,s)=>{n||(n=!0,r(s,e)||t(e,s),n=!1)}))}(e,t,n):function(e,t,r){let n,o,i=(0,p.Df)(e,((e,s)=>{n&&n.uid!==o?i.remove():(n||(n=y.acquireTracked(e,t,s,r),o=n.uid),v(n))}));return(0,s.hA)((()=>{i.remove(),n&&(n.uid!==o||n.removed||(n.removed=!0,v(n)),n=null),i=null}))}(e,t,n)}},49422:(e,t,r)=>{"use strict";r.d(t,{M:()=>h,R:()=>d});var n=r(4576),s=r(49186),o=r(53966),i=r(16649),a=r(35666),c=r(88620),l=r(51822);function u(e,t,r,n,s){const o={};return t.write?.writer?.call(e,n,o,r,s),o}function f(e,t,r,c,l,u){if(!c?.write)return!1;const f=(0,i.Jt)(e,r);if(!l&&c.write.overridePolicy){const t=c.write.overridePolicy.call(e,f,r,u??void 0);void 0!==t&&(l=t)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===f&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===f)&&l.isRequired){const t=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&u?.messages?u.messages.push(t):t&&!u&&o.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===f||null===f&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||t.store.multipleOriginsSupported&&t.store.originOf(r)!==a.Gr.DEFAULTS)&&function(e,t,r,s,o){const i=s.default;if(void 0===i)return!1;if(null!=s.defaultEquals)return s.defaultEquals(o);if("function"==typeof i){if(Array.isArray(o)){const s=i.call(e,t,r??void 0);return(0,n.aI)(s,o)}return!1}return i===o}(e,r,u,c,f)||!l.ignoreOrigin&&u?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(u.origin))}function d(e,t,r,n){const s=(0,c.oY)(e),o=s.metadata,i=(0,l.k4)(o[t],n);return!!i&&f(e,s,t,i,r,n)}function h(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,c.h1)(t,e.toJSON(r));const n=(0,c.oY)(e),s=n.metadata;for(const o in s){const d=(0,l.k4)(s[o],r);if(!f(e,n,o,d,void 0,r))continue;const h=(0,i.Jt)(e,o),p=u(e,d,d.write&&"string"==typeof d.write.target?d.write.target:o,h,r);Object.keys(p).length>0&&(t=(0,c.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,c.h1)(t,p,(()=>"replace-arrays"))))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:(0,a.in)(n.store.originOf(o)),newOrigin:r.origin}))}return t}},4576:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>p,TF:()=>h,Xj:()=>i,Xy:()=>u,aI:()=>s,iv:()=>o,mW:()=>d,qh:()=>l,vW:()=>a});var n=r(87811);function s(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function o(e,t,r){let n,s;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),s=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),s=e.filter((e=>!t.includes(e)))),{added:n,removed:s}}function i(e){return e&&"number"==typeof e.length}class a{constructor(){this.last=0}}const c=new a;function l(e,t,r,n){n=n||c;const s=Math.max(0,n.last-10);for(let o=s;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(s,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function u(e,t,r,n){const s=r??e.length,o=l(e,t,s,n);if(-1!==o)return e[o]=e[s-1],null==r&&e.pop(),t}const f=new Set;function d(e,t,r=e.length,n=t.length,s,o){if(0===n||0===r)return r;f.clear();for(let e=0;e<n;++e)f.add(t[e]);s=s||c;const i=Math.max(0,s.last-10);for(let t=i;t<r;++t)if(f.has(e[t])&&(o?.push(e[t]),f.delete(e[t]),e[t]=e[r-1],--r,--t,0===f.size||0===r))return f.clear(),r;for(let t=0;t<i;++t)if(f.has(e[t])&&(o?.push(e[t]),f.delete(e[t]),e[t]=e[r-1],--r,--t,0===f.size||0===r))return f.clear(),r;return f.clear(),r}function h(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function p(e,t){return null!=e}new n.A},86805:(e,t,r)=>{"use strict";function n(e){return 32+e.length}function s(){return 16}function o(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r];switch(typeof s){case"string":t+=n(s);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function i(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e){switch(typeof e){case"object":return i(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function c(e,t){return u+e.length*t}r.d(t,{eY:()=>o,f3:()=>s,iL:()=>i,zd:()=>c});const l=32,u=16},51447:(e,t,r)=>{"use strict";r.d(t,{Lx:()=>a,eF:()=>c,eO:()=>i,io:()=>l});var n=r(44208);const s=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=s.get(e);o||(o=new Set,s.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?n+"::":"")+t+"()",r)}}function a(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?n+"::":"")+t,r)}}function c(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:s,see:i,warnOnce:a}=r;let c=t;n&&(c+=`\n\t🛠️ Replacement: ${n}`),s&&(c+=`\n\t⚙️ Version: ${s}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),o(e,c,a)}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>a,on:()=>i,wb:()=>s});var n=r(36563);function s(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,s){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,s);return(0,n.hA)((()=>{for(const t of o)e.removeEventListener(t,r,s)}))}return e.addEventListener(t,r,s),(0,n.hA)((()=>e.removeEventListener(t,r,s)))}(e,t,r):e.on(t,r)}function a(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=i(e,t,(t=>{n.remove(),r.call(e,t)}));return n}},36563:(e,t,r)=>{"use strict";r.d(t,{hA:()=>s,vE:()=>o});const n={remove:()=>{}};function s(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return s((()=>function(e){e.forEach((e=>e?.remove()))}(e)))}},44208:(e,t,r)=>{"use strict";let n;function s(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>s}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},s.add=(e,t,r,o)=>((o||void 0===n[e])&&(n[e]=t),r&&s(e)),s.cache=n,s.add("big-integer-warning-enabled",!0),s.add("esri-deprecation-warnings",!0),s.add("esri-tests-disable-screenshots",!1),s.add("esri-tests-use-full-window",!1),s.add("esri-tests-post-to-influx",!0),s.add("esri-cim-animations-enable-status","enabled"),s.add("esri-cim-animations-spotlight",!1),s.add("esri-cim-animations-freeze-time",!1),(()=>{s.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(s.add("host-browser",e),s.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),s.add("dom",e),s("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(s.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),s.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),s.add("khtml",r.includes("Konqueror")?n:void 0),s.add("edge",parseFloat(t.split("Edge/")[1])||void 0),s.add("opr",parseFloat(t.split("OPR/")[1])||void 0),s.add("webkit",!s("wp")&&!s("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),s.add("chrome",!s("edge")&&!s("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),s.add("android",!s("wp")&&parseFloat(t.split("Android ")[1])||void 0),s.add("safari",!r.includes("Safari")||s("wp")||s("chrome")||s("android")||s("edge")||s("opr")?void 0:parseFloat(r.split("Version/")[1])),s.add("mac",r.includes("Macintosh")),!s("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));s.add(e,n),s.add("ios",n)}s("webkit")||(!t.includes("Gecko")||s("wp")||s("khtml")||s("edge")||s.add("mozilla",n),s("mozilla")&&s.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&s.add("esri-mobile",t),r&&s.add("esri-iPhone",r),s.add("esri-geolocation",!!navigator.geolocation)}s.add("esri-wasm","WebAssembly"in globalThis),s.add("esri-performance-mode-frames-between-render",20),s.add("esri-force-performance-mode",!1),s.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),s.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),s.add("esri-atomics","Atomics"in globalThis),s.add("esri-workers","Worker"in globalThis),s.add("web-feat:cache","caches"in globalThis),s.add("esri-workers-arraybuffer-transfer",!s("safari")||Number(s("safari"))>=12),s.add("workers-pool-size",8),s.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),s.add("featurelayer-simplify-payload-size-factors",[1,1,4]),s.add("featurelayer-fast-triangulation-enabled",!0),s.add("featurelayer-animation-enabled",!0),s.add("featurelayer-snapshot-enabled",!0),s.add("featurelayer-snapshot-point-min-threshold",8e4),s.add("featurelayer-snapshot-point-max-threshold",4e5),s.add("featurelayer-snapshot-point-coverage",.1),s.add("featurelayer-query-max-depth",4),s.add("featurelayer-query-pausing-enabled",!1),s.add("featurelayer-advanced-symbols",!1),s.add("featurelayer-pbf",!0),s.add("featurelayer-pbf-statistics",!1),s.add("feature-layers-workers",!0),s.add("feature-polyline-generalization-factor",1),s.add("mapview-transitions-duration",200),s.add("mapview-essential-goto-duration",200),s.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),s.add("mapserver-pbf-version-support",10.81),s.add("mapservice-popup-identify-max-tolerance",20),s("host-webworker")||s("host-browser")&&(s.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),s.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{s.add("esri-image-decode",!0,!0,!0)})).catch((()=>{s.add("esri-image-decode",!1,!0,!0)}))}return!1})),s.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},5479:(e,t,r)=>{"use strict";function n(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function s(e,t){for(const r of e)if(null!=r&&t(r))return r}function o(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{I6:()=>s,PP:()=>n,xZ:()=>o})},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>a,aI:()=>h,gh:()=>p,o8:()=>i,oy:()=>o});var n=r(4576),s=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],s=a(n);if(null!=n&&null==s)return null;t[r]=s}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,s.dz)(e)||(0,s.mg)(e)||(0,s.UR)(e)||(0,s.IY)(e)||(0,s.jq)(e)||(0,s._G)(e)||(0,s.XJ)(e)||(0,s.vZ)(e)||(0,s.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function s(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function a(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function u(e,t){let r;return e.some(((e,n)=>(r=t(e,n),null!=r))),r??void 0}r.d(t,{CM:()=>l,DC:()=>a,Gz:()=>c,Lw:()=>n,Pb:()=>u,WD:()=>o,pR:()=>s,xt:()=>i})},26390:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});const n=[];function s(e){n.push(e),1===n.length&&queueMicrotask((()=>{const e=n.slice();n.length=0;for(const t of e)t()}))}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>s,i8:()=>a,sM:()=>i,wc:()=>o});var n=r(4718);function s(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),s=n.pop(),o=c(n,!0,r);o&&s&&(o[s]=t)}function a(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(a(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(a(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce(((e,s)=>{let o=e[s],i=t[s];return o===i?e:void 0===o?(e[s]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=o?Array.isArray(o)?e[s]=o.concat():e[s]=[o]:e[s]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{o.includes(e)||o.push(e)})):e[s]=i.concat())):i&&"object"==typeof i?e[s]=l(o,i,r):e.hasOwnProperty(s)&&!t.hasOwnProperty(s)||(e[s]=i),e)}),e||{}):e}},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>A,nA:()=>w,NK:()=>l,Tw:()=>T,sg:()=>E,Lx:()=>v,QZ:()=>_,zf:()=>b,G4:()=>d,$X:()=>k,u7:()=>g,NY:()=>y,Mq:()=>f,QP:()=>h,Te:()=>u,jH:()=>p,NO:()=>N,z7:()=>S,qr:()=>m});var n=r(36563);const s=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)((()=>o.clearTimeout(r)))}});var o,i=r(49186),a=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new i.A("AbortError",e)}function u(e,t="Aborted"){if(d(e))throw l(t)}function f(e){return e instanceof AbortSignal?e:e?.signal}function d(e){const t=f(e);return null!=t&&t.aborted}function h(e){if(b(e))throw e}function p(e){if(!b(e))throw e}function g(e,t){const r=f(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",(()=>t()));t()}}function y(e,t){const r=f(e);if(null!=r)return u(r),(0,a.Oo)(r,"abort",(()=>t(l())))}function m(e,t){return null==f(t)?e:new Promise(((r,n)=>{let s=g(t,(()=>n(l())));const o=()=>{s=(0,c.xt)(s)};e.then(o,o),e.then(r,n)}))}function b(e){return"AbortError"===e?.name}async function _(e){try{return await e}catch(e){if(!b(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await v(r),s={};return t.map(((e,t)=>s[e]=n[t])),s}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function w(e){return(await Promise.allSettled(e)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}async function A(e){return(await Promise.allSettled(e)).filter((e=>"rejected"===e.status)).map((e=>e.reason))}function O(e,t=void 0,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,s)=>{let o=setTimeout((()=>{o=0,r(t)}),e);g(n,(()=>{o&&(clearTimeout(o),s(l()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function E(e,t=-1){let r,n,s,o,i=null;const a=(...c)=>{if(r){n=c,o&&o.reject(l()),o=T();const e=o.promise;if(i){const e=i;i=null,e.abort()}return e}if(s=o||T(),o=null,t>0){const n=new AbortController;r=S(e(...c,n.signal));const s=r;O(t).then((()=>{r===s&&(o?n.abort():i=n)}))}else r=1,r=S(e(...c));const u=()=>{const e=n;n=s=r=i=null,null!=e&&a(...e)},f=r,d=s;return f.then(u,u),f.then(d.resolve,d.reject),d.promise};return a}function T(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}async function N(e){await Promise.resolve(),u(e)}},11932:(e,t,r)=>{"use strict";r.d(t,{_:()=>g,md:()=>w});var n=r(26390),s=r(61604),o=r(3694),i=r(74887),a=r(78659);class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let l=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],h=new o.A,p={frameTasks:h,willDispatch:!1,clearFrameTasks:function(e=!1){h.forAll((e=>{e.removed=!0})),e&&_()},dispatch:v,executeFrameTasks:function(e){const t=(0,a.l5)(e-l);l=e;const r=1e3/60,n=Math.max(0,t-r);u.time=e,u.frameDuration=(0,a.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),s=f[r];h.forAll((n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[s]&&(u.elapsedFrameTime=(0,a.l5)(performance.now()-e),u.deltaTime=0===n.ticks?(0,a.l5)(0):t,n.phases[s]?.call(n,u)))})),A[r].record(performance.now()-n)}_(),O.record(performance.now()-e)},reschedule:function(){null!=y&&(cancelAnimationFrame(y),y=requestAnimationFrame(m))}};function g(e){const t=new c(e);return d.push(t),p.willDispatch||(p.willDispatch=!0,(0,n.d)(v)),t}let y=null;function m(){const e=performance.now();y=null,y=h.length>0?requestAnimationFrame(m):null,p.executeFrameTasks(e)}const b=new o.A;function _(){h.forAll((e=>{e.removed&&b.push(e)})),h.removeUnorderedMany(b.data,b.length),b.clear()}function v(){for(;d.length;){const e=d.shift();e.isActive&&e.callback()}p.willDispatch=!1}function w(e=1,t){const r=(0,i.Tw)(),s=()=>{(0,i.G4)(t)?r.reject((0,i.NK)()):0===e?r():(--e,(0,n.d)((()=>s())))};return s(),r.promise}const A=f.map((e=>new s.A(e))),O=new s.A("total")},799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>a,HC:()=>i,Wm:()=>c,_e:()=>u});var n=r(93637);const s=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(s,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function a(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,(e=>t?.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function u(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},78659:(e,t,r)=>{"use strict";function n(e){return e}function s(e){return 1e3*e}function o(e){return e}r.d(t,{Kp:()=>o,gr:()=>s,l5:()=>n})},34275:(e,t,r)=>{"use strict";r.d(t,{Ek:()=>g,IY:()=>c,JI:()=>b,UR:()=>a,XJ:()=>f,_G:()=>u,a3:()=>v,aI:()=>h,cy:()=>p,dk:()=>_,dz:()=>o,jq:()=>l,mg:()=>i,mw:()=>s,vZ:()=>d,y9:()=>m});var n=r(86805);function s(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function i(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function l(e){return"Uint16Array"===e?.constructor?.name}function u(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function h(e){return"Float64Array"===e?.constructor?.name}function p(e){return!("buffer"in e)}function g(...e){return e.reduce(((e,t)=>e+(t?p(t)?(0,n.zd)(t,(0,n.f3)()):t.byteLength+y:0)),0)}r(44208);const y=145,m=1024;function b(e){return h(e)||d(e)||u(e)||c(e)||o(e)}function _(e){return h(e)||d(e)}function v(e){return h(e)?179769e303:d(e)?3402823e32:f(e)?4294967295:l(e)?65535:i(e)||a(e)?255:u(e)?2147483647:c(e)?32767:o(e)?127:256}},24326:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});let n=0;function s(){return++n}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Q,$z:()=>V,An:()=>T,BQ:()=>oe,DB:()=>Z,FL:()=>B,FX:()=>z,Hg:()=>re,Il:()=>he,N9:()=>se,S8:()=>G,T1:()=>ge,UC:()=>pe,V1:()=>W,Xq:()=>S,Zo:()=>ve,_0:()=>Ae,a6:()=>_e,b8:()=>D,e7:()=>de,fj:()=>H,gd:()=>E,lJ:()=>X,lM:()=>ce,m3:()=>ae,nM:()=>fe,oP:()=>K,oy:()=>$,r$:()=>te,rs:()=>be,s0:()=>w,s2:()=>J,sC:()=>q,s_:()=>P,tk:()=>ne,ut:()=>U,w8:()=>Y,x0:()=>j,xw:()=>we,yM:()=>C,zf:()=>N,zi:()=>me,zs:()=>R});var n=r(92602),s=r(4576),o=r(49186),i=r(25482),a=r(53966),c=r(39131),l=r(26306);const u=()=>a.A.getLogger("esri.core.urlUtils"),f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",h=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,g=/^\s*https:/i,y=/^\s*file:/i,m=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,_=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(_);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const A={};let O=new w(n.A.applicationUrl);let k=function(){const e=O.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,E=()=>k;function T(e){if(!e)return null;const t={path:null,query:null},r=new w(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=N(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function N(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(s):r[n]=s}return r}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",o=t?.[r];return o?s+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>(0,i.Wj)(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):(0,i.Wj)(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function P(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw u().warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&le()&&(r=ce(r)),T(r)}function C(e){const t=R(e);let r,n;if(t){const e=M(t.proxyUrl);r=e.path,n=e.query?N(e.query):null}if(r){const t=T(e);e=r+"?"+t.path;const s=j({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const I={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function x(e){return(e=ue(e=he(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:x(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function R(e){const t=f.proxyRules,r=x(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function D(e,t){if(!e||!t)return!1;e=L(e),t=L(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&z(e,t,!0)}function U(e,t){return e=L(e),t=L(t),ue(e)===ue(t)}function L(e){const t=(e=G(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){const r=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t);if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function z(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),s=ye(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function B(e){if("string"==typeof e){if(!K(e))return!0;e=ye(e)}if(z(e,O))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(z(e,n[t]))return!0}return!1}function F(e){return A[e]||(ie(e)||oe(e)?A[e]=[new w(J(e))]:A[e]=[new w(`http://${e}`),new w(`https://${e}`)]),A[e]}function J(e,t=k,r){return oe(e)?r?.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:H("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function W(e,t=k,r){if(null==e||!K(e))return e;const n=G(e),s=n.toLowerCase(),o=G(t).toLowerCase().replace(/\/+$/,""),i=r?G(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==o.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(s,"/",s.indexOf("//")+2),l=-1;for(;s.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==s.length);)c=a(s,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function G(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&p.test(e)||"http"===O.scheme&&oe(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!b.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!R(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function H(...e){const t=e.filter(s.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&y.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(null==e||Y(e)||Z(e))return null;let r=e.indexOf("://");if(-1===r&&oe(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function K(e){return oe(e)||ie(e)}function Y(e){return null!=e&&"blob:"===e.slice(0,5)}function Z(e){return null!=e&&"data:"===e.slice(0,5)}function X(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Q(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function se(e){const t=X(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&h.test(e)}function ae(e){return null!=e&&g.test(e)||"https"===O.scheme&&oe(e)}function ce(e){return oe(e)?`https:${e}`:e.replace(p,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return oe(e)?e.slice(2):(e=e.replace(h,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=T(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const s=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(s,"")}function he(e){return e.endsWith("/")?e:`${e}/`}function pe(e){return e.replace(/\/+$/,"")}function ge(e,t,r){if(!(t&&r&&e&&K(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(s<0?e.length:s,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ye(e){return"string"==typeof e?new w(J(e)):(e.scheme||(e.scheme=O.scheme),e)}function me(e,t){const r=T(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function be(e,t,r){const n=T(e),s=n.query||{};return s[t]=String(r),`${n.path}?${j(s)}`}function _e(e,t){if(!t)return e;const r=T(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const s=j(n);return s?`${r.path}?${s}`:r.path}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function we(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Ae(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^/]*)$/},52268:(e,t,r)=>{"use strict";function n(e,t){return new Proxy({},{get:(r,n,s)=>(...r)=>{let s,o;const i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(s=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:s})}})}r.d(t,{L:()=>n})},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),s=r(49186),o=r(37955),i=r(36563),a=r(97768),c=r(74887),l=r(52268);const u={statsWorker:()=>Promise.all([r.e(6285),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(8438),r.e(201),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(6387)]).then(r.bind(r,68887)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(5323)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(9899),r.e(4157),r.e(7692)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(3030),r.e(2324)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(8129)]).then(r.bind(r,11780)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(3260)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(7210)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(4996),r.e(8902),r.e(4080),r.e(9748)]).then(r.bind(r,97367)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(360),r.e(9566),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(9949),r.e(9423),r.e(3089),r.e(4914),r.e(4999)]).then(r.bind(r,16915)),PointCloudWorker:()=>Promise.all([r.e(4996),r.e(7455),r.e(2944),r.e(5362)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2876),r.e(8488),r.e(4639)]).then(r.bind(r,30139)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(7455),r.e(3030),r.e(9899),r.e(4157),r.e(4587)]).then(r.bind(r,24587)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(2944),r.e(7016),r.e(3739)]).then(r.bind(r,2060)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(4322),r.e(3114)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(4996),r.e(8902),r.e(9949),r.e(5013),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>r.e(9234).then(r.bind(r,79234)),Feature3DPipelineWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(893),r.e(4080),r.e(2177)]).then(r.bind(r,76929))};var f=r(8341),d=r(18357);const{CLOSE:h,ABORT:p,INVOKE:g,RESPONSE:y,OPEN_PORT:m,ON:b}=f.Go;class _{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===f.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=s),v.clients.set(s,n),r.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._jobQueue=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new _((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new s.A(f.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,f.Jc)();return new Promise(((r,s)=>{if((0,c.G4)(n))return this._processWork(),void s((0,c.NK)());const l=(0,c.u7)(n,(()=>{const e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,a.xt)(e.abortHandle),this._post({type:p,jobId:i}),s((0,c.NK)()))})),u={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,u),this._post({type:g,jobId:i,methodName:e,abortable:null!=n},t,o)}))}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:f.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)((()=>{r.port1.postMessage({type:f.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}))}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:s}=e;this.apply(t,r,n).then((e=>s.resolve(e))).catch((e=>s.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,a.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e,!0))):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,f.VI)(e);if(r)switch(r.type){case y:this._onResponseMessage(r);break;case g:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case p:this._onAbortMessage(r);break;case h:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case b:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:s}=e,o=s?new AbortController:null,i=this._inJobs;let a,l=this._client,u=l[t];try{if(!u&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],u=l[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),a=u.apply(l,n)}catch(e){return void this._post({type:y,jobId:r,error:(0,f.mF)(e)})}(0,c.$X)(a)?(i.set(r,{controller:o,promise:a}),a.then((e=>{i.has(r)&&(i.delete(r),this._post({type:y,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,c.zf)(e)||this._post({type:y,jobId:r,error:(0,f.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},a)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,o.on)(e.port,"message",(e=>{const s=(0,f.VI)(e);s?.type===f.Go.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const i=o.get(t);o.delete(t),this._processWork(),(0,a.xt)(i.abortHandle),r?i.reject(s.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,f.u1)(this._port,e,t,r)}}v.kernelInfo={buildDate:d.$,fullVersion:n.ol,revision:d.u},v.clients=new Map},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>i,Jc:()=>l,T:()=>o,VI:()=>d,mF:()=>u,oV:()=>p,u1:()=>f});var n=r(44208),s=r(74887);const o="worker:port-closed";var i,a;(a=i||(i={}))[a.HANDSHAKE=0]="HANDSHAKE",a[a.OPEN=1]="OPEN",a[a.OPENED=2]="OPENED",a[a.RESPONSE=3]="RESPONSE",a[a.INVOKE=4]="INVOKE",a[a.ABORT=5]="ABORT",a[a.CLOSE=6]="CLOSE",a[a.OPEN_PORT=7]="OPEN_PORT",a[a.ON=8]="ON";let c=0;function l(){return c++}function u(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,s){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let o;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=h(r.transferList),t.data=r.result):(o=h(s),t.data=r),o){if((0,n.A)("ff"))for(const r of o)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case i.INVOKE:throw r;case i.RESPONSE:return void f(e,{type:i.RESPONSE,jobId:t.jobId,error:u(r)})}}e.postMessage(t,o)}else e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}async function p(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,s.zf)(e)&&!t)throw e;return}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>l,Y3:()=>u,id:()=>a,ol:()=>c,rE:()=>i});var n=r(44208),s=r(84952),o=r(18357);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const i="4.31";let a,c=i;function l(e){a=e}function u(e){const t=a?.findCredential(e);return t?.token?(0,s.rs)(e,"token",t.token):e}c=`4.31.0-next.${o.$}`,(0,n.A)("host-webworker")},39131:(e,t,r)=>{"use strict";r.d(t,{$E:()=>i,py:()=>o,qG:()=>a});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,s={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=s;if(o)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function a(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function s(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>s})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>s});const n="20240713",s="8aa86f8bb15d8650a27482823b5e02efd951c7fd"}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{146:"56326fd42c3aecb323d1",171:"0f1f32f338b23dc70fd3",177:"7c02628c53da9795f224",191:"090697a2a46210da2111",201:"c52701477405c1fb2072",309:"2dfb18669299cc0e2fe8",349:"198d74db9631a66bd850",360:"f8f5d7b381995833061d",369:"3871d2ecef5bcf6ac14f",382:"d823c30e5d10b8b46937",475:"33f3b46fb622c04a2524",591:"5f3600a6d7159228731d",620:"25c41ceb1951d80f4798",692:"8e643c941f3bfc8631ec",710:"52b54f8f95256e31605f",820:"28ccc007bc898af2187c",835:"658afb4dd136faa373b8",893:"e22a13ff683d207e0434",964:"bf619b4f34c6152b769e",980:"c7ff5ed235cbe2903353",1053:"71bd94cc789a55910f92",1132:"44d5bd9db9c60615c184",1147:"7bef0353afe585410d88",1204:"618f825d56d4981594c5",1215:"5c08ef98e597d6ebf978",1273:"5d6c958876e40952d0cc",1275:"b2080c2a87ff35962d5c",1277:"ea31314541c8033f3c09",1346:"7a108eafd620d52df670",1384:"44cc87f001022e88f97b",1389:"56a86c1eabe48968fc18",1493:"08c65ff4c69c265ac1c4",1507:"933546efca14191fabc1",1528:"6e41ed19376636417d1f",1535:"8a37c5b110665c8ff5a7",1728:"1dc7a3a7fc39fd3060f4",1737:"b2e8cc76381077b78d4c",1756:"c205e2310a367be57cc3",1956:"9f5e771280883fd7150e",1967:"32dd3e0484295d2790fc",2141:"6f1206babad45377aba6",2169:"b48ed4177a18b2c58088",2177:"632e3ba2b8a881df29a0",2180:"7979d4c376ff77072366",2186:"9fde9309cb64f1a9301c",2194:"219c5c8cd9cf39e289ad",2288:"2d92a9db4a300cdbc7fd",2324:"9f8dcc887fcd2d0d3245",2329:"e4f1db05d2b2ad83a0de",2343:"e66ebcfffd081f847efe",2390:"47aff98b87818428dac9",2558:"5ee4f59a9b742ce114c7",2593:"451cda780df55aefc2a0",2731:"6b0baecbd35d26393dcf",2829:"f74ca4528df8e50b704a",2857:"41173f53b19d0e74ecac",2876:"6e79f652e46f4428621d",2931:"92cb45b18e151db007dc",2944:"45a3245366817a734278",2958:"236e0f5d5ac1a6ea1107",2980:"19ad69a889bf06d30f0f",3009:"76b5e8434565ca4affb9",3030:"f23901ac5ec0861ad674",3069:"f1313389eeb7a2350db3",3089:"2833aa3ef586887a8fc6",3091:"9d9233cbaab2675f42ea",3097:"2f978dc54e6d3a001de4",3114:"b3ac722ad001768c47fa",3161:"81584e37103fb0c28dbb",3209:"527932bf4c31cec46922",3260:"f77286ab77f618db8e14",3359:"89b9332f052d11df6a71",3379:"c1672ac1d003594ff0da",3390:"8c0cf61373f9f2532da4",3492:"87f33a60768801ca1ce8",3543:"ce130ddf9eeafbd39a47",3561:"0ad628ba26fd1798ca9b",3600:"8753e829ea1a38c4615f",3622:"7fd9134246a9dbfa603b",3656:"adc40069ed6001d6448c",3666:"8f0f3cf67f3162411bda",3739:"2123ab24163a532ebc8d",3740:"0d750cf0c74d14080fea",3839:"bb7b887eeb2eee5e0a5c",3920:"cd16c79f144532461138",4080:"7baf288a07401f9e972d",4135:"725a0eae5248a933db05",4157:"3459bad718864db3fcc5",4174:"569c0397dc923ea2700e",4273:"66b835a5edfcdcf21c06",4322:"3f2a3b66531325aa4f12",4399:"1ba1d9c867ec6a492af9",4543:"e1f4df3a5b0b31521b3c",4587:"544eec13338b2d71680f",4591:"1a393b00db50eebc0315",4639:"d5497a0e3c0b57b2bf45",4761:"bd3e20c909bc3e07fe4b",4784:"7913bb6cba8d499a273c",4796:"bedf60888f07b78b314d",4800:"b24efb1806c6f3837f4d",4850:"2dddb8a989b9c96572fe",4914:"fedcc145070c45a826f2",4983:"a5405c1859c602bf083b",4996:"413609b0aa85f2052154",4999:"a25b3917ce50a67eb2e4",5013:"34b5bab6239c7277f854",5112:"275ac08613ca5510db04",5141:"34ea46659c8cebec3ffa",5165:"aa597918f8d480deb8d4",5181:"1e7d18668d2444a763c8",5204:"e943f16bc9f28699724f",5257:"f92d76b694ff0cdb212c",5268:"d60b9ab97c56b1a3f0c2",5323:"155c493a798b62619f39",5356:"bff4b67cbb1a9eaf1f0b",5362:"0f1ecdaaa51341094a29",5367:"8d9bc39077d8261df151",5399:"b3dab94608f3226821b3",5404:"3811c4e77aedd852cc06",5494:"fdf0bcd0389918a00650",5588:"7b68bfa61b5c31fec56d",5613:"e070bcd8e69ce3efb8fd",5740:"916bb9d2ea06c4c1668a",5771:"c8a91855222e50591a4f",5804:"46f6a190e3c943b44095",5894:"85471bec9f79bc641ae6",5989:"d2fa4d2887692a1ec9b1",6052:"f585a368008de26b54b6",6056:"19ccc91b515465f0d505",6107:"6684c306181665e9a264",6184:"48aeb087a1b10a8f4c0b",6187:"c9c9180d08d2c24f5271",6247:"7819a446d3c9749ff74f",6285:"ad51809453d627dc33fd",6387:"947149f819e8278ec8c1",6389:"339929c10fa8366b1615",6493:"423abec9211aa6ab6502",6650:"982b6adcbc610dd17e69",6842:"6d26dd93cfd64ee1a6cc",6845:"e014751a22cad4bb21e4",6875:"db378921253c7958c5c2",7e3:"543f9db420c99d429637",7016:"13b669fa10b4c2859f83",7029:"d7d2552ff3e2d44319c7",7087:"9e57ad112dec6080fb32",7110:"63f06a86a8a0e60f0f6d",7210:"1b0e1a97be443fab1646",7251:"325f4cd2aad105d2ce97",7272:"d6f7ad4ff0901c4ea6d1",7301:"a611e0543d4b4bb01f3c",7314:"d03a6fcfbd53974f0c17",7364:"15d9ff9711681cfece61",7367:"2b3ee1701fd14d9d2e34",7455:"54307e3cd9160692e6ee",7656:"317fcb69bd430da134da",7692:"289d70118db1213e1244",7899:"91f383e9c2d7c54b645c",7982:"69e432e24f581aa08ce3",8003:"7427709a739a3b54fb5b",8018:"57d7b980be64a7818115",8096:"61e5179fb49866241128",8129:"ab024d5233198a3e9ff9",8370:"bf7253f7e5d6d63333c3",8392:"744fcbcedb5eaccef610",8438:"d41d7ffaad3bb7b810dd",8488:"2ee7d91cc6c1ae7f3698",8541:"291bdab5737152bc1825",8628:"61e1f1564a8440f186e7",8692:"192f64e12728626372ab",8742:"4d405ae8d2164b434483",8846:"5317a9d1891be0c92130",8902:"252ff37bf5e12dae0b18",8947:"9f5805ecd88d78f092cc",9013:"cdbb209cf240e8bc29f0",9062:"e038158e871e3803321a",9082:"df8c5d1b7528a1ff2468",9186:"79d10e5f0ac490313549",9234:"5b43013c163d8e242583",9321:"c50d82bdd4bd74dfbcd8",9356:"a30f52f903d5e87f5401",9377:"911f1a12570ea9e3e930",9384:"9c9a8a529494c6d1dfa3",9423:"2887466b3bf152465e97",9511:"a37a1cfdf8d42f712705",9558:"139bfed231a72b8e479e",9564:"c44cc686774ff53c0a94",9566:"28b1c46fa9c81a36ce50",9588:"a69e885336eb5d2729fd",9748:"b6a8132708afcd988fa9",9838:"0281c669d63ff132337f",9858:"b6be871be5ac97d13288",9885:"d8e992490b619d900280",9899:"d9863289c69d2550cd49",9930:"196b5917e41da7b60cde",9933:"20d0390504e4cc9f93f4",9949:"8cce4b218568638e6e64"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[s,o,i]=t;for(var a in o)r.o(o,a)&&(r.m[a]=o[a]);for(i&&i(r);s.length;)e[s.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},90237:(e,t,r)=>{"use strict";function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}r.d(t,{_:()=>n,a:()=>s}),"function"==typeof SuppressedError&&SuppressedError},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637),s=r(18357);const o={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.31.0";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.$}/assets`}o.defaultAssetsPath=o.assetsPath}},69622:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(51447),s=r(71511),o=r(53966),i=r(97768),a=r(56454),c=r(16649),l=r(45873),u=r(96156),f=(r(44208),r(4718)),d=r(93687),h=r(11406),p=r(35666),g=r(62788),y=r(47328);class m extends h.T{constructor(e,t){super(),this.propertyName=e,this.metadata=t,this._accessed=null,this._handles=null,this.flags=0,this.flags=y.i.Dirty|(t.nonNullable?y.i.NonNullable:0)|(t.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===t.get?y.i.DepTrackingInitialized:0)|(void 0===t.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){(0,g.gc)(this);const t=e.store,r=this.propertyName,n=this.flags,s=t.get(r);if(n&y.i.Computing)return s;if(~n&y.i.Dirty&&t.has(r))return s;this.flags|=y.i.Computing;const o=e.host;let i;n&y.i.AutoTracked?i=(0,g.a)(this,this.metadata.get,o):((0,g.Xr)(o,this),i=this.metadata.get.call(o)),t.set(r,i,p.Gr.COMPUTED);const a=t.get(r);return a===s?this.flags&=~y.i.Dirty:(0,g.F_)(this.commit,this),this.flags&=~y.i.Computing,a}onObservableAccessed(e){e!==this&&(this._accessed??=new Set,this._accessed.add(e))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=y.i.DepTrackingInitialized,null!=this._accessed&&(this._handles??=[],this._accessed.forEach((e=>{this._handles.push(e.observe(this))})),this._accessed.clear())}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}}class b{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new b;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,f.o8)(r))})),t}get(e){return this._values.get(e)}originOf(){return p.Gr.USER}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}forEach(e){this._values.forEach(e)}}function _(e,t,r){return void 0!==e}function v(e,t,r,n){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new b,this._origin=p.Gr.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new m(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach((e=>e.destroy()))}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,g.gc)(t);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,p.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(_(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);_(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const n=this.propertiesByName.get(t);if(!_(n))return"";const s=new Set,o=(0,g.a)({onObservableAccessed:e=>s.add(e),onTrackingEnd:()=>{}},(()=>n.metadata.get?.call(e)));let i=`${r}${e.declaredClass.split(".").pop()}.${t}: ${o}\n`;if(0===s.size)return i;r+=" ";for(const e of s)e instanceof m&&(i+=`${r}${e.propertyName}: undefined\n`);return i}setAtOrigin(e,t,r){const n=this.propertiesByName.get(e);if(_(n))return this._setAtOrigin(n,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOverride(e){const t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}const s=r.metadata.set;s?s.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,p.aB)(e)}getDefaultOrigin(){return(0,p.OL)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:p.Gr.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const n=this.store,s=e.propertyName;n.has(s,r)&&(0,f.aI)(t,n.get(s))&&~e.flags&y.i.Overridden&&r===n.originOf(s)||(e.invalidate(),n.set(s,t,r),e.commit(),(0,g.fE)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new d.A(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var O=r(47821);var k;!function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"}(k||(k={}));var S,E,T=r(14012),N=r(10107),j=r(40608);function P(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const C=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class M{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:n}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const s=this;class o extends s{constructor(...e){super(...e),this.inherited=null,n&&n.apply(this,e)}}(0,u.tD)(o.prototype);for(const t in e){const r=e[t];o.prototype[t]="function"==typeof r?function(...e){const n=this.inherited;let o;this.inherited=function(...e){if(s.prototype[t])return s.prototype[t].apply(this,e)};try{o=r.apply(this,e)}catch(e){throw this.inherited=n,e}return this.inherited=n,o}:e[t]}for(const e in t){const r=P(t[e]);(0,N.MZ)(r)(o.prototype,e)}return(0,j.$)(r)(o)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===M)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){const e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[C]=(0,i.pR)(this[C])}destroy(){this.destroyed||((0,T.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===l.v.DESTROYED||!1}commitProperty(e){(0,c.Jt)(this,e)}get(e){return(0,n.eO)(o.A.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),(0,c.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,O.h)(this,e,t),this}watch(e,t,r){return(0,T.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove()}else(this[C]??=new s.A).add(e,t)}removeHandles(e){this[C]?.remove(e)}removeAllHandles(){this[C]?.removeAll()}removeHandlesReference(e){this[C]?.removeReference(e)}hasHandles(e){return!0===this[C]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}S=C,E=I},98291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93687);function s(e){e.length=0}class o{constructor(e=50,t=50){this._pool=new n.A(Array,void 0,s,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return i.acquire()}static release(e){return i.release(e)}static prune(){i.prune()}}const i=new o(100)},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4718),s=r(53966),o=r(79907);class i extends o.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}})))}}catch(e){throw s.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},71511:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5479);class s{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if((0,n.xZ)(e)){const r=this._getOrCreateGroup(t);for(const t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(o(e))}remove(e){if("string"!=typeof e&&(0,n.xZ)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(i(this._getGroup(e)),this._groups.delete(o(e)),this):this}removeAll(){return this._groups.forEach(i),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(o(e),t),t}_getGroup(e){return this._groups.get(o(e))}}function o(e){return e||"_default_"}function i(e){for(const t of e)t instanceof s?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof s)}},25482:(e,t,r)=>{"use strict";r.d(t,{oY:()=>m,Te:()=>p,Wj:()=>y});var n=r(90237),s=r(69622),o=r(4718),i=r(35666);class a{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new a;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??i.Gr.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===i.Gr.DEFAULTS){const t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new c(t,r))}delete(e,t){null!=(t=this._normalizeOrigin(t))&&this._values.get(e)?.origin!==t||this._values.delete(e)}has(e,t){return null!=(t=this._normalizeOrigin(t))?this._values.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===i.Gr.DEFAULTS?e:i.Gr.USER}}class c{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),f=r(88620),d=r(49422),h=r(40608);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,f.oY)(this),r=t.store,n=new a;t.store=n,(0,l.k)(t,r,n)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,d.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,n._)([(0,h.$)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}function y(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}let m=class extends(p(s.A)){};m=(0,n._)([(0,h.$)("esri.core.JSONSupport")],m)},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(92602),s=(r(44208),r(799));const o={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,s.Wm)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",a)}_matchLevel(e){const t=n.A.log.level||"warn";return o[this._parentWithMember("level",t)]<=o[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}function a(e,t,...r){console[e](`[${t}]`,...r)}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},91869:(e,t,r)=>{"use strict";function n(e,t){for(const r of e.values())if(t(r))return!0;return!1}function s(e,t,r){const n=e.get(t);if(void 0!==n)return n;const s=r();return e.set(t,s),s}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>n,tE:()=>s})},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(93637);class s{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},93687:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t,r,n=1,s=0){this._ctor=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s;for(let e=0;e<s;e++)this._pool[e]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n.test.disabled)t=new this._ctor;else{if(0===this._pool.length){const e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=new this._ctor}t=this._pool.pop()}return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&!n.test.disabled&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){const e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}n.test={disabled:!1}},61604:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort(((e,t)=>e-t))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((e,t)=>e+t),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}},3694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n,s=r(4576);!function(e){const t=(e,t,r,n)=>{let s=t,o=t;const i=r>>>1,a=e[s-1];for(;o<=i;){o=s<<1,o<r&&n(e[o-1],e[o])<0&&++o;const t=e[o-1];if(n(t,a)<=0)break;e[s-1]=t,s=o}e[s-1]=a},r=(e,t)=>e<t?-1:e>t?1:0;e.sort=function(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o);const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o)}},e.iterableSort=function*(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o),yield;const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o),yield}}}(n||(n={}));const o=n;class i{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.vW,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>a(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){const t=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];e(n)&&t.push(n)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){const r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,a(this)}pop(){if(0===this.length)return;const e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){const t=(0,s.qh)(this.data,e,this.length,this._hint);if(-1!==t)return this.data.splice(t,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex((0,s.qh)(this.data,e,this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,s.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;const r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){o.sort(this.data,0,this.length,e)}iterableSort(e){return o.iterableSort(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){for(let r=0;r<this.length;++r){const n=this.data[r];if(e.call(t,n,r))return n}}filterInPlace(e,t){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];e.call(t,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){const{data:r,length:n}=this;for(let s=0;s<n;++s)e.call(t,r[s],s,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=e.call(t,this.data[n],n,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){const t=this.length,r=this.data;for(let n=0;n<t;++n)if(r[n]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}function a(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67076:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(79907);class s extends n.A{constructor(e,t,r){super(e,t,r)}}s.prototype.type="warning"},11406:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(36563),s=r(4576);class o{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,s.TF)(this._observers,this._observer)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,n=!1;const s=t.length;for(let o=0;o<s;++o){const s=t[o];if(s.destroyed)n=!0;else if(s===e){r=!0;break}}return r||(t.push(e),n&&this._removeDestroyedObservers()),new o(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let n=0;n<t;++n){for(;n+r<t&&e[n+r].destroyed;)++r;if(r>0){if(!(n+r<t))break;e[n]=e[n+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,n.hA)()},35666:(e,t,r)=>{"use strict";var n;r.d(t,{AU:()=>s,Gr:()=>n,OL:()=>i,aB:()=>o,in:()=>a}),function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"}(n||(n={}));const s=n.USER+1;function o(e){switch(e){case"defaults":return n.DEFAULTS;case"service":return n.SERVICE;case"portal-item":return n.PORTAL_ITEM;case"web-scene":return n.WEB_SCENE;case"web-map":return n.WEB_MAP;case"link-chart":return n.LINK_CHART;case"user":return n.USER;default:return null}}function i(e){switch(e){case n.DEFAULTS:return"defaults";case n.SERVICE:return"service";case n.PORTAL_ITEM:return"portal-item";case n.WEB_SCENE:return"web-scene";case n.WEB_MAP:return"web-map";case n.LINK_CHART:return"link-chart";case n.USER:return"user"}}function a(e){return i(e)}},56454:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},10107:(e,t,r)=>{"use strict";r.d(t,{MZ:()=>c,Qp:()=>u,rM:()=>l});var n=r(53966),s=r(56507),o=r(16649),i=r(96156),a=r(47821);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,i.z4)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&n.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const f=e.aliasOf;if(f){const e="string"==typeof f?f:f.source,t="string"==typeof f?null:!0===f.overridable;let n;l.dependsOn=[e],l.get=function(){let t=(0,o.Jt)(this,e);if("function"==typeof t){n||(n=e.split(".").slice(0,-1).join("."));const r=(0,o.Jt)(this,n);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.h)(this,e,t)})}const d=e.type,h=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,s.Zu)(e))return(0,s.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const n=r;if((0,s.EK)(n))return 0===t?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),t);if(1===t)return(0,s.eC)(n);if(t>1)return(0,s.e6)(n,t);const o=e;return o.from?o.from:(0,s.dp)(o)}(d):h&&(Array.isArray(h)?l.cast=(0,s.wB)((0,s.aq)(h[0])):l.cast=(0,s.aq)(h))),(0,i.CX)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const n=(0,i.z4)(e,r);n.json||(n.json={});let s=n.json;return void 0!==t&&(s.origins||(s.origins={}),s.origins[t]||(s.origins[t]={}),s=s.origins[t]),s}function u(e,t){return r=>{let n=+e(r);return null!=t.step&&(n=Math.round(n/t.step)*t.step),null!=t.min&&(n=Math.max(t.min,n)),null!=t.max&&(n=Math.min(t.max,n)),n}}},40608:(e,t,r)=>{"use strict";r.d(t,{$:()=>f}),r(44208);var n=r(53966),s=r(56454),o=r(45873),i=r(96156),a=r(62788),c=r(51822);const l=new Set,u=new Set;function f(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,h(t);const r=[],n=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!l.has(o.initialize)&&(l.add(o.initialize),r.push(o.initialize)),o.hasOwnProperty("destroy")&&!u.has(o.destroy)&&(u.add(o.destroy),n.push(o.destroy)),o=Object.getPrototypeOf(o);l.clear(),u.clear();const a=class extends t{constructor(...e){if(super(...e),this.constructor===a&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),n.length){let e=!1;const t=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<n.length;e++)n[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};a.__accessorMetadata__=(0,i.tD)(t.prototype),a.prototype.declaredClass=e;const c=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(a,"name",{value:c,configurable:!0}),a}}function d(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;(0,a.gc)(r);const n=t.store;return n.has(e)?n.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function h(e){const t=e.prototype,r=(0,i.tD)(t),n={};for(const e of Object.getOwnPropertyNames(r)){const t=r[e];(0,c.qk)(t),n[e]={enumerable:!0,configurable:!0,get:d(e,t),set(r){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&t.readOnly?p("read-only",e):n.lifecycle===o.v.CONSTRUCTED&&t.constructOnly?p("construct-only",e):void n.set(e,r)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(e.prototype,n)}const p=(e,t)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},76953:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(35666);function s(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),n.Gr.DEFAULTS)}));const s=e.metadata;Object.keys(s).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),n.Gr.DEFAULTS)}))}},56507:(e,t,r)=>{"use strict";r.d(t,{EK:()=>E,GB:()=>l,GX:()=>c,MB:()=>T,Nd:()=>M,PZ:()=>m,Uv:()=>P,Vr:()=>u,Zu:()=>I,_e:()=>k,aq:()=>N,dp:()=>v,e6:()=>S,eC:()=>A,gK:()=>C,jz:()=>j,wB:()=>w}),r(44208);var n=r(53966),s=r(91869);const o=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function i(e){return null==e?e:new Date(e)}function a(e){return null==e?e:!!e}function c(e){return null==e?e:e.toString()}function l(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function u(e){return null==e?e:Math.round(parseFloat(e))}function f(e){return null}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function h(e,t){return null!=t&&e&&!(t instanceof e)}function p(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function y(e,t){return!!d(t)&&(o().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+b(e)+"'"),!0)}function m(e,t){return null==t?t:p(e)?function(e,t){if(!t?.constructor||!p(t.constructor))return y(e,t)?t:new e(t);const r=g(e.prototype.itemType),n=g(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(y(e,t),t):new e(t):t}(e,t):h(e,t)?y(e,t)?t:new e(t):t}function b(e){return e?.prototype?.declaredClass||"unknown"}const _=new WeakMap;function v(e,t){const r=function(e){switch(e){case Number:return l;case j:return u;case Boolean:return a;case String:return c;case Date:return i;case P:return f;default:return(0,s.tE)(_,e,(()=>m.bind(null,e)))}}(e);return 1===arguments.length?r:r(t)}function w(e,t,r){return 1===arguments.length?w.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,r))):[e(t,r)]:t}function A(e,t){return 1===arguments.length?w((t=>v(e,t))):w((t=>v(e,t)),t)}function O(e,t,r){return 0!==t&&Array.isArray(r)?r.map((r=>O(e,t-1,r))):e(r)}function k(e,t,r){if(2===arguments.length)return r=>k(e,t,r);if(!r)return r;r=O(e,t,r);let n=t,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let e=0;e<n;e++)r=[r];return r}function S(e,t,r){return 2===arguments.length?k((t=>v(e,t)),t):k((t=>v(e,t)),t,r)}function E(e){return!!Array.isArray(e)&&!e.some((t=>{const r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)}))}function T(e,t){if(2===arguments.length)return T(e).call(null,t);const r=new Set,n=e.filter((e=>"function"!=typeof e)),s=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||r.add(t);let i=null,a=null;return(e,t)=>{if(null==e)return e;const c=typeof e,l="string"===c||"number"===c;return l&&(r.has(e)||s.some((e=>"string"===c&&e===String||"number"===c&&e===Number)))||"object"===c&&s.some((t=>!h(e,t)))?e:(l&&n.length?(i||(i=n.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&s.length?(a||(a=s.map((e=>b(e))).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):o().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function N(e,t){if(2===arguments.length)return N(e).call(null,t);const r={},n=[],s=[];for(const t in e.typeMap){const o=e.typeMap[t];r[t]=v(o),n.push(b(o)),s.push(t)}const i=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!h(e.base,t))return t;if(null==t)return t;const n=c(t)||e.defaultKeyValue,s=r[n];if(!s)return o().error("Accessor#set",`Invalid property value, value needs to be one of ${i()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!h(e.typeMap[n],t))return t;if("string"==typeof e.key&&!d(t)){const r={};for(const n in t)n!==e.key&&(r[n]=t[n]);return s(r)}return s(t)}}class j{}class P{}const C={native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})};function I(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function M(e){switch(e.type){case"native":return v(e.value);case"array":return w(M(e.value));case"one-of":return function(e){let t=null;return(r,n)=>$(r,e)?r:(null==t&&(t=x(e)),o().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}(e);default:return null}}function x(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case j:return"integer";case Date:return"date";case P:return"null";default:return b(e.value)}case"array":return`array of ${x(e.value)}`;case"one-of":{const t=e.values.map((e=>x(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function $(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case j:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case P:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!$(e,t.value)));case"one-of":return t.values.some((t=>$(e,t)))}}},51822:(e,t,r)=>{"use strict";r.d(t,{xF:()=>u,N5:()=>f,k4:()=>d,qk:()=>m});var n=r(56507),s=r(90360);function o(e){if(e.json||(e.json={}),a(e.json),c(e.json),i(e.json),e.json.origins)for(const t in e.json.origins)a(e.json.origins[t]),c(e.json.origins[t]),i(e.json.origins[t]);return!0}function i(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function a(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function c(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var l=r(67124);function u(e,t){return h(e,"any",t?.origin)}function f(e,t){return h(e,"read",t?.origin)}function d(e,t){return h(e,"write",t?.origin)}function h(e,t,r){let n=e?.json;if(n?.origins&&r){let e;e="link-chart"===r?n.origins[r]&&("any"===t||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],e&&("any"===t||t in e)&&(n=e)}return n}function p(e){return e.type?g(e):y(e)}function g(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,n.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function y(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function m(e){o(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(const e in r)if(t[e]){const n=t[e];r[e].forEach((e=>{t[e]=n})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?y(e.json):e.type?g(e):y(e)}(e);if(e.json.origins)for(const r in e.json.origins){const n=e.json.origins[r],o=n.types?p(n):t;(0,s.v)(o,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),(0,l.v)(o,n)}(0,s.v)(t,e.json,!0),(0,l.v)(t,e.json)}(e))}},90360:(e,t,r)=>{"use strict";r.d(t,{C:()=>u,v:()=>l});var n=r(53966),s=r(93637),o=r(67076),i=r(96156),a=r(15903);const c=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function l(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?y(e.types):g(e.type)}(e)&&(0,s.sM)("read.reader",u(e),t))}function u(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=f(e),r=d.bind(null,t),n=e.ndimArray??0;return(e,t,s)=>{if(null==e)return e;e=r(e,s,n);let o=n,i=e;for(;o>0&&Array.isArray(i);)o--,i=i[0];if(void 0!==i)for(let t=0;t<o;t++)e=[e];return e}}(e);if(1===t)return h(e);if("type"in e&&p(e.type)){const t=e.type.prototype?.itemType?.Type,r=h("function"==typeof t?{type:t}:{types:t});return(t,n,s)=>{const o=r(t,n,s);return o?new e.type(o):o}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,n)=>{if(null==t)return t;const s=typeof t;if("object"!==s)return void c().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${s}'`);const o=new e;return o.read(t,n),o}:e.fromJSON}(e.type):function(e){let t=null;const r=e.errorContext??"type",n=e.validate;return(s,a,l)=>{if(null==s)return s;const u=typeof s;if("object"!==u)return void c().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const r in e.typeMap){const n=e.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof e.key)continue;const o=s[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=n;continue}const a=o.json?.write;if(!a?.writer){t[r]=n;continue}const c=a.target,l="string"==typeof c?c:e.key,u={};a.writer(r,u,l),u[l]&&(t[u[l]]=n)}return t}(e));const f=e.key;if("string"!=typeof f)return;const d=s[f],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){const e=`Type '${d||"unknown"}' is not supported`;return l?.messages&&s&&l.messages.push(new o.A(`${r}:unsupported`,e,{definition:s,context:l})),void c().error(e)}const p=new h;return p.read(s,l),n?n(p):p}}(e.types)}function d(e,t,r,n){return 0!==n&&Array.isArray(t)?t.map((t=>d(e,t,r,n-1))):e(t,void 0,r)}function h(e){const t=f(e);return(e,r,n)=>{if(null==e)return e;if(Array.isArray(e)){const r=[];for(const s of e){const e=t(s,void 0,n);void 0!==e&&r.push(e)}return r}const s=t(e,void 0,n);return void 0!==s?[s]:void 0}}function p(e){if(!(0,a.P)(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):y(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||p(e))}function y(e){for(const t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903:(e,t,r)=>{"use strict";function n(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>n})},67124:(e,t,r)=>{"use strict";r.d(t,{B:()=>f,v:()=>a});var n=r(49186),s=r(53966),o=r(93637),i=r(15903);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,i.P)(e.type))?t.write.writer=d:r>1?t.write.writer=function(e){return(t,r,n,s)=>{let i;if(null===t)i=null;else{i=h(t,s,e);let r=e,n=i;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let e=0;e<r;e++)i=[i]}(0,o.sM)(n,i,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,n,s)=>t&&Array.isArray(t)?l(t.filter((t=>c(t,e,s))),r,n,s):l(t,r,n,s)}(t.types[0]):t.write.writer=function(e){return(t,r,n,s)=>t?c(t,e,s)?l(t,r,n,s):void 0:l(t,r,n,s)}(t.types):t.write.writer=l}function c(e,t,r){for(const r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){const o=t.errorContext??"type",i=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new n.A(`${o}:unsupported`,i,{definition:e,context:r})),s.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(e,t,r,n){(0,o.sM)(r,u(e,n),t)}function u(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?f(e):e}function f(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function d(e,t,r,n){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map((e=>u(e,n))),"function"==typeof s.toArray&&(s=s.toArray())):s=[u(e,n)],(0,o.sM)(r,s,t)}function h(e,t,r){return 0!==r&&Array.isArray(e)?e.map((e=>h(e,t,r-1))):u(e,t)}},16649:(e,t,r)=>{"use strict";r.d(t,{Jt:()=>a,RP:()=>i,t2:()=>c});var n=r(88620);function s(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const s=(0,n.oY)(t);return(0,n.yh)(s,r)?s.get(r):t[r]}function o(e,t,r){if(null==e)return e;const n=s(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:o(n,t,r+1)}function i(e,t,r=0){return"string"!=typeof t||t.includes(".")?o(e,(0,n.AH)(t),r):s(t,e)}function a(e,t){return i(e,t)}function c(e,t){return void 0!==i(t,e)}},45873:(e,t,r)=>{"use strict";var n;r.d(t,{v:()=>n}),function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"}(n||(n={}))},96156:(e,t,r)=>{"use strict";r.d(t,{CX:()=>a,tD:()=>o,z4:()=>i});var n=r(4718),s=r(88620);function o(e){let t=e.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(const e in t)t[e]=(0,n.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function i(e,t){const r=o(e);let n=r[t];return n||(n=r[t]={}),n}function a(e,t){return(0,s.h1)(e,t,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(e){return c.test(e)?"replace":"merge"}},45917:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,t:()=>f});var n=r(16649),s=r(88620),o=r(51822);function i(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;const s=e.read.source;if("string"==typeof s){if(s===t)return!0;if(s.includes(".")&&0===s.indexOf(t)&&(0,n.t2)(s,r))return!0}else for(const e of s){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,n.t2)(e,r))return!0}return!1}function a(e,t,r,n,s){let a=(0,o.N5)(t[r],s);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,o.N5)(t[c],s),i(a,r,n)&&(e[c]=!0)}function c(e,t,r,n){const s=r.metadata,i=(0,o.xF)(s[t],n),a=i?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,n):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const i=(0,s.oY)(e),u=i.metadata,f={};for(const e of Object.getOwnPropertyNames(t))a(f,u,e,t,r);i.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(f)){const a=(0,o.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(t,c):t[s],a?.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&i.set(s,l)}if(!r||!r.ignoreDefaults){i.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))f[t]||c(e,t,i,r)}i.setDefaultOrigin("user")}function f(e,t,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach((t=>{"warning"!==t.type||e.loaded?n?.messages&&n.messages.push(t):e.loadWarnings.push(t)}))}},47821:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(49186),s=r(44208),o=(r(53966),r(16649));function i(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))i(e,r,t[r]);else{if(t.includes(".")){const n=t.split("."),s=n.splice(-1,1)[0];return void i((0,o.Jt)(e,n),s,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,s.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new n.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788:(e,t,r)=>{"use strict";r.d(t,{F_:()=>h,Xr:()=>_,a:()=>d,fE:()=>m,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),o=r(47328);const i={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},a=[];let c=i;function l(e){c.onObservableAccessed(e)}let u=!1,f=!1;function d(e,t,r){if(u)return p(e,t,r);let n=null;return g(e),n=t.call(r),y(),n}function h(e,t){return d(i,e,t)}function p(e,t,r){const s=u;u=!0,g(e);let o=null;try{o=t.call(r)}catch(e){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),u=s,o}function g(e){c=e,a.push(e)}function y(){const e=a.length;if(e>1){const t=a.pop();c=a[e-2],t.onTrackingEnd()}else if(1===e){const e=a.pop();c=i,e.onTrackingEnd()}else c=i}function m(e,t){if(t.flags&o.i.DepTrackingInitialized)return;const r=f;f=!1,t.flags&o.i.AutoTracked?p(t,t.metadata.get,e):_(e,t),f=r}const b=[];function _(e,t){t.flags&o.i.ExplicitlyTracking||(t.flags|=o.i.ExplicitlyTracking,p(t,(()=>{const r=t.metadata.dependsOn||b;for(const t of r)if("string"!=typeof t||t.includes(".")){const r=(0,s.AH)(t);for(let t=0,n=e;t<r.length&&null!=n&&"object"==typeof n;++t)n=v(n,r[t],t!==r.length-1)}else v(e,t,!1)})),t.flags&=~o.i.ExplicitlyTracking)}function v(e,t,r){const n="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(n,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=(0,s.oY)(e);if(o){const t=o.propertiesByName.get(n);t&&(l(t),m(e,t))}return r?e[n]:void 0}},47328:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"}(n||(n={}))},71429:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});class n{constructor(e){this._accessed=new Set,this._handles=[],this._observerObject=new s(e),o.register(this,new WeakRef(this._observerObject),this)}destroy(){o.unregister(this._observerObject),this._accessed.clear(),this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){this._accessed.add(e)}onTrackingEnd(){const e=this._handles,t=this._observerObject;this._accessed.forEach((r=>{e.push(r.observe(t))})),this._accessed.clear()}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const o=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function i(){}},80559:(e,t,r)=>{"use strict";r.d(t,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),o=r(71429);let i=!1;const a=[];function c(e,t){let r=new o.r((function n(){if(!r||c)return;if(i)return void f(n);const o=a;r.clear(),i=!0,c=!0,a=(0,s.a)(r,e),c=!1,i=!1,t(a,o),d()})),a=null,c=!1;return c=!0,a=(0,s.a)(r,e),c=!1,(0,n.hA)((function(){r&&(r.destroy(),r=null,a=null)}))}function l(e,t){let r=new o.r((function(){t(i,a)})),i=null;function a(){return r?(r.clear(),i=(0,s.a)(r,e),i):null}return a(),(0,n.hA)((function(){r&&(r.destroy(),r=null),i=null}))}function u(e){let t=new o.r((function n(){t&&!r&&(i?f(n):(t.clear(),i=!0,r=!0,(0,s.a)(t,e),r=!1,i=!1,d()))})),r=!1;return r=!0,(0,s.a)(t,e),r=!1,(0,n.hA)((function(){t&&(t.destroy(),t=null)}))}function f(e){a.includes(e)||a.unshift(e)}function d(){for(;a.length;)a.pop()()}},88620:(e,t,r)=>{"use strict";r.d(t,{AH:()=>l,h1:()=>a,oY:()=>o,qg:()=>f,yh:()=>i});var n=r(36563),s=r(4718);function o(e){return e.__accessor__??null}function i(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return c(e,t,r?{policy:r,path:""}:null)}function c(e,t,r){return t?Object.keys(t).reduce(((e,n)=>{const o=n;let i=null,a="merge";if(r&&(i=r.path?`${r.path}.${n}`:n,a=r.policy(i)),"replace"===a)return e[o]=t[o],e;if("replace-arrays"===a&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=(0,s.o8)(t[o]),e;let l=e[o],u=t[o];if(l===u)return e;if(Array.isArray(u)||Array.isArray(e))l=l?Array.isArray(l)?e[o]=l.concat():e[o]=[l]:e[o]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((e=>{l.includes(e)||l.push(e)})));else if(u&&"object"==typeof u)if(r){const t=r.path;r.path=i,e[o]=c(l,u,r),r.path=t}else e[o]=c(l,u,null);else e.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(e[o]=u);return e}),e||{}):e}function l(e){return Array.isArray(e)?e:e.split(".")}function u(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function f(e,t,r,s){const o=function(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(...u(r));return t}return u(e)}(t);if(1!==o.length){const t=o.map((t=>s(e,t,r)));return(0,n.vE)(t)}return s(e,o[0],r)}},14012:(e,t,r)=>{"use strict";r.d(t,{iS:()=>A,wB:()=>E,Cn:()=>T});var n=r(98291),s=r(36563),o=r(4718),i=r(93687);class a extends i.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){const t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var c,l,u=r(11932),f=r(24326),d=r(16649),h=r(45873),p=r(80559),g=r(88620);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class y{constructor(){this.uid=(0,f.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(e,t,r,n,s){return this.pool.acquire(c.Untracked,e,t,r,n,s,o.aI)}static acquireTracked(e,t,r,n){return this.pool.acquire(c.Tracked,e,t,r,null,null,n)}notify(e,t){this.type===c.Untracked?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,n,s,o,i){this.uid=(0,f.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=n,this.target=s,this.path=o,this.equals=i}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,f.c)(),this.removed=!0}}y.pool=new a(y);const m=new n.A,b=new Set;let _;function v(e){b.delete(e),b.add(e),_||(_=(0,u._)(O))}function w(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function A(e){for(const t of b.values())t.target===e&&(t.removed=!0)}function O(){let e=10;for(;_&&e--;){_=null;const e=k(),t=m.acquire();for(const r of e){const e=r.uid;w(r),e===r.uid&&r.removed&&t.push(r)}for(const e of b)e.removed&&(t.push(e),b.delete(e));for(const e of t)y.pool.release(e);m.release(t),m.release(e),S.forEach((e=>e()))}}function k(){const e=m.acquire();e.length=b.size;let t=0;for(const r of b)e[t]=r,++t;return b.clear(),e}const S=new Set;function E(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?n?function(e,t,r){const n=(0,g.qg)(e,t,r,((e,t,r)=>{let s=!1;return(0,p.mJ)((()=>(0,d.RP)(e,t)),((i,a)=>{e.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,o.aI)(a,i)||r.call(e,i,a,t,e),s=!1):n.remove()}))}));return n}(e,t,r):function(e,t,r){let n=(0,g.qg)(e,t,r,((e,t,r)=>{let o,i,a=(0,p.Df)((()=>(0,d.RP)(e,t)),((s,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||o&&o.uid!==i?n.remove():(o||(o=y.acquireUntracked(s,r,a,e,t),i=o.uid),v(o))}));return(0,s.hA)((()=>{a.remove(),o&&(o.uid!==i||o.removed||(o.removed=!0,v(o)),o=null),n=a=null}))}));return n}(e,t,r):(0,s.hA)()}function T(e,t,r=!1,n=o.gh){return r?function(e,t,r){let n=!1;return(0,p.mJ)(e,((e,s)=>{n||(n=!0,r(s,e)||t(e,s),n=!1)}))}(e,t,n):function(e,t,r){let n,o,i=(0,p.Df)(e,((e,s)=>{n&&n.uid!==o?i.remove():(n||(n=y.acquireTracked(e,t,s,r),o=n.uid),v(n))}));return(0,s.hA)((()=>{i.remove(),n&&(n.uid!==o||n.removed||(n.removed=!0,v(n)),n=null),i=null}))}(e,t,n)}},49422:(e,t,r)=>{"use strict";r.d(t,{M:()=>h,R:()=>d});var n=r(4576),s=r(49186),o=r(53966),i=r(16649),a=r(35666),c=r(88620),l=r(51822);function u(e,t,r,n,s){const o={};return t.write?.writer?.call(e,n,o,r,s),o}function f(e,t,r,c,l,u){if(!c?.write)return!1;const f=(0,i.Jt)(e,r);if(!l&&c.write.overridePolicy){const t=c.write.overridePolicy.call(e,f,r,u??void 0);void 0!==t&&(l=t)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===f&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===f)&&l.isRequired){const t=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&u?.messages?u.messages.push(t):t&&!u&&o.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===f||null===f&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||t.store.multipleOriginsSupported&&t.store.originOf(r)!==a.Gr.DEFAULTS)&&function(e,t,r,s,o){const i=s.default;if(void 0===i)return!1;if(null!=s.defaultEquals)return s.defaultEquals(o);if("function"==typeof i){if(Array.isArray(o)){const s=i.call(e,t,r??void 0);return(0,n.aI)(s,o)}return!1}return i===o}(e,r,u,c,f)||!l.ignoreOrigin&&u?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(u.origin))}function d(e,t,r,n){const s=(0,c.oY)(e),o=s.metadata,i=(0,l.k4)(o[t],n);return!!i&&f(e,s,t,i,r,n)}function h(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,c.h1)(t,e.toJSON(r));const n=(0,c.oY)(e),s=n.metadata;for(const o in s){const d=(0,l.k4)(s[o],r);if(!f(e,n,o,d,void 0,r))continue;const h=(0,i.Jt)(e,o),p=u(e,d,d.write&&"string"==typeof d.write.target?d.write.target:o,h,r);Object.keys(p).length>0&&(t=(0,c.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,c.h1)(t,p,(()=>"replace-arrays"))))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:(0,a.in)(n.store.originOf(o)),newOrigin:r.origin}))}return t}},4576:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>p,TF:()=>h,Xj:()=>i,Xy:()=>u,aI:()=>s,iv:()=>o,mW:()=>d,qh:()=>l,vW:()=>a});var n=r(87811);function s(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function o(e,t,r){let n,s;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),s=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),s=e.filter((e=>!t.includes(e)))),{added:n,removed:s}}function i(e){return e&&"number"==typeof e.length}class a{constructor(){this.last=0}}const c=new a;function l(e,t,r,n){n=n||c;const s=Math.max(0,n.last-10);for(let o=s;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(s,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function u(e,t,r,n){const s=r??e.length,o=l(e,t,s,n);if(-1!==o)return e[o]=e[s-1],null==r&&e.pop(),t}const f=new Set;function d(e,t,r=e.length,n=t.length,s,o){if(0===n||0===r)return r;f.clear();for(let e=0;e<n;++e)f.add(t[e]);s=s||c;const i=Math.max(0,s.last-10);for(let t=i;t<r;++t)if(f.has(e[t])&&(o?.push(e[t]),f.delete(e[t]),e[t]=e[r-1],--r,--t,0===f.size||0===r))return f.clear(),r;for(let t=0;t<i;++t)if(f.has(e[t])&&(o?.push(e[t]),f.delete(e[t]),e[t]=e[r-1],--r,--t,0===f.size||0===r))return f.clear(),r;return f.clear(),r}function h(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function p(e,t){return null!=e}new n.A},86805:(e,t,r)=>{"use strict";function n(e){return 32+e.length}function s(){return 16}function o(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r];switch(typeof s){case"string":t+=n(s);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function i(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e){switch(typeof e){case"object":return i(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function c(e,t){return u+e.length*t}r.d(t,{eY:()=>o,f3:()=>s,iL:()=>i,zd:()=>c});const l=32,u=16},51447:(e,t,r)=>{"use strict";r.d(t,{Lx:()=>a,eF:()=>c,eO:()=>i,io:()=>l});var n=r(44208);const s=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=s.get(e);o||(o=new Set,s.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?n+"::":"")+t+"()",r)}}function a(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?n+"::":"")+t,r)}}function c(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:s,see:i,warnOnce:a}=r;let c=t;n&&(c+=`\n\t🛠️ Replacement: ${n}`),s&&(c+=`\n\t⚙️ Version: ${s}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),o(e,c,a)}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>a,on:()=>i,wb:()=>s});var n=r(36563);function s(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,s){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,s);return(0,n.hA)((()=>{for(const t of o)e.removeEventListener(t,r,s)}))}return e.addEventListener(t,r,s),(0,n.hA)((()=>e.removeEventListener(t,r,s)))}(e,t,r):e.on(t,r)}function a(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=i(e,t,(t=>{n.remove(),r.call(e,t)}));return n}},36563:(e,t,r)=>{"use strict";r.d(t,{hA:()=>s,vE:()=>o});const n={remove:()=>{}};function s(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return s((()=>function(e){e.forEach((e=>e?.remove()))}(e)))}},44208:(e,t,r)=>{"use strict";let n;function s(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>s}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},s.add=(e,t,r,o)=>((o||void 0===n[e])&&(n[e]=t),r&&s(e)),s.cache=n,s.add("big-integer-warning-enabled",!0),s.add("esri-deprecation-warnings",!0),s.add("esri-tests-disable-screenshots",!1),s.add("esri-tests-use-full-window",!1),s.add("esri-tests-post-to-influx",!0),s.add("esri-cim-animations-enable-status","enabled"),s.add("esri-cim-animations-spotlight",!1),s.add("esri-cim-animations-freeze-time",!1),(()=>{s.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(s.add("host-browser",e),s.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),s.add("dom",e),s("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(s.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),s.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),s.add("khtml",r.includes("Konqueror")?n:void 0),s.add("edge",parseFloat(t.split("Edge/")[1])||void 0),s.add("opr",parseFloat(t.split("OPR/")[1])||void 0),s.add("webkit",!s("wp")&&!s("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),s.add("chrome",!s("edge")&&!s("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),s.add("android",!s("wp")&&parseFloat(t.split("Android ")[1])||void 0),s.add("safari",!r.includes("Safari")||s("wp")||s("chrome")||s("android")||s("edge")||s("opr")?void 0:parseFloat(r.split("Version/")[1])),s.add("mac",r.includes("Macintosh")),!s("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));s.add(e,n),s.add("ios",n)}s("webkit")||(!t.includes("Gecko")||s("wp")||s("khtml")||s("edge")||s.add("mozilla",n),s("mozilla")&&s.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&s.add("esri-mobile",t),r&&s.add("esri-iPhone",r),s.add("esri-geolocation",!!navigator.geolocation)}s.add("esri-wasm","WebAssembly"in globalThis),s.add("esri-performance-mode-frames-between-render",20),s.add("esri-force-performance-mode",!1),s.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),s.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),s.add("esri-atomics","Atomics"in globalThis),s.add("esri-workers","Worker"in globalThis),s.add("web-feat:cache","caches"in globalThis),s.add("esri-workers-arraybuffer-transfer",!s("safari")||Number(s("safari"))>=12),s.add("workers-pool-size",8),s.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),s.add("featurelayer-simplify-payload-size-factors",[1,1,4]),s.add("featurelayer-fast-triangulation-enabled",!0),s.add("featurelayer-animation-enabled",!0),s.add("featurelayer-snapshot-enabled",!0),s.add("featurelayer-snapshot-point-min-threshold",8e4),s.add("featurelayer-snapshot-point-max-threshold",4e5),s.add("featurelayer-snapshot-point-coverage",.1),s.add("featurelayer-query-max-depth",4),s.add("featurelayer-query-pausing-enabled",!1),s.add("featurelayer-advanced-symbols",!1),s.add("featurelayer-pbf",!0),s.add("featurelayer-pbf-statistics",!1),s.add("feature-layers-workers",!0),s.add("feature-polyline-generalization-factor",1),s.add("mapview-transitions-duration",200),s.add("mapview-essential-goto-duration",200),s.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),s.add("mapserver-pbf-version-support",10.81),s.add("mapservice-popup-identify-max-tolerance",20),s("host-webworker")||s("host-browser")&&(s.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),s.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{s.add("esri-image-decode",!0,!0,!0)})).catch((()=>{s.add("esri-image-decode",!1,!0,!0)}))}return!1})),s.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},5479:(e,t,r)=>{"use strict";function n(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function s(e,t){for(const r of e)if(null!=r&&t(r))return r}function o(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{I6:()=>s,PP:()=>n,xZ:()=>o})},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>a,aI:()=>h,gh:()=>p,o8:()=>i,oy:()=>o});var n=r(4576),s=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],s=a(n);if(null!=n&&null==s)return null;t[r]=s}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,s.dz)(e)||(0,s.mg)(e)||(0,s.UR)(e)||(0,s.IY)(e)||(0,s.jq)(e)||(0,s._G)(e)||(0,s.XJ)(e)||(0,s.vZ)(e)||(0,s.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function s(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function a(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function u(e,t){let r;return e.some(((e,n)=>(r=t(e,n),null!=r))),r??void 0}r.d(t,{CM:()=>l,DC:()=>a,Gz:()=>c,Lw:()=>n,Pb:()=>u,WD:()=>o,pR:()=>s,xt:()=>i})},26390:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});const n=[];function s(e){n.push(e),1===n.length&&queueMicrotask((()=>{const e=n.slice();n.length=0;for(const t of e)t()}))}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>s,i8:()=>a,sM:()=>i,wc:()=>o});var n=r(4718);function s(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),s=n.pop(),o=c(n,!0,r);o&&s&&(o[s]=t)}function a(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(a(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(a(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce(((e,s)=>{let o=e[s],i=t[s];return o===i?e:void 0===o?(e[s]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=o?Array.isArray(o)?e[s]=o.concat():e[s]=[o]:e[s]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{o.includes(e)||o.push(e)})):e[s]=i.concat())):i&&"object"==typeof i?e[s]=l(o,i,r):e.hasOwnProperty(s)&&!t.hasOwnProperty(s)||(e[s]=i),e)}),e||{}):e}},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>A,nA:()=>w,NK:()=>l,Tw:()=>T,sg:()=>E,Lx:()=>v,QZ:()=>_,zf:()=>b,G4:()=>d,$X:()=>k,u7:()=>g,NY:()=>y,Mq:()=>f,QP:()=>h,Te:()=>u,jH:()=>p,NO:()=>N,z7:()=>S,qr:()=>m});var n=r(36563);const s=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)((()=>o.clearTimeout(r)))}});var o,i=r(49186),a=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new i.A("AbortError",e)}function u(e,t="Aborted"){if(d(e))throw l(t)}function f(e){return e instanceof AbortSignal?e:e?.signal}function d(e){const t=f(e);return null!=t&&t.aborted}function h(e){if(b(e))throw e}function p(e){if(!b(e))throw e}function g(e,t){const r=f(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",(()=>t()));t()}}function y(e,t){const r=f(e);if(null!=r)return u(r),(0,a.Oo)(r,"abort",(()=>t(l())))}function m(e,t){return null==f(t)?e:new Promise(((r,n)=>{let s=g(t,(()=>n(l())));const o=()=>{s=(0,c.xt)(s)};e.then(o,o),e.then(r,n)}))}function b(e){return"AbortError"===e?.name}async function _(e){try{return await e}catch(e){if(!b(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await v(r),s={};return t.map(((e,t)=>s[e]=n[t])),s}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function w(e){return(await Promise.allSettled(e)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}async function A(e){return(await Promise.allSettled(e)).filter((e=>"rejected"===e.status)).map((e=>e.reason))}function O(e,t=void 0,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,s)=>{let o=setTimeout((()=>{o=0,r(t)}),e);g(n,(()=>{o&&(clearTimeout(o),s(l()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function E(e,t=-1){let r,n,s,o,i=null;const a=(...c)=>{if(r){n=c,o&&o.reject(l()),o=T();const e=o.promise;if(i){const e=i;i=null,e.abort()}return e}if(s=o||T(),o=null,t>0){const n=new AbortController;r=S(e(...c,n.signal));const s=r;O(t).then((()=>{r===s&&(o?n.abort():i=n)}))}else r=1,r=S(e(...c));const u=()=>{const e=n;n=s=r=i=null,null!=e&&a(...e)},f=r,d=s;return f.then(u,u),f.then(d.resolve,d.reject),d.promise};return a}function T(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}async function N(e){await Promise.resolve(),u(e)}},11932:(e,t,r)=>{"use strict";r.d(t,{_:()=>g,md:()=>w});var n=r(26390),s=r(61604),o=r(3694),i=r(74887),a=r(78659);class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let l=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],h=new o.A,p={frameTasks:h,willDispatch:!1,clearFrameTasks:function(e=!1){h.forAll((e=>{e.removed=!0})),e&&_()},dispatch:v,executeFrameTasks:function(e){const t=(0,a.l5)(e-l);l=e;const r=1e3/60,n=Math.max(0,t-r);u.time=e,u.frameDuration=(0,a.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),s=f[r];h.forAll((n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[s]&&(u.elapsedFrameTime=(0,a.l5)(performance.now()-e),u.deltaTime=0===n.ticks?(0,a.l5)(0):t,n.phases[s]?.call(n,u)))})),A[r].record(performance.now()-n)}_(),O.record(performance.now()-e)},reschedule:function(){null!=y&&(cancelAnimationFrame(y),y=requestAnimationFrame(m))}};function g(e){const t=new c(e);return d.push(t),p.willDispatch||(p.willDispatch=!0,(0,n.d)(v)),t}let y=null;function m(){const e=performance.now();y=null,y=h.length>0?requestAnimationFrame(m):null,p.executeFrameTasks(e)}const b=new o.A;function _(){h.forAll((e=>{e.removed&&b.push(e)})),h.removeUnorderedMany(b.data,b.length),b.clear()}function v(){for(;d.length;){const e=d.shift();e.isActive&&e.callback()}p.willDispatch=!1}function w(e=1,t){const r=(0,i.Tw)(),s=()=>{(0,i.G4)(t)?r.reject((0,i.NK)()):0===e?r():(--e,(0,n.d)((()=>s())))};return s(),r.promise}const A=f.map((e=>new s.A(e))),O=new s.A("total")},799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>a,HC:()=>i,Wm:()=>c,_e:()=>u});var n=r(93637);const s=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(s,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function a(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,(e=>t?.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function u(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},78659:(e,t,r)=>{"use strict";function n(e){return e}function s(e){return 1e3*e}function o(e){return e}r.d(t,{Kp:()=>o,gr:()=>s,l5:()=>n})},34275:(e,t,r)=>{"use strict";r.d(t,{Ek:()=>g,IY:()=>c,JI:()=>b,UR:()=>a,XJ:()=>f,_G:()=>u,a3:()=>v,aI:()=>h,cy:()=>p,dk:()=>_,dz:()=>o,jq:()=>l,mg:()=>i,mw:()=>s,vZ:()=>d,y9:()=>m});var n=r(86805);function s(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function i(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function l(e){return"Uint16Array"===e?.constructor?.name}function u(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function h(e){return"Float64Array"===e?.constructor?.name}function p(e){return!("buffer"in e)}function g(...e){return e.reduce(((e,t)=>e+(t?p(t)?(0,n.zd)(t,(0,n.f3)()):t.byteLength+y:0)),0)}r(44208);const y=145,m=1024;function b(e){return h(e)||d(e)||u(e)||c(e)||o(e)}function _(e){return h(e)||d(e)}function v(e){return h(e)?179769e303:d(e)?3402823e32:f(e)?4294967295:l(e)?65535:i(e)||a(e)?255:u(e)?2147483647:c(e)?32767:o(e)?127:256}},24326:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});let n=0;function s(){return++n}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Q,$z:()=>V,An:()=>T,BQ:()=>oe,DB:()=>Z,FL:()=>B,FX:()=>z,Hg:()=>re,Il:()=>he,N9:()=>se,S8:()=>G,T1:()=>ge,UC:()=>pe,V1:()=>W,Xq:()=>S,Zo:()=>ve,_0:()=>Ae,a6:()=>_e,b8:()=>D,e7:()=>de,fj:()=>H,gd:()=>E,lJ:()=>X,lM:()=>ce,m3:()=>ae,nM:()=>fe,oP:()=>K,oy:()=>$,r$:()=>te,rs:()=>be,s0:()=>w,s2:()=>J,sC:()=>q,s_:()=>P,tk:()=>ne,ut:()=>U,w8:()=>Y,x0:()=>j,xw:()=>we,yM:()=>C,zf:()=>N,zi:()=>me,zs:()=>R});var n=r(92602),s=r(4576),o=r(49186),i=r(25482),a=r(53966),c=r(39131),l=r(26306);const u=()=>a.A.getLogger("esri.core.urlUtils"),f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",h=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,g=/^\s*https:/i,y=/^\s*file:/i,m=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,_=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(_);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const A={};let O=new w(n.A.applicationUrl);let k=function(){const e=O.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,E=()=>k;function T(e){if(!e)return null;const t={path:null,query:null},r=new w(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=N(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function N(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(s):r[n]=s}return r}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",o=t?.[r];return o?s+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>(0,i.Wj)(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):(0,i.Wj)(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function P(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw u().warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&le()&&(r=ce(r)),T(r)}function C(e){const t=R(e);let r,n;if(t){const e=M(t.proxyUrl);r=e.path,n=e.query?N(e.query):null}if(r){const t=T(e);e=r+"?"+t.path;const s=j({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const I={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function x(e){return(e=ue(e=he(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:x(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function R(e){const t=f.proxyRules,r=x(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function D(e,t){if(!e||!t)return!1;e=L(e),t=L(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&z(e,t,!0)}function U(e,t){return e=L(e),t=L(t),ue(e)===ue(t)}function L(e){const t=(e=G(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){const r=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t);if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function z(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),s=ye(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function B(e){if("string"==typeof e){if(!K(e))return!0;e=ye(e)}if(z(e,O))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(z(e,n[t]))return!0}return!1}function F(e){return A[e]||(ie(e)||oe(e)?A[e]=[new w(J(e))]:A[e]=[new w(`http://${e}`),new w(`https://${e}`)]),A[e]}function J(e,t=k,r){return oe(e)?r?.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:H("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function W(e,t=k,r){if(null==e||!K(e))return e;const n=G(e),s=n.toLowerCase(),o=G(t).toLowerCase().replace(/\/+$/,""),i=r?G(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==o.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(s,"/",s.indexOf("//")+2),l=-1;for(;s.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==s.length);)c=a(s,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function G(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&p.test(e)||"http"===O.scheme&&oe(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!b.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!R(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function H(...e){const t=e.filter(s.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&y.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(null==e||Y(e)||Z(e))return null;let r=e.indexOf("://");if(-1===r&&oe(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function K(e){return oe(e)||ie(e)}function Y(e){return null!=e&&"blob:"===e.slice(0,5)}function Z(e){return null!=e&&"data:"===e.slice(0,5)}function X(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Q(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function se(e){const t=X(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&h.test(e)}function ae(e){return null!=e&&g.test(e)||"https"===O.scheme&&oe(e)}function ce(e){return oe(e)?`https:${e}`:e.replace(p,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return oe(e)?e.slice(2):(e=e.replace(h,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=T(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const s=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(s,"")}function he(e){return e.endsWith("/")?e:`${e}/`}function pe(e){return e.replace(/\/+$/,"")}function ge(e,t,r){if(!(t&&r&&e&&K(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(s<0?e.length:s,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ye(e){return"string"==typeof e?new w(J(e)):(e.scheme||(e.scheme=O.scheme),e)}function me(e,t){const r=T(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function be(e,t,r){const n=T(e),s=n.query||{};return s[t]=String(r),`${n.path}?${j(s)}`}function _e(e,t){if(!t)return e;const r=T(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const s=j(n);return s?`${r.path}?${s}`:r.path}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function we(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Ae(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^/]*)$/},52268:(e,t,r)=>{"use strict";function n(e,t){return new Proxy({},{get:(r,n,s)=>(...r)=>{let s,o;const i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(s=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:s})}})}r.d(t,{L:()=>n})},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),s=r(49186),o=r(37955),i=r(36563),a=r(97768),c=r(74887),l=r(52268);const u={statsWorker:()=>Promise.all([r.e(6285),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(8438),r.e(201),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(6387)]).then(r.bind(r,68887)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(5323)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(9899),r.e(4157),r.e(7692)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(3030),r.e(2324)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(8129)]).then(r.bind(r,11780)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(3260)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(7210)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(4996),r.e(8902),r.e(4080),r.e(9748)]).then(r.bind(r,97367)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(360),r.e(9566),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(9949),r.e(9423),r.e(3089),r.e(4914),r.e(4999)]).then(r.bind(r,16915)),PointCloudWorker:()=>Promise.all([r.e(4996),r.e(7455),r.e(2944),r.e(5362)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2876),r.e(8488),r.e(4639)]).then(r.bind(r,30139)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(7455),r.e(3030),r.e(9899),r.e(4157),r.e(4587)]).then(r.bind(r,24587)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(7455),r.e(2944),r.e(7016),r.e(3739)]).then(r.bind(r,2060)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(7455),r.e(3097),r.e(8438),r.e(201),r.e(4322),r.e(3114)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(4996),r.e(8902),r.e(9949),r.e(5013),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>r.e(9234).then(r.bind(r,79234)),Feature3DPipelineWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(893),r.e(4080),r.e(2177)]).then(r.bind(r,76929))};var f=r(8341),d=r(18357);const{CLOSE:h,ABORT:p,INVOKE:g,RESPONSE:y,OPEN_PORT:m,ON:b}=f.Go;class _{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===f.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=s),v.clients.set(s,n),r.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._jobQueue=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new _((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new s.A(f.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,f.Jc)();return new Promise(((r,s)=>{if((0,c.G4)(n))return this._processWork(),void s((0,c.NK)());const l=(0,c.u7)(n,(()=>{const e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,a.xt)(e.abortHandle),this._post({type:p,jobId:i}),s((0,c.NK)()))})),u={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,u),this._post({type:g,jobId:i,methodName:e,abortable:null!=n},t,o)}))}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:f.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)((()=>{r.port1.postMessage({type:f.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}))}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:s}=e;this.apply(t,r,n).then((e=>s.resolve(e))).catch((e=>s.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,a.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e,!0))):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,f.VI)(e);if(r)switch(r.type){case y:this._onResponseMessage(r);break;case g:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case p:this._onAbortMessage(r);break;case h:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case b:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:s}=e,o=s?new AbortController:null,i=this._inJobs;let a,l=this._client,u=l[t];try{if(!u&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],u=l[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),a=u.apply(l,n)}catch(e){return void this._post({type:y,jobId:r,error:(0,f.mF)(e)})}(0,c.$X)(a)?(i.set(r,{controller:o,promise:a}),a.then((e=>{i.has(r)&&(i.delete(r),this._post({type:y,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,c.zf)(e)||this._post({type:y,jobId:r,error:(0,f.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},a)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,o.on)(e.port,"message",(e=>{const s=(0,f.VI)(e);s?.type===f.Go.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const i=o.get(t);o.delete(t),this._processWork(),(0,a.xt)(i.abortHandle),r?i.reject(s.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,f.u1)(this._port,e,t,r)}}v.kernelInfo={buildDate:d.$,fullVersion:n.ol,revision:d.u},v.clients=new Map},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>i,Jc:()=>l,T:()=>o,VI:()=>d,mF:()=>u,oV:()=>p,u1:()=>f});var n=r(44208),s=r(74887);const o="worker:port-closed";var i,a;(a=i||(i={}))[a.HANDSHAKE=0]="HANDSHAKE",a[a.OPEN=1]="OPEN",a[a.OPENED=2]="OPENED",a[a.RESPONSE=3]="RESPONSE",a[a.INVOKE=4]="INVOKE",a[a.ABORT=5]="ABORT",a[a.CLOSE=6]="CLOSE",a[a.OPEN_PORT=7]="OPEN_PORT",a[a.ON=8]="ON";let c=0;function l(){return c++}function u(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,s){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let o;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=h(r.transferList),t.data=r.result):(o=h(s),t.data=r),o){if((0,n.A)("ff"))for(const r of o)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case i.INVOKE:throw r;case i.RESPONSE:return void f(e,{type:i.RESPONSE,jobId:t.jobId,error:u(r)})}}e.postMessage(t,o)}else e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}async function p(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,s.zf)(e)&&!t)throw e;return}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>l,Y3:()=>u,id:()=>a,ol:()=>c,rE:()=>i});var n=r(44208),s=r(84952),o=r(18357);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const i="4.31";let a,c=i;function l(e){a=e}function u(e){const t=a?.findCredential(e);return t?.token?(0,s.rs)(e,"token",t.token):e}c=`4.31.0-next.${o.$}`,(0,n.A)("host-webworker")},39131:(e,t,r)=>{"use strict";r.d(t,{$E:()=>i,py:()=>o,qG:()=>a});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,s={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=s;if(o)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function a(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function s(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>s})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>s});const n="20240715",s="02d22b92c0ca20b1e613ba19f43171a9381f8f86"}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{146:"56326fd42c3aecb323d1",171:"0f1f32f338b23dc70fd3",177:"7c02628c53da9795f224",191:"090697a2a46210da2111",201:"c52701477405c1fb2072",309:"2dfb18669299cc0e2fe8",349:"198d74db9631a66bd850",360:"f8f5d7b381995833061d",369:"3871d2ecef5bcf6ac14f",382:"d823c30e5d10b8b46937",475:"33f3b46fb622c04a2524",591:"5f3600a6d7159228731d",620:"25c41ceb1951d80f4798",692:"8e643c941f3bfc8631ec",710:"52b54f8f95256e31605f",820:"28ccc007bc898af2187c",835:"658afb4dd136faa373b8",893:"e22a13ff683d207e0434",964:"bf619b4f34c6152b769e",980:"c7ff5ed235cbe2903353",1053:"71bd94cc789a55910f92",1132:"44d5bd9db9c60615c184",1147:"7bef0353afe585410d88",1204:"618f825d56d4981594c5",1215:"5c08ef98e597d6ebf978",1273:"5d6c958876e40952d0cc",1275:"b2080c2a87ff35962d5c",1277:"ea31314541c8033f3c09",1346:"7a108eafd620d52df670",1384:"44cc87f001022e88f97b",1389:"56a86c1eabe48968fc18",1493:"08c65ff4c69c265ac1c4",1507:"933546efca14191fabc1",1528:"6e41ed19376636417d1f",1535:"8a37c5b110665c8ff5a7",1728:"1dc7a3a7fc39fd3060f4",1737:"b2e8cc76381077b78d4c",1756:"c205e2310a367be57cc3",1956:"9f5e771280883fd7150e",1967:"32dd3e0484295d2790fc",2141:"6f1206babad45377aba6",2169:"b48ed4177a18b2c58088",2177:"632e3ba2b8a881df29a0",2180:"7979d4c376ff77072366",2186:"9fde9309cb64f1a9301c",2194:"219c5c8cd9cf39e289ad",2288:"2d92a9db4a300cdbc7fd",2324:"9f8dcc887fcd2d0d3245",2329:"e4f1db05d2b2ad83a0de",2343:"e66ebcfffd081f847efe",2390:"47aff98b87818428dac9",2558:"5ee4f59a9b742ce114c7",2593:"451cda780df55aefc2a0",2731:"6b0baecbd35d26393dcf",2829:"f74ca4528df8e50b704a",2857:"41173f53b19d0e74ecac",2876:"6e79f652e46f4428621d",2931:"92cb45b18e151db007dc",2944:"45a3245366817a734278",2958:"236e0f5d5ac1a6ea1107",2980:"19ad69a889bf06d30f0f",3009:"76b5e8434565ca4affb9",3030:"f23901ac5ec0861ad674",3069:"f1313389eeb7a2350db3",3089:"2833aa3ef586887a8fc6",3091:"9d9233cbaab2675f42ea",3097:"2f978dc54e6d3a001de4",3114:"b3ac722ad001768c47fa",3161:"81584e37103fb0c28dbb",3209:"527932bf4c31cec46922",3260:"f77286ab77f618db8e14",3359:"89b9332f052d11df6a71",3379:"c1672ac1d003594ff0da",3390:"8c0cf61373f9f2532da4",3492:"87f33a60768801ca1ce8",3543:"ce130ddf9eeafbd39a47",3561:"0ad628ba26fd1798ca9b",3600:"8753e829ea1a38c4615f",3622:"7fd9134246a9dbfa603b",3656:"adc40069ed6001d6448c",3666:"8f0f3cf67f3162411bda",3739:"2123ab24163a532ebc8d",3740:"0d750cf0c74d14080fea",3839:"bb7b887eeb2eee5e0a5c",3920:"cd16c79f144532461138",4080:"7baf288a07401f9e972d",4135:"725a0eae5248a933db05",4157:"3459bad718864db3fcc5",4174:"569c0397dc923ea2700e",4273:"66b835a5edfcdcf21c06",4322:"3f2a3b66531325aa4f12",4399:"1ba1d9c867ec6a492af9",4543:"e1f4df3a5b0b31521b3c",4587:"544eec13338b2d71680f",4591:"1a393b00db50eebc0315",4639:"d5497a0e3c0b57b2bf45",4761:"bd3e20c909bc3e07fe4b",4784:"7913bb6cba8d499a273c",4796:"bedf60888f07b78b314d",4800:"b24efb1806c6f3837f4d",4850:"2dddb8a989b9c96572fe",4914:"fedcc145070c45a826f2",4983:"a5405c1859c602bf083b",4996:"413609b0aa85f2052154",4999:"a25b3917ce50a67eb2e4",5013:"34b5bab6239c7277f854",5112:"275ac08613ca5510db04",5141:"34ea46659c8cebec3ffa",5165:"aa597918f8d480deb8d4",5181:"1e7d18668d2444a763c8",5204:"e943f16bc9f28699724f",5257:"f92d76b694ff0cdb212c",5268:"73fddb441d6c9177076b",5323:"155c493a798b62619f39",5356:"bff4b67cbb1a9eaf1f0b",5362:"0f1ecdaaa51341094a29",5367:"8d9bc39077d8261df151",5399:"b3dab94608f3226821b3",5404:"3811c4e77aedd852cc06",5494:"fdf0bcd0389918a00650",5588:"7b68bfa61b5c31fec56d",5613:"e070bcd8e69ce3efb8fd",5740:"916bb9d2ea06c4c1668a",5771:"c8a91855222e50591a4f",5804:"46f6a190e3c943b44095",5894:"85471bec9f79bc641ae6",5989:"d2fa4d2887692a1ec9b1",6052:"f585a368008de26b54b6",6056:"19ccc91b515465f0d505",6107:"6684c306181665e9a264",6184:"48aeb087a1b10a8f4c0b",6187:"c9c9180d08d2c24f5271",6247:"7819a446d3c9749ff74f",6285:"ad51809453d627dc33fd",6387:"947149f819e8278ec8c1",6389:"339929c10fa8366b1615",6493:"423abec9211aa6ab6502",6650:"982b6adcbc610dd17e69",6842:"6d26dd93cfd64ee1a6cc",6845:"e014751a22cad4bb21e4",6875:"db378921253c7958c5c2",7e3:"543f9db420c99d429637",7016:"13b669fa10b4c2859f83",7029:"d7d2552ff3e2d44319c7",7087:"9e57ad112dec6080fb32",7110:"63f06a86a8a0e60f0f6d",7210:"1b0e1a97be443fab1646",7251:"325f4cd2aad105d2ce97",7272:"d6f7ad4ff0901c4ea6d1",7301:"a611e0543d4b4bb01f3c",7314:"d03a6fcfbd53974f0c17",7364:"15d9ff9711681cfece61",7367:"2b3ee1701fd14d9d2e34",7455:"54307e3cd9160692e6ee",7656:"317fcb69bd430da134da",7692:"289d70118db1213e1244",7899:"91f383e9c2d7c54b645c",7982:"69e432e24f581aa08ce3",8003:"7427709a739a3b54fb5b",8018:"57d7b980be64a7818115",8096:"61e5179fb49866241128",8129:"ab024d5233198a3e9ff9",8370:"bf7253f7e5d6d63333c3",8392:"744fcbcedb5eaccef610",8438:"d41d7ffaad3bb7b810dd",8488:"2ee7d91cc6c1ae7f3698",8541:"291bdab5737152bc1825",8628:"61e1f1564a8440f186e7",8692:"192f64e12728626372ab",8742:"4d405ae8d2164b434483",8846:"5317a9d1891be0c92130",8902:"252ff37bf5e12dae0b18",8947:"9f5805ecd88d78f092cc",9013:"cdbb209cf240e8bc29f0",9062:"e038158e871e3803321a",9082:"df8c5d1b7528a1ff2468",9186:"79d10e5f0ac490313549",9234:"5b43013c163d8e242583",9321:"c50d82bdd4bd74dfbcd8",9356:"a30f52f903d5e87f5401",9377:"911f1a12570ea9e3e930",9384:"9c9a8a529494c6d1dfa3",9423:"2887466b3bf152465e97",9511:"a37a1cfdf8d42f712705",9558:"139bfed231a72b8e479e",9564:"c44cc686774ff53c0a94",9566:"28b1c46fa9c81a36ce50",9588:"a69e885336eb5d2729fd",9748:"b6a8132708afcd988fa9",9838:"0281c669d63ff132337f",9858:"b6be871be5ac97d13288",9885:"d8e992490b619d900280",9899:"d9863289c69d2550cd49",9930:"196b5917e41da7b60cde",9933:"20d0390504e4cc9f93f4",9949:"8cce4b218568638e6e64"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[s,o,i]=t;for(var a in o)r.o(o,a)&&(r.m[a]=o[a]);for(i&&i(r);s.length;)e[s.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
@@ -221,7 +221,7 @@ return fallOffFunction(vv, vn, 0.1);
221
221
  vec2 uvOffset = uv + rf * blurSize;
222
222
  blurFunction(uvOffset, rf, center_d, sharpness, w_total, b);
223
223
  }
224
- fragBlur = b / w_total;`),e}const m=Object.freeze(Object.defineProperty({__proto__:null,build:f},Symbol.toStringTag,{value:"Module"}))},76412:(e,t,r)=>{r.d(t,{c:()=>p,d:()=>_,f:()=>b,g:()=>T,h:()=>x,k:()=>w,o:()=>P}),r(44208),r(53966);var i=r(34727),n=r(58083),o=r(38954),a=r(51850),s=r(87317),l=r(91829),c=r(34304),d=r(88582),u=r(71351),h=r(44280),f=r(32114);const m=p();function p(){return(0,l.vt)()}const v=s.e,g=s.e;function _(e,t){return(0,s.c)(t,e)}function x(e){return e[3]}function T(e){return e}function b(e,t,r,i){return(0,l.fA)(e,t,r,i)}function y(e,t,r){if(null==t)return!1;if(!E(e,t,A))return!1;let{t0:i,t1:n}=A;if((i<0||n<i&&n>0)&&(i=n),i<0)return!1;if(r){const{origin:e,direction:n}=t;r[0]=e[0]+n[0]*i,r[1]=e[1]+n[1]*i,r[2]=e[2]+n[2]*i}return!0}const A={t0:0,t1:0};function E(e,t,r){const{origin:i,direction:n}=t,o=S;o[0]=i[0]-e[0],o[1]=i[1]-e[1],o[2]=i[2]-e[2];const a=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===a)return!1;const s=2*(n[0]*o[0]+n[1]*o[1]+n[2]*o[2]),l=s*s-4*a*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(l<0)return!1;const c=Math.sqrt(l);return r.t0=(-s-c)/(2*a),r.t1=(-s+c)/(2*a),!0}const S=(0,a.vt)();function w(e,t){return y(e,t,null)}function M(e,t,r){const i=f.rq.get(),a=f.Rc.get();(0,o.b)(i,t.origin,t.direction);const s=x(e);(0,o.b)(r,i,t.origin),(0,o.j)(r,r,1/(0,o.l)(r)*s);const l=O(e,t.origin),c=(0,h.g7)(t.origin,r);return(0,n.$0)(a,c+l,i),(0,o.h)(r,r,a),r}function C(e,t,r){const i=(0,o.f)(f.rq.get(),t,e),n=(0,o.j)(f.rq.get(),i,e[3]/(0,o.l)(i));return(0,o.g)(r,n,e)}function O(e,t){const r=(0,o.f)(f.rq.get(),t,e),n=(0,o.l)(r),a=x(e),s=a+Math.abs(a-n);return(0,i.XM)(a/s)}const I=(0,a.vt)();function R(e,t,r,n){const a=(0,o.f)(I,t,e);switch(r){case d._.X:{const e=(0,i.jU)(a,I)[2];return(0,o.s)(n,-Math.sin(e),Math.cos(e),0)}case d._.Y:{const e=(0,i.jU)(a,I),t=e[1],r=e[2],s=Math.sin(t);return(0,o.s)(n,-s*Math.cos(r),-s*Math.sin(r),Math.cos(t))}case d._.Z:return(0,o.n)(n,a);default:return}}function N(e,t){const r=(0,o.f)(L,t,e);return(0,o.l)(r)-e[3]}function P(e,t){const r=(0,o.a)(e,t),i=x(e);return r<=i*i}const L=(0,a.vt)(),H=p();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:N,angleToSilhouette:O,axisAt:R,cameraFrustumCoverage:function(e,t,r,i){const n=x(e),o=n*n,a=t+.5*Math.PI,s=r*r+o-2*Math.cos(a)*r*n,l=Math.sqrt(s),c=s-o;if(c<=0)return.5;const d=Math.sqrt(c),u=Math.acos(d/l)-Math.asin(n/(l/Math.sin(a)));return Math.min(1,(u+.5*i)/i)},clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return y(e,t,r)?r:((0,u.oC)(t,e,r),C(e,r,r))},closestPointOnSilhouette:M,containsPoint:P,copy:_,create:p,distanceToSilhouette:function(e,t){const r=(0,o.f)(f.rq.get(),t,e),i=(0,o.q)(r),n=e[3]*e[3];return Math.sqrt(Math.abs(i-n))},elevate:function(e,t,r){return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=e[3]+t,r},equals:g,exactEquals:v,fromCenterAndRadius:function(e,t){return(0,l.fA)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:b,getCenter:T,getExtent:function(e,t){return t},getRadius:x,intersectLine:function(e,t,r){const i=(0,u.Cr)(t,r);if(!E(e,i,A))return[];const{origin:n,direction:s}=i,{t0:l,t1:d}=A,h=t=>{const r=(0,a.vt)();return(0,o.r)(r,n,s,t),C(e,r,r)};return Math.abs(l-d)<(0,c.FD)()?[h(l)]:[h(l),h(d)]},intersectRay:y,intersectRayClosestSilhouette:function(e,t,r){if(y(e,t,r))return r;const i=M(e,t,f.rq.get());return(0,o.g)(r,t.origin,(0,o.j)(f.rq.get(),t.direction,(0,o.p)(t.origin,i)/(0,o.l)(t.direction))),r},intersectsRay:w,projectPoint:C,setAltitudeAt:function(e,t,r,i){const n=N(e,t),a=R(e,t,d._.Z,L),s=(0,o.j)(L,a,r-n);return(0,o.g)(i,t,s)},setExtent:function(e,t,r){return e!==r&&_(e,r),r},tmpSphere:H,union:function(e,t,r=(0,l.vt)()){const i=(0,o.p)(e,t),n=e[3],a=t[3];return i+a<n?((0,s.c)(r,e),r):i+n<a?((0,s.c)(r,t),r):((0,o.o)(r,e,t,(i+a-n)/(2*i)),r[3]=(i+n+a)/2,r)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},43609:(e,t,r)=>{r.d(t,{a:()=>o,f:()=>a,n:()=>n});var i=r(34275);function n(e,t){o(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r=2,n=r){const o=t.length/2;let a=0,s=0;if((0,i.cy)(t)||(0,i.dk)(t)){for(let i=0;i<o;++i)e[a]=t[s],e[a+1]=t[s+1],a+=r,s+=n;return}const l=(0,i.a3)(t);if((0,i.JI)(t))for(let i=0;i<o;++i)e[a]=Math.max(t[s]/l,-1),e[a+1]=Math.max(t[s+1]/l,-1),a+=r,s+=n;else for(let i=0;i<o;++i)e[a]=t[s]/l,e[a+1]=t[s+1]/l,a+=r,s+=n}function a(e,t,r,i){const n=e.typedBuffer,o=e.typedBufferStride,a=i?.count??e.count;let s=(i?.dstIndex??0)*o;for(let e=0;e<a;++e)n[s]=t,n[s+1]=r,s+=o}Object.freeze(Object.defineProperty({__proto__:null,fill:a,normalizeIntegerBuffer:o,normalizeIntegerBufferView:n},Symbol.toStringTag,{value:"Module"}))},73354:(e,t,r)=>{function i(e,t,r){n(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r,i=3,n=i){if(e.length/i!==Math.ceil(t.length/n))return e;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[4],d=r[5],u=r[6],h=r[8],f=r[9],m=r[10],p=r[12],v=r[13],g=r[14];let _=0,x=0;for(let r=0;r<o;r++){const r=t[_],o=t[_+1],T=t[_+2];e[x]=a*r+c*o+h*T+p,e[x+1]=s*r+d*o+f*T+v,e[x+2]=l*r+u*o+m*T+g,_+=n,x+=i}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,i=3,n=i){if(e.length/i!==Math.ceil(t.length/n))return;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[3],d=r[4],u=r[5],h=r[6],f=r[7],m=r[8];let p=0,v=0;for(let r=0;r<o;r++){const r=t[p],o=t[p+1],g=t[p+2];e[v]=a*r+c*o+h*g,e[v+1]=s*r+d*o+f*g,e[v+2]=l*r+u*o+m*g,p+=n,v+=i}}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,n=i){const o=Math.min(e.length/i,t.length/n);let a=0,s=0;for(let l=0;l<o;l++)e[s]=r*t[a],e[s+1]=r*t[a+1],e[s+2]=r*t[a+2],a+=n,s+=i;return e}function c(e,t,r,i=3,n=i){const o=e.length/i;if(o!==Math.ceil(t.length/n))return e;let a=0,s=0;for(let l=0;l<o;l++)e[s]=t[a]+r[0],e[s+1]=t[a+1]+r[1],e[s+2]=t[a+2]+r[2],a+=n,s+=i;return e}function d(e,t){u(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function u(e,t,r=3,i=r){const n=Math.min(e.length/r,t.length/i);let o=0,a=0;for(let s=0;s<n;s++){const n=t[o],s=t[o+1],l=t[o+2],c=n*n+s*s+l*l;if(c>0){const t=1/Math.sqrt(c);e[a]=t*n,e[a+1]=t*s,e[a+2]=t*l}o+=i,a+=r}}r.d(t,{a:()=>n,b:()=>c,c:()=>o,d:()=>i,e:()=>d,f:()=>l,n:()=>u,s:()=>s,t:()=>a}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:u,normalizeView:d,scale:l,scaleView:s,shiftRight:function(e,t,r){const i=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,a=t.typedBuffer,s=t.typedBufferStride;let l=0,c=0;for(let e=0;e<i;e++)n[c]=a[l]>>r,n[c+1]=a[l+1]>>r,n[c+2]=a[l+2]>>r,l+=s,c+=o},transformMat3:a,transformMat3View:o,transformMat4:n,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},51737:(e,t,r)=>{function i(e,t){n(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r=3,i=r){const n=t.length/i;let o=0,a=0;for(let s=0;s<n;++s)e[o]=t[a],e[o+1]=t[a+1],e[o+2]=t[a+2],o+=r,a+=i}function o(e,t,r,i,n){const o=e.typedBuffer,a=e.typedBufferStride,s=n?.count??e.count;let l=(n?.dstIndex??0)*a;for(let e=0;e<s;++e)o[l]=t,o[l+1]=r,o[l+2]=i,l+=a}r.d(t,{a:()=>i,c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,copy:n,copyView:i,fill:o},Symbol.toStringTag,{value:"Module"}))},65686:(e,t,r)=>{r.d(t,{a:()=>n,b:()=>l,n:()=>a,s:()=>s,t:()=>o}),r(44208);var i=r(53966);function n(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=4,n=i){if(e.length/i!=t.length/n)return;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[3],d=r[4],u=r[5],h=r[6],f=r[7],m=r[8];let p=0,v=0;for(let r=0;r<o;r++){const r=t[p],o=t[p+1],g=t[p+2],_=t[p+3];e[v]=a*r+c*o+h*g,e[v+1]=s*r+d*o+f*g,e[v+2]=l*r+u*o+m*g,e[v+3]=_,p+=n,v+=i}}function a(e,t){const r=Math.min(e.count,t.count),i=e.typedBuffer,n=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*n,r=e*a,s=o[r],l=o[r+1],c=o[r+2],d=s*s+l*l+c*c;if(d>0){const e=1/Math.sqrt(d);i[t]=e*s,i[t+1]=e*l,i[t+2]=e*c}}}function s(e,t,r){l(e.typedBuffer,t,r,e.typedBufferStride)}function l(e,t,r,i=4){const n=Math.min(e.length/i,t.count),o=t.typedBuffer,a=t.typedBufferStride;let s=0,l=0;for(let t=0;t<n;t++)e[l]=r*o[s],e[l+1]=r*o[s+1],e[l+2]=r*o[s+2],e[l+3]=r*o[s+3],s+=a,l+=i}Object.freeze(Object.defineProperty({__proto__:null,normalize:a,scale:l,scaleView:s,transformMat3:o,transformMat3View:n,transformMat4:function(e,t,r,n=4,o=n){if(e.length/n!=t.length/o)return void i.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=e.length/n,s=r[0],l=r[1],c=r[2],d=r[3],u=r[4],h=r[5],f=r[6],m=r[7],p=r[8],v=r[9],g=r[10],_=r[11],x=r[12],T=r[13],b=r[14],y=r[15];let A=0,E=0;for(let r=0;r<a;r++){const r=t[A],i=t[A+1],a=t[A+2],S=t[A+3];e[E]=s*r+u*i+p*a+x*S,e[E+1]=l*r+h*i+v*a+T*S,e[E+2]=c*r+f*i+g*a+b*S,e[E+3]=d*r+m*i+_*a+y*S,A+=o,E+=n}},transformMat4View:function(e,t,r){if(e.count!==t.count)return;const i=e.count,n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],d=r[6],u=r[7],h=r[8],f=r[9],m=r[10],p=r[11],v=r[12],g=r[13],_=r[14],x=r[15],T=e.typedBuffer,b=e.typedBufferStride,y=t.typedBuffer,A=t.typedBufferStride;for(let e=0;e<i;e++){const t=e*b,r=e*A,i=y[r],E=y[r+1],S=y[r+2],w=y[r+3];T[t]=n*i+l*E+h*S+v*w,T[t+1]=o*i+c*E+f*S+g*w,T[t+2]=a*i+d*E+m*S+_*w,T[t+3]=s*i+u*E+p*S+x*w}}},Symbol.toStringTag,{value:"Module"}))},78358:(e,t,r)=>{function i(e,t){n(e.typedBuffer,t,e.typedBufferStride)}function n(e,t,r=4){const i=t.typedBuffer,n=t.typedBufferStride,o=t.count;let a=0,s=0;for(let t=0;t<o;++t)e[a]=i[s],e[a+1]=i[s+1],e[a+2]=i[s+2],e[a+3]=i[s+3],a+=r,s+=n}function o(e,t,r,i,n,o){const a=e.typedBuffer,s=e.typedBufferStride,l=o?.count??e.count;let c=(o?.dstIndex??0)*s;for(let e=0;e<l;++e)a[c]=t,a[c+1]=r,a[c+2]=i,a[c+3]=n,c+=s}r.d(t,{a:()=>n,c:()=>i,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,copy:n,copyView:i,fill:o},Symbol.toStringTag,{value:"Module"}))},4341:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(26390);class n{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},46140:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(49186);let n=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[n,o]=t.split("."),a=/^\s*\d+\s*$/;if(!n?.match||!a.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!a.test(o))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const s=parseInt(n,10),l=parseInt(o,10);return new e(s,l,r)}}},61473:(e,t,r)=>{function i(e){return e=e||globalThis.location.hostname,c.some((t=>null!=e?.match(t)))}function n(e,t){return e&&(t=t||globalThis.location.hostname)?null!=t.match(o)||null!=t.match(s)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(a)||null!=t.match(l)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e}r.d(t,{EM:()=>n,b5:()=>i});const o=/^devext\.arcgis\.com$/,a=/^qaext\.arcgis\.com$/,s=/^[\w-]*\.mapsdevext\.arcgis\.com$/,l=/^[\w-]*\.mapsqa\.arcgis\.com$/,c=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,o,a,/^jsapps\.esri\.com$/,s,l]},11964:(e,t,r)=>{r.d(t,{Cr:()=>c,H6:()=>h,_I:()=>u,kb:()=>d,vt:()=>l});var i=r(34727),n=r(4341),o=r(38954),a=r(51850),s=r(32114);function l(e){return e?{origin:(0,a.o8)(e.origin),vector:(0,a.o8)(e.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function c(e,t,r=l()){return(0,o.c)(r.origin,e),(0,o.f)(r.vector,t,e),r}function d(e,t){const r=(0,o.f)(s.rq.get(),t,e.origin),n=(0,o.m)(e.vector,r),a=(0,o.m)(e.vector,e.vector),l=(0,i.qE)(n/a,0,1),c=(0,o.f)(s.rq.get(),(0,o.j)(s.rq.get(),e.vector,l),r);return(0,o.m)(c,c)}function u(e,t,r){return h(e,t,0,1,r)}function h(e,t,r,n,a){const{vector:l,origin:c}=e,d=(0,o.f)(s.rq.get(),t,c),u=(0,o.m)(l,d)/(0,o.q)(l);return(0,o.j)(a,l,(0,i.qE)(u,r,n)),(0,o.g)(a,a,e.origin)}(0,a.vt)(),(0,a.vt)(),new n.I((()=>l()))},71351:(e,t,r)=>{r.d(t,{Cr:()=>d,LV:()=>c,kb:()=>u,oC:()=>h,vt:()=>s}),r(4576);var i=r(4341),n=r(38954),o=r(51850),a=r(32114);function s(e){return e?l((0,o.o8)(e.origin),(0,o.o8)(e.direction)):l((0,o.vt)(),(0,o.vt)())}function l(e,t){return{origin:e,direction:t}}function c(e,t){const r=f.get();return r.origin=e,r.direction=t,r}function d(e,t,r=s()){return(0,n.c)(r.origin,e),(0,n.f)(r.direction,t,e),r}function u(e,t){const r=(0,n.b)(a.rq.get(),(0,n.n)(a.rq.get(),e.direction),(0,n.f)(a.rq.get(),t,e.origin));return(0,n.m)(r,r)}function h(e,t,r){const i=(0,n.m)(e.direction,(0,n.f)(r,t,e.origin));return(0,n.g)(r,e.origin,(0,n.j)(r,e.direction,i)),r}const f=new i.I((()=>s()));(0,o.vt)()},21015:(e,t,r)=>{r.d(t,{R:()=>l});var i=r(78888),n=r(60999),o=r(49186),a=r(74887),s=r(84952);class l{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,s.DB)(e)?((0,a.Te)(t),(0,s.lJ)(e)):this._load("binary",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,i.A)(t,{responseType:c[e]})).data;const s=await(0,n.Ke)(this._streamDataRequester.request(t,e,r));if(!0===s.ok)return s.value;throw(0,a.QP)(s.error),new o.A("",`Request for resource failed: ${s.error}`)}}const c={image:"image",binary:"array-buffer",json:"json","image+type":void 0}},84498:(e,t,r)=>{r.d(t,{x:()=>a});var i=r(34275),n=r(97146),o=r(63907);function a(e,t){switch(t){case o.WR.TRIANGLES:return"number"==typeof(r=e)?(0,n.tM)(r):(0,i.mg)(r)?new Uint16Array(r):r;case o.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,i=(0,n.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(i[e++]=t,i[e++]=t+1,i[e++]=t+2):(i[e++]=t+1,i[e++]=t,i[e++]=t+2)}else{let t=0;for(let n=0;n<r;n+=1)n%2==0?(i[t++]=e[n],i[t++]=e[n+1],i[t++]=e[n+2]):(i[t++]=e[n+1],i[t++]=e[n],i[t++]=e[n+2])}return i}(e);case o.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,i=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)i[e++]=0,i[e++]=t+1,i[e++]=t+2;return i}const n=e[0];let o=e[1],a=0;for(let t=0;t<r;++t){const r=e[t+2];i[a++]=n,i[a++]=o,i[a++]=r,o=r}return i}(e)}var r}},51530:(e,t,r)=>{r.d(t,{KB:()=>s,Xi:()=>o,pn:()=>l,x3:()=>a});var i=r(44208),n=r(89192);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=n.JS.KTX2_ENCODING}}function a(e){return"encoded-mesh-texture"===e?.type}async function s(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function l(e,t){if(t===n.JS.KTX2_ENCODING)return new o(e);const r=new Blob([e],{type:t}),a=URL.createObjectURL(r),s=new Image;if((0,i.A)("esri-iPhone"))return new Promise(((e,t)=>{const r=()=>{n(),e(s)},i=e=>{n(),t(e)},n=()=>{URL.revokeObjectURL(a),s.removeEventListener("load",r),s.removeEventListener("error",i)};s.addEventListener("load",r),s.addEventListener("error",i),s.src=a}));try{s.src=a,await s.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(a),s}},55268:(e,t,r)=>{r.d(t,{fetch:()=>wr});var i=r(61473),n=r(34727),o=r(77690),a=r(29242),s=r(58083),l=r(9093),c=r(48163),d=r(38954),u=r(51850),h=r(70328),f=r(11868),m=r(13030),p=r(73354),v=r(65686),g=r(43609),_=r(51737),x=r(78358),T=r(21015),b=r(84498),y=r(51530),A=r(88340);function E(e){if(null==e)return null;const t=null!=e.offset?e.offset:A.uY,r=null!=e.rotation?e.rotation:0,i=null!=e.scale?e.scale:A.Un,n=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),l=(0,a.fA)(i[0],0,0,0,i[1],0,0,0,1),c=(0,a.vt)();return(0,o.lw)(c,s,l),(0,o.lw)(c,n,c),c}class S{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class w{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new S,this.numberOfVertices=0}}var M=r(78888),C=r(60999),O=r(86805),I=r(49186),R=r(53966);class N{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get(e,t){return this._outer.get(e)?.get(t)}set(e,t,r){const i=this._outer.get(e);i?i.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}forEach(e){this._outer.forEach(((t,r)=>e(t,r)))}forAll(e){for(const t of this._outer.values())for(const r of t.values())e(r)}}var P=r(74887),L=r(46140),H=r(97146);async function D(e,t){const{data:r}=await(0,M.A)(e,{responseType:"image",...t});return r}var B=r(46610),F=r(89192),z=r(34275);function V(e){if(e.length<z.y9)return Array.from(e);if((0,z.cy)(e))return Float64Array.from(e);if(!("BYTES_PER_ELEMENT"in e))return Array.from(e);switch(e.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(e);case 2:return(0,z.jq)(e)?Uint16Array.from(e):Int16Array.from(e);case 4:return Float32Array.from(e);default:return Float64Array.from(e)}}var G=r(3694),U=r(620);class W{constructor(e,t,r){this.primitiveIndices=e,this._numIndexPerPrimitive=t,this.position=r,this._children=void 0,(0,U.vA)(e.length>=1),(0,U.vA)(3===r.size||4===r.size);const{data:i,size:n,indices:o}=r;(0,U.vA)(o.length%this._numIndexPerPrimitive==0),(0,U.vA)(o.length>=e.length*this._numIndexPerPrimitive);const a=e.length;let s=n*o[this._numIndexPerPrimitive*e[0]];j.clear(),j.push(s);const l=(0,u.fA)(i[s],i[s+1],i[s+2]),c=(0,u.o8)(l);for(let t=0;t<a;++t){const r=this._numIndexPerPrimitive*e[t];for(let e=0;e<this._numIndexPerPrimitive;++e){s=n*o[r+e],j.push(s);let t=i[s];l[0]=Math.min(t,l[0]),c[0]=Math.max(t,c[0]),t=i[s+1],l[1]=Math.min(t,l[1]),c[1]=Math.max(t,c[1]),t=i[s+2],l[2]=Math.min(t,l[2]),c[2]=Math.max(t,c[2])}}this.bbMin=l,this.bbMax=c;const h=(0,d.o)((0,u.vt)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(c[0]-l[0],c[1]-l[1]),c[2]-l[2]);let f=this.radius*this.radius;for(let e=0;e<j.length;++e){s=j.at(e);const t=i[s]-h[0],r=i[s+1]-h[1],n=i[s+2]-h[2],o=t*t+r*r+n*n;if(o<=f)continue;const a=Math.sqrt(o),l=.5*(a-this.radius);this.radius=this.radius+l,f=this.radius*this.radius;const c=l/a;h[0]+=t*c,h[1]+=r*c,h[2]+=n*c}this.center=h,j.clear()}getChildren(){if(this._children||(0,d.a)(this.bbMin,this.bbMax)<=1)return this._children;const e=(0,d.o)((0,u.vt)(),this.bbMin,this.bbMax,.5),t=this.primitiveIndices.length,r=new Uint8Array(t),i=new Array(8);for(let e=0;e<8;++e)i[e]=0;const{data:n,size:o,indices:a}=this.position;for(let s=0;s<t;++s){let t=0;const l=this._numIndexPerPrimitive*this.primitiveIndices[s];let c=o*a[l],d=n[c],u=n[c+1],h=n[c+2];for(let e=1;e<this._numIndexPerPrimitive;++e){c=o*a[l+e];const t=n[c],r=n[c+1],i=n[c+2];t<d&&(d=t),r<u&&(u=r),i<h&&(h=i)}d<e[0]&&(t|=1),u<e[1]&&(t|=2),h<e[2]&&(t|=4),r[s]=t,++i[t]}let s=0;for(let e=0;e<8;++e)i[e]>0&&++s;if(s<2)return;const l=new Array(8);for(let e=0;e<8;++e)l[e]=i[e]>0?new Uint32Array(i[e]):void 0;for(let e=0;e<8;++e)i[e]=0;for(let e=0;e<t;++e){const t=r[e];l[t][i[t]++]=this.primitiveIndices[e]}this._children=new Array;for(let e=0;e<8;++e)void 0!==l[e]&&this._children.push(new W(l[e],this._numIndexPerPrimitive,this.position));return this._children}static prune(){j.prune()}}const j=new G.A({deallocator:null});var q=r(69720),k=r(96672),$=r(4341),Y=r(11964);function X(e,t,r){return(0,d.f)(Z,t,e),(0,d.f)(J,r,e),.5*(0,d.l)((0,d.b)(Z,Z,J))}r(32114),new $.I(Y.vt),new $.I((()=>{return e?{p0:(0,u.o8)(e.p0),p1:(0,u.o8)(e.p1),p2:(0,u.o8)(e.p2)}:{p0:(0,u.vt)(),p1:(0,u.vt)(),p2:(0,u.vt)()};var e}));const Z=(0,u.vt)(),J=(0,u.vt)(),K=(0,u.vt)(),Q=(0,u.vt)(),ee=(0,u.vt)(),te=(0,u.vt)();var re=r(24326);class ie{constructor(e){this.channel=e,this.id=(0,re.c)()}}var ne=r(46540);r(28449),(0,u.vt)(),new Float32Array(6);class oe extends q.J{constructor(e,t,r=null,i=k.X.Mesh,n=null,o=-1){super(),this.material=e,this.mapPositions=r,this.type=i,this.objectAndLayerIdColor=n,this.edgeIndicesLength=o,this.visible=!0,this._attributes=new Map,this._boundingInfo=null;for(const[e,r]of t)this._attributes.set(e,{...r,indices:(0,H.Dg)(r.indices)}),e===ne.r.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._attributes.get(e).indices.length:this.edgeIndicesLength)}instantiate(e={}){const t=new oe(e.material||this.material,[],this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._attributes.forEach(((e,r)=>{e.exclusive=!1,t._attributes.set(r,e)})),t._boundingInfo=this._boundingInfo,t.transformation=e.transformation||this.transformation,t}get attributes(){return this._attributes}getMutableAttribute(e){let t=this._attributes.get(e);return t&&!t.exclusive&&(t={...t,exclusive:!0,data:V(t.data)},this._attributes.set(e,t)),t}setAttributeData(e,t){const r=this._attributes.get(e);r&&this._attributes.set(e,{...r,exclusive:!0,data:t})}get indexCount(){const e=this._attributes.values().next().value.indices;return e?.length??0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(e){return!!(this.type===k.X.Mesh?this._computeAttachmentOriginTriangles(e):this.type===k.X.Line?this._computeAttachmentOriginLines(e):this._computeAttachmentOriginPoints(e))&&(null!=this._transformation&&(0,d.h)(e,e,this._transformation),!0)}_computeAttachmentOriginTriangles(e){return function(e,t){if(!e)return!1;const{size:r,data:i,indices:n}=e;(0,d.s)(t,0,0,0),(0,d.s)(te,0,0,0);let o=0,a=0;for(let e=0;e<n.length-2;e+=3){const s=n[e]*r,l=n[e+1]*r,c=n[e+2]*r;(0,d.s)(K,i[s],i[s+1],i[s+2]),(0,d.s)(Q,i[l],i[l+1],i[l+2]),(0,d.s)(ee,i[c],i[c+1],i[c+2]);const u=X(K,Q,ee);u?((0,d.g)(K,K,Q),(0,d.g)(K,K,ee),(0,d.j)(K,K,1/3*u),(0,d.g)(t,t,K),o+=u):((0,d.g)(te,te,K),(0,d.g)(te,te,Q),(0,d.g)(te,te,ee),a+=3)}return!(0===a&&0===o||(0!==o?((0,d.j)(t,t,1/o),0):0===a||((0,d.j)(t,te,1/a),0)))}(this.attributes.get(ne.r.POSITION),e)}_computeAttachmentOriginLines(e){const t=this.attributes.get(ne.r.POSITION);return function(e,t,r){if(!e)return!1;(0,d.s)(r,0,0,0),(0,d.s)(te,0,0,0);let i=0,n=0;const{size:o,data:a,indices:s}=e,l=s.length-1,c=l+(t?2:0);for(let e=0;e<c;e+=2){const t=e<l?e+1:0,c=s[e<l?e:l]*o,u=s[t]*o;K[0]=a[c],K[1]=a[c+1],K[2]=a[c+2],Q[0]=a[u],Q[1]=a[u+1],Q[2]=a[u+2],(0,d.j)(K,(0,d.g)(K,K,Q),.5);const h=(0,d.F)(K,Q);h>0?((0,d.g)(r,r,(0,d.j)(K,K,h)),i+=h):0===i&&((0,d.g)(te,te,K),n++)}return 0!==i?((0,d.j)(r,r,1/i),!0):0!==n&&((0,d.j)(r,te,1/n),!0)}(t,function(e,t){return!(!("isClosed"in e)||!e.isClosed)&&t.indices.length>2}(this.material.parameters,t),e)}_computeAttachmentOriginPoints(e){return function(e,t){if(!e)return!1;const{size:r,data:i,indices:n}=e;(0,d.s)(t,0,0,0);let o=-1,a=0;for(let e=0;e<n.length;e++){const s=n[e]*r;o!==s&&(t[0]+=i[s],t[1]+=i[s+1],t[2]+=i[s+2],a++),o=s}return a>1&&(0,d.j)(t,t,1/a),a>0}(this.attributes.get(ne.r.POSITION),e)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const e=this.attributes.get(ne.r.POSITION);if(!e||0===e.indices.length)return null;const t=this.type===k.X.Mesh?3:1;(0,U.vA)(e.indices.length%t==0,"Indexing error: "+e.indices.length+" not divisible by "+t);const r=(0,H.tM)(e.indices.length/t);return new W(r,t,e)}get transformation(){return this._transformation??l.zK}set transformation(e){this._transformation=e&&e!==l.zK?(0,l.o8)(e):null}addHighlight(){const e=new ie(F.Mg.Highlight);return this.highlights=function(e,t){return null==e&&(e=[]),e.push(t),e}(this.highlights,e),e}removeHighlight(e){this.highlights=function(e,t){if(null==e)return null;const r=e.filter((e=>e!==t));return 0===r.length?null:r}(this.highlights,e)}}var ae=r(44208),se=r(65529),le=r(97768),ce=r(84952),de=r(56058),ue=r(2741);let he;var fe,me;(me=fe||(fe={}))[me.ETC1_RGB=0]="ETC1_RGB",me[me.ETC2_RGBA=1]="ETC2_RGBA",me[me.BC1_RGB=2]="BC1_RGB",me[me.BC3_RGBA=3]="BC3_RGBA",me[me.BC4_R=4]="BC4_R",me[me.BC5_RG=5]="BC5_RG",me[me.BC7_M6_RGB=6]="BC7_M6_RGB",me[me.BC7_M5_RGBA=7]="BC7_M5_RGBA",me[me.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",me[me.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",me[me.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",me[me.ATC_RGB=11]="ATC_RGB",me[me.ATC_RGBA=12]="ATC_RGBA",me[me.FXT1_RGB=17]="FXT1_RGB",me[me.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",me[me.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",me[me.ETC2_EAC_R11=20]="ETC2_EAC_R11",me[me.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",me[me.RGBA32=13]="RGBA32",me[me.RGB565=14]="RGB565",me[me.BGR565=15]="BGR565",me[me.RGBA4444=16]="RGBA4444";var pe=r(63907),ve=r(21231),ge=r(42293);let _e=null,xe=null;async function Te(){return null==xe&&(he??=(async()=>{const e=await r.e(9321).then(r.bind(r,49321)),t=await e.default({locateFile:e=>(0,ue.s)(`esri/libs/basisu/${e}`)});return t.initializeBasis(),t})(),xe=he,_e=await xe),xe}function be(e,t,r,i,n){const o=(0,ge.IB)(t?pe.CQ.COMPRESSED_RGBA8_ETC2_EAC:pe.CQ.COMPRESSED_RGB8_ETC2),a=n&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(r*i*o*a)}function ye(e){return e.getNumImages()>=1&&!e.isUASTC()}function Ae(e){return e.getFaces()>=1&&e.isETC1S()}function Ee(e,t,r,i,n,o,a,s){const{compressedTextureETC:l,compressedTextureS3TC:c}=e.capabilities,[d,u]=l?i?[fe.ETC2_RGBA,pe.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[fe.ETC1_RGB,pe.CQ.COMPRESSED_RGB8_ETC2]:c?i?[fe.BC3_RGBA,pe.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT]:[fe.BC1_RGB,pe.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT]:[fe.RGBA32,pe.Ab.RGBA],h=t.hasMipmap?r:Math.min(1,r),f=[];for(let e=0;e<h;e++)f.push(new Uint8Array(a(e,d))),s(e,d,f[e]);return t.internalFormat=u,t.hasMipmap=f.length>1,t.samplingMode=t.hasMipmap?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.width=n,t.height=o,new ve.g(e,t,{type:"compressed",levels:f})}const Se=()=>R.A.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function we(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const Me=we("DXT1"),Ce=we("DXT3"),Oe=we("DXT5");function Ie(e,t,r){if(e instanceof ImageData)return Ie(Re(e),t,r);const i=document.createElement("canvas");return i.width=t,i.height=r,i.getContext("2d").drawImage(e,0,0,i.width,i.height),i}function Re(e){const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");if(null==r)throw new I.A("Failed to create 2d context from HTMLCanvasElement");return r.putImageData(e,0,0),t}var Ne,Pe,Le=r(67171);class He extends q.J{get parameters(){return this._parameters}constructor(e,t){super(),this._data=e,this.type=k.X.Texture,this._glTexture=null,this._loadingPromise=null,this._loadingController=null,this.events=new se.A,this._parameters={...Be,...t},this._startPreload(e)}dispose(){this.unload(),this._data=this.frameUpdate=void 0}_startPreload(e){null!=e&&(e instanceof HTMLVideoElement?(this.frameUpdate=t=>this._frameUpdate(e,t),this._startPreloadVideoElement(e)):e instanceof HTMLImageElement&&this._startPreloadImageElement(e))}_startPreloadVideoElement(e){if(!((0,ce.w8)(e.src)||"auto"===e.preload&&e.crossOrigin)){e.preload="auto",e.crossOrigin="anonymous";const t=!e.paused;if(e.src=e.src,t&&e.autoplay){const t=()=>{e.removeEventListener("canplay",t),e.play()};e.addEventListener("canplay",t)}}}_startPreloadImageElement(e){(0,ce.DB)(e.src)||(0,ce.w8)(e.src)||e.crossOrigin||(e.crossOrigin="anonymous",e.src=e.src)}_createDescriptor(e){const t=new Le.R;return t.wrapMode=this._parameters.wrap??pe.pF.REPEAT,t.flipped=!this._parameters.noUnpackFlip,t.samplingMode=this._parameters.mipmap?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.hasMipmap=!!this._parameters.mipmap,t.preMultiplyAlpha=!!this._parameters.preMultiplyAlpha,t.maxAnisotropy=this._parameters.maxAnisotropy??(this._parameters.mipmap?e.parameters.maxMaxAnisotropy:1),t}get glTexture(){return this._glTexture}get memoryEstimate(){return this._glTexture?.usedMemory||function(e,t){if(null==e)return 0;if((0,z.mw)(e)||(0,z.mg)(e))return t.encoding===F.JS.KTX2_ENCODING?function(e,t){if(null==_e)return e.byteLength;const r=new _e.KTX2File(new Uint8Array(e)),i=Ae(r)?be(r.getLevels(),r.getHasAlpha(),r.getWidth(),r.getHeight(),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):t.encoding===F.JS.BASIS_ENCODING?function(e,t){if(null==_e)return e.byteLength;const r=new _e.BasisFile(new Uint8Array(e)),i=ye(r)?be(r.getNumLevels(0),r.getHasAlpha(),r.getImageWidth(0,0),r.getImageHeight(0,0),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):e.byteLength;const{width:r,height:i}=e instanceof Image||e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement?De(e):t;return(t.mipmap?4/3:1)*r*i*(t.components||4)||0}(this._data,this._parameters)}load(e){if(this._glTexture)return this._glTexture;if(this._loadingPromise)return this._loadingPromise;const t=this._data;return null==t?(this._glTexture=new ve.g(e,this._createDescriptor(e),null),this._glTexture):(this._parameters.reloadable||(this._data=void 0),"string"==typeof t?this._loadFromURL(e,t):t instanceof Image?this._loadFromImageElement(e,t):t instanceof HTMLVideoElement?this._loadFromVideoElement(e,t):t instanceof ImageData||t instanceof HTMLCanvasElement?this._loadFromImage(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.DDS_ENCODING?this._loadFromDDSData(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.KTX2_ENCODING?this._loadFromKTX2(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.BASIS_ENCODING?this._loadFromBasis(e,t):(0,z.mg)(t)?this._loadFromPixelData(e,t):(0,z.mw)(t)?this._loadFromPixelData(e,new Uint8Array(t)):null)}_frameUpdate(e,t){return null==this._glTexture||e.readyState<Ne.HAVE_CURRENT_DATA||t===e.currentTime?t:(this._glTexture.setData(e),this._glTexture.descriptor.hasMipmap&&this._glTexture.generateMipmap(),this._parameters.updateCallback&&this._parameters.updateCallback(),e.currentTime)}_loadFromDDSData(e,t){return this._glTexture=function(e,t,r){const i=function(e,t){const r=new Int32Array(e,0,31);if(542327876!==r[0])return Se().error("Invalid magic number in DDS header"),null;if(!(4&r[20]))return Se().error("Unsupported format, must contain a FourCC code"),null;const i=r[21];let n,o;switch(i){case Me:n=8,o=pe.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Ce:n=16,o=pe.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Oe:n=16,o=pe.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return Se().error("Unsupported FourCC code:",function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(i)),null}let a=1,s=r[4],l=r[3];(3&s||3&l)&&(Se().warn("Rounding up compressed texture size to nearest multiple of 4."),s=s+3&-4,l=l+3&-4);const c=s,d=l;let u,h;131072&r[2]&&!1!==t&&(a=Math.max(1,r[7]));let f=r[1]+4;const m=[];for(let t=0;t<a;++t)h=(s+3>>2)*(l+3>>2)*n,u=new Uint8Array(e,f,h),m.push(u),f+=h,s=Math.max(1,s>>1),l=Math.max(1,l>>1);return{textureData:{type:"compressed",levels:m},internalFormat:o,width:c,height:d}}(r,t.hasMipmap??!1);if(null==i)throw new Error("DDS texture data is null");const{textureData:n,internalFormat:o,width:a,height:s}=i;return t.samplingMode=n.levels.length>1?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.hasMipmap=n.levels.length>1,t.internalFormat=o,t.width=a,t.height=s,new ve.g(e,t,n)}(e,this._createDescriptor(e),t),this._glTexture}_loadFromKTX2(e,t){return this._loadAsync((()=>async function(e,t,r){null==_e&&(_e=await Te());const i=new _e.KTX2File(new Uint8Array(r));if(!Ae(i))return null;i.startTranscoding();const n=Ee(e,t,i.getLevels(),i.getHasAlpha(),i.getWidth(),i.getHeight(),((e,t)=>i.getImageTranscodedSizeInBytes(e,0,0,t)),((e,t,r)=>i.transcodeImage(r,e,0,0,t,0,-1,-1)));return i.close(),i.delete(),n}(e,this._createDescriptor(e),t).then((e=>(this._glTexture=e,e)))))}_loadFromBasis(e,t){return this._loadAsync((()=>async function(e,t,r){null==_e&&(_e=await Te());const i=new _e.BasisFile(new Uint8Array(r));if(!ye(i))return null;i.startTranscoding();const n=Ee(e,t,i.getNumLevels(0),i.getHasAlpha(),i.getImageWidth(0,0),i.getImageHeight(0,0),((e,t)=>i.getImageTranscodedSizeInBytes(0,e,t)),((e,t,r)=>i.transcodeImage(r,0,e,t,0,0)));return i.close(),i.delete(),n}(e,this._createDescriptor(e),t).then((e=>(this._glTexture=e,e)))))}_loadFromPixelData(e,t){(0,U.vA)(this._parameters.width>0&&this._parameters.height>0);const r=this._createDescriptor(e);return r.pixelFormat=1===this._parameters.components?pe.Ab.LUMINANCE:3===this._parameters.components?pe.Ab.RGB:pe.Ab.RGBA,r.width=this._parameters.width??0,r.height=this._parameters.height??0,this._glTexture=new ve.g(e,r,t),this._glTexture}_loadFromURL(e,t){return this._loadAsync((async r=>{const i=await D(t,{signal:r});return(0,P.Te)(r),this._loadFromImage(e,i)}))}_loadFromImageElement(e,t){return t.complete?this._loadFromImage(e,t):this._loadAsync((async r=>{const i=await(0,de.Sx)(t,t.src,!1,r);return(0,P.Te)(r),this._loadFromImage(e,i)}))}_loadFromVideoElement(e,t){return t.readyState>=Ne.HAVE_CURRENT_DATA?this._loadFromImage(e,t):this._loadFromVideoElementAsync(e,t)}_loadFromVideoElementAsync(e,t){return this._loadAsync((r=>new Promise(((i,n)=>{const o=()=>{t.removeEventListener("loadeddata",a),t.removeEventListener("error",s),(0,le.xt)(l)},a=()=>{t.readyState>=Ne.HAVE_CURRENT_DATA&&(o(),i(this._loadFromImage(e,t)))},s=e=>{o(),n(e||new I.A("Failed to load video"))};t.addEventListener("loadeddata",a),t.addEventListener("error",s);const l=(0,P.u7)(r,(()=>s((0,P.NK)())))}))))}_loadFromImage(e,t){let r=t;if(!(r instanceof HTMLVideoElement)){const{maxTextureSize:t}=e.parameters;r=this._parameters.downsampleUncompressed?function(e,t){let r=e.width*e.height;if(r<4096)return e instanceof ImageData?Re(e):e;let i=e.width,n=e.height;do{i=Math.ceil(i/2),n=Math.ceil(n/2),r=i*n}while(r>1048576||null!=t&&(i>t||n>t));return Ie(e,i,n)}(r,t):function(e,t){const r=Math.max(e.width,e.height);if(r<=t)return e;const i=t/r;return Ie(e,Math.round(e.width*i),Math.round(e.height*i))}(r,t)}const i=De(r);this._parameters.width=i.width,this._parameters.height=i.height;const n=this._createDescriptor(e);return n.pixelFormat=3===this._parameters.components?pe.Ab.RGB:pe.Ab.RGBA,n.width=i.width,n.height=i.height,this._glTexture=new ve.g(e,n,r),this._glTexture}_loadAsync(e){const t=new AbortController;this._loadingController=t;const r=e(t.signal);this._loadingPromise=r;const i=()=>{this._loadingController===t&&(this._loadingController=null),this._loadingPromise===r&&(this._loadingPromise=null)};return r.then(i,i),r}unload(){if(this._glTexture=(0,le.WD)(this._glTexture),null!=this._loadingController){const e=this._loadingController;this._loadingController=null,this._loadingPromise=null,e.abort()}this.events.emit("unloaded")}}function De(e){return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e}(Pe=Ne||(Ne={}))[Pe.HAVE_NOTHING=0]="HAVE_NOTHING",Pe[Pe.HAVE_METADATA=1]="HAVE_METADATA",Pe[Pe.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",Pe[Pe.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",Pe[Pe.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA";const Be={wrap:{s:pe.pF.REPEAT,t:pe.pF.REPEAT},mipmap:!0,noUnpackFlip:!1,preMultiplyAlpha:!1,downsampleUncompressed:!1};var Fe=r(24151),ze=r(1843),Ve=r(49255),Ge=r(96336),Ue=r(62602),We=r(59469),je=r(35093),qe=r(25634),ke=r(14903),$e=r(14327),Ye=r(90644);const Xe=(0,Ye.p3)(pe.dn.SRC_ALPHA,pe.dn.ONE,pe.dn.ONE_MINUS_SRC_ALPHA,pe.dn.ONE_MINUS_SRC_ALPHA),Ze=(0,Ye.p3)(pe.dn.ONE,pe.dn.ZERO,pe.dn.ONE,pe.dn.ONE_MINUS_SRC_ALPHA);function Je(e){switch(e){case $e.y.NONE:return Xe;case $e.y.ColorAlpha:return Ze;case $e.y.FrontFace:case $e.y.COUNT:return null}}const Ke={factor:-1,units:-2};function Qe(e){return e?Ke:null}function et(e,t=pe.MT.LESS){return e===$e.y.NONE||e===$e.y.FrontFace?t:pe.MT.LEQUAL}function tt(e){return e===$e.y.ColorAlpha?{buffers:[pe.Nm.COLOR_ATTACHMENT0,pe.Nm.COLOR_ATTACHMENT1]}:null}class rt{constructor(e=!1,t=!0){this.isVerticalRay=e,this.normalRequired=t}}const it=(0,h.vt)();function nt(e,t,r,i,n,o){if(!e.visible)return;const a=(0,d.z)(gt,i,r),s=(e,t,r)=>{o(e,r,t,!1)},l=new rt(!1,t.options.normalRequired);if(e.boundingInfo){(0,U.vA)(e.type===k.X.Mesh);const i=t.tolerance;at(e.boundingInfo,r,a,i,n,l,s)}else{const t=e.attributes.get(ne.r.POSITION),i=t.indices;!function(e,t,r,i,n,o,a,s,l,c){const u=t,h=_t,f=Math.abs(u[0]),m=Math.abs(u[1]),p=Math.abs(u[2]),v=f>=m?f>=p?0:2:m>=p?1:2,g=v,_=u[g]<0?2:1,x=(v+_)%3,T=(v+(3-_))%3,b=u[x]/u[g],y=u[T]/u[g],A=1/u[g],E=lt,S=ct,w=dt,{normalRequired:M}=l;for(let t=r;t<i;++t){const r=3*t,i=a*n[r];(0,d.s)(h[0],o[i+0],o[i+1],o[i+2]);const l=a*n[r+1];(0,d.s)(h[1],o[l+0],o[l+1],o[l+2]);const u=a*n[r+2];(0,d.s)(h[2],o[u+0],o[u+1],o[u+2]),s&&((0,d.c)(h[0],s.applyToVertex(h[0][0],h[0][1],h[0][2],t)),(0,d.c)(h[1],s.applyToVertex(h[1][0],h[1][1],h[1][2],t)),(0,d.c)(h[2],s.applyToVertex(h[2][0],h[2][1],h[2][2],t))),(0,d.z)(E,h[0],e),(0,d.z)(S,h[1],e),(0,d.z)(w,h[2],e);const f=E[x]-b*E[g],m=E[T]-y*E[g],p=S[x]-b*S[g],v=S[T]-y*S[g],_=w[x]-b*w[g],C=w[T]-y*w[g],O=_*v-C*p,I=f*C-m*_,R=p*m-v*f;if((O<0||I<0||R<0)&&(O>0||I>0||R>0))continue;const N=O+I+R;if(0===N)continue;const P=O*(A*E[g])+I*(A*S[g])+R*(A*w[g]);if(P*Math.sign(N)<0)continue;const L=P/N;L>=0&&c(L,t,M?ht(h):null)}}(r,a,0,i.length/3,i,t.data,t.stride,n,l,s)}}const ot=(0,u.vt)();function at(e,t,r,i,n,o,a){if(null==e)return;const s=function(e,t){return(0,d.s)(t,1/e[0],1/e[1],1/e[2])}(r,ot);if((0,h.Ne)(it,e.bbMin),(0,h.vI)(it,e.bbMax),null!=n&&n.applyToAabb(it),function(e,t,r,i){return function(e,t,r,i,n){const o=(e[0]-i-t[0])*r[0],a=(e[3]+i-t[0])*r[0];let s=Math.min(o,a),l=Math.max(o,a);const c=(e[1]-i-t[1])*r[1],d=(e[4]+i-t[1])*r[1];if(l=Math.min(l,Math.max(c,d)),l<0)return!1;if(s=Math.max(s,Math.min(c,d)),s>l)return!1;const u=(e[2]-i-t[2])*r[2],h=(e[5]+i-t[2])*r[2];return l=Math.min(l,Math.max(u,h)),!(l<0)&&(s=Math.max(s,Math.min(u,h)),!(s>l)&&s<1/0)}(e,t,r,i)}(it,t,s,i)){const{primitiveIndices:s,position:l}=e,c=s?s.length:l.indices.length/3;if(c>pt){const s=e.getChildren();if(void 0!==s){for(const e of s)at(e,t,r,i,n,o,a);return}}!function(e,t,r,i,n,o,a,s,l,c,d){const u=e[0],h=e[1],f=e[2],m=t[0],p=t[1],v=t[2],{normalRequired:g}=c;for(let e=0;e<i;++e){const t=s[e],r=3*t,i=a*n[r];let c=o[i],_=o[i+1],x=o[i+2];const T=a*n[r+1];let b=o[T],y=o[T+1],A=o[T+2];const E=a*n[r+2];let S=o[E],w=o[E+1],M=o[E+2];null!=l&&([c,_,x]=l.applyToVertex(c,_,x,e),[b,y,A]=l.applyToVertex(b,y,A,e),[S,w,M]=l.applyToVertex(S,w,M,e));const C=b-c,O=y-_,I=A-x,R=S-c,N=w-_,P=M-x,L=p*P-N*v,H=v*R-P*m,D=m*N-R*p,B=C*L+O*H+I*D;if(Math.abs(B)<=vt)continue;const F=u-c,z=h-_,V=f-x,G=F*L+z*H+V*D;if(B>0){if(G<0||G>B)continue}else if(G>0||G<B)continue;const U=z*I-O*V,W=V*C-I*F,j=F*O-C*z,q=m*U+p*W+v*j;if(B>0){if(q<0||G+q>B)continue}else if(q>0||G+q<B)continue;const k=(R*U+N*W+P*j)/B;k>=0&&d(k,t,g?ut(C,O,I,R,N,P,st):null)}}(t,r,0,c,l.indices,l.data,l.stride,s,n,o,a)}}const st=(0,u.vt)();const lt=(0,u.vt)(),ct=(0,u.vt)(),dt=(0,u.vt)();function ut(e,t,r,i,n,o,a){return(0,d.s)(ft,e,t,r),(0,d.s)(mt,i,n,o),(0,d.b)(a,ft,mt),(0,d.n)(a,a),a}function ht(e){return(0,d.z)(ft,e[1],e[0]),(0,d.z)(mt,e[2],e[0]),(0,d.b)(st,ft,mt),(0,d.n)(st,st),st}const ft=(0,u.vt)(),mt=(0,u.vt)(),pt=1e3,vt=1e-7,gt=(0,u.vt)(),_t=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()];var xt,Tt;(Tt=xt||(xt={}))[Tt.INTEGRATED_MESH=0]="INTEGRATED_MESH",Tt[Tt.OPAQUE_TERRAIN=1]="OPAQUE_TERRAIN",Tt[Tt.OPAQUE_MATERIAL=2]="OPAQUE_MATERIAL",Tt[Tt.OPAQUE_NO_SSAO_DEPTH=3]="OPAQUE_NO_SSAO_DEPTH",Tt[Tt.TRANSPARENT_MATERIAL=4]="TRANSPARENT_MATERIAL",Tt[Tt.TRANSPARENT_NO_SSAO_DEPTH=5]="TRANSPARENT_NO_SSAO_DEPTH",Tt[Tt.TRANSPARENT_TERRAIN=6]="TRANSPARENT_TERRAIN",Tt[Tt.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL=7]="TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL",Tt[Tt.OCCLUDED_TERRAIN=8]="OCCLUDED_TERRAIN",Tt[Tt.OCCLUDER_MATERIAL=9]="OCCLUDER_MATERIAL",Tt[Tt.TRANSPARENT_OCCLUDER_MATERIAL=10]="TRANSPARENT_OCCLUDER_MATERIAL",Tt[Tt.OCCLUSION_PIXELS=11]="OCCLUSION_PIXELS",Tt[Tt.OPAQUE_ENVIRONMENT=12]="OPAQUE_ENVIRONMENT",Tt[Tt.TRANSPARENT_ENVIRONMENT=13]="TRANSPARENT_ENVIRONMENT",Tt[Tt.HUD_MATERIAL=14]="HUD_MATERIAL",Tt[Tt.LABEL_MATERIAL=15]="LABEL_MATERIAL",Tt[Tt.LINE_CALLOUTS=16]="LINE_CALLOUTS",Tt[Tt.LINE_CALLOUTS_HUD_DEPTH=17]="LINE_CALLOUTS_HUD_DEPTH",Tt[Tt.DRAPED_MATERIAL=18]="DRAPED_MATERIAL",Tt[Tt.DRAPED_WATER=19]="DRAPED_WATER",Tt[Tt.VOXEL=20]="VOXEL",Tt[Tt.MAX_SLOTS=21]="MAX_SLOTS";var bt=r(76412),yt=r(57005);const At=new class{constructor(e=0){this.offset=e,this.sphere=(0,bt.c)(),this.tmpVertex=(0,u.vt)()}applyToVertex(e,t,r){const i=this.objectTransform.transform,n=(0,d.s)(Et,e,t,r),o=(0,d.h)(n,n,i),a=this.offset/(0,d.l)(o);(0,d.r)(o,o,o,a);const s=this.objectTransform.inverse;return(0,d.h)(this.tmpVertex,o,s),this.tmpVertex}applyToMinMax(e,t){const r=this.offset/(0,d.l)(e);(0,d.r)(e,e,e,r);const i=this.offset/(0,d.l)(t);(0,d.r)(t,t,t,i)}applyToAabb(e){const t=this.offset/Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]+=e[0]*t,e[1]+=e[1]*t,e[2]+=e[2]*t;const r=this.offset/Math.sqrt(e[3]*e[3]+e[4]*e[4]+e[5]*e[5]);return e[3]+=e[3]*r,e[4]+=e[4]*r,e[5]+=e[5]*r,e}applyToBoundingSphere(e){const t=(0,d.l)((0,bt.g)(e)),r=this.offset/t;return(0,d.r)((0,bt.g)(this.sphere),(0,bt.g)(e),(0,bt.g)(e),r),this.sphere[3]=e[3]+e[3]*this.offset/t,this.sphere}};new class{constructor(e=0){this.componentLocalOriginLength=0,this._totalOffset=0,this._offset=0,this._tmpVertex=(0,u.vt)(),this._tmpMbs=(0,bt.c)(),this._tmpObb=new yt.ab,this._resetOffset(e)}_resetOffset(e){this._offset=e,this._totalOffset=e}set offset(e){this._resetOffset(e)}get offset(){return this._offset}set componentOffset(e){this._totalOffset=this._offset+e}set localOrigin(e){this.componentLocalOriginLength=(0,d.l)(e)}applyToVertex(e,t,r){const i=(0,d.s)(Et,e,t,r),n=(0,d.s)(St,e,t,r+this.componentLocalOriginLength),o=this._totalOffset/(0,d.l)(n);return(0,d.r)(this._tmpVertex,i,n,o),this._tmpVertex}applyToAabb(e){const t=this.componentLocalOriginLength,r=e[0],i=e[1],n=e[2]+t,o=e[3],a=e[4],s=e[5]+t,l=Math.abs(r),c=Math.abs(i),d=Math.abs(n),u=Math.abs(o),h=Math.abs(a),f=Math.abs(s),m=.5*(1+Math.sign(r*o))*Math.min(l,u),p=.5*(1+Math.sign(i*a))*Math.min(c,h),v=.5*(1+Math.sign(n*s))*Math.min(d,f),g=Math.max(l,u),_=Math.max(c,h),x=Math.max(d,f),T=Math.sqrt(m*m+p*p+v*v),b=Math.sign(l+r),y=Math.sign(c+i),A=Math.sign(d+n),E=Math.sign(u+o),S=Math.sign(h+a),w=Math.sign(f+s),M=this._totalOffset;if(T<M)return e[0]-=(1-b)*M,e[1]-=(1-y)*M,e[2]-=(1-A)*M,e[3]+=E*M,e[4]+=S*M,e[5]+=w*M,e;const C=M/Math.sqrt(g*g+_*_+x*x),O=M/T,I=O-C,R=-I;return e[0]+=r*(b*R+O),e[1]+=i*(y*R+O),e[2]+=n*(A*R+O),e[3]+=o*(E*I+C),e[4]+=a*(S*I+C),e[5]+=s*(w*I+C),e}applyToMbs(e){const t=(0,d.l)((0,bt.g)(e)),r=this._totalOffset/t;return(0,d.r)((0,bt.g)(this._tmpMbs),(0,bt.g)(e),(0,bt.g)(e),r),this._tmpMbs[3]=e[3]+e[3]*this._totalOffset/t,this._tmpMbs}applyToObb(e){return(0,yt.gm)(e,this._totalOffset,this._totalOffset,Fe.RT.Global,this._tmpObb),this._tmpObb}},new class{constructor(e=0){this.offset=e,this.tmpVertex=(0,u.vt)()}applyToVertex(e,t,r){const i=(0,d.s)(Et,e,t,r),n=(0,d.g)(St,i,this.localOrigin),o=this.offset/(0,d.l)(n);return(0,d.r)(this.tmpVertex,i,n,o),this.tmpVertex}applyToAabb(e){const t=wt,r=Mt,i=Ct;for(let n=0;n<3;++n)t[n]=e[0+n]+this.localOrigin[n],r[n]=e[3+n]+this.localOrigin[n],i[n]=t[n];const n=this.applyToVertex(t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=n[t],e[t+3]=n[t];const o=t=>{const r=this.applyToVertex(t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=Math.min(e[t],r[t]),e[t+3]=Math.max(e[t+3],r[t])};for(let e=1;e<8;++e){for(let n=0;n<3;++n)i[n]=e&1<<n?r[n]:t[n];o(i)}let a=0;for(let e=0;e<3;++e)t[e]*r[e]<0&&(a|=1<<e);if(0!==a&&7!==a)for(let e=0;e<8;++e)if(!(a&e)){for(let n=0;n<3;++n)i[n]=a&1<<n?0:e&1<<n?t[n]:r[n];o(i)}for(let t=0;t<3;++t)e[t]-=this.localOrigin[t],e[t+3]-=this.localOrigin[t];return e}};const Et=(0,u.vt)(),St=(0,u.vt)(),wt=(0,u.vt)(),Mt=(0,u.vt)(),Ct=(0,u.vt)();function Ot(e,t,r){const{data:i,indices:n}=e,o=t.typedBuffer,a=t.typedBufferStride,s=n.length;r*=a;for(let e=0;e<s;++e){const t=2*n[e];o[r]=i[t],o[r+1]=i[t+1],r+=a}}function It(e,t,r,i){const{data:n,indices:o}=e,a=t.typedBuffer,s=t.typedBufferStride,l=o.length;if(r*=s,null==i||1===i)for(let e=0;e<l;++e){const t=3*o[e];a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],r+=s}else for(let e=0;e<l;++e){const t=3*o[e];for(let e=0;e<i;++e)a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],r+=s}}function Rt(e,t,r,i=1){const{data:n,indices:o}=e,a=t.typedBuffer,s=t.typedBufferStride,l=o.length;if(r*=s,1===i)for(let e=0;e<l;++e){const t=4*o[e];a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],a[r+3]=n[t+3],r+=s}else for(let e=0;e<l;++e){const t=4*o[e];for(let e=0;e<i;++e)a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],a[r+3]=n[t+3],r+=s}}function Nt(e,t,r,i,n=1){const o=t.typedBuffer,a=t.typedBufferStride;if(i*=a,1===n)for(let t=0;t<r;++t)o[i]=e[0],o[i+1]=e[1],o[i+2]=e[2],o[i+3]=e[3],i+=a;else for(let t=0;t<r;++t)for(let t=0;t<n;++t)o[i]=e[0],o[i+1]=e[1],o[i+2]=e[2],o[i+3]=e[3],i+=a}function Pt(e,t,r,i,n,o){switch(e){case ne.r.POSITION:{(0,U.vA)(3===t.size);const i=n.getField(e,m.xs);(0,U.vA)(!!i,`No buffer view for ${e}`),i&&function(e,t,r,i,n=1){if(!t)return void It(e,r,i,n);const{data:o,indices:a}=e,l=r.typedBuffer,c=r.typedBufferStride,d=a.length,u=t[0],h=t[1],f=t[2],m=t[4],p=t[5],v=t[6],g=t[8],_=t[9],x=t[10],T=t[12],b=t[13],y=t[14];i*=c;let A=0,E=0,S=0;const w=(0,s.tZ)(t)?e=>{A=o[e]+T,E=o[e+1]+b,S=o[e+2]+y}:e=>{const t=o[e],r=o[e+1],i=o[e+2];A=u*t+m*r+g*i+T,E=h*t+p*r+_*i+b,S=f*t+v*r+x*i+y};if(1===n)for(let e=0;e<d;++e)w(3*a[e]),l[i]=A,l[i+1]=E,l[i+2]=S,i+=c;else for(let e=0;e<d;++e){w(3*a[e]);for(let e=0;e<n;++e)l[i]=A,l[i+1]=E,l[i+2]=S,i+=c}}(t,r,i,o);break}case ne.r.NORMAL:{(0,U.vA)(3===t.size);const r=n.getField(e,m.xs);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&function(e,t,r,i,n=1){if(!t)return void It(e,r,i,n);const{data:o,indices:a}=e,l=t,c=r.typedBuffer,d=r.typedBufferStride,u=a.length,h=l[0],f=l[1],m=l[2],p=l[4],v=l[5],g=l[6],_=l[8],x=l[9],T=l[10],b=!(0,s.ut)(l),y=1e-6,A=1-y;i*=d;let E=0,S=0,w=0;const M=(0,s.tZ)(l)?e=>{E=o[e],S=o[e+1],w=o[e+2]}:e=>{const t=o[e],r=o[e+1],i=o[e+2];E=h*t+p*r+_*i,S=f*t+v*r+x*i,w=m*t+g*r+T*i};if(1===n)if(b)for(let e=0;e<u;++e){M(3*a[e]);const t=E*E+S*S+w*w;if(t<A&&t>y){const e=1/Math.sqrt(t);c[i]=E*e,c[i+1]=S*e,c[i+2]=w*e}else c[i]=E,c[i+1]=S,c[i+2]=w;i+=d}else for(let e=0;e<u;++e)M(3*a[e]),c[i]=E,c[i+1]=S,c[i+2]=w,i+=d;else for(let e=0;e<u;++e){if(M(3*a[e]),b){const e=E*E+S*S+w*w;if(e<A&&e>y){const t=1/Math.sqrt(e);E*=t,S*=t,w*=t}}for(let e=0;e<n;++e)c[i]=E,c[i+1]=S,c[i+2]=w,i+=d}}(t,i,r,o);break}case ne.r.NORMALCOMPRESSED:{(0,U.vA)(2===t.size);const r=n.getField(e,m.mJ);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Ot(t,r,o);break}case ne.r.UV0:{(0,U.vA)(2===t.size);const r=n.getField(e,m.gH);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Ot(t,r,o);break}case ne.r.COLOR:case ne.r.SYMBOLCOLOR:{const r=n.getField(e,m.XP);(0,U.vA)(!!r,`No buffer view for ${e}`),(0,U.vA)(3===t.size||4===t.size),!r||3!==t.size&&4!==t.size||function(e,t,r,i,n=1){const{data:o,indices:a}=e,s=r.typedBuffer,l=r.typedBufferStride,c=a.length;if(i*=l,t!==o.length||4!==t)if(1!==n)if(4!==t)for(let e=0;e<c;++e){const t=3*a[e];for(let e=0;e<n;++e)s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=255,i+=l}else for(let e=0;e<c;++e){const t=4*a[e];for(let e=0;e<n;++e)s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=o[t+3],i+=l}else{if(4===t){for(let e=0;e<c;++e){const t=4*a[e];s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=o[t+3],i+=l}return}for(let e=0;e<c;++e){const t=3*a[e];s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=255,i+=l}}else{s[i]=o[0],s[i+1]=o[1],s[i+2]=o[2],s[i+3]=o[3];const e=new Uint32Array(r.typedBuffer.buffer,r.start),t=l/4,a=e[i/=4];i+=t;const d=c*n;for(let r=1;r<d;++r)e[i]=a,i+=t}}(t,t.size,r,o);break}case ne.r.COLORFEATUREATTRIBUTE:{const r=n.getField(e,m.Y$);(0,U.vA)(!!r,`No buffer view for ${e}`),(0,U.vA)(1===t.size),r&&1===t.size&&function(e,t,r){const{data:i,indices:n}=e,o=t.typedBuffer,a=t.typedBufferStride,s=n.length,l=i[0];r*=a;for(let e=0;e<s;++e)o[r]=l,r+=a}(t,r,o);break}case ne.r.TANGENT:{(0,U.vA)(4===t.size);const i=n.getField(e,m.Eq);(0,U.vA)(!!i,`No buffer view for ${e}`),i&&function(e,t,r,i,n=1){if(!t)return void Rt(e,r,i,n);const{data:o,indices:a}=e,l=t,c=r.typedBuffer,d=r.typedBufferStride,u=a.length,h=l[0],f=l[1],m=l[2],p=l[4],v=l[5],g=l[6],_=l[8],x=l[9],T=l[10],b=!(0,s.ut)(l),y=1e-6,A=1-y;if(i*=d,1===n)for(let e=0;e<u;++e){const t=4*a[e],r=o[t],n=o[t+1],s=o[t+2],l=o[t+3];let u=h*r+p*n+_*s,E=f*r+v*n+x*s,S=m*r+g*n+T*s;if(b){const e=u*u+E*E+S*S;if(e<A&&e>y){const t=1/Math.sqrt(e);u*=t,E*=t,S*=t}}c[i]=u,c[i+1]=E,c[i+2]=S,c[i+3]=l,i+=d}else for(let e=0;e<u;++e){const t=4*a[e],r=o[t],s=o[t+1],l=o[t+2],u=o[t+3];let E=h*r+p*s+_*l,S=f*r+v*s+x*l,w=m*r+g*s+T*l;if(b){const e=E*E+S*S+w*w;if(e<A&&e>y){const t=1/Math.sqrt(e);E*=t,S*=t,w*=t}}for(let e=0;e<n;++e)c[i]=E,c[i+1]=S,c[i+2]=w,c[i+3]=u,i+=d}}(t,r,i,o);break}case ne.r.PROFILERIGHT:case ne.r.PROFILEUP:case ne.r.PROFILEVERTEXANDNORMAL:case ne.r.FEATUREVALUE:{(0,U.vA)(4===t.size);const r=n.getField(e,m.Eq);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Rt(t,r,o)}}}class Lt{constructor(e){this.vertexBufferLayout=e}elementCount(e){return e.attributes.get(ne.r.POSITION).indices.length}write(e,t,r,i,n){!function(e,t,r,i,n,o){for(const a of t.fields.keys()){const t=e.attributes.get(a),s=t?.indices;if(t&&s)Pt(a,t,r,i,n,o);else if(a===ne.r.OBJECTANDLAYERIDCOLOR&&null!=e.objectAndLayerIdColor){const t=e.attributes.get(ne.r.POSITION)?.indices;if(t){const r=t.length,i=n.getField(a,m.XP);Nt(e.objectAndLayerIdColor,i,r,o)}}}}(r,this.vertexBufferLayout,e,t,i,n)}}var Ht=r(13752),Dt=r(91829),Bt=r(53466),Ft=r(72824),zt=r(97220),Vt=r(84867),Gt=r(39341),Ut=r(34886);pe.MT.LESS,pe.MT.ALWAYS;const Wt={mask:255},jt={function:{func:pe.MT.ALWAYS,ref:F.dd.OutlineVisualElementMask,mask:F.dd.OutlineVisualElementMask},operation:{fail:pe.eA.KEEP,zFail:pe.eA.KEEP,zPass:pe.eA.ZERO}},qt={function:{func:pe.MT.ALWAYS,ref:F.dd.OutlineVisualElementMask,mask:F.dd.OutlineVisualElementMask},operation:{fail:pe.eA.KEEP,zFail:pe.eA.KEEP,zPass:pe.eA.REPLACE}};pe.MT.EQUAL,F.dd.OutlineVisualElementMask,F.dd.OutlineVisualElementMask,pe.eA.KEEP,pe.eA.KEEP,pe.eA.KEEP,pe.MT.NOTEQUAL,F.dd.OutlineVisualElementMask,F.dd.OutlineVisualElementMask,pe.eA.KEEP,pe.eA.KEEP,pe.eA.KEEP;const kt=[1,1,.5],$t=[0,.6,.2],Yt=[0,1,.2];var Xt=r(28491);class Zt extends Ft.Zo{constructor(){super(...arguments),this.isSchematic=!1,this.usePBR=!1,this.mrrFactors=(0,u.ci)(kt),this.hasVertexColors=!1,this.hasSymbolColors=!1,this.doubleSided=!1,this.doubleSidedType="normal",this.cullFace=F.s2.Back,this.isInstanced=!1,this.hasInstancedColor=!1,this.emissiveFactor=(0,u.fA)(0,0,0),this.instancedDoublePrecision=!1,this.normalType=Ge.W.Attribute,this.receiveShadows=!0,this.receiveAmbientOcclusion=!0,this.castShadows=!0,this.shadowMappingEnabled=!1,this.ambient=(0,u.fA)(.2,.2,.2),this.diffuse=(0,u.fA)(.8,.8,.8),this.externalColor=(0,Dt.fA)(1,1,1,1),this.colorMixMode="multiply",this.opacity=1,this.layerOpacity=1,this.origin=(0,u.vt)(),this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.offsetTransparentBackfaces=!1,this.vvSize=null,this.vvColor=null,this.vvOpacity=null,this.vvSymbolAnchor=null,this.vvSymbolRotationMatrix=null,this.modelTransformation=null,this.transparent=!1,this.writeDepth=!0,this.customDepthTest=F.it.Less,this.textureAlphaMode=F.sf.Blend,this.textureAlphaCutoff=je.Q,this.textureAlphaPremultiplied=!1,this.hasOccludees=!1,this.renderOccluded=ke.m$.Occlude,this.isDecoration=!1}}Ft.gy;class Jt extends Vt.w{initializeConfiguration(e,t){t.spherical=e.viewingMode===Fe.RT.Global,t.doublePrecisionRequiresObfuscation=e.rctx.driverTest.doublePrecisionRequiresObfuscation.result,t.textureCoordinateType=t.hasColorTexture||t.hasMetallicRoughnessTexture||t.hasEmissionTexture||t.hasOcclusionTexture||t.hasNormalTexture?Bt.q.Default:Bt.q.None,t.objectAndLayerIdColorInstanced=t.instanced}initializeProgram(e){return this._initializeProgram(e,Jt.shader)}_initializeProgram(e,t){return new Ut.B(e.rctx,t.get().build(this.configuration),Gt.D)}_makePipeline(e,t){const{output:r,transparent:i,cullFace:n,customDepthTest:o,writeDepth:a,hasOccludees:s,enableOffset:l}=this.configuration,c=e===$e.y.NONE,d=e===$e.y.FrontFace;return(0,Ye.Ey)({blending:r===Ve.V.Color&&i?Je(e):null,culling:Qt(this.configuration)?(0,Ye.Xt)(n):null,depthTest:{func:et(e,Kt(o))},depthWrite:(c||d)&&a?Ye.kn:null,drawBuffers:r===Ve.V.Depth?{buffers:[pe.Hr.NONE]}:tt(e),colorWrite:Ye.wE,stencilWrite:s?Wt:null,stencilTest:s?t?qt:jt:null,polygonOffset:c||d?null:Qe(l)})}initializePipeline(){return this._occludeePipelineState=this._makePipeline(this.configuration.transparencyPassType,!0),this._makePipeline(this.configuration.transparencyPassType,!1)}getPipeline(e){return e?this._occludeePipelineState:super.getPipeline()}}function Kt(e){return e===F.it.Lequal?pe.MT.LEQUAL:pe.MT.LESS}function Qt(e){return e.cullFace!==F.s2.None||!e.hasSlicePlane&&!e.transparent&&!e.doubleSidedMode}Jt.shader=new zt.$(Xt.D,(()=>r.e(5141).then(r.bind(r,5141))));var er=r(90237),tr=r(99769),rr=r(82991),ir=r(46263);class nr extends rr.nW{}(0,er._)([(0,tr.W)({constValue:!0})],nr.prototype,"hasSliceHighlight",void 0),(0,er._)([(0,tr.W)({constValue:!1})],nr.prototype,"hasSliceInVertexProgram",void 0),(0,er._)([(0,tr.W)({constValue:ir.c.Pass})],nr.prototype,"pbrTextureBindType",void 0);class or extends nr{constructor(){super(...arguments),this.output=Ve.V.Color,this.alphaDiscardMode=F.sf.Opaque,this.doubleSidedMode=Ue.W.None,this.pbrMode=We.A9.Disabled,this.cullFace=F.s2.None,this.transparencyPassType=$e.y.NONE,this.normalType=Ge.W.Attribute,this.textureCoordinateType=Bt.q.None,this.customDepthTest=F.it.Less,this.spherical=!1,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.vvSize=!1,this.vvColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instanced=!1,this.instancedColor=!1,this.objectAndLayerIdColorInstanced=!1,this.instancedDoublePrecision=!1,this.doublePrecisionRequiresObfuscation=!1,this.writeDepth=!0,this.transparent=!1,this.discardInvisibleFragments=!1,this.enableOffset=!0,this.cullAboveGround=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1}}(0,er._)([(0,tr.W)({count:Ve.V.COUNT})],or.prototype,"output",void 0),(0,er._)([(0,tr.W)({count:F.sf.COUNT})],or.prototype,"alphaDiscardMode",void 0),(0,er._)([(0,tr.W)({count:Ue.W.COUNT})],or.prototype,"doubleSidedMode",void 0),(0,er._)([(0,tr.W)({count:We.A9.COUNT})],or.prototype,"pbrMode",void 0),(0,er._)([(0,tr.W)({count:F.s2.COUNT})],or.prototype,"cullFace",void 0),(0,er._)([(0,tr.W)({count:$e.y.COUNT})],or.prototype,"transparencyPassType",void 0),(0,er._)([(0,tr.W)({count:Ge.W.COUNT})],or.prototype,"normalType",void 0),(0,er._)([(0,tr.W)({count:Bt.q.COUNT})],or.prototype,"textureCoordinateType",void 0),(0,er._)([(0,tr.W)({count:F.it.COUNT})],or.prototype,"customDepthTest",void 0),(0,er._)([(0,tr.W)()],or.prototype,"spherical",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVertexColors",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSymbolColors",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVerticalOffset",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSlicePlane",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSliceHighlight",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasColorTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasMetallicRoughnessTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasEmissionTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOcclusionTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasNormalTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasScreenSizePerspective",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVertexTangents",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOccludees",void 0),(0,er._)([(0,tr.W)()],or.prototype,"multipassEnabled",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasModelTransformation",void 0),(0,er._)([(0,tr.W)()],or.prototype,"offsetBackfaces",void 0),(0,er._)([(0,tr.W)()],or.prototype,"vvSize",void 0),(0,er._)([(0,tr.W)()],or.prototype,"vvColor",void 0),(0,er._)([(0,tr.W)()],or.prototype,"receiveShadows",void 0),(0,er._)([(0,tr.W)()],or.prototype,"receiveAmbientOcclusion",void 0),(0,er._)([(0,tr.W)()],or.prototype,"textureAlphaPremultiplied",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instanced",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instancedColor",void 0),(0,er._)([(0,tr.W)()],or.prototype,"objectAndLayerIdColorInstanced",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instancedDoublePrecision",void 0),(0,er._)([(0,tr.W)()],or.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,er._)([(0,tr.W)()],or.prototype,"writeDepth",void 0),(0,er._)([(0,tr.W)()],or.prototype,"transparent",void 0),(0,er._)([(0,tr.W)()],or.prototype,"discardInvisibleFragments",void 0),(0,er._)([(0,tr.W)()],or.prototype,"enableOffset",void 0),(0,er._)([(0,tr.W)()],or.prototype,"cullAboveGround",void 0),(0,er._)([(0,tr.W)()],or.prototype,"snowCover",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasColorTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasEmissionTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasNormalTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOcclusionTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasMetallicRoughnessTextureTransform",void 0),(0,er._)([(0,tr.W)({constValue:!1})],or.prototype,"occlusionPass",void 0),(0,er._)([(0,tr.W)({constValue:!0})],or.prototype,"hasVvInstancing",void 0),(0,er._)([(0,tr.W)({constValue:!1})],or.prototype,"useCustomDTRExponentForWater",void 0),(0,er._)([(0,tr.W)({constValue:!1})],or.prototype,"supportsTextureAtlas",void 0),(0,er._)([(0,tr.W)({constValue:!0})],or.prototype,"useFillLights",void 0);var ar=r(57323);class sr extends Jt{initializeConfiguration(e,t){super.initializeConfiguration(e,t),t.hasMetallicRoughnessTexture=!1,t.hasEmissionTexture=!1,t.hasOcclusionTexture=!1,t.hasNormalTexture=!1,t.hasModelTransformation=!1,t.normalType=Ge.W.Attribute,t.doubleSidedMode=Ue.W.WindingOrder,t.hasVertexTangents=!1}initializeProgram(e){return this._initializeProgram(e,sr.shader)}}sr.shader=new zt.$(ar.R,(()=>r.e(9933).then(r.bind(r,39933))));class lr extends ke.im{constructor(e){super(e,dr),this._configuration=new or,this.supportsEdges=!0,this.produces=new Map([[xt.OPAQUE_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&!this.parameters.transparent],[xt.TRANSPARENT_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&this.parameters.transparent&&this.parameters.writeDepth],[xt.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&this.parameters.transparent&&!this.parameters.writeDepth]]),this._vertexBufferLayout=function(e){const t=(0,ze.BP)().vec3f(ne.r.POSITION);return e.normalType===Ge.W.Compressed?t.vec2i16(ne.r.NORMALCOMPRESSED,{glNormalized:!0}):t.vec3f(ne.r.NORMAL),e.hasVertexTangents&&t.vec4f(ne.r.TANGENT),(e.textureId||e.normalTextureId||e.metallicRoughnessTextureId||e.emissiveTextureId||e.occlusionTextureId)&&t.vec2f(ne.r.UV0),e.hasVertexColors&&t.vec4u8(ne.r.COLOR),e.hasSymbolColors&&t.vec4u8(ne.r.SYMBOLCOLOR),(0,ae.A)("enable-feature:objectAndLayerId-rendering")&&t.vec4u8(ne.r.OBJECTANDLAYERIDCOLOR),t}(this.parameters)}isVisibleForOutput(e){return e!==Ve.V.Shadow&&e!==Ve.V.ShadowExcludeHighlight&&e!==Ve.V.ShadowHighlight||this.parameters.castShadows}get visible(){const e=this.parameters;if(e.layerOpacity<je.Q)return!1;const{hasInstancedColor:t,hasVertexColors:r,hasSymbolColors:i,vvColor:n}=e,o=t||n||i,a="replace"===e.colorMixMode,s=e.opacity>=je.Q;if(r&&o)return a||s;const l=e.externalColor&&e.externalColor[3]>=je.Q;return r?a?l:s:o?a||s:a?l:s}getConfiguration(e,t){return this._configuration.output=e,this._configuration.hasNormalTexture=!!this.parameters.normalTextureId,this._configuration.hasColorTexture=!!this.parameters.textureId,this._configuration.hasVertexTangents=this.parameters.hasVertexTangents,this._configuration.instanced=this.parameters.isInstanced,this._configuration.instancedDoublePrecision=this.parameters.instancedDoublePrecision,this._configuration.vvSize=!!this.parameters.vvSize,this._configuration.hasVerticalOffset=null!=this.parameters.verticalOffset,this._configuration.hasScreenSizePerspective=null!=this.parameters.screenSizePerspective,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasSliceHighlight=this.parameters.hasSliceHighlight,this._configuration.alphaDiscardMode=this.parameters.textureAlphaMode,this._configuration.normalType=this.parameters.normalType,this._configuration.transparent=this.parameters.transparent,this._configuration.discardInvisibleFragments=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,null!=this.parameters.customDepthTest&&(this._configuration.customDepthTest=this.parameters.customDepthTest),this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.cullFace=this.parameters.hasSlicePlane?F.s2.None:this.parameters.cullFace,this._configuration.multipassEnabled=t.multipassEnabled,this._configuration.cullAboveGround=t.multipassTerrain.cullAboveGround,this._configuration.hasModelTransformation=null!=this.parameters.modelTransformation,e===Ve.V.Color&&(this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.hasSymbolColors=this.parameters.hasSymbolColors,this.parameters.treeRendering?this._configuration.doubleSidedMode=Ue.W.WindingOrder:this._configuration.doubleSidedMode=this.parameters.doubleSided&&"normal"===this.parameters.doubleSidedType?Ue.W.View:this.parameters.doubleSided&&"winding-order"===this.parameters.doubleSidedType?Ue.W.WindingOrder:Ue.W.None,this._configuration.instancedColor=this.parameters.hasInstancedColor,this._configuration.receiveShadows=this.parameters.receiveShadows&&this.parameters.shadowMappingEnabled,this._configuration.receiveAmbientOcclusion=this.parameters.receiveAmbientOcclusion&&null!=t.ssao,this._configuration.vvColor=!!this.parameters.vvColor,this._configuration.textureAlphaPremultiplied=!!this.parameters.textureAlphaPremultiplied,this._configuration.pbrMode=this.parameters.usePBR?this.parameters.isSchematic?We.A9.Schematic:We.A9.Normal:We.A9.Disabled,this._configuration.hasMetallicRoughnessTexture=!!this.parameters.metallicRoughnessTextureId,this._configuration.hasEmissionTexture=!!this.parameters.emissiveTextureId,this._configuration.hasOcclusionTexture=!!this.parameters.occlusionTextureId,this._configuration.offsetBackfaces=!(!this.parameters.transparent||!this.parameters.offsetTransparentBackfaces),this._configuration.transparencyPassType=t.transparencyPassType,this._configuration.enableOffset=t.camera.relativeElevation<5e5,this._configuration.snowCover=this.hasSnowCover(t),this._configuration.hasColorTextureTransform=!!this.parameters.colorTextureTransformMatrix,this._configuration.hasNormalTextureTransform=!!this.parameters.normalTextureTransformMatrix,this._configuration.hasEmissionTextureTransform=!!this.parameters.emissiveTextureTransformMatrix,this._configuration.hasOcclusionTextureTransform=!!this.parameters.occlusionTextureTransformMatrix,this._configuration.hasMetallicRoughnessTextureTransform=!!this.parameters.metallicRoughnessTextureTransformMatrix),this._configuration}hasSnowCover(e){return null!=e.weather&&e.weatherVisible&&"snowy"===e.weather.type&&"enabled"===e.weather.snowCover}intersect(e,t,r,i,n,o){if(null!=this.parameters.verticalOffset){const e=r.camera;(0,d.s)(vr,t[12],t[13],t[14]);let o=null;switch(r.viewingMode){case Fe.RT.Global:o=(0,d.n)(mr,vr);break;case Fe.RT.Local:o=(0,d.c)(mr,fr)}let a=0;const s=(0,d.f)(gr,vr,e.eye),l=(0,d.l)(s),c=(0,d.j)(s,s,1/l);let u=null;this.parameters.screenSizePerspective&&(u=(0,d.m)(o,c)),a+=(0,Ht.kE)(e,l,this.parameters.verticalOffset,u??0,this.parameters.screenSizePerspective),(0,d.j)(o,o,a),(0,d.t)(pr,o,r.transform.inverseRotation),i=(0,d.f)(ur,i,pr),n=(0,d.f)(hr,n,pr)}var a;nt(e,r,i,n,null!=(a=r.verticalOffset)?(At.offset=a,At):null,o)}createGLMaterial(e){return new cr(e)}createBufferWriter(){return new Lt(this._vertexBufferLayout)}}class cr extends qe.m{constructor(e){super({...e,...e.material.parameters})}_updateShadowState(e){e.shadowMap.enabled!==this._material.parameters.shadowMappingEnabled&&this._material.setParameters({shadowMappingEnabled:e.shadowMap.enabled})}_updateOccludeeState(e){e.hasOccludees!==this._material.parameters.hasOccludees&&this._material.setParameters({hasOccludees:e.hasOccludees})}beginSlot(e){this._output===Ve.V.Color&&(this._updateShadowState(e),this._updateOccludeeState(e));const t=this._material.parameters;this.updateTexture(t.textureId);const r=e.camera.viewInverseTransposeMatrix;return(0,d.s)(t.origin,r[3],r[7],r[11]),this._material.setParameters(this.textureBindParameters),this.ensureTechnique(t.treeRendering?sr:Jt,e)}}class dr extends Zt{constructor(){super(...arguments),this.initTextureTransparent=!1,this.treeRendering=!1,this.hasVertexTangents=!1}}const ur=(0,u.vt)(),hr=(0,u.vt)(),fr=(0,u.fA)(0,0,1),mr=(0,u.vt)(),pr=(0,u.vt)(),vr=(0,u.vt)(),gr=(0,u.vt)(),_r=()=>R.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");function xr(e){throw new I.A("",`Request for object resource failed: ${e}`)}function Tr(e){const t=e.params,r=t.topology;let i=!0;switch(t.vertexAttributes||(_r().warn("Geometry must specify vertex attributes"),i=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(_r().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),i=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(_r().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),i=!1)):(_r().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),i=!1)}}else _r().warn("Indexed geometries must specify faces"),i=!1;break}default:_r().warn(`Unsupported topology '${r}'`),i=!1}e.params.material||(_r().warn("Geometry requires material"),i=!1);const n=e.params.vertexAttributes;for(const e in n)n[e].values||(_r().warn("Geometries with externally defined attributes are not yet supported"),i=!1);return i}function br(e){const t=(0,h.Ie)();return e.forEach((e=>{const r=e.boundingInfo;null!=r&&((0,h.iT)(t,r.bbMin),(0,h.iT)(t,r.bbMax))})),t}function yr(e){switch(e){case"mask":return F.sf.Mask;case"maskAndTransparency":return F.sf.MaskBlend;case"none":return F.sf.Opaque;default:return F.sf.Blend}}function Ar(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const Er=new L.R(1,2,"wosr");var Sr=r(61765);async function wr(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,i.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const i=await(0,C.Ke)(t.request(e,"json",r));if(!0===i.ok)return i.value;(0,P.QP)(i.error),xr(i.error.details.url)}(e,r,t);const i=await(0,C.Ke)((0,M.A)(e,t));if(!0===i.ok)return i.value.data;(0,P.QP)(i.error),xr(i.error)}(e,t),i=await async function(e,t){const r=new Array;for(const i in e){const n=e[i],o=n.images[0].data;if(!o){_r().warn("Externally referenced texture data is not yet supported");continue}const a=n.encoding+";base64,"+o,s="/textureDefinitions/"+i,l="rgba"===n.channels?n.alphaChannelUsage||"transparency":"none",c={noUnpackFlip:!0,wrap:{s:pe.pF.REPEAT,t:pe.pF.REPEAT},preMultiplyAlpha:yr(l)!==F.sf.Opaque},d=t?.disableTextures?Promise.resolve(null):D(a,t);r.push(d.then((e=>({refId:s,image:e,parameters:c,alphaChannelUsage:l}))))}const i=await Promise.all(r),n={};for(const e of i)n[e.refId]=e;return n}(r.textureDefinitions??{},t);let n=0;for(const e in i)if(i.hasOwnProperty(e)){const t=i[e];n+=t?.image?t.image.width*t.image.height*4:0}return{resource:r,textures:i,size:n+(0,O.iL)(r)}}(a.url,t)),{engineResources:r,referenceBoundingBox:i}=function(e,t){const r=new Array,i=new Array,n=new Array,o=new N,a=e.resource,s=L.R.parse(a.version||"1.0","wosr");Er.validate(s);const l=a.model.name,c=a.model.geometries,d=a.materialDefinitions??{},h=e.textures;let f=0;const m=new Map;for(let e=0;e<c.length;e++){const a=c[e];if(!Tr(a))continue;const s=Ar(a),l=a.params.vertexAttributes,p=[],v=e=>{if("PerAttributeArray"===a.params.topology)return null;const t=a.params.faces;for(const r in t)if(r===e)return t[r].values;return null},g=l[ne.r.POSITION],_=g.values.length/g.valuesPerElement;for(const e in l){const t=l[e],r=t.values,i=v(e)??(0,H.tM)(_);p.push([e,new B.n(r,i,t.valuesPerElement,!0)])}const x=s.texture,T=h&&h[x];if(T&&!m.has(x)){const{image:e,parameters:t}=T,r=new He(e,t);i.push(r),m.set(x,r)}const b=m.get(x),y=b?b.id:void 0,A=s.material;let E=o.get(A,x);if(null==E){const e=d[A.substring(A.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=T&&T.alphaChannelUsage,i=e.transparency>0||"transparency"===r||"maskAndTransparency"===r,n=T?yr(T.alphaChannelUsage):void 0,a={ambient:(0,u.ci)(e.diffuse),diffuse:(0,u.ci)(e.diffuse),opacity:1-(e.transparency||0),transparent:i,textureAlphaMode:n,textureAlphaCutoff:.33,textureId:y,initTextureTransparent:!0,doubleSided:!0,cullFace:F.s2.None,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:T?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(a,t.materialParameters),E=new lr(a),o.set(A,x,E)}n.push(E);const S=new oe(E,p);f+=p.find((e=>e[0]===ne.r.POSITION))?.[1]?.indices.length??0,r.push(S)}return{engineResources:[{name:l,stageResources:{textures:i,materials:n,geometries:r},pivotOffset:a.model.pivotOffset,numberOfVertices:f,lodThreshold:null}],referenceBoundingBox:br(r)}}(e,t);return{lods:r,referenceBoundingBox:i,isEsriSymbolResource:!1,isWosr:!0}}let A;if(t.cache)A=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(4399).then(r.bind(r,4399));A=await e(new T.R(t.streamDataRequester),a.url,t,t.usePBR)}const S=A.model.meta?.ESRI_proxyEllipsoid,I=A.meta.isEsriSymbolResource&&null!=S&&"EsriRealisticTreesStyle"===A.meta.ESRI_webstyle;I&&!A.customMeta.esriTreeRendering&&(A.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const i=e.model.lods[r];for(const n of i.parts){const i=n.attributes.normal;if(null==i)return;const o=n.attributes.position,a=o.count,c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),p=new Uint8Array(4*a),v=new Float64Array(3*a),g=(0,s.B8)((0,l.vt)(),n.transform);let _=0,x=0;for(let s=0;s<a;s++){o.getVec(s,h),i.getVec(s,c),(0,d.h)(h,h,n.transform),(0,d.f)(f,h,t.center),(0,d.D)(f,f,t.radius);const a=f[2],l=(0,d.l)(f),u=Math.min(.45+.55*l*l,1);(0,d.D)(f,f,t.radius),null!==g&&(0,d.h)(f,f,g),(0,d.n)(f,f),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,d.o)(f,f,c,a>-1?.2:Math.min(-4*a-3.8,1)),v[_]=f[0],v[_+1]=f[1],v[_+2]=f[2],_+=3,p[x]=255*u,p[x+1]=255*u,p[x+2]=255*u,p[x+3]=255,x+=4}n.attributes.normal=new m.xs(v),n.attributes.color=new m.XP(p)}}}(A,S));const R=!!t.usePBR,z=A.meta.isEsriSymbolResource?{usePBR:R,isSchematic:!1,treeRendering:I,mrrFactors:[...Yt]}:{usePBR:R,isSchematic:!1,treeRendering:!1,mrrFactors:[...kt]},V={...t.materialParameters,treeRendering:I},{engineResources:G,referenceBoundingBox:U}=function(e,t,r,i){const a=e.model,s=new Array,l=new Map,T=new Map,A=a.lods.length,S=(0,h.Ie)();return a.lods.forEach(((e,M)=>{const C=!0===i.skipHighLods&&(A>1&&0===M||A>3&&1===M)||!1===i.skipHighLods&&null!=i.singleLodIndex&&M!==i.singleLodIndex;if(C&&0!==M)return;const O=new w(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach((e=>{const i=C?new lr({}):function(e,t,r,i,n,o,a){const s=t.material+(t.attributes.normal?"_normal":"")+(t.attributes.color?"_color":"")+(t.attributes.texCoord0?"_texCoord0":"")+(t.attributes.tangent?"_tangent":""),l=e.materials.get(t.material),h=null!=t.attributes.texCoord0,f=null!=t.attributes.normal;if(null==l)return null;const m=function(e){switch(e){case"BLEND":return F.sf.Blend;case"MASK":return F.sf.Mask;case"OPAQUE":case null:case void 0:return F.sf.Opaque}}(l.alphaMode);if(!o.has(s)){if(h){const t=(t,r=!1)=>{if(null!=t&&!a.has(t)){const i=e.textures.get(t);if(null!=i){const e=i.data;a.set(t,new He((0,y.x3)(e)?e.data:e,{...i.parameters,preMultiplyAlpha:!(0,y.x3)(e)&&r,encoding:(0,y.x3)(e)&&null!=e.encoding?e.encoding:void 0}))}}};t(l.textureColor,m!==F.sf.Opaque),t(l.textureNormal),t(l.textureOcclusion),t(l.textureEmissive),t(l.textureMetallicRoughness)}const r=l.color[0]**(1/Sr.T),p=l.color[1]**(1/Sr.T),v=l.color[2]**(1/Sr.T),g=l.emissiveFactor[0]**(1/Sr.T),_=l.emissiveFactor[1]**(1/Sr.T),x=l.emissiveFactor[2]**(1/Sr.T),T=null!=l.textureColor&&h?a.get(l.textureColor):null,b=function({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:i,emissiveTexture:n,emissiveFactor:o,occlusionTexture:a}){return null==e&&null==t&&null==n&&(null==o||(0,d.e)(o,u.uY))&&null==a&&(null==i||1===i)&&(null==r||1===r)}({normalTexture:l.textureNormal,metallicRoughnessTexture:l.textureMetallicRoughness,metallicFactor:l.metallicFactor,roughnessFactor:l.roughnessFactor,emissiveTexture:l.textureEmissive,emissiveFactor:l.emissiveFactor,occlusionTexture:l.textureOcclusion}),A=null!=l.normalTextureTransform?.scale?l.normalTextureTransform?.scale:c.Un;o.set(s,new lr({...i,transparent:m===F.sf.Blend,customDepthTest:F.it.Lequal,textureAlphaMode:m,textureAlphaCutoff:l.alphaCutoff,diffuse:[r,p,v],ambient:[r,p,v],opacity:l.opacity,doubleSided:l.doubleSided,doubleSidedType:"winding-order",cullFace:l.doubleSided?F.s2.None:F.s2.Back,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:f?Ge.W.Attribute:Ge.W.ScreenDerivative,castShadows:!0,receiveShadows:l.receiveShadows,receiveAmbientOcclusion:l.receiveAmbientOcclustion,textureId:null!=T?T.id:void 0,colorMixMode:l.colorMixMode,normalTextureId:null!=l.textureNormal&&h?a.get(l.textureNormal).id:void 0,textureAlphaPremultiplied:null!=T&&!!T.parameters.preMultiplyAlpha,occlusionTextureId:null!=l.textureOcclusion&&h?a.get(l.textureOcclusion).id:void 0,emissiveTextureId:null!=l.textureEmissive&&h?a.get(l.textureEmissive).id:void 0,metallicRoughnessTextureId:null!=l.textureMetallicRoughness&&h?a.get(l.textureMetallicRoughness).id:void 0,emissiveFactor:[g,_,x],mrrFactors:b?[...$t]:[l.metallicFactor,l.roughnessFactor,i.mrrFactors[2]],isSchematic:b,colorTextureTransformMatrix:E(l.colorTextureTransform),normalTextureTransformMatrix:E(l.normalTextureTransform),scale:[A[0],A[1]],occlusionTextureTransformMatrix:E(l.occlusionTextureTransform),emissiveTextureTransformMatrix:E(l.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:E(l.metallicRoughnessTextureTransform),...n}))}const p=o.get(s);if(r.stageResources.materials.push(p),h){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(l.textureColor),e(l.textureNormal),e(l.textureOcclusion),e(l.textureEmissive),e(l.textureMetallicRoughness)}return p}(a,e,O,t,r,l,T),{geometry:s,vertexCount:A}=function(e,t){const r=e.attributes.position.count,i=(0,b.x)(e.indices||r,e.primitiveType),a=(0,f.oe)(3*r),{typedBuffer:s,typedBufferStride:l}=e.attributes.position;(0,p.a)(a,s,e.transform,3,l);const c=[[ne.r.POSITION,new B.n(a,i,3,!0)]];if(null!=e.attributes.normal){const t=(0,f.oe)(3*r),{typedBuffer:a,typedBufferStride:s}=e.attributes.normal;(0,o.Ge)(Mr,e.transform),(0,p.t)(t,a,Mr,3,s),(0,n.or)(Mr)&&(0,p.n)(t,t),c.push([ne.r.NORMAL,new B.n(t,i,3,!0)])}if(null!=e.attributes.tangent){const t=(0,f.oe)(4*r),{typedBuffer:a,typedBufferStride:s}=e.attributes.tangent;(0,o.z0)(Mr,e.transform),(0,v.t)(t,a,Mr,4,s),(0,n.or)(Mr)&&(0,p.n)(t,t,4),c.push([ne.r.TANGENT,new B.n(t,i,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,f.oe)(2*r),{typedBuffer:n,typedBufferStride:o}=e.attributes.texCoord0;(0,g.a)(t,n,2,o),c.push([ne.r.UV0,new B.n(t,i,2,!0)])}const d=e.attributes.color;if(null!=d){const t=new Uint8Array(4*r);4===d.elementCount?d instanceof m.Eq?(0,v.b)(t,d,255):d instanceof m.XP?(0,x.a)(t,d):d instanceof m.Uz&&(0,v.b)(t,d,1/256):(t.fill(255),d instanceof m.xs?(0,p.f)(t,d.typedBuffer,255,4,d.typedBufferStride):e.attributes.color instanceof m.eI?(0,_.c)(t,d.typedBuffer,4,e.attributes.color.typedBufferStride):e.attributes.color instanceof m.nS&&(0,p.f)(t,d.typedBuffer,1/256,4,d.typedBufferStride)),c.push([ne.r.COLOR,new B.n(t,i,4,!0)])}return{geometry:new oe(t,c),vertexCount:r}}(e,null!=i?i:new lr({})),w=s.boundingInfo;null!=w&&0===M&&((0,h.iT)(S,w.bbMin),(0,h.iT)(S,w.bbMax)),null!=i&&(O.stageResources.geometries.push(s),O.numberOfVertices+=A)})),C||s.push(O)})),{engineResources:s,referenceBoundingBox:S}}(A,z,V,t.skipHighLods&&null==a.specifiedLodIndex?{skipHighLods:!0}:{skipHighLods:!1,singleLodIndex:a.specifiedLodIndex});return{lods:G,referenceBoundingBox:U,isEsriSymbolResource:A.meta.isEsriSymbolResource,isWosr:!1}}const Mr=(0,a.vt)()},66104:(e,t,r)=>{var i,n;r.d(t,{k5:()=>i}),r(34727),(n=i||(i={}))[n.Multiply=1]="Multiply",n[n.Ignore=2]="Ignore",n[n.Replace=3]="Replace",n[n.Tint=4]="Tint"},42583:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(66104),n=r(2597);function o(e){e.vertex.code.add(n.H`
224
+ fragBlur = b / w_total;`),e}const m=Object.freeze(Object.defineProperty({__proto__:null,build:f},Symbol.toStringTag,{value:"Module"}))},76412:(e,t,r)=>{r.d(t,{c:()=>p,d:()=>_,f:()=>b,g:()=>T,h:()=>x,k:()=>w,o:()=>P}),r(44208),r(53966);var i=r(34727),n=r(58083),o=r(38954),a=r(51850),s=r(87317),l=r(91829),c=r(34304),d=r(88582),u=r(71351),h=r(44280),f=r(32114);const m=p();function p(){return(0,l.vt)()}const v=s.e,g=s.e;function _(e,t){return(0,s.c)(t,e)}function x(e){return e[3]}function T(e){return e}function b(e,t,r,i){return(0,l.fA)(e,t,r,i)}function y(e,t,r){if(null==t)return!1;if(!E(e,t,A))return!1;let{t0:i,t1:n}=A;if((i<0||n<i&&n>0)&&(i=n),i<0)return!1;if(r){const{origin:e,direction:n}=t;r[0]=e[0]+n[0]*i,r[1]=e[1]+n[1]*i,r[2]=e[2]+n[2]*i}return!0}const A={t0:0,t1:0};function E(e,t,r){const{origin:i,direction:n}=t,o=S;o[0]=i[0]-e[0],o[1]=i[1]-e[1],o[2]=i[2]-e[2];const a=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===a)return!1;const s=2*(n[0]*o[0]+n[1]*o[1]+n[2]*o[2]),l=s*s-4*a*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(l<0)return!1;const c=Math.sqrt(l);return r.t0=(-s-c)/(2*a),r.t1=(-s+c)/(2*a),!0}const S=(0,a.vt)();function w(e,t){return y(e,t,null)}function M(e,t,r){const i=f.rq.get(),a=f.Rc.get();(0,o.b)(i,t.origin,t.direction);const s=x(e);(0,o.b)(r,i,t.origin),(0,o.j)(r,r,1/(0,o.l)(r)*s);const l=O(e,t.origin),c=(0,h.g7)(t.origin,r);return(0,n.$0)(a,c+l,i),(0,o.h)(r,r,a),r}function C(e,t,r){const i=(0,o.f)(f.rq.get(),t,e),n=(0,o.j)(f.rq.get(),i,e[3]/(0,o.l)(i));return(0,o.g)(r,n,e)}function O(e,t){const r=(0,o.f)(f.rq.get(),t,e),n=(0,o.l)(r),a=x(e),s=a+Math.abs(a-n);return(0,i.XM)(a/s)}const I=(0,a.vt)();function R(e,t,r,n){const a=(0,o.f)(I,t,e);switch(r){case d._.X:{const e=(0,i.jU)(a,I)[2];return(0,o.s)(n,-Math.sin(e),Math.cos(e),0)}case d._.Y:{const e=(0,i.jU)(a,I),t=e[1],r=e[2],s=Math.sin(t);return(0,o.s)(n,-s*Math.cos(r),-s*Math.sin(r),Math.cos(t))}case d._.Z:return(0,o.n)(n,a);default:return}}function N(e,t){const r=(0,o.f)(L,t,e);return(0,o.l)(r)-e[3]}function P(e,t){const r=(0,o.a)(e,t),i=x(e);return r<=i*i}const L=(0,a.vt)(),H=p();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:N,angleToSilhouette:O,axisAt:R,cameraFrustumCoverage:function(e,t,r,i){const n=x(e),o=n*n,a=t+.5*Math.PI,s=r*r+o-2*Math.cos(a)*r*n,l=Math.sqrt(s),c=s-o;if(c<=0)return.5;const d=Math.sqrt(c),u=Math.acos(d/l)-Math.asin(n/(l/Math.sin(a)));return Math.min(1,(u+.5*i)/i)},clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return y(e,t,r)?r:((0,u.oC)(t,e,r),C(e,r,r))},closestPointOnSilhouette:M,containsPoint:P,copy:_,create:p,distanceToSilhouette:function(e,t){const r=(0,o.f)(f.rq.get(),t,e),i=(0,o.q)(r),n=e[3]*e[3];return Math.sqrt(Math.abs(i-n))},elevate:function(e,t,r){return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=e[3]+t,r},equals:g,exactEquals:v,fromCenterAndRadius:function(e,t){return(0,l.fA)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:b,getCenter:T,getExtent:function(e,t){return t},getRadius:x,intersectLine:function(e,t,r){const i=(0,u.Cr)(t,r);if(!E(e,i,A))return[];const{origin:n,direction:s}=i,{t0:l,t1:d}=A,h=t=>{const r=(0,a.vt)();return(0,o.r)(r,n,s,t),C(e,r,r)};return Math.abs(l-d)<(0,c.FD)()?[h(l)]:[h(l),h(d)]},intersectRay:y,intersectRayClosestSilhouette:function(e,t,r){if(y(e,t,r))return r;const i=M(e,t,f.rq.get());return(0,o.g)(r,t.origin,(0,o.j)(f.rq.get(),t.direction,(0,o.p)(t.origin,i)/(0,o.l)(t.direction))),r},intersectsRay:w,projectPoint:C,setAltitudeAt:function(e,t,r,i){const n=N(e,t),a=R(e,t,d._.Z,L),s=(0,o.j)(L,a,r-n);return(0,o.g)(i,t,s)},setExtent:function(e,t,r){return e!==r&&_(e,r),r},tmpSphere:H,union:function(e,t,r=(0,l.vt)()){const i=(0,o.p)(e,t),n=e[3],a=t[3];return i+a<n?((0,s.c)(r,e),r):i+n<a?((0,s.c)(r,t),r):((0,o.o)(r,e,t,(i+a-n)/(2*i)),r[3]=(i+n+a)/2,r)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},43609:(e,t,r)=>{r.d(t,{a:()=>o,f:()=>a,n:()=>n});var i=r(34275);function n(e,t){o(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r=2,n=r){const o=t.length/2;let a=0,s=0;if((0,i.cy)(t)||(0,i.dk)(t)){for(let i=0;i<o;++i)e[a]=t[s],e[a+1]=t[s+1],a+=r,s+=n;return}const l=(0,i.a3)(t);if((0,i.JI)(t))for(let i=0;i<o;++i)e[a]=Math.max(t[s]/l,-1),e[a+1]=Math.max(t[s+1]/l,-1),a+=r,s+=n;else for(let i=0;i<o;++i)e[a]=t[s]/l,e[a+1]=t[s+1]/l,a+=r,s+=n}function a(e,t,r,i){const n=e.typedBuffer,o=e.typedBufferStride,a=i?.count??e.count;let s=(i?.dstIndex??0)*o;for(let e=0;e<a;++e)n[s]=t,n[s+1]=r,s+=o}Object.freeze(Object.defineProperty({__proto__:null,fill:a,normalizeIntegerBuffer:o,normalizeIntegerBufferView:n},Symbol.toStringTag,{value:"Module"}))},73354:(e,t,r)=>{function i(e,t,r){n(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r,i=3,n=i){if(e.length/i!==Math.ceil(t.length/n))return e;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[4],d=r[5],u=r[6],h=r[8],f=r[9],m=r[10],p=r[12],v=r[13],g=r[14];let _=0,x=0;for(let r=0;r<o;r++){const r=t[_],o=t[_+1],T=t[_+2];e[x]=a*r+c*o+h*T+p,e[x+1]=s*r+d*o+f*T+v,e[x+2]=l*r+u*o+m*T+g,_+=n,x+=i}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,i=3,n=i){if(e.length/i!==Math.ceil(t.length/n))return;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[3],d=r[4],u=r[5],h=r[6],f=r[7],m=r[8];let p=0,v=0;for(let r=0;r<o;r++){const r=t[p],o=t[p+1],g=t[p+2];e[v]=a*r+c*o+h*g,e[v+1]=s*r+d*o+f*g,e[v+2]=l*r+u*o+m*g,p+=n,v+=i}}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,n=i){const o=Math.min(e.length/i,t.length/n);let a=0,s=0;for(let l=0;l<o;l++)e[s]=r*t[a],e[s+1]=r*t[a+1],e[s+2]=r*t[a+2],a+=n,s+=i;return e}function c(e,t,r,i=3,n=i){const o=e.length/i;if(o!==Math.ceil(t.length/n))return e;let a=0,s=0;for(let l=0;l<o;l++)e[s]=t[a]+r[0],e[s+1]=t[a+1]+r[1],e[s+2]=t[a+2]+r[2],a+=n,s+=i;return e}function d(e,t){u(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function u(e,t,r=3,i=r){const n=Math.min(e.length/r,t.length/i);let o=0,a=0;for(let s=0;s<n;s++){const n=t[o],s=t[o+1],l=t[o+2],c=n*n+s*s+l*l;if(c>0){const t=1/Math.sqrt(c);e[a]=t*n,e[a+1]=t*s,e[a+2]=t*l}o+=i,a+=r}}r.d(t,{a:()=>n,b:()=>c,c:()=>o,d:()=>i,e:()=>d,f:()=>l,n:()=>u,s:()=>s,t:()=>a}),r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:u,normalizeView:d,scale:l,scaleView:s,shiftRight:function(e,t,r){const i=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,a=t.typedBuffer,s=t.typedBufferStride;let l=0,c=0;for(let e=0;e<i;e++)n[c]=a[l]>>r,n[c+1]=a[l+1]>>r,n[c+2]=a[l+2]>>r,l+=s,c+=o},transformMat3:a,transformMat3View:o,transformMat4:n,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},51737:(e,t,r)=>{function i(e,t){n(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r=3,i=r){const n=t.length/i;let o=0,a=0;for(let s=0;s<n;++s)e[o]=t[a],e[o+1]=t[a+1],e[o+2]=t[a+2],o+=r,a+=i}function o(e,t,r,i,n){const o=e.typedBuffer,a=e.typedBufferStride,s=n?.count??e.count;let l=(n?.dstIndex??0)*a;for(let e=0;e<s;++e)o[l]=t,o[l+1]=r,o[l+2]=i,l+=a}r.d(t,{a:()=>i,c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,copy:n,copyView:i,fill:o},Symbol.toStringTag,{value:"Module"}))},65686:(e,t,r)=>{r.d(t,{a:()=>n,b:()=>l,n:()=>a,s:()=>s,t:()=>o}),r(44208);var i=r(53966);function n(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=4,n=i){if(e.length/i!=t.length/n)return;const o=e.length/i,a=r[0],s=r[1],l=r[2],c=r[3],d=r[4],u=r[5],h=r[6],f=r[7],m=r[8];let p=0,v=0;for(let r=0;r<o;r++){const r=t[p],o=t[p+1],g=t[p+2],_=t[p+3];e[v]=a*r+c*o+h*g,e[v+1]=s*r+d*o+f*g,e[v+2]=l*r+u*o+m*g,e[v+3]=_,p+=n,v+=i}}function a(e,t){const r=Math.min(e.count,t.count),i=e.typedBuffer,n=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*n,r=e*a,s=o[r],l=o[r+1],c=o[r+2],d=s*s+l*l+c*c;if(d>0){const e=1/Math.sqrt(d);i[t]=e*s,i[t+1]=e*l,i[t+2]=e*c}}}function s(e,t,r){l(e.typedBuffer,t,r,e.typedBufferStride)}function l(e,t,r,i=4){const n=Math.min(e.length/i,t.count),o=t.typedBuffer,a=t.typedBufferStride;let s=0,l=0;for(let t=0;t<n;t++)e[l]=r*o[s],e[l+1]=r*o[s+1],e[l+2]=r*o[s+2],e[l+3]=r*o[s+3],s+=a,l+=i}Object.freeze(Object.defineProperty({__proto__:null,normalize:a,scale:l,scaleView:s,transformMat3:o,transformMat3View:n,transformMat4:function(e,t,r,n=4,o=n){if(e.length/n!=t.length/o)return void i.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=e.length/n,s=r[0],l=r[1],c=r[2],d=r[3],u=r[4],h=r[5],f=r[6],m=r[7],p=r[8],v=r[9],g=r[10],_=r[11],x=r[12],T=r[13],b=r[14],y=r[15];let A=0,E=0;for(let r=0;r<a;r++){const r=t[A],i=t[A+1],a=t[A+2],S=t[A+3];e[E]=s*r+u*i+p*a+x*S,e[E+1]=l*r+h*i+v*a+T*S,e[E+2]=c*r+f*i+g*a+b*S,e[E+3]=d*r+m*i+_*a+y*S,A+=o,E+=n}},transformMat4View:function(e,t,r){if(e.count!==t.count)return;const i=e.count,n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],d=r[6],u=r[7],h=r[8],f=r[9],m=r[10],p=r[11],v=r[12],g=r[13],_=r[14],x=r[15],T=e.typedBuffer,b=e.typedBufferStride,y=t.typedBuffer,A=t.typedBufferStride;for(let e=0;e<i;e++){const t=e*b,r=e*A,i=y[r],E=y[r+1],S=y[r+2],w=y[r+3];T[t]=n*i+l*E+h*S+v*w,T[t+1]=o*i+c*E+f*S+g*w,T[t+2]=a*i+d*E+m*S+_*w,T[t+3]=s*i+u*E+p*S+x*w}}},Symbol.toStringTag,{value:"Module"}))},78358:(e,t,r)=>{function i(e,t){n(e.typedBuffer,t,e.typedBufferStride)}function n(e,t,r=4){const i=t.typedBuffer,n=t.typedBufferStride,o=t.count;let a=0,s=0;for(let t=0;t<o;++t)e[a]=i[s],e[a+1]=i[s+1],e[a+2]=i[s+2],e[a+3]=i[s+3],a+=r,s+=n}function o(e,t,r,i,n,o){const a=e.typedBuffer,s=e.typedBufferStride,l=o?.count??e.count;let c=(o?.dstIndex??0)*s;for(let e=0;e<l;++e)a[c]=t,a[c+1]=r,a[c+2]=i,a[c+3]=n,c+=s}r.d(t,{a:()=>n,c:()=>i,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,copy:n,copyView:i,fill:o},Symbol.toStringTag,{value:"Module"}))},4341:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(26390);class n{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},46140:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(49186);let n=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[n,o]=t.split("."),a=/^\s*\d+\s*$/;if(!n?.match||!a.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!a.test(o))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const s=parseInt(n,10),l=parseInt(o,10);return new e(s,l,r)}}},61473:(e,t,r)=>{function i(e){return e=e||globalThis.location.hostname,c.some((t=>null!=e?.match(t)))}function n(e,t){return e&&(t=t||globalThis.location.hostname)?null!=t.match(o)||null!=t.match(s)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(a)||null!=t.match(l)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e}r.d(t,{EM:()=>n,b5:()=>i});const o=/^devext\.arcgis\.com$/,a=/^qaext\.arcgis\.com$/,s=/^[\w-]*\.mapsdevext\.arcgis\.com$/,l=/^[\w-]*\.mapsqa\.arcgis\.com$/,c=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,o,a,/^jsapps\.esri\.com$/,s,l]},11964:(e,t,r)=>{r.d(t,{Cr:()=>c,H6:()=>h,_I:()=>u,kb:()=>d,vt:()=>l});var i=r(34727),n=r(4341),o=r(38954),a=r(51850),s=r(32114);function l(e){return e?{origin:(0,a.o8)(e.origin),vector:(0,a.o8)(e.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function c(e,t,r=l()){return(0,o.c)(r.origin,e),(0,o.f)(r.vector,t,e),r}function d(e,t){const r=(0,o.f)(s.rq.get(),t,e.origin),n=(0,o.m)(e.vector,r),a=(0,o.m)(e.vector,e.vector),l=(0,i.qE)(n/a,0,1),c=(0,o.f)(s.rq.get(),(0,o.j)(s.rq.get(),e.vector,l),r);return(0,o.m)(c,c)}function u(e,t,r){return h(e,t,0,1,r)}function h(e,t,r,n,a){const{vector:l,origin:c}=e,d=(0,o.f)(s.rq.get(),t,c),u=(0,o.m)(l,d)/(0,o.q)(l);return(0,o.j)(a,l,(0,i.qE)(u,r,n)),(0,o.g)(a,a,e.origin)}(0,a.vt)(),(0,a.vt)(),new n.I((()=>l()))},71351:(e,t,r)=>{r.d(t,{Cr:()=>d,LV:()=>c,kb:()=>u,oC:()=>h,vt:()=>s}),r(4576);var i=r(4341),n=r(38954),o=r(51850),a=r(32114);function s(e){return e?l((0,o.o8)(e.origin),(0,o.o8)(e.direction)):l((0,o.vt)(),(0,o.vt)())}function l(e,t){return{origin:e,direction:t}}function c(e,t){const r=f.get();return r.origin=e,r.direction=t,r}function d(e,t,r=s()){return(0,n.c)(r.origin,e),(0,n.f)(r.direction,t,e),r}function u(e,t){const r=(0,n.b)(a.rq.get(),(0,n.n)(a.rq.get(),e.direction),(0,n.f)(a.rq.get(),t,e.origin));return(0,n.m)(r,r)}function h(e,t,r){const i=(0,n.m)(e.direction,(0,n.f)(r,t,e.origin));return(0,n.g)(r,e.origin,(0,n.j)(r,e.direction,i)),r}const f=new i.I((()=>s()));(0,o.vt)()},21015:(e,t,r)=>{r.d(t,{R:()=>l});var i=r(78888),n=r(60999),o=r(49186),a=r(74887),s=r(84952);class l{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,s.DB)(e)?((0,a.Te)(t),(0,s.lJ)(e)):this._load("binary",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,i.A)(t,{responseType:c[e]})).data;const s=await(0,n.Ke)(this._streamDataRequester.request(t,e,r));if(!0===s.ok)return s.value;throw(0,a.QP)(s.error),new o.A("",`Request for resource failed: ${s.error}`)}}const c={image:"image",binary:"array-buffer",json:"json","image+type":void 0}},84498:(e,t,r)=>{r.d(t,{x:()=>a});var i=r(34275),n=r(97146),o=r(63907);function a(e,t){switch(t){case o.WR.TRIANGLES:return"number"==typeof(r=e)?(0,n.tM)(r):(0,i.mg)(r)?new Uint16Array(r):r;case o.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,i=(0,n.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(i[e++]=t,i[e++]=t+1,i[e++]=t+2):(i[e++]=t+1,i[e++]=t,i[e++]=t+2)}else{let t=0;for(let n=0;n<r;n+=1)n%2==0?(i[t++]=e[n],i[t++]=e[n+1],i[t++]=e[n+2]):(i[t++]=e[n+1],i[t++]=e[n],i[t++]=e[n+2])}return i}(e);case o.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,i=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)i[e++]=0,i[e++]=t+1,i[e++]=t+2;return i}const n=e[0];let o=e[1],a=0;for(let t=0;t<r;++t){const r=e[t+2];i[a++]=n,i[a++]=o,i[a++]=r,o=r}return i}(e)}var r}},51530:(e,t,r)=>{r.d(t,{KB:()=>s,Xi:()=>o,pn:()=>l,x3:()=>a});var i=r(44208),n=r(89192);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=n.JS.KTX2_ENCODING}}function a(e){return"encoded-mesh-texture"===e?.type}async function s(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function l(e,t){if(t===n.JS.KTX2_ENCODING)return new o(e);const r=new Blob([e],{type:t}),a=URL.createObjectURL(r),s=new Image;if((0,i.A)("esri-iPhone"))return new Promise(((e,t)=>{const r=()=>{n(),e(s)},i=e=>{n(),t(e)},n=()=>{URL.revokeObjectURL(a),s.removeEventListener("load",r),s.removeEventListener("error",i)};s.addEventListener("load",r),s.addEventListener("error",i),s.src=a}));try{s.src=a,await s.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(a),s}},55268:(e,t,r)=>{r.d(t,{fetch:()=>wr});var i=r(61473),n=r(34727),o=r(77690),a=r(29242),s=r(58083),l=r(9093),c=r(48163),d=r(38954),u=r(51850),h=r(70328),f=r(11868),m=r(13030),p=r(73354),v=r(65686),g=r(43609),_=r(51737),x=r(78358),T=r(21015),b=r(84498),y=r(51530),A=r(88340);function E(e){if(null==e)return null;const t=null!=e.offset?e.offset:A.uY,r=null!=e.rotation?e.rotation:0,i=null!=e.scale?e.scale:A.Un,n=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),l=(0,a.fA)(i[0],0,0,0,i[1],0,0,0,1),c=(0,a.vt)();return(0,o.lw)(c,s,l),(0,o.lw)(c,n,c),c}class S{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class w{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new S,this.numberOfVertices=0}}var M=r(78888),C=r(60999),O=r(86805),I=r(49186),R=r(53966);class N{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get(e,t){return this._outer.get(e)?.get(t)}set(e,t,r){const i=this._outer.get(e);i?i.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}forEach(e){this._outer.forEach(((t,r)=>e(t,r)))}forAll(e){for(const t of this._outer.values())for(const r of t.values())e(r)}}var P=r(74887),L=r(46140),H=r(97146);async function D(e,t){const{data:r}=await(0,M.A)(e,{responseType:"image",...t});return r}var B=r(46610),F=r(89192),z=r(34275);function V(e){if(e.length<z.y9)return Array.from(e);if((0,z.cy)(e))return Float64Array.from(e);if(!("BYTES_PER_ELEMENT"in e))return Array.from(e);switch(e.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(e);case 2:return(0,z.jq)(e)?Uint16Array.from(e):Int16Array.from(e);case 4:return Float32Array.from(e);default:return Float64Array.from(e)}}var G=r(3694),U=r(620);class W{constructor(e,t,r){this.primitiveIndices=e,this._numIndexPerPrimitive=t,this.position=r,this._children=void 0,(0,U.vA)(e.length>=1),(0,U.vA)(3===r.size||4===r.size);const{data:i,size:n,indices:o}=r;(0,U.vA)(o.length%this._numIndexPerPrimitive==0),(0,U.vA)(o.length>=e.length*this._numIndexPerPrimitive);const a=e.length;let s=n*o[this._numIndexPerPrimitive*e[0]];j.clear(),j.push(s);const l=(0,u.fA)(i[s],i[s+1],i[s+2]),c=(0,u.o8)(l);for(let t=0;t<a;++t){const r=this._numIndexPerPrimitive*e[t];for(let e=0;e<this._numIndexPerPrimitive;++e){s=n*o[r+e],j.push(s);let t=i[s];l[0]=Math.min(t,l[0]),c[0]=Math.max(t,c[0]),t=i[s+1],l[1]=Math.min(t,l[1]),c[1]=Math.max(t,c[1]),t=i[s+2],l[2]=Math.min(t,l[2]),c[2]=Math.max(t,c[2])}}this.bbMin=l,this.bbMax=c;const h=(0,d.o)((0,u.vt)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(c[0]-l[0],c[1]-l[1]),c[2]-l[2]);let f=this.radius*this.radius;for(let e=0;e<j.length;++e){s=j.at(e);const t=i[s]-h[0],r=i[s+1]-h[1],n=i[s+2]-h[2],o=t*t+r*r+n*n;if(o<=f)continue;const a=Math.sqrt(o),l=.5*(a-this.radius);this.radius=this.radius+l,f=this.radius*this.radius;const c=l/a;h[0]+=t*c,h[1]+=r*c,h[2]+=n*c}this.center=h,j.clear()}getChildren(){if(this._children||(0,d.a)(this.bbMin,this.bbMax)<=1)return this._children;const e=(0,d.o)((0,u.vt)(),this.bbMin,this.bbMax,.5),t=this.primitiveIndices.length,r=new Uint8Array(t),i=new Array(8);for(let e=0;e<8;++e)i[e]=0;const{data:n,size:o,indices:a}=this.position;for(let s=0;s<t;++s){let t=0;const l=this._numIndexPerPrimitive*this.primitiveIndices[s];let c=o*a[l],d=n[c],u=n[c+1],h=n[c+2];for(let e=1;e<this._numIndexPerPrimitive;++e){c=o*a[l+e];const t=n[c],r=n[c+1],i=n[c+2];t<d&&(d=t),r<u&&(u=r),i<h&&(h=i)}d<e[0]&&(t|=1),u<e[1]&&(t|=2),h<e[2]&&(t|=4),r[s]=t,++i[t]}let s=0;for(let e=0;e<8;++e)i[e]>0&&++s;if(s<2)return;const l=new Array(8);for(let e=0;e<8;++e)l[e]=i[e]>0?new Uint32Array(i[e]):void 0;for(let e=0;e<8;++e)i[e]=0;for(let e=0;e<t;++e){const t=r[e];l[t][i[t]++]=this.primitiveIndices[e]}this._children=new Array;for(let e=0;e<8;++e)void 0!==l[e]&&this._children.push(new W(l[e],this._numIndexPerPrimitive,this.position));return this._children}static prune(){j.prune()}}const j=new G.A({deallocator:null});var q=r(69720),k=r(96672),$=r(4341),Y=r(11964);function X(e,t,r){return(0,d.f)(Z,t,e),(0,d.f)(J,r,e),.5*(0,d.l)((0,d.b)(Z,Z,J))}r(32114),new $.I(Y.vt),new $.I((()=>{return e?{p0:(0,u.o8)(e.p0),p1:(0,u.o8)(e.p1),p2:(0,u.o8)(e.p2)}:{p0:(0,u.vt)(),p1:(0,u.vt)(),p2:(0,u.vt)()};var e}));const Z=(0,u.vt)(),J=(0,u.vt)(),K=(0,u.vt)(),Q=(0,u.vt)(),ee=(0,u.vt)(),te=(0,u.vt)();var re=r(24326);class ie{constructor(e){this.channel=e,this.id=(0,re.c)()}}var ne=r(46540);r(28449),(0,u.vt)(),new Float32Array(6);class oe extends q.J{constructor(e,t,r=null,i=k.X.Mesh,n=null,o=-1){super(),this.material=e,this.mapPositions=r,this.type=i,this.objectAndLayerIdColor=n,this.edgeIndicesLength=o,this.visible=!0,this._attributes=new Map,this._boundingInfo=null;for(const[e,r]of t)this._attributes.set(e,{...r,indices:(0,H.Dg)(r.indices)}),e===ne.r.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._attributes.get(e).indices.length:this.edgeIndicesLength)}instantiate(e={}){const t=new oe(e.material||this.material,[],this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._attributes.forEach(((e,r)=>{e.exclusive=!1,t._attributes.set(r,e)})),t._boundingInfo=this._boundingInfo,t.transformation=e.transformation||this.transformation,t}get attributes(){return this._attributes}getMutableAttribute(e){let t=this._attributes.get(e);return t&&!t.exclusive&&(t={...t,exclusive:!0,data:V(t.data)},this._attributes.set(e,t)),t}setAttributeData(e,t){const r=this._attributes.get(e);r&&this._attributes.set(e,{...r,exclusive:!0,data:t})}get indexCount(){const e=this._attributes.values().next().value.indices;return e?.length??0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(e){return!!(this.type===k.X.Mesh?this._computeAttachmentOriginTriangles(e):this.type===k.X.Line?this._computeAttachmentOriginLines(e):this._computeAttachmentOriginPoints(e))&&(null!=this._transformation&&(0,d.h)(e,e,this._transformation),!0)}_computeAttachmentOriginTriangles(e){return function(e,t){if(!e)return!1;const{size:r,data:i,indices:n}=e;(0,d.s)(t,0,0,0),(0,d.s)(te,0,0,0);let o=0,a=0;for(let e=0;e<n.length-2;e+=3){const s=n[e]*r,l=n[e+1]*r,c=n[e+2]*r;(0,d.s)(K,i[s],i[s+1],i[s+2]),(0,d.s)(Q,i[l],i[l+1],i[l+2]),(0,d.s)(ee,i[c],i[c+1],i[c+2]);const u=X(K,Q,ee);u?((0,d.g)(K,K,Q),(0,d.g)(K,K,ee),(0,d.j)(K,K,1/3*u),(0,d.g)(t,t,K),o+=u):((0,d.g)(te,te,K),(0,d.g)(te,te,Q),(0,d.g)(te,te,ee),a+=3)}return!(0===a&&0===o||(0!==o?((0,d.j)(t,t,1/o),0):0===a||((0,d.j)(t,te,1/a),0)))}(this.attributes.get(ne.r.POSITION),e)}_computeAttachmentOriginLines(e){const t=this.attributes.get(ne.r.POSITION);return function(e,t,r){if(!e)return!1;(0,d.s)(r,0,0,0),(0,d.s)(te,0,0,0);let i=0,n=0;const{size:o,data:a,indices:s}=e,l=s.length-1,c=l+(t?2:0);for(let e=0;e<c;e+=2){const t=e<l?e+1:0,c=s[e<l?e:l]*o,u=s[t]*o;K[0]=a[c],K[1]=a[c+1],K[2]=a[c+2],Q[0]=a[u],Q[1]=a[u+1],Q[2]=a[u+2],(0,d.j)(K,(0,d.g)(K,K,Q),.5);const h=(0,d.F)(K,Q);h>0?((0,d.g)(r,r,(0,d.j)(K,K,h)),i+=h):0===i&&((0,d.g)(te,te,K),n++)}return 0!==i?((0,d.j)(r,r,1/i),!0):0!==n&&((0,d.j)(r,te,1/n),!0)}(t,function(e,t){return!(!("isClosed"in e)||!e.isClosed)&&t.indices.length>2}(this.material.parameters,t),e)}_computeAttachmentOriginPoints(e){return function(e,t){if(!e)return!1;const{size:r,data:i,indices:n}=e;(0,d.s)(t,0,0,0);let o=-1,a=0;for(let e=0;e<n.length;e++){const s=n[e]*r;o!==s&&(t[0]+=i[s],t[1]+=i[s+1],t[2]+=i[s+2],a++),o=s}return a>1&&(0,d.j)(t,t,1/a),a>0}(this.attributes.get(ne.r.POSITION),e)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const e=this.attributes.get(ne.r.POSITION);if(!e||0===e.indices.length)return null;const t=this.type===k.X.Mesh?3:1;(0,U.vA)(e.indices.length%t==0,"Indexing error: "+e.indices.length+" not divisible by "+t);const r=(0,H.tM)(e.indices.length/t);return new W(r,t,e)}get transformation(){return this._transformation??l.zK}set transformation(e){this._transformation=e&&e!==l.zK?(0,l.o8)(e):null}addHighlight(){const e=new ie(F.Mg.Highlight);return this.highlights=function(e,t){return null==e&&(e=[]),e.push(t),e}(this.highlights,e),e}removeHighlight(e){this.highlights=function(e,t){if(null==e)return null;const r=e.filter((e=>e!==t));return 0===r.length?null:r}(this.highlights,e)}}var ae=r(44208),se=r(65529),le=r(97768),ce=r(84952),de=r(56058),ue=r(2741);let he;var fe,me;(me=fe||(fe={}))[me.ETC1_RGB=0]="ETC1_RGB",me[me.ETC2_RGBA=1]="ETC2_RGBA",me[me.BC1_RGB=2]="BC1_RGB",me[me.BC3_RGBA=3]="BC3_RGBA",me[me.BC4_R=4]="BC4_R",me[me.BC5_RG=5]="BC5_RG",me[me.BC7_M6_RGB=6]="BC7_M6_RGB",me[me.BC7_M5_RGBA=7]="BC7_M5_RGBA",me[me.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",me[me.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",me[me.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",me[me.ATC_RGB=11]="ATC_RGB",me[me.ATC_RGBA=12]="ATC_RGBA",me[me.FXT1_RGB=17]="FXT1_RGB",me[me.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",me[me.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",me[me.ETC2_EAC_R11=20]="ETC2_EAC_R11",me[me.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",me[me.RGBA32=13]="RGBA32",me[me.RGB565=14]="RGB565",me[me.BGR565=15]="BGR565",me[me.RGBA4444=16]="RGBA4444";var pe=r(63907),ve=r(21231),ge=r(42293);let _e=null,xe=null;async function Te(){return null==xe&&(he??=(async()=>{const e=await r.e(9321).then(r.bind(r,49321)),t=await e.default({locateFile:e=>(0,ue.s)(`esri/libs/basisu/${e}`)});return t.initializeBasis(),t})(),xe=he,_e=await xe),xe}function be(e,t,r,i,n){const o=(0,ge.IB)(t?pe.CQ.COMPRESSED_RGBA8_ETC2_EAC:pe.CQ.COMPRESSED_RGB8_ETC2),a=n&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(r*i*o*a)}function ye(e){return e.getNumImages()>=1&&!e.isUASTC()}function Ae(e){return e.getFaces()>=1&&e.isETC1S()}function Ee(e,t,r,i,n,o,a,s){const{compressedTextureETC:l,compressedTextureS3TC:c}=e.capabilities,[d,u]=l?i?[fe.ETC2_RGBA,pe.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[fe.ETC1_RGB,pe.CQ.COMPRESSED_RGB8_ETC2]:c?i?[fe.BC3_RGBA,pe.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT]:[fe.BC1_RGB,pe.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT]:[fe.RGBA32,pe.Ab.RGBA],h=t.hasMipmap?r:Math.min(1,r),f=[];for(let e=0;e<h;e++)f.push(new Uint8Array(a(e,d))),s(e,d,f[e]);return t.internalFormat=u,t.hasMipmap=f.length>1,t.samplingMode=t.hasMipmap?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.width=n,t.height=o,new ve.g(e,t,{type:"compressed",levels:f})}const Se=()=>R.A.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function we(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const Me=we("DXT1"),Ce=we("DXT3"),Oe=we("DXT5");function Ie(e,t,r){if(e instanceof ImageData)return Ie(Re(e),t,r);const i=document.createElement("canvas");return i.width=t,i.height=r,i.getContext("2d").drawImage(e,0,0,i.width,i.height),i}function Re(e){const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");if(null==r)throw new I.A("Failed to create 2d context from HTMLCanvasElement");return r.putImageData(e,0,0),t}var Ne,Pe,Le=r(67171);class He extends q.J{get parameters(){return this._parameters}constructor(e,t){super(),this._data=e,this.type=k.X.Texture,this._glTexture=null,this._loadingPromise=null,this._loadingController=null,this.events=new se.A,this._parameters={...Be,...t},this._startPreload(e)}dispose(){this.unload(),this._data=this.frameUpdate=void 0}_startPreload(e){null!=e&&(e instanceof HTMLVideoElement?(this.frameUpdate=t=>this._frameUpdate(e,t),this._startPreloadVideoElement(e)):e instanceof HTMLImageElement&&this._startPreloadImageElement(e))}_startPreloadVideoElement(e){if(!((0,ce.w8)(e.src)||"auto"===e.preload&&e.crossOrigin)){e.preload="auto",e.crossOrigin="anonymous";const t=!e.paused;if(e.src=e.src,t&&e.autoplay){const t=()=>{e.removeEventListener("canplay",t),e.play()};e.addEventListener("canplay",t)}}}_startPreloadImageElement(e){(0,ce.DB)(e.src)||(0,ce.w8)(e.src)||e.crossOrigin||(e.crossOrigin="anonymous",e.src=e.src)}_createDescriptor(e){const t=new Le.R;return t.wrapMode=this._parameters.wrap??pe.pF.REPEAT,t.flipped=!this._parameters.noUnpackFlip,t.samplingMode=this._parameters.mipmap?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.hasMipmap=!!this._parameters.mipmap,t.preMultiplyAlpha=!!this._parameters.preMultiplyAlpha,t.maxAnisotropy=this._parameters.maxAnisotropy??(this._parameters.mipmap?e.parameters.maxMaxAnisotropy:1),t}get glTexture(){return this._glTexture}get memoryEstimate(){return this._glTexture?.usedMemory||function(e,t){if(null==e)return 0;if((0,z.mw)(e)||(0,z.mg)(e))return t.encoding===F.JS.KTX2_ENCODING?function(e,t){if(null==_e)return e.byteLength;const r=new _e.KTX2File(new Uint8Array(e)),i=Ae(r)?be(r.getLevels(),r.getHasAlpha(),r.getWidth(),r.getHeight(),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):t.encoding===F.JS.BASIS_ENCODING?function(e,t){if(null==_e)return e.byteLength;const r=new _e.BasisFile(new Uint8Array(e)),i=ye(r)?be(r.getNumLevels(0),r.getHasAlpha(),r.getImageWidth(0,0),r.getImageHeight(0,0),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):e.byteLength;const{width:r,height:i}=e instanceof Image||e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement?De(e):t;return(t.mipmap?4/3:1)*r*i*(t.components||4)||0}(this._data,this._parameters)}load(e){if(this._glTexture)return this._glTexture;if(this._loadingPromise)return this._loadingPromise;const t=this._data;return null==t?(this._glTexture=new ve.g(e,this._createDescriptor(e),null),this._glTexture):(this._parameters.reloadable||(this._data=void 0),"string"==typeof t?this._loadFromURL(e,t):t instanceof Image?this._loadFromImageElement(e,t):t instanceof HTMLVideoElement?this._loadFromVideoElement(e,t):t instanceof ImageData||t instanceof HTMLCanvasElement?this._loadFromImage(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.DDS_ENCODING?this._loadFromDDSData(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.KTX2_ENCODING?this._loadFromKTX2(e,t):((0,z.mw)(t)||(0,z.mg)(t))&&this._parameters.encoding===F.JS.BASIS_ENCODING?this._loadFromBasis(e,t):(0,z.mg)(t)?this._loadFromPixelData(e,t):(0,z.mw)(t)?this._loadFromPixelData(e,new Uint8Array(t)):null)}_frameUpdate(e,t){return null==this._glTexture||e.readyState<Ne.HAVE_CURRENT_DATA||t===e.currentTime?t:(this._glTexture.setData(e),this._glTexture.descriptor.hasMipmap&&this._glTexture.generateMipmap(),this._parameters.updateCallback&&this._parameters.updateCallback(),e.currentTime)}_loadFromDDSData(e,t){return this._glTexture=function(e,t,r){const i=function(e,t){const r=new Int32Array(e,0,31);if(542327876!==r[0])return Se().error("Invalid magic number in DDS header"),null;if(!(4&r[20]))return Se().error("Unsupported format, must contain a FourCC code"),null;const i=r[21];let n,o;switch(i){case Me:n=8,o=pe.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Ce:n=16,o=pe.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Oe:n=16,o=pe.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return Se().error("Unsupported FourCC code:",function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(i)),null}let a=1,s=r[4],l=r[3];(3&s||3&l)&&(Se().warn("Rounding up compressed texture size to nearest multiple of 4."),s=s+3&-4,l=l+3&-4);const c=s,d=l;let u,h;131072&r[2]&&!1!==t&&(a=Math.max(1,r[7]));let f=r[1]+4;const m=[];for(let t=0;t<a;++t)h=(s+3>>2)*(l+3>>2)*n,u=new Uint8Array(e,f,h),m.push(u),f+=h,s=Math.max(1,s>>1),l=Math.max(1,l>>1);return{textureData:{type:"compressed",levels:m},internalFormat:o,width:c,height:d}}(r,t.hasMipmap??!1);if(null==i)throw new Error("DDS texture data is null");const{textureData:n,internalFormat:o,width:a,height:s}=i;return t.samplingMode=n.levels.length>1?pe.Cj.LINEAR_MIPMAP_LINEAR:pe.Cj.LINEAR,t.hasMipmap=n.levels.length>1,t.internalFormat=o,t.width=a,t.height=s,new ve.g(e,t,n)}(e,this._createDescriptor(e),t),this._glTexture}_loadFromKTX2(e,t){return this._loadAsync((()=>async function(e,t,r){null==_e&&(_e=await Te());const i=new _e.KTX2File(new Uint8Array(r));if(!Ae(i))return null;i.startTranscoding();const n=Ee(e,t,i.getLevels(),i.getHasAlpha(),i.getWidth(),i.getHeight(),((e,t)=>i.getImageTranscodedSizeInBytes(e,0,0,t)),((e,t,r)=>i.transcodeImage(r,e,0,0,t,0,-1,-1)));return i.close(),i.delete(),n}(e,this._createDescriptor(e),t).then((e=>(this._glTexture=e,e)))))}_loadFromBasis(e,t){return this._loadAsync((()=>async function(e,t,r){null==_e&&(_e=await Te());const i=new _e.BasisFile(new Uint8Array(r));if(!ye(i))return null;i.startTranscoding();const n=Ee(e,t,i.getNumLevels(0),i.getHasAlpha(),i.getImageWidth(0,0),i.getImageHeight(0,0),((e,t)=>i.getImageTranscodedSizeInBytes(0,e,t)),((e,t,r)=>i.transcodeImage(r,0,e,t,0,0)));return i.close(),i.delete(),n}(e,this._createDescriptor(e),t).then((e=>(this._glTexture=e,e)))))}_loadFromPixelData(e,t){(0,U.vA)(this._parameters.width>0&&this._parameters.height>0);const r=this._createDescriptor(e);return r.pixelFormat=1===this._parameters.components?pe.Ab.LUMINANCE:3===this._parameters.components?pe.Ab.RGB:pe.Ab.RGBA,r.width=this._parameters.width??0,r.height=this._parameters.height??0,this._glTexture=new ve.g(e,r,t),this._glTexture}_loadFromURL(e,t){return this._loadAsync((async r=>{const i=await D(t,{signal:r});return(0,P.Te)(r),this._loadFromImage(e,i)}))}_loadFromImageElement(e,t){return t.complete?this._loadFromImage(e,t):this._loadAsync((async r=>{const i=await(0,de.Sx)(t,t.src,!1,r);return(0,P.Te)(r),this._loadFromImage(e,i)}))}_loadFromVideoElement(e,t){return t.readyState>=Ne.HAVE_CURRENT_DATA?this._loadFromImage(e,t):this._loadFromVideoElementAsync(e,t)}_loadFromVideoElementAsync(e,t){return this._loadAsync((r=>new Promise(((i,n)=>{const o=()=>{t.removeEventListener("loadeddata",a),t.removeEventListener("error",s),(0,le.xt)(l)},a=()=>{t.readyState>=Ne.HAVE_CURRENT_DATA&&(o(),i(this._loadFromImage(e,t)))},s=e=>{o(),n(e||new I.A("Failed to load video"))};t.addEventListener("loadeddata",a),t.addEventListener("error",s);const l=(0,P.u7)(r,(()=>s((0,P.NK)())))}))))}_loadFromImage(e,t){let r=t;if(!(r instanceof HTMLVideoElement)){const{maxTextureSize:t}=e.parameters;r=this._parameters.downsampleUncompressed?function(e,t){let r=e.width*e.height;if(r<4096)return e instanceof ImageData?Re(e):e;let i=e.width,n=e.height;do{i=Math.ceil(i/2),n=Math.ceil(n/2),r=i*n}while(r>1048576||null!=t&&(i>t||n>t));return Ie(e,i,n)}(r,t):function(e,t){const r=Math.max(e.width,e.height);if(r<=t)return e;const i=t/r;return Ie(e,Math.round(e.width*i),Math.round(e.height*i))}(r,t)}const i=De(r);this._parameters.width=i.width,this._parameters.height=i.height;const n=this._createDescriptor(e);return n.pixelFormat=3===this._parameters.components?pe.Ab.RGB:pe.Ab.RGBA,n.width=i.width,n.height=i.height,this._glTexture=new ve.g(e,n,r),this._glTexture}_loadAsync(e){const t=new AbortController;this._loadingController=t;const r=e(t.signal);this._loadingPromise=r;const i=()=>{this._loadingController===t&&(this._loadingController=null),this._loadingPromise===r&&(this._loadingPromise=null)};return r.then(i,i),r}unload(){if(this._glTexture=(0,le.WD)(this._glTexture),null!=this._loadingController){const e=this._loadingController;this._loadingController=null,this._loadingPromise=null,e.abort()}this.events.emit("unloaded")}}function De(e){return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e}(Pe=Ne||(Ne={}))[Pe.HAVE_NOTHING=0]="HAVE_NOTHING",Pe[Pe.HAVE_METADATA=1]="HAVE_METADATA",Pe[Pe.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",Pe[Pe.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",Pe[Pe.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA";const Be={wrap:{s:pe.pF.REPEAT,t:pe.pF.REPEAT},mipmap:!0,noUnpackFlip:!1,preMultiplyAlpha:!1,downsampleUncompressed:!1};var Fe=r(24151),ze=r(1843),Ve=r(49255),Ge=r(96336),Ue=r(62602),We=r(59469),je=r(35093),qe=r(25634),ke=r(14903),$e=r(14327),Ye=r(90644);const Xe=(0,Ye.p3)(pe.dn.SRC_ALPHA,pe.dn.ONE,pe.dn.ONE_MINUS_SRC_ALPHA,pe.dn.ONE_MINUS_SRC_ALPHA),Ze=(0,Ye.p3)(pe.dn.ONE,pe.dn.ZERO,pe.dn.ONE,pe.dn.ONE_MINUS_SRC_ALPHA);function Je(e){switch(e){case $e.y.NONE:return Xe;case $e.y.ColorAlpha:return Ze;case $e.y.FrontFace:case $e.y.COUNT:return null}}const Ke={factor:-1,units:-2};function Qe(e){return e?Ke:null}function et(e,t=pe.MT.LESS){return e===$e.y.NONE||e===$e.y.FrontFace?t:pe.MT.LEQUAL}function tt(e){return e===$e.y.ColorAlpha?{buffers:[pe.Nm.COLOR_ATTACHMENT0,pe.Nm.COLOR_ATTACHMENT1]}:null}class rt{constructor(e=!1,t=!0){this.isVerticalRay=e,this.normalRequired=t}}const it=(0,h.vt)();function nt(e,t,r,i,n,o){if(!e.visible)return;const a=(0,d.z)(gt,i,r),s=(e,t,r)=>{o(e,r,t,!1)},l=new rt(!1,t.options.normalRequired);if(e.boundingInfo){(0,U.vA)(e.type===k.X.Mesh);const i=t.tolerance;at(e.boundingInfo,r,a,i,n,l,s)}else{const t=e.attributes.get(ne.r.POSITION),i=t.indices;!function(e,t,r,i,n,o,a,s,l,c){const u=t,h=_t,f=Math.abs(u[0]),m=Math.abs(u[1]),p=Math.abs(u[2]),v=f>=m?f>=p?0:2:m>=p?1:2,g=v,_=u[g]<0?2:1,x=(v+_)%3,T=(v+(3-_))%3,b=u[x]/u[g],y=u[T]/u[g],A=1/u[g],E=lt,S=ct,w=dt,{normalRequired:M}=l;for(let t=r;t<i;++t){const r=3*t,i=a*n[r];(0,d.s)(h[0],o[i+0],o[i+1],o[i+2]);const l=a*n[r+1];(0,d.s)(h[1],o[l+0],o[l+1],o[l+2]);const u=a*n[r+2];(0,d.s)(h[2],o[u+0],o[u+1],o[u+2]),s&&((0,d.c)(h[0],s.applyToVertex(h[0][0],h[0][1],h[0][2],t)),(0,d.c)(h[1],s.applyToVertex(h[1][0],h[1][1],h[1][2],t)),(0,d.c)(h[2],s.applyToVertex(h[2][0],h[2][1],h[2][2],t))),(0,d.z)(E,h[0],e),(0,d.z)(S,h[1],e),(0,d.z)(w,h[2],e);const f=E[x]-b*E[g],m=E[T]-y*E[g],p=S[x]-b*S[g],v=S[T]-y*S[g],_=w[x]-b*w[g],C=w[T]-y*w[g],O=_*v-C*p,I=f*C-m*_,R=p*m-v*f;if((O<0||I<0||R<0)&&(O>0||I>0||R>0))continue;const N=O+I+R;if(0===N)continue;const P=O*(A*E[g])+I*(A*S[g])+R*(A*w[g]);if(P*Math.sign(N)<0)continue;const L=P/N;L>=0&&c(L,t,M?ht(h):null)}}(r,a,0,i.length/3,i,t.data,t.stride,n,l,s)}}const ot=(0,u.vt)();function at(e,t,r,i,n,o,a){if(null==e)return;const s=function(e,t){return(0,d.s)(t,1/e[0],1/e[1],1/e[2])}(r,ot);if((0,h.Ne)(it,e.bbMin),(0,h.vI)(it,e.bbMax),null!=n&&n.applyToAabb(it),function(e,t,r,i){return function(e,t,r,i,n){const o=(e[0]-i-t[0])*r[0],a=(e[3]+i-t[0])*r[0];let s=Math.min(o,a),l=Math.max(o,a);const c=(e[1]-i-t[1])*r[1],d=(e[4]+i-t[1])*r[1];if(l=Math.min(l,Math.max(c,d)),l<0)return!1;if(s=Math.max(s,Math.min(c,d)),s>l)return!1;const u=(e[2]-i-t[2])*r[2],h=(e[5]+i-t[2])*r[2];return l=Math.min(l,Math.max(u,h)),!(l<0)&&(s=Math.max(s,Math.min(u,h)),!(s>l)&&s<1/0)}(e,t,r,i)}(it,t,s,i)){const{primitiveIndices:s,position:l}=e,c=s?s.length:l.indices.length/3;if(c>pt){const s=e.getChildren();if(void 0!==s){for(const e of s)at(e,t,r,i,n,o,a);return}}!function(e,t,r,i,n,o,a,s,l,c,d){const u=e[0],h=e[1],f=e[2],m=t[0],p=t[1],v=t[2],{normalRequired:g}=c;for(let e=0;e<i;++e){const t=s[e],r=3*t,i=a*n[r];let c=o[i],_=o[i+1],x=o[i+2];const T=a*n[r+1];let b=o[T],y=o[T+1],A=o[T+2];const E=a*n[r+2];let S=o[E],w=o[E+1],M=o[E+2];null!=l&&([c,_,x]=l.applyToVertex(c,_,x,e),[b,y,A]=l.applyToVertex(b,y,A,e),[S,w,M]=l.applyToVertex(S,w,M,e));const C=b-c,O=y-_,I=A-x,R=S-c,N=w-_,P=M-x,L=p*P-N*v,H=v*R-P*m,D=m*N-R*p,B=C*L+O*H+I*D;if(Math.abs(B)<=vt)continue;const F=u-c,z=h-_,V=f-x,G=F*L+z*H+V*D;if(B>0){if(G<0||G>B)continue}else if(G>0||G<B)continue;const U=z*I-O*V,W=V*C-I*F,j=F*O-C*z,q=m*U+p*W+v*j;if(B>0){if(q<0||G+q>B)continue}else if(q>0||G+q<B)continue;const k=(R*U+N*W+P*j)/B;k>=0&&d(k,t,g?ut(C,O,I,R,N,P,st):null)}}(t,r,0,c,l.indices,l.data,l.stride,s,n,o,a)}}const st=(0,u.vt)();const lt=(0,u.vt)(),ct=(0,u.vt)(),dt=(0,u.vt)();function ut(e,t,r,i,n,o,a){return(0,d.s)(ft,e,t,r),(0,d.s)(mt,i,n,o),(0,d.b)(a,ft,mt),(0,d.n)(a,a),a}function ht(e){return(0,d.z)(ft,e[1],e[0]),(0,d.z)(mt,e[2],e[0]),(0,d.b)(st,ft,mt),(0,d.n)(st,st),st}const ft=(0,u.vt)(),mt=(0,u.vt)(),pt=1e3,vt=1e-7,gt=(0,u.vt)(),_t=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()];var xt,Tt;(Tt=xt||(xt={}))[Tt.INTEGRATED_MESH=0]="INTEGRATED_MESH",Tt[Tt.OPAQUE_TERRAIN=1]="OPAQUE_TERRAIN",Tt[Tt.OPAQUE_MATERIAL=2]="OPAQUE_MATERIAL",Tt[Tt.OPAQUE_NO_SSAO_DEPTH=3]="OPAQUE_NO_SSAO_DEPTH",Tt[Tt.TRANSPARENT_MATERIAL=4]="TRANSPARENT_MATERIAL",Tt[Tt.TRANSPARENT_NO_SSAO_DEPTH=5]="TRANSPARENT_NO_SSAO_DEPTH",Tt[Tt.TRANSPARENT_TERRAIN=6]="TRANSPARENT_TERRAIN",Tt[Tt.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL=7]="TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL",Tt[Tt.OCCLUDED_TERRAIN=8]="OCCLUDED_TERRAIN",Tt[Tt.OCCLUDER_MATERIAL=9]="OCCLUDER_MATERIAL",Tt[Tt.TRANSPARENT_OCCLUDER_MATERIAL=10]="TRANSPARENT_OCCLUDER_MATERIAL",Tt[Tt.OCCLUSION_PIXELS=11]="OCCLUSION_PIXELS",Tt[Tt.OPAQUE_ENVIRONMENT=12]="OPAQUE_ENVIRONMENT",Tt[Tt.TRANSPARENT_ENVIRONMENT=13]="TRANSPARENT_ENVIRONMENT",Tt[Tt.HUD_MATERIAL=14]="HUD_MATERIAL",Tt[Tt.LABEL_MATERIAL=15]="LABEL_MATERIAL",Tt[Tt.LINE_CALLOUTS=16]="LINE_CALLOUTS",Tt[Tt.LINE_CALLOUTS_HUD_DEPTH=17]="LINE_CALLOUTS_HUD_DEPTH",Tt[Tt.DRAPED_MATERIAL=18]="DRAPED_MATERIAL",Tt[Tt.DRAPED_WATER=19]="DRAPED_WATER",Tt[Tt.VOXEL=20]="VOXEL",Tt[Tt.MAX_SLOTS=21]="MAX_SLOTS";var bt=r(76412),yt=r(57005);const At=new class{constructor(e=0){this.offset=e,this.sphere=(0,bt.c)(),this.tmpVertex=(0,u.vt)()}applyToVertex(e,t,r){const i=this.objectTransform.transform,n=(0,d.s)(Et,e,t,r),o=(0,d.h)(n,n,i),a=this.offset/(0,d.l)(o);(0,d.r)(o,o,o,a);const s=this.objectTransform.inverse;return(0,d.h)(this.tmpVertex,o,s),this.tmpVertex}applyToMinMax(e,t){const r=this.offset/(0,d.l)(e);(0,d.r)(e,e,e,r);const i=this.offset/(0,d.l)(t);(0,d.r)(t,t,t,i)}applyToAabb(e){const t=this.offset/Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]+=e[0]*t,e[1]+=e[1]*t,e[2]+=e[2]*t;const r=this.offset/Math.sqrt(e[3]*e[3]+e[4]*e[4]+e[5]*e[5]);return e[3]+=e[3]*r,e[4]+=e[4]*r,e[5]+=e[5]*r,e}applyToBoundingSphere(e){const t=(0,d.l)((0,bt.g)(e)),r=this.offset/t;return(0,d.r)((0,bt.g)(this.sphere),(0,bt.g)(e),(0,bt.g)(e),r),this.sphere[3]=e[3]+e[3]*this.offset/t,this.sphere}};new class{constructor(e=0){this.componentLocalOriginLength=0,this._totalOffset=0,this._offset=0,this._tmpVertex=(0,u.vt)(),this._tmpMbs=(0,bt.c)(),this._tmpObb=new yt.ab,this._resetOffset(e)}_resetOffset(e){this._offset=e,this._totalOffset=e}set offset(e){this._resetOffset(e)}get offset(){return this._offset}set componentOffset(e){this._totalOffset=this._offset+e}set localOrigin(e){this.componentLocalOriginLength=(0,d.l)(e)}applyToVertex(e,t,r){const i=(0,d.s)(Et,e,t,r),n=(0,d.s)(St,e,t,r+this.componentLocalOriginLength),o=this._totalOffset/(0,d.l)(n);return(0,d.r)(this._tmpVertex,i,n,o),this._tmpVertex}applyToAabb(e){const t=this.componentLocalOriginLength,r=e[0],i=e[1],n=e[2]+t,o=e[3],a=e[4],s=e[5]+t,l=Math.abs(r),c=Math.abs(i),d=Math.abs(n),u=Math.abs(o),h=Math.abs(a),f=Math.abs(s),m=.5*(1+Math.sign(r*o))*Math.min(l,u),p=.5*(1+Math.sign(i*a))*Math.min(c,h),v=.5*(1+Math.sign(n*s))*Math.min(d,f),g=Math.max(l,u),_=Math.max(c,h),x=Math.max(d,f),T=Math.sqrt(m*m+p*p+v*v),b=Math.sign(l+r),y=Math.sign(c+i),A=Math.sign(d+n),E=Math.sign(u+o),S=Math.sign(h+a),w=Math.sign(f+s),M=this._totalOffset;if(T<M)return e[0]-=(1-b)*M,e[1]-=(1-y)*M,e[2]-=(1-A)*M,e[3]+=E*M,e[4]+=S*M,e[5]+=w*M,e;const C=M/Math.sqrt(g*g+_*_+x*x),O=M/T,I=O-C,R=-I;return e[0]+=r*(b*R+O),e[1]+=i*(y*R+O),e[2]+=n*(A*R+O),e[3]+=o*(E*I+C),e[4]+=a*(S*I+C),e[5]+=s*(w*I+C),e}applyToMbs(e){const t=(0,d.l)((0,bt.g)(e)),r=this._totalOffset/t;return(0,d.r)((0,bt.g)(this._tmpMbs),(0,bt.g)(e),(0,bt.g)(e),r),this._tmpMbs[3]=e[3]+e[3]*this._totalOffset/t,this._tmpMbs}applyToObb(e){return(0,yt.gm)(e,this._totalOffset,this._totalOffset,Fe.RT.Global,this._tmpObb),this._tmpObb}},new class{constructor(e=0){this.offset=e,this.tmpVertex=(0,u.vt)()}applyToVertex(e,t,r){const i=(0,d.s)(Et,e,t,r),n=(0,d.g)(St,i,this.localOrigin),o=this.offset/(0,d.l)(n);return(0,d.r)(this.tmpVertex,i,n,o),this.tmpVertex}applyToAabb(e){const t=wt,r=Mt,i=Ct;for(let n=0;n<3;++n)t[n]=e[0+n]+this.localOrigin[n],r[n]=e[3+n]+this.localOrigin[n],i[n]=t[n];const n=this.applyToVertex(t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=n[t],e[t+3]=n[t];const o=t=>{const r=this.applyToVertex(t[0],t[1],t[2]);for(let t=0;t<3;++t)e[t]=Math.min(e[t],r[t]),e[t+3]=Math.max(e[t+3],r[t])};for(let e=1;e<8;++e){for(let n=0;n<3;++n)i[n]=e&1<<n?r[n]:t[n];o(i)}let a=0;for(let e=0;e<3;++e)t[e]*r[e]<0&&(a|=1<<e);if(0!==a&&7!==a)for(let e=0;e<8;++e)if(!(a&e)){for(let n=0;n<3;++n)i[n]=a&1<<n?0:e&1<<n?t[n]:r[n];o(i)}for(let t=0;t<3;++t)e[t]-=this.localOrigin[t],e[t+3]-=this.localOrigin[t];return e}};const Et=(0,u.vt)(),St=(0,u.vt)(),wt=(0,u.vt)(),Mt=(0,u.vt)(),Ct=(0,u.vt)();function Ot(e,t,r){const{data:i,indices:n}=e,o=t.typedBuffer,a=t.typedBufferStride,s=n.length;r*=a;for(let e=0;e<s;++e){const t=2*n[e];o[r]=i[t],o[r+1]=i[t+1],r+=a}}function It(e,t,r,i){const{data:n,indices:o}=e,a=t.typedBuffer,s=t.typedBufferStride,l=o.length;if(r*=s,null==i||1===i)for(let e=0;e<l;++e){const t=3*o[e];a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],r+=s}else for(let e=0;e<l;++e){const t=3*o[e];for(let e=0;e<i;++e)a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],r+=s}}function Rt(e,t,r,i=1){const{data:n,indices:o}=e,a=t.typedBuffer,s=t.typedBufferStride,l=o.length;if(r*=s,1===i)for(let e=0;e<l;++e){const t=4*o[e];a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],a[r+3]=n[t+3],r+=s}else for(let e=0;e<l;++e){const t=4*o[e];for(let e=0;e<i;++e)a[r]=n[t],a[r+1]=n[t+1],a[r+2]=n[t+2],a[r+3]=n[t+3],r+=s}}function Nt(e,t,r,i,n=1){const o=t.typedBuffer,a=t.typedBufferStride;if(i*=a,1===n)for(let t=0;t<r;++t)o[i]=e[0],o[i+1]=e[1],o[i+2]=e[2],o[i+3]=e[3],i+=a;else for(let t=0;t<r;++t)for(let t=0;t<n;++t)o[i]=e[0],o[i+1]=e[1],o[i+2]=e[2],o[i+3]=e[3],i+=a}function Pt(e,t,r,i,n,o){switch(e){case ne.r.POSITION:{(0,U.vA)(3===t.size);const i=n.getField(e,m.xs);(0,U.vA)(!!i,`No buffer view for ${e}`),i&&function(e,t,r,i,n=1){if(!t)return void It(e,r,i,n);const{data:o,indices:a}=e,l=r.typedBuffer,c=r.typedBufferStride,d=a.length,u=t[0],h=t[1],f=t[2],m=t[4],p=t[5],v=t[6],g=t[8],_=t[9],x=t[10],T=t[12],b=t[13],y=t[14];i*=c;let A=0,E=0,S=0;const w=(0,s.tZ)(t)?e=>{A=o[e]+T,E=o[e+1]+b,S=o[e+2]+y}:e=>{const t=o[e],r=o[e+1],i=o[e+2];A=u*t+m*r+g*i+T,E=h*t+p*r+_*i+b,S=f*t+v*r+x*i+y};if(1===n)for(let e=0;e<d;++e)w(3*a[e]),l[i]=A,l[i+1]=E,l[i+2]=S,i+=c;else for(let e=0;e<d;++e){w(3*a[e]);for(let e=0;e<n;++e)l[i]=A,l[i+1]=E,l[i+2]=S,i+=c}}(t,r,i,o);break}case ne.r.NORMAL:{(0,U.vA)(3===t.size);const r=n.getField(e,m.xs);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&function(e,t,r,i,n=1){if(!t)return void It(e,r,i,n);const{data:o,indices:a}=e,l=t,c=r.typedBuffer,d=r.typedBufferStride,u=a.length,h=l[0],f=l[1],m=l[2],p=l[4],v=l[5],g=l[6],_=l[8],x=l[9],T=l[10],b=!(0,s.ut)(l),y=1e-6,A=1-y;i*=d;let E=0,S=0,w=0;const M=(0,s.tZ)(l)?e=>{E=o[e],S=o[e+1],w=o[e+2]}:e=>{const t=o[e],r=o[e+1],i=o[e+2];E=h*t+p*r+_*i,S=f*t+v*r+x*i,w=m*t+g*r+T*i};if(1===n)if(b)for(let e=0;e<u;++e){M(3*a[e]);const t=E*E+S*S+w*w;if(t<A&&t>y){const e=1/Math.sqrt(t);c[i]=E*e,c[i+1]=S*e,c[i+2]=w*e}else c[i]=E,c[i+1]=S,c[i+2]=w;i+=d}else for(let e=0;e<u;++e)M(3*a[e]),c[i]=E,c[i+1]=S,c[i+2]=w,i+=d;else for(let e=0;e<u;++e){if(M(3*a[e]),b){const e=E*E+S*S+w*w;if(e<A&&e>y){const t=1/Math.sqrt(e);E*=t,S*=t,w*=t}}for(let e=0;e<n;++e)c[i]=E,c[i+1]=S,c[i+2]=w,i+=d}}(t,i,r,o);break}case ne.r.NORMALCOMPRESSED:{(0,U.vA)(2===t.size);const r=n.getField(e,m.mJ);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Ot(t,r,o);break}case ne.r.UV0:{(0,U.vA)(2===t.size);const r=n.getField(e,m.gH);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Ot(t,r,o);break}case ne.r.COLOR:case ne.r.SYMBOLCOLOR:{const r=n.getField(e,m.XP);(0,U.vA)(!!r,`No buffer view for ${e}`),(0,U.vA)(3===t.size||4===t.size),!r||3!==t.size&&4!==t.size||function(e,t,r,i,n=1){const{data:o,indices:a}=e,s=r.typedBuffer,l=r.typedBufferStride,c=a.length;if(i*=l,t!==o.length||4!==t)if(1!==n)if(4!==t)for(let e=0;e<c;++e){const t=3*a[e];for(let e=0;e<n;++e)s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=255,i+=l}else for(let e=0;e<c;++e){const t=4*a[e];for(let e=0;e<n;++e)s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=o[t+3],i+=l}else{if(4===t){for(let e=0;e<c;++e){const t=4*a[e];s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=o[t+3],i+=l}return}for(let e=0;e<c;++e){const t=3*a[e];s[i]=o[t],s[i+1]=o[t+1],s[i+2]=o[t+2],s[i+3]=255,i+=l}}else{s[i]=o[0],s[i+1]=o[1],s[i+2]=o[2],s[i+3]=o[3];const e=new Uint32Array(r.typedBuffer.buffer,r.start),t=l/4,a=e[i/=4];i+=t;const d=c*n;for(let r=1;r<d;++r)e[i]=a,i+=t}}(t,t.size,r,o);break}case ne.r.COLORFEATUREATTRIBUTE:{const r=n.getField(e,m.Y$);(0,U.vA)(!!r,`No buffer view for ${e}`),(0,U.vA)(1===t.size),r&&1===t.size&&function(e,t,r){const{data:i,indices:n}=e,o=t.typedBuffer,a=t.typedBufferStride,s=n.length,l=i[0];r*=a;for(let e=0;e<s;++e)o[r]=l,r+=a}(t,r,o);break}case ne.r.TANGENT:{(0,U.vA)(4===t.size);const i=n.getField(e,m.Eq);(0,U.vA)(!!i,`No buffer view for ${e}`),i&&function(e,t,r,i,n=1){if(!t)return void Rt(e,r,i,n);const{data:o,indices:a}=e,l=t,c=r.typedBuffer,d=r.typedBufferStride,u=a.length,h=l[0],f=l[1],m=l[2],p=l[4],v=l[5],g=l[6],_=l[8],x=l[9],T=l[10],b=!(0,s.ut)(l),y=1e-6,A=1-y;if(i*=d,1===n)for(let e=0;e<u;++e){const t=4*a[e],r=o[t],n=o[t+1],s=o[t+2],l=o[t+3];let u=h*r+p*n+_*s,E=f*r+v*n+x*s,S=m*r+g*n+T*s;if(b){const e=u*u+E*E+S*S;if(e<A&&e>y){const t=1/Math.sqrt(e);u*=t,E*=t,S*=t}}c[i]=u,c[i+1]=E,c[i+2]=S,c[i+3]=l,i+=d}else for(let e=0;e<u;++e){const t=4*a[e],r=o[t],s=o[t+1],l=o[t+2],u=o[t+3];let E=h*r+p*s+_*l,S=f*r+v*s+x*l,w=m*r+g*s+T*l;if(b){const e=E*E+S*S+w*w;if(e<A&&e>y){const t=1/Math.sqrt(e);E*=t,S*=t,w*=t}}for(let e=0;e<n;++e)c[i]=E,c[i+1]=S,c[i+2]=w,c[i+3]=u,i+=d}}(t,r,i,o);break}case ne.r.PROFILERIGHT:case ne.r.PROFILEUP:case ne.r.PROFILEVERTEXANDNORMAL:case ne.r.FEATUREVALUE:{(0,U.vA)(4===t.size);const r=n.getField(e,m.Eq);(0,U.vA)(!!r,`No buffer view for ${e}`),r&&Rt(t,r,o)}}}class Lt{constructor(e){this.vertexBufferLayout=e}elementCount(e){return e.attributes.get(ne.r.POSITION).indices.length}write(e,t,r,i,n){!function(e,t,r,i,n,o){for(const a of t.fields.keys()){const t=e.attributes.get(a),s=t?.indices;if(t&&s)Pt(a,t,r,i,n,o);else if(a===ne.r.OBJECTANDLAYERIDCOLOR&&null!=e.objectAndLayerIdColor){const t=e.attributes.get(ne.r.POSITION)?.indices;if(t){const r=t.length,i=n.getField(a,m.XP);Nt(e.objectAndLayerIdColor,i,r,o)}}}}(r,this.vertexBufferLayout,e,t,i,n)}}var Ht=r(13752),Dt=r(91829),Bt=r(53466),Ft=r(72824),zt=r(97220),Vt=r(84867),Gt=r(39341),Ut=r(34886);pe.MT.LESS,pe.MT.ALWAYS;const Wt={mask:255},jt={function:{func:pe.MT.ALWAYS,ref:F.dd.OutlineVisualElementMask,mask:F.dd.OutlineVisualElementMask},operation:{fail:pe.eA.KEEP,zFail:pe.eA.KEEP,zPass:pe.eA.ZERO}},qt={function:{func:pe.MT.ALWAYS,ref:F.dd.OutlineVisualElementMask,mask:F.dd.OutlineVisualElementMask},operation:{fail:pe.eA.KEEP,zFail:pe.eA.KEEP,zPass:pe.eA.REPLACE}};pe.MT.EQUAL,F.dd.OutlineVisualElementMask,F.dd.OutlineVisualElementMask,pe.eA.KEEP,pe.eA.KEEP,pe.eA.KEEP,pe.MT.NOTEQUAL,F.dd.OutlineVisualElementMask,F.dd.OutlineVisualElementMask,pe.eA.KEEP,pe.eA.KEEP,pe.eA.KEEP;const kt=[1,1,.5],$t=[0,.6,.2],Yt=[0,1,.2];var Xt=r(28491);class Zt extends Ft.Zo{constructor(){super(...arguments),this.isSchematic=!1,this.usePBR=!1,this.mrrFactors=(0,u.ci)(kt),this.hasVertexColors=!1,this.hasSymbolColors=!1,this.doubleSided=!1,this.doubleSidedType="normal",this.cullFace=F.s2.Back,this.isInstanced=!1,this.hasInstancedColor=!1,this.emissiveFactor=(0,u.fA)(0,0,0),this.instancedDoublePrecision=!1,this.normalType=Ge.W.Attribute,this.receiveShadows=!0,this.receiveAmbientOcclusion=!0,this.castShadows=!0,this.shadowMappingEnabled=!1,this.ambient=(0,u.fA)(.2,.2,.2),this.diffuse=(0,u.fA)(.8,.8,.8),this.externalColor=(0,Dt.fA)(1,1,1,1),this.colorMixMode="multiply",this.opacity=1,this.layerOpacity=1,this.origin=(0,u.vt)(),this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.offsetTransparentBackfaces=!1,this.vvSize=null,this.vvColor=null,this.vvOpacity=null,this.vvSymbolAnchor=null,this.vvSymbolRotationMatrix=null,this.modelTransformation=null,this.transparent=!1,this.writeDepth=!0,this.customDepthTest=F.it.Less,this.textureAlphaMode=F.sf.Blend,this.textureAlphaCutoff=je.Q,this.textureAlphaPremultiplied=!1,this.hasOccludees=!1,this.renderOccluded=ke.m$.Occlude,this.isDecoration=!1}}Ft.gy;class Jt extends Vt.w{initializeConfiguration(e,t){t.spherical=e.viewingMode===Fe.RT.Global,t.doublePrecisionRequiresObfuscation=e.rctx.driverTest.doublePrecisionRequiresObfuscation.result,t.textureCoordinateType=t.hasColorTexture||t.hasMetallicRoughnessTexture||t.hasEmissionTexture||t.hasOcclusionTexture||t.hasNormalTexture?Bt.q.Default:Bt.q.None,t.objectAndLayerIdColorInstanced=t.instanced}initializeProgram(e){return this._initializeProgram(e,Jt.shader)}_initializeProgram(e,t){return new Ut.B(e.rctx,t.get().build(this.configuration),Gt.D)}_makePipeline(e,t){const{output:r,transparent:i,cullFace:n,customDepthTest:o,writeDepth:a,hasOccludees:s,enableOffset:l}=this.configuration,c=e===$e.y.NONE,d=e===$e.y.FrontFace;return(0,Ye.Ey)({blending:r===Ve.V.Color&&i?Je(e):null,culling:Qt(this.configuration)?(0,Ye.Xt)(n):null,depthTest:{func:et(e,Kt(o))},depthWrite:(c||d)&&a?Ye.kn:null,drawBuffers:r===Ve.V.Depth?{buffers:[pe.Hr.NONE]}:tt(e),colorWrite:Ye.wE,stencilWrite:s?Wt:null,stencilTest:s?t?qt:jt:null,polygonOffset:c||d?null:Qe(l)})}initializePipeline(){return this._occludeePipelineState=this._makePipeline(this.configuration.transparencyPassType,!0),this._makePipeline(this.configuration.transparencyPassType,!1)}getPipeline(e){return e?this._occludeePipelineState:super.getPipeline()}}function Kt(e){return e===F.it.Lequal?pe.MT.LEQUAL:pe.MT.LESS}function Qt(e){return e.cullFace!==F.s2.None||!e.hasSlicePlane&&!e.transparent&&!e.doubleSidedMode}Jt.shader=new zt.$(Xt.D,(()=>r.e(5141).then(r.bind(r,5141))));var er=r(90237),tr=r(99769),rr=r(82991),ir=r(46263);class nr extends rr.nW{}(0,er._)([(0,tr.W)({constValue:!0})],nr.prototype,"hasSliceHighlight",void 0),(0,er._)([(0,tr.W)({constValue:!1})],nr.prototype,"hasSliceInVertexProgram",void 0),(0,er._)([(0,tr.W)({constValue:ir.c.Pass})],nr.prototype,"bindType",void 0);class or extends nr{constructor(){super(...arguments),this.output=Ve.V.Color,this.alphaDiscardMode=F.sf.Opaque,this.doubleSidedMode=Ue.W.None,this.pbrMode=We.A9.Disabled,this.cullFace=F.s2.None,this.transparencyPassType=$e.y.NONE,this.normalType=Ge.W.Attribute,this.textureCoordinateType=Bt.q.None,this.customDepthTest=F.it.Less,this.spherical=!1,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.vvSize=!1,this.vvColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instanced=!1,this.instancedColor=!1,this.objectAndLayerIdColorInstanced=!1,this.instancedDoublePrecision=!1,this.doublePrecisionRequiresObfuscation=!1,this.writeDepth=!0,this.transparent=!1,this.discardInvisibleFragments=!1,this.enableOffset=!0,this.cullAboveGround=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1}}(0,er._)([(0,tr.W)({count:Ve.V.COUNT})],or.prototype,"output",void 0),(0,er._)([(0,tr.W)({count:F.sf.COUNT})],or.prototype,"alphaDiscardMode",void 0),(0,er._)([(0,tr.W)({count:Ue.W.COUNT})],or.prototype,"doubleSidedMode",void 0),(0,er._)([(0,tr.W)({count:We.A9.COUNT})],or.prototype,"pbrMode",void 0),(0,er._)([(0,tr.W)({count:F.s2.COUNT})],or.prototype,"cullFace",void 0),(0,er._)([(0,tr.W)({count:$e.y.COUNT})],or.prototype,"transparencyPassType",void 0),(0,er._)([(0,tr.W)({count:Ge.W.COUNT})],or.prototype,"normalType",void 0),(0,er._)([(0,tr.W)({count:Bt.q.COUNT})],or.prototype,"textureCoordinateType",void 0),(0,er._)([(0,tr.W)({count:F.it.COUNT})],or.prototype,"customDepthTest",void 0),(0,er._)([(0,tr.W)()],or.prototype,"spherical",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVertexColors",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSymbolColors",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVerticalOffset",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSlicePlane",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasSliceHighlight",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasColorTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasMetallicRoughnessTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasEmissionTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOcclusionTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasNormalTexture",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasScreenSizePerspective",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasVertexTangents",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOccludees",void 0),(0,er._)([(0,tr.W)()],or.prototype,"multipassEnabled",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasModelTransformation",void 0),(0,er._)([(0,tr.W)()],or.prototype,"offsetBackfaces",void 0),(0,er._)([(0,tr.W)()],or.prototype,"vvSize",void 0),(0,er._)([(0,tr.W)()],or.prototype,"vvColor",void 0),(0,er._)([(0,tr.W)()],or.prototype,"receiveShadows",void 0),(0,er._)([(0,tr.W)()],or.prototype,"receiveAmbientOcclusion",void 0),(0,er._)([(0,tr.W)()],or.prototype,"textureAlphaPremultiplied",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instanced",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instancedColor",void 0),(0,er._)([(0,tr.W)()],or.prototype,"objectAndLayerIdColorInstanced",void 0),(0,er._)([(0,tr.W)()],or.prototype,"instancedDoublePrecision",void 0),(0,er._)([(0,tr.W)()],or.prototype,"doublePrecisionRequiresObfuscation",void 0),(0,er._)([(0,tr.W)()],or.prototype,"writeDepth",void 0),(0,er._)([(0,tr.W)()],or.prototype,"transparent",void 0),(0,er._)([(0,tr.W)()],or.prototype,"discardInvisibleFragments",void 0),(0,er._)([(0,tr.W)()],or.prototype,"enableOffset",void 0),(0,er._)([(0,tr.W)()],or.prototype,"cullAboveGround",void 0),(0,er._)([(0,tr.W)()],or.prototype,"snowCover",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasColorTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasEmissionTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasNormalTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasOcclusionTextureTransform",void 0),(0,er._)([(0,tr.W)()],or.prototype,"hasMetallicRoughnessTextureTransform",void 0),(0,er._)([(0,tr.W)({constValue:!1})],or.prototype,"occlusionPass",void 0),(0,er._)([(0,tr.W)({constValue:!0})],or.prototype,"hasVvInstancing",void 0),(0,er._)([(0,tr.W)({constValue:!1})],or.prototype,"useCustomDTRExponentForWater",void 0),(0,er._)([(0,tr.W)({constValue:!0})],or.prototype,"useFillLights",void 0);var ar=r(57323);class sr extends Jt{initializeConfiguration(e,t){super.initializeConfiguration(e,t),t.hasMetallicRoughnessTexture=!1,t.hasEmissionTexture=!1,t.hasOcclusionTexture=!1,t.hasNormalTexture=!1,t.hasModelTransformation=!1,t.normalType=Ge.W.Attribute,t.doubleSidedMode=Ue.W.WindingOrder,t.hasVertexTangents=!1}initializeProgram(e){return this._initializeProgram(e,sr.shader)}}sr.shader=new zt.$(ar.R,(()=>r.e(9933).then(r.bind(r,39933))));class lr extends ke.im{constructor(e){super(e,dr),this._configuration=new or,this.supportsEdges=!0,this.produces=new Map([[xt.OPAQUE_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&!this.parameters.transparent],[xt.TRANSPARENT_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&this.parameters.transparent&&this.parameters.writeDepth],[xt.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL,e=>((0,Ve.XY)(e)||(0,Ve.PJ)(e))&&this.parameters.transparent&&!this.parameters.writeDepth]]),this._vertexBufferLayout=function(e){const t=(0,ze.BP)().vec3f(ne.r.POSITION);return e.normalType===Ge.W.Compressed?t.vec2i16(ne.r.NORMALCOMPRESSED,{glNormalized:!0}):t.vec3f(ne.r.NORMAL),e.hasVertexTangents&&t.vec4f(ne.r.TANGENT),(e.textureId||e.normalTextureId||e.metallicRoughnessTextureId||e.emissiveTextureId||e.occlusionTextureId)&&t.vec2f(ne.r.UV0),e.hasVertexColors&&t.vec4u8(ne.r.COLOR),e.hasSymbolColors&&t.vec4u8(ne.r.SYMBOLCOLOR),(0,ae.A)("enable-feature:objectAndLayerId-rendering")&&t.vec4u8(ne.r.OBJECTANDLAYERIDCOLOR),t}(this.parameters)}isVisibleForOutput(e){return e!==Ve.V.Shadow&&e!==Ve.V.ShadowExcludeHighlight&&e!==Ve.V.ShadowHighlight||this.parameters.castShadows}get visible(){const e=this.parameters;if(e.layerOpacity<je.Q)return!1;const{hasInstancedColor:t,hasVertexColors:r,hasSymbolColors:i,vvColor:n}=e,o=t||n||i,a="replace"===e.colorMixMode,s=e.opacity>=je.Q;if(r&&o)return a||s;const l=e.externalColor&&e.externalColor[3]>=je.Q;return r?a?l:s:o?a||s:a?l:s}getConfiguration(e,t){return this._configuration.output=e,this._configuration.hasNormalTexture=!!this.parameters.normalTextureId,this._configuration.hasColorTexture=!!this.parameters.textureId,this._configuration.hasVertexTangents=this.parameters.hasVertexTangents,this._configuration.instanced=this.parameters.isInstanced,this._configuration.instancedDoublePrecision=this.parameters.instancedDoublePrecision,this._configuration.vvSize=!!this.parameters.vvSize,this._configuration.hasVerticalOffset=null!=this.parameters.verticalOffset,this._configuration.hasScreenSizePerspective=null!=this.parameters.screenSizePerspective,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.hasSliceHighlight=this.parameters.hasSliceHighlight,this._configuration.alphaDiscardMode=this.parameters.textureAlphaMode,this._configuration.normalType=this.parameters.normalType,this._configuration.transparent=this.parameters.transparent,this._configuration.discardInvisibleFragments=this.parameters.transparent,this._configuration.writeDepth=this.parameters.writeDepth,null!=this.parameters.customDepthTest&&(this._configuration.customDepthTest=this.parameters.customDepthTest),this._configuration.hasOccludees=this.parameters.hasOccludees,this._configuration.cullFace=this.parameters.hasSlicePlane?F.s2.None:this.parameters.cullFace,this._configuration.multipassEnabled=t.multipassEnabled,this._configuration.cullAboveGround=t.multipassTerrain.cullAboveGround,this._configuration.hasModelTransformation=null!=this.parameters.modelTransformation,e===Ve.V.Color&&(this._configuration.hasVertexColors=this.parameters.hasVertexColors,this._configuration.hasSymbolColors=this.parameters.hasSymbolColors,this.parameters.treeRendering?this._configuration.doubleSidedMode=Ue.W.WindingOrder:this._configuration.doubleSidedMode=this.parameters.doubleSided&&"normal"===this.parameters.doubleSidedType?Ue.W.View:this.parameters.doubleSided&&"winding-order"===this.parameters.doubleSidedType?Ue.W.WindingOrder:Ue.W.None,this._configuration.instancedColor=this.parameters.hasInstancedColor,this._configuration.receiveShadows=this.parameters.receiveShadows&&this.parameters.shadowMappingEnabled,this._configuration.receiveAmbientOcclusion=this.parameters.receiveAmbientOcclusion&&null!=t.ssao,this._configuration.vvColor=!!this.parameters.vvColor,this._configuration.textureAlphaPremultiplied=!!this.parameters.textureAlphaPremultiplied,this._configuration.pbrMode=this.parameters.usePBR?this.parameters.isSchematic?We.A9.Schematic:We.A9.Normal:We.A9.Disabled,this._configuration.hasMetallicRoughnessTexture=!!this.parameters.metallicRoughnessTextureId,this._configuration.hasEmissionTexture=!!this.parameters.emissiveTextureId,this._configuration.hasOcclusionTexture=!!this.parameters.occlusionTextureId,this._configuration.offsetBackfaces=!(!this.parameters.transparent||!this.parameters.offsetTransparentBackfaces),this._configuration.transparencyPassType=t.transparencyPassType,this._configuration.enableOffset=t.camera.relativeElevation<5e5,this._configuration.snowCover=this.hasSnowCover(t),this._configuration.hasColorTextureTransform=!!this.parameters.colorTextureTransformMatrix,this._configuration.hasNormalTextureTransform=!!this.parameters.normalTextureTransformMatrix,this._configuration.hasEmissionTextureTransform=!!this.parameters.emissiveTextureTransformMatrix,this._configuration.hasOcclusionTextureTransform=!!this.parameters.occlusionTextureTransformMatrix,this._configuration.hasMetallicRoughnessTextureTransform=!!this.parameters.metallicRoughnessTextureTransformMatrix),this._configuration}hasSnowCover(e){return null!=e.weather&&e.weatherVisible&&"snowy"===e.weather.type&&"enabled"===e.weather.snowCover}intersect(e,t,r,i,n,o){if(null!=this.parameters.verticalOffset){const e=r.camera;(0,d.s)(vr,t[12],t[13],t[14]);let o=null;switch(r.viewingMode){case Fe.RT.Global:o=(0,d.n)(mr,vr);break;case Fe.RT.Local:o=(0,d.c)(mr,fr)}let a=0;const s=(0,d.f)(gr,vr,e.eye),l=(0,d.l)(s),c=(0,d.j)(s,s,1/l);let u=null;this.parameters.screenSizePerspective&&(u=(0,d.m)(o,c)),a+=(0,Ht.kE)(e,l,this.parameters.verticalOffset,u??0,this.parameters.screenSizePerspective),(0,d.j)(o,o,a),(0,d.t)(pr,o,r.transform.inverseRotation),i=(0,d.f)(ur,i,pr),n=(0,d.f)(hr,n,pr)}var a;nt(e,r,i,n,null!=(a=r.verticalOffset)?(At.offset=a,At):null,o)}createGLMaterial(e){return new cr(e)}createBufferWriter(){return new Lt(this._vertexBufferLayout)}}class cr extends qe.m{constructor(e){super({...e,...e.material.parameters})}_updateShadowState(e){e.shadowMap.enabled!==this._material.parameters.shadowMappingEnabled&&this._material.setParameters({shadowMappingEnabled:e.shadowMap.enabled})}_updateOccludeeState(e){e.hasOccludees!==this._material.parameters.hasOccludees&&this._material.setParameters({hasOccludees:e.hasOccludees})}beginSlot(e){this._output===Ve.V.Color&&(this._updateShadowState(e),this._updateOccludeeState(e));const t=this._material.parameters;this.updateTexture(t.textureId);const r=e.camera.viewInverseTransposeMatrix;return(0,d.s)(t.origin,r[3],r[7],r[11]),this._material.setParameters(this.textureBindParameters),this.ensureTechnique(t.treeRendering?sr:Jt,e)}}class dr extends Zt{constructor(){super(...arguments),this.initTextureTransparent=!1,this.treeRendering=!1,this.hasVertexTangents=!1}}const ur=(0,u.vt)(),hr=(0,u.vt)(),fr=(0,u.fA)(0,0,1),mr=(0,u.vt)(),pr=(0,u.vt)(),vr=(0,u.vt)(),gr=(0,u.vt)(),_r=()=>R.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");function xr(e){throw new I.A("",`Request for object resource failed: ${e}`)}function Tr(e){const t=e.params,r=t.topology;let i=!0;switch(t.vertexAttributes||(_r().warn("Geometry must specify vertex attributes"),i=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(_r().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),i=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(_r().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),i=!1)):(_r().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),i=!1)}}else _r().warn("Indexed geometries must specify faces"),i=!1;break}default:_r().warn(`Unsupported topology '${r}'`),i=!1}e.params.material||(_r().warn("Geometry requires material"),i=!1);const n=e.params.vertexAttributes;for(const e in n)n[e].values||(_r().warn("Geometries with externally defined attributes are not yet supported"),i=!1);return i}function br(e){const t=(0,h.Ie)();return e.forEach((e=>{const r=e.boundingInfo;null!=r&&((0,h.iT)(t,r.bbMin),(0,h.iT)(t,r.bbMax))})),t}function yr(e){switch(e){case"mask":return F.sf.Mask;case"maskAndTransparency":return F.sf.MaskBlend;case"none":return F.sf.Opaque;default:return F.sf.Blend}}function Ar(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const Er=new L.R(1,2,"wosr");var Sr=r(61765);async function wr(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,i.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const i=await(0,C.Ke)(t.request(e,"json",r));if(!0===i.ok)return i.value;(0,P.QP)(i.error),xr(i.error.details.url)}(e,r,t);const i=await(0,C.Ke)((0,M.A)(e,t));if(!0===i.ok)return i.value.data;(0,P.QP)(i.error),xr(i.error)}(e,t),i=await async function(e,t){const r=new Array;for(const i in e){const n=e[i],o=n.images[0].data;if(!o){_r().warn("Externally referenced texture data is not yet supported");continue}const a=n.encoding+";base64,"+o,s="/textureDefinitions/"+i,l="rgba"===n.channels?n.alphaChannelUsage||"transparency":"none",c={noUnpackFlip:!0,wrap:{s:pe.pF.REPEAT,t:pe.pF.REPEAT},preMultiplyAlpha:yr(l)!==F.sf.Opaque},d=t?.disableTextures?Promise.resolve(null):D(a,t);r.push(d.then((e=>({refId:s,image:e,parameters:c,alphaChannelUsage:l}))))}const i=await Promise.all(r),n={};for(const e of i)n[e.refId]=e;return n}(r.textureDefinitions??{},t);let n=0;for(const e in i)if(i.hasOwnProperty(e)){const t=i[e];n+=t?.image?t.image.width*t.image.height*4:0}return{resource:r,textures:i,size:n+(0,O.iL)(r)}}(a.url,t)),{engineResources:r,referenceBoundingBox:i}=function(e,t){const r=new Array,i=new Array,n=new Array,o=new N,a=e.resource,s=L.R.parse(a.version||"1.0","wosr");Er.validate(s);const l=a.model.name,c=a.model.geometries,d=a.materialDefinitions??{},h=e.textures;let f=0;const m=new Map;for(let e=0;e<c.length;e++){const a=c[e];if(!Tr(a))continue;const s=Ar(a),l=a.params.vertexAttributes,p=[],v=e=>{if("PerAttributeArray"===a.params.topology)return null;const t=a.params.faces;for(const r in t)if(r===e)return t[r].values;return null},g=l[ne.r.POSITION],_=g.values.length/g.valuesPerElement;for(const e in l){const t=l[e],r=t.values,i=v(e)??(0,H.tM)(_);p.push([e,new B.n(r,i,t.valuesPerElement,!0)])}const x=s.texture,T=h&&h[x];if(T&&!m.has(x)){const{image:e,parameters:t}=T,r=new He(e,t);i.push(r),m.set(x,r)}const b=m.get(x),y=b?b.id:void 0,A=s.material;let E=o.get(A,x);if(null==E){const e=d[A.substring(A.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=T&&T.alphaChannelUsage,i=e.transparency>0||"transparency"===r||"maskAndTransparency"===r,n=T?yr(T.alphaChannelUsage):void 0,a={ambient:(0,u.ci)(e.diffuse),diffuse:(0,u.ci)(e.diffuse),opacity:1-(e.transparency||0),transparent:i,textureAlphaMode:n,textureAlphaCutoff:.33,textureId:y,initTextureTransparent:!0,doubleSided:!0,cullFace:F.s2.None,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:T?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(a,t.materialParameters),E=new lr(a),o.set(A,x,E)}n.push(E);const S=new oe(E,p);f+=p.find((e=>e[0]===ne.r.POSITION))?.[1]?.indices.length??0,r.push(S)}return{engineResources:[{name:l,stageResources:{textures:i,materials:n,geometries:r},pivotOffset:a.model.pivotOffset,numberOfVertices:f,lodThreshold:null}],referenceBoundingBox:br(r)}}(e,t);return{lods:r,referenceBoundingBox:i,isEsriSymbolResource:!1,isWosr:!0}}let A;if(t.cache)A=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(4399).then(r.bind(r,4399));A=await e(new T.R(t.streamDataRequester),a.url,t,t.usePBR)}const S=A.model.meta?.ESRI_proxyEllipsoid,I=A.meta.isEsriSymbolResource&&null!=S&&"EsriRealisticTreesStyle"===A.meta.ESRI_webstyle;I&&!A.customMeta.esriTreeRendering&&(A.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const i=e.model.lods[r];for(const n of i.parts){const i=n.attributes.normal;if(null==i)return;const o=n.attributes.position,a=o.count,c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),p=new Uint8Array(4*a),v=new Float64Array(3*a),g=(0,s.B8)((0,l.vt)(),n.transform);let _=0,x=0;for(let s=0;s<a;s++){o.getVec(s,h),i.getVec(s,c),(0,d.h)(h,h,n.transform),(0,d.f)(f,h,t.center),(0,d.D)(f,f,t.radius);const a=f[2],l=(0,d.l)(f),u=Math.min(.45+.55*l*l,1);(0,d.D)(f,f,t.radius),null!==g&&(0,d.h)(f,f,g),(0,d.n)(f,f),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,d.o)(f,f,c,a>-1?.2:Math.min(-4*a-3.8,1)),v[_]=f[0],v[_+1]=f[1],v[_+2]=f[2],_+=3,p[x]=255*u,p[x+1]=255*u,p[x+2]=255*u,p[x+3]=255,x+=4}n.attributes.normal=new m.xs(v),n.attributes.color=new m.XP(p)}}}(A,S));const R=!!t.usePBR,z=A.meta.isEsriSymbolResource?{usePBR:R,isSchematic:!1,treeRendering:I,mrrFactors:[...Yt]}:{usePBR:R,isSchematic:!1,treeRendering:!1,mrrFactors:[...kt]},V={...t.materialParameters,treeRendering:I},{engineResources:G,referenceBoundingBox:U}=function(e,t,r,i){const a=e.model,s=new Array,l=new Map,T=new Map,A=a.lods.length,S=(0,h.Ie)();return a.lods.forEach(((e,M)=>{const C=!0===i.skipHighLods&&(A>1&&0===M||A>3&&1===M)||!1===i.skipHighLods&&null!=i.singleLodIndex&&M!==i.singleLodIndex;if(C&&0!==M)return;const O=new w(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach((e=>{const i=C?new lr({}):function(e,t,r,i,n,o,a){const s=t.material+(t.attributes.normal?"_normal":"")+(t.attributes.color?"_color":"")+(t.attributes.texCoord0?"_texCoord0":"")+(t.attributes.tangent?"_tangent":""),l=e.materials.get(t.material),h=null!=t.attributes.texCoord0,f=null!=t.attributes.normal;if(null==l)return null;const m=function(e){switch(e){case"BLEND":return F.sf.Blend;case"MASK":return F.sf.Mask;case"OPAQUE":case null:case void 0:return F.sf.Opaque}}(l.alphaMode);if(!o.has(s)){if(h){const t=(t,r=!1)=>{if(null!=t&&!a.has(t)){const i=e.textures.get(t);if(null!=i){const e=i.data;a.set(t,new He((0,y.x3)(e)?e.data:e,{...i.parameters,preMultiplyAlpha:!(0,y.x3)(e)&&r,encoding:(0,y.x3)(e)&&null!=e.encoding?e.encoding:void 0}))}}};t(l.textureColor,m!==F.sf.Opaque),t(l.textureNormal),t(l.textureOcclusion),t(l.textureEmissive),t(l.textureMetallicRoughness)}const r=l.color[0]**(1/Sr.T),p=l.color[1]**(1/Sr.T),v=l.color[2]**(1/Sr.T),g=l.emissiveFactor[0]**(1/Sr.T),_=l.emissiveFactor[1]**(1/Sr.T),x=l.emissiveFactor[2]**(1/Sr.T),T=null!=l.textureColor&&h?a.get(l.textureColor):null,b=function({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:i,emissiveTexture:n,emissiveFactor:o,occlusionTexture:a}){return null==e&&null==t&&null==n&&(null==o||(0,d.e)(o,u.uY))&&null==a&&(null==i||1===i)&&(null==r||1===r)}({normalTexture:l.textureNormal,metallicRoughnessTexture:l.textureMetallicRoughness,metallicFactor:l.metallicFactor,roughnessFactor:l.roughnessFactor,emissiveTexture:l.textureEmissive,emissiveFactor:l.emissiveFactor,occlusionTexture:l.textureOcclusion}),A=null!=l.normalTextureTransform?.scale?l.normalTextureTransform?.scale:c.Un;o.set(s,new lr({...i,transparent:m===F.sf.Blend,customDepthTest:F.it.Lequal,textureAlphaMode:m,textureAlphaCutoff:l.alphaCutoff,diffuse:[r,p,v],ambient:[r,p,v],opacity:l.opacity,doubleSided:l.doubleSided,doubleSidedType:"winding-order",cullFace:l.doubleSided?F.s2.None:F.s2.Back,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:f?Ge.W.Attribute:Ge.W.ScreenDerivative,castShadows:!0,receiveShadows:l.receiveShadows,receiveAmbientOcclusion:l.receiveAmbientOcclustion,textureId:null!=T?T.id:void 0,colorMixMode:l.colorMixMode,normalTextureId:null!=l.textureNormal&&h?a.get(l.textureNormal).id:void 0,textureAlphaPremultiplied:null!=T&&!!T.parameters.preMultiplyAlpha,occlusionTextureId:null!=l.textureOcclusion&&h?a.get(l.textureOcclusion).id:void 0,emissiveTextureId:null!=l.textureEmissive&&h?a.get(l.textureEmissive).id:void 0,metallicRoughnessTextureId:null!=l.textureMetallicRoughness&&h?a.get(l.textureMetallicRoughness).id:void 0,emissiveFactor:[g,_,x],mrrFactors:b?[...$t]:[l.metallicFactor,l.roughnessFactor,i.mrrFactors[2]],isSchematic:b,colorTextureTransformMatrix:E(l.colorTextureTransform),normalTextureTransformMatrix:E(l.normalTextureTransform),scale:[A[0],A[1]],occlusionTextureTransformMatrix:E(l.occlusionTextureTransform),emissiveTextureTransformMatrix:E(l.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:E(l.metallicRoughnessTextureTransform),...n}))}const p=o.get(s);if(r.stageResources.materials.push(p),h){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(l.textureColor),e(l.textureNormal),e(l.textureOcclusion),e(l.textureEmissive),e(l.textureMetallicRoughness)}return p}(a,e,O,t,r,l,T),{geometry:s,vertexCount:A}=function(e,t){const r=e.attributes.position.count,i=(0,b.x)(e.indices||r,e.primitiveType),a=(0,f.oe)(3*r),{typedBuffer:s,typedBufferStride:l}=e.attributes.position;(0,p.a)(a,s,e.transform,3,l);const c=[[ne.r.POSITION,new B.n(a,i,3,!0)]];if(null!=e.attributes.normal){const t=(0,f.oe)(3*r),{typedBuffer:a,typedBufferStride:s}=e.attributes.normal;(0,o.Ge)(Mr,e.transform),(0,p.t)(t,a,Mr,3,s),(0,n.or)(Mr)&&(0,p.n)(t,t),c.push([ne.r.NORMAL,new B.n(t,i,3,!0)])}if(null!=e.attributes.tangent){const t=(0,f.oe)(4*r),{typedBuffer:a,typedBufferStride:s}=e.attributes.tangent;(0,o.z0)(Mr,e.transform),(0,v.t)(t,a,Mr,4,s),(0,n.or)(Mr)&&(0,p.n)(t,t,4),c.push([ne.r.TANGENT,new B.n(t,i,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,f.oe)(2*r),{typedBuffer:n,typedBufferStride:o}=e.attributes.texCoord0;(0,g.a)(t,n,2,o),c.push([ne.r.UV0,new B.n(t,i,2,!0)])}const d=e.attributes.color;if(null!=d){const t=new Uint8Array(4*r);4===d.elementCount?d instanceof m.Eq?(0,v.b)(t,d,255):d instanceof m.XP?(0,x.a)(t,d):d instanceof m.Uz&&(0,v.b)(t,d,1/256):(t.fill(255),d instanceof m.xs?(0,p.f)(t,d.typedBuffer,255,4,d.typedBufferStride):e.attributes.color instanceof m.eI?(0,_.c)(t,d.typedBuffer,4,e.attributes.color.typedBufferStride):e.attributes.color instanceof m.nS&&(0,p.f)(t,d.typedBuffer,1/256,4,d.typedBufferStride)),c.push([ne.r.COLOR,new B.n(t,i,4,!0)])}return{geometry:new oe(t,c),vertexCount:r}}(e,null!=i?i:new lr({})),w=s.boundingInfo;null!=w&&0===M&&((0,h.iT)(S,w.bbMin),(0,h.iT)(S,w.bbMax)),null!=i&&(O.stageResources.geometries.push(s),O.numberOfVertices+=A)})),C||s.push(O)})),{engineResources:s,referenceBoundingBox:S}}(A,z,V,t.skipHighLods&&null==a.specifiedLodIndex?{skipHighLods:!0}:{skipHighLods:!1,singleLodIndex:a.specifiedLodIndex});return{lods:G,referenceBoundingBox:U,isEsriSymbolResource:A.meta.isEsriSymbolResource,isWosr:!1}}const Mr=(0,a.vt)()},66104:(e,t,r)=>{var i,n;r.d(t,{k5:()=>i}),r(34727),(n=i||(i={}))[n.Multiply=1]="Multiply",n[n.Ignore=2]="Ignore",n[n.Replace=3]="Replace",n[n.Tint=4]="Tint"},42583:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(66104),n=r(2597);function o(e){e.vertex.code.add(n.H`
225
225
  vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
226
226
  float symbolAlpha = 0.0;
227
227
 
@@ -555,7 +555,7 @@ T = T - normal * dot(normal, T);
555
555
  T *= inversesqrt(max(dot(T,T), 1.e-10));
556
556
  vec3 B = sign(det) * cross(normal, T);
557
557
  return mat3(T, B, normal);
558
- }`),t.textureCoordinateType!==o.q.None&&(e.include(a.r,t),r.uniforms.add(t.pbrTextureBindType===f.c.Pass?new h.N("normalTexture",(e=>e.textureNormal)):new u.o("normalTexture",(e=>e.textureNormal))),t.hasNormalTextureTransform&&(r.uniforms.add(new l.G("scale",(e=>e.scale??n.Un))),r.uniforms.add(new d.k("normalTextureTransformMatrix",(e=>e.normalTextureTransformMatrix??i.zK)))),r.code.add(c.H`vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) {
558
+ }`),t.textureCoordinateType!==o.q.None&&(e.include(a.r,t),r.uniforms.add(t.bindType===f.c.Pass?new h.N("normalTexture",(e=>e.textureNormal)):new u.o("normalTexture",(e=>e.textureNormal))),t.hasNormalTextureTransform&&(r.uniforms.add(new l.G("scale",(e=>e.scale??n.Un))),r.uniforms.add(new d.k("normalTextureTransformMatrix",(e=>e.normalTextureTransformMatrix??i.zK)))),r.code.add(c.H`vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) {
559
559
  vec3 rawNormal = textureLookup(normalTexture, uv).rgb * 2.0 - 1.0;`),t.hasNormalTextureTransform&&r.code.add(c.H`mat3 normalTextureRotation = mat3(normalTextureTransformMatrix[0][0]/scale[0], normalTextureTransformMatrix[0][1]/scale[1], 0.0,
560
560
  normalTextureTransformMatrix[1][0]/scale[0], normalTextureTransformMatrix[1][1]/scale[1], 0.0,
561
561
  0.0, 0.0, 0.0 );
@@ -791,7 +791,7 @@ float getBakedOcclusion() { return 1.0; }`);if(r===i.Schematic)return void n.cod
791
791
  vec3 emission = vec3(0.0);
792
792
  float occlusion = 1.0;
793
793
  void applyPBRFactors() {}
794
- float getBakedOcclusion() { return 1.0; }`);const{hasMetallicRoughnessTexture:h,hasMetallicRoughnessTextureTransform:f,hasEmissionTexture:m,hasEmissiveTextureTransform:p,hasOcclusionTexture:v,hasOcclusionTextureTransform:g,pbrTextureBindType:_}=t;(h||m||v)&&e.include(o.r,t),n.code.add(l.H`vec3 mrr;
794
+ float getBakedOcclusion() { return 1.0; }`);const{hasMetallicRoughnessTexture:h,hasMetallicRoughnessTextureTransform:f,hasEmissionTexture:m,hasEmissiveTextureTransform:p,hasOcclusionTexture:v,hasOcclusionTextureTransform:g,bindType:_}=t;(h||m||v)&&e.include(o.r,t),n.code.add(l.H`vec3 mrr;
795
795
  vec3 emission;
796
796
  float occlusion;`),h&&n.uniforms.add(_===u.c.Pass?new d.N("texMetallicRoughness",(e=>e.textureMetallicRoughness)):new c.o("texMetallicRoughness",(e=>e.textureMetallicRoughness))),m&&n.uniforms.add(_===u.c.Pass?new d.N("texEmission",(e=>e.textureEmissive)):new c.o("texEmission",(e=>e.textureEmissive))),v&&n.uniforms.add(_===u.c.Pass?new d.N("texOcclusion",(e=>e.textureOcclusion)):new c.o("texOcclusion",(e=>e.textureOcclusion))),n.uniforms.add(_===u.c.Pass?new s.t("emissionFactor",(e=>e.emissiveFactor)):new a.W("emissionFactor",(e=>e.emissiveFactor)),_===u.c.Pass?new s.t("mrrFactors",(e=>e.mrrFactors)):new a.W("mrrFactors",(e=>e.mrrFactors))),n.code.add(l.H`
797
797
  ${(0,l.If)(h,l.H`void applyMetallicRoughness(vec2 uv) {
package/interfaces.d.ts CHANGED
@@ -122208,6 +122208,7 @@ declare namespace __esri {
122208
122208
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#triggerAction)
122209
122209
  */
122210
122210
  triggerAction(action: ActionButton | ActionToggle, item: TableListListItem): void;
122211
+ on(name: "trigger-action", eventHandler: TableListTriggerActionEventHandler): IHandle;
122211
122212
  }
122212
122213
 
122213
122214
  interface TableListProperties extends WidgetProperties {
@@ -122621,6 +122622,11 @@ declare namespace __esri {
122621
122622
 
122622
122623
  export type TableListListItemCreatedHandler = (event: any) => void;
122623
122624
 
122625
+ export interface TableListTriggerActionEvent {
122626
+ action: ActionButton | ActionToggle;
122627
+ item: TableListListItem;
122628
+ }
122629
+
122624
122630
  /**
122625
122631
  * The visible elements that are displayed within the widget.
122626
122632
  *
@@ -126866,6 +126872,7 @@ declare namespace __esri {
126866
126872
  export type SubtypeGroupLayerLayerviewCreateEventHandler = (event: SubtypeGroupLayerLayerviewCreateEvent) => void;
126867
126873
  export type SubtypeGroupLayerLayerviewDestroyEventHandler = (event: SubtypeGroupLayerLayerviewDestroyEvent) => void;
126868
126874
  export type SubtypeGroupLayerRefreshEventHandler = (event: SubtypeGroupLayerRefreshEvent) => void;
126875
+ export type TableListTriggerActionEventHandler = (event: TableListTriggerActionEvent) => void;
126869
126876
  export type TableListViewModelTriggerActionEventHandler = (event: TableListViewModelTriggerActionEvent) => void;
126870
126877
  export type TileLayerLayerviewCreateErrorEventHandler = (event: TileLayerLayerviewCreateErrorEvent) => void;
126871
126878
  export type TileLayerLayerviewCreateEventHandler = (event: TileLayerLayerviewCreateEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.31.0-next.20240713",
3
+ "version": "4.31.0-next.20240715",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- const a="20240713",b="8aa86f8bb15d8650a27482823b5e02efd951c7fd";export{a as buildDate,b as commitHash};
5
+ const a="20240715",b="02d22b92c0ca20b1e613ba19f43171a9381f8f86";export{a as buildDate,b as commitHash};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../../../chunks/tslib.es6.js";import{ComponentDataType as e}from"./shader/ComponentData.glsl.js";import{VertexDiscardMode as t}from"./shader/VertexDiscardByOpacity.glsl.js";import{ShaderOutput as r}from"../../../core/shaderLibrary/ShaderOutput.js";import{NormalType as s}from"../../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttributeType as i}from"../../../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{NormalsDoubleSidedMode as a}from"../../../core/shaderLibrary/shading/Normals.glsl.js";import{PBRMode as p}from"../../../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{EllipsoidMode as d}from"../../../core/shaderLibrary/util/EllipsoidMode.js";import{BindType as n}from"../../../core/shaderTechnique/BindType.js";import{parameter as l,ShaderTechniqueConfiguration as c}from"../../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{CullFaceOptions as h,AlphaDiscardMode as u}from"../../../lib/basicInterfaces.js";import{TransparencyPassType as y}from"../../../lib/TransparencyPassType.js";var v;!function(o){o[o.None=0]="None",o[o.NoOverlay=1]="NoOverlay",o[o.ColorOverlay=2]="ColorOverlay",o[o.ColorOverlayWithWater=3]="ColorOverlayWithWater",o[o.COUNT=4]="COUNT"}(v||(v={}));class m extends c{constructor(){super(...arguments),this.output=r.Color,this.textureCoordinateType=i.None,this.componentData=e.Uniform,this.cullFace=h.Back,this.vertexDiscardMode=t.None,this.doubleSidedMode=a.WindingOrder,this.alphaDiscardMode=u.Opaque,this.integratedMeshMode=v.None,this.transparencyPassType=y.NONE,this.ellipsoidMode=d.Earth,this.pbrMode=p.Disabled,this.normalType=s.Attribute,this.spherical=!1,this.doublePrecisionRequiresObfuscation=!1,this.hasVertexColors=!1,this.hasNormals=!1,this.hasSlicePlane=!1,this.hasColorTexture=!1,this.receiveAmbientOcclusion=!0,this.receiveShadows=!0,this.blendingEnabled=!0,this.hasScreenSpaceReflections=!1,this.hasPolygonOffset=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.cullAboveGround=!1,this.hasNormalTextureTransform=!1,this.hasCloudsReflections=!0,this.snowCover=!1,this.objectAndLayerIdColor=!1}}o([l({count:r.COUNT})],m.prototype,"output",void 0),o([l({count:i.COUNT})],m.prototype,"textureCoordinateType",void 0),o([l({count:e.COUNT})],m.prototype,"componentData",void 0),o([l({count:h.COUNT})],m.prototype,"cullFace",void 0),o([l({count:t.COUNT})],m.prototype,"vertexDiscardMode",void 0),o([l({count:a.COUNT})],m.prototype,"doubleSidedMode",void 0),o([l({count:u.COUNT})],m.prototype,"alphaDiscardMode",void 0),o([l({count:v.COUNT})],m.prototype,"integratedMeshMode",void 0),o([l({count:y.COUNT})],m.prototype,"transparencyPassType",void 0),o([l({count:d.COUNT})],m.prototype,"ellipsoidMode",void 0),o([l({count:p.COUNT})],m.prototype,"pbrMode",void 0),o([l({count:s.COUNT})],m.prototype,"normalType",void 0),o([l()],m.prototype,"spherical",void 0),o([l()],m.prototype,"doublePrecisionRequiresObfuscation",void 0),o([l()],m.prototype,"hasVertexColors",void 0),o([l()],m.prototype,"hasNormals",void 0),o([l()],m.prototype,"hasSlicePlane",void 0),o([l()],m.prototype,"hasColorTexture",void 0),o([l()],m.prototype,"receiveAmbientOcclusion",void 0),o([l()],m.prototype,"receiveShadows",void 0),o([l()],m.prototype,"blendingEnabled",void 0),o([l()],m.prototype,"hasScreenSpaceReflections",void 0),o([l()],m.prototype,"hasPolygonOffset",void 0),o([l()],m.prototype,"hasMetallicRoughnessTexture",void 0),o([l()],m.prototype,"hasEmissionTexture",void 0),o([l()],m.prototype,"hasOcclusionTexture",void 0),o([l()],m.prototype,"hasNormalTexture",void 0),o([l()],m.prototype,"hasOccludees",void 0),o([l()],m.prototype,"multipassEnabled",void 0),o([l()],m.prototype,"cullAboveGround",void 0),o([l()],m.prototype,"hasNormalTextureTransform",void 0),o([l()],m.prototype,"hasCloudsReflections",void 0),o([l()],m.prototype,"snowCover",void 0),o([l()],m.prototype,"objectAndLayerIdColor",void 0),o([l({constValue:!1})],m.prototype,"discardInvisibleFragments",void 0),o([l({constValue:!1})],m.prototype,"occlusionPass",void 0),o([l({constValue:n.Draw})],m.prototype,"pbrTextureBindType",void 0),o([l({constValue:!0})],m.prototype,"hasSliceHighlight",void 0),o([l({constValue:!1})],m.prototype,"hasSliceInVertexProgram",void 0),o([l({constValue:!1})],m.prototype,"useCustomDTRExponentForWater",void 0),o([l({constValue:!1})],m.prototype,"hasVertexTangents",void 0),o([l({constValue:!0})],m.prototype,"supportsTextureAtlas",void 0),o([l({constValue:!1})],m.prototype,"highStepCount",void 0),o([l({constValue:!1})],m.prototype,"instancedDoublePrecision",void 0),o([l({constValue:!1})],m.prototype,"hasModelTransformation",void 0),o([l({constValue:!0})],m.prototype,"useFillLights",void 0),o([l({constValue:!1})],m.prototype,"objectAndLayerIdColorInstanced",void 0);export{m as ComponentTechniqueConfiguration,v as IntegratedMeshMode};
5
+ import{_ as o}from"../../../../../../chunks/tslib.es6.js";import{ComponentDataType as e}from"./shader/ComponentData.glsl.js";import{VertexDiscardMode as t}from"./shader/VertexDiscardByOpacity.glsl.js";import{ShaderOutput as r}from"../../../core/shaderLibrary/ShaderOutput.js";import{NormalType as s}from"../../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttributeType as i}from"../../../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{NormalsDoubleSidedMode as a}from"../../../core/shaderLibrary/shading/Normals.glsl.js";import{PBRMode as p}from"../../../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{EllipsoidMode as d}from"../../../core/shaderLibrary/util/EllipsoidMode.js";import{BindType as n}from"../../../core/shaderTechnique/BindType.js";import{parameter as l,ShaderTechniqueConfiguration as c}from"../../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{CullFaceOptions as h,AlphaDiscardMode as u}from"../../../lib/basicInterfaces.js";import{TransparencyPassType as y}from"../../../lib/TransparencyPassType.js";var v;!function(o){o[o.None=0]="None",o[o.NoOverlay=1]="NoOverlay",o[o.ColorOverlay=2]="ColorOverlay",o[o.ColorOverlayWithWater=3]="ColorOverlayWithWater",o[o.COUNT=4]="COUNT"}(v||(v={}));class m extends c{constructor(){super(...arguments),this.output=r.Color,this.textureCoordinateType=i.None,this.componentData=e.Uniform,this.cullFace=h.Back,this.vertexDiscardMode=t.None,this.doubleSidedMode=a.WindingOrder,this.alphaDiscardMode=u.Opaque,this.integratedMeshMode=v.None,this.transparencyPassType=y.NONE,this.ellipsoidMode=d.Earth,this.pbrMode=p.Disabled,this.normalType=s.Attribute,this.spherical=!1,this.doublePrecisionRequiresObfuscation=!1,this.hasVertexColors=!1,this.hasNormals=!1,this.hasSlicePlane=!1,this.hasColorTexture=!1,this.receiveAmbientOcclusion=!0,this.receiveShadows=!0,this.blendingEnabled=!0,this.hasScreenSpaceReflections=!1,this.hasPolygonOffset=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.cullAboveGround=!1,this.hasNormalTextureTransform=!1,this.hasCloudsReflections=!0,this.snowCover=!1,this.objectAndLayerIdColor=!1}}o([l({count:r.COUNT})],m.prototype,"output",void 0),o([l({count:i.COUNT})],m.prototype,"textureCoordinateType",void 0),o([l({count:e.COUNT})],m.prototype,"componentData",void 0),o([l({count:h.COUNT})],m.prototype,"cullFace",void 0),o([l({count:t.COUNT})],m.prototype,"vertexDiscardMode",void 0),o([l({count:a.COUNT})],m.prototype,"doubleSidedMode",void 0),o([l({count:u.COUNT})],m.prototype,"alphaDiscardMode",void 0),o([l({count:v.COUNT})],m.prototype,"integratedMeshMode",void 0),o([l({count:y.COUNT})],m.prototype,"transparencyPassType",void 0),o([l({count:d.COUNT})],m.prototype,"ellipsoidMode",void 0),o([l({count:p.COUNT})],m.prototype,"pbrMode",void 0),o([l({count:s.COUNT})],m.prototype,"normalType",void 0),o([l()],m.prototype,"spherical",void 0),o([l()],m.prototype,"doublePrecisionRequiresObfuscation",void 0),o([l()],m.prototype,"hasVertexColors",void 0),o([l()],m.prototype,"hasNormals",void 0),o([l()],m.prototype,"hasSlicePlane",void 0),o([l()],m.prototype,"hasColorTexture",void 0),o([l()],m.prototype,"receiveAmbientOcclusion",void 0),o([l()],m.prototype,"receiveShadows",void 0),o([l()],m.prototype,"blendingEnabled",void 0),o([l()],m.prototype,"hasScreenSpaceReflections",void 0),o([l()],m.prototype,"hasPolygonOffset",void 0),o([l()],m.prototype,"hasMetallicRoughnessTexture",void 0),o([l()],m.prototype,"hasEmissionTexture",void 0),o([l()],m.prototype,"hasOcclusionTexture",void 0),o([l()],m.prototype,"hasNormalTexture",void 0),o([l()],m.prototype,"hasOccludees",void 0),o([l()],m.prototype,"multipassEnabled",void 0),o([l()],m.prototype,"cullAboveGround",void 0),o([l()],m.prototype,"hasNormalTextureTransform",void 0),o([l()],m.prototype,"hasCloudsReflections",void 0),o([l()],m.prototype,"snowCover",void 0),o([l()],m.prototype,"objectAndLayerIdColor",void 0),o([l({constValue:!1})],m.prototype,"discardInvisibleFragments",void 0),o([l({constValue:!1})],m.prototype,"occlusionPass",void 0),o([l({constValue:n.Draw})],m.prototype,"bindType",void 0),o([l({constValue:!0})],m.prototype,"hasSliceHighlight",void 0),o([l({constValue:!1})],m.prototype,"hasSliceInVertexProgram",void 0),o([l({constValue:!1})],m.prototype,"useCustomDTRExponentForWater",void 0),o([l({constValue:!1})],m.prototype,"hasVertexTangents",void 0),o([l({constValue:!1})],m.prototype,"highStepCount",void 0),o([l({constValue:!1})],m.prototype,"instancedDoublePrecision",void 0),o([l({constValue:!1})],m.prototype,"hasModelTransformation",void 0),o([l({constValue:!0})],m.prototype,"useFillLights",void 0),o([l({constValue:!1})],m.prototype,"objectAndLayerIdColorInstanced",void 0);export{m as ComponentTechniqueConfiguration,v as IntegratedMeshMode};
@@ -23,7 +23,7 @@ T = T - normal * dot(normal, T);
23
23
  T *= inversesqrt(max(dot(T,T), 1.e-10));
24
24
  vec3 B = sign(det) * cross(normal, T);
25
25
  return mat3(T, B, normal);
26
- }`),u.textureCoordinateType!==r.None&&(T.include(a,u),x.uniforms.add(u.pbrTextureBindType===i.Pass?new l("normalTexture",(e=>e.textureNormal)):new d("normalTexture",(e=>e.textureNormal))),u.hasNormalTextureTransform&&(x.uniforms.add(new o("scale",(e=>e.scale??t))),x.uniforms.add(new m("normalTextureTransformMatrix",(t=>t.normalTextureTransformMatrix??e)))),x.code.add(s`vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) {
26
+ }`),u.textureCoordinateType!==r.None&&(T.include(a,u),x.uniforms.add(u.bindType===i.Pass?new l("normalTexture",(e=>e.textureNormal)):new d("normalTexture",(e=>e.textureNormal))),u.hasNormalTextureTransform&&(x.uniforms.add(new o("scale",(e=>e.scale??t))),x.uniforms.add(new m("normalTextureTransformMatrix",(t=>t.normalTextureTransformMatrix??e)))),x.code.add(s`vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) {
27
27
  vec3 rawNormal = textureLookup(normalTexture, uv).rgb * 2.0 - 1.0;`),u.hasNormalTextureTransform&&x.code.add(s`mat3 normalTextureRotation = mat3(normalTextureTransformMatrix[0][0]/scale[0], normalTextureTransformMatrix[0][1]/scale[1], 0.0,
28
28
  normalTextureTransformMatrix[1][0]/scale[0], normalTextureTransformMatrix[1][1]/scale[1], 0.0,
29
29
  0.0, 0.0, 0.0 );
@@ -7,7 +7,7 @@ float getBakedOcclusion() { return 1.0; }`);if(m===u.Schematic)return void d.cod
7
7
  vec3 emission = vec3(0.0);
8
8
  float occlusion = 1.0;
9
9
  void applyPBRFactors() {}
10
- float getBakedOcclusion() { return 1.0; }`);const{hasMetallicRoughnessTexture:v,hasMetallicRoughnessTextureTransform:p,hasEmissionTexture:h,hasEmissiveTextureTransform:f,hasOcclusionTexture:x,hasOcclusionTextureTransform:g,pbrTextureBindType:T}=l;(v||h||x)&&n.include(e,l),d.code.add(r`vec3 mrr;
10
+ float getBakedOcclusion() { return 1.0; }`);const{hasMetallicRoughnessTexture:v,hasMetallicRoughnessTextureTransform:p,hasEmissionTexture:h,hasEmissiveTextureTransform:f,hasOcclusionTexture:x,hasOcclusionTextureTransform:g,bindType:T}=l;(v||h||x)&&n.include(e,l),d.code.add(r`vec3 mrr;
11
11
  vec3 emission;
12
12
  float occlusion;`),v&&d.uniforms.add(T===c.Pass?new a("texMetallicRoughness",(e=>e.textureMetallicRoughness)):new t("texMetallicRoughness",(e=>e.textureMetallicRoughness))),h&&d.uniforms.add(T===c.Pass?new a("texEmission",(e=>e.textureEmissive)):new t("texEmission",(e=>e.textureEmissive))),x&&d.uniforms.add(T===c.Pass?new a("texOcclusion",(e=>e.textureOcclusion)):new t("texOcclusion",(e=>e.textureOcclusion))),d.uniforms.add(T===c.Pass?new o("emissionFactor",(e=>e.emissiveFactor)):new s("emissionFactor",(e=>e.emissiveFactor)),T===c.Pass?new o("mrrFactors",(e=>e.mrrFactors)):new s("mrrFactors",(e=>e.mrrFactors))),d.code.add(r`
13
13
  ${i(v,r`void applyMetallicRoughness(vec2 uv) {
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../../chunks/tslib.es6.js";import{InstancedDoubleConfiguration as o}from"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import{BindType as r}from"../core/shaderTechnique/BindType.js";import{parameter as s}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";class t extends o{}e([s({constValue:!0})],t.prototype,"hasSliceHighlight",void 0),e([s({constValue:!1})],t.prototype,"hasSliceInVertexProgram",void 0),e([s({constValue:r.Pass})],t.prototype,"pbrTextureBindType",void 0);export{t as DefaultTechniqueConfiguration};
5
+ import{_ as e}from"../../../../chunks/tslib.es6.js";import{InstancedDoubleConfiguration as o}from"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import{BindType as r}from"../core/shaderTechnique/BindType.js";import{parameter as s}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";class i extends o{}e([s({constValue:!0})],i.prototype,"hasSliceHighlight",void 0),e([s({constValue:!1})],i.prototype,"hasSliceInVertexProgram",void 0),e([s({constValue:r.Pass})],i.prototype,"bindType",void 0);export{i as DefaultTechniqueConfiguration};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../chunks/tslib.es6.js";import{ShaderOutput as t}from"../core/shaderLibrary/ShaderOutput.js";import{NormalType as e}from"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttributeType as s}from"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{NormalsDoubleSidedMode as r}from"../core/shaderLibrary/shading/Normals.glsl.js";import{PBRMode as i}from"../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{parameter as a}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{AlphaDiscardMode as p,CullFaceOptions as n,DepthTestFunction as h}from"../lib/basicInterfaces.js";import{TransparencyPassType as d}from"../lib/TransparencyPassType.js";import{DefaultTechniqueConfiguration as l}from"../materials/DefaultTechniqueConfiguration.js";class c extends l{constructor(){super(...arguments),this.output=t.Color,this.alphaDiscardMode=p.Opaque,this.doubleSidedMode=r.None,this.pbrMode=i.Disabled,this.cullFace=n.None,this.transparencyPassType=d.NONE,this.normalType=e.Attribute,this.textureCoordinateType=s.None,this.customDepthTest=h.Less,this.spherical=!1,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.vvSize=!1,this.vvColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instanced=!1,this.instancedColor=!1,this.objectAndLayerIdColorInstanced=!1,this.instancedDoublePrecision=!1,this.doublePrecisionRequiresObfuscation=!1,this.writeDepth=!0,this.transparent=!1,this.discardInvisibleFragments=!1,this.enableOffset=!0,this.cullAboveGround=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1}}o([a({count:t.COUNT})],c.prototype,"output",void 0),o([a({count:p.COUNT})],c.prototype,"alphaDiscardMode",void 0),o([a({count:r.COUNT})],c.prototype,"doubleSidedMode",void 0),o([a({count:i.COUNT})],c.prototype,"pbrMode",void 0),o([a({count:n.COUNT})],c.prototype,"cullFace",void 0),o([a({count:d.COUNT})],c.prototype,"transparencyPassType",void 0),o([a({count:e.COUNT})],c.prototype,"normalType",void 0),o([a({count:s.COUNT})],c.prototype,"textureCoordinateType",void 0),o([a({count:h.COUNT})],c.prototype,"customDepthTest",void 0),o([a()],c.prototype,"spherical",void 0),o([a()],c.prototype,"hasVertexColors",void 0),o([a()],c.prototype,"hasSymbolColors",void 0),o([a()],c.prototype,"hasVerticalOffset",void 0),o([a()],c.prototype,"hasSlicePlane",void 0),o([a()],c.prototype,"hasSliceHighlight",void 0),o([a()],c.prototype,"hasColorTexture",void 0),o([a()],c.prototype,"hasMetallicRoughnessTexture",void 0),o([a()],c.prototype,"hasEmissionTexture",void 0),o([a()],c.prototype,"hasOcclusionTexture",void 0),o([a()],c.prototype,"hasNormalTexture",void 0),o([a()],c.prototype,"hasScreenSizePerspective",void 0),o([a()],c.prototype,"hasVertexTangents",void 0),o([a()],c.prototype,"hasOccludees",void 0),o([a()],c.prototype,"multipassEnabled",void 0),o([a()],c.prototype,"hasModelTransformation",void 0),o([a()],c.prototype,"offsetBackfaces",void 0),o([a()],c.prototype,"vvSize",void 0),o([a()],c.prototype,"vvColor",void 0),o([a()],c.prototype,"receiveShadows",void 0),o([a()],c.prototype,"receiveAmbientOcclusion",void 0),o([a()],c.prototype,"textureAlphaPremultiplied",void 0),o([a()],c.prototype,"instanced",void 0),o([a()],c.prototype,"instancedColor",void 0),o([a()],c.prototype,"objectAndLayerIdColorInstanced",void 0),o([a()],c.prototype,"instancedDoublePrecision",void 0),o([a()],c.prototype,"doublePrecisionRequiresObfuscation",void 0),o([a()],c.prototype,"writeDepth",void 0),o([a()],c.prototype,"transparent",void 0),o([a()],c.prototype,"discardInvisibleFragments",void 0),o([a()],c.prototype,"enableOffset",void 0),o([a()],c.prototype,"cullAboveGround",void 0),o([a()],c.prototype,"snowCover",void 0),o([a()],c.prototype,"hasColorTextureTransform",void 0),o([a()],c.prototype,"hasEmissionTextureTransform",void 0),o([a()],c.prototype,"hasNormalTextureTransform",void 0),o([a()],c.prototype,"hasOcclusionTextureTransform",void 0),o([a()],c.prototype,"hasMetallicRoughnessTextureTransform",void 0),o([a({constValue:!1})],c.prototype,"occlusionPass",void 0),o([a({constValue:!0})],c.prototype,"hasVvInstancing",void 0),o([a({constValue:!1})],c.prototype,"useCustomDTRExponentForWater",void 0),o([a({constValue:!1})],c.prototype,"supportsTextureAtlas",void 0),o([a({constValue:!0})],c.prototype,"useFillLights",void 0);export{c as DefaultMaterialTechniqueConfiguration};
5
+ import{_ as o}from"../../../../chunks/tslib.es6.js";import{ShaderOutput as e}from"../core/shaderLibrary/ShaderOutput.js";import{NormalType as t}from"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttributeType as s}from"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{NormalsDoubleSidedMode as r}from"../core/shaderLibrary/shading/Normals.glsl.js";import{PBRMode as i}from"../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{parameter as a}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{AlphaDiscardMode as p,CullFaceOptions as n,DepthTestFunction as h}from"../lib/basicInterfaces.js";import{TransparencyPassType as d}from"../lib/TransparencyPassType.js";import{DefaultTechniqueConfiguration as l}from"../materials/DefaultTechniqueConfiguration.js";class c extends l{constructor(){super(...arguments),this.output=e.Color,this.alphaDiscardMode=p.Opaque,this.doubleSidedMode=r.None,this.pbrMode=i.Disabled,this.cullFace=n.None,this.transparencyPassType=d.NONE,this.normalType=t.Attribute,this.textureCoordinateType=s.None,this.customDepthTest=h.Less,this.spherical=!1,this.hasVertexColors=!1,this.hasSymbolColors=!1,this.hasVerticalOffset=!1,this.hasSlicePlane=!1,this.hasSliceHighlight=!0,this.hasColorTexture=!1,this.hasMetallicRoughnessTexture=!1,this.hasEmissionTexture=!1,this.hasOcclusionTexture=!1,this.hasNormalTexture=!1,this.hasScreenSizePerspective=!1,this.hasVertexTangents=!1,this.hasOccludees=!1,this.multipassEnabled=!1,this.hasModelTransformation=!1,this.offsetBackfaces=!1,this.vvSize=!1,this.vvColor=!1,this.receiveShadows=!1,this.receiveAmbientOcclusion=!1,this.textureAlphaPremultiplied=!1,this.instanced=!1,this.instancedColor=!1,this.objectAndLayerIdColorInstanced=!1,this.instancedDoublePrecision=!1,this.doublePrecisionRequiresObfuscation=!1,this.writeDepth=!0,this.transparent=!1,this.discardInvisibleFragments=!1,this.enableOffset=!0,this.cullAboveGround=!1,this.snowCover=!1,this.hasColorTextureTransform=!1,this.hasEmissionTextureTransform=!1,this.hasNormalTextureTransform=!1,this.hasOcclusionTextureTransform=!1,this.hasMetallicRoughnessTextureTransform=!1}}o([a({count:e.COUNT})],c.prototype,"output",void 0),o([a({count:p.COUNT})],c.prototype,"alphaDiscardMode",void 0),o([a({count:r.COUNT})],c.prototype,"doubleSidedMode",void 0),o([a({count:i.COUNT})],c.prototype,"pbrMode",void 0),o([a({count:n.COUNT})],c.prototype,"cullFace",void 0),o([a({count:d.COUNT})],c.prototype,"transparencyPassType",void 0),o([a({count:t.COUNT})],c.prototype,"normalType",void 0),o([a({count:s.COUNT})],c.prototype,"textureCoordinateType",void 0),o([a({count:h.COUNT})],c.prototype,"customDepthTest",void 0),o([a()],c.prototype,"spherical",void 0),o([a()],c.prototype,"hasVertexColors",void 0),o([a()],c.prototype,"hasSymbolColors",void 0),o([a()],c.prototype,"hasVerticalOffset",void 0),o([a()],c.prototype,"hasSlicePlane",void 0),o([a()],c.prototype,"hasSliceHighlight",void 0),o([a()],c.prototype,"hasColorTexture",void 0),o([a()],c.prototype,"hasMetallicRoughnessTexture",void 0),o([a()],c.prototype,"hasEmissionTexture",void 0),o([a()],c.prototype,"hasOcclusionTexture",void 0),o([a()],c.prototype,"hasNormalTexture",void 0),o([a()],c.prototype,"hasScreenSizePerspective",void 0),o([a()],c.prototype,"hasVertexTangents",void 0),o([a()],c.prototype,"hasOccludees",void 0),o([a()],c.prototype,"multipassEnabled",void 0),o([a()],c.prototype,"hasModelTransformation",void 0),o([a()],c.prototype,"offsetBackfaces",void 0),o([a()],c.prototype,"vvSize",void 0),o([a()],c.prototype,"vvColor",void 0),o([a()],c.prototype,"receiveShadows",void 0),o([a()],c.prototype,"receiveAmbientOcclusion",void 0),o([a()],c.prototype,"textureAlphaPremultiplied",void 0),o([a()],c.prototype,"instanced",void 0),o([a()],c.prototype,"instancedColor",void 0),o([a()],c.prototype,"objectAndLayerIdColorInstanced",void 0),o([a()],c.prototype,"instancedDoublePrecision",void 0),o([a()],c.prototype,"doublePrecisionRequiresObfuscation",void 0),o([a()],c.prototype,"writeDepth",void 0),o([a()],c.prototype,"transparent",void 0),o([a()],c.prototype,"discardInvisibleFragments",void 0),o([a()],c.prototype,"enableOffset",void 0),o([a()],c.prototype,"cullAboveGround",void 0),o([a()],c.prototype,"snowCover",void 0),o([a()],c.prototype,"hasColorTextureTransform",void 0),o([a()],c.prototype,"hasEmissionTextureTransform",void 0),o([a()],c.prototype,"hasNormalTextureTransform",void 0),o([a()],c.prototype,"hasOcclusionTextureTransform",void 0),o([a()],c.prototype,"hasMetallicRoughnessTextureTransform",void 0),o([a({constValue:!1})],c.prototype,"occlusionPass",void 0),o([a({constValue:!0})],c.prototype,"hasVvInstancing",void 0),o([a({constValue:!1})],c.prototype,"useCustomDTRExponentForWater",void 0),o([a({constValue:!0})],c.prototype,"useFillLights",void 0);export{c as DefaultMaterialTechniqueConfiguration};