@arcgis/core 5.2.0-next.55 → 5.2.0-next.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{7e2bf6dd26c3cf0b49b0.js → 2190034c14ab3a25ac20.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{a239f1e82dde4f7ada32.js → 2c29085c5e649971b31b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{77f19d204a4673b1e676.js → 46756a7f014d9d5b3f6c.js} +2 -2
  5. package/assets/esri/core/workers/chunks/4abd54518e35050feb90.js +1 -0
  6. package/assets/esri/core/workers/chunks/61d0ada7627f21988183.js +1 -0
  7. package/assets/esri/core/workers/chunks/{c38992b250731137cb1a.js → 6e84140c6129c5a666f7.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{5d6d07ecebf881ad913f.js → 8b80dd993ed14ec263c8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/8ce649e55fefc8eca55c.js +1 -0
  10. package/assets/esri/core/workers/chunks/{2fbb00a29faeaa02912b.js → a4d9985391126e8ea06d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{0ffd0190adfed8e5937a.js → a633291cdaff7fb7ce80.js} +1 -1
  12. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +1 -0
  13. package/assets/esri/core/workers/chunks/{2d6d2d4df05bba9fa4a6.js → daae34cd086c0c6a5900.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{ce719d3aec8b52bfe160.js → ecff3a6ca99f2c88c837.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{847ce06b14a921cd16f0.js → facf7e07e758601b642f.js} +1 -1
  16. package/config.js +1 -1
  17. package/core/has.js +1 -1
  18. package/geometry/support/normalizeUtilsSync.js +1 -1
  19. package/kernel.js +1 -1
  20. package/package.json +5 -5
  21. package/support/revision.js +1 -1
  22. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  23. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  24. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  25. package/views/3d/layers/I3SMeshView3D.js +1 -1
  26. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  27. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  28. package/views/3d/layers/graphics/SpatialIndex2D.js +1 -1
  29. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  30. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  31. package/views/3d/support/ElevationUpdateEvent.js +2 -0
  32. package/views/3d/support/elevationUpdateExtentUtils.js +2 -0
  33. package/views/3d/terrain/TerrainSurface.js +1 -1
  34. package/views/SceneView.js +1 -1
  35. package/assets/esri/core/workers/chunks/2da337d7fd9295f6b967.js +0 -1
  36. package/assets/esri/core/workers/chunks/9e474465d069cb9e94f5.js +0 -1
  37. package/assets/esri/core/workers/chunks/c5043c42a6aaa276a521.js +0 -1
  38. package/assets/esri/core/workers/chunks/c8db0a4fb5bc982dc9fc.js +0 -1
  39. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +0 -2
  40. package/views/3d/terrain/ElevationUpdateEvent.js +0 -2
  41. /package/assets/esri/core/workers/chunks/{77f19d204a4673b1e676.js.LICENSE.txt → 46756a7f014d9d5b3f6c.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 77f19d204a4673b1e676.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5710],{48649(t,e,s){s.d(e,{C:()=>f});var i=s(76308),o=s(8085),n=s(46913),r=s(17495),a=s(92568);let c;const h=()=>{c?.forEach(({callbacks:t},e)=>{const s=Object.keys(e);t.forEach(t=>t(s))}),c=void 0},l=(t,e,s)=>{const o=t.manager;return o.V!==n.s6&&o.V!==s&&o.S(void 0,void 0),0===o.T.length&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=s,o.T.push((t,o)=>(0,i.UF)(e,void 0,s===o?t:void 0)),s},d=(t=[(0,o.r)(),...(0,o.d)()],e,s)=>{const n=Array.isArray(t)?t:[t];let r=n.length+1;const a=t=>{r-=1,void 0!==t&&(r=Math.min(r,0)),0===r&&e(t)};n.forEach(t=>((t,e,s)=>{const o=Object.keys(t),n=o.length;void 0===c&&queueMicrotask(h),c??=new Map;let r=c.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},c.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach(t=>t(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(o=>{const r=t=>(0,i.UF)(e,null,t),a=o[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)}),s})(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!1}),s));for(const t of n)if("manager"in t&&t.manager.component===t){l(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!0}),s);break}return s},u=((t="",e={},s=(0,o.r)())=>{const i={emit:i=>{""===t&&h();const o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(o),o}};return""===t&&d(void 0,e=>t=e.key,i),i}).bind(null,"");var p;p=o.c;class f{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#i=[],this.#o=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new r.cY,this.connectedCalled=!1,this.loadedCalled=!1,this[p]=!0,this.#l=[];const e=this,s=t??(0,o.r)(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=y(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||((0,o.b)(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#i;#o;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch((0,a.G3)(this.#d))}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(i.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?y(t):t,this.#l.forEach(i.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return(0,o.a)(this.#d),o.u}get useRef(){return(0,o.a)(this.#d),o.j}get useRefSync(){return(0,o.a)(this.#d),o.k}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#i.push(t)}onUpdate(t){this.#o.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,i.UF)(t.hostConnected,t),t.#t.forEach(i.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,i.UF)(t.hostDisconnected,t),t.#e.forEach(i.UF),t.#c.forEach(i.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,i.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(i.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,i.UF)(this.hostLoaded,this),this.#i.forEach(i.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,i.UF)(this.hostUpdate,this,t),this.#o.forEach(m,t)}triggerUpdated(t){this.hostUpdated&&(0,i.UF)(this.hostUpdated,this,t),this.#n.forEach(m,t)}triggerDestroy(){this.hostDestroy&&(0,i.UF)(this.hostDestroy,this),this.#r.forEach(i.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(t){(0,o.a)(this.#d);const e=(0,i.UF)(t);(Array.isArray(e)?e:[e]).forEach(t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)})}}function m(t){(0,i.UF)(t,void 0,this)}const g=f,y=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,i){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,i):void 0}});return e};s.d(e,["G",0,g,"c",0,u,"p",0,h,"t",0,d])},8085(t,e,s){s.d(e,{s:()=>h});const i=Symbol.for("controller");let o;const n=t=>o;let r,a=[];const c=t=>{const e=n().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(i in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=r;return r=void 0,t})();return void 0!==s?s:void 0};let h=!1;s.d(e,["a",0,t=>{o!==t&&(o=t,queueMicrotask(()=>o===t?o=void 0:0))},"b",0,t=>{if(void 0===t)return void(a=[]);const e=a.indexOf(t);a=-1===e?[...a,t]:a.slice(0,e+1),queueMicrotask(()=>a=[])},"c",0,i,"d",0,()=>a,"e",0,t=>{h=!0;try{return t()}finally{h=!1}},"h",0,t=>{r!==t&&(r=t,queueMicrotask(()=>r===t?r=void 0:0))},"i",0,t=>"function"==typeof t?.then,"j",0,async t=>{const e=c(t);return await e.ready,e},"k",0,c,"r",0,n,"u",0,async(t,e)=>{const s=c(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports(s=>e(s,t))}return s.exports}])},72843(t,e,s){s.d(e,{WF:()=>T,le:()=>k,s6:()=>x,CP:()=>L,zl:()=>O,Bq:()=>R,pf:()=>M});var i=s(48649);s(22343);var o=s(17495);const n=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},r={};function a(){}function c(t){for(const e of["Associated","Disabled","Reset","StateRestore"]){const s=`orm${e}Callback`;t.prototype["f"+s]=async function(...t){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${s}`,{detail:t}))}}}const h=Object.defineProperty,l=globalThis.HTMLElement??a;class d extends l{constructor(){super(),this.#f={},this.#m=[],this.I=new o.cY,this.H=new o.cY,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(e=>{Object.hasOwn(t,e)&&(t.#f[e]=t[e],delete t[e])}),e.A?t.#g({a:e.A}):e.B.then(async s=>{await e.K.p,t.#g(await(s.default?.then(t=>"function"==typeof t?{a:t}:t)??s))}).catch(e=>{t.H.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#f[t]},set(e){this.#f[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#y||await this.H.promise;const s=this.#y;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#y[t](...e)},configurable:!0})}static{c(this)}#y;#f;#m;get manager(){return this.#y?.manager}attributeChangedCallback(t,e,s){this.#y?.attributeChangedCallback(t,e,s),this.#y||this.#m.push(t)}connectedCallback(){this.#y?this.#y.connectedCallback?.():queueMicrotask(()=>this.G=n(this))}disconnectedCallback(){this.#y?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#g(t){const e=this.constructor,s=e.L,i=this.#f,o=Object.values(t).find(t=>t.L===s),n=`${s}--lazy`;let r=o;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=o,customElements.define(n,o)),o.N=this;const a=document.createElement(n);o.N=void 0,this.#y=a,this.#f=a,this.#m.forEach(t=>a.attributeChangedCallback(t,null,this.getAttribute(t))),Object.entries(i).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#y?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},e.hasAttribute=function(t){return s.hasAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(76308),m=s(22455),g=s(46913),y=s(8085);class $ extends i.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=g.s6,this.T=[],this.#$=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=_ in t&&"function"==typeof t.destroy,g.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${_} prop.`)}void 0!==this.#A&&clearTimeout(this.#A),(0,i.p)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,f.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,f.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,f.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,f.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,y.a)(t)}#A;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#A=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,f.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#A&&clearTimeout(this.#A),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#A=(0,o.oK)(t,A)}}S(t,e){const s=this.T;this.V=g.s6,this.T=[],s.forEach(s=>s(t,e))}#$;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#$.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#$.get(t):void 0}}let A=1e3;const _="autoDestroyDisabled";var v=s(60496),b=s(43356);const C=(0,b.u$)(class extends b.WL{constructor(t){if(super(t),t.type!==b.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return v.c0}}),E="important",w=" !"+E,U=(0,b.u$)(class extends b.WL{constructor(t){if(super(t),t.type!==b.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(w);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?E:""):s[t]=i}}return v.c0}});s(81718);var S=s(19313);class T extends g.WF{constructor(){super(),this.M=[],this.manager=new $(this);const t=this,e=t.constructor,s=e.N,i=e.K.o,n=T.prototype.shouldUpdate;t.#_=s?.H??new o.cY,t.I=s?.I??new o.cY,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#v=t.enableUpdating,t.enableUpdating=a,t.shouldUpdate!==n&&(t.#b=t.shouldUpdate,t.shouldUpdate=n),i&&(t.#C=new Map,e.elementProperties.forEach((e,s)=>t.#C.set(s,i()))),g.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===r;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,o=i?.hasChanged??g.Ec,n={attribute:!!(1&s&&"string"==typeof t)&&(0,m.j1)(t),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),useDefault:!!(128&s),c:!1,...i,hasChanged(t,e){const s=o(t,e);return n.c=s,s}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){const o=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return o.t?.(this.#C.get(t)),n.get?.call(this)},set(e){const o=this.manager;if(s.readOnly&&!y.s&&(o.R||o.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#C?.get(t)?.notify(),o.T.length>0&&((0,i.p)(),o?.S(t,e))}}}static{this.lumina=!0}static{c(this)}#C;#b;#v;#_;#E;#w;get elementInternals(){return this.#w??=this.el.attachInternals(),this.#w}connectedCallback(){this.hasAttribute("defer-hydration")||this.#U(!0)}#U(t){const e=this.constructor.K.c?.(()=>this.requestUpdate());this.#E=e;const s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#S().catch(t=>{this.#_.reject(t),setTimeout(()=>{throw t})})):e&&this.requestUpdate()}#T(t){try{this.#E.clear(),this.constructor.K.r(this.#E,()=>super.update(t))}catch(t){throw this.#E.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#E?.destroy(),this.#E=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===r?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#U(!1),g.WF.prototype.createRenderRoot.call(this),t;if(this.isConnected){const t=i.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map(t=>"styleSheet"in t?t.styleSheet:t)]}return i}async#S(){const t=this.el.G??n(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,f.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(t=>t.has(_)&&this.manager.U()),this.#v(!0),this.performUpdate(),this.I.resolve(),await 0;const s=this.J.filter(t=>!t.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async t=>await t.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,f.UF)(t.hostLoaded,t);this.loaded?.(),this.#_.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#b?.(t)??!0}update(t){this.#E?this.#T(t):super.update(t)}listen(t,e,s){const i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){const o=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,o,i),()=>t.removeEventListener(e,o,i)))}async componentOnReady(){return await this.#_.promise,this}addController(t){this.M.push(t),!(y.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const k=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},i={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=i,e.L=t,g.S$?function(){try{customElements.define(t,e)}catch{}}():customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),i},L=t=>"object"==typeof t&&null!=t?C(t):t,O=t=>"object"==typeof t&&null!=t?U(t):t;class P extends b.WL{#k;#L;constructor(t){super(t);const e=this;this.#L=function(t){return e.#k.call(this,t)}}render(t){return"function"==typeof t?(this.#k=t,(0,S.K)(this.#L)):(0,S.K)(t)}}(0,b.u$)(P);const x=g.s6;function R(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const M={toAttribute:t=>!0===t?"":!1===t?null:t}},76308(t,e,s){s.d(e,["UF",0,(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},"ao",0,async(t,e,...s)=>{try{const i=t?.call(e,...s);return await i}catch(e){console.error(e,t)}}])},92568(t,e,s){const i=new Set;const o=t=>"string"==typeof t?t:"el"in t?t.el.localName:"localName"in t?t.localName:t.declaredClass;s.d(e,["G3",0,t=>{const e=`[${o(t)}] `;return t=>{const s=t instanceof Error&&t.message?t:new Error(String(t));s.message=`${e}${s.message}`,setTimeout(()=>{throw t})}},"Rm",0,(t,e,s,n)=>{const r=o(e);if(n?.once){const e=`${t}${r}${s}`;if(i.has(e))return;i.add(e)}let a;if(n?.detail){a={};for(const[t,e]of Object.entries(n.detail))if("object"!=typeof e&&"function"!=typeof e||null===e)a[t]=e;else{const s=new WeakRef(e);Object.defineProperty(a,t,{enumerable:!0,get:()=>s.deref()})}console[t](`[${r}]: ${s}`,a)}else console[t](`[${r}]: ${s}`)}])},17495(t,e,s){s.d(e,{cY:()=>i});class i{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}s.d(e,["oK",0,(t,e)=>{const s=e>4e3?2e3:e/4;let i=0;const o=setInterval(()=>{i+=s,i>=e&&(clearInterval(o),t())},s);return o}])},22455(t,e,s){const i=/[A-Z]+(?![a-z])|[A-Z]/gu,o=t=>t.charAt(0).toUpperCase()+t.slice(1);crypto,s.d(e,["TK",0,t=>t.split("-").map(o).join(""),"YF",0,t=>t.charAt(0).toLowerCase()+t.slice(1),"j1",0,t=>t.replace(i,(t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)])},46227(t,e,s){s.d(e,{u:()=>i});function i(t){const e=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const i=s.getRootNode?.();if(i===globalThis.document)return;s=i?.host}})(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return e?.classList.contains("calcite-mode-dark")||e?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},31479(t,e,s){s.d(e,{a:()=>d}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(72843),o=s(46913);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"};function c(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),o=t=>{a!==t&&i(t),a=t};let a=s();i(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>o(t.matches?"dark":"light")),new MutationObserver(()=>o(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}let h;const l={focusTrapStack:[],logLevel:"info"};function d(){return h||(h={...l,...globalThis.calciteConfig??{}}),h}const u="5.1.1";o.S$||("interactive"===document.readyState?c():document.addEventListener("DOMContentLoaded",c,{once:!0})),queueMicrotask(function(){const t=d();t&&t.version||(console.info(`Using Calcite Components ${u} [Date: 2026-06-10, Revision: c8db0a41f]`),Object.defineProperty(t,"version",{value:u,writable:!1}),globalThis.calciteConfig=t)});const p=(0,i.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/5.1.1/",hydratedAttribute:"calcite-hydrated"}),{customElement:f,getAssetPath:m,setAssetPath:g}=p;s.d(e,["C",0,a,"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,f,"g",0,m,"s",0,g])},15968(t,e,s){s.d(e,{qu:()=>o});var i=s(31479);let o=!1;s.d(e,["Qu",0,t=>{o=!0,(0,i.s)(t)}])},22343(t,e,s){s.d(e,{mN:()=>w,AH:()=>c,Ec:()=>C});const i=globalThis,o=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new a(s,t,n)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,$=y.trustedTypes,A=$?$.emptyScript:"",_=y.reactiveElementPolyfillSupport,v=(t,e)=>t,b={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},C=(t,e)=>!d(t,e),E={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:C};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:b).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=i;const n=o.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s,i=!1,o){if(void 0!==t){const n=this.constructor;if(!1===i&&(o=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??C)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[v("elementProperties")]=new Map,w[v("finalized")]=new Map,_?.({ReactiveElement:w}),(y.reactiveElementVersions??=[]).push("2.1.2")},38632(t,e,s){var i=s(60496);const{I:o}=i.ge,n={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=n)=>t._$AH=e])},43356(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},60496(t,e,s){const i=globalThis,o=t=>t,n=i.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+c,l=`<${h}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,m=t=>f(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,A=/>/g,_=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,b=/"/g,C=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),w=E(1),U=E(2),S=E(3),T=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),L=new WeakMap,O=d.createTreeWalker(d,129);function P(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(e):e}const x=(t,e)=>{const s=t.length-1,i=[];let o,n=2===e?"<svg>":3===e?"<math>":"",r=y;for(let e=0;e<s;e++){const s=t[e];let h,d,u=-1,p=0;for(;p<s.length&&(r.lastIndex=p,d=r.exec(s),null!==d);)p=r.lastIndex,r===y?"!--"===d[1]?r=$:void 0!==d[1]?r=A:void 0!==d[2]?(C.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=_):void 0!==d[3]&&(r=_):r===_?">"===d[0]?(r=o??y,u=-1):void 0===d[1]?u=-2:(u=r.lastIndex-d[2].length,h=d[1],r=void 0===d[3]?_:'"'===d[3]?b:v):r===b||r===v?r=_:r===$||r===A?r=y:(r=_,o=void 0);const f=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===y?s+l:u>=0?(i.push(h),s.slice(0,u)+a+s.slice(u)+c+f):s+c+(-2===u?e:f)}return[P(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class R{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const l=t.length-1,d=this.parts,[p,f]=x(t,e);if(this.el=R.createElement(p,s),O.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=O.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(a)){const e=f[r++],s=i.getAttribute(t).split(c),n=/([.?@])?(.*)/.exec(e);d.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?H:"?"===n[1]?I:"@"===n[1]?F:j}),i.removeAttribute(t)}else t.startsWith(c)&&(d.push({type:6,index:o}),i.removeAttribute(t));if(C.test(i.tagName)){const t=i.textContent.split(c),e=t.length-1;if(e>0){i.textContent=n?n.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),O.nextNode(),d.push({type:2,index:++o});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===h)d.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(c,t+1));)d.push({type:7,index:o}),t+=c.length-1}o++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){if(e===T)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const n=p(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=M(t,o._$AS(t,e.values),o,i)),e}class D{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);O.currentNode=i;let o=O.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new N(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new W(o,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(o=O.nextNode(),n++)}return O.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),p(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):m(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=R.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new D(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new R(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new N(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class j{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=k}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(void 0===o)t=M(this,t,e,0),n=!p(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const i=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=M(this,i[s+r],e,r),a===T&&(a=this._$AH[r]),n||=!p(a)||a!==this._$AH[r],a===k?t=k:t!==k&&(t+=(a??"")+o[r+1]),this._$AH[r]=a}n&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}class I extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class F extends j{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??k)===T)return;const s=this._$AH,i=t===k&&s!==k||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==k&&(s===k||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const B={M:a,P:c,A:h,C:1,L:x,R:D,D:m,V:M,I:N,H:j,N:I,U:F,B:H,F:W},q=i.litHtmlPolyfillSupport;q?.(R,N),(i.litHtmlVersions??=[]).push("3.3.3"),s.d(e,["JW",0,U,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new N(e.insertBefore(u(),t),t,void 0,s??{})}return o._$AI(t),o},"c0",0,T,"ej",0,S,"ge",0,B,"qy",0,w,"s6",0,k])},81718(t,e,s){s.d(e,{V:()=>r});var i=s(60496),o=s(43356),n=s(38632);const r=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.PROPERTY&&t.type!==o.OA.ATTRIBUTE&&t.type!==o.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,r=t.name;if(t.type===o.OA.PROPERTY){if(e===s[r])return i.c0}else if(t.type===o.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return i.c0}else if(t.type===o.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return i.c0;return(0,n.mY)(t),e}})},19313(t,e,s){s.d(e,{_:()=>p,K:()=>g});var i=s(60496),o=s(38632),n=s(43356);const r=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),r(t,e);return!0},a=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},c=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function h(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)r(i[t],!1),a(i[t]);else null!=i&&(r(i,!1),a(i));else r(this,t)}const d=t=>{t.type==n.OA.CHILD&&(t._$AP??=l,t._$AQ??=h)};class u extends n.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(r(this,t),a(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new f;class f{}const m=new WeakMap,g=(0,n.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(void 0!==this.G)if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=m.get(e);void 0===s&&(s=new WeakMap,m.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},46913(t,e,s){s.d(e,{WF:()=>r,AH:()=>i.AH,qy:()=>o.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>o.s6,JW:()=>o.JW});var i=s(22343),o=s(60496);const n=globalThis;class r extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.2")}}]);
1
+ /*! For license information please see 46756a7f014d9d5b3f6c.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3992],{48649(t,e,s){s.d(e,{C:()=>f});var i=s(76308),o=s(8085),n=s(46913),r=s(17495),a=s(92568);let c;const h=()=>{c?.forEach(({callbacks:t},e)=>{const s=Object.keys(e);t.forEach(t=>t(s))}),c=void 0},l=(t,e,s)=>{const o=t.manager;return o.V!==n.s6&&o.V!==s&&o.S(void 0,void 0),0===o.T.length&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=s,o.T.push((t,o)=>(0,i.UF)(e,void 0,s===o?t:void 0)),s},d=(t=[(0,o.r)(),...(0,o.d)()],e,s)=>{const n=Array.isArray(t)?t:[t];let r=n.length+1;const a=t=>{r-=1,void 0!==t&&(r=Math.min(r,0)),0===r&&e(t)};n.forEach(t=>((t,e,s)=>{const o=Object.keys(t),n=o.length;void 0===c&&queueMicrotask(h),c??=new Map;let r=c.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},c.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach(t=>t(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(o=>{const r=t=>(0,i.UF)(e,null,t),a=o[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)}),s})(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!1}),s));for(const t of n)if("manager"in t&&t.manager.component===t){l(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!0}),s);break}return s},u=((t="",e={},s=(0,o.r)())=>{const i={emit:i=>{""===t&&h();const o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(o),o}};return""===t&&d(void 0,e=>t=e.key,i),i}).bind(null,"");var p;p=o.c;class f{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#i=[],this.#o=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new r.cY,this.connectedCalled=!1,this.loadedCalled=!1,this[p]=!0,this.#l=[];const e=this,s=t??(0,o.r)(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=y(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||((0,o.b)(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#i;#o;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch((0,a.G3)(this.#d))}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(i.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?y(t):t,this.#l.forEach(i.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return(0,o.a)(this.#d),o.u}get useRef(){return(0,o.a)(this.#d),o.j}get useRefSync(){return(0,o.a)(this.#d),o.k}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#i.push(t)}onUpdate(t){this.#o.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,i.UF)(t.hostConnected,t),t.#t.forEach(i.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,i.UF)(t.hostDisconnected,t),t.#e.forEach(i.UF),t.#c.forEach(i.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,i.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(i.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,i.UF)(this.hostLoaded,this),this.#i.forEach(i.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,i.UF)(this.hostUpdate,this,t),this.#o.forEach(m,t)}triggerUpdated(t){this.hostUpdated&&(0,i.UF)(this.hostUpdated,this,t),this.#n.forEach(m,t)}triggerDestroy(){this.hostDestroy&&(0,i.UF)(this.hostDestroy,this),this.#r.forEach(i.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(t){(0,o.a)(this.#d);const e=(0,i.UF)(t);(Array.isArray(e)?e:[e]).forEach(t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)})}}function m(t){(0,i.UF)(t,void 0,this)}const g=f,y=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,i){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,i):void 0}});return e};s.d(e,["G",0,g,"c",0,u,"p",0,h,"t",0,d])},8085(t,e,s){s.d(e,{s:()=>h});const i=Symbol.for("controller");let o;const n=t=>o;let r,a=[];const c=t=>{const e=n().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(i in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=r;return r=void 0,t})();return void 0!==s?s:void 0};let h=!1;s.d(e,["a",0,t=>{o!==t&&(o=t,queueMicrotask(()=>o===t?o=void 0:0))},"b",0,t=>{if(void 0===t)return void(a=[]);const e=a.indexOf(t);a=-1===e?[...a,t]:a.slice(0,e+1),queueMicrotask(()=>a=[])},"c",0,i,"d",0,()=>a,"e",0,t=>{h=!0;try{return t()}finally{h=!1}},"h",0,t=>{r!==t&&(r=t,queueMicrotask(()=>r===t?r=void 0:0))},"i",0,t=>"function"==typeof t?.then,"j",0,async t=>{const e=c(t);return await e.ready,e},"k",0,c,"r",0,n,"u",0,async(t,e)=>{const s=c(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports(s=>e(s,t))}return s.exports}])},72843(t,e,s){s.d(e,{WF:()=>T,le:()=>k,s6:()=>x,CP:()=>L,zl:()=>O,Bq:()=>R,pf:()=>M});var i=s(48649);s(22343);var o=s(17495);const n=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},r={};function a(){}function c(t){for(const e of["Associated","Disabled","Reset","StateRestore"]){const s=`orm${e}Callback`;t.prototype["f"+s]=async function(...t){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${s}`,{detail:t}))}}}const h=Object.defineProperty,l=globalThis.HTMLElement??a;class d extends l{constructor(){super(),this.#f={},this.#m=[],this.I=new o.cY,this.H=new o.cY,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(e=>{Object.hasOwn(t,e)&&(t.#f[e]=t[e],delete t[e])}),e.A?t.#g({a:e.A}):e.B.then(async s=>{await e.K.p,t.#g(await(s.default?.then(t=>"function"==typeof t?{a:t}:t)??s))}).catch(e=>{t.H.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#f[t]},set(e){this.#f[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#y||await this.H.promise;const s=this.#y;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#y[t](...e)},configurable:!0})}static{c(this)}#y;#f;#m;get manager(){return this.#y?.manager}attributeChangedCallback(t,e,s){this.#y?.attributeChangedCallback(t,e,s),this.#y||this.#m.push(t)}connectedCallback(){this.#y?this.#y.connectedCallback?.():queueMicrotask(()=>this.G=n(this))}disconnectedCallback(){this.#y?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#g(t){const e=this.constructor,s=e.L,i=this.#f,o=Object.values(t).find(t=>t.L===s),n=`${s}--lazy`;let r=o;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=o,customElements.define(n,o)),o.N=this;const a=document.createElement(n);o.N=void 0,this.#y=a,this.#f=a,this.#m.forEach(t=>a.attributeChangedCallback(t,null,this.getAttribute(t))),Object.entries(i).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#y?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},e.hasAttribute=function(t){return s.hasAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(76308),m=s(22455),g=s(46913),y=s(8085);class $ extends i.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=g.s6,this.T=[],this.#$=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=_ in t&&"function"==typeof t.destroy,g.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${_} prop.`)}void 0!==this.#A&&clearTimeout(this.#A),(0,i.p)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,f.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,f.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,f.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,f.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,y.a)(t)}#A;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#A=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,f.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#A&&clearTimeout(this.#A),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#A=(0,o.oK)(t,A)}}S(t,e){const s=this.T;this.V=g.s6,this.T=[],s.forEach(s=>s(t,e))}#$;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#$.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#$.get(t):void 0}}let A=1e3;const _="autoDestroyDisabled";var v=s(60496),b=s(43356);const C=(0,b.u$)(class extends b.WL{constructor(t){if(super(t),t.type!==b.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return v.c0}}),E="important",w=" !"+E,U=(0,b.u$)(class extends b.WL{constructor(t){if(super(t),t.type!==b.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(w);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?E:""):s[t]=i}}return v.c0}});s(81718);var S=s(19313);class T extends g.WF{constructor(){super(),this.M=[],this.manager=new $(this);const t=this,e=t.constructor,s=e.N,i=e.K.o,n=T.prototype.shouldUpdate;t.#_=s?.H??new o.cY,t.I=s?.I??new o.cY,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#v=t.enableUpdating,t.enableUpdating=a,t.shouldUpdate!==n&&(t.#b=t.shouldUpdate,t.shouldUpdate=n),i&&(t.#C=new Map,e.elementProperties.forEach((e,s)=>t.#C.set(s,i()))),g.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===r;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,o=i?.hasChanged??g.Ec,n={attribute:!!(1&s&&"string"==typeof t)&&(0,m.j1)(t),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),useDefault:!!(128&s),c:!1,...i,hasChanged(t,e){const s=o(t,e);return n.c=s,s}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){const o=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return o.t?.(this.#C.get(t)),n.get?.call(this)},set(e){const o=this.manager;if(s.readOnly&&!y.s&&(o.R||o.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#C?.get(t)?.notify(),o.T.length>0&&((0,i.p)(),o?.S(t,e))}}}static{this.lumina=!0}static{c(this)}#C;#b;#v;#_;#E;#w;get elementInternals(){return this.#w??=this.el.attachInternals(),this.#w}connectedCallback(){this.hasAttribute("defer-hydration")||this.#U(!0)}#U(t){const e=this.constructor.K.c?.(()=>this.requestUpdate());this.#E=e;const s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#S().catch(t=>{this.#_.reject(t),setTimeout(()=>{throw t})})):e&&this.requestUpdate()}#T(t){try{this.#E.clear(),this.constructor.K.r(this.#E,()=>super.update(t))}catch(t){throw this.#E.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#E?.destroy(),this.#E=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===r?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#U(!1),g.WF.prototype.createRenderRoot.call(this),t;if(this.isConnected){const t=i.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map(t=>"styleSheet"in t?t.styleSheet:t)]}return i}async#S(){const t=this.el.G??n(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,f.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(t=>t.has(_)&&this.manager.U()),this.#v(!0),this.performUpdate(),this.I.resolve(),await 0;const s=this.J.filter(t=>!t.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async t=>await t.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,f.UF)(t.hostLoaded,t);this.loaded?.(),this.#_.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#b?.(t)??!0}update(t){this.#E?this.#T(t):super.update(t)}listen(t,e,s){const i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){const o=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,o,i),()=>t.removeEventListener(e,o,i)))}async componentOnReady(){return await this.#_.promise,this}addController(t){this.M.push(t),!(y.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const k=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},i={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=i,e.L=t,g.S$?function(){try{customElements.define(t,e)}catch{}}():customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),i},L=t=>"object"==typeof t&&null!=t?C(t):t,O=t=>"object"==typeof t&&null!=t?U(t):t;class P extends b.WL{#k;#L;constructor(t){super(t);const e=this;this.#L=function(t){return e.#k.call(this,t)}}render(t){return"function"==typeof t?(this.#k=t,(0,S.K)(this.#L)):(0,S.K)(t)}}(0,b.u$)(P);const x=g.s6;function R(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const M={toAttribute:t=>!0===t?"":!1===t?null:t}},76308(t,e,s){s.d(e,["UF",0,(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},"ao",0,async(t,e,...s)=>{try{const i=t?.call(e,...s);return await i}catch(e){console.error(e,t)}}])},92568(t,e,s){const i=new Set;const o=t=>"string"==typeof t?t:"el"in t?t.el.localName:"localName"in t?t.localName:t.declaredClass;s.d(e,["G3",0,t=>{const e=`[${o(t)}] `;return t=>{const s=t instanceof Error&&t.message?t:new Error(String(t));s.message=`${e}${s.message}`,setTimeout(()=>{throw t})}},"Rm",0,(t,e,s,n)=>{const r=o(e);if(n?.once){const e=`${t}${r}${s}`;if(i.has(e))return;i.add(e)}let a;if(n?.detail){a={};for(const[t,e]of Object.entries(n.detail))if("object"!=typeof e&&"function"!=typeof e||null===e)a[t]=e;else{const s=new WeakRef(e);Object.defineProperty(a,t,{enumerable:!0,get:()=>s.deref()})}console[t](`[${r}]: ${s}`,a)}else console[t](`[${r}]: ${s}`)}])},17495(t,e,s){s.d(e,{cY:()=>i});class i{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}s.d(e,["oK",0,(t,e)=>{const s=e>4e3?2e3:e/4;let i=0;const o=setInterval(()=>{i+=s,i>=e&&(clearInterval(o),t())},s);return o}])},22455(t,e,s){const i=/[A-Z]+(?![a-z])|[A-Z]/gu,o=t=>t.charAt(0).toUpperCase()+t.slice(1);crypto,s.d(e,["TK",0,t=>t.split("-").map(o).join(""),"YF",0,t=>t.charAt(0).toLowerCase()+t.slice(1),"j1",0,t=>t.replace(i,(t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)])},72665(t,e,s){s.d(e,{u:()=>i});function i(t){const e=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const i=s.getRootNode?.();if(i===globalThis.document)return;s=i?.host}})(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return e?.classList.contains("calcite-mode-dark")||e?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},31479(t,e,s){s.d(e,{a:()=>d}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(72843),o=s(46913);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"};function c(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),o=t=>{a!==t&&i(t),a=t};let a=s();i(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>o(t.matches?"dark":"light")),new MutationObserver(()=>o(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}let h;const l={focusTrapStack:[],logLevel:"info"};function d(){return h||(h={...l,...globalThis.calciteConfig??{}}),h}const u="5.1.1";o.S$||("interactive"===document.readyState?c():document.addEventListener("DOMContentLoaded",c,{once:!0})),queueMicrotask(function(){const t=d();t&&t.version||(console.info(`Using Calcite Components ${u} [Date: 2026-06-10, Revision: c8db0a41f]`),Object.defineProperty(t,"version",{value:u,writable:!1}),globalThis.calciteConfig=t)});const p=(0,i.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/5.1.1/",hydratedAttribute:"calcite-hydrated"}),{customElement:f,getAssetPath:m,setAssetPath:g}=p;s.d(e,["C",0,a,"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,f,"g",0,m,"s",0,g])},15968(t,e,s){s.d(e,{qu:()=>o});var i=s(31479);let o=!1;s.d(e,["Qu",0,t=>{o=!0,(0,i.s)(t)}])},22343(t,e,s){s.d(e,{mN:()=>w,AH:()=>c,Ec:()=>C});const i=globalThis,o=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new a(s,t,n)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,$=y.trustedTypes,A=$?$.emptyScript:"",_=y.reactiveElementPolyfillSupport,v=(t,e)=>t,b={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},C=(t,e)=>!d(t,e),E={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:C};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:b).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=i;const n=o.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s,i=!1,o){if(void 0!==t){const n=this.constructor;if(!1===i&&(o=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??C)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[v("elementProperties")]=new Map,w[v("finalized")]=new Map,_?.({ReactiveElement:w}),(y.reactiveElementVersions??=[]).push("2.1.2")},38632(t,e,s){var i=s(60496);const{I:o}=i.ge,n={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=n)=>t._$AH=e])},43356(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},60496(t,e,s){const i=globalThis,o=t=>t,n=i.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+c,l=`<${h}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,m=t=>f(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,A=/>/g,_=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,b=/"/g,C=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),w=E(1),U=E(2),S=E(3),T=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),L=new WeakMap,O=d.createTreeWalker(d,129);function P(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(e):e}const x=(t,e)=>{const s=t.length-1,i=[];let o,n=2===e?"<svg>":3===e?"<math>":"",r=y;for(let e=0;e<s;e++){const s=t[e];let h,d,u=-1,p=0;for(;p<s.length&&(r.lastIndex=p,d=r.exec(s),null!==d);)p=r.lastIndex,r===y?"!--"===d[1]?r=$:void 0!==d[1]?r=A:void 0!==d[2]?(C.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=_):void 0!==d[3]&&(r=_):r===_?">"===d[0]?(r=o??y,u=-1):void 0===d[1]?u=-2:(u=r.lastIndex-d[2].length,h=d[1],r=void 0===d[3]?_:'"'===d[3]?b:v):r===b||r===v?r=_:r===$||r===A?r=y:(r=_,o=void 0);const f=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===y?s+l:u>=0?(i.push(h),s.slice(0,u)+a+s.slice(u)+c+f):s+c+(-2===u?e:f)}return[P(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class R{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const l=t.length-1,d=this.parts,[p,f]=x(t,e);if(this.el=R.createElement(p,s),O.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=O.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(a)){const e=f[r++],s=i.getAttribute(t).split(c),n=/([.?@])?(.*)/.exec(e);d.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?H:"?"===n[1]?I:"@"===n[1]?F:j}),i.removeAttribute(t)}else t.startsWith(c)&&(d.push({type:6,index:o}),i.removeAttribute(t));if(C.test(i.tagName)){const t=i.textContent.split(c),e=t.length-1;if(e>0){i.textContent=n?n.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),O.nextNode(),d.push({type:2,index:++o});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===h)d.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(c,t+1));)d.push({type:7,index:o}),t+=c.length-1}o++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){if(e===T)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const n=p(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=M(t,o._$AS(t,e.values),o,i)),e}class D{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);O.currentNode=i;let o=O.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new N(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new W(o,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(o=O.nextNode(),n++)}return O.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),p(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):m(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=R.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new D(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new R(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new N(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class j{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=k}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(void 0===o)t=M(this,t,e,0),n=!p(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const i=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=M(this,i[s+r],e,r),a===T&&(a=this._$AH[r]),n||=!p(a)||a!==this._$AH[r],a===k?t=k:t!==k&&(t+=(a??"")+o[r+1]),this._$AH[r]=a}n&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}class I extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class F extends j{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??k)===T)return;const s=this._$AH,i=t===k&&s!==k||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==k&&(s===k||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const B={M:a,P:c,A:h,C:1,L:x,R:D,D:m,V:M,I:N,H:j,N:I,U:F,B:H,F:W},q=i.litHtmlPolyfillSupport;q?.(R,N),(i.litHtmlVersions??=[]).push("3.3.3"),s.d(e,["JW",0,U,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new N(e.insertBefore(u(),t),t,void 0,s??{})}return o._$AI(t),o},"c0",0,T,"ej",0,S,"ge",0,B,"qy",0,w,"s6",0,k])},81718(t,e,s){s.d(e,{V:()=>r});var i=s(60496),o=s(43356),n=s(38632);const r=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.PROPERTY&&t.type!==o.OA.ATTRIBUTE&&t.type!==o.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,r=t.name;if(t.type===o.OA.PROPERTY){if(e===s[r])return i.c0}else if(t.type===o.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return i.c0}else if(t.type===o.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return i.c0;return(0,n.mY)(t),e}})},19313(t,e,s){s.d(e,{_:()=>p,K:()=>g});var i=s(60496),o=s(38632),n=s(43356);const r=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),r(t,e);return!0},a=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},c=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function h(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)r(i[t],!1),a(i[t]);else null!=i&&(r(i,!1),a(i));else r(this,t)}const d=t=>{t.type==n.OA.CHILD&&(t._$AP??=l,t._$AQ??=h)};class u extends n.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(r(this,t),a(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new f;class f{}const m=new WeakMap,g=(0,n.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(void 0!==this.G)if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=m.get(e);void 0===s&&(s=new WeakMap,m.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},46913(t,e,s){s.d(e,{WF:()=>r,AH:()=>i.AH,qy:()=>o.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>o.s6,JW:()=>o.JW});var i=s(22343),o=s(60496);const n=globalThis;class r extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.2")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3586],{73354(t,e,n){n.d(e,{a:()=>h,b:()=>a,c:()=>o,d:()=>i,e:()=>f,f:()=>c,l:()=>u,n:()=>d,t:()=>s}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),l=Math.min(i,a),u=n[0],c=n[1],h=n[2],f=n[4],d=n[5],p=n[6],m=n[8],y=n[9],g=n[10],M=n[12],_=n[13],b=n[14];let R=0,v=0;for(let n=0;n<l;n++){const n=e[R],r=e[R+1],i=e[R+2];t[v]=u*n+f*r+m*i+M,t[v+1]=c*n+d*r+y*i+_,t[v+2]=h*n+p*r+g*i+b,R+=s,v+=o}return t}function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),l=Math.min(i,a),u=n[0],c=n[1],h=n[2],f=n[3],d=n[4],p=n[5],m=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<l;n++){const n=e[M],r=e[M+1],i=e[M+2];t[_]=u*n+f*r+m*i,t[_+1]=c*n+d*r+y*i,t[_+2]=h*n+p*r+g*i,M+=s,_+=o}}function l(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let i=0,a=0;for(let l=0;l<s;l++)t[a]=n*e[i],t[a+1]=n*e[i+1],t[a+2]=n*e[i+2],i+=o,a+=r;return t}function u(t,e,n,r){c(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function c(t,e,n,r,o=3,s=o){const i=Math.min(t.length/o,e.length/s);let a=0,l=0;const u=1/2.2;for(let c=0;c<i;c++)t[l]=r*(n*e[a])**u,t[l+1]=r*(n*e[a+1])**u,t[l+2]=r*(n*e[a+2])**u,a+=s,l+=o}function h(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),l=Math.min(i,a);let u=0,c=0;for(let r=0;r<l;r++)t[c]=e[u]+n[0],t[c+1]=e[u+1]+n[1],t[c+2]=e[u+2]+n[2],u+=s,c+=o;return t}function f(t,e){d(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function d(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,i=0;for(let a=0;a<o;a++){const o=e[s],a=e[s+1],l=e[s+2],u=o*o+a*a+l*l;if(u>0){const e=1/Math.sqrt(u);t[i]=e*o,t[i+1]=e*a,t[i+2]=e*l}s+=r,i+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:f,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,a=e.typedBufferStride;let l=0,u=0;for(let t=0;t<r;t++)o[u]=i[l]>>n,o[u+1]=i[l+1]>>n,o[u+2]=i[l+2]>>n,l+=a,u+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(5482),o=n(69622),s=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,a.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},l=new Map;for(const e in n){const i=n[e],a=r?.originOf(e),u=i.clonable;if(i.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===a?l.set(e,h):o[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of l)t.set(e,n,0)}return u}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},h=c(o.A);n.d(e,["OU",0,c,"Pw",0,h])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,l,u,c,h,f,d,p,m){return[t,e,n,r,o,s,i,a,l,u,c,h,f,d,p,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return[0,0,0]}function u(){return s(1,1,1)}function c(){return s(1,0,0)}function h(){return s(0,1,0)}function f(){return s(0,0,1)}n.d(e,{CN:()=>i,S:()=>u,Ul:()=>l,ci:()=>a,fA:()=>s,o8:()=>o,vt:()=>r});const d=[0,0,0],p=u(),m=c(),y=h(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:y,UNIT_Z:g,ZEROS:d,clone:o,create:r,freeze:i,fromArray:a,fromValues:s,ones:u,unitX:c,unitY:h,unitZ:f,zeros:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,g,"Cw",0,m,"JP",0,y,"Un",0,p,"uY",0,d])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>c,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>S,Qw:()=>u,Tl:()=>f,X_:()=>w,e$:()=>p,eL:()=>m,hM:()=>M,hZ:()=>i,hs:()=>d,kN:()=>y,l:()=>x,lw:()=>h,mg:()=>l,o1:()=>A,sC:()=>v,t2:()=>P,t5:()=>O,tZ:()=>N,ut:()=>E,v3:()=>I});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function i(t,e,n,r,o,s,i,a,l,u,c,h,f,d,p,m,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=m,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){return c(t,e)||a(t),t}function c(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],y=e[14],g=e[15],M=n*a-r*i,_=n*l-o*i,b=n*u-s*i,R=r*l-o*a,v=r*u-s*a,w=o*u-s*l,x=c*m-h*p,A=c*y-f*p,S=c*g-d*p,T=h*y-f*m,I=h*g-d*m,O=f*g-d*y;let C=M*O-_*I+b*T+R*S-v*A+w*x;return C?(C=1/C,t[0]=(a*O-l*I+u*T)*C,t[1]=(o*I-r*O-s*T)*C,t[2]=(m*w-y*v+g*R)*C,t[3]=(f*v-h*w-d*R)*C,t[4]=(l*S-i*O-u*A)*C,t[5]=(n*O-o*S+s*A)*C,t[6]=(y*b-p*w-g*_)*C,t[7]=(c*w-f*b+d*_)*C,t[8]=(i*I-a*S+u*x)*C,t[9]=(r*S-n*I-s*x)*C,t[10]=(p*v-m*b+g*M)*C,t[11]=(h*b-c*v-d*M)*C,t[12]=(a*A-i*T-l*x)*C,t[13]=(n*T-r*A+o*x)*C,t[14]=(m*_-p*R-y*M)*C,t[15]=(c*R-h*_+f*M)*C,t):null}function h(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],b=n[1],R=n[2],v=n[3];return t[0]=_*r+b*a+R*h+v*m,t[1]=_*o+b*l+R*f+v*y,t[2]=_*s+b*u+R*d+v*g,t[3]=_*i+b*c+R*p+v*M,_=n[4],b=n[5],R=n[6],v=n[7],t[4]=_*r+b*a+R*h+v*m,t[5]=_*o+b*l+R*f+v*y,t[6]=_*s+b*u+R*d+v*g,t[7]=_*i+b*c+R*p+v*M,_=n[8],b=n[9],R=n[10],v=n[11],t[8]=_*r+b*a+R*h+v*m,t[9]=_*o+b*l+R*f+v*y,t[10]=_*s+b*u+R*d+v*g,t[11]=_*i+b*c+R*p+v*M,_=n[12],b=n[13],R=n[14],v=n[15],t[12]=_*r+b*a+R*h+v*m,t[13]=_*o+b*l+R*f+v*y,t[14]=_*s+b*u+R*d+v*g,t[15]=_*i+b*c+R*p+v*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],a=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7],d=e[8],p=e[9],m=e[10],y=e[11];t[0]=n,t[1]=i,t[2]=a,t[3]=l,t[4]=u,t[5]=c,t[6]=h,t[7]=f,t[8]=d,t[9]=p,t[10]=m,t[11]=y,t[12]=n*r+u*o+d*s+e[12],t[13]=i*r+c*o+p*s+e[13],t[14]=a*r+h*o+m*s+e[14],t[15]=l*r+f*o+y*s+e[15]}return t}function d(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,n,r){let i=r[0],a=r[1],l=r[2],u=Math.sqrt(i*i+a*a+l*l);if(u<=(0,o.FD)())return void s(t,e);u=1/u,i*=u,a*=u,l*=u;const c=Math.sin(n),h=Math.cos(n),f=1-h,d=e[0],p=e[1],m=e[2],y=e[3],g=e[4],M=e[5],_=e[6],b=e[7],R=e[8],v=e[9],w=e[10],x=e[11],A=i*i*f+h,S=a*i*f+l*c,T=l*i*f-a*c,I=i*a*f-l*c,O=a*a*f+h,C=l*a*f+i*c,P=i*l*f+a*c,E=a*l*f-i*c,N=l*l*f+h;t[0]=d*A+g*S+R*T,t[1]=p*A+M*S+v*T,t[2]=m*A+_*S+w*T,t[3]=y*A+b*S+x*T,t[4]=d*I+g*O+R*C,t[5]=p*I+M*O+v*C,t[6]=m*I+_*O+w*C,t[7]=y*I+b*O+x*C,t[8]=d*P+g*E+R*N,t[9]=p*P+M*E+v*N,t[10]=m*P+_*E+w*N,t[11]=y*P+b*E+x*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],a=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+u*r,t[5]=i*o+c*r,t[6]=a*o+h*r,t[7]=l*o+f*r,t[8]=u*o-s*r,t[9]=c*o-i*r,t[10]=h*o-a*r,t[11]=f*o-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],i=n[2],l=Math.sqrt(r*r+s*s+i*i);if(l<=(0,o.FD)())return null;l=1/l,r*=l,s*=l,i*=l;const u=Math.sin(e),c=Math.cos(e),h=1-c;return t[0]=r*r*h+c,t[1]=s*r*h+i*u,t[2]=i*r*h-s*u,t[3]=0,t[4]=r*s*h-i*u,t[5]=s*s*h+c,t[6]=i*s*h+r*u,t[7]=0,t[8]=r*i*h+s*u,t[9]=s*i*h-r*u,t[10]=i*i*h+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=r+r,l=o+o,u=s+s,c=r*a,h=r*l,f=r*u,d=o*l,p=o*u,m=s*u,y=i*a,g=i*l,M=i*u;return t[0]=1-(d+m),t[1]=h+M,t[2]=f-g,t[3]=0,t[4]=h-M,t[5]=1-(c+m),t[6]=p+y,t[7]=0,t[8]=f+g,t[9]=p-y,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const R=(0,r.vt)();function v(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function w(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],a=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+a*a),t[2]=Math.sqrt(l*l+u*u+c*c),t}function x(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=e[3],l=o+o,u=s+s,c=i+i,h=o*l,f=o*u,d=o*c,p=s*u,m=s*c,y=i*c,g=a*l,M=a*u,_=a*c,b=r[0],R=r[1],v=r[2];return t[0]=(1-(p+y))*b,t[1]=(f+_)*b,t[2]=(d-M)*b,t[3]=0,t[4]=(f-_)*R,t[5]=(1-(h+y))*R,t[6]=(m+g)*R,t[7]=0,t[8]=(d+M)*v,t[9]=(m-g)*v,t[10]=(1-(h+p))*v,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function S(t,e,n,r,o){const s=e[0],i=e[1],a=e[2],l=e[3],u=s+s,c=i+i,h=a+a,f=s*u,d=s*c,p=s*h,m=i*c,y=i*h,g=a*h,M=l*u,_=l*c,b=l*h,R=r[0],v=r[1],w=r[2],x=o[0],A=o[1],S=o[2],T=(1-(m+g))*R,I=(d+b)*R,O=(p-_)*R,C=(d-b)*v,P=(1-(f+g))*v,E=(y+M)*v,N=(p+_)*w,L=(y-M)*w,G=(1-(f+m))*w;return t[0]=T,t[1]=I,t[2]=O,t[3]=0,t[4]=C,t[5]=P,t[6]=E,t[7]=0,t[8]=N,t[9]=L,t[10]=G,t[11]=0,t[12]=n[0]+x-(T*x+C*A+N*S),t[13]=n[1]+A-(I*x+P*A+L*S),t[14]=n[2]+S-(O*x+E*A+G*S),t[15]=1,t}function T(t,e,n,r,o,s,i){const a=1/(n-e),l=1/(o-r),u=1/(s-i);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*l,t[10]=(i+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*u,t[15]=0,t}function I(t,e,n,r,o,s,i){const a=1/(e-n),l=1/(r-o),u=1/(s-i);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*l,t[14]=(i+s)*u,t[15]=1,t}function O(t,e,n,r){const s=e[0],i=e[1],l=e[2];let u=s-n[0],c=i-n[1],h=l-n[2];const f=(0,o.FD)();if(Math.abs(u)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void a(t);let d=1/Math.sqrt(u*u+c*c+h*h);u*=d,c*=d,h*=d;const p=r[0],m=r[1],y=r[2];let g=m*h-y*c,M=y*u-p*h,_=p*c-m*u;d=Math.sqrt(g*g+M*M+_*_),d?(d=1/d,g*=d,M*=d,_*=d):(g=0,M=0,_=0);let b=c*_-h*M,R=h*g-u*_,v=u*M-c*g;d=Math.sqrt(b*b+R*R+v*v),d?(d=1/d,b*=d,R*=d,v*=d):(b=0,R=0,v=0),t[0]=g,t[1]=b,t[2]=u,t[3]=0,t[4]=M,t[5]=R,t[6]=c,t[7]=0,t[8]=_,t[9]=v,t[10]=h,t[11]=0,t[12]=-(g*s+M*i+_*l),t[13]=-(b*s+R*i+v*l),t[14]=-(u*s+c*i+h*l),t[15]=1}function C(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function E(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],l=t[6],u=t[8],c=t[9],h=t[10];return Math.abs(1-(n*n+i*i+u*u))<=e&&Math.abs(1-(r*r+a*a+c*c))<=e&&Math.abs(1-(s*s+l*l+h*h))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const L=h,G=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-d*y)-h*(l*g-u*y)+m*(l*d-u*f),t[1]=-(r*(f*g-d*y)-h*(o*g-s*y)+m*(o*d-s*f)),t[2]=r*(l*g-u*y)-a*(o*g-s*y)+m*(o*u-s*l),t[3]=-(r*(l*d-u*f)-a*(o*d-s*f)+h*(o*u-s*l)),t[4]=-(i*(f*g-d*y)-c*(l*g-u*y)+p*(l*d-u*f)),t[5]=n*(f*g-d*y)-c*(o*g-s*y)+p*(o*d-s*f),t[6]=-(n*(l*g-u*y)-i*(o*g-s*y)+p*(o*u-s*l)),t[7]=n*(l*d-u*f)-i*(o*d-s*f)+c*(o*u-s*l),t[8]=i*(h*g-d*m)-c*(a*g-u*m)+p*(a*d-u*h),t[9]=-(n*(h*g-d*m)-c*(r*g-s*m)+p*(r*d-s*h)),t[10]=n*(a*g-u*m)-i*(r*g-s*m)+p*(r*u-s*a),t[11]=-(n*(a*d-u*h)-i*(r*d-s*h)+c*(r*u-s*a)),t[12]=-(i*(h*y-f*m)-c*(a*y-l*m)+p*(a*f-l*h)),t[13]=n*(h*y-f*m)-c*(r*y-o*m)+p*(r*f-o*h),t[14]=-(n*(a*y-l*m)-i*(r*y-o*m)+p*(r*l-o*a)),t[15]=n*(a*f-l*h)-i*(r*f-o*h)+c*(r*l-o*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],a=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],y=t[15];return(e*i-n*s)*(h*y-f*m)-(e*a-r*s)*(c*y-f*p)+(e*l-o*s)*(c*m-h*p)+(n*a-r*i)*(u*y-f*d)-(n*l-o*i)*(u*m-h*d)+(r*l-o*a)*(u*p-c*d)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],y=t[13],g=t[14],M=t[15],_=e[0],b=e[1],R=e[2],v=e[3],w=e[4],x=e[5],A=e[6],S=e[7],T=e[8],I=e[9],O=e[10],C=e[11],P=e[12],E=e[13],N=e[14],L=e[15],G=(0,o.FD)();return Math.abs(n-_)<=G*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=G*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-R)<=G*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(i-v)<=G*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-w)<=G*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(l-x)<=G*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(u-A)<=G*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-S)<=G*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-T)<=G*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-I)<=G*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(d-O)<=G*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-C)<=G*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-P)<=G*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-E)<=G*Math.max(1,Math.abs(y),Math.abs(E))&&Math.abs(g-N)<=G*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(M-L)<=G*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:P,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,a=r+r,l=o+o,u=n*i,c=r*i,h=r*a,f=o*i,d=o*a,p=o*l,m=s*i,y=s*a,g=s*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-y,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+y,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=R,r=-e[0],o=-e[1],s=-e[2],i=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=r*r+o*o+s*s+i*i;return h>0?(n[0]=2*(a*i+c*r+l*s-u*o)/h,n[1]=2*(l*i+c*o+u*r-a*s)/h,n[2]=2*(u*i+c*s+a*o-l*r)/h):(n[0]=2*(a*i+c*r+l*s-u*o),n[1]=2*(l*i+c*o+u*r-a*s),n[2]=2*(u*i+c*s+a*o-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:S,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:x,getScale:w,getTranslation:v,hasIdentityRotation:N,identity:a,invert:c,invertOrIdentity:u,isOrthoNormal:E,lookAt:O,mul:L,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:I,perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(i+a),u=2/(o+s);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(i-a)*l*.5,t[9]=(o-s)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:p,rotateX:m,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-u*r,t[1]=i*o-c*r,t[2]=a*o-h*r,t[3]=l*o-f*r,t[8]=s*r+u*o,t[9]=i*r+c*o,t[10]=a*r+h*o,t[11]=l*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+u*r,t[1]=i*o+c*r,t[2]=a*o+h*r,t[3]=l*o+f*r,t[4]=u*o-s*r,t[5]=c*o-i*r,t[6]=h*o-a*r,t[7]=f*o-l*r,t},scale:d,set:i,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:G,subtract:C,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=r[0],l=r[1],u=r[2];let c=o-n[0],h=s-n[1],f=i-n[2],d=c*c+h*h+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,f*=d);let p=l*f-u*h,m=u*c-a*f,y=a*h-l*c;return d=p*p+m*m+y*y,d>0&&(d=1/Math.sqrt(d),p*=d,m*=d,y*=d),t[0]=p,t[1]=m,t[2]=y,t[3]=0,t[4]=h*y-f*m,t[5]=f*p-c*y,t[6]=c*m-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:f,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>s,C:()=>i,Cc:()=>S,DI:()=>v,Io:()=>M,Ln:()=>g,Om:()=>x,Qr:()=>h,Re:()=>u,S8:()=>w,T9:()=>m,WQ:()=>l,Z0:()=>T,_S:()=>d,aI:()=>G,ei:()=>I,fw:()=>C,g7:()=>P,gL:()=>O,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>p,lw:()=>c,m3:()=>b,oW:()=>D,t2:()=>L,tn:()=>f,ze:()=>R});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function R(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function x(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],l=n[2];return t[0]=o*l-s*a,t[1]=s*i-r*l,t[2]=r*a-o*i,t}function S(t,e,n,r){const o=e[0],s=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=i+r*(n[2]-i),t}function T(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function I(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function O(t,e,n){return C(t,e,n[0],n[1],n[2],n[3])}function C(t,e,n,r,o,s){const i=e[0],a=e[1],l=e[2],u=r*l-o*a,c=o*i-n*l,h=n*a-r*i,f=r*h-o*c,d=o*u-n*h,p=n*c-r*u,m=2*s;return t[0]=i+u*m+2*f,t[1]=a+c*m+2*d,t[2]=l+h*m+2*p,t}function P(t,e){w(E,t),w(N,e);const n=x(E,N);return n>1?0:n<-1?Math.PI:Math.acos(n)}const E=(0,r.vt)(),N=(0,r.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=e[0],a=e[1],l=e[2],u=(0,o.FD)();return Math.abs(n-i)<=u*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function D(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=u,j=c,U=h,k=M,F=_,Z=s,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:P,bezier:function(t,e,n,r,o,s){const i=1-s,a=i*i,l=s*s,u=a*i,c=3*s*a,h=3*l*i,f=l*s;return t[0]=e[0]*u+n[0]*c+r[0]*h+o[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*h+o[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*h+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:A,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],l=n[2],u=o*l-s*a,c=s*i-r*l,h=r*a-o*i,f=Math.sqrt(u*u+c*c+h*h);return t[0]=u/f,t[1]=c/f,t[2]=h/f,t},direction:D,dist:k,distance:M,div:U,divide:h,dot:x,equals:G,exactEquals:L,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const i=s*s,a=i*(2*s-3)+1,l=i*(s-2)+s,u=i*(s-1),c=i*(3-2*s);return t[0]=e[0]*a+n[0]*l+r[0]*u+o[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+o[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+o[2]*c,t},inverse:v,len:Z,length:s,lerp:S,max:m,min:p,mul:j,multiply:c,negate:R,normalize:w,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:a,sign:d,sqrDist:F,sqrLen:q,squaredDistance:_,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:u,transformMat3:I,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:O,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,Z,"jb",0,B,"lo",0,F,"uE",0,q,"xg",0,k])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>c});var r=n(4576),o=n(71511),s=n(36563),i=n(53966),a=n(97768),l=n(17676),u=n(83027);class c{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new h(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class h{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(5482),s=n(4576),i=n(4718),a=n(91429),l=n(5443),u=n(91075),c=n(86738),h=n(16930),f=n(90634),d=n(47610),p=n(56993),m=n(43937);let y=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=h.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,i.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,p.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new c.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,p.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,m.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>p});var r,o=n(5482),s=n(4718),i=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),h=n(90634),f=n(56993),d=n(43937);let p=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=c.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,h.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new u.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,o.Cg)([(0,d.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,o.Cg)([(0,d.K)("paths")],p.prototype,"writePaths",null),p=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},159(t,e,n){n.d(e,{A:()=>u});var r,o=n(5482),s=n(69540),i=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,s.OU)(i.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,o.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(t,e,n){n.d(e,{A:()=>l});var r,o=n(5482),s=n(69540),i=n(25482),a=n(91429);let l=r=class extends((0,s.OU)(i.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,a.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],l.prototype,"isInverse",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,o.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,s,i,a=Math.floor(t.length/3)){const l=(0,r.jd)(e,s);if(null==l)return!1;if(l===r.pO){if(t===o&&n===i)return!0;const e=n+3*a;for(let r=n,s=i;r<e;r++,s++)o[s]=t[r]??0;return!0}const u=n+3*a;for(let e=n,r=i;e<u;e+=3,r+=3)l(t,e,o,r);return!0}},65806(t,e,n){n.d(e,{g:()=>i});var r=n(51850),o=n(91218),s=n(9762);function i(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const i=(0,o.tryProject)(t,n,r);return!!i&&(e[0]=i.x,e[1]=i.y,e[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(91218),o=n(16930),s=n(9762),i=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,i.g)(l,n,o)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},49208(t,e,n){n.d(e,{Tp:()=>h,jd:()=>c,pO:()=>d});var r=n(34727),o=n(86211),s=n(73941),i=n(79258),a=n(34403),l=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:m,11:y,2:d,4:S},5:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:m,11:y,2:d,4:S},7:{5:null,7:d,9:null,10:d,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:_,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(t,e,n,r){const o=t[e]/E,s=P-2*Math.atan(Math.exp(-t[e+1]/E)),i=E+(t[e+2]??0),a=Math.cos(s)*i;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(s)*i},6:null,8:null,0:null,3:d,11:function(t,e,n,r){p(t,e,n,r),y(n,r,n,r)},2:p,4:function(t,e,n,r){p(t,e,n,r),S(n,r,n,r)}},4:{5:T,7:null,9:null,10:T,1:function(t,e,n,r){T(t,e,n,r),R(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){T(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){T(t,e,n,r),y(n,r,n,r)},2:T,4:d},1:{5:A,7:null,9:null,10:A,1:d,6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){A(t,e,n,r),y(n,r,n,r)},2:A,4:function(t,e,n,r){A(t,e,n,r),S(n,r,n,r)}},6:{5:null,7:x,9:null,10:x,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:w,10:w,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:R,6:b,8:_,0:null,3:m,11:y,2:d,4:S},11:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){g(t,e,n,r),R(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){g(t,e,n,r),m(n,r,n,r)},11:d,2:g,4:function(t,e,n,r){g(t,e,n,r),S(n,r,n,r)}}};function c(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===e)return I;const n=f(t,I.source),r=f(e,I.dest);return 0===n&&0===r?(0,l.aI)(t,e)?I.projector=d:I.projector=null:I.projector=u[n][r],I}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,l.oT)(t)?e.spatialReferenceId=2:(0,l.K8)(t)?e.spatialReferenceId=3:(0,l.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,s.q8)(t)?e.spatialReferenceId=7:(0,s.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function d(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=C*(t[e]/E),n[r+1]=C*(P-2*Math.atan(Math.exp(-t[e+1]/E))),n[r+2]=t[e+2]??0}function m(t,e,n,o){!function(t,e,n,o,s){const i=.4999999*Math.PI,a=(0,r.qE)(O*t[e+1],-i,i),l=Math.sin(a);n[o++]=O*t[e]*s.radius,n[o++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,i.$O)}function y(t,e,n,r){n[r]=t[e]*N,n[r+1]=t[e+1]*N,n[r+2]=t[e+2]??0}function g(t,e,n,r){n[r]=t[e]*L,n[r+1]=t[e+1]*L,n[r+2]=t[e+2]??0}function M(t,e,n,r,o){const s=o+(t[e+2]??0),i=O*t[e],a=O*t[e+1],l=Math.cos(a)*s;n[r]=Math.cos(i)*l,n[r+1]=Math.sin(i)*l,n[r+2]=Math.sin(a)*s}function _(t,e,n,r){M(t,e,n,r,i.Sw.radius)}function b(t,e,n,r){M(t,e,n,r,i.sH.radius)}function R(t,e,n,r){M(t,e,n,r,i.$O.radius)}function v(t,e,n,o,s){const i=t[e],a=t[e+1],l=t[e+2]??0,u=Math.sqrt(i*i+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,i);n[o++]=C*h,n[o++]=C*c,n[o]=u-s}function w(t,e,n,r){v(t,e,n,r,i.Sw.radius)}function x(t,e,n,r){v(t,e,n,r,i.sH.radius)}function A(t,e,n,r){v(t,e,n,r,i.$O.radius)}function S(t,e,n,r){!function(t,e,n,r,o){const s=O*t[e],i=O*t[e+1],a=t[e+2]??0,l=Math.sin(i),u=Math.cos(i),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(s),n[r++]=(c+a)*u*Math.sin(s),n[r++]=(c*(1-o.eccentricitySquared)+a)*l}(t,e,n,r,i.$O)}function T(t,e,n,r){const o=a.TP,s=t[e],l=t[e+1],u=t[e+2]??0;let c,h,f,d,p,m,y,g,M,_,b,R,v,w,x,A,S,T,I,O,P;c=Math.abs(u),h=s*s+l*l,f=Math.sqrt(h),d=h+u*u,p=Math.sqrt(d),O=Math.atan2(l,s),m=u*u/d,y=h/d,w=o.a2/p,x=o.a3-o.a4/p,y>.3?(g=c/p*(1+y*(o.a1+w+m*x)/p),I=Math.asin(g),_=g*g,M=Math.sqrt(1-_)):(M=f/p*(1-m*(o.a5-w-y*x)/p),I=Math.acos(M),_=1-M*M,g=Math.sqrt(_)),b=1-i.$O.eccentricitySquared*_,R=i.$O.radius/Math.sqrt(b),v=o.a6*R,w=f-R*M,x=c-v*g,S=M*w+g*x,A=M*x-g*w,T=A/(v/b+S),I+=T,P=S+A*T/2,u<0&&(I=-I),n[r++]=C*O,n[r++]=C*I,n[r]=P}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},O=(0,r.kU)(1),C=(0,r.KJ)(1),P=.5*Math.PI,E=i.$O.radius,N=E*Math.PI/180,L=180/(E*Math.PI);n.d(e,["w5",0,u])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>Y,initializeProjection:()=>V,isEqualBaseGCS:()=>$,isLoaded:()=>E,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>L,load:()=>D,project:()=>B,projectAsync:()=>z,projectExtent:()=>ot,projectMany:()=>j,projectMultipoint:()=>J,projectOrLoad:()=>k,projectOrLoadMany:()=>F,projectPoint:()=>X,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>W,requiresLoad:()=>G,test:()=>H,tryProject:()=>U,unload:()=>q});var r=n(49186),o=n(17676),s=n(62788),i=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),h=n(91075),f=n(48526),d=n(86738),p=n(39829),m=n(82799),y=n(16930),g=n(98764),M=n(159),_=n(9762),b=n(49208);function R(t,e,n,r,o,s){return v[0]=t,v[1]=e,v[2]=n,(0,_.projectBuffer)(v,r,0,o,s,0)}const v=(0,a.vt)();var w=n(60408),x=n(21325),A=n(52006);let S=null,T=null,I=null,O=null,C={};const P=new i.I;function E(){return!!(T?.isLoaded()&&I?.isLoaded()&&O?.isLoaded())}function N(){return!!E()||((0,s.gc)(P),D(),!1)}function L(t,e){return!t||!e||Y(t,e)||N()}function G(t,e){return!Y(t,e)&&!E()}async function D(t){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(T=t,T.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(I=t,I.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(O=t,O.load()))])),await S,(0,o.Te)(t),P.notify()}function B(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,l.H)(t),j(t,t[0].spatialReference,e,n)):((0,l.f)(t),j([t],t.spatialReference,e,n)[0])}function j(t,e,n,r){if(null==e||null==n)return t;if(Y(e,n,r))return t.map(t=>W(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return j(t.map(t=>W(t,e,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return j(t,e,y.A.WGS84).map(t=>W(t,y.A.WGS84,n));if(!E())throw new Z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:O.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let o=C[t];o||(o=O.getTransformation(e,n)||new M.A,C[t]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof h.A?T.executeMany(t,n,r):I.executeMany(t,n,r)}function U(t,e,n){try{return B(t,e,n)}catch(t){return null}}function k(t,e){const n=F([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function F(t,e,n){if(!E())for(const n of t)if(null!=n&&!(0,x.aI)(n.spatialReference,e)&&(0,x.fn)(n.spatialReference)&&(0,x.fn)(e)&&!Y(n.spatialReference,e))return(0,s.gc)(P),{pending:D(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,x.aI)(t.spatialReference,e)?t:(0,x.fn)(t.spatialReference)&&(0,x.fn)(e)?B(t,e,n):null)}}class Z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){S=null,T=null,I=null,O=null,C={}}const H={get loadPromise(){return S}};async function z(t,e,n){if((0,o.Te)(n),!t)return t;const r=F(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,o.Te)(n),z(t,e,n);const s=r.geometries??[];return Array.isArray(t)?s:s[0]}function Y(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,x.aI)(t,e)||(0,x.fn)(t)&&(0,x.fn)(e)&&!!(0,b.jd)(t,e))}function $(t,e){if((0,x.aI)(t,e))return!0;if(!(0,x.fn)(t)||!(0,x.fn)(e))return!1;const n=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t),r=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e);return n&&r}async function V(t,e,n,r){if(E())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:o}of t)if(e&&n&&!Y(e,n,o))return D(r)}else if(t&&e&&!Y(t,e,n))return D(r);return(0,o.NO)(r)}function W(t,e,n){return t?(0,w.fT)(t)?K(t,e,new d.A,n,0):(0,w.ZC)(t)?st(t,e,new c.A,n,0):(0,w.Bi)(t)?rt(t,e,new p.A,n,0):(0,w.Rg)(t)?et(t,e,new m.A,n,0):(0,w.U9)(t)?Q(t,e,new f.A,n,0):null:null}function X(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=K(t,t.spatialReference,e,n,r)}function K(t,e,n,r,o){ut[0]=t.x,ut[1]=t.y;const s=t.z;return ut[2]=void 0!==s?s:o,(0,_.projectBuffer)(ut,e,0,ut,r,0)?(n.x=ut[0],n.y=ut[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ut[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function J(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,o){const{points:s,hasZ:i,hasM:a}=t,l=[],u=s.length,c=[];for(const t of s)c.push(t[0],t[1],i?t[2]:o);if(!(0,_.projectBuffer)(c,e,0,c,r,0,u))return null;const h=lt(i,r);for(let t=0;t<u;++t){const e=3*t,n=c[e],r=c[e+1];h&&a?l.push([n,r,c[e+2],s[t][3]]):h?l.push([n,r,c[e+2]]):a?l.push([n,r,s[t][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=i,n.hasM=a,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,o){const{curvePaths:s,paths:i,hasZ:a,hasM:l}=t;if(!(s?at(s,a??!1,l??!1,e,n.curvePaths=[],r,o):it(i,a??!1,l??!1,e,n.paths,r,o)))return null;const u=lt(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,o){const{curveRings:s,rings:i,hasZ:a,hasM:l}=t;return(s?at(s,a??!1,l??!1,e,n.curveRings=[],r,o):it(i,a??!1,l??!1,e,n.rings,r,o))?(n.spatialReference=r,n.hasZ=lt(a,r),n.hasM=l,n):null}function ot(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=st(t,t.spatialReference,e,n,r)}function st(t,e,n,r,o){const{xmin:s,ymin:i,xmax:a,ymax:l,hasZ:u,hasM:c}=t;if(!R(s,i,u?t.zmin:o,e,ut,r))return null;const h=lt(u,r);return n.xmin=ut[0],n.ymin=ut[1],h&&(n.zmin=ut[2]),R(a,l,u?t.zmax:o,e,ut,r)?(n.xmax=ut[0],n.ymax=ut[1],h&&(n.zmax=ut[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function it(t,e,n,r,o,s,i=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:i);if(!(0,_.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;o.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);c||e.pop(),n&&e.push(r[u]),t.push(e)}o.push(t)}return!0}function at(t,e,n,r,o,s,i=0){const a=new Array;for(const n of t)for(const t of n){if((0,A.FG)(t))return!1;if((0,A.aO)(t)){const[n,r]=t.c;a.push(n[0],n[1],e?n[2]:i,r[0],r[1],i);continue}if((0,A.n1)(t)){const[n,r,o]=t.b;a.push(n[0],n[1],e?n[2]:i,r[0],r[1],i,o[0],o[1],i);continue}const n=t;a.push(n[0],n[1],e?n[2]:i)}if(!(0,_.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;o.length=0;const u=e?3:2,c=lt(e,s);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(l,l+=3);if(c||e.pop(),n&&e.push((0,A.yP)(r)[u]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=a[l++],r=a[l++];++l,t.push({c:[e,[n,r]]});continue}if((0,A.n1)(r)){const n=a[l++],r=a[l++];++l;const o=a[l++],s=a[l++];++l,t.push({b:[e,[n,r],[o,s]]});continue}t.push(e)}o.push(t)}return!0}function lt(t,e){return t||(0,u.xP)(e)||(0,x.aI)(e,g.Y0)}const ut=(0,a.vt)()},98764(t,e,n){n.d(e,{lO:()=>c});var r=n(73941),o=n(16930),s=n(21325);const i=new o.A(r.fv),a=new o.A(r.FY),l=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const e=h.get(t);if(e)return e;let n=i;if(t)if(t===a)n=a;else if(t===l)n=l;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,s.tl)(e)||(0,s.tl)(r)?n=a:((0,s.ZL)(e)||(0,s.ZL)(r))&&(n=l);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===f?n=a:t===d&&(n=l)}}}return h.set(t,n),n}const h=new Map,f=a.wkt.toUpperCase(),d=l.wkt.toUpperCase();n.d(e,["GD",0,i,"Y0",0,u])},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>l});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function l(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function u(t){return[...t]}function c(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>u});var r,o=n(5482),s=n(69540),i=n(25482),a=n(91429),l=n(93223);let u=class extends((0,s.OU)(i.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(t,e,n){n.d(e,{A:()=>u});var r=n(5482),o=n(69540),s=n(25482),i=n(91429),a=n(51850),l=n(93223);let u=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,s=r.$O.eccentricitySquared,i={a1:o*s,a2:o*s*o*s,a3:o*s*s/2,a4:o*s*o*s*2.5,a5:o*s+o*s*s/2,a6:1-s};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,i])},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":i(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>i,U9:()=>o,W0:()=>h,ZC:()=>r,fT:()=>s,uW:()=>l})},80754(t,e,n){n.d(e,{kS:()=>u,kd:()=>l,r8:()=>c});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,i.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,i.n1)(t)){const[n,r,o]=t.b;n[0]+=e,r[0]+=e,o[0]+=e;continue}t[0]+=e}for(const n of c(t))for(const t of n)t[0]+=e;return t}function c(t){return(0,s.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>h,jZ:()=>c});var r=n(12195),o=n(19419),s=n(537),i=n(95108),a=n(60408),l=n(80754),u=n(21325);function c(t){return f(t,!0)}function h(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,u.Vp)(n),i=(0,r.W)(t)?t.toJSON():t;if(!o)return i;const c=(0,u.K8)(n)?102100:4326,h=l.j7[c].maxX,f=l.j7[c].minX;if((0,a.fT)(i))return p(i,h,f);if((0,a.U9)(i))return i.points=i.points.map(t=>p(t,h,f)),i;if((0,a.ZC)(i))return d(i,o);if((0,a.Bi)(i)||(0,a.Rg)(i)){const t=(0,s.Rg)(b,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,f)*(2*h),o=0===r?i:(0,l.kS)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?M(o,h,e):n.xmin<f?M(o,f,e):o}return i}function d(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:o,xmin:s,xmax:i}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=m(t.xmin,e),{x:f,frameId:d}=m(t.xmax,e),p=c===f&&a>0;if(a>2*u){const t={xmin:s<i?c:f,ymin:r,xmax:u,ymax:o},e={xmin:l,ymin:r,xmax:s<i?f:c,ymax:o},a={xmin:0,ymin:r,xmax:u,ymax:o},p={xmin:l,ymin:r,xmax:0,ymax:o},m=[],g=[];y(t,a)&&m.push(h),y(t,p)&&g.push(h),y(e,a)&&m.push(d),y(e,p)&&g.push(d);for(let t=h+1;t<d;t++)m.push(t),g.push(t);n.push(new _(t,[h]),new _(e,[d]),new _(a,m),new _(p,g))}else c>f||p?n.push(new _({xmin:c,ymin:r,xmax:u,ymax:o},[h]),new _({xmin:l,ymin:r,xmax:f,ymax:o},[d])):n.push(new _({xmin:c,ymin:r,xmax:f,ymax:o},[h]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function p(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,l.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,l.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t.x+=e*(-2*n)}}return t}function m(t,e){const[n,r]=e.valid,o=2*r;let s,i=0;return t>r?(s=Math.ceil(Math.abs(t-r)/o),t-=s*o,i=s):t<n&&(s=Math.ceil(Math.abs(t-n)/o),t+=s*o,i=-s),{x:t,frameId:i}}function y(t,e){const{xmin:n,ymin:r,xmax:o,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,o,s)&&g(t,o,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,i.m3)(t),n)return(new R).cut(t,e);const o=r?t.rings:t.paths,s=r?4:2,l=o.length,u=-2*e;for(let t=0;t<l;t++){const e=o[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+u,...r]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,o.vt)();class R{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(v(t,e<=0?t[0]:this._xCut)),this._lineOut.push(v(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(w(this._lineIn,t,e<=0?t[0]:this._xCut),w(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],o=Math.min(t.length,e.length);for(let s=2;s<o;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function v(t,e){const n=t.slice();return n[0]=e,n}function w(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=v(e,n):t.push(v(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>E,F8:()=>P,J2:()=>T,Yq:()=>O,_m:()=>I,iS:()=>C,wj:()=>N});var r=n(66552),o=n(73444),s=n(98623),i=n(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},m={...p,second:"numeric"},y={hourCycle:"h23"},g={...p,...y},M={...m,...y},_={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...m},"short-date-long-time-24":{...c,...M},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...m},"short-date-le-long-time-24":{...c,...M},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...g},"long-month-day-year-long-time":{...h,...m},"long-month-day-year-long-time-24":{...h,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...p},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...m},"day-short-month-year-long-time-24":{...f,...M},"long-date":d,"long-date-short-time":{...d,...p},"long-date-short-time-24":{...d,...g},"long-date-long-time":{...d,...m},"long-date-long-time-24":{...d,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":m},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),R={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},v=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=v.find(({type:t})=>"month"===t)?.value.toLowerCase();function x(){const t=(0,o.lR)();return(t&&R[t])??(0,o.QC)()}"mart"!==w&&(R.bs="sr-Latn-CS");let A=new WeakMap;const S=_["short-date-short-time"];function T(t){return _[t]}function I(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,i={};return e?i.dateStyle=e:o&&(i.year=o,i.month=s||void 0),n&&!i.year&&(i.timeStyle=n,i.hour12="auto"===r?void 0:"always"===r),i}function O(t,e=S){return function(t){let e=A.get(t);if(!e){const n=x(),r=N(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),A.set(t,e)}return e}(e).format(t)}function C(t,e=S){return O(new Date(t),{...e,...u,...l})}function P(t,e=S){return O(new Date(`1970-01-01T${t}Z`),{...e,...u,...a})}function E(t,e=S){const n=i.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return O(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:x()})}function N(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{A=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>h,lR:()=>c,oQ:()=>p});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function a(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===o&&(o=a()),o}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=l()){return f(t)?.language}function h(t=l()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=l()){return u.exec(t)?.groups}const d=[];function p(t){return d.push(t),(0,r.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const m=[];function y(t){return m.push(t),(0,r.hA)(()=>m.splice(m.indexOf(t),1))}function g(){const t=a();o!==t&&([...m].forEach(e=>e(t)),o=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),i&&new MutationObserver(()=>{g()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>h,MU:()=>c,yf:()=>d});var r=n(35522),o=n(51850),s=n(10614),i=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class u{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function c(t,e,n,u,c){return!u||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,i){const a=new l(t.slice().buffer,e);if(!i)return a;const u=n[0].stride,c=a.data.byteLength/u;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),l=(0,o.vt)();for(let t=0;t<c;++t)(0,s.Tz)(l,n,t,u/2,e/2),(0,r.ei)(l,l,i),(0,s.aT)(n,t,l[0],l[1],l[2],u/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,o.vt)();for(let t=0;t<c;++t){const o=(t*u+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,i),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return a}(t,e,n,c):function(t,e,n,r){const o=n[0].stride,s=o/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),u=t.byteLength/o,c=o+4;n.forEach(t=>t.stride=c),n.push(new a._("normalCompressed",2,i.pe.SHORT,o,c,!0));const d=h(e,l,s,r);return f(l,u,o,c,d)}(t,e,n,c)}function h(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:i,faceAreas:a,faceEdges:l,edgeFaces:u,vertexFaces:c,vertexFaceCountAndOffset:h}=function(t,e,n,r,o,s){const i=new Float32Array(3*o),a=new Float32Array(o),l=new Uint32Array(3*o),u=new Int32Array(3*o*2),c=3*o,h=new Uint32Array(c),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)h[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let d=0;const p=new Uint32Array(2*c*2),m=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];m[e]=n,m[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,i=2*r,a=m[i],l=m[i+1];let c=-1;for(let t=a;t<l;t+=2)if(p[t]===o){c=p[t+1];break}return-1===c&&(c=d++,p[l]=o,p[l+1]=c,m[i+1]=l+2,u[2*c+(1-s)]=-1),u[2*c+s]=n,c}for(let n=0;n<r.length;n+=3){const o=r[n],u=o*e,c=t[u],h=t[u+1],f=t[u+2],d=r[n+1],p=d*e,m=t[p],g=t[p+1],M=t[p+2],_=r[n+2],b=_*e,R=c-m,v=h-g,w=f-M,x=c-t[b],A=h-t[b+1],S=f-t[b+2],T=v*S-w*A,I=w*x-R*S,O=R*A-v*x,C=Math.sqrt(T*T+I*I+O*O)||1,P=n/3;a[P]=.5*C;const E=1/C;if(s){const t=s[0]*T+s[3]*I+s[6]*O,e=s[1]*T+s[4]*I+s[7]*O,n=s[2]*T+s[5]*I+s[8]*O;i[3*P]=t*E,i[3*P+1]=e*E,i[3*P+2]=n*E}else i[3*P]=T*E,i[3*P+1]=I*E,i[3*P+2]=O*E;const N=y(o,d,P),L=y(d,_,P),G=y(_,o,P);l[3*P]=N,l[3*P+1]=L,l[3*P+2]=G}return{faceNormals:i,faceAreas:a,faceEdges:l,vertexFaces:h,vertexFaceCountAndOffset:f,edgeFaces:u}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const i=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e);let u=0;const c=new Uint32Array(e);let h=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===i[t])continue;i[t]=1;const f=n[3*t],d=n[3*t+1],p=n[3*t+2];for(h=0,c[h++]=t,l[0]=o[3*t],l[1]=o[3*t+1],l[2]=o[3*t+2],u=3,a[t]=t+1;u>0;){const e=l[--u];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+d*M+p*_))<m){c[h++]=y,i[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(l[u++]=n)}}}}if(h>1){let t=0,e=0,o=0,s=0;for(let i=0;i<h;++i){const a=c[i],l=r[a];t+=l,e+=n[3*a]*l,o+=n[3*a+1]*l,s+=n[3*a+2]*l}const i=Math.sqrt(e*e+o*o+s*s)||1;e/=i,o/=i,s/=i;for(let i=0;i<h;++i){const a=c[i];n[3*a]=e,n[3*a+1]=o,n[3*a+2]=s,r[a]=t}}}}(t,o,i,a,l,u),p(o,s,t,i,a,c,h)}function f(t,e,n,r,o){const s=n/4,i=r/4,a=o.outputVertexCount,u=new Float32Array(a*i),c=new Uint32Array(u.buffer),h=s,f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,i){for(let a=0;a<s;++a){const s=a*o,l=a*e;for(let e=0;e<o;++e)t[l+e]=r[s+e];t[l+n]=i[a]}}(c,i,h,f,s,e,o.packedNormals),d(c,i,h,f,s,e,a,o.appendedVertexToOriginal,o.packedNormals),new l(u.buffer,o.indices)}function d(t,e,n,r,o,s,i,a,l){for(let u=s;u<i;++u){const i=a[u-s]*o,c=u*e;for(let e=0;e<o;++e)t[c+e]=r[i+e];t[c+n]=l[u]}}function p(t,e,n,r,o,s,i){const a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let c=e;const h=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),d=new Int16Array(f),p=new Uint32Array(f);let m=0,g=0;const M=new Uint32Array(t);let _=0;const b=1-y;for(let t=0;t<e;++t){m=i[2*t+1],g=m+i[2*t];let n=t;for(;m<g;){{const t=s[--g],e=3*t,i=r[e],a=r[e+1],l=r[e+2];_=0,M[_++]=t;let u=m;for(;u<g;){const t=s[u],e=3*t;if(i*r[e]+a*r[e+1]+l*r[e+2]>b){M[_++]=t;const e=--g;if(u<e){s[u]=s[e];continue}}++u}let c=0,h=0,f=0;if(1===_)c=i,h=a,f=l;else{for(let t=0;t<_;++t){const e=M[t],n=o[e],s=3*e;c+=r[s]*n,h+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(c*c+h*h+f*f)||1;c/=t,h/=t,f/=t}{const t=1/(Math.abs(c)+Math.abs(h)+Math.abs(f)),e=c*t,r=h*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const i=2*n,a=Math.round(32767*o),l=Math.round(32767*s);d[i]=a<-32767?-32767:a>32767?32767:a,d[i+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(m>=g)break;n=c++,h[n-e]=t}}return new u(l,p,h,c,c-e)}const m=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>x,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>C,initialize:()=>N,interpretObbModificationResults:()=>O,process:()=>g,project:()=>v,setLegacySchema:()=>R,setModifications:()=>b,setModificationsSync:()=>T,test:()=>G,transformNormals:()=>w});var r=n(34727),o=n(77690),s=n(29242),i=n(58083),a=n(9093),l=n(16930),u=n(4197),c=n(95696),h=n(18251),f=n(73354),d=n(2741);let p;var m=n(89606),y=n(98697);async function g(t){S=await L();const e=[t.geometryBuffer];return{result:I(S,t,e),transferList:e}}async function M(t){S=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=S._malloc(r),s=new Uint8Array(S.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const i=S.dracoDecompressPointCloudData(o,s.byteLength);if(S._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,l=i.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function _(t){await L(),C(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function b(t){await L(),T(t)}async function R(t){S=await L(),S.setLegacySchema(t.context,t.jsonSchema)}async function v(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,i=l.A.fromJSON(t.inSpatialReference),a=l.A.fromJSON(t.outSpatialReference),f=e?(0,u.Vj)(e):void 0,d=(0,u.cj)(r);let p;const[{projectBuffer:m},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,91218))]);await y(i,a);const g=[0,0,0];if(!m(d,i,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(p=new Float64Array(o.length),!m(o,i,0,p,a,0,p.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?c.A.fromJSON(s):h.A.fromJSON(s),{projectMeshVertexPositions:e}=await n.e(4594).then(n.bind(n,74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:i},a);if(!r)throw new Error("Failed to project");p=r}const M=p.length,[_,b,R]=g;for(let t=0;t<M;t+=3)p[t]-=_,p[t+1]-=b,p[t+2]-=R;return{result:{projected:p,original:o,projectedOrigin:g},transferList:[p.buffer,o.buffer]}}async function w({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function x(t){P(t)}let A,S;function T(t){if(!S)return;const e=t.modifications,n=S._malloc(8*e.length),r=new Float64Array(S.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];S.setModifications(t.context,n,e.length,t.isGeodetic),S._free(n)}function I(t,e,n){const{context:r,globalTrafo:l,geometryElevationOffset:u,mbs:c,obbData:h,layouts:f,needNormals:d,computeNormals:p,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:b,geometryData:R,indexToVertexProjector:v,vertexToRenderProjector:w,normalReferenceFrame:x}=e,A=t._malloc(_.byteLength),S=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,A,_.byteLength);T.set(new Uint8Array(_));const I=new Float64Array(t.HEAPU8.buffer,S,33);E(I,[NaN,NaN,NaN],0);let O=3;E(I,l,O),O+=16,E(I,c.center,O),O+=3,I[O++]=c.radius,h&&E(I,h,O++);const C={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:d&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},P=t.process(r,!!h,A,T.byteLength,b,C,S,g,v,w,x);if(t._free(S),t._free(A),P.error.length>0)throw new Error(`i3s.wasm: ${P.error}`);if(P.discarded)return null;const N=P.componentOffsets.length>0?P.componentOffsets.slice():null,L=P.featureIds.length>0?P.featureIds.slice():null,G=P.anchorIds.length>0?Array.from(P.anchorIds):null,D=P.anchors.length>0?Array.from(P.anchors):null,B=1===P.indicesType?new Uint16Array(P.indices.buffer,P.indices.byteOffset,P.indices.byteLength/2).slice():new Uint32Array(P.indices.buffer,P.indices.byteOffset,P.indices.byteLength/4).slice(),j=f[0].slice(),U=(0,o.z0)((0,s.vt)(),l),k=(0,m.MU)(P.interleavedVertedData,B,j,p&&!C.normal,U),F=P.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,a.o8)(n):(0,a.vt)();(0,i.lw)(s,e,s);const l=s[0],u=s[1],c=s[2],h=s[4],f=s[5],d=s[6],p=s[8],m=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let b=1/0,R=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],i=t[e+2],a=n*c+s*d+i*y+_;let v=0;if(r>0){const t=n*l+s*h+i*p+g,e=n*u+s*f+i*m+M;v=Math.sqrt(t*t+e*e+a*a)-r}else v=a;v-=o,b=Math.min(b,v),R=Math.max(R,v)}return{minElevation:b,maxElevation:R}}(F,l,R?.geometries[0]?.transformation,M,u),{buffer:q,byteOffset:H,byteLength:z}=P.positionIndices,Y=1===P.positionIndicesType?new Uint16Array(q,H,z/2).slice():new Uint32Array(q,H,z/4).slice(),$=new y._b(j,k.data,k.indices,P.hasColors,P.hasModifications,{data:F,indices:Y});return L&&n.push(L.buffer),N&&n.push(N.buffer),n.push(k.data),n.push(k.indices.buffer),n.push(F.buffer),n.push(Y.buffer),new y.sQ(N,L,G,D,$,l,P.obb,Z.minElevation,Z.maxElevation)}function O(t){return 0===t?0:1===t?1:2===t?2:3}function C(t){if(!S)return;const{context:e,buffer:n}=t,r=S._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(S.HEAPU8.buffer,r,o),i=new Float64Array(n);s.set(i),S.filterOBBs(e,r,o),i.set(s),S._free(r)}function P(t){0===S?.destroy(t)&&(S=null,A=null,p=null)}function E(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function N(){S||await L()}async function L(){return S||(S=await(A??=(p??=(async()=>{const t=await n.e(2980).then(n.bind(n,82980));return await t.default({locateFile:t=>(0,d.s)(`esri/libs/i3s/${t}`)})})(),p))),S}const G={transform:(t,e)=>S&&I(S,t,e),destroy:P}},98697(t,e,n){n.d(e,{H1:()=>M,Ir:()=>m,_b:()=>h,sQ:()=>f});var r=n(53966),o=n(15142),s=n(51850),i=n(35982),a=n(39829),l=n(91218),u=n(27993),c=n(89056);class h{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class f{constructor(t,e,n,r,o,s,i,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=l}}i.B;const d=new o.A({deallocator:null}),p=(0,s.vt)();function m(t,e,n,o=!1){d.clear();let s=1/0,i=1/0,u=-1/0,h=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,p=t.geometry,m=p.spatialReference??n;if(m!==n&&!(0,l.canProjectWithoutEngine)(m,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:p});continue}let M=p.rings;if(m!==n){const t=y(p.rings,m,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:p});continue}M=t}const _=M;if(o){const t=(0,c.jZ)(new a.A({rings:M,spatialReference:n}));null!=t&&(M=t.rings)}const b=1===_.length&&M.length>1?[...M.map(t=>[t]),_]:[M];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!g(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:p});else{f||=1===e;for(const t of b){d.push(e),d.push(t.length);for(const e of t){d.push(e.length);for(const t of e){const e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),s=Math.min(s,t[0]),i=Math.min(i,t[1]),u=Math.max(u,t[0]),h=Math.max(h,t[1])}}}}}if(null!=t)if(f){const e=1e-4;d.push(2),d.push(2),d.push(4),d.push(s-e),d.push(i-e),d.push(0),d.push(u+e),d.push(i-e),d.push(0),d.push(u+e),d.push(h+e),d.push(0),d.push(s-e),d.push(h+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);const p=new Float64Array(d.length);for(let t=0;t<d.length;++t)p[t]=d.at(t);return p}function y(t,e,n){const r=[];for(const o of t){const t=[];for(const r of o){if(!(0,u.F)(r,e,p,n)||!g(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function g(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>i,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,i=0){const l=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),u=n*l,c=r*l,h=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,f=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,d=e*s+i;t[d]=a(h),t[d+1]=a(f)}function i(t,e,n,r=2,s=0){const i=n*r+s,a=l(e[i]),u=l(e[i+1]),c=1-Math.abs(a)-Math.abs(u);return t[2]=c,c<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(u)),t[1]=(u>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=u),(0,o.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,i=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=i,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(o),i={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,i,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);