@arcgis/coding-components 4.33.0-next.88 → 4.33.0-next.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/{IUY6F3BE.js → 2ICKK2AF.js} +2 -2
- package/dist/arcgis-coding-components/{32R6FMZE.js.LEGAL.txt → 2ICKK2AF.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{T2EQLFBH.js → 42VMRWH3.js} +2 -2
- package/dist/arcgis-coding-components/{KMYADULD.js → 4O4X7P6O.js} +2 -2
- package/dist/arcgis-coding-components/{FAULC52S.js → 5DMSRCOP.js} +2 -2
- package/dist/arcgis-coding-components/{GTD47LI4.js → 6Z2HX4XT.js} +2 -2
- package/dist/arcgis-coding-components/{EQCHIURR.js → 7HFRKVFP.js} +2 -2
- package/dist/arcgis-coding-components/{6FT7ZD2Q.js.LEGAL.txt → 7HFRKVFP.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{2MLIXVD7.js → AG6YWCDY.js} +2 -2
- package/dist/arcgis-coding-components/{OZRS437U.js → AOESXI5C.js} +2 -2
- package/dist/arcgis-coding-components/{7Z34MCLV.js.LEGAL.txt → AOESXI5C.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{7Z34MCLV.js → BQEDK6XZ.js} +2 -2
- package/dist/arcgis-coding-components/{2TJXI6FD.js.LEGAL.txt → BQEDK6XZ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{7CY6QPAA.js → DNNXBGPY.js} +2 -2
- package/dist/arcgis-coding-components/{ORG5PCVK.js → DSTXSP4A.js} +1 -1
- package/dist/arcgis-coding-components/{L7HGQW4H.js → EB4HABDO.js} +2 -2
- package/dist/arcgis-coding-components/EB4HABDO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{BILDBUID.js → EMG3SXRG.js} +2 -2
- package/dist/arcgis-coding-components/EMG3SXRG.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{LLVHV63Z.js → EQELA5BY.js} +3 -3
- package/dist/arcgis-coding-components/{LLVHV63Z.js.LEGAL.txt → EQELA5BY.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{QNTINBFI.js → FAEEG4ER.js} +2 -2
- package/dist/arcgis-coding-components/FAEEG4ER.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{32R6FMZE.js → FGVQ3V3I.js} +2 -2
- package/dist/arcgis-coding-components/FGVQ3V3I.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{NPRDJIZZ.js → GNS3H6DA.js} +2 -2
- package/dist/arcgis-coding-components/{VBWMZJIM.js → HQTZ22UX.js} +2 -2
- package/dist/arcgis-coding-components/HQTZ22UX.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{R4FEQ76G.js → I2RALNQ7.js} +2 -2
- package/dist/arcgis-coding-components/{QZ7UXYEI.js → KRASHDG2.js} +1 -1
- package/dist/arcgis-coding-components/KRASHDG2.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{F3SQYY5R.js → LLMF434Q.js} +2 -2
- package/dist/arcgis-coding-components/{ZWS472ME.js → MOOB2HRF.js} +2 -2
- package/dist/arcgis-coding-components/{DBW72MRF.js → NGV2PL4O.js} +2 -2
- package/dist/arcgis-coding-components/{DBW72MRF.js.LEGAL.txt → NGV2PL4O.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{UEFNRCBG.js → NOQDTED2.js} +2 -2
- package/dist/arcgis-coding-components/{2TJXI6FD.js → NWJXJFI3.js} +2 -2
- package/dist/arcgis-coding-components/NWJXJFI3.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{J6F2O3J2.js → O46ZLA6X.js} +2 -2
- package/dist/arcgis-coding-components/{GH5J5YWP.js → OTEVKC5Y.js} +2 -2
- package/dist/arcgis-coding-components/OTEVKC5Y.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{T245NG35.js → P7PCJIEA.js} +2 -2
- package/dist/arcgis-coding-components/P7PCJIEA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{JODYKR46.js → PIT3T7LS.js} +2 -2
- package/dist/arcgis-coding-components/PIT3T7LS.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{V7GNBJCM.js → Q5PLNUGB.js} +2 -2
- package/dist/arcgis-coding-components/Q5PLNUGB.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{FYYBALJR.js → R62QWPR4.js} +2 -2
- package/dist/arcgis-coding-components/{FCSLXEM4.js → VICLNMET.js} +2 -2
- package/dist/arcgis-coding-components/{4ZRLLTJ5.js → XAIKRHJJ.js} +2 -2
- package/dist/arcgis-coding-components/{4ZRLLTJ5.js.LEGAL.txt → XAIKRHJJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{H3ELISVA.js → XELY3YS3.js} +1 -1
- package/dist/arcgis-coding-components/{6FT7ZD2Q.js → XRBQSWX2.js} +2 -2
- package/dist/arcgis-coding-components/XRBQSWX2.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +44 -44
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/arcgis-coding-components/BILDBUID.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/EQCHIURR.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/GH5J5YWP.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IUY6F3BE.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/JODYKR46.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/L7HGQW4H.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/OZRS437U.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/QNTINBFI.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/QZ7UXYEI.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/T245NG35.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/V7GNBJCM.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/VBWMZJIM.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{T2EQLFBH.js.LEGAL.txt → 42VMRWH3.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{KMYADULD.js.LEGAL.txt → 4O4X7P6O.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FAULC52S.js.LEGAL.txt → 5DMSRCOP.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{GTD47LI4.js.LEGAL.txt → 6Z2HX4XT.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{2MLIXVD7.js.LEGAL.txt → AG6YWCDY.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{7CY6QPAA.js.LEGAL.txt → DNNXBGPY.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{H3ELISVA.js.LEGAL.txt → DSTXSP4A.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{NPRDJIZZ.js.LEGAL.txt → GNS3H6DA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{R4FEQ76G.js.LEGAL.txt → I2RALNQ7.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{F3SQYY5R.js.LEGAL.txt → LLMF434Q.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ZWS472ME.js.LEGAL.txt → MOOB2HRF.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{UEFNRCBG.js.LEGAL.txt → NOQDTED2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{J6F2O3J2.js.LEGAL.txt → O46ZLA6X.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FYYBALJR.js.LEGAL.txt → R62QWPR4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FCSLXEM4.js.LEGAL.txt → VICLNMET.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ORG5PCVK.js.LEGAL.txt → XELY3YS3.js.LEGAL.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var F$=Object.defineProperty;var PC=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var MC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Io=(t,e)=>{for(var r in e)F$(t,r,{get:e[r],enumerable:!0})};function RV(t,e){let r=t;for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function w3(t,e,r){let{subscribe:n}=DV(e);return n(i=>{i.some(s=>RV(t,s.target))&&r()})}function DV(t){let e=t.join(","),r=e2[e];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let o={subscribe(s){return n.add(s),()=>{n.delete(s),n.size===0&&(i.disconnect(),e2[e]=void 0)}}};return e2[e]=o,o}function FV(t,e){let r=t;for(;r;){let n=r.closest?.(e);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function y3(t,e,r){return FV(t,`[${e}]`)?.getAttribute(e)??r}function Ut(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function hm(t,e,...r){try{let n=t?.call(e,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,t)}}async function zV(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return t2[i]??(t2[i]=b3(t,n)),await t2[i]}async function b3(t,e){let r=`${e}${t}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return t===l0?{}:await b3(l0,e)}function r2(t){let e=y3(t,"lang",globalThis.navigator?.language||l0);return{lang:e,t9nLocale:v3(e)}}function v3(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=VV[i]??i,UV.has(i)?i:r?v3(n):l0}function _3(t,e,r,n){let i,o=()=>void WV(t,e(),n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return queueMicrotask(o),w3(t,["lang"],o)}async function WV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=r2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await zV(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function S3(t,e){let r=e>GV?jV:e/qV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}function x3(t){return t!==void 0}var ii,e2,$V,UV,l0,VV,t2,u0,BV,GV,jV,qV,Kd=N(()=>{"use strict";ii=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};e2={};$V=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],UV=new Set($V),l0="en",VV={pt:"pt-PT",nb:"no",zh:"zh-CN"};t2={};u0=t=>t.replace(BV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),BV=/[A-Z]+(?![a-z])|[A-Z]/gu;GV=4e3,jV=2e3,qV=4});var gs,f0,i2,n2,E3=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(gs||(gs={}));f0=class{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,r){return this._db.get(e.id+r)?.size??0}put(e,r,n,i,o){r=e.id+r;let s=this._db.get(r);if(s&&(this._size-=s.size,e.size-=s.size,this._db.delete(r),s.entry!==n&&this._notifyRemove(r,s.entry,s.size,gs.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,gs.ALL);if(n===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return console.warn(`Refusing to cache entry with size ${i} for key ${r}`),void this._notifyRemove(r,n,0,gs.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new i2(n,i,c)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,r,n,i){r=e.id+r;let o=this._db.get(r);if(o&&o.entry===n){for(this._size-=o.size,e.size-=o.size;i>this._maxSize;){let s=this._notifyRemove(r,n,i,gs.SOME);if(!(s!=null&&s>0))return void this._db.delete(r);i=s}o.size=i,this._size+=i,e.size+=i,this._checkSize()}}pop(e,r){r=e.id+r;let n=this._db.get(r);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(r),++this._hit,n.entry;++this._miss}get(e,r){r=e.id+r;let n=this._db.get(r);if(n!==void 0)return this._db.delete(r),n.lives=n.lifetime,this._db.set(r,n),++this._hit,n.entry;++this._miss}peek(e,r){let n=this._db.get(e.id+r);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},n=new Array;this._db.forEach((s,c)=>{let a=s.lifetime;n[a]=(n[a]||0)+s.size,this._users.forEach(d=>{let{id:h,name:g}=d;if(c.startsWith(h)){let v=r[g]||0;r[g]=v+s.size}})});let i={};this._users.forEach(s=>{let c=s.name;if("hitRate"in s&&typeof s.hitRate=="number"&&!isNaN(s.hitRate)&&s.hitRate>0){let a=r[c]||0;r[c]=a,i[c]=Math.round(100*s.hitRate)+"%"}else i[c]="0%"});let o=Object.keys(r);o.sort((s,c)=>r[c]-r[s]),o.forEach(s=>e[s]=Math.round(r[s]/2**20)+"MB / "+i[s]);for(let s=n.length-1;s>=0;--s){let c=n[s];c&&(e["Priority "+(s+-3-1)]=Math.round(c/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){let r=e.id;this._db.forEach((n,i)=>{i.startsWith(r)&&(this._size-=n.size,this._db.delete(i),this._notifyRemove(i,n.entry,n.size,gs.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,gs.ALL)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,r,n,i){let o=this._users.get(e.split(n2)[0])?.removeFunc,s=o?.(r,i,n);return typeof s=="number"?s:null}_checkSize(){this._sizeLimits.forEach((e,r)=>this._checkSizeLimits(e,r)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,r){r==null||r<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,r)}_checkSizeLimits(e,r){let n=r??this;if(n.size<=e)return;let i=r?.id,o=!0;for(;o;){o=!1;for(let[s,c]of this._db)if(c.lifetime===0&&(!i||s.startsWith(i))){let a=r??this._users.get(s.split(n2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return;o||=this._db.has(s)}}for(let[s,c]of this._db)if(!i||s.startsWith(i)){let a=r??this._users.get(s.split(n2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return}}_purgeItem(e,r,n){if(this._db.delete(e),r.lives<=1){this._size-=r.size,n&&(n.size-=r.size);let i=this._notifyRemove(e,r.entry,r.size,gs.SOME);i!=null&&i>0&&(this._size+=i,n&&(n.size+=i),r.lives=r.lifetime,r.size=i,this._db.set(e,r))}else--r.lives,this._db.set(e,r)}},i2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},n2=":"});var gm,C3=N(()=>{E3();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new f0,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,r,n=1){this._storage.put(this,e,r,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}});function fe(t){return typeof _a[t]=="function"?_a[t]=_a[t](globalThis):_a[t]}var _a,St=N(()=>{_a=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},fe.add=(t,e,r,n)=>{(n||_a[t]===void 0)&&(_a[t]=e),r&&fe(t)},fe.cache=_a,fe.add("big-integer-warning-enabled",!0),fe.add("esri-deprecation-warnings",!0),fe.add("esri-tests-disable-screenshots",!1),fe.add("esri-tests-use-full-window",!1),fe.add("esri-tests-post-to-influx",!0),fe.add("esri-cim-animations-enable-status","enabled"),fe.add("esri-cim-animations-spotlight",!1),fe.add("esri-cim-animations-freeze-time",!1),(()=>{fe.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let t=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(fe.add("host-browser",t),fe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),fe.add("dom",t),fe("host-browser")){let e=navigator,r=e.userAgent,n=e.appVersion,i=parseFloat(n);if(fe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),fe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),fe.add("khtml",n.includes("Konqueror")?i:void 0),fe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),fe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),fe.add("webkit",!fe("wp")&&!fe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),fe.add("chrome",!fe("edge")&&!fe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),fe.add("android",!fe("wp")&&parseFloat(r.split("Android ")[1])||void 0),fe.add("safari",!n.includes("Safari")||fe("wp")||fe("chrome")||fe("android")||fe("edge")||fe("opr")?void 0:parseFloat(n.split("Version/")[1])),fe.add("mac",n.includes("Macintosh")),!fe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));fe.add(o,c),fe.add("ios",c)}fe("webkit")||(!r.includes("Gecko")||fe("wp")||fe("khtml")||fe("edge")||fe.add("mozilla",i),fe("mozilla")&&fe.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(t),r=/iPhone/i.test(t);e&&fe.add("esri-mobile",e),r&&fe.add("esri-iPhone",r),fe.add("esri-geolocation",!!navigator.geolocation)}fe.add("esri-wasm","WebAssembly"in globalThis),fe.add("esri-performance-mode-frames-between-render",20),fe.add("esri-force-performance-mode",!1),fe.add("esri-shared-array-buffer",()=>{let t="SharedArrayBuffer"in globalThis,e=globalThis.crossOriginIsolated===!1;return t&&!e}),fe.add("wasm-simd",()=>{let t=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(t))}),fe.add("esri-atomics","Atomics"in globalThis),fe.add("esri-workers","Worker"in globalThis),fe.add("web-feat:cache","caches"in globalThis),fe.add("esri-workers-arraybuffer-transfer",!fe("safari")||Number(fe("safari"))>=12),fe.add("workers-pool-size",8),fe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),fe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),fe.add("featurelayer-fast-triangulation-enabled",!0),fe.add("featurelayer-animation-enabled",!0),fe.add("featurelayer-snapshot-enabled",!0),fe.add("featurelayer-snapshot-point-min-threshold",8e4),fe.add("featurelayer-snapshot-point-max-threshold",4e5),fe.add("featurelayer-snapshot-point-coverage",.1),fe.add("featurelayer-query-max-depth",4),fe.add("featurelayer-query-pausing-enabled",!1),fe.add("featurelayer-advanced-symbols",!1),fe.add("featurelayer-pbf",!0),fe.add("featurelayer-pbf-statistics",!1),fe.add("feature-layers-workers",!0),fe.add("feature-polyline-generalization-factor",1),fe.add("mapview-transitions-duration",200),fe.add("mapview-essential-goto-duration",200),fe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),fe.add("mapserver-pbf-version-support",10.81),fe.add("mapservice-popup-identify-max-tolerance",20),fe.add("request-queue-concurrency-hosted",16),fe.add("request-queue-concurrency-non-hosted",4),fe.add("curve-densification-coarse-segments",128),fe.add("curve-densification-max-segments",2e3),fe.add("curve-densification-min-segments",3),fe.add("curve-densification-pixel-deviation",.5),fe.add("view-readyState-waiting-delay",1e3),fe.add("gradient-depth-bias",.01),fe.add("gradient-depth-epsilon",1e-8),fe.add("enable-feature:esri-compress-textures",!0),fe("host-webworker")||fe("host-browser")&&(fe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),fe.add("esri-image-decode",()=>{if("decode"in new Image){let t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void t.decode().then(()=>{fe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{fe.add("esri-image-decode",!1,!0,!0)})}return!1}),fe.add("esri-url-encodes-apostrophe",()=>{let t=window.document.createElement("a");return t.href="?'",t.href.includes("?%27")}))})()});var o2=N(()=>{St()});var p0,Sa=N(()=>{p0=class t{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*t._m}getInt(){return this._seed=(t._a*this._seed+t._c)%t._m,this._seed}getFloat(){return this.getInt()/(t._m-1)}getIntRange(e,r){return Math.round(this.getFloatRange(e,r))}getFloatRange(e,r){let n=r-e;return e+this.getInt()/t._m*n}}});function m0(t,e,r){if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function s2(t,e,r,n){n=n||T3;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(t[s]===e)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(t[s]===e)return n.last=s,s;return-1}function P3(t,e,r=t.length,n=e.length,i,o){if(n===0||r===0)return r;Yi.clear();for(let c=0;c<n;++c)Yi.add(e[c]);i=i||T3;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;for(let c=0;c<s;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;return Yi.clear(),r}function M3(t,e){let r=t.indexOf(e);return r!==-1?(t.splice(r,1),e):null}function A3(t,e){return t!=null}var YV,$oe,wm,T3,Yi,Uoe,Qd=N(()=>{o2();Sa();YV=1.5,$oe=1/YV;wm=class{constructor(){this.last=0}},T3=new wm;Yi=new Set;Uoe=new p0});function I3(t){return t?.constructor?.name==="Int8Array"}function L3(t){return t?.constructor?.name==="Uint8Array"}function k3(t){return t?.constructor?.name==="Uint8ClampedArray"}function O3(t){return t?.constructor?.name==="Int16Array"}function N3(t){return t?.constructor?.name==="Uint16Array"}function R3(t){return t?.constructor?.name==="Int32Array"}function D3(t){return t?.constructor?.name==="Uint32Array"}function F3(t){return t?.constructor?.name==="Float32Array"}function $3(t){return t?.constructor?.name==="Float64Array"}var Woe,U3=N(()=>{St();Woe=2**32-1});function h0(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&h0(t[r],!0));else for(r in t)t.hasOwnProperty(r)&&t[r]===void 0&&delete t[r];return t}function Ht(t){if(!t||typeof t!="object"||typeof t=="function")return t;let e=KV(t);if(e!=null)return e;if(ZV(t))return t.clone();if(XV(t))return t.map(Ht);if(JV(t))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=Ht(t[n]);return r}function ZV(t){return typeof t.clone=="function"}function XV(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function JV(t){return typeof t.notifyChange=="function"&&typeof t.watch=="function"}function V3(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function KV(t){if(I3(t)||L3(t)||k3(t)||O3(t)||N3(t)||R3(t)||D3(t)||F3(t)||$3(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer)return t.slice(0,t.byteLength);if(t instanceof Map){let e=new Map;for(let[r,n]of t)e.set(r,Ht(n));return e}if(t instanceof Set){let e=new Set;for(let r of t)e.add(Ht(r));return e}return null}function ym(t,e){return t===e||typeof t=="number"&&isNaN(t)&&typeof e=="number"&&isNaN(e)||typeof t?.getTime=="function"&&typeof e?.getTime=="function"&&t.getTime()===e.getTime()||!1}function g0(t,e){return t===e||(t==null||typeof t=="string"?t===e:typeof t=="number"?t===e||typeof e=="number"&&isNaN(t)&&isNaN(e):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Array.isArray(t)?Array.isArray(e)&&m0(t,e):t instanceof Set?e instanceof Set&&ez(t,e):t instanceof Map?e instanceof Map&&tz(t,e):!!V3(t)&&V3(e)&&QV(t,e))}function QV(t,e){if(t===null||e===null)return!1;let r=Object.keys(t);if(e===null||Object.keys(e).length!==r.length)return!1;for(let n of r)if(t[n]!==e[n]||!Object.prototype.hasOwnProperty.call(e,n))return!1;return!0}function ez(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function tz(t,e){if(t.size!==e.size)return!1;for(let[r,n]of t){let i=e.get(r);if(i!==n||i===void 0&&!e.has(r))return!1}return!0}var Mn=N(()=>{Qd();U3()});function z3(t,e,r=!1){return B3(t,e,r)}function Ci(t,e){if(e!=null)return e[t]||W3(t.split("."),!1,e)}function ws(t,e,r){let n=t.split("."),i=n.pop(),o=W3(n,!0,r);o&&i&&(o[i]=e)}function W3(t,e,r){let n=r;for(let i of t){if(n==null)return;if(!(i in n)){if(!e)return;n[i]={}}n=n[i]}return n}function B3(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=n[i],s=e[i];return o===s?n:o===void 0?(n[i]=Ht(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=B3(o,s,r):n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[i]=s),n)},t||{}):t}var Do=N(()=>{Mn()});function G3(t){return t??""}function Fo(t,e){return e?t.replaceAll(rz,typeof e=="object"?(r,n)=>G3(Ci(n,e)):(r,n)=>G3(e(n))):t}function j3(t,e){return t.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>e?.includes(r)?r:`\\${r}`)}function q3(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}var rz,xa=N(()=>{Do();rz=/\{([^}]+)\}/g});var ys,w0,y0,b0,Zi,ef,sr,Xi,Ea=N(()=>{ys=class extends Error{},w0=class extends ys{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},y0=class extends ys{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},b0=class extends ys{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zi=class extends ys{},ef=class extends ys{constructor(e){super(`Invalid unit ${e}`)}},sr=class extends ys{},Xi=class extends ys{constructor(){super("Zone is an abstract class")}}});var Le,Ji,oi,Ca,bm,a2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,c2,Nm,Rm,Dm,Fm,$m=N(()=>{Le="numeric",Ji="short",oi="long",Ca={year:Le,month:Le,day:Le},bm={year:Le,month:Ji,day:Le},a2={year:Le,month:Ji,day:Le,weekday:Ji},vm={year:Le,month:oi,day:Le},_m={year:Le,month:oi,day:Le,weekday:oi},Sm={hour:Le,minute:Le},xm={hour:Le,minute:Le,second:Le},Em={hour:Le,minute:Le,second:Le,timeZoneName:Ji},Cm={hour:Le,minute:Le,second:Le,timeZoneName:oi},Tm={hour:Le,minute:Le,hourCycle:"h23"},Pm={hour:Le,minute:Le,second:Le,hourCycle:"h23"},Mm={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:Ji},Am={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:oi},Im={year:Le,month:Le,day:Le,hour:Le,minute:Le},Lm={year:Le,month:Le,day:Le,hour:Le,minute:Le,second:Le},km={year:Le,month:Ji,day:Le,hour:Le,minute:Le},Om={year:Le,month:Ji,day:Le,hour:Le,minute:Le,second:Le},c2={year:Le,month:Ji,day:Le,weekday:Ji,hour:Le,minute:Le},Nm={year:Le,month:oi,day:Le,hour:Le,minute:Le,timeZoneName:Ji},Rm={year:Le,month:oi,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Ji},Dm={year:Le,month:oi,day:Le,weekday:oi,hour:Le,minute:Le,timeZoneName:oi},Fm={year:Le,month:oi,day:Le,weekday:oi,hour:Le,minute:Le,second:Le,timeZoneName:oi}});var _r,vl=N(()=>{Ea();_r=class{get type(){throw new Xi}get name(){throw new Xi}get ianaName(){return this.name}get isUniversal(){throw new Xi}offsetName(e,r){throw new Xi}formatOffset(e,r){throw new Xi}offset(e){throw new Xi}equals(e){throw new Xi}get isValid(){throw new Xi}}});var l2,Ta,_0=N(()=>{An();vl();l2=null,Ta=class t extends _r{static get instance(){return l2===null&&(l2=new t),l2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}});function nz(t){let e=d2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),d2.set(t,e)),e}function oz(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function sz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=iz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var d2,iz,u2,ar,Ma=N(()=>{An();vl();d2=new Map;iz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};u2=new Map,ar=class t extends _r{static create(e){let r=u2.get(e);return r===void 0&&u2.set(e,r=new t(e)),r}static resetCache(){u2.clear(),d2.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n,this.name)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=nz(this.name),[i,o,s,c,a,d,h]=n.formatToParts?sz(n,r):oz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=tf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,M=E%1e3;return E-=M>=0?M:1e3+M,(v-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}});function az(t,e={}){let r=JSON.stringify([t,e]),n=H3[r];return n||(n=new Intl.ListFormat(t,e),H3[r]=n),n}function p2(t,e={}){let r=JSON.stringify([t,e]),n=f2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),f2.set(r,n)),n}function cz(t,e={}){let r=JSON.stringify([t,e]),n=m2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),m2.set(r,n)),n}function lz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=h2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),h2.set(i,o)),o}function uz(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function Y3(t){let e=g2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),g2.set(t,e)),e}function dz(t){let e=w2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Z3,...e}),w2.set(t,e)}return e}function fz(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,i;try{n=p2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=p2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function pz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function mz(t){let e=[];for(let r=1;r<=12;r++){let n=Te.utc(2009,r,1);e.push(t(n))}return e}function hz(t){let e=[];for(let r=1;r<=7;r++){let n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function x0(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function gz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Y3(t.locale).numberingSystem==="latn"}var H3,f2,m2,h2,Um,g2,w2,y2,b2,v2,Z3,pt,zm=N(()=>{An();T0();Aa();Ia();Ma();H3={};f2=new Map;m2=new Map;h2=new Map;Um=null;g2=new Map;w2=new Map;y2=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=cz(e,c)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):rf(e,3);return tr(r,this.padTo)}}},b2=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&ar.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=p2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},v2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&E0()&&(this.rtf=lz(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):X3(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Z3={firstDay:1,minimalDays:4,weekend:[6,7]},pt=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,o=!1){let s=e||ft.defaultLocale,c=s||(o?"en-US":uz()),a=r||ft.defaultNumberingSystem,d=n||ft.defaultOutputCalendar,h=Vm(i)||ft.defaultWeekSettings;return new t(c,a,d,h,s)}static resetCache(){Um=null,f2.clear(),m2.clear(),h2.clear(),g2.clear(),w2.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return t.create(e,r,n,i)}constructor(e,r,n,i,o){let[s,c,a]=fz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=pz(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=gz(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Vm(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return x0(this,e,_2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=mz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return x0(this,e,S2,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=hz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return x0(this,void 0,()=>x2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return x0(this,e,E2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let i=this.dtFormatter(e,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new y2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new b2(e,this.intl,r)}relFormatter(e={}){return new v2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return az(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Y3(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:C0()?dz(this.locale):Z3}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var T2,xt,nf=N(()=>{An();vl();T2=null,xt=class t extends _r{static get utcInstance(){return T2===null&&(T2=new t(0)),T2}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(_l(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Pa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Pa(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}});var of,P2=N(()=>{vl();of=class extends _r{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Ki(t,e){let r;if(Ge(t)||t===null)return e;if(t instanceof _r)return t;if(J3(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ta.instance:n==="utc"||n==="gmt"?xt.utcInstance:xt.parseSpecifier(n)||ar.create(t)}else return Qi(t)?xt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new of(t)}var P0=N(()=>{vl();Ma();nf();P2();An();_0()});function Q3(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(A2.hanidec)!==-1)e+=wz.indexOf(t[r]);else for(let i in K3){let[o,s]=K3[i];n>=o&&n<=s&&(e+=n-o)}}return parseInt(e,10)}else return e}function e6(){M2.clear()}function Ti({numberingSystem:t},e=""){let r=t||"latn",n=M2.get(r);n===void 0&&(n=new Map,M2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${A2[r]}${e}`),n.set(e,i)),i}var A2,K3,wz,M2,I2=N(()=>{A2={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},K3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},wz=A2.hanidec.replace(/[\[|\]]/g,"").split("");M2=new Map});var t6,r6,n6,i6,o6,s6,a6,c6,ft,Aa=N(()=>{_0();Ma();zm();Ia();P0();An();I2();t6=()=>Date.now(),r6="system",n6=null,i6=null,o6=null,s6=60,c6=null,ft=class{static get now(){return t6}static set now(e){t6=e}static set defaultZone(e){r6=e}static get defaultZone(){return Ki(r6,Ta.instance)}static get defaultLocale(){return n6}static set defaultLocale(e){n6=e}static get defaultNumberingSystem(){return i6}static set defaultNumberingSystem(e){i6=e}static get defaultOutputCalendar(){return o6}static set defaultOutputCalendar(e){o6=e}static get defaultWeekSettings(){return c6}static set defaultWeekSettings(e){c6=Vm(e)}static get twoDigitCutoffYear(){return s6}static set twoDigitCutoffYear(e){s6=e%100}static get throwOnInvalid(){return a6}static set throwOnInvalid(e){a6=e}static resetCaches(){pt.resetCache(),ar.resetCache(),Te.resetCache(),e6()}}});var Br,Wm=N(()=>{Br=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Pi(t,e){return new Br("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function M0(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function d6(t,e,r){return r+(xl(t)?u6:l6)[e-1]}function f6(t,e){let r=xl(t)?u6:l6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function A0(t,e){return(t-e+7)%7+1}function Bm(t,e=4,r=1){let{year:n,month:i,day:o}=t,s=d6(n,i,o),c=A0(M0(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=Sl(d,e,r)):a>Sl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function L2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=A0(M0(n,1,e),r),c=La(n),a=i*7+o-s-7+e,d;a<1?(d=n-1,a+=La(d)):a>c?(d=n+1,a-=La(n)):d=n;let{month:h,day:g}=f6(d,a);return{year:d,month:h,day:g,...jm(t)}}function I0(t){let{year:e,month:r,day:n}=t,i=d6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function k2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=f6(e,r);return{year:e,month:n,day:i,...jm(t)}}function O2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Zi("Cannot mix locale-based week fields with ISO-based week fields");return Ge(t.localWeekday)||(t.weekday=t.localWeekday),Ge(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ge(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function p6(t,e=4,r=1){let n=Gm(t.weekYear),i=si(t.weekNumber,1,Sl(t.weekYear,e,r)),o=si(t.weekday,1,7);return n?i?o?!1:Pi("weekday",t.weekday):Pi("week",t.weekNumber):Pi("weekYear",t.weekYear)}function m6(t){let e=Gm(t.year),r=si(t.ordinal,1,La(t.year));return e?r?!1:Pi("ordinal",t.ordinal):Pi("year",t.year)}function N2(t){let e=Gm(t.year),r=si(t.month,1,12),n=si(t.day,1,sf(t.year,t.month));return e?r?n?!1:Pi("day",t.day):Pi("month",t.month):Pi("year",t.year)}function R2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=si(e,0,23)||e===24&&r===0&&n===0&&i===0,s=si(r,0,59),c=si(n,0,59),a=si(i,0,999);return o?s?c?a?!1:Pi("millisecond",i):Pi("second",n):Pi("minute",r):Pi("hour",e)}var l6,u6,D2=N(()=>{An();Wm();Ea();l6=[0,31,59,90,120,151,181,212,243,273,304,334],u6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(t){return typeof t>"u"}function Qi(t){return typeof t=="number"}function Gm(t){return typeof t=="number"&&t%1===0}function J3(t){return typeof t=="string"}function g6(t){return Object.prototype.toString.call(t)==="[object Date]"}function E0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function C0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function w6(t){return Array.isArray(t)?t:[t]}function F2(t,e,r){if(t.length!==0)return t.reduce((n,i)=>{let o=[e(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function y6(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ka(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Vm(t){if(t==null)return null;if(typeof t!="object")throw new sr("Week settings must be an object");if(!si(t.firstDay,1,7)||!si(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!si(e,1,7)))throw new sr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function si(t,e,r){return Gm(t)&&t>=e&&t<=r}function yz(t,e){return t-e*Math.floor(t/e)}function tr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function bs(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function Oa(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function qm(t){if(!(Ge(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function rf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return xl(t)?366:365}function sf(t,e){let r=yz(e-1,12)+1,n=t+(e-r)/12;return r===2?xl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function tf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function h6(t,e,r){return-A0(M0(t,1,e),r)+e-1}function Sl(t,e=4,r=1){let n=h6(t,e,r),i=h6(t+1,e,r);return(La(t)-n+i)/7}function Hm(t){return t>99?t:t>ft.twoDigitCutoffYear?1900+t:2e3+t}function S0(t,e,r,n=null){let i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:e,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function _l(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function $2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new sr(`Invalid unit value ${t}`);return e}function af(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=$2(i)}return r}function Pa(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${tr(r,2)}:${tr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${tr(r,2)}${tr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function jm(t){return y6(t,["hour","minute","second","millisecond"])}var An=N(()=>{Ea();Aa();D2()});function _2(t){switch(t){case"narrow":return[...vz];case"short":return[...U2];case"long":return[...bz];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function S2(t){switch(t){case"narrow":return[..._z];case"short":return[...z2];case"long":return[...V2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function E2(t){switch(t){case"narrow":return[...Ez];case"short":return[...xz];case"long":return[...Sz];default:return null}}function b6(t){return x2[t.hour<12?0:1]}function v6(t,e){return S2(e)[t.weekday-1]}function _6(t,e){return _2(e)[t.month-1]}function S6(t,e){return E2(e)[t.year<0?0:1]}function X3(t,e,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){let g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${i[t][0]}`;case-1:return g?"yesterday":`last ${i[t][0]}`;case 0:return g?"today":`this ${i[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,c=Math.abs(e),a=c===1,d=i[t],h=n?a?d[1]:d[2]||d[1]:a?i[t][0]:t;return s?`${c} ${h} ago`:`in ${c} ${h}`}var bz,U2,vz,V2,z2,_z,x2,Sz,xz,Ez,T0=N(()=>{$m();An();bz=["January","February","March","April","May","June","July","August","September","October","November","December"],U2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],vz=["J","F","M","A","M","J","J","A","S","O","N","D"];V2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],z2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_z=["M","T","W","T","F","S","S"];x2=["AM","PM"],Sz=["Before Christ","Anno Domini"],xz=["BC","AD"],Ez=["B","A"]});function x6(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Cz,Gr,Ym=N(()=>{T0();$m();An();Cz={D:Ca,DD:bm,DDD:vm,DDDD:_m,t:Sm,tt:xm,ttt:Em,tttt:Cm,T:Tm,TT:Pm,TTT:Mm,TTTT:Am,f:Im,ff:km,fff:Nm,ffff:Dm,F:Lm,FF:Om,FFF:Rm,FFFF:Fm},Gr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",i=!1,o=[];for(let s=0;s<e.length;s++){let c=e.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Cz[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return tr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,M)=>this.loc.extract(e,E,M),s=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",c=()=>n?b6(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,M)=>n?_6(e,E):o(M?{month:E}:{month:E,day:"numeric"},"month"),d=(E,M)=>n?v6(e,E):o(M?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let M=t.macroTokenToFormatOpts(E);return M?this.formatWithSystemDefault(e,M):E},g=E=>n?S6(e,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(E)}};return x6(t.parseFormat(r),v)}formatDurationFromString(e,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=t.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=e.shiftTo(...s.map(n).filter(a=>a));return x6(o,i(c))}}});function lf(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function uf(...t){return e=>t.reduce(([r,n,i],o)=>{let[s,c,a]=o(e,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function df(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let i=r.exec(t);if(i)return n(i)}return[null,null]}function T6(...t){return(e,r)=>{let n={},i;for(i=0;i<t.length;i++)n[t[i]]=bs(e[r+i]);return[n,null,r+i]}}function cf(t,e,r){let n=t[e];return Ge(n)?r:bs(n)}function Nz(t,e){return[{year:cf(t,e),month:cf(t,e+1,1),day:cf(t,e+2,1)},null,e+3]}function ff(t,e){return[{hours:cf(t,e,0),minutes:cf(t,e+1,0),seconds:cf(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=_l(t[e+1],t[e+2]),i=r?null:xt.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?ar.create(t[e]):null;return[{},r,e+1]}function Fz(t){let[e,r,n,i,o,s,c,a,d]=t,h=e[0]==="-",g=a&&a[0]==="-",v=(E,M=!1)=>E!==void 0&&(M||E&&h)?-E:E;return[{years:v(Oa(r)),months:v(Oa(n)),weeks:v(Oa(i)),days:v(Oa(o)),hours:v(Oa(s)),minutes:v(Oa(c)),seconds:v(Oa(a),a==="-0"),milliseconds:v(qm(d),g)}]}function G2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(bs(e)):bs(e),month:U2.indexOf(r)+1,day:bs(n),hour:bs(i),minute:bs(o)};return s&&(c.second=bs(s)),t&&(c.weekday=t.length>3?V2.indexOf(t)+1:z2.indexOf(t)+1),c}function Vz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=G2(e,i,n,r,o,s,c),E;return a?E=$z[a]:d?E=0:E=_l(h,g),[v,new xt(E)]}function zz(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function E6(t){let[,e,r,n,i,o,s,c]=t;return[G2(e,i,n,r,o,s,c),xt.utcInstance]}function jz(t){let[,e,r,n,i,o,s,c]=t;return[G2(e,c,r,n,i,o,s),xt.utcInstance]}function L6(t){return df(t,[qz,I6],[Hz,Xz],[Yz,Jz],[Zz,Kz])}function k6(t){return df(zz(t),[Uz,Vz])}function O6(t){return df(t,[Wz,E6],[Bz,E6],[Gz,jz])}function N6(t){return df(t,[Dz,Fz])}function R6(t){return df(t,[Rz,Qz])}function D6(t){return df(t,[eW,I6],[tW,rW])}var C6,P6,Tz,W2,M6,B2,Pz,Mz,Az,Iz,Lz,kz,A6,Oz,Rz,Dz,$z,Uz,Wz,Bz,Gz,qz,Hz,Yz,Zz,I6,Xz,Jz,Kz,Qz,eW,tW,rW,j2=N(()=>{An();T0();nf();Ma();C6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;P6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tz=`(?:${P6.source}?(?:\\[(${C6.source})\\])?)?`,W2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,M6=RegExp(`${W2.source}${Tz}`),B2=RegExp(`(?:T${M6.source})?`),Pz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Mz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Az=/(\d{4})-?(\d{3})/,Iz=T6("weekYear","weekNumber","weekDay"),Lz=T6("year","ordinal"),kz=/(\d{4})-(\d\d)-(\d\d)/,A6=RegExp(`${W2.source} ?(?:${P6.source}|(${C6.source}))?`),Oz=RegExp(`(?: ${A6.source})?`);Rz=RegExp(`^T?${W2.source}$`),Dz=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;$z={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};Uz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;Wz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Bz=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;qz=lf(Pz,B2),Hz=lf(Mz,B2),Yz=lf(Az,B2),Zz=lf(M6),I6=uf(Nz,ff,Zm,Xm),Xz=uf(Iz,ff,Zm,Xm),Jz=uf(Lz,ff,Zm,Xm),Kz=uf(ff,Zm,Xm);Qz=uf(ff);eW=lf(kz,Oz),tW=lf(A6),rW=uf(ff,Zm,Xm)});function Na(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new rr(n)}function V6(t,e){let r=e.milliseconds??0;for(let n of oW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=V6(t,e)<0?-1:1;El.reduceRight((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]*r,s=t[i][n],c=Math.floor(o/s);e[i]+=c*r,e[n]-=c*s*r}return i},null),El.reduce((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*t[n][i]}return i},null)}function sW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var F6,U6,nW,Mi,pf,iW,El,oW,rr,Jm=N(()=>{Ea();Ym();Wm();zm();j2();An();Aa();Ia();F6="Invalid Duration",U6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},nW={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...U6},Mi=146097/400,pf=146097/4800,iW={years:{quarters:4,months:12,weeks:Mi/7,days:Mi,hours:Mi*24,minutes:Mi*24*60,seconds:Mi*24*60*60,milliseconds:Mi*24*60*60*1e3},quarters:{months:3,weeks:Mi/28,days:Mi/4,hours:Mi*24/4,minutes:Mi*24*60/4,seconds:Mi*24*60*60/4,milliseconds:Mi*24*60*60*1e3/4},months:{weeks:pf/7,days:pf,hours:pf*24,minutes:pf*24*60,seconds:pf*24*60*60,milliseconds:pf*24*60*60*1e3},...U6},El=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oW=El.slice(0).reverse();rr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?iW:nW;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new sr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:af(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Qi(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new sr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=N6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=R6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the Duration is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new b0(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new ef(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Gr.create(this.loc,n).formatDurationFromString(this,e):F6}toHuman(e={}){if(!this.isValid)return F6;let r=El.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=rf(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?V6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let i of El)(ka(r.values,i)||ka(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Na(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=$2(e(this.values[n],n));return Na(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...af(e,t.normalizeUnit)};return Na(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Na(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return $6(this.matrix,e),Na(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=sW(this.normalize().shiftToAll().toObject());return Na(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of El)if(e.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Qi(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Qi(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return $6(this.matrix,r),Na(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Na(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of El)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function aW(t,e){return!t||!t.isValid?vs.invalid("missing or invalid start"):!e||!e.isValid?vs.invalid("missing or invalid end"):e<t?vs.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var mf,vs,q2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();$m();mf="Invalid Interval";vs=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the Interval is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new y0(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=hf(e),i=hf(r),o=aW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=rr.fromDurationLike(r),i=hf(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=rr.fromDurationLike(r),i=hf(e);return t.fromDateTimes(i.minus(n),i)}static fromISO(e,r){let[n,i]=(e||"").split("/",2);if(n&&i){let o,s;try{o=Te.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Te.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return t.fromDateTimes(o,c);if(s){let d=rr.fromISO(i,r);if(d.isValid)return t.after(o,d)}else if(a){let d=rr.fromISO(n,r);if(d.isValid)return t.before(c,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(hf).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(t.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(e){let r=rr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(t.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,i=[],o=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(t.fromDateTimes(r,a.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:mf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.s.loc.clone(r),e).formatInterval(this):mf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:mf}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):rr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}}});var _s,H2=N(()=>{Ia();Aa();zm();Ma();P0();An();_s=class{static hasDST(e=ft.defaultZone){let r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return ar.isValidZone(e)}static normalizeZone(e){return Ki(e,ft.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pt.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(e)}static features(){return{relative:E0(),localeWeek:C0()}}}});function z6(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(rr.fromMillis(n).as("days"))}function cW(t,e,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=z6(a,d);return(h-h%7)/7}],["days",z6]],i={},o=t,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(t,e),c=o.plus(i),c>e?(i[a]--,t=o.plus(i),t>e&&(c=t,i[a]--,t=o.plus(i))):t=c);return[t,i,c,s]}function W6(t,e,r,n){let[i,o,s,c]=cW(t,e,r),a=e-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<e&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=rr.fromObject(o,n);return d.length>0?rr.fromMillis(a,n).shiftTo(...d).plus(h):h}var B6=N(()=>{Jm()});function gt(t,e=r=>r){return{regex:t,deser:([r])=>e(Q3(r))}}function dW(t){return t.replace(/\./g,"\\.?").replace(H6,q6)}function G6(t){return t.replace(/\./g,"").replace(H6," ").toLowerCase()}function eo(t,e){return t===null?null:{regex:RegExp(t.map(dW).join("|")),deser:([r])=>t.findIndex(n=>G6(r)===G6(n))+e}}function j6(t,e){return{regex:t,deser:([,r,n])=>_l(r,n),groups:e}}function L0(t){return{regex:t,deser:([e])=>e}}function fW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pW(t,e){let r=Ti(e),n=Ti(e,"{2}"),i=Ti(e,"{3}"),o=Ti(e,"{4}"),s=Ti(e,"{6}"),c=Ti(e,"{1,2}"),a=Ti(e,"{1,3}"),d=Ti(e,"{1,6}"),h=Ti(e,"{1,9}"),g=Ti(e,"{2,4}"),v=Ti(e,"{4,6}"),E=F=>({regex:RegExp(fW(F.val)),deser:([z])=>z,literal:!0}),k=(F=>{if(t.literal)return E(F);switch(F.val){case"G":return eo(e.eras("short"),0);case"GG":return eo(e.eras("long"),0);case"y":return gt(d);case"yy":return gt(g,Hm);case"yyyy":return gt(o);case"yyyyy":return gt(v);case"yyyyyy":return gt(s);case"M":return gt(c);case"MM":return gt(n);case"MMM":return eo(e.months("short",!0),1);case"MMMM":return eo(e.months("long",!0),1);case"L":return gt(c);case"LL":return gt(n);case"LLL":return eo(e.months("short",!1),1);case"LLLL":return eo(e.months("long",!1),1);case"d":return gt(c);case"dd":return gt(n);case"o":return gt(a);case"ooo":return gt(i);case"HH":return gt(n);case"H":return gt(c);case"hh":return gt(n);case"h":return gt(c);case"mm":return gt(n);case"m":return gt(c);case"q":return gt(c);case"qq":return gt(n);case"s":return gt(c);case"ss":return gt(n);case"S":return gt(a);case"SSS":return gt(i);case"u":return L0(h);case"uu":return L0(c);case"uuu":return gt(r);case"a":return eo(e.meridiems(),0);case"kkkk":return gt(o);case"kk":return gt(g,Hm);case"W":return gt(c);case"WW":return gt(n);case"E":case"c":return gt(r);case"EEE":return eo(e.weekdays("short",!1),1);case"EEEE":return eo(e.weekdays("long",!1),1);case"ccc":return eo(e.weekdays("short",!0),1);case"cccc":return eo(e.weekdays("long",!0),1);case"Z":case"ZZ":return j6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return j6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return L0(/[a-z_+-/]{1,256}?/i);case" ":return L0(/[^\S\n\r]/);default:return E(F)}})(t)||{invalidReason:lW};return k.token=t,k}function hW(t,e,r){let{type:n,value:i}=t;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=mW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function gW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function wW(t,e,r){let n=t.match(e);if(n){let i={},o=1;for(let s in r)if(ka(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function yW(t){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(t.z)||(r=ar.create(t.z)),Ge(t.Z)||(r||(r=new xt(t.Z)),n=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=qm(t.u)),[Object.keys(t).reduce((o,s)=>{let c=e(s);return c&&(o[c]=t[s]),o},{}),r,n]}function bW(){return Y2||(Y2=Te.fromMillis(1555555555555)),Y2}function vW(t,e){if(t.literal)return t;let r=Gr.macroTokenToFormatOpts(t.val),n=J2(r,e);return n==null||n.includes(void 0)?t:n}function Z2(t,e){return Array.prototype.concat(...t.map(r=>vW(r,e)))}function X2(t,e,r){return new Km(t,r).explainFromTokens(e)}function Y6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=X2(t,e,r);return[n,i,o,s]}function J2(t,e){if(!t)return null;let n=Gr.create(e,t).dtFormatter(bW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>hW(s,t,o))}var lW,uW,q6,H6,mW,Y2,Km,Z6=N(()=>{An();Ym();nf();Ma();Ia();I2();Ea();lW="missing Intl.DateTimeFormat.formatToParts support";uW="\xA0",q6=`[ ${uW}]`,H6=new RegExp(q6,"g");mW={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};Y2=null;Km=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Z2(Gr.parseFormat(r),e),this.units=this.tokens.map(n=>pW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=gW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=wW(e,this.regex,this.handlers),[i,o,s]=n?yW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Zi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Qm(t){return new Br("unsupported zone",`the zone "${t.name}" is not supported`)}function Q2(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function eS(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function n8(t,e,r){let n=t-e*60*1e3,i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function k0(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function N0(t,e,r){return n8(tf(t),e,r)}function J6(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:n,month:i,day:Math.min(t.c.day,sf(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=rr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=tf(o),[a,d]=n8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function gf(t,e,r,n,i,o){let{setZone:s,zone:c}=r;if(t&&Object.keys(t).length!==0||e){let a=e||c,d=Te.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Te.invalid(new Br("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O0(t,e,r=!0){return t.isValid?Gr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function tS(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=tr(t.c.year,r?6:4),e?(n+="-",n+=tr(t.c.month),n+="-",n+=tr(t.c.day)):(n+=tr(t.c.month),n+=tr(t.c.day)),n}function K6(t,e,r,n,i,o){let s=tr(t.c.hour);return e?(s+=":",s+=tr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=tr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=tr(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=tr(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!o?s+="Z":t.o<0?(s+="-",s+=tr(Math.trunc(-t.o/60)),s+=":",s+=tr(Math.trunc(-t.o%60))):(s+="+",s+=tr(Math.trunc(t.o/60)),s+=":",s+=tr(Math.trunc(t.o%60)))),o&&(s+="["+t.zone.ianaName+"]"),s}function CW(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ef(t);return e}function Q6(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return CW(t)}}function TW(t){if(eh===void 0&&(eh=ft.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=rS.get(e);return r===void 0&&(r=t.offset(eh),rS.set(e,r)),r}function e8(t,e){let r=Ki(e.zone,ft.defaultZone);if(!r.isValid)return Te.invalid(Qm(r));let n=pt.fromObject(e),i,o;if(Ge(t.year))i=ft.now();else{for(let a of o8)Ge(t[a])&&(t[a]=i8[a]);let s=N2(t)||R2(t);if(s)return Te.invalid(s);let c=TW(r);[i,o]=N0(t,c,r)}return new Te({ts:i,zone:r,loc:n,o})}function t8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=rf(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(t>e?-0:0,r.units[r.units.length-1])}function r8(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}function hf(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&Qi(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new sr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var K2,X6,i8,_W,SW,o8,xW,EW,eh,rS,Te,Ia=N(()=>{Jm();q2();Aa();H2();Ym();nf();zm();An();P0();B6();j2();Z6();D2();$m();Ea();Wm();K2="Invalid DateTime",X6=864e13;i8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},_W={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o8=["year","month","day","hour","minute","second","millisecond"],xW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],EW=["year","ordinal","hour","minute","second","millisecond"];rS=new Map,Te=class t{constructor(e){let r=e.zone||ft.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Br("invalid input"):null)||(r.isValid?null:Qm(r));this.ts=Ge(e.ts)?ft.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,o]=[e.old.c,e.old.o];else{let c=Qi(e.o)&&!e.old?e.o:r.offset(this.ts);i=k0(this.ts,c),n=Number.isNaN(i.year)?new Br("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=e.loc||pt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=r8(arguments),[n,i,o,s,c,a,d]=r;return e8({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static utc(){let[e,r]=r8(arguments),[n,i,o,s,c,a,d]=r;return e.zone=xt.utcInstance,e8({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static fromJSDate(e,r={}){let n=g6(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let i=Ki(r.zone,ft.defaultZone);return i.isValid?new t({ts:n,zone:i,loc:pt.fromObject(r)}):t.invalid(Qm(i))}static fromMillis(e,r={}){if(Qi(e))return e<-X6||e>X6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Ki(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Qi(e))return new t({ts:e*1e3,zone:Ki(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Ki(r.zone,ft.defaultZone);if(!n.isValid)return t.invalid(Qm(n));let i=pt.fromObject(r),o=af(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=O2(o,i),a=ft.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),E=g||v,M=o.weekYear||o.weekNumber;if((E||h)&&M)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Zi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,F,z,B=k0(a,d);k?(F=xW,z=_W,B=Bm(B,s,c)):h?(F=EW,z=SW,B=I0(B)):(F=o8,z=i8);let q=!1;for(let Ce of F){let Ne=o[Ce];Ge(Ne)?q?o[Ce]=z[Ce]:o[Ce]=B[Ce]:q=!0}let V=k?p6(o,s,c):h?m6(o):N2(o),X=V||R2(o);if(X)return t.invalid(X);let Q=k?L2(o,s,c):h?k2(o):o,[$,me]=N0(Q,d,n),ke=new t({ts:$,zone:n,o:me,loc:i});return o.weekday&&E&&e.weekday!==ke.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:t.invalid(ke.invalid)}static fromISO(e,r={}){let[n,i]=L6(e);return gf(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=k6(e);return gf(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=O6(e);return gf(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Ge(e)||Ge(r))throw new sr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=Y6(s,e,r);return h?t.invalid(h):gf(c,a,n,`format ${r}`,e,d)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,i]=D6(e);return gf(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the DateTime is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new w0(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=J2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Z2(Gr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,rS.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Q2(this).weekYear:NaN}get weekNumber(){return this.isValid?Q2(this).weekNumber:NaN}get weekday(){return this.isValid?Q2(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?eS(this).weekday:NaN}get localWeekNumber(){return this.isValid?eS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?eS(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?_s.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_s.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_s.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_s.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=tf(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=k0(a,s),g=k0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cl(this,{ts:a}),Cl(this,{ts:d})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return sf(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Sl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:i}=Gr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(xt.instance(e),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Ki(e,ft.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){let o=e.offset(this.ts),s=this.toObject();[i]=N0(s,o,e)}return Cl(this,{ts:i,zone:e})}else return t.invalid(Qm(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Cl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=af(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=O2(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Zi("Can't mix ordinal dates with month/day");let g;o?g=L2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(sf(g.year,g.month),g.day))):g=k2({...I0(this.c),...r});let[v,E]=N0(g,this.o,this.zone);return Cl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e);return Cl(this,J6(this,r))}minus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e).negate();return Cl(this,J6(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=rr.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?Gr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):K2}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.loc.clone(r),e).formatDateTime(this):K2}toLocaleParts(e={}){return this.isValid?Gr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=e==="extended",c=tS(this,s);return c+="T",c+=K6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?tS(this,e==="extended"):null}toISOWeekDate(){return O0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+K6(this,s==="extended",r,e,n,o):null}toRFC2822(){return O0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?tS(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),O0(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():K2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return rr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=w6(r).map(rr.normalizeUnit),s=e.valueOf()>this.valueOf(),c=s?this:e,a=s?e:this,d=W6(c,a,o,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?vs.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),t8(r,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?t8(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new sr("min requires all arguments be DateTimes");return F2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new sr("max requires all arguments be DateTimes");return F2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return X2(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Km(o,e)}static fromFormatParser(e,r,n={}){if(Ge(e)||Ge(r))throw new sr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new sr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(e);return h?t.invalid(h):gf(c,a,n,`format ${r.format}`,e,d)}static get DATE_SHORT(){return Ca}static get DATE_MED(){return bm}static get DATE_MED_WITH_WEEKDAY(){return a2}static get DATE_FULL(){return vm}static get DATE_HUGE(){return _m}static get TIME_SIMPLE(){return Sm}static get TIME_WITH_SECONDS(){return xm}static get TIME_WITH_SHORT_OFFSET(){return Em}static get TIME_WITH_LONG_OFFSET(){return Cm}static get TIME_24_SIMPLE(){return Tm}static get TIME_24_WITH_SECONDS(){return Pm}static get TIME_24_WITH_SHORT_OFFSET(){return Mm}static get TIME_24_WITH_LONG_OFFSET(){return Am}static get DATETIME_SHORT(){return Im}static get DATETIME_SHORT_WITH_SECONDS(){return Lm}static get DATETIME_MED(){return km}static get DATETIME_MED_WITH_SECONDS(){return Om}static get DATETIME_MED_WITH_WEEKDAY(){return c2}static get DATETIME_FULL(){return Nm}static get DATETIME_FULL_WITH_SECONDS(){return Rm}static get DATETIME_HUGE(){return Dm}static get DATETIME_HUGE_WITH_SECONDS(){return Fm}}});var In=N(()=>{Ia();Jm();q2();H2();vl();nf();Ma();P2();_0();Aa()});function Tl(t){return t instanceof _r?t===jr.instance:t?.toString().toLowerCase()==="unknown"}function R0(t){return Tl(t)?jr.instance:t}var jr,th=N(()=>{In();jr=class{static{this.instance=new ar("Etc/UTC")}}});function wf(t,e,r){return t<e?t-e:t>r?t-r:0}function yf(t,e,r){return t<e?e:t>r?r:t}function to(t,e=!0){if(t instanceof _r)return t;if(t.toLowerCase()==="system")return"system";if(t.toLowerCase()==="utc")return"UTC";if(t.toLowerCase()==="unknown")return jr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(t)){let n=xt.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=ar.create(t);if(!r.isValid){if(e)throw new nS(D0.TimeZoneNotRecognized);return null}return r}var D0,PW,nS,rh,s8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})(D0||(D0={}));PW={[D0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},nS=class t extends Error{constructor(e,r){super(Fo(PW[e],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}};rh=class t{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Te.local(e,r).daysInMonth,h=Te.fromObject({day:yf(n,1,d),year:e,month:yf(r,1,12),hour:yf(i,0,23),minute:yf(o,0,59),second:yf(s,0,59),millisecond:yf(c,0,999)},{zone:to(a)});return h=h.plus({months:wf(r,1,12),days:wf(n,1,d),hours:wf(i,0,23),minutes:wf(o,0,59),seconds:wf(s,0,59),milliseconds:wf(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=to(r);return e.isUnknownTimeZone||n===jr.instance?t.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e._date.setZone(n))}static dateJSToArcadeDate(e){return new t(Te.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Te.fromMillis(e,{zone:jr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Te.fromMillis(e.getTime(),{zone:jr.instance}))}static epochToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=to(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=to(r);return e.zone===jr.instance||n===jr.instance?t.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e.setZone(n))}static nowToArcadeDate(e){let r=to(e);return new t(Te.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Te.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===t.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===jr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let e=this.zone;return e.type==="fixed"?e.fixed===0?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new t(this._date.plus(e))}diff(e,r="milliseconds"){return this._date.diff(e._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,r){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(e,r){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new t(this._date.toUTC())}toLocal(){return new t(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let r=Te.fromISO(e,{setZone:!0});return new t(r)}}});function yt(t){return t?{remove(){t&&(t(),t=void 0)}}:MW}function AW(t){t.forEach(e=>e?.remove())}function Pl(t){return yt(()=>AW(t))}var MW,jn=N(()=>{MW={remove:()=>{}}});function c8(){let t=iS?.getAttribute("lang"),e=globalThis.navigator?.language;return LW??t??e??"en"}function Ai(){return nh===void 0&&(nh=c8()),nh}function bf(t=Ai()){return kW.exec(t)?.groups}function oS(t){return F0.push(t),yt(()=>{F0.splice(F0.indexOf(t),1)})}function vf(t){return $0.push(t),yt(()=>$0.splice($0.indexOf(t),1))}function a8(){let t=IW??c8();nh!==t&&([...$0].forEach(e=>e(t)),nh=t,[...F0].forEach(e=>e(t)))}var IW,nh,LW,iS,kW,F0,$0,Ra=N(()=>{jn();St();LW=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,iS=globalThis.document?.documentElement;kW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;F0=[];$0=[];globalThis.addEventListener?.("languagechange",a8),iS&&new MutationObserver(()=>{a8()}).observe(iS,{attributeFilter:["lang"]})});function l8(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}var u8,qr,ih=N(()=>{s8();Ra();In();u8="esri.core.sql.dateonly",qr=class t{constructor(e,r,n){this._year=e,this._month=r,this._day=n,this.declaredRootClass=u8}static isDateOnly(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===u8}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return t.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new t(this._year,this._month,this._day)}toDateTime(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toDateTimeLuxon(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,r=!0){if(e===null||e==="")return this.toString();if(r&&(e=l8(e)),!e)return"";let n=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(n).toFormat(e,{locale:Ai(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,r){return t.fromDateTime(this.toUTCDateTime().plus({[e]:r}))}toUTCDateTime(){return Te.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let r=Te.fromMillis(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Te.fromSeconds(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromReader(e){if(!e)return null;let r=e.split("-");return r.length!==3?null:new t(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(e,r,n){let i=new t(e,r,n);return i.isValid===!1?null:i}static fromDateJS(e){return t.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return t.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,r=null){if(e===""||e===null)return null;let n=[];if(r)(r=l8(r))&&n.push(r);else if(r===null||r===""){let i=Te.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Te.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Te.fromJSDate(new Date).setZone(to(e));return new t(r.year,r.month,r.day)}}});var J,OW,ne,Da=N(()=>{xa();(function(t){t.InvalidFunctionParameters="InvalidFunctionParameters",t.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",t.UnsupportedSqlFunction="UnsupportedSqlFunction",t.UnsupportedOperator="UnsupportedOperator",t.UnsupportedSyntax="UnsupportedSyntax",t.UnsupportedIsRhs="UnsupportedIsRhs",t.UnsupportedIsLhs="UnsupportedIsLhs",t.InvalidDataType="InvalidDataType",t.CannotCastValue="CannotCastValue",t.FunctionNotRecognized="FunctionNotRecognized",t.InvalidTime="InvalidTime",t.InvalidParameterCount="InvalidParameterCount",t.InvalidTimeStamp="InvalidTimeStamp",t.InvalidDate="InvalidDate",t.InvalidOperator="InvalidOperator",t.IllegalInterval="IllegalInterval",t.YearMonthIntervals="YearMonthIntervals",t.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",t.MissingStatisticParameters="MissingStatisticParameters"})(J||(J={}));OW={[J.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[J.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[J.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[J.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[J.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[J.UnsupportedOperator]:"Unsupported operator - {operator}",[J.UnsupportedSyntax]:"Unsupported syntax - {node}",[J.UnsupportedSqlFunction]:"Sql function not found = {function}",[J.InvalidDataType]:"Invalid sql data type",[J.InvalidDate]:"Invalid date encountered",[J.InvalidOperator]:"Invalid operator encountered",[J.InvalidTime]:"Invalid time encountered",[J.IllegalInterval]:"Illegal interval",[J.FunctionNotRecognized]:"Function not recognized",[J.InvalidTimeStamp]:"Invalid timestamp encountered",[J.InvalidParameterCount]:"Invalid parameter count for call to {name}",[J.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[J.YearMonthIntervals]:"Year-Month Intervals not supported",[J.CannotCastValue]:"Cannot cast value to the required data type"},ne=class t extends Error{constructor(e,r){super(Fo(OW[e],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}});function d8(t){return Number.isNaN(t)||t===0?t:Math.trunc(t)}var f8,on,oh=N(()=>{In();f8="esri.core.sql.SqlTimeStampOffset",on=class t{constructor(e){this._timeStampOffset=e,this.declaredRootClass=f8,this._date=null}static isTimestampOffset(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===f8}toDateTime(){return this._date??=Te.fromISO(this._timeStampOffset,{setZone:!0}),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return d8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return d8(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return t.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new t(Te.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new t(e.toISO({includeOffset:!0}))}static fromParts(e,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${e.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new t(g+"T"+E+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){let r=this.toDateTime().plus(e);return t.fromDateTime(r)}}});function ae(t,e,r,n){var i,o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}var ai=N(()=>{});var U0,V0=N(()=>{U0="20250417"});var bt,Fa=N(()=>{St();Do();V0();bt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(z3(bt,globalThis.esriConfig,!0),delete bt.has),!bt.assetsPath){{let t="4.33.0";bt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${U0}/assets`}bt.defaultAssetsPath=bt.assetsPath}});function NW(t,e,...r){console[t](`[${e}]`,...r)}function RW(...t){return q3(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var p8,nt,Vt=N(()=>{Fa();St();xa();p8={info:0,warn:1,error:2,none:3},nt=class t{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},e.level!=null&&(this.level=e.level),e.writer!=null&&(this.writer=e.writer),this._module=e.module,t._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=t.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e=typeof e!="string"?e.declaredClass:e,t._loggers.get(e)||new t({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,r,...n){if(this._matchLevel(e)){if(r!=="always"&&!t._throttlingDisabled){let i=RW(n),o=this._loggedMessages[e].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=t._tickCounter)return;this._loggedMessages[e].set(i,t._tickCounter),t._scheduleTickCounterIncrement()}for(let i of bt.log.interceptors)if(i(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,r){let n=this;for(;n!=null;){let i=n[e];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",NW)}_matchLevel(e){let r=bt.log.level||"warn";return p8[this._parentWithMember("level",r)]<=p8[e]}static _scheduleTickCounterIncrement(){t._tickCounterScheduled||(t._tickCounterScheduled=!0,Promise.resolve().then(()=>{t._tickCounter++,t._tickCounterScheduled=!1}))}}});function _f(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var z0=N(()=>{});function DW(t){return t==null?t:new Date(t)}function FW(t){return t==null?t:!!t}function $W(t){return t==null?t:t.toString()}function lS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function UW(t){return t==null?t:Math.round(parseFloat(t))}function VW(t){return null}function h8(t,e){return r=>{let n=t(r);return e.step!=null&&(n=Math.round(n/e.step)*e.step),e.min!=null&&(n=Math.max(e.min,n)),e.max!=null&&(n=Math.min(e.max,n)),n}}function g8(t){return t?.constructor&&t.constructor.__accessorMetadata__!==void 0}function W0(t,e){return e!=null&&t&&!(e instanceof t)}function w8(t){return t&&"isCollection"in t}function m8(t){return t?.Type?typeof t.Type=="function"?t.Type:t.Type.base:null}function zW(t,e){if(!e?.constructor||!w8(e.constructor))return sS(t,e)?e:new t(e);let r=m8(t.prototype.itemType),n=m8(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(sS(t,e),e):new t(e):e}function sS(t,e){return!!g8(e)&&(Sf().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+B0(t)+"'"),!0)}function WW(t,e){return e==null?e:w8(t)?zW(t,e):W0(t,e)?sS(t,e)?e:new t(e):e}function B0(t){return t?.prototype?.declaredClass||"unknown"}function GW(t){switch(t){case Number:return e=>lS(e);case Uo:return UW;case Boolean:return FW;case String:return $W;case Date:return DW;case ah:return VW;default:return _f(BW,t,()=>WW.bind(null,t))}}function $o(t,e){let r=GW(t);return arguments.length===1?r:r(e)}function xf(t,e,r){return arguments.length===1?xf.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?xf(r=>$o(t,r)):xf(r=>$o(t,r),e)}function b8(t,e,r){return e!==0&&Array.isArray(r)?r.map(n=>b8(t,e-1,n)):t(r)}function sh(t,e,r){if(arguments.length===2)return o=>sh(t,e,o);if(!r)return r;r=b8(t,e,r);let n=e,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function v8(t,e,r){return arguments.length===2?sh(n=>$o(t,n),e):sh(n=>$o(t,n),e,r)}function G0(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function j0(t,e){if(arguments.length===2)return j0(t).call(null,e);let r=new Set,n=t.filter(c=>typeof c!="function"),i=t.filter(c=>typeof c=="function");for(let c of t)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!W0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Sf().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>B0(g)).join(", ")),Sf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Sf().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function q0(t,e){if(arguments.length===2)return q0(t).call(null,e);let r={},n=[],i=[];for(let a in t.typeMap){let d=t.typeMap[a];r[a]=$o(d),n.push(B0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof t.key=="string"?a=>a[t.key]:t.key;return a=>{if(t.base&&!W0(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return Sf().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!W0(t.typeMap[d],a))return a;if(typeof t.key=="string"&&!g8(a)){let g={};for(let v in a)v!==t.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _8(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function uS(t){switch(t.type){case"native":return $o(t.value);case"array":return xf(uS(t.value));case"one-of":return jW(t);default:return null}}function jW(t){let e=null;return(r,n)=>cS(r,t)?r:(e==null&&(e=aS(t)),Sf().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function aS(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Uo:return"integer";case Date:return"date";case ah:return"null";default:return B0(t.value)}case"array":return`array of ${aS(t.value)}`;case"one-of":{let e=t.values.map(r=>aS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function cS(t,e){if(t==null)return!0;switch(e.type){case"native":switch(e.value){case Number:case Uo:return typeof t=="number";case Boolean:return typeof t=="boolean";case String:return typeof t=="string";case ah:return t===null}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(r=>!cS(r,e.value));case"one-of":return e.values.some(r=>cS(t,r))}}var Sf,BW,Uo,ah,Ef=N(()=>{St();Vt();z0();Sf=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");BW=new WeakMap;Uo=class{},ah=class{}});function Vo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function Cf(t,e,r){return r?H0(t,e,{policy:r,path:""}):H0(t,e,null)}function H0(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=e[o],n;if(n[o]===void 0)return n[o]=Ht(e[o]),n;let a=n[o],d=e[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=H0(a,d,r),r.path=h}else n[o]=H0(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Y0(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function qW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function dS(t,e,r,n){let i=qW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Pl(o)}return n(t,i[0],r)}var $a=N(()=>{jn();Mn()});function E8(t,e){let r=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(e)?e[i]:e.at(i)}let n=Vo(e);return x8(n,r)?n.get(r):e[r]}function C8(t,e,r){if(t==null)return t;let n=E8(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:C8(n,e,r+1)}function Ml(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Y0(e),r):E8(e,t)}function zo(t,e){return Ml(t,e)}function fS(t,e){return Ml(e,t)!==void 0}var Al=N(()=>{$a()});function Ua(t){let e=t.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(let n in e)e[n]=Ht(e[n]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function Tf(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return Cf(t,e,YW)}function YW(t){return HW.test(t)?"replace":"merge"}var HW,Pf=N(()=>{Mn();$a();HW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function ZW(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ci(n,e)??"").toString())}var Mf,pS=N(()=>{Do();Mf=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&ZW(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Vt();pS();We=class t extends Mf{constructor(e,r,n){super(e,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ht(r)}catch{return"[object]"}}))}}catch(e){throw nt.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new t(e.name,e.message,e.details)}};We.prototype.type="error"});function Af(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Af(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Af(zo(t,i),o,r)}let n=t.__accessor__;n!=null&&XW(e,n),t[e]=r}}function XW(t,e){if(fe("esri-unknown-property-errors")&&!JW(t,e))throw new We("set:unknown-property",KW(t,e))}function JW(t,e){return e.metadata[t]!=null}function KW(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var mS=N(()=>{Ln();St();Vt();Al()});function pe(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(e,r),i=Tf(e,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in t&&nt.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),i.value=t.value=n.value)),t.readOnly!=null&&(i.readOnly=t.readOnly);let o=t.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=zo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=zo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Af(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=QW(s):c&&(a=Array.isArray(c)?xf(q0(c[0])):q0(c)),t.cast=eB(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Z0(t,e,r){let n=Tf(t,r);n.json||(n.json={});let i=n.json;return e!==void 0&&(i.origins||(i.origins={}),i.origins[e]||(i.origins[e]={}),i=i.origins[e]),i}function QW(t){let e=0,r=t;if(_8(t))return uS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(G0(n))return e===0?j0(n):sh(j0(n),e);if(e===1)return y8(n);if(e>1)return v8(n,e);let i=t;return i.from?i.from:$o(i)}function eB(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ci=N(()=>{Vt();Ef();Al();Pf();mS()});var X0,hS=N(()=>{X0=Symbol("Accessor-beforeDestroy")});var Sr,ch=N(()=>{(function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CONSTRUCTING=1]="CONSTRUCTING",t[t.CONSTRUCTED=2]="CONSTRUCTED",t[t.DESTROYING=3]="DESTROYING",t[t.DESTROYED=4]="DESTROYED"})(Sr||(Sr={}))});var at,J0=N(()=>{(function(t){t[t.Dirty=1]="Dirty",t[t.Overridden=2]="Overridden",t[t.Computing=4]="Computing",t[t.NonNullable=8]="NonNullable",t[t.HasDefaultValue=16]="HasDefaultValue",t[t.DepTrackingInitialized=32]="DepTrackingInitialized",t[t.AutoTracked=64]="AutoTracked",t[t.ExplicitlyTracking=128]="ExplicitlyTracking"})(at||(at={}))});var Wo,lh=N(()=>{Wo=class{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.accessed?.clear(),this.clear()}onAccessed(e){this._observer!=null&&e!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(e))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let e=0;e<this._handles.length;++e)this._handles[e].remove();this._handles.length=0}}}});function cr(t){dh.onAccessed(t)}function ro(t,e,r){if(K0)return gS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return ro(ew,t,e)}function gS(t,e,r){let n=K0;K0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){Q0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),K0=n,i}function A8(t){dh=t,uh.push(t)}function I8(){let t=uh.length;if(t>1){let e=uh.pop();dh=uh[t-2],e.onTrackingEnd()}else if(t===1){let e=uh.pop();dh=ew,e.onTrackingEnd()}else dh=ew}function wS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=Q0;Q0=!1,e.flags&at.AutoTracked?gS(e.trackingTarget,e.metadata.get,t):yS(t,e),Q0=r}function yS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,gS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||tB;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Y0(n);for(let o=0,s=t;o<i.length&&s!=null&&typeof s=="object";++o)s=P8(s,i[o],o!==i.length-1)}else P8(t,n,!1)}),e.flags&=~at.ExplicitlyTracking)}function P8(t,e,r){let n=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(t)?t[o]:t.at(o)}let i=Vo(t);if(i){let o=i.propertiesByName.get(n);o&&(cr(o),wS(t,o))}return r?t[n]:void 0}var ew,uh,dh,K0,Q0,tB,Ss=N(()=>{St();Vt();$a();J0();lh();ew=new Wo,uh=[],dh=ew;K0=!1,Q0=!1;tB=[]});function L8(t){if(t.json&&t.json.origins){let e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(e[n]){let i=e[n];r[n].forEach(o=>{e[o]=i}),delete e[n]}}}var k8=N(()=>{});var fh,O8=N(()=>{pS();fh=class extends Mf{constructor(e,r,n){super(e,r,n)}};fh.prototype.type="warning"});function tw(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var bS=N(()=>{});function _S(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||oB(t)&&ws("read.reader",rB(t),e))}function rB(t){let e=t.ndimArray??0;if(e>1)return iB(t);if(e===1)return N8(t);if("type"in t&&D8(t.type)){let r=t.type.prototype?.itemType?.Type,n=N8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new t.type(c)}}return SS(t)}function SS(t){return"type"in t?nB(t.type):sB(t.types)}function nB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void vS().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${i}'`);let o=new t;return o.read(e,n),o}:t.fromJSON}function R8(t,e,r,n){return n!==0&&Array.isArray(e)?e.map(i=>R8(t,i,r,n-1)):t(e,void 0,r)}function iB(t){let e=SS(t),r=R8.bind(null,e),n=t.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function N8(t){let e=SS(t);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=e(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=e(r,void 0,i);return o!==void 0?[o]:void 0}}function D8(t){if(!tw(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?xS(e.Type):F8(e.Type))}function oB(t){return"types"in t?F8(t.types):xS(t.type)}function xS(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||D8(t))}function F8(t){for(let e in t.typeMap)if(!xS(t.typeMap[e]))return!1;return!0}function sB(t){let e=null,r=t.errorContext??"type",n=t.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void vS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=aB(t));let a=t.key;if(typeof a!="string")return;let d=i[a],h=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new fh(`${r}:unsupported`,v,{definition:i,context:s})),void vS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function aB(t){let e={};for(let r in t.typeMap){let n=t.typeMap[r],i=Ua(n.prototype);if(typeof t.key=="function")continue;let o=i[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){e[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){e[r]=n;continue}let c=s.target,a=typeof c=="string"?c:t.key,d={};s.writer(r,d,a),d[a]&&(e[d[a]]=n)}return e}var vS,$8=N(()=>{Vt();Do();O8();Pf();bS();vS=()=>nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function W8(t){if(t.json||(t.json={}),V8(t.json),z8(t.json),U8(t.json),t.json.origins)for(let e in t.json.origins)V8(t.json.origins[e]),z8(t.json.origins[e]),U8(t.json.origins[e]);return!0}function U8(t){t.name&&(t.read&&typeof t.read=="object"?t.read.source===void 0&&(t.read.source=t.name):t.read={source:t.name},t.write&&typeof t.write=="object"?t.write.target===void 0&&(t.write.target=t.name):t.write={target:t.name})}function V8(t){typeof t.read=="boolean"?t.read={enabled:t.read}:typeof t.read=="function"?t.read={enabled:!0,reader:t.read}:t.read&&typeof t.read=="object"&&t.read.enabled===void 0&&(t.read.enabled=!0)}function z8(t){typeof t.write=="boolean"?t.write={enabled:t.write}:typeof t.write=="function"?t.write={enabled:!0,writer:t.write}:t.write&&typeof t.write=="object"&&t.write.enabled===void 0&&(t.write.enabled=!0)}var B8=N(()=>{});function ES(t,e){if(!e.write||e.write.writer||e.write.enabled===!1&&!e.write.overridePolicy)return;let r=t?.ndimArray??0;t&&(r===1||"type"in t&&tw(t.type))?e.write.writer=dB:r>1?e.write.writer=fB(r):e.types?Array.isArray(e.types)?e.write.writer=lB(e.types[0]):e.write.writer=cB(e.types):e.write.writer=ph}function cB(t){return(e,r,n,i)=>e?G8(e,t,i)?ph(e,r,n,i):void 0:ph(e,r,n,i)}function G8(t,e,r){for(let n in e.typeMap)if(t instanceof e.typeMap[n])return!0;if(r?.messages){let n=e.errorContext??"type",i=`Values of type '${(typeof e.key!="function"?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new We(`${n}:unsupported`,i,{definition:t,context:r})),nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function lB(t){return(e,r,n,i)=>!e||!Array.isArray(e)?ph(e,r,n,i):ph(e.filter(o=>G8(o,t,i)),r,n,i)}function ph(t,e,r,n){ws(r,rw(t,n),e)}function rw(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?uB(t):t}function uB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function dB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>rw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[rw(t,n)],ws(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):rw(t,e)}function fB(t){return(e,r,n,i)=>{let o;if(e===null)o=null;else{o=j8(e,i,t);let s=t,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}ws(n,o,r)}}var q8=N(()=>{Ln();Vt();Do();bS()});function H8(t,e){return TS(t,"any",e?.origin)}function nw(t,e){return TS(t,"read",e?.origin)}function Y8(t,e){return TS(t,"write",e?.origin)}function TS(t,e,r){let n=t?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(e==="any"||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(e==="any"||e in i)&&(n=i)}return n}function pB(t){let e=mB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?hB(n):e;_S(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),ES(i,n)}_S(e,t.json,!0),ES(e,t.json)}function mB(t){return t.json.types?CS(t.json):t.type?Z8(t):CS(t)}function hB(t){return t.type?Z8(t):CS(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!G0(r);)r=r[0],e++;return{type:r,ndimArray:e}}function CS(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function X8(t){W8(t)&&(L8(t),pB(t))}var iw=N(()=>{Ef();k8();$8();B8();q8()});function Et(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,wB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!PS.has(i.initialize)&&(PS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!MS.has(i.destroy)&&(MS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);PS.clear(),MS.clear();let o=class extends e{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[X0];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){this.__accessor__.lifecycle=Sr.DESTROYING,a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Ua(e.prototype),o.prototype.declaredClass=t;let s=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function gB(t,e){return e.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n===void 0)return;r.mutable&&cr(n);let i=r.store;return i.has(t)?i.get(t):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n!==void 0)return n.getComputed(r)}}function wB(t){let e=t.prototype,r=Ua(e),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];X8(o),n[i]={enumerable:!0,configurable:!0,get:gB(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?J8("read-only",i):c.lifecycle===Sr.CONSTRUCTED&&o.constructOnly?J8("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(t.prototype,n)}var PS,MS,J8,qn=N(()=>{St();Vt();hS();ch();Pf();Ss();iw();PS=new Set,MS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function yB(t,e,r=!1){let n=`\u{1F6D1} DEPRECATED - ${e}`;if(!r)return void t.warn(n);let i=K8.get(t);i||(i=new Set,K8.set(t,i)),i.has(e)||(i.add(e),t.warn(n))}function Q8(t,e,r={}){if(fe("esri-deprecation-warnings")){let{moduleName:n}=r;bB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function bB(t,e,r={}){if(fe("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=e;if(n&&(c+=`
|
|
1
|
+
"use strict";(()=>{var F$=Object.defineProperty;var PC=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var MC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Io=(t,e)=>{for(var r in e)F$(t,r,{get:e[r],enumerable:!0})};function RV(t,e){let r=t;for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function w3(t,e,r){let{subscribe:n}=DV(e);return n(i=>{i.some(s=>RV(t,s.target))&&r()})}function DV(t){let e=t.join(","),r=e2[e];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let o={subscribe(s){return n.add(s),()=>{n.delete(s),n.size===0&&(i.disconnect(),e2[e]=void 0)}}};return e2[e]=o,o}function FV(t,e){let r=t;for(;r;){let n=r.closest?.(e);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function y3(t,e,r){return FV(t,`[${e}]`)?.getAttribute(e)??r}function Ut(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function hm(t,e,...r){try{let n=t?.call(e,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,t)}}async function zV(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return t2[i]??(t2[i]=b3(t,n)),await t2[i]}async function b3(t,e){let r=`${e}${t}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return t===l0?{}:await b3(l0,e)}function r2(t){let e=y3(t,"lang",globalThis.navigator?.language||l0);return{lang:e,t9nLocale:v3(e)}}function v3(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=VV[i]??i,UV.has(i)?i:r?v3(n):l0}function _3(t,e,r,n){let i,o=()=>void WV(t,e(),n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return queueMicrotask(o),w3(t,["lang"],o)}async function WV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=r2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await zV(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function S3(t,e){let r=e>GV?jV:e/qV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}function x3(t){return t!==void 0}var ii,e2,$V,UV,l0,VV,t2,u0,BV,GV,jV,qV,Kd=N(()=>{"use strict";ii=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};e2={};$V=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],UV=new Set($V),l0="en",VV={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"};t2={};u0=t=>t.replace(BV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),BV=/[A-Z]+(?![a-z])|[A-Z]/gu;GV=4e3,jV=2e3,qV=4});var gs,f0,i2,n2,E3=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(gs||(gs={}));f0=class{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,r){return this._db.get(e.id+r)?.size??0}put(e,r,n,i,o){r=e.id+r;let s=this._db.get(r);if(s&&(this._size-=s.size,e.size-=s.size,this._db.delete(r),s.entry!==n&&this._notifyRemove(r,s.entry,s.size,gs.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,gs.ALL);if(n===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return console.warn(`Refusing to cache entry with size ${i} for key ${r}`),void this._notifyRemove(r,n,0,gs.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new i2(n,i,c)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,r,n,i){r=e.id+r;let o=this._db.get(r);if(o&&o.entry===n){for(this._size-=o.size,e.size-=o.size;i>this._maxSize;){let s=this._notifyRemove(r,n,i,gs.SOME);if(!(s!=null&&s>0))return void this._db.delete(r);i=s}o.size=i,this._size+=i,e.size+=i,this._checkSize()}}pop(e,r){r=e.id+r;let n=this._db.get(r);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(r),++this._hit,n.entry;++this._miss}get(e,r){r=e.id+r;let n=this._db.get(r);if(n!==void 0)return this._db.delete(r),n.lives=n.lifetime,this._db.set(r,n),++this._hit,n.entry;++this._miss}peek(e,r){let n=this._db.get(e.id+r);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},n=new Array;this._db.forEach((s,c)=>{let a=s.lifetime;n[a]=(n[a]||0)+s.size,this._users.forEach(d=>{let{id:h,name:g}=d;if(c.startsWith(h)){let v=r[g]||0;r[g]=v+s.size}})});let i={};this._users.forEach(s=>{let c=s.name;if("hitRate"in s&&typeof s.hitRate=="number"&&!isNaN(s.hitRate)&&s.hitRate>0){let a=r[c]||0;r[c]=a,i[c]=Math.round(100*s.hitRate)+"%"}else i[c]="0%"});let o=Object.keys(r);o.sort((s,c)=>r[c]-r[s]),o.forEach(s=>e[s]=Math.round(r[s]/2**20)+"MB / "+i[s]);for(let s=n.length-1;s>=0;--s){let c=n[s];c&&(e["Priority "+(s+-3-1)]=Math.round(c/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){let r=e.id;this._db.forEach((n,i)=>{i.startsWith(r)&&(this._size-=n.size,this._db.delete(i),this._notifyRemove(i,n.entry,n.size,gs.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,gs.ALL)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,r,n,i){let o=this._users.get(e.split(n2)[0])?.removeFunc,s=o?.(r,i,n);return typeof s=="number"?s:null}_checkSize(){this._sizeLimits.forEach((e,r)=>this._checkSizeLimits(e,r)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,r){r==null||r<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,r)}_checkSizeLimits(e,r){let n=r??this;if(n.size<=e)return;let i=r?.id,o=!0;for(;o;){o=!1;for(let[s,c]of this._db)if(c.lifetime===0&&(!i||s.startsWith(i))){let a=r??this._users.get(s.split(n2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return;o||=this._db.has(s)}}for(let[s,c]of this._db)if(!i||s.startsWith(i)){let a=r??this._users.get(s.split(n2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return}}_purgeItem(e,r,n){if(this._db.delete(e),r.lives<=1){this._size-=r.size,n&&(n.size-=r.size);let i=this._notifyRemove(e,r.entry,r.size,gs.SOME);i!=null&&i>0&&(this._size+=i,n&&(n.size+=i),r.lives=r.lifetime,r.size=i,this._db.set(e,r))}else--r.lives,this._db.set(e,r)}},i2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},n2=":"});var gm,C3=N(()=>{E3();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new f0,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,r,n=1){this._storage.put(this,e,r,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}});function fe(t){return typeof _a[t]=="function"?_a[t]=_a[t](globalThis):_a[t]}var _a,St=N(()=>{_a=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},fe.add=(t,e,r,n)=>{(n||_a[t]===void 0)&&(_a[t]=e),r&&fe(t)},fe.cache=_a,fe.add("big-integer-warning-enabled",!0),fe.add("esri-deprecation-warnings",!0),fe.add("esri-tests-disable-screenshots",!1),fe.add("esri-tests-use-full-window",!1),fe.add("esri-tests-post-to-influx",!0),fe.add("esri-cim-animations-enable-status","enabled"),fe.add("esri-cim-animations-spotlight",!1),fe.add("esri-cim-animations-freeze-time",!1),(()=>{fe.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let t=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(fe.add("host-browser",t),fe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),fe.add("dom",t),fe("host-browser")){let e=navigator,r=e.userAgent,n=e.appVersion,i=parseFloat(n);if(fe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),fe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),fe.add("khtml",n.includes("Konqueror")?i:void 0),fe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),fe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),fe.add("webkit",!fe("wp")&&!fe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),fe.add("chrome",!fe("edge")&&!fe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),fe.add("android",!fe("wp")&&parseFloat(r.split("Android ")[1])||void 0),fe.add("safari",!n.includes("Safari")||fe("wp")||fe("chrome")||fe("android")||fe("edge")||fe("opr")?void 0:parseFloat(n.split("Version/")[1])),fe.add("mac",n.includes("Macintosh")),!fe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));fe.add(o,c),fe.add("ios",c)}fe("webkit")||(!r.includes("Gecko")||fe("wp")||fe("khtml")||fe("edge")||fe.add("mozilla",i),fe("mozilla")&&fe.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(t),r=/iPhone/i.test(t);e&&fe.add("esri-mobile",e),r&&fe.add("esri-iPhone",r),fe.add("esri-geolocation",!!navigator.geolocation)}fe.add("esri-wasm","WebAssembly"in globalThis),fe.add("esri-performance-mode-frames-between-render",20),fe.add("esri-force-performance-mode",!1),fe.add("esri-shared-array-buffer",()=>{let t="SharedArrayBuffer"in globalThis,e=globalThis.crossOriginIsolated===!1;return t&&!e}),fe.add("wasm-simd",()=>{let t=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(t))}),fe.add("esri-atomics","Atomics"in globalThis),fe.add("esri-workers","Worker"in globalThis),fe.add("web-feat:cache","caches"in globalThis),fe.add("esri-workers-arraybuffer-transfer",!fe("safari")||Number(fe("safari"))>=12),fe.add("workers-pool-size",8),fe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),fe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),fe.add("featurelayer-fast-triangulation-enabled",!0),fe.add("featurelayer-animation-enabled",!0),fe.add("featurelayer-snapshot-enabled",!0),fe.add("featurelayer-snapshot-point-min-threshold",8e4),fe.add("featurelayer-snapshot-point-max-threshold",4e5),fe.add("featurelayer-snapshot-point-coverage",.1),fe.add("featurelayer-query-max-depth",4),fe.add("featurelayer-query-pausing-enabled",!1),fe.add("featurelayer-advanced-symbols",!1),fe.add("featurelayer-pbf",!0),fe.add("featurelayer-pbf-statistics",!1),fe.add("feature-layers-workers",!0),fe.add("feature-polyline-generalization-factor",1),fe.add("mapview-transitions-duration",200),fe.add("mapview-essential-goto-duration",200),fe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),fe.add("mapserver-pbf-version-support",10.81),fe.add("mapservice-popup-identify-max-tolerance",20),fe.add("request-queue-concurrency-hosted",16),fe.add("request-queue-concurrency-non-hosted",4),fe.add("curve-densification-coarse-segments",128),fe.add("curve-densification-max-segments",2e3),fe.add("curve-densification-min-segments",3),fe.add("curve-densification-pixel-deviation",.5),fe.add("view-readyState-waiting-delay",1e3),fe.add("gradient-depth-bias",.01),fe.add("gradient-depth-epsilon",1e-8),fe.add("enable-feature:esri-compress-textures",!0),fe("host-webworker")||fe("host-browser")&&(fe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),fe.add("esri-image-decode",()=>{if("decode"in new Image){let t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void t.decode().then(()=>{fe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{fe.add("esri-image-decode",!1,!0,!0)})}return!1}),fe.add("esri-url-encodes-apostrophe",()=>{let t=window.document.createElement("a");return t.href="?'",t.href.includes("?%27")}))})()});var o2=N(()=>{St()});var p0,Sa=N(()=>{p0=class t{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*t._m}getInt(){return this._seed=(t._a*this._seed+t._c)%t._m,this._seed}getFloat(){return this.getInt()/(t._m-1)}getIntRange(e,r){return Math.round(this.getFloatRange(e,r))}getFloatRange(e,r){let n=r-e;return e+this.getInt()/t._m*n}}});function m0(t,e,r){if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function s2(t,e,r,n){n=n||T3;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(t[s]===e)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(t[s]===e)return n.last=s,s;return-1}function P3(t,e,r=t.length,n=e.length,i,o){if(n===0||r===0)return r;Yi.clear();for(let c=0;c<n;++c)Yi.add(e[c]);i=i||T3;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;for(let c=0;c<s;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;return Yi.clear(),r}function M3(t,e){let r=t.indexOf(e);return r!==-1?(t.splice(r,1),e):null}function A3(t,e){return t!=null}var YV,$oe,wm,T3,Yi,Uoe,Qd=N(()=>{o2();Sa();YV=1.5,$oe=1/YV;wm=class{constructor(){this.last=0}},T3=new wm;Yi=new Set;Uoe=new p0});function I3(t){return t?.constructor?.name==="Int8Array"}function L3(t){return t?.constructor?.name==="Uint8Array"}function k3(t){return t?.constructor?.name==="Uint8ClampedArray"}function O3(t){return t?.constructor?.name==="Int16Array"}function N3(t){return t?.constructor?.name==="Uint16Array"}function R3(t){return t?.constructor?.name==="Int32Array"}function D3(t){return t?.constructor?.name==="Uint32Array"}function F3(t){return t?.constructor?.name==="Float32Array"}function $3(t){return t?.constructor?.name==="Float64Array"}var Woe,U3=N(()=>{St();Woe=2**32-1});function h0(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&h0(t[r],!0));else for(r in t)t.hasOwnProperty(r)&&t[r]===void 0&&delete t[r];return t}function Ht(t){if(!t||typeof t!="object"||typeof t=="function")return t;let e=KV(t);if(e!=null)return e;if(ZV(t))return t.clone();if(XV(t))return t.map(Ht);if(JV(t))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=Ht(t[n]);return r}function ZV(t){return typeof t.clone=="function"}function XV(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function JV(t){return typeof t.notifyChange=="function"&&typeof t.watch=="function"}function V3(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function KV(t){if(I3(t)||L3(t)||k3(t)||O3(t)||N3(t)||R3(t)||D3(t)||F3(t)||$3(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer)return t.slice(0,t.byteLength);if(t instanceof Map){let e=new Map;for(let[r,n]of t)e.set(r,Ht(n));return e}if(t instanceof Set){let e=new Set;for(let r of t)e.add(Ht(r));return e}return null}function ym(t,e){return t===e||typeof t=="number"&&isNaN(t)&&typeof e=="number"&&isNaN(e)||typeof t?.getTime=="function"&&typeof e?.getTime=="function"&&t.getTime()===e.getTime()||!1}function g0(t,e){return t===e||(t==null||typeof t=="string"?t===e:typeof t=="number"?t===e||typeof e=="number"&&isNaN(t)&&isNaN(e):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Array.isArray(t)?Array.isArray(e)&&m0(t,e):t instanceof Set?e instanceof Set&&ez(t,e):t instanceof Map?e instanceof Map&&tz(t,e):!!V3(t)&&V3(e)&&QV(t,e))}function QV(t,e){if(t===null||e===null)return!1;let r=Object.keys(t);if(e===null||Object.keys(e).length!==r.length)return!1;for(let n of r)if(t[n]!==e[n]||!Object.prototype.hasOwnProperty.call(e,n))return!1;return!0}function ez(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function tz(t,e){if(t.size!==e.size)return!1;for(let[r,n]of t){let i=e.get(r);if(i!==n||i===void 0&&!e.has(r))return!1}return!0}var Mn=N(()=>{Qd();U3()});function z3(t,e,r=!1){return B3(t,e,r)}function Ci(t,e){if(e!=null)return e[t]||W3(t.split("."),!1,e)}function ws(t,e,r){let n=t.split("."),i=n.pop(),o=W3(n,!0,r);o&&i&&(o[i]=e)}function W3(t,e,r){let n=r;for(let i of t){if(n==null)return;if(!(i in n)){if(!e)return;n[i]={}}n=n[i]}return n}function B3(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=n[i],s=e[i];return o===s?n:o===void 0?(n[i]=Ht(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=B3(o,s,r):n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[i]=s),n)},t||{}):t}var Do=N(()=>{Mn()});function G3(t){return t??""}function Fo(t,e){return e?t.replaceAll(rz,typeof e=="object"?(r,n)=>G3(Ci(n,e)):(r,n)=>G3(e(n))):t}function j3(t,e){return t.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>e?.includes(r)?r:`\\${r}`)}function q3(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}var rz,xa=N(()=>{Do();rz=/\{([^}]+)\}/g});var ys,w0,y0,b0,Zi,ef,sr,Xi,Ea=N(()=>{ys=class extends Error{},w0=class extends ys{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},y0=class extends ys{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},b0=class extends ys{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zi=class extends ys{},ef=class extends ys{constructor(e){super(`Invalid unit ${e}`)}},sr=class extends ys{},Xi=class extends ys{constructor(){super("Zone is an abstract class")}}});var Le,Ji,oi,Ca,bm,a2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,c2,Nm,Rm,Dm,Fm,$m=N(()=>{Le="numeric",Ji="short",oi="long",Ca={year:Le,month:Le,day:Le},bm={year:Le,month:Ji,day:Le},a2={year:Le,month:Ji,day:Le,weekday:Ji},vm={year:Le,month:oi,day:Le},_m={year:Le,month:oi,day:Le,weekday:oi},Sm={hour:Le,minute:Le},xm={hour:Le,minute:Le,second:Le},Em={hour:Le,minute:Le,second:Le,timeZoneName:Ji},Cm={hour:Le,minute:Le,second:Le,timeZoneName:oi},Tm={hour:Le,minute:Le,hourCycle:"h23"},Pm={hour:Le,minute:Le,second:Le,hourCycle:"h23"},Mm={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:Ji},Am={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:oi},Im={year:Le,month:Le,day:Le,hour:Le,minute:Le},Lm={year:Le,month:Le,day:Le,hour:Le,minute:Le,second:Le},km={year:Le,month:Ji,day:Le,hour:Le,minute:Le},Om={year:Le,month:Ji,day:Le,hour:Le,minute:Le,second:Le},c2={year:Le,month:Ji,day:Le,weekday:Ji,hour:Le,minute:Le},Nm={year:Le,month:oi,day:Le,hour:Le,minute:Le,timeZoneName:Ji},Rm={year:Le,month:oi,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Ji},Dm={year:Le,month:oi,day:Le,weekday:oi,hour:Le,minute:Le,timeZoneName:oi},Fm={year:Le,month:oi,day:Le,weekday:oi,hour:Le,minute:Le,second:Le,timeZoneName:oi}});var _r,vl=N(()=>{Ea();_r=class{get type(){throw new Xi}get name(){throw new Xi}get ianaName(){return this.name}get isUniversal(){throw new Xi}offsetName(e,r){throw new Xi}formatOffset(e,r){throw new Xi}offset(e){throw new Xi}equals(e){throw new Xi}get isValid(){throw new Xi}}});var l2,Ta,_0=N(()=>{An();vl();l2=null,Ta=class t extends _r{static get instance(){return l2===null&&(l2=new t),l2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}});function nz(t){let e=d2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),d2.set(t,e)),e}function oz(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function sz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=iz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var d2,iz,u2,ar,Ma=N(()=>{An();vl();d2=new Map;iz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};u2=new Map,ar=class t extends _r{static create(e){let r=u2.get(e);return r===void 0&&u2.set(e,r=new t(e)),r}static resetCache(){u2.clear(),d2.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n,this.name)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=nz(this.name),[i,o,s,c,a,d,h]=n.formatToParts?sz(n,r):oz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=tf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,M=E%1e3;return E-=M>=0?M:1e3+M,(v-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}});function az(t,e={}){let r=JSON.stringify([t,e]),n=H3[r];return n||(n=new Intl.ListFormat(t,e),H3[r]=n),n}function p2(t,e={}){let r=JSON.stringify([t,e]),n=f2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),f2.set(r,n)),n}function cz(t,e={}){let r=JSON.stringify([t,e]),n=m2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),m2.set(r,n)),n}function lz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=h2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),h2.set(i,o)),o}function uz(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function Y3(t){let e=g2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),g2.set(t,e)),e}function dz(t){let e=w2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Z3,...e}),w2.set(t,e)}return e}function fz(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,i;try{n=p2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=p2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function pz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function mz(t){let e=[];for(let r=1;r<=12;r++){let n=Te.utc(2009,r,1);e.push(t(n))}return e}function hz(t){let e=[];for(let r=1;r<=7;r++){let n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function x0(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function gz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Y3(t.locale).numberingSystem==="latn"}var H3,f2,m2,h2,Um,g2,w2,y2,b2,v2,Z3,pt,zm=N(()=>{An();T0();Aa();Ia();Ma();H3={};f2=new Map;m2=new Map;h2=new Map;Um=null;g2=new Map;w2=new Map;y2=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=cz(e,c)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):rf(e,3);return tr(r,this.padTo)}}},b2=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&ar.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=p2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},v2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&E0()&&(this.rtf=lz(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):X3(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Z3={firstDay:1,minimalDays:4,weekend:[6,7]},pt=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,o=!1){let s=e||ft.defaultLocale,c=s||(o?"en-US":uz()),a=r||ft.defaultNumberingSystem,d=n||ft.defaultOutputCalendar,h=Vm(i)||ft.defaultWeekSettings;return new t(c,a,d,h,s)}static resetCache(){Um=null,f2.clear(),m2.clear(),h2.clear(),g2.clear(),w2.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return t.create(e,r,n,i)}constructor(e,r,n,i,o){let[s,c,a]=fz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=pz(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=gz(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Vm(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return x0(this,e,_2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=mz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return x0(this,e,S2,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=hz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return x0(this,void 0,()=>x2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return x0(this,e,E2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let i=this.dtFormatter(e,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new y2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new b2(e,this.intl,r)}relFormatter(e={}){return new v2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return az(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Y3(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:C0()?dz(this.locale):Z3}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var T2,xt,nf=N(()=>{An();vl();T2=null,xt=class t extends _r{static get utcInstance(){return T2===null&&(T2=new t(0)),T2}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(_l(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Pa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Pa(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}});var of,P2=N(()=>{vl();of=class extends _r{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Ki(t,e){let r;if(Ge(t)||t===null)return e;if(t instanceof _r)return t;if(J3(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ta.instance:n==="utc"||n==="gmt"?xt.utcInstance:xt.parseSpecifier(n)||ar.create(t)}else return Qi(t)?xt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new of(t)}var P0=N(()=>{vl();Ma();nf();P2();An();_0()});function Q3(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(A2.hanidec)!==-1)e+=wz.indexOf(t[r]);else for(let i in K3){let[o,s]=K3[i];n>=o&&n<=s&&(e+=n-o)}}return parseInt(e,10)}else return e}function e6(){M2.clear()}function Ti({numberingSystem:t},e=""){let r=t||"latn",n=M2.get(r);n===void 0&&(n=new Map,M2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${A2[r]}${e}`),n.set(e,i)),i}var A2,K3,wz,M2,I2=N(()=>{A2={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},K3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},wz=A2.hanidec.replace(/[\[|\]]/g,"").split("");M2=new Map});var t6,r6,n6,i6,o6,s6,a6,c6,ft,Aa=N(()=>{_0();Ma();zm();Ia();P0();An();I2();t6=()=>Date.now(),r6="system",n6=null,i6=null,o6=null,s6=60,c6=null,ft=class{static get now(){return t6}static set now(e){t6=e}static set defaultZone(e){r6=e}static get defaultZone(){return Ki(r6,Ta.instance)}static get defaultLocale(){return n6}static set defaultLocale(e){n6=e}static get defaultNumberingSystem(){return i6}static set defaultNumberingSystem(e){i6=e}static get defaultOutputCalendar(){return o6}static set defaultOutputCalendar(e){o6=e}static get defaultWeekSettings(){return c6}static set defaultWeekSettings(e){c6=Vm(e)}static get twoDigitCutoffYear(){return s6}static set twoDigitCutoffYear(e){s6=e%100}static get throwOnInvalid(){return a6}static set throwOnInvalid(e){a6=e}static resetCaches(){pt.resetCache(),ar.resetCache(),Te.resetCache(),e6()}}});var Br,Wm=N(()=>{Br=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Pi(t,e){return new Br("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function M0(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function d6(t,e,r){return r+(xl(t)?u6:l6)[e-1]}function f6(t,e){let r=xl(t)?u6:l6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function A0(t,e){return(t-e+7)%7+1}function Bm(t,e=4,r=1){let{year:n,month:i,day:o}=t,s=d6(n,i,o),c=A0(M0(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=Sl(d,e,r)):a>Sl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function L2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=A0(M0(n,1,e),r),c=La(n),a=i*7+o-s-7+e,d;a<1?(d=n-1,a+=La(d)):a>c?(d=n+1,a-=La(n)):d=n;let{month:h,day:g}=f6(d,a);return{year:d,month:h,day:g,...jm(t)}}function I0(t){let{year:e,month:r,day:n}=t,i=d6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function k2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=f6(e,r);return{year:e,month:n,day:i,...jm(t)}}function O2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Zi("Cannot mix locale-based week fields with ISO-based week fields");return Ge(t.localWeekday)||(t.weekday=t.localWeekday),Ge(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ge(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function p6(t,e=4,r=1){let n=Gm(t.weekYear),i=si(t.weekNumber,1,Sl(t.weekYear,e,r)),o=si(t.weekday,1,7);return n?i?o?!1:Pi("weekday",t.weekday):Pi("week",t.weekNumber):Pi("weekYear",t.weekYear)}function m6(t){let e=Gm(t.year),r=si(t.ordinal,1,La(t.year));return e?r?!1:Pi("ordinal",t.ordinal):Pi("year",t.year)}function N2(t){let e=Gm(t.year),r=si(t.month,1,12),n=si(t.day,1,sf(t.year,t.month));return e?r?n?!1:Pi("day",t.day):Pi("month",t.month):Pi("year",t.year)}function R2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=si(e,0,23)||e===24&&r===0&&n===0&&i===0,s=si(r,0,59),c=si(n,0,59),a=si(i,0,999);return o?s?c?a?!1:Pi("millisecond",i):Pi("second",n):Pi("minute",r):Pi("hour",e)}var l6,u6,D2=N(()=>{An();Wm();Ea();l6=[0,31,59,90,120,151,181,212,243,273,304,334],u6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(t){return typeof t>"u"}function Qi(t){return typeof t=="number"}function Gm(t){return typeof t=="number"&&t%1===0}function J3(t){return typeof t=="string"}function g6(t){return Object.prototype.toString.call(t)==="[object Date]"}function E0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function C0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function w6(t){return Array.isArray(t)?t:[t]}function F2(t,e,r){if(t.length!==0)return t.reduce((n,i)=>{let o=[e(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function y6(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ka(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Vm(t){if(t==null)return null;if(typeof t!="object")throw new sr("Week settings must be an object");if(!si(t.firstDay,1,7)||!si(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!si(e,1,7)))throw new sr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function si(t,e,r){return Gm(t)&&t>=e&&t<=r}function yz(t,e){return t-e*Math.floor(t/e)}function tr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function bs(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function Oa(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function qm(t){if(!(Ge(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function rf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return xl(t)?366:365}function sf(t,e){let r=yz(e-1,12)+1,n=t+(e-r)/12;return r===2?xl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function tf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function h6(t,e,r){return-A0(M0(t,1,e),r)+e-1}function Sl(t,e=4,r=1){let n=h6(t,e,r),i=h6(t+1,e,r);return(La(t)-n+i)/7}function Hm(t){return t>99?t:t>ft.twoDigitCutoffYear?1900+t:2e3+t}function S0(t,e,r,n=null){let i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:e,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function _l(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function $2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new sr(`Invalid unit value ${t}`);return e}function af(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=$2(i)}return r}function Pa(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${tr(r,2)}:${tr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${tr(r,2)}${tr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function jm(t){return y6(t,["hour","minute","second","millisecond"])}var An=N(()=>{Ea();Aa();D2()});function _2(t){switch(t){case"narrow":return[...vz];case"short":return[...U2];case"long":return[...bz];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function S2(t){switch(t){case"narrow":return[..._z];case"short":return[...z2];case"long":return[...V2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function E2(t){switch(t){case"narrow":return[...Ez];case"short":return[...xz];case"long":return[...Sz];default:return null}}function b6(t){return x2[t.hour<12?0:1]}function v6(t,e){return S2(e)[t.weekday-1]}function _6(t,e){return _2(e)[t.month-1]}function S6(t,e){return E2(e)[t.year<0?0:1]}function X3(t,e,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){let g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${i[t][0]}`;case-1:return g?"yesterday":`last ${i[t][0]}`;case 0:return g?"today":`this ${i[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,c=Math.abs(e),a=c===1,d=i[t],h=n?a?d[1]:d[2]||d[1]:a?i[t][0]:t;return s?`${c} ${h} ago`:`in ${c} ${h}`}var bz,U2,vz,V2,z2,_z,x2,Sz,xz,Ez,T0=N(()=>{$m();An();bz=["January","February","March","April","May","June","July","August","September","October","November","December"],U2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],vz=["J","F","M","A","M","J","J","A","S","O","N","D"];V2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],z2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_z=["M","T","W","T","F","S","S"];x2=["AM","PM"],Sz=["Before Christ","Anno Domini"],xz=["BC","AD"],Ez=["B","A"]});function x6(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Cz,Gr,Ym=N(()=>{T0();$m();An();Cz={D:Ca,DD:bm,DDD:vm,DDDD:_m,t:Sm,tt:xm,ttt:Em,tttt:Cm,T:Tm,TT:Pm,TTT:Mm,TTTT:Am,f:Im,ff:km,fff:Nm,ffff:Dm,F:Lm,FF:Om,FFF:Rm,FFFF:Fm},Gr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",i=!1,o=[];for(let s=0;s<e.length;s++){let c=e.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Cz[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return tr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,M)=>this.loc.extract(e,E,M),s=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",c=()=>n?b6(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,M)=>n?_6(e,E):o(M?{month:E}:{month:E,day:"numeric"},"month"),d=(E,M)=>n?v6(e,E):o(M?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let M=t.macroTokenToFormatOpts(E);return M?this.formatWithSystemDefault(e,M):E},g=E=>n?S6(e,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(E)}};return x6(t.parseFormat(r),v)}formatDurationFromString(e,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=t.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=e.shiftTo(...s.map(n).filter(a=>a));return x6(o,i(c))}}});function lf(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function uf(...t){return e=>t.reduce(([r,n,i],o)=>{let[s,c,a]=o(e,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function df(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let i=r.exec(t);if(i)return n(i)}return[null,null]}function T6(...t){return(e,r)=>{let n={},i;for(i=0;i<t.length;i++)n[t[i]]=bs(e[r+i]);return[n,null,r+i]}}function cf(t,e,r){let n=t[e];return Ge(n)?r:bs(n)}function Nz(t,e){return[{year:cf(t,e),month:cf(t,e+1,1),day:cf(t,e+2,1)},null,e+3]}function ff(t,e){return[{hours:cf(t,e,0),minutes:cf(t,e+1,0),seconds:cf(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=_l(t[e+1],t[e+2]),i=r?null:xt.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?ar.create(t[e]):null;return[{},r,e+1]}function Fz(t){let[e,r,n,i,o,s,c,a,d]=t,h=e[0]==="-",g=a&&a[0]==="-",v=(E,M=!1)=>E!==void 0&&(M||E&&h)?-E:E;return[{years:v(Oa(r)),months:v(Oa(n)),weeks:v(Oa(i)),days:v(Oa(o)),hours:v(Oa(s)),minutes:v(Oa(c)),seconds:v(Oa(a),a==="-0"),milliseconds:v(qm(d),g)}]}function G2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(bs(e)):bs(e),month:U2.indexOf(r)+1,day:bs(n),hour:bs(i),minute:bs(o)};return s&&(c.second=bs(s)),t&&(c.weekday=t.length>3?V2.indexOf(t)+1:z2.indexOf(t)+1),c}function Vz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=G2(e,i,n,r,o,s,c),E;return a?E=$z[a]:d?E=0:E=_l(h,g),[v,new xt(E)]}function zz(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function E6(t){let[,e,r,n,i,o,s,c]=t;return[G2(e,i,n,r,o,s,c),xt.utcInstance]}function jz(t){let[,e,r,n,i,o,s,c]=t;return[G2(e,c,r,n,i,o,s),xt.utcInstance]}function L6(t){return df(t,[qz,I6],[Hz,Xz],[Yz,Jz],[Zz,Kz])}function k6(t){return df(zz(t),[Uz,Vz])}function O6(t){return df(t,[Wz,E6],[Bz,E6],[Gz,jz])}function N6(t){return df(t,[Dz,Fz])}function R6(t){return df(t,[Rz,Qz])}function D6(t){return df(t,[eW,I6],[tW,rW])}var C6,P6,Tz,W2,M6,B2,Pz,Mz,Az,Iz,Lz,kz,A6,Oz,Rz,Dz,$z,Uz,Wz,Bz,Gz,qz,Hz,Yz,Zz,I6,Xz,Jz,Kz,Qz,eW,tW,rW,j2=N(()=>{An();T0();nf();Ma();C6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;P6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tz=`(?:${P6.source}?(?:\\[(${C6.source})\\])?)?`,W2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,M6=RegExp(`${W2.source}${Tz}`),B2=RegExp(`(?:T${M6.source})?`),Pz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Mz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Az=/(\d{4})-?(\d{3})/,Iz=T6("weekYear","weekNumber","weekDay"),Lz=T6("year","ordinal"),kz=/(\d{4})-(\d\d)-(\d\d)/,A6=RegExp(`${W2.source} ?(?:${P6.source}|(${C6.source}))?`),Oz=RegExp(`(?: ${A6.source})?`);Rz=RegExp(`^T?${W2.source}$`),Dz=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;$z={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};Uz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;Wz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Bz=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;qz=lf(Pz,B2),Hz=lf(Mz,B2),Yz=lf(Az,B2),Zz=lf(M6),I6=uf(Nz,ff,Zm,Xm),Xz=uf(Iz,ff,Zm,Xm),Jz=uf(Lz,ff,Zm,Xm),Kz=uf(ff,Zm,Xm);Qz=uf(ff);eW=lf(kz,Oz),tW=lf(A6),rW=uf(ff,Zm,Xm)});function Na(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new rr(n)}function V6(t,e){let r=e.milliseconds??0;for(let n of oW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=V6(t,e)<0?-1:1;El.reduceRight((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]*r,s=t[i][n],c=Math.floor(o/s);e[i]+=c*r,e[n]-=c*s*r}return i},null),El.reduce((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*t[n][i]}return i},null)}function sW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var F6,U6,nW,Mi,pf,iW,El,oW,rr,Jm=N(()=>{Ea();Ym();Wm();zm();j2();An();Aa();Ia();F6="Invalid Duration",U6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},nW={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...U6},Mi=146097/400,pf=146097/4800,iW={years:{quarters:4,months:12,weeks:Mi/7,days:Mi,hours:Mi*24,minutes:Mi*24*60,seconds:Mi*24*60*60,milliseconds:Mi*24*60*60*1e3},quarters:{months:3,weeks:Mi/28,days:Mi/4,hours:Mi*24/4,minutes:Mi*24*60/4,seconds:Mi*24*60*60/4,milliseconds:Mi*24*60*60*1e3/4},months:{weeks:pf/7,days:pf,hours:pf*24,minutes:pf*24*60,seconds:pf*24*60*60,milliseconds:pf*24*60*60*1e3},...U6},El=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oW=El.slice(0).reverse();rr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?iW:nW;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new sr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:af(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Qi(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new sr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=N6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=R6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the Duration is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new b0(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new ef(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Gr.create(this.loc,n).formatDurationFromString(this,e):F6}toHuman(e={}){if(!this.isValid)return F6;let r=El.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=rf(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?V6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let i of El)(ka(r.values,i)||ka(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Na(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=$2(e(this.values[n],n));return Na(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...af(e,t.normalizeUnit)};return Na(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Na(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return $6(this.matrix,e),Na(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=sW(this.normalize().shiftToAll().toObject());return Na(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of El)if(e.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Qi(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Qi(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return $6(this.matrix,r),Na(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Na(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of El)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function aW(t,e){return!t||!t.isValid?vs.invalid("missing or invalid start"):!e||!e.isValid?vs.invalid("missing or invalid end"):e<t?vs.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var mf,vs,q2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();$m();mf="Invalid Interval";vs=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the Interval is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new y0(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=hf(e),i=hf(r),o=aW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=rr.fromDurationLike(r),i=hf(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=rr.fromDurationLike(r),i=hf(e);return t.fromDateTimes(i.minus(n),i)}static fromISO(e,r){let[n,i]=(e||"").split("/",2);if(n&&i){let o,s;try{o=Te.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Te.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return t.fromDateTimes(o,c);if(s){let d=rr.fromISO(i,r);if(d.isValid)return t.after(o,d)}else if(a){let d=rr.fromISO(n,r);if(d.isValid)return t.before(c,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(hf).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(t.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(e){let r=rr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(t.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,i=[],o=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(t.fromDateTimes(r,a.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:mf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.s.loc.clone(r),e).formatInterval(this):mf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:mf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:mf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:mf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:mf}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):rr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}}});var _s,H2=N(()=>{Ia();Aa();zm();Ma();P0();An();_s=class{static hasDST(e=ft.defaultZone){let r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return ar.isValidZone(e)}static normalizeZone(e){return Ki(e,ft.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pt.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(e)}static features(){return{relative:E0(),localeWeek:C0()}}}});function z6(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(rr.fromMillis(n).as("days"))}function cW(t,e,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=z6(a,d);return(h-h%7)/7}],["days",z6]],i={},o=t,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(t,e),c=o.plus(i),c>e?(i[a]--,t=o.plus(i),t>e&&(c=t,i[a]--,t=o.plus(i))):t=c);return[t,i,c,s]}function W6(t,e,r,n){let[i,o,s,c]=cW(t,e,r),a=e-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<e&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=rr.fromObject(o,n);return d.length>0?rr.fromMillis(a,n).shiftTo(...d).plus(h):h}var B6=N(()=>{Jm()});function gt(t,e=r=>r){return{regex:t,deser:([r])=>e(Q3(r))}}function dW(t){return t.replace(/\./g,"\\.?").replace(H6,q6)}function G6(t){return t.replace(/\./g,"").replace(H6," ").toLowerCase()}function eo(t,e){return t===null?null:{regex:RegExp(t.map(dW).join("|")),deser:([r])=>t.findIndex(n=>G6(r)===G6(n))+e}}function j6(t,e){return{regex:t,deser:([,r,n])=>_l(r,n),groups:e}}function L0(t){return{regex:t,deser:([e])=>e}}function fW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function pW(t,e){let r=Ti(e),n=Ti(e,"{2}"),i=Ti(e,"{3}"),o=Ti(e,"{4}"),s=Ti(e,"{6}"),c=Ti(e,"{1,2}"),a=Ti(e,"{1,3}"),d=Ti(e,"{1,6}"),h=Ti(e,"{1,9}"),g=Ti(e,"{2,4}"),v=Ti(e,"{4,6}"),E=F=>({regex:RegExp(fW(F.val)),deser:([z])=>z,literal:!0}),k=(F=>{if(t.literal)return E(F);switch(F.val){case"G":return eo(e.eras("short"),0);case"GG":return eo(e.eras("long"),0);case"y":return gt(d);case"yy":return gt(g,Hm);case"yyyy":return gt(o);case"yyyyy":return gt(v);case"yyyyyy":return gt(s);case"M":return gt(c);case"MM":return gt(n);case"MMM":return eo(e.months("short",!0),1);case"MMMM":return eo(e.months("long",!0),1);case"L":return gt(c);case"LL":return gt(n);case"LLL":return eo(e.months("short",!1),1);case"LLLL":return eo(e.months("long",!1),1);case"d":return gt(c);case"dd":return gt(n);case"o":return gt(a);case"ooo":return gt(i);case"HH":return gt(n);case"H":return gt(c);case"hh":return gt(n);case"h":return gt(c);case"mm":return gt(n);case"m":return gt(c);case"q":return gt(c);case"qq":return gt(n);case"s":return gt(c);case"ss":return gt(n);case"S":return gt(a);case"SSS":return gt(i);case"u":return L0(h);case"uu":return L0(c);case"uuu":return gt(r);case"a":return eo(e.meridiems(),0);case"kkkk":return gt(o);case"kk":return gt(g,Hm);case"W":return gt(c);case"WW":return gt(n);case"E":case"c":return gt(r);case"EEE":return eo(e.weekdays("short",!1),1);case"EEEE":return eo(e.weekdays("long",!1),1);case"ccc":return eo(e.weekdays("short",!0),1);case"cccc":return eo(e.weekdays("long",!0),1);case"Z":case"ZZ":return j6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return j6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return L0(/[a-z_+-/]{1,256}?/i);case" ":return L0(/[^\S\n\r]/);default:return E(F)}})(t)||{invalidReason:lW};return k.token=t,k}function hW(t,e,r){let{type:n,value:i}=t;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=mW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function gW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function wW(t,e,r){let n=t.match(e);if(n){let i={},o=1;for(let s in r)if(ka(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function yW(t){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(t.z)||(r=ar.create(t.z)),Ge(t.Z)||(r||(r=new xt(t.Z)),n=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=qm(t.u)),[Object.keys(t).reduce((o,s)=>{let c=e(s);return c&&(o[c]=t[s]),o},{}),r,n]}function bW(){return Y2||(Y2=Te.fromMillis(1555555555555)),Y2}function vW(t,e){if(t.literal)return t;let r=Gr.macroTokenToFormatOpts(t.val),n=J2(r,e);return n==null||n.includes(void 0)?t:n}function Z2(t,e){return Array.prototype.concat(...t.map(r=>vW(r,e)))}function X2(t,e,r){return new Km(t,r).explainFromTokens(e)}function Y6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=X2(t,e,r);return[n,i,o,s]}function J2(t,e){if(!t)return null;let n=Gr.create(e,t).dtFormatter(bW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>hW(s,t,o))}var lW,uW,q6,H6,mW,Y2,Km,Z6=N(()=>{An();Ym();nf();Ma();Ia();I2();Ea();lW="missing Intl.DateTimeFormat.formatToParts support";uW="\xA0",q6=`[ ${uW}]`,H6=new RegExp(q6,"g");mW={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};Y2=null;Km=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Z2(Gr.parseFormat(r),e),this.units=this.tokens.map(n=>pW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=gW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=wW(e,this.regex,this.handlers),[i,o,s]=n?yW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Zi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Qm(t){return new Br("unsupported zone",`the zone "${t.name}" is not supported`)}function Q2(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function eS(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function n8(t,e,r){let n=t-e*60*1e3,i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function k0(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function N0(t,e,r){return n8(tf(t),e,r)}function J6(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:n,month:i,day:Math.min(t.c.day,sf(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=rr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=tf(o),[a,d]=n8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function gf(t,e,r,n,i,o){let{setZone:s,zone:c}=r;if(t&&Object.keys(t).length!==0||e){let a=e||c,d=Te.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Te.invalid(new Br("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O0(t,e,r=!0){return t.isValid?Gr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function tS(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=tr(t.c.year,r?6:4),e?(n+="-",n+=tr(t.c.month),n+="-",n+=tr(t.c.day)):(n+=tr(t.c.month),n+=tr(t.c.day)),n}function K6(t,e,r,n,i,o){let s=tr(t.c.hour);return e?(s+=":",s+=tr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=tr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=tr(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=tr(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!o?s+="Z":t.o<0?(s+="-",s+=tr(Math.trunc(-t.o/60)),s+=":",s+=tr(Math.trunc(-t.o%60))):(s+="+",s+=tr(Math.trunc(t.o/60)),s+=":",s+=tr(Math.trunc(t.o%60)))),o&&(s+="["+t.zone.ianaName+"]"),s}function CW(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ef(t);return e}function Q6(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return CW(t)}}function TW(t){if(eh===void 0&&(eh=ft.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=rS.get(e);return r===void 0&&(r=t.offset(eh),rS.set(e,r)),r}function e8(t,e){let r=Ki(e.zone,ft.defaultZone);if(!r.isValid)return Te.invalid(Qm(r));let n=pt.fromObject(e),i,o;if(Ge(t.year))i=ft.now();else{for(let a of o8)Ge(t[a])&&(t[a]=i8[a]);let s=N2(t)||R2(t);if(s)return Te.invalid(s);let c=TW(r);[i,o]=N0(t,c,r)}return new Te({ts:i,zone:r,loc:n,o})}function t8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=rf(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(t>e?-0:0,r.units[r.units.length-1])}function r8(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}function hf(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&Qi(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new sr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var K2,X6,i8,_W,SW,o8,xW,EW,eh,rS,Te,Ia=N(()=>{Jm();q2();Aa();H2();Ym();nf();zm();An();P0();B6();j2();Z6();D2();$m();Ea();Wm();K2="Invalid DateTime",X6=864e13;i8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},_W={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o8=["year","month","day","hour","minute","second","millisecond"],xW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],EW=["year","ordinal","hour","minute","second","millisecond"];rS=new Map,Te=class t{constructor(e){let r=e.zone||ft.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Br("invalid input"):null)||(r.isValid?null:Qm(r));this.ts=Ge(e.ts)?ft.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,o]=[e.old.c,e.old.o];else{let c=Qi(e.o)&&!e.old?e.o:r.offset(this.ts);i=k0(this.ts,c),n=Number.isNaN(i.year)?new Br("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=e.loc||pt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=r8(arguments),[n,i,o,s,c,a,d]=r;return e8({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static utc(){let[e,r]=r8(arguments),[n,i,o,s,c,a,d]=r;return e.zone=xt.utcInstance,e8({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static fromJSDate(e,r={}){let n=g6(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let i=Ki(r.zone,ft.defaultZone);return i.isValid?new t({ts:n,zone:i,loc:pt.fromObject(r)}):t.invalid(Qm(i))}static fromMillis(e,r={}){if(Qi(e))return e<-X6||e>X6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Ki(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Qi(e))return new t({ts:e*1e3,zone:Ki(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Ki(r.zone,ft.defaultZone);if(!n.isValid)return t.invalid(Qm(n));let i=pt.fromObject(r),o=af(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=O2(o,i),a=ft.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),E=g||v,M=o.weekYear||o.weekNumber;if((E||h)&&M)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Zi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,F,z,B=k0(a,d);k?(F=xW,z=_W,B=Bm(B,s,c)):h?(F=EW,z=SW,B=I0(B)):(F=o8,z=i8);let q=!1;for(let Ce of F){let Ne=o[Ce];Ge(Ne)?q?o[Ce]=z[Ce]:o[Ce]=B[Ce]:q=!0}let V=k?p6(o,s,c):h?m6(o):N2(o),X=V||R2(o);if(X)return t.invalid(X);let Q=k?L2(o,s,c):h?k2(o):o,[$,me]=N0(Q,d,n),ke=new t({ts:$,zone:n,o:me,loc:i});return o.weekday&&E&&e.weekday!==ke.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:t.invalid(ke.invalid)}static fromISO(e,r={}){let[n,i]=L6(e);return gf(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=k6(e);return gf(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=O6(e);return gf(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Ge(e)||Ge(r))throw new sr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=Y6(s,e,r);return h?t.invalid(h):gf(c,a,n,`format ${r}`,e,d)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,i]=D6(e);return gf(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new sr("need to specify a reason the DateTime is invalid");let n=e instanceof Br?e:new Br(e,r);if(ft.throwOnInvalid)throw new w0(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=J2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Z2(Gr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,rS.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Q2(this).weekYear:NaN}get weekNumber(){return this.isValid?Q2(this).weekNumber:NaN}get weekday(){return this.isValid?Q2(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?eS(this).weekday:NaN}get localWeekNumber(){return this.isValid?eS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?eS(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?_s.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_s.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_s.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_s.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=tf(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=k0(a,s),g=k0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cl(this,{ts:a}),Cl(this,{ts:d})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return sf(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Sl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:i}=Gr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(xt.instance(e),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Ki(e,ft.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){let o=e.offset(this.ts),s=this.toObject();[i]=N0(s,o,e)}return Cl(this,{ts:i,zone:e})}else return t.invalid(Qm(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Cl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=af(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=O2(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Zi("Can't mix ordinal dates with month/day");let g;o?g=L2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(sf(g.year,g.month),g.day))):g=k2({...I0(this.c),...r});let[v,E]=N0(g,this.o,this.zone);return Cl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e);return Cl(this,J6(this,r))}minus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e).negate();return Cl(this,J6(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=rr.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?Gr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):K2}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.loc.clone(r),e).formatDateTime(this):K2}toLocaleParts(e={}){return this.isValid?Gr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=e==="extended",c=tS(this,s);return c+="T",c+=K6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?tS(this,e==="extended"):null}toISOWeekDate(){return O0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+K6(this,s==="extended",r,e,n,o):null}toRFC2822(){return O0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?tS(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),O0(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():K2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return rr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=w6(r).map(rr.normalizeUnit),s=e.valueOf()>this.valueOf(),c=s?this:e,a=s?e:this,d=W6(c,a,o,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?vs.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),t8(r,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?t8(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new sr("min requires all arguments be DateTimes");return F2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new sr("max requires all arguments be DateTimes");return F2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return X2(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Km(o,e)}static fromFormatParser(e,r,n={}){if(Ge(e)||Ge(r))throw new sr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new sr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(e);return h?t.invalid(h):gf(c,a,n,`format ${r.format}`,e,d)}static get DATE_SHORT(){return Ca}static get DATE_MED(){return bm}static get DATE_MED_WITH_WEEKDAY(){return a2}static get DATE_FULL(){return vm}static get DATE_HUGE(){return _m}static get TIME_SIMPLE(){return Sm}static get TIME_WITH_SECONDS(){return xm}static get TIME_WITH_SHORT_OFFSET(){return Em}static get TIME_WITH_LONG_OFFSET(){return Cm}static get TIME_24_SIMPLE(){return Tm}static get TIME_24_WITH_SECONDS(){return Pm}static get TIME_24_WITH_SHORT_OFFSET(){return Mm}static get TIME_24_WITH_LONG_OFFSET(){return Am}static get DATETIME_SHORT(){return Im}static get DATETIME_SHORT_WITH_SECONDS(){return Lm}static get DATETIME_MED(){return km}static get DATETIME_MED_WITH_SECONDS(){return Om}static get DATETIME_MED_WITH_WEEKDAY(){return c2}static get DATETIME_FULL(){return Nm}static get DATETIME_FULL_WITH_SECONDS(){return Rm}static get DATETIME_HUGE(){return Dm}static get DATETIME_HUGE_WITH_SECONDS(){return Fm}}});var In=N(()=>{Ia();Jm();q2();H2();vl();nf();Ma();P2();_0();Aa()});function Tl(t){return t instanceof _r?t===jr.instance:t?.toString().toLowerCase()==="unknown"}function R0(t){return Tl(t)?jr.instance:t}var jr,th=N(()=>{In();jr=class{static{this.instance=new ar("Etc/UTC")}}});function wf(t,e,r){return t<e?t-e:t>r?t-r:0}function yf(t,e,r){return t<e?e:t>r?r:t}function to(t,e=!0){if(t instanceof _r)return t;if(t.toLowerCase()==="system")return"system";if(t.toLowerCase()==="utc")return"UTC";if(t.toLowerCase()==="unknown")return jr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(t)){let n=xt.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=ar.create(t);if(!r.isValid){if(e)throw new nS(D0.TimeZoneNotRecognized);return null}return r}var D0,PW,nS,rh,s8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})(D0||(D0={}));PW={[D0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},nS=class t extends Error{constructor(e,r){super(Fo(PW[e],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}};rh=class t{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Te.local(e,r).daysInMonth,h=Te.fromObject({day:yf(n,1,d),year:e,month:yf(r,1,12),hour:yf(i,0,23),minute:yf(o,0,59),second:yf(s,0,59),millisecond:yf(c,0,999)},{zone:to(a)});return h=h.plus({months:wf(r,1,12),days:wf(n,1,d),hours:wf(i,0,23),minutes:wf(o,0,59),seconds:wf(s,0,59),milliseconds:wf(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=to(r);return e.isUnknownTimeZone||n===jr.instance?t.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e._date.setZone(n))}static dateJSToArcadeDate(e){return new t(Te.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Te.fromMillis(e,{zone:jr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Te.fromMillis(e.getTime(),{zone:jr.instance}))}static epochToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=to(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=to(r);return e.zone===jr.instance||n===jr.instance?t.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e.setZone(n))}static nowToArcadeDate(e){let r=to(e);return new t(Te.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Te.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===t.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===jr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let e=this.zone;return e.type==="fixed"?e.fixed===0?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new t(this._date.plus(e))}diff(e,r="milliseconds"){return this._date.diff(e._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,r){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(e,r){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new t(this._date.toUTC())}toLocal(){return new t(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let r=Te.fromISO(e,{setZone:!0});return new t(r)}}});function yt(t){return t?{remove(){t&&(t(),t=void 0)}}:MW}function AW(t){t.forEach(e=>e?.remove())}function Pl(t){return yt(()=>AW(t))}var MW,jn=N(()=>{MW={remove:()=>{}}});function c8(){let t=iS?.getAttribute("lang"),e=globalThis.navigator?.language;return LW??t??e??"en"}function Ai(){return nh===void 0&&(nh=c8()),nh}function bf(t=Ai()){return kW.exec(t)?.groups}function oS(t){return F0.push(t),yt(()=>{F0.splice(F0.indexOf(t),1)})}function vf(t){return $0.push(t),yt(()=>$0.splice($0.indexOf(t),1))}function a8(){let t=IW??c8();nh!==t&&([...$0].forEach(e=>e(t)),nh=t,[...F0].forEach(e=>e(t)))}var IW,nh,LW,iS,kW,F0,$0,Ra=N(()=>{jn();St();LW=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,iS=globalThis.document?.documentElement;kW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;F0=[];$0=[];globalThis.addEventListener?.("languagechange",a8),iS&&new MutationObserver(()=>{a8()}).observe(iS,{attributeFilter:["lang"]})});function l8(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}var u8,qr,ih=N(()=>{s8();Ra();In();u8="esri.core.sql.dateonly",qr=class t{constructor(e,r,n){this._year=e,this._month=r,this._day=n,this.declaredRootClass=u8}static isDateOnly(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===u8}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return t.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new t(this._year,this._month,this._day)}toDateTime(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toDateTimeLuxon(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,r=!0){if(e===null||e==="")return this.toString();if(r&&(e=l8(e)),!e)return"";let n=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(n).toFormat(e,{locale:Ai(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,r){return t.fromDateTime(this.toUTCDateTime().plus({[e]:r}))}toUTCDateTime(){return Te.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let r=Te.fromMillis(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Te.fromSeconds(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromReader(e){if(!e)return null;let r=e.split("-");return r.length!==3?null:new t(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(e,r,n){let i=new t(e,r,n);return i.isValid===!1?null:i}static fromDateJS(e){return t.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return t.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,r=null){if(e===""||e===null)return null;let n=[];if(r)(r=l8(r))&&n.push(r);else if(r===null||r===""){let i=Te.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Te.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Te.fromJSDate(new Date).setZone(to(e));return new t(r.year,r.month,r.day)}}});var J,OW,ne,Da=N(()=>{xa();(function(t){t.InvalidFunctionParameters="InvalidFunctionParameters",t.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",t.UnsupportedSqlFunction="UnsupportedSqlFunction",t.UnsupportedOperator="UnsupportedOperator",t.UnsupportedSyntax="UnsupportedSyntax",t.UnsupportedIsRhs="UnsupportedIsRhs",t.UnsupportedIsLhs="UnsupportedIsLhs",t.InvalidDataType="InvalidDataType",t.CannotCastValue="CannotCastValue",t.FunctionNotRecognized="FunctionNotRecognized",t.InvalidTime="InvalidTime",t.InvalidParameterCount="InvalidParameterCount",t.InvalidTimeStamp="InvalidTimeStamp",t.InvalidDate="InvalidDate",t.InvalidOperator="InvalidOperator",t.IllegalInterval="IllegalInterval",t.YearMonthIntervals="YearMonthIntervals",t.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",t.MissingStatisticParameters="MissingStatisticParameters"})(J||(J={}));OW={[J.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[J.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[J.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[J.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[J.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[J.UnsupportedOperator]:"Unsupported operator - {operator}",[J.UnsupportedSyntax]:"Unsupported syntax - {node}",[J.UnsupportedSqlFunction]:"Sql function not found = {function}",[J.InvalidDataType]:"Invalid sql data type",[J.InvalidDate]:"Invalid date encountered",[J.InvalidOperator]:"Invalid operator encountered",[J.InvalidTime]:"Invalid time encountered",[J.IllegalInterval]:"Illegal interval",[J.FunctionNotRecognized]:"Function not recognized",[J.InvalidTimeStamp]:"Invalid timestamp encountered",[J.InvalidParameterCount]:"Invalid parameter count for call to {name}",[J.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[J.YearMonthIntervals]:"Year-Month Intervals not supported",[J.CannotCastValue]:"Cannot cast value to the required data type"},ne=class t extends Error{constructor(e,r){super(Fo(OW[e],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}});function d8(t){return Number.isNaN(t)||t===0?t:Math.trunc(t)}var f8,on,oh=N(()=>{In();f8="esri.core.sql.SqlTimeStampOffset",on=class t{constructor(e){this._timeStampOffset=e,this.declaredRootClass=f8,this._date=null}static isTimestampOffset(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===f8}toDateTime(){return this._date??=Te.fromISO(this._timeStampOffset,{setZone:!0}),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return d8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return d8(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return t.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new t(Te.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new t(e.toISO({includeOffset:!0}))}static fromParts(e,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${e.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new t(g+"T"+E+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){let r=this.toDateTime().plus(e);return t.fromDateTime(r)}}});function ae(t,e,r,n){var i,o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}var ai=N(()=>{});var U0,V0=N(()=>{U0="20250418"});var bt,Fa=N(()=>{St();Do();V0();bt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(z3(bt,globalThis.esriConfig,!0),delete bt.has),!bt.assetsPath){{let t="4.33.0";bt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${U0}/assets`}bt.defaultAssetsPath=bt.assetsPath}});function NW(t,e,...r){console[t](`[${e}]`,...r)}function RW(...t){return q3(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var p8,nt,Vt=N(()=>{Fa();St();xa();p8={info:0,warn:1,error:2,none:3},nt=class t{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},e.level!=null&&(this.level=e.level),e.writer!=null&&(this.writer=e.writer),this._module=e.module,t._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=t.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e=typeof e!="string"?e.declaredClass:e,t._loggers.get(e)||new t({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,r,...n){if(this._matchLevel(e)){if(r!=="always"&&!t._throttlingDisabled){let i=RW(n),o=this._loggedMessages[e].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=t._tickCounter)return;this._loggedMessages[e].set(i,t._tickCounter),t._scheduleTickCounterIncrement()}for(let i of bt.log.interceptors)if(i(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,r){let n=this;for(;n!=null;){let i=n[e];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",NW)}_matchLevel(e){let r=bt.log.level||"warn";return p8[this._parentWithMember("level",r)]<=p8[e]}static _scheduleTickCounterIncrement(){t._tickCounterScheduled||(t._tickCounterScheduled=!0,Promise.resolve().then(()=>{t._tickCounter++,t._tickCounterScheduled=!1}))}}});function _f(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var z0=N(()=>{});function DW(t){return t==null?t:new Date(t)}function FW(t){return t==null?t:!!t}function $W(t){return t==null?t:t.toString()}function lS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function UW(t){return t==null?t:Math.round(parseFloat(t))}function VW(t){return null}function h8(t,e){return r=>{let n=t(r);return e.step!=null&&(n=Math.round(n/e.step)*e.step),e.min!=null&&(n=Math.max(e.min,n)),e.max!=null&&(n=Math.min(e.max,n)),n}}function g8(t){return t?.constructor&&t.constructor.__accessorMetadata__!==void 0}function W0(t,e){return e!=null&&t&&!(e instanceof t)}function w8(t){return t&&"isCollection"in t}function m8(t){return t?.Type?typeof t.Type=="function"?t.Type:t.Type.base:null}function zW(t,e){if(!e?.constructor||!w8(e.constructor))return sS(t,e)?e:new t(e);let r=m8(t.prototype.itemType),n=m8(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(sS(t,e),e):new t(e):e}function sS(t,e){return!!g8(e)&&(Sf().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+B0(t)+"'"),!0)}function WW(t,e){return e==null?e:w8(t)?zW(t,e):W0(t,e)?sS(t,e)?e:new t(e):e}function B0(t){return t?.prototype?.declaredClass||"unknown"}function GW(t){switch(t){case Number:return e=>lS(e);case Uo:return UW;case Boolean:return FW;case String:return $W;case Date:return DW;case ah:return VW;default:return _f(BW,t,()=>WW.bind(null,t))}}function $o(t,e){let r=GW(t);return arguments.length===1?r:r(e)}function xf(t,e,r){return arguments.length===1?xf.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?xf(r=>$o(t,r)):xf(r=>$o(t,r),e)}function b8(t,e,r){return e!==0&&Array.isArray(r)?r.map(n=>b8(t,e-1,n)):t(r)}function sh(t,e,r){if(arguments.length===2)return o=>sh(t,e,o);if(!r)return r;r=b8(t,e,r);let n=e,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function v8(t,e,r){return arguments.length===2?sh(n=>$o(t,n),e):sh(n=>$o(t,n),e,r)}function G0(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function j0(t,e){if(arguments.length===2)return j0(t).call(null,e);let r=new Set,n=t.filter(c=>typeof c!="function"),i=t.filter(c=>typeof c=="function");for(let c of t)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!W0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Sf().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>B0(g)).join(", ")),Sf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Sf().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function q0(t,e){if(arguments.length===2)return q0(t).call(null,e);let r={},n=[],i=[];for(let a in t.typeMap){let d=t.typeMap[a];r[a]=$o(d),n.push(B0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof t.key=="string"?a=>a[t.key]:t.key;return a=>{if(t.base&&!W0(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return Sf().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!W0(t.typeMap[d],a))return a;if(typeof t.key=="string"&&!g8(a)){let g={};for(let v in a)v!==t.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _8(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function uS(t){switch(t.type){case"native":return $o(t.value);case"array":return xf(uS(t.value));case"one-of":return jW(t);default:return null}}function jW(t){let e=null;return(r,n)=>cS(r,t)?r:(e==null&&(e=aS(t)),Sf().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function aS(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Uo:return"integer";case Date:return"date";case ah:return"null";default:return B0(t.value)}case"array":return`array of ${aS(t.value)}`;case"one-of":{let e=t.values.map(r=>aS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function cS(t,e){if(t==null)return!0;switch(e.type){case"native":switch(e.value){case Number:case Uo:return typeof t=="number";case Boolean:return typeof t=="boolean";case String:return typeof t=="string";case ah:return t===null}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(r=>!cS(r,e.value));case"one-of":return e.values.some(r=>cS(t,r))}}var Sf,BW,Uo,ah,Ef=N(()=>{St();Vt();z0();Sf=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");BW=new WeakMap;Uo=class{},ah=class{}});function Vo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function Cf(t,e,r){return r?H0(t,e,{policy:r,path:""}):H0(t,e,null)}function H0(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=e[o],n;if(n[o]===void 0)return n[o]=Ht(e[o]),n;let a=n[o],d=e[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=H0(a,d,r),r.path=h}else n[o]=H0(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Y0(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function qW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function dS(t,e,r,n){let i=qW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Pl(o)}return n(t,i[0],r)}var $a=N(()=>{jn();Mn()});function E8(t,e){let r=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(e)?e[i]:e.at(i)}let n=Vo(e);return x8(n,r)?n.get(r):e[r]}function C8(t,e,r){if(t==null)return t;let n=E8(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:C8(n,e,r+1)}function Ml(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Y0(e),r):E8(e,t)}function zo(t,e){return Ml(t,e)}function fS(t,e){return Ml(e,t)!==void 0}var Al=N(()=>{$a()});function Ua(t){let e=t.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(let n in e)e[n]=Ht(e[n]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function Tf(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return Cf(t,e,YW)}function YW(t){return HW.test(t)?"replace":"merge"}var HW,Pf=N(()=>{Mn();$a();HW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function ZW(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ci(n,e)??"").toString())}var Mf,pS=N(()=>{Do();Mf=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&ZW(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Vt();pS();We=class t extends Mf{constructor(e,r,n){super(e,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ht(r)}catch{return"[object]"}}))}}catch(e){throw nt.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new t(e.name,e.message,e.details)}};We.prototype.type="error"});function Af(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Af(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Af(zo(t,i),o,r)}let n=t.__accessor__;n!=null&&XW(e,n),t[e]=r}}function XW(t,e){if(fe("esri-unknown-property-errors")&&!JW(t,e))throw new We("set:unknown-property",KW(t,e))}function JW(t,e){return e.metadata[t]!=null}function KW(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var mS=N(()=>{Ln();St();Vt();Al()});function pe(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(e,r),i=Tf(e,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in t&&nt.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),i.value=t.value=n.value)),t.readOnly!=null&&(i.readOnly=t.readOnly);let o=t.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=zo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=zo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Af(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=QW(s):c&&(a=Array.isArray(c)?xf(q0(c[0])):q0(c)),t.cast=eB(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Z0(t,e,r){let n=Tf(t,r);n.json||(n.json={});let i=n.json;return e!==void 0&&(i.origins||(i.origins={}),i.origins[e]||(i.origins[e]={}),i=i.origins[e]),i}function QW(t){let e=0,r=t;if(_8(t))return uS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(G0(n))return e===0?j0(n):sh(j0(n),e);if(e===1)return y8(n);if(e>1)return v8(n,e);let i=t;return i.from?i.from:$o(i)}function eB(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ci=N(()=>{Vt();Ef();Al();Pf();mS()});var X0,hS=N(()=>{X0=Symbol("Accessor-beforeDestroy")});var Sr,ch=N(()=>{(function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CONSTRUCTING=1]="CONSTRUCTING",t[t.CONSTRUCTED=2]="CONSTRUCTED",t[t.DESTROYING=3]="DESTROYING",t[t.DESTROYED=4]="DESTROYED"})(Sr||(Sr={}))});var at,J0=N(()=>{(function(t){t[t.Dirty=1]="Dirty",t[t.Overridden=2]="Overridden",t[t.Computing=4]="Computing",t[t.NonNullable=8]="NonNullable",t[t.HasDefaultValue=16]="HasDefaultValue",t[t.DepTrackingInitialized=32]="DepTrackingInitialized",t[t.AutoTracked=64]="AutoTracked",t[t.ExplicitlyTracking=128]="ExplicitlyTracking"})(at||(at={}))});var Wo,lh=N(()=>{Wo=class{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.accessed?.clear(),this.clear()}onAccessed(e){this._observer!=null&&e!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(e))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let e=0;e<this._handles.length;++e)this._handles[e].remove();this._handles.length=0}}}});function cr(t){dh.onAccessed(t)}function ro(t,e,r){if(K0)return gS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return ro(ew,t,e)}function gS(t,e,r){let n=K0;K0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){Q0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),K0=n,i}function A8(t){dh=t,uh.push(t)}function I8(){let t=uh.length;if(t>1){let e=uh.pop();dh=uh[t-2],e.onTrackingEnd()}else if(t===1){let e=uh.pop();dh=ew,e.onTrackingEnd()}else dh=ew}function wS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=Q0;Q0=!1,e.flags&at.AutoTracked?gS(e.trackingTarget,e.metadata.get,t):yS(t,e),Q0=r}function yS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,gS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||tB;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Y0(n);for(let o=0,s=t;o<i.length&&s!=null&&typeof s=="object";++o)s=P8(s,i[o],o!==i.length-1)}else P8(t,n,!1)}),e.flags&=~at.ExplicitlyTracking)}function P8(t,e,r){let n=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(t)?t[o]:t.at(o)}let i=Vo(t);if(i){let o=i.propertiesByName.get(n);o&&(cr(o),wS(t,o))}return r?t[n]:void 0}var ew,uh,dh,K0,Q0,tB,Ss=N(()=>{St();Vt();$a();J0();lh();ew=new Wo,uh=[],dh=ew;K0=!1,Q0=!1;tB=[]});function L8(t){if(t.json&&t.json.origins){let e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(e[n]){let i=e[n];r[n].forEach(o=>{e[o]=i}),delete e[n]}}}var k8=N(()=>{});var fh,O8=N(()=>{pS();fh=class extends Mf{constructor(e,r,n){super(e,r,n)}};fh.prototype.type="warning"});function tw(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var bS=N(()=>{});function _S(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||oB(t)&&ws("read.reader",rB(t),e))}function rB(t){let e=t.ndimArray??0;if(e>1)return iB(t);if(e===1)return N8(t);if("type"in t&&D8(t.type)){let r=t.type.prototype?.itemType?.Type,n=N8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new t.type(c)}}return SS(t)}function SS(t){return"type"in t?nB(t.type):sB(t.types)}function nB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void vS().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${i}'`);let o=new t;return o.read(e,n),o}:t.fromJSON}function R8(t,e,r,n){return n!==0&&Array.isArray(e)?e.map(i=>R8(t,i,r,n-1)):t(e,void 0,r)}function iB(t){let e=SS(t),r=R8.bind(null,e),n=t.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function N8(t){let e=SS(t);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=e(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=e(r,void 0,i);return o!==void 0?[o]:void 0}}function D8(t){if(!tw(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?xS(e.Type):F8(e.Type))}function oB(t){return"types"in t?F8(t.types):xS(t.type)}function xS(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||D8(t))}function F8(t){for(let e in t.typeMap)if(!xS(t.typeMap[e]))return!1;return!0}function sB(t){let e=null,r=t.errorContext??"type",n=t.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void vS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=aB(t));let a=t.key;if(typeof a!="string")return;let d=i[a],h=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new fh(`${r}:unsupported`,v,{definition:i,context:s})),void vS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function aB(t){let e={};for(let r in t.typeMap){let n=t.typeMap[r],i=Ua(n.prototype);if(typeof t.key=="function")continue;let o=i[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){e[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){e[r]=n;continue}let c=s.target,a=typeof c=="string"?c:t.key,d={};s.writer(r,d,a),d[a]&&(e[d[a]]=n)}return e}var vS,$8=N(()=>{Vt();Do();O8();Pf();bS();vS=()=>nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function W8(t){if(t.json||(t.json={}),V8(t.json),z8(t.json),U8(t.json),t.json.origins)for(let e in t.json.origins)V8(t.json.origins[e]),z8(t.json.origins[e]),U8(t.json.origins[e]);return!0}function U8(t){t.name&&(t.read&&typeof t.read=="object"?t.read.source===void 0&&(t.read.source=t.name):t.read={source:t.name},t.write&&typeof t.write=="object"?t.write.target===void 0&&(t.write.target=t.name):t.write={target:t.name})}function V8(t){typeof t.read=="boolean"?t.read={enabled:t.read}:typeof t.read=="function"?t.read={enabled:!0,reader:t.read}:t.read&&typeof t.read=="object"&&t.read.enabled===void 0&&(t.read.enabled=!0)}function z8(t){typeof t.write=="boolean"?t.write={enabled:t.write}:typeof t.write=="function"?t.write={enabled:!0,writer:t.write}:t.write&&typeof t.write=="object"&&t.write.enabled===void 0&&(t.write.enabled=!0)}var B8=N(()=>{});function ES(t,e){if(!e.write||e.write.writer||e.write.enabled===!1&&!e.write.overridePolicy)return;let r=t?.ndimArray??0;t&&(r===1||"type"in t&&tw(t.type))?e.write.writer=dB:r>1?e.write.writer=fB(r):e.types?Array.isArray(e.types)?e.write.writer=lB(e.types[0]):e.write.writer=cB(e.types):e.write.writer=ph}function cB(t){return(e,r,n,i)=>e?G8(e,t,i)?ph(e,r,n,i):void 0:ph(e,r,n,i)}function G8(t,e,r){for(let n in e.typeMap)if(t instanceof e.typeMap[n])return!0;if(r?.messages){let n=e.errorContext??"type",i=`Values of type '${(typeof e.key!="function"?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new We(`${n}:unsupported`,i,{definition:t,context:r})),nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function lB(t){return(e,r,n,i)=>!e||!Array.isArray(e)?ph(e,r,n,i):ph(e.filter(o=>G8(o,t,i)),r,n,i)}function ph(t,e,r,n){ws(r,rw(t,n),e)}function rw(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?uB(t):t}function uB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function dB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>rw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[rw(t,n)],ws(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):rw(t,e)}function fB(t){return(e,r,n,i)=>{let o;if(e===null)o=null;else{o=j8(e,i,t);let s=t,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}ws(n,o,r)}}var q8=N(()=>{Ln();Vt();Do();bS()});function H8(t,e){return TS(t,"any",e?.origin)}function nw(t,e){return TS(t,"read",e?.origin)}function Y8(t,e){return TS(t,"write",e?.origin)}function TS(t,e,r){let n=t?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(e==="any"||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(e==="any"||e in i)&&(n=i)}return n}function pB(t){let e=mB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?hB(n):e;_S(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),ES(i,n)}_S(e,t.json,!0),ES(e,t.json)}function mB(t){return t.json.types?CS(t.json):t.type?Z8(t):CS(t)}function hB(t){return t.type?Z8(t):CS(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!G0(r);)r=r[0],e++;return{type:r,ndimArray:e}}function CS(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function X8(t){W8(t)&&(L8(t),pB(t))}var iw=N(()=>{Ef();k8();$8();B8();q8()});function Et(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,wB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!PS.has(i.initialize)&&(PS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!MS.has(i.destroy)&&(MS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);PS.clear(),MS.clear();let o=class extends e{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[X0];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){this.__accessor__.lifecycle=Sr.DESTROYING,a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Ua(e.prototype),o.prototype.declaredClass=t;let s=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function gB(t,e){return e.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n===void 0)return;r.mutable&&cr(n);let i=r.store;return i.has(t)?i.get(t):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n!==void 0)return n.getComputed(r)}}function wB(t){let e=t.prototype,r=Ua(e),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];X8(o),n[i]={enumerable:!0,configurable:!0,get:gB(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?J8("read-only",i):c.lifecycle===Sr.CONSTRUCTED&&o.constructOnly?J8("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(t.prototype,n)}var PS,MS,J8,qn=N(()=>{St();Vt();hS();ch();Pf();Ss();iw();PS=new Set,MS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function yB(t,e,r=!1){let n=`\u{1F6D1} DEPRECATED - ${e}`;if(!r)return void t.warn(n);let i=K8.get(t);i||(i=new Set,K8.set(t,i)),i.has(e)||(i.add(e),t.warn(n))}function Q8(t,e,r={}){if(fe("esri-deprecation-warnings")){let{moduleName:n}=r;bB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function bB(t,e,r={}){if(fe("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=e;if(n&&(c+=`
|
|
2
2
|
\u{1F6E0}\uFE0F Replacement: ${n}`),i&&(c+=`
|
|
3
3
|
\u2699\uFE0F Version: ${i}`),o)if(Array.isArray(o)){c+=`
|
|
4
4
|
\u{1F517} See for more details:`;for(let a of o)c+=`
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
`);return c}setAtOrigin(e,r,n){let i=this.propertiesByName.get(e);if(kf(i))return this._setAtOrigin(i,r,n)}isOverridden(e){let r=this.propertiesByName.get(e);return r!==void 0&&!!(r.flags&at.Overridden)}clearOrigin(e,r){let n=this.store,i=this.propertiesByName.get(e);if(!kf(i))return;let o=n.isAtOrigin(e,r)&&!(i.flags&at.Overridden);n.delete(e,r),o&&i.notifyChange()}clearOverride(e){let r=this.propertiesByName.get(e);r&&r.flags&at.Overridden&&(r.flags&=~at.Overridden,r.notifyChange())}override(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(LS.release(o),!s)return;r=c}n.flags|=at.Overridden,this._internalSet(n,r)}set(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(LS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(e){this._origin=cw(e)}getDefaultOrigin(){return lw(this._origin)}notifyChange(e){let r=this.propertiesByName.get(e);r!==void 0&&r.notifyChange()}invalidate(e){let r=this.propertiesByName.get(e);r!==void 0&&r.invalidate()}commit(e){let r=this.propertiesByName.get(e);r!==void 0&&r.commit()}_internalSet(e,r){let n=this.lifecycle!==Sr.INITIALIZING?this._origin:lt.DEFAULTS;this._setAtOrigin(e,r,n)}_setAtOrigin(e,r,n){let i=this.store,o=e.propertyName;if(i.isAtOrigin(o,n)&&ym(r,i.get(o))&&~e.flags&at.Overridden)return;let s=i.isBelowOrigin(o,n)||i.isAtOrigin(o,n);s&&e.invalidate(),i.set(o,r,n),s&&e.commit(),wS(this.host,e)}_cast(e,r){let n=LS.acquire();return n.valid=!0,n.value=r,e&&(n.value=e.call(this.host,r,n)),n}},kS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},LS=new Va(kS)});function OS(){return xB}var xB,dP,fP=N(()=>{(function(t){t[t.Ignore=0]="Ignore",t[t.Destroy=1]="Destroy",t[t.ThrowError=2]="ThrowError"})(dP||(dP={}))});function EB(t){t.length=0}var za,NS,RS=N(()=>{sw();za=class{constructor(e=50,r=50){this._pool=new Va(Array,void 0,EB,r,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return NS.acquire()}static release(e){return NS.release(e)}static prune(){NS.prune()}},NS=new za(100)});var fw,pP=N(()=>{sw();fw=class extends Va{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let r=super.acquire(...e);return this._set.delete(r),r}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}});function DS(t){pw.push(t),pw.length===1&&queueMicrotask(()=>{let e=pw.slice();pw.length=0;for(let r of e)r()})}var pw,mP=N(()=>{pw=[]});var wh,hP=N(()=>{wh=class{constructor(e,r=30){this.name=e,this._counter=0,this._samples=new Array(r)}push(e){e!=null&&(this._samples[++this._counter%this._samples.length]=e)}set(e){e!=null&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,r)=>e-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,r)=>e+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var FS,$S,gP=N(()=>{(function(t){let e=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let E=o[h-1];if(a(E,v)<=0)break;o[d-1]=E,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a),yield}}t.sort=n,t.iterableSort=i})(FS||(FS={}));$S=FS});function wP(t){t.data.length>CB*t.length&&(t.data.length=Math.floor(t.length*TB))}var CB,TB,yh,yP=N(()=>{Qd();o2();gP();CB=1.5,TB=1.1,yh=class{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new wm,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),e.deallocator!==void 0&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>wP(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];e(i)&&r.push(i)}return r}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,r){let n=this.data.indexOf(e,r);return n!==-1&&n<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let r=e;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,r=e.length){for(let n=0;n<r;n++)this.data[this._length++]=e[n]}fill(e,r){for(let n=0;n<r;n++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,wP(this)}pop(){if(this.length===0)return;let e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){let r=s2(this.data,e,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex(s2(this.data,e,this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,r=e.length,n){this.length=P3(this.data,e,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(e,r){if(e>=this.length||r>=this.length||e===r)return;let n=this.data[e];this.data[e]=this.data[r],this.data[r]=n}sort(e){$S.sort(this.data,0,this.length,e)}iterableSort(e){return $S.iterableSort(this.data,0,this.length,e)}some(e,r){for(let n=0;n<this.length;++n)if(e.call(r,this.data[n],n,this.data))return!0;return!1}find(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(e.call(r,n[o]))return n[o]}filterInPlace(e,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];e.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)e.call(r,n[o],o,n)}forEach(e,r){this.data.slice(0,this.length).forEach(e,r)}map(e,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=e.call(r,this.data[i],i,this.data);return n}reduce(e,r){let n=r;for(let i=0;i<this.length;++i)n=e(n,this.data[i],i,this.data);return n}has(e){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}});function PB(t){return{setTimeout:(e,r)=>{let n=t.setTimeout(e,r);return yt(()=>t.clearTimeout(n))}}}var bP,vP=N(()=>{jn();bP=PB(globalThis)});function bh(t){return MB(t)||_P(t)}function MB(t){return t!=null&&typeof t=="object"&&"on"in t&&typeof t.on=="function"}function _P(t){return t!=null&&typeof t=="object"&&"addEventListener"in t&&typeof t.addEventListener=="function"}function Wa(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");return _P(t)?AB(t,e,r):t.on(e,r)}function AB(t,e,r,n){if(Array.isArray(e)){let i=e.slice();for(let o of i)t.addEventListener(o,r,n);return yt(()=>{for(let o of i)t.removeEventListener(o,r,n)})}return t.addEventListener(e,r,n),yt(()=>t.removeEventListener(e,r,n))}function US(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");if("once"in t)return t.once(e,r);let n=Wa(t,e,i=>{n.remove(),r.call(t,i)});return n}var vh=N(()=>{jn()});function Sn(t="Aborted"){return new We("AbortError",t)}function IB(t,e="Aborted"){if(no(t))throw Sn(e)}function _h(t){return t instanceof AbortSignal?t:t?.signal??void 0}function no(t){let e=_h(t);return e!=null&&e.aborted}function VS(t){if(!Sh(t))throw t}function li(t,e){let r=_h(t);if(r!=null){if(!r.aborted)return US(r,"abort",()=>e());e()}}function xP(t,e){let r=_h(t);if(r!=null)return IB(r),US(r,"abort",()=>e(Sn()))}function Sh(t){return t?.name==="AbortError"}function LB(t,e=void 0,r){let n=new AbortController;return li(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(e)},t);li(n,()=>{s&&(clearTimeout(s),o(Sn()))})})}function zS(t){return t&&typeof t.then=="function"}function SP(t){return zS(t)?t:Promise.resolve(t)}function EP(t,e=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(Sn()),o=_n();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||_n(),o=null,e>0){let v=new AbortController;r=SP(t(...a,v.signal));let E=r;LB(e).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=SP(t(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function _n(){let t,e,r=new Promise((i,o)=>{t=i,e=o}),n=i=>{t(i)};return n.resolve=i=>t(i),n.reject=i=>e(i),n.timeout=(i,o)=>bP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var io=N(()=>{vP();Ln();vh();Vt();Il()});var CP=N(()=>{});function kB(){Eh!=null&&(cancelAnimationFrame(Eh),Eh=requestAnimationFrame(MP))}function gw(t){let e=new WS(t);return GS.push(e),hw.willDispatch||(hw.willDispatch=!0,DS(IP)),e}function OB(t=!1){Of.forAll(e=>{e.removed=!0}),t&&AP()}function MP(){let t=performance.now();Eh=null,Eh=Of.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(MP):null,hw.executeFrameTasks(t)}function NB(t){let e=t-TP;TP=t;let r=PP>0?PP:1e3/60,n=Math.max(0,e-r);xh.time=t,xh.frameDuration=r-n;for(let i=0;i<BS.length;i++){let o=performance.now(),s=BS[i];Of.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(xh.elapsedFrameTime=performance.now()-t,xh.deltaTime=c.ticks===0?0:e,c.phases[s]?.call(c,xh)))}),FB[i].push(performance.now()-o)}AP(),$B.push(performance.now()-t)}function AP(){Of.forAll(t=>{t.removed&&mw.push(t)}),Of.removeUnorderedMany(mw.data,mw.length),mw.clear()}function IP(){for(;GS.length;){let t=GS.shift();t.isActive&&t.callback()}hw.willDispatch=!1}function RB(t=1,e){let r=_n(),n=()=>{no(e)?r.reject(Sn()):t===0?r():(--t,DS(()=>n()))};return n(),r.promise}function DB(t){return RB(1,t)}async function LP(t){await DB(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}var WS,TP,PP,xh,BS,GS,Of,hw,Eh,mw,FB,$B,ww=N(()=>{mP();hP();yP();io();CP();WS=class{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}},TP=0,PP=0,xh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},BS=["prepare","preRender","render","postRender","update","finish"],GS=[],Of=new yh;hw={frameTasks:Of,willDispatch:!1,clearFrameTasks:OB,dispatch:IP,executeFrameTasks:NB,reschedule:kB};Eh=null;mw=new yh;FB=BS.map(t=>new wh(t)),$B=new wh("total")});function kP(t,e){if(!e)return t;for(let r of e)r!=null&&t.add(r);return t}function yw(t,e){let r=new Set;return kP(r,t),kP(r,e),r}var bw=N(()=>{});function vw(){return++UB}var UB,OP=N(()=>{UB=0});function VB(){}var kl,jS,NP,qS=N(()=>{lh();kl=class extends Wo{constructor(e){super(new jS(e)),this._observer&&NP.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&NP.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},jS=class{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;if(e===1)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=VB}},NP=new FinalizationRegistry(t=>{t.deref()?.destroy()})});function YS(t,e){let r=new kl(o),n=null,i=!1;function o(){if(!r||i)return;if(HS)return void zB(o);let c=n;r.clear(),HS=!0,i=!0,n=ro(r,t),i=!1,HS=!1,e(n,c),WB()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=ro(r,t),i=!1,yt(s)}function ZS(t,e){let r=new kl(i),n=null;function i(){e(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=ro(r,t),n):null}return s(),yt(o)}function zB(t){_w.includes(t)||_w.unshift(t)}function WB(){for(;_w.length;)_w.pop()()}var HS,_w,XS=N(()=>{jn();Ss();qS();HS=!1,_w=[]});function Ew(t){Ba.delete(t),Ba.add(t),xw||(xw=gw(GB))}function BB(t){if(t.removed)return;let e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function RP(t){for(let e of Ba.values())e.target===t&&(e.removed=!0)}function GB(){let t=10;for(;xw&&t--;){xw=null;let e=jB(),r=Sw.acquire();for(let n of e){let i=n.uid;BB(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Ba)n.removed&&(r.push(n),Ba.delete(n));for(let n of r)Th.pool.release(n);Sw.release(r),Sw.release(e),qB.forEach(n=>n())}}function jB(){let t=Sw.acquire();t.length=Ba.size;let e=0;for(let r of Ba)t[e]=r,++e;return Ba.clear(),t}function HB(t,e,r){let n=dS(t,e,r,(i,o,s)=>{let c,a,d=ZS(()=>Ml(i,o),(h,g)=>{i.__accessor__?.lifecycle===Sr.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Th.acquireUntracked(h,s,g,i,o),a=c.uid),Ew(c))});return yt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Ew(c)),c=null),n=d=null})});return n}function YB(t,e,r){let n=dS(t,e,r,(i,o,s)=>{let c=!1;return YS(()=>Ml(i,o),(a,d)=>{i.__accessor__.lifecycle!==Sr.DESTROYED?c||(c=!0,ym(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function DP(t,e,r,n=!1){return t.__accessor__&&t.__accessor__.lifecycle!==Sr.DESTROYED?n?YB(t,e,r):HB(t,e,r):yt()}function ZB(t,e,r){let n,i,o=ZS(t,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Th.acquireTracked(s,e,c,r),i=n.uid),Ew(n))});return yt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Ew(n)),n=null),o=null})}function XB(t,e,r){let n=!1;return YS(t,(i,o)=>{n||(n=!0,r(o,i)||e(i,o),n=!1)})}function FP(t,e,r=!1,n=g0){return r?XB(t,e,n):ZB(t,e,n)}var Ch,Th,Sw,Ba,xw,qB,JS=N(()=>{RS();jn();Mn();pP();ww();bw();OP();Al();ch();XS();$a();(function(t){t[t.Untracked=0]="Untracked",t[t.Tracked=1]="Tracked"})(Ch||(Ch={}));Th=class t{constructor(){this.uid=vw(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new fw(t)}static acquireUntracked(e,r,n,i,o){return this.pool.acquire(Ch.Untracked,e,r,n,i,o,ym)}static acquireTracked(e,r,n,i){return this.pool.acquire(Ch.Tracked,e,r,n,null,null,i)}notify(e,r){this.type===Ch.Untracked?this.callback.call(this.target,e,r,this.path,this.target):this.callback.call(null,e,r,void 0,void 0)}acquire(e,r,n,i,o,s,c){this.uid=vw(),this.removed=!1,this.type=e,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=vw(),this.removed=!0}},Sw=new za,Ba=new Set;qB=new Set});function JB(t){if(t==null)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}var $P,UP,Ga,KS,kn,Nf=N(()=>{eP();iP();Vt();Il();hS();Al();ch();Pf();uP();mS();fP();JS();ci();qn();Ga=Symbol("Accessor-Handles"),KS=Symbol("Accessor-Initialized"),kn=class t{static{$P=Ga,UP=KS}static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Ua(s.prototype);for(let c in e){let a=e[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:e[c]}for(let c in r){let a=JB(r[c]);pe(a)(s.prototype,c)}return Et(n)(s)}static freeze(e){return e instanceof t?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof t?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[$P]=null,this[UP]=!1,this.constructor===t)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new dw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),e.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),OS()?.onInstanceConstruct(this)}postscript(){let e=this.__accessor__,r=e.ctorArgs;e.initialize(),r&&(this.set(r),e.ctorArgs=null),e.constructed(),this.initialize(),this[KS]=!0}initialize(){}[X0](){this[Ga]=mh(this[Ga])}destroy(){this.destroyed||(RP(this),this.__accessor__.destroy(),OS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[KS]}get destroyed(){return this.__accessor__?.lifecycle===Sr.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===Sr.DESTROYING||!1}commitProperty(e){zo(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,r){return Af(this,e,r),this}watch(e,r,n){return Q8(nt.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),DP(this,e,r,n)}addHandles(e,r){if(this.destroyed){let n=Array.isArray(e)?e:[e];for(let i of n)i.remove();return}(this[Ga]??=new If).add(e,r)}removeHandles(e){this[Ga]?.remove(e)}removeAllHandles(){this[Ga]?.removeAll()}removeHandlesReference(e){this[Ga]?.removeReference(e)}hasHandles(e){return this[Ga]?.has(e)===!0}_override(e,r){r===void 0?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,r){r==null?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,r){return this.__accessor__.internalSet(e,r),this}}});var Cw,QS,VP=N(()=>{Mn();Ll();Cw=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let r=new t;return this._values.forEach((n,i)=>{e&&e.has(i)||r.set(i,Ht(n.value),n.origin)}),r}get(e,r){r=this._normalizeOrigin(r);let n=this._values.get(e);return r==null||n?.origin===r?n?.value:void 0}originOf(e){return this._values.get(e)?.origin??lt.USER}keys(e){e=this._normalizeOrigin(e);let r=[...this._values.keys()];return e==null?r:r.filter(n=>this._values.get(n)?.origin===e)}set(e,r,n){if((n=this._normalizeOrigin(n))===lt.DEFAULTS){let i=this._values.get(e);if(i?.origin!=null&&i.origin>n)return}this._values.set(e,new QS(r,n))}delete(e,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(e)?.origin!==r||this._values.delete(e)}has(e,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(e)?.origin===r:this._values.has(e)}isAtOrigin(e,r){return r=this._normalizeOrigin(r),this.has(e,r)&&this.originOf(e)===r}isBelowOrigin(e,r){return r=this._normalizeOrigin(r),!this.has(e)||this.originOf(e)<r}forEach(e){this._values.forEach(({value:r},n)=>e(r,n))}_normalizeOrigin(e){if(e!=null)return e===lt.DEFAULTS?e:lt.USER}},QS=class{constructor(e,r){this.value=e,this.origin=r}}});function zP(t,e,r){e.keys().forEach(i=>{r.set(i,e.get(i),lt.DEFAULTS)});let n=t.metadata;Object.keys(n).forEach(i=>{t.internalGet(i)&&r.set(i,t.internalGet(i),lt.DEFAULTS)})}var WP=N(()=>{Ll()});function KB(t,e,r){if(!t?.read||t.read.enabled===!1||!t.read.source)return!1;let n=t.read.source;if(typeof n=="string"){if(n===e||n.includes(".")&&n.indexOf(e)===0&&fS(n,r))return!0}else for(let i of n)if(i===e||i.includes(".")&&i.indexOf(e)===0&&fS(i,r))return!0;return!1}function QB(t){return t&&(!t.read||t.read.enabled!==!1&&!t.read.source)}function eG(t,e,r,n,i){let o=nw(e[r],i);QB(o)&&(t[r]=!0);for(let s of Object.getOwnPropertyNames(e))o=nw(e[s],i),KB(o,r,n)&&(t[s]=!0)}function tG(t,e,r,n){let i=r.metadata,o=H8(i[e],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(t,e,n):s;c!==void 0&&r.set(e,c)}function BP(t,e,r=rG){if(!e||typeof e!="object")return;let n=Vo(t),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(e))eG(o,i,s,e,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=nw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Ml(e,a):e[s],c?.reader&&(d=c.reader.call(t,d,e,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||tG(t,s,n,r)}n.setDefaultOrigin("user")}var rG,GP=N(()=>{Al();$a();iw();rG={origin:"service"}});function nG(t,e,r,n,i){let o={};return e.write?.writer?.call(t,n,o,r,i),o}function iG(t,e,r,n,i,o){if(!n?.write)return!1;let s=zo(t,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(t,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return c&&o?.messages?o.messages.push(c):c&&!o&&nt.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!e.store.multipleOriginsSupported||e.store.originOf(r)===lt.DEFAULTS)&&oG(t,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<cw(o.origin))}function oG(t,e,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(t,e,r??void 0);return m0(s,i)}return!1}return o===i}function jP(t,e,r){if(t&&typeof t.toJSON=="function"&&(!t.toJSON.isDefaultToJSON||!t.write))return Cf(e,t.toJSON(r));let n=Vo(t),i=n.metadata;for(let o in i){let s=Y8(i[o],r);if(!iG(t,n,o,s,void 0,r))continue;let c=zo(t,o),a=nG(t,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(e=Cf(e,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Cf(e,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:t,propName:o,oldOrigin:sP(n.store.originOf(o)),newOrigin:r.origin}))}return e}var qP=N(()=>{Qd();Ln();Vt();Al();Ll();$a();iw()});function sG(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(t,e),r}var HP,Ph,ui,Ol=N(()=>{ai();Nf();VP();WP();GP();$a();qP();qn();HP=t=>{let e=class extends t{constructor(...r){super(...r);let n=Vo(this),i=n.store,o=new Cw;n.store=o,zP(n,i,o)}read(r,n){BP(this,r,n)}write(r,n){return jP(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return sG.call(this,r,n)}};return e=ae([Et("esri.core.JSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};Ph=class extends HP(kn){};Ph=ae([Et("esri.core.JSONSupport")],Ph),function(t){function e(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}t.JSONSupportMixin=HP,t.isSerializable=e}(Ph||(Ph={}));ui=Ph});function Tw(t,e,r){let n,i;return e===void 0||Array.isArray(e)?(i=t,r=e,n=[void 0]):(i=e,n=Array.isArray(t)?t:[t]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=Z0(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var ex=N(()=>{ci()});function aG(t){let e={};for(let r in t)e[t[r]]=r;return e}function YP(t){let e=[];for(let r in t)e.push(r);return e.sort(),e}function Nl(){return function(t,e){return new tx(t,{ignoreUnknown:!0,...e})}}var tx,rx=N(()=>{Do();tx=class{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=aG(e),this.apiValues=YP(this._apiToJSON),this.jsonValues=YP(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&ws(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(e){if(e==null)return null;if(this._apiToJSON.hasOwnProperty(e)){let r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?null:e}fromJSON(e){return e!=null&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}});var Mh,oo,Pw,Mw,Aw=N(()=>{Mh=class{constructor(e,r,n,i,o,s){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},oo=new Mh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Pw=new Mh(3396190,1/169.8944472236118,23e4,6e4,.111),Mw=new Mh(1737400,0,0,0,0)});function Iw(t){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)}function Rf(t){let e=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return e.test(t)?t=t.replace(e,"https://www.arcgis.com"):r.test(t)?t=t.replace(r,"https://devext.arcgis.com"):n.test(t)&&(t=t.replace(n,"https://qaext.arcgis.com")),t}var Ah=N(()=>{});function ZP(t){let e=new Uint8Array(t),r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var XP=N(()=>{});function wG(){let t=xn.path,e=t.slice(0,t.lastIndexOf("/")+1);return`${`${xn.scheme}://${xn.host}${xn.port!=null?`:${xn.port}`:""}`}${e}`}function Es(t){if(!t)return null;let e={path:null,query:null},r=new sn(t),n=t.indexOf("?");return r.query===null?e.path=t:(e.path=t.slice(0,n),e.query=ja(r.query)),r.fragment&&(e.hash=r.fragment,r.query===null&&(e.path=e.path.slice(0,e.path.length-(r.fragment.length+1)))),e}function ja(t){let e=t.split("&"),r={};for(let n of e){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Rl(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(e(r,t[r]))).join("&"):Object.keys(t).map(r=>{let n=t[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=e?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ui.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ui.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function tM(t=!1){let e,r=Df.proxyUrl;if(typeof t=="string"){e=bG(t);let n=$f(t);n&&(r=n.proxyUrl)}else e=!!t;if(!r)throw cG().warn(JP),new We("urlUtils:proxy-not-set",JP);return e&&nx()&&(r=Dw(r)),Es(r)}function rM(t){let e=t.indexOf("?");return e!==-1?(Ih.path=t.slice(0,e),Ih.query=t.slice(e+1)):(Ih.path=t,Ih.query=null),Ih}function nM(t){return t=(t=oM(t=EG(t=rM(t).path),!0)).toLowerCase()}function iM(t){let e={proxyUrl:t.proxyUrl,urlPrefix:nM(t.urlPrefix)},r=Df.proxyRules,n=e.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,e),i}function $f(t){let e=Df.proxyRules,r=nM(t);for(let n=0;n<e.length;n++)if(r.indexOf(e[n].urlPrefix)===0)return e[n]}function ox(t,e=Df.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(t)||typeof n=="string"&&t.startsWith(n);if(e){for(let n of e)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function an(t,e,r=!1){if(!t||!e)return!1;let n=ix(t),i=ix(e);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function kw(t){if(typeof t=="string"){if(!qa(t))return!0;t=ix(t)}if(an(t,xn))return!0;let e=Df.trustedServers||[];for(let r=0;r<e.length;r++){let n=yG(e[r]);for(let i=0;i<n.length;i++)if(an(t,n[i]))return!0}return!1}function yG(t){return Lw[t]||(ax(t)||Ha(t)?Lw[t]=[new sn(Ii(t))]:Lw[t]=[new sn(`http://${t}`),new sn(`https://${t}`)]),Lw[t]}function Ii(t,e=eM,r){return Ha(t)?r?.preserveProtocolRelative?t:xn.scheme==="http"&&xn.authority===cn(t).slice(2)?`http:${t}`:`https:${t}`:ax(t)?t:Ow(t[0]==="/"?xG(e):e,t)}function sx(t,e=eM,r){if(t==null||!qa(t))return t;let n=xs(t),i=n.toLowerCase(),o=xs(e).toLowerCase().replace(/\/+$/,""),s=r?xs(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return t;let c=(g,v,E)=>(E=g.indexOf(v,E))===-1?g.length:E,a=c(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=c(i,"/",a+1);if(d===-1||s&&d<s.length)return t;t=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)t=`../${t}`;else t=`./${t}`;return t}function xs(t){return t=PG(t=TG(t=CG(t=Ii(t=t.trim()))))}function Ow(...t){let e=t.filter(A3);if(!e?.length)return;let r=[];if(qa(e[0])){let i=e[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),_G(e[0])&&(r[0]+="/"),e[0]=i.slice(o+2))}else e[0][0]==="/"&&r.push("");let n=e.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function cn(t,e=!1){if(t==null||Nw(t)||Uf(t))return null;let r=t.indexOf("://");if(r===-1&&Ha(t))r=2;else{if(r===-1)return null;r+=3}let n=t.indexOf("/",r);return n!==-1&&(t=t.slice(0,n)),e&&(t=oM(t,!0)),t}function qa(t){return Ha(t)||ax(t)}function Nw(t){return t!=null&&t.slice(0,5)==="blob:"}function Uf(t){return t!=null&&t.slice(0,5)==="data:"}function Rw(t){return ZP(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Ha(t){return t!=null&&t[0]==="/"&&t[1]==="/"}function ax(t){return t!=null&&KP.test(t)}function bG(t){return t!=null&&lG.test(t)||xn.scheme==="https"&&Ha(t)}function vG(t){return t!=null&&QP.test(t)||xn.scheme==="http"&&Ha(t)}function _G(t){return t!=null&&uG.test(t)}function Dw(t){return Ha(t)?`https:${t}`:t.replace(QP,"https:")}function SG(){return xn.scheme==="http"}function nx(){return xn.scheme==="https"}function oM(t,e=!1){return Ha(t)?t.slice(2):(t=t.replace(KP,""),e&&t.length>1&&t[0]==="/"&&t[1]==="/"&&(t=t.slice(2)),t)}function xG(t){let e=t.indexOf("//"),r=t.indexOf("/",e+2);return r===-1?t:t.slice(0,r)}function EG(t){return t.endsWith("/")?t:`${t}/`}function CG(t){if(/^https?:\/\//i.test(t)){let e=rM(t);t=(t=e.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),e.query&&(t+=`?${e.query}`)}return t}function TG(t){return t.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function PG(t){let e=Df.httpsDomains;if(!vG(t))return t;let r=t.indexOf("/",7),n;if(n=r===-1?t:t.slice(0,r),n=n.toLowerCase().slice(7),dG.test(n)){if(!n.endsWith(":80"))return t;n=n.slice(0,-3),t=t.replace(":80","")}return SG()&&n===xn.authority&&!fG.test(t)||(nx()&&n===xn.authority||e&&e.some(i=>n===i||n.endsWith(`.${i}`))||nx()&&!$f(t))&&(t=Dw(t)),t}function Fw(t,e,r){if(!(e&&r&&t&&qa(t)))return t;let n=t.indexOf("//"),i=t.indexOf("/",n+2),o=t.indexOf(":",n+2),s=Math.min(i<0?t.length:i,o<0?t.length:o);return t.slice(n+2,s).toLowerCase()!==e.toLowerCase()?t:`${t.slice(0,n+2)}${r}${t.slice(s)}`}function ix(t){return typeof t=="string"?new sn(Ii(t)):(t.scheme||(t.scheme=xn.scheme),t)}function Vf(t,e){if(!e)return t;let r=Es(t),n=r.query||{};for(let[o,s]of Object.entries(e))s!=null&&(n[o]=s);let i=Rl(n);return i?`${r.path}?${i}`:r.path}function cx(t){if(t==null)return null;let e=t.match(MG);return e?{path:e[1],extension:e[2]}:{path:t,extension:null}}var cG,Df,JP,KP,QP,lG,uG,dG,fG,pG,mG,sn,Lw,hG,xn,gG,eM,Ff,Ih,MG,Bo=N(()=>{Fa();Qd();Ln();Ol();Vt();Ah();XP();cG=()=>nt.getLogger("esri.core.urlUtils"),Df=bt.request,JP="esri/config: esriConfig.request.proxyUrl is not set.",KP=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,QP=/^\s*http:/i,lG=/^\s*https:/i,uG=/^\s*file:/i,dG=/:\d+$/,fG=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,pG=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),mG=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),sn=class{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(pG);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(mG),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},Lw={},hG=new sn(bt.applicationUrl),xn=hG,gG=wG(),eM=gG,Ff=()=>xn;Ih={path:"",query:""};MG=/([^.]*)\.([^/]*)$/});function sM(t){Zt=t}var AG,Zt,IG,Lh=N(()=>{St();Bo();V0();V0();Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");AG="4.33",IG=AG;IG=`4.33.0-next.${U0}`;fe("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),fe("host-webworker")});function aM(t,e){let r=e?.url?.path;if(t&&r&&(t=Ii(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){let n=sx(t,e.portalItem.itemUrl);n!=null&&kG.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return(t=lx(t,e?.portal))&&$w.test(t)?dM(t):t}function cM(t,e,r=kh.YES){if((t=t&&$w.test(t)?fM(t):t)==null)return t;!qa(t)&&e?.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let n=Ii(t);if(e){let i=e.verifyItemRelativeUrls?.rootPath||e.url?.path;if(i){let o=lx(i,e.portal),s=lx(n,e.portal);n=sx(s,o,o),n!=null&&n!==s&&n!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=uM(n,e?.portal),qa(n)&&(n=xs(n)),e?.resources&&e?.portalItem&&!qa(n)&&!Uf(n)&&r===kh.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(n),compress:!1}),n}function LG(t,e,r){return aM(t,r)}function lM(t,e,r,n){let i=cM(t,n);i!==void 0&&(e[r]=i)}function OG(t){return(t?.match($w)??null)?.[1]??null}function NG(t){let e=t?.match($w)??null;if(e==null)return null;let r=e[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:c}=cx(r);return{prefix:null,filename:s,extension:c}}let{path:i,extension:o}=cx(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function uM(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?Fw(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function lx(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;let r=`${e.urlKey}.${e.customBaseUrl}`,n=Ff();return an(n,`${n.scheme}://${r}`)?Fw(t,e.portalHostname,r):Fw(t,r,e.portalHostname)}function dM(t){if(!t)return t||null;let e=t;return e&&Zt&&!Zt.findCredential(e)&&(e=Rf(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}function fM(t){if(!t)return t||null;let e=t;return e=e.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),e=e.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),e=e.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),e&&Zt&&!Zt.findCredential(e)&&(e=Rf(e)),e}var $w,kG,kh,Vfe,pM=N(()=>{Lh();Bo();Ah();$w=/\/items\/([^/]+)\/resources\/(.*)/,kG=/^\.\/resources\//;(function(t){t[t.YES=0]="YES",t[t.NO=1]="NO"})(kh||(kh={}));Vfe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return kh},ensureMainOnlineDomain:uM,fromCDNUrl:fM,fromJSON:aM,itemIdFromResourceUrl:OG,prefixAndFilenameFromResourceUrl:NG,read:LG,toCDNUrl:dM,toJSON:cM,write:lM},Symbol.toStringTag,{value:"Module"}))});function ux(t){let e=cn(t,!0);return!!e&&(e=e.toLowerCase(),e.endsWith(".arcgis.com")&&(e.startsWith("services")||e.startsWith("tiles")||e.startsWith("features")||/^[a-z\d-]+\.svcs(?:qa|dev)?\./.test(e)))}var RG,mM,qfe,Hfe,hM=N(()=>{Bo();pM();RG={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},mM=Object.values(RG),qfe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Hfe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function FG(t){let e=cn(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!DG.has(e)&&!t.endsWith("/sharing/rest/generateToken")}function gM(t,e){return!(!e&&!bt.apiKey||!FG(t))}var DG,wM=N(()=>{Fa();Bo();DG=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function bM(t,e,r=!1,n){return new Promise((i,o)=>{if(no(n))return void o(yM());let s=()=>{d(),o(new Error(`Unable to load ${e}`))},c=()=>{let h=t;d(),i(h)},a=()=>{if(!t)return;let h=t;d(),h.src="",o(yM())},d=()=>{fe("esri-image-decode")||(t.removeEventListener("error",s),t.removeEventListener("load",c)),s=null,c=null,t=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(e)};n?.addEventListener("abort",a),fe("esri-image-decode")?t.decode().then(c,s):(t.addEventListener("error",s),t.addEventListener("load",c))})}function yM(){try{return new DOMException("Aborted","AbortError")}catch{let t=new Error;return t.name="AbortError",t}}function vM(){return new Error($G)}function _M(t){bt.request.crossOriginNoCorsDomains||(bt.request.crossOriginNoCorsDomains={});let e=bt.request.crossOriginNoCorsDomains;for(let r of t)r=r.toLowerCase(),/^https?:\/\//.test(r)?e[cn(r)??""]=0:(e[cn("http://"+r)??""]=0,e[cn("https://"+r)??""]=0)}function SM(t){let e=bt.request.crossOriginNoCorsDomains;if(e){let r=cn(t);if(r)return r=r.toLowerCase(),!an(r,Ff())&&e[r]<Date.now()-36e5}return!1}async function xM(t){let e=Es(t);t=e.path,e.query?.f==="json"&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}let r=bt.request.crossOriginNoCorsDomains,n=cn(t);r&&n&&(r[n.toLowerCase()]=Date.now())}var $G,EM=N(()=>{Fa();St();io();Bo();$G="Timeout exceeded"});var CM={};Io(CM,{execute:()=>UG});function UG(t,e){let r=e.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",e.responseType=r;let n=e.signal;return delete e.signal,globalThis.invokeStaticMessage("request",{url:t,options:e},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:t,requestOptions:e};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:t,requestOptions:e};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:e,ssl:i.ssl,url:t}})}var TM=N(()=>{Ln()});var Cs,dx=N(()=>{ai();Nf();jn();qn();Cs=class t{constructor(){this._emitter=new t.EventEmitter(this)}emit(e,r){return this._emitter.emit(e,r)}on(e,r){return this._emitter.on(e,r)}once(e,r){return this._emitter.once(e,r)}hasEventListener(e){return this._emitter.hasEventListener(e)}};(function(t){class e{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return Pl(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),yt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}t.EventEmitter=e,t.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=ae([Et("esri.core.Evented")],i),i};let r=class extends kn{constructor(){super(...arguments),this._emitter=new Cs.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=ae([Et("esri.core.Evented.EventedAccessor")],r),t.EventedAccessor=r})(Cs)});var zf,Ya,Dl,PM,Uw=N(()=>{zf="system",Ya="unknown",Dl="UTC",PM=Intl.DateTimeFormat().resolvedOptions().timeZone});var fx,MM=N(()=>{fx=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function VG(t){return"timeZoneIANA"in t}function zG(t){return t.startsWith("UTC")}function Vw(t,e=zf){return t?VG(t)?t.timeZoneIANA:WG(t,e):e}function WG(t,e=zf){if(!t||!fx.has(t.timeZone))return e;let r=fx.get(t.timeZone);return zG(t.timeZone)||t.respectsDaylightSaving?r:BG(r)}function BG(t){let e=Te.local().setZone(t),r=Math.min(e.set({month:1,day:1}).offset,e.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${xt.instance(-r).formatOffset(0,"narrow")}`}var px=N(()=>{Uw();MM();In()});function qG(){let t=Ai(),e=bf(t)?.language;return(e&&jG[e])??t}function YG(t){let e=mx.get(t);if(!e){let r=qG(),n=ZG(t.timeZone??zf),i={...t,timeZone:n};e=new Intl.DateTimeFormat(r,i),mx.set(t,e)}return e}function Wf(t,e=HG){return YG(e).format(t)}function ZG(t){switch(t){case zf:return PM;case Ya:return Dl;default:return t}}var Go,Oh,Nh,Rh,Za,Fl,AM,Dh,Fh,GG,xpe,jG,mx,HG,hx=N(()=>{rx();Ra();Uw();px();In();Go={year:"numeric",month:"numeric",day:"numeric"},Oh={year:"numeric",month:"long",day:"numeric"},Nh={year:"numeric",month:"short",day:"numeric"},Rh={year:"numeric",month:"long",weekday:"long",day:"numeric"},Za={hour:"numeric",minute:"numeric"},Fl={...Za,second:"numeric"},AM={hourCycle:"h23"},Dh={...Za,...AM},Fh={...Fl,...AM},GG={"short-date":Go,"short-date-short-time":{...Go,...Za},"short-date-short-time-24":{...Go,...Dh},"short-date-long-time":{...Go,...Fl},"short-date-long-time-24":{...Go,...Fh},"short-date-le":Go,"short-date-le-short-time":{...Go,...Za},"short-date-le-short-time-24":{...Go,...Dh},"short-date-le-long-time":{...Go,...Fl},"short-date-le-long-time-24":{...Go,...Fh},"long-month-day-year":Oh,"long-month-day-year-short-time":{...Oh,...Za},"long-month-day-year-short-time-24":{...Oh,...Dh},"long-month-day-year-long-time":{...Oh,...Fl},"long-month-day-year-long-time-24":{...Oh,...Fh},"day-short-month-year":Nh,"day-short-month-year-short-time":{...Nh,...Za},"day-short-month-year-short-time-24":{...Nh,...Dh},"day-short-month-year-long-time":{...Nh,...Fl},"day-short-month-year-long-time-24":{...Nh,...Fh},"long-date":Rh,"long-date-short-time":{...Rh,...Za},"long-date-short-time-24":{...Rh,...Dh},"long-date-long-time":{...Rh,...Fl},"long-date-long-time-24":{...Rh,...Fh},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Za,"long-time":Fl},xpe=Nl()({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"}),jG={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};mx=new WeakMap,HG=GG["short-date-short-time"];vf(()=>{mx=new WeakMap})});function JG(t){let e=t||IM;if(!zw.has(e)){let r=Ai(),n=bf(r)?.language,i=n&&XG[n]||r;zw.set(e,new Intl.NumberFormat(i,t))}return zw.get(e)}function Bf(t,e){return Object.is(t,-0)&&(t=0),JG(e).format(t)}var XG,zw,IM,gx=N(()=>{Ra();XG={ar:"ar-u-nu-latn",nn:"no-NN"},zw=new WeakMap,IM={};vf(()=>{zw=new WeakMap,IM={}})});function wx(t,e,r={}){let{format:n={}}=r;return Fo(t,i=>KG(i,e,n))}function KG(t,e,r){let n,i,o=t.indexOf(":");if(o===-1?n=t.trim():(n=t.slice(0,o).trim(),i=t.slice(o+1).trim()),!n)return"";let s=Ci(n,e);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?QG(s,c):i?ej(s,i):yx(s)}function QG(t,e){switch(e.type){case"date":return Wf(t,e.intlOptions);case"number":return Bf(t,e.intlOptions);default:return LM().warn("missing format descriptor for key {key}"),yx(t)}}function ej(t,e){switch(e.toLowerCase()){case"dateformat":return Wf(t);case"numberformat":return Bf(t);default:return LM().warn(`inline format is unsupported since 4.12: ${e}`),/^(dateformat|datestring)/i.test(e)?Wf(t):/^numberformat/i.test(e)?Bf(t):yx(t)}}function yx(t){switch(typeof t){case"string":return t;case"number":return Bf(t);case"boolean":return""+t;default:return t instanceof Date?Wf(t):""}}var LM,bx=N(()=>{Vt();Do();xa();hx();gx();LM=()=>nt.getLogger("esri.intl.substitute")});function tj(t){return t in NM}function kM(t){if(tj(t)){let e=NM[t];return e===!0?t:e}return null}function OM(t){for(let e of Gf.keys())DM(t.pattern,e)&&Gf.delete(e)}function RM(t){return $h.includes(t)||(OM(t),$h.unshift(t)),yt(()=>{let e=$h.indexOf(t);e>-1&&($h.splice(e,1),OM(t))})}async function vx(t){let e=Ai();Gf.has(t)||Gf.set(t,rj(t,e));let r=Gf.get(t);return r&&await nj.add(r),r}function _x(t){let e=bf(t);return e?kM(t)??kM(e.language):null}async function rj(t,e){let r=[];for(let n of $h)if(DM(n.pattern,t))try{return await n.fetchMessageBundle(t,e)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${t}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${t}"`)}function DM(t,e){return typeof t=="string"?e.startsWith(t):t.test(e)}var NM,$h,Gf,nj,Uh=N(()=>{Ln();jn();io();Ra();NM={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};$h=[],Gf=new Map;vf(()=>{Gf.clear()});nj=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(t){return this._increase(),t.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=_n())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function ij(t,e,r,n){let i=e.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${e}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=_x(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await FM(t(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await FM(t(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function FM(t){if($M.fetchBundleAsset!=null)return $M.fetchBundleAsset(t);let e=await nr(t,{responseType:"text"});return JSON.parse(e.data)}function UM(t){return new Sx(t)}var Sx,$M,VM=N(()=>{Ww();Ln();Uh();Sx=class{constructor({base:e="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,r){return ij(this.getAssetUrl,this.matcher,e,r)}};$M={}});var xx=N(()=>{hx();gx();bx();Ra();Uh();Uh();VM();Bw();RM(UM({pattern:"esri/",location:jf}))});function zM(t){return typeof t=="string"?document.getElementById(t):t??null}var WM=N(()=>{});var Xa,Ex,BM,Vh,GM,jM=N(()=>{ai();Nf();io();qn();(function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"})(Xa||(Xa={}));Ex=class{constructor(){this._resolver=_n(),this._status=Xa.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Xa.RESOLVED,this._cleanUp()},()=>{this._status=Xa.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===Xa.RESOLVED}isRejected(){return this._status===Xa.REJECTED}isFulfilled(){return this._status!==Xa.PENDING}abort(){this._resolver.reject(Sn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=_n(),r=[...this._resolvingPromises,e.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Sh(i)||this._resolver.reject(i)}),e.resolve()}},BM=t=>{let e=class extends t{constructor(...r){super(...r),this._promiseProps=new Ex,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return e=ae([Et("esri.core.Promise")],e),e},Vh=class extends BM(kn){};Vh=ae([Et("esri.core.Promise")],Vh),function(t){t.EsriPromiseMixin=BM}(Vh||(Vh={}));GM=Vh});function zh(t,e,r={}){return HM(t,e,r,oj)}function qM(t,e,r={}){return HM(t,e,r,sj)}function HM(t,e,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(hh(i),e(s,c))}:(s,c)=>{n(s)&&e(s,c)};if(i=FP(t,o,r.sync,r.equals),r.initial){let s=t();o(s,s)}return i}function oj(t){return!0}function sj(t){return!!t}var Gw,Cx=N(()=>{vh();jn();Il();io();JS();XS();Gw={sync:!0,initial:!0}});function YM(){if(aj)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;let e=r=>t[r].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}var aj,ZM=N(()=>{aj="randomUUID"in crypto});function lj(t){let e="__accessorMetadata__"in t?$o(t):t;return function(...r){if(r.push(e),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return uj.apply(this,r)}}function uj(t,e,r,n){Tf(t,e).cast=n}function dj(t){return(e,r)=>{Tf(e,t).cast=e[r]}}function jw(...t){if(t.length!==3||typeof t[1]!="string")return t.length===1&&cj.call(t[0])==="[object Function]"?lj(t[0]):t.length===1&&typeof t[0]=="string"?dj(t[0]):void 0}var cj,Tx=N(()=>{Ef();Pf();cj=Object.prototype.toString});function eA(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function fj(t,e,r){}function pj(t,e,r){}function hj(t,e){return mj.test(e)?"":e}function wj(t,e){t=Wh.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=Wh.trim(t.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=Wh.trim(h.slice(0,g)),E=Wh.trim(h.slice(g+1));if(v){var M=e(i,s.length,v,E,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=t[o];if(a==="/"&&t[o+1]==="*"){var d=t.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
|
|
9
9
|
`&&c()}return Wh.trim(s)}function XM(t){return t==null}function vj(t){var e={};for(var r in t)e[r]=t[r];return e}function tA(t){t=vj(t||{}),t.whiteList=t.whiteList||qw.whiteList,t.onAttr=t.onAttr||qw.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||qw.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||qw.safeAttrValue,this.options=t}function rA(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function Ej(t,e,r){}function Cj(t,e,r){}function Tj(t,e,r){}function Pj(t,e,r){}function iA(t){return t.replace(Aj,"<").replace(Ij,">")}function Mj(t,e,r,n){if(r=uA(r),e==="href"||e==="src"){if(r=Jw.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(e==="background"){if(Hw.lastIndex=0,Hw.test(r))return""}else if(e==="style"){if(JM.lastIndex=0,JM.test(r)||(KM.lastIndex=0,KM.test(r)&&(Hw.lastIndex=0,Hw.test(r))))return"";n!==!1&&(n=n||nA,r=n.process(r))}return r=dA(r),r}function oA(t){return t.replace(Lj,""")}function sA(t){return t.replace(kj,'"')}function aA(t){return t.replace(Oj,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function cA(t){return t.replace(Nj,":").replace(Rj," ")}function lA(t){for(var e="",r=0,n=t.length;r<n;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return Jw.trim(e)}function uA(t){return t=sA(t),t=aA(t),t=cA(t),t=lA(t),t}function dA(t){return t=oA(t),t=iA(t),t}function Dj(){return""}function Fj(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function n(s){return r?!0:Jw.indexOf(t,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return e(s,c,a)},remove:function(s){var c="",a=0;return Jw.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function $j(t){for(var e="",r=0;r<t.length;){var n=t.indexOf("<!--",r);if(n===-1){e+=t.slice(r);break}e+=t.slice(r,n);var i=t.indexOf("-->",n);if(i===-1)break;r=i+3}return e}function Uj(t){var e=t.split("");return e=e.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),e.join("")}function Vj(t){var e=Ja.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=Ja.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function zj(t){return t.slice(0,2)==="</"}function Wj(t,e,r){var n="",i=0,o=!1,s=!1,c=0,a=t.length,d="",h="";e:for(c=0;c<a;c++){var g=t.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(t.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(t.slice(i,o)),h=t.slice(o,c+1),d=Vj(h),n+=e(o,n.length,d,h,zj(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,E=t.charAt(c-v);E.trim()===""||E==="=";){if(E==="="){s=g;continue e}E=t.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<t.length&&(n+=r(t.substr(i))),n}function Gj(t,e){var r=0,n=0,i=[],o=!1,s=t.length;function c(v,E){if(v=Ja.trim(v),v=v.replace(Bj,"").toLowerCase(),!(v.length<1)){var M=e(v,E||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=t.charAt(a),h,g;if(o===!1&&d==="="){o=t.slice(r,a),r=a+1,n=t.charAt(r)==='"'||t.charAt(r)==="'"?r:qj(t,a+1);continue}if(o!==!1&&a===n){if(g=t.indexOf(d,a+1),g===-1)break;h=Ja.trim(t.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),o===!1)if(g=jj(t,a),g===-1){h=Ja.trim(t.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=Hj(t,a-1),g===-1){h=Ja.trim(t.slice(r,a)),h=QM(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<t.length&&(o===!1?c(t.slice(r)):c(o,QM(Ja.trim(t.slice(r))))),Ja.trim(i.join(" "))}function jj(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function qj(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function Hj(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function Yj(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function QM(t){return Yj(t)?t.substr(1,t.length-2):t}function Yw(t){return t==null}function Kj(t){var e=Zw.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Zw.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=Zw.trim(t.slice(0,-1))),{html:t,closing:r}}function Qj(t){var e={};for(var r in t)e[r]=t[r];return e}function eq(t){var e={};for(var r in t)Array.isArray(t[r])?e[r.toLowerCase()]=t[r].map(function(n){return n.toLowerCase()}):e[r.toLowerCase()]=t[r];return e}function pA(t){t=Qj(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=so.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=eq(t.whiteList||t.allowList):t.whiteList=so.whiteList,t.onTag=t.onTag||so.onTag,t.onTagAttr=t.onTagAttr||so.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||so.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||so.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||so.safeAttrValue,t.escapeHtml=t.escapeHtml||so.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new Zj(t.css))}var Xw,Px,ir,Mx,$l,mj,gj,Wh,yj,qw,bj,_j,Ax,Ix,Sj,xj,Jw,nA,Aj,Ij,Lj,kj,Oj,Nj,Rj,Hw,JM,KM,Kw,Ja,Bj,Zj,so,fA,Xj,Jj,Zw,tq,qf,rq,mA,hA=N(()=>{Xw=function(){return Xw=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xw.apply(this,arguments)},Px={exports:{}},ir={},Mx={exports:{}},$l={};mj=/javascript\s*\:/img;$l.whiteList=eA();$l.getDefaultWhiteList=eA;$l.onAttr=fj;$l.onIgnoreAttr=pj;$l.safeAttrValue=hj;gj={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Wh=gj;yj=wj,qw=$l,bj=yj;tA.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=bj(t,function(a,d,h,g,v){var E=n[h],M=!1;if(E===!0?M=E:typeof E=="function"?M=E(g):E instanceof RegExp&&(M=E.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var k={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var F=i(h,g,k);return XM(F)?h+":"+g:F}else{var F=o(h,g,k);if(!XM(F))return F}}});return c};_j=tA;(function(t,e){var r=$l,n=_j;function i(s,c){var a=new n(c);return a.process(s)}e=t.exports=i,e.FilterCSS=n;for(var o in r)e[o]=r[o]})(Mx,Mx.exports);Ax=Mx.exports,Ix={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}},Sj=Ax.FilterCSS,xj=Ax.getDefaultWhiteList,Jw=Ix;nA=new Sj;Aj=/</g,Ij=/>/g,Lj=/"/g,kj=/"/g,Oj=/&#([a-zA-Z0-9]*);?/gim,Nj=/:?/gim,Rj=/&newline;?/gim,Hw=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,JM=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,KM=/u\s*r\s*l\s*\(.*/gi;ir.whiteList=rA();ir.getDefaultWhiteList=rA;ir.onTag=Ej;ir.onIgnoreTag=Cj;ir.onTagAttr=Tj;ir.onIgnoreTagAttr=Pj;ir.safeAttrValue=Mj;ir.escapeHtml=iA;ir.escapeQuote=oA;ir.unescapeQuote=sA;ir.escapeHtmlEntities=aA;ir.escapeDangerHtml5Entities=cA;ir.clearNonPrintableCharacter=lA;ir.friendlyAttrValue=uA;ir.escapeAttrValue=dA;ir.onIgnoreTagStripAll=Dj;ir.StripTagBody=Fj;ir.stripCommentTag=$j;ir.stripBlankChar=Uj;ir.cssFilter=nA;ir.getDefaultCSSWhiteList=xj;Kw={},Ja=Ix;Bj=/[^a-zA-Z0-9\\_:.-]/gim;Kw.parseTag=Wj;Kw.parseAttr=Gj;Zj=Ax.FilterCSS,so=ir,fA=Kw,Xj=fA.parseTag,Jj=fA.parseAttr,Zw=Ix;pA.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=e.cssFilter;r.stripBlankChar&&(t=so.stripBlankChar(t)),r.allowCommentTag||(t=so.stripCommentTag(t));var g=!1;r.stripIgnoreTagBody&&(g=so.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=Xj(t,function(E,M,k,F,z){var B={sourcePosition:E,position:M,isClosing:z,isWhite:Object.prototype.hasOwnProperty.call(n,k)},q=i(k,F,B);if(!Yw(q))return q;if(B.isWhite){if(B.isClosing)return"</"+k+">";var V=Kj(F),X=n[k],Q=Jj(V.html,function($,me){var ke=Zw.indexOf(X,$)!==-1,Ce=s(k,$,me,ke);return Yw(Ce)?ke?(me=a(k,$,me,h),me?$+'="'+me+'"':$):(Ce=c(k,$,me,ke),Yw(Ce)?void 0:Ce):Ce});return F="<"+k,Q&&(F+=" "+Q),V.closing&&(F+=" /"),F+=">",F}else return q=o(k,F,B),Yw(q)?d(F):q},d);return g&&(v=g.remove(v)),v};tq=pA;(function(t,e){var r=ir,n=Kw,i=tq;function o(c,a){var d=new i(a);return d.process(c)}e=t.exports=o,e.filterXSS=o,e.FilterXSS=i,function(){for(var c in r)e[c]=r[c];for(var a in n)e[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(Px,Px.exports);qf=Px.exports,rq=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},mA=function(){function t(e,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=Xw(Xw({},qf.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):qf.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;e&&!r?i=e:e&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,e.whiteList||{}]);else if(o==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=e[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new qf.FilterXSS(i)}return t.prototype.sanitize=function(e,r){switch(r===void 0&&(r={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,r);default:return r.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",c=/^#/.test(e),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?qf.escapeAttrValue(e):!o&&!i?qf.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,r,n,i):qf.safeAttrValue(e,r,n,i)},t.prototype.validate=function(e,r){r===void 0&&(r={});var n=this.sanitize(e,r);return{isValid:e===n,sanitized:n}},t.prototype.encodeHTML=function(e){var r=this;return String(e).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},t.prototype.encodeAttrValue=function(e){var r=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(e.charCodeAt(i)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var r={};return e.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},t.prototype._iterateOverObject=function(e,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(e))o=e.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(rq(e)){var s=Object.keys(e);o=s.reduce(function(c,a){var d=e[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof e>"u"?void 0:null;return i?o:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t}()});function ey(){Qw.clear()}function gA(t){return Qw.get(t)}function wA(t,e){Qw.set(t,e)}function ty(t){Qw.delete(t)}var Qw,Lx=N(()=>{Qw=new Map});function yA(...t){let e=za.acquire();for(let n=0;n<t.length;n++){let i=t[n],o=typeof i;if(o==="string")e.push(i);else if(Array.isArray(i))e.push.apply(e,i);else if(o==="object")for(let s in i)i[s]&&e.push(s)}let r=e.join(" ");return za.release(e),r}async function bA(t,e){await LP(_h(e));let r=typeof t=="function"?t():t;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var Dme,nq,iq,oq,kx,ry=N(()=>{hA();RS();jn();St();Vt();io();Cx();ww();Lx();Dme=(()=>{let t=new Map,e=new ResizeObserver(n=>{ey();for(let i of n)t.get(i.target)?.(i)}),r=(n,i,o)=>(t.set(n,i),e.observe(n,o),yt(()=>{e.unobserve(n),t.delete(n)}));return(n,i,o)=>{let s=null;return Pl([zh(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},Gw),yt(()=>s?.remove())])}})(),nq=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],iq=nq.reduce((t,e)=>(t[e]=[],t),{}),oq=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],kx=new mA({whiteList:iq,onTagAttr:(t,e,r)=>{let n=`${e}="${r}"`;if(oq.includes(e))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function Dx(t){if(!(t instanceof Element&&t.tagName.includes("-")))return!1;let e=window.customElements.get(t.tagName.toLowerCase());return!!e&&t instanceof e}var EA,iy,CA,vA,oy,$x,TA,sq,Ox,aq,Nx,Rx,PA,_A,SA,xA,cq,ny,lq,Ux,Ul,Fx,uq,dq,Hf,MA=N(()=>{ry();EA="http://www.w3.org/",iy=`${EA}2000/svg`,CA=`${EA}1999/xlink`,vA=[],oy=(t,e)=>{let r={};return Object.keys(t).forEach(n=>{r[n]=t[n]}),e&&Object.keys(e).forEach(n=>{r[n]=e[n]}),r},$x=(t,e)=>t.vnodeSelector===e.vnodeSelector&&(t.properties&&e.properties?t.properties.key===e.properties.key&&t.properties.bind===e.properties.bind:!t.properties&&!e.properties),TA=t=>{if(typeof t!="string")throw new Error("Style values must be strings")},sq=(t,e,r)=>{if(e.vnodeSelector!==""){for(let n=r;n<t.length;n++)if($x(t[n],e))return n}return-1},Ox=(t,e,r,n)=>{let i=t[e];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<t.length;s++)if(s!==e){let c=t[s];if($x(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},aq=t=>{if(t.properties){let e=t.properties.enterAnimation;e&&e(t.domNode,t.properties)}},Nx=[],Rx=!1,PA=t=>{(t.children||[]).forEach(PA),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},_A=()=>{Rx=!1,Nx.forEach(PA),Nx.length=0},SA=t=>{Nx.push(t),Rx||(Rx=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(_A,{timeout:16}):setTimeout(_A,16))},xA=t=>{let e=t.domNode;if(t.properties){let r=t.properties.exitAnimation;if(r)return e.style.pointerEvents="none",void r(e,()=>{e.parentNode&&(e.parentNode.removeChild(e),SA(t))},t.properties)}e.parentNode&&(e.parentNode.removeChild(e),SA(t))},cq=(t,e,r)=>{if(!e)return;let n=r.eventHandlerInterceptor,i=Object.keys(e),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=e[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")Fx(t,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&t.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],E=a[v];E&&(TA(E),r.styleApplyer(t,v,E))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,t,e)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),t[c]=a):r.namespace===iy?c==="href"?t.setAttributeNS(CA,c,a):t.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?t[c]=kx.sanitize(a):Dx(t)&&c in t?t[c]=a:t.setAttribute(c,a):t[c]=a}}};lq=(t,e,r)=>{if(e)for(let n of e)Ul(n,t,void 0,r)},Ux=(t,e,r)=>{lq(t,e.children,r),e.text&&(t.textContent=e.text),cq(t,e.properties,r),e.properties&&e.properties.afterCreate&&e.properties.afterCreate.apply(e.properties.bind||e.properties,[t,r,e.vnodeSelector,e.properties,e.children])},Ul=(t,e,r,n)=>{let i,o=0,s=t.vnodeSelector,c=e.ownerDocument;if(s==="")i=t.domNode=c.createTextNode(t.text),r!==void 0?e.insertBefore(i,r):e.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=oy(n,{namespace:iy})),n.namespace!==void 0?i=t.domNode=c.createElementNS(n.namespace,g):(i=t.domNode=t.domNode||c.createElement(g),g==="input"&&t.properties&&t.properties.type!==void 0&&i.setAttribute("type",t.properties.type)),r!==void 0?e.insertBefore(i,r):i.parentNode!==e&&e.appendChild(i)),o=a+1}}Ux(i,t,n)}},Fx=(t,e,r)=>{e&&e.split(" ").forEach(n=>{n&&t.classList.toggle(n,r)})},uq=(t,e,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=e[a];if(a==="class")h!==d&&(Fx(t,h,!1),Fx(t,d,!0));else if(a==="classes"){let g=t.classList,v=Object.keys(d),E=v.length;for(let M=0;M<E;M++){let k=v[M],F=!!d[k];F!==!!h[k]&&(i=!0,F?g.add(k):g.remove(k))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let E=0;E<v;E++){let M=g[E],k=d[M];k!==h[M]&&(i=!0,k?(TA(k),n.styleApplyer(t,M,k)):n.styleApplyer(t,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||Dx(t)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===iy?a==="href"?t.setAttributeNS(CA,a,d):t.setAttribute(a,d):g==="string"?a==="innerHTML"?t[a]=kx.sanitize(d):a==="role"&&d===""?t.removeAttribute(a):Dx(t)&&a in t?t[a]=d:t.setAttribute(a,d):t[a]!==d&&(t[a]=d),i=!0)}}else{let g=t[a];g!==d&&(t["oninput-value"]?g===t["oninput-value"]:d!==h)&&(t[a]=d,t["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},dq=(t,e,r,n,i)=>{if(r===n)return!1;n=n||vA;let o,s=(r=r||vA).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&$x(g,v))h=ny(g,v,i)||h,a++;else{let E=sq(r,v,a+1);if(E>=0){for(o=a;o<E;o++)xA(r[o]),Ox(r,o,t,"removed");h=ny(r[E],v,i)||h,a=E+1}else Ul(v,e,a<s?r[a].domNode:void 0,i),aq(v),Ox(n,d,t,"added")}d++}if(s>a)for(o=a;o<s;o++)xA(r[o]),Ox(r,o,t,"removed");return h};ny=(t,e,r)=>{let n=t.domNode,i=!1;if(t===e)return!1;let o=!1;if(e.vnodeSelector===""){if(e.text!==t.text){let s=n.ownerDocument.createTextNode(e.text);return n.parentNode.replaceChild(s,n),e.domNode=s,i=!0,i}e.domNode=n}else e.vnodeSelector.lastIndexOf("svg",0)===0&&(r=oy(r,{namespace:iy})),t.text!==e.text&&(o=!0,e.text===void 0?n.removeChild(n.firstChild):n.textContent=e.text),e.domNode=n,o=dq(e,n,t.children,e.children,r)||o,o=uq(n,t.properties,e.properties,r)||o,e.properties&&e.properties.afterUpdate&&e.properties.afterUpdate.apply(e.properties.bind||e.properties,[n,r,e.vnodeSelector,e.properties,e.children]);return o&&e.properties&&e.properties.updateAnimation&&e.properties.updateAnimation(n,e.properties,t.properties),i};Hf=(t,e)=>({getLastRender:()=>t,update:r=>{if(t.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=t;t=r,ny(n,r,e)},domNode:t.domNode})});var fq,Yf,Zf,Vx=N(()=>{MA();fq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(t,e,r)=>{e.charAt(0)==="-"?t.style.setProperty(e,r):t.style[e]=r}},Yf=t=>oy(fq,t),Zf={create:(t,e)=>(e=Yf(e),Ul(t,document.createElement("div"),void 0,e),Hf(t,e)),append:(t,e,r)=>(r=Yf(r),Ul(e,t,void 0,r),Hf(e,r)),insertBefore:(t,e,r)=>(r=Yf(r),Ul(e,t.parentNode,t,r),Hf(e,r)),merge:(t,e,r)=>(r=Yf(r),e.domNode=t,Ux(t,e,r),Hf(e,r)),replace:(t,e,r)=>(r=Yf(r),Ul(e,t.parentNode,t,r),t.parentNode.removeChild(t),Hf(e,r))}});var pq,AA=N(()=>{Vx();pq=Array.prototype.find?(t,e)=>t.find(e):(t,e)=>t.filter(e)[0]});var IA,LA=N(()=>{IA={handleInterceptedEvent:(t,e,r,n)=>(t.scheduleRender(),e.properties[`on${n.type}`].apply(e.properties.bind||r,[n]))}});var mq,kA,OA=N(()=>{mq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(t,e,r)=>{e.charAt(0)==="-"?t.style.setProperty(e,r):t.style[e]=r}},kA=t=>({...mq,...t})});var hq,gq,NA,RA,DA=N(()=>{Vx();AA();LA();OA();hq=(t,e)=>{let r=[];for(;t&&t!==e;)r.push(t),t=t.parentNode;return r},gq=(t,e)=>t.find(e),NA=(t,e,r=!1)=>{let n=t;return e.forEach((i,o)=>{let s=n?.children?gq(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==e.length-1||(n=s)}),n},RA=t=>{let e,r={...IA,...t},n=kA(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,E,M)=>{let k;n.eventHandlerInterceptor=(z,B,q,V)=>function(X){let Q;i("domEvent",X);let $=hq(X.currentTarget,k.domNode),me=$.some(Ce=>customElements.get(Ce?.tagName?.toLowerCase()));if(X.eventPhase===Event.CAPTURING_PHASE||!me)$.reverse(),Q=NA(k.getLastRender(),$);else{let Ce=X.composedPath(),Ne=Ce.slice(Ce.indexOf(X.currentTarget),Ce.indexOf(k.domNode)).reverse();Q=NA(k.getLastRender(),Ne,!0)}let ke;return Q&&(ke=r.handleInterceptedEvent(e,Q,this,X)),i("domEventProcessed",X),ke},r.postProcessProjectionOptions?.(n);let F=M();k=v(E,F,n),n.eventHandlerInterceptor=void 0,a.push(k),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(k,F)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let E=d[v]();i("rendered",void 0);try{a[v].update(E)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),e={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,e.scheduleRender()},append:(v,E)=>{h(Zf.append,v,E)},insertBefore:(v,E)=>{h(Zf.insertBefore,v,E)},merge:(v,E)=>{h(Zf.merge,v,E)},replace:(v,E)=>{h(Zf.replace,v,E)},detach:v=>{for(let E=0;E<d.length;E++)if(d[E]===v)return d.splice(E,1),a.splice(E,1)[0];throw new Error("renderFunction was not found")}},e}});function FA(t,e){if(e){let r=t.constructor.elementProperties;t.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(x3))}else{let r=t.constructor,n=r.__registerControllers?.(t)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");t.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function $A(t,e=8){return t==null||typeof t=="object"||typeof t=="function"?t:e&4?t==="false"?!1:t===""||!!t:e&2?Number.parseFloat(t):e&1?String(t):t}var zx,UA,Wx=N(()=>{"use strict";Kd();zx=(t=>(t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=4]="Boolean",t[t.Any=8]="Any",t[t.Unknown=16]="Unknown",t[t.State=32]="State",t[t.Method=64]="Method",t[t.Event=128]="Event",t[t.Element=256]="Element",t[t.ReflectAttr=512]="ReflectAttr",t[t.Mutable=1024]="Mutable",t[t.Prop=31]="Prop",t[t.HasAttribute=15]="HasAttribute",t[t.PropLike=63]="PropLike",t[t.ReadOnly=2048]="ReadOnly",t))(zx||{});UA=(t,e)=>t.manager.internals.members?.[e]?.[0]});function BA(t){return typeof t?.then=="function"}function Wl(t){Bh!==t&&(Bh=t,queueMicrotask(()=>{Bh===t&&(Bh=void 0)}))}function Kf(t){return Bh}function jx(t){if(t===void 0){Vl=[];return}let e=Vl.indexOf(t);Vl=e===-1?[...Vl,t]:Vl.slice(0,e+1),queueMicrotask(()=>{Vl=[]})}function qx(){return Vl}function wq(t){Xf!==t&&(Xf=t,queueMicrotask(()=>{Xf===t&&(Xf=void 0)}))}function yq(){let t=Xf;return Xf=void 0,t}function VA(t){Ut(t,void 0,this)}function zA(t){if(typeof t!="object"&&typeof t!="function"||t===null)return t;let e=new Proxy(t,{get(r,n,i){if(!(_q.has(n)&&n in r&&r[n]===e)&&(n in r||n in Promise.prototype||typeof n=="symbol"))return typeof r=="function"?r[n]:Reflect.get(r,n,i)},set:(r,n,i,o)=>Reflect.set(r,n,i,o)});return e}function qA(t,e,r){let n=Object.keys(t),i=n.length;zl===void 0&&queueMicrotask(qh),zl??(zl=new Map);let o=zl.get(t);return o===void 0&&(o={callbacks:[],keyCount:i},zl.set(t,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let c=d=>Ut(e,null,d),a=s[i];a===void 0?c(void 0):t[a]===r?c(a):c(void 0)}),r}function qh(){Array.from(zl?.entries()??[]).forEach(([t,{callbacks:e}])=>{let r=Object.keys(t);e.forEach(n=>n(r))}),zl=void 0}function ly(t,e,r){var n;let i=e,o=t.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],c=r,a=(d,h,g)=>Ut(c,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function HA(t,e,r){let n=t.manager.internals;return n.trackedValue!==Gx&&n.trackedValue!==r&&n.firePropTrackers(void 0,void 0),n.keyTrackers.length===0&&queueMicrotask(()=>n.firePropTrackers(void 0,void 0)),n.trackedValue=r,n.keyTrackers.push((i,o)=>Ut(e,void 0,r===o?i:void 0)),r}function uy(t=[Kf(),...qx()],e,r){let n=Array.isArray(t)?t:[t],i=n.length+1,o=c=>{i-=1,c!==void 0&&(i=Math.min(i,0)),i===0&&e(c)};n.forEach(c=>qA(c,a=>o(a===void 0?void 0:{key:a,host:c,isReactive:!1}),r));let s=n.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return s&&HA(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r),r}function YA(t){Gh.readOnly=!0;try{return t()}finally{Gh.readOnly=!1}}function Sq(t,{host:e,key:r,isReactive:n},i){let o=e,s=o[r]!==t.exports,c=o[r]!==i,a=i!==t.exports;if(s&&!c&&a&&(o[r]=t.exports),e===t.component){if(n){let h=t.component.manager.internals;c&&h.markExports(t,o[r]),ly(t.component,r,g=>{g!==t.exports&&h.markExports(t,g)})}t.assignedProperty=n?void 0:r}t.watchExports(()=>{if(o[r]===t.exports)return;let h=t.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?YA(()=>{o[r]=t.exports}):o[r]=t.exports})}var cy,WA,Bh,Vl,Xf,bq,vq,Hx,Gh,jh,GA,Jf,jA,_q,zl,ay,Bx,sy,Gx,ZA,Yx=N(()=>{"use strict";Kd();Wx();cy=Symbol.for("controller"),WA=t=>typeof t=="object"&&t!==null&&(cy in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t);Vl=[];bq=async(t,e)=>{let r=Hx(t);if(r===void 0)return t;if(await r.ready,typeof e=="function"){let n=r.watchExports(i=>e(i,n))}return r.exports},vq=async t=>{let e=Hx(t);return await e.ready,e},Hx=t=>{let r=Kf().manager.internals.resolveExports(t);if(r!==void 0)return r;if(WA(t))return t;let n=yq();if(n!==void 0)return n},Gh={setter:!1,getter:!1,readOnly:!1},jh=new WeakMap;GA=cy;Jf=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new ii,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[GA]=!0,this.ready=this._ready.promise,this._exports=zA(this),this._exportWatchers=new Set;let r=e??Kf(new.target.name);this.component=r,this.component.addController(this),this.component.manager===void 0||(jx(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let r=this._exports;r!==e&&(this._exports=e,this._exportWatchers.forEach(Ut),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,r)),this._ready.resolve(e)}setProvisionalExports(e,r=!0){this._exports=r?zA(e):e,this._exportWatchers.forEach(Ut)}watchExports(e){let r=()=>e(this._exports);return this._exportWatchers.add(r),()=>void this._exportWatchers.delete(r)}get use(){return Wl(this.component),bq}get useRef(){return Wl(this.component),vq}get useRefSync(){return Wl(this.component),Hx}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&Ut(e.hostConnected,e),this._callbacks.hostConnected.forEach(Ut),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Ut(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Ut),this._lifecycleCleanups.forEach(Ut),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await hm(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(hm)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Ut(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Ut),this.loadedCalled=!0}triggerUpdate(e){let r=this;r.hostUpdate&&Ut(r.hostUpdate,r,e),this._callbacks.hostUpdate.forEach(VA,e)}triggerUpdated(e){let r=this;r.hostUpdated&&Ut(r.hostUpdated,r,e),this._callbacks.hostUpdated.forEach(VA,e)}triggerDestroy(){let e=this;e.hostDestroy&&Ut(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Ut)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){Wl(this.component);let r=Ut(e);(Array.isArray(r)?r:[r]).forEach(i=>{typeof i=="function"?this._lifecycleCleanups.push(i):typeof i=="object"&&typeof i.remove=="function"&&this._lifecycleCleanups.push(i.remove)})}};jA=Jf;_q=new Set(["exports","_exports"]);ay=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let r=this.component.manager.internals;Object.entries(r.members).forEach(([n,[i]])=>{var o;i&zx.ReadOnly&&((o=r.setters)[n]??(o[n]=[]),r.setters[n].push(r.readonlySetter))})},this.trackedValue=Gx,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(r,n,i)=>{if(Gh.readOnly)return r;throw new Error(`Cannot assign to read-only property "${i}" of ${this.component.el.localName}. Trying to assign "${String(r)}"`)},this.component=e}firePropTrackers(e,r){let n=this.keyTrackers;this.trackedValue=Gx,this.keyTrackers=[],n.forEach(i=>i(e,r))}getSetProxy(e){let r=this.component,n=r.constructor.prototype;if(this._getSetProxy(n,e,"class"),r.manager.isLit)return;let i=r.el.constructor.prototype;n!==i&&this._getSetProxy(i,e,"html")}_getSetProxy(e,r,n){let i=this.component,o=UA(i,r),s;do s=Object.getOwnPropertyDescriptor(e,r);while(!s&&(e=Object.getPrototypeOf(e)));if(!s)return;let c=s.get,a=s.set,d=sy in c,h=sy in a;if(d&&h)return;let g=!d,v=!h,E=g?function(){let F=c.call(this),z=jh.get(this);if(Gh.getter||z===void 0)return F;let B=z.manager.internals;F=B.accessorGetter[r](F,r);let q=B.getters[r]??Bx;for(let V=0;V<q.length;V++)F=q[V](F,r);return F}:c,M=v?function(F){let z=c.call(this),B=jh.get(this);if(B===void 0){a.call(this,F);return}let q=B.manager.isLit?F??void 0:$A(F,o),V=B.manager.internals;if(q===z)a.call(this,q);else{let X=Gh.setter?Bx:V.setters[r]??Bx;for(let Q=0;Q<X.length&&(q=X[Q](q,z,r),q!==z);Q++);q=V.accessorSetter[r](q,z,r),a.call(this,q),q!==z&&V.enabledWatchers[r]?.forEach(Q=>Q(q,z,r))}V.keyTrackers.length>0&&V?.firePropTrackers(r,F)}:a;g&&(E[sy]=!0),v&&(M[sy]=!0),Object.defineProperty(e,r,{...s,get:E,set:M})}markExports(e,r){(typeof r=="object"&&r!==null||typeof r=="function")&&this._exports.set(r,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Bx=[],sy=Symbol(),Gx=Symbol();ZA=t=>(...e)=>{let r=qx(),n=new t(...e),i=n.exports;jx(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(c=>o.markExports(n,c)),wq(n);let s=[n.component,...r].reverse();return uy(s,c=>c===void 0?void 0:Sq(n,c,i),i)}});function Eq(t){"triggerConnected"in t?t.triggerConnected():Ut(t.hostConnected,t)}function Cq(t){"triggerDisconnected"in t?t.triggerDisconnected():Ut(t.hostDisconnected,t)}async function Tq(t){"triggerLoad"in t?await t.triggerLoad():await hm(t.hostLoad,t)}function Pq(t){"triggerLoaded"in t?t.triggerLoaded():Ut(t.hostLoaded,t)}function Mq(t){"triggerUpdate"in t?t.triggerUpdate(this):Ut(t.hostUpdate,t,this)}function Aq(t){"triggerUpdated"in t?t.triggerUpdated(this):Ut(t.hostUpdated,t,this)}function Iq(t){"triggerDestroy"in t?t.triggerDestroy():Ut(t.hostDestroy,t)}function tI(t,e){if(!e)return t;let r={...t};return Object.entries(e).forEach(([n,i])=>{typeof i=="object"?r[n]=tI(t[n],i):r[n]=i??t[n]}),r}var JA,Xx,Zx,xq,XA,Lq,KA,Jx,QA,dy,Kx,eI,Qf=N(()=>{"use strict";Yx();Yx();Kd();Wx();JA=(t,e)=>new Xx(t,e),Xx=class extends jA{constructor(e,r){let n="addController"in e,i=new Set;function o(d){i.add(d),!(cy in d)&&e.renderRoot&&e.el.isConnected&&d.hostConnected?.()}function s(d){i.delete(d),d.controllerRemoved?.()}let c=e;if(c.addController=o,c.removeController=s,!n){let d=r??e.constructor.__forceUpdate;c.requestUpdate=()=>d(e)}super(e),this.internals=new ay(this.component),this.destroyed=!1,this._updatePromise=new ii,this._originalLifecycles={},this.isLit=n,this.component.manager=this,FA(e,n),this._controllers=i,this.exports=void 0,this.hasDestroy=Zx in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let a=this.internals;Object.keys(a.members).forEach(d=>{a.accessorGetter[d]=XA,a.accessorSetter[d]=XA,a.getSetProxy(d)}),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(a.enableReadonly),Wl(e),jh.set(e.el,e),jh.set(e,e)}_bindLifecycleMethods(){let e=this.component,r=this.isLit,n=e.el===e;this._originalLifecycles={_connectedCallback:r||n?void 0:e.connectedCallback,_disconnectedCallback:r||n?void 0:e.disconnectedCallback,_load:r?e.load:e.componentWillLoad,_loaded:r?e.loaded:e.componentDidLoad,_willUpdate:r?void 0:e.componentWillUpdate,_updated:r?void 0:e.componentDidUpdate,_destroy:e.destroy};let i=this._connectedCallback.bind(this),o=this._disconnectedCallback.bind(this),s=this._update.bind(this),c=this._updated.bind(this);r?e.constructor.prototype.addController.call(e,{hostConnected:i,hostDisconnected:o,hostUpdate:s,hostUpdated:c}):(e.connectedCallback=i,e.disconnectedCallback=o,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=s,e.componentDidUpdate=c),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let r=this.component.el.localName;throw this.component.el.remove(),new Error(`The ${r} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Zx} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,qh(),e.enableReadonly?.(),this._controllers.forEach(Eq),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Cq),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Tq)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&ly(this.component,Zx,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Pq),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(Mq,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Aq,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let r=this._updatePromise;this._updatePromise=new ii,r.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Iq),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=S3(e,xq)}}},Zx="autoDestroyDisabled",xq=1e3,XA=t=>t;Lq=t=>QA(void 0,t),KA=t=>e=>QA(e,t),Jx=class extends Jf{constructor(e,r){super(e);let n=this.exports;try{Wl(this.component);let i=r(this.component,this),o=this.exports!==n;if(BA(i)){o||this.setProvisionalExports(i);let s=i.then(c=>{this.exports=c,super.catchUpLifecycle()}).catch(c=>{this._ready.reject(c),console.error(c)});this.onLoad(async()=>await s)}else(!o||i!==void 0)&&(this.exports=i),queueMicrotask(()=>super.catchUpLifecycle())}catch(i){this._ready.reject(i),console.error(i)}}catchUpLifecycle(){}},QA=ZA(Jx),dy=(t,e)=>new Kx(t,e),Kx=class extends Jf{constructor(e,r){super(),this._attributes=e,this._callback=r,this._observer=new MutationObserver(n=>{n.forEach(i=>{e.includes(i.attributeName)&&r.call(this.component,this.component.el.getAttribute(i.attributeName),i.oldValue,i.attributeName)})})}hostConnected(){this._attributes.forEach(e=>{this.component.el.hasAttribute(e)&&this._callback.call(this.component,null,this.component.el.getAttribute(e),e)}),this._observer.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this._attributes})}hostDisconnected(){this._observer.disconnect()}},eI=t=>(e={})=>Lq((r,n)=>{let i=r2(r.el),o={_lang:i.lang,_t9nLocale:i.t9nLocale,_loading:!0},s=r;n.onLifecycle(()=>_3(r.el,()=>t("./assets"),({t9nLocale:a,t9nStrings:d,lang:h})=>{let g={...d,_lang:h,_t9nLocale:a,_loading:!1};n.exports=g;let v=d.componentLabel;typeof v=="string"&&"label"in r&&r.label==null&&(r.label??(r.label=v)),c(s.messageOverrides)},e.name));function c(a){let d=n.exports,h=d._original??d,g=tI(h,a);a&&(g._original=h),n.exports=g}return"messageOverrides"in s&&n.onLifecycle(()=>ly(s,"messageOverrides",c)),e.blocking?(n.setProvisionalExports(o,!1),n.ready):o})});var Hh=N(()=>{});var rI=N(()=>{});var e4=N(()=>{Hh();});var nI=N(()=>{});var t4=N(()=>{Hh();nI();});var iI=N(()=>{Hh();});var sI=N(()=>{t4();});var cI=N(()=>{e4();});var lI=N(()=>{Hh();rI();e4();t4();iI();sI();cI()});var fy,py,r4,uI,Yh,dI,Ct,n4,my,ln=N(()=>{fy=globalThis,py=fy.ShadowRoot&&(fy.ShadyCSS===void 0||fy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r4=Symbol(),uI=new WeakMap,Yh=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==r4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(py&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=uI.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&uI.set(r,e))}return e}toString(){return this.cssText}},dI=t=>new Yh(typeof t=="string"?t:t+"",void 0,r4),Ct=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new Yh(r,t,r4)},n4=(t,e)=>{if(py)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=fy.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},my=py?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return dI(r)})(t):t});var kq,Oq,Nq,Rq,Dq,Fq,gy,fI,$q,Uq,Zh,hy,i4,pI,Ts,Xh=N(()=>{ln();ln();({is:kq,defineProperty:Oq,getOwnPropertyDescriptor:Nq,getOwnPropertyNames:Rq,getOwnPropertySymbols:Dq,getPrototypeOf:Fq}=Object),gy=globalThis,fI=gy.trustedTypes,$q=fI?fI.emptyScript:"",Uq=gy.reactiveElementPolyfillSupport,Zh=(t,e)=>t,hy={toAttribute(t,e){switch(e){case Boolean:t=t?$q:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},i4=(t,e)=>!kq(t,e),pI={attribute:!0,type:String,converter:hy,reflect:!1,hasChanged:i4};Symbol.metadata??=Symbol("metadata"),gy.litPropertyMetadata??=new WeakMap;Ts=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=pI){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Oq(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:o}=Nq(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);o.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pI}static _$Ei(){if(this.hasOwnProperty(Zh("elementProperties")))return;let e=Fq(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zh("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zh("properties"))){let r=this.properties,n=[...Rq(r),...Dq(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(my(i))}else e!==void 0&&r.push(my(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return n4(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:hy).toAttribute(r,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:hy;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??i4)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};Ts.elementStyles=[],Ts.shadowRootOptions={mode:"open"},Ts[Zh("elementProperties")]=new Map,Ts[Zh("finalized")]=new Map,Uq?.({ReactiveElement:Ts}),(gy.reactiveElementVersions??=[]).push("2.0.4")});var o4=N(()=>{Xh();});var mI=N(()=>{o4();});var hI,Ps,s4=N(()=>{"use strict";hI=":",Ps=(t=>(t[t.ATTRIBUTE=1]="ATTRIBUTE",t[t.REFLECT=2]="REFLECT",t[t.BOOLEAN=4]="BOOLEAN",t[t.NUMBER=8]="NUMBER",t[t.STATE=16]="STATE",t[t.READ_ONLY=32]="READ_ONLY",t[t.NO_ACCESSOR=64]="NO_ACCESSOR",t))(Ps||{})});function a4(t){let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){let r=e;return r.manager?.loadedCalled||r._offspring.push(t),r._postLoad.promise}return!1}function zq(t){let e=t.split(hI);return e.length===1?[e[0],u0(e[0])]:e}function Bq([t,e]){this[t]=e}function Gq(t){let e=t.prototype,r=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(i,o){r.setAttribute.call(this.el,i,o)},e.removeAttribute=function(i){r.removeAttribute.call(this.el,i)},wy(e,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))}var wy,Wq,gI,jq,c4,l4=N(()=>{"use strict";Kd();s4();wy=Object.defineProperty;Wq=globalThis.HTMLElement??zq,gI=class extends Wq{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new ii,this._postLoaded=new ii,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(jq).then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){wy(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(r){this._store[e]=r}})}static _bindAsync(e){wy(this.prototype,e,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...r)},configurable:!0})}static _bindSync(e){wy(this.prototype,e,{value(...r){return this._litElement[e](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,r=this;e._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(e,r,n){this._litElement?.attributeChangedCallback(e,r,n),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=a4(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let r=this.constructor,n=r._name,i=this._store,o=Object.values(e).find(g=>g.tagName===n),s=`${n}--lazy`,c=o;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);Gq(c),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let d=document.createElement(s);o.lazy=void 0,this._litElement=d,this._store=d,this._pendingAttributes.forEach(g=>{let v=this.getAttribute(g);d.attributeChangedCallback(g,null,v)}),Object.entries(i).forEach(Bq,d);let h=this.isConnected;(h||this._ancestorLoad)&&(d.connectedCallback?.(),h||d.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};jq=async t=>(await t.$$,t),c4={}});function TI(t,e){if(!m4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wI!==void 0?wI.createHTML(e):e}function ql(t,e,r=t,n){if(e===Hr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Qh(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=ql(t,i._$AS(t,e.values),i,n)),e}var d4,yy,wI,f4,Ms,p4,qq,jl,Kh,Qh,m4,xI,u4,Jh,yI,bI,Bl,vI,_I,EI,h4,_e,jo,CI,Hr,Me,SI,Gl,PI,eg,by,ep,Hl,vy,_y,Sy,xy,MI,Hq,g4,Yr=N(()=>{d4=globalThis,yy=d4.trustedTypes,wI=yy?yy.createPolicy("lit-html",{createHTML:t=>t}):void 0,f4="$lit$",Ms=`lit$${Math.random().toFixed(9).slice(2)}$`,p4="?"+Ms,qq=`<${p4}>`,jl=document,Kh=()=>jl.createComment(""),Qh=t=>t===null||typeof t!="object"&&typeof t!="function",m4=Array.isArray,xI=t=>m4(t)||typeof t?.[Symbol.iterator]=="function",u4=`[
|
|
10
10
|
\f\r]`,Jh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yI=/-->/g,bI=/>/g,Bl=RegExp(`>|${u4}(?:([^\\s"'>=/]+)(${u4}*=${u4}*(?:[^
|
|
11
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),vI=/'/g,_I=/"/g,EI=/^(?:script|style|textarea|title)$/i,h4=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=h4(1),jo=h4(2),CI=h4(3),Hr=Symbol.for("lit-noChange"),Me=Symbol.for("lit-nothing"),SI=new WeakMap,Gl=jl.createTreeWalker(jl,129);PI=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=Jh;for(let c=0;c<r;c++){let a=t[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Jh?h[1]==="!--"?s=yI:h[1]!==void 0?s=bI:h[2]!==void 0?(EI.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Bl):h[3]!==void 0&&(s=Bl):s===Bl?h[0]===">"?(s=i??Jh,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Bl:h[3]==='"'?_I:vI):s===_I||s===vI?s=Bl:s===yI||s===bI?s=Jh:(s=Bl,i=void 0);let E=s===Bl&&t[c+1].startsWith("/>")?" ":"";o+=s===Jh?a+qq:g>=0?(n.push(d),a.slice(0,g)+f4+a.slice(g)+Ms+E):a+Ms+(g===-2?c:E)}return[TI(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},eg=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=e.length-1,a=this.parts,[d,h]=PI(e,r);if(this.el=t.createElement(d,n),Gl.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=Gl.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(f4)){let v=h[s++],E=i.getAttribute(g).split(Ms),M=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:M[2],strings:E,ctor:M[1]==="."?vy:M[1]==="?"?_y:M[1]==="@"?Sy:Hl}),i.removeAttribute(g)}else g.startsWith(Ms)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(EI.test(i.tagName)){let g=i.textContent.split(Ms),v=g.length-1;if(v>0){i.textContent=yy?yy.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],Kh()),Gl.nextNode(),a.push({type:2,index:++o});i.append(g[v],Kh())}}}else if(i.nodeType===8)if(i.data===p4)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(Ms,g+1))!==-1;)a.push({type:7,index:o}),g+=Ms.length-1}o++}}static createElement(e,r){let n=jl.createElement("template");return n.innerHTML=e,n}};by=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??jl).importNode(r,!0);Gl.currentNode=i;let o=Gl.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new ep(o,o.nextSibling,this,e):a.type===1?d=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(d=new xy(o,this,e)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=Gl.nextNode(),s++)}return Gl.currentNode=jl,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},ep=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=Me,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ql(this,e,r),Qh(e)?e===Me||e==null||e===""?(this._$AH!==Me&&this._$AR(),this._$AH=Me):e!==this._$AH&&e!==Hr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xI(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Me&&Qh(this._$AH)?this._$AA.nextSibling.data=e:this.T(jl.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=eg.createElement(TI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new by(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=SI.get(e.strings);return r===void 0&&SI.set(e.strings,r=new eg(e)),r}k(e){m4(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(Kh()),this.O(Kh()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Hl=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Me,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Me}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=ql(this,e,r,0),s=!Qh(e)||e!==this._$AH&&e!==Hr,s&&(this._$AH=e);else{let c=e,a,d;for(e=o[0],a=0;a<o.length-1;a++)d=ql(this,c[n+a],r,a),d===Hr&&(d=this._$AH[a]),s||=!Qh(d)||d!==this._$AH[a],d===Me?e=Me:e!==Me&&(e+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(e)}j(e){e===Me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vy=class extends Hl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Me?void 0:e}},_y=class extends Hl{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Me)}},Sy=class extends Hl{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=ql(this,e,r,0)??Me)===Hr)return;let n=this._$AH,i=e===Me&&n!==Me||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Me&&(n===Me||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xy=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ql(this,e)}},MI={M:f4,P:Ms,A:p4,C:1,L:PI,R:by,D:xI,V:ql,I:ep,H:Hl,N:_y,U:Sy,B:vy,F:xy},Hq=d4.litHtmlPolyfillSupport;Hq?.(eg,ep),(d4.litHtmlVersions??=[]).push("3.2.1");g4=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new ep(e.insertBefore(Kh(),o),o,void 0,r??{})}return i._$AI(t),i}});var As,Yq,AI=N(()=>{Xh();Xh();Yr();Yr();As=class extends Ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=g4(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Hr}};As._$litElement$=!0,As.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:As});Yq=globalThis.litElementPolyfillSupport;Yq?.({LitElement:As});(globalThis.litElementVersions??=[]).push("4.1.1")});var w4=N(()=>{});var un=N(()=>{Xh();Yr();AI();w4()});var fi,Li,di,Is=N(()=>{fi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Li=t=>(...e)=>({_$litDirective$:t,values:e}),di=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}});var II,LI=N(()=>{Yr();Is();II=Li(class extends di{constructor(t){if(super(t),t.type!==fi.ATTRIBUTE||t.name!=="class"||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(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return Hr}})});var kI,Zq,OI,NI=N(()=>{Yr();Is();kI="important",Zq=" !"+kI,OI=Li(class extends di{constructor(t){if(super(t),t.type!==fi.ATTRIBUTE||t.name!=="style"||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,r)=>{let n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(Zq);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?kI:""):r[n]=i}}return Hr}})});var RI=N(()=>{NI()});var Age,Ey,Xq,Cy,Ty=N(()=>{Yr();({I:Age}=MI),Ey=t=>t.strings===void 0,Xq={},Cy=(t,e=Xq)=>t._$AH=e});var Py,y4=N(()=>{Yr();Is();Ty();Py=Li(class extends di{constructor(t){if(super(t),t.type!==fi.PROPERTY&&t.type!==fi.ATTRIBUTE&&t.type!==fi.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ey(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Hr||e===Me)return e;let r=t.element,n=t.name;if(t.type===fi.PROPERTY){if(e===r[n])return Hr}else if(t.type===fi.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return Hr}else if(t.type===fi.ATTRIBUTE&&r.getAttribute(n)===e+"")return Hr;return Cy(t),e}})});function FI(t){let e,r=i=>{e=new URL(i,globalThis.location?.href||void 0).href},n={...t,getAssetPath(i){let o=new URL(i,e);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(t.defaultAssetPath),n}function tp(t,e,r){r==null?t.removeAttribute(e):t.setAttribute(e,r)}var DI,Tt,Jq,wt,Se,My,Ls,ks,xr=N(()=>{"use strict";Qf();lI();Kd();mI();o4();l4();l4();un();s4();LI();RI();Is();y4();Yr();DI=(t="",e={},r=Kf())=>{let n={emit:i=>{t===""&&qh();let o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return r.el.dispatchEvent(o),o}};return t===""&&uy(void 0,i=>{t=i.key},n),n},Tt=DI.bind(null,""),Jq=()=>{},wt=class t extends As{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=JA(this),this._postLoad=this.constructor.lazy?._postLoad??new ii,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new ii,this._enableUpdating=this.enableUpdating,this.enableUpdating=Jq;let e=t.prototype.shouldUpdate;this.shouldUpdate!==e&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=e),!1}static finalizeStyles(e){let r=super.finalizeStyles(e),n=this.shadowRootOptions===c4;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(e,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(e,{attribute:n&Ps.ATTRIBUTE&&typeof e=="string"?u0(e):!1,reflect:!!(n&Ps.REFLECT),type:n&Ps.BOOLEAN?Boolean:n&Ps.NUMBER?Number:void 0,state:!!(n&Ps.STATE),readOnly:!!(n&Ps.READ_ONLY),noAccessor:!!(n&Ps.NO_ACCESSOR),...i})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let e=!this.manager.connectedCalled;super.connectedCallback(),e&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let e=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=e??(n===c4?this.el:this.el.attachShadow(n));if(e)return As.prototype.createRenderRoot.call(this),e;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let e=this.el._ancestorLoad??a4(this.el);e&&await e,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(e){return this.$changes=e,this._originalShouldUpdate?.(e)??!0}listen(e,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(e,i,n),()=>this.el.removeEventListener(e,i,n)))}listenOn(e,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(e.addEventListener(r,o,i),()=>e.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}};wt.$createEvent=DI;Se=t=>typeof t=="object"&&t!=null?II(t):t,My=t=>typeof t=="object"&&t!=null?OI(t):t,Ls=Me;ks={toAttribute:t=>t===!0?"":t===!1?null:t}});function $I(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>t.contains(zI)||t.contains(VI)&&e?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function tH(){if(tg&&tg.version)return;console.info(`Using Calcite Components ${UI} [Date: ${Qq}, Revision: ${eH}]`);let t=tg||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:UI,writable:!1}),globalThis.calciteConfig=t}function rH(){document.readyState==="interactive"?$I():document.addEventListener("DOMContentLoaded",()=>$I(),{once:!0}),tH()}var VI,zI,Kq,rg,b4,tg,WI,BI,UI,Qq,eH,nH,Lt,ng,GI,lr=N(()=>{xr();un();w4();VI="calcite-mode-auto",zI="calcite-mode-dark",Kq="calcite-mode-light",rg={autoMode:VI,darkMode:zI,lightMode:Kq,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"},b4={filter:250,nextTick:0,resize:150,reposition:100};tg=globalThis.calciteConfig,WI=tg?.focusTrapStack||[],BI=tg?.logLevel||"info",UI="3.2.0-next.15",Qq="2025-04-16",eH="dc2a53829";rH();nH=FI({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.2.0-next.15/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Lt,getAssetPath:ng,setAssetPath:GI}=nH});var v4,jI,qI=N(()=>{lr();lr();v4=!1,jI=t=>{v4=!0,GI(t)}});function YI(){v4||jI(Ii(jf(HI)))}function ZI(t){let e=[];for(let r of Object.keys(t))customElements.get(`calcite-${r}`)||e.push(t[r]?.());return e.length>0?Promise.all(e):null}var HI,_4=N(()=>{qI();Bw();St();Bo();HI="components/assets"});var Ay,Iy,S4=N(()=>{Ay=Symbol("widget"),Iy=Symbol("widget-test-data")});function x4(t,e){let r=e.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=x4(t,r[i]);else r=iH;let n=e.vnodeSelector;if(rp(n)){let i=e.properties||oH,o=i.key||n,s={key:o,afterCreate:sH,afterUpdate:aH,afterRemoved:XI,parentWidget:t,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return e}function sH(t,e,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=t,Ly.set(t,s),s.afterCreate?.(s,t),n.addHandles(yt(()=>XI(t))),queueMicrotask(()=>{s[Iy].projector.renderNow()})}function aH(t,e,r,{widgetProperties:n}){let i=Ly.get(t);i&&(i.set(n),i.afterUpdate?.(i,t))}function XI(t){let e=Ly.get(t);e&&(e.afterRemoved?.(e,t),e.destroy(),Ly.delete(t))}function rp(t){return typeof t=="function"&&t[Ay]}var iH,oH,Ly,E4=N(()=>{jn();S4();iH=[],oH={},Ly=new WeakMap});function KI(t){JI.add(t),t.finally(()=>JI.delete(t))}function QI(t){return yt()}var JI,eL=N(()=>{jn();St();JI=new Set});function rL(t,e){let r=Object.prototype.hasOwnProperty;for(let n in e)r.call(e,n)&&r.call(t,n)&&(t[n]!=null&&e[n]!=null&&typeof t[n]=="object"&&typeof e[n]=="object"?rL(t[n],e[n]):t[n]=e[n]);return t}var tL,cH,lH,uH,C4,Zr,nL,iL=N(()=>{ai();xx();WM();dx();vh();St();Mn();Vt();Il();jM();io();Cx();ZM();ci();Tx();qn();Ss();qS();DA();_4();E4();S4();eL();Lx();ry();Ra();Uh();cH="esri.widgets.Widget",lH=0;uH=RA({postProcessProjectionOptions(t){let e=t.eventHandlerInterceptor,r=/capture$/i;t.eventHandlerInterceptor=(n,i,o,s)=>{let c=e?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(t,e,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=e.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(ey(),t.scheduleRender(),a[c].call(a.bind||r,n))}}),C4=!1,Zr=class extends GM.EsriPromiseMixin(Cs.EventedAccessor){static{this[tL]=!0}constructor(t,e){super(t,e),this._attached=!1,this._projector=uH,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=EP(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await vx(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=rL(Ht(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&nt.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),this.addHandles(QI()),YI();let r="esri-widget-uid-"+YM(),n=this.render.bind(this);this._trackingTarget=new kl(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??={};if(a.key??=r,rp(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),a.styles.display??="";let d=0;return c.children?.forEach(h=>{rp(h.vnodeSelector)||(h.properties??={},h.properties.key??=`${this.id}--${d++}`)}),x4(this,c)};this.render=()=>{if(C4)return o();let c=gA(this)??null;if(c)return c;this._trackingTarget.clear(),C4=!0;try{c=ro(this._trackingTarget,o)}catch(a){throw nt.getLogger(this).error(a),a}finally{C4=!1}return c&&wA(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),KI(this._resourcesFetch)}normalizeCtorArgs(t,e){let r={...t};return e&&(r.container=e),r}postInitialize(){}beforeFirstRender(){let t=this.loadDependencies();return this._messageBundleProps?.length||t?Promise.all([t,this._loadLocale()]).then(()=>{}).catch(VS):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(mh(this._trackingTarget),mh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,ty(this))}set container(t){this._get("container")||this._set("container",t)}castContainer(t){return zM(t)}get domNode(){return this.container}set domNode(t){this.container=t}get icon(){return null}set icon(t){this._overrideIfSome("icon",t)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+lH++}set id(t){t&&this._set("id",t)}get label(){return this.declaredClass.split(".").pop()}set label(t){this._overrideIfSome("label",t)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(t){this._set("visible",t)}get[(tL=Ay,Iy)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(ty(this),this._projector.scheduleRender())}classes(...t){return yA.apply(this,t)}renderNow(){ty(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(zh(()=>this.viewModel,(e,r)=>{r&&this.removeHandles("delegated-events"),e&&bh(e)&&this.addHandles(this._delegatedEventNames.map(n=>Wa(e,n,i=>{this.emit(n,i)})),"delegated-events")},Gw)),this.postInitialize();let t=async()=>{await this._loadLocale().catch(VS),this.scheduleRender()};this.addHandles([oS(t),zh(()=>this.uiStrings,t)]),this.addHandles(qM(()=>this.container,e=>{this.destroyed||this._attach(e)},{initial:!0,once:!0}))}_attach(t){t&&(this._projector.merge(t,this.render),this._attached=!0)}_detach(t){this._attached&&(this._projector.detach(this.render),this._attached=!1),t?.parentNode?.removeChild(t)}};ae([pe()],Zr.prototype,"_readyForTrueRender",void 0),ae([pe({value:null})],Zr.prototype,"container",null),ae([jw("container")],Zr.prototype,"castContainer",null),ae([pe()],Zr.prototype,"icon",null),ae([pe()],Zr.prototype,"id",null),ae([pe()],Zr.prototype,"label",null),ae([pe()],Zr.prototype,"renderable",null),ae([pe()],Zr.prototype,"uiStrings",void 0),ae([pe()],Zr.prototype,"viewModel",void 0),ae([pe({value:!0})],Zr.prototype,"visible",null),ae([pe()],Zr.prototype,"key",void 0),ae([pe()],Zr.prototype,"children",void 0),ae([pe()],Zr.prototype,"afterCreate",void 0),ae([pe()],Zr.prototype,"afterUpdate",void 0),ae([pe()],Zr.prototype,"afterRemoved",void 0),Zr=ae([Et(cH)],Zr);nL=Zr});function T4(t){return(e,r)=>{e.hasOwnProperty("_messageBundleProps")||(e._messageBundleProps=e._messageBundleProps?e._messageBundleProps.slice():[]),e._messageBundleProps.push({bundlePath:t,propertyName:r})}}var oL=N(()=>{});function pi(t,e,...r){return typeof t!="function"||rp(t)?fH(t,e??null,...r):t(e,...r)}var dH,sL,fH,aL=N(()=>{E4();dH=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},sL=function(t,e){for(var r=0,n=t.length;r<n;r++){var i=t[r];Array.isArray(i)?sL(i,e):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=dH(i)),e.push(i))}},fH=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:t,properties:e||void 0,children:void 0,text:r[0],domNode:null};var i=[];return sL(r,i),{vnodeSelector:t,properties:e||void 0,children:i,text:void 0,domNode:null}}});function yH(){return getComputedStyle(document.body).getPropertyValue(wH).replaceAll(gH,"").toLowerCase()}function cL(){let t=yH();switch(t){case mH:case hH:return`${pH}${t}`;default:return null}}var pH,mH,hH,gH,wH,lL=N(()=>{pH="calcite-mode-",mH="dark",hH="light",gH=/\W/g,wH="--esri-calcite-mode-name"});function bH(t){return t.map(e=>{let r="";for(let n=0;n<e;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var Os,np=N(()=>{Os=()=>bH([2,1,1,1,3])});var Xr,qo=N(()=>{Qf();lr();Xr=eI(ng)});var ip,vH,P4,uL=N(()=>{lr();un();xr();np();qo();ln();ip={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},vH=Ct`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,P4=class extends wt{constructor(){super(...arguments),this.messages=Xr({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{reflect:!0,type:Boolean}],inline:[7,{reflect:!0,type:Boolean}],label:1,scale:[3,{reflect:!0}],text:1,type:[3,{reflect:!0}],value:[9,{type:Number}]}}static{this.styles=vH}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:r,label:n,text:i,type:o,value:s}=this,c=e.id||Os(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,tp(this.el,"id",c),this.el.role="progressbar",_e`<div class=${Se(ip.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&_e`<div class=${Se(ip.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&_e`<div class=${Se(ip.text)}>${i}</div>`||""}`}renderRing(e){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),c=o*.45,a;if(e==="progress"){let d=2*c*Math.PI,h=(this.type.startsWith("determinate")?i:24)/100*d,g=d-h;a={"stroke-dasharray":`${h} ${g}`}}return _e`<svg aria-hidden=true class=${Se({[ip.ring]:!0,[ip.trackRing]:e==="track",[ip.progressRing]:e==="progress"})} style=${My(a)} viewBox=${`0 0 ${o} ${o}`}>${jo`<circle cx=${o/2} cy=${o/2} r=${c??Me} />`}</svg>`}};Lt("calcite-loader",P4)});var ky=N(()=>{uL()});function Ka(t){let e="dir",r=`[${e}]`,n=Qa(t,r);return n?n.getAttribute(e):"ltr"}function yL(t){return t.getRootNode()}function bL(t){return t.host||null}function Yl(t,{selector:e,id:r}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);let n=yL(t);return(r?"getElementById"in n?n.getElementById(r):null:e?n.querySelector(e):null)||Yl(bL(n),{selector:e,id:r})}function Qa(t,e){return t?t.closest(e)||Qa(bL(yL(t)),e):null}function VH(t){return typeof t?.setFocus=="function"}async function Ry(t){if(t)return VH(t)?t.setFocus():t.focus()}function zH(t){if(t)return UH(t,I4)[0]??t}function ec(t){zH(t)?.focus()}function WH(t,e){return t.filter(r=>r.matches(e))}function Ns(t,e,r){if(typeof e=="string"&&e!=="")return e;if(e===""||e===!0)return t[r]}function op(t){return(!!t).toString()}function vL(t){return On(t)||GH(t)}function BH(t){return jH(t).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent).join("").trim()}function _L(t){for(let e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()!==""||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function GH(t){return!!BH(t)}function jH(t){return t.currentTarget.assignedNodes({flatten:!0})}function On(t){return!!Dy(t).length}function Dy(t,e){return qH(t.target,e)}function qH(t,e){let r=t.assignedElements({flatten:!0});return e?WH(r,e):r}function SL(t){return!!(t.isPrimary&&t.button===0)}function xL(t){return t.detail===0}function EL(t,e){if(t.parentNode!==e.parentNode)return!1;let r=Array.from(t.parentNode.children);return r.indexOf(t)<r.indexOf(e)}async function CL(t,e,r,n){return YH(t,e,"transition",r,n)}async function HH(t,e){await A4(),t?.(),await A4(),e?.()}function pL(t,e,r){let n=e==="transition"?"transitionProperty":"animationName";return t.getAnimations().find(i=>i[n]===r)}async function YH(t,e,r,n,i){let o=pL(t,r,e);if(o||(await A4(),o=pL(t,r,e)),!o)return HH(n,i);n?.();try{await o.finished}catch{}finally{i?.()}}function A4(){return new Promise(t=>requestAnimationFrame(()=>t()))}function og(t){return t.endsWith("px")}var _H,M4,mL,ig,Oy,Ny,SH,xH,EH,hL,gL,CH,TH,wL,PH,MH,AH,IH,LH,kH,OH,dL,NH,RH,DH,fL,FH,$H,UH,I4,dn=N(()=>{np();lr();_H=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],M4=_H.join(","),mL=typeof Element>"u",ig=mL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oy=!mL&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Ny=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},SH=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},xH=function(e,r,n){if(Ny(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(M4));return r&&ig.call(e,M4)&&i.unshift(e),i=i.filter(n),i},EH=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!Ny(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ig.call(s,M4);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Ny(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},hL=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gL=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||SH(e))&&!hL(e)?0:e.tabIndex},CH=function(e,r){var n=gL(e);return n<0&&r&&!hL(e)?0:n},TH=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},wL=function(e){return e.tagName==="INPUT"},PH=function(e){return wL(e)&&e.type==="hidden"},MH=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},AH=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},IH=function(e){if(!e.name)return!0;var r=e.form||Oy(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=AH(i,e.form);return!o||o===e},LH=function(e){return wL(e)&&e.type==="radio"},kH=function(e){return LH(e)&&!IH(e)},OH=function(e){var r,n=e&&Oy(e),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==e){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&i;){var d,h,g;n=Oy(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},dL=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},NH=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ig.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(ig.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var a=e.parentElement,d=Oy(e);if(a&&!a.shadowRoot&&i(a)===!0)return dL(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(OH(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return dL(e);return!1},RH=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ig.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},DH=function(e,r){return!(r.disabled||Ny(r)||PH(r)||NH(r,e)||MH(r)||RH(r))},fL=function(e,r){return!(kH(r)||gL(r)<0||!DH(e,r))},FH=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},$H=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=CH(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(TH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},UH=function(e,r){r=r||{};var n;return r.getShadowRoot?n=EH([e],r.includeContainer,{filter:fL.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:FH}):n=xH(e,r.includeContainer,fL.bind(null,r)),$H(n)},I4={getShadowRoot:!0}});function Nn(t,e,r){if(!1)return;let n=ZH(t);return new n(e,r)}function ZH(t){class e extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return t==="intersection"?window.IntersectionObserver:t==="mutation"?e:window.ResizeObserver}()}var tc=N(()=>{un();});function XH(t){return PL[t]>=PL[BI]}function sp(t,...e){if(!XH(t))return;console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}function JH(t,{component:e,name:r,suggested:n,removalVersion:i}){let o=`${t}:${t==="component"?"":e}${r}`;if(TL.has(o))return;TL.add(o);let s=Array.isArray(n);s&&!L4&&(L4=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let c=`[${r}] ${t} is deprecated and will be removed in ${i==="future"?"a future version":`v${i}`}.${n?` Use ${s?L4.format(n.map(a=>`"${a}"`)):`"${n}"`} instead.`:""}`;sp("warn",c)}var TL,PL,L4,k4,O4=N(()=>{lr();TL=new Set,PL={trace:0,debug:1,info:2,warn:4,error:8,off:10};k4={debug:t=>sp("debug",t),info:t=>sp("info",t),warn:t=>sp("warn",t),error:t=>sp("error",t),trace:t=>sp("trace",t),deprecated:JH}});function IL({icon:t,scale:e}){let r=AL[e],n=tY(t),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function QH(t){let e=IL(t),r=LL(e);if(r)return r;N4[e]||(N4[e]=fetch(ng(`./assets/icon/${e}.json`)).then(i=>i.json()).catch(()=>(k4.error(`${t.icon} (${t.scale}) icon failed to load`),"")));let n=await N4[e];return ML[e]=n,n}function eY(t){return LL(IL(t))}function LL(t){return ML[t]}function tY(t){let e=!isNaN(Number(t.charAt(0))),r=t.split("-");if(r.length>0){let i=/[a-z]/i;t=r.map((o,s)=>o.replace(i,function(a,d){return s===0&&d===0?a:a.toUpperCase()})).join("")}return e?`i${t}`:t}var KH,ML,N4,AL,rY,R4,kL=N(()=>{lr();un();xr();dn();tc();O4();ln();KH={flipRtl:"flip-rtl"},ML={},N4={},AL={s:16,m:24,l:32};rY=Ct`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,R4=class extends wt{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{state:!0}],visible:[16,{state:!0}],flipRtl:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0}],preload:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],textLabel:1}}static{this.styles=rY}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||this.icon!==null)||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:e,scale:r,visible:n}=this;if(!e||!n)return;let i={icon:e,scale:r},o=eY(i)||await QH(i);e===this.icon&&(this.pathData=o)}waitUntilVisible(e){if(this.intersectionObserver=Nn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,e())})},{rootMargin:"50px"}),!this.intersectionObserver){e();return}this.intersectionObserver.observe(this.el)}render(){let{el:e,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Ka(e),c=AL[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=op(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,_e`<svg aria-hidden=true class=${Se({[KH.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?jo`<path d=${h??Me} />`:jo`<path d=${h.d??Me} opacity=${("opacity"in h?h.opacity:1)??Me} />`)}</svg>`}};Lt("calcite-icon",R4)});var Zl=N(()=>{kL()});function nY(t){this._$AN!==void 0?(Fy(this),this._$AM=t,OL(this)):this._$AM=t}function iY(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let o=r;o<n.length;o++)sg(n[o],!1),Fy(n[o]);else n!=null&&(sg(n,!1),Fy(n));else sg(this,t)}var sg,Fy,OL,oY,$y,NL=N(()=>{Ty();Is();Is();sg=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),sg(n,e);return!0},Fy=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},OL=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),oY(e)}};oY=t=>{t.type==fi.CHILD&&(t._$AP??=iY,t._$AQ??=nY)},$y=class extends di{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),OL(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(sg(this,e),Fy(this))}setValue(e){if(Ey(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var mi,F4,D4,dt,ki=N(()=>{Yr();NL();Is();mi=()=>new F4,F4=class{},D4=new WeakMap,dt=Li(class extends $y{render(t){return Me}update(t,[e]){let r=e!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),Me}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let e=this.ht??globalThis,r=D4.get(e);r===void 0&&(r=new WeakMap,D4.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?D4.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var $4,sY,DL,rc,RL,U4,ap,$0e,U0e,Uy=N(()=>{Yr();$4=Symbol.for(""),sY=t=>{if(t?.r===$4)return t?._$litStatic$},DL=t=>({_$litStatic$:t,r:$4}),rc=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
|
|
12
|
-
take care to ensure page security.`)})(n)+t[i+1],t[0]),r:$4}),RL=new Map,U4=t=>(e,...r)=>{let n=r.length,i,o,s=[],c=[],a,d=0,h=!1;for(;d<n;){for(a=e[d];d<n&&(o=r[d],(i=sY(o))!==void 0);)a+=i+e[++d],h=!0;d!==n&&c.push(o),s.push(a),d++}if(d===n&&s.push(e[n]),h){let g=s.join("$$lit$$");(e=RL.get(g))===void 0&&(s.raw=s,RL.set(g,e=s)),r=c}return t(e,...r)},ap=U4(_e),$0e=U4(jo),U0e=U4(CI)});function cY(t){return`${t.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${aY.includes(t)?"Input":"Change"}`}function W4(t){return"checked"in t}function lY(t,e){if(Qa(e.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return t.addEventListener(n,o=>{i=o.composedPath().some(s=>B4.has(s)),o.stopPropagation()},{once:!0}),e.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function uY(t,{status:e,message:r,icon:n}){"status"in t&&(t.status=e),"validationIcon"in t&&typeof t.validationIcon!="string"&&(t.validationIcon=n),"validationMessage"in t&&!t.validationMessage&&(t.validationMessage=r)}function VL(t){return t.nodeName==="CALCITE-RADIO-BUTTON"?Qa(t,"calcite-radio-button-group"):t}function FL(t){let e=t?.target,r=e?.validationMessage,n=VL(e?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;t?.preventDefault(),"validity"in n&&(n.validity=e?.validity),n.dispatchEvent(dY),uY(n,{message:r,icon:!0,status:"invalid"});let s=cY(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(n.validationIcon===""||n.validationIcon===!0)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=e?.validity)},{once:!0})}function Vy(t){let{formEl:e}=t;return e?(e.addEventListener("invalid",FL,!0),e.requestSubmit(),e.removeEventListener("invalid",FL,!0),requestAnimationFrame(()=>{let r=e.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function zL(t){t.formEl?.reset()}function WL(t){let{el:e,value:r}=t,n=G4(t);if(!n||lY(n,e))return;t.formEl=n,t.defaultValue=r,W4(t)&&(t.defaultChecked=t.checked);let i=fY.bind(t);n.addEventListener("reset",i),z4.set(t.el,i),B4.add(e)}function G4(t){let{el:e,form:r}=t;return r?Yl(e,{id:r}):Qa(e,"form")}function fY(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),W4(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function BL(t){let{el:e,formEl:r}=t;if(!r)return;let n=z4.get(e);r.removeEventListener("reset",n),z4.delete(e),t.formEl=null,B4.delete(e)}function pY(t){let{el:e,formEl:r,name:n,value:i}=t,{ownerDocument:o}=e;if(!1)return;let s=e.querySelectorAll(`input[slot="${V4}"]`);if(!r||!n){s.forEach(g=>{$L(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(E=>E==g.value);v!=null?(d.add(v),UL(t,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.ariaHidden="true",v.slot=V4),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",GL),UL(t,v,g)}),h&&e.append(h),a.forEach(g=>{$L(g),g.remove()})}function UL(t,e,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=t;e.defaultValue=n,e.disabled=i,e.name=s,e.required=c,e.tabIndex=-1,o?e.setAttribute("form",o):e.removeAttribute("form"),W4(t)?(e.checked=t.checked,e.defaultChecked=t.defaultChecked,e.value=t.checked?r||"on":""):e.value=r||"",t.syncHiddenFormInput?.(e);let a=VL(t.el);if(a&&"validity"in a)for(let d in{...e?.validity})a.validity[d]=e.validity[d]}var aY,V4,z4,B4,dY,zy,GL,$L,jL,j4=N(()=>{un();dn();aY=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];V4="hidden-form-input";z4=new WeakMap,B4=new WeakSet;dY=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});zy="calciteInternalHiddenInputInput",GL=t=>{t.target.dispatchEvent(new CustomEvent(zy,{bubbles:!0}))},$L=t=>t.removeEventListener("input",GL);jL=({component:t})=>(pY(t),_e`<slot name=${V4}></slot>`)});function mY(){let{disabled:t}=this;t||HTMLElement.prototype.click.call(this)}function qL(t){t.target.disabled&&t.preventDefault()}function YL(t){t.target.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}function nc(t){if(t.disabled){t.el.setAttribute("aria-disabled","true"),t.el.contains(document.activeElement)&&document.activeElement.blur(),hY(t);return}wY(t),t.el.removeAttribute("aria-disabled")}function hY(t){t.el.click=mY,gY(t.el)}function gY(t){t.addEventListener("pointerdown",qL,Wy),HL.forEach(e=>t.addEventListener(e,YL,Wy))}function wY(t){delete t.el.click,yY(t.el)}function yY(t){t.removeEventListener("pointerdown",qL,Wy),HL.forEach(e=>t.removeEventListener(e,YL,Wy))}var HL,Wy,bY,ic,ag=N(()=>{Yr();xr();HL=["mousedown","mouseup","click"];Wy={capture:!0};bY={container:"interaction-container"},ic=({children:t,disabled:e})=>_e`<div class=${Se(bY.container)} .inert=${e}>${t}</div>`});function _Y(t,e){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let c=s.composedPath();r=c.slice(c.indexOf(e),c.indexOf(t))};return t.addEventListener(n,i,{once:!0}),e.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),t.removeEventListener(n,i),r.filter(s=>s!==e&&s!==t).filter(s=>s.tagName?.includes("-")).length>0}function lp(t){if(!t)return;let e=vY(t.el);if(cg.has(e)&&e===t.labelEl||!e&&Xl.has(t))return;let r=xY.bind(t);if(e){t.labelEl=e;let n=cp.get(e)||[];n.push(t),cp.set(e,n.sort(KL)),cg.has(t.labelEl)||(cg.set(t.labelEl,XL),t.labelEl.addEventListener(JL,XL)),Xl.delete(t),document.removeEventListener(dg,ug.get(t)),By.set(t,r),document.addEventListener(lg,r)}else Xl.has(t)||(r(),document.removeEventListener(lg,By.get(t)))}function Gy(t){if(!t||(Xl.delete(t),document.removeEventListener(dg,ug.get(t)),document.removeEventListener(lg,By.get(t)),ug.delete(t),By.delete(t),!t.labelEl))return;let e=cp.get(t.labelEl);e.length===1&&(t.labelEl.removeEventListener(JL,cg.get(t.labelEl)),cg.delete(t.labelEl)),cp.set(t.labelEl,e.filter(r=>r!==t).sort(KL)),t.labelEl=null}function KL(t,e){return EL(t.el,e.el)?-1:1}function fg(t){return t.label||t.labelEl?.textContent?.trim()||""}function XL(t){let e=t.detail.sourceEvent.target,r=cp.get(this),n=r.find(s=>s.el===e);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(t)}function SY(){Xl.has(this)&&lp(this)}function xY(){Xl.add(this);let t=ug.get(this)||SY.bind(this);ug.set(this,t),document.addEventListener(dg,t)}async function QL(t){if(await t.componentOnReady(),cp.has(t))return;let r=t.ownerDocument?.getElementById(t.for);r&&requestAnimationFrame(()=>{for(let n of Xl)if(n.el===r){lp(n);break}})}var JL,dg,lg,ZL,cp,cg,ug,By,Xl,vY,jy=N(()=>{dn();JL="calciteInternalLabelClick",dg="calciteInternalLabelConnected",lg="calciteInternalLabelDisconnected",ZL="calcite-label",cp=new WeakMap,cg=new WeakMap,ug=new WeakMap,By=new WeakMap,Xl=new Set,vY=t=>{let{id:e}=t,r=e&&Yl(t,{selector:`${ZL}[for="${e}"]`});if(r)return r;let n=Qa(t,ZL);return!n||_Y(n,t)?null:n}});function Rn(t){return t==="l"?"m":"s"}async function En(t){await t.componentOnReady(),await t.updateComplete}var Rs=N(()=>{O4();});var hi,EY,qy,ek=N(()=>{lr();un();ki();Uy();xr();Qf();j4();ag();jy();Rs();tc();qo();dn();ln();hi={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},EY=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);box-shadow:inset 0 0 0 0 var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-transparent)));border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none}:host a:focus,:host button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]) button,:host([kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{--calcite-internal-button-background-color: var(--calcite-color-brand-press)}:host([kind=danger]) button,:host([kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{--calcite-internal-button-background-color: var(--calcite-color-status-danger-press)}:host([kind=neutral]) button,:host([kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-3);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{--calcite-internal-button-background-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{--calcite-internal-button-background-color: var(--calcite-color-foreground-1);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill]) button:hover,:host([appearance=outline-fill]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([appearance=outline-fill]) button:active,:host([appearance=outline-fill]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]) button:hover,:host([appearance=solid][kind=neutral]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-border-3)}:host([appearance=solid][kind=neutral]) button:active,:host([appearance=solid][kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-border-2)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline]) button:hover,:host([appearance=outline]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-transparent-hover)}:host([appearance=outline]) button:active,:host([appearance=outline]) a:active{--calcite-internal-button-background-color: var(--calcite-color-transparent-press)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]) button,:host([appearance=transparent]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=transparent]) button:hover,:host([appearance=transparent]) button:focus,:host([appearance=transparent]) a:hover,:host([appearance=transparent]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-transparent-hover)}:host([appearance=transparent]) button:active,:host([appearance=transparent]) a:active{--calcite-internal-button-background-color: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:var(--calcite-color-transparent)}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:hover{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,qy=class extends wt{constructor(){super(...arguments),this.attributeWatch=dy(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=mi(),this.mutationObserver=Nn("mutation",()=>this.updateHasContent()),this.resizeObserver=Nn("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=Xr(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:[16,{state:!0}],tooltipText:[16,{state:!0}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],disabled:[7,{reflect:!0,type:Boolean}],download:[3,{reflect:!0,converter:ks}],form:[3,{reflect:!0}],href:[3,{reflect:!0}],iconEnd:[3,{reflect:!0}],iconFlipRtl:[3,{reflect:!0}],iconStart:[3,{reflect:!0}],kind:[3,{reflect:!0}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],name:[3,{reflect:!0}],rel:[3,{reflect:!0}],round:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],splitChild:[3,{reflect:!0}],target:[3,{reflect:!0}],type:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=EY}async setFocus(){await En(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),lp(this),this.formEl=G4(this)}async load(){this.updateHasContent()}updated(){nc(this)}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),Gy(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=_L(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:e}=this;this.href||(e==="submit"?Vy(this):e==="reset"&&zL(this))}setTooltipText(){let{contentEl:{value:e}}=this;e&&(this.tooltipText=e.offsetWidth<e.scrollWidth&&this.el.innerText||null)}setChildEl(e){this.childEl=e,e&&this.resizeObserver?.observe(e)}render(){let e=this.href?"a":"button",r=this.href?rc`a`:rc`button`,n=this.loading?_e`<div class=${Se(hi.buttonLoader)}><calcite-loader class=${Se(this.loading?hi.loadingIn:hi.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Rn(this.scale)}></calcite-icon>`,s=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Rn(this.scale)}></calcite-icon>`,c=_e`<span class=${Se(hi.content)} ${dt(this.contentEl)}><slot></slot></span>`;return ic({disabled:this.disabled,children:ap`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:fg(this)} aria-live=polite class=${Se({[hi.buttonPadding]:i,[hi.buttonPaddingShrunk]:!i,[hi.contentSlotted]:this.hasContent,[hi.iconStartEmpty]:!this.iconStart,[hi.iconEndEmpty]:!this.iconEnd})} .disabled=${e==="button"?this.disabled:null} download=${(e==="a"?this.download===!0||this.download===""?"":this.download||null:null)??Me} href=${(e==="a"&&this.href)??Me} name=${(e==="button"&&this.name)??Me} @click=${this.handleClick} rel=${(e==="a"&&this.rel)??Me} tabindex=${(this.disabled?-1:null)??Me} target=${(e==="a"&&this.target)??Me} title=${this.tooltipText??Me} type=${(e==="button"?this.type:null)??Me} ${dt(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};Lt("calcite-button",qy)});var tk={};Io(tk,{Button:()=>qy});var rk=N(()=>{ky();Zl();ek()});var nk,ik,CY,q4,ok=N(()=>{lr();ki();Yr();xr();tc();dn();qo();ln();nk={scrim:"scrim",content:"content"},ik={s:72,l:480},CY=Ct`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,q4=class extends wt{constructor(){super(...arguments),this.resizeObserver=Nn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=Xr()}static{this.properties={hasContent:[16,{state:!0}],loaderScale:[16,{state:!0}],loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}]}}static{this.styles=CY}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=vL(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<ik.s?"s":e>=ik.l?"l":"m"}handleResize(){let{loaderEl:e,el:r}=this;e&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:e,loading:r,messages:n}=this;return _e`<div class=${Se(nk.scrim)}>${r?_e`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${dt(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${Se(nk.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Lt("calcite-scrim",q4)});var H4=N(()=>{ky();ok()});var Xt,oc=N(()=>{Yr();Is();Ty();Xt=Li(class extends di{constructor(){super(...arguments),this.key=Me}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Cy(t),this.key=e),r}})});var ao,TY,PY,Y4,sk=N(()=>{lr();Yr();oc();ki();xr();np();ag();Rs();tc();qo();ln();ao={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},TY={tooltip:"tooltip"},PY=Ct`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.interaction-container{border-radius:inherit}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{border-radius:inherit;position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,Y4=class extends wt{constructor(){super(...arguments),this.guid=`calcite-action-${Os()}`,this.buttonEl=mi(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Nn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=Xr({blocking:!0}),this.scale="m",this.textEnabled=!1}static{this.properties={active:[7,{reflect:!0,type:Boolean}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],compact:[7,{reflect:!0,type:Boolean}],disabled:[7,{reflect:!0,type:Boolean}],dragHandle:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0}],iconFlipRtl:[7,{reflect:!0,type:Boolean}],indicator:[7,{reflect:!0,type:Boolean}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],scale:[3,{reflect:!0}],text:1,textEnabled:[7,{reflect:!0,type:Boolean}]}}static{this.styles=PY}async setFocus(){await En(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}updated(){nc(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(e){let n=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-tooltip"))[0];n&&(n.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:e,textEnabled:r}=this,n={[ao.textContainer]:!0,[ao.textContainerVisible]:r};return e?Xt("text-container",_e`<div class=${Se(n)}>${e}</div>`):null}renderIndicatorText(){let{indicator:e,messages:r,indicatorId:n,buttonId:i}=this;return _e`<div aria-labelledby=${i??Ls} aria-live=polite class=${Se(ao.indicatorText)} id=${n??Ls} role=region>${e?r.indicator:null}</div>`}renderIconContainer(){let{loading:e,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=e?_e`<calcite-loader inline .label=${this.messages.loading} .scale=${c}></calcite-loader>`:null,d=r?_e`<calcite-icon class=${Se({[ao.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Rn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=_e`<div class=${Se({[ao.slotContainer]:!0,[ao.slotContainerHidden]:e})}><slot></slot></div>`;return g?Xt("icon-container",_e`<div aria-hidden=true class=${Se(ao.iconContainer)}>${h}${v}</div>`):null}renderButton(){let{active:e,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,E=c||a||"",M=d?v.indicatorLabel.replace("{label}",E):E,k={[ao.button]:!0,[ao.buttonTextVisible]:s,[ao.buttonCompact]:r},F=_e`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&Xt("indicator-no-icon",_e`<div class=${Se(ao.indicatorWithoutIcon)}></div>`)||""}`;return this.dragHandle?_e`<span aria-controls=${(d?h:null)??Ls} .ariaBusy=${o} .ariaDisabled=${this.disabled?this.disabled:null} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} id=${g??Ls} role=button tabindex=${(this.disabled?null:0)??Ls} ${dt(this.buttonEl)}>${F}</span>`:_e`<button aria-controls=${(d?h:null)??Ls} .ariaBusy=${o} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} .disabled=${n} id=${g??Ls} tabindex=${(n?null:0)??Ls} ${dt(this.buttonEl)}>${F}</button>`}render(){return ic({disabled:this.disabled,children:_e`${this.renderButton()}<slot name=${TY.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Lt("calcite-action",Y4)});var Hy=N(()=>{ky();Zl();sk()});function Yy(t,e,r){return Ds(t,sc(e,r))}function ac(t,e){return typeof t=="function"?t(e):t}function Ho(t){return t.split("-")[0]}function lo(t){return t.split("-")[1]}function J4(t){return t==="x"?"y":"x"}function Zy(t){return t==="y"?"height":"width"}function Jl(t){return["top","bottom"].includes(Ho(t))?"y":"x"}function Xy(t){return J4(Jl(t))}function K4(t,e,r){r===void 0&&(r=!1);let n=lo(t),i=Xy(t),o=Zy(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=mg(s)),[s,mg(s)]}function ck(t){let e=mg(t);return[pg(t),e,pg(e)]}function pg(t){return t.replace(/start|end/g,e=>AY[e])}function IY(t,e,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:s;default:return[]}}function lk(t,e,r,n){let i=lo(t),o=IY(Ho(t),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(pg)))),o}function mg(t){return t.replace(/left|right|bottom|top/g,e=>MY[e])}function LY(t){return{top:0,right:0,bottom:0,left:0,...t}}function Q4(t){return typeof t!="number"?LY(t):{top:t,right:t,bottom:t,left:t}}function Kl(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}var Z4,ak,X4,sc,Ds,hg,gg,co,MY,AY,Jy=N(()=>{Z4=["top","right","bottom","left"],ak=["start","end"],X4=Z4.reduce((t,e)=>t.concat(e,e+"-"+ak[0],e+"-"+ak[1]),[]),sc=Math.min,Ds=Math.max,hg=Math.round,gg=Math.floor,co=t=>({x:t,y:t}),MY={left:"right",right:"left",bottom:"top",top:"bottom"},AY={start:"end",end:"start"}});function uk(t,e,r){let{reference:n,floating:i}=t,o=Jl(e),s=Xy(e),c=Zy(s),a=Ho(e),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,E;switch(a){case"top":E={x:h,y:n.y-i.height};break;case"bottom":E={x:h,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:g};break;case"left":E={x:n.x-i.width,y:g};break;default:E={x:n.x,y:n.y}}switch(lo(e)){case"start":E[s]-=v*(r&&d?-1:1);break;case"end":E[s]+=v*(r&&d?-1:1);break}return E}async function up(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:E=0}=ac(e,t),M=Q4(E),F=c[v?g==="floating"?"reference":"floating":g],z=Kl(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),B=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,q=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),V=await(o.isElement==null?void 0:o.isElement(q))?await(o.getScale==null?void 0:o.getScale(q))||{x:1,y:1}:{x:1,y:1},X=Kl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:B,offsetParent:q,strategy:a}):B);return{top:(z.top-X.top+M.top)/V.y,bottom:(X.bottom-z.bottom+M.bottom)/V.y,left:(z.left-X.left+M.left)/V.x,right:(X.right-z.right+M.right)/V.x}}function kY(t,e,r){return(t?[...r.filter(i=>lo(i)===t),...r.filter(i=>lo(i)!==t)]:r.filter(i=>Ho(i)===i)).filter(i=>t?lo(i)===t||(e?pg(i)!==i:!1):!0)}function dk(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fk(t){return Z4.some(e=>t[e]>=0)}async function OY(t,e){let{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Ho(r),c=lo(r),a=Jl(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=ac(e,t),{mainAxis:v,crossAxis:E,alignmentAxis:M}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof M=="number"&&(E=c==="end"?M*-1:M),a?{x:E*h,y:v*d}:{x:v*d,y:E*h}}var pk,mk,hk,gk,wk,yk,bk,vk=N(()=>{Jy();Jy();pk=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:g}=uk(d,n,a),v=n,E={},M=0;for(let k=0;k<c.length;k++){let{name:F,fn:z}=c[k],{x:B,y:q,data:V,reset:X}=await z({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:E,rects:d,platform:s,elements:{reference:t,floating:e}});h=B??h,g=q??g,E={...E,[F]:{...E[F],...V}},X&&M<=50&&(M++,typeof X=="object"&&(X.placement&&(v=X.placement),X.rects&&(d=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):X.rects),{x:h,y:g}=uk(d,v,a)),k=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};mk=t=>({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=e,{element:d,padding:h=0}=ac(t,e)||{};if(d==null)return{};let g=Q4(h),v={x:r,y:n},E=Xy(i),M=Zy(E),k=await s.getDimensions(d),F=E==="y",z=F?"top":"left",B=F?"bottom":"right",q=F?"clientHeight":"clientWidth",V=o.reference[M]+o.reference[E]-v[E]-o.floating[M],X=v[E]-o.reference[E],Q=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),$=Q?Q[q]:0;(!$||!await(s.isElement==null?void 0:s.isElement(Q)))&&($=c.floating[q]||o.floating[M]);let me=V/2-X/2,ke=$/2-k[M]/2-1,Ce=sc(g[z],ke),Ne=sc(g[B],ke),we=Ce,ce=$-k[M]-Ne,H=$/2-k[M]/2+me,te=Yy(we,H,ce),de=!a.arrow&&lo(i)!=null&&H!==te&&o.reference[M]/2-(H<we?Ce:Ne)-k[M]/2<0,ue=de?H<we?H-we:H-ce:0;return{[E]:v[E]+ue,data:{[E]:te,centerOffset:H-te-ue,...de&&{alignmentOffset:ue}},reset:de}}});hk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:v=X4,autoAlignment:E=!0,...M}=ac(t,e),k=g!==void 0||v===X4?kY(g||null,E,v):v,F=await up(e,M),z=((r=s.autoPlacement)==null?void 0:r.index)||0,B=k[z];if(B==null)return{};let q=K4(B,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==B)return{reset:{placement:k[0]}};let V=[F[Ho(B)],F[q[0]],F[q[1]]],X=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:B,overflows:V}],Q=k[z+1];if(Q)return{data:{index:z+1,overflows:X},reset:{placement:Q}};let $=X.map(Ce=>{let Ne=lo(Ce.placement);return[Ce.placement,Ne&&h?Ce.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,Ne)=>Ce[1]-Ne[1]),ke=((i=$.filter(Ce=>Ce[2].slice(0,lo(Ce[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||$[0][0];return ke!==c?{data:{index:z+1,overflows:X},reset:{placement:ke}}:{}}}},gk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:k=!0,...F}=ac(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let z=Ho(i),B=Jl(c),q=Ho(c)===c,V=await(a.isRTL==null?void 0:a.isRTL(d.floating)),X=v||(q||!k?[mg(c)]:ck(c)),Q=M!=="none";!v&&Q&&X.push(...lk(c,k,M,V));let $=[c,...X],me=await up(e,F),ke=[],Ce=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&ke.push(me[z]),g){let H=K4(i,s,V);ke.push(me[H[0]],me[H[1]])}if(Ce=[...Ce,{placement:i,overflows:ke}],!ke.every(H=>H<=0)){var Ne,we;let H=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,te=$[H];if(te)return{data:{index:H,overflows:Ce},reset:{placement:te}};let de=(we=Ce.filter(ue=>ue.overflows[0]<=0).sort((ue,ve)=>ue.overflows[1]-ve.overflows[1])[0])==null?void 0:we.placement;if(!de)switch(E){case"bestFit":{var ce;let ue=(ce=Ce.filter(ve=>{if(Q){let ye=Jl(ve.placement);return ye===B||ye==="y"}return!0}).map(ve=>[ve.placement,ve.overflows.filter(ye=>ye>0).reduce((ye,De)=>ye+De,0)]).sort((ve,ye)=>ve[1]-ye[1])[0])==null?void 0:ce[0];ue&&(de=ue);break}case"initialPlacement":de=c;break}if(i!==de)return{reset:{placement:de}}}return{}}}};wk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=ac(t,e);switch(n){case"referenceHidden":{let o=await up(e,{...i,elementContext:"reference"}),s=dk(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fk(s)}}}case"escaped":{let o=await up(e,{...i,altBoundary:!0}),s=dk(o,r.floating);return{data:{escapedOffsets:s,escaped:fk(s)}}}default:return{}}}}};yk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=e,a=await OY(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},bk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:F=>{let{x:z,y:B}=F;return{x:z,y:B}}},...a}=ac(t,e),d={x:r,y:n},h=await up(e,a),g=Jl(Ho(i)),v=J4(g),E=d[v],M=d[g];if(o){let F=v==="y"?"top":"left",z=v==="y"?"bottom":"right",B=E+h[F],q=E-h[z];E=Yy(B,E,q)}if(s){let F=g==="y"?"top":"left",z=g==="y"?"bottom":"right",B=M+h[F],q=M-h[z];M=Yy(B,M,q)}let k=c.fn({...e,[v]:E,[g]:M});return{...k,data:{x:k.x-r,y:k.y-n,enabled:{[v]:o,[g]:s}}}}}}});function Ky(){return typeof window<"u"}function Ql(t){return Sk(t)?(t.nodeName||"").toLowerCase():"#document"}function Yn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function uo(t){var e;return(e=(Sk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sk(t){return Ky()?t instanceof Node||t instanceof Yn(t).Node:!1}function Oi(t){return Ky()?t instanceof Element||t instanceof Yn(t).Element:!1}function fo(t){return Ky()?t instanceof HTMLElement||t instanceof Yn(t).HTMLElement:!1}function _k(t){return!Ky()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Yn(t).ShadowRoot}function fp(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Ni(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function xk(t){return["table","td","th"].includes(Ql(t))}function wg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pp(t){let e=Qy(),r=Oi(t)?Ni(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ek(t){let e=Fs(t);for(;fo(e)&&!eu(e);){if(pp(e))return e;if(wg(e))return null;e=Fs(e)}return null}function Qy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eu(t){return["html","body","#document"].includes(Ql(t))}function Ni(t){return Yn(t).getComputedStyle(t)}function yg(t){return Oi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fs(t){if(Ql(t)==="html")return t;let e=t.assignedSlot||t.parentNode||_k(t)&&t.host||uo(t);return _k(e)?e.host:e}function Ck(t){let e=Fs(t);return eu(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&fp(e)?e:Ck(e)}function dp(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Ck(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=Yn(i);if(o){let c=eb(s);return e.concat(s,s.visualViewport||[],fp(i)?i:[],c&&r?dp(c):[])}return e.concat(i,dp(i,[],r))}function eb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var e5=N(()=>{});function Mk(t){let e=Ni(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=fo(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=hg(r)!==o||hg(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function r5(t){return Oi(t)?t:t.contextElement}function mp(t){let e=r5(t);if(!fo(e))return co(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Mk(e),s=(o?hg(r.width):r.width)/n,c=(o?hg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function Ak(t){let e=Yn(t);return!Qy()||!e.visualViewport?NY:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function RY(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Yn(t)?!1:e}function tu(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=r5(t),s=co(1);e&&(n?Oi(n)&&(s=mp(n)):s=mp(t));let c=RY(o,r,n)?Ak(o):co(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=Yn(o),E=n&&Oi(n)?Yn(n):n,M=v,k=eb(M);for(;k&&n&&E!==M;){let F=mp(k),z=k.getBoundingClientRect(),B=Ni(k),q=z.left+(k.clientLeft+parseFloat(B.paddingLeft))*F.x,V=z.top+(k.clientTop+parseFloat(B.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=q,d+=V,M=Yn(k),k=eb(M)}}return Kl({width:h,height:g,x:a,y:d})}function n5(t,e){let r=yg(t).scrollLeft;return e?e.left+r:tu(uo(t)).left+r}function Ik(t,e,r){r===void 0&&(r=!1);let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:n5(t,n)),o=n.top+e.scrollTop;return{x:i,y:o}}function DY(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=uo(n),c=e?wg(e.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=co(1),h=co(0),g=fo(n);if((g||!g&&!o)&&((Ql(n)!=="body"||fp(s))&&(a=yg(n)),fo(n))){let E=tu(n);d=mp(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?Ik(s,a,!0):co(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+v.x,y:r.y*d.y-a.scrollTop*d.y+h.y+v.y}}function FY(t){return Array.from(t.getClientRects())}function $Y(t){let e=uo(t),r=yg(t),n=t.ownerDocument.body,i=Ds(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Ds(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+n5(t),c=-r.scrollTop;return Ni(n).direction==="rtl"&&(s+=Ds(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function UY(t,e){let r=Yn(t),n=uo(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=Qy();(!d||d&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function VY(t,e){let r=tu(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=fo(t)?mp(t):co(1),s=t.clientWidth*o.x,c=t.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function Tk(t,e,r){let n;if(e==="viewport")n=UY(t,r);else if(e==="document")n=$Y(uo(t));else if(Oi(e))n=VY(e,r);else{let i=Ak(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Kl(n)}function Lk(t,e){let r=Fs(t);return r===e||!Oi(r)||eu(r)?!1:Ni(r).position==="fixed"||Lk(r,e)}function zY(t,e){let r=e.get(t);if(r)return r;let n=dp(t,[],!1).filter(c=>Oi(c)&&Ql(c)!=="body"),i=null,o=Ni(t).position==="fixed",s=o?Fs(t):t;for(;Oi(s)&&!eu(s);){let c=Ni(s),a=pp(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||fp(s)&&!a&&Lk(t,s))?n=n.filter(h=>h!==s):i=c,s=Fs(s)}return e.set(t,n),n}function WY(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wg(e)?[]:zY(e,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=Tk(e,h,i);return d.top=Ds(g.top,d.top),d.right=sc(g.right,d.right),d.bottom=sc(g.bottom,d.bottom),d.left=Ds(g.left,d.left),d},Tk(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function BY(t){let{width:e,height:r}=Mk(t);return{width:e,height:r}}function GY(t,e,r){let n=fo(e),i=uo(e),o=r==="fixed",s=tu(t,!0,o,e),c={scrollLeft:0,scrollTop:0},a=co(0);if(n||!n&&!o)if((Ql(e)!=="body"||fp(i))&&(c=yg(e)),n){let v=tu(e,!0,o,e);a.x=v.x+e.clientLeft,a.y=v.y+e.clientTop}else i&&(a.x=n5(i));let d=i&&!n&&!o?Ik(i,c):co(0),h=s.left+c.scrollLeft-a.x-d.x,g=s.top+c.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function t5(t){return Ni(t).position==="static"}function Pk(t,e){if(!fo(t)||Ni(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return uo(t)===r&&(r=r.ownerDocument.body),r}function kk(t,e){let r=Yn(t);if(wg(t))return r;if(!fo(t)){let i=Fs(t);for(;i&&!eu(i);){if(Oi(i)&&!t5(i))return i;i=Fs(i)}return r}let n=Pk(t,e);for(;n&&xk(n)&&t5(n);)n=Pk(n,e);return n&&eu(n)&&t5(n)&&!pp(n)?r:n||Ek(t)||r}function qY(t){return Ni(t).direction==="rtl"}function Ok(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function HY(t,e){let r=null,n,i=uo(t);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let d=t.getBoundingClientRect(),{left:h,top:g,width:v,height:E}=d;if(c||e(),!v||!E)return;let M=gg(g),k=gg(i.clientWidth-(h+v)),F=gg(i.clientHeight-(g+E)),z=gg(h),q={rootMargin:-M+"px "+-k+"px "+-F+"px "+-z+"px",threshold:Ds(0,sc(1,a))||1},V=!0;function X(Q){let $=Q[0].intersectionRatio;if($!==a){if(!V)return s();$?s(!1,$):n=setTimeout(()=>{s(!1,1e-7)},1e3)}$===1&&!Ok(d,t.getBoundingClientRect())&&s(),V=!1}try{r=new IntersectionObserver(X,{...q,root:i.ownerDocument})}catch{r=new IntersectionObserver(X,q)}r.observe(t)}return s(!0),o}function Nk(t,e,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=r5(t),h=i||o?[...d?dp(d):[],...dp(e)]:[];h.forEach(z=>{i&&z.addEventListener("scroll",r,{passive:!0}),o&&z.addEventListener("resize",r)});let g=d&&c?HY(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(z=>{let[B]=z;B&&B.target===d&&E&&(E.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var q;(q=E)==null||q.observe(e)})),r()}),d&&!a&&E.observe(d),E.observe(e));let M,k=a?tu(t):null;a&&F();function F(){let z=tu(t);k&&!Ok(k,z)&&r(),k=z,M=requestAnimationFrame(F)}return r(),()=>{var z;h.forEach(B=>{i&&B.removeEventListener("scroll",r),o&&B.removeEventListener("resize",r)}),g?.(),(z=E)==null||z.disconnect(),E=null,a&&cancelAnimationFrame(M)}}var NY,jY,tb,Rk,Dk,Fk,i5,$k,Uk,Vk,zk=N(()=>{vk();Jy();e5();NY=co(0);jY=async function(t){let e=this.getOffsetParent||kk,r=this.getDimensions,n=await r(t.floating);return{reference:GY(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};tb={convertOffsetParentRelativeRectToViewportRelativeRect:DY,getDocumentElement:uo,getClippingRect:WY,getOffsetParent:kk,getElementRects:jY,getClientRects:FY,getDimensions:BY,getScale:mp,isElement:Oi,isRTL:qY};Rk=yk,Dk=hk,Fk=bk,i5=gk,$k=wk,Uk=mk,Vk=(t,e,r)=>{let n=new Map,i={platform:tb,...r},o={...i.platform,_c:n};return pk(t,e,{...i,platform:o})}});var YY,Wk,Bk=N(()=>{YY=typeof global=="object"&&global&&global.Object===Object&&global,Wk=YY});var ZY,XY,rb,o5=N(()=>{Bk();ZY=typeof self=="object"&&self&&self.Object===Object&&self,XY=Wk||ZY||Function("return this")(),rb=XY});var JY,hp,s5=N(()=>{o5();JY=rb.Symbol,hp=JY});function eZ(t){var e=KY.call(t,bg),r=t[bg];try{t[bg]=void 0;var n=!0}catch{}var i=QY.call(t);return n&&(e?t[bg]=r:delete t[bg]),i}var Gk,KY,QY,bg,jk,qk=N(()=>{s5();Gk=Object.prototype,KY=Gk.hasOwnProperty,QY=Gk.toString,bg=hp?hp.toStringTag:void 0;jk=eZ});function nZ(t){return rZ.call(t)}var tZ,rZ,Hk,Yk=N(()=>{tZ=Object.prototype,rZ=tZ.toString;Hk=nZ});function sZ(t){return t==null?t===void 0?oZ:iZ:Zk&&Zk in Object(t)?jk(t):Hk(t)}var iZ,oZ,Zk,Xk,Jk=N(()=>{s5();qk();Yk();iZ="[object Null]",oZ="[object Undefined]",Zk=hp?hp.toStringTag:void 0;Xk=sZ});function aZ(t){return t!=null&&typeof t=="object"}var Kk,Qk=N(()=>{Kk=aZ});function lZ(t){return typeof t=="symbol"||Kk(t)&&Xk(t)==cZ}var cZ,eO,tO=N(()=>{Jk();Qk();cZ="[object Symbol]";eO=lZ});function dZ(t){for(var e=t.length;e--&&uZ.test(t.charAt(e)););return e}var uZ,rO,nO=N(()=>{uZ=/\s/;rO=dZ});function pZ(t){return t&&t.slice(0,rO(t)+1).replace(fZ,"")}var fZ,iO,oO=N(()=>{nO();fZ=/^\s+/;iO=pZ});function mZ(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vg,a5=N(()=>{vg=mZ});function bZ(t){if(typeof t=="number")return t;if(eO(t))return sO;if(vg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=vg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=iO(t);var r=gZ.test(t);return r||wZ.test(t)?yZ(t.slice(2),r?2:8):hZ.test(t)?sO:+t}var sO,hZ,gZ,wZ,yZ,c5,aO=N(()=>{oO();a5();tO();sO=NaN,hZ=/^[-+]0x[0-9a-f]+$/i,gZ=/^0b[01]+$/i,wZ=/^0o[0-7]+$/i,yZ=parseInt;c5=bZ});var vZ,nb,cO=N(()=>{o5();vZ=function(){return rb.Date.now()},nb=vZ});function EZ(t,e,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof t!="function")throw new TypeError(_Z);e=c5(e)||0,vg(r)&&(h=!!r.leading,g="maxWait"in r,o=g?SZ(c5(r.maxWait)||0,e):o,v="trailing"in r?!!r.trailing:v);function E(Q){var $=n,me=i;return n=i=void 0,d=Q,s=t.apply(me,$),s}function M(Q){return d=Q,c=setTimeout(z,e),h?E(Q):s}function k(Q){var $=Q-a,me=Q-d,ke=e-$;return g?xZ(ke,o-me):ke}function F(Q){var $=Q-a,me=Q-d;return a===void 0||$>=e||$<0||g&&me>=o}function z(){var Q=nb();if(F(Q))return B(Q);c=setTimeout(z,k(Q))}function B(Q){return c=void 0,v&&n?E(Q):(n=i=void 0,s)}function q(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function V(){return c===void 0?s:B(nb())}function X(){var Q=nb(),$=F(Q);if(n=arguments,i=this,a=Q,$){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(z,e),E(a)}return c===void 0&&(c=setTimeout(z,e)),s}return X.cancel=q,X.flush=V,X}var _Z,SZ,xZ,l5,lO=N(()=>{a5();cO();aO();_Z="Expected a function",SZ=Math.max,xZ=Math.min;l5=EZ});var uO=N(()=>{lO();});function dO(t){return CZ(t)}function u5(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function CZ(t){for(let e=t;e;e=u5(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=u5(t);e;e=u5(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||pp(r)||e.tagName==="BODY"))return e}return null}var fO=N(()=>{e5()});function pO(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}function PZ({placement:t,flipDisabled:e,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[Fk(),$k()];return s==="menu"&&c.push(i5({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})),c.push(Rk({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})),t==="auto"||t==="auto-start"||t==="auto-end"?c.push(Dk({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||c.push(i5(r?{fallbackPlacements:r}:{})),o&&c.push(Uk({element:o})),c}function bO(t,e){let r=t.filter(n=>mO.includes(n));return r.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${mO.map(n=>`"${n}"`).join(", ").trim()}`,{el:e}),r}function hO(t,e=!1){let r=["left","right"];return e&&r.reverse(),t.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function vO(t,e,r=!1){if(!t.open||!e.floatingEl||!e.referenceEl)return;if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!_g.get(t))return _O(t);await(r?MZ(t):wO)(t,e)}function MZ(t){let e=ib.get(t);return e||(e=l5(wO,b4.reposition,{leading:!0,maxWait:b4.reposition}),ib.set(t,e),e)}async function _O(t){let{referenceEl:e,floatingEl:r}=t;if(!r.isConnected)return;let n=Nk;_g.set(t,{state:"pending"});let i,o=n(e,r,()=>{let s=t.reposition();i||(i=s)});return _g.set(t,{state:"active",cleanUp:o}),i}function f5(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function SO(t){let{floatingEl:e,referenceEl:r}=t;if(f5(t),!(!e||!r)&&(p5(t),!!t.open))return _O(t)}function p5(t){let{floatingEl:e,referenceEl:r}=t;if(!e||!r)return;let n=_g.get(t);n?.state==="active"&&n.cleanUp(),_g.delete(t),ib.get(t)?.cancel(),ib.delete(t)}var wO,TZ,mO,yO,d5,AZ,_g,ib,gO,m5,h5=N(()=>{un();zk();uO();fO();lr();dn();(function(){if(!!1){let e=tb.getOffsetParent;tb.getOffsetParent=r=>e(r,dO)}})();wO=async(t,{referenceEl:e,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!e||!r)return;let g=Ka(r)==="rtl",{x:v,y:E,placement:M,strategy:k,middlewareData:F}=await Vk(e,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:hO(i,g),middleware:PZ({placement:i,flipDisabled:o,flipPlacements:s?.map(V=>hO(V,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:V,y:X}=F.arrow,Q=M.split("-")[0],$=V!=null?"left":"top",me=AZ[Q],ke={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=Q==="left"||Q==="right"?"horizontal":"vertical"),Object.assign(d.style,{...ke,[$]:`${$=="left"?V:X}px`,[Q]:"100%",transform:me})}let B=F.hide?.referenceHidden?"hidden":null,q=B?"none":null;r.setAttribute(TZ,M),Object.assign(r.style,{pointerEvents:q,position:k,transform:`translate(${pO(v)}px,${pO(E)}px)`,visibility:B})},TZ="data-placement",mO=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],yO="bottom-end",d5={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};AZ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},_g=new WeakMap,ib=new WeakMap;gO=4,m5=Math.ceil(Math.hypot(gO,gO))});function xO(t){return t[t.openProp||"open"]}function gp(t){requestAnimationFrame(()=>{t.transitionEl&&CL(t.transitionEl,t.transitionProp,()=>{xO(t)?t.onBeforeOpen():t.onBeforeClose()},()=>{xO(t)?t.onOpen():t.onClose()})})}var ob=N(()=>{dn();});var sb,g5=N(()=>{oc();Uy();xr();sb=({children:t,...e})=>{let r=e.level?DL(`h${e.level}`):rc`div`;return Xt(e.key,ap`<${r} class=${Se(e.class)}>${t}</${r}>`)}});var EO,IZ,CO,TO=N(()=>{ki();oc();Yr();xr();EO={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},IZ={width:12,height:6,strokeWidth:1},CO=({floatingLayout:t,key:e,ref:r})=>{let{width:n,height:i,strokeWidth:o}=IZ,s=n/2,c=t==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return Xt(e,_e`<svg aria-hidden=true class=${Se(EO.arrow)} height=${n} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${dt(r)}>${jo`${jo`<path class=${Se(EO.arrowStroke)} d=${a??Me} fill=none stroke-width=${o+1} />`||""}<path d=${a??Me} stroke=none />`}</svg>`)}});var MO,ab,AO,ru,cb,lb,LZ,IO,LO,kO,cc,kZ,OZ,OO,NZ,RZ,DZ,FZ,$Z,UZ,VZ,PO,zZ,WZ,ub,w5,BZ,GZ,NO,RO,nu,jZ,db,DO=N(()=>{MO=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ab=MO.join(","),AO=typeof Element>"u",ru=AO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cb=!AO&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},lb=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},LZ=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},IO=function(e,r,n){if(lb(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ab));return r&&ru.call(e,ab)&&i.unshift(e),i=i.filter(n),i},LO=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!lb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ru.call(s,ab);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!lb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},kO=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},cc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LZ(e))&&!kO(e)?0:e.tabIndex},kZ=function(e,r){var n=cc(e);return n<0&&r&&!kO(e)?0:n},OZ=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},OO=function(e){return e.tagName==="INPUT"},NZ=function(e){return OO(e)&&e.type==="hidden"},RZ=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},DZ=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},FZ=function(e){if(!e.name)return!0;var r=e.form||cb(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=DZ(i,e.form);return!o||o===e},$Z=function(e){return OO(e)&&e.type==="radio"},UZ=function(e){return $Z(e)&&!FZ(e)},VZ=function(e){var r,n=e&&cb(e),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==e){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&i;){var d,h,g;n=cb(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},PO=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},zZ=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ru.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(ru.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var a=e.parentElement,d=cb(e);if(a&&!a.shadowRoot&&i(a)===!0)return PO(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(VZ(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return PO(e);return!1},WZ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ru.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},ub=function(e,r){return!(r.disabled||lb(r)||NZ(r)||zZ(r,e)||RZ(r)||WZ(r))},w5=function(e,r){return!(UZ(r)||cc(r)<0||!ub(e,r))},BZ=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},GZ=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=kZ(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(OZ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},NO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=LO([e],r.includeContainer,{filter:w5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:BZ}):n=IO(e,r.includeContainer,w5.bind(null,r)),GZ(n)},RO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=LO([e],r.includeContainer,{filter:ub.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=IO(e,r.includeContainer,ub.bind(null,r)),n},nu=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,ab)===!1?!1:w5(r,e)},jZ=MO.concat("iframe").join(","),db=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,jZ)===!1?!1:ub(r,e)}});function y5(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function qZ(t){if(Array.isArray(t))return y5(t)}function HZ(t,e,r){return(e=KZ(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),vI=/'/g,_I=/"/g,EI=/^(?:script|style|textarea|title)$/i,h4=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=h4(1),jo=h4(2),CI=h4(3),Hr=Symbol.for("lit-noChange"),Me=Symbol.for("lit-nothing"),SI=new WeakMap,Gl=jl.createTreeWalker(jl,129);PI=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=Jh;for(let c=0;c<r;c++){let a=t[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Jh?h[1]==="!--"?s=yI:h[1]!==void 0?s=bI:h[2]!==void 0?(EI.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Bl):h[3]!==void 0&&(s=Bl):s===Bl?h[0]===">"?(s=i??Jh,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Bl:h[3]==='"'?_I:vI):s===_I||s===vI?s=Bl:s===yI||s===bI?s=Jh:(s=Bl,i=void 0);let E=s===Bl&&t[c+1].startsWith("/>")?" ":"";o+=s===Jh?a+qq:g>=0?(n.push(d),a.slice(0,g)+f4+a.slice(g)+Ms+E):a+Ms+(g===-2?c:E)}return[TI(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},eg=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=e.length-1,a=this.parts,[d,h]=PI(e,r);if(this.el=t.createElement(d,n),Gl.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=Gl.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(f4)){let v=h[s++],E=i.getAttribute(g).split(Ms),M=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:M[2],strings:E,ctor:M[1]==="."?vy:M[1]==="?"?_y:M[1]==="@"?Sy:Hl}),i.removeAttribute(g)}else g.startsWith(Ms)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(EI.test(i.tagName)){let g=i.textContent.split(Ms),v=g.length-1;if(v>0){i.textContent=yy?yy.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],Kh()),Gl.nextNode(),a.push({type:2,index:++o});i.append(g[v],Kh())}}}else if(i.nodeType===8)if(i.data===p4)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(Ms,g+1))!==-1;)a.push({type:7,index:o}),g+=Ms.length-1}o++}}static createElement(e,r){let n=jl.createElement("template");return n.innerHTML=e,n}};by=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??jl).importNode(r,!0);Gl.currentNode=i;let o=Gl.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new ep(o,o.nextSibling,this,e):a.type===1?d=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(d=new xy(o,this,e)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=Gl.nextNode(),s++)}return Gl.currentNode=jl,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},ep=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=Me,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ql(this,e,r),Qh(e)?e===Me||e==null||e===""?(this._$AH!==Me&&this._$AR(),this._$AH=Me):e!==this._$AH&&e!==Hr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xI(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Me&&Qh(this._$AH)?this._$AA.nextSibling.data=e:this.T(jl.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=eg.createElement(TI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new by(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=SI.get(e.strings);return r===void 0&&SI.set(e.strings,r=new eg(e)),r}k(e){m4(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(Kh()),this.O(Kh()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Hl=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Me,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Me}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=ql(this,e,r,0),s=!Qh(e)||e!==this._$AH&&e!==Hr,s&&(this._$AH=e);else{let c=e,a,d;for(e=o[0],a=0;a<o.length-1;a++)d=ql(this,c[n+a],r,a),d===Hr&&(d=this._$AH[a]),s||=!Qh(d)||d!==this._$AH[a],d===Me?e=Me:e!==Me&&(e+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(e)}j(e){e===Me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vy=class extends Hl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Me?void 0:e}},_y=class extends Hl{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Me)}},Sy=class extends Hl{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=ql(this,e,r,0)??Me)===Hr)return;let n=this._$AH,i=e===Me&&n!==Me||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Me&&(n===Me||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xy=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ql(this,e)}},MI={M:f4,P:Ms,A:p4,C:1,L:PI,R:by,D:xI,V:ql,I:ep,H:Hl,N:_y,U:Sy,B:vy,F:xy},Hq=d4.litHtmlPolyfillSupport;Hq?.(eg,ep),(d4.litHtmlVersions??=[]).push("3.2.1");g4=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new ep(e.insertBefore(Kh(),o),o,void 0,r??{})}return i._$AI(t),i}});var As,Yq,AI=N(()=>{Xh();Xh();Yr();Yr();As=class extends Ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=g4(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Hr}};As._$litElement$=!0,As.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:As});Yq=globalThis.litElementPolyfillSupport;Yq?.({LitElement:As});(globalThis.litElementVersions??=[]).push("4.1.1")});var w4=N(()=>{});var un=N(()=>{Xh();Yr();AI();w4()});var fi,Li,di,Is=N(()=>{fi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Li=t=>(...e)=>({_$litDirective$:t,values:e}),di=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}});var II,LI=N(()=>{Yr();Is();II=Li(class extends di{constructor(t){if(super(t),t.type!==fi.ATTRIBUTE||t.name!=="class"||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(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return Hr}})});var kI,Zq,OI,NI=N(()=>{Yr();Is();kI="important",Zq=" !"+kI,OI=Li(class extends di{constructor(t){if(super(t),t.type!==fi.ATTRIBUTE||t.name!=="style"||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,r)=>{let n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(Zq);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?kI:""):r[n]=i}}return Hr}})});var RI=N(()=>{NI()});var Age,Ey,Xq,Cy,Ty=N(()=>{Yr();({I:Age}=MI),Ey=t=>t.strings===void 0,Xq={},Cy=(t,e=Xq)=>t._$AH=e});var Py,y4=N(()=>{Yr();Is();Ty();Py=Li(class extends di{constructor(t){if(super(t),t.type!==fi.PROPERTY&&t.type!==fi.ATTRIBUTE&&t.type!==fi.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ey(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Hr||e===Me)return e;let r=t.element,n=t.name;if(t.type===fi.PROPERTY){if(e===r[n])return Hr}else if(t.type===fi.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return Hr}else if(t.type===fi.ATTRIBUTE&&r.getAttribute(n)===e+"")return Hr;return Cy(t),e}})});function FI(t){let e,r=i=>{e=new URL(i,globalThis.location?.href||void 0).href},n={...t,getAssetPath(i){let o=new URL(i,e);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(t.defaultAssetPath),n}function tp(t,e,r){r==null?t.removeAttribute(e):t.setAttribute(e,r)}var DI,Tt,Jq,wt,Se,My,Ls,ks,xr=N(()=>{"use strict";Qf();lI();Kd();mI();o4();l4();l4();un();s4();LI();RI();Is();y4();Yr();DI=(t="",e={},r=Kf())=>{let n={emit:i=>{t===""&&qh();let o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return r.el.dispatchEvent(o),o}};return t===""&&uy(void 0,i=>{t=i.key},n),n},Tt=DI.bind(null,""),Jq=()=>{},wt=class t extends As{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=JA(this),this._postLoad=this.constructor.lazy?._postLoad??new ii,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new ii,this._enableUpdating=this.enableUpdating,this.enableUpdating=Jq;let e=t.prototype.shouldUpdate;this.shouldUpdate!==e&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=e),!1}static finalizeStyles(e){let r=super.finalizeStyles(e),n=this.shadowRootOptions===c4;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(e,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(e,{attribute:n&Ps.ATTRIBUTE&&typeof e=="string"?u0(e):!1,reflect:!!(n&Ps.REFLECT),type:n&Ps.BOOLEAN?Boolean:n&Ps.NUMBER?Number:void 0,state:!!(n&Ps.STATE),readOnly:!!(n&Ps.READ_ONLY),noAccessor:!!(n&Ps.NO_ACCESSOR),...i})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let e=!this.manager.connectedCalled;super.connectedCallback(),e&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let e=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=e??(n===c4?this.el:this.el.attachShadow(n));if(e)return As.prototype.createRenderRoot.call(this),e;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let e=this.el._ancestorLoad??a4(this.el);e&&await e,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(e){return this.$changes=e,this._originalShouldUpdate?.(e)??!0}listen(e,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(e,i,n),()=>this.el.removeEventListener(e,i,n)))}listenOn(e,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(e.addEventListener(r,o,i),()=>e.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}};wt.$createEvent=DI;Se=t=>typeof t=="object"&&t!=null?II(t):t,My=t=>typeof t=="object"&&t!=null?OI(t):t,Ls=Me;ks={toAttribute:t=>t===!0?"":t===!1?null:t}});function $I(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>t.contains(zI)||t.contains(VI)&&e?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function tH(){if(tg&&tg.version)return;console.info(`Using Calcite Components ${UI} [Date: ${Qq}, Revision: ${eH}]`);let t=tg||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:UI,writable:!1}),globalThis.calciteConfig=t}function rH(){document.readyState==="interactive"?$I():document.addEventListener("DOMContentLoaded",()=>$I(),{once:!0}),tH()}var VI,zI,Kq,rg,b4,tg,WI,BI,UI,Qq,eH,nH,Lt,ng,GI,lr=N(()=>{xr();un();w4();VI="calcite-mode-auto",zI="calcite-mode-dark",Kq="calcite-mode-light",rg={autoMode:VI,darkMode:zI,lightMode:Kq,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"},b4={filter:250,nextTick:0,resize:150,reposition:100};tg=globalThis.calciteConfig,WI=tg?.focusTrapStack||[],BI=tg?.logLevel||"info",UI="3.2.0-next.17",Qq="2025-04-17",eH="e54e975b9";rH();nH=FI({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.2.0-next.17/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Lt,getAssetPath:ng,setAssetPath:GI}=nH});var v4,jI,qI=N(()=>{lr();lr();v4=!1,jI=t=>{v4=!0,GI(t)}});function YI(){v4||jI(Ii(jf(HI)))}function ZI(t){let e=[];for(let r of Object.keys(t))customElements.get(`calcite-${r}`)||e.push(t[r]?.());return e.length>0?Promise.all(e):null}var HI,_4=N(()=>{qI();Bw();St();Bo();HI="components/assets"});var Ay,Iy,S4=N(()=>{Ay=Symbol("widget"),Iy=Symbol("widget-test-data")});function x4(t,e){let r=e.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=x4(t,r[i]);else r=iH;let n=e.vnodeSelector;if(rp(n)){let i=e.properties||oH,o=i.key||n,s={key:o,afterCreate:sH,afterUpdate:aH,afterRemoved:XI,parentWidget:t,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return e}function sH(t,e,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=t,Ly.set(t,s),s.afterCreate?.(s,t),n.addHandles(yt(()=>XI(t))),queueMicrotask(()=>{s[Iy].projector.renderNow()})}function aH(t,e,r,{widgetProperties:n}){let i=Ly.get(t);i&&(i.set(n),i.afterUpdate?.(i,t))}function XI(t){let e=Ly.get(t);e&&(e.afterRemoved?.(e,t),e.destroy(),Ly.delete(t))}function rp(t){return typeof t=="function"&&t[Ay]}var iH,oH,Ly,E4=N(()=>{jn();S4();iH=[],oH={},Ly=new WeakMap});function KI(t){JI.add(t),t.finally(()=>JI.delete(t))}function QI(t){return yt()}var JI,eL=N(()=>{jn();St();JI=new Set});function rL(t,e){let r=Object.prototype.hasOwnProperty;for(let n in e)r.call(e,n)&&r.call(t,n)&&(t[n]!=null&&e[n]!=null&&typeof t[n]=="object"&&typeof e[n]=="object"?rL(t[n],e[n]):t[n]=e[n]);return t}var tL,cH,lH,uH,C4,Zr,nL,iL=N(()=>{ai();xx();WM();dx();vh();St();Mn();Vt();Il();jM();io();Cx();ZM();ci();Tx();qn();Ss();qS();DA();_4();E4();S4();eL();Lx();ry();Ra();Uh();cH="esri.widgets.Widget",lH=0;uH=RA({postProcessProjectionOptions(t){let e=t.eventHandlerInterceptor,r=/capture$/i;t.eventHandlerInterceptor=(n,i,o,s)=>{let c=e?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(t,e,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=e.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(ey(),t.scheduleRender(),a[c].call(a.bind||r,n))}}),C4=!1,Zr=class extends GM.EsriPromiseMixin(Cs.EventedAccessor){static{this[tL]=!0}constructor(t,e){super(t,e),this._attached=!1,this._projector=uH,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=EP(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await vx(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=rL(Ht(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&nt.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),this.addHandles(QI()),YI();let r="esri-widget-uid-"+YM(),n=this.render.bind(this);this._trackingTarget=new kl(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??={};if(a.key??=r,rp(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),a.styles.display??="";let d=0;return c.children?.forEach(h=>{rp(h.vnodeSelector)||(h.properties??={},h.properties.key??=`${this.id}--${d++}`)}),x4(this,c)};this.render=()=>{if(C4)return o();let c=gA(this)??null;if(c)return c;this._trackingTarget.clear(),C4=!0;try{c=ro(this._trackingTarget,o)}catch(a){throw nt.getLogger(this).error(a),a}finally{C4=!1}return c&&wA(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),KI(this._resourcesFetch)}normalizeCtorArgs(t,e){let r={...t};return e&&(r.container=e),r}postInitialize(){}beforeFirstRender(){let t=this.loadDependencies();return this._messageBundleProps?.length||t?Promise.all([t,this._loadLocale()]).then(()=>{}).catch(VS):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(mh(this._trackingTarget),mh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,ty(this))}set container(t){this._get("container")||this._set("container",t)}castContainer(t){return zM(t)}get domNode(){return this.container}set domNode(t){this.container=t}get icon(){return null}set icon(t){this._overrideIfSome("icon",t)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+lH++}set id(t){t&&this._set("id",t)}get label(){return this.declaredClass.split(".").pop()}set label(t){this._overrideIfSome("label",t)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(t){this._set("visible",t)}get[(tL=Ay,Iy)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(ty(this),this._projector.scheduleRender())}classes(...t){return yA.apply(this,t)}renderNow(){ty(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(zh(()=>this.viewModel,(e,r)=>{r&&this.removeHandles("delegated-events"),e&&bh(e)&&this.addHandles(this._delegatedEventNames.map(n=>Wa(e,n,i=>{this.emit(n,i)})),"delegated-events")},Gw)),this.postInitialize();let t=async()=>{await this._loadLocale().catch(VS),this.scheduleRender()};this.addHandles([oS(t),zh(()=>this.uiStrings,t)]),this.addHandles(qM(()=>this.container,e=>{this.destroyed||this._attach(e)},{initial:!0,once:!0}))}_attach(t){t&&(this._projector.merge(t,this.render),this._attached=!0)}_detach(t){this._attached&&(this._projector.detach(this.render),this._attached=!1),t?.parentNode?.removeChild(t)}};ae([pe()],Zr.prototype,"_readyForTrueRender",void 0),ae([pe({value:null})],Zr.prototype,"container",null),ae([jw("container")],Zr.prototype,"castContainer",null),ae([pe()],Zr.prototype,"icon",null),ae([pe()],Zr.prototype,"id",null),ae([pe()],Zr.prototype,"label",null),ae([pe()],Zr.prototype,"renderable",null),ae([pe()],Zr.prototype,"uiStrings",void 0),ae([pe()],Zr.prototype,"viewModel",void 0),ae([pe({value:!0})],Zr.prototype,"visible",null),ae([pe()],Zr.prototype,"key",void 0),ae([pe()],Zr.prototype,"children",void 0),ae([pe()],Zr.prototype,"afterCreate",void 0),ae([pe()],Zr.prototype,"afterUpdate",void 0),ae([pe()],Zr.prototype,"afterRemoved",void 0),Zr=ae([Et(cH)],Zr);nL=Zr});function T4(t){return(e,r)=>{e.hasOwnProperty("_messageBundleProps")||(e._messageBundleProps=e._messageBundleProps?e._messageBundleProps.slice():[]),e._messageBundleProps.push({bundlePath:t,propertyName:r})}}var oL=N(()=>{});function pi(t,e,...r){return typeof t!="function"||rp(t)?fH(t,e??null,...r):t(e,...r)}var dH,sL,fH,aL=N(()=>{E4();dH=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},sL=function(t,e){for(var r=0,n=t.length;r<n;r++){var i=t[r];Array.isArray(i)?sL(i,e):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=dH(i)),e.push(i))}},fH=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:t,properties:e||void 0,children:void 0,text:r[0],domNode:null};var i=[];return sL(r,i),{vnodeSelector:t,properties:e||void 0,children:i,text:void 0,domNode:null}}});function yH(){return getComputedStyle(document.body).getPropertyValue(wH).replaceAll(gH,"").toLowerCase()}function cL(){let t=yH();switch(t){case mH:case hH:return`${pH}${t}`;default:return null}}var pH,mH,hH,gH,wH,lL=N(()=>{pH="calcite-mode-",mH="dark",hH="light",gH=/\W/g,wH="--esri-calcite-mode-name"});function bH(t){return t.map(e=>{let r="";for(let n=0;n<e;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var Os,np=N(()=>{Os=()=>bH([2,1,1,1,3])});var Xr,qo=N(()=>{Qf();lr();Xr=eI(ng)});var ip,vH,P4,uL=N(()=>{lr();un();xr();np();qo();ln();ip={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},vH=Ct`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,P4=class extends wt{constructor(){super(...arguments),this.messages=Xr({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{reflect:!0,type:Boolean}],inline:[7,{reflect:!0,type:Boolean}],label:1,scale:[3,{reflect:!0}],text:1,type:[3,{reflect:!0}],value:[9,{type:Number}]}}static{this.styles=vH}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:r,label:n,text:i,type:o,value:s}=this,c=e.id||Os(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,tp(this.el,"id",c),this.el.role="progressbar",_e`<div class=${Se(ip.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&_e`<div class=${Se(ip.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&_e`<div class=${Se(ip.text)}>${i}</div>`||""}`}renderRing(e){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),c=o*.45,a;if(e==="progress"){let d=2*c*Math.PI,h=(this.type.startsWith("determinate")?i:24)/100*d,g=d-h;a={"stroke-dasharray":`${h} ${g}`}}return _e`<svg aria-hidden=true class=${Se({[ip.ring]:!0,[ip.trackRing]:e==="track",[ip.progressRing]:e==="progress"})} style=${My(a)} viewBox=${`0 0 ${o} ${o}`}>${jo`<circle cx=${o/2} cy=${o/2} r=${c??Me} />`}</svg>`}};Lt("calcite-loader",P4)});var ky=N(()=>{uL()});function Ka(t){let e="dir",r=`[${e}]`,n=Qa(t,r);return n?n.getAttribute(e):"ltr"}function yL(t){return t.getRootNode()}function bL(t){return t.host||null}function Yl(t,{selector:e,id:r}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);let n=yL(t);return(r?"getElementById"in n?n.getElementById(r):null:e?n.querySelector(e):null)||Yl(bL(n),{selector:e,id:r})}function Qa(t,e){return t?t.closest(e)||Qa(bL(yL(t)),e):null}function VH(t){return typeof t?.setFocus=="function"}async function Ry(t){if(t)return VH(t)?t.setFocus():t.focus()}function zH(t){if(t)return UH(t,I4)[0]??t}function ec(t){zH(t)?.focus()}function WH(t,e){return t.filter(r=>r.matches(e))}function Ns(t,e,r){if(typeof e=="string"&&e!=="")return e;if(e===""||e===!0)return t[r]}function op(t){return(!!t).toString()}function vL(t){return On(t)||GH(t)}function BH(t){return jH(t).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent).join("").trim()}function _L(t){for(let e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()!==""||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function GH(t){return!!BH(t)}function jH(t){return t.currentTarget.assignedNodes({flatten:!0})}function On(t){return!!Dy(t).length}function Dy(t,e){return qH(t.target,e)}function qH(t,e){let r=t.assignedElements({flatten:!0});return e?WH(r,e):r}function SL(t){return!!(t.isPrimary&&t.button===0)}function xL(t){return t.detail===0}function EL(t,e){if(t.parentNode!==e.parentNode)return!1;let r=Array.from(t.parentNode.children);return r.indexOf(t)<r.indexOf(e)}async function CL(t,e,r,n){return YH(t,e,"transition",r,n)}async function HH(t,e){await A4(),t?.(),await A4(),e?.()}function pL(t,e,r){let n=e==="transition"?"transitionProperty":"animationName";return t.getAnimations().find(i=>i[n]===r)}async function YH(t,e,r,n,i){let o=pL(t,r,e);if(o||(await A4(),o=pL(t,r,e)),!o)return HH(n,i);n?.();try{await o.finished}catch{}finally{i?.()}}function A4(){return new Promise(t=>requestAnimationFrame(()=>t()))}function og(t){return t.endsWith("px")}var _H,M4,mL,ig,Oy,Ny,SH,xH,EH,hL,gL,CH,TH,wL,PH,MH,AH,IH,LH,kH,OH,dL,NH,RH,DH,fL,FH,$H,UH,I4,dn=N(()=>{np();lr();_H=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],M4=_H.join(","),mL=typeof Element>"u",ig=mL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oy=!mL&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Ny=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},SH=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},xH=function(e,r,n){if(Ny(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(M4));return r&&ig.call(e,M4)&&i.unshift(e),i=i.filter(n),i},EH=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!Ny(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ig.call(s,M4);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Ny(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},hL=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gL=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||SH(e))&&!hL(e)?0:e.tabIndex},CH=function(e,r){var n=gL(e);return n<0&&r&&!hL(e)?0:n},TH=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},wL=function(e){return e.tagName==="INPUT"},PH=function(e){return wL(e)&&e.type==="hidden"},MH=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},AH=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},IH=function(e){if(!e.name)return!0;var r=e.form||Oy(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=AH(i,e.form);return!o||o===e},LH=function(e){return wL(e)&&e.type==="radio"},kH=function(e){return LH(e)&&!IH(e)},OH=function(e){var r,n=e&&Oy(e),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==e){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&i;){var d,h,g;n=Oy(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},dL=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},NH=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ig.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(ig.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var a=e.parentElement,d=Oy(e);if(a&&!a.shadowRoot&&i(a)===!0)return dL(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(OH(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return dL(e);return!1},RH=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ig.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},DH=function(e,r){return!(r.disabled||Ny(r)||PH(r)||NH(r,e)||MH(r)||RH(r))},fL=function(e,r){return!(kH(r)||gL(r)<0||!DH(e,r))},FH=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},$H=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=CH(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(TH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},UH=function(e,r){r=r||{};var n;return r.getShadowRoot?n=EH([e],r.includeContainer,{filter:fL.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:FH}):n=xH(e,r.includeContainer,fL.bind(null,r)),$H(n)},I4={getShadowRoot:!0}});function Nn(t,e,r){if(!1)return;let n=ZH(t);return new n(e,r)}function ZH(t){class e extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return t==="intersection"?window.IntersectionObserver:t==="mutation"?e:window.ResizeObserver}()}var tc=N(()=>{un();});function XH(t){return PL[t]>=PL[BI]}function sp(t,...e){if(!XH(t))return;console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}function JH(t,{component:e,name:r,suggested:n,removalVersion:i}){let o=`${t}:${t==="component"?"":e}${r}`;if(TL.has(o))return;TL.add(o);let s=Array.isArray(n);s&&!L4&&(L4=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let c=`[${r}] ${t} is deprecated and will be removed in ${i==="future"?"a future version":`v${i}`}.${n?` Use ${s?L4.format(n.map(a=>`"${a}"`)):`"${n}"`} instead.`:""}`;sp("warn",c)}var TL,PL,L4,k4,O4=N(()=>{lr();TL=new Set,PL={trace:0,debug:1,info:2,warn:4,error:8,off:10};k4={debug:t=>sp("debug",t),info:t=>sp("info",t),warn:t=>sp("warn",t),error:t=>sp("error",t),trace:t=>sp("trace",t),deprecated:JH}});function IL({icon:t,scale:e}){let r=AL[e],n=tY(t),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function QH(t){let e=IL(t),r=LL(e);if(r)return r;N4[e]||(N4[e]=fetch(ng(`./assets/icon/${e}.json`)).then(i=>i.json()).catch(()=>(k4.error(`${t.icon} (${t.scale}) icon failed to load`),"")));let n=await N4[e];return ML[e]=n,n}function eY(t){return LL(IL(t))}function LL(t){return ML[t]}function tY(t){let e=!isNaN(Number(t.charAt(0))),r=t.split("-");if(r.length>0){let i=/[a-z]/i;t=r.map((o,s)=>o.replace(i,function(a,d){return s===0&&d===0?a:a.toUpperCase()})).join("")}return e?`i${t}`:t}var KH,ML,N4,AL,rY,R4,kL=N(()=>{lr();un();xr();dn();tc();O4();ln();KH={flipRtl:"flip-rtl"},ML={},N4={},AL={s:16,m:24,l:32};rY=Ct`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,R4=class extends wt{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{state:!0}],visible:[16,{state:!0}],flipRtl:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0}],preload:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],textLabel:1}}static{this.styles=rY}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||this.icon!==null)||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:e,scale:r,visible:n}=this;if(!e||!n)return;let i={icon:e,scale:r},o=eY(i)||await QH(i);e===this.icon&&(this.pathData=o)}waitUntilVisible(e){if(this.intersectionObserver=Nn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,e())})},{rootMargin:"50px"}),!this.intersectionObserver){e();return}this.intersectionObserver.observe(this.el)}render(){let{el:e,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Ka(e),c=AL[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=op(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,_e`<svg aria-hidden=true class=${Se({[KH.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?jo`<path d=${h??Me} />`:jo`<path d=${h.d??Me} opacity=${("opacity"in h?h.opacity:1)??Me} />`)}</svg>`}};Lt("calcite-icon",R4)});var Zl=N(()=>{kL()});function nY(t){this._$AN!==void 0?(Fy(this),this._$AM=t,OL(this)):this._$AM=t}function iY(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let o=r;o<n.length;o++)sg(n[o],!1),Fy(n[o]);else n!=null&&(sg(n,!1),Fy(n));else sg(this,t)}var sg,Fy,OL,oY,$y,NL=N(()=>{Ty();Is();Is();sg=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),sg(n,e);return!0},Fy=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},OL=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),oY(e)}};oY=t=>{t.type==fi.CHILD&&(t._$AP??=iY,t._$AQ??=nY)},$y=class extends di{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),OL(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(sg(this,e),Fy(this))}setValue(e){if(Ey(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var mi,F4,D4,dt,ki=N(()=>{Yr();NL();Is();mi=()=>new F4,F4=class{},D4=new WeakMap,dt=Li(class extends $y{render(t){return Me}update(t,[e]){let r=e!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),Me}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let e=this.ht??globalThis,r=D4.get(e);r===void 0&&(r=new WeakMap,D4.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?D4.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var $4,sY,DL,rc,RL,U4,ap,$0e,U0e,Uy=N(()=>{Yr();$4=Symbol.for(""),sY=t=>{if(t?.r===$4)return t?._$litStatic$},DL=t=>({_$litStatic$:t,r:$4}),rc=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
|
|
12
|
+
take care to ensure page security.`)})(n)+t[i+1],t[0]),r:$4}),RL=new Map,U4=t=>(e,...r)=>{let n=r.length,i,o,s=[],c=[],a,d=0,h=!1;for(;d<n;){for(a=e[d];d<n&&(o=r[d],(i=sY(o))!==void 0);)a+=i+e[++d],h=!0;d!==n&&c.push(o),s.push(a),d++}if(d===n&&s.push(e[n]),h){let g=s.join("$$lit$$");(e=RL.get(g))===void 0&&(s.raw=s,RL.set(g,e=s)),r=c}return t(e,...r)},ap=U4(_e),$0e=U4(jo),U0e=U4(CI)});function cY(t){return`${t.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${aY.includes(t)?"Input":"Change"}`}function W4(t){return"checked"in t}function lY(t,e){if(Qa(e.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return t.addEventListener(n,o=>{i=o.composedPath().some(s=>B4.has(s)),o.stopPropagation()},{once:!0}),e.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function uY(t,{status:e,message:r,icon:n}){"status"in t&&(t.status=e),"validationIcon"in t&&typeof t.validationIcon!="string"&&(t.validationIcon=n),"validationMessage"in t&&!t.validationMessage&&(t.validationMessage=r)}function VL(t){return t.nodeName==="CALCITE-RADIO-BUTTON"?Qa(t,"calcite-radio-button-group"):t}function FL(t){let e=t?.target,r=e?.validationMessage,n=VL(e?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;t?.preventDefault(),"validity"in n&&(n.validity=e?.validity),n.dispatchEvent(dY),uY(n,{message:r,icon:!0,status:"invalid"});let s=cY(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(n.validationIcon===""||n.validationIcon===!0)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=e?.validity)},{once:!0})}function Vy(t){let{formEl:e}=t;return e?(e.addEventListener("invalid",FL,!0),e.requestSubmit(),e.removeEventListener("invalid",FL,!0),requestAnimationFrame(()=>{let r=e.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function zL(t){t.formEl?.reset()}function WL(t){let{el:e,value:r}=t,n=G4(t);if(!n||lY(n,e))return;t.formEl=n,t.defaultValue=r,W4(t)&&(t.defaultChecked=t.checked);let i=fY.bind(t);n.addEventListener("reset",i),z4.set(t.el,i),B4.add(e)}function G4(t){let{el:e,form:r}=t;return r?Yl(e,{id:r}):Qa(e,"form")}function fY(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),W4(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function BL(t){let{el:e,formEl:r}=t;if(!r)return;let n=z4.get(e);r.removeEventListener("reset",n),z4.delete(e),t.formEl=null,B4.delete(e)}function pY(t){let{el:e,formEl:r,name:n,value:i}=t,{ownerDocument:o}=e;if(!1)return;let s=e.querySelectorAll(`input[slot="${V4}"]`);if(!r||!n){s.forEach(g=>{$L(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(E=>E==g.value);v!=null?(d.add(v),UL(t,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.ariaHidden="true",v.slot=V4),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",GL),UL(t,v,g)}),h&&e.append(h),a.forEach(g=>{$L(g),g.remove()})}function UL(t,e,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=t;e.defaultValue=n,e.disabled=i,e.name=s,e.required=c,e.tabIndex=-1,o?e.setAttribute("form",o):e.removeAttribute("form"),W4(t)?(e.checked=t.checked,e.defaultChecked=t.defaultChecked,e.value=t.checked?r||"on":""):e.value=r||"",t.syncHiddenFormInput?.(e);let a=VL(t.el);if(a&&"validity"in a)for(let d in{...e?.validity})a.validity[d]=e.validity[d]}var aY,V4,z4,B4,dY,zy,GL,$L,jL,j4=N(()=>{un();dn();aY=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];V4="hidden-form-input";z4=new WeakMap,B4=new WeakSet;dY=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});zy="calciteInternalHiddenInputInput",GL=t=>{t.target.dispatchEvent(new CustomEvent(zy,{bubbles:!0}))},$L=t=>t.removeEventListener("input",GL);jL=({component:t})=>(pY(t),_e`<slot name=${V4}></slot>`)});function mY(){let{disabled:t}=this;t||HTMLElement.prototype.click.call(this)}function qL(t){t.target.disabled&&t.preventDefault()}function YL(t){t.target.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}function nc(t){if(t.disabled){t.el.setAttribute("aria-disabled","true"),t.el.contains(document.activeElement)&&document.activeElement.blur(),hY(t);return}wY(t),t.el.removeAttribute("aria-disabled")}function hY(t){t.el.click=mY,gY(t.el)}function gY(t){t.addEventListener("pointerdown",qL,Wy),HL.forEach(e=>t.addEventListener(e,YL,Wy))}function wY(t){delete t.el.click,yY(t.el)}function yY(t){t.removeEventListener("pointerdown",qL,Wy),HL.forEach(e=>t.removeEventListener(e,YL,Wy))}var HL,Wy,bY,ic,ag=N(()=>{Yr();xr();HL=["mousedown","mouseup","click"];Wy={capture:!0};bY={container:"interaction-container"},ic=({children:t,disabled:e})=>_e`<div class=${Se(bY.container)} .inert=${e}>${t}</div>`});function _Y(t,e){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let c=s.composedPath();r=c.slice(c.indexOf(e),c.indexOf(t))};return t.addEventListener(n,i,{once:!0}),e.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),t.removeEventListener(n,i),r.filter(s=>s!==e&&s!==t).filter(s=>s.tagName?.includes("-")).length>0}function lp(t){if(!t)return;let e=vY(t.el);if(cg.has(e)&&e===t.labelEl||!e&&Xl.has(t))return;let r=xY.bind(t);if(e){t.labelEl=e;let n=cp.get(e)||[];n.push(t),cp.set(e,n.sort(KL)),cg.has(t.labelEl)||(cg.set(t.labelEl,XL),t.labelEl.addEventListener(JL,XL)),Xl.delete(t),document.removeEventListener(dg,ug.get(t)),By.set(t,r),document.addEventListener(lg,r)}else Xl.has(t)||(r(),document.removeEventListener(lg,By.get(t)))}function Gy(t){if(!t||(Xl.delete(t),document.removeEventListener(dg,ug.get(t)),document.removeEventListener(lg,By.get(t)),ug.delete(t),By.delete(t),!t.labelEl))return;let e=cp.get(t.labelEl);e.length===1&&(t.labelEl.removeEventListener(JL,cg.get(t.labelEl)),cg.delete(t.labelEl)),cp.set(t.labelEl,e.filter(r=>r!==t).sort(KL)),t.labelEl=null}function KL(t,e){return EL(t.el,e.el)?-1:1}function fg(t){return t.label||t.labelEl?.textContent?.trim()||""}function XL(t){let e=t.detail.sourceEvent.target,r=cp.get(this),n=r.find(s=>s.el===e);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(t)}function SY(){Xl.has(this)&&lp(this)}function xY(){Xl.add(this);let t=ug.get(this)||SY.bind(this);ug.set(this,t),document.addEventListener(dg,t)}async function QL(t){if(await t.componentOnReady(),cp.has(t))return;let r=t.ownerDocument?.getElementById(t.for);r&&requestAnimationFrame(()=>{for(let n of Xl)if(n.el===r){lp(n);break}})}var JL,dg,lg,ZL,cp,cg,ug,By,Xl,vY,jy=N(()=>{dn();JL="calciteInternalLabelClick",dg="calciteInternalLabelConnected",lg="calciteInternalLabelDisconnected",ZL="calcite-label",cp=new WeakMap,cg=new WeakMap,ug=new WeakMap,By=new WeakMap,Xl=new Set,vY=t=>{let{id:e}=t,r=e&&Yl(t,{selector:`${ZL}[for="${e}"]`});if(r)return r;let n=Qa(t,ZL);return!n||_Y(n,t)?null:n}});function Rn(t){return t==="l"?"m":"s"}async function En(t){await t.componentOnReady(),await t.updateComplete}var Rs=N(()=>{O4();});var hi,EY,qy,ek=N(()=>{lr();un();ki();Uy();xr();Qf();j4();ag();jy();Rs();tc();qo();dn();ln();hi={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},EY=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);box-shadow:inset 0 0 0 0 var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-transparent)));border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none}:host a:focus,:host button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]) button,:host([kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{--calcite-internal-button-background-color: var(--calcite-color-brand-press)}:host([kind=danger]) button,:host([kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{--calcite-internal-button-background-color: var(--calcite-color-status-danger-press)}:host([kind=neutral]) button,:host([kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-3);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{--calcite-internal-button-background-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{--calcite-internal-button-background-color: var(--calcite-color-foreground-1);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill]) button:hover,:host([appearance=outline-fill]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([appearance=outline-fill]) button:active,:host([appearance=outline-fill]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]) button:hover,:host([appearance=solid][kind=neutral]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-border-3)}:host([appearance=solid][kind=neutral]) button:active,:host([appearance=solid][kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-border-2)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline]) button:hover,:host([appearance=outline]) a:hover{--calcite-internal-button-background-color: var(--calcite-color-transparent-hover)}:host([appearance=outline]) button:active,:host([appearance=outline]) a:active{--calcite-internal-button-background-color: var(--calcite-color-transparent-press)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]) button,:host([appearance=transparent]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=transparent]) button:hover,:host([appearance=transparent]) button:focus,:host([appearance=transparent]) a:hover,:host([appearance=transparent]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-transparent-hover)}:host([appearance=transparent]) button:active,:host([appearance=transparent]) a:active{--calcite-internal-button-background-color: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:var(--calcite-color-transparent)}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:hover{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,qy=class extends wt{constructor(){super(...arguments),this.attributeWatch=dy(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=mi(),this.mutationObserver=Nn("mutation",()=>this.updateHasContent()),this.resizeObserver=Nn("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=Xr(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:[16,{state:!0}],tooltipText:[16,{state:!0}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],disabled:[7,{reflect:!0,type:Boolean}],download:[3,{reflect:!0,converter:ks}],form:[3,{reflect:!0}],href:[3,{reflect:!0}],iconEnd:[3,{reflect:!0}],iconFlipRtl:[3,{reflect:!0}],iconStart:[3,{reflect:!0}],kind:[3,{reflect:!0}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],name:[3,{reflect:!0}],rel:[3,{reflect:!0}],round:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],splitChild:[3,{reflect:!0}],target:[3,{reflect:!0}],type:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=EY}async setFocus(){await En(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),lp(this),this.formEl=G4(this)}async load(){this.updateHasContent()}updated(){nc(this)}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),Gy(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=_L(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:e}=this;this.href||(e==="submit"?Vy(this):e==="reset"&&zL(this))}setTooltipText(){let{contentEl:{value:e}}=this;e&&(this.tooltipText=e.offsetWidth<e.scrollWidth&&this.el.innerText||null)}setChildEl(e){this.childEl=e,e&&this.resizeObserver?.observe(e)}render(){let e=this.href?"a":"button",r=this.href?rc`a`:rc`button`,n=this.loading?_e`<div class=${Se(hi.buttonLoader)}><calcite-loader class=${Se(this.loading?hi.loadingIn:hi.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Rn(this.scale)}></calcite-icon>`,s=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Rn(this.scale)}></calcite-icon>`,c=_e`<span class=${Se(hi.content)} ${dt(this.contentEl)}><slot></slot></span>`;return ic({disabled:this.disabled,children:ap`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:fg(this)} aria-live=polite class=${Se({[hi.buttonPadding]:i,[hi.buttonPaddingShrunk]:!i,[hi.contentSlotted]:this.hasContent,[hi.iconStartEmpty]:!this.iconStart,[hi.iconEndEmpty]:!this.iconEnd})} .disabled=${e==="button"?this.disabled:null} download=${(e==="a"?this.download===!0||this.download===""?"":this.download||null:null)??Me} href=${(e==="a"&&this.href)??Me} name=${(e==="button"&&this.name)??Me} @click=${this.handleClick} rel=${(e==="a"&&this.rel)??Me} tabindex=${(this.disabled?-1:null)??Me} target=${(e==="a"&&this.target)??Me} title=${this.tooltipText??Me} type=${(e==="button"?this.type:null)??Me} ${dt(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};Lt("calcite-button",qy)});var tk={};Io(tk,{Button:()=>qy});var rk=N(()=>{ky();Zl();ek()});var nk,ik,CY,q4,ok=N(()=>{lr();ki();Yr();xr();tc();dn();qo();ln();nk={scrim:"scrim",content:"content"},ik={s:72,l:480},CY=Ct`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,q4=class extends wt{constructor(){super(...arguments),this.resizeObserver=Nn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=Xr()}static{this.properties={hasContent:[16,{state:!0}],loaderScale:[16,{state:!0}],loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}]}}static{this.styles=CY}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=vL(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<ik.s?"s":e>=ik.l?"l":"m"}handleResize(){let{loaderEl:e,el:r}=this;e&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:e,loading:r,messages:n}=this;return _e`<div class=${Se(nk.scrim)}>${r?_e`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${dt(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${Se(nk.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Lt("calcite-scrim",q4)});var H4=N(()=>{ky();ok()});var Xt,oc=N(()=>{Yr();Is();Ty();Xt=Li(class extends di{constructor(){super(...arguments),this.key=Me}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Cy(t),this.key=e),r}})});var ao,TY,PY,Y4,sk=N(()=>{lr();Yr();oc();ki();xr();np();ag();Rs();tc();qo();ln();ao={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},TY={tooltip:"tooltip"},PY=Ct`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.interaction-container{border-radius:inherit}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{border-radius:inherit;position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,Y4=class extends wt{constructor(){super(...arguments),this.guid=`calcite-action-${Os()}`,this.buttonEl=mi(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Nn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=Xr({blocking:!0}),this.scale="m",this.textEnabled=!1}static{this.properties={active:[7,{reflect:!0,type:Boolean}],alignment:[3,{reflect:!0}],appearance:[3,{reflect:!0}],compact:[7,{reflect:!0,type:Boolean}],disabled:[7,{reflect:!0,type:Boolean}],dragHandle:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0}],iconFlipRtl:[7,{reflect:!0,type:Boolean}],indicator:[7,{reflect:!0,type:Boolean}],label:1,loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],scale:[3,{reflect:!0}],text:1,textEnabled:[7,{reflect:!0,type:Boolean}]}}static{this.styles=PY}async setFocus(){await En(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}updated(){nc(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(e){let n=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-tooltip"))[0];n&&(n.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:e,textEnabled:r}=this,n={[ao.textContainer]:!0,[ao.textContainerVisible]:r};return e?Xt("text-container",_e`<div class=${Se(n)}>${e}</div>`):null}renderIndicatorText(){let{indicator:e,messages:r,indicatorId:n,buttonId:i}=this;return _e`<div aria-labelledby=${i??Ls} aria-live=polite class=${Se(ao.indicatorText)} id=${n??Ls} role=region>${e?r.indicator:null}</div>`}renderIconContainer(){let{loading:e,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=e?_e`<calcite-loader inline .label=${this.messages.loading} .scale=${c}></calcite-loader>`:null,d=r?_e`<calcite-icon class=${Se({[ao.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Rn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=_e`<div class=${Se({[ao.slotContainer]:!0,[ao.slotContainerHidden]:e})}><slot></slot></div>`;return g?Xt("icon-container",_e`<div aria-hidden=true class=${Se(ao.iconContainer)}>${h}${v}</div>`):null}renderButton(){let{active:e,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,E=c||a||"",M=d?v.indicatorLabel.replace("{label}",E):E,k={[ao.button]:!0,[ao.buttonTextVisible]:s,[ao.buttonCompact]:r},F=_e`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&Xt("indicator-no-icon",_e`<div class=${Se(ao.indicatorWithoutIcon)}></div>`)||""}`;return this.dragHandle?_e`<span aria-controls=${(d?h:null)??Ls} .ariaBusy=${o} .ariaDisabled=${this.disabled?this.disabled:null} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} id=${g??Ls} role=button tabindex=${(this.disabled?null:0)??Ls} ${dt(this.buttonEl)}>${F}</span>`:_e`<button aria-controls=${(d?h:null)??Ls} .ariaBusy=${o} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} .disabled=${n} id=${g??Ls} tabindex=${(n?null:0)??Ls} ${dt(this.buttonEl)}>${F}</button>`}render(){return ic({disabled:this.disabled,children:_e`${this.renderButton()}<slot name=${TY.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Lt("calcite-action",Y4)});var Hy=N(()=>{ky();Zl();sk()});function Yy(t,e,r){return Ds(t,sc(e,r))}function ac(t,e){return typeof t=="function"?t(e):t}function Ho(t){return t.split("-")[0]}function lo(t){return t.split("-")[1]}function J4(t){return t==="x"?"y":"x"}function Zy(t){return t==="y"?"height":"width"}function Jl(t){return["top","bottom"].includes(Ho(t))?"y":"x"}function Xy(t){return J4(Jl(t))}function K4(t,e,r){r===void 0&&(r=!1);let n=lo(t),i=Xy(t),o=Zy(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=mg(s)),[s,mg(s)]}function ck(t){let e=mg(t);return[pg(t),e,pg(e)]}function pg(t){return t.replace(/start|end/g,e=>AY[e])}function IY(t,e,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:s;default:return[]}}function lk(t,e,r,n){let i=lo(t),o=IY(Ho(t),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(pg)))),o}function mg(t){return t.replace(/left|right|bottom|top/g,e=>MY[e])}function LY(t){return{top:0,right:0,bottom:0,left:0,...t}}function Q4(t){return typeof t!="number"?LY(t):{top:t,right:t,bottom:t,left:t}}function Kl(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}var Z4,ak,X4,sc,Ds,hg,gg,co,MY,AY,Jy=N(()=>{Z4=["top","right","bottom","left"],ak=["start","end"],X4=Z4.reduce((t,e)=>t.concat(e,e+"-"+ak[0],e+"-"+ak[1]),[]),sc=Math.min,Ds=Math.max,hg=Math.round,gg=Math.floor,co=t=>({x:t,y:t}),MY={left:"right",right:"left",bottom:"top",top:"bottom"},AY={start:"end",end:"start"}});function uk(t,e,r){let{reference:n,floating:i}=t,o=Jl(e),s=Xy(e),c=Zy(s),a=Ho(e),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,E;switch(a){case"top":E={x:h,y:n.y-i.height};break;case"bottom":E={x:h,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:g};break;case"left":E={x:n.x-i.width,y:g};break;default:E={x:n.x,y:n.y}}switch(lo(e)){case"start":E[s]-=v*(r&&d?-1:1);break;case"end":E[s]+=v*(r&&d?-1:1);break}return E}async function up(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:E=0}=ac(e,t),M=Q4(E),F=c[v?g==="floating"?"reference":"floating":g],z=Kl(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),B=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,q=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),V=await(o.isElement==null?void 0:o.isElement(q))?await(o.getScale==null?void 0:o.getScale(q))||{x:1,y:1}:{x:1,y:1},X=Kl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:B,offsetParent:q,strategy:a}):B);return{top:(z.top-X.top+M.top)/V.y,bottom:(X.bottom-z.bottom+M.bottom)/V.y,left:(z.left-X.left+M.left)/V.x,right:(X.right-z.right+M.right)/V.x}}function kY(t,e,r){return(t?[...r.filter(i=>lo(i)===t),...r.filter(i=>lo(i)!==t)]:r.filter(i=>Ho(i)===i)).filter(i=>t?lo(i)===t||(e?pg(i)!==i:!1):!0)}function dk(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fk(t){return Z4.some(e=>t[e]>=0)}async function OY(t,e){let{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Ho(r),c=lo(r),a=Jl(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=ac(e,t),{mainAxis:v,crossAxis:E,alignmentAxis:M}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof M=="number"&&(E=c==="end"?M*-1:M),a?{x:E*h,y:v*d}:{x:v*d,y:E*h}}var pk,mk,hk,gk,wk,yk,bk,vk=N(()=>{Jy();Jy();pk=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:g}=uk(d,n,a),v=n,E={},M=0;for(let k=0;k<c.length;k++){let{name:F,fn:z}=c[k],{x:B,y:q,data:V,reset:X}=await z({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:E,rects:d,platform:s,elements:{reference:t,floating:e}});h=B??h,g=q??g,E={...E,[F]:{...E[F],...V}},X&&M<=50&&(M++,typeof X=="object"&&(X.placement&&(v=X.placement),X.rects&&(d=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):X.rects),{x:h,y:g}=uk(d,v,a)),k=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};mk=t=>({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=e,{element:d,padding:h=0}=ac(t,e)||{};if(d==null)return{};let g=Q4(h),v={x:r,y:n},E=Xy(i),M=Zy(E),k=await s.getDimensions(d),F=E==="y",z=F?"top":"left",B=F?"bottom":"right",q=F?"clientHeight":"clientWidth",V=o.reference[M]+o.reference[E]-v[E]-o.floating[M],X=v[E]-o.reference[E],Q=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),$=Q?Q[q]:0;(!$||!await(s.isElement==null?void 0:s.isElement(Q)))&&($=c.floating[q]||o.floating[M]);let me=V/2-X/2,ke=$/2-k[M]/2-1,Ce=sc(g[z],ke),Ne=sc(g[B],ke),we=Ce,ce=$-k[M]-Ne,H=$/2-k[M]/2+me,te=Yy(we,H,ce),de=!a.arrow&&lo(i)!=null&&H!==te&&o.reference[M]/2-(H<we?Ce:Ne)-k[M]/2<0,ue=de?H<we?H-we:H-ce:0;return{[E]:v[E]+ue,data:{[E]:te,centerOffset:H-te-ue,...de&&{alignmentOffset:ue}},reset:de}}});hk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:v=X4,autoAlignment:E=!0,...M}=ac(t,e),k=g!==void 0||v===X4?kY(g||null,E,v):v,F=await up(e,M),z=((r=s.autoPlacement)==null?void 0:r.index)||0,B=k[z];if(B==null)return{};let q=K4(B,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==B)return{reset:{placement:k[0]}};let V=[F[Ho(B)],F[q[0]],F[q[1]]],X=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:B,overflows:V}],Q=k[z+1];if(Q)return{data:{index:z+1,overflows:X},reset:{placement:Q}};let $=X.map(Ce=>{let Ne=lo(Ce.placement);return[Ce.placement,Ne&&h?Ce.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,Ne)=>Ce[1]-Ne[1]),ke=((i=$.filter(Ce=>Ce[2].slice(0,lo(Ce[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||$[0][0];return ke!==c?{data:{index:z+1,overflows:X},reset:{placement:ke}}:{}}}},gk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:k=!0,...F}=ac(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let z=Ho(i),B=Jl(c),q=Ho(c)===c,V=await(a.isRTL==null?void 0:a.isRTL(d.floating)),X=v||(q||!k?[mg(c)]:ck(c)),Q=M!=="none";!v&&Q&&X.push(...lk(c,k,M,V));let $=[c,...X],me=await up(e,F),ke=[],Ce=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&ke.push(me[z]),g){let H=K4(i,s,V);ke.push(me[H[0]],me[H[1]])}if(Ce=[...Ce,{placement:i,overflows:ke}],!ke.every(H=>H<=0)){var Ne,we;let H=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,te=$[H];if(te)return{data:{index:H,overflows:Ce},reset:{placement:te}};let de=(we=Ce.filter(ue=>ue.overflows[0]<=0).sort((ue,ve)=>ue.overflows[1]-ve.overflows[1])[0])==null?void 0:we.placement;if(!de)switch(E){case"bestFit":{var ce;let ue=(ce=Ce.filter(ve=>{if(Q){let ye=Jl(ve.placement);return ye===B||ye==="y"}return!0}).map(ve=>[ve.placement,ve.overflows.filter(ye=>ye>0).reduce((ye,De)=>ye+De,0)]).sort((ve,ye)=>ve[1]-ye[1])[0])==null?void 0:ce[0];ue&&(de=ue);break}case"initialPlacement":de=c;break}if(i!==de)return{reset:{placement:de}}}return{}}}};wk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=ac(t,e);switch(n){case"referenceHidden":{let o=await up(e,{...i,elementContext:"reference"}),s=dk(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fk(s)}}}case"escaped":{let o=await up(e,{...i,altBoundary:!0}),s=dk(o,r.floating);return{data:{escapedOffsets:s,escaped:fk(s)}}}default:return{}}}}};yk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=e,a=await OY(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},bk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:F=>{let{x:z,y:B}=F;return{x:z,y:B}}},...a}=ac(t,e),d={x:r,y:n},h=await up(e,a),g=Jl(Ho(i)),v=J4(g),E=d[v],M=d[g];if(o){let F=v==="y"?"top":"left",z=v==="y"?"bottom":"right",B=E+h[F],q=E-h[z];E=Yy(B,E,q)}if(s){let F=g==="y"?"top":"left",z=g==="y"?"bottom":"right",B=M+h[F],q=M-h[z];M=Yy(B,M,q)}let k=c.fn({...e,[v]:E,[g]:M});return{...k,data:{x:k.x-r,y:k.y-n,enabled:{[v]:o,[g]:s}}}}}}});function Ky(){return typeof window<"u"}function Ql(t){return Sk(t)?(t.nodeName||"").toLowerCase():"#document"}function Yn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function uo(t){var e;return(e=(Sk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sk(t){return Ky()?t instanceof Node||t instanceof Yn(t).Node:!1}function Oi(t){return Ky()?t instanceof Element||t instanceof Yn(t).Element:!1}function fo(t){return Ky()?t instanceof HTMLElement||t instanceof Yn(t).HTMLElement:!1}function _k(t){return!Ky()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Yn(t).ShadowRoot}function fp(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Ni(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function xk(t){return["table","td","th"].includes(Ql(t))}function wg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pp(t){let e=Qy(),r=Oi(t)?Ni(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ek(t){let e=Fs(t);for(;fo(e)&&!eu(e);){if(pp(e))return e;if(wg(e))return null;e=Fs(e)}return null}function Qy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eu(t){return["html","body","#document"].includes(Ql(t))}function Ni(t){return Yn(t).getComputedStyle(t)}function yg(t){return Oi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fs(t){if(Ql(t)==="html")return t;let e=t.assignedSlot||t.parentNode||_k(t)&&t.host||uo(t);return _k(e)?e.host:e}function Ck(t){let e=Fs(t);return eu(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&fp(e)?e:Ck(e)}function dp(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Ck(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=Yn(i);if(o){let c=eb(s);return e.concat(s,s.visualViewport||[],fp(i)?i:[],c&&r?dp(c):[])}return e.concat(i,dp(i,[],r))}function eb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var e5=N(()=>{});function Mk(t){let e=Ni(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=fo(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=hg(r)!==o||hg(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function r5(t){return Oi(t)?t:t.contextElement}function mp(t){let e=r5(t);if(!fo(e))return co(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Mk(e),s=(o?hg(r.width):r.width)/n,c=(o?hg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function Ak(t){let e=Yn(t);return!Qy()||!e.visualViewport?NY:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function RY(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Yn(t)?!1:e}function tu(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=r5(t),s=co(1);e&&(n?Oi(n)&&(s=mp(n)):s=mp(t));let c=RY(o,r,n)?Ak(o):co(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=Yn(o),E=n&&Oi(n)?Yn(n):n,M=v,k=eb(M);for(;k&&n&&E!==M;){let F=mp(k),z=k.getBoundingClientRect(),B=Ni(k),q=z.left+(k.clientLeft+parseFloat(B.paddingLeft))*F.x,V=z.top+(k.clientTop+parseFloat(B.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=q,d+=V,M=Yn(k),k=eb(M)}}return Kl({width:h,height:g,x:a,y:d})}function n5(t,e){let r=yg(t).scrollLeft;return e?e.left+r:tu(uo(t)).left+r}function Ik(t,e,r){r===void 0&&(r=!1);let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:n5(t,n)),o=n.top+e.scrollTop;return{x:i,y:o}}function DY(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=uo(n),c=e?wg(e.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=co(1),h=co(0),g=fo(n);if((g||!g&&!o)&&((Ql(n)!=="body"||fp(s))&&(a=yg(n)),fo(n))){let E=tu(n);d=mp(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?Ik(s,a,!0):co(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+v.x,y:r.y*d.y-a.scrollTop*d.y+h.y+v.y}}function FY(t){return Array.from(t.getClientRects())}function $Y(t){let e=uo(t),r=yg(t),n=t.ownerDocument.body,i=Ds(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Ds(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+n5(t),c=-r.scrollTop;return Ni(n).direction==="rtl"&&(s+=Ds(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function UY(t,e){let r=Yn(t),n=uo(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=Qy();(!d||d&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function VY(t,e){let r=tu(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=fo(t)?mp(t):co(1),s=t.clientWidth*o.x,c=t.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function Tk(t,e,r){let n;if(e==="viewport")n=UY(t,r);else if(e==="document")n=$Y(uo(t));else if(Oi(e))n=VY(e,r);else{let i=Ak(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Kl(n)}function Lk(t,e){let r=Fs(t);return r===e||!Oi(r)||eu(r)?!1:Ni(r).position==="fixed"||Lk(r,e)}function zY(t,e){let r=e.get(t);if(r)return r;let n=dp(t,[],!1).filter(c=>Oi(c)&&Ql(c)!=="body"),i=null,o=Ni(t).position==="fixed",s=o?Fs(t):t;for(;Oi(s)&&!eu(s);){let c=Ni(s),a=pp(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||fp(s)&&!a&&Lk(t,s))?n=n.filter(h=>h!==s):i=c,s=Fs(s)}return e.set(t,n),n}function WY(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wg(e)?[]:zY(e,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=Tk(e,h,i);return d.top=Ds(g.top,d.top),d.right=sc(g.right,d.right),d.bottom=sc(g.bottom,d.bottom),d.left=Ds(g.left,d.left),d},Tk(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function BY(t){let{width:e,height:r}=Mk(t);return{width:e,height:r}}function GY(t,e,r){let n=fo(e),i=uo(e),o=r==="fixed",s=tu(t,!0,o,e),c={scrollLeft:0,scrollTop:0},a=co(0);if(n||!n&&!o)if((Ql(e)!=="body"||fp(i))&&(c=yg(e)),n){let v=tu(e,!0,o,e);a.x=v.x+e.clientLeft,a.y=v.y+e.clientTop}else i&&(a.x=n5(i));let d=i&&!n&&!o?Ik(i,c):co(0),h=s.left+c.scrollLeft-a.x-d.x,g=s.top+c.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function t5(t){return Ni(t).position==="static"}function Pk(t,e){if(!fo(t)||Ni(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return uo(t)===r&&(r=r.ownerDocument.body),r}function kk(t,e){let r=Yn(t);if(wg(t))return r;if(!fo(t)){let i=Fs(t);for(;i&&!eu(i);){if(Oi(i)&&!t5(i))return i;i=Fs(i)}return r}let n=Pk(t,e);for(;n&&xk(n)&&t5(n);)n=Pk(n,e);return n&&eu(n)&&t5(n)&&!pp(n)?r:n||Ek(t)||r}function qY(t){return Ni(t).direction==="rtl"}function Ok(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function HY(t,e){let r=null,n,i=uo(t);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let d=t.getBoundingClientRect(),{left:h,top:g,width:v,height:E}=d;if(c||e(),!v||!E)return;let M=gg(g),k=gg(i.clientWidth-(h+v)),F=gg(i.clientHeight-(g+E)),z=gg(h),q={rootMargin:-M+"px "+-k+"px "+-F+"px "+-z+"px",threshold:Ds(0,sc(1,a))||1},V=!0;function X(Q){let $=Q[0].intersectionRatio;if($!==a){if(!V)return s();$?s(!1,$):n=setTimeout(()=>{s(!1,1e-7)},1e3)}$===1&&!Ok(d,t.getBoundingClientRect())&&s(),V=!1}try{r=new IntersectionObserver(X,{...q,root:i.ownerDocument})}catch{r=new IntersectionObserver(X,q)}r.observe(t)}return s(!0),o}function Nk(t,e,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=r5(t),h=i||o?[...d?dp(d):[],...dp(e)]:[];h.forEach(z=>{i&&z.addEventListener("scroll",r,{passive:!0}),o&&z.addEventListener("resize",r)});let g=d&&c?HY(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(z=>{let[B]=z;B&&B.target===d&&E&&(E.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var q;(q=E)==null||q.observe(e)})),r()}),d&&!a&&E.observe(d),E.observe(e));let M,k=a?tu(t):null;a&&F();function F(){let z=tu(t);k&&!Ok(k,z)&&r(),k=z,M=requestAnimationFrame(F)}return r(),()=>{var z;h.forEach(B=>{i&&B.removeEventListener("scroll",r),o&&B.removeEventListener("resize",r)}),g?.(),(z=E)==null||z.disconnect(),E=null,a&&cancelAnimationFrame(M)}}var NY,jY,tb,Rk,Dk,Fk,i5,$k,Uk,Vk,zk=N(()=>{vk();Jy();e5();NY=co(0);jY=async function(t){let e=this.getOffsetParent||kk,r=this.getDimensions,n=await r(t.floating);return{reference:GY(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};tb={convertOffsetParentRelativeRectToViewportRelativeRect:DY,getDocumentElement:uo,getClippingRect:WY,getOffsetParent:kk,getElementRects:jY,getClientRects:FY,getDimensions:BY,getScale:mp,isElement:Oi,isRTL:qY};Rk=yk,Dk=hk,Fk=bk,i5=gk,$k=wk,Uk=mk,Vk=(t,e,r)=>{let n=new Map,i={platform:tb,...r},o={...i.platform,_c:n};return pk(t,e,{...i,platform:o})}});var YY,Wk,Bk=N(()=>{YY=typeof global=="object"&&global&&global.Object===Object&&global,Wk=YY});var ZY,XY,rb,o5=N(()=>{Bk();ZY=typeof self=="object"&&self&&self.Object===Object&&self,XY=Wk||ZY||Function("return this")(),rb=XY});var JY,hp,s5=N(()=>{o5();JY=rb.Symbol,hp=JY});function eZ(t){var e=KY.call(t,bg),r=t[bg];try{t[bg]=void 0;var n=!0}catch{}var i=QY.call(t);return n&&(e?t[bg]=r:delete t[bg]),i}var Gk,KY,QY,bg,jk,qk=N(()=>{s5();Gk=Object.prototype,KY=Gk.hasOwnProperty,QY=Gk.toString,bg=hp?hp.toStringTag:void 0;jk=eZ});function nZ(t){return rZ.call(t)}var tZ,rZ,Hk,Yk=N(()=>{tZ=Object.prototype,rZ=tZ.toString;Hk=nZ});function sZ(t){return t==null?t===void 0?oZ:iZ:Zk&&Zk in Object(t)?jk(t):Hk(t)}var iZ,oZ,Zk,Xk,Jk=N(()=>{s5();qk();Yk();iZ="[object Null]",oZ="[object Undefined]",Zk=hp?hp.toStringTag:void 0;Xk=sZ});function aZ(t){return t!=null&&typeof t=="object"}var Kk,Qk=N(()=>{Kk=aZ});function lZ(t){return typeof t=="symbol"||Kk(t)&&Xk(t)==cZ}var cZ,eO,tO=N(()=>{Jk();Qk();cZ="[object Symbol]";eO=lZ});function dZ(t){for(var e=t.length;e--&&uZ.test(t.charAt(e)););return e}var uZ,rO,nO=N(()=>{uZ=/\s/;rO=dZ});function pZ(t){return t&&t.slice(0,rO(t)+1).replace(fZ,"")}var fZ,iO,oO=N(()=>{nO();fZ=/^\s+/;iO=pZ});function mZ(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vg,a5=N(()=>{vg=mZ});function bZ(t){if(typeof t=="number")return t;if(eO(t))return sO;if(vg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=vg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=iO(t);var r=gZ.test(t);return r||wZ.test(t)?yZ(t.slice(2),r?2:8):hZ.test(t)?sO:+t}var sO,hZ,gZ,wZ,yZ,c5,aO=N(()=>{oO();a5();tO();sO=NaN,hZ=/^[-+]0x[0-9a-f]+$/i,gZ=/^0b[01]+$/i,wZ=/^0o[0-7]+$/i,yZ=parseInt;c5=bZ});var vZ,nb,cO=N(()=>{o5();vZ=function(){return rb.Date.now()},nb=vZ});function EZ(t,e,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof t!="function")throw new TypeError(_Z);e=c5(e)||0,vg(r)&&(h=!!r.leading,g="maxWait"in r,o=g?SZ(c5(r.maxWait)||0,e):o,v="trailing"in r?!!r.trailing:v);function E(Q){var $=n,me=i;return n=i=void 0,d=Q,s=t.apply(me,$),s}function M(Q){return d=Q,c=setTimeout(z,e),h?E(Q):s}function k(Q){var $=Q-a,me=Q-d,ke=e-$;return g?xZ(ke,o-me):ke}function F(Q){var $=Q-a,me=Q-d;return a===void 0||$>=e||$<0||g&&me>=o}function z(){var Q=nb();if(F(Q))return B(Q);c=setTimeout(z,k(Q))}function B(Q){return c=void 0,v&&n?E(Q):(n=i=void 0,s)}function q(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function V(){return c===void 0?s:B(nb())}function X(){var Q=nb(),$=F(Q);if(n=arguments,i=this,a=Q,$){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(z,e),E(a)}return c===void 0&&(c=setTimeout(z,e)),s}return X.cancel=q,X.flush=V,X}var _Z,SZ,xZ,l5,lO=N(()=>{a5();cO();aO();_Z="Expected a function",SZ=Math.max,xZ=Math.min;l5=EZ});var uO=N(()=>{lO();});function dO(t){return CZ(t)}function u5(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function CZ(t){for(let e=t;e;e=u5(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=u5(t);e;e=u5(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||pp(r)||e.tagName==="BODY"))return e}return null}var fO=N(()=>{e5()});function pO(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}function PZ({placement:t,flipDisabled:e,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[Fk(),$k()];return s==="menu"&&c.push(i5({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})),c.push(Rk({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})),t==="auto"||t==="auto-start"||t==="auto-end"?c.push(Dk({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||c.push(i5(r?{fallbackPlacements:r}:{})),o&&c.push(Uk({element:o})),c}function bO(t,e){let r=t.filter(n=>mO.includes(n));return r.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${mO.map(n=>`"${n}"`).join(", ").trim()}`,{el:e}),r}function hO(t,e=!1){let r=["left","right"];return e&&r.reverse(),t.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function vO(t,e,r=!1){if(!t.open||!e.floatingEl||!e.referenceEl)return;if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!_g.get(t))return _O(t);await(r?MZ(t):wO)(t,e)}function MZ(t){let e=ib.get(t);return e||(e=l5(wO,b4.reposition,{leading:!0,maxWait:b4.reposition}),ib.set(t,e),e)}async function _O(t){let{referenceEl:e,floatingEl:r}=t;if(!r.isConnected)return;let n=Nk;_g.set(t,{state:"pending"});let i,o=n(e,r,()=>{let s=t.reposition();i||(i=s)});return _g.set(t,{state:"active",cleanUp:o}),i}function f5(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function SO(t){let{floatingEl:e,referenceEl:r}=t;if(f5(t),!(!e||!r)&&(p5(t),!!t.open))return _O(t)}function p5(t){let{floatingEl:e,referenceEl:r}=t;if(!e||!r)return;let n=_g.get(t);n?.state==="active"&&n.cleanUp(),_g.delete(t),ib.get(t)?.cancel(),ib.delete(t)}var wO,TZ,mO,yO,d5,AZ,_g,ib,gO,m5,h5=N(()=>{un();zk();uO();fO();lr();dn();(function(){if(!!1){let e=tb.getOffsetParent;tb.getOffsetParent=r=>e(r,dO)}})();wO=async(t,{referenceEl:e,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!e||!r)return;let g=Ka(r)==="rtl",{x:v,y:E,placement:M,strategy:k,middlewareData:F}=await Vk(e,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:hO(i,g),middleware:PZ({placement:i,flipDisabled:o,flipPlacements:s?.map(V=>hO(V,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:V,y:X}=F.arrow,Q=M.split("-")[0],$=V!=null?"left":"top",me=AZ[Q],ke={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=Q==="left"||Q==="right"?"horizontal":"vertical"),Object.assign(d.style,{...ke,[$]:`${$=="left"?V:X}px`,[Q]:"100%",transform:me})}let B=F.hide?.referenceHidden?"hidden":null,q=B?"none":null;r.setAttribute(TZ,M),Object.assign(r.style,{pointerEvents:q,position:k,transform:`translate(${pO(v)}px,${pO(E)}px)`,visibility:B})},TZ="data-placement",mO=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],yO="bottom-end",d5={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};AZ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},_g=new WeakMap,ib=new WeakMap;gO=4,m5=Math.ceil(Math.hypot(gO,gO))});function xO(t){return t[t.openProp||"open"]}function gp(t){requestAnimationFrame(()=>{t.transitionEl&&CL(t.transitionEl,t.transitionProp,()=>{xO(t)?t.onBeforeOpen():t.onBeforeClose()},()=>{xO(t)?t.onOpen():t.onClose()})})}var ob=N(()=>{dn();});var sb,g5=N(()=>{oc();Uy();xr();sb=({children:t,...e})=>{let r=e.level?DL(`h${e.level}`):rc`div`;return Xt(e.key,ap`<${r} class=${Se(e.class)}>${t}</${r}>`)}});var EO,IZ,CO,TO=N(()=>{ki();oc();Yr();xr();EO={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},IZ={width:12,height:6,strokeWidth:1},CO=({floatingLayout:t,key:e,ref:r})=>{let{width:n,height:i,strokeWidth:o}=IZ,s=n/2,c=t==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return Xt(e,_e`<svg aria-hidden=true class=${Se(EO.arrow)} height=${n} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${dt(r)}>${jo`${jo`<path class=${Se(EO.arrowStroke)} d=${a??Me} fill=none stroke-width=${o+1} />`||""}<path d=${a??Me} stroke=none />`}</svg>`)}});var MO,ab,AO,ru,cb,lb,LZ,IO,LO,kO,cc,kZ,OZ,OO,NZ,RZ,DZ,FZ,$Z,UZ,VZ,PO,zZ,WZ,ub,w5,BZ,GZ,NO,RO,nu,jZ,db,DO=N(()=>{MO=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ab=MO.join(","),AO=typeof Element>"u",ru=AO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cb=!AO&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},lb=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},LZ=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},IO=function(e,r,n){if(lb(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ab));return r&&ru.call(e,ab)&&i.unshift(e),i=i.filter(n),i},LO=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!lb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ru.call(s,ab);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!lb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},kO=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},cc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||LZ(e))&&!kO(e)?0:e.tabIndex},kZ=function(e,r){var n=cc(e);return n<0&&r&&!kO(e)?0:n},OZ=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},OO=function(e){return e.tagName==="INPUT"},NZ=function(e){return OO(e)&&e.type==="hidden"},RZ=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},DZ=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},FZ=function(e){if(!e.name)return!0;var r=e.form||cb(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=DZ(i,e.form);return!o||o===e},$Z=function(e){return OO(e)&&e.type==="radio"},UZ=function(e){return $Z(e)&&!FZ(e)},VZ=function(e){var r,n=e&&cb(e),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==e){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&i;){var d,h,g;n=cb(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},PO=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},zZ=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ru.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(ru.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var a=e.parentElement,d=cb(e);if(a&&!a.shadowRoot&&i(a)===!0)return PO(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(VZ(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return PO(e);return!1},WZ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ru.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},ub=function(e,r){return!(r.disabled||lb(r)||NZ(r)||zZ(r,e)||RZ(r)||WZ(r))},w5=function(e,r){return!(UZ(r)||cc(r)<0||!ub(e,r))},BZ=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},GZ=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=kZ(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(OZ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},NO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=LO([e],r.includeContainer,{filter:w5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:BZ}):n=IO(e,r.includeContainer,w5.bind(null,r)),GZ(n)},RO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=LO([e],r.includeContainer,{filter:ub.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=IO(e,r.includeContainer,ub.bind(null,r)),n},nu=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,ab)===!1?!1:w5(r,e)},jZ=MO.concat("iframe").join(","),db=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,jZ)===!1?!1:ub(r,e)}});function y5(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function qZ(t){if(Array.isArray(t))return y5(t)}function HZ(t,e,r){return(e=KZ(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
13
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $O(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?FO(Object(r),!0).forEach(function(n){HZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function XZ(t){return qZ(t)||YZ(t)||QZ(t)||ZZ()}function JZ(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KZ(t){var e=JZ(t,"string");return typeof e=="symbol"?e:e+""}function QZ(t,e){if(t){if(typeof t=="string")return y5(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y5(t,e):void 0}}var UO,eX,tX,xg,rX,nX,VO,Sg,fb,iX,zO,WO=N(()=>{DO();UO={activateTrap:function(e,r){if(e.length>0){var n=e[e.length-1];n!==r&&n._setPausedState(!0)}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},eX=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},tX=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},xg=function(e){return e?.key==="Tab"||e?.keyCode===9},rX=function(e){return xg(e)&&!e.shiftKey},nX=function(e){return xg(e)&&e.shiftKey},VO=function(e){return setTimeout(e,0)},Sg=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},fb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},iX=[],zO=function(e,r){var n=r?.document||document,i=r?.trapStack||iX,o=$O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:rX,isKeyBackward:nX},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(ce,H,te){return ce&&ce[H]!==void 0?ce[H]:o[te||H]},d=function(ce,H){var te=typeof H?.composedPath=="function"?H.composedPath():void 0;return s.containerGroups.findIndex(function(de){var ue=de.container,ve=de.tabbableNodes;return ue.contains(ce)||te?.includes(ue)||ve.find(function(ye){return ye===ce})})},h=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=H.hasFallback,de=te===void 0?!1:te,ue=H.params,ve=ue===void 0?[]:ue,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,XZ(ve))),ye===!0&&(ye=void 0),!ye){if(ye===void 0||ye===!1)return ye;throw new Error("`".concat(ce,"` was specified but was not a node, or did not return a node"))}var De=ye;if(typeof ye=="string"){try{De=n.querySelector(ye)}catch(Ke){throw new Error("`".concat(ce,'` appears to be an invalid selector; error="').concat(Ke.message,'"'))}if(!De&&!de)throw new Error("`".concat(ce,"` as selector refers to no known node"))}return De},g=function(){var ce=h("initialFocus",{hasFallback:!0});if(ce===!1)return!1;if(ce===void 0||ce&&!db(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var H=s.tabbableGroups[0],te=H&&H.firstTabbableNode;ce=te||h("fallbackFocus")}else ce===null&&(ce=h("fallbackFocus"));if(!ce)throw new Error("Your focus-trap needs to have at least one focusable element");return ce},v=function(){if(s.containerGroups=s.containers.map(function(ce){var H=NO(ce,o.tabbableOptions),te=RO(ce,o.tabbableOptions),de=H.length>0?H[0]:void 0,ue=H.length>0?H[H.length-1]:void 0,ve=te.find(function(Ke){return nu(Ke)}),ye=te.slice().reverse().find(function(Ke){return nu(Ke)}),De=!!H.find(function(Ke){return cc(Ke)>0});return{container:ce,tabbableNodes:H,focusableNodes:te,posTabIndexesFound:De,firstTabbableNode:de,lastTabbableNode:ue,firstDomTabbableNode:ve,lastDomTabbableNode:ye,nextTabbableNode:function(mt){var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Kt=H.indexOf(mt);return Kt<0?mr?te.slice(te.indexOf(mt)+1).find(function(Qt){return nu(Qt)}):te.slice(0,te.indexOf(mt)).reverse().find(function(Qt){return nu(Qt)}):H[Kt+(mr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(ce){return ce.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(ce){return ce.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(ce){var H=ce.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?E(H.shadowRoot):H},M=function(ce){if(ce!==!1&&ce!==E(document)){if(!ce||!ce.focus){M(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,eX(ce)&&ce.select()}},k=function(ce){var H=h("setReturnFocus",{params:[ce]});return H||(H===!1?!1:ce)},F=function(ce){var H=ce.target,te=ce.event,de=ce.isBackward,ue=de===void 0?!1:de;H=H||fb(te),v();var ve=null;if(s.tabbableGroups.length>0){var ye=d(H,te),De=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)ue?ve=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ve=s.tabbableGroups[0].firstTabbableNode;else if(ue){var Ke=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.firstTabbableNode;return H===hn});if(Ke<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H,!1))&&(Ke=ye),Ke>=0){var mt=Ke===0?s.tabbableGroups.length-1:Ke-1,mr=s.tabbableGroups[mt];ve=cc(H)>=0?mr.lastTabbableNode:mr.lastDomTabbableNode}else xg(te)||(ve=De.nextTabbableNode(H,!1))}else{var Kt=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.lastTabbableNode;return H===hn});if(Kt<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H))&&(Kt=ye),Kt>=0){var Qt=Kt===s.tabbableGroups.length-1?0:Kt+1,Kn=s.tabbableGroups[Qt];ve=cc(H)>=0?Kn.firstTabbableNode:Kn.firstDomTabbableNode}else xg(te)||(ve=De.nextTabbableNode(H))}}else ve=h("fallbackFocus");return ve},z=function(ce){var H=fb(ce);if(!(d(H,ce)>=0)){if(Sg(o.clickOutsideDeactivates,ce)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Sg(o.allowOutsideClick,ce)||ce.preventDefault()}},B=function(ce){var H=fb(ce),te=d(H,ce)>=0;if(te||H instanceof Document)te&&(s.mostRecentlyFocusedNode=H);else{ce.stopImmediatePropagation();var de,ue=!0;if(s.mostRecentlyFocusedNode)if(cc(s.mostRecentlyFocusedNode)>0){var ve=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[ve].tabbableNodes;if(ye.length>0){var De=ye.findIndex(function(Ke){return Ke===s.mostRecentlyFocusedNode});De>=0&&(o.isKeyForward(s.recentNavEvent)?De+1<ye.length&&(de=ye[De+1],ue=!1):De-1>=0&&(de=ye[De-1],ue=!1))}}else s.containerGroups.some(function(Ke){return Ke.tabbableNodes.some(function(mt){return cc(mt)>0})})||(ue=!1);else ue=!1;ue&&(de=F({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),M(de||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},q=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var te=F({event:ce,isBackward:H});te&&(xg(ce)&&ce.preventDefault(),M(te))},V=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&q(ce,o.isKeyBackward(ce))},X=function(ce){tX(ce)&&Sg(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),c.deactivate())},Q=function(ce){var H=fb(ce);d(H,ce)>=0||Sg(o.clickOutsideDeactivates,ce)||Sg(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},$=function(){if(s.active)return UO.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?VO(function(){M(g())}):M(g()),n.addEventListener("focusin",B,!0),n.addEventListener("mousedown",z,{capture:!0,passive:!1}),n.addEventListener("touchstart",z,{capture:!0,passive:!1}),n.addEventListener("click",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",V,{capture:!0,passive:!1}),n.addEventListener("keydown",X),c},me=function(){if(s.active)return n.removeEventListener("focusin",B,!0),n.removeEventListener("mousedown",z,!0),n.removeEventListener("touchstart",z,!0),n.removeEventListener("click",Q,!0),n.removeEventListener("keydown",V,!0),n.removeEventListener("keydown",X),c},ke=function(ce){var H=ce.some(function(te){var de=Array.from(te.removedNodes);return de.some(function(ue){return ue===s.mostRecentlyFocusedNode})});H&&M(g())},Ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ke):void 0,Ne=function(){Ce&&(Ce.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Ce.observe(ce,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(ce){if(s.active)return this;var H=a(ce,"onActivate"),te=a(ce,"onPostActivate"),de=a(ce,"checkCanFocusTrap");de||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,H?.();var ue=function(){de&&v(),$(),Ne(),te?.()};return de?(de(s.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(ce){if(!s.active)return this;var H=$O({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},ce);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,me(),s.active=!1,s.paused=!1,Ne(),UO.deactivateTrap(i,c);var te=a(H,"onDeactivate"),de=a(H,"onPostDeactivate"),ue=a(H,"checkCanReturnFocus"),ve=a(H,"returnFocus","returnFocusOnDeactivate");te?.();var ye=function(){VO(function(){ve&&M(k(s.nodeFocusedBeforeActivation)),de?.()})};return ve&&ue?(ue(k(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(ce){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,ce)):this},unpause:function(ce){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,ce)):this},updateContainerElements:function(ce){var H=[].concat(ce).filter(Boolean);return s.containers=H.map(function(te){return typeof te=="string"?n.querySelector(te):te}),s.active&&v(),Ne(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(ce,H){if(s.paused===ce)return this;if(s.paused=ce,ce){var te=a(H,"onPause"),de=a(H,"onPostPause");te?.(),me(),Ne(),de?.()}else{var ue=a(H,"onUnpause"),ve=a(H,"onPostUnpause");ue?.(),v(),$(),Ne(),ve?.()}return this}}}),c.updateContainerElements(e),c}});function oX(t,e){let r=e?.fallbackFocus||t,n=e?.clickOutsideDeactivates??!0;return{fallbackFocus:r,setReturnFocus:i=>(pb.has(t)||Ry(i),!1),...e,document:t.ownerDocument,tabbableOptions:I4,trapStack:WI,clickOutsideDeactivates:i=>(pb.has(t)||pb.add(t),typeof n=="function"?n(i):n),onPostDeactivate:()=>{pb.delete(t)}}}function BO(t,{focusTrapOptions:e},r){return!e?.extraContainers&&!r?t:[t,...GO(e?.extraContainers),...GO(r)]}function GO(t=[]){return Array.isArray(t)?t:[t]}var pb,mb,b5=N(()=>{Qf();WO();dn();lr();pb=new WeakSet;mb=t=>KA((e,r)=>{let n,i,o,s=t.focusTrapOptions;r.onConnected(()=>{e[t.triggerProp]&&n&&c.activate()}),r.onUpdate(a=>{e.hasUpdated&&a.has("focusTrapDisabled")&&(e.focusTrapDisabled?c.deactivate():c.activate())}),r.onDisconnected(()=>c.deactivate());let c={activate:()=>{let a=i||e.el;if(a.isConnected){if(!n){let d={...s,...e.focusTrapOptions};o||=BO(a,e),n=zO(o,oX(a,d))}(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&n.activate()}},deactivate:()=>n?.deactivate(),overrideFocusTrapEl:a=>{if(n)throw new Error("Focus trap already created");i=a},setExtraContainers:a=>{let d=i||e.el;o=BO(d,e,a)},updateContainerElements:()=>n?.updateContainerElements(o)};return c})});function hb(t){return t==="Enter"||t===" "}var Eg,Cg=N(()=>{Eg=["0","1","2","3","4","5","6","7","8","9"]});var v5,po,jO,qO,HO,sX,YO,_5,ZO=N(()=>{lr();oc();un();ki();xr();h5();dn();np();ob();g5();Rs();tc();TO();qo();b5();Cg();ln();v5=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:r}=this,n=e.find(i=>r.has(i));return r.get(n)},this.togglePopovers=e=>{let r=e.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():hb(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{xL(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,r){this.registeredElementCount++,this.registeredElements.set(e,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},po={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"header-container",heading:"heading"},jO="auto",qO="aria-controls",HO="aria-expanded",sX=Ct`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,YO=new v5,_5=class extends wt{constructor(){super(...arguments),this.closeButtonEl=mi(),this.focusTrap=mb({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${Os()}`,this.hasLoaded=!1,this.mutationObserver=Nn("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=Xr(),this.offsetDistance=m5,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=jO,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Tt({cancelable:!1}),this.calcitePopoverBeforeOpen=Tt({cancelable:!1}),this.calcitePopoverClose=Tt({cancelable:!1}),this.calcitePopoverOpen=Tt({cancelable:!1})}static{this.properties={floatingLayout:[16,{state:!0}],referenceEl:[16,{state:!0}],autoClose:[7,{reflect:!0,type:Boolean}],closable:[7,{reflect:!0,type:Boolean}],flipDisabled:[7,{reflect:!0,type:Boolean}],flipPlacements:[0,{attribute:!1}],focusTrapDisabled:[7,{reflect:!0,type:Boolean}],focusTrapOptions:[0,{attribute:!1}],heading:1,headingLevel:[11,{type:Number,reflect:!0}],label:1,messageOverrides:[0,{attribute:!1}],offsetDistance:[11,{type:Number,reflect:!0}],offsetSkidding:[11,{reflect:!0,type:Number}],open:[7,{reflect:!0,type:Boolean}],overlayPositioning:[3,{reflect:!0}],placement:[3,{reflect:!0}],pointerDisabled:[7,{reflect:!0,type:Boolean}],referenceElement:1,scale:[3,{reflect:!0}],triggerDisabled:[7,{reflect:!0,type:Boolean}]}}static{this.styles=sX}async reposition(e=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return vO(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:"popover"},e)}async setFocus(){await En(this),this.requestUpdate(),ec(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==m5)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==jO))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),p5(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){gp(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){e&&(this.transitionEl=e)}setFilteredPlacements(){let{el:e,flipPlacements:r}=this;this.filteredFlipPlacements=r?bO(r,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),SO(this);let{el:r,referenceElement:n,referenceEl:i}=this;e&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:r}=this;e&&"setAttribute"in e&&e.setAttribute(HO,op(r))}addReferences(){let{referenceEl:e}=this;if(!e)return;let r=this.getId();"setAttribute"in e&&e.setAttribute(qO,r),YO.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(qO),e.removeAttribute(HO)),YO.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:r}=this;return(typeof e=="string"?Yl(r,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),f5(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:r}=this;return r?Xt(po.closeButtonContainer,_e`<div class=${Se(po.closeButtonContainer)}><calcite-action appearance=transparent class=${Se(po.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${dt(this.closeButtonEl)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:r}=this,n=e?sb({class:po.heading,level:r,children:e}):null;return n?Xt(po.header,_e`<div class=${Se(po.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=e&&i,a=!c,d=o?null:Xt("floating-arrow",CO({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",tp(this.el,"id",this.getId()),this.el.role="dialog",_e`<div class=${Se(po.positionContainer)} ${dt(this.setFloatingEl)}><div class=${Se({[po.container]:!0,[d5.animation]:!0,[d5.animationActive]:c})} ${dt(this.setTransitionEl)}>${d}<div class=${Se({[po.hasHeader]:!!r,[po.headerContainer]:!0})}>${this.renderHeader()}<div class=${Se(po.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Lt("calcite-popover",_5)});var XO=N(()=>{Hy();Zl();ZO()});function S5(t,e){return(t+e)%e}var JO=N(()=>{});var x5,Tg,KO,QO,E5=N(()=>{x5={menu:"menu",defaultTrigger:"default-trigger"},Tg={tooltip:"tooltip",trigger:"trigger"},KO={menu:"ellipsis"},QO="data-active"});var aX,cX,C5,eN=N(()=>{lr();ki();un();xr();JO();dn();np();Cg();Rs();E5();ln();aX=Ct`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}`,cX=["ArrowUp","ArrowDown","End","Home"],C5=class extends wt{constructor(){super(...arguments),this.guid=`calcite-action-menu-${Os()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=e=>{let{key:r}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(hb(r)){if(e.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(e,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute(QO,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Tt({cancelable:!1})}static{this.properties={activeMenuItemIndex:[16,{state:!0}],menuButtonEl:[16,{state:!0}],appearance:[3,{reflect:!0}],expanded:[7,{reflect:!0,type:Boolean}],flipPlacements:[0,{attribute:!1}],label:1,open:[7,{reflect:!0,type:Boolean}],overlayPositioning:[3,{reflect:!0}],placement:[3,{reflect:!0}],scale:[3,{reflect:!0}]}}static{this.styles=aX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.openHandler(e))}async setFocus(){return await En(this),Ry(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}willUpdate(e){e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),e.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.menuButtonEl&&(this.menuButtonEl.active=e),this.popoverEl&&(this.popoverEl.open=e),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:e,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",op(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=e),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown),this.menuButtonEl=null)}setMenuButtonEl(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(e){this.defaultMenuButtonEl=e,e&&this.connectMenuButtonEl()}setPopoverEl(e){e&&(this.popoverEl=e,e.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:e,expanded:r,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=!r&&!i?n:null)}updateActions(e){e?.forEach(this.updateAction)}handleDefaultSlotChange(e){let r=e.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)}isValidKey(e,r){return!!r.find(n=>n===e)}handleActionNavigation(e,r,n){if(!this.isValidKey(r,cX))return;if(e.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=S5(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=S5(i+1,n.length))}toggleOpen(e=!this.open){this.open=e}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:e,label:r,scale:n,expanded:i}=this;return _e`<slot name=${Tg.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${Se(x5.defaultTrigger)} .icon=${KO.menu} .scale=${n} .text=${r} .textEnabled=${i} ${dt(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:e,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:c,flipPlacements:a}=this,h=e[r]?.id||null;return _e`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${c} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${dt(this.setPopoverEl)}><div aria-activedescendant=${h??Me} aria-labelledby=${i?.id??Me} class=${Se(x5.menu)} id=${n??Me} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return _e`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${Tg.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Lt("calcite-action-menu",C5)});var tN=N(()=>{Hy();XO();eN()});var Jt,T5,Pg,Rt,P5=N(()=>{Jt={actionBarContainer:"action-bar-container",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end",headerSlottedContent:"header-slotted-content"},T5={close:"close",collapse:"collapse"},Pg={close:"x",menu:"ellipsis",expand:"chevron-down",collapse:"chevron-up"},Rt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"}});var lX,M5,rN=N(()=>{lr();oc();ki();un();xr();dn();ag();Rs();tc();E5();g5();h5();qo();P5();ln();lX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-sharp))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}#close,#collapse,.back-button,calcite-action-menu{--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color);--calcite-action-text-color-pressed: var(--calcite-panel-header-action-text-color-pressed)}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,M5=class extends wt{constructor(){super(),this.resizeObserver=Nn("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=yO,this.messages=Xr(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Tt({cancelable:!1}),this.calcitePanelScroll=Tt({cancelable:!1}),this.calcitePanelToggle=Tt({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}static{this.properties={hasActionBar:[16,{state:!0}],hasContentBottom:[16,{state:!0}],hasContentTop:[16,{state:!0}],hasEndActions:[16,{state:!0}],hasFab:[16,{state:!0}],hasFooterActions:[16,{state:!0}],hasFooterContent:[16,{state:!0}],hasFooterEndContent:[16,{state:!0}],hasFooterStartContent:[16,{state:!0}],hasHeaderContent:[16,{state:!0}],hasMenuItems:[16,{state:!0}],hasStartActions:[16,{state:!0}],isClosed:[16,{state:!0}],showHeaderContent:[16,{state:!0}],beforeClose:[0,{attribute:!1}],closable:[7,{reflect:!0,type:Boolean}],closed:[7,{reflect:!0,type:Boolean}],collapseDirection:1,collapsed:[7,{reflect:!0,type:Boolean}],collapsible:[7,{reflect:!0,type:Boolean}],description:1,disabled:[7,{reflect:!0,type:Boolean}],heading:1,headingLevel:[11,{type:Number,reflect:!0}],loading:[7,{reflect:!0,type:Boolean}],menuFlipPlacements:[0,{attribute:!1}],menuOpen:[7,{reflect:!0,type:Boolean}],menuPlacement:[3,{reflect:!0}],messageOverrides:[0,{attribute:!1}],overlayPositioning:[3,{reflect:!0}],scale:[3,{reflect:!0}]}}static{this.styles=lX}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await En(this),ec(this.containerEl)}async load(){this.isClosed=this.closed}willUpdate(e){e.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){nc(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:e}=this;if(!e||typeof e.scrollHeight!="number"||typeof e.offsetHeight!="number")return;e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}setContainerRef(e){this.containerEl=e}panelKeyDownHandler(e){this.closable&&e.key==="Escape"&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(e){this.hasStartActions=On(e)}handleHeaderActionsEndSlotChange(e){this.hasEndActions=On(e)}handleHeaderMenuActionsSlotChange(e){this.hasMenuItems=On(e)}handleActionBarSlotChange(e){let r=Dy(e).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(e){this.hasHeaderContent=On(e)}handleFabSlotChange(e){this.hasFab=On(e)}handleFooterActionsSlotChange(e){this.hasFooterActions=On(e)}handleFooterEndSlotChange(e){this.hasFooterEndContent=On(e)}handleFooterStartSlotChange(e){this.hasFooterStartContent=On(e)}handleFooterSlotChange(e){this.hasFooterContent=On(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=On(e)}contentTopSlotChangeHandler(e){this.hasContentTop=On(e)}setPanelScrollEl(e){this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())}handleAlertsSlotChange(e){Dy(e)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:r,description:n,hasHeaderContent:i}=this,o=e?sb({class:Jt.heading,level:r,children:e}):null,s=n?_e`<span class=${Se(Jt.description)}>${n}</span>`:null;return!i&&(o||s)?Xt("header-content",_e`<div class=${Se(Jt.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return _e`<div class=${Se(Jt.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Rt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return Xt("slotted-header-content",_e`<div class=${Se({[Jt.headerContent]:!0,[Jt.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Rt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:e}=this;return Xt("header-actions-start",_e`<div class=${Se({[Jt.headerActionsStart]:!0,[Jt.headerActions]:!0})} .hidden=${!e}><slot name=${Rt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:e,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[Pg.expand,Pg.collapse];o==="up"&&g.reverse();let v=s?_e`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${T5.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Me}></calcite-action>`:null,E=n?_e`<calcite-action .ariaLabel=${h} .icon=${Pg.close} id=${T5.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Me}></calcite-action>`:null,M=_e`<slot name=${Rt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,k=e||v||E||c;return Xt("header-actions-end",_e`<div class=${Se({[Jt.headerActionsEnd]:!0,[Jt.headerActions]:!0})} .hidden=${!k}>${M}${this.renderMenu()}${v}${E}</div>`)}renderMenu(){let{hasMenuItems:e,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return Xt("menu",_e`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!e} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${Pg.menu} .scale=${this.scale} slot=${Tg.trigger} .text=${r.options}></calcite-action><slot name=${Rt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:e,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=e||!!a||r||n||o||i||s;return this.showHeaderContent=d,_e`<header class=${Se(Jt.header)} .hidden=${!(d||c)}><div class=${Se({[Jt.headerContainer]:!0,[Jt.headerContainerBorderEnd]:c})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:e,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||e||n||i;return _e`<footer class=${Se(Jt.footer)} .hidden=${!o}><div class=${Se(Jt.footerContent)} .hidden=${!n}><slot name=${Rt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${Se(Jt.footerStart)} .hidden=${n||!r}><slot name=${Rt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${Se(Jt.footerEnd)} .hidden=${n||!e}><slot name=${Rt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${Se(Jt.footerActions)} .hidden=${n||!i}>${Xt("footer-actions-slot",_e`<slot name=${Rt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return _e`<div class=${Se(Jt.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${dt(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return _e`<div class=${Se(Jt.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Rt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return _e`<div class=${Se(Jt.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Rt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return _e`<div class=${Se(Jt.fabContainer)} .hidden=${!this.hasFab}><slot name=${Rt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:e,loading:r,isClosed:n}=this,i=_e`<article .ariaBusy=${r} class=${Se(Jt.container)} .hidden=${n} ${dt(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${Xt("alerts",_e`<slot name=${Rt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return ic({disabled:e,children:_e`${r?_e`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Lt("calcite-panel",M5)});var nN=N(()=>{Hy();tN();H4();rN()});function dX(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uX,gb,fX,Mg,iN=N(()=>{uX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};gb={exports:{}};gb.exports;(function(t,e){(function(r,n){t.exports=n()})(uX,function(){function r(p,f){var w=Object.keys(p);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(p);f&&(_=_.filter(function(C){return Object.getOwnPropertyDescriptor(p,C).enumerable})),w.push.apply(w,_)}return w}function n(p){for(var f=1;f<arguments.length;f++){var w=arguments[f]!=null?arguments[f]:{};f%2?r(Object(w),!0).forEach(function(_){a(p,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(p,_,Object.getOwnPropertyDescriptor(w,_))})}return p}function i(p){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(p)}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function s(p,f){for(var w=0;w<f.length;w++){var _=f[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,k(_.key),_)}}function c(p,f,w){return f&&s(p.prototype,f),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p,f,w){return(f=k(f))in p?Object.defineProperty(p,f,{value:w,enumerable:!0,configurable:!0,writable:!0}):p[f]=w,p}function d(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),f&&g(p,f)}function h(p){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},h(p)}function g(p,f){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(p,f)}function v(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function E(p){var f=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(p);if(f){var C=h(this).constructor;w=Reflect.construct(_,arguments,C)}else w=_.apply(this,arguments);return function(T,A){if(A&&(typeof A=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(T)}(this,w)}}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(p,f,w){var _=function(T,A){for(;!Object.prototype.hasOwnProperty.call(T,A)&&(T=h(T))!==null;);return T}(p,f);if(_){var C=Object.getOwnPropertyDescriptor(_,f);return C.get?C.get.call(arguments.length<3?p:w):C.value}},M.apply(this,arguments)}function k(p){var f=function(w,_){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var T=C.call(w,_);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}(p,"string");return typeof f=="symbol"?f:f+""}var F=function(p){return!(!p||!p.Window)&&p instanceof p.Window},z=void 0,B=void 0;function q(p){z=p;var f=p.document.createTextNode("");f.ownerDocument!==p.document&&typeof p.wrap=="function"&&p.wrap(f)===f&&(p=p.wrap(p)),B=p}function V(p){return F(p)?p:(p.ownerDocument||p).defaultView||B.window}typeof window<"u"&&window&&q(window);var X=function(p){return!!p&&i(p)==="object"},Q=function(p){return typeof p=="function"},$={window:function(p){return p===B||F(p)},docFrag:function(p){return X(p)&&p.nodeType===11},object:X,func:Q,number:function(p){return typeof p=="number"},bool:function(p){return typeof p=="boolean"},string:function(p){return typeof p=="string"},element:function(p){if(!p||i(p)!=="object")return!1;var f=V(p)||B;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?p instanceof Element||p instanceof f.Element:p.nodeType===1&&typeof p.nodeName=="string"},plainObject:function(p){return X(p)&&!!p.constructor&&/function Object\b/.test(p.constructor.toString())},array:function(p){return X(p)&&p.length!==void 0&&Q(p.splice)}};function me(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.prepared.axis;w==="x"?(f.coords.cur.page.y=f.coords.start.page.y,f.coords.cur.client.y=f.coords.start.client.y,f.coords.velocity.client.y=0,f.coords.velocity.page.y=0):w==="y"&&(f.coords.cur.page.x=f.coords.start.page.x,f.coords.cur.client.x=f.coords.start.client.x,f.coords.velocity.client.x=0,f.coords.velocity.page.x=0)}}function ke(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var C=_==="x"?"y":"x";f.page[C]=w.coords.start.page[C],f.client[C]=w.coords.start.client[C],f.delta[C]=0}}}var Ce={id:"actions/drag",install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.draggable=Ce.draggable,f.map.drag=Ce,f.methodDict.drag="draggable",_.actions.drag=Ce.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":ke,"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.buttons,C=w.options.drag;if(C&&C.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||_&w.options.drag.mouseButtons))return p.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(p){return $.object(p)?(this.options.drag.enabled=p.enabled!==!1,this.setPerAction("drag",p),this.setOnEvents("drag",p),/^(xy|x|y|start)$/.test(p.lockAxis)&&(this.options.drag.lockAxis=p.lockAxis),/^(xy|x|y)$/.test(p.startAxis)&&(this.options.drag.startAxis=p.startAxis),this):$.bool(p)?(this.options.drag.enabled=p,this):this.options.drag},beforeMove:me,move:ke,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(p){return p.search("drag")===0}},Ne=Ce,we={init:function(p){var f=p;we.document=f.document,we.DocumentFragment=f.DocumentFragment||ce,we.SVGElement=f.SVGElement||ce,we.SVGSVGElement=f.SVGSVGElement||ce,we.SVGElementInstance=f.SVGElementInstance||ce,we.Element=f.Element||ce,we.HTMLElement=f.HTMLElement||we.Element,we.Event=f.Event,we.Touch=f.Touch||ce,we.PointerEvent=f.PointerEvent||f.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ce(){}var H=we,te={init:function(p){var f=H.Element,w=p.navigator||{};te.supportsTouch="ontouchstart"in p||$.func(p.DocumentTouch)&&H.document instanceof p.DocumentTouch,te.supportsPointerEvent=w.pointerEnabled!==!1&&!!H.PointerEvent,te.isIOS=/iP(hone|od|ad)/.test(w.platform),te.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),te.isIe9=/MSIE 9/.test(w.userAgent),te.isOperaMobile=w.appName==="Opera"&&te.supportsTouch&&/Presto/.test(w.userAgent),te.prefixedMatchesSelector="matches"in f.prototype?"matches":"webkitMatchesSelector"in f.prototype?"webkitMatchesSelector":"mozMatchesSelector"in f.prototype?"mozMatchesSelector":"oMatchesSelector"in f.prototype?"oMatchesSelector":"msMatchesSelector",te.pEventTypes=te.supportsPointerEvent?H.PointerEvent===p.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,te.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},de=te;function ue(p,f){if(p.contains)return p.contains(f);for(;f;){if(f===p)return!0;f=f.parentNode}return!1}function ve(p,f){for(;$.element(p);){if(De(p,f))return p;p=ye(p)}return null}function ye(p){var f=p.parentNode;if($.docFrag(f)){for(;(f=f.host)&&$.docFrag(f););return f}return f}function De(p,f){return B!==z&&(f=f.replace(/\/deep\//g," ")),p[de.prefixedMatchesSelector](f)}var Ke=function(p){return p.parentNode||p.host};function mt(p,f){for(var w,_=[],C=p;(w=Ke(C))&&C!==f&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function mr(p,f,w){for(;$.element(p);){if(De(p,f))return!0;if((p=ye(p))===w)return De(p,f)}return!1}function Kt(p){return p.correspondingUseElement||p}function Qt(p){var f=p instanceof H.SVGElement?p.getBoundingClientRect():p.getClientRects()[0];return f&&{left:f.left,right:f.right,top:f.top,bottom:f.bottom,width:f.width||f.right-f.left,height:f.height||f.bottom-f.top}}function Kn(p){var f,w=Qt(p);if(!de.isIOS7&&w){var _={x:(f=(f=V(p))||B).scrollX||f.document.documentElement.scrollLeft,y:f.scrollY||f.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function Cn(p){for(var f=[];p;)f.push(p),p=ye(p);return f}function hn(p){return!!$.string(p)&&(H.document.querySelector(p),!0)}function Ue(p,f){for(var w in f)p[w]=f[w];return p}function gu(p,f,w){return p==="parent"?ye(w):p==="self"?f.getRect(w):ve(w,p)}function vo(p,f,w,_){var C=p;return $.string(C)?C=gu(C,f,w):$.func(C)&&(C=C.apply(void 0,_)),$.element(C)&&(C=Kn(C)),C}function Di(p){return p&&{x:"x"in p?p.x:p.left,y:"y"in p?p.y:p.top}}function gc(p){return!p||"x"in p&&"y"in p||((p=Ue({},p)).x=p.left||0,p.y=p.top||0,p.width=p.width||(p.right||0)-p.x,p.height=p.height||(p.bottom||0)-p.y),p}function Vs(p,f,w){p.left&&(f.left+=w.x),p.right&&(f.right+=w.x),p.top&&(f.top+=w.y),p.bottom&&(f.bottom+=w.y),f.width=f.right-f.left,f.height=f.bottom-f.top}function Jo(p,f,w){var _=w&&p.options[w];return Di(vo(_&&_.origin||p.options.origin,p,f,[p&&f]))||{x:0,y:0}}function yi(p,f){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(R){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},$.string(p)&&p.search(" ")!==-1&&(p=wu(p)),$.array(p))return p.forEach(function(R){return yi(R,f,w,_)}),_;if($.object(p)&&(f=p,p=""),$.func(f)&&w(p))_[p]=_[p]||[],_[p].push(f);else if($.array(f))for(var C=0,T=f;C<T.length;C++){var A=T[C];yi(p,A,w,_)}else if($.object(f))for(var O in f)yi(wu(O).map(function(R){return"".concat(p).concat(R)}),f[O],w,_);return _}function wu(p){return p.trim().split(/ +/)}var Ko=function(p,f){return Math.sqrt(p*p+f*f)},Lp=["webkit","moz"];function _o(p,f){p.__set||(p.__set={});var w=function(C){if(Lp.some(function(T){return C.indexOf(T)===0}))return 1;typeof p[C]!="function"&&C!=="__set"&&Object.defineProperty(p,C,{get:function(){return C in p.__set?p.__set[C]:p.__set[C]=f[C]},set:function(T){p.__set[C]=T},configurable:!0})};for(var _ in f)w(_);return p}function zs(p,f){p.page=p.page||{},p.page.x=f.page.x,p.page.y=f.page.y,p.client=p.client||{},p.client.x=f.client.x,p.client.y=f.client.y,p.timeStamp=f.timeStamp}function wc(p){p.page.x=0,p.page.y=0,p.client.x=0,p.client.y=0}function yc(p){return p instanceof H.Event||p instanceof H.Touch}function hr(p,f,w){return p=p||"page",(w=w||{}).x=f[p+"X"],w.y=f[p+"Y"],w}function yu(p,f){return f=f||{x:0,y:0},de.isOperaMobile&&yc(p)?(hr("screen",p,f),f.x+=window.scrollX,f.y+=window.scrollY):hr("page",p,f),f}function So(p){return $.number(p.pointerId)?p.pointerId:p.identifier}function Ws(p,f,w){var _=f.length>1?bu(f):f[0];yu(_,p.page),function(C,T){T=T||{},de.isOperaMobile&&yc(C)?hr("screen",C,T):hr("client",C,T)}(_,p.client),p.timeStamp=w}function bc(p){var f=[];return $.array(p)?(f[0]=p[0],f[1]=p[1]):p.type==="touchend"?p.touches.length===1?(f[0]=p.touches[0],f[1]=p.changedTouches[0]):p.touches.length===0&&(f[0]=p.changedTouches[0],f[1]=p.changedTouches[1]):(f[0]=p.touches[0],f[1]=p.touches[1]),f}function bu(p){for(var f={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<p.length;w++){var _=p[w];for(var C in f)f[C]+=_[C]}for(var T in f)f[T]/=p.length;return f}function vc(p){if(!p.length)return null;var f=bc(p),w=Math.min(f[0].pageX,f[1].pageX),_=Math.min(f[0].pageY,f[1].pageY),C=Math.max(f[0].pageX,f[1].pageX),T=Math.max(f[0].pageY,f[1].pageY);return{x:w,y:_,left:w,top:_,right:C,bottom:T,width:C-w,height:T-_}}function _c(p,f){var w=f+"X",_=f+"Y",C=bc(p),T=C[0][w]-C[1][w],A=C[0][_]-C[1][_];return Ko(T,A)}function Sc(p,f){var w=f+"X",_=f+"Y",C=bc(p),T=C[1][w]-C[0][w],A=C[1][_]-C[0][_];return 180*Math.atan2(A,T)/Math.PI}function xc(p){return $.string(p.pointerType)?p.pointerType:$.number(p.pointerType)?[void 0,void 0,"touch","pen","mouse"][p.pointerType]:/touch/.test(p.type||"")||p instanceof H.Touch?"touch":"mouse"}function vu(p){var f=$.func(p.composedPath)?p.composedPath():p.path;return[Kt(f?f[0]:p.target),Kt(p.currentTarget)]}var Fi=function(){function p(f){o(this,p),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=f}return c(p,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}();Object.defineProperty(Fi.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var _u=function(p,f){for(var w=0;w<f.length;w++){var _=f[w];p.push(_)}return p},Ec=function(p){return _u([],p)},Qo=function(p,f){for(var w=0;w<p.length;w++)if(f(p[w],w,p))return w;return-1},bi=function(p,f){return p[Qo(p,f)]},xo=function(p){d(w,p);var f=E(w);function w(_,C,T){var A;o(this,w),(A=f.call(this,C._interaction)).dropzone=void 0,A.dragEvent=void 0,A.relatedTarget=void 0,A.draggable=void 0,A.propagationStopped=!1,A.immediatePropagationStopped=!1;var O=T==="dragleave"?_.prev:_.cur,R=O.element,U=O.dropzone;return A.type=T,A.target=R,A.currentTarget=R,A.dropzone=U,A.dragEvent=C,A.relatedTarget=C.target,A.draggable=C.interactable,A.timeStamp=C.timeStamp,A}return c(w,[{key:"reject",value:function(){var _=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var T=C.activeDrops,A=Qo(T,function(R){var U=R.dropzone,D=R.element;return U===_.dropzone&&D===_.target});C.activeDrops.splice(A,1);var O=new w(C,this.dragEvent,"dropdeactivate");O.dropzone=this.dropzone,O.target=this.target,this.dropzone.fire(O)}else this.dropzone.fire(new w(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}(Fi);function $i(p,f){for(var w=0,_=p.slice();w<_.length;w++){var C=_[w],T=C.dropzone,A=C.element;f.dropzone=T,f.target=A,T.fire(f),f.propagationStopped=f.immediatePropagationStopped=!1}}function Cc(p,f){for(var w=function(T,A){for(var O=[],R=0,U=T.interactables.list;R<U.length;R++){var D=U[R];if(D.options.drop.enabled){var Z=D.options.drop.accept;if(!($.element(Z)&&Z!==A||$.string(Z)&&!De(A,Z)||$.func(Z)&&!Z({dropzone:D,draggableElement:A})))for(var oe=0,ge=D.getAllElements();oe<ge.length;oe++){var he=ge[oe];he!==A&&O.push({dropzone:D,element:he,rect:D.getRect(he)})}}}return O}(p,f),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Su(p,f,w){for(var _=p.dropState,C=p.interactable,T=p.element,A=[],O=0,R=_.activeDrops;O<R.length;O++){var U=R[O],D=U.dropzone,Z=U.element,oe=U.rect,ge=D.dropCheck(f,w,C,T,Z,oe);A.push(ge?Z:null)}var he=function(be){for(var Oe,Ie,$e,Xe=[],Qe=0;Qe<be.length;Qe++){var Be=be[Qe],Je=be[Oe];if(Be&&Qe!==Oe)if(Je){var wr=Ke(Be),vt=Ke(Je);if(wr!==Be.ownerDocument)if(vt!==Be.ownerDocument)if(wr!==vt){Xe=Xe.length?Xe:mt(Je);var Rr=void 0;if(Je instanceof H.HTMLElement&&Be instanceof H.SVGElement&&!(Be instanceof H.SVGSVGElement)){if(Be===vt)continue;Rr=Be.ownerSVGElement}else Rr=Be;for(var gn=mt(Rr,Je.ownerDocument),Tn=0;gn[Tn]&&gn[Tn]===Xe[Tn];)Tn++;var cs=[gn[Tn-1],gn[Tn],Xe[Tn]];if(cs[0])for(var ot=cs[0].lastChild;ot;){if(ot===cs[1]){Oe=Qe,Xe=gn;break}if(ot===cs[2])break;ot=ot.previousSibling}}else $e=Je,(parseInt(V(Ie=Be).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(V($e).getComputedStyle($e).zIndex,10)||0)&&(Oe=Qe);else Oe=Qe}else Oe=Qe}return Oe}(A);return _.activeDrops[he]||null}function Tc(p,f,w){var _=p.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(C.activate=new xo(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new xo(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new xo(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new xo(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new xo(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new xo(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Bs(p,f){var w=p.dropState,_=w.activeDrops,C=w.cur,T=w.prev;f.leave&&T.dropzone.fire(f.leave),f.enter&&C.dropzone.fire(f.enter),f.move&&C.dropzone.fire(f.move),f.drop&&C.dropzone.fire(f.drop),f.deactivate&&$i(_,f.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function xu(p,f){var w=p.interaction,_=p.iEvent,C=p.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;f.dynamicDrop&&(T.activeDrops=Cc(f,w.element));var A=_,O=Su(w,A,C);T.rejected=T.rejected&&!!O&&O.dropzone===T.cur.dropzone&&O.element===T.cur.element,T.cur.dropzone=O&&O.dropzone,T.cur.element=O&&O.element,T.events=Tc(w,0,A)}}var Eu={id:"actions/drop",install:function(p){var f=p.actions,w=p.interactStatic,_=p.Interactable,C=p.defaults;p.usePlugin(Ne),_.prototype.dropzone=function(T){return function(A,O){if($.object(O)){if(A.options.drop.enabled=O.enabled!==!1,O.listeners){var R=yi(O.listeners),U=Object.keys(R).reduce(function(Z,oe){return Z[/^(enter|leave)/.test(oe)?"drag".concat(oe):/^(activate|deactivate|move)/.test(oe)?"drop".concat(oe):oe]=R[oe],Z},{}),D=A.options.drop.listeners;D&&A.off(D),A.on(U),A.options.drop.listeners=U}return $.func(O.ondrop)&&A.on("drop",O.ondrop),$.func(O.ondropactivate)&&A.on("dropactivate",O.ondropactivate),$.func(O.ondropdeactivate)&&A.on("dropdeactivate",O.ondropdeactivate),$.func(O.ondragenter)&&A.on("dragenter",O.ondragenter),$.func(O.ondragleave)&&A.on("dragleave",O.ondragleave),$.func(O.ondropmove)&&A.on("dropmove",O.ondropmove),/^(pointer|center)$/.test(O.overlap)?A.options.drop.overlap=O.overlap:$.number(O.overlap)&&(A.options.drop.overlap=Math.max(Math.min(1,O.overlap),0)),"accept"in O&&(A.options.drop.accept=O.accept),"checker"in O&&(A.options.drop.checker=O.checker),A}return $.bool(O)?(A.options.drop.enabled=O,A):A.options.drop}(this,T)},_.prototype.dropCheck=function(T,A,O,R,U,D){return function(Z,oe,ge,he,be,Oe,Ie){var $e=!1;if(!(Ie=Ie||Z.getRect(Oe)))return!!Z.options.drop.checker&&Z.options.drop.checker(oe,ge,$e,Z,Oe,he,be);var Xe=Z.options.drop.overlap;if(Xe==="pointer"){var Qe=Jo(he,be,"drag"),Be=yu(oe);Be.x+=Qe.x,Be.y+=Qe.y;var Je=Be.x>Ie.left&&Be.x<Ie.right,wr=Be.y>Ie.top&&Be.y<Ie.bottom;$e=Je&&wr}var vt=he.getRect(be);if(vt&&Xe==="center"){var Rr=vt.left+vt.width/2,gn=vt.top+vt.height/2;$e=Rr>=Ie.left&&Rr<=Ie.right&&gn>=Ie.top&&gn<=Ie.bottom}return vt&&$.number(Xe)&&($e=Math.max(0,Math.min(Ie.right,vt.right)-Math.max(Ie.left,vt.left))*Math.max(0,Math.min(Ie.bottom,vt.bottom)-Math.max(Ie.top,vt.top))/(vt.width*vt.height)>=Xe),Z.options.drop.checker&&($e=Z.options.drop.checker(oe,ge,$e,Z,Oe,he,be)),$e}(this,T,A,O,R,U,D)},w.dynamicDrop=function(T){return $.bool(T)?(p.dynamicDrop=T,w):p.dynamicDrop},Ue(f.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),f.methodDict.drop="dropzone",p.dynamicDrop=!1,C.actions.drop=Eu.defaults},listeners:{"interactions:before-action-start":function(p){var f=p.interaction;f.prepared.name==="drag"&&(f.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(p,f){var w=p.interaction,_=(p.event,p.iEvent);if(w.prepared.name==="drag"){var C=w.dropState;C.activeDrops=[],C.events={},C.activeDrops=Cc(f,w.element),C.events=Tc(w,0,_),C.events.activate&&($i(C.activeDrops,C.events.activate),f.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":xu,"interactions:after-action-move":function(p,f){var w=p.interaction,_=p.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Bs(w,C.events),f.fire("actions/drop:move",{interaction:w,dragEvent:_}),C.events={}}},"interactions:action-end":function(p,f){if(p.interaction.prepared.name==="drag"){var w=p.interaction,_=p.iEvent;xu(p,f),Bs(w,w.dropState.events),f.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:Cc,getDrop:Su,getDropEvents:Tc,fireDropEvents:Bs,filterEventType:function(p){return p.search("drag")===0||p.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},kp=Eu;function G(p){var f=p.interaction,w=p.iEvent,_=p.phase;if(f.prepared.name==="gesture"){var C=f.pointers.map(function(U){return U.pointer}),T=_==="start",A=_==="end",O=f.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=_c(C,O),w.box=vc(C),w.scale=1,w.ds=0,w.angle=Sc(C,O),w.da=0,f.gesture.startDistance=w.distance,f.gesture.startAngle=w.angle;else if(A||f.pointers.length<2){var R=f.prevEvent;w.distance=R.distance,w.box=R.box,w.scale=R.scale,w.ds=0,w.angle=R.angle,w.da=0}else w.distance=_c(C,O),w.box=vc(C),w.scale=w.distance/f.gesture.startDistance,w.angle=Sc(C,O),w.ds=w.scale-f.gesture.scale,w.da=w.angle-f.gesture.angle;f.gesture.distance=w.distance,f.gesture.angle=w.angle,$.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(f.gesture.scale=w.scale)}}var Eo={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.gesturable=function(C){return $.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):$.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},f.map.gesture=Eo,f.methodDict.gesture="gesturable",_.actions.gesture=Eo.defaults},listeners:{"interactions:action-start":G,"interactions:action-move":G,"interactions:action-end":G,"interactions:new":function(p){p.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(p){if(!(p.interaction.pointers.length<2)){var f=p.interactable.options.gesture;if(f&&f.enabled)return p.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(p){return p.search("gesture")===0}},Cu=Eo;function Tu(p,f,w,_,C,T,A){if(!f)return!1;if(f===!0){var O=$.number(T.width)?T.width:T.right-T.left,R=$.number(T.height)?T.height:T.bottom-T.top;if(A=Math.min(A,Math.abs((p==="left"||p==="right"?O:R)/2)),O<0&&(p==="left"?p="right":p==="right"&&(p="left")),R<0&&(p==="top"?p="bottom":p==="bottom"&&(p="top")),p==="left"){var U=O>=0?T.left:T.right;return w.x<U+A}if(p==="top"){var D=R>=0?T.top:T.bottom;return w.y<D+A}if(p==="right")return w.x>(O>=0?T.right:T.left)-A;if(p==="bottom")return w.y>(R>=0?T.bottom:T.top)-A}return!!$.element(_)&&($.element(f)?f===_:mr(_,f,C))}function Pc(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=f;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var Kr,vi,Vn={id:"actions/resize",before:["actions/drag"],install:function(p){var f=p.actions,w=p.browser,_=p.Interactable,C=p.defaults;Vn.cursors=function(T){return T.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),Vn.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(A,O,R){return $.object(O)?(A.options.resize.enabled=O.enabled!==!1,A.setPerAction("resize",O),A.setOnEvents("resize",O),$.string(O.axis)&&/^x$|^y$|^xy$/.test(O.axis)?A.options.resize.axis=O.axis:O.axis===null&&(A.options.resize.axis=R.defaults.actions.resize.axis),$.bool(O.preserveAspectRatio)?A.options.resize.preserveAspectRatio=O.preserveAspectRatio:$.bool(O.square)&&(A.options.resize.square=O.square),A):$.bool(O)?(A.options.resize.enabled=O,A):A.options.resize}(this,T,p)},f.map.resize=Vn,f.methodDict.resize="resizable",C.actions.resize=Vn.defaults},listeners:{"interactions:new":function(p){p.interaction.resizeAxes="xy"},"interactions:action-start":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.rect;_._rects={start:Ue({},T),corrected:Ue({},T),previous:Ue({},T),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=_.prepared.edges,C.rect=_._rects.corrected,C.deltaRect=_._rects.delta}})(p),Pc(p)},"interactions:action-move":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.interactable.options.resize.invert,A=T==="reposition"||T==="negate",O=_.rect,R=_._rects,U=R.start,D=R.corrected,Z=R.delta,oe=R.previous;if(Ue(oe,D),A){if(Ue(D,O),T==="reposition"){if(D.top>D.bottom){var ge=D.top;D.top=D.bottom,D.bottom=ge}if(D.left>D.right){var he=D.left;D.left=D.right,D.right=he}}}else D.top=Math.min(O.top,U.bottom),D.bottom=Math.max(O.bottom,U.top),D.left=Math.min(O.left,U.right),D.right=Math.max(O.right,U.left);for(var be in D.width=D.right-D.left,D.height=D.bottom-D.top,D)Z[be]=D[be]-oe[be];C.edges=_.prepared.edges,C.rect=D,C.deltaRect=Z}})(p),Pc(p)},"interactions:action-end":function(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=f;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.element,C=p.rect,T=p.buttons;if(C){var A=Ue({},f.coords.cur.page),O=w.options.resize;if(O&&O.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||T&O.mouseButtons)){if($.object(O.edges)){var R={left:!1,right:!1,top:!1,bottom:!1};for(var U in R)R[U]=Tu(U,O.edges[U],A,f._latestPointer.eventTarget,_,C,O.margin||Vn.defaultMargin);R.left=R.left&&!R.right,R.top=R.top&&!R.bottom,(R.left||R.right||R.top||R.bottom)&&(p.action={name:"resize",edges:R})}else{var D=O.axis!=="y"&&A.x>C.right-Vn.defaultMargin,Z=O.axis!=="x"&&A.y>C.bottom-Vn.defaultMargin;(D||Z)&&(p.action={name:"resize",axes:(D?"x":"")+(Z?"y":"")})}return!p.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(p){var f=p.edges,w=p.axis,_=p.name,C=Vn.cursors,T=null;if(w)T=C[_+w];else if(f){for(var A="",O=0,R=["top","bottom","left","right"];O<R.length;O++){var U=R[O];f[U]&&(A+=U)}T=C[A]}return T},filterEventType:function(p){return p.search("resize")===0},defaultMargin:null},Pu=Vn,Mu={id:"actions",install:function(p){p.usePlugin(Cu),p.usePlugin(Pu),p.usePlugin(Ne),p.usePlugin(kp)}},Gs=0,Qn={request:function(p){return Kr(p)},cancel:function(p){return vi(p)},init:function(p){if(Kr=p.requestAnimationFrame,vi=p.cancelAnimationFrame,!Kr)for(var f=["ms","moz","webkit","o"],w=0;w<f.length;w++){var _=f[w];Kr=p["".concat(_,"RequestAnimationFrame")],vi=p["".concat(_,"CancelAnimationFrame")]||p["".concat(_,"CancelRequestAnimationFrame")]}Kr=Kr&&Kr.bind(p),vi=vi&&vi.bind(p),Kr||(Kr=function(C){var T=Date.now(),A=Math.max(0,16-(T-Gs)),O=p.setTimeout(function(){C(T+A)},A);return Gs=T+A,O},vi=function(C){return clearTimeout(C)})}},je={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(p){je.isScrolling=!0,Qn.cancel(je.i),p.autoScroll=je,je.interaction=p,je.prevTime=je.now(),je.i=Qn.request(je.scroll)},stop:function(){je.isScrolling=!1,je.interaction&&(je.interaction.autoScroll=null),Qn.cancel(je.i)},scroll:function(){var p=je.interaction,f=p.interactable,w=p.element,_=p.prepared.name,C=f.options[_].autoScroll,T=js(C.container,f,w),A=je.now(),O=(A-je.prevTime)/1e3,R=C.speed*O;if(R>=1){var U={x:je.x*R,y:je.y*R};if(U.x||U.y){var D=Mc(T);$.window(T)?T.scrollBy(U.x,U.y):T&&(T.scrollLeft+=U.x,T.scrollTop+=U.y);var Z=Mc(T),oe={x:Z.x-D.x,y:Z.y-D.y};(oe.x||oe.y)&&f.fire({type:"autoscroll",target:w,interactable:f,delta:oe,interaction:p,container:T})}je.prevTime=A}je.isScrolling&&(Qn.cancel(je.i),je.i=Qn.request(je.scroll))},check:function(p,f){var w;return(w=p.options[f].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(p){var f=p.interaction,w=p.pointer;if(f.interacting()&&je.check(f.interactable,f.prepared.name))if(f.simulation)je.x=je.y=0;else{var _,C,T,A,O=f.interactable,R=f.element,U=f.prepared.name,D=O.options[U].autoScroll,Z=js(D.container,O,R);if($.window(Z))A=w.clientX<je.margin,_=w.clientY<je.margin,C=w.clientX>Z.innerWidth-je.margin,T=w.clientY>Z.innerHeight-je.margin;else{var oe=Qt(Z);A=w.clientX<oe.left+je.margin,_=w.clientY<oe.top+je.margin,C=w.clientX>oe.right-je.margin,T=w.clientY>oe.bottom-je.margin}je.x=C?1:A?-1:0,je.y=T?1:_?-1:0,je.isScrolling||(je.margin=D.margin,je.speed=D.speed,je.start(f))}}};function js(p,f,w){return($.string(p)?gu(p,f,w):p)||V(w)}function Mc(p){return $.window(p)&&(p=window.document.body),{x:p.scrollLeft,y:p.scrollTop}}var Ac={id:"auto-scroll",install:function(p){var f=p.defaults,w=p.actions;p.autoScroll=je,je.now=function(){return p.now()},w.phaselessTypes.autoscroll=!0,f.perAction.autoScroll=je.defaults},listeners:{"interactions:new":function(p){p.interaction.autoScroll=null},"interactions:destroy":function(p){p.interaction.autoScroll=null,je.stop(),je.interaction&&(je.interaction=null)},"interactions:stop":je.stop,"interactions:action-move":function(p){return je.onInteractionMove(p)}}},Ic=Ac;function Co(p,f){var w=!1;return function(){return w||(B.console.warn(f),w=!0),p.apply(this,arguments)}}function qs(p,f){return p.name=f.name,p.axis=f.axis,p.edges=f.edges,p}function Au(p){return $.bool(p)?(this.options.styleCursor=p,this):p===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Iu(p){return $.func(p)?(this.options.actionChecker=p,this):p===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Lu={id:"auto-start/interactableMethods",install:function(p){var f=p.Interactable;f.prototype.getAction=function(w,_,C,T){var A=function(O,R,U,D,Z){var oe=O.getRect(D),ge=R.buttons||{0:1,1:4,3:8,4:16}[R.button],he={action:null,interactable:O,interaction:U,element:D,rect:oe,buttons:ge};return Z.fire("auto-start:check",he),he.action}(this,_,C,T,p);return this.options.actionChecker?this.options.actionChecker(w,_,A,this,T,C):A},f.prototype.ignoreFrom=Co(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),f.prototype.allowFrom=Co(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),f.prototype.actionChecker=Iu,f.prototype.styleCursor=Au}};function Lc(p,f,w,_,C){return f.testIgnoreAllow(f.options[p.name],w,_)&&f.options[p.name].enabled&&es(f,w,p,C)?p:null}function ku(p,f,w,_,C,T,A){for(var O=0,R=_.length;O<R;O++){var U=_[O],D=C[O],Z=U.getAction(f,w,p,D);if(Z){var oe=Lc(Z,U,D,T,A);if(oe)return{action:oe,interactable:U,element:D}}}return{action:null,interactable:null,element:null}}function kc(p,f,w,_,C){var T=[],A=[],O=_;function R(D){T.push(D),A.push(O)}for(;$.element(O);){T=[],A=[],C.interactables.forEachMatch(O,R);var U=ku(p,f,w,T,A,_,C);if(U.action&&!U.interactable.options[U.action.name].manualStart)return U;O=ye(O)}return{action:null,interactable:null,element:null}}function Oc(p,f,w){var _=f.action,C=f.interactable,T=f.element;_=_||{name:null},p.interactable=C,p.element=T,qs(p.prepared,_),p.rect=C&&_.name?C.getRect(T):null,Rc(p,w),w.fire("autoStart:prepared",{interaction:p})}function es(p,f,w,_){var C=p.options,T=C[w.name].max,A=C[w.name].maxPerElement,O=_.autoStart.maxInteractions,R=0,U=0,D=0;if(!(T&&A&&O))return!1;for(var Z=0,oe=_.interactions.list;Z<oe.length;Z++){var ge=oe[Z],he=ge.prepared.name;if(ge.interacting()&&(++R>=O||ge.interactable===p&&((U+=he===w.name?1:0)>=T||ge.element===f&&(D++,he===w.name&&D>=A))))return!1}return O>0}function Nc(p,f){return $.number(p)?(f.autoStart.maxInteractions=p,this):f.autoStart.maxInteractions}function Hs(p,f,w){var _=w.autoStart.cursorElement;_&&_!==p&&(_.style.cursor=""),p.ownerDocument.documentElement.style.cursor=f,p.style.cursor=f,w.autoStart.cursorElement=f?p:null}function Rc(p,f){var w=p.interactable,_=p.element,C=p.prepared;if(p.pointerType==="mouse"&&w&&w.options.styleCursor){var T="";if(C.name){var A=w.options[C.name].cursorChecker;T=$.func(A)?A(C,w,_,p._interacting):f.actions.map[C.name].getCursor(C)}Hs(p.element,T||"",f)}else f.autoStart.cursorElement&&Hs(f.autoStart.cursorElement,"",f)}var Ou={id:"auto-start/base",before:["actions"],install:function(p){var f=p.interactStatic,w=p.defaults;p.usePlugin(Lu),w.base.actionChecker=null,w.base.styleCursor=!0,Ue(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),f.maxInteractions=function(_){return Nc(_,p)},p.autoStart={maxInteractions:1/0,withinInteractionLimit:es,cursorElement:null}},listeners:{"interactions:down":function(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget;w.interacting()||Oc(w,kc(w,_,C,T,f),f)},"interactions:move":function(p,f){(function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Oc(C,kc(C,T,A,O,_),_)})(p,f),function(w,_){var C=w.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){_.fire("autoStart:before-start",w);var T=C.interactable,A=C.prepared.name;A&&T&&(T.options[A].manualStart||!es(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Rc(C,_)))}}(p,f)},"interactions:stop":function(p,f){var w=p.interaction,_=w.interactable;_&&_.options.styleCursor&&Hs(w.element,"",f)}},maxInteractions:Nc,withinInteractionLimit:es,validateAction:Lc},Ys=Ou,Nu={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(p,f){var w=p.interaction,_=p.eventTarget,C=p.dx,T=p.dy;if(w.prepared.name==="drag"){var A=Math.abs(C),O=Math.abs(T),R=w.interactable.options.drag,U=R.startAxis,D=A>O?"x":A<O?"y":"xy";if(w.prepared.axis=R.lockAxis==="start"?D[0]:R.lockAxis,D!=="xy"&&U!=="xy"&&U!==D){w.prepared.name=null;for(var Z=_,oe=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Z,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Z);if(Oe&&Oe.name==="drag"&&function(Ie,$e){if(!$e)return!1;var Xe=$e.options.drag.startAxis;return Ie==="xy"||Xe==="xy"||Xe===Ie}(D,he)&&Ys.validateAction(Oe,he,Z,_,f))return he}}};$.element(Z);){var ge=f.interactables.forEachMatch(Z,oe);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Z;break}Z=ye(Z)}}}}}};function Zs(p){var f=p.prepared&&p.prepared.name;if(!f)return null;var w=p.interactable.options;return w[f].hold||w[f].delay}var Ru={id:"auto-start/hold",install:function(p){var f=p.defaults;p.usePlugin(Ys),f.perAction.hold=0,f.perAction.delay=0},listeners:{"interactions:new":function(p){p.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(p){var f=p.interaction,w=Zs(f);w>0&&(f.autoStartHoldTimer=setTimeout(function(){f.start(f.prepared,f.interactable,f.element)},w))},"interactions:move":function(p){var f=p.interaction,w=p.duplicate;f.autoStartHoldTimer&&f.pointerWasMoved&&!w&&(clearTimeout(f.autoStartHoldTimer),f.autoStartHoldTimer=null)},"autoStart:before-start":function(p){var f=p.interaction;Zs(f)>0&&(f.prepared.name=null)}},getHoldDuration:Zs},Du=Ru,Fu={id:"auto-start",install:function(p){p.usePlugin(Ys),p.usePlugin(Du),p.usePlugin(Nu)}},$u=function(p){return/^(always|never|auto)$/.test(p)?(this.options.preventDefault=p,this):$.bool(p)?(this.options.preventDefault=p?"always":"never",this):this.options.preventDefault};function Uu(p){var f=p.interaction,w=p.event;f.interactable&&f.interactable.checkAndPreventDefault(w)}var Dc={id:"core/interactablePreventDefault",install:function(p){var f=p.Interactable;f.prototype.preventDefault=$u,f.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var A=_.options.preventDefault;if(A!=="never")if(A!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var O=V(T.target).document,R=C.getDocOptions(O);if(!R||!R.events||R.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||$.element(T.target)&&De(T.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||T.preventDefault()}else T.preventDefault()}(this,p,w)},p.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,C=p.interactions.list;_<C.length;_++){var T=C[_];if(T.element&&(T.element===w.target||ue(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(p,f){return p["interactions:".concat(f)]=Uu,p},{})};function ts(p,f){if(f.phaselessTypes[p])return!0;for(var w in f.map)if(p.indexOf(w)===0&&p.substr(w.length)in f.phases)return!0;return!1}function Ui(p){var f={};for(var w in p){var _=p[w];$.plainObject(_)?f[w]=Ui(_):$.array(_)?f[w]=Ec(_):f[w]=_}return f}var Xs=function(){function p(f){o(this,p),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=f,this.result=rs(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(p,[{key:"start",value:function(f,w){var _,C,T=f.phase,A=this.interaction,O=function(U){var D=U.interactable.options[U.prepared.name],Z=D.modifiers;return Z&&Z.length?Z:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(oe){var ge=D[oe];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(oe){return!!oe})}(A);this.prepareStates(O),this.startEdges=Ue({},A.edges),this.edges=Ue({},this.startEdges),this.startOffset=(_=A.rect,C=w,_?{left:C.x-_.left,top:C.y-_.top,right:_.right-C.x,bottom:_.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var R=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=rs(),this.startAll(R),this.result=this.setAll(R)}},{key:"fillArg",value:function(f){var w=this.interaction;return f.interaction=w,f.interactable=w.interactable,f.element=w.element,f.rect||(f.rect=w.rect),f.edges||(f.edges=this.startEdges),f.startOffset=this.startOffset,f}},{key:"startAll",value:function(f){for(var w=0,_=this.states;w<_.length;w++){var C=_[w];C.methods.start&&(f.state=C,C.methods.start(f))}}},{key:"setAll",value:function(f){var w=f.phase,_=f.preEnd,C=f.skipModifiers,T=f.rect,A=f.edges;f.coords=Ue({},f.pageCoords),f.rect=Ue({},T),f.edges=Ue({},A);for(var O=C?this.states.slice(C):this.states,R=rs(f.coords,f.rect),U=0;U<O.length;U++){var D,Z=O[U],oe=Z.options,ge=Ue({},f.coords),he=null;(D=Z.methods)!=null&&D.set&&this.shouldDo(oe,_,w)&&(f.state=Z,he=Z.methods.set(f),Vs(f.edges,f.rect,{x:f.coords.x-ge.x,y:f.coords.y-ge.y})),R.eventProps.push(he)}Ue(this.edges,f.edges),R.delta.x=f.coords.x-f.pageCoords.x,R.delta.y=f.coords.y-f.pageCoords.y,R.rectDelta.left=f.rect.left-T.left,R.rectDelta.right=f.rect.right-T.right,R.rectDelta.top=f.rect.top-T.top,R.rectDelta.bottom=f.rect.bottom-T.bottom;var be=this.result.coords,Oe=this.result.rect;if(be&&Oe){var Ie=R.rect.left!==Oe.left||R.rect.right!==Oe.right||R.rect.top!==Oe.top||R.rect.bottom!==Oe.bottom;R.changed=Ie||be.x!==R.coords.x||be.y!==R.coords.y}return R}},{key:"applyToInteraction",value:function(f){var w=this.interaction,_=f.phase,C=w.coords.cur,T=w.coords.start,A=this.result,O=this.startDelta,R=A.delta;_==="start"&&Ue(this.startDelta,A.delta);for(var U=0,D=[[T,O],[C,R]];U<D.length;U++){var Z=D[U],oe=Z[0],ge=Z[1];oe.page.x+=ge.x,oe.page.y+=ge.y,oe.client.x+=ge.x,oe.client.y+=ge.y}var he=this.result.rectDelta,be=f.rect||w.rect;be.left+=he.left,be.right+=he.right,be.top+=he.top,be.bottom+=he.bottom,be.width=be.right-be.left,be.height=be.bottom-be.top}},{key:"setAndApply",value:function(f){var w=this.interaction,_=f.phase,C=f.preEnd,T=f.skipModifiers,A=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:f.modifiedCoords||w.coords.cur.page}));if(this.result=A,!A.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(f.modifiedCoords){var O=w.coords.cur.page,R={x:f.modifiedCoords.x-O.x,y:f.modifiedCoords.y-O.y};A.coords.x+=R.x,A.coords.y+=R.y,A.delta.x+=R.x,A.delta.y+=R.y}this.applyToInteraction(f)}},{key:"beforeEnd",value:function(f){var w=f.interaction,_=f.event,C=this.states;if(C&&C.length){for(var T=!1,A=0;A<C.length;A++){var O=C[A];f.state=O;var R=O.options,U=O.methods,D=U.beforeEnd&&U.beforeEnd(f);if(D)return this.endResult=D,!1;T=T||!T&&this.shouldDo(R,!0,f.phase,!0)}T&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(f){var w=f.interaction;if(this.states&&this.states.length){var _=Ue({states:this.states,interactable:w.interactable,element:w.element,rect:null},f);this.fillArg(_);for(var C=0,T=this.states;C<T.length;C++){var A=T[C];_.state=A,A.methods.stop&&A.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(f){this.states=[];for(var w=0;w<f.length;w++){var _=f[w],C=_.options,T=_.methods,A=_.name;this.states.push({options:C,methods:T,index:w,name:A})}return this.states}},{key:"restoreInteractionCoords",value:function(f){var w=f.interaction,_=w.coords,C=w.rect,T=w.modification;if(T.result){for(var A=T.startDelta,O=T.result,R=O.delta,U=O.rectDelta,D=0,Z=[[_.start,A],[_.cur,R]];D<Z.length;D++){var oe=Z[D],ge=oe[0],he=oe[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=U.left,C.right-=U.right,C.top-=U.top,C.bottom-=U.bottom}}},{key:"shouldDo",value:function(f,w,_,C){return!(!f||f.enabled===!1||C&&!f.endOnly||f.endOnly&&!w||_==="start"&&!f.setStart)}},{key:"copyFrom",value:function(f){this.startOffset=f.startOffset,this.startDelta=f.startDelta,this.startEdges=f.startEdges,this.edges=f.edges,this.states=f.states.map(function(w){return Ui(w)}),this.result=rs(Ue({},f.result.coords),Ue({},f.result.rect))}},{key:"destroy",value:function(){for(var f in this)this[f]=null}}]),p}();function rs(p,f){return{rect:f,coords:p,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function ei(p,f){var w=p.defaults,_={start:p.start,set:p.set,beforeEnd:p.beforeEnd,stop:p.stop},C=function(T){var A=T||{};for(var O in A.enabled=A.enabled!==!1,w)O in A||(A[O]=w[O]);var R={options:A,methods:_,name:f,enable:function(){return A.enabled=!0,R},disable:function(){return A.enabled=!1,R}};return R};return f&&typeof f=="string"&&(C._defaults=w,C._methods=_),C}function To(p){var f=p.iEvent,w=p.interaction.modification.result;w&&(f.modifiers=w.eventProps)}var Vu={id:"modifiers/base",before:["actions"],install:function(p){p.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(p){var f=p.interaction;f.modification=new Xs(f)},"interactions:before-action-start":function(p){var f=p.interaction,w=p.interaction.modification;w.start(p,f.coords.start.page),f.edges=w.edges,w.applyToInteraction(p)},"interactions:before-action-move":function(p){var f=p.interaction,w=f.modification,_=w.setAndApply(p);return f.edges=w.edges,_},"interactions:before-action-end":function(p){var f=p.interaction,w=f.modification,_=w.beforeEnd(p);return f.edges=w.startEdges,_},"interactions:action-start":To,"interactions:action-move":To,"interactions:action-end":To,"interactions:after-action-start":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-move":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:stop":function(p){return p.interaction.modification.stop(p)}}},Fc=Vu,$c={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Js=function(p){d(w,p);var f=E(w);function w(_,C,T,A,O,R,U){var D;o(this,w),(D=f.call(this,_)).relatedTarget=null,D.screenX=void 0,D.screenY=void 0,D.button=void 0,D.buttons=void 0,D.ctrlKey=void 0,D.shiftKey=void 0,D.altKey=void 0,D.metaKey=void 0,D.page=void 0,D.client=void 0,D.delta=void 0,D.rect=void 0,D.x0=void 0,D.y0=void 0,D.t0=void 0,D.dt=void 0,D.duration=void 0,D.clientX0=void 0,D.clientY0=void 0,D.velocity=void 0,D.speed=void 0,D.swipe=void 0,D.axes=void 0,D.preEnd=void 0,O=O||_.element;var Z=_.interactable,oe=(Z&&Z.options||$c).deltaSource,ge=Jo(Z,O,T),he=A==="start",be=A==="end",Oe=he?v(D):_.prevEvent,Ie=he?_.coords.start:be?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return D.page=Ue({},Ie.page),D.client=Ue({},Ie.client),D.rect=Ue({},_.rect),D.timeStamp=Ie.timeStamp,be||(D.page.x-=ge.x,D.page.y-=ge.y,D.client.x-=ge.x,D.client.y-=ge.y),D.ctrlKey=C.ctrlKey,D.altKey=C.altKey,D.shiftKey=C.shiftKey,D.metaKey=C.metaKey,D.button=C.button,D.buttons=C.buttons,D.target=O,D.currentTarget=O,D.preEnd=R,D.type=U||T+(A||""),D.interactable=Z,D.t0=he?_.pointers[_.pointers.length-1].downTime:Oe.t0,D.x0=_.coords.start.page.x-ge.x,D.y0=_.coords.start.page.y-ge.y,D.clientX0=_.coords.start.client.x-ge.x,D.clientY0=_.coords.start.client.y-ge.y,D.delta=he||be?{x:0,y:0}:{x:D[oe].x-Oe[oe].x,y:D[oe].y-Oe[oe].y},D.dt=_.coords.delta.timeStamp,D.duration=D.timeStamp-D.t0,D.velocity=Ue({},_.coords.velocity[oe]),D.speed=Ko(D.velocity.x,D.velocity.y),D.swipe=be||A==="inertiastart"?D.getSwipe():null,D}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var T=112.5<=C&&C<247.5,A=202.5<=C&&C<337.5;return{up:A,down:!A&&22.5<=C&&C<157.5,left:T,right:!T&&(292.5<=C||C<67.5),angle:C,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}(Fi);Object.defineProperties(Js.prototype,{pageX:{get:function(){return this.page.x},set:function(p){this.page.x=p}},pageY:{get:function(){return this.page.y},set:function(p){this.page.y=p}},clientX:{get:function(){return this.client.x},set:function(p){this.client.x=p}},clientY:{get:function(){return this.client.y},set:function(p){this.client.y=p}},dx:{get:function(){return this.delta.x},set:function(p){this.delta.x=p}},dy:{get:function(){return this.delta.y},set:function(p){this.delta.y=p}},velocityX:{get:function(){return this.velocity.x},set:function(p){this.velocity.x=p}},velocityY:{get:function(){return this.velocity.y},set:function(p){this.velocity.y=p}}});var zu=c(function p(f,w,_,C,T){o(this,p),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=f,this.pointer=w,this.event=_,this.downTime=C,this.downTarget=T}),Wu=function(p){return p.interactable="",p.element="",p.prepared="",p.pointerIsDown="",p.pointerWasMoved="",p._proxy="",p}({}),Uc=function(p){return p.start="",p.move="",p.end="",p.stop="",p.interacting="",p}({}),Bu=0,Gu=function(){function p(f){var w=this,_=f.pointerType,C=f.scopeFire;o(this,p),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Co(function(D){this.move(D)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Bu++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var A=function(D){Object.defineProperty(w._proxy,D,{get:function(){return T[D]}})};for(var O in Wu)A(O);var R=function(D){Object.defineProperty(w._proxy,D,{value:function(){return T[D].apply(T,arguments)}})};for(var U in Uc)R(U);this._scopeFire("interactions:new",{interaction:this})}return c(p,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(f,w,_){var C=this.updatePointer(f,w,_,!0),T=this.pointers[C];this._scopeFire("interactions:down",{pointer:f,event:w,eventTarget:_,pointerIndex:C,pointerInfo:T,type:"down",interaction:this})}},{key:"start",value:function(f,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(f.name==="gesture"?2:1)||!w.options[f.name].enabled)&&(qs(this.prepared,f),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ue({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(f,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(f,w,_,!1);var C,T,A=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,T=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ko(C,T)>this.pointerMoveTolerance);var O,R,U,D=this.getPointerIndex(f),Z={pointer:f,pointerIndex:D,pointerInfo:this.pointers[D],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:A,interaction:this};A||(O=this.coords.velocity,R=this.coords.delta,U=Math.max(R.timeStamp/1e3,.001),O.page.x=R.page.x/U,O.page.y=R.page.y/U,O.client.x=R.client.x/U,O.client.y=R.client.y/U,O.timeStamp=U),this._scopeFire("interactions:move",Z),A||this.simulation||(this.interacting()&&(Z.type=null,this.move(Z)),this.pointerWasMoved&&zs(this.coords.prev,this.coords.cur))}},{key:"move",value:function(f){f&&f.event||wc(this.coords.delta),(f=Ue({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},f||{})).phase="move",this._doPhase(f)}},{key:"pointerUp",value:function(f,w,_,C){var T=this.getPointerIndex(f);T===-1&&(T=this.updatePointer(f,w,_,!1));var A=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(A),{pointer:f,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:A,curEventTarget:C,interaction:this}),this.simulation||this.end(w),this.removePointer(f,w)}},{key:"documentBlur",value:function(f){this.end(f),this._scopeFire("interactions:blur",{event:f,type:"blur",interaction:this})}},{key:"end",value:function(f){var w;this._ending=!0,f=f||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:f,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(f){var w=So(f);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Qo(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(f){return this.pointers[this.getPointerIndex(f)]}},{key:"updatePointer",value:function(f,w,_,C){var T,A,O,R=So(f),U=this.getPointerIndex(f),D=this.pointers[U];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),D?D.pointer=f:(D=new zu(R,f,w,null,null),U=this.pointers.length,this.pointers.push(D)),Ws(this.coords.cur,this.pointers.map(function(Z){return Z.pointer}),this._now()),T=this.coords.delta,A=this.coords.prev,O=this.coords.cur,T.page.x=O.page.x-A.page.x,T.page.y=O.page.y-A.page.y,T.client.x=O.client.x-A.client.x,T.client.y=O.client.y-A.client.y,T.timeStamp=O.timeStamp-A.timeStamp,C&&(this.pointerIsDown=!0,D.downTime=this.coords.cur.timeStamp,D.downTarget=_,_o(this.downPointer,f),this.interacting()||(zs(this.coords.start,this.coords.cur),zs(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(f,w,_),this._scopeFire("interactions:update-pointer",{pointer:f,event:w,eventTarget:_,down:C,pointerInfo:D,pointerIndex:U,interaction:this}),U}},{key:"removePointer",value:function(f,w){var _=this.getPointerIndex(f);if(_!==-1){var C=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:f,event:w,eventTarget:null,pointerIndex:_,pointerInfo:C,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(f,w,_){this._latestPointer.pointer=f,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(f,w,_,C){return new Js(this,f,this.prepared.name,w,this.element,_,C)}},{key:"_fireEvent",value:function(f){var w;(w=this.interactable)==null||w.fire(f),(!this.prevEvent||f.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=f)}},{key:"_doPhase",value:function(f){var w=f.event,_=f.phase,C=f.preEnd,T=f.type,A=this.rect;if(A&&_==="move"&&(Vs(this.edges,A,this.coords.delta[this.interactable.options.deltaSource]),A.width=A.right-A.left,A.height=A.bottom-A.top),this._scopeFire("interactions:before-action-".concat(_),f)===!1)return!1;var O=f.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),f),_==="start"&&(this.prevEvent=O),this._fireEvent(O),this._scopeFire("interactions:after-action-".concat(_),f),!0}},{key:"_now",value:function(){return Date.now()}}]),p}();function Vc(p){zc(p.interaction)}function zc(p){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(p))return!1;var f=p.offset.pending;return Ks(p.coords.cur,f),Ks(p.coords.delta,f),Vs(p.edges,p.rect,f),f.x=0,f.y=0,!0}function ju(p){var f=p.x,w=p.y;this.offset.pending.x+=f,this.offset.pending.y+=w,this.offset.total.x+=f,this.offset.total.y+=w}function Ks(p,f){var w=p.page,_=p.client,C=f.x,T=f.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Uc.offsetBy="";var qu={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(p){p.Interaction.prototype.offsetBy=ju},listeners:{"interactions:new":function(p){p.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(p){return function(f){f.pointerIsDown&&(Ks(f.coords.cur,f.offset.total),f.offset.pending.x=0,f.offset.pending.y=0)}(p.interaction)},"interactions:before-action-start":Vc,"interactions:before-action-move":Vc,"interactions:before-action-end":function(p){var f=p.interaction;if(zc(f))return f.move({offset:!0}),f.end(),!1},"interactions:stop":function(p){var f=p.interaction;f.offset.total.x=0,f.offset.total.y=0,f.offset.pending.x=0,f.offset.pending.y=0}}},Wc=qu,Hu=function(){function p(f){o(this,p),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=f}return c(p,[{key:"start",value:function(f){var w=this.interaction,_=ns(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Ko(C.x,C.y),A=this.modification||(this.modification=new Xs(w));if(A.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=T,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=A.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(A.result=A.setAll(this.modifierArg),!A.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:f,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var f=this,w=this.interaction.coords.velocity.client,_=ns(this.interaction),C=_.resistance,T=-Math.log(_.endSpeed/this.v0)/C;this.targetOffset={x:(w.x-T)/C,y:(w.y-T)/C},this.te=T,this.lambda_v0=C/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var A=this.modification,O=this.modifierArg;O.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},A.result=A.setAll(O),A.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+A.result.delta.x,y:this.targetOffset.y+A.result.delta.y}),this.onNextFrame(function(){return f.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var f=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return f.smoothEndTick()})}},{key:"onNextFrame",value:function(f){var w=this;this.timeout=Qn.request(function(){w.active&&f()})}},{key:"inertiaTick",value:function(){var f,w,_,C,T,A,O,R=this,U=this.interaction,D=ns(U).resistance,Z=(U._now()-this.t0)/1e3;if(Z<this.te){var oe,ge=1-(Math.exp(-D*Z)-this.lambda_v0)/this.one_ve_v0;this.isModified?(f=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,A=this.modifiedOffset.y,oe={x:Bc(O=ge,f,_,T),y:Bc(O,w,C,A)}):oe={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:oe.x-this.currentOffset.x,y:oe.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,U.offsetBy(he),U.move(),this.onNextFrame(function(){return R.inertiaTick()})}else U.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var f=this,w=this.interaction,_=w._now()-this.t0,C=ns(w).smoothEndDuration;if(_<C){var T={x:Gc(_,0,this.targetOffset.x,C),y:Gc(_,0,this.targetOffset.y,C)},A={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=A.x,this.currentOffset.y+=A.y,w.offsetBy(A),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return f.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(f){var w=f.pointer,_=f.event,C=f.eventTarget,T=this.interaction;T.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),T.updatePointer(w,_,C,!0),T._doPhase({interaction:T,event:_,phase:"resume"}),zs(T.coords.prev,T.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Qn.cancel(this.timeout)}}]),p}();function ns(p){var f=p.interactable,w=p.prepared;return f&&f.options&&w.name&&f.options[w.name].inertia}var Yu={id:"inertia",before:["modifiers","actions"],install:function(p){var f=p.defaults;p.usePlugin(Wc),p.usePlugin(Fc),p.actions.phases.inertiastart=!0,p.actions.phases.resume=!0,f.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(p){var f=p.interaction;f.inertia=new Hu(f)},"interactions:before-action-end":function(p){var f=p.interaction,w=p.event;return(!f._interacting||f.simulation||!f.inertia.start(w))&&null},"interactions:down":function(p){var f=p.interaction,w=p.eventTarget,_=f.inertia;if(_.active)for(var C=w;$.element(C);){if(C===f.element){_.resume(p);break}C=ye(C)}},"interactions:stop":function(p){var f=p.interaction.inertia;f.active&&f.stop()},"interactions:before-action-resume":function(p){var f=p.interaction.modification;f.stop(p),f.start(p,p.interaction.coords.cur.page),f.applyToInteraction(p)},"interactions:before-action-inertiastart":function(p){return p.interaction.modification.setAndApply(p)},"interactions:action-resume":To,"interactions:action-inertiastart":To,"interactions:after-action-inertiastart":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-resume":function(p){return p.interaction.modification.restoreInteractionCoords(p)}}};function Bc(p,f,w,_){var C=1-p;return C*C*f+2*C*p*w+p*p*_}function Gc(p,f,w,_){return-w*(p/=_)*(p-2)+f}var Zu=Yu;function jc(p,f){for(var w=0;w<f.length;w++){var _=f[w];if(p.immediatePropagationStopped)break;_(p)}}var qc=function(){function p(f){o(this,p),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Ue({},f||{})}return c(p,[{key:"fire",value:function(f){var w,_=this.global;(w=this.types[f.type])&&jc(f,w),!f.propagationStopped&&_&&(w=_[f.type])&&jc(f,w)}},{key:"on",value:function(f,w){var _=yi(f,w);for(f in _)this.types[f]=_u(this.types[f]||[],_[f])}},{key:"off",value:function(f,w){var _=yi(f,w);for(f in _){var C=this.types[f];if(C&&C.length)for(var T=0,A=_[f];T<A.length;T++){var O=A[T],R=C.indexOf(O);R!==-1&&C.splice(R,1)}}}},{key:"getRect",value:function(f){return null}}]),p}(),Xu=function(){function p(f){o(this,p),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=f,_o(this,f)}return c(p,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),p}();function Vi(p){return $.object(p)?{capture:!!p.capture,passive:!!p.passive}:{capture:!!p,passive:!1}}function Po(p,f){return p===f||(typeof p=="boolean"?!!f.capture===p&&!f.passive:!!p.capture==!!f.capture&&!!p.passive==!!f.passive)}var Ju={id:"events",install:function(p){var f,w=[],_={},C=[],T={add:A,remove:O,addDelegate:function(D,Z,oe,ge,he){var be=Vi(he);if(!_[oe]){_[oe]=[];for(var Oe=0;Oe<C.length;Oe++){var Ie=C[Oe];A(Ie,oe,R),A(Ie,oe,U,!0)}}var $e=_[oe],Xe=bi($e,function(Qe){return Qe.selector===D&&Qe.context===Z});Xe||(Xe={selector:D,context:Z,listeners:[]},$e.push(Xe)),Xe.listeners.push({func:ge,options:be})},removeDelegate:function(D,Z,oe,ge,he){var be,Oe=Vi(he),Ie=_[oe],$e=!1;if(Ie)for(be=Ie.length-1;be>=0;be--){var Xe=Ie[be];if(Xe.selector===D&&Xe.context===Z){for(var Qe=Xe.listeners,Be=Qe.length-1;Be>=0;Be--){var Je=Qe[Be];if(Je.func===ge&&Po(Je.options,Oe)){Qe.splice(Be,1),Qe.length||(Ie.splice(be,1),O(Z,oe,R),O(Z,oe,U,!0)),$e=!0;break}}if($e)break}}},delegateListener:R,delegateUseCapture:U,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function A(D,Z,oe,ge){if(D.addEventListener){var he=Vi(ge),be=bi(w,function(Oe){return Oe.eventTarget===D});be||(be={eventTarget:D,events:{}},w.push(be)),be.events[Z]||(be.events[Z]=[]),bi(be.events[Z],function(Oe){return Oe.func===oe&&Po(Oe.options,he)})||(D.addEventListener(Z,oe,T.supportsOptions?he:he.capture),be.events[Z].push({func:oe,options:he}))}}function O(D,Z,oe,ge){if(D.addEventListener&&D.removeEventListener){var he=Qo(w,function(wr){return wr.eventTarget===D}),be=w[he];if(be&&be.events)if(Z!=="all"){var Oe=!1,Ie=be.events[Z];if(Ie){if(oe==="all"){for(var $e=Ie.length-1;$e>=0;$e--){var Xe=Ie[$e];O(D,Z,Xe.func,Xe.options)}return}for(var Qe=Vi(ge),Be=0;Be<Ie.length;Be++){var Je=Ie[Be];if(Je.func===oe&&Po(Je.options,Qe)){D.removeEventListener(Z,oe,T.supportsOptions?Qe:Qe.capture),Ie.splice(Be,1),Ie.length===0&&(delete be.events[Z],Oe=!0);break}}}Oe&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Z in be.events)be.events.hasOwnProperty(Z)&&O(D,Z,"all")}}function R(D,Z){for(var oe=Vi(Z),ge=new Xu(D),he=_[D.type],be=vu(D)[0],Oe=be;$.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var $e=he[Ie],Xe=$e.selector,Qe=$e.context;if(De(Oe,Xe)&&ue(Qe,be)&&ue(Qe,Oe)){var Be=$e.listeners;ge.currentTarget=Oe;for(var Je=0;Je<Be.length;Je++){var wr=Be[Je];Po(wr.options,oe)&&wr.func(ge)}}}Oe=ye(Oe)}}function U(D){return R(D,!0)}return(f=p.document)==null||f.createElement("div").addEventListener("test",null,{get capture(){return T.supportsOptions=!0},get passive(){return T.supportsPassive=!0}}),p.events=T,T}},Qs={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(p){for(var f=0,w=Qs.methodOrder;f<w.length;f++){var _=w[f],C=Qs[_](p);if(C)return C}return null},simulationResume:function(p){var f=p.pointerType,w=p.eventType,_=p.eventTarget,C=p.scope;if(!/down|start/i.test(w))return null;for(var T=0,A=C.interactions.list;T<A.length;T++){var O=A[T],R=_;if(O.simulation&&O.simulation.allowResume&&O.pointerType===f)for(;R;){if(R===O.element)return O;R=ye(R)}}return null},mouseOrPen:function(p){var f,w=p.pointerId,_=p.pointerType,C=p.eventType,T=p.scope;if(_!=="mouse"&&_!=="pen")return null;for(var A=0,O=T.interactions.list;A<O.length;A++){var R=O[A];if(R.pointerType===_){if(R.simulation&&!ea(R,w))continue;if(R.interacting())return R;f||(f=R)}}if(f)return f;for(var U=0,D=T.interactions.list;U<D.length;U++){var Z=D[U];if(!(Z.pointerType!==_||/down/i.test(C)&&Z.simulation))return Z}return null},hasPointer:function(p){for(var f=p.pointerId,w=0,_=p.scope.interactions.list;w<_.length;w++){var C=_[w];if(ea(C,f))return C}return null},idle:function(p){for(var f=p.pointerType,w=0,_=p.scope.interactions.list;w<_.length;w++){var C=_[w];if(C.pointers.length===1){var T=C.interactable;if(T&&(!T.options.gesture||!T.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&f===C.pointerType)return C}return null}};function ea(p,f){return p.pointers.some(function(w){return w.id===f})}var Ku=Qs,is=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Hc(p,f){return function(w){var _=f.interactions.list,C=xc(w),T=vu(w),A=T[0],O=T[1],R=[];if(/^touch/.test(w.type)){f.prevTouchTime=f.now();for(var U=0,D=w.changedTouches;U<D.length;U++){var Z=D[U],oe={pointer:Z,pointerId:So(Z),pointerType:C,eventType:w.type,eventTarget:A,curEventTarget:O,scope:f},ge=Yc(oe);R.push([oe.pointer,oe.eventTarget,oe.curEventTarget,ge])}}else{var he=!1;if(!de.supportsPointerEvent&&/mouse/.test(w.type)){for(var be=0;be<_.length&&!he;be++)he=_[be].pointerType!=="mouse"&&_[be].pointerIsDown;he=he||f.now()-f.prevTouchTime<500||w.timeStamp===0}if(!he){var Oe={pointer:w,pointerId:So(w),pointerType:C,eventType:w.type,curEventTarget:O,eventTarget:A,scope:f},Ie=Yc(Oe);R.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var $e=0;$e<R.length;$e++){var Xe=R[$e],Qe=Xe[0],Be=Xe[1],Je=Xe[2];Xe[3][p](Qe,w,Be,Je)}}}function Yc(p){var f=p.pointerType,w=p.scope,_={interaction:Ku.search(p),searchDetails:p};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:f})}function ta(p,f){var w=p.doc,_=p.scope,C=p.options,T=_.interactions.docEvents,A=_.events,O=A[f];for(var R in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),A.delegatedEvents)O(w,R,A.delegateListener),O(w,R,A.delegateUseCapture,!0);for(var U=C&&C.events,D=0;D<T.length;D++){var Z=T[D];O(w,Z.type,Z.listener,U)}}var Zc={id:"core/interactions",install:function(p){for(var f={},w=0;w<is.length;w++){var _=is[w];f[_]=Hc(_,p)}var C,T=de.pEventTypes;function A(){for(var O=0,R=p.interactions.list;O<R.length;O++){var U=R[O];if(U.pointerIsDown&&U.pointerType==="touch"&&!U._interacting)for(var D=function(){var ge=oe[Z];p.documents.some(function(he){return ue(he.doc,ge.downTarget)})||U.removePointer(ge.pointer,ge.event)},Z=0,oe=U.pointers;Z<oe.length;Z++)D()}}(C=H.PointerEvent?[{type:T.down,listener:A},{type:T.down,listener:f.pointerDown},{type:T.move,listener:f.pointerMove},{type:T.up,listener:f.pointerUp},{type:T.cancel,listener:f.pointerUp}]:[{type:"mousedown",listener:f.pointerDown},{type:"mousemove",listener:f.pointerMove},{type:"mouseup",listener:f.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:f.pointerDown},{type:"touchmove",listener:f.pointerMove},{type:"touchend",listener:f.pointerUp},{type:"touchcancel",listener:f.pointerUp}]).push({type:"blur",listener:function(O){for(var R=0,U=p.interactions.list;R<U.length;R++)U[R].documentBlur(O)}}),p.prevTouchTime=0,p.Interaction=function(O){d(U,O);var R=E(U);function U(){return o(this,U),R.apply(this,arguments)}return c(U,[{key:"pointerMoveTolerance",get:function(){return p.interactions.pointerMoveTolerance},set:function(D){p.interactions.pointerMoveTolerance=D}},{key:"_now",value:function(){return p.now()}}]),U}(Gu),p.interactions={list:[],new:function(O){O.scopeFire=function(U,D){return p.fire(U,D)};var R=new p.Interaction(O);return p.interactions.list.push(R),R},listeners:f,docEvents:C,pointerMoveTolerance:1},p.usePlugin(Dc)},listeners:{"scope:add-document":function(p){return ta(p,"add")},"scope:remove-document":function(p){return ta(p,"remove")},"interactable:unset":function(p,f){for(var w=p.interactable,_=f.interactions.list.length-1;_>=0;_--){var C=f.interactions.list[_];C.interactable===w&&(C.stop(),f.fire("interactions:destroy",{interaction:C}),C.destroy(),f.interactions.list.length>2&&f.interactions.list.splice(_,1))}}},onDocSignal:ta,doOnInteractions:Hc,methodNames:is},Qu=Zc,ti=function(p){return p[p.On=0]="On",p[p.Off=1]="Off",p}(ti||{}),ed=function(){function p(f,w,_,C){o(this,p),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new qc,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=f,this._context=w.context||_,this._win=V(hn(f)?this._context:f),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return c(p,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(f,w){return $.func(w.onstart)&&this.on("".concat(f,"start"),w.onstart),$.func(w.onmove)&&this.on("".concat(f,"move"),w.onmove),$.func(w.onend)&&this.on("".concat(f,"end"),w.onend),$.func(w.oninertiastart)&&this.on("".concat(f,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(f,w,_){var C,T=this,A=(C=this._actions.map[f])==null?void 0:C.filterEventType,O=function(R){return(A==null||A(R))&&ts(R,T._actions)};($.array(w)||$.object(w))&&this._onOff(ti.Off,f,w,void 0,O),($.array(_)||$.object(_))&&this._onOff(ti.On,f,_,void 0,O)}},{key:"setPerAction",value:function(f,w){var _=this._defaults;for(var C in w){var T=C,A=this.options[f],O=w[T];T==="listeners"&&this.updatePerActionListeners(f,A.listeners,O),$.array(O)?A[T]=Ec(O):$.plainObject(O)?(A[T]=Ue(A[T]||{},Ui(O)),$.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(A[T].enabled=O.enabled!==!1)):$.bool(O)&&$.object(_.perAction[T])?A[T].enabled=O:A[T]=O}}},{key:"getRect",value:function(f){return f=f||($.element(this.target)?this.target:null),$.string(this.target)&&(f=f||this._context.querySelector(this.target)),Kn(f)}},{key:"rectChecker",value:function(f){var w=this;return $.func(f)?(this.getRect=function(_){var C=Ue({},f.apply(w,_));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):f===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(f,w){if(hn(w)||$.object(w)){for(var _ in this.options[f]=w,this._actions.map)this.options[_][f]=w;return this}return this.options[f]}},{key:"origin",value:function(f){return this._backCompatOption("origin",f)}},{key:"deltaSource",value:function(f){return f==="page"||f==="client"?(this.options.deltaSource=f,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var f=this.target;return $.string(f)?Array.from(this._context.querySelectorAll(f)):$.func(f)&&f.getAllElements?f.getAllElements():$.element(f)?[f]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(f){return this._context===f.ownerDocument||ue(this._context,f)}},{key:"testIgnoreAllow",value:function(f,w,_){return!this.testIgnore(f.ignoreFrom,w,_)&&this.testAllow(f.allowFrom,w,_)}},{key:"testAllow",value:function(f,w,_){return!f||!!$.element(_)&&($.string(f)?mr(_,f,w):!!$.element(f)&&ue(f,_))}},{key:"testIgnore",value:function(f,w,_){return!(!f||!$.element(_))&&($.string(f)?mr(_,f,w):!!$.element(f)&&ue(f,_))}},{key:"fire",value:function(f){return this.events.fire(f),this}},{key:"_onOff",value:function(f,w,_,C,T){$.object(w)&&!$.array(w)&&(C=_,_=null);var A=yi(w,_,T);for(var O in A){O==="wheel"&&(O=de.wheelEvent);for(var R=0,U=A[O];R<U.length;R++){var D=U[R];ts(O,this._actions)?this.events[f===ti.On?"on":"off"](O,D):$.string(this.target)?this._scopeEvents[f===ti.On?"addDelegate":"removeDelegate"](this.target,this._context,O,D,C):this._scopeEvents[f===ti.On?"add":"remove"](this.target,O,D,C)}}return this}},{key:"on",value:function(f,w,_){return this._onOff(ti.On,f,w,_)}},{key:"off",value:function(f,w,_){return this._onOff(ti.Off,f,w,_)}},{key:"set",value:function(f){var w=this._defaults;for(var _ in $.object(f)||(f={}),this.options=Ui(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,Ue(Ue({},w.perAction),w.actions[C])),this[T](f[C])}for(var A in f)A!=="getRect"?$.func(this[A])&&this[A](f[A]):this.rectChecker(f.getRect);return this}},{key:"unset",value:function(){if($.string(this.target))for(var f in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[f],_=w.length-1;_>=0;_--){var C=w[_],T=C.selector,A=C.context,O=C.listeners;T===this.target&&A===this._context&&w.splice(_,1);for(var R=O.length-1;R>=0;R--)this._scopeEvents.removeDelegate(this.target,this._context,f,O[R][0],O[R][1])}else this._scopeEvents.remove(this.target,"all")}}]),p}(),td=function(){function p(f){var w=this;o(this,p),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=f,f.addListeners({"interactable:unset":function(_){var C=_.interactable,T=C.target,A=$.string(T)?w.selectorMap[T]:T[w.scope.id],O=Qo(A,function(R){return R===C});A.splice(O,1)}})}return c(p,[{key:"new",value:function(f,w){w=Ue(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(f,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),$.string(f)?(this.selectorMap[f]||(this.selectorMap[f]=[]),this.selectorMap[f].push(_)):(_.target[this.scope.id]||Object.defineProperty(f,this.scope.id,{value:[],configurable:!0}),f[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:f,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(f,w){var _=w&&w.context||this.scope.document,C=$.string(f),T=C?this.selectorMap[f]:f[this.scope.id];if(T)return bi(T,function(A){return A._context===_&&(C||A.inContext(f))})}},{key:"forEachMatch",value:function(f,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],A=void 0;if(($.string(T.target)?$.element(f)&&De(f,T.target):f===T.target)&&T.inContext(f)&&(A=w(T)),A!==void 0)return A}}}]),p}(),rd=function(){function p(){var f=this;o(this,p),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=de,this.defaults=Ui($c),this.Eventable=qc,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(A,O){var R=_.interactables.getExisting(A,O);return R||((R=_.interactables.new(A,O)).events.global=T.globalEvents),R};return C.getPointerAverage=bu,C.getTouchBBox=vc,C.getTouchDistance=_c,C.getTouchAngle=Sc,C.getElementRect=Kn,C.getElementClientRect=Qt,C.matchesSelector=De,C.closest=ve,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,A){return this.scope.usePlugin(T,A),this},C.isSet=function(T,A){return!!this.scope.interactables.get(T,A&&A.context)},C.on=Co(function(T,A,O){if($.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),$.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.on(D,A,O)}return this}if($.object(T)){for(var Z in T)this.on(Z,T[Z],A);return this}return ts(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(A):this.globalEvents[T]=[A]:this.scope.events.add(this.scope.document,T,A,{options:O}),this},"The interact.on() method is being deprecated"),C.off=Co(function(T,A,O){if($.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),$.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.off(D,A,O)}return this}if($.object(T)){for(var Z in T)this.off(Z,T[Z],A);return this}var oe;return ts(T,this.scope.actions)?T in this.globalEvents&&(oe=this.globalEvents[T].indexOf(A))!==-1&&this.globalEvents[T].splice(oe,1):this.scope.events.remove(this.scope.document,T,A,O),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return de.supportsTouch},C.supportsPointerEvent=function(){return de.supportsPointerEvent},C.stop=function(){for(var T=0,A=this.scope.interactions.list;T<A.length;T++)A[T].stop();return this},C.pointerMoveTolerance=function(T){return $.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,A){this.scope.addDocument(T,A)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Js,this.Interactable=void 0,this.interactables=new td(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return f.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(T,_);var C=E(T);function T(){return o(this,T),C.apply(this,arguments)}return c(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(A){return M(h(T.prototype),"set",this).call(this,A),w.fire("interactable:set",{options:A,interactable:this}),this}},{key:"unset",value:function(){M(h(T.prototype),"unset",this).call(this);var A=w.interactables.list.indexOf(this);A<0||(w.interactables.list.splice(A,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(ed)}return c(p,[{key:"addListeners",value:function(f,w){this.listenerMaps.push({id:w,map:f})}},{key:"fire",value:function(f,w){for(var _=0,C=this.listenerMaps;_<C.length;_++){var T=C[_].map[f];if(T&&T(w,this,f)===!1)return!1}}},{key:"init",value:function(f){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,$.window(_)&&q(_),H.init(_),de.init(_),Qn.init(_),w.window=_,w.document=_.document,w.usePlugin(Qu),w.usePlugin(Ju),w}(this,f)}},{key:"pluginIsInstalled",value:function(f){var w=f.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(f)!==-1}},{key:"usePlugin",value:function(f,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(f))return this;if(f.id&&(this._plugins.map[f.id]=f),this._plugins.list.push(f),f.install&&f.install(this,w),f.listeners&&f.before){for(var _=0,C=this.listenerMaps.length,T=f.before.reduce(function(O,R){return O[R]=!0,O[Xc(R)]=!0,O},{});_<C;_++){var A=this.listenerMaps[_].id;if(A&&(T[A]||T[Xc(A)]))break}this.listenerMaps.splice(_,0,{id:f.id,map:f.listeners})}else f.listeners&&this.listenerMaps.push({id:f.id,map:f.listeners});return this}},{key:"addDocument",value:function(f,w){if(this.getDocIndex(f)!==-1)return!1;var _=V(f);w=w?Ue({},w):{},this.documents.push({doc:f,options:w}),this.events.documents.push(f),f!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:f,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(f){var w=this.getDocIndex(f),_=V(f),C=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:f,window:_,scope:this,options:C})}},{key:"getDocIndex",value:function(f){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===f)return w;return-1}},{key:"getDocOptions",value:function(f){var w=this.getDocIndex(f);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),p}();function Xc(p){return p&&p.replace(/\/.*$/,"")}var Jc=new rd,gr=Jc.interactStatic,nd=typeof globalThis<"u"?globalThis:window;Jc.init(nd);var id=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(p){var f=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var C=_[0],T=_[1];return C in p||T in p}),w=function(_,C){for(var T=p.range,A=p.limits,O=A===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:A,R=p.offset,U=R===void 0?{x:0,y:0}:R,D={range:T,grid:p,x:null,y:null},Z=0;Z<f.length;Z++){var oe=f[Z],ge=oe[0],he=oe[1],be=Math.round((_-U.x)/p[ge]),Oe=Math.round((C-U.y)/p[he]);D[ge]=Math.max(O.left,Math.min(O.right,be*p[ge]+U.x)),D[he]=Math.max(O.top,Math.min(O.bottom,Oe*p[he]+U.y))}return D};return w.grid=p,w.coordFields=f,w}}),od={id:"snappers",install:function(p){var f=p.interactStatic;f.snappers=Ue(f.snappers||{},id),f.createSnapGrid=f.snappers.grid}},sd=od,ad={start:function(p){var f=p.state,w=p.rect,_=p.edges,C=p.pageCoords,T=f.options,A=T.ratio,O=T.enabled,R=f.options,U=R.equalDelta,D=R.modifiers;A==="preserve"&&(A=w.width/w.height),f.startCoords=Ue({},C),f.startRect=Ue({},w),f.ratio=A,f.equalDelta=U;var Z=f.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(f.xIsPrimaryAxis=!(!_.left&&!_.right),f.equalDelta){var oe=(Z.left?1:-1)*(Z.top?1:-1);f.edgeSign={x:oe,y:oe}}else f.edgeSign={x:Z.left?-1:1,y:Z.top?-1:1};if(O!==!1&&Ue(_,Z),D!=null&&D.length){var ge=new Xs(p.interaction);ge.copyFrom(p.interaction.modification),ge.prepareStates(D),f.subModification=ge,ge.startAll(n({},p))}},set:function(p){var f=p.state,w=p.rect,_=p.coords,C=f.linkedEdges,T=Ue({},_),A=f.equalDelta?Kc:cd;if(Ue(p.edges,C),A(f,f.xIsPrimaryAxis,_,w),!f.subModification)return null;var O=Ue({},w);Vs(C,O,{x:_.x-T.x,y:_.y-T.y});var R=f.subModification.setAll(n(n({},p),{},{rect:O,edges:C,pageCoords:_,prevCoords:_,prevRect:O})),U=R.delta;return R.changed&&(A(f,Math.abs(U.x)>Math.abs(U.y),R.coords,R.rect),Ue(_,R.coords)),R.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Kc(p,f,w){var _=p.startCoords,C=p.edgeSign;f?w.y=_.y+(w.x-_.x)*C.y:w.x=_.x+(w.y-_.y)*C.x}function cd(p,f,w,_){var C=p.startRect,T=p.startCoords,A=p.ratio,O=p.edgeSign;if(f){var R=_.width/A;w.y=T.y+(R-C.height)*O.y}else{var U=_.height*A;w.x=T.x+(U-C.width)*O.x}}var Qc=ei(ad,"aspectRatio"),el=function(){};el._defaults={};var os=el;function _i(p,f,w){return $.func(p)?vo(p,f.interactable,f.element,[w.x,w.y,f]):vo(p,f.interactable,f.element)}var ss={start:function(p){var f=p.rect,w=p.startOffset,_=p.state,C=p.interaction,T=p.pageCoords,A=_.options,O=A.elementRect,R=Ue({left:0,top:0,right:0,bottom:0},A.offset||{});if(f&&O){var U=_i(A.restriction,C,T);if(U){var D=U.right-U.left-f.width,Z=U.bottom-U.top-f.height;D<0&&(R.left+=D,R.right+=D),Z<0&&(R.top+=Z,R.bottom+=Z)}R.left+=w.left-f.width*O.left,R.top+=w.top-f.height*O.top,R.right+=w.right-f.width*(1-O.right),R.bottom+=w.bottom-f.height*(1-O.bottom)}_.offset=R},set:function(p){var f=p.coords,w=p.interaction,_=p.state,C=_.options,T=_.offset,A=_i(C.restriction,w,f);if(A){var O=function(R){return!R||"left"in R&&"top"in R||((R=Ue({},R)).left=R.x||0,R.top=R.y||0,R.right=R.right||R.left+R.width,R.bottom=R.bottom||R.top+R.height),R}(A);f.x=Math.max(Math.min(O.right-T.right,f.x),O.left+T.left),f.y=Math.max(Math.min(O.bottom-T.bottom,f.y),O.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ld=ei(ss,"restrict"),tl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},rl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function nl(p,f){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var C=_[w];C in p||(p[C]=f[C])}return p}var Mo={noInner:tl,noOuter:rl,start:function(p){var f,w=p.interaction,_=p.startOffset,C=p.state,T=C.options;T&&(f=Di(_i(T.offset,w,w.coords.start.page))),f=f||{x:0,y:0},C.offset={top:f.y+_.top,left:f.x+_.left,bottom:f.y-_.bottom,right:f.x-_.right}},set:function(p){var f=p.coords,w=p.edges,_=p.interaction,C=p.state,T=C.offset,A=C.options;if(w){var O=Ue({},f),R=_i(A.inner,_,O)||{},U=_i(A.outer,_,O)||{};nl(R,tl),nl(U,rl),w.top?f.y=Math.min(Math.max(U.top+T.top,O.y),R.top+T.top):w.bottom&&(f.y=Math.max(Math.min(U.bottom+T.bottom,O.y),R.bottom+T.bottom)),w.left?f.x=Math.min(Math.max(U.left+T.left,O.x),R.left+T.left):w.right&&(f.x=Math.max(Math.min(U.right+T.right,O.x),R.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ud=ei(Mo,"restrictEdges"),dd=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(p){}},ss.defaults),fd=ei({start:ss.start,set:ss.set,defaults:dd},"restrictRect"),pd={width:-1/0,height:-1/0},md={width:1/0,height:1/0},hd=ei({start:function(p){return Mo.start(p)},set:function(p){var f=p.interaction,w=p.state,_=p.rect,C=p.edges,T=w.options;if(C){var A=gc(_i(T.min,f,p.coords))||pd,O=gc(_i(T.max,f,p.coords))||md;w.options={endOnly:T.endOnly,inner:Ue({},Mo.noInner),outer:Ue({},Mo.noOuter)},C.top?(w.options.inner.top=_.bottom-A.height,w.options.outer.top=_.bottom-O.height):C.bottom&&(w.options.inner.bottom=_.top+A.height,w.options.outer.bottom=_.top+O.height),C.left?(w.options.inner.left=_.right-A.width,w.options.outer.left=_.right-O.width):C.right&&(w.options.inner.right=_.left+A.width,w.options.outer.right=_.left+O.width),Mo.set(p),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ra={start:function(p){var f,w=p.interaction,_=p.interactable,C=p.element,T=p.rect,A=p.state,O=p.startOffset,R=A.options,U=R.offsetWithOrigin?function(oe){var ge=oe.interaction.element,he=Di(vo(oe.state.options.origin,null,null,[ge])),be=he||Jo(oe.interactable,ge,oe.interaction.prepared.name);return be}(p):{x:0,y:0};if(R.offset==="startCoords")f={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var D=vo(R.offset,_,C,[w]);(f=Di(D)||{x:0,y:0}).x+=U.x,f.y+=U.y}var Z=R.relativePoints;A.offsets=T&&Z&&Z.length?Z.map(function(oe,ge){return{index:ge,relativePoint:oe,x:O.left-T.width*oe.x+f.x,y:O.top-T.height*oe.y+f.y}}):[{index:0,relativePoint:null,x:f.x,y:f.y}]},set:function(p){var f=p.interaction,w=p.coords,_=p.state,C=_.options,T=_.offsets,A=Jo(f.interactable,f.element,f.prepared.name),O=Ue({},w),R=[];C.offsetWithOrigin||(O.x-=A.x,O.y-=A.y);for(var U=0,D=T;U<D.length;U++)for(var Z=D[U],oe=O.x-Z.x,ge=O.y-Z.y,he=0,be=C.targets.length;he<be;he++){var Oe=C.targets[he],Ie=void 0;(Ie=$.func(Oe)?Oe(oe,ge,f._proxy,Z,he):Oe)&&R.push({x:($.number(Ie.x)?Ie.x:oe)+Z.x,y:($.number(Ie.y)?Ie.y:ge)+Z.y,range:$.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Z})}for(var $e={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Xe=0;Xe<R.length;Xe++){var Qe=R[Xe],Be=Qe.range,Je=Qe.x-O.x,wr=Qe.y-O.y,vt=Ko(Je,wr),Rr=vt<=Be;Be===1/0&&$e.inRange&&$e.range!==1/0&&(Rr=!1),$e.target&&!(Rr?$e.inRange&&Be!==1/0?vt/Be<$e.distance/$e.range:Be===1/0&&$e.range!==1/0||vt<$e.distance:!$e.inRange&&vt<$e.distance)||($e.target=Qe,$e.distance=vt,$e.range=Be,$e.inRange=Rr,$e.delta.x=Je,$e.delta.y=wr)}return $e.inRange&&(w.x=$e.target.x,w.y=$e.target.y),_.closest=$e,$e},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},gd=ei(ra,"snap"),as={start:function(p){var f=p.state,w=p.edges,_=f.options;if(!w)return null;p.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},f.targetFields=f.targetFields||[["width","height"],["x","y"]],ra.start(p),f.offsets=p.state.offsets,p.state=f},set:function(p){var f=p.interaction,w=p.state,_=p.coords,C=w.options,T=w.offsets,A={x:_.x-T[0].x,y:_.y-T[0].y};w.options=Ue({},C),w.options.targets=[];for(var O=0,R=C.targets||[];O<R.length;O++){var U=R[O],D=void 0;if(D=$.func(U)?U(A.x,A.y,f):U){for(var Z=0,oe=w.targetFields;Z<oe.length;Z++){var ge=oe[Z],he=ge[0],be=ge[1];if(he in D||be in D){D.x=D[he],D.y=D[be];break}}w.options.targets.push(D)}}var Oe=ra.set(p);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},wd=ei(as,"snapSize"),na={aspectRatio:Qc,restrictEdges:ud,restrict:ld,restrictRect:fd,restrictSize:hd,snapEdges:ei({start:function(p){var f=p.edges;return f?(p.state.targetFields=p.state.targetFields||[[f.left?"left":"right",f.top?"top":"bottom"]],as.start(p)):null},set:as.set,defaults:Ue(Ui(as.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:gd,snapSize:wd,spring:os,avoid:os,transform:os,rubberband:os},yd={id:"modifiers",install:function(p){var f=p.interactStatic;for(var w in p.usePlugin(Fc),p.usePlugin(sd),f.modifiers=na,na){var _=na[w],C=_._defaults,T=_._methods;C._methods=T,p.defaults.perAction[w]=C}}},bd=yd,il=function(p){d(w,p);var f=E(w);function w(_,C,T,A,O,R){var U;if(o(this,w),_o(v(U=f.call(this,O)),T),T!==C&&_o(v(U),C),U.timeStamp=R,U.originalEvent=T,U.type=_,U.pointerId=So(C),U.pointerType=xc(C),U.target=A,U.currentTarget=null,_==="tap"){var D=O.getPointerIndex(C);U.dt=U.timeStamp-O.pointers[D].downTime;var Z=U.timeStamp-O.tapTime;U.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===U.target&&Z<500}else _==="doubletap"&&(U.dt=C.timeStamp-O.tapTime,U.double=!0);return U}return c(w,[{key:"_subtractOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX-=C,this.pageY-=T,this.clientX-=C,this.clientY-=T,this}},{key:"_addOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX+=C,this.pageY+=T,this.clientX+=C,this.clientY+=T,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}(Fi),Ao={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(p){p.pointerEvents=Ao,p.defaults.actions.pointerEvents=Ao.defaults,Ue(p.actions.phaselessTypes,Ao.types)},listeners:{"interactions:new":function(p){var f=p.interaction;f.prevTap=null,f.tapTime=0},"interactions:update-pointer":function(p){var f=p.down,w=p.pointerInfo;!f&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget;p.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&ia(p),ri({interaction:w,pointer:_,event:C,eventTarget:T,type:"move"},f))},"interactions:down":function(p,f){(function(w,_){for(var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget,R=w.pointerIndex,U=C.pointers[R].hold,D=Cn(O),Z={interaction:C,pointer:T,event:A,eventTarget:O,type:"hold",targets:[],path:D,node:null},oe=0;oe<D.length;oe++){var ge=D[oe];Z.node=ge,_.fire("pointerEvents:collect-targets",Z)}if(Z.targets.length){for(var he=1/0,be=0,Oe=Z.targets;be<Oe.length;be++){var Ie=Oe[be].eventable.options.holdDuration;Ie<he&&(he=Ie)}U.duration=he,U.timeout=setTimeout(function(){ri({interaction:C,eventTarget:O,pointer:T,event:A,type:"hold"},_)},he)}})(p,f),ri(p,f)},"interactions:up":function(p,f){ia(p),ri(p,f),function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerWasMoved||ri({interaction:C,eventTarget:O,pointer:T,event:A,type:"tap"},_)}(p,f)},"interactions:cancel":function(p,f){ia(p),ri(p,f)}},PointerEvent:il,fire:ri,collectEventTargets:ol,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ri(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget,A=p.type,O=p.targets,R=O===void 0?ol(p,f):O,U=new il(A,_,C,T,w,f.now());f.fire("pointerEvents:new",{pointerEvent:U});for(var D={interaction:w,pointer:_,event:C,eventTarget:T,targets:R,type:A,pointerEvent:U},Z=0;Z<R.length;Z++){var oe=R[Z];for(var ge in oe.props||{})U[ge]=oe.props[ge];var he=Jo(oe.eventable,oe.node);if(U._subtractOrigin(he),U.eventable=oe.eventable,U.currentTarget=oe.node,oe.eventable.fire(U),U._addOrigin(he),U.immediatePropagationStopped||U.propagationStopped&&Z+1<R.length&&R[Z+1].node!==U.currentTarget)break}if(f.fire("pointerEvents:fired",D),A==="tap"){var be=U.double?ri({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},f):U;w.prevTap=be,w.tapTime=be.timeStamp}return U}function ol(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget,A=p.type,O=w.getPointerIndex(_),R=w.pointers[O];if(A==="tap"&&(w.pointerWasMoved||!R||R.downTarget!==T))return[];for(var U=Cn(T),D={interaction:w,pointer:_,event:C,eventTarget:T,type:A,path:U,targets:[],node:null},Z=0;Z<U.length;Z++){var oe=U[Z];D.node=oe,f.fire("pointerEvents:collect-targets",D)}return A==="hold"&&(D.targets=D.targets.filter(function(ge){var he,be;return ge.eventable.options.holdDuration===((he=w.pointers[O])==null||(be=he.hold)==null?void 0:be.duration)})),D.targets}function ia(p){var f=p.interaction,w=p.pointerIndex,_=f.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var vd=Object.freeze({__proto__:null,default:Ao});function _d(p){var f=p.interaction;f.holdIntervalHandle&&(clearInterval(f.holdIntervalHandle),f.holdIntervalHandle=null)}var Sd={id:"pointer-events/holdRepeat",install:function(p){p.usePlugin(Ao);var f=p.pointerEvents;f.defaults.holdRepeatInterval=0,f.types.holdrepeat=p.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(p,f){return p["pointerEvents:".concat(f)]=_d,p},{"pointerEvents:new":function(p){var f=p.pointerEvent;f.type==="hold"&&(f.count=(f.count||0)+1)},"pointerEvents:fired":function(p,f){var w=p.interaction,_=p.pointerEvent,C=p.eventTarget,T=p.targets;if(_.type==="hold"&&T.length){var A=T[0].eventable.options.holdRepeatInterval;A<=0||(w.holdIntervalHandle=setTimeout(function(){f.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},f)},A))}}})},xd=Sd,Ed={id:"pointer-events/interactableTargets",install:function(p){var f=p.Interactable;f.prototype.pointerEvents=function(_){return Ue(this.events.options,_),this};var w=f.prototype._backCompatOption;f.prototype._backCompatOption=function(_,C){var T=w.call(this,_,C);return T===this&&(this.events.options[_]=C),T}},listeners:{"pointerEvents:collect-targets":function(p,f){var w=p.targets,_=p.node,C=p.type,T=p.eventTarget;f.interactables.forEachMatch(_,function(A){var O=A.events,R=O.options;O.types[C]&&O.types[C].length&&A.testIgnoreAllow(R,_,T)&&w.push({node:_,eventable:O,props:{interactable:A}})})},"interactable:new":function(p){var f=p.interactable;f.events.getRect=function(w){return f.getRect(w)}},"interactable:set":function(p,f){var w=p.interactable,_=p.options;Ue(w.events.options,f.pointerEvents.defaults),Ue(w.events.options,_.pointerEvents||{})}}},Cd=Ed,Td={id:"pointer-events",install:function(p){p.usePlugin(vd),p.usePlugin(xd),p.usePlugin(Cd)}},Pd=Td,Md={id:"reflow",install:function(p){var f=p.Interactable;p.actions.phases.reflow=!0,f.prototype.reflow=function(w){return function(_,C,T){for(var A=_.getAllElements(),O=T.window.Promise,R=O?[]:null,U=function(){var Z=A[D],oe=_.getRect(Z);if(!oe)return 1;var ge,he=bi(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Z&&Ie.prepared.name===C.name});if(he)he.move(),R&&(ge=he._reflowPromise||new O(function(Ie){he._reflowResolve=Ie}));else{var be=gc(oe),Oe=function(Ie){return{coords:Ie,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:be.x,y:be.y},client:{x:be.x,y:be.y},timeStamp:T.now()});ge=function(Ie,$e,Xe,Qe,Be){var Je=Ie.interactions.new({pointerType:"reflow"}),wr={interaction:Je,event:Be,pointer:Be,eventTarget:Xe,phase:"reflow"};Je.interactable=$e,Je.element=Xe,Je.prevEvent=Be,Je.updatePointer(Be,Be,Xe,!0),wc(Je.coords.delta),qs(Je.prepared,Qe),Je._doPhase(wr);var vt=Ie.window,Rr=vt.Promise,gn=Rr?new Rr(function(Tn){Je._reflowResolve=Tn}):void 0;return Je._reflowPromise=gn,Je.start(Qe,$e,Xe),Je._interacting?(Je.move(wr),Je.end(Be)):(Je.stop(),Je._reflowResolve()),Je.removePointer(Be,Be),gn}(T,_,Z,C,Oe)}R&&R.push(ge)},D=0;D<A.length&&!U();D++);return R&&O.all(R).then(function(){return _})}(this,w,p)}},listeners:{"interactions:stop":function(p,f){var w=p.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,C){_.splice(_.indexOf(C),1)}(f.interactions.list,w))}}},Ad=Md;if(gr.use(Dc),gr.use(Wc),gr.use(Pd),gr.use(Zu),gr.use(bd),gr.use(Fu),gr.use(Mu),gr.use(Ic),gr.use(Ad),gr.default=gr,i(t)==="object"&&t)try{t.exports=gr}catch{}return gr.default=gr,gr})})(gb,gb.exports);fX=gb.exports,Mg=dX(fX)});function oN(t,e,r){return e?`${t}-${e}`:r?`${t}-${r}`:`${t}-m`}var sN=N(()=>{});var lc,Zn,uc,wb,aN,cN,pX,A5,lN,yb,uN=N(()=>{lr();oc();iN();un();ki();xr();dn();Rs();tc();sN();ob();P5();qo();b5();ln();lc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Zn={actionBar:"action-bar",alerts:"alerts",content:"content",customContent:"custom-content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},uc=25,wb=25,aN={x:0,y:0},cN={top:0,right:0,bottom:0,left:0},pX=Ct`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}::slotted(*){--calcite-panel-background-color: initial}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,A5=0,lN="",yb=class extends wt{constructor(){super(...arguments),this.dragPosition={...aN},this.focusTrap=mb({triggerProp:"open",focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})(this),this.ignoreOpenChange=!1,this.mutationObserver=Nn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openProp="opened",this.transitionProp="opacity",this.panelEl=mi(),this.resizePosition={...cN},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=Xr(),this.modal=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Tt({cancelable:!1}),this.calciteDialogBeforeOpen=Tt({cancelable:!1}),this.calciteDialogClose=Tt({cancelable:!1}),this.calciteDialogOpen=Tt({cancelable:!1}),this.calciteDialogScroll=Tt({cancelable:!1})}static{this.properties={assistiveText:[16,{state:!0}],hasContentBottom:[16,{state:!0}],hasContentTop:[16,{state:!0}],hasFooter:[16,{state:!0}],opened:[16,{state:!0}],beforeClose:[0,{attribute:!1}],closeDisabled:[7,{reflect:!0,type:Boolean}],description:1,dragEnabled:[7,{reflect:!0,type:Boolean}],embedded:[5,{type:Boolean}],escapeDisabled:[7,{reflect:!0,type:Boolean}],focusTrapOptions:[0,{attribute:!1}],heading:1,headingLevel:[11,{type:Number,reflect:!0}],kind:[3,{reflect:!0}],loading:[7,{reflect:!0,type:Boolean}],menuOpen:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}],modal:[7,{reflect:!0,type:Boolean}],focusTrapDisabled:[7,{reflect:!0,type:Boolean}],open:[7,{reflect:!0,type:Boolean}],outsideCloseDisabled:[7,{reflect:!0,type:Boolean}],overlayPositioning:[3,{reflect:!0}],placement:[3,{reflect:!0}],resizable:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],widthScale:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=pX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.toggleDialog(e))}async scrollContentTo(e){await this.panelEl.value?.scrollContentTo(e)}async setFocus(){return await En(this),this.panelEl.value?.setFocus()??ec(this.el)}async updateFocusTrapElements(e){this.focusTrap.setExtraContainers(e),this.focusTrap.updateContainerElements()}focusTrapDisabledOverride(){return!this.modal&&this.focusTrapDisabled}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setupInteractions()}willUpdate(e){e.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("placement")&&(this.hasUpdated||this.placement!=="center")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(e.has("messages")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:e}=this;this.assistiveText=e&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?e.dragEnabled:""} ${this.resizable?e.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),this.focusTrap.deactivate()}toggleDialog(e){this.ignoreOpenChange||(e?this.openDialog():this.closeDialog())}handleOpenedChange(e){let{transitionEl:r}=this;r&&(r.classList.toggle(lc.openingActive,e),gp(this))}async triggerInteractModifiers(){let{interaction:e}=this;e&&(await e.reflow({name:"drag"}),await e.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(e){let{key:r,shiftKey:n,defaultPrevented:i}=e,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-uc,type:"blockSize"}),c.bottom-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y-=wb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+uc,type:"blockSize"}),c.bottom+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y+=wb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-uc,type:"inlineSize"}),c.right-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x-=wb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+uc,type:"inlineSize"}),c.right+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x+=wb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break}}updateTransform(){let{dragPosition:{x:e,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:c,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(e+h+a),v=Math.round(r+c+d);i.style.transform=g||v?`translate(${g}px, ${v}px)`:null}updateSize({type:e,size:r}){let{transitionEl:n}=this;n&&(n.style[e]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...aN},this.resizePosition={...cN},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:e,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=Mg(r,{context:e.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[Mg.modifiers.restrictSize({min:{width:og(c)?parseInt(c):0,height:og(a)?parseInt(a):0},max:{width:og(d)?parseInt(d):window.innerWidth,height:og(h)?parseInt(h):window.innerHeight}}),Mg.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[Mg.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:e,right:r,bottom:n,left:i}){let o=e/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:e,right:s,bottom:0,left:a};case"top-start":return{top:e,right:0,bottom:0,left:i};case"top-end":return{top:e,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}setTransitionEl(e){e&&(this.transitionEl=e,this.setupInteractions())}handleInternalPanelScroll(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.open=!1)}handlePanelKeyDown(e){this.escapeDisabled&&e.key==="Escape"&&e.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}A5--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){A5===0&&(lN=document.documentElement.style.overflow),A5++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",lN)}handleMutationObserver(){this.focusTrap.updateContainerElements()}render(){let{assistiveText:e,description:r,heading:n,opened:i}=this;return _e`<div class=${Se({[lc.container]:!0,[lc.containerOpen]:i,[lc.containerEmbedded]:this.embedded})}>${this.modal?_e`<calcite-scrim class=${Se(lc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${Se({[lc.dialog]:!0,[oN("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${dt(this.setTransitionEl)}>${e?Xt("assistive-text",_e`<div aria-live=polite class=${Se(lc.assistiveText)}>${e}</div>`):null}<slot name=${Zn.customContent}><slot name=${Zn.content}><calcite-panel .beforeClose=${this.beforeClose} class=${Se(lc.panel)} .closable=${!this.closeDisabled} .closed=${!i} .description=${r} .heading=${n} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${dt(this.panelEl)}><slot name=${Zn.actionBar} slot=${Rt.actionBar}></slot><slot name=${Zn.alerts} slot=${Rt.alerts}></slot><slot name=${Zn.headerActionsStart} slot=${Rt.headerActionsStart}></slot><slot name=${Zn.headerActionsEnd} slot=${Rt.headerActionsEnd}></slot><slot name=${Zn.headerContent} slot=${Rt.headerContent}></slot><slot name=${Zn.headerMenuActions} slot=${Rt.headerMenuActions}></slot><slot name=${Zn.fab} slot=${Rt.fab}></slot><slot name=${Zn.contentTop} slot=${Rt.contentTop}></slot><slot name=${Zn.contentBottom} slot=${Rt.contentBottom}></slot><slot name=${Zn.footerStart} slot=${Rt.footerStart}></slot><slot name=${Zn.footer} slot=${Rt.footer}></slot><slot name=${Zn.footerEnd} slot=${Rt.footerEnd}></slot><slot></slot></calcite-panel></slot></slot></div></div>`}};Lt("calcite-dialog",yb)});var dN={};Io(dN,{Dialog:()=>yb});var fN=N(()=>{H4();nN();uN()});var pN,mX,I5,mN=N(()=>{lr();un();xr();dn();ln();pN={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},mX=Ct`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-block-start:var(--calcite-input-message-spacing, var(--calcite-input-message-spacing-value, var(--calcite-spacing-xxs)))}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:var(--calcite-spacing-sm)}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-color-status-danger)))}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-color-status-warning)))}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-color-status-success)))}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-color-brand)))}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`,I5=class extends wt{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{reflect:!0,converter:ks}],iconFlipRtl:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],status:[3,{reflect:!0}]}}static{this.styles=mX}connectedCallback(){super.connectedCallback(),this.requestedIcon=Ns(pN,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||this.status!=="idle")||e.has("icon"))&&(this.requestedIcon=Ns(pN,this.icon,this.status))}render(){let e=this.el.hidden;return tp(this.el,"calcite-hydrated-hidden",e),_e`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return _e`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}};Lt("calcite-input-message",I5)});var hN=N(()=>{Zl();mN()});var hX,L5,gN=N(()=>{lr();Yr();xr();dn();ln();hX=Ct`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,L5=class extends wt{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:[7,{reflect:!0,type:Boolean}],text:1,type:[3,{reflect:!0}],value:[9,{type:Number}]}}static{this.styles=hX}render(){let e=this.type==="determinate",r=e?{width:`${this.value}%`}:{},n=Ka(this.el);return _e`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${Se({bar:!0,indeterminate:this.type==="indeterminate",[rg.rtl]:n==="rtl",reversed:this.reversed})} style=${My(r)}></div></div>${this.text?_e`<div class="text">${this.text}</div>`:null}</div>`}};Lt("calcite-progress",L5)});var wN=N(()=>{gN()});function Yo(t){return!(!t||isNaN(Number(t)))}function yN(t){return!t||!EX(t)?"":bb(t,e=>{let r=!1,n=e.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Eg.includes(i)).join("");return Yo(n)?new iu(n).toString():""})}function SX(t){let e=t.split(".")[1],r=new iu(t).toString(),[n,i]=r.split(".");return e&&i!==e?`${n}.${e}`:r}function bb(t,e){if(!t)return t;let r=t.toLowerCase().indexOf("e")+1;return r?t.replace(/[eE]*$/g,"").substring(0,r).concat(t.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>e(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):e(t)}function xX(t){let e=t.split(/[eE]/);if(e.length===1)return t;let r=+t;if(Number.isSafeInteger(r))return`${r}`;let n=t.charAt(0)==="-",i=+e[1],o=e[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let E=Math.abs(v)-g.length,M=E>0?`${"0".repeat(E)}${g}`:g;return`${M.slice(0,v)}.${M.slice(v)}`},d=(g,v)=>{let E=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${E.slice(0,v)}.${E.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(gX,"").replace(bN,"")}`}function EX(t){return Eg.some(e=>t.includes(e))}function _N(t,e,r){let n=e.split(".")[1];if(n){let i=n.match(_X)[0];if(i&&r.delocalize(t).length!==e.length&&n.indexOf("e")===-1){let o=r.decimal;return t=t.includes(o)?t:`${t}${o}`,t.padEnd(t.length+i.length,r.localize("0"))}}return t}function PX(t,e="cldr"){let r=e==="cldr"?xN:SN;return t?r.includes(t)?t:(t=t.toLowerCase(),t==="nb"?"no":e==="t9n"&&t==="pt"?"pt-BR":(t.includes("-")&&(t=t.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(t)||(t=t.split("-")[0])),t==="zh"?"zh-CN":r.includes(t)?t:(console.warn(`Translations for the "${t}" locale are not available and will fall back to the default, English (en).`),Ag))):Ag}var gX,wX,iu,bN,yX,bX,vX,_X,vN,Ag,SN,xN,s_e,CX,EN,k5,CN,TX,O5,mo,TN=N(()=>{Cg();gX=new RegExp("\\.(0+)?$"),wX=new RegExp("0+$"),iu=class t{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof t)return e;let[r,n]=xX(e).split(".").concat("");this.value=BigInt(r+n.padEnd(t.DECIMALS,"0").slice(0,t.DECIMALS))+BigInt(t.ROUNDED&&n[t.DECIMALS]>="5"),this.isNegative=e.charAt(0)==="-"}static{this._divRound=(e,r)=>t.fromBigInt(e/r+(t.ROUNDED?e*BigInt(2)/r%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(t.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){let e=this.value.toString().replace("-","").padStart(t.DECIMALS+1,"0"),r=e.slice(0,-t.DECIMALS),n=e.slice(-t.DECIMALS).replace(wX,"");return{integers:r,decimals:n}}toString(){let{integers:e,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${r.length?"."+r:""}`}formatToParts(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=e.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:e.minusSign}),n.length&&(i.push({type:"decimal",value:e.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(r))}`,o=n.length?`${e.decimal}${n.split("").map(s=>e.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(e){return t.fromBigInt(this.value+new t(e).value)}subtract(e){return t.fromBigInt(this.value-new t(e).value)}multiply(e){return t._divRound(this.value*new t(e).value,t.SHIFT)}divide(e){return t._divRound(this.value*t.SHIFT,new t(e).value)}};bN=/^([-0])0+(?=\d)/,yX=/(?!^\.)\.$/,bX=/(?!^-)-/g,vX=/^-\b0\b\.?0*$/,_X=/0*$/,vN=t=>bb(t,e=>{let r=e.replace(bX,"").replace(yX,"").replace(bN,"$1");return Yo(r)?vX.test(r)?r:SX(r):e});Ag="en",SN=["ar","bg","bs","ca","cs","da","de","el",Ag,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],xN=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Ag,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],s_e=new Map(Object.entries({bg:{am:"\u043F\u0440.\u043E\u0431.",pm:"\u0441\u043B.\u043E\u0431."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a.\xA0m.",pm:"p.\xA0m."},cs:{am:"dop.",pm:"odp."},es:{am:"a.\xA0m.",pm:"p.\xA0m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6",pm:"\u05D0\u05D7\u05D4\u05F4\u05E6"},hu:{am:"de. ",pm:"du."},lt:{am:"prie\u0161piet",pm:"popiet"},lv:{am:"priek\u0161pusdien\u0101",pm:"p\u0113cpusdien\u0101"},mk:{am:"\u043F\u0440\u0435\u0442\u043F\u043B.",pm:"\u043F\u043E\u043F\u043B."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manh\xE3",pm:"da tarde"},"pt-PT":{am:"da manh\xE3",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07",pm:"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},tr:{am:"\xD6\xD6",pm:"\xD6S"},uk:{am:"\u0434\u043F",pm:"\u043F\u043F"},vi:{am:"SA",pm:"CH"}})),CX=["arab","arabext","latn"];[...new Set([...SN,...xN])];EN=t=>CX.includes(t),k5=new Intl.NumberFormat().resolvedOptions().numberingSystem,CN=k5==="arab"||!EN(k5)?"latn":k5,TX=t=>EN(t)?t:CN;O5=class{constructor(){this.delocalize=e=>this._numberFormatOptions?bb(e,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):e,this.localize=e=>this._numberFormatOptions?bb(e,r=>Yo(r.trim())?new iu(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){if(e.locale=PX(e?.locale),e.numberingSystem=TX(e?.numberingSystem),!this._numberFormatOptions&&e.locale===Ag&&e.numberingSystem===CN&&Object.keys(e).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=e.locale==="bs"||e.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},mo=new O5});var MX,AX,PN,MN=N(()=>{ki();Yr();xr();MX={validationContainer:"validation-container"},AX=()=>{},PN=({scale:t,status:e,id:r,icon:n,message:i,ref:o})=>_e`<div class=${Se(MX.validationContainer)} ${dt(o||AX)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Me} .scale=${t} .status=${e}>${i}</calcite-input-message></div>`});function wp(t,e,r,n){let i=r.toLowerCase(),o=t[r];n&&o!=null?e.setAttribute(i,`${o}`):e.removeAttribute(i)}function AN(t,e,r){r.type=t==="textarea"?"text":t;let n=IX.includes(t),i=e;wp(i,r,"min",n),wp(i,r,"max",n),wp(i,r,"step",n);let o=kX.includes(t),s=e;wp(s,r,"minLength",o),wp(s,r,"maxLength",o);let c=LX.includes(t);wp(s,r,"pattern",c)}var IX,LX,kX,IN=N(()=>{IX=["date","datetime-local","month","number","range","time","week"],LX=["email","password","search","tel","text","url"],kX=["email","password","search","tel","text","textarea","url"]});var fn,N5,LN,OX,NX,vb,kN=N(()=>{lr();y4();oc();un();ki();Uy();xr();Qf();dn();j4();ag();Cg();jy();Rs();TN();MN();qo();IN();ln();fn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",numberButtonItem:"number-button-item",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},N5={validationMessage:"inputValidationMessage"},LN={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},OX={action:"action"},NX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) input[type=file],:host([scale=s]) textarea{min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea,:host([scale=m]) input[type=file]{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea,:host([scale=l]) input[type=file]{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}textarea:placeholder-shown,input:placeholder-shown{text-overflow:ellipsis}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}textarea{border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly],textarea[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;font-weight:var(--calcite-font-weight-medium);line-height:1;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-prefix-background-color, var(--calcite-color-background));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-suffix-background-color, var(--calcite-color-background));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));block-size:initial}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,vb=class extends wt{constructor(){super(),this.actionWrapperEl=mi(),this.attributeWatch=dy(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=mi(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.messages=Xr(),this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=Tt({cancelable:!1}),this.calciteInputInput=Tt(),this.calciteInternalInputBlur=Tt({cancelable:!1}),this.calciteInternalInputFocus=Tt({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:[16,{state:!0}],slottedActionElDisabledInternally:[16,{state:!0}],accept:1,alignment:[3,{reflect:!0}],autocomplete:[0,{attribute:!1}],clearable:[7,{reflect:!0,type:Boolean}],disabled:[7,{reflect:!0,type:Boolean}],editingEnabled:[7,{reflect:!0,type:Boolean}],files:[0,{attribute:!1}],form:[3,{reflect:!0}],groupSeparator:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0,converter:ks}],iconFlipRtl:[7,{reflect:!0,type:Boolean}],label:1,loading:[7,{reflect:!0,type:Boolean}],localeFormat:[5,{type:Boolean}],max:[11,{reflect:!0,type:Number}],maxLength:[11,{reflect:!0,type:Number}],messageOverrides:[0,{attribute:!1}],min:[11,{reflect:!0,type:Number}],minLength:[11,{reflect:!0,type:Number}],multiple:[5,{type:Boolean}],name:[3,{reflect:!0}],numberButtonType:[3,{reflect:!0}],numberingSystem:[3,{reflect:!0}],pattern:1,placeholder:1,prefixText:1,readOnly:[7,{reflect:!0,type:Boolean}],required:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],status:[3,{reflect:!0}],step:[3,{reflect:!0}],suffixText:1,type:[3,{reflect:!0}],validationIcon:[3,{reflect:!0,converter:ks}],validationMessage:1,validity:[0,{attribute:!1}],value:1}}static{this.styles=NX}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}get value(){return this._value}set value(e){let r=this._value;e!==r&&(this._value=e,this.valueWatcher(e,r),e&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await En(this),ec(this.type==="number"?this.childNumberEl:this.childEl)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),lp(this),WL(this),this.el.addEventListener(zy,this.onHiddenFormInputInput)}async load(){this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Ns(LN,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Yo(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=Ns(LN,this.icon,this.type))}updated(){nc(this)}disconnectedCallback(){super.disconnectedCallback(),Gy(this),BL(this),this.el.removeEventListener(zy,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,r){if(!this.userChangedValue){if(this.type==="number"&&(e==="Infinity"||e==="-Infinity")){this.displayedValue=e,this.previousEmittedValue=e;return}this.setValue({origin:"direct",previousValue:r,value:e==null||e==""?"":this.type==="number"?Yo(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&Vy(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=e==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),d=new iu(o!==""?o:"0").add(`${c*s}`),h=()=>typeof n=="number"&&!isNaN(n)&&d.subtract(`${n}`).isNegative,g=()=>typeof r=="number"&&!isNaN(r)&&!d.subtract(`${r}`).isNegative,v=h()?`${n}`:g()?`${r}`:d.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:v})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;let r=e.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(e){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),this.setValue({nativeEvent:e,origin:"user",value:e.target.value}))}inputKeyDownHandler(e){this.disabled||this.readOnly||e.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=e.target.value;mo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=mo.delocalize(r);e.inputType==="insertFromPaste"?(Yo(n)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:yN(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:n})}inputNumberKeyDownHandler(e){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){e.preventDefault(),(e.key==="Backspace"||e.key==="Delete")&&this.clearInputValue(e);return}if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){this.nudgeNumberValue("down",e);return}let r=[...Eg,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;let n=e.shiftKey&&e.key==="Tab";if(r.includes(e.key)||n){e.key==="Enter"&&this.emitChangeIfUserModified();return}mo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===mo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(mo.decimal)===-1))&&(/[eE]/.test(e.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||e.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault())}nudgeNumberValue(e,r){if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(e,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(e,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(e){if(!SL(e))return;e.preventDefault();let r=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,e)}syncHiddenFormInput(e){AN(this.type,this,e)}setChildElRef(e){this.childEl=e}setChildNumberElRef(e){this.childNumberEl=e}setInputValue(e){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=e:this.childEl&&(this.childEl.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return this.type==="number"?Yo(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){mo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:vN(o),d=o&&!a?Yo(this.previousValue)?this.previousValue:"":a,h=mo.localize(d);n!=="connected"&&!c&&(h=_N(h,d,mo)),this.displayedValue=c&&s?`${h}${mo.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?mo.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!Yo(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=Ka(this.el),r=_e`<div class=${Se(fn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=_e`<button .ariaLabel=${this.messages.clear} class=${Se(fn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`,i=_e`<calcite-icon class=${Se(fn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=_e`<button aria-hidden=true class=${Se({[fn.numberButtonItem]:!0,[fn.buttonItemHorizontal]:o})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${Rn(this.scale)}></calcite-icon></button>`,c=_e`<button aria-hidden=true class=${Se({[fn.numberButtonItem]:!0,[fn.buttonItemHorizontal]:o})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${Rn(this.scale)}></calcite-icon></button>`,a=_e`<div class=${Se(fn.numberButtonWrapper)}>${s}${c}</div>`,d=_e`<div class=${Se(fn.prefix)}>${this.prefixText}</div>`,h=_e`<div class=${Se(fn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,v=this.el.enterKeyHint,E=this.el.inputMode,M=this.type==="number"?Xt("localized-input",_e`<input accept=${this.accept??Me} aria-errormessage=${N5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${fg(this)} autocomplete=${this.autocomplete??Me} .autofocus=${g} value=${this.defaultValue??Me} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Me} inputmode=${E??Me} maxlength=${this.maxLength??Me} minlength=${this.minLength??Me} .multiple=${this.multiple} name=${Me} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Me} placeholder=${(this.placeholder||"")??Me} .readOnly=${this.readOnly} type=text .value=${Py(this.displayedValue??"")} ${dt(this.setChildNumberElRef)}>`):null,k=this.childElType==="input"?rc`input`:rc`textarea`,F=this.type!=="number"?ap`<${k} accept=${this.accept??Me} aria-errormessage=${N5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${fg(this)} autocomplete=${this.autocomplete??Me} .autofocus=${g} class=${Se({[fn.editingEnabled]:this.editingEnabled,[fn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Me} inputmode=${E??Me} max=${this.maxString??Me} maxlength=${this.maxLength??Me} min=${this.minString??Me} minlength=${this.minLength??Me} .multiple=${this.multiple} name=${this.name??Me} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Me} placeholder=${(this.placeholder||"")??Me} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Me} step=${this.step??Me} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Me} type=${this.type??Me} .value=${Py(this.value??"")} ${dt(this.setChildElRef)}></${k}>`:null;return ic({disabled:this.disabled,children:_e`<div class=${Se({[fn.inputWrapper]:!0,[rg.rtl]:e==="rtl",[fn.hasSuffix]:this.suffixText,[fn.hasPrefix]:this.prefixText})} ${dt(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${Se(fn.wrapper)}>${M}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${Se(fn.actionWrapper)} ${dt(this.actionWrapperEl)}><slot name=${OX.action}></slot></div>${this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null}${this.suffixText?h:null}${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null}${jL({component:this})}</div>${this.validationMessage&&this.status==="invalid"?PN({icon:this.validationIcon,id:N5.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Lt("calcite-input",vb)});var ON={};Io(ON,{Input:()=>vb});var NN=N(()=>{hN();wN();Zl();kN()});var RX,DX,_b,RN=N(()=>{lr();un();xr();jy();ln();RX={container:"container"},DX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,_b=class extends wt{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Tt({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{reflect:!0}],for:[3,{reflect:!0}],layout:[3,{reflect:!0}],scale:[3,{reflect:!0}]}}static{this.styles=DX}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(dg))}willUpdate(e){e.has("for")&&QL(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(lg))}labelClickHandler(e){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return _e`<div class=${Se(RX.container)}><slot></slot></div>`}};Lt("calcite-label",_b)});var DN={};Io(DN,{Label:()=>_b});var FN=N(()=>{RN()});var R5,$N=N(()=>{R5={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Sb,Ig,FX,xb,UN=N(()=>{lr();un();ki();xr();dn();Rs();$N();ob();qo();ln();Sb={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Ig={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},FX=Ct`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none;color:var(--calcite-notice-close-icon-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-icon-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, var(--calcite-color-foreground-3))}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,xb=class extends wt{constructor(){super(...arguments),this.closeButton=mi(),this.transitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=Xr(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Tt({cancelable:!1}),this.calciteNoticeBeforeOpen=Tt({cancelable:!1}),this.calciteNoticeClose=Tt({cancelable:!1}),this.calciteNoticeOpen=Tt({cancelable:!1})}static{this.properties={hasActionEnd:[16,{state:!0}],closable:[7,{reflect:!0,type:Boolean}],icon:[3,{reflect:!0,converter:ks}],iconFlipRtl:[7,{reflect:!0,type:Boolean}],kind:[3,{reflect:!0}],messageOverrides:[0,{attribute:!1}],open:[7,{reflect:!0,type:Boolean}],scale:[3,{reflect:!0}],width:[3,{reflect:!0}]}}static{this.styles=FX}async setFocus(){await En(this);let e=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!e)){if(e)return e.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){this.requestedIcon=Ns(R5,this.icon,this.kind)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&gp(this),(e.has("icon")||e.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=Ns(R5,this.icon,this.kind))}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(e){e&&(this.transitionEl=e)}close(){this.open=!1}handleActionsEndSlotChange(e){this.hasActionEnd=On(e)}render(){let e=_e`<button .ariaLabel=${this.messages.close} class=${Se(Ig.close)} @click=${this.close} ${dt(this.closeButton)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`;return _e`<div class=${Se(Ig.container)} ${dt(this.setTransitionEl)}>${this.requestedIcon?_e`<div class=${Se(Ig.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon></div>`:null}<div class=${Se(Ig.content)}><slot name=${Sb.title}></slot><slot name=${Sb.message}></slot><slot name=${Sb.link}></slot></div><div class=${Se(Ig.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${Sb.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?e:null}</div>`}};Lt("calcite-notice",xb)});var VN={};Io(VN,{Notice:()=>xb});var zN=N(()=>{Zl();UN()});var D5,F5,$X,gi,$5,WN=N(()=>{ai();xx();ci();St();Vt();Sa();qn();iL();_4();ry();oL();aL();lL();bx();D5="esri-identity-modal",F5={base:D5,info:`${D5}__info`,notice:`${D5}__notice`},$X="ArcGIS Online",gi=class extends nL{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return ZI({button:()=>Promise.resolve().then(()=>(rk(),tk)),dialog:()=>Promise.resolve().then(()=>(fN(),dN)),input:()=>Promise.resolve().then(()=>(NN(),ON)),label:()=>Promise.resolve().then(()=>(FN(),DN)),notice:()=>Promise.resolve().then(()=>(zN(),VN))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:t,title:e,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:E,lblPwd:M,lblCancel:k,lblSigning:F,lblOk:z}=r;return pi("div",{class:this.classes(F5.base,cL())},pi("form",{bind:this,onsubmit:this._submit},pi("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},pi("div",{class:F5.info},wx(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?$X:o,resource:`(${s||h})`})),c?pi("calcite-notice",{class:F5.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},pi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[pi("calcite-label",null,E,pi("calcite-input",{afterCreate:B=>this._usernameInputNode=B,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),pi("calcite-label",null,M,pi("calcite-input",{afterCreate:B=>this._passwordInputNode=B,bind:this,name:"password",required:!0,type:"password",value:""}))],pi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},k),pi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:z))))}_focusUsernameInput(){return bA(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(t){t.preventDefault(),this._set("signingIn",!0);let e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e)}};ae([pe({readOnly:!0})],gi.prototype,"container",void 0),ae([pe(),T4("esri/t9n/common")],gi.prototype,"commonMessages",void 0),ae([pe()],gi.prototype,"error",void 0),ae([pe(),T4("esri/identity/t9n/identity")],gi.prototype,"messages",void 0),ae([pe()],gi.prototype,"oAuthPrompt",void 0),ae([pe()],gi.prototype,"open",void 0),ae([pe()],gi.prototype,"signingIn",void 0),ae([pe()],gi.prototype,"server",void 0),ae([pe({readOnly:!0})],gi.prototype,"title",null),ae([pe()],gi.prototype,"resource",void 0),gi=ae([Et("esri.identity.IdentityModal")],gi);$5=gi});var U5,yp,BN=N(()=>{U5="esriJSAPIOAuth",yp=class{constructor(e,r){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=r,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)e=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}}return e}save(){if(!this.storage)return!1;let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n||(n=e[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(U5,JSON.stringify(e))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let e=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=e[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(U5,JSON.stringify(e))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let e={};if(this.storage){let r=this.storage.getItem(U5);if(r)try{e=JSON.parse(r)}catch(n){console.warn(n)}}return e}};yp.prototype.declaredClass="esri.identity.OAuthCredential"});var V5,pn,z5,GN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();pn=class extends ui{static{V5=this}constructor(t){super(t),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return V5.fromJSON(this.toJSON())}};ae([pe({json:{write:!0}})],pn.prototype,"appId",void 0),ae([pe({json:{write:!0}})],pn.prototype,"authNamespace",void 0),ae([pe({json:{write:!0}})],pn.prototype,"expiration",void 0),ae([pe({json:{write:!0}})],pn.prototype,"flowType",void 0),ae([pe({json:{write:!0}})],pn.prototype,"forceLogin",void 0),ae([pe({json:{write:!0}})],pn.prototype,"forceUserId",void 0),ae([pe({json:{write:!0}})],pn.prototype,"locale",void 0),ae([pe({json:{write:!0}})],pn.prototype,"minTimeUntilExpiration",void 0),ae([pe({json:{write:!0}})],pn.prototype,"popup",void 0),ae([pe({json:{write:!0}})],pn.prototype,"popupCallbackUrl",void 0),ae([pe({json:{write:!0}})],pn.prototype,"popupWindowFeatures",void 0),ae([pe({json:{write:!0}})],pn.prototype,"portalUrl",void 0),ae([pe({json:{write:!0}})],pn.prototype,"preserveUrlHash",void 0),ae([pe({json:{write:!0}})],pn.prototype,"userId",void 0),pn=V5=ae([Et("esri.identity.OAuthInfo")],pn);z5=pn});var wi,Eb,jN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();wi=class extends ui{constructor(t){super(t),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};ae([pe({json:{write:!0}})],wi.prototype,"adminTokenServiceUrl",void 0),ae([pe({json:{write:!0}})],wi.prototype,"currentVersion",void 0),ae([pe({json:{write:!0}})],wi.prototype,"hasPortal",void 0),ae([pe({json:{write:!0}})],wi.prototype,"hasServer",void 0),ae([pe({json:{write:!0}})],wi.prototype,"owningSystemUrl",void 0),ae([pe({json:{write:!0}})],wi.prototype,"owningTenant",void 0),ae([pe({json:{write:!0}})],wi.prototype,"server",void 0),ae([pe({json:{write:!0}})],wi.prototype,"shortLivedTokenValidity",void 0),ae([pe({json:{write:!0}})],wi.prototype,"tokenServiceUrl",void 0),ae([pe({json:{write:!0}})],wi.prototype,"webTierAuth",void 0),wi=ae([Et("esri.identity.ServerInfo")],wi);Eb=wi});var Cb,qN,W5,Tb,Pb,Lg,Yt,HN=N(()=>{ai();Fa();Lh();Ww();Ln();dx();vh();Mn();Do();io();Bo();ci();St();Vt();qn();WN();BN();GN();jN();Ah();Cb={},qN=t=>{let e=new sn(t.owningSystemUrl).host,r=new sn(t.server).host,n=/.+\.arcgis\.com$/i;return n.test(e)&&n.test(r)},W5=(t,e)=>!!(qN(t)&&e&&e.some(r=>r.test(t.server))),Tb=null,Pb=null;try{Tb=window.localStorage,Pb=window.sessionStorage}catch{}Lg=class extends Cs{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Es(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){let r=this.serverInfos;r?(e=e.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(e)):this.serverInfos=e,e.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(e){let r=this.oAuthInfos;if(r){for(let n of e){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};let r=this._sanitizeUrl(e.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new Eb,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete e.server,Object.assign(i,e),s=!1):(i=new Yt({userId:e.userId,server:o.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return h0({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;typeof e=="string"&&(e=JSON.parse(e));let r=e.serverInfos,n=e.oAuthInfos,i=e.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new Eb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new z5(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new Yt(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,e)){r=n;break}return r}findOAuthInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,e)){r=n;break}return r}findCredential(e,r){if(!e)return;let n;e=this._sanitizeUrl(e);let i=this._isServerRsrc(e)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&this._getIdenticalSvcIdx(e,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(e,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},e=this._sanitizeUrl(e);let s=new AbortController,c=_n();if(r.signal&&li(r.signal,()=>{s.abort()}),li(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),no(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(e),d=n?this.findCredential(e):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new We("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+e,{error:i}),c.reject(h),c.promise;let g=this._findCredential(e,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(e);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(e)&&(v._restInfoPms=this._getTokenSvcUrl(e),v.hasServer=!0);else{let E=this._getTokenSvcUrl(e);if(!E)return h=new We("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new Eb,v.server=this._getServerInstanceRoot(e),typeof E=="string"?(v.tokenServiceUrl=E,v.hasPortal=!0):(v._restInfoPms=E,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||an(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(E=>E.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,v,r,c,a)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,r,n){let i=this._rePortalTokenSvc.test(e.tokenServiceUrl),o=new sn(this._appOrigin),s=e.shortLivedTokenValidity,c,a,d,h,g,v,E,M;r&&(M=this.tokenValidity||s||this._defaultTokenValidity,M>s&&s>0&&(M=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,E=n.ssl,e.customParameters=n.customParameters),c?h=e.adminTokenServiceUrl:(h=e.tokenServiceUrl,g=new sn(h.toLowerCase()),e.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(an(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let k={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:M,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,n),signal:v,...n?.ioArgs};return i||(k.withCredentials=!1),nr(h,k).then(F=>{let z=F.data;if(!z?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let B=e.server;return Cb[B]||(Cb[B]={}),r&&(Cb[B][r.username]=r.password),z.validity=M,z})}isBusy(){return!!this._busy}async checkSignInStatus(e){return(await this.checkAppAccess(e,"")).credential}checkAppAccess(e,r,n){let i=!1;return this.getCredential(e,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(e)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),nr(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new We("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new We("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new We("identity-manager:invalid-request","Bad request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(e){e&&(e.charAt(0)==="#"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,r,n={}){let i=_n(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new We("identity-manager:user-aborted","ABORTED"))};n.signal&&li(n.signal,()=>{s()});let c=new $5({open:!0,resource:this.getResourceName(e),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new Yt({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(e,r,n,i){this._oAuthDfd=_n();let o=this._oAuthDfd,s;i?.signal&&li(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=e,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Rw(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Rw(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let E=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!E)return void this._doOAuthSignIn(e,r,n,v);let M=new $5({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=M,this.emit("dialog-create"),a=M.on("cancel",h),d=M.on("submit",()=>{g(),this._doOAuthSignIn(e,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new We("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Wa(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(e).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){e.charAt(0)==="#"&&(e=e.slice(1));let n=ja(e),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=ja(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=Rl(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(e,r,n,i,o){return e=e.replace(/^http:/i,"https:"),nr(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Rw(new Uint8Array(n))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new We("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(e,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(e)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,e)&&v.scope===h);if(e=d||e,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(e,n),!a)return c===-1&&n.resources.push(e),this._addResource(e,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(e,s))}else{let v,E;if(g.some(M=>(E=this._getIdenticalSvcIdx(e,M),E!==-1&&(v=M,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=E,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(e,s));else if(v)return this._addResource(e,s),v}}_findOAuthInfo(e){let r=this.findOAuthInfo(e);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,e)){r=n;break}}return r}_addResource(e,r){r&&this._getIdenticalSvcIdx(e,r)===-1&&r.resources.push(e)}_removeResource(e,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(e,r),n>-1&&r.resources.splice(n,1))}_useProxy(e,r){return r?.isAdmin&&!an(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&String(e.currentVersion)==="10.1"&&!an(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let r=new sn(e);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(e){let r=e.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(e)&&(n=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),n!==-1||Iw(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?e.slice(0,n):e}_hasSameServerInstance(e,r){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),e=Rf(e),r=Rf(r),(e=e.slice(Math.max(0,e.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(e){let r=(bt.request.proxyUrl||"").toLowerCase(),n=r?e.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(e=e.slice(n+r.length+1)),e=xs(e),Es(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,r){let n=!1;if(this._isRESTService(e)&&this._isRESTService(r)){let i=this._getSuffix(e).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(e)||this._isServerRsrc(r)||!this._isPortalDomain(e)||(n=!0);return n}_isPortalDomain(e){let r=new sn(e.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||bt.portalUrl&&(i=an(r,bt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(e,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(e)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&qN(s)&&this._isPortalDomain(c)&&this._isIdProvider(e,c)&&(o=!0)}return o}_getIdenticalSvcIdx(e,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(e,o)){n=i;break}}return n}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let r,n,i;if(this._isRESTService(e)||this._isAdminResource(e)){let o=this._getServerInstanceRoot(e);return r=o+"/admin/generateToken",n=nr(e=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(e)){let o="";if(this._gwDomains.some(s=>(s.regex.test(e)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,e)&&(o=s+this._gwTokenUrl),!!o)),o||(i=e.toLowerCase().indexOf("/sharing"),i!==-1&&(o=e.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(e)+this._gwTokenUrl),o){let s=new sn(e).port;/^http:\/\//i.test(e)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(e,r,n){let i=r._oAuthCred;if(e.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,e.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new Yt({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:e.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?Tb:Pb,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new Yt({userId:e.username,server:n.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:e.ssl==="true",oAuthState:e.state,_oAuthCred:i});return r.userId=o.userId,i.storage=e.persist?Tb:Pb,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(e){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){let n=e.error==="access_denied",i=new We(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);r.reject(i)}else this._processOAuthResponseParams(e,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(e){e&&(e.charAt(0)==="?"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}async _exchangeToken(e,r,n){return(await nr(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(e,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{let n=await nr(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(e,r){let n;return this._gwDomains.some(i=>(i.regex.test(e)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),nr(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(e){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(e);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(n,e)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),e)||this._isIdProvider(r.restBaseUrl,e))||an(n,e,!0)))}_checkProtocol(e,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&$f(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:r}),!o)&&n(new We("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(e,r,n,i,o,s){return i||(i=_n()),i.resUrl_=e,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=e.options_?.resource,g=e.resUrl_,v=e.refresh_,E=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,E=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let M=this._soReqs,k={};this._soReqs=[],M.forEach(F=>{if(!this._isIdenticalService(g,F.resUrl_)){let z=this._getSuffix(F.resUrl_);k[z]||(k[z]=!0,d.resources.push(F.resUrl_))}}),e.resolve(d),M.forEach(F=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),F.resUrl_)?F.resolve(d):this._soReqs.push(F)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,E||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{e.reject(d),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let E=e.sinfo_,M=!e.options_||e.options_.prompt!==!1,k=E.hasPortal&&this._findOAuthInfo(e.resUrl_),F,z;if(d)r(new Yt({userId:d,server:E.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let B=Wa(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(B.remove(),q.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new Yt(q.data.credential))):q.data.type==="arcgis:auth:error"&&(B.remove(),q.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(q.data.error))))});li(e.options_?.signal,()=>{B.remove()})}else if(k){let B=k._oAuthCred;if(!B){let q=new yp(k,Tb),V=new yp(k,Pb);q.isValid()&&V.isValid()?q.expires>V.expires?(B=q,V.destroy()):(B=V,q.destroy()):B=q.isValid()?q:V,k._oAuthCred=B}if(B.isValid()){F=new Yt({userId:B.userId??void 0,server:E.server??void 0,token:B.token??void 0,expires:B.expires,ssl:B.ssl??void 0,_oAuthCred:B});let q=k.appId!==B.appId&&this._doPortalSignIn(e.resUrl_);q||B.refreshToken?(e._pendingDfd=B.refreshToken?this._getOAuthToken(E.server,B.refreshToken,B.appId).then(V=>(F.expires=Date.now()+1e3*V.expires_in,F.token=V.access_token,F)):Promise.resolve(F),e._pendingDfd.then(V=>q?this._exchangeToken(V.server,k.appId,V.token).then(X=>(V.token=X,V)).catch(()=>V):V).then(V=>{r(V)}).catch(V=>{let X=V.details?.httpStatus;X>0&&X!==404?(B.destroy(),i()):n(V)})):r(F)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(k.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===B.stateUID&&B.codeVerifier)){let q=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(q,k,E).then(V=>{r(V)}).catch(n)}else{let q=()=>{M?e._pendingDfd=this.oAuthSignIn(e.resUrl_,E,k,e.options_).then(r,n):(z=new We("identity-manager:not-authenticated","User is not signed in."),n(z))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(E.server,k.appId).then(V=>{an(V.portalUrl,this._appOrigin,!0)?(F=new Yt({userId:V.username,server:E.server??void 0,expires:Date.now()+1e3*V.expires_in,token:V.token}),r(F)):q()}).catch(q):q()}}else if(M){if(this._checkProtocol(e.resUrl_,E,n,e.admin_)){let B=e.options_;e.admin_&&(B=B||{},B.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,E,B).then(r,n)}}else z=new We("identity-manager:not-authenticated","User is not signed in."),n(z)},o=()=>{let d=e.sinfo_,h=d.owningSystemUrl,g=e.options_,v,E,M,k;if(g&&(v=g.token,E=g.error,M=g.prompt),k=this._findCredential(h,{token:v,resource:e.resUrl_}),!k){for(let F of this.credentials)if(this._isIdProvider(h,F.server)){k=F;break}}if(k){let F=this.findCredential(e.resUrl_,k.userId);if(F)r(F);else if(W5(d,this._legacyFed)){let z=k.toJSON();z.server=d.server,z.resources=null,r(new Yt(z))}else(e._pendingDfd=this.generateToken(this.findServerInfo(k.server),null,{serverUrl:e.resUrl_,token:k.token,signal:e.options_.signal,ssl:k.ssl})).then(z=>{r(new Yt({userId:k?.userId,server:d.server??void 0,token:z.token,expires:z.expires!=null?Number(z.expires):null,ssl:!!z.ssl,isAdmin:e.admin_,validity:z.validity}))},n)}else this._busy=null,v&&(e.options_.token=null),(e._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:d.owningTenant,signal:e.options_.signal,token:v,error:E,prompt:M})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},F=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(F)})};this._errbackFunc=n;let s=e.sinfo_.owningSystemUrl,c=this._isServerRsrc(e.resUrl_),a=e.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=e.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(Ci("authInfo.tokenServicesUrl",d)||Ci("authInfo.tokenServiceUrl",d)||Ci("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Ci("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{e.sinfo_._restInfoPms=null;let d=new We("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,E,M;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,M=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(E=d.customBaseUrl),e.sinfo_.currentVersion=M),e.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(k=>(h.portalToken=k?.token,h.tokenExpiration=k?.expires,h)):!g&&v&&M>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:E,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{e.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(e){let r,n=null,i=e.portalUrl,o=e.customBaseUrl,s=e.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=this._appUrlObj.path;let a=n.search(/\/(apps|home)\//);n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=nr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new z5({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),nr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Ii(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(an(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(e,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(e)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Rl(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new We("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Wa(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new We("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:e,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(e,r){let n=window.location.href.replace(/#.*$/,"");if(e.popup)return Ii(e.popupCallbackUrl);if(r){let i=Es(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Vf(i.path,i.query)}return n}};Lg.prototype.declaredClass="esri.identity.IdentityManagerBase";Yt=class extends Cs.EventedAccessor{constructor(t){super(t),this._oAuthCred=null,this.tokenRefreshBuffer=2,t?._oAuthCred&&(this._oAuthCred=t._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let t=Zt,e=t.findServerInfo(this.server),r=e?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&W5(e,t._legacyFed),o=e.webTierAuth,s=o&&t.normalizeWebTierAuth,c=Cb[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?t.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&t.serverInfos.some(M=>(t._isIdProvider(r,M.server)&&(g=M),!!g));let E=g?t.findCredential(g.server,this.userId):null;if(!n||E){if(!i){if(n)d={serverUrl:h,token:E?.token,ssl:E?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let M;return h&&(h=t._sanitizeUrl(h),this._enqueued=1,M=t._enqueue(h,e,null,null,this.isAdmin,this),M.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),M}this.isAdmin&&(d={isAdmin:!0})}return t.generateToken(n?g:e,n?null:v,d).then(M=>{this.token=M.token,this.expires=M.expires!=null?Number(M.expires):null,this.creationTime=Date.now(),this.validity=M.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}E?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let t=Zt;t.credentials.forEach(e=>{let r=t.findServerInfo(e.server),n=r?.owningSystemUrl;e!==this&&e.userId===this.userId&&n&&e.scope==="server"&&(t._hasSameServerInstance(this.server,n)||t._isIdProvider(n,this.server))&&(W5(r,t._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())})}}emitTokenChange(t){clearTimeout(this._refreshTimer);let e=Zt,r=this.server?e.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?e.findServerInfo(n):null;t===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||e.normalizeWebTierAuth)||this.expires==null&&this.validity==null||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);let t=Zt,e=t.credentials.indexOf(this);e>-1&&t.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let t=h0({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),e=this.resources;return e&&e.length>0&&(t.resources=e.slice()),t}_startRefreshTimer(){clearTimeout(this._refreshTimer);let t=6e4*this.tokenRefreshBuffer,e=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>e&&(r=e),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>t?r-t:r)}};ae([pe()],Yt.prototype,"creationTime",void 0),ae([pe()],Yt.prototype,"expires",void 0),ae([pe()],Yt.prototype,"isAdmin",void 0),ae([pe()],Yt.prototype,"oAuthState",void 0),ae([pe()],Yt.prototype,"resources",void 0),ae([pe()],Yt.prototype,"scope",void 0),ae([pe()],Yt.prototype,"server",void 0),ae([pe()],Yt.prototype,"ssl",void 0),ae([pe()],Yt.prototype,"token",void 0),ae([pe()],Yt.prototype,"tokenRefreshBuffer",void 0),ae([pe()],Yt.prototype,"userId",void 0),ae([pe()],Yt.prototype,"validity",void 0),Yt=ae([Et("esri.identity.Credential")],Yt)});var ZN={};Io(ZN,{default:()=>YN});var Mb,YN,XN=N(()=>{Lh();HN();Mb=class extends Lg{};Mb.prototype.declaredClass="esri.identity.IdentityManager";YN=new Mb;sM(YN)});var dc,Ab=N(()=>{IS();dc=class extends Lf{notify(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var Ib,JN=N(()=>{Ss();Ab();Ib=class{constructor(e=r=>r.values().next().value){this._peeker=e,this._observable=new dc,this._items=new Set}get length(){return cr(this._observable),this._items.size}clear(){this.length!==0&&(this._items.clear(),this._observable.notify())}last(){if(this.length===0)return;let e;for(e of this._items);return e}peek(){if(this.length!==0)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return cr(this._observable),this._items.has(e)}pop(){if(this.length===0)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(this.length===0)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let r=this.length;return this._items.forEach(n=>{e(n)||this._items.delete(n)}),r!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){cr(this._observable),yield*this._items}}});var bp,KN=N(()=>{Ss();Ab();bp=class{constructor(e){this._observable=new dc,this._map=new Map(e)}get size(){return cr(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){let r=this._map.delete(e);return r&&this._observable.notify(),r}entries(){return cr(this._observable),this._map.entries()}forEach(e,r){cr(this._observable),this._map.forEach((n,i)=>e.call(r,n,i,this),r)}get(e){return cr(this._observable),this._map.get(e)}has(e){return cr(this._observable),this._map.has(e)}keys(){return cr(this._observable),this._map.keys()}set(e,r){return this._map.set(e,r),this._observable.notify(),this}values(){return cr(this._observable),this._map.values()}[Symbol.iterator](){return cr(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}});function QN(t,e=g0){return new B5(t,e)}var B5,eR=N(()=>{Mn();Ss();Ab();B5=class{constructor(e,r){this._observable=new dc,this._value=e,this._equalityFunction=r}get value(){return cr(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}});var tR={};Io(tR,{QueueProcessor:()=>j5});var G5,j5,rR=N(()=>{Il();io();JN();KN();ww();eR();G5=class{constructor(e,r){this.item=e,this.controller=r,this.promise=null}},j5=class{constructor(e){this._schedule=null,this._deferreds=new bp,this._controllers=new bp,this._processingItems=new bp,this._pausedSignal=QN(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new Ib(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=hh(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){let r=this._controllers.get(e);r&&r.abort()}clear(){this._queue.clear();let e=[];this._controllers.forEach(r=>e.push(r)),this._controllers.clear(),e.forEach(r=>r.abort()),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((r,n)=>e(n))}get(e){let r=this._deferreds.get(e);return r?r.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,r){let n=this.get(e);if(n)return n;let i=new AbortController,o=null;r&&(o=li(r,()=>i.abort()));let s=()=>{let h=this._processingItems.get(e);h&&h.controller.abort(),c(),d.reject(Sn())},c=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},a=xP(i.signal,s),d=_n();return this._deferreds.set(e,d),this._controllers.set(e,i),d.promise.then(c,c),this._queue.push(e),this._scheduleNext(),d.promise}last(){return this._queue.last()}lastPromise(){let e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){let e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject(Sn()),this._removeItem(e)),e}reset(){let e=Array.from(this._processingItems.values());this._processingItems.clear();for(let r of e)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=gw(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(r))}_processError(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(r))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(e==null)return;let r,n=new AbortController,i=new G5(e,n);this._processingItems.set(e,i);try{r=this.process(e,n.signal)}catch(o){this._processError(i,o)}zS(r)?(i.promise=r,r.then(o=>this._processResult(i,o),o=>this._processError(i,o))):this._processResult(i,r)}}});async function nr(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=ja(e.query.toString().replaceAll("+"," ")));let r=Uf(t),n=Nw(t);n||r||(t=xs(t));let i={url:t,requestOptions:{...e}},o=E=>({data:E,getAllHeaders:vp,getHeader:vp,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=ox(t,Ri.internalInterceptors);if(s){let E=await iR(s,i);if(E!=null)return o(E)}let c=ox(t);if(c){let E=await iR(c,i);if(E!=null)return o(E);c.after||c.error||(c=null)}if(t=i.url,(e=i.requestOptions).responseType==="image"&&(fe("host-webworker")||fe("host-node")))throw ho("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(e.method==="head"){if(e.body)throw ho("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw ho("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await BX(),Lb)return Lb.execute(t,e);let a=new AbortController,d=li(e,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:Ri.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=e.useRequestQueue?YX(h):H5(h),v=await g.finally(()=>d?.remove());return c?.after?.(v),v}function WX(t){let e=cn(t);e&&!nr._corsServers.includes(e)&&nr._corsServers.push(e)}function nR(t){let e=cn(t);return!e||e.endsWith(".arcgis.com")||nr._corsServers.includes(e)||kw(e)}function ho(t,e,r,n){let i,o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:vp,getHeader:vp,ssl:!1};if(e instanceof We)return e.details?(e.details=Ht(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=o,e;if(e){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=e.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(e.httpCode!=null?e.httpCode:e.code)||a||0,o.subCode=e.subcode,o.messageCode=e.messageCode,typeof e.details=="string"?(o.messages=[e.details],i??=e.details):(o.messages=e.details,i??=o.messages?.[0]),o.raw=kb in e?e[kb]:e}return i??="Error",Sh(e)?Sn():new We(t,i,o)}async function BX(){fe("host-webworker")&&!Lb&&(Lb=await Promise.resolve().then(()=>(TM(),CM)))}async function q5(){Zt||await Promise.resolve().then(()=>(XN(),ZN))}async function GX(t){let e=t.params.url,r=t.params.requestOptions,n=t.controller.signal,i=r.body,o=null,s=null;if(aR&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),t.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:Ri.priority,redirect:"follow",signal:n},(o||s)&&(t.fetchOptions.body=o||s),r.authMode==="anonymous"&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query?.token||o?.get("token")),!t.hasToken&&gM(e)&&(r.query||(r.query={}),r.query.token=bt.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!cR(e)&&!no(n)){let c;r.authMode==="immediate"?(await q5(),c=await Zt.getCredential(e,{signal:n}),t.credential=c):r.authMode==="no-prompt"?(await q5(),c=await Zt.getCredential(e,{prompt:!1,signal:n}).catch(()=>{}),t.credential=c):Zt&&(c=Zt.findCredential(e)),c&&(t.credentialToken=c.token,t.useSSL=!!c.ssl)}}function cR(t){return zX.some(e=>e.test(t))}async function jX(t){let e=t.params.url,r=t.params.requestOptions,n=t.fetchOptions??{},i=Nw(e)||Uf(e),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Ri.timeout,c=!1;if(!i){t.useSSL&&(e=Dw(e));let v={...r.query};t.credentialToken&&(v.token=t.credentialToken);let E=Rl(v);fe("esri-url-encodes-apostrophe")&&(E=E.replaceAll("'","%27"));let M=e.length+1+E.length,k;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||M>Ri.maxUrlLength;let F=r.useProxy||!!$f(e);if(F){let z=tM(e);k=z.path,!c&&k.length+1+M>Ri.maxUrlLength&&(c=!0),z.query&&(v={...z.query,...v})}if(n.method==="HEAD"&&(c||F)){if(c)throw M>Ri.maxUrlLength?ho("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params):ho("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params);if(F)throw ho("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?e=Vf(e,v):(n.body=Rl(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=Vf(e,v),F&&(t.useProxy=!0,e=`${k}?${e}`),v.token&&aR&&n.body instanceof FormData&&!Iw(e)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?t.withCredentials=r.withCredentials:an(e,Ff())||(kw(e)||Zt&&Zt.findServerInfo(e)?.webTierAuth)&&(t.withCredentials=!0),t.withCredentials&&(n.credentials="include",SM(e)&&await xM(c?Vf(e,v):e))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,t.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=e,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||qX(r.headers)||!i&&!t.useProxy&&Ri.proxyUrl&&!nR(e)){if(nr._beforeFetch&&await nr._beforeFetch(e,n),a=await fetch(e,n),nr._afterFetch&&await nr._afterFetch(a),t.useProxy||WX(e),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=oR(d,"application/xml");break;case"document":d=oR(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let E=await new Response(d).json();E.error&&(d=E)}catch{}}o==="image"&&d instanceof Blob&&(d=await sR(URL.createObjectURL(d),t,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await sR(e,t)}catch(v){if(v.name==="AbortError")throw g?vM():Sn("Request canceled");if(!(!a&&v instanceof TypeError&&Ri.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||t.useProxy||nR(e))throw v;t.redoRequest=!0,iM({proxyUrl:Ri.proxyUrl,urlPrefix:cn(e)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function iR(t,e){if(t.responseData!=null)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let r,n;try{n=await t.before(e)}catch(i){r=ho("request:interceptor",i,e)}if((n instanceof Error||n instanceof We)&&(r=ho("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}function qX(t){if(t){for(let e of Object.getOwnPropertyNames(t))if(t[e])return!0}return!1}function oR(t,e){let r;try{r=new DOMParser().parseFromString(t,e)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function YX(t){let e=XX(t.params.url);if(!e)return H5(t);let{QueueProcessor:r}=await Promise.resolve().then(()=>(rR(),tR));return _f(HX,e.origin,()=>{let i=e.isHosted?fe("request-queue-concurrency-hosted"):fe("request-queue-concurrency-non-hosted");return new r({concurrency:i,process:o=>{if(no(o.params.requestOptions))throw ho("",Sn("Request canceled"),o.params);return H5(o)}})}).push(t)}async function H5(t){let e,r;await GX(t);try{do[e,r]=await jX(t);while(!await ZX(t,e,r))}catch(o){let s=ho("request:server",o,t.params,e);throw s.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(s),s}let n=t.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!t.hasToken&&!t.credentialToken&&r.user?.username&&!kw(n)){let o=cn(n,!0);o&&Ri.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&_M(r.authorizedCrossOriginNoCorsDomains)}let i=t.credential;if(i&&Zt){let s=Zt.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Zt.findCredential(s,i.userId);c&&Zt._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:e?()=>Array.from(e.headers):vp,getHeader:e?o=>e.headers.get(o):vp,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}async function ZX(t,e,r){if(t.redoRequest)return t.redoRequest=!1,!1;let n=t.params.requestOptions;if(!e||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[kb]=r,i.details=r.messages)),!i&&!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[kb]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&UX.has(o)&&!cR(t.params.url)&&(o!==403||(!s||!VX.has(s))&&(c==null||c===2&&t.credentialToken))){await q5();try{let d=await Zt.getCredential(t.params.url,{error:ho("request:server",i,t.params),prompt:a!=="no-prompt",signal:t.controller.signal,token:t.credentialToken});return t.credential=d,t.credentialToken=d.token,t.useSSL=t.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return t.credential=void 0,t.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function sR(t,e,r=!1){let n=e.controller.signal,i=new Image;return e.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=Ri.priority,i.src=t,bM(i,t,r,n)}function XX(t){let e,r;return typeof t=="string"?(e=cn(t,!0),r=ux(t)):(e=t.origin,r=ux(t.toString())),e==null?null:{origin:e,isHosted:r}}var Lb,Ri,aR,UX,VX,zX,vp,kb,HX,Ww=N(()=>{Fa();Lh();Ln();St();Mn();z0();io();Bo();hM();Ah();wM();EM();Ri=bt.request,aR="FormData"in globalThis,UX=new Set([499,498,403,401]),VX=new Set(["COM_0056","COM_0057","SB_0008"]),zX=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],vp=()=>null,kb=Symbol();nr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],nr._beforeFetch=void 0,nr._afterFetch=void 0;HX=new Map});function jf(t){if(!bt.assetsPath)throw nt.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new We("assets:path-not-set","config.assetsPath is not set");return Ow(bt.assetsPath,t)}var Bw=N(()=>{Fa();Ww();Ln();Vt();Bo()});function lR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uR=N(()=>{});var dR=MC(()=>{});var fR=MC(()=>{});var hR={};Io(hR,{p:()=>QX});function JX(){return pR||(pR=1,t=mR,e=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(e=e||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,L)=>{i=m,o=L}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",E=Object.assign({},a),M="./this.program",k="";function F(m){return a.locateFile?a.locateFile(m,k):k+m}if(v){var z=dR(),B=fR();k=__dirname+"/",c=m=>(m=Di(m)?new URL(m):B.normalize(m),z.readFileSync(m)),s=(m,L=!0)=>(m=Di(m)?new URL(m):B.normalize(m),new Promise((j,ie)=>{z.readFile(m,L?void 0:"utf8",(le,Pe)=>{le?ie(le):j(L?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(M=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?k=self.location.href:typeof document<"u"&&document.currentScript&&(k=document.currentScript.src),e&&(k=e),k=k.startsWith("blob:")?"":k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var L=new XMLHttpRequest;return L.open("GET",m,!1),L.responseType="arraybuffer",L.send(null),new Uint8Array(L.response)}),s=m=>Di(m)?new Promise((L,j)=>{var ie=new XMLHttpRequest;ie.open("GET",m,!0),ie.responseType="arraybuffer",ie.onload=()=>{ie.status==200||ie.status==0&&ie.response?L(ie.response):j(ie.status)},ie.onerror=j,ie.send(null)}):fetch(m,{credentials:"same-origin"}).then(L=>L.ok?L.arrayBuffer():Promise.reject(new Error(L.status+" : "+L.url))));var q,V,X=console.log.bind(console),Q=console.error.bind(console);Object.assign(a,E),E=null;var $,me,ke,Ce,Ne,we,ce,H=!1;function te(m,L){m||hn(L)}function de(){var m=V.buffer;a.HEAP8=$=new Int8Array(m),a.HEAP16=ke=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ce=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=ce=new Float64Array(m)}var ue=[],ve=[],ye=[];function De(){_o(ue)}function Ke(){_o(ve)}function mt(){_o(ye)}function mr(m){ve.unshift(m)}var Kt=0,Qt=null;function Kn(m){Kt++}function Cn(m){if(--Kt==0&&Qt){var L=Qt;Qt=null,L()}}function hn(m){Q(m="Aborted("+m+")"),H=!0,m+=". Build with -sASSERTIONS for more info.";var L=new WebAssembly.RuntimeError(m);throw o(L),L}var Ue,gu="data:application/octet-stream;base64,",vo=m=>m.startsWith(gu),Di=m=>m.startsWith("file://");function gc(){var m="pe-wasm.wasm";return vo(m)?m:F(m)}function Vs(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Jo(m){return s(m).then(L=>new Uint8Array(L),()=>Vs(m))}function yi(m,L,j){return Jo(m).then(ie=>WebAssembly.instantiate(ie,L)).then(j,ie=>{Q(`failed to asynchronously prepare wasm: ${ie}`),hn(ie)})}function wu(m,L,j,ie){return typeof WebAssembly.instantiateStreaming!="function"||vo(L)||Di(L)||v||typeof fetch!="function"?yi(L,j,ie):fetch(L,{credentials:"same-origin"}).then(le=>WebAssembly.instantiateStreaming(le,j).then(ie,function(Pe){return Q(`wasm streaming compile failed: ${Pe}`),Q("falling back to ArrayBuffer instantiation"),yi(L,j,ie)}))}function Ko(){return{a:kp}}function Lp(){var m=Ko();function L(ie,le){return G=ie.exports,V=G.t,de(),mr(G.u),Cn(),G}function j(ie){L(ie.instance)}return Kn(),Ue??=gc(),wu(q,Ue,m,j).catch(o),{}}var _o=m=>{for(;m.length>0;)m.shift()(a)};function zs(m,L="i8"){switch(L.endsWith("*")&&(L="*"),L){case"i1":case"i8":return $[m];case"i16":return ke[m>>1];case"i32":return Ce[m>>2];case"i64":hn("to do getValue(i64) use WASM_BIGINT");case"float":return we[m>>2];case"double":return ce[m>>3];case"*":return Ne[m>>2];default:hn(`invalid type for getValue: ${L}`)}}var wc=typeof TextDecoder<"u"?new TextDecoder:void 0,yc=(m,L=0,j=NaN)=>{for(var ie=L+j,le=L;m[le]&&!(le>=ie);)++le;if(le-L>16&&m.buffer&&wc)return wc.decode(m.subarray(L,le));for(var Pe="";L<le;){var Ve=m[L++];if(128&Ve){var Re=63&m[L++];if((224&Ve)!=192){var tt=63&m[L++];if((Ve=(240&Ve)==224?(15&Ve)<<12|Re<<6|tt:(7&Ve)<<18|Re<<12|tt<<6|63&m[L++])<65536)Pe+=String.fromCharCode(Ve);else{var yn=Ve-65536;Pe+=String.fromCharCode(55296|yn>>10,56320|1023&yn)}}else Pe+=String.fromCharCode((31&Ve)<<6|Re)}else Pe+=String.fromCharCode(Ve)}return Pe},hr=(m,L)=>m?yc(me,m,L):"";function yu(m,L,j){return 0}var So=(m,L,j,ie)=>{if(!(ie>0))return 0;for(var le=j,Pe=j+ie-1,Ve=0;Ve<m.length;++Ve){var Re=m.charCodeAt(Ve);if(Re>=55296&&Re<=57343&&(Re=65536+((1023&Re)<<10)|1023&m.charCodeAt(++Ve)),Re<=127){if(j>=Pe)break;L[j++]=Re}else if(Re<=2047){if(j+1>=Pe)break;L[j++]=192|Re>>6,L[j++]=128|63&Re}else if(Re<=65535){if(j+2>=Pe)break;L[j++]=224|Re>>12,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}else{if(j+3>=Pe)break;L[j++]=240|Re>>18,L[j++]=128|Re>>12&63,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}}return L[j]=0,j-le},Ws=(m,L,j)=>So(m,me,L,j);function bc(m,L,j){return 0}function bu(m,L,j,ie){}var vc=m=>m%4==0&&(m%100!=0||m%400==0),_c=[0,31,60,91,121,152,182,213,244,274,305,335],Sc=[0,31,59,90,120,151,181,212,243,273,304,334],xc=m=>(vc(m.getFullYear())?_c:Sc)[m.getMonth()]+m.getDate()-1,vu=(m,L)=>L+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*L:NaN;function Fi(m,L,j){var ie=vu(m,L),le=new Date(1e3*ie);Ce[j>>2]=le.getSeconds(),Ce[j+4>>2]=le.getMinutes(),Ce[j+8>>2]=le.getHours(),Ce[j+12>>2]=le.getDate(),Ce[j+16>>2]=le.getMonth(),Ce[j+20>>2]=le.getFullYear()-1900,Ce[j+24>>2]=le.getDay();var Pe=0|xc(le);Ce[j+28>>2]=Pe,Ce[j+36>>2]=-60*le.getTimezoneOffset();var Ve=new Date(le.getFullYear(),0,1),Re=new Date(le.getFullYear(),6,1).getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=0|(Re!=tt&&le.getTimezoneOffset()==Math.min(tt,Re));Ce[j+32>>2]=yn}var _u=()=>2147483648,Ec=(m,L)=>Math.ceil(m/L)*L,Qo=m=>{var L=(m-V.buffer.byteLength+65535)/65536|0;try{return V.grow(L),de(),1}catch{}},bi={},xo=()=>M||"./this.program",$i=()=>{if(!$i.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:xo()};for(var L in bi)bi[L]===void 0?delete m[L]:m[L]=bi[L];var j=[];for(var L in m)j.push(`${L}=${m[L]}`);$i.strings=j}return $i.strings},Cc=(m,L)=>{for(var j=0;j<m.length;++j)$[L++]=m.charCodeAt(j);$[L]=0};function Su(m,L,j,ie,le){return 70}var Tc=[null,[],[]],Bs=(m,L)=>{var j=Tc[m];L===0||L===10?((m===1?X:Q)(yc(j)),j.length=0):j.push(L)},xu=m=>{for(var L=0,j=0;j<m.length;++j){var ie=m.charCodeAt(j);ie<=127?L++:ie<=2047?L+=2:ie>=55296&&ie<=57343?(L+=4,++j):L+=3}return L};function Eu(m,L,j){var ie=xu(m)+1,le=new Array(ie);return So(m,le,0,le.length),le}var kp={c:yu,q:(m,L,j)=>{},h:bc,d:bu,o:m=>{},n:(m,L)=>{},p:(m,L,j)=>{},l:()=>{hn("")},s:(m,L,j)=>me.copyWithin(m,L,L+j),j:Fi,r:(m,L,j,ie)=>{var le=new Date().getFullYear(),Pe=new Date(le,0,1),Ve=new Date(le,6,1),Re=Pe.getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=Math.max(Re,tt);Ne[m>>2]=60*yn,Ce[L>>2]=+(Re!=tt);var qg=Zg=>{var pv=Zg>=0?"-":"+",Xg=Math.abs(Zg);return`UTC${pv}${String(Math.floor(Xg/60)).padStart(2,"0")}${String(Xg%60).padStart(2,"0")}`},Hg=qg(Re),Yg=qg(tt);tt<Re?(Ws(Hg,j,17),Ws(Yg,ie,17)):(Ws(Hg,ie,17),Ws(Yg,j,17))},i:()=>Date.now(),m:m=>{var L=me.length;m>>>=0;var j=_u();if(m>j)return!1;for(var ie=1;ie<=4;ie*=2){var le=L*(1+.2/ie);le=Math.min(le,m+100663296);var Pe=Math.min(j,Ec(Math.max(m,le),65536));if(Qo(Pe))return!0}return!1},e:(m,L)=>{var j=0;return $i().forEach((ie,le)=>{var Pe=L+j;Ne[m+4*le>>2]=Pe,Cc(ie,Pe),j+=ie.length+1}),0},f:(m,L)=>{var j=$i();Ne[m>>2]=j.length;var ie=0;return j.forEach(le=>ie+=le.length+1),Ne[L>>2]=ie,0},a:m=>52,g:(m,L,j,ie)=>52,k:Su,b:(m,L,j,ie)=>{for(var le=0,Pe=0;Pe<j;Pe++){var Ve=Ne[L>>2],Re=Ne[L+4>>2];L+=8;for(var tt=0;tt<Re;tt++)Bs(m,me[Ve+tt]);le+=Re}return Ne[ie>>2]=le,0}},G=Lp();a._webidl_free=m=>(a._webidl_free=G.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=G.w)(m);var Eo,Cu=a._emscripten_bind_PeObject_getCode_0=m=>(Cu=a._emscripten_bind_PeObject_getCode_0=G.x)(m),Tu=a._emscripten_bind_PeObject_getName_1=(m,L)=>(Tu=a._emscripten_bind_PeObject_getName_1=G.y)(m,L),Pc=a._emscripten_bind_PeObject_getType_0=m=>(Pc=a._emscripten_bind_PeObject_getType_0=G.z)(m),Kr=a._emscripten_bind_PeCoordsys_isEqual_1=(m,L)=>(Kr=a._emscripten_bind_PeCoordsys_isEqual_1=G.A)(m,L),vi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(vi=a._emscripten_bind_PeCoordsys_getCode_0=G.B)(m),Vn=a._emscripten_bind_PeCoordsys_getName_1=(m,L)=>(Vn=a._emscripten_bind_PeCoordsys_getName_1=G.C)(m,L),Pu=a._emscripten_bind_PeCoordsys_getType_0=m=>(Pu=a._emscripten_bind_PeCoordsys_getType_0=G.D)(m),Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=G.E)(m),Gs=a._emscripten_bind_PeUnit_getCode_0=m=>(Gs=a._emscripten_bind_PeUnit_getCode_0=G.F)(m),Qn=a._emscripten_bind_PeUnit_getName_1=(m,L)=>(Qn=a._emscripten_bind_PeUnit_getName_1=G.G)(m,L),je=a._emscripten_bind_PeUnit_getType_0=m=>(je=a._emscripten_bind_PeUnit_getType_0=G.H)(m),js=a._emscripten_bind_VoidPtr___destroy___0=m=>(js=a._emscripten_bind_VoidPtr___destroy___0=G.I)(m),Mc=a._emscripten_bind_PeAngunit_getCode_0=m=>(Mc=a._emscripten_bind_PeAngunit_getCode_0=G.J)(m),Ac=a._emscripten_bind_PeAngunit_getName_1=(m,L)=>(Ac=a._emscripten_bind_PeAngunit_getName_1=G.K)(m,L),Ic=a._emscripten_bind_PeAngunit_getType_0=m=>(Ic=a._emscripten_bind_PeAngunit_getType_0=G.L)(m),Co=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(Co=a._emscripten_bind_PeAngunit_getUnitFactor_0=G.M)(m),qs=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(qs=a._emscripten_bind_PeDatum_getSpheroid_0=G.N)(m),Au=a._emscripten_bind_PeDatum_getCode_0=m=>(Au=a._emscripten_bind_PeDatum_getCode_0=G.O)(m),Iu=a._emscripten_bind_PeDatum_getName_1=(m,L)=>(Iu=a._emscripten_bind_PeDatum_getName_1=G.P)(m,L),Lu=a._emscripten_bind_PeDatum_getType_0=m=>(Lu=a._emscripten_bind_PeDatum_getType_0=G.Q)(m),Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=G.R)(m),ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=G.S)(m),kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=G.T)(m),Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=G.U)(m),es=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(es=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=G.V)(m),Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=G.W)(m),Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=G.X)(m),Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=G.Y)(m),Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=G.Z)(m),Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=G._)(m),Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=G.$)(m),Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=G.aa)(m),Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=G.ba)(m),Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=G.ca)(m),Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=G.da)(m),$u=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>($u=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=G.ea)(m),Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=G.fa)(m),Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=G.ga)(m),ts=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=G.ha)(m),Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=G.ia)(m),Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=G.ja)(m),rs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(rs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=G.ka)(m),ei=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(ei=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=G.la)(m),To=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(To=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=G.ma)(m),Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=G.na)(m),Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=G.oa)(m),$c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>($c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=G.pa)(m),Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=G.qa)(m),zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=G.ra)(m),Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=G.sa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=G.ta)(m),Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=G.ua)(m),Gu=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Gu=a._emscripten_bind_PeDouble_PeDouble_1=G.va)(m),Vc=a._emscripten_bind_PeDouble_get_val_0=m=>(Vc=a._emscripten_bind_PeDouble_get_val_0=G.wa)(m),zc=a._emscripten_bind_PeDouble_set_val_1=(m,L)=>(zc=a._emscripten_bind_PeDouble_set_val_1=G.xa)(m,L),ju=a._emscripten_bind_PeDouble___destroy___0=m=>(ju=a._emscripten_bind_PeDouble___destroy___0=G.ya)(m),Ks=a._emscripten_bind_PeFactory_initialize_1=m=>(Ks=a._emscripten_bind_PeFactory_initialize_1=G.za)(m),qu=a._emscripten_bind_PeFactory_factoryByType_2=(m,L)=>(qu=a._emscripten_bind_PeFactory_factoryByType_2=G.Aa)(m,L),Wc=a._emscripten_bind_PeFactory_fromString_2=(m,L)=>(Wc=a._emscripten_bind_PeFactory_fromString_2=G.Ba)(m,L),Hu=a._emscripten_bind_PeFactory_getCode_1=m=>(Hu=a._emscripten_bind_PeFactory_getCode_1=G.Ca)(m),ns=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,L,j,ie,le,Pe)=>(ns=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=G.Da)(m,L,j,ie,le,Pe),Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=G.Ea)(m),Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=G.Fa)(m),Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=G.Ga)(m),Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=G.Ha)(m),jc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(jc=a._emscripten_bind_PeGCSExtent___destroy___0=G.Ia)(m),qc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(qc=a._emscripten_bind_PeGeogcs_Delete_0=G.Ja)(m),Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,L)=>(Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=G.Ka)(m,L),Vi=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(Vi=a._emscripten_bind_PeGeogcs_getDatum_0=G.La)(m),Po=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(Po=a._emscripten_bind_PeGeogcs_getPrimem_0=G.Ma)(m),Ju=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(Ju=a._emscripten_bind_PeGeogcs_getUnit_0=G.Na)(m),Qs=a._emscripten_bind_PeGeogcs_isEqual_1=(m,L)=>(Qs=a._emscripten_bind_PeGeogcs_isEqual_1=G.Oa)(m,L),ea=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ea=a._emscripten_bind_PeGeogcs_getCode_0=G.Pa)(m),Ku=a._emscripten_bind_PeGeogcs_getName_1=(m,L)=>(Ku=a._emscripten_bind_PeGeogcs_getName_1=G.Qa)(m,L),is=a._emscripten_bind_PeGeogcs_getType_0=m=>(is=a._emscripten_bind_PeGeogcs_getType_0=G.Ra)(m),Hc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,L)=>(Hc=a._emscripten_bind_PeGeogtran_isEqual_1=G.Sa)(m,L),Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=G.Ta)(m),ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=G.Ua)(m),Zc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Zc=a._emscripten_bind_PeGeogtran_getParameters_0=G.Va)(m),Qu=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(Qu=a._emscripten_bind_PeGeogtran_loadConstants_0=G.Wa)(m),ti=a._emscripten_bind_PeGeogtran_getCode_0=m=>(ti=a._emscripten_bind_PeGeogtran_getCode_0=G.Xa)(m),ed=a._emscripten_bind_PeGeogtran_getName_1=(m,L)=>(ed=a._emscripten_bind_PeGeogtran_getName_1=G.Ya)(m,L),td=a._emscripten_bind_PeGeogtran_getType_0=m=>(td=a._emscripten_bind_PeGeogtran_getType_0=G.Za)(m),rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,L,j,ie,le,Pe)=>(rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=G._a)(m,L,j,ie,le,Pe),Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=G.$a)(m),Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=G.ab)(m),gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=G.bb)(m),nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=G.cb)(m),id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=G.db)(m),od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=G.eb)(m),sd=a._emscripten_bind_PeHorizon_getNump_0=m=>(sd=a._emscripten_bind_PeHorizon_getNump_0=G.fb)(m),ad=a._emscripten_bind_PeHorizon_getKind_0=m=>(ad=a._emscripten_bind_PeHorizon_getKind_0=G.gb)(m),Kc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Kc=a._emscripten_bind_PeHorizon_getInclusive_0=G.hb)(m),cd=a._emscripten_bind_PeHorizon_getSize_0=m=>(cd=a._emscripten_bind_PeHorizon_getSize_0=G.ib)(m),Qc=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Qc=a._emscripten_bind_PeHorizon_getCoord_0=G.jb)(m),el=a._emscripten_bind_PeInteger_PeInteger_1=m=>(el=a._emscripten_bind_PeInteger_PeInteger_1=G.kb)(m),os=a._emscripten_bind_PeInteger_get_val_0=m=>(os=a._emscripten_bind_PeInteger_get_val_0=G.lb)(m),_i=a._emscripten_bind_PeInteger_set_val_1=(m,L)=>(_i=a._emscripten_bind_PeInteger_set_val_1=G.mb)(m,L),ss=a._emscripten_bind_PeInteger___destroy___0=m=>(ss=a._emscripten_bind_PeInteger___destroy___0=G.nb)(m),ld=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,L,j,ie,le,Pe,Ve,Re,tt,yn)=>(ld=a._emscripten_bind_PeLineType_geodetic_distance_10=G.ob)(m,L,j,ie,le,Pe,Ve,Re,tt,yn),tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=G.pb)(m,L,j,ie,le,Pe,Ve,Re,tt),rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,L,j,ie,le,Pe,Ve,Re)=>(rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=G.qb)(m,L,j,ie,le,Pe,Ve,Re),nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=G.rb)(m,L,j,ie,le,Pe,Ve,Re,tt),Mo=a._emscripten_bind_PeMath_phi_to_eta_2=(m,L)=>(Mo=a._emscripten_bind_PeMath_phi_to_eta_2=G.sb)(m,L),ud=a._emscripten_bind_PeMath_eta_to_phi_2=(m,L)=>(ud=a._emscripten_bind_PeMath_eta_to_phi_2=G.tb)(m,L),dd=a._emscripten_bind_PeMath_phi_to_phig_2=(m,L)=>(dd=a._emscripten_bind_PeMath_phi_to_phig_2=G.ub)(m,L),fd=a._emscripten_bind_PeMath_q_3=(m,L,j)=>(fd=a._emscripten_bind_PeMath_q_3=G.vb)(m,L,j),pd=a._emscripten_bind_PeMath_q90_2=(m,L)=>(pd=a._emscripten_bind_PeMath_q90_2=G.wb)(m,L),md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=G.xb)(m),hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=G.yb)(m),ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=G.zb)(m),gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=G.Ab)(m),as=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(as=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=G.Bb)(m),wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=G.Cb)(m),na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=G.Db)(m),yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=G.Eb)(m),bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=G.Fb)(m),il=a._emscripten_bind_PeParameter_getValue_0=m=>(il=a._emscripten_bind_PeParameter_getValue_0=G.Gb)(m),Ao=a._emscripten_bind_PeParameter_getCode_0=m=>(Ao=a._emscripten_bind_PeParameter_getCode_0=G.Hb)(m),ri=a._emscripten_bind_PeParameter_getName_1=(m,L)=>(ri=a._emscripten_bind_PeParameter_getName_1=G.Ib)(m,L),ol=a._emscripten_bind_PeParameter_getType_0=m=>(ol=a._emscripten_bind_PeParameter_getType_0=G.Jb)(m),ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=G.Kb)(m),vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=G.Lb)(m),_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=G.Mb)(m),Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=G.Nb)(m),xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=G.Ob)(m),Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=G.Pb)(m),Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=G.Qb)(m),Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=G.Rb)(m),Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=G.Sb)(m),Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=G.Tb)(m),Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=G.Ub)(m),p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=G.Vb)(m),f=a._emscripten_bind_PePCSInfo_generate_2=(m,L)=>(f=a._emscripten_bind_PePCSInfo_generate_2=G.Wb)(m,L),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=G.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=G.Yb)(m),C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=G.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=G._b)(m),A=a._emscripten_bind_PePrimem_getLongitude_0=m=>(A=a._emscripten_bind_PePrimem_getLongitude_0=G.$b)(m),O=a._emscripten_bind_PePrimem_getCode_0=m=>(O=a._emscripten_bind_PePrimem_getCode_0=G.ac)(m),R=a._emscripten_bind_PePrimem_getName_1=(m,L)=>(R=a._emscripten_bind_PePrimem_getName_1=G.bc)(m,L),U=a._emscripten_bind_PePrimem_getType_0=m=>(U=a._emscripten_bind_PePrimem_getType_0=G.cc)(m),D=a._emscripten_bind_PeProjcs_Delete_0=m=>(D=a._emscripten_bind_PeProjcs_Delete_0=G.dc)(m),Z=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Z=a._emscripten_bind_PeProjcs_getGeogcs_0=G.ec)(m),oe=a._emscripten_bind_PeProjcs_getProjection_0=m=>(oe=a._emscripten_bind_PeProjcs_getProjection_0=G.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=G.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=G.hc)(m),be=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(be=a._emscripten_bind_PeProjcs_loadConstants_0=G.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=G.jc)(m),Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=G.kc)(m),$e=a._emscripten_bind_PeProjcs_isEqual_1=(m,L)=>($e=a._emscripten_bind_PeProjcs_isEqual_1=G.lc)(m,L),Xe=a._emscripten_bind_PeProjcs_getCode_0=m=>(Xe=a._emscripten_bind_PeProjcs_getCode_0=G.mc)(m),Qe=a._emscripten_bind_PeProjcs_getName_1=(m,L)=>(Qe=a._emscripten_bind_PeProjcs_getName_1=G.nc)(m,L),Be=a._emscripten_bind_PeProjcs_getType_0=m=>(Be=a._emscripten_bind_PeProjcs_getType_0=G.oc)(m),Je=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(Je=a._emscripten_bind_PeSpheroid_getAxis_0=G.pc)(m),wr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(wr=a._emscripten_bind_PeSpheroid_getFlattening_0=G.qc)(m),vt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(vt=a._emscripten_bind_PeSpheroid_getCode_0=G.rc)(m),Rr=a._emscripten_bind_PeSpheroid_getName_1=(m,L)=>(Rr=a._emscripten_bind_PeSpheroid_getName_1=G.sc)(m,L),gn=a._emscripten_bind_PeSpheroid_getType_0=m=>(gn=a._emscripten_bind_PeSpheroid_getType_0=G.tc)(m),Tn=a._emscripten_bind_PeVersion_version_string_0=m=>(Tn=a._emscripten_bind_PeVersion_version_string_0=G.uc)(m);function cs(){function m(){Eo||(Eo=!0,a.calledRun=!0,H||(Ke(),i(a),mt()))}Kt>0||(De(),Kt>0||m())}function ot(){}function oa(m){return(m||ot).__cache__}function er(m,L){var j=oa(L),ie=j[m];return ie||((ie=Object.create((L||ot).prototype)).ptr=m,j[m]=ie)}function iv(m,L){return er(m.ptr,L)}function ov(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete oa(m.__class__)[m.ptr]}function sv(m,L){return m.ptr===L.ptr}function av(m){return m.ptr}function cv(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=G.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=G.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=G.xc)(),a._pe_geog_to_geog=(m,L,j,ie,le)=>(a._pe_geog_to_geog=G.zc)(m,L,j,ie,le),a._pe_geog_to_proj=(m,L,j)=>(a._pe_geog_to_proj=G.Ac)(m,L,j),a._pe_geog_to_dd=(m,L,j,ie,le)=>(a._pe_geog_to_dd=G.Bc)(m,L,j,ie,le),a._pe_dd_to_geog=(m,L,j,ie)=>(a._pe_dd_to_geog=G.Cc)(m,L,j,ie),a._pe_geog_to_ddm=(m,L,j,ie,le)=>(a._pe_geog_to_ddm=G.Dc)(m,L,j,ie,le),a._pe_ddm_to_geog=(m,L,j,ie)=>(a._pe_ddm_to_geog=G.Ec)(m,L,j,ie),a._pe_geog_to_dms=(m,L,j,ie,le)=>(a._pe_geog_to_dms=G.Fc)(m,L,j,ie,le),a._pe_dms_to_geog=(m,L,j,ie)=>(a._pe_dms_to_geog=G.Gc)(m,L,j,ie),a._pe_geog_to_mgrs_extended=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_mgrs_extended=G.Hc)(m,L,j,ie,le,Pe,Ve),a._pe_mgrs_to_geog_extended=(m,L,j,ie,le)=>(a._pe_mgrs_to_geog_extended=G.Ic)(m,L,j,ie,le),a._pe_geog_to_usng=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_usng=G.Jc)(m,L,j,ie,le,Pe,Ve),a._pe_usng_to_geog=(m,L,j,ie)=>(a._pe_usng_to_geog=G.Kc)(m,L,j,ie),a._pe_geog_to_utm=(m,L,j,ie,le)=>(a._pe_geog_to_utm=G.Lc)(m,L,j,ie,le),a._pe_utm_to_geog=(m,L,j,ie,le)=>(a._pe_utm_to_geog=G.Mc)(m,L,j,ie,le),a._pe_object_to_string_ext=(m,L,j)=>(a._pe_object_to_string_ext=G.Nc)(m,L,j),a._pe_proj_to_geog_center=(m,L,j,ie)=>(a._pe_proj_to_geog_center=G.Oc)(m,L,j,ie),a.getValue=zs,a.UTF8ToString=hr,Qt=function m(){Eo||cs(),Eo||(Qt=m)},cs(),ot.prototype=Object.create(ot.prototype),ot.prototype.constructor=ot,ot.prototype.__class__=ot,ot.__cache__={},a.WrapperObject=ot,a.getCache=oa,a.wrapPointer=er,a.castObject=iv,a.NULL=er(0),a.destroy=ov,a.compare=sv,a.getPointer=av,a.getClass=cv;var He={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(He.needed){for(var m=0;m<He.temps.length;m++)a._webidl_free(He.temps[m]);He.temps.length=0,a._webidl_free(He.buffer),He.buffer=0,He.size+=He.needed,He.needed=0}He.buffer||(He.size+=128,He.buffer=a._webidl_malloc(He.size),te(He.buffer)),He.pos=0},alloc(m,L){te(He.buffer);var j,ie=L.BYTES_PER_ELEMENT,le=m.length*ie;return le=Ec(le,8),He.pos+le>=He.size?(te(le>0),He.needed+=le,j=a._webidl_malloc(le),He.temps.push(j)):(j=He.buffer+He.pos,He.pos+=le),j},copy(m,L,j){j/=L.BYTES_PER_ELEMENT;for(var ie=0;ie<m.length;ie++)L[j+ie]=m[ie]}};function Op(m){if(typeof m=="string"){var L=Eu(m),j=He.alloc(L,$);return He.copy(L,$,j),j}return m}function zn(m){if(typeof m=="object"){var L=He.alloc(m,$);return He.copy(m,$,L),L}return m}function lv(m){if(typeof m=="object"){var L=He.alloc(m,ke);return He.copy(m,ke,L),L}return m}function uv(m){if(typeof m=="object"){var L=He.alloc(m,Ce);return He.copy(m,Ce,L),L}return m}function dv(m){if(typeof m=="object"){var L=He.alloc(m,we);return He.copy(m,we,L),L}return m}function fv(m){if(typeof m=="object"){var L=He.alloc(m,ce);return He.copy(m,ce,L),L}return m}function Gt(){throw"cannot construct a PeObject, no constructor in IDL"}function Cr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Tr(){throw"cannot construct a PeUnit, no constructor in IDL"}function zi(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Dr(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Fr(){throw"cannot construct a PeDatum, no constructor in IDL"}function se(){throw"cannot construct a PeDefs, no constructor in IDL"}function Pr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Gu(m),oa(Pr)[this.ptr]=this}function Qr(){throw"cannot construct a PeFactory, no constructor in IDL"}function yr(m,L,j,ie,le,Pe){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=ns(m,L,j,ie,le,Pe),oa(yr)[this.ptr]=this}function ht(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Ft(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Pn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function wn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Wn(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function dr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Mr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=el(m),oa(Mr)[this.ptr]=this}function en(){throw"cannot construct a PeLineType, no constructor in IDL"}function Ar(){throw"cannot construct a PeMath, no constructor in IDL"}function _t(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function jt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function tn(){throw"cannot construct a PeParameter, no constructor in IDL"}function qe(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function $r(){throw"cannot construct a PePrimem, no constructor in IDL"}function ut(){throw"cannot construct a PeProjcs, no constructor in IDL"}function br(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Wi(){throw"cannot construct a PeVersion, no constructor in IDL"}return Gt.prototype=Object.create(ot.prototype),Gt.prototype.constructor=Gt,Gt.prototype.__class__=Gt,Gt.__cache__={},a.PeObject=Gt,Gt.prototype.getCode=Gt.prototype.getCode=function(){var m=this.ptr;return Cu(m)},Gt.prototype.getName=Gt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Tu(L,m))},Gt.prototype.getType=Gt.prototype.getType=function(){var m=this.ptr;return Pc(m)},Cr.prototype=Object.create(Gt.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},a.PeCoordsys=Cr,Cr.prototype.isEqual=Cr.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Kr(L,m)},Cr.prototype.getCode=Cr.prototype.getCode=function(){var m=this.ptr;return vi(m)},Cr.prototype.getName=Cr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Vn(L,m))},Cr.prototype.getType=Cr.prototype.getType=function(){var m=this.ptr;return Pu(m)},Tr.prototype=Object.create(Gt.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},a.PeUnit=Tr,Tr.prototype.getUnitFactor=Tr.prototype.getUnitFactor=function(){var m=this.ptr;return Mu(m)},Tr.prototype.getCode=Tr.prototype.getCode=function(){var m=this.ptr;return Gs(m)},Tr.prototype.getName=Tr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qn(L,m))},Tr.prototype.getType=Tr.prototype.getType=function(){var m=this.ptr;return je(m)},zi.prototype=Object.create(ot.prototype),zi.prototype.constructor=zi,zi.prototype.__class__=zi,zi.__cache__={},a.VoidPtr=zi,zi.prototype.__destroy__=zi.prototype.__destroy__=function(){var m=this.ptr;js(m)},Dr.prototype=Object.create(Tr.prototype),Dr.prototype.constructor=Dr,Dr.prototype.__class__=Dr,Dr.__cache__={},a.PeAngunit=Dr,Dr.prototype.getCode=Dr.prototype.getCode=function(){var m=this.ptr;return Mc(m)},Dr.prototype.getName=Dr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ac(L,m))},Dr.prototype.getType=Dr.prototype.getType=function(){var m=this.ptr;return Ic(m)},Dr.prototype.getUnitFactor=Dr.prototype.getUnitFactor=function(){var m=this.ptr;return Co(m)},Fr.prototype=Object.create(Gt.prototype),Fr.prototype.constructor=Fr,Fr.prototype.__class__=Fr,Fr.__cache__={},a.PeDatum=Fr,Fr.prototype.getSpheroid=Fr.prototype.getSpheroid=function(){var m=this.ptr;return er(qs(m),br)},Fr.prototype.getCode=Fr.prototype.getCode=function(){var m=this.ptr;return Au(m)},Fr.prototype.getName=Fr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Iu(L,m))},Fr.prototype.getType=Fr.prototype.getType=function(){var m=this.ptr;return Lu(m)},se.prototype=Object.create(ot.prototype),se.prototype.constructor=se,se.prototype.__class__=se,se.__cache__={},a.PeDefs=se,se.prototype.get_PE_BUFFER_MAX=se.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return Lc(m)},Object.defineProperty(se.prototype,"PE_BUFFER_MAX",{get:se.prototype.get_PE_BUFFER_MAX}),se.prototype.get_PE_NAME_MAX=se.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return ku(m)},Object.defineProperty(se.prototype,"PE_NAME_MAX",{get:se.prototype.get_PE_NAME_MAX}),se.prototype.get_PE_MGRS_MAX=se.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return kc(m)},Object.defineProperty(se.prototype,"PE_MGRS_MAX",{get:se.prototype.get_PE_MGRS_MAX}),se.prototype.get_PE_USNG_MAX=se.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Oc(m)},Object.defineProperty(se.prototype,"PE_USNG_MAX",{get:se.prototype.get_PE_USNG_MAX}),se.prototype.get_PE_DD_MAX=se.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return es(m)},Object.defineProperty(se.prototype,"PE_DD_MAX",{get:se.prototype.get_PE_DD_MAX}),se.prototype.get_PE_DMS_MAX=se.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Nc(m)},Object.defineProperty(se.prototype,"PE_DMS_MAX",{get:se.prototype.get_PE_DMS_MAX}),se.prototype.get_PE_DDM_MAX=se.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Hs(m)},Object.defineProperty(se.prototype,"PE_DDM_MAX",{get:se.prototype.get_PE_DDM_MAX}),se.prototype.get_PE_UTM_MAX=se.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Rc(m)},Object.defineProperty(se.prototype,"PE_UTM_MAX",{get:se.prototype.get_PE_UTM_MAX}),se.prototype.get_PE_PARM_MAX=se.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Ou(m)},Object.defineProperty(se.prototype,"PE_PARM_MAX",{get:se.prototype.get_PE_PARM_MAX}),se.prototype.get_PE_TYPE_NONE=se.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Ys(m)},Object.defineProperty(se.prototype,"PE_TYPE_NONE",{get:se.prototype.get_PE_TYPE_NONE}),se.prototype.get_PE_TYPE_GEOGCS=se.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return Nu(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGCS",{get:se.prototype.get_PE_TYPE_GEOGCS}),se.prototype.get_PE_TYPE_PROJCS=se.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Zs(m)},Object.defineProperty(se.prototype,"PE_TYPE_PROJCS",{get:se.prototype.get_PE_TYPE_PROJCS}),se.prototype.get_PE_TYPE_GEOGTRAN=se.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Ru(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGTRAN",{get:se.prototype.get_PE_TYPE_GEOGTRAN}),se.prototype.get_PE_TYPE_COORDSYS=se.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Du(m)},Object.defineProperty(se.prototype,"PE_TYPE_COORDSYS",{get:se.prototype.get_PE_TYPE_COORDSYS}),se.prototype.get_PE_TYPE_UNIT=se.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return Fu(m)},Object.defineProperty(se.prototype,"PE_TYPE_UNIT",{get:se.prototype.get_PE_TYPE_UNIT}),se.prototype.get_PE_TYPE_LINUNIT=se.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return $u(m)},Object.defineProperty(se.prototype,"PE_TYPE_LINUNIT",{get:se.prototype.get_PE_TYPE_LINUNIT}),se.prototype.get_PE_STR_OPTS_NONE=se.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Uu(m)},Object.defineProperty(se.prototype,"PE_STR_OPTS_NONE",{get:se.prototype.get_PE_STR_OPTS_NONE}),se.prototype.get_PE_STR_AUTH_NONE=se.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Dc(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_NONE",{get:se.prototype.get_PE_STR_AUTH_NONE}),se.prototype.get_PE_STR_AUTH_TOP=se.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return ts(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_TOP",{get:se.prototype.get_PE_STR_AUTH_TOP}),se.prototype.get_PE_STR_NAME_CANON=se.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return Ui(m)},Object.defineProperty(se.prototype,"PE_STR_NAME_CANON",{get:se.prototype.get_PE_STR_NAME_CANON}),se.prototype.get_PE_STR_FMT_WKT=se.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Xs(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT",{get:se.prototype.get_PE_STR_FMT_WKT}),se.prototype.get_PE_STR_FMT_WKT2=se.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return rs(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT2",{get:se.prototype.get_PE_STR_FMT_WKT2}),se.prototype.get_PE_PARM_X0=se.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return ei(m)},Object.defineProperty(se.prototype,"PE_PARM_X0",{get:se.prototype.get_PE_PARM_X0}),se.prototype.get_PE_PARM_ND=se.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return To(m)},Object.defineProperty(se.prototype,"PE_PARM_ND",{get:se.prototype.get_PE_PARM_ND}),se.prototype.get_PE_TRANSFORM_1_TO_2=se.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Vu(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_1_TO_2",{get:se.prototype.get_PE_TRANSFORM_1_TO_2}),se.prototype.get_PE_TRANSFORM_2_TO_1=se.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return Fc(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_2_TO_1",{get:se.prototype.get_PE_TRANSFORM_2_TO_1}),se.prototype.get_PE_TRANSFORM_P_TO_G=se.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return $c(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_P_TO_G",{get:se.prototype.get_PE_TRANSFORM_P_TO_G}),se.prototype.get_PE_TRANSFORM_G_TO_P=se.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Js(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_G_TO_P",{get:se.prototype.get_PE_TRANSFORM_G_TO_P}),se.prototype.get_PE_HORIZON_RECT=se.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return zu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_RECT",{get:se.prototype.get_PE_HORIZON_RECT}),se.prototype.get_PE_HORIZON_POLY=se.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Wu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_POLY",{get:se.prototype.get_PE_HORIZON_POLY}),se.prototype.get_PE_HORIZON_LINE=se.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Uc(m)},Object.defineProperty(se.prototype,"PE_HORIZON_LINE",{get:se.prototype.get_PE_HORIZON_LINE}),se.prototype.get_PE_HORIZON_DELTA=se.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return Bu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_DELTA",{get:se.prototype.get_PE_HORIZON_DELTA}),Pr.prototype=Object.create(ot.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},a.PeDouble=Pr,Pr.prototype.get_val=Pr.prototype.get_val=function(){var m=this.ptr;return Vc(m)},Pr.prototype.set_val=Pr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zc(L,m)},Object.defineProperty(Pr.prototype,"val",{get:Pr.prototype.get_val,set:Pr.prototype.set_val}),Pr.prototype.__destroy__=Pr.prototype.__destroy__=function(){var m=this.ptr;ju(m)},Qr.prototype=Object.create(ot.prototype),Qr.prototype.constructor=Qr,Qr.prototype.__class__=Qr,Qr.__cache__={},a.PeFactory=Qr,Qr.prototype.initialize=Qr.prototype.initialize=function(m){He.prepare(),m=m&&typeof m=="object"?m.ptr:Op(m),Ks(m)},Qr.prototype.factoryByType=Qr.prototype.factoryByType=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),er(qu(m,L),Gt)},Qr.prototype.fromString=Qr.prototype.fromString=function(m,L){return He.prepare(),m&&typeof m=="object"&&(m=m.ptr),L=L&&typeof L=="object"?L.ptr:Op(L),er(Wc(m,L),Gt)},Qr.prototype.getCode=Qr.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),Hu(m)},yr.prototype=Object.create(ot.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},a.PeGCSExtent=yr,yr.prototype.getLLon=yr.prototype.getLLon=function(){var m=this.ptr;return Yu(m)},yr.prototype.getSLat=yr.prototype.getSLat=function(){var m=this.ptr;return Bc(m)},yr.prototype.getRLon=yr.prototype.getRLon=function(){var m=this.ptr;return Gc(m)},yr.prototype.getNLat=yr.prototype.getNLat=function(){var m=this.ptr;return Zu(m)},yr.prototype.__destroy__=yr.prototype.__destroy__=function(){var m=this.ptr;jc(m)},ht.prototype=Object.create(Cr.prototype),ht.prototype.constructor=ht,ht.prototype.__class__=ht,ht.__cache__={},a.PeGeogcs=ht,ht.prototype.Delete=ht.prototype.Delete=function(){var m=this.ptr;qc(m)},ht.prototype.cloneAlterUnits=ht.prototype.cloneAlterUnits=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),er(Xu(L,m),ht)},ht.prototype.getDatum=ht.prototype.getDatum=function(){var m=this.ptr;return er(Vi(m),Fr)},ht.prototype.getPrimem=ht.prototype.getPrimem=function(){var m=this.ptr;return er(Po(m),$r)},ht.prototype.getUnit=ht.prototype.getUnit=function(){var m=this.ptr;return er(Ju(m),Dr)},ht.prototype.isEqual=ht.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Qs(L,m)},ht.prototype.getCode=ht.prototype.getCode=function(){var m=this.ptr;return ea(m)},ht.prototype.getName=ht.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ku(L,m))},ht.prototype.getType=ht.prototype.getType=function(){var m=this.ptr;return is(m)},Ft.prototype=Object.create(Gt.prototype),Ft.prototype.constructor=Ft,Ft.prototype.__class__=Ft,Ft.__cache__={},a.PeGeogtran=Ft,Ft.prototype.isEqual=Ft.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Hc(L,m)},Ft.prototype.getGeogcs1=Ft.prototype.getGeogcs1=function(){var m=this.ptr;return er(Yc(m),ht)},Ft.prototype.getGeogcs2=Ft.prototype.getGeogcs2=function(){var m=this.ptr;return er(ta(m),ht)},Ft.prototype.getParameters=Ft.prototype.getParameters=function(){var m=this.ptr;return Zc(m)},Ft.prototype.loadConstants=Ft.prototype.loadConstants=function(){var m=this.ptr;return!!Qu(m)},Ft.prototype.getCode=Ft.prototype.getCode=function(){var m=this.ptr;return ti(m)},Ft.prototype.getName=Ft.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ed(L,m))},Ft.prototype.getType=Ft.prototype.getType=function(){var m=this.ptr;return td(m)},Pn.prototype=Object.create(ot.prototype),Pn.prototype.constructor=Pn,Pn.prototype.__class__=Pn,Pn.__cache__={},a.PeGTlistExtended=Pn,Pn.prototype.getGTlist=Pn.prototype.getGTlist=function(m,L,j,ie,le,Pe){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),er(rd(m,L,j,ie,le,Pe),wn)},Pn.prototype.get_PE_GTLIST_OPTS_COMMON=Pn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Xc(m)},Object.defineProperty(Pn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Pn.prototype.get_PE_GTLIST_OPTS_COMMON}),wn.prototype=Object.create(ot.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeGTlistExtendedEntry=wn,wn.prototype.getEntries=wn.prototype.getEntries=function(){var m=this.ptr;return er(Jc(m),Wn)},wn.prototype.getSteps=wn.prototype.getSteps=function(){var m=this.ptr;return gr(m)},wn.prototype.Delete=wn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),nd(m)},Wn.prototype=Object.create(ot.prototype),Wn.prototype.constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},a.PeGTlistExtendedGTs=Wn,Wn.prototype.getDirection=Wn.prototype.getDirection=function(){var m=this.ptr;return id(m)},Wn.prototype.getGeogtran=Wn.prototype.getGeogtran=function(){var m=this.ptr;return er(od(m),Ft)},dr.prototype=Object.create(ot.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},a.PeHorizon=dr,dr.prototype.getNump=dr.prototype.getNump=function(){var m=this.ptr;return sd(m)},dr.prototype.getKind=dr.prototype.getKind=function(){var m=this.ptr;return ad(m)},dr.prototype.getInclusive=dr.prototype.getInclusive=function(){var m=this.ptr;return Kc(m)},dr.prototype.getSize=dr.prototype.getSize=function(){var m=this.ptr;return cd(m)},dr.prototype.getCoord=dr.prototype.getCoord=function(){var m=this.ptr;return Qc(m)},Mr.prototype=Object.create(ot.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},a.PeInteger=Mr,Mr.prototype.get_val=Mr.prototype.get_val=function(){var m=this.ptr;return os(m)},Mr.prototype.set_val=Mr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),_i(L,m)},Object.defineProperty(Mr.prototype,"val",{get:Mr.prototype.get_val,set:Mr.prototype.set_val}),Mr.prototype.__destroy__=Mr.prototype.__destroy__=function(){var m=this.ptr;ss(m)},en.prototype=Object.create(ot.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeLineType=en,en.prototype.geodetic_distance=en.prototype.geodetic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt,yn){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),yn&&typeof yn=="object"&&(yn=yn.ptr),ld(m,L,j,ie,le,Pe,Ve,Re,tt,yn)},en.prototype.geodetic_coordinate=en.prototype.geodetic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),tl(m,L,j,ie,le,Pe,Ve,Re,tt)},en.prototype.geodesic_coordinate=en.prototype.geodesic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),rl(m,L,j,ie,le,Pe,Ve,Re)},en.prototype.great_elliptic_distance=en.prototype.great_elliptic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),nl(m,L,j,ie,le,Pe,Ve,Re,tt)},Ar.prototype=Object.create(ot.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},a.PeMath=Ar,Ar.prototype.phi_to_eta=Ar.prototype.phi_to_eta=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),Mo(m,L)},Ar.prototype.eta_to_phi=Ar.prototype.eta_to_phi=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),ud(m,L)},Ar.prototype.phi_to_phig=Ar.prototype.phi_to_phig=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),dd(m,L)},Ar.prototype.q=Ar.prototype.q=function(m,L,j){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),fd(m,L,j)},Ar.prototype.q90=Ar.prototype.q90=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),pd(m,L)},_t.prototype=Object.create(ot.prototype),_t.prototype.constructor=_t,_t.prototype.__class__=_t,_t.__cache__={},a.PeNotationMgrs=_t,_t.prototype.get_PE_MGRS_STYLE_NEW=_t.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return md(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_NEW",{get:_t.prototype.get_PE_MGRS_STYLE_NEW}),_t.prototype.get_PE_MGRS_STYLE_OLD=_t.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return hd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_OLD",{get:_t.prototype.get_PE_MGRS_STYLE_OLD}),_t.prototype.get_PE_MGRS_STYLE_AUTO=_t.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return ra(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_AUTO",{get:_t.prototype.get_PE_MGRS_STYLE_AUTO}),_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return gd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),_t.prototype.get_PE_MGRS_ADD_SPACES=_t.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return as(m)},Object.defineProperty(_t.prototype,"PE_MGRS_ADD_SPACES",{get:_t.prototype.get_PE_MGRS_ADD_SPACES}),jt.prototype=Object.create(ot.prototype),jt.prototype.constructor=jt,jt.prototype.__class__=jt,jt.__cache__={},a.PeNotationUtm=jt,jt.prototype.get_PE_UTM_OPTS_NONE=jt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return wd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NONE",{get:jt.prototype.get_PE_UTM_OPTS_NONE}),jt.prototype.get_PE_UTM_OPTS_NS=jt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return na(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS",{get:jt.prototype.get_PE_UTM_OPTS_NS}),jt.prototype.get_PE_UTM_OPTS_NS_STRICT=jt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return yd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:jt.prototype.get_PE_UTM_OPTS_NS_STRICT}),jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return bd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:jt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),tn.prototype=Object.create(Gt.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeParameter=tn,tn.prototype.getValue=tn.prototype.getValue=function(){var m=this.ptr;return il(m)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return Ao(m)},tn.prototype.getName=tn.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ri(L,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return ol(m)},qe.prototype=Object.create(ot.prototype),qe.prototype.constructor=qe,qe.prototype.__class__=qe,qe.__cache__={},a.PePCSInfo=qe,qe.prototype.getCentralMeridian=qe.prototype.getCentralMeridian=function(){var m=this.ptr;return ia(m)},qe.prototype.getDomainMinx=qe.prototype.getDomainMinx=function(){var m=this.ptr;return vd(m)},qe.prototype.getDomainMiny=qe.prototype.getDomainMiny=function(){var m=this.ptr;return _d(m)},qe.prototype.getDomainMaxx=qe.prototype.getDomainMaxx=function(){var m=this.ptr;return Sd(m)},qe.prototype.getDomainMaxy=qe.prototype.getDomainMaxy=function(){var m=this.ptr;return xd(m)},qe.prototype.getNorthPoleLocation=qe.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Ed(m)},qe.prototype.getNorthPoleGeometry=qe.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Cd(m)},qe.prototype.getSouthPoleLocation=qe.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Td(m)},qe.prototype.getSouthPoleGeometry=qe.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Pd(m)},qe.prototype.isDensificationNeeded=qe.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Md(m)},qe.prototype.isGcsHorizonMultiOverlap=qe.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!Ad(m)},qe.prototype.isPannableRectangle=qe.prototype.isPannableRectangle=function(){var m=this.ptr;return!!p(m)},qe.prototype.generate=qe.prototype.generate=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),er(f(m,L),qe)},qe.prototype.get_PE_PCSINFO_OPTION_NONE=qe.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_NONE",{get:qe.prototype.get_PE_PCSINFO_OPTION_NONE}),qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(qe.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),qe.prototype.get_PE_POLE_POINT=qe.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(qe.prototype,"PE_POLE_POINT",{get:qe.prototype.get_PE_POLE_POINT}),$r.prototype=Object.create(Gt.prototype),$r.prototype.constructor=$r,$r.prototype.__class__=$r,$r.__cache__={},a.PePrimem=$r,$r.prototype.getLongitude=$r.prototype.getLongitude=function(){var m=this.ptr;return A(m)},$r.prototype.getCode=$r.prototype.getCode=function(){var m=this.ptr;return O(m)},$r.prototype.getName=$r.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(R(L,m))},$r.prototype.getType=$r.prototype.getType=function(){var m=this.ptr;return U(m)},ut.prototype=Object.create(Cr.prototype),ut.prototype.constructor=ut,ut.prototype.__class__=ut,ut.__cache__={},a.PeProjcs=ut,ut.prototype.Delete=ut.prototype.Delete=function(){var m=this.ptr;D(m)},ut.prototype.getGeogcs=ut.prototype.getGeogcs=function(){var m=this.ptr;return er(Z(m),ht)},ut.prototype.getProjection=ut.prototype.getProjection=function(){var m=this.ptr;return er(oe(m),Gt)},ut.prototype.getParameters=ut.prototype.getParameters=function(){var m=this.ptr;return ge(m)},ut.prototype.getUnit=ut.prototype.getUnit=function(){var m=this.ptr;return er(he(m),Tr)},ut.prototype.loadConstants=ut.prototype.loadConstants=function(){var m=this.ptr;return!!be(m)},ut.prototype.horizonGcsGenerate=ut.prototype.horizonGcsGenerate=function(){var m=this.ptr;return er(Oe(m),dr)},ut.prototype.horizonPcsGenerate=ut.prototype.horizonPcsGenerate=function(){var m=this.ptr;return er(Ie(m),dr)},ut.prototype.isEqual=ut.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!$e(L,m)},ut.prototype.getCode=ut.prototype.getCode=function(){var m=this.ptr;return Xe(m)},ut.prototype.getName=ut.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qe(L,m))},ut.prototype.getType=ut.prototype.getType=function(){var m=this.ptr;return Be(m)},br.prototype=Object.create(Gt.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},a.PeSpheroid=br,br.prototype.getAxis=br.prototype.getAxis=function(){var m=this.ptr;return Je(m)},br.prototype.getFlattening=br.prototype.getFlattening=function(){var m=this.ptr;return wr(m)},br.prototype.getCode=br.prototype.getCode=function(){var m=this.ptr;return vt(m)},br.prototype.getName=br.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Rr(L,m))},br.prototype.getType=br.prototype.getType=function(){var m=this.ptr;return gn(m)},Wi.prototype=Object.create(ot.prototype),Wi.prototype.constructor=Wi,Wi.prototype.__class__=Wi,Wi.__cache__={},a.PeVersion=Wi,Wi.prototype.version_string=Wi.prototype.version_string=function(){var m=this.ptr;return hr(Tn(m))},a.ensureCache=He,a.ensureString=Op,a.ensureInt8=zn,a.ensureInt16=lv,a.ensureInt32=uv,a.ensureFloat32=dv,a.ensureFloat64=fv,d},t.exports=r),mR.exports;var t,e,r}var pR,mR,KX,QX,gR=N(()=>{uR();mR={exports:{}};KX=lR(JX()),QX=Object.freeze(Object.defineProperty({__proto__:null,default:KX},Symbol.toStringTag,{value:"Module"}))});function wR(){return!!W}function eJ(){return!!fe("esri-wasm")}function yR(){return Y5||(Y5=Promise.resolve().then(()=>(gR(),hR)).then(t=>t.p).then(({default:t})=>t({locateFile:e=>jf(`esri/geometry/support/${e}`)})).then(t=>{_R(t)}),Y5)}function _R(t){function e(o,s,c){o[s]=c(o[s])}W=t,zt.init(),Rb.init(),Db.init(),Fb.init(),$b.init(),bR=class extends W.PeDouble{constructor(o=NaN){super(o)}destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}},vR=class extends W.PeGCSExtent{destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[W.PeAngunit,W.PeDatum,W.PeGeogcs,W.PeGeogtran,W.PeObject,W.PeParameter,W.PePrimem,W.PeProjcs,W.PeSpheroid,W.PeUnit];for(let o of r)e(o.prototype,"getName",s=>function(){return s.call(this,new Array(zt.PE_NAME_MAX))});for(let o of[W.PeGeogtran,W.PeProjcs])e(o.prototype,"getParameters",s=>function(){let c=new Array(zt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=W.getValue(a,"*");c[d]=h?W.wrapPointer(h,W.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});e(W.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return fc(a,c,o.call(this),s),a}),e(W.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=W._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+s*g,W.PeGTlistExtendedGTs))}}return c}});let n=W._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=a.getNump();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+n*g,W.PeHorizon))}}return s.set(o,c),c};e(W.PeProjcs.prototype,"horizonGcsGenerate",i),e(W.PeProjcs.prototype,"horizonPcsGenerate",i),W.PeObject.prototype.toString=function(o=zt.PE_STR_OPTS_NONE){W.ensureCache.prepare();let s=W.getPointer(this),c=W.ensureInt8(new Array(zt.PE_BUFFER_MAX));return W.UTF8ToString(W._pe_object_to_string_ext(s,o,c))},W.PeGeogcs.prototype.destroy=function(){this.Delete(),go(this),this.ptr=0},W.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},W.PeProjcs.prototype.destroy=function(){this.Delete(),go(this),this.ptr=0},W.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function go(t){if(!t)return;let e=W.getClass(t);if(!e)return;let r=W.getCache(e);if(!r)return;let n=W.getPointer(t);n&&delete r[n]}function Ob(t,e){let r=[],n=new Array(e);for(let i=0;i<t;i++)r.push(W.ensureInt8(n));return r}function ou(t){return ArrayBuffer.isView(t)?t:Array.isArray(t[0])?t.flat():t}function fc(t,e,r,n=!1){if(n)for(let i=0;i<2*e;i++)t[i]=W.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=t.length===0;for(let o=0;o<e;o++)i&&(t[o]=new Array(2)),t[o][0]=W.getValue(r,"double"),t[o][1]=W.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var Y5,W,Z5,zt,bR,Nb,vR,Rb,X5,J5,K5,Q5,eE,Db,tE,Fb,$b,rE,exe,SR=N(()=>{Bw();St();W=null;(function(t){function e(o,s,c){W.ensureCache.prepare();let a=ou(c),d=c===a,h=W.ensureFloat64(a),g=W._pe_geog_to_proj(W.getPointer(o),s,h);return g&&fc(c,s,h,d),g}function r(o,s,c,a){switch(a){case zt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case zt.PE_TRANSFORM_G_TO_P:return e(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){W.ensureCache.prepare();let d=ou(c),h=c===d,g=W.ensureFloat64(d),v=W._pe_proj_to_geog_center(W.getPointer(o),s,g,a);return v&&fc(c,s,g,h),v}t.geogToProj=e,t.projGeog=r,t.projToGeog=n,t.projToGeogCenter=i})(Z5||(Z5={})),function(t){function e(){t.PE_BUFFER_MAX=W.PeDefs.prototype.PE_BUFFER_MAX,t.PE_NAME_MAX=W.PeDefs.prototype.PE_NAME_MAX,t.PE_MGRS_MAX=W.PeDefs.prototype.PE_MGRS_MAX,t.PE_USNG_MAX=W.PeDefs.prototype.PE_USNG_MAX,t.PE_DD_MAX=W.PeDefs.prototype.PE_DD_MAX,t.PE_DDM_MAX=W.PeDefs.prototype.PE_DDM_MAX,t.PE_DMS_MAX=W.PeDefs.prototype.PE_DMS_MAX,t.PE_UTM_MAX=W.PeDefs.prototype.PE_UTM_MAX,t.PE_PARM_MAX=W.PeDefs.prototype.PE_PARM_MAX,t.PE_TYPE_NONE=W.PeDefs.prototype.PE_TYPE_NONE,t.PE_TYPE_GEOGCS=W.PeDefs.prototype.PE_TYPE_GEOGCS,t.PE_TYPE_PROJCS=W.PeDefs.prototype.PE_TYPE_PROJCS,t.PE_TYPE_GEOGTRAN=W.PeDefs.prototype.PE_TYPE_GEOGTRAN,t.PE_TYPE_COORDSYS=W.PeDefs.prototype.PE_TYPE_COORDSYS,t.PE_TYPE_UNIT=W.PeDefs.prototype.PE_TYPE_UNIT,t.PE_TYPE_LINUNIT=W.PeDefs.prototype.PE_TYPE_LINUNIT,t.PE_STR_OPTS_NONE=W.PeDefs.prototype.PE_STR_OPTS_NONE,t.PE_STR_AUTH_NONE=W.PeDefs.prototype.PE_STR_AUTH_NONE,t.PE_STR_AUTH_TOP=W.PeDefs.prototype.PE_STR_AUTH_TOP,t.PE_STR_NAME_CANON=W.PeDefs.prototype.PE_STR_NAME_CANON,t.PE_STR_FMT_WKT=W.PeDefs.prototype.PE_STR_FMT_WKT,t.PE_STR_FMT_WKT2=W.PeDefs.prototype.PE_STR_FMT_WKT2,t.PE_PARM_X0=W.PeDefs.prototype.PE_PARM_X0,t.PE_PARM_ND=W.PeDefs.prototype.PE_PARM_ND,t.PE_TRANSFORM_1_TO_2=W.PeDefs.prototype.PE_TRANSFORM_1_TO_2,t.PE_TRANSFORM_2_TO_1=W.PeDefs.prototype.PE_TRANSFORM_2_TO_1,t.PE_TRANSFORM_P_TO_G=W.PeDefs.prototype.PE_TRANSFORM_P_TO_G,t.PE_TRANSFORM_G_TO_P=W.PeDefs.prototype.PE_TRANSFORM_G_TO_P,t.PE_HORIZON_RECT=W.PeDefs.prototype.PE_HORIZON_RECT,t.PE_HORIZON_POLY=W.PeDefs.prototype.PE_HORIZON_POLY,t.PE_HORIZON_LINE=W.PeDefs.prototype.PE_HORIZON_LINE,t.PE_HORIZON_DELTA=W.PeDefs.prototype.PE_HORIZON_DELTA}t.init=e}(zt||(zt={}));bR=null;(function(t){let e={},r={},n=E=>{let M=E.getType();switch(M){case zt.PE_TYPE_GEOGCS:E=W.castObject(E,W.PeGeogcs);break;case zt.PE_TYPE_PROJCS:E=W.castObject(E,W.PeProjcs);break;case zt.PE_TYPE_GEOGTRAN:E=W.castObject(E,W.PeGeogtran);break;default:M&zt.PE_TYPE_UNIT&&(E=W.castObject(E,W.PeUnit))}return E};function i(){W.PeFactory.prototype.initialize(null)}function o(E){return s(zt.PE_TYPE_COORDSYS,E)}function s(E,M){let k=null,F=e[E];if(F||(F={},e[E]=F),F.hasOwnProperty(String(M))&&(k=F[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.factoryByType(E,M);W.compare(z,W.NULL)||(k=n(z),F[M]=k)}return k}function c(E,M){let k=null,F=r[E];if(F||(F={},r[E]=F),F.hasOwnProperty(M)&&(k=F[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.fromString(E,M);W.compare(z,W.NULL)||(k=n(z),F[M]=k)}return k}function a(E){return s(zt.PE_TYPE_GEOGCS,E)}function d(E){return s(zt.PE_TYPE_GEOGTRAN,E)}function h(E){return W.PeFactory.prototype.getCode(E)}function g(E){return s(zt.PE_TYPE_PROJCS,E)}function v(E){return s(zt.PE_TYPE_UNIT,E)}t.initialize=i,t.coordsys=o,t.factoryByType=s,t.fromString=c,t.geogcs=a,t.geogtran=d,t.getCode=h,t.projcs=g,t.unit=v})(Nb||(Nb={}));vR=null;(function(t){let e;function r(){t.PE_GTLIST_OPTS_COMMON=W.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=W._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new W.PeInteger(d);try{let v=W.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=W.getPointer(v);for(let M=1;M<d;M++)h.push(W.wrapPointer(E+e*M,W.PeGTlistExtendedEntry))}}finally{W.destroy(g)}return h}t.init=r,t.getGTlist=n})(Rb||(Rb={})),function(t){function e(r){if(r?.length){for(let n of r)go(n),n.getEntries().forEach(i=>{go(i);let o=i.getGeogtran();go(o),o.getParameters().forEach(go),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{go(s);let c=s.getDatum();go(c),go(c.getSpheroid()),go(s.getPrimem()),go(s.getUnit())})});W.PeGTlistExtendedEntry.prototype.Delete(r[0])}}t.destroy=e}(X5||(X5={})),function(t){function e(r,n,i,o,s){W.ensureCache.prepare();let c=ou(i),a=i===c,d=W.ensureFloat64(c),h=0;o&&(h=W.ensureFloat64(o));let g=W._pe_geog_to_geog(W.getPointer(r),n,d,h,s);return g&&fc(i,n,d,a),g}t.geogToGeog=e}(J5||(J5={})),function(t){function e(o,s,c,a,d,h,g,v){W.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,E)}function n(o,s,c,a,d,h,g,v,E,M){W.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,E,M)}function i(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,E)}t.geodesicCoordinate=e,t.geodeticCoordinate=r,t.geodeticDistance=n,t.greatEllipticDistance=i}(K5||(K5={})),function(t){function e(s,c){return W.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return W.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return W.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return W.PeMath.prototype.q(s,c,a)}function o(s,c){return W.PeMath.prototype.q90(s,c)}t.phiToEta=e,t.etaToPhi=r,t.phiToPhig=n,t.q=i,t.q90=o}(Q5||(Q5={})),function(t){let e=(d,h,g,v,E,M)=>{let k,F;switch(W.ensureCache.prepare(),d){case"dd":k=W._pe_geog_to_dd,F=zt.PE_DD_MAX;break;case"ddm":k=W._pe_geog_to_ddm,F=zt.PE_DDM_MAX;break;case"dms":k=W._pe_geog_to_dms,F=zt.PE_DMS_MAX}let z=0;h&&(z=W.getPointer(h));let B=ou(v),q=W.ensureFloat64(B),V=Ob(g,F),X=k(z,g,q,E,W.ensureInt32(V));if(X)for(let Q=0;Q<g;Q++)M[Q]=W.UTF8ToString(V[Q]);return X},r=(d,h,g,v,E)=>{let M;switch(W.ensureCache.prepare(),d){case"dd":M=W._pe_dd_to_geog;break;case"ddm":M=W._pe_ddm_to_geog;break;case"dms":M=W._pe_dms_to_geog}let k=0;h&&(k=W.getPointer(h));let F=v.map(V=>W.ensureString(V)),z=W.ensureInt32(F),B=W.ensureFloat64(new Array(2*g)),q=M(k,g,z,B);return q&&fc(E,g,B),q};function n(d,h,g,v,E){return e("dms",d,h,g,v,E)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,E){return e("ddm",d,h,g,v,E)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,E){return e("dd",d,h,g,v,E)}function a(d,h,g,v){return r("dd",d,h,g,v)}t.geogToDms=n,t.dmsToGeog=i,t.geogToDdm=o,t.ddmToGeog=s,t.geogToDd=c,t.ddToGeog=a}(eE||(eE={})),function(t){function e(){t.PE_MGRS_STYLE_NEW=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=W.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=W.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){W.ensureCache.prepare();let g=0;i&&(g=W.getPointer(i));let v=ou(s),E=W.ensureFloat64(v),M=Ob(o,zt.PE_MGRS_MAX),k=W.ensureInt32(M),F=W._pe_geog_to_mgrs_extended(g,o,E,c,a,d,k);if(F)for(let z=0;z<o;z++)h[z]=W.UTF8ToString(M[z]);return F}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&fc(a,o,v),E}t.init=e,t.geogToMgrsExtended=r,t.mgrsToGeogExtended=n}(Db||(Db={})),function(t){function e(n,i,o,s,c,a,d){W.ensureCache.prepare();let h=0;n&&(h=W.getPointer(n));let g=ou(o),v=W.ensureFloat64(g),E=Ob(i,zt.PE_MGRS_MAX),M=W.ensureInt32(E),k=W._pe_geog_to_usng(h,i,v,s,c,a,M);if(k)for(let F=0;F<i;F++)d[F]=W.UTF8ToString(E[F]);return k}function r(n,i,o,s){W.ensureCache.prepare();let c=0;n&&(c=W.getPointer(n));let a=o.map(v=>W.ensureString(v)),d=W.ensureInt32(a),h=W.ensureFloat64(new Array(2*i)),g=W._pe_usng_to_geog(c,i,d,h);return g&&fc(s,i,h),g}t.geogToUsng=e,t.usngToGeog=r}(tE||(tE={})),function(t){function e(){t.PE_UTM_OPTS_NONE=W.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=W.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=W.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=ou(s),g=W.ensureFloat64(h),v=Ob(o,zt.PE_UTM_MAX),E=W.ensureInt32(v),M=W._pe_geog_to_utm(d,o,g,c,E);if(M)for(let k=0;k<o;k++)a[k]=W.UTF8ToString(v[k]);return M}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_utm_to_geog(d,o,g,c,v);return E&&fc(a,o,v),E}t.init=e,t.geogToUtm=r,t.utmToGeog=n}(Fb||(Fb={})),function(t){let e=new Map;function r(){t.PE_PCSINFO_OPTION_NONE=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=W.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=W.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=t.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return e.has(i)&&(c=e.get(i),c[o]&&(s=c[o])),s||(s=W.PePCSInfo.prototype.generate(i,o),c||(c=[],e.set(i,c)),c[o]=s),s}t.init=r,t.generate=n}($b||($b={})),function(t){function e(){return W.PeVersion.prototype.version_string()}t.versionString=e}(rE||(rE={}));exe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return Z5},get PeDefs(){return zt},get PeDouble(){return bR},get PeFactory(){return Nb},get PeGCSExtent(){return vR},get PeGTTransformations(){return J5},get PeGTlistExtended(){return Rb},get PeGTlistExtendedEntry(){return X5},get PeLineType(){return K5},get PeMath(){return Q5},get PeNotationDms(){return eE},get PeNotationMgrs(){return Db},get PeNotationUsng(){return tE},get PeNotationUtm(){return Fb},get PePCSInfo(){return $b},get PeVersion(){return rE},_init:_R,get _pe(){return W},isLoaded:wR,isSupported:eJ,load:yR},Symbol.toStringTag,{value:"Module"}))});var _p,xR=N(()=>{(function(t){t[t.CGCS2000=4490]="CGCS2000",t[t.GCSMARS2000=104971]="GCSMARS2000",t[t.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",t[t.GCSMOON2000=104903]="GCSMOON2000"})(_p||(_p={}))});var l,P,nE=N(()=>{P={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)P[l]=0;for(l=2056;l<=2065;l++)P[l]=0;for(l=2067;l<=2135;l++)P[l]=0;for(l=2137;l<=2154;l++)P[l]=0;for(l=2161;l<=2170;l++)P[l]=0;for(l=2172;l<=2193;l++)P[l]=0;for(l=2195;l<=2198;l++)P[l]=0;for(l=2200;l<=2203;l++)P[l]=0;for(l=2205;l<=2217;l++)P[l]=0;for(l=2222;l<=2224;l++)P[l]=1;for(l=2225;l<=2250;l++)P[l]=2;for(l=2251;l<=2253;l++)P[l]=1;for(l=2257;l<=2264;l++)P[l]=2;for(l=2274;l<=2279;l++)P[l]=2;for(l=2280;l<=2282;l++)P[l]=1;for(l=2283;l<=2289;l++)P[l]=2;for(l=2290;l<=2292;l++)P[l]=0;for(l=2308;l<=2313;l++)P[l]=0;for(l=2315;l<=2491;l++)P[l]=0;for(l=2494;l<=2866;l++)P[l]=0;for(l=2867;l<=2869;l++)P[l]=1;for(l=2870;l<=2888;l++)P[l]=2;for(l=2891;l<=2895;l++)P[l]=2;for(l=2896;l<=2898;l++)P[l]=1;for(l=2902;l<=2908;l++)P[l]=2;for(l=2915;l<=2920;l++)P[l]=2;for(l=2921;l<=2923;l++)P[l]=1;for(l=2924;l<=2930;l++)P[l]=2;for(l=2931;l<=2962;l++)P[l]=0;for(l=2964;l<=2968;l++)P[l]=2;for(l=2969;l<=2973;l++)P[l]=0;for(l=2975;l<=2991;l++)P[l]=0;for(l=2995;l<=3051;l++)P[l]=0;for(l=3054;l<=3079;l++)P[l]=0;for(l=3081;l<=3088;l++)P[l]=0;for(l=3092;l<=3101;l++)P[l]=0;for(l=3106;l<=3138;l++)P[l]=0;for(l=3146;l<=3151;l++)P[l]=0;for(l=3153;l<=3166;l++)P[l]=0;for(l=3168;l<=3172;l++)P[l]=0;for(l=3174;l<=3203;l++)P[l]=0;for(l=3294;l<=3358;l++)P[l]=0;for(l=3367;l<=3403;l++)P[l]=0;for(l=3408;l<=3416;l++)P[l]=0;for(l=3417;l<=3438;l++)P[l]=2;for(l=3441;l<=3446;l++)P[l]=2;for(l=3447;l<=3450;l++)P[l]=0;for(l=3451;l<=3459;l++)P[l]=2;for(l=3460;l<=3478;l++)P[l]=0;for(l=3554;l<=3559;l++)P[l]=0;for(l=3560;l<=3570;l++)P[l]=2;for(l=3571;l<=3581;l++)P[l]=0;for(l=3594;l<=3597;l++)P[l]=0;for(l=3601;l<=3604;l++)P[l]=0;for(l=3637;l<=3639;l++)P[l]=0;for(l=3665;l<=3667;l++)P[l]=0;for(l=3693;l<=3695;l++)P[l]=0;for(l=3701;l<=3727;l++)P[l]=0;for(l=3728;l<=3739;l++)P[l]=2;for(l=3740;l<=3751;l++)P[l]=0;for(l=3753;l<=3760;l++)P[l]=2;for(l=3761;l<=3773;l++)P[l]=0;for(l=3775;l<=3777;l++)P[l]=0;for(l=3779;l<=3781;l++)P[l]=0;for(l=3783;l<=3785;l++)P[l]=0;for(l=3788;l<=3791;l++)P[l]=0;for(l=3797;l<=3802;l++)P[l]=0;for(l=3814;l<=3816;l++)P[l]=0;for(l=3825;l<=3829;l++)P[l]=0;for(l=3832;l<=3841;l++)P[l]=0;for(l=3844;l<=3852;l++)P[l]=0;for(l=3873;l<=3885;l++)P[l]=0;for(l=3890;l<=3893;l++)P[l]=0;for(l=3907;l<=3912;l++)P[l]=0;for(l=3942;l<=3950;l++)P[l]=0;for(l=3968;l<=3970;l++)P[l]=0;for(l=3973;l<=3976;l++)P[l]=0;for(l=3986;l<=3989;l++)P[l]=0;for(l=3994;l<=3997;l++)P[l]=0;for(l=4048;l<=4051;l++)P[l]=0;for(l=4056;l<=4063;l++)P[l]=0;for(l=4093;l<=4096;l++)P[l]=0;for(l=4390;l<=4398;l++)P[l]=0;for(l=4399;l<=4413;l++)P[l]=2;for(l=4418;l<=4433;l++)P[l]=2;for(l=4455;l<=4457;l++)P[l]=2;for(l=4484;l<=4489;l++)P[l]=0;for(l=4491;l<=4554;l++)P[l]=0;for(l=4568;l<=4589;l++)P[l]=0;for(l=4652;l<=4656;l++)P[l]=0;for(l=4766;l<=4800;l++)P[l]=0;for(l=5014;l<=5016;l++)P[l]=0;for(l=5069;l<=5072;l++)P[l]=0;for(l=5105;l<=5130;l++)P[l]=0;for(l=5167;l<=5188;l++)P[l]=0;for(l=5253;l<=5259;l++)P[l]=0;for(l=5269;l<=5275;l++)P[l]=0;for(l=5292;l<=5311;l++)P[l]=0;for(l=5329;l<=5331;l++)P[l]=0;for(l=5343;l<=5349;l++)P[l]=0;for(l=5355;l<=5357;l++)P[l]=0;for(l=5387;l<=5389;l++)P[l]=0;for(l=5459;l<=5463;l++)P[l]=0;for(l=5479;l<=5482;l++)P[l]=0;for(l=5518;l<=5520;l++)P[l]=0;for(l=5530;l<=5539;l++)P[l]=0;for(l=5550;l<=5552;l++)P[l]=0;for(l=5562;l<=5583;l++)P[l]=0;for(l=5623;l<=5625;l++)P[l]=2;for(l=5631;l<=5639;l++)P[l]=0;for(l=5649;l<=5653;l++)P[l]=0;for(l=5663;l<=5680;l++)P[l]=0;for(l=5682;l<=5685;l++)P[l]=0;for(l=5875;l<=5877;l++)P[l]=0;for(l=5896;l<=5899;l++)P[l]=0;for(l=5921;l<=5940;l++)P[l]=0;for(l=6050;l<=6125;l++)P[l]=0;for(l=6244;l<=6275;l++)P[l]=0;for(l=6328;l<=6348;l++)P[l]=0;for(l=6350;l<=6356;l++)P[l]=0;for(l=6366;l<=6372;l++)P[l]=0;for(l=6381;l<=6387;l++)P[l]=0;for(l=6393;l<=6404;l++)P[l]=0;for(l=6480;l<=6483;l++)P[l]=0;for(l=6511;l<=6514;l++)P[l]=0;for(l=6579;l<=6581;l++)P[l]=0;for(l=6619;l<=6624;l++)P[l]=0;for(l=6625;l<=6627;l++)P[l]=2;for(l=6628;l<=6632;l++)P[l]=0;for(l=6634;l<=6637;l++)P[l]=0;for(l=6669;l<=6692;l++)P[l]=0;for(l=6707;l<=6709;l++)P[l]=0;for(l=6720;l<=6723;l++)P[l]=0;for(l=6732;l<=6738;l++)P[l]=0;for(l=6931;l<=6933;l++)P[l]=0;for(l=6956;l<=6959;l++)P[l]=0;for(l=7005;l<=7007;l++)P[l]=0;for(l=7057;l<=7070;l++)P[l]=2;for(l=7074;l<=7082;l++)P[l]=0;for(l=7109;l<=7118;l++)P[l]=0;for(l=7119;l<=7127;l++)P[l]=1;for(l=7374;l<=7376;l++)P[l]=0;for(l=7528;l<=7586;l++)P[l]=0;for(l=7587;l<=7645;l++)P[l]=2;for(l=7692;l<=7696;l++)P[l]=0;for(l=7755;l<=7787;l++)P[l]=0;for(l=7791;l<=7795;l++)P[l]=0;for(l=7799;l<=7801;l++)P[l]=0;for(l=7803;l<=7805;l++)P[l]=0;for(l=7825;l<=7831;l++)P[l]=0;for(l=7845;l<=7859;l++)P[l]=0;for(l=8013;l<=8032;l++)P[l]=0;for(l=8065;l<=8068;l++)P[l]=1;for(l=8518;l<=8529;l++)P[l]=2;for(l=8533;l<=8536;l++)P[l]=2;for(l=8538;l<=8540;l++)P[l]=2;for(l=8677;l<=8679;l++)P[l]=0;for(l=8836;l<=8840;l++)P[l]=0;for(l=8857;l<=8859;l++)P[l]=0;for(l=8908;l<=8910;l++)P[l]=0;for(l=9154;l<=9159;l++)P[l]=0;for(l=9205;l<=9218;l++)P[l]=0;for(l=9271;l<=9273;l++)P[l]=0;for(l=9295;l<=9297;l++)P[l]=0;for(l=9356;l<=9360;l++)P[l]=0;for(l=9404;l<=9407;l++)P[l]=0;for(l=9476;l<=9482;l++)P[l]=0;for(l=9487;l<=9494;l++)P[l]=0;for(l=9697;l<=9699;l++)P[l]=0;for(l=9821;l<=9865;l++)P[l]=0;for(l=10285;l<=10291;l++)P[l]=0;for(l=10314;l<=10317;l++)P[l]=0;for(l=10448;l<=10465;l++)P[l]=0;for(l=10731;l<=10733;l++)P[l]=0;for(l=11114;l<=11118;l++)P[l]=0;for(l=20004;l<=20032;l++)P[l]=0;for(l=20047;l<=20049;l++)P[l]=0;for(l=20062;l<=20092;l++)P[l]=0;for(l=20135;l<=20138;l++)P[l]=0;for(l=20248;l<=20258;l++)P[l]=0;for(l=20348;l<=20358;l++)P[l]=0;for(l=20436;l<=20440;l++)P[l]=0;for(l=20822;l<=20824;l++)P[l]=0;for(l=20904;l<=20932;l++)P[l]=0;for(l=20934;l<=20936;l++)P[l]=0;for(l=21004;l<=21032;l++)P[l]=0;for(l=21035;l<=21037;l++)P[l]=0;for(l=21095;l<=21097;l++)P[l]=0;for(l=21148;l<=21150;l++)P[l]=0;for(l=21207;l<=21264;l++)P[l]=0;for(l=21307;l<=21364;l++)P[l]=0;for(l=21413;l<=21423;l++)P[l]=0;for(l=21453;l<=21463;l++)P[l]=0;for(l=21473;l<=21483;l++)P[l]=0;for(l=21780;l<=21782;l++)P[l]=0;for(l=21891;l<=21894;l++)P[l]=0;for(l=21896;l<=21899;l++)P[l]=0;for(l=22171;l<=22177;l++)P[l]=0;for(l=22181;l<=22187;l++)P[l]=0;for(l=22191;l<=22197;l++)P[l]=0;for(l=22207;l<=22222;l++)P[l]=0;for(l=22229;l<=22232;l++)P[l]=0;for(l=22234;l<=22236;l++)P[l]=0;for(l=22243;l<=22250;l++)P[l]=0;for(l=22262;l<=22265;l++)P[l]=0;for(l=22307;l<=22322;l++)P[l]=0;for(l=22348;l<=22357;l++)P[l]=0;for(l=22407;l<=22422;l++)P[l]=0;for(l=22462;l<=22465;l++)P[l]=0;for(l=22521;l<=22525;l++)P[l]=0;for(l=22607;l<=22622;l++)P[l]=0;for(l=22641;l<=22646;l++)P[l]=0;for(l=22648;l<=22657;l++)P[l]=0;for(l=22707;l<=22722;l++)P[l]=0;for(l=22762;l<=22765;l++)P[l]=0;for(l=22807;l<=22822;l++)P[l]=0;for(l=22991;l<=22994;l++)P[l]=0;for(l=23028;l<=23038;l++)P[l]=0;for(l=23301;l<=23333;l++)P[l]=2;for(l=23830;l<=23853;l++)P[l]=0;for(l=23866;l<=23872;l++)P[l]=0;for(l=23877;l<=23884;l++)P[l]=0;for(l=23886;l<=23894;l++)P[l]=0;for(l=23946;l<=23948;l++)P[l]=0;for(l=24311;l<=24313;l++)P[l]=0;for(l=24342;l<=24347;l++)P[l]=0;for(l=24370;l<=24374;l++)P[l]=10;for(l=24375;l<=24381;l++)P[l]=0;for(l=24718;l<=24721;l++)P[l]=0;for(l=24817;l<=24821;l++)P[l]=0;for(l=24877;l<=24882;l++)P[l]=0;for(l=24891;l<=24893;l++)P[l]=0;for(l=25391;l<=25395;l++)P[l]=0;for(l=25828;l<=25838;l++)P[l]=0;for(l=26191;l<=26195;l++)P[l]=0;for(l=26391;l<=26393;l++)P[l]=0;for(l=26701;l<=26722;l++)P[l]=0;for(l=26729;l<=26799;l++)P[l]=2;for(l=26801;l<=26803;l++)P[l]=2;for(l=26811;l<=26813;l++)P[l]=2;for(l=26847;l<=26870;l++)P[l]=2;for(l=26891;l<=26899;l++)P[l]=0;for(l=26901;l<=26923;l++)P[l]=0;for(l=26929;l<=26946;l++)P[l]=0;for(l=26948;l<=26998;l++)P[l]=0;for(l=27037;l<=27040;l++)P[l]=0;for(l=27205;l<=27232;l++)P[l]=0;for(l=27258;l<=27260;l++)P[l]=0;for(l=27391;l<=27398;l++)P[l]=0;for(l=27561;l<=27564;l++)P[l]=0;for(l=27571;l<=27574;l++)P[l]=0;for(l=27581;l<=27584;l++)P[l]=0;for(l=27591;l<=27594;l++)P[l]=0;for(l=27700;l<=27707;l++)P[l]=0;for(l=28191;l<=28193;l++)P[l]=0;for(l=28348;l<=28358;l++)P[l]=0;for(l=28402;l<=28432;l++)P[l]=0;for(l=28462;l<=28492;l++)P[l]=0;for(l=29118;l<=29122;l++)P[l]=0;for(l=29168;l<=29172;l++)P[l]=0;for(l=29177;l<=29185;l++)P[l]=0;for(l=29187;l<=29195;l++)P[l]=0;for(l=29900;l<=29903;l++)P[l]=0;for(l=30161;l<=30179;l++)P[l]=0;for(l=30491;l<=30494;l++)P[l]=0;for(l=30729;l<=30732;l++)P[l]=0;for(l=31251;l<=31259;l++)P[l]=0;for(l=31265;l<=31268;l++)P[l]=0;for(l=31275;l<=31279;l++)P[l]=0;for(l=31281;l<=31297;l++)P[l]=0;for(l=31461;l<=31469;l++)P[l]=0;for(l=31491;l<=31495;l++)P[l]=0;for(l=31917;l<=31922;l++)P[l]=0;for(l=31965;l<=32e3;l++)P[l]=0;for(l=32001;l<=32003;l++)P[l]=2;for(l=32005;l<=32031;l++)P[l]=2;for(l=32033;l<=32060;l++)P[l]=2;for(l=32064;l<=32067;l++)P[l]=2;for(l=32074;l<=32077;l++)P[l]=2;for(l=32081;l<=32086;l++)P[l]=0;for(l=32107;l<=32130;l++)P[l]=0;for(l=32133;l<=32159;l++)P[l]=0;for(l=32164;l<=32167;l++)P[l]=2;for(l=32180;l<=32199;l++)P[l]=0;for(l=32201;l<=32260;l++)P[l]=0;for(l=32301;l<=32360;l++)P[l]=0;for(l=32401;l<=32460;l++)P[l]=0;for(l=32501;l<=32560;l++)P[l]=0;for(l=32601;l<=32662;l++)P[l]=0;for(l=32664;l<=32667;l++)P[l]=2;for(l=32701;l<=32761;l++)P[l]=0;for(l=53001;l<=53004;l++)P[l]=0;for(l=53008;l<=53019;l++)P[l]=0;for(l=53021;l<=53032;l++)P[l]=0;for(l=53034;l<=53037;l++)P[l]=0;for(l=53042;l<=53046;l++)P[l]=0;for(l=53074;l<=53080;l++)P[l]=0;for(l=54001;l<=54004;l++)P[l]=0;for(l=54008;l<=54019;l++)P[l]=0;for(l=54021;l<=54032;l++)P[l]=0;for(l=54034;l<=54037;l++)P[l]=0;for(l=54042;l<=54046;l++)P[l]=0;for(l=54048;l<=54053;l++)P[l]=0;for(l=54074;l<=54080;l++)P[l]=0;for(l=54098;l<=54101;l++)P[l]=0;for(l=102001;l<=102040;l++)P[l]=0;for(l=102042;l<=102063;l++)P[l]=0;for(l=102065;l<=102067;l++)P[l]=0;for(l=102070;l<=102117;l++)P[l]=0;for(l=102122;l<=102216;l++)P[l]=0;for(l=102221;l<=102377;l++)P[l]=0;for(l=102382;l<=102388;l++)P[l]=0;for(l=102389;l<=102398;l++)P[l]=2;for(l=102399;l<=102444;l++)P[l]=0;for(l=102445;l<=102447;l++)P[l]=2;for(l=102448;l<=102458;l++)P[l]=0;for(l=102459;l<=102468;l++)P[l]=2;for(l=102469;l<=102499;l++)P[l]=0;for(l=102500;l<=102519;l++)P[l]=1;for(l=102520;l<=102524;l++)P[l]=0;for(l=102525;l<=102529;l++)P[l]=2;for(l=102530;l<=102588;l++)P[l]=0;for(l=102590;l<=102598;l++)P[l]=0;for(l=102601;l<=102603;l++)P[l]=0;for(l=102605;l<=102628;l++)P[l]=0;for(l=102629;l<=102646;l++)P[l]=2;for(l=102648;l<=102700;l++)P[l]=2;for(l=102701;l<=102703;l++)P[l]=0;for(l=102707;l<=102730;l++)P[l]=2;for(l=102733;l<=102758;l++)P[l]=2;for(l=102767;l<=102900;l++)P[l]=0;for(l=102901;l<=102933;l++)P[l]=2;for(l=102934;l<=102950;l++)P[l]=13;for(l=102951;l<=102963;l++)P[l]=0;for(l=102965;l<=102969;l++)P[l]=0;for(l=102971;l<=102973;l++)P[l]=0;for(l=102975;l<=102989;l++)P[l]=0;for(l=102990;l<=102992;l++)P[l]=1;for(l=102997;l<=103002;l++)P[l]=0;for(l=103003;l<=103008;l++)P[l]=2;for(l=103009;l<=103011;l++)P[l]=0;for(l=103012;l<=103014;l++)P[l]=2;for(l=103019;l<=103021;l++)P[l]=0;for(l=103022;l<=103024;l++)P[l]=2;for(l=103029;l<=103031;l++)P[l]=0;for(l=103032;l<=103034;l++)P[l]=2;for(l=103065;l<=103068;l++)P[l]=0;for(l=103074;l<=103076;l++)P[l]=0;for(l=103077;l<=103079;l++)P[l]=1;for(l=103080;l<=103082;l++)P[l]=0;for(l=103083;l<=103085;l++)P[l]=2;for(l=103090;l<=103093;l++)P[l]=0;for(l=103097;l<=103099;l++)P[l]=0;for(l=103100;l<=103102;l++)P[l]=2;for(l=103107;l<=103109;l++)P[l]=0;for(l=103110;l<=103112;l++)P[l]=2;for(l=103113;l<=103116;l++)P[l]=0;for(l=103117;l<=103120;l++)P[l]=2;for(l=103153;l<=103157;l++)P[l]=0;for(l=103158;l<=103162;l++)P[l]=2;for(l=103163;l<=103165;l++)P[l]=0;for(l=103166;l<=103168;l++)P[l]=1;for(l=103169;l<=103171;l++)P[l]=2;for(l=103186;l<=103188;l++)P[l]=0;for(l=103189;l<=103191;l++)P[l]=2;for(l=103192;l<=103195;l++)P[l]=0;for(l=103196;l<=103199;l++)P[l]=2;for(l=103200;l<=103224;l++)P[l]=0;for(l=103225;l<=103227;l++)P[l]=1;for(l=103232;l<=103237;l++)P[l]=0;for(l=103238;l<=103243;l++)P[l]=2;for(l=103244;l<=103246;l++)P[l]=0;for(l=103247;l<=103249;l++)P[l]=2;for(l=103254;l<=103256;l++)P[l]=0;for(l=103257;l<=103259;l++)P[l]=2;for(l=103264;l<=103266;l++)P[l]=0;for(l=103267;l<=103269;l++)P[l]=2;for(l=103300;l<=103375;l++)P[l]=0;for(l=103381;l<=103383;l++)P[l]=0;for(l=103384;l<=103386;l++)P[l]=1;for(l=103387;l<=103389;l++)P[l]=0;for(l=103390;l<=103392;l++)P[l]=2;for(l=103397;l<=103399;l++)P[l]=0;for(l=103400;l<=103471;l++)P[l]=2;for(l=103476;l<=103478;l++)P[l]=0;for(l=103479;l<=103481;l++)P[l]=2;for(l=103486;l<=103488;l++)P[l]=0;for(l=103489;l<=103491;l++)P[l]=2;for(l=103492;l<=103495;l++)P[l]=0;for(l=103496;l<=103499;l++)P[l]=2;for(l=103528;l<=103543;l++)P[l]=0;for(l=103544;l<=103548;l++)P[l]=2;for(l=103549;l<=103551;l++)P[l]=0;for(l=103552;l<=103554;l++)P[l]=1;for(l=103555;l<=103557;l++)P[l]=2;for(l=103558;l<=103560;l++)P[l]=0;for(l=103571;l<=103573;l++)P[l]=0;for(l=103574;l<=103576;l++)P[l]=2;for(l=103577;l<=103580;l++)P[l]=0;for(l=103581;l<=103583;l++)P[l]=2;for(l=103595;l<=103694;l++)P[l]=0;for(l=103696;l<=103699;l++)P[l]=0;for(l=103700;l<=103793;l++)P[l]=2;for(l=103794;l<=103890;l++)P[l]=0;for(l=103891;l<=103896;l++)P[l]=2;for(l=103900;l<=103971;l++)P[l]=2;for(l=103972;l<=103977;l++)P[l]=0;for(l=112e3;l<=112101;l++)P[l]=0});function su(t,e){if(t===e)return!0;if(t==null||e==null)return!1;let r=t.wkid,n=e.wkid;if(r!=null||n!=null){if(r===n||$s(t)&&$s(e))return!0;let s=t.latestWkid;if(s!=null&&n===s)return!0;let c=e.latestWkid;return c!=null&&r===c}let i,o;return t.wkt2&&e.wkt2?(i=t.wkt2,o=e.wkt2):t.wkt&&e.wkt&&(i=t.wkt,o=e.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function xp(t){let e=t?.wkid;return e!=null&&e>=2e3&&CR[e]||null}function kg(t){if(!PR(t))return!1;let{wkid:e}=t;if(e)return P[e]==null;let r=t.wkt2||t.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Og(t){return t?.wkid===4326}function $s(t){let e=t?.wkid;return e!=null&&e>=2e3&&ER.includes(e)}function sE(t){return t===_p.GCSMARS2000||t===_p.GCSMARS2000_SPHERE}function aE(t){return t===_p.GCSMOON2000}function TR(t){let e=t?.wkid;return e!=null&&e>=2e3&&rJ.includes(e)}function PR(t){if(t==null)return!1;let e=t.wkid;return e!=null&&e>=2e3||t.wkt2!=null||t.wkt!=null}var ER,tJ,rJ,Sp,oE,iE,CR,cE,lE,MR,pc=N(()=>{xa();SR();xR();nE();ER=[102100,102113,3857,3785,900913],tJ=[104905,104971],rJ=[4326,...ER,...tJ],Sp=[-20037508342788905e-9,20037508342788905e-9],oE=[-20037508342787e-6,20037508342787e-6],iE={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:Sp,origin:oE,dx:1e-5},CR={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sp,origin:oE,dx:1e-5},102100:iE,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sp,origin:oE,dx:1e-5},3857:iE,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:iE};cE={wkid:4326,wkt:Fo(CR[4326].wkTemplate,{Central_Meridian:"0.0"})},lE={wkid:102100,latestWkid:3857},MR={wkid:32662}});function uE(t){return{wkt:`GEOCCS["Spherical geocentric",
|
|
14
14
|
DATUM["Not specified",
|
|
15
15
|
SPHEROID["Sphere",${t.radius},0]],
|
|
@@ -41,7 +41,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
41
41
|
at `+s}return e},pu.buildMessage=function(t,e){var r={literal:function(d){return'"'+i(d.text)+'"'},class:function(d){var h=d.parts.map(function(g){return Array.isArray(g)?o(g[0])+"-"+o(g[1]):o(g)});return"["+(d.inverted?"^":"")+h.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function n(d){return d.charCodeAt(0).toString(16).toUpperCase()}function i(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function s(d){return r[d.type](d)}function c(d){var h,g,v=d.map(s);if(v.sort(),v.length>0){for(h=1,g=1;h<v.length;h++)v[h-1]!==v[h]&&(v[g]=v[h],g++);v.length=g}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function a(d){return d?'"'+i(d)+'"':"end of input"}return"Expected "+c(t)+" but "+a(e)+" found."};Jb=class{static parse(e){return JK(e)}}});function kt(t,...e){return`this.${t}(${e.join(", ")})`}function Nr(t){return t===void 0?"void 0":JSON.stringify(t)}function QK({type:t,start:e,end:r}){return`{type: ${Nr(t)}, start: ${AE(e)}, end: ${AE(r)}}`}function AE({type:t,period:e,precision:r,secondary:n}){return JSON.stringify({type:t,period:e,precision:r,secondary:n})}function eQ({type:t,size:e,withtimezone:r}){return JSON.stringify({type:t,size:e,withtimezone:r})}function $D(t){return t===!0}function LE(t){return Array.isArray(t)?t:[t]}function Kb(t){return t!==null?t!==!0:null}function UD(t,e){return t!=null&&e!=null?t===!0&&e===!0:t!==!1&&e!==!1&&null}function VD(t,e){return t!=null&&e!=null?t===!0||e===!0:t===!0||e===!0||null}function kE(t,e){if(t==null)return null;let r=!1;for(let n of e)if(n==null)r=null;else{if(t===n){r=!0;break}if(Xb(t)&&Xb(n)&&(r=Un(t,n,"="),r))break}return r}function zD(t){return Pp(new Date,t)}function WD(t){return qr.fromNow(t)}function BD(t){let e=Pp(new Date,t);return Or.fromDateTime(e)}function tQ(t,e){let r=e,n="",i=mu.Normal;for(let o=0;o<t.length;o++){let s=t.charAt(o);switch(i){case mu.Normal:s===r?i=mu.Escaped:FD.includes(s)?n+="\\"+s:n+=s==="%"?".*":s==="_"?".":s;break;case mu.Escaped:FD.includes(s)?n+="\\"+s:n+=s,i=mu.Normal}}return new RegExp("^"+n+"$","m")}function OE(t,e,r){return t==null?null:tQ(e,r).test(t)}function rQ(t){return t&&typeof t.attributes=="object"}function GD(t,e,r,n){if("getAttributeSQL"in n)return n.getAttributeSQL(t,e);let i=n.getAttribute(t,e);if(i==null)return i;let o=r?.get(e);switch(o?.type){case"esriFieldTypeDate":case"date":return Pp(new Date(i),r?.getLuxonTimeZone(o.name)??xt.utcInstance);case"esriFieldTypeDateOnly":case"date-only":return qr.fromReader(i);case"esriFieldTypeTimeOnly":case"time-only":return Or.fromReader(i);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return new on(i)}return i}var KK,ME,kD,OD,ND,RD,Ap,DD,IE,Qb,FD,mu,Gg,jD=N(()=>{St();bD();ih();Da();ID();SE();zg();qb();oh();EE();Vg();LD();fu();In();KK=new Set(["current_timestamp","current_date","current_time"]),ME=class{constructor(e){this.staticData=e}makeBool(e){return $D(e)}featureValue(e,r,n,i){return GD(e,r,n,i)}equalsNull(e){return e===null}applyLike(e,r,n){return OE(e,r,n)}ensureArray(e){return LE(e)}applyIn(e,r){return kE(e,r)}currentTimestamp(e){return zD(e)}currentDate(e){return WD(e)}currentTime(e){return BD(e)}makeSqlInterval(e,r,n){return ur.createFromValueAndQualifier(e,r,n)}convertInterval(e){return ur.isInterval(e)?e.valueInMilliseconds():e}compare(e,r,n){return Un(r,n,e)}calculate(e,r,n,i){return CE(e,r,n,i)}evaluateTime(e){return Mp(e)}evaluateTimestamp(e,r,n){return du(e,r,n)}evaluateDate(e,r){return Hb(e,r)}evaluateFunction(e,r,n){return Bg(e,r,n)}lookup(e,r){let n=r[e];return n===void 0?null:n}between(e,r){return e==null||r[0]==null||r[1]==null?null:Un(e,r[0],">=")&&Un(e,r[1],"<=")}notbetween(e,r){return e==null||r[0]==null||r[1]==null?null:Un(e,r[0],"<")||Un(e,r[1],">")}ternaryNot(e){return Kb(e)}ternaryAnd(e,r){return UD(e,r)}ternaryOr(e,r){return VD(e,r)}};kD="feature",OD="lookups",ND="attributeAdapter",RD="fieldsIndex",Ap="timeZone",DD="currentUser",IE=class{constructor(e){this._parseTree=e,this._staticData=Object.create(null),this._nextStaticDataId=0,this._tempVars=new Set,this._nextTempVarId=0}compile(){let e=this._compileNode(this._parseTree),r=`
|
|
42
42
|
${this._tempVars.size>0?`var ${Array.from(this._tempVars).join(", ")};`:""}
|
|
43
43
|
return this.convertInterval(${e});
|
|
44
|
-
`;return new Function(kD,OD,ND,RD,Ap,DD,r).bind(new ME(this._staticData))}_storeStaticData(e){let r="static$"+this._nextStaticDataId++;return this._staticData[r]=e,r}_compileRefStaticData(e){return`this.staticData[${Nr(e)}]`}_generateTempVar(){let e="temp$"+this._nextTempVarId++;return this._tempVars.add(e),e}_compileSimpleCase(e){let r=this._compileNode(e.operand),n=this._generateTempVar(),i=[];for(let o of e.clauses){let s=kt("compare",Nr("="),n,this._compileNode(o.operand)),c=this._compileNode(o.value);i.push(`${s} ? (${c}) :`)}return e.else!=null?i.push(this._compileNode(e.else)):i.push(Nr(null)),`(${n} = ${r}, ${i.join(" ")})`}_compileSearchedCase(e){let r=[];for(let n of e.clauses){let i=kt("makeBool",this._compileNode(n.operand)),o=this._compileNode(n.value);r.push(`${i} ? (${o}) :`)}return e.else!=null?r.push(this._compileNode(e.else)):r.push(Nr(null)),r.join(" ")}_compileInExpr(e,r){let n=new Set,i=[];for(let c of r.value)c.type==="number"||c.type==="string"?n.add(c.value):i.push(c);let o=this._compileNode(e),s=kt("ensureArray",this._compileNode({type:"expression-list",location:r.location,value:i}));if(n.size>0){let c=this._compileRefStaticData(this._storeStaticData(n)),a=this._generateTempVar();return i.length>0?`(${a} = ${o}, ${c}.has(${a}) || ${kt("applyIn",a,s)})`:`(${a} = ${o}, ${a} == null ? null : ${c}.has(${a}))`}return kt("applyIn",o,s)}_compileNode(e){switch(e.type){case"interval":return kt("makeSqlInterval",this._compileNode(e.value),e.qualifier.type==="interval-qualifier"?QK(e.qualifier):AE(e.qualifier),Nr(e.op));case"case-expression":return e.format==="simple"?this._compileSimpleCase(e):this._compileSearchedCase(e);case"parameter":return kt("lookup",Nr(e.value.toLowerCase()),OD);case"expression-list":return`[${e.value.map(r=>this._compileNode(r)).join(", ")}]`;case"unary-expression":return kt("ternaryNot",this._compileNode(e.expr));case"binary-expression":switch(e.operator){case"AND":return kt("ternaryAnd",this._compileNode(e.left),this._compileNode(e.right));case"OR":return kt("ternaryOr",this._compileNode(e.left),this._compileNode(e.right));case"IS":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return kt("equalsNull",this._compileNode(e.left));case"ISNOT":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return`!${kt("equalsNull",this._compileNode(e.left))}`;case"IN":return this._compileInExpr(e.left,e.right);case"NOT IN":return kt("ternaryNot",this._compileInExpr(e.left,e.right));case"BETWEEN":return kt("between",this._compileNode(e.left),this._compileNode(e.right));case"NOTBETWEEN":return kt("notbetween",this._compileNode(e.left),this._compileNode(e.right));case"LIKE":return kt("applyLike",this._compileNode(e.left),this._compileNode(e.right),Nr(e.escape));case"NOT LIKE":return kt("ternaryNot",kt("applyLike",this._compileNode(e.left),this._compileNode(e.right),Nr(e.escape)));case"<>":case"<":case">":case">=":case"<=":case"=":return kt("compare",Nr(e.operator),this._compileNode(e.left),this._compileNode(e.right));case"*":case"-":case"+":case"/":case"||":return kt("calculate",Nr(e.operator),this._compileNode(e.left),this._compileNode(e.right),Ap);default:throw new ne(J.UnsupportedOperator,{operator:e.operator})}case"null":case"boolean":case"string":case"number":return Nr(e.value);case"time":try{return this._compileRefStaticData(this._storeStaticData(Mp(e.value)))}catch{return kt("evaluateTime",Nr(e.value))}case"date":try{return this._compileRefStaticData(this._storeStaticData(Hb(e.value,"unknown")))}catch{return kt("evaluateDate",Nr(e.value),Nr("unknown"))}case"timestamp":try{return this._compileRefStaticData(this._storeStaticData(du(e.value,"unknown")))}catch{return kt("evaluateTimestamp",Nr(e.value),Nr("unknown"))}case"current-time":return e.mode==="date"?kt("currentDate",Ap):e.mode==="time"?kt("currentTime",Ap):kt("currentTimestamp",Ap);case"current-user":return DD;case"column-reference":return kt("featureValue",kD,Nr(e.column),RD,ND);case"data-type":return eQ(e.value);case"function":return kt("evaluateFunction",Nr(e.name),this._compileNode(e.args),Ap)}throw new ne(J.UnsupportedSyntax,{node:e.type})}},Qb=class t{static create(e,r={}){return new t(e,r.fieldsIndex,r.timeZone??void 0,r.currentUser)}constructor(e,r,n="UTC",i=null){this.fieldsIndex=r,this.timeZone=n,this.currentUser=i,this.parameters={},this._compiledExecutor=null,this._hasDateFunctions=void 0,this.parseTree=Jb.parse(e);let{isStandardized:o,isAggregate:s,currentUserRequired:c,referencedFieldNames:a}=this._extractExpressionInfo(r);this._referencedFieldNames=a,this.isStandardized=o,this.isAggregate=s,this.currentUserRequired=c}static convertValueToStorageFormat(e,r=null){if(r===null)return Xn(e)?e.getTime():Pt(e)?e.toMillis():At(e)?e.toStorageFormat():Dt(e)?e.toStorageString():Mt(e)?e.toStorageFormat():e;switch(r){case"date":return Xn(e)?e.getTime():Pt(e)?e.toMillis():At(e)?e.toMilliseconds():Mt(e)?e.toNumber():e;case"date-only":return Xn(e)?qr.fromDateJS(e).toString():At(e)?qr.fromSqlTimeStampOffset(e).toString():Pt(e)?qr.fromDateTime(e).toString():e;case"time-only":return Xn(e)?Or.fromDateJS(e).toStorageString():Pt(e)?Or.fromDateTime(e).toStorageString():At(e)?Or.fromSqlTimeStampOffset(e).toStorageString():Dt(e)?e.toStorageString():e;case"timestamp-offset":if(Xn(e))return on.fromJSDate(e).toStorageFormat();if(Pt(e))return on.fromDateTime(e).toStorageFormat();if(At(e))return e.toStorageFormat()}return e}get fieldNames(){return this._referencedFieldNames}testSet(e,r=Gg,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,r,e,n)}calculateValue(e,r=Gg,n=this.currentUser){let i=this._evaluateNode(this.parseTree,e,r,null,n);return ur.isInterval(i)?i.valueInMilliseconds()/864e5:i}tryGetCompiledExecutor(){if(this._compiledExecutor!=null)return this._compiledExecutor;if(fe("esri-csp-restrictions"))return null;let e=new IE(this.parseTree);return this._compiledExecutor=e.compile(),this._compiledExecutor}calculateValueCompiled(e,r=Gg,n=this.currentUser){let i=this.tryGetCompiledExecutor();return i==null?this.calculateValue(e,r):i(e,this.parameters,r,this.fieldsIndex,this.timeZone,n??null)}testFeature(e,r=Gg,n=this.currentUser){return!!this._evaluateNode(this.parseTree,e,r,null,n)}testFeatureCompiled(e,r=Gg,n=this.currentUser){let i=this.tryGetCompiledExecutor();return i==null?this.testFeature(e,r):!!i(e,this.parameters,r,this.fieldsIndex,this.timeZone,n??null)}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,Er(this.parseTree,e=>{e.type==="current-time"?this._hasDateFunctions=!0:e.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||KK.has(e.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let e=new Set;return Er(this.parseTree,r=>{r.type==="function"&&e.add(r.name.toLowerCase())}),Array.from(e)}getExpressions(){let e=new Map;return Er(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;e.has(s)||e.set(s,{aggregateType:n,field:o})}}}),[...e.values()]}getVariables(){let e=new Set;return Er(this.parseTree,r=>{r.type==="parameter"&&e.add(r.value.toLowerCase())}),Array.from(e)}_extractExpressionInfo(e){let r=[],n=new Set,i=!0,o=!1,s=!1;return Er(this.parseTree,c=>{switch(c.type){case"column-reference":{let a=e?.get(c.column),d,h;a?d=h=a.name??"":(h=c.column,d=h.toLowerCase()),n.has(d)||(n.add(d),r.push(h)),c.column=h;break}case"current-user":s=!0;break;case"function":{let{name:a,args:d}=c,h=d.value.length;i&&(i=PD(a,h)),o===!1&&(o=wE(a,h));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o,currentUserRequired:s}}_evaluateNode(e,r,n,i,o){let s;switch(e.type){case"interval":{let c=this._evaluateNode(e.value,r,n,i,o);return ur.createFromValueAndQualifier(c,e.qualifier,e.op)}case"case-expression":if(e.format==="simple"){let c=this._evaluateNode(e.operand,r,n,i,o);for(let a=0;a<e.clauses.length;a++)if(Un(c,this._evaluateNode(e.clauses[a].operand,r,n,i,o),"="))return this._evaluateNode(e.clauses[a].value,r,n,i,o);if(e.else!==null)return this._evaluateNode(e.else,r,n,i,o)}else{for(let c=0;c<e.clauses.length;c++)if($D(this._evaluateNode(e.clauses[c].operand,r,n,i,o)))return this._evaluateNode(e.clauses[c].value,r,n,i,o);if(e.else!==null)return this._evaluateNode(e.else,r,n,i,o)}return null;case"parameter":return s=this.parameters[e.value.toLowerCase()],Xn(s)?Te.fromJSDate(s):s!=null&&typeof s=="object"&&"toDateTime"in s?s.toDateTime():s;case"expression-list":{let c=[];for(let a of e.value)c.push(this._evaluateNode(a,r,n,i,o));return c}case"unary-expression":return Kb(this._evaluateNode(e.expr,r,n,i,o));case"binary-expression":switch(e.operator){case"AND":return UD(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o));case"OR":return VD(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o));case"IS":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return this._evaluateNode(e.left,r,n,i,o)===null;case"ISNOT":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return this._evaluateNode(e.left,r,n,i,o)!==null;case"IN":{let c=LE(this._evaluateNode(e.right,r,n,i,o));return kE(this._evaluateNode(e.left,r,n,i,o),c)}case"NOT IN":{let c=LE(this._evaluateNode(e.right,r,n,i,o));return Kb(kE(this._evaluateNode(e.left,r,n,i,o),c))}case"BETWEEN":{let c=this._evaluateNode(e.left,r,n,i,o),a=this._evaluateNode(e.right,r,n,i,o);return c==null||a[0]==null||a[1]==null?null:Un(c,a[0],">=")&&Un(c,a[1],"<=")}case"NOTBETWEEN":{let c=this._evaluateNode(e.left,r,n,i,o),a=this._evaluateNode(e.right,r,n,i,o);return c==null||a[0]==null||a[1]==null?null:Un(c,a[0],"<")||Un(c,a[1],">")}case"LIKE":return OE(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.escape);case"NOT LIKE":return Kb(OE(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return Un(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.operator);case"-":case"+":case"*":case"/":case"||":return CE(e.operator,this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),this.timeZone)}case"null":case"boolean":case"string":case"number":return e.value;case"date":return e.parsedValue??=Hb(e.value,"unknown"),e.parsedValue;case"timestamp":return e.parsedValue??=du(e.value,"unknown"),e.parsedValue;case"time":return Mp(e.value);case"current-time":return e.mode==="date"?WD(this.timeZone):e.mode==="time"?BD(this.timeZone):zD(this.timeZone);case"current-user":return o??null;case"column-reference":return GD(r,e.column,this.fieldsIndex,n);case"data-type":return e.value;case"function":{if(this.isAggregate&&wE(e.name,e.args.value.length)){let a=[];for(let d of e.args?.value||[]){let h=[];for(let g of i||[])h.push(this._evaluateNode(d,g,n,null,o));a.push(h)}return hD(e.name,a)}let c=this._evaluateNode(e.args,r,n,i,o);return Bg(e.name,c,this.timeZone)}}throw new ne(J.UnsupportedSyntax,{node:e.type})}};FD="-[]/{}()*+?.\\^$|";(function(t){t[t.Normal=0]="Normal",t[t.Escaped=1]="Escaped"})(mu||(mu={}));Gg={getAttribute:(t,e)=>(rQ(t)?t.attributes:t)[e]}});var qD={};Io(qD,{WhereClauseCache:()=>NE});var NE,HD=N(()=>{C3();jD();NE=class{constructor(e,r){this._cache=new gm(e),this._invalidCache=new gm(r)}get(e,r){let n=`${r?.uid}:${e}`,i=this._cache.get(n);if(i)return i;if(this._invalidCache.get(n)!=null)return null;try{let o=Qb.create(e,{fieldsIndex:r});return this._cache.put(n,o),o}catch(o){return this._invalidCache.put(n,o),null}}getError(e,r){let n=`${r?.uid}:${e}`;return this._invalidCache.get(n)??null}}});async function nQ(){return RE==null&&(RE=Promise.resolve().then(()=>(HD(),qD)).then(t=>new t.WhereClauseCache(500,500))),RE}async function jg(t,e){let r=await nQ(),n=r.get(t,e);if(n==null)throw r.getError(t,e);return n}var RE,ev=N(()=>{});var YD=N(()=>{Il();fu();In()});var DE,iQ,oQ,xEe,ZD=N(()=>{bw();YD();(function(t){t.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",t.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(DE||(DE={}));iQ=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),oQ=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),xEe=yw(iQ,oQ)});var XD=N(()=>{});var JD=N(()=>{});function eF(t){return t==null?null:t.trim().replaceAll(aQ,"_").replace(sQ,"F$1")||null}function tF(t){let e=t.defaultValue;return e!==void 0&&dQ(t,e)?e:t.nullable?null:void 0}function rF(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}function cQ(t){return t===null||rF(t)}function lQ(t){return t===null||Number.isInteger(t)}function uQ(){return!0}function dQ(t,e){let r;switch(t.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=t.nullable?lQ:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=t.nullable?cQ:rF;break;case"string":case"esriFieldTypeString":r=t.nullable?CD:Bt;break;default:r=uQ}return arguments.length===1?r:r(e)}function oF(t){return t!=null&&gQ.has(t.type)}function sF(t){return t!=null&&(t.type==="date"||t.type==="esriFieldTypeDate")}function aF(t){return t!=null&&(t.type==="time-only"||t.type==="esriFieldTypeTimeOnly")}function FE(t){return t!=null&&(t.type==="oid"||t.type==="esriFieldTypeOID")}function $E(t){return t!=null&&(t.type==="global-id"||t.type==="esriFieldTypeGlobalID")}var sQ,aQ,nF,iF,$Ee,fQ,pQ,mQ,hQ,gQ,KD,QD,UEe,VEe,cF=N(()=>{Ln();Do();bw();ev();ZD();XD();fu();JD();sQ=/^([0-9_])/,aQ=/[^a-z0-9_\u0080-\uffff]+/gi;nF=["integer","small-integer","big-integer"],iF=["single","double"],$Ee=[...nF,...iF],fQ=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"],pQ=["esriFieldTypeSingle","esriFieldTypeDouble"],mQ=new Set([...nF,...fQ]),hQ=new Set([...iF,...pQ]),gQ=yw(mQ,hQ);(function(t){t.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(KD||(KD={})),function(t){t.INVALID_TYPE="type-validation-error::invalid-type"}(QD||(QD={}));UEe={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},VEe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function wQ(t){return"timeZone"in t}function yQ(t){return"timeZone"in t}function bQ(t){return"dateFieldsTimeZone"in t}function hu(t){return t.trim().toLowerCase()}function lF(t){return eF(t)?.toLowerCase()??""}function uF(t){let e=new Map;if(!t.fields)return e;let r=t.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=t,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",c=bQ(t)?t.dateFieldsTimeZone??null:t.dateFieldsTimeReference?Vw(t.dateFieldsTimeReference):null,a=i?wQ(i)?i.timeZone??c:i.dateFieldsTimeReference?Vw(i.dateFieldsTimeReference):c??Dl:null,d=n?yQ(n)?n.timeZone??c:n.timeReference?Vw(n.timeReference):c:null,h=new Map([[hu(i?.creationDateField??""),a],[hu(i?.editDateField??""),a],[hu(o),d],[hu(s),d]]);for(let{name:g,type:v}of t.fields)if(dF.has(v))e.set(g,Ya);else if(v!=="date"&&v!=="esriFieldTypeDate")e.set(g,null);else if(r)e.set(g,Ya);else{let E=h.get(hu(g??""))??c;e.set(g,E)}return e}var vQ,Ip,dF,UE=N(()=>{Ln();Ol();Vt();z0();th();cF();Uw();px();In();vQ=new Map,Ip=class t{static fromJSON(e){return new t(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new t(e.fields??[],uF(e))}static fromLayerJSON(e){return new t(e.fields??[],uF(e))}constructor(e=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=lF(o);if(o&&s){let c=hu(o);this._fieldsMap.set(o,i),this._fieldsMap.set(c,i),this._normalizedFieldsMap.set(s,i),n.push(`${c}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),sF(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):oF(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),FE(i)||$E(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)FE(e)||$E(e)||e.nullable||tF(e)!==void 0||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return this.get(e)!=null}get(e){if(!e)return;let r=this._fieldsMap.get(e);return r||(r=this._fieldsMap.get(hu(e))??this._normalizedFieldsMap.get(lF(e)),r&&this._fieldsMap.set(e,r),r)}getTimeZone(e){let r=this.get(e&&typeof e!="string"?e.name:e);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(nt.getLogger("esri.layers.support.FieldsIndex").errorOnce(new We("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),Dl):dF.has(r.type)?Ya:null:null}getLuxonTimeZone(e){let r=this.getTimeZone(e);return r?r===Ya?jr.instance:r===Dl?xt.utcInstance:_f(vQ,r,()=>ar.create(r)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return aF(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>ui.isSerializable(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};dF=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var xv=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Fp.isErrorNoTelemetry(e)?new Fp(e.message+`
|
|
44
|
+
`;return new Function(kD,OD,ND,RD,Ap,DD,r).bind(new ME(this._staticData))}_storeStaticData(e){let r="static$"+this._nextStaticDataId++;return this._staticData[r]=e,r}_compileRefStaticData(e){return`this.staticData[${Nr(e)}]`}_generateTempVar(){let e="temp$"+this._nextTempVarId++;return this._tempVars.add(e),e}_compileSimpleCase(e){let r=this._compileNode(e.operand),n=this._generateTempVar(),i=[];for(let o of e.clauses){let s=kt("compare",Nr("="),n,this._compileNode(o.operand)),c=this._compileNode(o.value);i.push(`${s} ? (${c}) :`)}return e.else!=null?i.push(this._compileNode(e.else)):i.push(Nr(null)),`(${n} = ${r}, ${i.join(" ")})`}_compileSearchedCase(e){let r=[];for(let n of e.clauses){let i=kt("makeBool",this._compileNode(n.operand)),o=this._compileNode(n.value);r.push(`${i} ? (${o}) :`)}return e.else!=null?r.push(this._compileNode(e.else)):r.push(Nr(null)),r.join(" ")}_compileInExpr(e,r){let n=new Set,i=[];for(let c of r.value)c.type==="number"||c.type==="string"?n.add(c.value):i.push(c);let o=this._compileNode(e),s=kt("ensureArray",this._compileNode({type:"expression-list",location:r.location,value:i}));if(n.size>0){let c=this._compileRefStaticData(this._storeStaticData(n)),a=this._generateTempVar();return i.length>0?`(${a} = ${o}, ${c}.has(${a}) || ${kt("applyIn",a,s)})`:`(${a} = ${o}, ${a} == null ? null : ${c}.has(${a}))`}return kt("applyIn",o,s)}_compileNode(e){switch(e.type){case"interval":return kt("makeSqlInterval",this._compileNode(e.value),e.qualifier.type==="interval-qualifier"?QK(e.qualifier):AE(e.qualifier),Nr(e.op));case"case-expression":return e.format==="simple"?this._compileSimpleCase(e):this._compileSearchedCase(e);case"parameter":return kt("lookup",Nr(e.value.toLowerCase()),OD);case"expression-list":return`[${e.value.map(r=>this._compileNode(r)).join(", ")}]`;case"unary-expression":return kt("ternaryNot",this._compileNode(e.expr));case"binary-expression":switch(e.operator){case"AND":return kt("ternaryAnd",this._compileNode(e.left),this._compileNode(e.right));case"OR":return kt("ternaryOr",this._compileNode(e.left),this._compileNode(e.right));case"IS":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return kt("equalsNull",this._compileNode(e.left));case"ISNOT":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return`!${kt("equalsNull",this._compileNode(e.left))}`;case"IN":return this._compileInExpr(e.left,e.right);case"NOT IN":return kt("ternaryNot",this._compileInExpr(e.left,e.right));case"BETWEEN":return kt("between",this._compileNode(e.left),this._compileNode(e.right));case"NOTBETWEEN":return kt("notbetween",this._compileNode(e.left),this._compileNode(e.right));case"LIKE":return kt("applyLike",this._compileNode(e.left),this._compileNode(e.right),Nr(e.escape));case"NOT LIKE":return kt("ternaryNot",kt("applyLike",this._compileNode(e.left),this._compileNode(e.right),Nr(e.escape)));case"<>":case"<":case">":case">=":case"<=":case"=":return kt("compare",Nr(e.operator),this._compileNode(e.left),this._compileNode(e.right));case"*":case"-":case"+":case"/":case"||":return kt("calculate",Nr(e.operator),this._compileNode(e.left),this._compileNode(e.right),Ap);default:throw new ne(J.UnsupportedOperator,{operator:e.operator})}case"null":case"boolean":case"string":case"number":return Nr(e.value);case"time":try{return this._compileRefStaticData(this._storeStaticData(Mp(e.value)))}catch{return kt("evaluateTime",Nr(e.value))}case"date":try{return this._compileRefStaticData(this._storeStaticData(Hb(e.value,"unknown")))}catch{return kt("evaluateDate",Nr(e.value),Nr("unknown"))}case"timestamp":try{return this._compileRefStaticData(this._storeStaticData(du(e.value,"unknown")))}catch{return kt("evaluateTimestamp",Nr(e.value),Nr("unknown"))}case"current-time":return e.mode==="date"?kt("currentDate",Ap):e.mode==="time"?kt("currentTime",Ap):kt("currentTimestamp",Ap);case"current-user":return DD;case"column-reference":return kt("featureValue",kD,Nr(e.column),RD,ND);case"data-type":return eQ(e.value);case"function":return kt("evaluateFunction",Nr(e.name),this._compileNode(e.args),Ap)}throw new ne(J.UnsupportedSyntax,{node:e.type})}},Qb=class t{static create(e,r={}){return new t(e,r.fieldsIndex,r.timeZone??void 0,r.currentUser)}constructor(e,r,n="UTC",i=null){this.fieldsIndex=r,this.timeZone=n,this.currentUser=i,this.parameters={},this._compiledExecutor=null,this._hasDateFunctions=void 0,this.parseTree=Jb.parse(e);let{isStandardized:o,isAggregate:s,currentUserRequired:c,referencedFieldNames:a}=this._extractExpressionInfo(r);this._referencedFieldNames=a,this.isStandardized=o,this.isAggregate=s,this.currentUserRequired=c}static convertValueToStorageFormat(e,r=null){if(r===null)return Xn(e)?e.getTime():Pt(e)?e.toMillis():At(e)?e.toStorageFormat():Dt(e)?e.toStorageString():Mt(e)?e.toStorageFormat():e;switch(r){case"date":return Xn(e)?e.getTime():Pt(e)?e.toMillis():At(e)?e.toMilliseconds():Mt(e)?e.toNumber():e;case"date-only":return Xn(e)?qr.fromDateJS(e).toString():At(e)?qr.fromSqlTimeStampOffset(e).toString():Pt(e)?qr.fromDateTime(e).toString():e;case"time-only":return Xn(e)?Or.fromDateJS(e).toStorageString():Pt(e)?Or.fromDateTime(e).toStorageString():At(e)?Or.fromSqlTimeStampOffset(e).toStorageString():Dt(e)?e.toStorageString():e;case"timestamp-offset":if(Xn(e))return on.fromJSDate(e).toStorageFormat();if(Pt(e))return on.fromDateTime(e).toStorageFormat();if(At(e))return e.toStorageFormat()}return e}get fieldNames(){return this._referencedFieldNames}testSet(e,r=Gg,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,r,e,n)}calculateValue(e,r=Gg,n=this.currentUser){let i=this._evaluateNode(this.parseTree,e,r,null,n);return ur.isInterval(i)?i.valueInMilliseconds()/864e5:i}tryGetCompiledExecutor(){if(this._compiledExecutor!=null)return this._compiledExecutor;if(fe("esri-csp-restrictions"))return null;let e=new IE(this.parseTree);return this._compiledExecutor=e.compile(),this._compiledExecutor}calculateValueCompiled(e,r=Gg,n=this.currentUser){let i=this.tryGetCompiledExecutor();return i==null?this.calculateValue(e,r):i(e,this.parameters,r,this.fieldsIndex,this.timeZone,n??null)}testFeature(e,r=Gg,n=this.currentUser){return!!this._evaluateNode(this.parseTree,e,r,null,n)}testFeatureCompiled(e,r=Gg,n=this.currentUser){let i=this.tryGetCompiledExecutor();return i==null?this.testFeature(e,r):!!i(e,this.parameters,r,this.fieldsIndex,this.timeZone,n??null)}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,Er(this.parseTree,e=>{e.type==="current-time"?this._hasDateFunctions=!0:e.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||KK.has(e.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let e=new Set;return Er(this.parseTree,r=>{r.type==="function"&&e.add(r.name.toLowerCase())}),Array.from(e)}getExpressions(){let e=new Map;return Er(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;e.has(s)||e.set(s,{aggregateType:n,field:o})}}}),[...e.values()]}getVariables(){let e=new Set;return Er(this.parseTree,r=>{r.type==="parameter"&&e.add(r.value.toLowerCase())}),Array.from(e)}_extractExpressionInfo(e){let r=[],n=new Set,i=!0,o=!1,s=!1;return Er(this.parseTree,c=>{switch(c.type){case"column-reference":{let a=e?.get(c.column),d,h;a?d=h=a.name??"":(h=c.column,d=h.toLowerCase()),n.has(d)||(n.add(d),r.push(h)),c.column=h;break}case"current-user":s=!0;break;case"function":{let{name:a,args:d}=c,h=d.value.length;i&&(i=PD(a,h)),o===!1&&(o=wE(a,h));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o,currentUserRequired:s}}_evaluateNode(e,r,n,i,o){let s;switch(e.type){case"interval":{let c=this._evaluateNode(e.value,r,n,i,o);return ur.createFromValueAndQualifier(c,e.qualifier,e.op)}case"case-expression":if(e.format==="simple"){let c=this._evaluateNode(e.operand,r,n,i,o);for(let a=0;a<e.clauses.length;a++)if(Un(c,this._evaluateNode(e.clauses[a].operand,r,n,i,o),"="))return this._evaluateNode(e.clauses[a].value,r,n,i,o);if(e.else!==null)return this._evaluateNode(e.else,r,n,i,o)}else{for(let c=0;c<e.clauses.length;c++)if($D(this._evaluateNode(e.clauses[c].operand,r,n,i,o)))return this._evaluateNode(e.clauses[c].value,r,n,i,o);if(e.else!==null)return this._evaluateNode(e.else,r,n,i,o)}return null;case"parameter":return s=this.parameters[e.value.toLowerCase()],Xn(s)?Te.fromJSDate(s):s!=null&&typeof s=="object"&&"toDateTime"in s?s.toDateTime():s;case"expression-list":{let c=[];for(let a of e.value)c.push(this._evaluateNode(a,r,n,i,o));return c}case"unary-expression":return Kb(this._evaluateNode(e.expr,r,n,i,o));case"binary-expression":switch(e.operator){case"AND":return UD(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o));case"OR":return VD(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o));case"IS":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return this._evaluateNode(e.left,r,n,i,o)===null;case"ISNOT":if(e.right.type!=="null")throw new ne(J.UnsupportedIsRhs);return this._evaluateNode(e.left,r,n,i,o)!==null;case"IN":{let c=LE(this._evaluateNode(e.right,r,n,i,o));return kE(this._evaluateNode(e.left,r,n,i,o),c)}case"NOT IN":{let c=LE(this._evaluateNode(e.right,r,n,i,o));return Kb(kE(this._evaluateNode(e.left,r,n,i,o),c))}case"BETWEEN":{let c=this._evaluateNode(e.left,r,n,i,o),a=this._evaluateNode(e.right,r,n,i,o);return c==null||a[0]==null||a[1]==null?null:Un(c,a[0],">=")&&Un(c,a[1],"<=")}case"NOTBETWEEN":{let c=this._evaluateNode(e.left,r,n,i,o),a=this._evaluateNode(e.right,r,n,i,o);return c==null||a[0]==null||a[1]==null?null:Un(c,a[0],"<")||Un(c,a[1],">")}case"LIKE":return OE(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.escape);case"NOT LIKE":return Kb(OE(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return Un(this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),e.operator);case"-":case"+":case"*":case"/":case"||":return CE(e.operator,this._evaluateNode(e.left,r,n,i,o),this._evaluateNode(e.right,r,n,i,o),this.timeZone)}case"null":case"boolean":case"string":case"number":return e.value;case"date":return e.parsedValue??=Hb(e.value,"unknown"),e.parsedValue;case"timestamp":return e.parsedValue??=du(e.value,"unknown"),e.parsedValue;case"time":return Mp(e.value);case"current-time":return e.mode==="date"?WD(this.timeZone):e.mode==="time"?BD(this.timeZone):zD(this.timeZone);case"current-user":return o??null;case"column-reference":return GD(r,e.column,this.fieldsIndex,n);case"data-type":return e.value;case"function":{if(this.isAggregate&&wE(e.name,e.args.value.length)){let a=[];for(let d of e.args?.value||[]){let h=[];for(let g of i||[])h.push(this._evaluateNode(d,g,n,null,o));a.push(h)}return hD(e.name,a)}let c=this._evaluateNode(e.args,r,n,i,o);return Bg(e.name,c,this.timeZone)}}throw new ne(J.UnsupportedSyntax,{node:e.type})}};FD="-[]/{}()*+?.\\^$|";(function(t){t[t.Normal=0]="Normal",t[t.Escaped=1]="Escaped"})(mu||(mu={}));Gg={getAttribute:(t,e)=>(rQ(t)?t.attributes:t)[e]}});var qD={};Io(qD,{WhereClauseCache:()=>NE});var NE,HD=N(()=>{C3();jD();NE=class{constructor(e,r){this._cache=new gm(e),this._invalidCache=new gm(r)}get(e,r){let n=`${r?.uid}:${e}`,i=this._cache.get(n);if(i)return i;if(this._invalidCache.get(n)!=null)return null;try{let o=Qb.create(e,{fieldsIndex:r});return this._cache.put(n,o),o}catch(o){return this._invalidCache.put(n,o),null}}getError(e,r){let n=`${r?.uid}:${e}`;return this._invalidCache.get(n)??null}}});async function nQ(){return RE==null&&(RE=Promise.resolve().then(()=>(HD(),qD)).then(t=>new t.WhereClauseCache(500,500))),RE}async function jg(t,e){let r=await nQ(),n=r.get(t,e);if(n==null)throw r.getError(t,e);return n}var RE,ev=N(()=>{});var YD=N(()=>{Il();fu();In()});var DE,iQ,oQ,xEe,ZD=N(()=>{bw();YD();(function(t){t.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",t.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(DE||(DE={}));iQ=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),oQ=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),xEe=yw(iQ,oQ)});var XD=N(()=>{});var JD=N(()=>{});function eF(t){return t==null?null:t.trim().replaceAll(aQ,"_").replace(sQ,"F$1")||null}function tF(t){let e=t.defaultValue;return e!==void 0&&dQ(t,e)?e:t.nullable?null:void 0}function rF(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}function cQ(t){return t===null||rF(t)}function lQ(t){return t===null||Number.isInteger(t)}function uQ(){return!0}function dQ(t,e){let r;switch(t.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=t.nullable?lQ:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=t.nullable?cQ:rF;break;case"string":case"esriFieldTypeString":r=t.nullable?CD:Bt;break;default:r=uQ}return arguments.length===1?r:r(e)}function oF(t){return t!=null&&gQ.has(t.type)}function sF(t){return t!=null&&(t.type==="date"||t.type==="esriFieldTypeDate")}function aF(t){return t!=null&&(t.type==="time-only"||t.type==="esriFieldTypeTimeOnly")}function FE(t){return t!=null&&(t.type==="oid"||t.type==="esriFieldTypeOID")}function $E(t){return t!=null&&(t.type==="global-id"||t.type==="esriFieldTypeGlobalID")}var sQ,aQ,nF,iF,$Ee,fQ,pQ,mQ,hQ,gQ,KD,QD,UEe,VEe,cF=N(()=>{Ln();Do();bw();ev();ZD();XD();fu();JD();sQ=/^([0-9_])/,aQ=/[^a-z0-9_\u0080-\uffff]+/gi;nF=["integer","small-integer","big-integer","long"],iF=["single","double"],$Ee=[...nF,...iF],fQ=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"],pQ=["esriFieldTypeSingle","esriFieldTypeDouble"],mQ=new Set([...nF,...fQ]),hQ=new Set([...iF,...pQ]),gQ=yw(mQ,hQ);(function(t){t.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(KD||(KD={})),function(t){t.INVALID_TYPE="type-validation-error::invalid-type"}(QD||(QD={}));UEe={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},VEe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function wQ(t){return"timeZone"in t}function yQ(t){return"timeZone"in t}function bQ(t){return"dateFieldsTimeZone"in t}function hu(t){return t.trim().toLowerCase()}function lF(t){return eF(t)?.toLowerCase()??""}function uF(t){let e=new Map;if(!t.fields)return e;let r=t.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=t,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",c=bQ(t)?t.dateFieldsTimeZone??null:t.dateFieldsTimeReference?Vw(t.dateFieldsTimeReference):null,a=i?wQ(i)?i.timeZone??c:i.dateFieldsTimeReference?Vw(i.dateFieldsTimeReference):c??Dl:null,d=n?yQ(n)?n.timeZone??c:n.timeReference?Vw(n.timeReference):c:null,h=new Map([[hu(i?.creationDateField??""),a],[hu(i?.editDateField??""),a],[hu(o),d],[hu(s),d]]);for(let{name:g,type:v}of t.fields)if(dF.has(v))e.set(g,Ya);else if(v!=="date"&&v!=="esriFieldTypeDate")e.set(g,null);else if(r)e.set(g,Ya);else{let E=h.get(hu(g??""))??c;e.set(g,E)}return e}var vQ,Ip,dF,UE=N(()=>{Ln();Ol();Vt();z0();th();cF();Uw();px();In();vQ=new Map,Ip=class t{static fromJSON(e){return new t(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new t(e.fields??[],uF(e))}static fromLayerJSON(e){return new t(e.fields??[],uF(e))}constructor(e=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=lF(o);if(o&&s){let c=hu(o);this._fieldsMap.set(o,i),this._fieldsMap.set(c,i),this._normalizedFieldsMap.set(s,i),n.push(`${c}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),sF(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):oF(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),FE(i)||$E(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)FE(e)||$E(e)||e.nullable||tF(e)!==void 0||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return this.get(e)!=null}get(e){if(!e)return;let r=this._fieldsMap.get(e);return r||(r=this._fieldsMap.get(hu(e))??this._normalizedFieldsMap.get(lF(e)),r&&this._fieldsMap.set(e,r),r)}getTimeZone(e){let r=this.get(e&&typeof e!="string"?e.name:e);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(nt.getLogger("esri.layers.support.FieldsIndex").errorOnce(new We("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),Dl):dF.has(r.type)?Ya:null:null}getLuxonTimeZone(e){let r=this.getTimeZone(e);return r?r===Ya?jr.instance:r===Dl?xt.utcInstance:_f(vQ,r,()=>ar.create(r)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return aF(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>ui.isSerializable(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};dF=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var xv=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Fp.isErrorNoTelemetry(e)?new Fp(e.message+`
|
|
45
45
|
|
|
46
46
|
`+e.stack):new Error(e.message+`
|
|
47
47
|
|
|
@@ -244,32 +244,32 @@ lit-html/directives/live.js:
|
|
|
244
244
|
@esri/calcite-components/dist/chunks/runtime.js:
|
|
245
245
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
246
246
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
247
|
-
v3.2.0-next.
|
|
247
|
+
v3.2.0-next.17 *)
|
|
248
248
|
|
|
249
249
|
@esri/calcite-components/dist/index.js:
|
|
250
250
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
251
251
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
252
|
-
v3.2.0-next.
|
|
252
|
+
v3.2.0-next.17 *)
|
|
253
253
|
|
|
254
254
|
@esri/calcite-components/dist/chunks/guid.js:
|
|
255
255
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
256
256
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
257
|
-
v3.2.0-next.
|
|
257
|
+
v3.2.0-next.17 *)
|
|
258
258
|
|
|
259
259
|
@esri/calcite-components/dist/chunks/useT9n.js:
|
|
260
260
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
261
261
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
262
|
-
v3.2.0-next.
|
|
262
|
+
v3.2.0-next.17 *)
|
|
263
263
|
|
|
264
264
|
@esri/calcite-components/dist/components/calcite-loader/customElement.js:
|
|
265
265
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
266
266
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
267
|
-
v3.2.0-next.
|
|
267
|
+
v3.2.0-next.17 *)
|
|
268
268
|
|
|
269
269
|
@esri/calcite-components/dist/chunks/dom.js:
|
|
270
270
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
271
271
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
272
|
-
v3.2.0-next.
|
|
272
|
+
v3.2.0-next.17 *)
|
|
273
273
|
(*!
|
|
274
274
|
* tabbable 6.2.0
|
|
275
275
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -278,17 +278,17 @@ lit-html/directives/live.js:
|
|
|
278
278
|
@esri/calcite-components/dist/chunks/observers.js:
|
|
279
279
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
280
280
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
281
|
-
v3.2.0-next.
|
|
281
|
+
v3.2.0-next.17 *)
|
|
282
282
|
|
|
283
283
|
@esri/calcite-components/dist/chunks/logger.js:
|
|
284
284
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
285
285
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
286
|
-
v3.2.0-next.
|
|
286
|
+
v3.2.0-next.17 *)
|
|
287
287
|
|
|
288
288
|
@esri/calcite-components/dist/components/calcite-icon/customElement.js:
|
|
289
289
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
290
290
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
291
|
-
v3.2.0-next.
|
|
291
|
+
v3.2.0-next.17 *)
|
|
292
292
|
|
|
293
293
|
lit-html/async-directive.js:
|
|
294
294
|
(**
|
|
@@ -314,32 +314,32 @@ lit-html/static.js:
|
|
|
314
314
|
@esri/calcite-components/dist/chunks/form.js:
|
|
315
315
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
316
316
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
317
|
-
v3.2.0-next.
|
|
317
|
+
v3.2.0-next.17 *)
|
|
318
318
|
|
|
319
319
|
@esri/calcite-components/dist/chunks/interactive.js:
|
|
320
320
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
321
321
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
322
|
-
v3.2.0-next.
|
|
322
|
+
v3.2.0-next.17 *)
|
|
323
323
|
|
|
324
324
|
@esri/calcite-components/dist/chunks/label.js:
|
|
325
325
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
326
326
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
327
|
-
v3.2.0-next.
|
|
327
|
+
v3.2.0-next.17 *)
|
|
328
328
|
|
|
329
329
|
@esri/calcite-components/dist/chunks/component.js:
|
|
330
330
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
331
331
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
332
|
-
v3.2.0-next.
|
|
332
|
+
v3.2.0-next.17 *)
|
|
333
333
|
|
|
334
334
|
@esri/calcite-components/dist/components/calcite-button/customElement.js:
|
|
335
335
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
336
336
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
337
|
-
v3.2.0-next.
|
|
337
|
+
v3.2.0-next.17 *)
|
|
338
338
|
|
|
339
339
|
@esri/calcite-components/dist/components/calcite-scrim/customElement.js:
|
|
340
340
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
341
341
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
342
|
-
v3.2.0-next.
|
|
342
|
+
v3.2.0-next.17 *)
|
|
343
343
|
|
|
344
344
|
lit-html/directives/keyed.js:
|
|
345
345
|
(**
|
|
@@ -351,7 +351,7 @@ lit-html/directives/keyed.js:
|
|
|
351
351
|
@esri/calcite-components/dist/components/calcite-action/customElement.js:
|
|
352
352
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
353
353
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
354
|
-
v3.2.0-next.
|
|
354
|
+
v3.2.0-next.17 *)
|
|
355
355
|
|
|
356
356
|
lodash-es/lodash.js:
|
|
357
357
|
(**
|
|
@@ -367,22 +367,22 @@ lodash-es/lodash.js:
|
|
|
367
367
|
@esri/calcite-components/dist/chunks/floating-ui.js:
|
|
368
368
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
369
369
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
370
|
-
v3.2.0-next.
|
|
370
|
+
v3.2.0-next.17 *)
|
|
371
371
|
|
|
372
372
|
@esri/calcite-components/dist/chunks/openCloseComponent.js:
|
|
373
373
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
374
374
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
375
|
-
v3.2.0-next.
|
|
375
|
+
v3.2.0-next.17 *)
|
|
376
376
|
|
|
377
377
|
@esri/calcite-components/dist/chunks/Heading.js:
|
|
378
378
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
379
379
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
380
|
-
v3.2.0-next.
|
|
380
|
+
v3.2.0-next.17 *)
|
|
381
381
|
|
|
382
382
|
@esri/calcite-components/dist/chunks/FloatingArrow.js:
|
|
383
383
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
384
384
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
385
|
-
v3.2.0-next.
|
|
385
|
+
v3.2.0-next.17 *)
|
|
386
386
|
|
|
387
387
|
tabbable/dist/index.esm.js:
|
|
388
388
|
(*!
|
|
@@ -399,100 +399,100 @@ focus-trap/dist/focus-trap.esm.js:
|
|
|
399
399
|
@esri/calcite-components/dist/chunks/useFocusTrap.js:
|
|
400
400
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
401
401
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
402
|
-
v3.2.0-next.
|
|
402
|
+
v3.2.0-next.17 *)
|
|
403
403
|
|
|
404
404
|
@esri/calcite-components/dist/chunks/key.js:
|
|
405
405
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
406
406
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
407
|
-
v3.2.0-next.
|
|
407
|
+
v3.2.0-next.17 *)
|
|
408
408
|
|
|
409
409
|
@esri/calcite-components/dist/components/calcite-popover/customElement.js:
|
|
410
410
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
411
411
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
412
|
-
v3.2.0-next.
|
|
412
|
+
v3.2.0-next.17 *)
|
|
413
413
|
|
|
414
414
|
@esri/calcite-components/dist/chunks/array.js:
|
|
415
415
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
416
416
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
417
|
-
v3.2.0-next.
|
|
417
|
+
v3.2.0-next.17 *)
|
|
418
418
|
|
|
419
419
|
@esri/calcite-components/dist/chunks/resources2.js:
|
|
420
420
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
421
421
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
422
|
-
v3.2.0-next.
|
|
422
|
+
v3.2.0-next.17 *)
|
|
423
423
|
|
|
424
424
|
@esri/calcite-components/dist/components/calcite-action-menu/customElement.js:
|
|
425
425
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
426
426
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
427
|
-
v3.2.0-next.
|
|
427
|
+
v3.2.0-next.17 *)
|
|
428
428
|
|
|
429
429
|
@esri/calcite-components/dist/chunks/resources3.js:
|
|
430
430
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
431
431
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
432
|
-
v3.2.0-next.
|
|
432
|
+
v3.2.0-next.17 *)
|
|
433
433
|
|
|
434
434
|
@esri/calcite-components/dist/components/calcite-panel/customElement.js:
|
|
435
435
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
436
436
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
437
|
-
v3.2.0-next.
|
|
437
|
+
v3.2.0-next.17 *)
|
|
438
438
|
|
|
439
439
|
@esri/calcite-components/dist/chunks/interact.min.js:
|
|
440
440
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
441
441
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
442
|
-
v3.2.0-next.
|
|
442
|
+
v3.2.0-next.17 *)
|
|
443
443
|
|
|
444
444
|
@esri/calcite-components/dist/chunks/dynamicClasses.js:
|
|
445
445
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
446
446
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
447
|
-
v3.2.0-next.
|
|
447
|
+
v3.2.0-next.17 *)
|
|
448
448
|
|
|
449
449
|
@esri/calcite-components/dist/components/calcite-dialog/customElement.js:
|
|
450
450
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
451
451
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
452
|
-
v3.2.0-next.
|
|
452
|
+
v3.2.0-next.17 *)
|
|
453
453
|
|
|
454
454
|
@esri/calcite-components/dist/components/calcite-input-message/customElement.js:
|
|
455
455
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
456
456
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
457
|
-
v3.2.0-next.
|
|
457
|
+
v3.2.0-next.17 *)
|
|
458
458
|
|
|
459
459
|
@esri/calcite-components/dist/components/calcite-progress/customElement.js:
|
|
460
460
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
461
461
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
462
|
-
v3.2.0-next.
|
|
462
|
+
v3.2.0-next.17 *)
|
|
463
463
|
|
|
464
464
|
@esri/calcite-components/dist/chunks/locale.js:
|
|
465
465
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
466
466
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
467
|
-
v3.2.0-next.
|
|
467
|
+
v3.2.0-next.17 *)
|
|
468
468
|
|
|
469
469
|
@esri/calcite-components/dist/chunks/Validation.js:
|
|
470
470
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
471
471
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
472
|
-
v3.2.0-next.
|
|
472
|
+
v3.2.0-next.17 *)
|
|
473
473
|
|
|
474
474
|
@esri/calcite-components/dist/chunks/input.js:
|
|
475
475
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
476
476
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
477
|
-
v3.2.0-next.
|
|
477
|
+
v3.2.0-next.17 *)
|
|
478
478
|
|
|
479
479
|
@esri/calcite-components/dist/components/calcite-input/customElement.js:
|
|
480
480
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
481
481
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
482
|
-
v3.2.0-next.
|
|
482
|
+
v3.2.0-next.17 *)
|
|
483
483
|
|
|
484
484
|
@esri/calcite-components/dist/components/calcite-label/customElement.js:
|
|
485
485
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
486
486
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
487
|
-
v3.2.0-next.
|
|
487
|
+
v3.2.0-next.17 *)
|
|
488
488
|
|
|
489
489
|
@esri/calcite-components/dist/chunks/resources4.js:
|
|
490
490
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
491
491
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
492
|
-
v3.2.0-next.
|
|
492
|
+
v3.2.0-next.17 *)
|
|
493
493
|
|
|
494
494
|
@esri/calcite-components/dist/components/calcite-notice/customElement.js:
|
|
495
495
|
(*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
496
496
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
497
|
-
v3.2.0-next.
|
|
497
|
+
v3.2.0-next.17 *)
|
|
498
498
|
*/
|