@arcgis/coding-components 4.33.0-next.102 → 4.33.0-next.103
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/{33QCVFQ6.js → 2SSC4QMO.js} +1 -1
- package/dist/arcgis-coding-components/{CS722GZK.js → 6XXFS2PR.js} +3 -3
- package/dist/arcgis-coding-components/{CS722GZK.js.LEGAL.txt → 6XXFS2PR.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{FNO6IL2U.js → 7ONHXHRN.js} +2 -2
- package/dist/arcgis-coding-components/{3ZO3GR36.js → AT6LHUDK.js} +2 -2
- package/dist/arcgis-coding-components/{R6DEK6RM.js → AXS54LF5.js} +2 -2
- package/dist/arcgis-coding-components/{ESPN27U7.js → B2Z4MO7A.js} +2 -2
- package/dist/arcgis-coding-components/{ESPN27U7.js.LEGAL.txt → B2Z4MO7A.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OBSRMFAY.js → CFVYVRQE.js} +2 -2
- package/dist/arcgis-coding-components/{BJ2HHHNW.js → CJZSHSWH.js} +2 -2
- package/dist/arcgis-coding-components/{RXTVCIMM.js → CQBIMDOR.js} +2 -2
- package/dist/arcgis-coding-components/{AXDF2YUF.js.LEGAL.txt → CQBIMDOR.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IHUZPDNC.js → DKL5P4GE.js} +2 -2
- package/dist/arcgis-coding-components/{DKSCF6S3.js.LEGAL.txt → DKL5P4GE.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IQZW2QM5.js → E3ATNURG.js} +1 -1
- package/dist/arcgis-coding-components/{DKSCF6S3.js → EFE2YDHC.js} +2 -2
- package/dist/arcgis-coding-components/EFE2YDHC.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{S25MVFW5.js → EK6LUTRC.js} +2 -2
- package/dist/arcgis-coding-components/{3K6XWKVE.js → I3X64HQV.js} +2 -2
- package/dist/arcgis-coding-components/{3K6XWKVE.js.LEGAL.txt → I3X64HQV.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OK4O5ZGG.js → I4KU3MTZ.js} +2 -2
- package/dist/arcgis-coding-components/{NMRC7CQM.js → LACWSXU3.js} +2 -2
- package/dist/arcgis-coding-components/LACWSXU3.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{RHNVVKOM.js → NFUOJCQA.js} +2 -2
- package/dist/arcgis-coding-components/{D6CQHS7M.js → NJY4YQT6.js} +2 -2
- package/dist/arcgis-coding-components/{RIOBU5ED.js → OPJ6BZPP.js} +2 -2
- package/dist/arcgis-coding-components/OPJ6BZPP.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{NOEM3X5X.js → OSCC6JNH.js} +2 -2
- package/dist/arcgis-coding-components/OSCC6JNH.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{24TLWAE4.js → P3IYBF7C.js} +2 -2
- package/dist/arcgis-coding-components/{ZABTLWUW.js → PTYCCVEX.js} +2 -2
- package/dist/arcgis-coding-components/PTYCCVEX.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{Y44LW35V.js → QYNTDYO2.js} +2 -2
- package/dist/arcgis-coding-components/QYNTDYO2.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{VDNO6K4Y.js → R7EIIZZ2.js} +2 -2
- package/dist/arcgis-coding-components/{NZNGBYHN.js → RPLAZMM5.js} +2 -2
- package/dist/arcgis-coding-components/RPLAZMM5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{AXDF2YUF.js → RQLA3QPL.js} +2 -2
- package/dist/arcgis-coding-components/RQLA3QPL.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{T3P7HNH3.js → RTPGUQ2T.js} +2 -2
- package/dist/arcgis-coding-components/RTPGUQ2T.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ZWHLHJVX.js → RWD2E37M.js} +2 -2
- package/dist/arcgis-coding-components/RWD2E37M.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{2KAHLHVS.js → SHJQJ3ZT.js} +3 -3
- package/dist/arcgis-coding-components/{2KAHLHVS.js.LEGAL.txt → SHJQJ3ZT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{FDBPCG6E.js → SUPQ6KYS.js} +2 -2
- package/dist/arcgis-coding-components/{QGDAUJI4.js → TZPJAYP3.js} +2 -2
- package/dist/arcgis-coding-components/TZPJAYP3.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{CTYDI653.js → UCUEOTTL.js} +1 -1
- package/dist/arcgis-coding-components/{VEU5JKWT.js → WNQKSICJ.js} +2 -2
- package/dist/arcgis-coding-components/{M3XHMUK5.js → WWLMITMZ.js} +2 -2
- package/dist/arcgis-coding-components/WWLMITMZ.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{5VWPZKYA.js → XR6MBBBM.js} +2 -2
- package/dist/arcgis-coding-components/{5VWPZKYA.js.LEGAL.txt → XR6MBBBM.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{JYFWUDAV.js → XSNSQQ2T.js} +2 -2
- package/dist/arcgis-coding-components/{X5UUVOD6.js → Y6ID4SWC.js} +2 -2
- package/dist/arcgis-coding-components/Y6ID4SWC.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{YVBUL7LG.js → ZDYVWZQL.js} +2 -2
- package/dist/arcgis-coding-components/ZDYVWZQL.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{FJFABSAQ.js → ZRWEFD2Z.js} +1 -1
- package/dist/arcgis-coding-components/ZRWEFD2Z.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 +2 -2
- 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/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.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-coding-assistant/customElement.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 +6 -6
- package/dist/arcgis-coding-components/FJFABSAQ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IHUZPDNC.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/M3XHMUK5.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/NMRC7CQM.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/NOEM3X5X.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/NZNGBYHN.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/QGDAUJI4.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/RIOBU5ED.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/RXTVCIMM.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/T3P7HNH3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/X5UUVOD6.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/Y44LW35V.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/YVBUL7LG.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/ZABTLWUW.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/ZWHLHJVX.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{33QCVFQ6.js.LEGAL.txt → 2SSC4QMO.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FNO6IL2U.js.LEGAL.txt → 7ONHXHRN.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{3ZO3GR36.js.LEGAL.txt → AT6LHUDK.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{R6DEK6RM.js.LEGAL.txt → AXS54LF5.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{OBSRMFAY.js.LEGAL.txt → CFVYVRQE.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{BJ2HHHNW.js.LEGAL.txt → CJZSHSWH.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CTYDI653.js.LEGAL.txt → E3ATNURG.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{S25MVFW5.js.LEGAL.txt → EK6LUTRC.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{OK4O5ZGG.js.LEGAL.txt → I4KU3MTZ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{RHNVVKOM.js.LEGAL.txt → NFUOJCQA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{D6CQHS7M.js.LEGAL.txt → NJY4YQT6.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{24TLWAE4.js.LEGAL.txt → P3IYBF7C.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{VDNO6K4Y.js.LEGAL.txt → R7EIIZZ2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FDBPCG6E.js.LEGAL.txt → SUPQ6KYS.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IQZW2QM5.js.LEGAL.txt → UCUEOTTL.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{VEU5JKWT.js.LEGAL.txt → WNQKSICJ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{JYFWUDAV.js.LEGAL.txt → XSNSQQ2T.js.LEGAL.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var N$=Object.defineProperty;var MC=(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 AC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ao=(t,e)=>{for(var r in e)N$(t,r,{get:e[r],enumerable:!0})};function kV(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 y3(t,e,r){let{subscribe:n}=OV(e);return n(i=>{i.some(s=>kV(t,s.target))&&r()})}function OV(t){let e=t.join(","),r=t2[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(),t2[e]=void 0)}}};return t2[e]=o,o}function NV(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 b3(t,e,r){return NV(t,`[${e}]`)?.getAttribute(e)??r}function qt(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function mm(t,e,...r){try{return await t?.call(e,...r)}catch(n){console.error(n,t)}}async function $V(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return r2[i]??(r2[i]=v3(t,n)),await r2[i]}async function v3(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===dw?{}:await v3(dw,e)}function n2(t){let e=b3(t,"lang",globalThis.navigator?.language||dw);return{lang:e,t9nLocale:_3(e)}}function _3(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=FV[i]??i,DV.has(i)?i:r?_3(n):dw}function S3(t,e,r,n){let i,o=()=>void UV(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),y3(t,["lang"],o)}async function UV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=n2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await $V(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function x3(t,e){let r=e>zV?WV:e/BV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}var Ro,t2,RV,DV,dw,FV,r2,fw,VV,zV,WV,BV,hm=N(()=>{"use strict";Ro=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};t2={};RV=["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"],DV=new Set(RV),dw="en",FV={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"};r2={};fw=t=>t.replace(VV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),VV=/[A-Z]+(?![a-z])|[A-Z]/gu;zV=4e3,WV=2e3,BV=4});var ws,mw,o2,i2,E3=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(ws||(ws={}));mw=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,ws.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,ws.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,ws.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new o2(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,ws.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,ws.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,ws.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(i2)[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(i2)[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(i2)[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,ws.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)}},o2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},i2=":"});var gm,C3=N(()=>{E3();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new mw,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,xt=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 s2=N(()=>{xt()});var hw,Sa=N(()=>{hw=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 gw(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 a2(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;Hi.clear();for(let c=0;c<n;++c)Hi.add(e[c]);i=i||T3;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Hi.has(t[c])&&(o?.push(t[c]),Hi.delete(t[c]),t[c]=t[r-1],--r,--c,Hi.size===0||r===0))return Hi.clear(),r;for(let c=0;c<s;++c)if(Hi.has(t[c])&&(o?.push(t[c]),Hi.delete(t[c]),t[c]=t[r-1],--r,--c,Hi.size===0||r===0))return Hi.clear(),r;return Hi.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 jV,Toe,wm,T3,Hi,Poe,Kd=N(()=>{s2();Sa();jV=1.5,Toe=1/jV;wm=class{constructor(){this.last=0}},T3=new wm;Hi=new Set;Poe=new hw});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 Ioe,U3=N(()=>{xt();Ioe=2**32-1});function ww(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&ww(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=ZV(t);if(e!=null)return e;if(qV(t))return t.clone();if(HV(t))return t.map(Ht);if(YV(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 qV(t){return typeof t.clone=="function"}function HV(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function YV(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 ZV(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 yw(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)&&gw(t,e):t instanceof Set?e instanceof Set&&JV(t,e):t instanceof Map?e instanceof Map&&KV(t,e):!!V3(t)&&V3(e)&&XV(t,e))}function XV(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 JV(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function KV(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(()=>{Kd();U3()});function z3(t,e,r=!1){return B3(t,e,r)}function Ei(t,e){if(e!=null)return e[t]||W3(t.split("."),!1,e)}function ys(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(QV,typeof e=="object"?(r,n)=>G3(Ei(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 QV,xa=N(()=>{Do();QV=/\{([^}]+)\}/g});var bs,bw,vw,_w,Yi,Qd,sr,Zi,Ea=N(()=>{bs=class extends Error{},bw=class extends bs{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},vw=class extends bs{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},_w=class extends bs{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Yi=class extends bs{},Qd=class extends bs{constructor(e){super(`Invalid unit ${e}`)}},sr=class extends bs{},Zi=class extends bs{constructor(){super("Zone is an abstract class")}}});var Le,Xi,ii,Ca,bm,c2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,l2,Nm,Rm,Dm,Fm,$m=N(()=>{Le="numeric",Xi="short",ii="long",Ca={year:Le,month:Le,day:Le},bm={year:Le,month:Xi,day:Le},c2={year:Le,month:Xi,day:Le,weekday:Xi},vm={year:Le,month:ii,day:Le},_m={year:Le,month:ii,day:Le,weekday:ii},Sm={hour:Le,minute:Le},xm={hour:Le,minute:Le,second:Le},Em={hour:Le,minute:Le,second:Le,timeZoneName:Xi},Cm={hour:Le,minute:Le,second:Le,timeZoneName:ii},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:Xi},Am={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:ii},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:Xi,day:Le,hour:Le,minute:Le},Om={year:Le,month:Xi,day:Le,hour:Le,minute:Le,second:Le},l2={year:Le,month:Xi,day:Le,weekday:Xi,hour:Le,minute:Le},Nm={year:Le,month:ii,day:Le,hour:Le,minute:Le,timeZoneName:Xi},Rm={year:Le,month:ii,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Xi},Dm={year:Le,month:ii,day:Le,weekday:ii,hour:Le,minute:Le,timeZoneName:ii},Fm={year:Le,month:ii,day:Le,weekday:ii,hour:Le,minute:Le,second:Le,timeZoneName:ii}});var _r,_l=N(()=>{Ea();_r=class{get type(){throw new Zi}get name(){throw new Zi}get ianaName(){return this.name}get isUniversal(){throw new Zi}offsetName(e,r){throw new Zi}formatOffset(e,r){throw new Zi}offset(e){throw new Zi}equals(e){throw new Zi}get isValid(){throw new Zi}}});var u2,Ta,xw=N(()=>{An();_l();u2=null,Ta=class t extends _r{static get instance(){return u2===null&&(u2=new t),u2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Ew(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 ez(t){let e=f2.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"}),f2.set(t,e)),e}function rz(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 nz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=tz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var f2,tz,d2,ar,Ma=N(()=>{An();_l();f2=new Map;tz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};d2=new Map,ar=class t extends _r{static create(e){let r=d2.get(e);return r===void 0&&d2.set(e,r=new t(e)),r}static resetCache(){d2.clear(),f2.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 Ew(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=ez(this.name),[i,o,s,c,a,d,h]=n.formatToParts?nz(n,r):rz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=ef({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 iz(t,e={}){let r=JSON.stringify([t,e]),n=H3[r];return n||(n=new Intl.ListFormat(t,e),H3[r]=n),n}function m2(t,e={}){let r=JSON.stringify([t,e]),n=p2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),p2.set(r,n)),n}function oz(t,e={}){let r=JSON.stringify([t,e]),n=h2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),h2.set(r,n)),n}function sz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=g2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),g2.set(i,o)),o}function az(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function Y3(t){let e=w2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),w2.set(t,e)),e}function cz(t){let e=y2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Z3,...e}),y2.set(t,e)}return e}function lz(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=m2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=m2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function uz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function dz(t){let e=[];for(let r=1;r<=12;r++){let n=Pe.utc(2009,r,1);e.push(t(n))}return e}function fz(t){let e=[];for(let r=1;r<=7;r++){let n=Pe.utc(2016,11,13+r);e.push(t(n))}return e}function Cw(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function pz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Y3(t.locale).numberingSystem==="latn"}var H3,p2,h2,g2,Um,w2,y2,b2,v2,_2,Z3,pt,zm=N(()=>{An();Mw();Aa();Ia();Ma();H3={};p2=new Map;h2=new Map;g2=new Map;Um=null;w2=new Map;y2=new Map;b2=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=oz(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):tf(e,3);return tr(r,this.padTo)}}},v2=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=m2(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()}},_2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&Tw()&&(this.rtf=sz(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":az()),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,p2.clear(),h2.clear(),g2.clear(),w2.clear(),y2.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]=lz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=uz(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=pz(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 Cw(this,e,S2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=dz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return Cw(this,e,x2,()=>{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]=fz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Cw(this,void 0,()=>E2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Pe.utc(2016,11,13,9),Pe.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Cw(this,e,C2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Pe.utc(-40,1,1),Pe.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 b2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new v2(e,this.intl,r)}relFormatter(e={}){return new _2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return iz(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:Pw()?cz(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 P2,Et,rf=N(()=>{An();_l();P2=null,Et=class t extends _r{static get utcInstance(){return P2===null&&(P2=new t(0)),P2}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(Sl(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 nf,M2=N(()=>{_l();nf=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 Ji(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"?Et.utcInstance:Et.parseSpecifier(n)||ar.create(t)}else return Ki(t)?Et.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new nf(t)}var Aw=N(()=>{_l();Ma();rf();M2();An();xw()});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(I2.hanidec)!==-1)e+=mz.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(){A2.clear()}function Ci({numberingSystem:t},e=""){let r=t||"latn",n=A2.get(r);n===void 0&&(n=new Map,A2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${I2[r]}${e}`),n.set(e,i)),i}var I2,K3,mz,A2,L2=N(()=>{I2={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]},mz=I2.hanidec.replace(/[\[|\]]/g,"").split("");A2=new Map});var t6,r6,n6,i6,o6,s6,a6,c6,ft,Aa=N(()=>{xw();Ma();zm();Ia();Aw();An();L2();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 Ji(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(),Pe.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 Ti(t,e){return new Br("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Iw(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+(El(t)?u6:l6)[e-1]}function f6(t,e){let r=El(t)?u6:l6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function Lw(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=Lw(Iw(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=xl(d,e,r)):a>xl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function k2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=Lw(Iw(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 kw(t){let{year:e,month:r,day:n}=t,i=d6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function O2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=f6(e,r);return{year:e,month:n,day:i,...jm(t)}}function N2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Yi("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=oi(t.weekNumber,1,xl(t.weekYear,e,r)),o=oi(t.weekday,1,7);return n?i?o?!1:Ti("weekday",t.weekday):Ti("week",t.weekNumber):Ti("weekYear",t.weekYear)}function m6(t){let e=Gm(t.year),r=oi(t.ordinal,1,La(t.year));return e?r?!1:Ti("ordinal",t.ordinal):Ti("year",t.year)}function R2(t){let e=Gm(t.year),r=oi(t.month,1,12),n=oi(t.day,1,of(t.year,t.month));return e?r?n?!1:Ti("day",t.day):Ti("month",t.month):Ti("year",t.year)}function D2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=oi(e,0,23)||e===24&&r===0&&n===0&&i===0,s=oi(r,0,59),c=oi(n,0,59),a=oi(i,0,999);return o?s?c?a?!1:Ti("millisecond",i):Ti("second",n):Ti("minute",r):Ti("hour",e)}var l6,u6,F2=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 Ki(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 Tw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Pw(){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 $2(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(!oi(t.firstDay,1,7)||!oi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!oi(e,1,7)))throw new sr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function oi(t,e,r){return Gm(t)&&t>=e&&t<=r}function hz(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 vs(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 tf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function El(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return El(t)?366:365}function of(t,e){let r=hz(e-1,12)+1,n=t+(e-r)/12;return r===2?El(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ef(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-Lw(Iw(t,1,e),r)+e-1}function xl(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 Ew(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 Sl(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 U2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new sr(`Invalid unit value ${t}`);return e}function sf(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=U2(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();F2()});function S2(t){switch(t){case"narrow":return[...wz];case"short":return[...V2];case"long":return[...gz];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 x2(t){switch(t){case"narrow":return[...yz];case"short":return[...W2];case"long":return[...z2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function C2(t){switch(t){case"narrow":return[..._z];case"short":return[...vz];case"long":return[...bz];default:return null}}function b6(t){return E2[t.hour<12?0:1]}function v6(t,e){return x2(e)[t.weekday-1]}function _6(t,e){return S2(e)[t.month-1]}function S6(t,e){return C2(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 gz,V2,wz,z2,W2,yz,E2,bz,vz,_z,Mw=N(()=>{$m();An();gz=["January","February","March","April","May","June","July","August","September","October","November","December"],V2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wz=["J","F","M","A","M","J","J","A","S","O","N","D"];z2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],yz=["M","T","W","T","F","S","S"];E2=["AM","PM"],bz=["Before Christ","Anno Domini"],vz=["BC","AD"],_z=["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 Sz,Gr,Ym=N(()=>{Mw();$m();An();Sz={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 Sz[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 cf(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function lf(...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 uf(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]]=vs(e[r+i]);return[n,null,r+i]}}function af(t,e,r){let n=t[e];return Ge(n)?r:vs(n)}function Lz(t,e){return[{year:af(t,e),month:af(t,e+1,1),day:af(t,e+2,1)},null,e+3]}function df(t,e){return[{hours:af(t,e,0),minutes:af(t,e+1,0),seconds:af(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=Sl(t[e+1],t[e+2]),i=r?null:Et.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?ar.create(t[e]):null;return[{},r,e+1]}function Nz(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 j2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(vs(e)):vs(e),month:V2.indexOf(r)+1,day:vs(n),hour:vs(i),minute:vs(o)};return s&&(c.second=vs(s)),t&&(c.weekday=t.length>3?z2.indexOf(t)+1:W2.indexOf(t)+1),c}function Fz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=j2(e,i,n,r,o,s,c),E;return a?E=Rz[a]:d?E=0:E=Sl(h,g),[v,new Et(E)]}function $z(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[j2(e,i,n,r,o,s,c),Et.utcInstance]}function Wz(t){let[,e,r,n,i,o,s,c]=t;return[j2(e,c,r,n,i,o,s),Et.utcInstance]}function L6(t){return uf(t,[Bz,I6],[Gz,Hz],[jz,Yz],[qz,Zz])}function k6(t){return uf($z(t),[Dz,Fz])}function O6(t){return uf(t,[Uz,E6],[Vz,E6],[zz,Wz])}function N6(t){return uf(t,[Oz,Nz])}function R6(t){return uf(t,[kz,Xz])}function D6(t){return uf(t,[Jz,I6],[Kz,Qz])}var C6,P6,xz,B2,M6,G2,Ez,Cz,Tz,Pz,Mz,Az,A6,Iz,kz,Oz,Rz,Dz,Uz,Vz,zz,Bz,Gz,jz,qz,I6,Hz,Yz,Zz,Xz,Jz,Kz,Qz,q2=N(()=>{An();Mw();rf();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))?)/,xz=`(?:${P6.source}?(?:\\[(${C6.source})\\])?)?`,B2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,M6=RegExp(`${B2.source}${xz}`),G2=RegExp(`(?:T${M6.source})?`),Ez=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Cz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Tz=/(\d{4})-?(\d{3})/,Pz=T6("weekYear","weekNumber","weekDay"),Mz=T6("year","ordinal"),Az=/(\d{4})-(\d\d)-(\d\d)/,A6=RegExp(`${B2.source} ?(?:${P6.source}|(${C6.source}))?`),Iz=RegExp(`(?: ${A6.source})?`);kz=RegExp(`^T?${B2.source}$`),Oz=/^-?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)?)?)$/;Rz={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};Dz=/^(?:(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)))$/;Uz=/^(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$/,Vz=/^(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$/,zz=/^(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})$/;Bz=cf(Ez,G2),Gz=cf(Cz,G2),jz=cf(Tz,G2),qz=cf(M6),I6=lf(Lz,df,Zm,Xm),Hz=lf(Pz,df,Zm,Xm),Yz=lf(Mz,df,Zm,Xm),Zz=lf(df,Zm,Xm);Xz=lf(df);Jz=cf(Az,Iz),Kz=cf(A6),Qz=lf(df,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 rW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=V6(t,e)<0?-1:1;Cl.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),Cl.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 nW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var F6,U6,eW,Pi,ff,tW,Cl,rW,rr,Jm=N(()=>{Ea();Ym();Wm();zm();q2();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}},eW={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},Pi=146097/400,ff=146097/4800,tW={years:{quarters:4,months:12,weeks:Pi/7,days:Pi,hours:Pi*24,minutes:Pi*24*60,seconds:Pi*24*60*60,milliseconds:Pi*24*60*60*1e3},quarters:{months:3,weeks:Pi/28,days:Pi/4,hours:Pi*24/4,minutes:Pi*24*60/4,seconds:Pi*24*60*60/4,milliseconds:Pi*24*60*60*1e3/4},months:{weeks:ff/7,days:ff,hours:ff*24,minutes:ff*24*60,seconds:ff*24*60*60,milliseconds:ff*24*60*60*1e3},...U6},Cl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rW=Cl.slice(0).reverse();rr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?tW:eW;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:sf(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ki(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 _w(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 Qd(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=Cl.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+=tf(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},Pe.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 Cl)(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]=U2(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,...sf(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=nW(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 Cl)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;Ki(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ki(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 Cl)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function iW(t,e){return!t||!t.isValid?_s.invalid("missing or invalid start"):!e||!e.isValid?_s.invalid("missing or invalid end"):e<t?_s.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 pf,_s,H2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();$m();pf="Invalid Interval";_s=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 vw(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=mf(e),i=mf(r),o=iW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=rr.fromDurationLike(r),i=mf(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=rr.fromDurationLike(r),i=mf(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=Pe.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Pe.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(mf).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()})`:pf}[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):pf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:pf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:pf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:pf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:pf}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 Ss,Y2=N(()=>{Ia();Aa();zm();Ma();Aw();An();Ss=class{static hasDST(e=ft.defaultZone){let r=Pe.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 Ji(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:Tw(),localeWeek:Pw()}}}});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 oW(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]=oW(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 cW(t){return t.replace(/\./g,"\\.?").replace(H6,q6)}function G6(t){return t.replace(/\./g,"").replace(H6," ").toLowerCase()}function Qi(t,e){return t===null?null:{regex:RegExp(t.map(cW).join("|")),deser:([r])=>t.findIndex(n=>G6(r)===G6(n))+e}}function j6(t,e){return{regex:t,deser:([,r,n])=>Sl(r,n),groups:e}}function Ow(t){return{regex:t,deser:([e])=>e}}function lW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function uW(t,e){let r=Ci(e),n=Ci(e,"{2}"),i=Ci(e,"{3}"),o=Ci(e,"{4}"),s=Ci(e,"{6}"),c=Ci(e,"{1,2}"),a=Ci(e,"{1,3}"),d=Ci(e,"{1,6}"),h=Ci(e,"{1,9}"),g=Ci(e,"{2,4}"),v=Ci(e,"{4,6}"),E=F=>({regex:RegExp(lW(F.val)),deser:([W])=>W,literal:!0}),k=(F=>{if(t.literal)return E(F);switch(F.val){case"G":return Qi(e.eras("short"),0);case"GG":return Qi(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 Qi(e.months("short",!0),1);case"MMMM":return Qi(e.months("long",!0),1);case"L":return gt(c);case"LL":return gt(n);case"LLL":return Qi(e.months("short",!1),1);case"LLLL":return Qi(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 Ow(h);case"uu":return Ow(c);case"uuu":return gt(r);case"a":return Qi(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 Qi(e.weekdays("short",!1),1);case"EEEE":return Qi(e.weekdays("long",!1),1);case"ccc":return Qi(e.weekdays("short",!0),1);case"cccc":return Qi(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 Ow(/[a-z_+-/]{1,256}?/i);case" ":return Ow(/[^\S\n\r]/);default:return E(F)}})(t)||{invalidReason:sW};return k.token=t,k}function fW(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=dW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function pW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function mW(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 hW(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 Et(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 gW(){return Z2||(Z2=Pe.fromMillis(1555555555555)),Z2}function wW(t,e){if(t.literal)return t;let r=Gr.macroTokenToFormatOpts(t.val),n=K2(r,e);return n==null||n.includes(void 0)?t:n}function X2(t,e){return Array.prototype.concat(...t.map(r=>wW(r,e)))}function J2(t,e,r){return new Km(t,r).explainFromTokens(e)}function Y6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=J2(t,e,r);return[n,i,o,s]}function K2(t,e){if(!t)return null;let n=Gr.create(e,t).dtFormatter(gW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>fW(s,t,o))}var sW,aW,q6,H6,dW,Z2,Km,Z6=N(()=>{An();Ym();rf();Ma();Ia();L2();Ea();sW="missing Intl.DateTimeFormat.formatToParts support";aW="\xA0",q6=`[ ${aW}]`,H6=new RegExp(q6,"g");dW={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"}};Z2=null;Km=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=X2(Gr.parseFormat(r),e),this.units=this.tokens.map(n=>uW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=pW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=mW(e,this.regex,this.handlers),[i,o,s]=n?hW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Yi("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 eS(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function tS(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Tl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Pe({...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 Nw(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 Dw(t,e,r){return n8(ef(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,of(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=ef(o),[a,d]=n8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function hf(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=Pe.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Pe.invalid(new Br("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Rw(t,e,r=!0){return t.isValid?Gr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function rS(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 SW(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 Qd(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 SW(t)}}function xW(t){if(eh===void 0&&(eh=ft.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=nS.get(e);return r===void 0&&(r=t.offset(eh),nS.set(e,r)),r}function e8(t,e){let r=Ji(e.zone,ft.defaultZone);if(!r.isValid)return Pe.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=R2(t)||D2(t);if(s)return Pe.invalid(s);let c=xW(r);[i,o]=Dw(t,c,r)}return new Pe({ts:i,zone:r,loc:n,o})}function t8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=tf(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 mf(t){if(Pe.isDateTime(t))return t;if(t&&t.valueOf&&Ki(t.valueOf()))return Pe.fromJSDate(t);if(t&&typeof t=="object")return Pe.fromObject(t);throw new sr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Q2,X6,i8,yW,bW,o8,vW,_W,eh,nS,Pe,Ia=N(()=>{Jm();H2();Aa();Y2();Ym();rf();zm();An();Aw();B6();q2();Z6();F2();$m();Ea();Wm();Q2="Invalid DateTime",X6=864e13;i8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yW={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o8=["year","month","day","hour","minute","second","millisecond"],vW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_W=["year","ordinal","hour","minute","second","millisecond"];nS=new Map,Pe=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=Ki(e.o)&&!e.old?e.o:r.offset(this.ts);i=Nw(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=Et.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=Ji(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(Ki(e))return e<-X6||e>X6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Ji(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(Ki(e))return new t({ts:e*1e3,zone:Ji(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Ji(r.zone,ft.defaultZone);if(!n.isValid)return t.invalid(Qm(n));let i=pt.fromObject(r),o=sf(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=N2(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 Yi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Yi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,F,W,B=Nw(a,d);k?(F=vW,W=yW,B=Bm(B,s,c)):h?(F=_W,W=bW,B=kw(B)):(F=o8,W=i8);let X=!1;for(let Te of F){let Ne=o[Te];Ge(Ne)?X?o[Te]=W[Te]:o[Te]=B[Te]:X=!0}let z=k?p6(o,s,c):h?m6(o):R2(o),Z=z||D2(o);if(Z)return t.invalid(Z);let re=k?k2(o,s,c):h?O2(o):o,[$,me]=Dw(re,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 hf(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=k6(e);return hf(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=O6(e);return hf(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):hf(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 hf(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 bw(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=K2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return X2(Gr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,nS.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?eS(this).weekYear:NaN}get weekNumber(){return this.isValid?eS(this).weekNumber:NaN}get weekday(){return this.isValid?eS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?tS(this).weekday:NaN}get localWeekNumber(){return this.isValid?tS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?tS(this).weekYear:NaN}get ordinal(){return this.isValid?kw(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ss.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=ef(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=Nw(a,s),g=Nw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Tl(this,{ts:a}),Tl(this,{ts:d})]:[this]}get isInLeapYear(){return El(this.year)}get daysInMonth(){return of(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?xl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?xl(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(Et.instance(e),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Ji(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]=Dw(s,o,e)}return Tl(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 Tl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=sf(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=N2(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 Yi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Yi("Can't mix ordinal dates with month/day");let g;o?g=k2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(of(g.year,g.month),g.day))):g=O2({...kw(this.c),...r});let[v,E]=Dw(g,this.o,this.zone);return Tl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e);return Tl(this,J6(this,r))}minus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e).negate();return Tl(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):Q2}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.loc.clone(r),e).formatDateTime(this):Q2}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=rS(this,s);return c+="T",c+=K6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?rS(this,e==="extended"):null}toISOWeekDate(){return Rw(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 Rw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?rS(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")),Rw(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Q2}[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?_s.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 $2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new sr("max requires all arguments be DateTimes");return $2(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 J2(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):hf(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 c2}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 l2}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();H2();Y2();_l();rf();Ma();M2();xw();Aa()});function Pl(t){return t instanceof _r?t===jr.instance:t?.toString().toLowerCase()==="unknown"}function Fw(t){return Pl(t)?jr.instance:t}var jr,th=N(()=>{In();jr=class{static{this.instance=new ar("Etc/UTC")}}});function gf(t,e,r){return t<e?t-e:t>r?t-r:0}function wf(t,e,r){return t<e?e:t>r?r:t}function eo(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=Et.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=ar.create(t);if(!r.isValid){if(e)throw new iS($w.TimeZoneNotRecognized);return null}return r}var $w,EW,iS,rh,s8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})($w||($w={}));EW={[$w.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},iS=class t extends Error{constructor(e,r){super(Fo(EW[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=Pe.local(e,r).daysInMonth,h=Pe.fromObject({day:wf(n,1,d),year:e,month:wf(r,1,12),hour:wf(i,0,23),minute:wf(o,0,59),second:wf(s,0,59),millisecond:wf(c,0,999)},{zone:eo(a)});return h=h.plus({months:gf(r,1,12),days:gf(n,1,d),hours:gf(i,0,23),minutes:gf(o,0,59),seconds:gf(s,0,59),milliseconds:gf(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=eo(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(Pe.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=eo(r);return new t(Pe.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Pe.fromMillis(e,{zone:jr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Pe.fromMillis(e.getTime(),{zone:jr.instance}))}static epochToArcadeDate(e,r="system"){let n=eo(r);return new t(Pe.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=eo(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=eo(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=eo(e);return new t(Pe.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Pe.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=Pe.fromISO(e,{setZone:!0});return new t(r)}}});function wt(t){return t?{remove(){t&&(t(),t=void 0)}}:CW}function TW(t){t.forEach(e=>e?.remove())}function Ml(t){return wt(()=>TW(t))}var CW,jn=N(()=>{CW={remove:()=>{}}});function c8(){let t=oS?.getAttribute("lang"),e=globalThis.navigator?.language;return MW??t??e??"en"}function Mi(){return nh===void 0&&(nh=c8()),nh}function yf(t=Mi()){return AW.exec(t)?.groups}function sS(t){return Uw.push(t),wt(()=>{Uw.splice(Uw.indexOf(t),1)})}function bf(t){return Vw.push(t),wt(()=>Vw.splice(Vw.indexOf(t),1))}function a8(){let t=PW??c8();nh!==t&&([...Vw].forEach(e=>e(t)),nh=t,[...Uw].forEach(e=>e(t)))}var PW,nh,MW,oS,AW,Uw,Vw,Ra=N(()=>{jn();xt();MW=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,oS=globalThis.document?.documentElement;AW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;Uw=[];Vw=[];globalThis.addEventListener?.("languagechange",a8),oS&&new MutationObserver(()=>{a8()}).observe(oS,{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 Pe.fromObject({day:this.day,month:this.month,year:this.year},{zone:eo(e)})}toDateTimeLuxon(e){return Pe.fromObject({day:this.day,month:this.month,year:this.year},{zone:eo(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:Mi(),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 Pe.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=Pe.fromMillis(e,{zone:Et.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Pe.fromSeconds(e,{zone:Et.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=Pe.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Pe.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Pe.fromJSDate(new Date).setZone(eo(e));return new t(r.year,r.month,r.day)}}});var J,IW,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={}));IW={[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(IW[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,sn,oh=N(()=>{In();f8="esri.core.sql.SqlTimeStampOffset",sn=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??=Pe.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(Pe.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 si=N(()=>{});var zw,Ww=N(()=>{zw="20250428"});var yt,Fa=N(()=>{xt();Do();Ww();yt={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(yt,globalThis.esriConfig,!0),delete yt.has),!yt.assetsPath){{let t="4.33.0";yt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${zw}/assets`}yt.defaultAssetsPath=yt.assetsPath}});function LW(t,e,...r){console[t](`[${e}]`,...r)}function kW(...t){return q3(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var p8,nt,Ut=N(()=>{Fa();xt();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=kW(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 yt.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",LW)}_matchLevel(e){let r=yt.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 vf(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var Bw=N(()=>{});function OW(t){return t==null?t:new Date(t)}function NW(t){return t==null?t:!!t}function RW(t){return t==null?t:t.toString()}function uS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function DW(t){return t==null?t:Math.round(parseFloat(t))}function FW(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 Gw(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 $W(t,e){if(!e?.constructor||!w8(e.constructor))return aS(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):(aS(t,e),e):new t(e):e}function aS(t,e){return!!g8(e)&&(_f().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+jw(t)+"'"),!0)}function UW(t,e){return e==null?e:w8(t)?$W(t,e):Gw(t,e)?aS(t,e)?e:new t(e):e}function jw(t){return t?.prototype?.declaredClass||"unknown"}function zW(t){switch(t){case Number:return e=>uS(e);case Uo:return DW;case Boolean:return NW;case String:return RW;case Date:return OW;case ah:return FW;default:return vf(VW,t,()=>UW.bind(null,t))}}function $o(t,e){let r=zW(t);return arguments.length===1?r:r(e)}function Sf(t,e,r){return arguments.length===1?Sf.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?Sf(r=>$o(t,r)):Sf(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 qw(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function Hw(t,e){if(arguments.length===2)return Hw(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=>!Gw(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),_f().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=>jw(g)).join(", ")),_f().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):_f().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Yw(t,e){if(arguments.length===2)return Yw(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(jw(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&&!Gw(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return _f().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(!Gw(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 dS(t){switch(t.type){case"native":return $o(t.value);case"array":return Sf(dS(t.value));case"one-of":return WW(t);default:return null}}function WW(t){let e=null;return(r,n)=>lS(r,t)?r:(e==null&&(e=cS(t)),_f().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function cS(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 jw(t.value)}case"array":return`array of ${cS(t.value)}`;case"one-of":{let e=t.values.map(r=>cS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function lS(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=>!lS(r,e.value));case"one-of":return e.values.some(r=>lS(t,r))}}var _f,VW,Uo,ah,xf=N(()=>{xt();Ut();Bw();_f=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");VW=new WeakMap;Uo=class{},ah=class{}});function Vo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function Ef(t,e,r){return r?Zw(t,e,{policy:r,path:""}):Zw(t,e,null)}function Zw(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]=Zw(a,d,r),r.path=h}else n[o]=Zw(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Xw(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function BW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function fS(t,e,r,n){let i=BW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Ml(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 Al(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Xw(e),r):E8(e,t)}function zo(t,e){return Al(t,e)}function pS(t,e){return Al(e,t)!==void 0}var Il=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 Cf(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return Ef(t,e,jW)}function jW(t){return GW.test(t)?"replace":"merge"}var GW,Tf=N(()=>{Mn();$a();GW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function qW(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ei(n,e)??"").toString())}var Pf,mS=N(()=>{Do();Pf=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&qW(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Ut();mS();We=class t extends Pf{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 Mf(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Mf(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Mf(zo(t,i),o,r)}let n=t.__accessor__;n!=null&&HW(e,n),t[e]=r}}function HW(t,e){if(fe("esri-unknown-property-errors")&&!YW(t,e))throw new We("set:unknown-property",ZW(t,e))}function YW(t,e){return e.metadata[t]!=null}function ZW(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var hS=N(()=>{Ln();xt();Ut();Il()});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=Cf(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){Mf(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=XW(s):c&&(a=Array.isArray(c)?Sf(Yw(c[0])):Yw(c)),t.cast=JW(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Jw(t,e,r){let n=Cf(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 XW(t){let e=0,r=t;if(_8(t))return dS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(qw(n))return e===0?Hw(n):sh(Hw(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 JW(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ai=N(()=>{Ut();xf();Il();Tf();hS()});var Kw,gS=N(()=>{Kw=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,Qw=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 to(t,e,r){if(e0)return wS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return to(r0,t,e)}function wS(t,e,r){let n=e0;e0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){t0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),e0=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=r0,e.onTrackingEnd()}else dh=r0}function yS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=t0;t0=!1,e.flags&at.AutoTracked?wS(e.trackingTarget,e.metadata.get,t):bS(t,e),t0=r}function bS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,wS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||KW;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Xw(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),yS(t,o))}return r?t[n]:void 0}var r0,uh,dh,e0,t0,KW,xs=N(()=>{xt();Ut();$a();Qw();lh();r0=new Wo,uh=[],dh=r0;e0=!1,t0=!1;KW=[]});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(()=>{mS();fh=class extends Pf{constructor(e,r,n){super(e,r,n)}};fh.prototype.type="warning"});function n0(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var vS=N(()=>{});function SS(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||rB(t)&&ys("read.reader",QW(t),e))}function QW(t){let e=t.ndimArray??0;if(e>1)return tB(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 xS(t)}function xS(t){return"type"in t?eB(t.type):nB(t.types)}function eB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void _S().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 tB(t){let e=xS(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=xS(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(!n0(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?ES(e.Type):F8(e.Type))}function rB(t){return"types"in t?F8(t.types):ES(t.type)}function ES(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(!ES(t.typeMap[e]))return!1;return!0}function nB(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 _S().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=iB(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 _S().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function iB(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 _S,$8=N(()=>{Ut();Do();O8();Tf();vS();_S=()=>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 CS(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&&n0(t.type))?e.write.writer=cB:r>1?e.write.writer=lB(r):e.types?Array.isArray(e.types)?e.write.writer=sB(e.types[0]):e.write.writer=oB(e.types):e.write.writer=ph}function oB(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 sB(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){ys(r,i0(t,n),e)}function i0(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?aB(t):t}function aB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function cB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>i0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[i0(t,n)],ys(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):i0(t,e)}function lB(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]}ys(n,o,r)}}var q8=N(()=>{Ln();Ut();Do();vS()});function H8(t,e){return PS(t,"any",e?.origin)}function o0(t,e){return PS(t,"read",e?.origin)}function Y8(t,e){return PS(t,"write",e?.origin)}function PS(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 uB(t){let e=dB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?fB(n):e;SS(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),CS(i,n)}SS(e,t.json,!0),CS(e,t.json)}function dB(t){return t.json.types?TS(t.json):t.type?Z8(t):TS(t)}function fB(t){return t.type?Z8(t):TS(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!qw(r);)r=r[0],e++;return{type:r,ndimArray:e}}function TS(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),uB(t))}var s0=N(()=>{xf();k8();$8();B8();q8()});function Ct(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,mB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!MS.has(i.initialize)&&(MS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!AS.has(i.destroy)&&(AS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);MS.clear(),AS.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[Kw];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 pB(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 mB(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:pB(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 MS,AS,J8,qn=N(()=>{xt();Ut();gS();ch();Tf();xs();s0();MS=new Set,AS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function hB(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;gB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function gB(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 N$=Object.defineProperty;var MC=(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 AC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ao=(t,e)=>{for(var r in e)N$(t,r,{get:e[r],enumerable:!0})};function kV(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 y3(t,e,r){let{subscribe:n}=OV(e);return n(i=>{i.some(s=>kV(t,s.target))&&r()})}function OV(t){let e=t.join(","),r=t2[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(),t2[e]=void 0)}}};return t2[e]=o,o}function NV(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 b3(t,e,r){return NV(t,`[${e}]`)?.getAttribute(e)??r}function qt(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function mm(t,e,...r){try{return await t?.call(e,...r)}catch(n){console.error(n,t)}}async function $V(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return r2[i]??(r2[i]=v3(t,n)),await r2[i]}async function v3(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===dw?{}:await v3(dw,e)}function n2(t){let e=b3(t,"lang",globalThis.navigator?.language||dw);return{lang:e,t9nLocale:_3(e)}}function _3(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=FV[i]??i,DV.has(i)?i:r?_3(n):dw}function S3(t,e,r,n){let i,o=()=>void UV(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),y3(t,["lang"],o)}async function UV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=n2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await $V(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function x3(t,e){let r=e>zV?WV:e/BV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}var Ro,t2,RV,DV,dw,FV,r2,fw,VV,zV,WV,BV,hm=N(()=>{"use strict";Ro=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};t2={};RV=["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"],DV=new Set(RV),dw="en",FV={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"};r2={};fw=t=>t.replace(VV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),VV=/[A-Z]+(?![a-z])|[A-Z]/gu;zV=4e3,WV=2e3,BV=4});var ws,mw,o2,i2,E3=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(ws||(ws={}));mw=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,ws.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,ws.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,ws.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new o2(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,ws.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,ws.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,ws.ALL)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(let[r,n]of this._db)r.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,r,n,i){let o=this._users.get(e.split(i2)[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(i2)[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(i2)[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,ws.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)}},o2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},i2=":"});var gm,C3=N(()=>{E3();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new mw,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,xt=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 s2=N(()=>{xt()});var hw,Sa=N(()=>{hw=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 gw(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 a2(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;Hi.clear();for(let c=0;c<n;++c)Hi.add(e[c]);i=i||T3;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Hi.has(t[c])&&(o?.push(t[c]),Hi.delete(t[c]),t[c]=t[r-1],--r,--c,Hi.size===0||r===0))return Hi.clear(),r;for(let c=0;c<s;++c)if(Hi.has(t[c])&&(o?.push(t[c]),Hi.delete(t[c]),t[c]=t[r-1],--r,--c,Hi.size===0||r===0))return Hi.clear(),r;return Hi.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 jV,Toe,wm,T3,Hi,Poe,Kd=N(()=>{s2();Sa();jV=1.5,Toe=1/jV;wm=class{constructor(){this.last=0}},T3=new wm;Hi=new Set;Poe=new hw});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 Ioe,U3=N(()=>{xt();Ioe=2**32-1});function ww(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&ww(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=ZV(t);if(e!=null)return e;if(qV(t))return t.clone();if(HV(t))return t.map(Ht);if(YV(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 qV(t){return typeof t.clone=="function"}function HV(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function YV(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 ZV(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 yw(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)&&gw(t,e):t instanceof Set?e instanceof Set&&JV(t,e):t instanceof Map?e instanceof Map&&KV(t,e):!!V3(t)&&V3(e)&&XV(t,e))}function XV(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 JV(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function KV(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(()=>{Kd();U3()});function z3(t,e,r=!1){return B3(t,e,r)}function Ei(t,e){if(e!=null)return e[t]||W3(t.split("."),!1,e)}function ys(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(QV,typeof e=="object"?(r,n)=>G3(Ei(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 QV,xa=N(()=>{Do();QV=/\{([^}]+)\}/g});var bs,bw,vw,_w,Yi,Qd,sr,Zi,Ea=N(()=>{bs=class extends Error{},bw=class extends bs{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},vw=class extends bs{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},_w=class extends bs{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Yi=class extends bs{},Qd=class extends bs{constructor(e){super(`Invalid unit ${e}`)}},sr=class extends bs{},Zi=class extends bs{constructor(){super("Zone is an abstract class")}}});var Le,Xi,ii,Ca,bm,c2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,l2,Nm,Rm,Dm,Fm,$m=N(()=>{Le="numeric",Xi="short",ii="long",Ca={year:Le,month:Le,day:Le},bm={year:Le,month:Xi,day:Le},c2={year:Le,month:Xi,day:Le,weekday:Xi},vm={year:Le,month:ii,day:Le},_m={year:Le,month:ii,day:Le,weekday:ii},Sm={hour:Le,minute:Le},xm={hour:Le,minute:Le,second:Le},Em={hour:Le,minute:Le,second:Le,timeZoneName:Xi},Cm={hour:Le,minute:Le,second:Le,timeZoneName:ii},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:Xi},Am={hour:Le,minute:Le,second:Le,hourCycle:"h23",timeZoneName:ii},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:Xi,day:Le,hour:Le,minute:Le},Om={year:Le,month:Xi,day:Le,hour:Le,minute:Le,second:Le},l2={year:Le,month:Xi,day:Le,weekday:Xi,hour:Le,minute:Le},Nm={year:Le,month:ii,day:Le,hour:Le,minute:Le,timeZoneName:Xi},Rm={year:Le,month:ii,day:Le,hour:Le,minute:Le,second:Le,timeZoneName:Xi},Dm={year:Le,month:ii,day:Le,weekday:ii,hour:Le,minute:Le,timeZoneName:ii},Fm={year:Le,month:ii,day:Le,weekday:ii,hour:Le,minute:Le,second:Le,timeZoneName:ii}});var _r,_l=N(()=>{Ea();_r=class{get type(){throw new Zi}get name(){throw new Zi}get ianaName(){return this.name}get isUniversal(){throw new Zi}offsetName(e,r){throw new Zi}formatOffset(e,r){throw new Zi}offset(e){throw new Zi}equals(e){throw new Zi}get isValid(){throw new Zi}}});var u2,Ta,xw=N(()=>{An();_l();u2=null,Ta=class t extends _r{static get instance(){return u2===null&&(u2=new t),u2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return Ew(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 ez(t){let e=f2.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"}),f2.set(t,e)),e}function rz(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 nz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=tz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var f2,tz,d2,ar,Ma=N(()=>{An();_l();f2=new Map;tz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};d2=new Map,ar=class t extends _r{static create(e){let r=d2.get(e);return r===void 0&&d2.set(e,r=new t(e)),r}static resetCache(){d2.clear(),f2.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 Ew(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=ez(this.name),[i,o,s,c,a,d,h]=n.formatToParts?nz(n,r):rz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=ef({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 iz(t,e={}){let r=JSON.stringify([t,e]),n=H3[r];return n||(n=new Intl.ListFormat(t,e),H3[r]=n),n}function m2(t,e={}){let r=JSON.stringify([t,e]),n=p2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),p2.set(r,n)),n}function oz(t,e={}){let r=JSON.stringify([t,e]),n=h2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),h2.set(r,n)),n}function sz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=g2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),g2.set(i,o)),o}function az(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function Y3(t){let e=w2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),w2.set(t,e)),e}function cz(t){let e=y2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Z3,...e}),y2.set(t,e)}return e}function lz(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=m2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=m2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function uz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function dz(t){let e=[];for(let r=1;r<=12;r++){let n=Pe.utc(2009,r,1);e.push(t(n))}return e}function fz(t){let e=[];for(let r=1;r<=7;r++){let n=Pe.utc(2016,11,13+r);e.push(t(n))}return e}function Cw(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function pz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Y3(t.locale).numberingSystem==="latn"}var H3,p2,h2,g2,Um,w2,y2,b2,v2,_2,Z3,pt,zm=N(()=>{An();Mw();Aa();Ia();Ma();H3={};p2=new Map;h2=new Map;g2=new Map;Um=null;w2=new Map;y2=new Map;b2=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=oz(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):tf(e,3);return tr(r,this.padTo)}}},v2=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=m2(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()}},_2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&Tw()&&(this.rtf=sz(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":az()),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,p2.clear(),h2.clear(),g2.clear(),w2.clear(),y2.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]=lz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=uz(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=pz(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 Cw(this,e,S2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=dz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return Cw(this,e,x2,()=>{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]=fz(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Cw(this,void 0,()=>E2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Pe.utc(2016,11,13,9),Pe.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Cw(this,e,C2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Pe.utc(-40,1,1),Pe.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 b2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new v2(e,this.intl,r)}relFormatter(e={}){return new _2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return iz(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:Pw()?cz(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 P2,Et,rf=N(()=>{An();_l();P2=null,Et=class t extends _r{static get utcInstance(){return P2===null&&(P2=new t(0)),P2}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(Sl(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 nf,M2=N(()=>{_l();nf=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 Ji(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"?Et.utcInstance:Et.parseSpecifier(n)||ar.create(t)}else return Ki(t)?Et.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new nf(t)}var Aw=N(()=>{_l();Ma();rf();M2();An();xw()});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(I2.hanidec)!==-1)e+=mz.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(){A2.clear()}function Ci({numberingSystem:t},e=""){let r=t||"latn",n=A2.get(r);n===void 0&&(n=new Map,A2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${I2[r]}${e}`),n.set(e,i)),i}var I2,K3,mz,A2,L2=N(()=>{I2={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]},mz=I2.hanidec.replace(/[\[|\]]/g,"").split("");A2=new Map});var t6,r6,n6,i6,o6,s6,a6,c6,ft,Aa=N(()=>{xw();Ma();zm();Ia();Aw();An();L2();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 Ji(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(),Pe.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 Ti(t,e){return new Br("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Iw(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+(El(t)?u6:l6)[e-1]}function f6(t,e){let r=El(t)?u6:l6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function Lw(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=Lw(Iw(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=xl(d,e,r)):a>xl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function k2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=Lw(Iw(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 kw(t){let{year:e,month:r,day:n}=t,i=d6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function O2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=f6(e,r);return{year:e,month:n,day:i,...jm(t)}}function N2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Yi("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=oi(t.weekNumber,1,xl(t.weekYear,e,r)),o=oi(t.weekday,1,7);return n?i?o?!1:Ti("weekday",t.weekday):Ti("week",t.weekNumber):Ti("weekYear",t.weekYear)}function m6(t){let e=Gm(t.year),r=oi(t.ordinal,1,La(t.year));return e?r?!1:Ti("ordinal",t.ordinal):Ti("year",t.year)}function R2(t){let e=Gm(t.year),r=oi(t.month,1,12),n=oi(t.day,1,of(t.year,t.month));return e?r?n?!1:Ti("day",t.day):Ti("month",t.month):Ti("year",t.year)}function D2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=oi(e,0,23)||e===24&&r===0&&n===0&&i===0,s=oi(r,0,59),c=oi(n,0,59),a=oi(i,0,999);return o?s?c?a?!1:Ti("millisecond",i):Ti("second",n):Ti("minute",r):Ti("hour",e)}var l6,u6,F2=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 Ki(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 Tw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Pw(){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 $2(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(!oi(t.firstDay,1,7)||!oi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!oi(e,1,7)))throw new sr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function oi(t,e,r){return Gm(t)&&t>=e&&t<=r}function hz(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 vs(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 tf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function El(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return El(t)?366:365}function of(t,e){let r=hz(e-1,12)+1,n=t+(e-r)/12;return r===2?El(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ef(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-Lw(Iw(t,1,e),r)+e-1}function xl(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 Ew(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 Sl(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 U2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new sr(`Invalid unit value ${t}`);return e}function sf(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=U2(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();F2()});function S2(t){switch(t){case"narrow":return[...wz];case"short":return[...V2];case"long":return[...gz];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 x2(t){switch(t){case"narrow":return[...yz];case"short":return[...W2];case"long":return[...z2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function C2(t){switch(t){case"narrow":return[..._z];case"short":return[...vz];case"long":return[...bz];default:return null}}function b6(t){return E2[t.hour<12?0:1]}function v6(t,e){return x2(e)[t.weekday-1]}function _6(t,e){return S2(e)[t.month-1]}function S6(t,e){return C2(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 gz,V2,wz,z2,W2,yz,E2,bz,vz,_z,Mw=N(()=>{$m();An();gz=["January","February","March","April","May","June","July","August","September","October","November","December"],V2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wz=["J","F","M","A","M","J","J","A","S","O","N","D"];z2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],yz=["M","T","W","T","F","S","S"];E2=["AM","PM"],bz=["Before Christ","Anno Domini"],vz=["BC","AD"],_z=["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 Sz,Gr,Ym=N(()=>{Mw();$m();An();Sz={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 Sz[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 cf(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function lf(...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 uf(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]]=vs(e[r+i]);return[n,null,r+i]}}function af(t,e,r){let n=t[e];return Ge(n)?r:vs(n)}function Lz(t,e){return[{year:af(t,e),month:af(t,e+1,1),day:af(t,e+2,1)},null,e+3]}function df(t,e){return[{hours:af(t,e,0),minutes:af(t,e+1,0),seconds:af(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=Sl(t[e+1],t[e+2]),i=r?null:Et.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?ar.create(t[e]):null;return[{},r,e+1]}function Nz(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 j2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(vs(e)):vs(e),month:V2.indexOf(r)+1,day:vs(n),hour:vs(i),minute:vs(o)};return s&&(c.second=vs(s)),t&&(c.weekday=t.length>3?z2.indexOf(t)+1:W2.indexOf(t)+1),c}function Fz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=j2(e,i,n,r,o,s,c),E;return a?E=Rz[a]:d?E=0:E=Sl(h,g),[v,new Et(E)]}function $z(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[j2(e,i,n,r,o,s,c),Et.utcInstance]}function Wz(t){let[,e,r,n,i,o,s,c]=t;return[j2(e,c,r,n,i,o,s),Et.utcInstance]}function L6(t){return uf(t,[Bz,I6],[Gz,Hz],[jz,Yz],[qz,Zz])}function k6(t){return uf($z(t),[Dz,Fz])}function O6(t){return uf(t,[Uz,E6],[Vz,E6],[zz,Wz])}function N6(t){return uf(t,[Oz,Nz])}function R6(t){return uf(t,[kz,Xz])}function D6(t){return uf(t,[Jz,I6],[Kz,Qz])}var C6,P6,xz,B2,M6,G2,Ez,Cz,Tz,Pz,Mz,Az,A6,Iz,kz,Oz,Rz,Dz,Uz,Vz,zz,Bz,Gz,jz,qz,I6,Hz,Yz,Zz,Xz,Jz,Kz,Qz,q2=N(()=>{An();Mw();rf();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))?)/,xz=`(?:${P6.source}?(?:\\[(${C6.source})\\])?)?`,B2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,M6=RegExp(`${B2.source}${xz}`),G2=RegExp(`(?:T${M6.source})?`),Ez=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Cz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Tz=/(\d{4})-?(\d{3})/,Pz=T6("weekYear","weekNumber","weekDay"),Mz=T6("year","ordinal"),Az=/(\d{4})-(\d\d)-(\d\d)/,A6=RegExp(`${B2.source} ?(?:${P6.source}|(${C6.source}))?`),Iz=RegExp(`(?: ${A6.source})?`);kz=RegExp(`^T?${B2.source}$`),Oz=/^-?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)?)?)$/;Rz={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};Dz=/^(?:(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)))$/;Uz=/^(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$/,Vz=/^(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$/,zz=/^(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})$/;Bz=cf(Ez,G2),Gz=cf(Cz,G2),jz=cf(Tz,G2),qz=cf(M6),I6=lf(Lz,df,Zm,Xm),Hz=lf(Pz,df,Zm,Xm),Yz=lf(Mz,df,Zm,Xm),Zz=lf(df,Zm,Xm);Xz=lf(df);Jz=cf(Az,Iz),Kz=cf(A6),Qz=lf(df,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 rW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=V6(t,e)<0?-1:1;Cl.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),Cl.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 nW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var F6,U6,eW,Pi,ff,tW,Cl,rW,rr,Jm=N(()=>{Ea();Ym();Wm();zm();q2();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}},eW={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},Pi=146097/400,ff=146097/4800,tW={years:{quarters:4,months:12,weeks:Pi/7,days:Pi,hours:Pi*24,minutes:Pi*24*60,seconds:Pi*24*60*60,milliseconds:Pi*24*60*60*1e3},quarters:{months:3,weeks:Pi/28,days:Pi/4,hours:Pi*24/4,minutes:Pi*24*60/4,seconds:Pi*24*60*60/4,milliseconds:Pi*24*60*60*1e3/4},months:{weeks:ff/7,days:ff,hours:ff*24,minutes:ff*24*60,seconds:ff*24*60*60,milliseconds:ff*24*60*60*1e3},...U6},Cl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rW=Cl.slice(0).reverse();rr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?tW:eW;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:sf(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ki(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 _w(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 Qd(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=Cl.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+=tf(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},Pe.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 Cl)(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]=U2(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,...sf(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=nW(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 Cl)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;Ki(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ki(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 Cl)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function iW(t,e){return!t||!t.isValid?_s.invalid("missing or invalid start"):!e||!e.isValid?_s.invalid("missing or invalid end"):e<t?_s.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 pf,_s,H2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();$m();pf="Invalid Interval";_s=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 vw(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=mf(e),i=mf(r),o=iW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=rr.fromDurationLike(r),i=mf(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=rr.fromDurationLike(r),i=mf(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=Pe.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Pe.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(mf).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()})`:pf}[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):pf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:pf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:pf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:pf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:pf}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 Ss,Y2=N(()=>{Ia();Aa();zm();Ma();Aw();An();Ss=class{static hasDST(e=ft.defaultZone){let r=Pe.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 Ji(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:Tw(),localeWeek:Pw()}}}});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 oW(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]=oW(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 cW(t){return t.replace(/\./g,"\\.?").replace(H6,q6)}function G6(t){return t.replace(/\./g,"").replace(H6," ").toLowerCase()}function Qi(t,e){return t===null?null:{regex:RegExp(t.map(cW).join("|")),deser:([r])=>t.findIndex(n=>G6(r)===G6(n))+e}}function j6(t,e){return{regex:t,deser:([,r,n])=>Sl(r,n),groups:e}}function Ow(t){return{regex:t,deser:([e])=>e}}function lW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function uW(t,e){let r=Ci(e),n=Ci(e,"{2}"),i=Ci(e,"{3}"),o=Ci(e,"{4}"),s=Ci(e,"{6}"),c=Ci(e,"{1,2}"),a=Ci(e,"{1,3}"),d=Ci(e,"{1,6}"),h=Ci(e,"{1,9}"),g=Ci(e,"{2,4}"),v=Ci(e,"{4,6}"),E=F=>({regex:RegExp(lW(F.val)),deser:([W])=>W,literal:!0}),k=(F=>{if(t.literal)return E(F);switch(F.val){case"G":return Qi(e.eras("short"),0);case"GG":return Qi(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 Qi(e.months("short",!0),1);case"MMMM":return Qi(e.months("long",!0),1);case"L":return gt(c);case"LL":return gt(n);case"LLL":return Qi(e.months("short",!1),1);case"LLLL":return Qi(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 Ow(h);case"uu":return Ow(c);case"uuu":return gt(r);case"a":return Qi(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 Qi(e.weekdays("short",!1),1);case"EEEE":return Qi(e.weekdays("long",!1),1);case"ccc":return Qi(e.weekdays("short",!0),1);case"cccc":return Qi(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 Ow(/[a-z_+-/]{1,256}?/i);case" ":return Ow(/[^\S\n\r]/);default:return E(F)}})(t)||{invalidReason:sW};return k.token=t,k}function fW(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=dW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function pW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function mW(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 hW(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 Et(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 gW(){return Z2||(Z2=Pe.fromMillis(1555555555555)),Z2}function wW(t,e){if(t.literal)return t;let r=Gr.macroTokenToFormatOpts(t.val),n=K2(r,e);return n==null||n.includes(void 0)?t:n}function X2(t,e){return Array.prototype.concat(...t.map(r=>wW(r,e)))}function J2(t,e,r){return new Km(t,r).explainFromTokens(e)}function Y6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=J2(t,e,r);return[n,i,o,s]}function K2(t,e){if(!t)return null;let n=Gr.create(e,t).dtFormatter(gW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>fW(s,t,o))}var sW,aW,q6,H6,dW,Z2,Km,Z6=N(()=>{An();Ym();rf();Ma();Ia();L2();Ea();sW="missing Intl.DateTimeFormat.formatToParts support";aW="\xA0",q6=`[ ${aW}]`,H6=new RegExp(q6,"g");dW={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"}};Z2=null;Km=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=X2(Gr.parseFormat(r),e),this.units=this.tokens.map(n=>uW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=pW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=mW(e,this.regex,this.handlers),[i,o,s]=n?hW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Yi("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 eS(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function tS(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Tl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Pe({...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 Nw(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 Dw(t,e,r){return n8(ef(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,of(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=ef(o),[a,d]=n8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function hf(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=Pe.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Pe.invalid(new Br("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Rw(t,e,r=!0){return t.isValid?Gr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function rS(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 SW(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 Qd(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 SW(t)}}function xW(t){if(eh===void 0&&(eh=ft.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=nS.get(e);return r===void 0&&(r=t.offset(eh),nS.set(e,r)),r}function e8(t,e){let r=Ji(e.zone,ft.defaultZone);if(!r.isValid)return Pe.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=R2(t)||D2(t);if(s)return Pe.invalid(s);let c=xW(r);[i,o]=Dw(t,c,r)}return new Pe({ts:i,zone:r,loc:n,o})}function t8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=tf(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 mf(t){if(Pe.isDateTime(t))return t;if(t&&t.valueOf&&Ki(t.valueOf()))return Pe.fromJSDate(t);if(t&&typeof t=="object")return Pe.fromObject(t);throw new sr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Q2,X6,i8,yW,bW,o8,vW,_W,eh,nS,Pe,Ia=N(()=>{Jm();H2();Aa();Y2();Ym();rf();zm();An();Aw();B6();q2();Z6();F2();$m();Ea();Wm();Q2="Invalid DateTime",X6=864e13;i8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yW={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o8=["year","month","day","hour","minute","second","millisecond"],vW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_W=["year","ordinal","hour","minute","second","millisecond"];nS=new Map,Pe=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=Ki(e.o)&&!e.old?e.o:r.offset(this.ts);i=Nw(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=Et.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=Ji(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(Ki(e))return e<-X6||e>X6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Ji(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(Ki(e))return new t({ts:e*1e3,zone:Ji(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new sr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Ji(r.zone,ft.defaultZone);if(!n.isValid)return t.invalid(Qm(n));let i=pt.fromObject(r),o=sf(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=N2(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 Yi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Yi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,F,W,B=Nw(a,d);k?(F=vW,W=yW,B=Bm(B,s,c)):h?(F=_W,W=bW,B=kw(B)):(F=o8,W=i8);let X=!1;for(let Te of F){let Ne=o[Te];Ge(Ne)?X?o[Te]=W[Te]:o[Te]=B[Te]:X=!0}let z=k?p6(o,s,c):h?m6(o):R2(o),Z=z||D2(o);if(Z)return t.invalid(Z);let re=k?k2(o,s,c):h?O2(o):o,[$,me]=Dw(re,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 hf(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=k6(e);return hf(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=O6(e);return hf(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):hf(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 hf(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 bw(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=K2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return X2(Gr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,nS.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?eS(this).weekYear:NaN}get weekNumber(){return this.isValid?eS(this).weekNumber:NaN}get weekday(){return this.isValid?eS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?tS(this).weekday:NaN}get localWeekNumber(){return this.isValid?tS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?tS(this).weekYear:NaN}get ordinal(){return this.isValid?kw(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ss.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=ef(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=Nw(a,s),g=Nw(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Tl(this,{ts:a}),Tl(this,{ts:d})]:[this]}get isInLeapYear(){return El(this.year)}get daysInMonth(){return of(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?xl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?xl(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(Et.instance(e),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Ji(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]=Dw(s,o,e)}return Tl(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 Tl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=sf(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=N2(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 Yi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Yi("Can't mix ordinal dates with month/day");let g;o?g=k2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(of(g.year,g.month),g.day))):g=O2({...kw(this.c),...r});let[v,E]=Dw(g,this.o,this.zone);return Tl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e);return Tl(this,J6(this,r))}minus(e){if(!this.isValid)return this;let r=rr.fromDurationLike(e).negate();return Tl(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):Q2}toLocaleString(e=Ca,r={}){return this.isValid?Gr.create(this.loc.clone(r),e).formatDateTime(this):Q2}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=rS(this,s);return c+="T",c+=K6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?rS(this,e==="extended"):null}toISOWeekDate(){return Rw(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 Rw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?rS(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")),Rw(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Q2}[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?_s.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 $2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new sr("max requires all arguments be DateTimes");return $2(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 J2(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):hf(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 c2}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 l2}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();H2();Y2();_l();rf();Ma();M2();xw();Aa()});function Pl(t){return t instanceof _r?t===jr.instance:t?.toString().toLowerCase()==="unknown"}function Fw(t){return Pl(t)?jr.instance:t}var jr,th=N(()=>{In();jr=class{static{this.instance=new ar("Etc/UTC")}}});function gf(t,e,r){return t<e?t-e:t>r?t-r:0}function wf(t,e,r){return t<e?e:t>r?r:t}function eo(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=Et.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=ar.create(t);if(!r.isValid){if(e)throw new iS($w.TimeZoneNotRecognized);return null}return r}var $w,EW,iS,rh,s8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})($w||($w={}));EW={[$w.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},iS=class t extends Error{constructor(e,r){super(Fo(EW[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=Pe.local(e,r).daysInMonth,h=Pe.fromObject({day:wf(n,1,d),year:e,month:wf(r,1,12),hour:wf(i,0,23),minute:wf(o,0,59),second:wf(s,0,59),millisecond:wf(c,0,999)},{zone:eo(a)});return h=h.plus({months:gf(r,1,12),days:gf(n,1,d),hours:gf(i,0,23),minutes:gf(o,0,59),seconds:gf(s,0,59),milliseconds:gf(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=eo(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(Pe.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=eo(r);return new t(Pe.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Pe.fromMillis(e,{zone:jr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Pe.fromMillis(e.getTime(),{zone:jr.instance}))}static epochToArcadeDate(e,r="system"){let n=eo(r);return new t(Pe.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=eo(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=eo(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=eo(e);return new t(Pe.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Pe.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=Pe.fromISO(e,{setZone:!0});return new t(r)}}});function wt(t){return t?{remove(){t&&(t(),t=void 0)}}:CW}function TW(t){t.forEach(e=>e?.remove())}function Ml(t){return wt(()=>TW(t))}var CW,jn=N(()=>{CW={remove:()=>{}}});function c8(){let t=oS?.getAttribute("lang"),e=globalThis.navigator?.language;return MW??t??e??"en"}function Mi(){return nh===void 0&&(nh=c8()),nh}function yf(t=Mi()){return AW.exec(t)?.groups}function sS(t){return Uw.push(t),wt(()=>{Uw.splice(Uw.indexOf(t),1)})}function bf(t){return Vw.push(t),wt(()=>Vw.splice(Vw.indexOf(t),1))}function a8(){let t=PW??c8();nh!==t&&([...Vw].forEach(e=>e(t)),nh=t,[...Uw].forEach(e=>e(t)))}var PW,nh,MW,oS,AW,Uw,Vw,Ra=N(()=>{jn();xt();MW=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,oS=globalThis.document?.documentElement;AW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;Uw=[];Vw=[];globalThis.addEventListener?.("languagechange",a8),oS&&new MutationObserver(()=>{a8()}).observe(oS,{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 Pe.fromObject({day:this.day,month:this.month,year:this.year},{zone:eo(e)})}toDateTimeLuxon(e){return Pe.fromObject({day:this.day,month:this.month,year:this.year},{zone:eo(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:Mi(),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 Pe.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=Pe.fromMillis(e,{zone:Et.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Pe.fromSeconds(e,{zone:Et.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=Pe.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Pe.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Pe.fromJSDate(new Date).setZone(eo(e));return new t(r.year,r.month,r.day)}}});var J,IW,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={}));IW={[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(IW[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,sn,oh=N(()=>{In();f8="esri.core.sql.SqlTimeStampOffset",sn=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??=Pe.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(Pe.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 si=N(()=>{});var zw,Ww=N(()=>{zw="20250429"});var yt,Fa=N(()=>{xt();Do();Ww();yt={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(yt,globalThis.esriConfig,!0),delete yt.has),!yt.assetsPath){{let t="4.33.0";yt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${zw}/assets`}yt.defaultAssetsPath=yt.assetsPath}});function LW(t,e,...r){console[t](`[${e}]`,...r)}function kW(...t){return q3(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var p8,nt,Ut=N(()=>{Fa();xt();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=kW(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 yt.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",LW)}_matchLevel(e){let r=yt.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 vf(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var Bw=N(()=>{});function OW(t){return t==null?t:new Date(t)}function NW(t){return t==null?t:!!t}function RW(t){return t==null?t:t.toString()}function uS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function DW(t){return t==null?t:Math.round(parseFloat(t))}function FW(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 Gw(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 $W(t,e){if(!e?.constructor||!w8(e.constructor))return aS(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):(aS(t,e),e):new t(e):e}function aS(t,e){return!!g8(e)&&(_f().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+jw(t)+"'"),!0)}function UW(t,e){return e==null?e:w8(t)?$W(t,e):Gw(t,e)?aS(t,e)?e:new t(e):e}function jw(t){return t?.prototype?.declaredClass||"unknown"}function zW(t){switch(t){case Number:return e=>uS(e);case Uo:return DW;case Boolean:return NW;case String:return RW;case Date:return OW;case ah:return FW;default:return vf(VW,t,()=>UW.bind(null,t))}}function $o(t,e){let r=zW(t);return arguments.length===1?r:r(e)}function Sf(t,e,r){return arguments.length===1?Sf.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?Sf(r=>$o(t,r)):Sf(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 qw(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function Hw(t,e){if(arguments.length===2)return Hw(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=>!Gw(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),_f().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=>jw(g)).join(", ")),_f().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):_f().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Yw(t,e){if(arguments.length===2)return Yw(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(jw(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&&!Gw(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return _f().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(!Gw(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 dS(t){switch(t.type){case"native":return $o(t.value);case"array":return Sf(dS(t.value));case"one-of":return WW(t);default:return null}}function WW(t){let e=null;return(r,n)=>lS(r,t)?r:(e==null&&(e=cS(t)),_f().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function cS(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 jw(t.value)}case"array":return`array of ${cS(t.value)}`;case"one-of":{let e=t.values.map(r=>cS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function lS(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=>!lS(r,e.value));case"one-of":return e.values.some(r=>lS(t,r))}}var _f,VW,Uo,ah,xf=N(()=>{xt();Ut();Bw();_f=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");VW=new WeakMap;Uo=class{},ah=class{}});function Vo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function Ef(t,e,r){return r?Zw(t,e,{policy:r,path:""}):Zw(t,e,null)}function Zw(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]=Zw(a,d,r),r.path=h}else n[o]=Zw(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Xw(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function BW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function fS(t,e,r,n){let i=BW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Ml(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 Al(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Xw(e),r):E8(e,t)}function zo(t,e){return Al(t,e)}function pS(t,e){return Al(e,t)!==void 0}var Il=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 Cf(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return Ef(t,e,jW)}function jW(t){return GW.test(t)?"replace":"merge"}var GW,Tf=N(()=>{Mn();$a();GW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function qW(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ei(n,e)??"").toString())}var Pf,mS=N(()=>{Do();Pf=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&qW(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Ut();mS();We=class t extends Pf{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 Mf(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Mf(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Mf(zo(t,i),o,r)}let n=t.__accessor__;n!=null&&HW(e,n),t[e]=r}}function HW(t,e){if(fe("esri-unknown-property-errors")&&!YW(t,e))throw new We("set:unknown-property",ZW(t,e))}function YW(t,e){return e.metadata[t]!=null}function ZW(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var hS=N(()=>{Ln();xt();Ut();Il()});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=Cf(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){Mf(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=XW(s):c&&(a=Array.isArray(c)?Sf(Yw(c[0])):Yw(c)),t.cast=JW(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Jw(t,e,r){let n=Cf(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 XW(t){let e=0,r=t;if(_8(t))return dS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(qw(n))return e===0?Hw(n):sh(Hw(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 JW(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ai=N(()=>{Ut();xf();Il();Tf();hS()});var Kw,gS=N(()=>{Kw=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,Qw=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 to(t,e,r){if(e0)return wS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return to(r0,t,e)}function wS(t,e,r){let n=e0;e0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){t0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),e0=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=r0,e.onTrackingEnd()}else dh=r0}function yS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=t0;t0=!1,e.flags&at.AutoTracked?wS(e.trackingTarget,e.metadata.get,t):bS(t,e),t0=r}function bS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,wS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||KW;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Xw(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),yS(t,o))}return r?t[n]:void 0}var r0,uh,dh,e0,t0,KW,xs=N(()=>{xt();Ut();$a();Qw();lh();r0=new Wo,uh=[],dh=r0;e0=!1,t0=!1;KW=[]});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(()=>{mS();fh=class extends Pf{constructor(e,r,n){super(e,r,n)}};fh.prototype.type="warning"});function n0(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var vS=N(()=>{});function SS(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||rB(t)&&ys("read.reader",QW(t),e))}function QW(t){let e=t.ndimArray??0;if(e>1)return tB(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 xS(t)}function xS(t){return"type"in t?eB(t.type):nB(t.types)}function eB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void _S().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 tB(t){let e=xS(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=xS(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(!n0(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?ES(e.Type):F8(e.Type))}function rB(t){return"types"in t?F8(t.types):ES(t.type)}function ES(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(!ES(t.typeMap[e]))return!1;return!0}function nB(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 _S().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=iB(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 _S().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function iB(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 _S,$8=N(()=>{Ut();Do();O8();Tf();vS();_S=()=>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 CS(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&&n0(t.type))?e.write.writer=cB:r>1?e.write.writer=lB(r):e.types?Array.isArray(e.types)?e.write.writer=sB(e.types[0]):e.write.writer=oB(e.types):e.write.writer=ph}function oB(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 sB(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){ys(r,i0(t,n),e)}function i0(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?aB(t):t}function aB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function cB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>i0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[i0(t,n)],ys(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):i0(t,e)}function lB(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]}ys(n,o,r)}}var q8=N(()=>{Ln();Ut();Do();vS()});function H8(t,e){return PS(t,"any",e?.origin)}function o0(t,e){return PS(t,"read",e?.origin)}function Y8(t,e){return PS(t,"write",e?.origin)}function PS(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 uB(t){let e=dB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?fB(n):e;SS(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),CS(i,n)}SS(e,t.json,!0),CS(e,t.json)}function dB(t){return t.json.types?TS(t.json):t.type?Z8(t):TS(t)}function fB(t){return t.type?Z8(t):TS(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!qw(r);)r=r[0],e++;return{type:r,ndimArray:e}}function TS(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),uB(t))}var s0=N(()=>{xf();k8();$8();B8();q8()});function Ct(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,mB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!MS.has(i.initialize)&&(MS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!AS.has(i.destroy)&&(AS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);MS.clear(),AS.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[Kw];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 pB(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 mB(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:pB(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 MS,AS,J8,qn=N(()=>{xt();Ut();gS();ch();Tf();xs();s0();MS=new Set,AS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function hB(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;gB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function gB(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+=`
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
\f\r]`,Zh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,XA=/-->/g,JA=/>/g,Vl=RegExp(`>|${Zx}(?:([^\\s"'>=/]+)(${Zx}*=${Zx}*(?:[^
|
|
11
11
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),KA=/'/g,QA=/"/g,rI=/^(?:script|style|textarea|title)$/i,e4=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=e4(1),jo=e4(2),nI=e4(3),Hr=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),eI=new WeakMap,zl=Wl.createTreeWalker(Wl,129);oI=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=Zh;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===Zh?h[1]==="!--"?s=XA:h[1]!==void 0?s=JA:h[2]!==void 0?(rI.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Vl):h[3]!==void 0&&(s=Vl):s===Vl?h[0]===">"?(s=i??Zh,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Vl:h[3]==='"'?QA:KA):s===QA||s===KA?s=Vl:s===XA||s===JA?s=Zh:(s=Vl,i=void 0);let E=s===Vl&&t[c+1].startsWith("/>")?" ":"";o+=s===Zh?a+Sq:g>=0?(n.push(d),a.slice(0,g)+Jx+a.slice(g)+Ms+E):a+Ms+(g===-2?c:E)}return[iI(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Kh=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]=oI(e,r);if(this.el=t.createElement(d,n),zl.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=zl.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(Jx)){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]==="."?hy:M[1]==="?"?gy:M[1]==="@"?wy:Gl}),i.removeAttribute(g)}else g.startsWith(Ms)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(rI.test(i.tagName)){let g=i.textContent.split(Ms),v=g.length-1;if(v>0){i.textContent=py?py.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],Xh()),zl.nextNode(),a.push({type:2,index:++o});i.append(g[v],Xh())}}}else if(i.nodeType===8)if(i.data===Kx)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=Wl.createElement("template");return n.innerHTML=e,n}};my=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??Wl).importNode(r,!0);zl.currentNode=i;let o=zl.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new Zf(o,o.nextSibling,this,e):a.type===1?d=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(d=new yy(o,this,e)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=zl.nextNode(),s++)}return zl.currentNode=Wl,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++}},Zf=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=Ce,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=Bl(this,e,r),Jh(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Hr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tI(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!==Ce&&Jh(this._$AH)?this._$AA.nextSibling.data=e:this.T(Wl.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=Kh.createElement(iI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new my(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=eI.get(e.strings);return r===void 0&&eI.set(e.strings,r=new Kh(e)),r}k(e){Qx(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(Xh()),this.O(Xh()),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))}},Gl=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Ce,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=Ce}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=Bl(this,e,r,0),s=!Jh(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=Bl(this,c[n+a],r,a),d===Hr&&(d=this._$AH[a]),s||=!Jh(d)||d!==this._$AH[a],d===Ce?e=Ce:e!==Ce&&(e+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(e)}j(e){e===Ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},hy=class extends Gl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},gy=class extends Gl{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},wy=class extends Gl{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=Bl(this,e,r,0)??Ce)===Hr)return;let n=this._$AH,i=e===Ce&&n!==Ce||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Ce&&(n===Ce||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)}},yy=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){Bl(this,e)}},sI={M:Jx,P:Ms,A:Kx,C:1,L:oI,R:my,D:tI,V:Bl,I:Zf,H:Gl,N:gy,U:wy,B:hy,F:yy},xq=Xx.litHtmlPolyfillSupport;xq?.(Kh,Zf),(Xx.litHtmlVersions??=[]).push("3.2.1");t4=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new Zf(e.insertBefore(Xh(),o),o,void 0,r??{})}return i._$AI(t),i}});var qo,Eq,aI=N(()=>{Yh();Yh();Yr();Yr();qo=class extends Ps{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=t4(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Hr}};qo._$litElement$=!0,qo.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:qo});Eq=globalThis.litElementPolyfillSupport;Eq?.({LitElement:qo});(globalThis.litElementVersions??=[]).push("4.1.1")});var r4=N(()=>{});var Zr=N(()=>{Yh();Yr();aI();r4()});function uI(t){return typeof t?.then=="function"}function Qa(t){Qh!==t&&(Qh=t,queueMicrotask(()=>{Qh===t&&(Qh=void 0)}))}function Hl(t){return Qh}function vy(t){if(t===void 0){jl=[];return}let e=jl.indexOf(t);jl=e===-1?[...jl,t]:jl.slice(0,e+1),queueMicrotask(()=>{jl=[]})}function _y(){return jl}function dI(t){Xf!==t&&(Xf=t,queueMicrotask(()=>{Xf===t&&(Xf=void 0)}))}function Cq(){let t=Xf;return Xf=void 0,t}function o4(t){by=!0;try{return t()}finally{by=!1}}function s4(t,e,r){let n=Object.keys(t),i=n.length;Jf===void 0&&queueMicrotask(Kf),Jf??=new Map;let o=Jf.get(t);return o===void 0&&(o={callbacks:[],keyCount:i},Jf.set(t,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let c=d=>qt(e,null,d),a=s[i];a===void 0?c(void 0):t[a]===r?c(a):c(void 0)}),r}function Kf(){Jf?.forEach(({callbacks:t},e)=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Jf=void 0}function a4(t,e,r){let n=t.manager;return n._trackedValue!==Ce&&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)=>qt(e,void 0,r===o?i:void 0)),r}function tg(t=[Hl(),..._y()],e,r){let n=Array.isArray(t)?t:[t],i=n.length+1,o=s=>{i-=1,s!==void 0&&(i=Math.min(i,0)),i===0&&e(s)};n.forEach(s=>s4(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!1}),r));for(let s of n)if("manager"in s&&typeof s.manager=="object"&&s.manager.component===s){a4(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r);break}return r}function cI(t){qt(t,void 0,this)}function lI(t){if(typeof t!="object"&&typeof t!="function"||t===null)return t;let e=new Proxy(t,{get(r,n,i){if(!((n==="exports"||n==="_exports")&&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}var eg,n4,Qh,jl,Xf,Tq,Pq,i4,fI,by,Jf,pI,bt,mI,ql,Sy,Qf=N(()=>{"use strict";hm();Zr();eg=Symbol.for("controller"),n4=t=>typeof t=="object"&&t!==null&&(eg in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t);jl=[];Tq=async(t,e)=>{let r=i4(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},Pq=async t=>{let e=i4(t);return await e.ready,e},i4=t=>{let r=Hl().manager._resolveExports(t);if(r!==void 0)return r;if(n4(t))return t;let n=Cq();if(n!==void 0)return n},fI=!1,by=!1;pI=(t="",e={},r=Hl())=>{let n={emit:i=>{t===""&&Kf();let o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return r.el.dispatchEvent(o),o}};return t===""&&tg(void 0,i=>{t=i.key},n),n},bt=pI.bind(null,"");mI=eg;ql=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new Ro,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[mI]=!0,this.ready=this._ready.promise,this._exports=lI(this),this._exportWatchers=new Set;let r=e??Hl(new.target.name);this.component=r,this.component.addController(this),this.component.manager===void 0||(vy(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(qt),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,r)),this._ready.resolve(e)}setProvisionalExports(e,r=!0){this._exports=r?lI(e):e,this._exportWatchers.forEach(qt)}watchExports(e){let r=()=>e(this._exports);return this._exportWatchers.add(r),()=>void this._exportWatchers.delete(r)}get use(){return Qa(this.component),Tq}get useRef(){return Qa(this.component),Pq}get useRefSync(){return Qa(this.component),i4}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&&qt(e.hostConnected,e),this._callbacks.hostConnected.forEach(qt),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&qt(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(qt),this._lifecycleCleanups.forEach(qt),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await mm(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(mm)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&qt(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(qt),this.loadedCalled=!0}triggerUpdate(e){let r=this;r.hostUpdate&&qt(r.hostUpdate,r,e),this._callbacks.hostUpdate.forEach(cI,e)}triggerUpdated(e){let r=this;r.hostUpdated&&qt(r.hostUpdated,r,e),this._callbacks.hostUpdated.forEach(cI,e)}triggerDestroy(){let e=this;e.hostDestroy&&qt(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(qt)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){Qa(this.component);let r=qt(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)})}};Sy=ql});var c4=N(()=>{Yh();});var hI=N(()=>{c4();});var gI,As,l4=N(()=>{"use strict";gI=":",As=(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))(As||{})});function u4(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 Aq(t){let e=t.split(gI);return e.length===1?[e[0],fw(e[0])]:e}function Lq([t,e]){this[t]=e}function kq(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)},xy(e,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))}var xy,Iq,wI,Oq,d4,f4=N(()=>{"use strict";hm();l4();xy=Object.defineProperty;Iq=globalThis.HTMLElement??Aq,wI=class extends Iq{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new Ro,this._postLoaded=new Ro,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(Oq).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){xy(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(r){this._store[e]=r}})}static _bindAsync(e){xy(this.prototype,e,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...r)},configurable:!0})}static _bindSync(e){xy(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=u4(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);kq(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(Lq,d);let h=this.isConnected;(h||this._ancestorLoad)&&(d.connectedCallback?.(),h||d.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};Oq=async t=>(await t.$$,t),d4={}});var ui,Ii,li,Is=N(()=>{ui={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ii=t=>(...e)=>({_$litDirective$:t,values:e}),li=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 yI,bI=N(()=>{Yr();Is();yI=Ii(class extends li{constructor(t){if(super(t),t.type!==ui.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 vI,Nq,_I,SI=N(()=>{Yr();Is();vI="important",Nq=" !"+vI,_I=Ii(class extends li{constructor(t){if(super(t),t.type!==ui.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(Nq);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?vI:""):r[n]=i}}return Hr}})});var xI=N(()=>{SI()});var rge,Ey,Rq,Cy,Ty=N(()=>{Yr();({I:rge}=sI),Ey=t=>t.strings===void 0,Rq={},Cy=(t,e=Rq)=>t._$AH=e});var Py,p4=N(()=>{Yr();Is();Ty();Py=Ii(class extends li{constructor(t){if(super(t),t.type!==ui.PROPERTY&&t.type!==ui.ATTRIBUTE&&t.type!==ui.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===Ce)return e;let r=t.element,n=t.name;if(t.type===ui.PROPERTY){if(e===r[n])return Hr}else if(t.type===ui.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return Hr}else if(t.type===ui.ATTRIBUTE&&r.getAttribute(n)===e+"")return Hr;return Cy(t),e}})});function CI(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 ep(t,e,r){r==null?t.removeAttribute(e):t.setAttribute(e,r)}var m4,Dq,h4,EI,My,Fq,vt,Se,Ay,Ls,ks,xr=N(()=>{"use strict";GA();Qf();Qf();hI();c4();f4();f4();hm();Zr();l4();bI();xI();Is();p4();Yr();m4=class extends Sy{constructor(e){super(e),this.destroyed=!1,this._enforceReadonly=!1,this._trackedValue=Ce,this._keyTrackers=[],this._accessorGetter={},this._accessorSetter={},this._exportsStore=new WeakMap,this.exports=void 0,this.hasDestroy=h4 in e&&typeof e.destroy=="function",qo.prototype.addController.call(e,{hostConnected:()=>{if(this.destroyed){let r=e.el.localName;throw e.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 ${h4} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),Kf();for(let r of e._controllers)"triggerConnected"in r?r.triggerConnected():qt(r.hostConnected,r)},hostDisconnected:()=>{for(let r of e._controllers)"triggerDisconnected"in r?r.triggerDisconnected():qt(r.hostDisconnected,r);this.hasDestroy&&!this.destroyed&&this._setAutoDestroyTimeout()},hostUpdate:()=>{for(let r of e._controllers)"triggerUpdate"in r?r.triggerUpdate(this._changes):qt(r.hostUpdate,r,this._changes)},hostUpdated:()=>{for(let r of e._controllers)"triggerUpdated"in r?r.triggerUpdated(this._changes):qt(r.hostUpdated,r,this._changes);this._changes=void 0}}),e.constructor.elementProperties.forEach((r,n)=>{r.noAccessor||(this._accessorGetter[n]=EI,this._accessorSetter[n]=EI,this._getSetProxy(n,r.readOnly))}),queueMicrotask(()=>{this._enforceReadonly=!0}),Qa(e)}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;for(let e of this.component._controllers)"triggerDestroy"in e?e.triggerDestroy():qt(e.hostDestroy,e);this.component._controllers.clear()}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.component.destroy();this._autoDestroyTimeout=x3(e,Dq)}}_firePropTrackers(e,r){let n=this._keyTrackers;this._trackedValue=Ce,this._keyTrackers=[],n.forEach(i=>i(e,r))}_getSetProxy(e,r){let n=this.component.constructor.prototype,i;do i=Object.getOwnPropertyDescriptor(n,e);while(!i&&(n=Object.getPrototypeOf(n)));if(!i)return;let o=i.get,s=i.set,c=My in o,a=My in s;if(c&&a)return;let d=!c,h=!a,g=d?function(){let M=o.call(this);return fI?M:this.manager._accessorGetter[e](M,e)}:o,v=h?function(M){let k=o.call(this),F=M??void 0,W=this.manager;if(F!==k){if(r&&!by&&(W._enforceReadonly||W.connectedCalled))throw new Error(`Cannot assign to read-only property "${e}" of ${this.el.localName}. Trying to assign "${String(F)}"`);F=W._accessorSetter[e](F,k,e)}s.call(this,F),W._keyTrackers.length>0&&W?._firePropTrackers(e,M)}:s;d&&(g[My]=!0),h&&(v[My]=!0),Object.defineProperty(n,e,{...i,get:g,set:v})}_markExports(e,r){(typeof r=="object"&&r!==null||typeof r=="function")&&this._exportsStore.set(r,e)}_resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exportsStore.get(e)}},Dq=1e3,h4="autoDestroyDisabled",EI=t=>t,My=Symbol(),Fq=()=>{},vt=class t extends qo{constructor(){super(),this.el=this.constructor.lazy??this,this._controllers=new Set,this.manager=new m4(this),this._postLoad=this.constructor.lazy?._postLoad??new Ro,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new Ro,this._enableUpdating=this.enableUpdating,this.enableUpdating=Fq;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===d4;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&As.ATTRIBUTE&&typeof e=="string"?fw(e):!1,reflect:!!(n&As.REFLECT),type:n&As.BOOLEAN?Boolean:n&As.NUMBER?Number:void 0,state:!!(n&As.STATE),readOnly:!!(n&As.READ_ONLY),noAccessor:!!(n&As.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===d4?this.el:this.el.attachShadow(n));if(e)return qo.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??u4(this.el);e&&await e;let r=[];for(let i of this._controllers)"triggerLoad"in i?r.push(i.triggerLoad()):r.push(mm(i.hostLoad,i));await Promise.all(r),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(i=>i.has(h4)&&this.manager._setAutoDestroyTimeout()),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let n=this._offspring.filter(i=>!i.manager?.loadedCalled);n.length&&await Promise.allSettled(n.map(async i=>await i.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,"");for(let i of this._controllers)"triggerLoaded"in i?i.triggerLoaded():qt(i.hostLoaded,i);this.loaded?.(),this._postLoaded.resolve()}shouldUpdate(e){return this.manager._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}addController(e){this._controllers.add(e),!(eg in e)&&this.renderRoot&&this.el.isConnected&&e.hostConnected?.()}removeController(e){this._controllers.delete(e),e.controllerRemoved?.()}};Se=t=>typeof t=="object"&&t!=null?yI(t):t,Ay=t=>typeof t=="object"&&t!=null?_I(t):t,Ls=Ce;ks={toAttribute:t=>t===!0?"":t===!1?null:t}});function TI(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>t.contains(AI)||t.contains(MI)&&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 zq(){if(rg&&rg.version)return;console.info(`Using Calcite Components ${PI} [Date: ${Uq}, Revision: ${Vq}]`);let t=rg||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:PI,writable:!1}),globalThis.calciteConfig=t}function Wq(){document.readyState==="interactive"?TI():document.addEventListener("DOMContentLoaded",()=>TI(),{once:!0}),zq()}var MI,AI,$q,ng,g4,di,rg,II,LI,PI,Uq,Vq,Bq,Lt,ig,kI,lr=N(()=>{xr();Zr();r4();MI="calcite-mode-auto",AI="calcite-mode-dark",$q="calcite-mode-light",ng={autoMode:MI,darkMode:AI,lightMode:$q,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"},g4={filter:250,nextTick:0,resize:150,reposition:100},di=25;rg=globalThis.calciteConfig,II=rg?.focusTrapStack||[],LI=rg?.logLevel||"info",PI="3.2.0-next.28",Uq="2025-04-22",Vq="f868ef02c";Wq();Bq=CI({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.2.0-next.28/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Lt,getAssetPath:ig,setAssetPath:kI}=Bq});var w4,OI,NI=N(()=>{lr();lr();w4=!1,OI=t=>{w4=!0,kI(t)}});function DI(){w4||OI(Ai(Gf(RI)))}function FI(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 RI,y4=N(()=>{NI();j0();xt();Bo();RI="components/assets"});var Iy,Ly,b4=N(()=>{Iy=Symbol("widget"),Ly=Symbol("widget-test-data")});function v4(t,e){let r=e.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=v4(t,r[i]);else r=Gq;let n=e.vnodeSelector;if(tp(n)){let i=e.properties||jq,o=i.key||n,s={key:o,afterCreate:qq,afterUpdate:Hq,afterRemoved:$I,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 qq(t,e,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=t,ky.set(t,s),s.afterCreate?.(s,t),n.addHandles(wt(()=>$I(t))),queueMicrotask(()=>{s[Ly].projector.renderNow()})}function Hq(t,e,r,{widgetProperties:n}){let i=ky.get(t);i&&(i.set(n),i.afterUpdate?.(i,t))}function $I(t){let e=ky.get(t);e&&(e.afterRemoved?.(e,t),e.destroy(),ky.delete(t))}function tp(t){return typeof t=="function"&&t[Iy]}var Gq,jq,ky,_4=N(()=>{jn();b4();Gq=[],jq={},ky=new WeakMap});function VI(t){UI.add(t),t.finally(()=>UI.delete(t))}function zI(t){return wt()}var UI,WI=N(()=>{jn();xt();UI=new Set});function GI(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"?GI(t[n],e[n]):t[n]=e[n]);return t}var BI,Yq,Zq,S4,Xr,jI,qI=N(()=>{si();Cx();WM();px();vh();xt();Mn();Ut();Ll();jM();no();Px();ZM();ai();Mx();qn();xs();HS();DA();y4();_4();b4();WI();Ox();iy();Ra();zh();Yq=0;Zq=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))&&(ry(),t.scheduleRender(),a[c].call(a.bind||r,n))}}),S4=!1,Xr=class extends GM.EsriPromiseMixin(Ts.EventedAccessor){static{this[BI]=!0}constructor(t,e){super(t,e),this._attached=!1,this._projector=Zq,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 Sx(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=GI(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(zI()),DI();let r="esri-widget-uid-"+YM(),n=this.render.bind(this);this._trackingTarget=new Ol(()=>{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,tp(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=>{tp(h.vnodeSelector)||(h.properties??={},h.properties.key??=`${this.id}--${d++}`)}),v4(this,c)};this.render=()=>{if(S4)return o();let c=gA(this)??null;if(c)return c;this._trackingTarget.clear(),S4=!0;try{c=to(this._trackingTarget,o)}catch(a){throw nt.getLogger(this).error(a),a}finally{S4=!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),VI(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(zS):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,ny(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-"+Yq++}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[(BI=Iy,Ly)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(ny(this),this._projector.scheduleRender())}classes(...t){return yA.apply(this,t)}renderNow(){ny(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(Bh(()=>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")},q0)),this.postInitialize();let t=async()=>{await this._loadLocale().catch(zS),this.scheduleRender()};this.addHandles([sS(t),Bh(()=>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()],Xr.prototype,"_readyForTrueRender",void 0),ae([pe({value:null})],Xr.prototype,"container",null),ae([H0("container")],Xr.prototype,"castContainer",null),ae([pe()],Xr.prototype,"icon",null),ae([pe()],Xr.prototype,"id",null),ae([pe()],Xr.prototype,"label",null),ae([pe()],Xr.prototype,"renderable",null),ae([pe()],Xr.prototype,"uiStrings",void 0),ae([pe()],Xr.prototype,"viewModel",void 0),ae([pe({value:!0})],Xr.prototype,"visible",null),ae([pe()],Xr.prototype,"key",void 0),ae([pe()],Xr.prototype,"children",void 0),ae([pe()],Xr.prototype,"afterCreate",void 0),ae([pe()],Xr.prototype,"afterUpdate",void 0),ae([pe()],Xr.prototype,"afterRemoved",void 0),Xr=ae([Ct("esri.widgets.Widget")],Xr);jI=Xr});function x4(t){return(e,r)=>{e.hasOwnProperty("_messageBundleProps")||(e._messageBundleProps=e._messageBundleProps?e._messageBundleProps.slice():[]),e._messageBundleProps.push({bundlePath:t,propertyName:r})}}var HI=N(()=>{});function fi(t,e,...r){return typeof t!="function"||tp(t)?Jq(t,e??null,...r):t(e,...r)}var Xq,YI,Jq,ZI=N(()=>{_4();Xq=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},YI=function(t,e){for(var r=0,n=t.length;r<n;r++){var i=t[r];Array.isArray(i)?YI(i,e):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=Xq(i)),e.push(i))}},Jq=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 YI(r,i),{vnodeSelector:t,properties:e||void 0,children:i,text:void 0,domNode:null}}});function nH(){return getComputedStyle(document.body).getPropertyValue(rH).replaceAll(tH,"").toLowerCase()}function XI(){let t=nH();switch(t){case Qq:case eH:return`${Kq}${t}`;default:return null}}var Kq,Qq,eH,tH,rH,JI=N(()=>{Kq="calcite-mode-",Qq="dark",eH="light",tH=/\W/g,rH="--esri-calcite-mode-name"});function iH(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,rp=N(()=>{Os=()=>iH([2,1,1,1,3])});function oH(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 g=t.component.manager;c&&g._markExports(t,o[r]),t.onUpdate(v=>{if(v.has(r)){let E=o[r];E!==t.exports&&g._markExports(t,E)}})}t.assignedProperty=n?void 0:r}let h=t.component.constructor.elementProperties.get(r)?.readOnly;t.watchExports(()=>{o[r]!==t.exports&&(h?o4(()=>{o[r]=t.exports}):o[r]=t.exports)})}var E4,KI=N(()=>{"use strict";Qf();E4=t=>(...e)=>{let r=_y(),n=new t(...e),i=n.exports;vy(r.at(-1));let o=n.component.manager;o._markExports(n,i),n.watchExports(c=>o._markExports(n,c)),dI(n);let s=[n.component,...r].reverse();return tg(s,c=>c===void 0?void 0:oH(n,c,i),i)}});function iL(t,e){if(!e)return t;let r={...t};return Object.entries(e).forEach(([n,i])=>{typeof i=="object"?r[n]=iL(t[n],i):r[n]=i??t[n]}),r}var QI,eL,C4,tL,rL,T4,nL,P4=N(()=>{"use strict";Qf();Qf();KI();hm();QI=t=>tL(void 0,t),eL=t=>e=>tL(e,t),C4=class extends ql{constructor(e,r){super(e);let n=this.exports;try{Qa(this.component);let i=r(this.component,this),o=this.exports!==n;if(uI(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(){}},tL=E4(C4),rL=(t,e)=>new T4(t,e),T4=class extends ql{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()}},nL=t=>(e={})=>QI((r,n)=>{let i=n2(r.el),o={_lang:i.lang,_t9nLocale:i.t9nLocale,_loading:!0},s=r;n.onLifecycle(()=>S3(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??=v),c(s.messageOverrides)},e.name));function c(a){let d=n.exports,h=d._original??d,g=iL(h,a);a&&(g._original=h),n.exports=g}return"messageOverrides"in s&&n.onUpdate(a=>{a.has("messageOverrides")&&c(s.messageOverrides)}),e.blocking?(n.setProvisionalExports(o,!1),n.ready):o})});var oL,Oy,sL,og=N(()=>{"use strict";P4();P4();oL=eL,Oy=rL,sL=nL});var Jr,Ho=N(()=>{og();lr();Jr=sL(ig)});var np,cH,M4,aL=N(()=>{lr();Zr();xr();rp();Ho();un();np={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},cH=Tt`: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}`,M4=class extends vt{constructor(){super(...arguments),this.messages=Jr({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=cH}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,ep(this.el,"id",c),this.el.role="progressbar",_e`<div class=${Se(np.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&_e`<div class=${Se(np.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&_e`<div class=${Se(np.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({[np.ring]:!0,[np.trackRing]:e==="track",[np.progressRing]:e==="progress"})} style=${Ay(a)} viewBox=${`0 0 ${o} ${o}`}>${jo`<circle cx=${o/2} cy=${o/2} r=${c??Ce} />`}</svg>`}};Lt("calcite-loader",M4)});var Ny=N(()=>{aL()});function ec(t){let e="dir",r=`[${e}]`,n=tc(t,r);return n?n.getAttribute(e):"ltr"}function hL(t){return t.getRootNode()}function gL(t){return t.host||null}function Yl(t,{selector:e,id:r}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);let n=hL(t);return(r?"getElementById"in n?n.getElementById(r):null:e?n.querySelector(e):null)||Yl(gL(n),{selector:e,id:r})}function tc(t,e){return t?t.closest(e)||tc(gL(hL(t)),e):null}function MH(t){return typeof t?.setFocus=="function"}async function Fy(t){if(t)return MH(t)?t.setFocus():t.focus()}function AH(t){if(t)return PH(t,L4)[0]??t}function rc(t){AH(t)?.focus()}function IH(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 ip(t){return(!!t).toString()}function wL(t){return On(t)||kH(t)}function LH(t){return OH(t).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent).join("").trim()}function yL(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 kH(t){return!!LH(t)}function OH(t){return t.currentTarget.assignedNodes({flatten:!0})}function On(t){return!!$y(t).length}function $y(t,e){return NH(t.target,e)}function NH(t,e){let r=t.assignedElements({flatten:!0});return e?IH(r,e):r}function bL(t){return!!(t.isPrimary&&t.button===0)}function vL(t){return t.detail===0}function _L(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 SL(t,e,r,n){return DH(t,e,"transition",r,n)}async function RH(t,e){await I4(),t?.(),await I4(),e?.()}function uL(t,e,r){let n=e==="transition"?"transitionProperty":"animationName";return t.getAnimations().find(i=>i[n]===r)}async function DH(t,e,r,n,i){let o=uL(t,r,e);if(o||(await I4(),o=uL(t,r,e)),!o)return RH(n,i);n?.();try{await o.finished}catch{}finally{i?.()}}function I4(){return new Promise(t=>requestAnimationFrame(()=>t()))}function ag(t){switch(!0){case t.endsWith("px"):return parseFloat(t);case t.endsWith("vw"):return window.innerWidth/100*parseFloat(t);case t.endsWith("vh"):return window.innerHeight/100*parseFloat(t);default:return 0}}var lH,A4,dL,sg,Ry,Dy,uH,dH,fH,fL,pL,pH,mH,mL,hH,gH,wH,yH,bH,vH,_H,cL,SH,xH,EH,lL,CH,TH,PH,L4,dn=N(()=>{rp();lr();lH=["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])"],A4=lH.join(","),dL=typeof Element>"u",sg=dL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ry=!dL&&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},Dy=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},uH=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},dH=function(e,r,n){if(Dy(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(A4));return r&&sg.call(e,A4)&&i.unshift(e),i=i.filter(n),i},fH=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!Dy(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=sg.call(s,A4);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Dy(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},fL=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},pL=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||uH(e))&&!fL(e)?0:e.tabIndex},pH=function(e,r){var n=pL(e);return n<0&&r&&!fL(e)?0:n},mH=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},mL=function(e){return e.tagName==="INPUT"},hH=function(e){return mL(e)&&e.type==="hidden"},gH=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},wH=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},yH=function(e){if(!e.name)return!0;var r=e.form||Ry(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=wH(i,e.form);return!o||o===e},bH=function(e){return mL(e)&&e.type==="radio"},vH=function(e){return bH(e)&&!yH(e)},_H=function(e){var r,n=e&&Ry(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=Ry(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},cL=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},SH=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=sg.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(sg.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=Ry(e);if(a&&!a.shadowRoot&&i(a)===!0)return cL(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(_H(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return cL(e);return!1},xH=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 sg.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},EH=function(e,r){return!(r.disabled||Dy(r)||hH(r)||SH(r,e)||gH(r)||xH(r))},lL=function(e,r){return!(vH(r)||pL(r)<0||!EH(e,r))},CH=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},TH=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=pH(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(mH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},PH=function(e,r){r=r||{};var n;return r.getShadowRoot?n=fH([e],r.includeContainer,{filter:lL.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:CH}):n=dH(e,r.includeContainer,lL.bind(null,r)),TH(n)},L4={getShadowRoot:!0}});function Nn(t,e,r){if(!1)return;let n=FH(t);return new n(e,r)}function FH(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 nc=N(()=>{Zr();});function $H(t){return EL[t]>=EL[LI]}function op(t,...e){if(!$H(t))return;console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}function UH(t,{component:e,name:r,suggested:n,removalVersion:i}){let o=`${t}:${t==="component"?"":e}${r}`;if(xL.has(o))return;xL.add(o);let s=Array.isArray(n);s&&!k4&&(k4=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?k4.format(n.map(a=>`"${a}"`)):`"${n}"`} instead.`:""}`;op("warn",c)}var xL,EL,k4,O4,N4=N(()=>{lr();xL=new Set,EL={trace:0,debug:1,info:2,warn:4,error:8,off:10};O4={debug:t=>op("debug",t),info:t=>op("info",t),warn:t=>op("warn",t),error:t=>op("error",t),trace:t=>op("trace",t),deprecated:UH}});function PL({icon:t,scale:e}){let r=TL[e],n=BH(t),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function zH(t){let e=PL(t),r=ML(e);if(r)return r;R4[e]||(R4[e]=fetch(ig(`./assets/icon/${e}.json`)).then(i=>i.json()).catch(()=>(O4.error(`${t.icon} (${t.scale}) icon failed to load`),"")));let n=await R4[e];return CL[e]=n,n}function WH(t){return ML(PL(t))}function ML(t){return CL[t]}function BH(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 VH,CL,R4,TL,GH,D4,AL=N(()=>{lr();Zr();xr();dn();nc();N4();un();VH={flipRtl:"flip-rtl"},CL={},R4={},TL={s:16,m:24,l:32};GH=Tt`: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}`,D4=class extends vt{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=GH}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=WH(i)||await zH(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=ec(e),c=TL[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=ip(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,_e`<svg aria-hidden=true class=${Se({[VH.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??Ce} />`:jo`<path d=${h.d??Ce} opacity=${("opacity"in h?h.opacity:1)??Ce} />`)}</svg>`}};Lt("calcite-icon",D4)});var Zl=N(()=>{AL()});function jH(t){this._$AN!==void 0?(Uy(this),this._$AM=t,IL(this)):this._$AM=t}function qH(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++)cg(n[o],!1),Uy(n[o]);else n!=null&&(cg(n,!1),Uy(n));else cg(this,t)}var cg,Uy,IL,HH,Vy,LL=N(()=>{Ty();Is();Is();cg=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),cg(n,e);return!0},Uy=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},IL=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),HH(e)}};HH=t=>{t.type==ui.CHILD&&(t._$AP??=qH,t._$AQ??=jH)},Vy=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),IL(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(cg(this,e),Uy(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 pi,$4,F4,dt,Li=N(()=>{Yr();LL();Is();pi=()=>new $4,$4=class{},F4=new WeakMap,dt=Ii(class extends Vy{render(t){return Ce}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)),Ce}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let e=this.ht??globalThis,r=F4.get(e);r===void 0&&(r=new WeakMap,F4.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"?F4.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 U4,YH,OL,ic,kL,V4,sp,Mwe,Awe,zy=N(()=>{Yr();U4=Symbol.for(""),YH=t=>{if(t?.r===U4)return t?._$litStatic$},OL=t=>({_$litStatic$:t,r:U4}),ic=(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
12
|
take care to ensure page security.`)})(n)+t[i+1],t[0]),r:U4}),kL=new Map,V4=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=YH(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=kL.get(g))===void 0&&(s.raw=s,kL.set(g,e=s)),r=c}return t(e,...r)},sp=V4(_e),Mwe=V4(jo),Awe=V4(nI)});function XH(t){return`${t.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${ZH.includes(t)?"Input":"Change"}`}function B4(t){return"checked"in t}function JH(t,e){if(tc(e.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return t.addEventListener(n,o=>{i=o.composedPath().some(s=>G4.has(s)),o.stopPropagation()},{once:!0}),e.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function KH(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 FL(t){return t.nodeName==="CALCITE-RADIO-BUTTON"?tc(t,"calcite-radio-button-group"):t}function NL(t){let e=t?.target,r=e?.validationMessage,n=FL(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(QH),KH(n,{message:r,icon:!0,status:"invalid"});let s=XH(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 Wy(t){let{formEl:e}=t;return e?(e.addEventListener("invalid",NL,!0),e.requestSubmit(),e.removeEventListener("invalid",NL,!0),requestAnimationFrame(()=>{let r=e.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function $L(t){t.formEl?.reset()}function UL(t){let{el:e,value:r}=t,n=j4(t);if(!n||JH(n,e))return;t.formEl=n,t.defaultValue=r,B4(t)&&(t.defaultChecked=t.checked);let i=eY.bind(t);n.addEventListener("reset",i),W4.set(t.el,i),G4.add(e)}function j4(t){let{el:e,form:r}=t;return r?Yl(e,{id:r}):tc(e,"form")}function eY(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),B4(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function VL(t){let{el:e,formEl:r}=t;if(!r)return;let n=W4.get(e);r.removeEventListener("reset",n),W4.delete(e),t.formEl=null,G4.delete(e)}function tY(t){let{el:e,formEl:r,name:n,value:i}=t,{ownerDocument:o}=e;if(!1)return;let s=e.querySelectorAll(`input[slot="${z4}"]`);if(!r||!n){s.forEach(g=>{RL(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),DL(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=z4),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",zL),DL(t,v,g)}),h&&e.append(h),a.forEach(g=>{RL(g),g.remove()})}function DL(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"),B4(t)?(e.checked=t.checked,e.defaultChecked=t.defaultChecked,e.value=t.checked?r||"on":""):e.value=r||"",t.syncHiddenFormInput?.(e);let a=FL(t.el);if(a&&"validity"in a)for(let d in{...e?.validity})a.validity[d]=e.validity[d]}var ZH,z4,W4,G4,QH,By,zL,RL,WL,q4=N(()=>{Zr();dn();ZH=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];z4="hidden-form-input";W4=new WeakMap,G4=new WeakSet;QH=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});By="calciteInternalHiddenInputInput",zL=t=>{t.target.dispatchEvent(new CustomEvent(By,{bubbles:!0}))},RL=t=>t.removeEventListener("input",zL);WL=({component:t})=>(tY(t),_e`<slot name=${z4}></slot>`)});function rY(){let{disabled:t}=this;t||HTMLElement.prototype.click.call(this)}function BL(t){t.target.disabled&&t.preventDefault()}function jL(t){t.target.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}function oc(t){if(t.disabled){t.el.setAttribute("aria-disabled","true"),t.el.contains(document.activeElement)&&document.activeElement.blur(),nY(t);return}oY(t),t.el.removeAttribute("aria-disabled")}function nY(t){t.el.click=rY,iY(t.el)}function iY(t){t.addEventListener("pointerdown",BL,Gy),GL.forEach(e=>t.addEventListener(e,jL,Gy))}function oY(t){delete t.el.click,sY(t.el)}function sY(t){t.removeEventListener("pointerdown",BL,Gy),GL.forEach(e=>t.removeEventListener(e,jL,Gy))}var GL,Gy,aY,sc,lg=N(()=>{Yr();xr();GL=["mousedown","mouseup","click"];Gy={capture:!0};aY={container:"interaction-container"},sc=({children:t,disabled:e})=>_e`<div class=${Se(aY.container)} .inert=${e}>${t}</div>`});function lY(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 cp(t){if(!t)return;let e=cY(t.el);if(ug.has(e)&&e===t.labelEl||!e&&Xl.has(t))return;let r=dY.bind(t);if(e){t.labelEl=e;let n=ap.get(e)||[];n.push(t),ap.set(e,n.sort(ZL)),ug.has(t.labelEl)||(ug.set(t.labelEl,HL),t.labelEl.addEventListener(YL,HL)),Xl.delete(t),document.removeEventListener(pg,fg.get(t)),jy.set(t,r),document.addEventListener(dg,r)}else Xl.has(t)||(r(),document.removeEventListener(dg,jy.get(t)))}function qy(t){if(!t||(Xl.delete(t),document.removeEventListener(pg,fg.get(t)),document.removeEventListener(dg,jy.get(t)),fg.delete(t),jy.delete(t),!t.labelEl))return;let e=ap.get(t.labelEl);e.length===1&&(t.labelEl.removeEventListener(YL,ug.get(t.labelEl)),ug.delete(t.labelEl)),ap.set(t.labelEl,e.filter(r=>r!==t).sort(ZL)),t.labelEl=null}function ZL(t,e){return _L(t.el,e.el)?-1:1}function mg(t){return t.label||t.labelEl?.textContent?.trim()||""}function HL(t){let e=t.detail.sourceEvent.target,r=ap.get(this),n=r.find(s=>s.el===e);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(t)}function uY(){Xl.has(this)&&cp(this)}function dY(){Xl.add(this);let t=fg.get(this)||uY.bind(this);fg.set(this,t),document.addEventListener(pg,t)}async function XL(t){if(await t.componentOnReady(),ap.has(t))return;let r=t.ownerDocument?.getElementById(t.for);r&&requestAnimationFrame(()=>{for(let n of Xl)if(n.el===r){cp(n);break}})}var YL,pg,dg,qL,ap,ug,fg,jy,Xl,cY,Hy=N(()=>{dn();YL="calciteInternalLabelClick",pg="calciteInternalLabelConnected",dg="calciteInternalLabelDisconnected",qL="calcite-label",ap=new WeakMap,ug=new WeakMap,fg=new WeakMap,jy=new WeakMap,Xl=new Set,cY=t=>{let{id:e}=t,r=e&&Yl(t,{selector:`${qL}[for="${e}"]`});if(r)return r;let n=tc(t,qL);return!n||lY(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(()=>{N4();});var mi,fY,Yy,JL=N(()=>{lr();Zr();Li();zy();xr();og();q4();lg();Hy();Rs();nc();Ho();dn();un();mi={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"},fY=Tt`: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:hover,:host([appearance=transparent][kind=inverse]) a:hover{background-color:var(--calcite-color-transparent-inverse-hover)}:host([appearance=transparent][kind=inverse]) button:active,:host([appearance=transparent][kind=inverse]) a:active{background-color:var(--calcite-color-transparent-inverse-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a 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}`,Yy=class extends vt{constructor(){super(...arguments),this.attributeWatch=Oy(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=pi(),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=Jr(),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=fY}async setFocus(){await En(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),cp(this),this.formEl=j4(this)}async load(){this.updateHasContent()}updated(){oc(this)}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),qy(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=yL(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"?Wy(this):e==="reset"&&$L(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?ic`a`:ic`button`,n=this.loading?_e`<div class=${Se(mi.buttonLoader)}><calcite-loader class=${Se(this.loading?mi.loadingIn:mi.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({[mi.icon]:!0,[mi.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Rn(this.scale)}></calcite-icon>`,s=_e`<calcite-icon class=${Se({[mi.icon]:!0,[mi.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Rn(this.scale)}></calcite-icon>`,c=_e`<span class=${Se(mi.content)} ${dt(this.contentEl)}><slot></slot></span>`;return sc({disabled:this.disabled,children:sp`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:mg(this)} aria-live=polite class=${Se({[mi.buttonPadding]:i,[mi.buttonPaddingShrunk]:!i,[mi.contentSlotted]:this.hasContent,[mi.iconStartEmpty]:!this.iconStart,[mi.iconEndEmpty]:!this.iconEnd})} .disabled=${e==="button"?this.disabled:null} download=${(e==="a"?this.download===!0||this.download===""?"":this.download||null:null)??Ce} href=${(e==="a"&&this.href)??Ce} name=${(e==="button"&&this.name)??Ce} @click=${this.handleClick} rel=${(e==="a"&&this.rel)??Ce} tabindex=${(this.disabled?-1:null)??Ce} target=${(e==="a"&&this.target)??Ce} title=${this.tooltipText??Ce} type=${(e==="button"?this.type:null)??Ce} ${dt(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};Lt("calcite-button",Yy)});var KL={};Ao(KL,{Button:()=>Yy});var QL=N(()=>{Ny();Zl();JL()});var ek,tk,pY,H4,rk=N(()=>{lr();Li();Yr();xr();nc();dn();Ho();un();ek={scrim:"scrim",content:"content"},tk={s:72,l:480},pY=Tt`: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}`,H4=class extends vt{constructor(){super(...arguments),this.resizeObserver=Nn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=Jr()}static{this.properties={hasContent:[16,{state:!0}],loaderScale:[16,{state:!0}],loading:[7,{reflect:!0,type:Boolean}],messageOverrides:[0,{attribute:!1}]}}static{this.styles=pY}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=wL(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<tk.s?"s":e>=tk.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(ek.scrim)}>${r?_e`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${dt(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${Se(ek.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Lt("calcite-scrim",H4)});var Y4=N(()=>{Ny();rk()});var Xt,ac=N(()=>{Yr();Is();Ty();Xt=Ii(class extends li{constructor(){super(...arguments),this.key=Ce}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Cy(t),this.key=e),r}})});var so,mY,hY,Z4,nk=N(()=>{lr();Yr();ac();Li();xr();rp();lg();Rs();nc();Ho();un();so={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"},mY={tooltip:"tooltip"},hY=Tt`: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}`,Z4=class extends vt{constructor(){super(...arguments),this.guid=`calcite-action-${Os()}`,this.buttonEl=pi(),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=Jr({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=hY}async setFocus(){await En(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}updated(){oc(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={[so.textContainer]:!0,[so.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(so.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({[so.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({[so.slotContainer]:!0,[so.slotContainerHidden]:e})}><slot></slot></div>`;return g?Xt("icon-container",_e`<div aria-hidden=true class=${Se(so.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={[so.button]:!0,[so.buttonTextVisible]:s,[so.buttonCompact]:r},F=_e`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&Xt("indicator-no-icon",_e`<div class=${Se(so.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 sc({disabled:this.disabled,children:_e`${this.renderButton()}<slot name=${mY.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Lt("calcite-action",Z4)});var Zy=N(()=>{Ny();Zl();nk()});function Xy(t,e,r){return Ds(t,cc(e,r))}function lc(t,e){return typeof t=="function"?t(e):t}function Yo(t){return t.split("-")[0]}function co(t){return t.split("-")[1]}function K4(t){return t==="x"?"y":"x"}function Jy(t){return t==="y"?"height":"width"}function Jl(t){return["top","bottom"].includes(Yo(t))?"y":"x"}function Ky(t){return K4(Jl(t))}function Q4(t,e,r){r===void 0&&(r=!1);let n=co(t),i=Ky(t),o=Jy(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=gg(s)),[s,gg(s)]}function ok(t){let e=gg(t);return[hg(t),e,hg(e)]}function hg(t){return t.replace(/start|end/g,e=>wY[e])}function yY(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 sk(t,e,r,n){let i=co(t),o=yY(Yo(t),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(hg)))),o}function gg(t){return t.replace(/left|right|bottom|top/g,e=>gY[e])}function bY(t){return{top:0,right:0,bottom:0,left:0,...t}}function e5(t){return typeof t!="number"?bY(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 X4,ik,J4,cc,Ds,wg,yg,ao,gY,wY,Qy=N(()=>{X4=["top","right","bottom","left"],ik=["start","end"],J4=X4.reduce((t,e)=>t.concat(e,e+"-"+ik[0],e+"-"+ik[1]),[]),cc=Math.min,Ds=Math.max,wg=Math.round,yg=Math.floor,ao=t=>({x:t,y:t}),gY={left:"right",right:"left",bottom:"top",top:"bottom"},wY={start:"end",end:"start"}});function ak(t,e,r){let{reference:n,floating:i}=t,o=Jl(e),s=Ky(e),c=Jy(s),a=Yo(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(co(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 lp(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}=lc(e,t),M=e5(E),F=c[v?g==="floating"?"reference":"floating":g],W=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,X=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),z=await(o.isElement==null?void 0:o.isElement(X))?await(o.getScale==null?void 0:o.getScale(X))||{x:1,y:1}:{x:1,y:1},Z=Kl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:B,offsetParent:X,strategy:a}):B);return{top:(W.top-Z.top+M.top)/z.y,bottom:(Z.bottom-W.bottom+M.bottom)/z.y,left:(W.left-Z.left+M.left)/z.x,right:(Z.right-W.right+M.right)/z.x}}function vY(t,e,r){return(t?[...r.filter(i=>co(i)===t),...r.filter(i=>co(i)!==t)]:r.filter(i=>Yo(i)===i)).filter(i=>t?co(i)===t||(e?hg(i)!==i:!1):!0)}function ck(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function lk(t){return X4.some(e=>t[e]>=0)}async function _Y(t,e){let{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Yo(r),c=co(r),a=Jl(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=lc(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 uk,dk,fk,pk,mk,hk,gk,wk=N(()=>{Qy();Qy();uk=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}=ak(d,n,a),v=n,E={},M=0;for(let k=0;k<c.length;k++){let{name:F,fn:W}=c[k],{x:B,y:X,data:z,reset:Z}=await W({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=X??g,E={...E,[F]:{...E[F],...z}},Z&&M<=50&&(M++,typeof Z=="object"&&(Z.placement&&(v=Z.placement),Z.rects&&(d=Z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):Z.rects),{x:h,y:g}=ak(d,v,a)),k=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};dk=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}=lc(t,e)||{};if(d==null)return{};let g=e5(h),v={x:r,y:n},E=Ky(i),M=Jy(E),k=await s.getDimensions(d),F=E==="y",W=F?"top":"left",B=F?"bottom":"right",X=F?"clientHeight":"clientWidth",z=o.reference[M]+o.reference[E]-v[E]-o.floating[M],Z=v[E]-o.reference[E],re=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),$=re?re[X]:0;(!$||!await(s.isElement==null?void 0:s.isElement(re)))&&($=c.floating[X]||o.floating[M]);let me=z/2-Z/2,ke=$/2-k[M]/2-1,Te=cc(g[W],ke),Ne=cc(g[B],ke),we=Te,ce=$-k[M]-Ne,q=$/2-k[M]/2+me,ee=Xy(we,q,ce),de=!a.arrow&&co(i)!=null&&q!==ee&&o.reference[M]/2-(q<we?Te:Ne)-k[M]/2<0,ue=de?q<we?q-we:q-ce:0;return{[E]:v[E]+ue,data:{[E]:ee,centerOffset:q-ee-ue,...de&&{alignmentOffset:ue}},reset:de}}});fk=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=J4,autoAlignment:E=!0,...M}=lc(t,e),k=g!==void 0||v===J4?vY(g||null,E,v):v,F=await lp(e,M),W=((r=s.autoPlacement)==null?void 0:r.index)||0,B=k[W];if(B==null)return{};let X=Q4(B,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==B)return{reset:{placement:k[0]}};let z=[F[Yo(B)],F[X[0]],F[X[1]]],Z=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:B,overflows:z}],re=k[W+1];if(re)return{data:{index:W+1,overflows:Z},reset:{placement:re}};let $=Z.map(Te=>{let Ne=co(Te.placement);return[Te.placement,Ne&&h?Te.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Te.overflows[0],Te.overflows]}).sort((Te,Ne)=>Te[1]-Ne[1]),ke=((i=$.filter(Te=>Te[2].slice(0,co(Te[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||$[0][0];return ke!==c?{data:{index:W+1,overflows:Z},reset:{placement:ke}}:{}}}},pk=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}=lc(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=Yo(i),B=Jl(c),X=Yo(c)===c,z=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Z=v||(X||!k?[gg(c)]:ok(c)),re=M!=="none";!v&&re&&Z.push(...sk(c,k,M,z));let $=[c,...Z],me=await lp(e,F),ke=[],Te=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&ke.push(me[W]),g){let q=Q4(i,s,z);ke.push(me[q[0]],me[q[1]])}if(Te=[...Te,{placement:i,overflows:ke}],!ke.every(q=>q<=0)){var Ne,we;let q=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=$[q];if(ee)return{data:{index:q,overflows:Te},reset:{placement:ee}};let de=(we=Te.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=Te.filter(ve=>{if(re){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{}}}};mk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=lc(t,e);switch(n){case"referenceHidden":{let o=await lp(e,{...i,elementContext:"reference"}),s=ck(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lk(s)}}}case"escaped":{let o=await lp(e,{...i,altBoundary:!0}),s=ck(o,r.floating);return{data:{escapedOffsets:s,escaped:lk(s)}}}default:return{}}}}};hk=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 _Y(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}}}}},gk=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:W,y:B}=F;return{x:W,y:B}}},...a}=lc(t,e),d={x:r,y:n},h=await lp(e,a),g=Jl(Yo(i)),v=K4(g),E=d[v],M=d[g];if(o){let F=v==="y"?"top":"left",W=v==="y"?"bottom":"right",B=E+h[F],X=E-h[W];E=Xy(B,E,X)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",B=M+h[F],X=M-h[W];M=Xy(B,M,X)}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 eb(){return typeof window<"u"}function Ql(t){return bk(t)?(t.nodeName||"").toLowerCase():"#document"}function Yn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function lo(t){var e;return(e=(bk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bk(t){return eb()?t instanceof Node||t instanceof Yn(t).Node:!1}function ki(t){return eb()?t instanceof Element||t instanceof Yn(t).Element:!1}function uo(t){return eb()?t instanceof HTMLElement||t instanceof Yn(t).HTMLElement:!1}function yk(t){return!eb()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Yn(t).ShadowRoot}function dp(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Oi(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function vk(t){return["table","td","th"].includes(Ql(t))}function bg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function fp(t){let e=tb(),r=ki(t)?Oi(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 _k(t){let e=Fs(t);for(;uo(e)&&!eu(e);){if(fp(e))return e;if(bg(e))return null;e=Fs(e)}return null}function tb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eu(t){return["html","body","#document"].includes(Ql(t))}function Oi(t){return Yn(t).getComputedStyle(t)}function vg(t){return ki(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||yk(t)&&t.host||lo(t);return yk(e)?e.host:e}function Sk(t){let e=Fs(t);return eu(e)?t.ownerDocument?t.ownerDocument.body:t.body:uo(e)&&dp(e)?e:Sk(e)}function up(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Sk(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=Yn(i);if(o){let c=rb(s);return e.concat(s,s.visualViewport||[],dp(i)?i:[],c&&r?up(c):[])}return e.concat(i,up(i,[],r))}function rb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var t5=N(()=>{});function Ck(t){let e=Oi(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=uo(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=wg(r)!==o||wg(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function n5(t){return ki(t)?t:t.contextElement}function pp(t){let e=n5(t);if(!uo(e))return ao(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Ck(e),s=(o?wg(r.width):r.width)/n,c=(o?wg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function Tk(t){let e=Yn(t);return!tb()||!e.visualViewport?SY:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xY(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=n5(t),s=ao(1);e&&(n?ki(n)&&(s=pp(n)):s=pp(t));let c=xY(o,r,n)?Tk(o):ao(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&&ki(n)?Yn(n):n,M=v,k=rb(M);for(;k&&n&&E!==M;){let F=pp(k),W=k.getBoundingClientRect(),B=Oi(k),X=W.left+(k.clientLeft+parseFloat(B.paddingLeft))*F.x,z=W.top+(k.clientTop+parseFloat(B.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=X,d+=z,M=Yn(k),k=rb(M)}}return Kl({width:h,height:g,x:a,y:d})}function i5(t,e){let r=vg(t).scrollLeft;return e?e.left+r:tu(lo(t)).left+r}function Pk(t,e,r){r===void 0&&(r=!1);let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:i5(t,n)),o=n.top+e.scrollTop;return{x:i,y:o}}function EY(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=lo(n),c=e?bg(e.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=ao(1),h=ao(0),g=uo(n);if((g||!g&&!o)&&((Ql(n)!=="body"||dp(s))&&(a=vg(n)),uo(n))){let E=tu(n);d=pp(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?Pk(s,a,!0):ao(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 CY(t){return Array.from(t.getClientRects())}function TY(t){let e=lo(t),r=vg(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+i5(t),c=-r.scrollTop;return Oi(n).direction==="rtl"&&(s+=Ds(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function PY(t,e){let r=Yn(t),n=lo(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=tb();(!d||d&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function MY(t,e){let r=tu(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=uo(t)?pp(t):ao(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 xk(t,e,r){let n;if(e==="viewport")n=PY(t,r);else if(e==="document")n=TY(lo(t));else if(ki(e))n=MY(e,r);else{let i=Tk(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Kl(n)}function Mk(t,e){let r=Fs(t);return r===e||!ki(r)||eu(r)?!1:Oi(r).position==="fixed"||Mk(r,e)}function AY(t,e){let r=e.get(t);if(r)return r;let n=up(t,[],!1).filter(c=>ki(c)&&Ql(c)!=="body"),i=null,o=Oi(t).position==="fixed",s=o?Fs(t):t;for(;ki(s)&&!eu(s);){let c=Oi(s),a=fp(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||dp(s)&&!a&&Mk(t,s))?n=n.filter(h=>h!==s):i=c,s=Fs(s)}return e.set(t,n),n}function IY(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?bg(e)?[]:AY(e,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=xk(e,h,i);return d.top=Ds(g.top,d.top),d.right=cc(g.right,d.right),d.bottom=cc(g.bottom,d.bottom),d.left=Ds(g.left,d.left),d},xk(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function LY(t){let{width:e,height:r}=Ck(t);return{width:e,height:r}}function kY(t,e,r){let n=uo(e),i=lo(e),o=r==="fixed",s=tu(t,!0,o,e),c={scrollLeft:0,scrollTop:0},a=ao(0);if(n||!n&&!o)if((Ql(e)!=="body"||dp(i))&&(c=vg(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=i5(i));let d=i&&!n&&!o?Pk(i,c):ao(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 r5(t){return Oi(t).position==="static"}function Ek(t,e){if(!uo(t)||Oi(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return lo(t)===r&&(r=r.ownerDocument.body),r}function Ak(t,e){let r=Yn(t);if(bg(t))return r;if(!uo(t)){let i=Fs(t);for(;i&&!eu(i);){if(ki(i)&&!r5(i))return i;i=Fs(i)}return r}let n=Ek(t,e);for(;n&&vk(n)&&r5(n);)n=Ek(n,e);return n&&eu(n)&&r5(n)&&!fp(n)?r:n||_k(t)||r}function NY(t){return Oi(t).direction==="rtl"}function Ik(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function RY(t,e){let r=null,n,i=lo(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=yg(g),k=yg(i.clientWidth-(h+v)),F=yg(i.clientHeight-(g+E)),W=yg(h),X={rootMargin:-M+"px "+-k+"px "+-F+"px "+-W+"px",threshold:Ds(0,cc(1,a))||1},z=!0;function Z(re){let $=re[0].intersectionRatio;if($!==a){if(!z)return s();$?s(!1,$):n=setTimeout(()=>{s(!1,1e-7)},1e3)}$===1&&!Ik(d,t.getBoundingClientRect())&&s(),z=!1}try{r=new IntersectionObserver(Z,{...X,root:i.ownerDocument})}catch{r=new IntersectionObserver(Z,X)}r.observe(t)}return s(!0),o}function Lk(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=n5(t),h=i||o?[...d?up(d):[],...up(e)]:[];h.forEach(W=>{i&&W.addEventListener("scroll",r,{passive:!0}),o&&W.addEventListener("resize",r)});let g=d&&c?RY(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(W=>{let[B]=W;B&&B.target===d&&E&&(E.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var X;(X=E)==null||X.observe(e)})),r()}),d&&!a&&E.observe(d),E.observe(e));let M,k=a?tu(t):null;a&&F();function F(){let W=tu(t);k&&!Ik(k,W)&&r(),k=W,M=requestAnimationFrame(F)}return r(),()=>{var W;h.forEach(B=>{i&&B.removeEventListener("scroll",r),o&&B.removeEventListener("resize",r)}),g?.(),(W=E)==null||W.disconnect(),E=null,a&&cancelAnimationFrame(M)}}var SY,OY,nb,kk,Ok,Nk,o5,Rk,Dk,Fk,$k=N(()=>{wk();Qy();t5();SY=ao(0);OY=async function(t){let e=this.getOffsetParent||Ak,r=this.getDimensions,n=await r(t.floating);return{reference:kY(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};nb={convertOffsetParentRelativeRectToViewportRelativeRect:EY,getDocumentElement:lo,getClippingRect:IY,getOffsetParent:Ak,getElementRects:OY,getClientRects:CY,getDimensions:LY,getScale:pp,isElement:ki,isRTL:NY};kk=hk,Ok=fk,Nk=gk,o5=pk,Rk=mk,Dk=dk,Fk=(t,e,r)=>{let n=new Map,i={platform:nb,...r},o={...i.platform,_c:n};return uk(t,e,{...i,platform:o})}});var DY,Uk,Vk=N(()=>{DY=typeof global=="object"&&global&&global.Object===Object&&global,Uk=DY});var FY,$Y,ib,s5=N(()=>{Vk();FY=typeof self=="object"&&self&&self.Object===Object&&self,$Y=Uk||FY||Function("return this")(),ib=$Y});var UY,mp,a5=N(()=>{s5();UY=ib.Symbol,mp=UY});function WY(t){var e=VY.call(t,_g),r=t[_g];try{t[_g]=void 0;var n=!0}catch{}var i=zY.call(t);return n&&(e?t[_g]=r:delete t[_g]),i}var zk,VY,zY,_g,Wk,Bk=N(()=>{a5();zk=Object.prototype,VY=zk.hasOwnProperty,zY=zk.toString,_g=mp?mp.toStringTag:void 0;Wk=WY});function jY(t){return GY.call(t)}var BY,GY,Gk,jk=N(()=>{BY=Object.prototype,GY=BY.toString;Gk=jY});function YY(t){return t==null?t===void 0?HY:qY:qk&&qk in Object(t)?Wk(t):Gk(t)}var qY,HY,qk,Hk,Yk=N(()=>{a5();Bk();jk();qY="[object Null]",HY="[object Undefined]",qk=mp?mp.toStringTag:void 0;Hk=YY});function ZY(t){return t!=null&&typeof t=="object"}var Zk,Xk=N(()=>{Zk=ZY});function JY(t){return typeof t=="symbol"||Zk(t)&&Hk(t)==XY}var XY,Jk,Kk=N(()=>{Yk();Xk();XY="[object Symbol]";Jk=JY});function QY(t){for(var e=t.length;e--&&KY.test(t.charAt(e)););return e}var KY,Qk,eO=N(()=>{KY=/\s/;Qk=QY});function tZ(t){return t&&t.slice(0,Qk(t)+1).replace(eZ,"")}var eZ,tO,rO=N(()=>{eO();eZ=/^\s+/;tO=tZ});function rZ(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Sg,c5=N(()=>{Sg=rZ});function aZ(t){if(typeof t=="number")return t;if(Jk(t))return nO;if(Sg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Sg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=tO(t);var r=iZ.test(t);return r||oZ.test(t)?sZ(t.slice(2),r?2:8):nZ.test(t)?nO:+t}var nO,nZ,iZ,oZ,sZ,l5,iO=N(()=>{rO();c5();Kk();nO=NaN,nZ=/^[-+]0x[0-9a-f]+$/i,iZ=/^0b[01]+$/i,oZ=/^0o[0-7]+$/i,sZ=parseInt;l5=aZ});var cZ,ob,oO=N(()=>{s5();cZ=function(){return ib.Date.now()},ob=cZ});function fZ(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(lZ);e=l5(e)||0,Sg(r)&&(h=!!r.leading,g="maxWait"in r,o=g?uZ(l5(r.maxWait)||0,e):o,v="trailing"in r?!!r.trailing:v);function E(re){var $=n,me=i;return n=i=void 0,d=re,s=t.apply(me,$),s}function M(re){return d=re,c=setTimeout(W,e),h?E(re):s}function k(re){var $=re-a,me=re-d,ke=e-$;return g?dZ(ke,o-me):ke}function F(re){var $=re-a,me=re-d;return a===void 0||$>=e||$<0||g&&me>=o}function W(){var re=ob();if(F(re))return B(re);c=setTimeout(W,k(re))}function B(re){return c=void 0,v&&n?E(re):(n=i=void 0,s)}function X(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function z(){return c===void 0?s:B(ob())}function Z(){var re=ob(),$=F(re);if(n=arguments,i=this,a=re,$){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(W,e),E(a)}return c===void 0&&(c=setTimeout(W,e)),s}return Z.cancel=X,Z.flush=z,Z}var lZ,uZ,dZ,u5,sO=N(()=>{c5();oO();iO();lZ="Expected a function",uZ=Math.max,dZ=Math.min;u5=fZ});var aO=N(()=>{sO();});function cO(t){return pZ(t)}function d5(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function pZ(t){for(let e=t;e;e=d5(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=d5(t);e;e=d5(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||fp(r)||e.tagName==="BODY"))return e}return null}var lO=N(()=>{t5()});function uO(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}function hZ({placement:t,flipDisabled:e,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[Nk(),Rk()];return s==="menu"&&c.push(o5({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})),c.push(kk({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})),t==="auto"||t==="auto-start"||t==="auto-end"?c.push(Ok({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||c.push(o5(r?{fallbackPlacements:r}:{})),o&&c.push(Dk({element:o})),c}function gO(t,e){let r=t.filter(n=>dO.includes(n));return r.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${dO.map(n=>`"${n}"`).join(", ").trim()}`,{el:e}),r}function fO(t,e=!1){let r=["left","right"];return e&&r.reverse(),t.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function wO(t,e,r=!1){if(!t.open||!e.floatingEl||!e.referenceEl)return;if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!xg.get(t))return yO(t);await(r?gZ(t):mO)(t,e)}function gZ(t){let e=sb.get(t);return e||(e=u5(mO,g4.reposition,{leading:!0,maxWait:g4.reposition}),sb.set(t,e),e)}async function yO(t){let{referenceEl:e,floatingEl:r}=t;if(!r.isConnected)return;let n=Lk;xg.set(t,{state:"pending"});let i,o=n(e,r,()=>{let s=t.reposition();i||(i=s)});return xg.set(t,{state:"active",cleanUp:o}),i}function p5(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function bO(t){let{floatingEl:e,referenceEl:r}=t;if(p5(t),!(!e||!r)&&(m5(t),!!t.open))return yO(t)}function m5(t){let{floatingEl:e,referenceEl:r}=t;if(!e||!r)return;let n=xg.get(t);n?.state==="active"&&n.cleanUp(),xg.delete(t),sb.get(t)?.cancel(),sb.delete(t)}var mO,mZ,dO,hO,f5,wZ,xg,sb,pO,h5,g5=N(()=>{Zr();$k();aO();lO();lr();dn();(function(){if(!!1){let e=nb.getOffsetParent;nb.getOffsetParent=r=>e(r,cO)}})();mO=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=ec(r)==="rtl",{x:v,y:E,placement:M,strategy:k,middlewareData:F}=await Fk(e,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:fO(i,g),middleware:hZ({placement:i,flipDisabled:o,flipPlacements:s?.map(z=>fO(z,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:z,y:Z}=F.arrow,re=M.split("-")[0],$=z!=null?"left":"top",me=wZ[re],ke={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=re==="left"||re==="right"?"horizontal":"vertical"),Object.assign(d.style,{...ke,[$]:`${$=="left"?z:Z}px`,[re]:"100%",transform:me})}let B=F.hide?.referenceHidden?"hidden":null,X=B?"none":null;r.setAttribute(mZ,M),Object.assign(r.style,{pointerEvents:X,position:k,transform:`translate(${uO(v)}px,${uO(E)}px)`,visibility:B})},mZ="data-placement",dO=["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"],hO="bottom-end",f5={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};wZ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},xg=new WeakMap,sb=new WeakMap;pO=4,h5=Math.ceil(Math.hypot(pO,pO))});function vO(t){return t[t.openProp||"open"]}function hp(t){requestAnimationFrame(()=>{t.transitionEl&&SL(t.transitionEl,t.transitionProp,()=>{vO(t)?t.onBeforeOpen():t.onBeforeClose()},()=>{vO(t)?t.onOpen():t.onClose()})})}var ab=N(()=>{dn();});var cb,w5=N(()=>{ac();zy();xr();cb=({children:t,...e})=>{let r=e.level?OL(`h${e.level}`):ic`div`;return Xt(e.key,sp`<${r} class=${Se(e.class)}>${t}</${r}>`)}});var _O,yZ,SO,xO=N(()=>{Li();ac();Yr();xr();_O={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},yZ={width:12,height:6,strokeWidth:1},SO=({floatingLayout:t,key:e,ref:r})=>{let{width:n,height:i,strokeWidth:o}=yZ,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(_O.arrow)} height=${n} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${dt(r)}>${jo`${jo`<path class=${Se(_O.arrowStroke)} d=${a??Ce} fill=none stroke-width=${o+1} />`||""}<path d=${a??Ce} stroke=none />`}</svg>`)}});var CO,lb,TO,ru,ub,db,bZ,PO,MO,AO,uc,vZ,_Z,IO,SZ,xZ,EZ,CZ,TZ,PZ,MZ,EO,AZ,IZ,fb,y5,LZ,kZ,LO,kO,nu,OZ,pb,OO=N(()=>{CO=["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])"],lb=CO.join(","),TO=typeof Element>"u",ru=TO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ub=!TO&&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},db=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},bZ=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},PO=function(e,r,n){if(db(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(lb));return r&&ru.call(e,lb)&&i.unshift(e),i=i.filter(n),i},MO=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!db(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,lb);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!db(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},AO=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},uc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||bZ(e))&&!AO(e)?0:e.tabIndex},vZ=function(e,r){var n=uc(e);return n<0&&r&&!AO(e)?0:n},_Z=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},IO=function(e){return e.tagName==="INPUT"},SZ=function(e){return IO(e)&&e.type==="hidden"},xZ=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},EZ=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},CZ=function(e){if(!e.name)return!0;var r=e.form||ub(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=EZ(i,e.form);return!o||o===e},TZ=function(e){return IO(e)&&e.type==="radio"},PZ=function(e){return TZ(e)&&!CZ(e)},MZ=function(e){var r,n=e&&ub(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=ub(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},EO=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},AZ=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=ub(e);if(a&&!a.shadowRoot&&i(a)===!0)return EO(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(MZ(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return EO(e);return!1},IZ=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},fb=function(e,r){return!(r.disabled||db(r)||SZ(r)||AZ(r,e)||xZ(r)||IZ(r))},y5=function(e,r){return!(PZ(r)||uc(r)<0||!fb(e,r))},LZ=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},kZ=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=vZ(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(_Z).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},LO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=MO([e],r.includeContainer,{filter:y5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:LZ}):n=PO(e,r.includeContainer,y5.bind(null,r)),kZ(n)},kO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=MO([e],r.includeContainer,{filter:fb.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=PO(e,r.includeContainer,fb.bind(null,r)),n},nu=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,lb)===!1?!1:y5(r,e)},OZ=CO.concat("iframe").join(","),pb=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,OZ)===!1?!1:fb(r,e)}});function b5(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 NZ(t){if(Array.isArray(t))return b5(t)}function RZ(t,e,r){return(e=VZ(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function FZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NO(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 RO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NO(Object(r),!0).forEach(function(n){RZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $Z(t){return NZ(t)||DZ(t)||zZ(t)||FZ()}function UZ(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 VZ(t){var e=UZ(t,"string");return typeof e=="symbol"?e:e+""}function zZ(t,e){if(t){if(typeof t=="string")return b5(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)?b5(t,e):void 0}}var DO,WZ,BZ,Cg,GZ,jZ,FO,Eg,mb,qZ,$O,UO=N(()=>{OO();DO={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)}},WZ=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},BZ=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Cg=function(e){return e?.key==="Tab"||e?.keyCode===9},GZ=function(e){return Cg(e)&&!e.shiftKey},jZ=function(e){return Cg(e)&&e.shiftKey},FO=function(e){return setTimeout(e,0)},Eg=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},mb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},qZ=[],$O=function(e,r){var n=r?.document||document,i=r?.trapStack||qZ,o=RO({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:GZ,isKeyBackward:jZ},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,q,ee){return ce&&ce[q]!==void 0?ce[q]:o[ee||q]},d=function(ce,q){var ee=typeof q?.composedPath=="function"?q.composedPath():void 0;return s.containerGroups.findIndex(function(de){var ue=de.container,ve=de.tabbableNodes;return ue.contains(ce)||ee?.includes(ue)||ve.find(function(ye){return ye===ce})})},h=function(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.hasFallback,de=ee===void 0?!1:ee,ue=q.params,ve=ue===void 0?[]:ue,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,$Z(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&&!pb(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var q=s.tabbableGroups[0],ee=q&&q.firstTabbableNode;ce=ee||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 q=LO(ce,o.tabbableOptions),ee=kO(ce,o.tabbableOptions),de=q.length>0?q[0]:void 0,ue=q.length>0?q[q.length-1]:void 0,ve=ee.find(function(Ke){return nu(Ke)}),ye=ee.slice().reverse().find(function(Ke){return nu(Ke)}),De=!!q.find(function(Ke){return uc(Ke)>0});return{container:ce,tabbableNodes:q,focusableNodes:ee,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=q.indexOf(mt);return Kt<0?mr?ee.slice(ee.indexOf(mt)+1).find(function(Qt){return nu(Qt)}):ee.slice(0,ee.indexOf(mt)).reverse().find(function(Qt){return nu(Qt)}):q[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 q=ce.activeElement;if(q)return q.shadowRoot&&q.shadowRoot.activeElement!==null?E(q.shadowRoot):q},M=function(ce){if(ce!==!1&&ce!==E(document)){if(!ce||!ce.focus){M(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,WZ(ce)&&ce.select()}},k=function(ce){var q=h("setReturnFocus",{params:[ce]});return q||(q===!1?!1:ce)},F=function(ce){var q=ce.target,ee=ce.event,de=ce.isBackward,ue=de===void 0?!1:de;q=q||mb(ee),v();var ve=null;if(s.tabbableGroups.length>0){var ye=d(q,ee),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 q===hn});if(Ke<0&&(De.container===q||pb(q,o.tabbableOptions)&&!nu(q,o.tabbableOptions)&&!De.nextTabbableNode(q,!1))&&(Ke=ye),Ke>=0){var mt=Ke===0?s.tabbableGroups.length-1:Ke-1,mr=s.tabbableGroups[mt];ve=uc(q)>=0?mr.lastTabbableNode:mr.lastDomTabbableNode}else Cg(ee)||(ve=De.nextTabbableNode(q,!1))}else{var Kt=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.lastTabbableNode;return q===hn});if(Kt<0&&(De.container===q||pb(q,o.tabbableOptions)&&!nu(q,o.tabbableOptions)&&!De.nextTabbableNode(q))&&(Kt=ye),Kt>=0){var Qt=Kt===s.tabbableGroups.length-1?0:Kt+1,Kn=s.tabbableGroups[Qt];ve=uc(q)>=0?Kn.firstTabbableNode:Kn.firstDomTabbableNode}else Cg(ee)||(ve=De.nextTabbableNode(q))}}else ve=h("fallbackFocus");return ve},W=function(ce){var q=mb(ce);if(!(d(q,ce)>=0)){if(Eg(o.clickOutsideDeactivates,ce)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Eg(o.allowOutsideClick,ce)||ce.preventDefault()}},B=function(ce){var q=mb(ce),ee=d(q,ce)>=0;if(ee||q instanceof Document)ee&&(s.mostRecentlyFocusedNode=q);else{ce.stopImmediatePropagation();var de,ue=!0;if(s.mostRecentlyFocusedNode)if(uc(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 uc(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},X=function(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=F({event:ce,isBackward:q});ee&&(Cg(ce)&&ce.preventDefault(),M(ee))},z=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&X(ce,o.isKeyBackward(ce))},Z=function(ce){BZ(ce)&&Eg(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),c.deactivate())},re=function(ce){var q=mb(ce);d(q,ce)>=0||Eg(o.clickOutsideDeactivates,ce)||Eg(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},$=function(){if(s.active)return DO.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?FO(function(){M(g())}):M(g()),n.addEventListener("focusin",B,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",re,{capture:!0,passive:!1}),n.addEventListener("keydown",z,{capture:!0,passive:!1}),n.addEventListener("keydown",Z),c},me=function(){if(s.active)return n.removeEventListener("focusin",B,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",re,!0),n.removeEventListener("keydown",z,!0),n.removeEventListener("keydown",Z),c},ke=function(ce){var q=ce.some(function(ee){var de=Array.from(ee.removedNodes);return de.some(function(ue){return ue===s.mostRecentlyFocusedNode})});q&&M(g())},Te=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ke):void 0,Ne=function(){Te&&(Te.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Te.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 q=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),de=a(ce,"checkCanFocusTrap");de||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,q?.();var ue=function(){de&&v(),$(),Ne(),ee?.()};return de?(de(s.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(ce){if(!s.active)return this;var q=RO({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(),DO.deactivateTrap(i,c);var ee=a(q,"onDeactivate"),de=a(q,"onPostDeactivate"),ue=a(q,"checkCanReturnFocus"),ve=a(q,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){FO(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 q=[].concat(ce).filter(Boolean);return s.containers=q.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&v(),Ne(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(ce,q){if(s.paused===ce)return this;if(s.paused=ce,ce){var ee=a(q,"onPause"),de=a(q,"onPostPause");ee?.(),me(),Ne(),de?.()}else{var ue=a(q,"onUnpause"),ve=a(q,"onPostUnpause");ue?.(),v(),$(),Ne(),ve?.()}return this}}}),c.updateContainerElements(e),c}});function HZ(t,e){let r=e?.fallbackFocus||t,n=e?.clickOutsideDeactivates??!0;return{fallbackFocus:r,setReturnFocus:i=>(hb.has(t)||Fy(i),!1),...e,document:t.ownerDocument,tabbableOptions:L4,trapStack:II,clickOutsideDeactivates:i=>(hb.has(t)||hb.add(t),typeof n=="function"?n(i):n),onPostDeactivate:()=>{hb.delete(t)}}}function VO(t,{focusTrapOptions:e},r){return!e?.extraContainers&&!r?t:[t,...zO(e?.extraContainers),...zO(r)]}function zO(t=[]){return Array.isArray(t)?t:[t]}var hb,gb,v5=N(()=>{og();UO();dn();lr();hb=new WeakSet;gb=t=>oL((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||=VO(a,e),n=$O(o,HZ(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=VO(d,e,a)},updateContainerElements:()=>n?.updateContainerElements(o)};return c})});function wb(t){return t==="Enter"||t===" "}var Tg,Pg=N(()=>{Tg=["0","1","2","3","4","5","6","7","8","9"]});var _5,fo,WO,BO,GO,YZ,jO,S5,qO=N(()=>{lr();ac();Zr();Li();xr();g5();dn();rp();ab();w5();Rs();nc();xO();Ho();v5();Pg();un();_5=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():wb(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{vL(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)}},fo={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"header-container",heading:"heading"},WO="auto",BO="aria-controls",GO="aria-expanded",YZ=Tt`: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}`,jO=new _5,S5=class extends vt{constructor(){super(...arguments),this.closeButtonEl=pi(),this.focusTrap=gb({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=Jr(),this.offsetDistance=h5,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=WO,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=bt({cancelable:!1}),this.calcitePopoverBeforeOpen=bt({cancelable:!1}),this.calcitePopoverClose=bt({cancelable:!1}),this.calcitePopoverOpen=bt({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=YZ}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 wO(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(),rc(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!==h5)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==WO))&&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(),m5(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){hp(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?gO(r,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),bO(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(GO,ip(r))}addReferences(){let{referenceEl:e}=this;if(!e)return;let r=this.getId();"setAttribute"in e&&e.setAttribute(BO,r),jO.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(BO),e.removeAttribute(GO)),jO.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(),p5(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:r}=this;return r?Xt(fo.closeButtonContainer,_e`<div class=${Se(fo.closeButtonContainer)}><calcite-action appearance=transparent class=${Se(fo.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?cb({class:fo.heading,level:r,children:e}):null;return n?Xt(fo.header,_e`<div class=${Se(fo.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",SO({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",ep(this.el,"id",this.getId()),this.el.role="dialog",_e`<div class=${Se(fo.positionContainer)} ${dt(this.setFloatingEl)}><div class=${Se({[fo.container]:!0,[f5.animation]:!0,[f5.animationActive]:c})} ${dt(this.setTransitionEl)}>${d}<div class=${Se({[fo.hasHeader]:!!r,[fo.headerContainer]:!0})}>${this.renderHeader()}<div class=${Se(fo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Lt("calcite-popover",S5)});var HO=N(()=>{Zy();Zl();qO()});function x5(t,e){return(t+e)%e}var YO=N(()=>{});var E5,Mg,ZO,XO,C5=N(()=>{E5={menu:"menu",defaultTrigger:"default-trigger"},Mg={tooltip:"tooltip",trigger:"trigger"},ZO={menu:"ellipsis"},XO="data-active"});var ZZ,XZ,T5,JO=N(()=>{lr();Li();Zr();xr();YO();dn();rp();Pg();Rs();C5();un();ZZ=Tt`: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}`,XZ=["ArrowUp","ArrowDown","End","Home"],T5=class extends vt{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(wb(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(XO,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=bt({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=ZZ}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),Fy(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",ip(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,XZ))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=x5(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=x5(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=${Mg.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${Se(E5.defaultTrigger)} .icon=${ZO.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??Ce} aria-labelledby=${i?.id??Ce} class=${Se(E5.menu)} id=${n??Ce} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return _e`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${Mg.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Lt("calcite-action-menu",T5)});var KO=N(()=>{Zy();HO();JO()});var Jt,P5,Ag,Rt,M5=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"},P5={close:"close",collapse:"collapse"},Ag={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 JZ,A5,QO=N(()=>{lr();ac();Li();Zr();xr();dn();lg();Rs();nc();C5();w5();g5();Ho();M5();un();JZ=Tt`: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}`,A5=class extends vt{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=hO,this.messages=Jr(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=bt({cancelable:!1}),this.calcitePanelScroll=bt({cancelable:!1}),this.calcitePanelToggle=bt({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=JZ}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await En(this),rc(this.containerEl)}async load(){this.isClosed=this.closed}willUpdate(e){e.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){oc(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=$y(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){$y(e)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:r,description:n,hasHeaderContent:i}=this,o=e?cb({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=[Ag.expand,Ag.collapse];o==="up"&&g.reverse();let v=s?_e`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${P5.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Ce}></calcite-action>`:null,E=n?_e`<calcite-action .ariaLabel=${h} .icon=${Ag.close} id=${P5.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Ce}></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=${Ag.menu} .scale=${this.scale} slot=${Mg.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 sc({disabled:e,children:_e`${r?_e`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Lt("calcite-panel",A5)});var eN=N(()=>{Zy();KO();Y4();QO()});function QZ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var KZ,yb,eX,Ig,tN=N(()=>{KZ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};yb={exports:{}};yb.exports;(function(t,e){(function(r,n){t.exports=n()})(KZ,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},W=void 0,B=void 0;function X(p){W=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 z(p){return F(p)?p:(p.ownerDocument||p).defaultView||B.window}typeof window<"u"&&window&&X(window);var Z=function(p){return!!p&&i(p)==="object"},re=function(p){return typeof p=="function"},$={window:function(p){return p===B||F(p)},docFrag:function(p){return Z(p)&&p.nodeType===11},object:Z,func:re,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=z(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 Z(p)&&!!p.constructor&&/function Object\b/.test(p.constructor.toString())},array:function(p){return Z(p)&&p.length!==void 0&&re(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 Te={id:"actions/drag",install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.draggable=Te.draggable,f.map.drag=Te,f.methodDict.drag="draggable",_.actions.drag=Te.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=Te,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 q=we,ee={init:function(p){var f=q.Element,w=p.navigator||{};ee.supportsTouch="ontouchstart"in p||$.func(p.DocumentTouch)&&q.document instanceof p.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!q.PointerEvent,ee.isIOS=/iP(hone|od|ad)/.test(w.platform),ee.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),ee.isIe9=/MSIE 9/.test(w.userAgent),ee.isOperaMobile=w.appName==="Opera"&&ee.supportsTouch&&/Presto/.test(w.userAgent),ee.prefixedMatchesSelector="matches"in f.prototype?"matches":"webkitMatchesSelector"in f.prototype?"webkitMatchesSelector":"mozMatchesSelector"in f.prototype?"mozMatchesSelector":"oMatchesSelector"in f.prototype?"oMatchesSelector":"msMatchesSelector",ee.pEventTypes=ee.supportsPointerEvent?q.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,ee.wheelEvent=q.document&&"onmousewheel"in q.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},de=ee;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!==W&&(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 q.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=z(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)&&(q.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 bo(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 Ri(p){return p&&{x:"x"in p?p.x:p.left,y:"y"in p?p.y:p.top}}function wc(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 Ko(p,f,w){var _=w&&p.options[w];return Ri(bo(_&&_.origin||p.options.origin,p,f,[p&&f]))||{x:0,y:0}}function wi(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 wi(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];wi(p,A,w,_)}else if($.object(f))for(var O in f)wi(wu(O).map(function(R){return"".concat(p).concat(R)}),f[O],w,_);return _}function wu(p){return p.trim().split(/ +/)}var Qo=function(p,f){return Math.sqrt(p*p+f*f)},Ip=["webkit","moz"];function vo(p,f){p.__set||(p.__set={});var w=function(C){if(Ip.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 yc(p){p.page.x=0,p.page.y=0,p.client.x=0,p.client.y=0}function bc(p){return p instanceof q.Event||p instanceof q.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&&bc(p)?(hr("screen",p,f),f.x+=window.scrollX,f.y+=window.scrollY):hr("page",p,f),f}function _o(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&&bc(C)?hr("screen",C,T):hr("client",C,T)}(_,p.client),p.timeStamp=w}function vc(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 _c(p){if(!p.length)return null;var f=vc(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 Sc(p,f){var w=f+"X",_=f+"Y",C=vc(p),T=C[0][w]-C[1][w],A=C[0][_]-C[1][_];return Qo(T,A)}function xc(p,f){var w=f+"X",_=f+"Y",C=vc(p),T=C[1][w]-C[0][w],A=C[1][_]-C[0][_];return 180*Math.atan2(A,T)/Math.PI}function Ec(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 q.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 Di=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(Di.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},Cc=function(p){return _u([],p)},es=function(p,f){for(var w=0;w<p.length;w++)if(f(p[w],w,p))return w;return-1},yi=function(p,f){return p[es(p,f)]},So=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=es(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}(Di);function Fi(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 Tc(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 Y=D.options.drop.accept;if(!($.element(Y)&&Y!==A||$.string(Y)&&!De(A,Y)||$.func(Y)&&!Y({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,Y=U.element,oe=U.rect,ge=D.dropCheck(f,w,C,T,Y,oe);A.push(ge?Y: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),_t=Ke(Je);if(wr!==Be.ownerDocument)if(_t!==Be.ownerDocument)if(wr!==_t){Xe=Xe.length?Xe:mt(Je);var Rr=void 0;if(Je instanceof q.HTMLElement&&Be instanceof q.SVGElement&&!(Be instanceof q.SVGSVGElement)){if(Be===_t)continue;Rr=Be.ownerSVGElement}else Rr=Be;for(var gn=mt(Rr,Je.ownerDocument),Tn=0;gn[Tn]&&gn[Tn]===Xe[Tn];)Tn++;var ls=[gn[Tn-1],gn[Tn],Xe[Tn]];if(ls[0])for(var ot=ls[0].lastChild;ot;){if(ot===ls[1]){Oe=Qe,Xe=gn;break}if(ot===ls[2])break;ot=ot.previousSibling}}else $e=Je,(parseInt(z(Ie=Be).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(z($e).getComputedStyle($e).zIndex,10)||0)&&(Oe=Qe);else Oe=Qe}else Oe=Qe}return Oe}(A);return _.activeDrops[he]||null}function Pc(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 So(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new So(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new So(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new So(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new So(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new So(_,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&&Fi(_,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=Tc(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=Pc(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=wi(O.listeners),U=Object.keys(R).reduce(function(Y,oe){return Y[/^(enter|leave)/.test(oe)?"drag".concat(oe):/^(activate|deactivate|move)/.test(oe)?"drop".concat(oe):oe]=R[oe],Y},{}),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(Y,oe,ge,he,be,Oe,Ie){var $e=!1;if(!(Ie=Ie||Y.getRect(Oe)))return!!Y.options.drop.checker&&Y.options.drop.checker(oe,ge,$e,Y,Oe,he,be);var Xe=Y.options.drop.overlap;if(Xe==="pointer"){var Qe=Ko(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 _t=he.getRect(be);if(_t&&Xe==="center"){var Rr=_t.left+_t.width/2,gn=_t.top+_t.height/2;$e=Rr>=Ie.left&&Rr<=Ie.right&&gn>=Ie.top&&gn<=Ie.bottom}return _t&&$.number(Xe)&&($e=Math.max(0,Math.min(Ie.right,_t.right)-Math.max(Ie.left,_t.left))*Math.max(0,Math.min(Ie.bottom,_t.bottom)-Math.max(Ie.top,_t.top))/(_t.width*_t.height)>=Xe),Y.options.drop.checker&&($e=Y.options.drop.checker(oe,ge,$e,Y,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=Tc(f,w.element),C.events=Pc(w,0,_),C.events.activate&&(Fi(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:Tc,getDrop:Su,getDropEvents:Pc,fireDropEvents:Bs,filterEventType:function(p){return p.search("drag")===0||p.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Lp=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=Sc(C,O),w.box=_c(C),w.scale=1,w.ds=0,w.angle=xc(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=Sc(C,O),w.box=_c(C),w.scale=w.distance/f.gesture.startDistance,w.angle=xc(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 xo={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=xo,f.methodDict.gesture="gesturable",_.actions.gesture=xo.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=xo;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 Mc(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 Qr,bi,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),Mc(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,Y=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)Y[be]=D[be]-oe[be];C.edges=_.prepared.edges,C.rect=D,C.deltaRect=Y}})(p),Mc(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,Y=O.axis!=="x"&&A.y>C.bottom-Vn.defaultMargin;(D||Y)&&(p.action={name:"resize",axes:(D?"x":"")+(Y?"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(Lp)}},Gs=0,Qn={request:function(p){return Qr(p)},cancel:function(p){return bi(p)},init:function(p){if(Qr=p.requestAnimationFrame,bi=p.cancelAnimationFrame,!Qr)for(var f=["ms","moz","webkit","o"],w=0;w<f.length;w++){var _=f[w];Qr=p["".concat(_,"RequestAnimationFrame")],bi=p["".concat(_,"CancelAnimationFrame")]||p["".concat(_,"CancelRequestAnimationFrame")]}Qr=Qr&&Qr.bind(p),bi=bi&&bi.bind(p),Qr||(Qr=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},bi=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=Ac(T);$.window(T)?T.scrollBy(U.x,U.y):T&&(T.scrollLeft+=U.x,T.scrollTop+=U.y);var Y=Ac(T),oe={x:Y.x-D.x,y:Y.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,Y=js(D.container,O,R);if($.window(Y))A=w.clientX<je.margin,_=w.clientY<je.margin,C=w.clientX>Y.innerWidth-je.margin,T=w.clientY>Y.innerHeight-je.margin;else{var oe=Qt(Y);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)||z(w)}function Ac(p){return $.window(p)&&(p=window.document.body),{x:p.scrollLeft,y:p.scrollTop}}var Ic={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)}}},Lc=Ic;function Eo(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,Y){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 Y.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=Eo(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),f.prototype.allowFrom=Eo(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 kc(p,f,w,_,C){return f.testIgnoreAllow(f.options[p.name],w,_)&&f.options[p.name].enabled&&ts(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],Y=U.getAction(f,w,p,D);if(Y){var oe=kc(Y,U,D,T,A);if(oe)return{action:oe,interactable:U,element:D}}}return{action:null,interactable:null,element:null}}function Oc(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 Nc(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,Dc(p,w),w.fire("autoStart:prepared",{interaction:p})}function ts(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 Y=0,oe=_.interactions.list;Y<oe.length;Y++){var ge=oe[Y],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 Rc(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 Dc(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 Rc(_,p)},p.autoStart={maxInteractions:1/0,withinInteractionLimit:ts,cursorElement:null}},listeners:{"interactions:down":function(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget;w.interacting()||Nc(w,Oc(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()||Nc(C,Oc(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||!ts(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Dc(C,_)))}}(p,f)},"interactions:stop":function(p,f){var w=p.interaction,_=w.interactable;_&&_.options.styleCursor&&Hs(w.element,"",f)}},maxInteractions:Rc,withinInteractionLimit:ts,validateAction:kc},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 Y=_,oe=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Y,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Y);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,Y,_,f))return he}}};$.element(Y);){var ge=f.interactables.forEachMatch(Y,oe);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Y;break}Y=ye(Y)}}}}}};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 Fc={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=z(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 rs(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 $i(p){var f={};for(var w in p){var _=p[w];$.plainObject(_)?f[w]=$i(_):$.array(_)?f[w]=Cc(_):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=ns(),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],Y=D.modifiers;return Y&&Y.length?Y:["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=ns(),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=ns(f.coords,f.rect),U=0;U<O.length;U++){var D,Y=O[U],oe=Y.options,ge=Ue({},f.coords),he=null;(D=Y.methods)!=null&&D.set&&this.shouldDo(oe,_,w)&&(f.state=Y,he=Y.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 Y=D[U],oe=Y[0],ge=Y[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,Y=[[_.start,A],[_.cur,R]];D<Y.length;D++){var oe=Y[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 $i(w)}),this.result=ns(Ue({},f.result.coords),Ue({},f.result.rect))}},{key:"destroy",value:function(){for(var f in this)this[f]=null}}]),p}();function ns(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 Co(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":Co,"interactions:action-move":Co,"interactions:action-end":Co,"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)}}},$c=Vu,Uc={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 Y=_.interactable,oe=(Y&&Y.options||Uc).deltaSource,ge=Ko(Y,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=Y,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=Qo(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}(Di);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}({}),Vc=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=Eo(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 Vc)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=Qo(C,T)>this.pointerMoveTolerance);var O,R,U,D=this.getPointerIndex(f),Y={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",Y),A||this.simulation||(this.interacting()&&(Y.type=null,this.move(Y)),this.pointerWasMoved&&zs(this.coords.prev,this.coords.cur))}},{key:"move",value:function(f){f&&f.event||yc(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=_o(f);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:es(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=_o(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(Y){return Y.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=_,vo(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 zc(p){Wc(p.interaction)}function Wc(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}Vc.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":zc,"interactions:before-action-move":zc,"interactions:before-action-end":function(p){var f=p.interaction;if(Wc(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}}},Bc=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,_=is(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Qo(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,_=is(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=is(U).resistance,Y=(U._now()-this.t0)/1e3;if(Y<this.te){var oe,ge=1-(Math.exp(-D*Y)-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:Gc(O=ge,f,_,T),y:Gc(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=is(w).smoothEndDuration;if(_<C){var T={x:jc(_,0,this.targetOffset.x,C),y:jc(_,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 is(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(Bc),p.usePlugin($c),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":Co,"interactions:action-inertiastart":Co,"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 Gc(p,f,w,_){var C=1-p;return C*C*f+2*C*p*w+p*p*_}function jc(p,f,w,_){return-w*(p/=_)*(p-2)+f}var Zu=Yu;function qc(p,f){for(var w=0;w<f.length;w++){var _=f[w];if(p.immediatePropagationStopped)break;_(p)}}var Hc=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])&&qc(f,w),!f.propagationStopped&&_&&(w=_[f.type])&&qc(f,w)}},{key:"on",value:function(f,w){var _=wi(f,w);for(f in _)this.types[f]=_u(this.types[f]||[],_[f])}},{key:"off",value:function(f,w){var _=wi(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,vo(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 Ui(p){return $.object(p)?{capture:!!p.capture,passive:!!p.passive}:{capture:!!p,passive:!1}}function To(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,Y,oe,ge,he){var be=Ui(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=yi($e,function(Qe){return Qe.selector===D&&Qe.context===Y});Xe||(Xe={selector:D,context:Y,listeners:[]},$e.push(Xe)),Xe.listeners.push({func:ge,options:be})},removeDelegate:function(D,Y,oe,ge,he){var be,Oe=Ui(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===Y){for(var Qe=Xe.listeners,Be=Qe.length-1;Be>=0;Be--){var Je=Qe[Be];if(Je.func===ge&&To(Je.options,Oe)){Qe.splice(Be,1),Qe.length||(Ie.splice(be,1),O(Y,oe,R),O(Y,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,Y,oe,ge){if(D.addEventListener){var he=Ui(ge),be=yi(w,function(Oe){return Oe.eventTarget===D});be||(be={eventTarget:D,events:{}},w.push(be)),be.events[Y]||(be.events[Y]=[]),yi(be.events[Y],function(Oe){return Oe.func===oe&&To(Oe.options,he)})||(D.addEventListener(Y,oe,T.supportsOptions?he:he.capture),be.events[Y].push({func:oe,options:he}))}}function O(D,Y,oe,ge){if(D.addEventListener&&D.removeEventListener){var he=es(w,function(wr){return wr.eventTarget===D}),be=w[he];if(be&&be.events)if(Y!=="all"){var Oe=!1,Ie=be.events[Y];if(Ie){if(oe==="all"){for(var $e=Ie.length-1;$e>=0;$e--){var Xe=Ie[$e];O(D,Y,Xe.func,Xe.options)}return}for(var Qe=Ui(ge),Be=0;Be<Ie.length;Be++){var Je=Ie[Be];if(Je.func===oe&&To(Je.options,Qe)){D.removeEventListener(Y,oe,T.supportsOptions?Qe:Qe.capture),Ie.splice(Be,1),Ie.length===0&&(delete be.events[Y],Oe=!0);break}}}Oe&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Y in be.events)be.events.hasOwnProperty(Y)&&O(D,Y,"all")}}function R(D,Y){for(var oe=Ui(Y),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];To(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 Y=D[U];if(!(Y.pointerType!==_||/down/i.test(C)&&Y.simulation))return Y}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,os=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Yc(p,f){return function(w){var _=f.interactions.list,C=Ec(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 Y=D[U],oe={pointer:Y,pointerId:_o(Y),pointerType:C,eventType:w.type,eventTarget:A,curEventTarget:O,scope:f},ge=Zc(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:_o(w),pointerType:C,eventType:w.type,curEventTarget:O,eventTarget:A,scope:f},Ie=Zc(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 Zc(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 Y=T[D];O(w,Y.type,Y.listener,U)}}var Xc={id:"core/interactions",install:function(p){for(var f={},w=0;w<os.length;w++){var _=os[w];f[_]=Yc(_,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[Y];p.documents.some(function(he){return ue(he.doc,ge.downTarget)})||U.removePointer(ge.pointer,ge.event)},Y=0,oe=U.pointers;Y<oe.length;Y++)D()}}(C=q.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(Fc)},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:Yc,methodNames:os},Qu=Xc,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 Hc,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=z(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))&&rs(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]=Cc(O):$.plainObject(O)?(A[T]=Ue(A[T]||{},$i(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=wi(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];rs(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=$i(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=es(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 yi(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=$i(Uc),this.Eventable=Hc,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=_c,C.getTouchDistance=Sc,C.getTouchAngle=xc,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=Eo(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 Y in T)this.on(Y,T[Y],A);return this}return rs(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=Eo(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 Y in T)this.off(Y,T[Y],A);return this}var oe;return rs(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(_)&&X(_),q.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[Jc(R)]=!0,O},{});_<C;_++){var A=this.listenerMaps[_].id;if(A&&(T[A]||T[Jc(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 _=z(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),_=z(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 Jc(p){return p&&p.replace(/\/.*$/,"")}var Kc=new rd,gr=Kc.interactStatic,nd=typeof globalThis<"u"?globalThis:window;Kc.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},Y=0;Y<f.length;Y++){var oe=f[Y],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 Y=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=(Y.left?1:-1)*(Y.top?1:-1);f.edgeSign={x:oe,y:oe}}else f.edgeSign={x:Y.left?-1:1,y:Y.top?-1:1};if(O!==!1&&Ue(_,Y),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?Qc: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 Qc(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 el=ei(ad,"aspectRatio"),tl=function(){};tl._defaults={};var ss=tl;function vi(p,f,w){return $.func(p)?bo(p,f.interactable,f.element,[w.x,w.y,f]):bo(p,f.interactable,f.element)}var as={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=vi(A.restriction,C,T);if(U){var D=U.right-U.left-f.width,Y=U.bottom-U.top-f.height;D<0&&(R.left+=D,R.right+=D),Y<0&&(R.top+=Y,R.bottom+=Y)}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=vi(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(as,"restrict"),rl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},nl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function il(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 Po={noInner:rl,noOuter:nl,start:function(p){var f,w=p.interaction,_=p.startOffset,C=p.state,T=C.options;T&&(f=Ri(vi(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=vi(A.inner,_,O)||{},U=vi(A.outer,_,O)||{};il(R,rl),il(U,nl),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(Po,"restrictEdges"),dd=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(p){}},as.defaults),fd=ei({start:as.start,set:as.set,defaults:dd},"restrictRect"),pd={width:-1/0,height:-1/0},md={width:1/0,height:1/0},hd=ei({start:function(p){return Po.start(p)},set:function(p){var f=p.interaction,w=p.state,_=p.rect,C=p.edges,T=w.options;if(C){var A=wc(vi(T.min,f,p.coords))||pd,O=wc(vi(T.max,f,p.coords))||md;w.options={endOnly:T.endOnly,inner:Ue({},Po.noInner),outer:Ue({},Po.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),Po.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=Ri(bo(oe.state.options.origin,null,null,[ge])),be=he||Ko(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=bo(R.offset,_,C,[w]);(f=Ri(D)||{x:0,y:0}).x+=U.x,f.y+=U.y}var Y=R.relativePoints;A.offsets=T&&Y&&Y.length?Y.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=Ko(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 Y=D[U],oe=O.x-Y.x,ge=O.y-Y.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,Y,he):Oe)&&R.push({x:($.number(Ie.x)?Ie.x:oe)+Y.x,y:($.number(Ie.y)?Ie.y:ge)+Y.y,range:$.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Y})}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,_t=Qo(Je,wr),Rr=_t<=Be;Be===1/0&&$e.inRange&&$e.range!==1/0&&(Rr=!1),$e.target&&!(Rr?$e.inRange&&Be!==1/0?_t/Be<$e.distance/$e.range:Be===1/0&&$e.range!==1/0||_t<$e.distance:!$e.inRange&&_t<$e.distance)||($e.target=Qe,$e.distance=_t,$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"),cs={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 Y=0,oe=w.targetFields;Y<oe.length;Y++){var ge=oe[Y],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(cs,"snapSize"),na={aspectRatio:el,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"]],cs.start(p)):null},set:cs.set,defaults:Ue($i(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:gd,snapSize:wd,spring:ss,avoid:ss,transform:ss,rubberband:ss},yd={id:"modifiers",install:function(p){var f=p.interactStatic;for(var w in p.usePlugin($c),p.usePlugin(sd),f.modifiers=na,na){var _=na[w],C=_._defaults,T=_._methods;C._methods=T,p.defaults.perAction[w]=C}}},bd=yd,ol=function(p){d(w,p);var f=E(w);function w(_,C,T,A,O,R){var U;if(o(this,w),vo(v(U=f.call(this,O)),T),T!==C&&vo(v(U),C),U.timeStamp=R,U.originalEvent=T,U.type=_,U.pointerId=_o(C),U.pointerType=Ec(C),U.target=A,U.currentTarget=null,_==="tap"){var D=O.getPointerIndex(C);U.dt=U.timeStamp-O.pointers[D].downTime;var Y=U.timeStamp-O.tapTime;U.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===U.target&&Y<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}(Di),Mo={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(p){p.pointerEvents=Mo,p.defaults.actions.pointerEvents=Mo.defaults,Ue(p.actions.phaselessTypes,Mo.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),Y={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];Y.node=ge,_.fire("pointerEvents:collect-targets",Y)}if(Y.targets.length){for(var he=1/0,be=0,Oe=Y.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:ol,fire:ri,collectEventTargets:sl,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?sl(p,f):O,U=new ol(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},Y=0;Y<R.length;Y++){var oe=R[Y];for(var ge in oe.props||{})U[ge]=oe.props[ge];var he=Ko(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&&Y+1<R.length&&R[Y+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 sl(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},Y=0;Y<U.length;Y++){var oe=U[Y];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:Mo});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(Mo);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 Y=A[D],oe=_.getRect(Y);if(!oe)return 1;var ge,he=yi(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Y&&Ie.prepared.name===C.name});if(he)he.move(),R&&(ge=he._reflowPromise||new O(function(Ie){he._reflowResolve=Ie}));else{var be=wc(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),yc(Je.coords.delta),qs(Je.prepared,Qe),Je._doPhase(wr);var _t=Ie.window,Rr=_t.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,_,Y,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(Fc),gr.use(Bc),gr.use(Pd),gr.use(Zu),gr.use(bd),gr.use(Fu),gr.use(Mu),gr.use(Lc),gr.use(Ad),gr.default=gr,i(t)==="object"&&t)try{t.exports=gr}catch{}return gr.default=gr,gr})})(yb,yb.exports);eX=yb.exports,Ig=QZ(eX)});function rN(t,e,r){return e?`${t}-${e}`:r?`${t}-${r}`:`${t}-m`}var nN=N(()=>{});var dc,Zn,iN,oN,tX,I5,sN,bb,aN=N(()=>{lr();ac();tN();Zr();Li();xr();dn();Rs();nc();nN();ab();M5();Ho();v5();un();dc={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"},iN={x:null,y:null},oN={top:null,right:null,bottom:null,left:null},tX=Tt`: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}`,I5=0,sN="",bb=class extends vt{constructor(){super(...arguments),this.dragPosition={...iN},this.focusTrap=gb({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=pi(),this.resizePosition={...oN},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=Jr(),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=bt({cancelable:!1}),this.calciteDialogBeforeOpen=bt({cancelable:!1}),this.calciteDialogClose=bt({cancelable:!1}),this.calciteDialogOpen=bt({cancelable:!1}),this.calciteDialogScroll=bt({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=tX}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()??rc(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(dc.openingActive,e),hp(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-di,type:"blockSize"}),c.bottom-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+di,type:"blockSize"}),c.bottom+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-di,type:"inlineSize"}),c.right-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+di,type:"inlineSize"}),c.right+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x+=di,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={...iN},this.resizePosition={...oN},this.updateTransform()}async 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=Ig(r,{context:e.ownerDocument})),n){await this.el.componentOnReady();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:[Ig.modifiers.restrictSize({min:{width:ag(c),height:ag(a)},max:{width:ag(d)||window.innerWidth,height:ag(h)||window.innerHeight}}),Ig.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:[Ig.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}I5--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){I5===0&&(sN=document.documentElement.style.overflow),I5++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",sN)}handleMutationObserver(){this.focusTrap.updateContainerElements()}render(){let{assistiveText:e,description:r,heading:n,opened:i}=this;return _e`<div class=${Se({[dc.container]:!0,[dc.containerOpen]:i,[dc.containerEmbedded]:this.embedded})}>${this.modal?_e`<calcite-scrim class=${Se(dc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${Se({[dc.dialog]:!0,[rN("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(dc.assistiveText)}>${e}</div>`):null}<slot name=${Zn.customContent}><slot name=${Zn.content}><calcite-panel .beforeClose=${this.beforeClose} class=${Se(dc.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",bb)});var cN={};Ao(cN,{Dialog:()=>bb});var lN=N(()=>{Y4();eN();aN()});var uN,rX,L5,dN=N(()=>{lr();Zr();xr();dn();un();uN={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},rX=Tt`: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}`,L5=class extends vt{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=rX}connectedCallback(){super.connectedCallback(),this.requestedIcon=Ns(uN,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||this.status!=="idle")||e.has("icon"))&&(this.requestedIcon=Ns(uN,this.icon,this.status))}render(){let e=this.el.hidden;return ep(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",L5)});var fN=N(()=>{Zl();dN()});var nX,k5,pN=N(()=>{lr();Yr();xr();dn();un();nX=Tt`: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}`,k5=class extends vt{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=nX}render(){let e=this.type==="determinate",r=e?{width:`${this.value}%`}:{},n=ec(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",[ng.rtl]:n==="rtl",reversed:this.reversed})} style=${Ay(r)}></div></div>${this.text?_e`<div class="text">${this.text}</div>`:null}</div>`}};Lt("calcite-progress",k5)});var mN=N(()=>{pN()});function Zo(t){return!(!t||isNaN(Number(t)))}function hN(t){return!t||!fX(t)?"":vb(t,e=>{let r=!1,n=e.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Tg.includes(i)).join("");return Zo(n)?new iu(n).toString():""})}function uX(t){let e=t.split(".")[1],r=new iu(t).toString(),[n,i]=r.split(".");return e&&i!==e?`${n}.${e}`:r}function vb(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 dX(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(iX,"").replace(gN,"")}`}function fX(t){return Tg.some(e=>t.includes(e))}function yN(t,e,r){let n=e.split(".")[1];if(n){let i=n.match(lX)[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 hX(t,e="cldr"){let r=e==="cldr"?vN:bN;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).`),Lg))):Lg}var iX,oX,iu,gN,sX,aX,cX,lX,wN,Lg,bN,vN,Xve,pX,_N,O5,SN,mX,N5,po,xN=N(()=>{Pg();iX=new RegExp("\\.(0+)?$"),oX=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]=dX(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(oX,"");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)}};gN=/^([-0])0+(?=\d)/,sX=/(?!^\.)\.$/,aX=/(?!^-)-/g,cX=/^-\b0\b\.?0*$/,lX=/0*$/,wN=t=>vb(t,e=>{let r=e.replace(aX,"").replace(sX,"").replace(gN,"$1");return Zo(r)?cX.test(r)?r:uX(r):e});Lg="en",bN=["ar","bg","bs","ca","cs","da","de","el",Lg,"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"],vN=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Lg,"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"],Xve=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"}})),pX=["arab","arabext","latn"];[...new Set([...bN,...vN])];_N=t=>pX.includes(t),O5=new Intl.NumberFormat().resolvedOptions().numberingSystem,SN=O5==="arab"||!_N(O5)?"latn":O5,mX=t=>_N(t)?t:SN;N5=class{constructor(){this.delocalize=e=>this._numberFormatOptions?vb(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?vb(e,r=>Zo(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=hX(e?.locale),e.numberingSystem=mX(e?.numberingSystem),!this._numberFormatOptions&&e.locale===Lg&&e.numberingSystem===SN&&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)}},po=new N5});var gX,wX,EN,CN=N(()=>{Li();Yr();xr();gX={validationContainer:"validation-container"},wX=()=>{},EN=({scale:t,status:e,id:r,icon:n,message:i,ref:o})=>_e`<div class=${Se(gX.validationContainer)} ${dt(o||wX)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Ce} .scale=${t} .status=${e}>${i}</calcite-input-message></div>`});function gp(t,e,r,n){let i=r.toLowerCase(),o=t[r];n&&o!=null?e.setAttribute(i,`${o}`):e.removeAttribute(i)}function TN(t,e,r){r.type=t==="textarea"?"text":t;let n=yX.includes(t),i=e;gp(i,r,"min",n),gp(i,r,"max",n),gp(i,r,"step",n);let o=vX.includes(t),s=e;gp(s,r,"minLength",o),gp(s,r,"maxLength",o);let c=bX.includes(t);gp(s,r,"pattern",c)}var yX,bX,vX,PN=N(()=>{yX=["date","datetime-local","month","number","range","time","week"],bX=["email","password","search","tel","text","url"],vX=["email","password","search","tel","text","textarea","url"]});var fn,R5,MN,_X,SX,_b,AN=N(()=>{lr();p4();ac();Zr();Li();zy();xr();og();dn();q4();lg();Pg();Hy();Rs();xN();CN();Ho();PN();un();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"},R5={validationMessage:"inputValidationMessage"},MN={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},_X={action:"action"},SX=Tt`: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}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}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`,_b=class extends vt{constructor(){super(),this.actionWrapperEl=pi(),this.attributeWatch=Oy(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=pi(),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=Jr(),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=bt({cancelable:!1}),this.calciteInputInput=bt(),this.calciteInternalInputBlur=bt({cancelable:!1}),this.calciteInternalInputFocus=bt({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=SX}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),rc(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),cp(this),UL(this),this.el.addEventListener(By,this.onHiddenFormInputInput)}async load(){this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Ns(MN,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:Zo(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(MN,this.icon,this.type))}updated(){oc(this)}disconnectedCallback(){super.disconnectedCallback(),qy(this),VL(this),this.el.removeEventListener(By,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"?Zo(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"&&Wy(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;po.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=po.delocalize(r);e.inputType==="insertFromPaste"?(Zo(n)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:hN(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=[...Tg,"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}po.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===po.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(po.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(!bL(e))return;e.preventDefault();let r=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,e)}syncHiddenFormInput(e){TN(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"?Zo(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"){po.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:wN(o),d=o&&!a?Zo(this.previousValue)?this.previousValue:"":a,h=po.localize(d);n!=="connected"&&!c&&(h=yN(h,d,po)),this.displayedValue=c&&s?`${h}${po.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"?po.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!Zo(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=ec(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??Ce} aria-errormessage=${R5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${mg(this)} autocomplete=${this.autocomplete??Ce} .autofocus=${g} value=${this.defaultValue??Ce} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Ce} inputmode=${E??Ce} maxlength=${this.maxLength??Ce} minlength=${this.minLength??Ce} .multiple=${this.multiple} name=${Ce} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Ce} placeholder=${(this.placeholder||"")??Ce} .readOnly=${this.readOnly} type=text .value=${Py(this.displayedValue??"")} ${dt(this.setChildNumberElRef)}>`):null,k=this.childElType==="input"?ic`input`:ic`textarea`,F=this.type!=="number"?sp`<${k} accept=${this.accept??Ce} aria-errormessage=${R5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${mg(this)} autocomplete=${this.autocomplete??Ce} .autofocus=${g} class=${Se({[fn.editingEnabled]:this.editingEnabled,[fn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Ce} inputmode=${E??Ce} max=${this.maxString??Ce} maxlength=${this.maxLength??Ce} min=${this.minString??Ce} minlength=${this.minLength??Ce} .multiple=${this.multiple} name=${this.name??Ce} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Ce} placeholder=${(this.placeholder||"")??Ce} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Ce} step=${this.step??Ce} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Ce} type=${this.type??Ce} .value=${Py(this.value??"")} ${dt(this.setChildElRef)}></${k}>`:null;return sc({disabled:this.disabled,children:_e`<div class=${Se({[fn.inputWrapper]:!0,[ng.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=${_X.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}${WL({component:this})}</div>${this.validationMessage&&this.status==="invalid"?EN({icon:this.validationIcon,id:R5.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Lt("calcite-input",_b)});var IN={};Ao(IN,{Input:()=>_b});var LN=N(()=>{fN();mN();Zl();AN()});var xX,EX,Sb,kN=N(()=>{lr();Zr();xr();Hy();un();xX={container:"container"},EX=Tt`: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}`,Sb=class extends vt{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=bt({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=EX}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(pg))}willUpdate(e){e.has("for")&&XL(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(dg))}labelClickHandler(e){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return _e`<div class=${Se(xX.container)}><slot></slot></div>`}};Lt("calcite-label",Sb)});var ON={};Ao(ON,{Label:()=>Sb});var NN=N(()=>{kN()});var D5,RN=N(()=>{D5={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var xb,kg,CX,Eb,DN=N(()=>{lr();Zr();Li();xr();dn();Rs();RN();ab();Ho();un();xb={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},kg={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},CX=Tt`: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}`,Eb=class extends vt{constructor(){super(...arguments),this.closeButton=pi(),this.transitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=Jr(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=bt({cancelable:!1}),this.calciteNoticeBeforeOpen=bt({cancelable:!1}),this.calciteNoticeClose=bt({cancelable:!1}),this.calciteNoticeOpen=bt({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=CX}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(D5,this.icon,this.kind)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&hp(this),(e.has("icon")||e.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=Ns(D5,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(kg.close)} @click=${this.close} ${dt(this.closeButton)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`;return _e`<div class=${Se(kg.container)} ${dt(this.setTransitionEl)}>${this.requestedIcon?_e`<div class=${Se(kg.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon></div>`:null}<div class=${Se(kg.content)}><slot name=${xb.title}></slot><slot name=${xb.message}></slot><slot name=${xb.link}></slot></div><div class=${Se(kg.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${xb.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?e:null}</div>`}};Lt("calcite-notice",Eb)});var FN={};Ao(FN,{Notice:()=>Eb});var $N=N(()=>{Zl();DN()});var F5,$5,TX,hi,U5,UN=N(()=>{si();Cx();ai();xt();Ut();Sa();qn();qI();y4();iy();HI();ZI();JI();_x();F5="esri-identity-modal",$5={base:F5,info:`${F5}__info`,notice:`${F5}__notice`},TX="ArcGIS Online",hi=class extends jI{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 FI({button:()=>Promise.resolve().then(()=>(QL(),KL)),dialog:()=>Promise.resolve().then(()=>(lN(),cN)),input:()=>Promise.resolve().then(()=>(LN(),IN)),label:()=>Promise.resolve().then(()=>(NN(),ON)),notice:()=>Promise.resolve().then(()=>($N(),FN))})}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:W}=r;return fi("div",{class:this.classes($5.base,XI())},fi("form",{bind:this,onsubmit:this._submit},fi("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},fi("div",{class:$5.info},bx(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?TX:o,resource:`(${s||h})`})),c?fi("calcite-notice",{class:$5.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},fi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[fi("calcite-label",null,E,fi("calcite-input",{afterCreate:B=>this._usernameInputNode=B,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),fi("calcite-label",null,M,fi("calcite-input",{afterCreate:B=>this._passwordInputNode=B,bind:this,name:"password",required:!0,type:"password",value:""}))],fi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},k),fi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:W))))}_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})],hi.prototype,"container",void 0),ae([pe(),x4("esri/t9n/common")],hi.prototype,"commonMessages",void 0),ae([pe()],hi.prototype,"error",void 0),ae([pe(),x4("esri/identity/t9n/identity")],hi.prototype,"messages",void 0),ae([pe()],hi.prototype,"oAuthPrompt",void 0),ae([pe()],hi.prototype,"open",void 0),ae([pe()],hi.prototype,"signingIn",void 0),ae([pe()],hi.prototype,"server",void 0),ae([pe({readOnly:!0})],hi.prototype,"title",null),ae([pe()],hi.prototype,"resource",void 0),hi=ae([Ct("esri.identity.IdentityModal")],hi);U5=hi});var V5,wp,VN=N(()=>{V5="esriJSAPIOAuth",wp=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(V5,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(V5,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(V5);if(r)try{e=JSON.parse(r)}catch(n){console.warn(n)}}return e}};wp.prototype.declaredClass="esri.identity.OAuthCredential"});var z5,pn,W5,zN=N(()=>{si();Mh();ai();xt();Ut();Sa();qn();pn=class extends ja{static{z5=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 z5.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=z5=ae([Ct("esri.identity.OAuthInfo")],pn);W5=pn});var gi,Cb,WN=N(()=>{si();Mh();ai();xt();Ut();Sa();qn();gi=class extends ja{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}})],gi.prototype,"adminTokenServiceUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"currentVersion",void 0),ae([pe({json:{write:!0}})],gi.prototype,"hasPortal",void 0),ae([pe({json:{write:!0}})],gi.prototype,"hasServer",void 0),ae([pe({json:{write:!0}})],gi.prototype,"owningSystemUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"owningTenant",void 0),ae([pe({json:{write:!0}})],gi.prototype,"server",void 0),ae([pe({json:{write:!0}})],gi.prototype,"shortLivedTokenValidity",void 0),ae([pe({json:{write:!0}})],gi.prototype,"tokenServiceUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"webTierAuth",void 0),gi=ae([Ct("esri.identity.ServerInfo")],gi);Cb=gi});var Tb,BN,B5,Pb,Mb,Og,Yt,GN=N(()=>{si();Fa();Oh();G0();Ln();px();vh();Mn();Do();no();Bo();ai();xt();Ut();qn();UN();VN();zN();WN();Lh();Tb={},BN=t=>{let e=new an(t.owningSystemUrl).host,r=new an(t.server).host,n=/.+\.arcgis\.com$/i;return n.test(e)&&n.test(r)},B5=(t,e)=>!!(BN(t)&&e&&e.some(r=>r.test(t.server))),Pb=null,Mb=null;try{Pb=window.localStorage,Mb=window.sessionStorage}catch{}Og=class extends Ts{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=Cs(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 Cb,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 ww({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 Cb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new W5(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&&ci(r.signal,()=>{s.abort()}),ci(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),ro(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 Cb,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||cn(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 an(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 an(h.toLowerCase()),e.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(cn(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 W=F.data;if(!W?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let B=e.server;return Tb[B]||(Tb[B]={}),r&&(Tb[B][r.username]=r.password),W.validity=M,W})}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(qa(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&&ci(n.signal,()=>{s()});let c=new U5({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&&ci(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=F0(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=F0(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 U5({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=qa(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=qa(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 F0(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&&!cn(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&String(e.currentVersion)==="10.1"&&!cn(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let r=new an(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||k0(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=Nf(e),r=Nf(r),(e=e.slice(Math.max(0,e.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(e){let r=(yt.request.proxyUrl||"").toLowerCase(),n=r?e.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(e=e.slice(n+r.length+1)),e=Es(e),Cs(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 an(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||yt.portalUrl&&(i=cn(r,yt.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&&BN(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 an(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?Pb:Mb,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?Pb:Mb,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(qa(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))||cn(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:")&&Ff(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 W=this._getSuffix(F.resUrl_);k[W]||(k[W]=!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,W;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",X=>{X.source===window.parent&&X.data&&(X.data.type==="arcgis:auth:credential"?(B.remove(),X.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new Yt(X.data.credential))):X.data.type==="arcgis:auth:error"&&(B.remove(),X.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(X.data.error))))});ci(e.options_?.signal,()=>{B.remove()})}else if(k){let B=k._oAuthCred;if(!B){let X=new wp(k,Pb),z=new wp(k,Mb);X.isValid()&&z.isValid()?X.expires>z.expires?(B=X,z.destroy()):(B=z,X.destroy()):B=X.isValid()?X:z,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 X=k.appId!==B.appId&&this._doPortalSignIn(e.resUrl_);X||B.refreshToken?(e._pendingDfd=B.refreshToken?this._getOAuthToken(E.server,B.refreshToken,B.appId).then(z=>(F.expires=Date.now()+1e3*z.expires_in,F.token=z.access_token,F)):Promise.resolve(F),e._pendingDfd.then(z=>X?this._exchangeToken(z.server,k.appId,z.token).then(Z=>(z.token=Z,z)).catch(()=>z):z).then(z=>{r(z)}).catch(z=>{let Z=z.details?.httpStatus;Z>0&&Z!==404?(B.destroy(),i()):n(z)})):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 X=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(X,k,E).then(z=>{r(z)}).catch(n)}else{let X=()=>{M?e._pendingDfd=this.oAuthSignIn(e.resUrl_,E,k,e.options_).then(r,n):(W=new We("identity-manager:not-authenticated","User is not signed in."),n(W))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(E.server,k.appId).then(z=>{cn(z.portalUrl,this._appOrigin,!0)?(F=new Yt({userId:z.username,server:E.server??void 0,expires:Date.now()+1e3*z.expires_in,token:z.token}),r(F)):X()}).catch(X):X()}}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 W=new We("identity-manager:not-authenticated","User is not signed in."),n(W)},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(B5(d,this._legacyFed)){let W=k.toJSON();W.server=d.server,W.resources=null,r(new Yt(W))}else(e._pendingDfd=this.generateToken(this.findServerInfo(k.server),null,{serverUrl:e.resUrl_,token:k.token,signal:e.options_.signal,ssl:k.ssl})).then(W=>{r(new Yt({userId:k?.userId,server:d.server??void 0,token:W.token,expires:W.expires!=null?Number(W.expires):null,ssl:!!W.ssl,isAdmin:e.admin_,validity:W.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=(Ei("authInfo.tokenServicesUrl",d)||Ei("authInfo.tokenServiceUrl",d)||Ei("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Ei("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 W5({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:Ai(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||!(cn(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 Ai(e.popupCallbackUrl);if(r){let i=Cs(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Uf(i.path,i.query)}return n}};Og.prototype.declaredClass="esri.identity.IdentityManagerBase";Yt=class extends Ts.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&&B5(e,t._legacyFed),o=e.webTierAuth,s=o&&t.normalizeWebTierAuth,c=Tb[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))&&(B5(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=ww({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([Ct("esri.identity.Credential")],Yt)});var qN={};Ao(qN,{default:()=>jN});var Ab,jN,HN=N(()=>{Oh();GN();Ab=class extends Og{};Ab.prototype.declaredClass="esri.identity.IdentityManager";jN=new Ab;sM(jN)});var fc,Ib=N(()=>{LS();fc=class extends If{notify(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var Lb,YN=N(()=>{xs();Ib();Lb=class{constructor(e=r=>r.values().next().value){this._peeker=e,this._observable=new fc,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 yp,ZN=N(()=>{xs();Ib();yp=class{constructor(e){this._observable=new fc,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 XN(t,e=yw){return new G5(t,e)}var G5,JN=N(()=>{Mn();xs();Ib();G5=class{constructor(e,r){this._observable=new fc,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 KN={};Ao(KN,{QueueProcessor:()=>q5});var j5,q5,QN=N(()=>{Ll();no();YN();ZN();b0();JN();j5=class{constructor(e,r){this.item=e,this.controller=r,this.promise=null}},q5=class{constructor(e){this._schedule=null,this._deferreds=new yp,this._controllers=new yp,this._processingItems=new yp,this._pausedSignal=XN(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new Lb(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=ci(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=y0(()=>{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 j5(e,n);this._processingItems.set(e,i);try{r=this.process(e,n.signal)}catch(o){this._processError(i,o)}WS(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=qa(e.query.toString().replaceAll("+"," ")));let r=$f(t),n=D0(t);n||r||(t=Es(t));let i={url:t,requestOptions:{...e}},o=E=>({data:E,getAllHeaders:bp,getHeader:bp,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=ax(t,Ni.internalInterceptors);if(s){let E=await tR(s,i);if(E!=null)return o(E)}let c=ax(t);if(c){let E=await tR(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 mo("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 mo("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw mo("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await LX(),kb)return kb.execute(t,e);let a=new AbortController,d=ci(e,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:Ni.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=e.useRequestQueue?DX(h):Y5(h),v=await g.finally(()=>d?.remove());return c?.after?.(v),v}function IX(t){let e=ln(t);e&&!nr._corsServers.includes(e)&&nr._corsServers.push(e)}function eR(t){let e=ln(t);return!e||e.endsWith(".arcgis.com")||nr._corsServers.includes(e)||N0(e)}function mo(t,e,r,n){let i,o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:bp,getHeader:bp,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=Ob in e?e[Ob]:e}return i??="Error",Sh(e)?Sn():new We(t,i,o)}async function LX(){fe("host-webworker")&&!kb&&(kb=await Promise.resolve().then(()=>(TM(),CM)))}async function H5(){Zt||await Promise.resolve().then(()=>(HN(),qN))}async function kX(t){let e=t.params.url,r=t.params.requestOptions,n=t.controller.signal,i=r.body,o=null,s=null;if(iR&&"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:Ni.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=yt.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!oR(e)&&!ro(n)){let c;r.authMode==="immediate"?(await H5(),c=await Zt.getCredential(e,{signal:n}),t.credential=c):r.authMode==="no-prompt"?(await H5(),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 oR(t){return AX.some(e=>e.test(t))}async function OX(t){let e=t.params.url,r=t.params.requestOptions,n=t.fetchOptions??{},i=D0(e)||$f(e),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Ni.timeout,c=!1;if(!i){t.useSSL&&(e=$0(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>Ni.maxUrlLength;let F=r.useProxy||!!Ff(e);if(F){let W=tM(e);k=W.path,!c&&k.length+1+M>Ni.maxUrlLength&&(c=!0),W.query&&(v={...W.query,...v})}if(n.method==="HEAD"&&(c||F)){if(c)throw M>Ni.maxUrlLength?mo("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params):mo("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params);if(F)throw mo("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=Uf(e,v):(n.body=Rl(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=Uf(e,v),F&&(t.useProxy=!0,e=`${k}?${e}`),v.token&&iR&&n.body instanceof FormData&&!k0(e)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?t.withCredentials=r.withCredentials:cn(e,Df())||(N0(e)||Zt&&Zt.findServerInfo(e)?.webTierAuth)&&(t.withCredentials=!0),t.withCredentials&&(n.credentials="include",SM(e)&&await xM(c?Uf(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||NX(r.headers)||!i&&!t.useProxy&&Ni.proxyUrl&&!eR(e)){if(nr._beforeFetch&&await nr._beforeFetch(e,n),a=await fetch(e,n),nr._afterFetch&&await nr._afterFetch(a),t.useProxy||IX(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=rR(d,"application/xml");break;case"document":d=rR(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 nR(URL.createObjectURL(d),t,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await nR(e,t)}catch(v){if(v.name==="AbortError")throw g?vM():Sn("Request canceled");if(!(!a&&v instanceof TypeError&&Ni.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||t.useProxy||eR(e))throw v;t.redoRequest=!0,iM({proxyUrl:Ni.proxyUrl,urlPrefix:ln(e)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function tR(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=mo("request:interceptor",i,e)}if((n instanceof Error||n instanceof We)&&(r=mo("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}function NX(t){if(t){for(let e of Object.getOwnPropertyNames(t))if(t[e])return!0}return!1}function rR(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 DX(t){let e=$X(t.params.url);if(!e)return Y5(t);let{QueueProcessor:r}=await Promise.resolve().then(()=>(QN(),KN));return vf(RX,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(ro(o.params.requestOptions))throw mo("",Sn("Request canceled"),o.params);return Y5(o)}})}).push(t)}async function Y5(t){let e,r;await kX(t);try{do[e,r]=await OX(t);while(!await FX(t,e,r))}catch(o){let s=mo("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&&!N0(n)){let o=ln(n,!0);o&&Ni.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):bp,getHeader:e?o=>e.headers.get(o):bp,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}async function FX(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[Ob]=r,i.details=r.messages)),!i&&!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[Ob]=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&&PX.has(o)&&!oR(t.params.url)&&(o!==403||(!s||!MX.has(s))&&(c==null||c===2&&t.credentialToken))){await H5();try{let d=await Zt.getCredential(t.params.url,{error:mo("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 nR(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=Ni.priority,i.src=t,bM(i,t,r,n)}function $X(t){let e,r;return typeof t=="string"?(e=ln(t,!0),r=fx(t)):(e=t.origin,r=fx(t.toString())),e==null?null:{origin:e,isHosted:r}}var kb,Ni,iR,PX,MX,AX,bp,Ob,RX,G0=N(()=>{Fa();Oh();Ln();xt();Mn();Bw();no();Bo();hM();Lh();wM();EM();Ni=yt.request,iR="FormData"in globalThis,PX=new Set([499,498,403,401]),MX=new Set(["COM_0056","COM_0057","SB_0008"]),AX=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],bp=()=>null,Ob=Symbol();nr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],nr._beforeFetch=void 0,nr._afterFetch=void 0;RX=new Map});function Gf(t){if(!yt.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 R0(yt.assetsPath,t)}var j0=N(()=>{Fa();G0();Ln();Ut();Bo()});function sR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var aR=N(()=>{});var cR=AC(()=>{});var lR=AC(()=>{});var fR={};Ao(fR,{p:()=>zX});function UX(){return uR||(uR=1,t=dR,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 W=cR(),B=lR();k=__dirname+"/",c=m=>(m=Ri(m)?new URL(m):B.normalize(m),W.readFileSync(m)),s=(m,L=!0)=>(m=Ri(m)?new URL(m):B.normalize(m),new Promise((j,ie)=>{W.readFile(m,L?void 0:"utf8",(le,Me)=>{le?ie(le):j(L?Me.buffer:Me)})})),!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=>Ri(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 X,z,Z=console.log.bind(console),re=console.error.bind(console);Object.assign(a,E),E=null;var $,me,ke,Te,Ne,we,ce,q=!1;function ee(m,L){m||hn(L)}function de(){var m=z.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=Te=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(){vo(ue)}function Ke(){vo(ve)}function mt(){vo(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){re(m="Aborted("+m+")"),q=!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,",bo=m=>m.startsWith(gu),Ri=m=>m.startsWith("file://");function wc(){var m="pe-wasm.wasm";return bo(m)?m:F(m)}function Vs(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Ko(m){return s(m).then(L=>new Uint8Array(L),()=>Vs(m))}function wi(m,L,j){return Ko(m).then(ie=>WebAssembly.instantiate(ie,L)).then(j,ie=>{re(`failed to asynchronously prepare wasm: ${ie}`),hn(ie)})}function wu(m,L,j,ie){return typeof WebAssembly.instantiateStreaming!="function"||bo(L)||Ri(L)||v||typeof fetch!="function"?wi(L,j,ie):fetch(L,{credentials:"same-origin"}).then(le=>WebAssembly.instantiateStreaming(le,j).then(ie,function(Me){return re(`wasm streaming compile failed: ${Me}`),re("falling back to ArrayBuffer instantiation"),wi(L,j,ie)}))}function Qo(){return{a:Lp}}function Ip(){var m=Qo();function L(ie,le){return G=ie.exports,z=G.t,de(),mr(G.u),Cn(),G}function j(ie){L(ie.instance)}return Kn(),Ue??=wc(),wu(X,Ue,m,j).catch(o),{}}var vo=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 Te[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 yc=typeof TextDecoder<"u"?new TextDecoder:void 0,bc=(m,L=0,j=NaN)=>{for(var ie=L+j,le=L;m[le]&&!(le>=ie);)++le;if(le-L>16&&m.buffer&&yc)return yc.decode(m.subarray(L,le));for(var Me="";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)Me+=String.fromCharCode(Ve);else{var yn=Ve-65536;Me+=String.fromCharCode(55296|yn>>10,56320|1023&yn)}}else Me+=String.fromCharCode((31&Ve)<<6|Re)}else Me+=String.fromCharCode(Ve)}return Me},hr=(m,L)=>m?bc(me,m,L):"";function yu(m,L,j){return 0}var _o=(m,L,j,ie)=>{if(!(ie>0))return 0;for(var le=j,Me=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>=Me)break;L[j++]=Re}else if(Re<=2047){if(j+1>=Me)break;L[j++]=192|Re>>6,L[j++]=128|63&Re}else if(Re<=65535){if(j+2>=Me)break;L[j++]=224|Re>>12,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}else{if(j+3>=Me)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)=>_o(m,me,L,j);function vc(m,L,j){return 0}function bu(m,L,j,ie){}var _c=m=>m%4==0&&(m%100!=0||m%400==0),Sc=[0,31,60,91,121,152,182,213,244,274,305,335],xc=[0,31,59,90,120,151,181,212,243,273,304,334],Ec=m=>(_c(m.getFullYear())?Sc:xc)[m.getMonth()]+m.getDate()-1,vu=(m,L)=>L+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*L:NaN;function Di(m,L,j){var ie=vu(m,L),le=new Date(1e3*ie);Te[j>>2]=le.getSeconds(),Te[j+4>>2]=le.getMinutes(),Te[j+8>>2]=le.getHours(),Te[j+12>>2]=le.getDate(),Te[j+16>>2]=le.getMonth(),Te[j+20>>2]=le.getFullYear()-1900,Te[j+24>>2]=le.getDay();var Me=0|Ec(le);Te[j+28>>2]=Me,Te[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));Te[j+32>>2]=yn}var _u=()=>2147483648,Cc=(m,L)=>Math.ceil(m/L)*L,es=m=>{var L=(m-z.buffer.byteLength+65535)/65536|0;try{return z.grow(L),de(),1}catch{}},yi={},So=()=>M||"./this.program",Fi=()=>{if(!Fi.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",_:So()};for(var L in yi)yi[L]===void 0?delete m[L]:m[L]=yi[L];var j=[];for(var L in m)j.push(`${L}=${m[L]}`);Fi.strings=j}return Fi.strings},Tc=(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 Pc=[null,[],[]],Bs=(m,L)=>{var j=Pc[m];L===0||L===10?((m===1?Z:re)(bc(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 _o(m,le,0,le.length),le}var Lp={c:yu,q:(m,L,j)=>{},h:vc,d:bu,o:m=>{},n:(m,L)=>{},p:(m,L,j)=>{},l:()=>{hn("")},s:(m,L,j)=>me.copyWithin(m,L,L+j),j:Di,r:(m,L,j,ie)=>{var le=new Date().getFullYear(),Me=new Date(le,0,1),Ve=new Date(le,6,1),Re=Me.getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=Math.max(Re,tt);Ne[m>>2]=60*yn,Te[L>>2]=+(Re!=tt);var Yg=Jg=>{var mv=Jg>=0?"-":"+",Kg=Math.abs(Jg);return`UTC${mv}${String(Math.floor(Kg/60)).padStart(2,"0")}${String(Kg%60).padStart(2,"0")}`},Zg=Yg(Re),Xg=Yg(tt);tt<Re?(Ws(Zg,j,17),Ws(Xg,ie,17)):(Ws(Zg,ie,17),Ws(Xg,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 Me=Math.min(j,Cc(Math.max(m,le),65536));if(es(Me))return!0}return!1},e:(m,L)=>{var j=0;return Fi().forEach((ie,le)=>{var Me=L+j;Ne[m+4*le>>2]=Me,Tc(ie,Me),j+=ie.length+1}),0},f:(m,L)=>{var j=Fi();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,Me=0;Me<j;Me++){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=Ip();a._webidl_free=m=>(a._webidl_free=G.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=G.w)(m);var xo,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),Mc=a._emscripten_bind_PeObject_getType_0=m=>(Mc=a._emscripten_bind_PeObject_getType_0=G.z)(m),Qr=a._emscripten_bind_PeCoordsys_isEqual_1=(m,L)=>(Qr=a._emscripten_bind_PeCoordsys_isEqual_1=G.A)(m,L),bi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(bi=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),Ac=a._emscripten_bind_PeAngunit_getCode_0=m=>(Ac=a._emscripten_bind_PeAngunit_getCode_0=G.J)(m),Ic=a._emscripten_bind_PeAngunit_getName_1=(m,L)=>(Ic=a._emscripten_bind_PeAngunit_getName_1=G.K)(m,L),Lc=a._emscripten_bind_PeAngunit_getType_0=m=>(Lc=a._emscripten_bind_PeAngunit_getType_0=G.L)(m),Eo=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(Eo=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),kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(kc=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),Oc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=G.T)(m),Nc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=G.U)(m),ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=G.V)(m),Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Rc=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),Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Dc=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),Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=G.ga)(m),rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=G.ha)(m),$i=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>($i=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),ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(ns=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),Co=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(Co=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),$c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>($c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=G.oa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Uc=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),Vc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Vc=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),zc=a._emscripten_bind_PeDouble_get_val_0=m=>(zc=a._emscripten_bind_PeDouble_get_val_0=G.wa)(m),Wc=a._emscripten_bind_PeDouble_set_val_1=(m,L)=>(Wc=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),Bc=a._emscripten_bind_PeFactory_fromString_2=(m,L)=>(Bc=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),is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,L,j,ie,le,Me)=>(is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=G.Da)(m,L,j,ie,le,Me),Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=G.Ea)(m),Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=G.Fa)(m),jc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(jc=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),qc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(qc=a._emscripten_bind_PeGCSExtent___destroy___0=G.Ia)(m),Hc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Hc=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),Ui=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(Ui=a._emscripten_bind_PeGeogcs_getDatum_0=G.La)(m),To=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(To=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),os=a._emscripten_bind_PeGeogcs_getType_0=m=>(os=a._emscripten_bind_PeGeogcs_getType_0=G.Ra)(m),Yc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,L)=>(Yc=a._emscripten_bind_PeGeogtran_isEqual_1=G.Sa)(m,L),Zc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Zc=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),Xc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Xc=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,Me)=>(rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=G._a)(m,L,j,ie,le,Me),Jc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Jc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=G.$a)(m),Kc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Kc=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),Qc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Qc=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),el=a._emscripten_bind_PeHorizon_getCoord_0=m=>(el=a._emscripten_bind_PeHorizon_getCoord_0=G.jb)(m),tl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(tl=a._emscripten_bind_PeInteger_PeInteger_1=G.kb)(m),ss=a._emscripten_bind_PeInteger_get_val_0=m=>(ss=a._emscripten_bind_PeInteger_get_val_0=G.lb)(m),vi=a._emscripten_bind_PeInteger_set_val_1=(m,L)=>(vi=a._emscripten_bind_PeInteger_set_val_1=G.mb)(m,L),as=a._emscripten_bind_PeInteger___destroy___0=m=>(as=a._emscripten_bind_PeInteger___destroy___0=G.nb)(m),ld=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,L,j,ie,le,Me,Ve,Re,tt,yn)=>(ld=a._emscripten_bind_PeLineType_geodetic_distance_10=G.ob)(m,L,j,ie,le,Me,Ve,Re,tt,yn),rl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,L,j,ie,le,Me,Ve,Re,tt)=>(rl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=G.pb)(m,L,j,ie,le,Me,Ve,Re,tt),nl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,L,j,ie,le,Me,Ve,Re)=>(nl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=G.qb)(m,L,j,ie,le,Me,Ve,Re),il=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,L,j,ie,le,Me,Ve,Re,tt)=>(il=a._emscripten_bind_PeLineType_great_elliptic_distance_9=G.rb)(m,L,j,ie,le,Me,Ve,Re,tt),Po=a._emscripten_bind_PeMath_phi_to_eta_2=(m,L)=>(Po=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),cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(cs=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),ol=a._emscripten_bind_PeParameter_getValue_0=m=>(ol=a._emscripten_bind_PeParameter_getValue_0=G.Gb)(m),Mo=a._emscripten_bind_PeParameter_getCode_0=m=>(Mo=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),sl=a._emscripten_bind_PeParameter_getType_0=m=>(sl=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),Y=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Y=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),_t=a._emscripten_bind_PeSpheroid_getCode_0=m=>(_t=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 ls(){function m(){xo||(xo=!0,a.calledRun=!0,q||(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 ov(m,L){return er(m.ptr,L)}function sv(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete oa(m.__class__)[m.ptr]}function av(m,L){return m.ptr===L.ptr}function cv(m){return m.ptr}function lv(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,Me,Ve)=>(a._pe_geog_to_mgrs_extended=G.Hc)(m,L,j,ie,le,Me,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,Me,Ve)=>(a._pe_geog_to_usng=G.Jc)(m,L,j,ie,le,Me,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(){xo||ls(),xo||(Qt=m)},ls(),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=ov,a.NULL=er(0),a.destroy=sv,a.compare=av,a.getPointer=cv,a.getClass=lv;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),ee(He.buffer)),He.pos=0},alloc(m,L){ee(He.buffer);var j,ie=L.BYTES_PER_ELEMENT,le=m.length*ie;return le=Cc(le,8),He.pos+le>=He.size?(ee(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 kp(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 uv(m){if(typeof m=="object"){var L=He.alloc(m,ke);return He.copy(m,ke,L),L}return m}function dv(m){if(typeof m=="object"){var L=He.alloc(m,Te);return He.copy(m,Te,L),L}return m}function fv(m){if(typeof m=="object"){var L=He.alloc(m,we);return He.copy(m,we,L),L}return m}function pv(m){if(typeof m=="object"){var L=He.alloc(m,ce);return He.copy(m,ce,L),L}return m}function Bt(){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 Vi(){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 en(){throw"cannot construct a PeFactory, no constructor in IDL"}function yr(m,L,j,ie,le,Me){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),Me&&typeof Me=="object"&&(Me=Me.ptr),this.ptr=is(m,L,j,ie,le,Me),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=tl(m),oa(Mr)[this.ptr]=this}function tn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Ar(){throw"cannot construct a PeMath, no constructor in IDL"}function St(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Gt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function rn(){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 zi(){throw"cannot construct a PeVersion, no constructor in IDL"}return Bt.prototype=Object.create(ot.prototype),Bt.prototype.constructor=Bt,Bt.prototype.__class__=Bt,Bt.__cache__={},a.PeObject=Bt,Bt.prototype.getCode=Bt.prototype.getCode=function(){var m=this.ptr;return Cu(m)},Bt.prototype.getName=Bt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Tu(L,m))},Bt.prototype.getType=Bt.prototype.getType=function(){var m=this.ptr;return Mc(m)},Cr.prototype=Object.create(Bt.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),!!Qr(L,m)},Cr.prototype.getCode=Cr.prototype.getCode=function(){var m=this.ptr;return bi(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(Bt.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)},Vi.prototype=Object.create(ot.prototype),Vi.prototype.constructor=Vi,Vi.prototype.__class__=Vi,Vi.__cache__={},a.VoidPtr=Vi,Vi.prototype.__destroy__=Vi.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 Ac(m)},Dr.prototype.getName=Dr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ic(L,m))},Dr.prototype.getType=Dr.prototype.getType=function(){var m=this.ptr;return Lc(m)},Dr.prototype.getUnitFactor=Dr.prototype.getUnitFactor=function(){var m=this.ptr;return Eo(m)},Fr.prototype=Object.create(Bt.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 kc(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 Oc(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 Nc(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 ts(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 Rc(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 Dc(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 Fc(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 rs(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 $i(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 ns(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 Co(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 $c(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 Uc(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 Vc(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 zc(m)},Pr.prototype.set_val=Pr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wc(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)},en.prototype=Object.create(ot.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeFactory=en,en.prototype.initialize=en.prototype.initialize=function(m){He.prepare(),m=m&&typeof m=="object"?m.ptr:kp(m),Ks(m)},en.prototype.factoryByType=en.prototype.factoryByType=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),er(qu(m,L),Bt)},en.prototype.fromString=en.prototype.fromString=function(m,L){return He.prepare(),m&&typeof m=="object"&&(m=m.ptr),L=L&&typeof L=="object"?L.ptr:kp(L),er(Bc(m,L),Bt)},en.prototype.getCode=en.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 Gc(m)},yr.prototype.getRLon=yr.prototype.getRLon=function(){var m=this.ptr;return jc(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;qc(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;Hc(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(Ui(m),Fr)},ht.prototype.getPrimem=ht.prototype.getPrimem=function(){var m=this.ptr;return er(To(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 os(m)},Ft.prototype=Object.create(Bt.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),!!Yc(L,m)},Ft.prototype.getGeogcs1=Ft.prototype.getGeogcs1=function(){var m=this.ptr;return er(Zc(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 Xc(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,Me){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),Me&&typeof Me=="object"&&(Me=Me.ptr),er(rd(m,L,j,ie,le,Me),wn)},Pn.prototype.get_PE_GTLIST_OPTS_COMMON=Pn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Jc(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(Kc(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 Qc(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 el(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 ss(m)},Mr.prototype.set_val=Mr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),vi(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;as(m)},tn.prototype=Object.create(ot.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeLineType=tn,tn.prototype.geodetic_distance=tn.prototype.geodetic_distance=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.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,Me,Ve,Re,tt,yn)},tn.prototype.geodetic_coordinate=tn.prototype.geodetic_coordinate=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),rl(m,L,j,ie,le,Me,Ve,Re,tt)},tn.prototype.geodesic_coordinate=tn.prototype.geodesic_coordinate=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),nl(m,L,j,ie,le,Me,Ve,Re)},tn.prototype.great_elliptic_distance=tn.prototype.great_elliptic_distance=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),il(m,L,j,ie,le,Me,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),Po(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)},St.prototype=Object.create(ot.prototype),St.prototype.constructor=St,St.prototype.__class__=St,St.__cache__={},a.PeNotationMgrs=St,St.prototype.get_PE_MGRS_STYLE_NEW=St.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return md(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_NEW",{get:St.prototype.get_PE_MGRS_STYLE_NEW}),St.prototype.get_PE_MGRS_STYLE_OLD=St.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return hd(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_OLD",{get:St.prototype.get_PE_MGRS_STYLE_OLD}),St.prototype.get_PE_MGRS_STYLE_AUTO=St.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return ra(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_AUTO",{get:St.prototype.get_PE_MGRS_STYLE_AUTO}),St.prototype.get_PE_MGRS_180_ZONE_1_PLUS=St.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return gd(m)},Object.defineProperty(St.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:St.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),St.prototype.get_PE_MGRS_ADD_SPACES=St.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return cs(m)},Object.defineProperty(St.prototype,"PE_MGRS_ADD_SPACES",{get:St.prototype.get_PE_MGRS_ADD_SPACES}),Gt.prototype=Object.create(ot.prototype),Gt.prototype.constructor=Gt,Gt.prototype.__class__=Gt,Gt.__cache__={},a.PeNotationUtm=Gt,Gt.prototype.get_PE_UTM_OPTS_NONE=Gt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return wd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NONE",{get:Gt.prototype.get_PE_UTM_OPTS_NONE}),Gt.prototype.get_PE_UTM_OPTS_NS=Gt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return na(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NS",{get:Gt.prototype.get_PE_UTM_OPTS_NS}),Gt.prototype.get_PE_UTM_OPTS_NS_STRICT=Gt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return yd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Gt.prototype.get_PE_UTM_OPTS_NS_STRICT}),Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES=Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return bd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),rn.prototype=Object.create(Bt.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PeParameter=rn,rn.prototype.getValue=rn.prototype.getValue=function(){var m=this.ptr;return ol(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return Mo(m)},rn.prototype.getName=rn.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ri(L,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return sl(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(Bt.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(Y(m),ht)},ut.prototype.getProjection=ut.prototype.getProjection=function(){var m=this.ptr;return er(oe(m),Bt)},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(Bt.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 _t(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)},zi.prototype=Object.create(ot.prototype),zi.prototype.constructor=zi,zi.prototype.__class__=zi,zi.__cache__={},a.PeVersion=zi,zi.prototype.version_string=zi.prototype.version_string=function(){var m=this.ptr;return hr(Tn(m))},a.ensureCache=He,a.ensureString=kp,a.ensureInt8=zn,a.ensureInt16=uv,a.ensureInt32=dv,a.ensureFloat32=fv,a.ensureFloat64=pv,d},t.exports=r),dR.exports;var t,e,r}var uR,dR,VX,zX,pR=N(()=>{aR();dR={exports:{}};VX=sR(UX()),zX=Object.freeze(Object.defineProperty({__proto__:null,default:VX},Symbol.toStringTag,{value:"Module"}))});function mR(){return!!V}function WX(){return!!fe("esri-wasm")}function hR(){return Z5||(Z5=Promise.resolve().then(()=>(pR(),fR)).then(t=>t.p).then(({default:t})=>t({locateFile:e=>Gf(`esri/geometry/support/${e}`)})).then(t=>{yR(t)}),Z5)}function yR(t){function e(o,s,c){o[s]=c(o[s])}V=t,Vt.init(),Db.init(),Fb.init(),$b.init(),Ub.init(),gR=class extends V.PeDouble{constructor(o=NaN){super(o)}destroy(){V.destroy(this)}[Symbol.dispose](){this.destroy()}},wR=class extends V.PeGCSExtent{destroy(){V.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[V.PeAngunit,V.PeDatum,V.PeGeogcs,V.PeGeogtran,V.PeObject,V.PeParameter,V.PePrimem,V.PeProjcs,V.PeSpheroid,V.PeUnit];for(let o of r)e(o.prototype,"getName",s=>function(){return s.call(this,new Array(Vt.PE_NAME_MAX))});for(let o of[V.PeGeogtran,V.PeProjcs])e(o.prototype,"getParameters",s=>function(){let c=new Array(Vt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=V.getValue(a,"*");c[d]=h?V.wrapPointer(h,V.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});e(V.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return pc(a,c,o.call(this),s),a}),e(V.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=V._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!V.compare(a,V.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=V.getPointer(a);for(let g=1;g<d;g++)c.push(V.wrapPointer(h+s*g,V.PeGTlistExtendedGTs))}}return c}});let n=V._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(!V.compare(a,V.NULL)){c=[a];let d=a.getNump();if(d>1){let h=V.getPointer(a);for(let g=1;g<d;g++)c.push(V.wrapPointer(h+n*g,V.PeHorizon))}}return s.set(o,c),c};e(V.PeProjcs.prototype,"horizonGcsGenerate",i),e(V.PeProjcs.prototype,"horizonPcsGenerate",i),V.PeObject.prototype.toString=function(o=Vt.PE_STR_OPTS_NONE){V.ensureCache.prepare();let s=V.getPointer(this),c=V.ensureInt8(new Array(Vt.PE_BUFFER_MAX));return V.UTF8ToString(V._pe_object_to_string_ext(s,o,c))},V.PeGeogcs.prototype.destroy=function(){this.Delete(),ho(this),this.ptr=0},V.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},V.PeProjcs.prototype.destroy=function(){this.Delete(),ho(this),this.ptr=0},V.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function ho(t){if(!t)return;let e=V.getClass(t);if(!e)return;let r=V.getCache(e);if(!r)return;let n=V.getPointer(t);n&&delete r[n]}function Nb(t,e){let r=[],n=new Array(e);for(let i=0;i<t;i++)r.push(V.ensureInt8(n));return r}function ou(t){return ArrayBuffer.isView(t)?t:Array.isArray(t[0])?t.flat():t}function pc(t,e,r,n=!1){if(n)for(let i=0;i<2*e;i++)t[i]=V.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]=V.getValue(r,"double"),t[o][1]=V.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var Z5,V,X5,Vt,gR,Rb,wR,Db,J5,K5,Q5,eE,tE,Fb,rE,$b,Ub,nE,GSe,bR=N(()=>{j0();xt();V=null;(function(t){function e(o,s,c){V.ensureCache.prepare();let a=ou(c),d=c===a,h=V.ensureFloat64(a),g=V._pe_geog_to_proj(V.getPointer(o),s,h);return g&&pc(c,s,h,d),g}function r(o,s,c,a){switch(a){case Vt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case Vt.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){V.ensureCache.prepare();let d=ou(c),h=c===d,g=V.ensureFloat64(d),v=V._pe_proj_to_geog_center(V.getPointer(o),s,g,a);return v&&pc(c,s,g,h),v}t.geogToProj=e,t.projGeog=r,t.projToGeog=n,t.projToGeogCenter=i})(X5||(X5={})),function(t){function e(){t.PE_BUFFER_MAX=V.PeDefs.prototype.PE_BUFFER_MAX,t.PE_NAME_MAX=V.PeDefs.prototype.PE_NAME_MAX,t.PE_MGRS_MAX=V.PeDefs.prototype.PE_MGRS_MAX,t.PE_USNG_MAX=V.PeDefs.prototype.PE_USNG_MAX,t.PE_DD_MAX=V.PeDefs.prototype.PE_DD_MAX,t.PE_DDM_MAX=V.PeDefs.prototype.PE_DDM_MAX,t.PE_DMS_MAX=V.PeDefs.prototype.PE_DMS_MAX,t.PE_UTM_MAX=V.PeDefs.prototype.PE_UTM_MAX,t.PE_PARM_MAX=V.PeDefs.prototype.PE_PARM_MAX,t.PE_TYPE_NONE=V.PeDefs.prototype.PE_TYPE_NONE,t.PE_TYPE_GEOGCS=V.PeDefs.prototype.PE_TYPE_GEOGCS,t.PE_TYPE_PROJCS=V.PeDefs.prototype.PE_TYPE_PROJCS,t.PE_TYPE_GEOGTRAN=V.PeDefs.prototype.PE_TYPE_GEOGTRAN,t.PE_TYPE_COORDSYS=V.PeDefs.prototype.PE_TYPE_COORDSYS,t.PE_TYPE_UNIT=V.PeDefs.prototype.PE_TYPE_UNIT,t.PE_TYPE_LINUNIT=V.PeDefs.prototype.PE_TYPE_LINUNIT,t.PE_STR_OPTS_NONE=V.PeDefs.prototype.PE_STR_OPTS_NONE,t.PE_STR_AUTH_NONE=V.PeDefs.prototype.PE_STR_AUTH_NONE,t.PE_STR_AUTH_TOP=V.PeDefs.prototype.PE_STR_AUTH_TOP,t.PE_STR_NAME_CANON=V.PeDefs.prototype.PE_STR_NAME_CANON,t.PE_STR_FMT_WKT=V.PeDefs.prototype.PE_STR_FMT_WKT,t.PE_STR_FMT_WKT2=V.PeDefs.prototype.PE_STR_FMT_WKT2,t.PE_PARM_X0=V.PeDefs.prototype.PE_PARM_X0,t.PE_PARM_ND=V.PeDefs.prototype.PE_PARM_ND,t.PE_TRANSFORM_1_TO_2=V.PeDefs.prototype.PE_TRANSFORM_1_TO_2,t.PE_TRANSFORM_2_TO_1=V.PeDefs.prototype.PE_TRANSFORM_2_TO_1,t.PE_TRANSFORM_P_TO_G=V.PeDefs.prototype.PE_TRANSFORM_P_TO_G,t.PE_TRANSFORM_G_TO_P=V.PeDefs.prototype.PE_TRANSFORM_G_TO_P,t.PE_HORIZON_RECT=V.PeDefs.prototype.PE_HORIZON_RECT,t.PE_HORIZON_POLY=V.PeDefs.prototype.PE_HORIZON_POLY,t.PE_HORIZON_LINE=V.PeDefs.prototype.PE_HORIZON_LINE,t.PE_HORIZON_DELTA=V.PeDefs.prototype.PE_HORIZON_DELTA}t.init=e}(Vt||(Vt={}));gR=null;(function(t){let e={},r={},n=E=>{let M=E.getType();switch(M){case Vt.PE_TYPE_GEOGCS:E=V.castObject(E,V.PeGeogcs);break;case Vt.PE_TYPE_PROJCS:E=V.castObject(E,V.PeProjcs);break;case Vt.PE_TYPE_GEOGTRAN:E=V.castObject(E,V.PeGeogtran);break;default:M&Vt.PE_TYPE_UNIT&&(E=V.castObject(E,V.PeUnit))}return E};function i(){V.PeFactory.prototype.initialize(null)}function o(E){return s(Vt.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],V.compare(k,V.NULL)&&(k=null)),!k){let W=V.PeFactory.prototype.factoryByType(E,M);V.compare(W,V.NULL)||(k=n(W),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],V.compare(k,V.NULL)&&(k=null)),!k){let W=V.PeFactory.prototype.fromString(E,M);V.compare(W,V.NULL)||(k=n(W),F[M]=k)}return k}function a(E){return s(Vt.PE_TYPE_GEOGCS,E)}function d(E){return s(Vt.PE_TYPE_GEOGTRAN,E)}function h(E){return V.PeFactory.prototype.getCode(E)}function g(E){return s(Vt.PE_TYPE_PROJCS,E)}function v(E){return s(Vt.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})(Rb||(Rb={}));wR=null;(function(t){let e;function r(){t.PE_GTLIST_OPTS_COMMON=V.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=V._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new V.PeInteger(d);try{let v=V.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=V.getPointer(v);for(let M=1;M<d;M++)h.push(V.wrapPointer(E+e*M,V.PeGTlistExtendedEntry))}}finally{V.destroy(g)}return h}t.init=r,t.getGTlist=n})(Db||(Db={})),function(t){function e(r){if(r?.length){for(let n of r)ho(n),n.getEntries().forEach(i=>{ho(i);let o=i.getGeogtran();ho(o),o.getParameters().forEach(ho),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{ho(s);let c=s.getDatum();ho(c),ho(c.getSpheroid()),ho(s.getPrimem()),ho(s.getUnit())})});V.PeGTlistExtendedEntry.prototype.Delete(r[0])}}t.destroy=e}(J5||(J5={})),function(t){function e(r,n,i,o,s){V.ensureCache.prepare();let c=ou(i),a=i===c,d=V.ensureFloat64(c),h=0;o&&(h=V.ensureFloat64(o));let g=V._pe_geog_to_geog(V.getPointer(r),n,d,h,s);return g&&pc(i,n,d,a),g}t.geogToGeog=e}(K5||(K5={})),function(t){function e(o,s,c,a,d,h,g,v){V.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){V.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){V.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){V.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}(Q5||(Q5={})),function(t){function e(s,c){return V.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return V.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return V.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return V.PeMath.prototype.q(s,c,a)}function o(s,c){return V.PeMath.prototype.q90(s,c)}t.phiToEta=e,t.etaToPhi=r,t.phiToPhig=n,t.q=i,t.q90=o}(eE||(eE={})),function(t){let e=(d,h,g,v,E,M)=>{let k,F;switch(V.ensureCache.prepare(),d){case"dd":k=V._pe_geog_to_dd,F=Vt.PE_DD_MAX;break;case"ddm":k=V._pe_geog_to_ddm,F=Vt.PE_DDM_MAX;break;case"dms":k=V._pe_geog_to_dms,F=Vt.PE_DMS_MAX}let W=0;h&&(W=V.getPointer(h));let B=ou(v),X=V.ensureFloat64(B),z=Nb(g,F),Z=k(W,g,X,E,V.ensureInt32(z));if(Z)for(let re=0;re<g;re++)M[re]=V.UTF8ToString(z[re]);return Z},r=(d,h,g,v,E)=>{let M;switch(V.ensureCache.prepare(),d){case"dd":M=V._pe_dd_to_geog;break;case"ddm":M=V._pe_ddm_to_geog;break;case"dms":M=V._pe_dms_to_geog}let k=0;h&&(k=V.getPointer(h));let F=v.map(z=>V.ensureString(z)),W=V.ensureInt32(F),B=V.ensureFloat64(new Array(2*g)),X=M(k,g,W,B);return X&&pc(E,g,B),X};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}(tE||(tE={})),function(t){function e(){t.PE_MGRS_STYLE_NEW=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=V.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=V.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){V.ensureCache.prepare();let g=0;i&&(g=V.getPointer(i));let v=ou(s),E=V.ensureFloat64(v),M=Nb(o,Vt.PE_MGRS_MAX),k=V.ensureInt32(M),F=V._pe_geog_to_mgrs_extended(g,o,E,c,a,d,k);if(F)for(let W=0;W<o;W++)h[W]=V.UTF8ToString(M[W]);return F}function n(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=s.map(M=>V.ensureString(M)),g=V.ensureInt32(h),v=V.ensureFloat64(new Array(2*o)),E=V._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToMgrsExtended=r,t.mgrsToGeogExtended=n}(Fb||(Fb={})),function(t){function e(n,i,o,s,c,a,d){V.ensureCache.prepare();let h=0;n&&(h=V.getPointer(n));let g=ou(o),v=V.ensureFloat64(g),E=Nb(i,Vt.PE_MGRS_MAX),M=V.ensureInt32(E),k=V._pe_geog_to_usng(h,i,v,s,c,a,M);if(k)for(let F=0;F<i;F++)d[F]=V.UTF8ToString(E[F]);return k}function r(n,i,o,s){V.ensureCache.prepare();let c=0;n&&(c=V.getPointer(n));let a=o.map(v=>V.ensureString(v)),d=V.ensureInt32(a),h=V.ensureFloat64(new Array(2*i)),g=V._pe_usng_to_geog(c,i,d,h);return g&&pc(s,i,h),g}t.geogToUsng=e,t.usngToGeog=r}(rE||(rE={})),function(t){function e(){t.PE_UTM_OPTS_NONE=V.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=V.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=V.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=ou(s),g=V.ensureFloat64(h),v=Nb(o,Vt.PE_UTM_MAX),E=V.ensureInt32(v),M=V._pe_geog_to_utm(d,o,g,c,E);if(M)for(let k=0;k<o;k++)a[k]=V.UTF8ToString(v[k]);return M}function n(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=s.map(M=>V.ensureString(M)),g=V.ensureInt32(h),v=V.ensureFloat64(new Array(2*o)),E=V._pe_utm_to_geog(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToUtm=r,t.utmToGeog=n}($b||($b={})),function(t){let e=new Map;function r(){t.PE_PCSINFO_OPTION_NONE=V.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=V.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=V.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=V.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=V.PePCSInfo.prototype.generate(i,o),c||(c=[],e.set(i,c)),c[o]=s),s}t.init=r,t.generate=n}(Ub||(Ub={})),function(t){function e(){return V.PeVersion.prototype.version_string()}t.versionString=e}(nE||(nE={}));GSe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return X5},get PeDefs(){return Vt},get PeDouble(){return gR},get PeFactory(){return Rb},get PeGCSExtent(){return wR},get PeGTTransformations(){return K5},get PeGTlistExtended(){return Db},get PeGTlistExtendedEntry(){return J5},get PeLineType(){return Q5},get PeMath(){return eE},get PeNotationDms(){return tE},get PeNotationMgrs(){return Fb},get PeNotationUsng(){return rE},get PeNotationUtm(){return $b},get PePCSInfo(){return Ub},get PeVersion(){return nE},_init:yR,get _pe(){return V},isLoaded:mR,isSupported:WX,load:hR},Symbol.toStringTag,{value:"Module"}))});var vp,vR=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"})(vp||(vp={}))});var l,P,iE=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 Sp(t){let e=t?.wkid;return e!=null&&e>=2e3&&SR[e]||null}function Ng(t){if(!ER(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 Rg(t){return t?.wkid===4326}function $s(t){let e=t?.wkid;return e!=null&&e>=2e3&&_R.includes(e)}function aE(t){return t===vp.GCSMARS2000||t===vp.GCSMARS2000_SPHERE}function cE(t){return t===vp.GCSMOON2000}function xR(t){let e=t?.wkid;return e!=null&&e>=2e3&&GX.includes(e)}function ER(t){if(t==null)return!1;let e=t.wkid;return e!=null&&e>=2e3||t.wkt2!=null||t.wkt!=null}var _R,BX,GX,_p,sE,oE,SR,lE,uE,CR,mc=N(()=>{xa();bR();vR();iE();_R=[102100,102113,3857,3785,900913],BX=[104905,104971],GX=[4326,..._R,...BX],_p=[-20037508342788905e-9,20037508342788905e-9],sE=[-20037508342787e-6,20037508342787e-6],oE={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:_p,origin:sE,dx:1e-5},SR={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:_p,origin:sE,dx:1e-5},102100:oE,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:_p,origin:sE,dx:1e-5},3857:oE,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:oE};lE={wkid:4326,wkt:Fo(SR[4326].wkTemplate,{Central_Meridian:"0.0"})},uE={wkid:102100,latestWkid:3857},CR={wkid:32662}});function dE(t){return{wkt:`GEOCCS["Spherical geocentric",
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NO(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 RO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NO(Object(r),!0).forEach(function(n){RZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $Z(t){return NZ(t)||DZ(t)||zZ(t)||FZ()}function UZ(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 VZ(t){var e=UZ(t,"string");return typeof e=="symbol"?e:e+""}function zZ(t,e){if(t){if(typeof t=="string")return b5(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)?b5(t,e):void 0}}var DO,WZ,BZ,Cg,GZ,jZ,FO,Eg,mb,qZ,$O,UO=N(()=>{OO();DO={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)}},WZ=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},BZ=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Cg=function(e){return e?.key==="Tab"||e?.keyCode===9},GZ=function(e){return Cg(e)&&!e.shiftKey},jZ=function(e){return Cg(e)&&e.shiftKey},FO=function(e){return setTimeout(e,0)},Eg=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},mb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},qZ=[],$O=function(e,r){var n=r?.document||document,i=r?.trapStack||qZ,o=RO({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:GZ,isKeyBackward:jZ},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,q,ee){return ce&&ce[q]!==void 0?ce[q]:o[ee||q]},d=function(ce,q){var ee=typeof q?.composedPath=="function"?q.composedPath():void 0;return s.containerGroups.findIndex(function(de){var ue=de.container,ve=de.tabbableNodes;return ue.contains(ce)||ee?.includes(ue)||ve.find(function(ye){return ye===ce})})},h=function(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=q.hasFallback,de=ee===void 0?!1:ee,ue=q.params,ve=ue===void 0?[]:ue,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,$Z(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&&!pb(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var q=s.tabbableGroups[0],ee=q&&q.firstTabbableNode;ce=ee||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 q=LO(ce,o.tabbableOptions),ee=kO(ce,o.tabbableOptions),de=q.length>0?q[0]:void 0,ue=q.length>0?q[q.length-1]:void 0,ve=ee.find(function(Ke){return nu(Ke)}),ye=ee.slice().reverse().find(function(Ke){return nu(Ke)}),De=!!q.find(function(Ke){return uc(Ke)>0});return{container:ce,tabbableNodes:q,focusableNodes:ee,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=q.indexOf(mt);return Kt<0?mr?ee.slice(ee.indexOf(mt)+1).find(function(Qt){return nu(Qt)}):ee.slice(0,ee.indexOf(mt)).reverse().find(function(Qt){return nu(Qt)}):q[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 q=ce.activeElement;if(q)return q.shadowRoot&&q.shadowRoot.activeElement!==null?E(q.shadowRoot):q},M=function(ce){if(ce!==!1&&ce!==E(document)){if(!ce||!ce.focus){M(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,WZ(ce)&&ce.select()}},k=function(ce){var q=h("setReturnFocus",{params:[ce]});return q||(q===!1?!1:ce)},F=function(ce){var q=ce.target,ee=ce.event,de=ce.isBackward,ue=de===void 0?!1:de;q=q||mb(ee),v();var ve=null;if(s.tabbableGroups.length>0){var ye=d(q,ee),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 q===hn});if(Ke<0&&(De.container===q||pb(q,o.tabbableOptions)&&!nu(q,o.tabbableOptions)&&!De.nextTabbableNode(q,!1))&&(Ke=ye),Ke>=0){var mt=Ke===0?s.tabbableGroups.length-1:Ke-1,mr=s.tabbableGroups[mt];ve=uc(q)>=0?mr.lastTabbableNode:mr.lastDomTabbableNode}else Cg(ee)||(ve=De.nextTabbableNode(q,!1))}else{var Kt=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.lastTabbableNode;return q===hn});if(Kt<0&&(De.container===q||pb(q,o.tabbableOptions)&&!nu(q,o.tabbableOptions)&&!De.nextTabbableNode(q))&&(Kt=ye),Kt>=0){var Qt=Kt===s.tabbableGroups.length-1?0:Kt+1,Kn=s.tabbableGroups[Qt];ve=uc(q)>=0?Kn.firstTabbableNode:Kn.firstDomTabbableNode}else Cg(ee)||(ve=De.nextTabbableNode(q))}}else ve=h("fallbackFocus");return ve},W=function(ce){var q=mb(ce);if(!(d(q,ce)>=0)){if(Eg(o.clickOutsideDeactivates,ce)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Eg(o.allowOutsideClick,ce)||ce.preventDefault()}},B=function(ce){var q=mb(ce),ee=d(q,ce)>=0;if(ee||q instanceof Document)ee&&(s.mostRecentlyFocusedNode=q);else{ce.stopImmediatePropagation();var de,ue=!0;if(s.mostRecentlyFocusedNode)if(uc(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 uc(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},X=function(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=F({event:ce,isBackward:q});ee&&(Cg(ce)&&ce.preventDefault(),M(ee))},z=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&X(ce,o.isKeyBackward(ce))},Z=function(ce){BZ(ce)&&Eg(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),c.deactivate())},re=function(ce){var q=mb(ce);d(q,ce)>=0||Eg(o.clickOutsideDeactivates,ce)||Eg(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},$=function(){if(s.active)return DO.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?FO(function(){M(g())}):M(g()),n.addEventListener("focusin",B,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",re,{capture:!0,passive:!1}),n.addEventListener("keydown",z,{capture:!0,passive:!1}),n.addEventListener("keydown",Z),c},me=function(){if(s.active)return n.removeEventListener("focusin",B,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",re,!0),n.removeEventListener("keydown",z,!0),n.removeEventListener("keydown",Z),c},ke=function(ce){var q=ce.some(function(ee){var de=Array.from(ee.removedNodes);return de.some(function(ue){return ue===s.mostRecentlyFocusedNode})});q&&M(g())},Te=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ke):void 0,Ne=function(){Te&&(Te.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Te.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 q=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),de=a(ce,"checkCanFocusTrap");de||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,q?.();var ue=function(){de&&v(),$(),Ne(),ee?.()};return de?(de(s.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(ce){if(!s.active)return this;var q=RO({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(),DO.deactivateTrap(i,c);var ee=a(q,"onDeactivate"),de=a(q,"onPostDeactivate"),ue=a(q,"checkCanReturnFocus"),ve=a(q,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){FO(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 q=[].concat(ce).filter(Boolean);return s.containers=q.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&v(),Ne(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(ce,q){if(s.paused===ce)return this;if(s.paused=ce,ce){var ee=a(q,"onPause"),de=a(q,"onPostPause");ee?.(),me(),Ne(),de?.()}else{var ue=a(q,"onUnpause"),ve=a(q,"onPostUnpause");ue?.(),v(),$(),Ne(),ve?.()}return this}}}),c.updateContainerElements(e),c}});function HZ(t,e){let r=e?.fallbackFocus||t,n=e?.clickOutsideDeactivates??!0;return{fallbackFocus:r,setReturnFocus:i=>(hb.has(t)||Fy(i),!1),...e,document:t.ownerDocument,tabbableOptions:L4,trapStack:II,clickOutsideDeactivates:i=>(hb.has(t)||hb.add(t),typeof n=="function"?n(i):n),onPostDeactivate:()=>{hb.delete(t)}}}function VO(t,{focusTrapOptions:e},r){return!e?.extraContainers&&!r?t:[t,...zO(e?.extraContainers),...zO(r)]}function zO(t=[]){return Array.isArray(t)?t:[t]}var hb,gb,v5=N(()=>{og();UO();dn();lr();hb=new WeakSet;gb=t=>oL((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||=VO(a,e),n=$O(o,HZ(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=VO(d,e,a)},updateContainerElements:()=>n?.updateContainerElements(o)};return c})});function wb(t){return t==="Enter"||t===" "}var Tg,Pg=N(()=>{Tg=["0","1","2","3","4","5","6","7","8","9"]});var _5,fo,WO,BO,GO,YZ,jO,S5,qO=N(()=>{lr();ac();Zr();Li();xr();g5();dn();rp();ab();w5();Rs();nc();xO();Ho();v5();Pg();un();_5=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():wb(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{vL(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)}},fo={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"header-container",heading:"heading"},WO="auto",BO="aria-controls",GO="aria-expanded",YZ=Tt`: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}`,jO=new _5,S5=class extends vt{constructor(){super(...arguments),this.closeButtonEl=pi(),this.focusTrap=gb({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=Jr(),this.offsetDistance=h5,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=WO,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=bt({cancelable:!1}),this.calcitePopoverBeforeOpen=bt({cancelable:!1}),this.calcitePopoverClose=bt({cancelable:!1}),this.calcitePopoverOpen=bt({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=YZ}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 wO(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(),rc(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!==h5)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==WO))&&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(),m5(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){hp(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?gO(r,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),bO(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(GO,ip(r))}addReferences(){let{referenceEl:e}=this;if(!e)return;let r=this.getId();"setAttribute"in e&&e.setAttribute(BO,r),jO.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(BO),e.removeAttribute(GO)),jO.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(),p5(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:r}=this;return r?Xt(fo.closeButtonContainer,_e`<div class=${Se(fo.closeButtonContainer)}><calcite-action appearance=transparent class=${Se(fo.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?cb({class:fo.heading,level:r,children:e}):null;return n?Xt(fo.header,_e`<div class=${Se(fo.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",SO({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",ep(this.el,"id",this.getId()),this.el.role="dialog",_e`<div class=${Se(fo.positionContainer)} ${dt(this.setFloatingEl)}><div class=${Se({[fo.container]:!0,[f5.animation]:!0,[f5.animationActive]:c})} ${dt(this.setTransitionEl)}>${d}<div class=${Se({[fo.hasHeader]:!!r,[fo.headerContainer]:!0})}>${this.renderHeader()}<div class=${Se(fo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Lt("calcite-popover",S5)});var HO=N(()=>{Zy();Zl();qO()});function x5(t,e){return(t+e)%e}var YO=N(()=>{});var E5,Mg,ZO,XO,C5=N(()=>{E5={menu:"menu",defaultTrigger:"default-trigger"},Mg={tooltip:"tooltip",trigger:"trigger"},ZO={menu:"ellipsis"},XO="data-active"});var ZZ,XZ,T5,JO=N(()=>{lr();Li();Zr();xr();YO();dn();rp();Pg();Rs();C5();un();ZZ=Tt`: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}`,XZ=["ArrowUp","ArrowDown","End","Home"],T5=class extends vt{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(wb(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(XO,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=bt({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=ZZ}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),Fy(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",ip(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,XZ))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=x5(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=x5(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=${Mg.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${Se(E5.defaultTrigger)} .icon=${ZO.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??Ce} aria-labelledby=${i?.id??Ce} class=${Se(E5.menu)} id=${n??Ce} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return _e`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${Mg.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Lt("calcite-action-menu",T5)});var KO=N(()=>{Zy();HO();JO()});var Jt,P5,Ag,Rt,M5=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"},P5={close:"close",collapse:"collapse"},Ag={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 JZ,A5,QO=N(()=>{lr();ac();Li();Zr();xr();dn();lg();Rs();nc();C5();w5();g5();Ho();M5();un();JZ=Tt`: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}`,A5=class extends vt{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=hO,this.messages=Jr(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=bt({cancelable:!1}),this.calcitePanelScroll=bt({cancelable:!1}),this.calcitePanelToggle=bt({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=JZ}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await En(this),rc(this.containerEl)}async load(){this.isClosed=this.closed}willUpdate(e){e.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){oc(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=$y(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){$y(e)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:r,description:n,hasHeaderContent:i}=this,o=e?cb({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=[Ag.expand,Ag.collapse];o==="up"&&g.reverse();let v=s?_e`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${P5.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Ce}></calcite-action>`:null,E=n?_e`<calcite-action .ariaLabel=${h} .icon=${Ag.close} id=${P5.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Ce}></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=${Ag.menu} .scale=${this.scale} slot=${Mg.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 sc({disabled:e,children:_e`${r?_e`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Lt("calcite-panel",A5)});var eN=N(()=>{Zy();KO();Y4();QO()});function QZ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var KZ,yb,eX,Ig,tN=N(()=>{KZ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};yb={exports:{}};yb.exports;(function(t,e){(function(r,n){t.exports=n()})(KZ,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},W=void 0,B=void 0;function X(p){W=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 z(p){return F(p)?p:(p.ownerDocument||p).defaultView||B.window}typeof window<"u"&&window&&X(window);var Z=function(p){return!!p&&i(p)==="object"},re=function(p){return typeof p=="function"},$={window:function(p){return p===B||F(p)},docFrag:function(p){return Z(p)&&p.nodeType===11},object:Z,func:re,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=z(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 Z(p)&&!!p.constructor&&/function Object\b/.test(p.constructor.toString())},array:function(p){return Z(p)&&p.length!==void 0&&re(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 Te={id:"actions/drag",install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.draggable=Te.draggable,f.map.drag=Te,f.methodDict.drag="draggable",_.actions.drag=Te.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=Te,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 q=we,ee={init:function(p){var f=q.Element,w=p.navigator||{};ee.supportsTouch="ontouchstart"in p||$.func(p.DocumentTouch)&&q.document instanceof p.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!q.PointerEvent,ee.isIOS=/iP(hone|od|ad)/.test(w.platform),ee.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),ee.isIe9=/MSIE 9/.test(w.userAgent),ee.isOperaMobile=w.appName==="Opera"&&ee.supportsTouch&&/Presto/.test(w.userAgent),ee.prefixedMatchesSelector="matches"in f.prototype?"matches":"webkitMatchesSelector"in f.prototype?"webkitMatchesSelector":"mozMatchesSelector"in f.prototype?"mozMatchesSelector":"oMatchesSelector"in f.prototype?"oMatchesSelector":"msMatchesSelector",ee.pEventTypes=ee.supportsPointerEvent?q.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,ee.wheelEvent=q.document&&"onmousewheel"in q.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},de=ee;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!==W&&(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 q.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=z(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)&&(q.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 bo(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 Ri(p){return p&&{x:"x"in p?p.x:p.left,y:"y"in p?p.y:p.top}}function wc(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 Ko(p,f,w){var _=w&&p.options[w];return Ri(bo(_&&_.origin||p.options.origin,p,f,[p&&f]))||{x:0,y:0}}function wi(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 wi(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];wi(p,A,w,_)}else if($.object(f))for(var O in f)wi(wu(O).map(function(R){return"".concat(p).concat(R)}),f[O],w,_);return _}function wu(p){return p.trim().split(/ +/)}var Qo=function(p,f){return Math.sqrt(p*p+f*f)},Ip=["webkit","moz"];function vo(p,f){p.__set||(p.__set={});var w=function(C){if(Ip.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 yc(p){p.page.x=0,p.page.y=0,p.client.x=0,p.client.y=0}function bc(p){return p instanceof q.Event||p instanceof q.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&&bc(p)?(hr("screen",p,f),f.x+=window.scrollX,f.y+=window.scrollY):hr("page",p,f),f}function _o(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&&bc(C)?hr("screen",C,T):hr("client",C,T)}(_,p.client),p.timeStamp=w}function vc(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 _c(p){if(!p.length)return null;var f=vc(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 Sc(p,f){var w=f+"X",_=f+"Y",C=vc(p),T=C[0][w]-C[1][w],A=C[0][_]-C[1][_];return Qo(T,A)}function xc(p,f){var w=f+"X",_=f+"Y",C=vc(p),T=C[1][w]-C[0][w],A=C[1][_]-C[0][_];return 180*Math.atan2(A,T)/Math.PI}function Ec(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 q.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 Di=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(Di.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},Cc=function(p){return _u([],p)},es=function(p,f){for(var w=0;w<p.length;w++)if(f(p[w],w,p))return w;return-1},yi=function(p,f){return p[es(p,f)]},So=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=es(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}(Di);function Fi(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 Tc(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 Y=D.options.drop.accept;if(!($.element(Y)&&Y!==A||$.string(Y)&&!De(A,Y)||$.func(Y)&&!Y({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,Y=U.element,oe=U.rect,ge=D.dropCheck(f,w,C,T,Y,oe);A.push(ge?Y: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),_t=Ke(Je);if(wr!==Be.ownerDocument)if(_t!==Be.ownerDocument)if(wr!==_t){Xe=Xe.length?Xe:mt(Je);var Rr=void 0;if(Je instanceof q.HTMLElement&&Be instanceof q.SVGElement&&!(Be instanceof q.SVGSVGElement)){if(Be===_t)continue;Rr=Be.ownerSVGElement}else Rr=Be;for(var gn=mt(Rr,Je.ownerDocument),Tn=0;gn[Tn]&&gn[Tn]===Xe[Tn];)Tn++;var ls=[gn[Tn-1],gn[Tn],Xe[Tn]];if(ls[0])for(var ot=ls[0].lastChild;ot;){if(ot===ls[1]){Oe=Qe,Xe=gn;break}if(ot===ls[2])break;ot=ot.previousSibling}}else $e=Je,(parseInt(z(Ie=Be).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(z($e).getComputedStyle($e).zIndex,10)||0)&&(Oe=Qe);else Oe=Qe}else Oe=Qe}return Oe}(A);return _.activeDrops[he]||null}function Pc(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 So(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new So(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new So(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new So(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new So(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new So(_,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&&Fi(_,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=Tc(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=Pc(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=wi(O.listeners),U=Object.keys(R).reduce(function(Y,oe){return Y[/^(enter|leave)/.test(oe)?"drag".concat(oe):/^(activate|deactivate|move)/.test(oe)?"drop".concat(oe):oe]=R[oe],Y},{}),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(Y,oe,ge,he,be,Oe,Ie){var $e=!1;if(!(Ie=Ie||Y.getRect(Oe)))return!!Y.options.drop.checker&&Y.options.drop.checker(oe,ge,$e,Y,Oe,he,be);var Xe=Y.options.drop.overlap;if(Xe==="pointer"){var Qe=Ko(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 _t=he.getRect(be);if(_t&&Xe==="center"){var Rr=_t.left+_t.width/2,gn=_t.top+_t.height/2;$e=Rr>=Ie.left&&Rr<=Ie.right&&gn>=Ie.top&&gn<=Ie.bottom}return _t&&$.number(Xe)&&($e=Math.max(0,Math.min(Ie.right,_t.right)-Math.max(Ie.left,_t.left))*Math.max(0,Math.min(Ie.bottom,_t.bottom)-Math.max(Ie.top,_t.top))/(_t.width*_t.height)>=Xe),Y.options.drop.checker&&($e=Y.options.drop.checker(oe,ge,$e,Y,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=Tc(f,w.element),C.events=Pc(w,0,_),C.events.activate&&(Fi(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:Tc,getDrop:Su,getDropEvents:Pc,fireDropEvents:Bs,filterEventType:function(p){return p.search("drag")===0||p.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Lp=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=Sc(C,O),w.box=_c(C),w.scale=1,w.ds=0,w.angle=xc(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=Sc(C,O),w.box=_c(C),w.scale=w.distance/f.gesture.startDistance,w.angle=xc(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 xo={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=xo,f.methodDict.gesture="gesturable",_.actions.gesture=xo.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=xo;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 Mc(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 Qr,bi,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),Mc(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,Y=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)Y[be]=D[be]-oe[be];C.edges=_.prepared.edges,C.rect=D,C.deltaRect=Y}})(p),Mc(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,Y=O.axis!=="x"&&A.y>C.bottom-Vn.defaultMargin;(D||Y)&&(p.action={name:"resize",axes:(D?"x":"")+(Y?"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(Lp)}},Gs=0,Qn={request:function(p){return Qr(p)},cancel:function(p){return bi(p)},init:function(p){if(Qr=p.requestAnimationFrame,bi=p.cancelAnimationFrame,!Qr)for(var f=["ms","moz","webkit","o"],w=0;w<f.length;w++){var _=f[w];Qr=p["".concat(_,"RequestAnimationFrame")],bi=p["".concat(_,"CancelAnimationFrame")]||p["".concat(_,"CancelRequestAnimationFrame")]}Qr=Qr&&Qr.bind(p),bi=bi&&bi.bind(p),Qr||(Qr=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},bi=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=Ac(T);$.window(T)?T.scrollBy(U.x,U.y):T&&(T.scrollLeft+=U.x,T.scrollTop+=U.y);var Y=Ac(T),oe={x:Y.x-D.x,y:Y.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,Y=js(D.container,O,R);if($.window(Y))A=w.clientX<je.margin,_=w.clientY<je.margin,C=w.clientX>Y.innerWidth-je.margin,T=w.clientY>Y.innerHeight-je.margin;else{var oe=Qt(Y);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)||z(w)}function Ac(p){return $.window(p)&&(p=window.document.body),{x:p.scrollLeft,y:p.scrollTop}}var Ic={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)}}},Lc=Ic;function Eo(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,Y){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 Y.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=Eo(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),f.prototype.allowFrom=Eo(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 kc(p,f,w,_,C){return f.testIgnoreAllow(f.options[p.name],w,_)&&f.options[p.name].enabled&&ts(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],Y=U.getAction(f,w,p,D);if(Y){var oe=kc(Y,U,D,T,A);if(oe)return{action:oe,interactable:U,element:D}}}return{action:null,interactable:null,element:null}}function Oc(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 Nc(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,Dc(p,w),w.fire("autoStart:prepared",{interaction:p})}function ts(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 Y=0,oe=_.interactions.list;Y<oe.length;Y++){var ge=oe[Y],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 Rc(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 Dc(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 Rc(_,p)},p.autoStart={maxInteractions:1/0,withinInteractionLimit:ts,cursorElement:null}},listeners:{"interactions:down":function(p,f){var w=p.interaction,_=p.pointer,C=p.event,T=p.eventTarget;w.interacting()||Nc(w,Oc(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()||Nc(C,Oc(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||!ts(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Dc(C,_)))}}(p,f)},"interactions:stop":function(p,f){var w=p.interaction,_=w.interactable;_&&_.options.styleCursor&&Hs(w.element,"",f)}},maxInteractions:Rc,withinInteractionLimit:ts,validateAction:kc},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 Y=_,oe=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Y,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Y);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,Y,_,f))return he}}};$.element(Y);){var ge=f.interactables.forEachMatch(Y,oe);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Y;break}Y=ye(Y)}}}}}};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 Fc={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=z(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 rs(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 $i(p){var f={};for(var w in p){var _=p[w];$.plainObject(_)?f[w]=$i(_):$.array(_)?f[w]=Cc(_):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=ns(),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],Y=D.modifiers;return Y&&Y.length?Y:["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=ns(),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=ns(f.coords,f.rect),U=0;U<O.length;U++){var D,Y=O[U],oe=Y.options,ge=Ue({},f.coords),he=null;(D=Y.methods)!=null&&D.set&&this.shouldDo(oe,_,w)&&(f.state=Y,he=Y.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 Y=D[U],oe=Y[0],ge=Y[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,Y=[[_.start,A],[_.cur,R]];D<Y.length;D++){var oe=Y[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 $i(w)}),this.result=ns(Ue({},f.result.coords),Ue({},f.result.rect))}},{key:"destroy",value:function(){for(var f in this)this[f]=null}}]),p}();function ns(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 Co(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":Co,"interactions:action-move":Co,"interactions:action-end":Co,"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)}}},$c=Vu,Uc={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 Y=_.interactable,oe=(Y&&Y.options||Uc).deltaSource,ge=Ko(Y,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=Y,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=Qo(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}(Di);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}({}),Vc=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=Eo(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 Vc)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=Qo(C,T)>this.pointerMoveTolerance);var O,R,U,D=this.getPointerIndex(f),Y={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",Y),A||this.simulation||(this.interacting()&&(Y.type=null,this.move(Y)),this.pointerWasMoved&&zs(this.coords.prev,this.coords.cur))}},{key:"move",value:function(f){f&&f.event||yc(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=_o(f);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:es(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=_o(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(Y){return Y.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=_,vo(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 zc(p){Wc(p.interaction)}function Wc(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}Vc.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":zc,"interactions:before-action-move":zc,"interactions:before-action-end":function(p){var f=p.interaction;if(Wc(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}}},Bc=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,_=is(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Qo(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,_=is(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=is(U).resistance,Y=(U._now()-this.t0)/1e3;if(Y<this.te){var oe,ge=1-(Math.exp(-D*Y)-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:Gc(O=ge,f,_,T),y:Gc(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=is(w).smoothEndDuration;if(_<C){var T={x:jc(_,0,this.targetOffset.x,C),y:jc(_,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 is(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(Bc),p.usePlugin($c),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":Co,"interactions:action-inertiastart":Co,"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 Gc(p,f,w,_){var C=1-p;return C*C*f+2*C*p*w+p*p*_}function jc(p,f,w,_){return-w*(p/=_)*(p-2)+f}var Zu=Yu;function qc(p,f){for(var w=0;w<f.length;w++){var _=f[w];if(p.immediatePropagationStopped)break;_(p)}}var Hc=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])&&qc(f,w),!f.propagationStopped&&_&&(w=_[f.type])&&qc(f,w)}},{key:"on",value:function(f,w){var _=wi(f,w);for(f in _)this.types[f]=_u(this.types[f]||[],_[f])}},{key:"off",value:function(f,w){var _=wi(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,vo(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 Ui(p){return $.object(p)?{capture:!!p.capture,passive:!!p.passive}:{capture:!!p,passive:!1}}function To(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,Y,oe,ge,he){var be=Ui(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=yi($e,function(Qe){return Qe.selector===D&&Qe.context===Y});Xe||(Xe={selector:D,context:Y,listeners:[]},$e.push(Xe)),Xe.listeners.push({func:ge,options:be})},removeDelegate:function(D,Y,oe,ge,he){var be,Oe=Ui(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===Y){for(var Qe=Xe.listeners,Be=Qe.length-1;Be>=0;Be--){var Je=Qe[Be];if(Je.func===ge&&To(Je.options,Oe)){Qe.splice(Be,1),Qe.length||(Ie.splice(be,1),O(Y,oe,R),O(Y,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,Y,oe,ge){if(D.addEventListener){var he=Ui(ge),be=yi(w,function(Oe){return Oe.eventTarget===D});be||(be={eventTarget:D,events:{}},w.push(be)),be.events[Y]||(be.events[Y]=[]),yi(be.events[Y],function(Oe){return Oe.func===oe&&To(Oe.options,he)})||(D.addEventListener(Y,oe,T.supportsOptions?he:he.capture),be.events[Y].push({func:oe,options:he}))}}function O(D,Y,oe,ge){if(D.addEventListener&&D.removeEventListener){var he=es(w,function(wr){return wr.eventTarget===D}),be=w[he];if(be&&be.events)if(Y!=="all"){var Oe=!1,Ie=be.events[Y];if(Ie){if(oe==="all"){for(var $e=Ie.length-1;$e>=0;$e--){var Xe=Ie[$e];O(D,Y,Xe.func,Xe.options)}return}for(var Qe=Ui(ge),Be=0;Be<Ie.length;Be++){var Je=Ie[Be];if(Je.func===oe&&To(Je.options,Qe)){D.removeEventListener(Y,oe,T.supportsOptions?Qe:Qe.capture),Ie.splice(Be,1),Ie.length===0&&(delete be.events[Y],Oe=!0);break}}}Oe&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Y in be.events)be.events.hasOwnProperty(Y)&&O(D,Y,"all")}}function R(D,Y){for(var oe=Ui(Y),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];To(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 Y=D[U];if(!(Y.pointerType!==_||/down/i.test(C)&&Y.simulation))return Y}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,os=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Yc(p,f){return function(w){var _=f.interactions.list,C=Ec(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 Y=D[U],oe={pointer:Y,pointerId:_o(Y),pointerType:C,eventType:w.type,eventTarget:A,curEventTarget:O,scope:f},ge=Zc(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:_o(w),pointerType:C,eventType:w.type,curEventTarget:O,eventTarget:A,scope:f},Ie=Zc(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 Zc(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 Y=T[D];O(w,Y.type,Y.listener,U)}}var Xc={id:"core/interactions",install:function(p){for(var f={},w=0;w<os.length;w++){var _=os[w];f[_]=Yc(_,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[Y];p.documents.some(function(he){return ue(he.doc,ge.downTarget)})||U.removePointer(ge.pointer,ge.event)},Y=0,oe=U.pointers;Y<oe.length;Y++)D()}}(C=q.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(Fc)},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:Yc,methodNames:os},Qu=Xc,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 Hc,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=z(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))&&rs(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]=Cc(O):$.plainObject(O)?(A[T]=Ue(A[T]||{},$i(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=wi(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];rs(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=$i(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=es(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 yi(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=$i(Uc),this.Eventable=Hc,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=_c,C.getTouchDistance=Sc,C.getTouchAngle=xc,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=Eo(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 Y in T)this.on(Y,T[Y],A);return this}return rs(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=Eo(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 Y in T)this.off(Y,T[Y],A);return this}var oe;return rs(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(_)&&X(_),q.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[Jc(R)]=!0,O},{});_<C;_++){var A=this.listenerMaps[_].id;if(A&&(T[A]||T[Jc(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 _=z(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),_=z(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 Jc(p){return p&&p.replace(/\/.*$/,"")}var Kc=new rd,gr=Kc.interactStatic,nd=typeof globalThis<"u"?globalThis:window;Kc.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},Y=0;Y<f.length;Y++){var oe=f[Y],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 Y=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=(Y.left?1:-1)*(Y.top?1:-1);f.edgeSign={x:oe,y:oe}}else f.edgeSign={x:Y.left?-1:1,y:Y.top?-1:1};if(O!==!1&&Ue(_,Y),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?Qc: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 Qc(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 el=ei(ad,"aspectRatio"),tl=function(){};tl._defaults={};var ss=tl;function vi(p,f,w){return $.func(p)?bo(p,f.interactable,f.element,[w.x,w.y,f]):bo(p,f.interactable,f.element)}var as={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=vi(A.restriction,C,T);if(U){var D=U.right-U.left-f.width,Y=U.bottom-U.top-f.height;D<0&&(R.left+=D,R.right+=D),Y<0&&(R.top+=Y,R.bottom+=Y)}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=vi(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(as,"restrict"),rl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},nl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function il(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 Po={noInner:rl,noOuter:nl,start:function(p){var f,w=p.interaction,_=p.startOffset,C=p.state,T=C.options;T&&(f=Ri(vi(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=vi(A.inner,_,O)||{},U=vi(A.outer,_,O)||{};il(R,rl),il(U,nl),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(Po,"restrictEdges"),dd=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(p){}},as.defaults),fd=ei({start:as.start,set:as.set,defaults:dd},"restrictRect"),pd={width:-1/0,height:-1/0},md={width:1/0,height:1/0},hd=ei({start:function(p){return Po.start(p)},set:function(p){var f=p.interaction,w=p.state,_=p.rect,C=p.edges,T=w.options;if(C){var A=wc(vi(T.min,f,p.coords))||pd,O=wc(vi(T.max,f,p.coords))||md;w.options={endOnly:T.endOnly,inner:Ue({},Po.noInner),outer:Ue({},Po.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),Po.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=Ri(bo(oe.state.options.origin,null,null,[ge])),be=he||Ko(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=bo(R.offset,_,C,[w]);(f=Ri(D)||{x:0,y:0}).x+=U.x,f.y+=U.y}var Y=R.relativePoints;A.offsets=T&&Y&&Y.length?Y.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=Ko(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 Y=D[U],oe=O.x-Y.x,ge=O.y-Y.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,Y,he):Oe)&&R.push({x:($.number(Ie.x)?Ie.x:oe)+Y.x,y:($.number(Ie.y)?Ie.y:ge)+Y.y,range:$.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Y})}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,_t=Qo(Je,wr),Rr=_t<=Be;Be===1/0&&$e.inRange&&$e.range!==1/0&&(Rr=!1),$e.target&&!(Rr?$e.inRange&&Be!==1/0?_t/Be<$e.distance/$e.range:Be===1/0&&$e.range!==1/0||_t<$e.distance:!$e.inRange&&_t<$e.distance)||($e.target=Qe,$e.distance=_t,$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"),cs={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 Y=0,oe=w.targetFields;Y<oe.length;Y++){var ge=oe[Y],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(cs,"snapSize"),na={aspectRatio:el,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"]],cs.start(p)):null},set:cs.set,defaults:Ue($i(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:gd,snapSize:wd,spring:ss,avoid:ss,transform:ss,rubberband:ss},yd={id:"modifiers",install:function(p){var f=p.interactStatic;for(var w in p.usePlugin($c),p.usePlugin(sd),f.modifiers=na,na){var _=na[w],C=_._defaults,T=_._methods;C._methods=T,p.defaults.perAction[w]=C}}},bd=yd,ol=function(p){d(w,p);var f=E(w);function w(_,C,T,A,O,R){var U;if(o(this,w),vo(v(U=f.call(this,O)),T),T!==C&&vo(v(U),C),U.timeStamp=R,U.originalEvent=T,U.type=_,U.pointerId=_o(C),U.pointerType=Ec(C),U.target=A,U.currentTarget=null,_==="tap"){var D=O.getPointerIndex(C);U.dt=U.timeStamp-O.pointers[D].downTime;var Y=U.timeStamp-O.tapTime;U.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===U.target&&Y<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}(Di),Mo={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(p){p.pointerEvents=Mo,p.defaults.actions.pointerEvents=Mo.defaults,Ue(p.actions.phaselessTypes,Mo.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),Y={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];Y.node=ge,_.fire("pointerEvents:collect-targets",Y)}if(Y.targets.length){for(var he=1/0,be=0,Oe=Y.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:ol,fire:ri,collectEventTargets:sl,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?sl(p,f):O,U=new ol(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},Y=0;Y<R.length;Y++){var oe=R[Y];for(var ge in oe.props||{})U[ge]=oe.props[ge];var he=Ko(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&&Y+1<R.length&&R[Y+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 sl(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},Y=0;Y<U.length;Y++){var oe=U[Y];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:Mo});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(Mo);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 Y=A[D],oe=_.getRect(Y);if(!oe)return 1;var ge,he=yi(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Y&&Ie.prepared.name===C.name});if(he)he.move(),R&&(ge=he._reflowPromise||new O(function(Ie){he._reflowResolve=Ie}));else{var be=wc(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),yc(Je.coords.delta),qs(Je.prepared,Qe),Je._doPhase(wr);var _t=Ie.window,Rr=_t.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,_,Y,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(Fc),gr.use(Bc),gr.use(Pd),gr.use(Zu),gr.use(bd),gr.use(Fu),gr.use(Mu),gr.use(Lc),gr.use(Ad),gr.default=gr,i(t)==="object"&&t)try{t.exports=gr}catch{}return gr.default=gr,gr})})(yb,yb.exports);eX=yb.exports,Ig=QZ(eX)});function rN(t,e,r){return e?`${t}-${e}`:r?`${t}-${r}`:`${t}-m`}var nN=N(()=>{});var dc,Zn,iN,oN,tX,I5,sN,bb,aN=N(()=>{lr();ac();tN();Zr();Li();xr();dn();Rs();nc();nN();ab();M5();Ho();v5();un();dc={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"},iN={x:null,y:null},oN={top:null,right:null,bottom:null,left:null},tX=Tt`: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}`,I5=0,sN="",bb=class extends vt{constructor(){super(...arguments),this.dragPosition={...iN},this.focusTrap=gb({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=pi(),this.resizePosition={...oN},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=Jr(),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=bt({cancelable:!1}),this.calciteDialogBeforeOpen=bt({cancelable:!1}),this.calciteDialogClose=bt({cancelable:!1}),this.calciteDialogOpen=bt({cancelable:!1}),this.calciteDialogScroll=bt({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=tX}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()??rc(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(dc.openingActive,e),hp(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-di,type:"blockSize"}),c.bottom-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+di,type:"blockSize"}),c.bottom+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-di,type:"inlineSize"}),c.right-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x-=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+di,type:"inlineSize"}),c.right+=di,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x+=di,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={...iN},this.resizePosition={...oN},this.updateTransform()}async 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=Ig(r,{context:e.ownerDocument})),n){await this.el.componentOnReady();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:[Ig.modifiers.restrictSize({min:{width:ag(c),height:ag(a)},max:{width:ag(d)||window.innerWidth,height:ag(h)||window.innerHeight}}),Ig.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:[Ig.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}I5--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){I5===0&&(sN=document.documentElement.style.overflow),I5++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",sN)}handleMutationObserver(){this.focusTrap.updateContainerElements()}render(){let{assistiveText:e,description:r,heading:n,opened:i}=this;return _e`<div class=${Se({[dc.container]:!0,[dc.containerOpen]:i,[dc.containerEmbedded]:this.embedded})}>${this.modal?_e`<calcite-scrim class=${Se(dc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${Se({[dc.dialog]:!0,[rN("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(dc.assistiveText)}>${e}</div>`):null}<slot name=${Zn.customContent}><slot name=${Zn.content}><calcite-panel .beforeClose=${this.beforeClose} class=${Se(dc.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",bb)});var cN={};Ao(cN,{Dialog:()=>bb});var lN=N(()=>{Y4();eN();aN()});var uN,rX,L5,dN=N(()=>{lr();Zr();xr();dn();un();uN={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},rX=Tt`: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}`,L5=class extends vt{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=rX}connectedCallback(){super.connectedCallback(),this.requestedIcon=Ns(uN,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||this.status!=="idle")||e.has("icon"))&&(this.requestedIcon=Ns(uN,this.icon,this.status))}render(){let e=this.el.hidden;return ep(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",L5)});var fN=N(()=>{Zl();dN()});var nX,k5,pN=N(()=>{lr();Yr();xr();dn();un();nX=Tt`: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}`,k5=class extends vt{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=nX}render(){let e=this.type==="determinate",r=e?{width:`${this.value}%`}:{},n=ec(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",[ng.rtl]:n==="rtl",reversed:this.reversed})} style=${Ay(r)}></div></div>${this.text?_e`<div class="text">${this.text}</div>`:null}</div>`}};Lt("calcite-progress",k5)});var mN=N(()=>{pN()});function Zo(t){return!(!t||isNaN(Number(t)))}function hN(t){return!t||!fX(t)?"":vb(t,e=>{let r=!1,n=e.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Tg.includes(i)).join("");return Zo(n)?new iu(n).toString():""})}function uX(t){let e=t.split(".")[1],r=new iu(t).toString(),[n,i]=r.split(".");return e&&i!==e?`${n}.${e}`:r}function vb(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 dX(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(iX,"").replace(gN,"")}`}function fX(t){return Tg.some(e=>t.includes(e))}function yN(t,e,r){let n=e.split(".")[1];if(n){let i=n.match(lX)[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 hX(t,e="cldr"){let r=e==="cldr"?vN:bN;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).`),Lg))):Lg}var iX,oX,iu,gN,sX,aX,cX,lX,wN,Lg,bN,vN,Xve,pX,_N,O5,SN,mX,N5,po,xN=N(()=>{Pg();iX=new RegExp("\\.(0+)?$"),oX=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]=dX(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(oX,"");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)}};gN=/^([-0])0+(?=\d)/,sX=/(?!^\.)\.$/,aX=/(?!^-)-/g,cX=/^-\b0\b\.?0*$/,lX=/0*$/,wN=t=>vb(t,e=>{let r=e.replace(aX,"").replace(sX,"").replace(gN,"$1");return Zo(r)?cX.test(r)?r:uX(r):e});Lg="en",bN=["ar","bg","bs","ca","cs","da","de","el",Lg,"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"],vN=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Lg,"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"],Xve=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"}})),pX=["arab","arabext","latn"];[...new Set([...bN,...vN])];_N=t=>pX.includes(t),O5=new Intl.NumberFormat().resolvedOptions().numberingSystem,SN=O5==="arab"||!_N(O5)?"latn":O5,mX=t=>_N(t)?t:SN;N5=class{constructor(){this.delocalize=e=>this._numberFormatOptions?vb(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?vb(e,r=>Zo(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=hX(e?.locale),e.numberingSystem=mX(e?.numberingSystem),!this._numberFormatOptions&&e.locale===Lg&&e.numberingSystem===SN&&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)}},po=new N5});var gX,wX,EN,CN=N(()=>{Li();Yr();xr();gX={validationContainer:"validation-container"},wX=()=>{},EN=({scale:t,status:e,id:r,icon:n,message:i,ref:o})=>_e`<div class=${Se(gX.validationContainer)} ${dt(o||wX)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Ce} .scale=${t} .status=${e}>${i}</calcite-input-message></div>`});function gp(t,e,r,n){let i=r.toLowerCase(),o=t[r];n&&o!=null?e.setAttribute(i,`${o}`):e.removeAttribute(i)}function TN(t,e,r){r.type=t==="textarea"?"text":t;let n=yX.includes(t),i=e;gp(i,r,"min",n),gp(i,r,"max",n),gp(i,r,"step",n);let o=vX.includes(t),s=e;gp(s,r,"minLength",o),gp(s,r,"maxLength",o);let c=bX.includes(t);gp(s,r,"pattern",c)}var yX,bX,vX,PN=N(()=>{yX=["date","datetime-local","month","number","range","time","week"],bX=["email","password","search","tel","text","url"],vX=["email","password","search","tel","text","textarea","url"]});var fn,R5,MN,_X,SX,_b,AN=N(()=>{lr();p4();ac();Zr();Li();zy();xr();og();dn();q4();lg();Pg();Hy();Rs();xN();CN();Ho();PN();un();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"},R5={validationMessage:"inputValidationMessage"},MN={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},_X={action:"action"},SX=Tt`: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}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}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`,_b=class extends vt{constructor(){super(),this.actionWrapperEl=pi(),this.attributeWatch=Oy(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=pi(),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=Jr(),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=bt({cancelable:!1}),this.calciteInputInput=bt(),this.calciteInternalInputBlur=bt({cancelable:!1}),this.calciteInternalInputFocus=bt({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=SX}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),rc(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),cp(this),UL(this),this.el.addEventListener(By,this.onHiddenFormInputInput)}async load(){this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Ns(MN,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:Zo(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(MN,this.icon,this.type))}updated(){oc(this)}disconnectedCallback(){super.disconnectedCallback(),qy(this),VL(this),this.el.removeEventListener(By,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"?Zo(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"&&Wy(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;po.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=po.delocalize(r);e.inputType==="insertFromPaste"?(Zo(n)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:hN(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=[...Tg,"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}po.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===po.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(po.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(!bL(e))return;e.preventDefault();let r=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,e)}syncHiddenFormInput(e){TN(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"?Zo(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"){po.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:wN(o),d=o&&!a?Zo(this.previousValue)?this.previousValue:"":a,h=po.localize(d);n!=="connected"&&!c&&(h=yN(h,d,po)),this.displayedValue=c&&s?`${h}${po.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"?po.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!Zo(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=ec(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??Ce} aria-errormessage=${R5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${mg(this)} autocomplete=${this.autocomplete??Ce} .autofocus=${g} value=${this.defaultValue??Ce} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Ce} inputmode=${E??Ce} maxlength=${this.maxLength??Ce} minlength=${this.minLength??Ce} .multiple=${this.multiple} name=${Ce} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Ce} placeholder=${(this.placeholder||"")??Ce} .readOnly=${this.readOnly} type=text .value=${Py(this.displayedValue??"")} ${dt(this.setChildNumberElRef)}>`):null,k=this.childElType==="input"?ic`input`:ic`textarea`,F=this.type!=="number"?sp`<${k} accept=${this.accept??Ce} aria-errormessage=${R5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${mg(this)} autocomplete=${this.autocomplete??Ce} .autofocus=${g} class=${Se({[fn.editingEnabled]:this.editingEnabled,[fn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Ce} inputmode=${E??Ce} max=${this.maxString??Ce} maxlength=${this.maxLength??Ce} min=${this.minString??Ce} minlength=${this.minLength??Ce} .multiple=${this.multiple} name=${this.name??Ce} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Ce} placeholder=${(this.placeholder||"")??Ce} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Ce} step=${this.step??Ce} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Ce} type=${this.type??Ce} .value=${Py(this.value??"")} ${dt(this.setChildElRef)}></${k}>`:null;return sc({disabled:this.disabled,children:_e`<div class=${Se({[fn.inputWrapper]:!0,[ng.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=${_X.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}${WL({component:this})}</div>${this.validationMessage&&this.status==="invalid"?EN({icon:this.validationIcon,id:R5.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Lt("calcite-input",_b)});var IN={};Ao(IN,{Input:()=>_b});var LN=N(()=>{fN();mN();Zl();AN()});var xX,EX,Sb,kN=N(()=>{lr();Zr();xr();Hy();un();xX={container:"container"},EX=Tt`: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}`,Sb=class extends vt{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=bt({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=EX}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(pg))}willUpdate(e){e.has("for")&&XL(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(dg))}labelClickHandler(e){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return _e`<div class=${Se(xX.container)}><slot></slot></div>`}};Lt("calcite-label",Sb)});var ON={};Ao(ON,{Label:()=>Sb});var NN=N(()=>{kN()});var D5,RN=N(()=>{D5={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var xb,kg,CX,Eb,DN=N(()=>{lr();Zr();Li();xr();dn();Rs();RN();ab();Ho();un();xb={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},kg={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},CX=Tt`: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}`,Eb=class extends vt{constructor(){super(...arguments),this.closeButton=pi(),this.transitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=Jr(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=bt({cancelable:!1}),this.calciteNoticeBeforeOpen=bt({cancelable:!1}),this.calciteNoticeClose=bt({cancelable:!1}),this.calciteNoticeOpen=bt({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=CX}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(D5,this.icon,this.kind)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&hp(this),(e.has("icon")||e.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=Ns(D5,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(kg.close)} @click=${this.close} ${dt(this.closeButton)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`;return _e`<div class=${Se(kg.container)} ${dt(this.setTransitionEl)}>${this.requestedIcon?_e`<div class=${Se(kg.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon></div>`:null}<div class=${Se(kg.content)}><slot name=${xb.title}></slot><slot name=${xb.message}></slot><slot name=${xb.link}></slot></div><div class=${Se(kg.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${xb.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?e:null}</div>`}};Lt("calcite-notice",Eb)});var FN={};Ao(FN,{Notice:()=>Eb});var $N=N(()=>{Zl();DN()});var F5,$5,TX,hi,U5,UN=N(()=>{si();Cx();ai();xt();Ut();Sa();qn();qI();y4();iy();HI();ZI();JI();_x();F5="esri-identity-modal",$5={base:F5,info:`${F5}__info`,notice:`${F5}__notice`},TX="ArcGIS Online",hi=class extends jI{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 FI({button:()=>Promise.resolve().then(()=>(QL(),KL)),dialog:()=>Promise.resolve().then(()=>(lN(),cN)),input:()=>Promise.resolve().then(()=>(LN(),IN)),label:()=>Promise.resolve().then(()=>(NN(),ON)),notice:()=>Promise.resolve().then(()=>($N(),FN))})}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:W}=r;return fi("div",{class:this.classes($5.base,XI())},fi("form",{bind:this,onsubmit:this._submit},fi("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},fi("div",{class:$5.info},bx(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?TX:o,resource:`(${s||h})`})),c?fi("calcite-notice",{class:$5.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},fi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[fi("calcite-label",null,E,fi("calcite-input",{afterCreate:B=>this._usernameInputNode=B,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),fi("calcite-label",null,M,fi("calcite-input",{afterCreate:B=>this._passwordInputNode=B,bind:this,name:"password",required:!0,type:"password",value:""}))],fi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},k),fi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:W))))}_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})],hi.prototype,"container",void 0),ae([pe(),x4("esri/t9n/common")],hi.prototype,"commonMessages",void 0),ae([pe()],hi.prototype,"error",void 0),ae([pe(),x4("esri/identity/t9n/identity")],hi.prototype,"messages",void 0),ae([pe()],hi.prototype,"oAuthPrompt",void 0),ae([pe()],hi.prototype,"open",void 0),ae([pe()],hi.prototype,"signingIn",void 0),ae([pe()],hi.prototype,"server",void 0),ae([pe({readOnly:!0})],hi.prototype,"title",null),ae([pe()],hi.prototype,"resource",void 0),hi=ae([Ct("esri.identity.IdentityModal")],hi);U5=hi});var V5,wp,VN=N(()=>{V5="esriJSAPIOAuth",wp=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(V5,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(V5,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(V5);if(r)try{e=JSON.parse(r)}catch(n){console.warn(n)}}return e}};wp.prototype.declaredClass="esri.identity.OAuthCredential"});var z5,pn,W5,zN=N(()=>{si();Mh();ai();xt();Ut();Sa();qn();pn=class extends ja{static{z5=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 z5.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=z5=ae([Ct("esri.identity.OAuthInfo")],pn);W5=pn});var gi,Cb,WN=N(()=>{si();Mh();ai();xt();Ut();Sa();qn();gi=class extends ja{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}})],gi.prototype,"adminTokenServiceUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"currentVersion",void 0),ae([pe({json:{write:!0}})],gi.prototype,"hasPortal",void 0),ae([pe({json:{write:!0}})],gi.prototype,"hasServer",void 0),ae([pe({json:{write:!0}})],gi.prototype,"owningSystemUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"owningTenant",void 0),ae([pe({json:{write:!0}})],gi.prototype,"server",void 0),ae([pe({json:{write:!0}})],gi.prototype,"shortLivedTokenValidity",void 0),ae([pe({json:{write:!0}})],gi.prototype,"tokenServiceUrl",void 0),ae([pe({json:{write:!0}})],gi.prototype,"webTierAuth",void 0),gi=ae([Ct("esri.identity.ServerInfo")],gi);Cb=gi});var Tb,BN,B5,Pb,Mb,Og,Yt,GN=N(()=>{si();Fa();Oh();G0();Ln();px();vh();Mn();Do();no();Bo();ai();xt();Ut();qn();UN();VN();zN();WN();Lh();Tb={},BN=t=>{let e=new an(t.owningSystemUrl).host,r=new an(t.server).host,n=/.+\.arcgis\.com$/i;return n.test(e)&&n.test(r)},B5=(t,e)=>!!(BN(t)&&e&&e.some(r=>r.test(t.server))),Pb=null,Mb=null;try{Pb=window.localStorage,Mb=window.sessionStorage}catch{}Og=class extends Ts{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=Cs(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 Cb,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 ww({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 Cb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new W5(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=!1,o=!0;r&&(i=!(!r.token&&!r.credential),n=r.error,o=r.prompt!==!1),r={...r},e=this._sanitizeUrl(e);let s=new AbortController,c=_n();if(r.signal&&ci(r.signal,()=>{s.abort()}),ci(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),ro(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(e),d=i?this.findCredential(e):null,h;if(d&&n?.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:n}),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 Cb,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||cn(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 an(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 an(h.toLowerCase()),e.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(cn(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 W=F.data;if(!W?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let B=e.server;return Tb[B]||(Tb[B]={}),r&&(Tb[B][r.username]=r.password),W.validity=M,W})}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(qa(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&&ci(n.signal,()=>{s()});let c=new U5({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&&ci(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=F0(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=F0(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 U5({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=qa(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=qa(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 F0(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&&!cn(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&String(e.currentVersion)==="10.1"&&!cn(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let r=new an(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||k0(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=Nf(e),r=Nf(r),(e=e.slice(Math.max(0,e.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(e){let r=(yt.request.proxyUrl||"").toLowerCase(),n=r?e.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(e=e.slice(n+r.length+1)),e=Es(e),Cs(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 an(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||yt.portalUrl&&(i=cn(r,yt.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&&BN(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 an(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?Pb:Mb,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?Pb:Mb,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(qa(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))||cn(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:")&&Ff(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 W=this._getSuffix(F.resUrl_);k[W]||(k[W]=!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,W;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",X=>{X.source===window.parent&&X.data&&(X.data.type==="arcgis:auth:credential"?(B.remove(),X.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new Yt(X.data.credential))):X.data.type==="arcgis:auth:error"&&(B.remove(),X.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(X.data.error))))});ci(e.options_?.signal,()=>{B.remove()})}else if(k){let B=k._oAuthCred;if(!B){let X=new wp(k,Pb),z=new wp(k,Mb);X.isValid()&&z.isValid()?X.expires>z.expires?(B=X,z.destroy()):(B=z,X.destroy()):B=X.isValid()?X:z,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 X=k.appId!==B.appId&&this._doPortalSignIn(e.resUrl_);X||B.refreshToken?(e._pendingDfd=B.refreshToken?this._getOAuthToken(E.server,B.refreshToken,B.appId).then(z=>(F.expires=Date.now()+1e3*z.expires_in,F.token=z.access_token,F)):Promise.resolve(F),e._pendingDfd.then(z=>X?this._exchangeToken(z.server,k.appId,z.token).then(Z=>(z.token=Z,z)).catch(()=>z):z).then(z=>{r(z)}).catch(z=>{let Z=z.details?.httpStatus;Z>0&&Z!==404?(B.destroy(),i()):n(z)})):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 X=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(X,k,E).then(z=>{r(z)}).catch(n)}else{let X=()=>{M?e._pendingDfd=this.oAuthSignIn(e.resUrl_,E,k,e.options_).then(r,n):(W=new We("identity-manager:not-authenticated","User is not signed in."),n(W))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(E.server,k.appId).then(z=>{cn(z.portalUrl,this._appOrigin,!0)?(F=new Yt({userId:z.username,server:E.server??void 0,expires:Date.now()+1e3*z.expires_in,token:z.token}),r(F)):X()}).catch(X):X()}}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 W=new We("identity-manager:not-authenticated","User is not signed in."),n(W)},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(B5(d,this._legacyFed)){let W=k.toJSON();W.server=d.server,W.resources=null,r(new Yt(W))}else(e._pendingDfd=this.generateToken(this.findServerInfo(k.server),null,{serverUrl:e.resUrl_,token:k.token,signal:e.options_.signal,ssl:k.ssl})).then(W=>{r(new Yt({userId:k?.userId,server:d.server??void 0,token:W.token,expires:W.expires!=null?Number(W.expires):null,ssl:!!W.ssl,isAdmin:e.admin_,validity:W.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=(Ei("authInfo.tokenServicesUrl",d)||Ei("authInfo.tokenServiceUrl",d)||Ei("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Ei("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 W5({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:Ai(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||!(cn(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 Ai(e.popupCallbackUrl);if(r){let i=Cs(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Uf(i.path,i.query)}return n}};Og.prototype.declaredClass="esri.identity.IdentityManagerBase";Yt=class extends Ts.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&&B5(e,t._legacyFed),o=e.webTierAuth,s=o&&t.normalizeWebTierAuth,c=Tb[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))&&(B5(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=ww({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([Ct("esri.identity.Credential")],Yt)});var qN={};Ao(qN,{default:()=>jN});var Ab,jN,HN=N(()=>{Oh();GN();Ab=class extends Og{};Ab.prototype.declaredClass="esri.identity.IdentityManager";jN=new Ab;sM(jN)});var fc,Ib=N(()=>{LS();fc=class extends If{notify(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var Lb,YN=N(()=>{xs();Ib();Lb=class{constructor(e=r=>r.values().next().value){this._peeker=e,this._observable=new fc,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 yp,ZN=N(()=>{xs();Ib();yp=class{constructor(e){this._observable=new fc,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 XN(t,e=yw){return new G5(t,e)}var G5,JN=N(()=>{Mn();xs();Ib();G5=class{constructor(e,r){this._observable=new fc,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 KN={};Ao(KN,{QueueProcessor:()=>q5});var j5,q5,QN=N(()=>{Ll();no();YN();ZN();b0();JN();j5=class{constructor(e,r){this.item=e,this.controller=r,this.promise=null}},q5=class{constructor(e){this._schedule=null,this._deferreds=new yp,this._controllers=new yp,this._processingItems=new yp,this._pausedSignal=XN(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new Lb(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=ci(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=y0(()=>{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 j5(e,n);this._processingItems.set(e,i);try{r=this.process(e,n.signal)}catch(o){this._processError(i,o)}WS(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=qa(e.query.toString().replaceAll("+"," ")));let r=$f(t),n=D0(t);n||r||(t=Es(t));let i={url:t,requestOptions:{...e}},o=E=>({data:E,getAllHeaders:bp,getHeader:bp,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=ax(t,Ni.internalInterceptors);if(s){let E=await tR(s,i);if(E!=null)return o(E)}let c=ax(t);if(c){let E=await tR(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 mo("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 mo("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw mo("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await LX(),kb)return kb.execute(t,e);let a=new AbortController,d=ci(e,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:Ni.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=e.useRequestQueue?DX(h):Y5(h),v=await g.finally(()=>d?.remove());return c?.after?.(v),v}function IX(t){let e=ln(t);e&&!nr._corsServers.includes(e)&&nr._corsServers.push(e)}function eR(t){let e=ln(t);return!e||e.endsWith(".arcgis.com")||nr._corsServers.includes(e)||N0(e)}function mo(t,e,r,n){let i,o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:bp,getHeader:bp,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=Ob in e?e[Ob]:e}return i??="Error",Sh(e)?Sn():new We(t,i,o)}async function LX(){fe("host-webworker")&&!kb&&(kb=await Promise.resolve().then(()=>(TM(),CM)))}async function H5(){Zt||await Promise.resolve().then(()=>(HN(),qN))}async function kX(t){let e=t.params.url,r=t.params.requestOptions,n=t.controller.signal,i=r.body,o=null,s=null;if(iR&&"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:Ni.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=yt.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credential&&!t.credentialToken&&!oR(e)&&!ro(n)){let c;r.authMode==="immediate"?(await H5(),c=await Zt.getCredential(e,{signal:n})):r.authMode==="no-prompt"?(await H5(),c=await Zt.getCredential(e,{prompt:!1,signal:n}).catch(()=>{})):Zt&&(c=Zt.findCredential(e)),c&&(t.credential=c,t.credentialToken=c.token,t.useSSL=!!c.ssl)}}function oR(t){return AX.some(e=>e.test(t))}async function OX(t){let e=t.params.url,r=t.params.requestOptions,n=t.fetchOptions??{},i=D0(e)||$f(e),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Ni.timeout,c=!1;if(!i){t.useSSL&&(e=$0(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>Ni.maxUrlLength;let F=r.useProxy||!!Ff(e);if(F){let W=tM(e);k=W.path,!c&&k.length+1+M>Ni.maxUrlLength&&(c=!0),W.query&&(v={...W.query,...v})}if(n.method==="HEAD"&&(c||F)){if(c)throw M>Ni.maxUrlLength?mo("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params):mo("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params);if(F)throw mo("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=Uf(e,v):(n.body=Rl(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=Uf(e,v),F&&(t.useProxy=!0,e=`${k}?${e}`),v.token&&iR&&n.body instanceof FormData&&!k0(e)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?t.withCredentials=r.withCredentials:cn(e,Df())||(N0(e)||Zt&&Zt.findServerInfo(e)?.webTierAuth)&&(t.withCredentials=!0),t.withCredentials&&(n.credentials="include",SM(e)&&await xM(c?Uf(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||NX(r.headers)||!i&&!t.useProxy&&Ni.proxyUrl&&!eR(e)){if(nr._beforeFetch&&await nr._beforeFetch(e,n),a=await fetch(e,n),nr._afterFetch&&await nr._afterFetch(a),t.useProxy||IX(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=rR(d,"application/xml");break;case"document":d=rR(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 nR(URL.createObjectURL(d),t,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await nR(e,t)}catch(v){if(v.name==="AbortError")throw g?vM():Sn("Request canceled");if(!(!a&&v instanceof TypeError&&Ni.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||t.useProxy||eR(e))throw v;t.redoRequest=!0,iM({proxyUrl:Ni.proxyUrl,urlPrefix:ln(e)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function tR(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=mo("request:interceptor",i,e)}if((n instanceof Error||n instanceof We)&&(r=mo("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}function NX(t){if(t){for(let e of Object.getOwnPropertyNames(t))if(t[e])return!0}return!1}function rR(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 DX(t){let e=$X(t.params.url);if(!e)return Y5(t);let{QueueProcessor:r}=await Promise.resolve().then(()=>(QN(),KN));return vf(RX,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(ro(o.params.requestOptions))throw mo("",Sn("Request canceled"),o.params);return Y5(o)}})}).push(t)}async function Y5(t){let e,r;await kX(t);try{do[e,r]=await OX(t);while(!await FX(t,e,r))}catch(o){let s=mo("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&&!N0(n)){let o=ln(n,!0);o&&Ni.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):bp,getHeader:e?o=>e.headers.get(o):bp,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}async function FX(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[Ob]=r,i.details=r.messages)),!i&&!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[Ob]=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&&PX.has(o)&&!oR(t.params.url)&&(o!==403||(!s||!MX.has(s))&&(c==null||c===2&&t.credentialToken))){await H5();try{let d=await Zt.getCredential(t.params.url,{error:mo("request:server",i,t.params),credential:t.credential,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 nR(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=Ni.priority,i.src=t,bM(i,t,r,n)}function $X(t){let e,r;return typeof t=="string"?(e=ln(t,!0),r=fx(t)):(e=t.origin,r=fx(t.toString())),e==null?null:{origin:e,isHosted:r}}var kb,Ni,iR,PX,MX,AX,bp,Ob,RX,G0=N(()=>{Fa();Oh();Ln();xt();Mn();Bw();no();Bo();hM();Lh();wM();EM();Ni=yt.request,iR="FormData"in globalThis,PX=new Set([499,498,403,401]),MX=new Set(["COM_0056","COM_0057","SB_0008"]),AX=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],bp=()=>null,Ob=Symbol();nr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],nr._beforeFetch=void 0,nr._afterFetch=void 0;RX=new Map});function Gf(t){if(!yt.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 R0(yt.assetsPath,t)}var j0=N(()=>{Fa();G0();Ln();Ut();Bo()});function sR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var aR=N(()=>{});var cR=AC(()=>{});var lR=AC(()=>{});var fR={};Ao(fR,{p:()=>zX});function UX(){return uR||(uR=1,t=dR,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 W=cR(),B=lR();k=__dirname+"/",c=m=>(m=Ri(m)?new URL(m):B.normalize(m),W.readFileSync(m)),s=(m,L=!0)=>(m=Ri(m)?new URL(m):B.normalize(m),new Promise((j,ie)=>{W.readFile(m,L?void 0:"utf8",(le,Me)=>{le?ie(le):j(L?Me.buffer:Me)})})),!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=>Ri(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 X,z,Z=console.log.bind(console),re=console.error.bind(console);Object.assign(a,E),E=null;var $,me,ke,Te,Ne,we,ce,q=!1;function ee(m,L){m||hn(L)}function de(){var m=z.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=Te=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(){vo(ue)}function Ke(){vo(ve)}function mt(){vo(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){re(m="Aborted("+m+")"),q=!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,",bo=m=>m.startsWith(gu),Ri=m=>m.startsWith("file://");function wc(){var m="pe-wasm.wasm";return bo(m)?m:F(m)}function Vs(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Ko(m){return s(m).then(L=>new Uint8Array(L),()=>Vs(m))}function wi(m,L,j){return Ko(m).then(ie=>WebAssembly.instantiate(ie,L)).then(j,ie=>{re(`failed to asynchronously prepare wasm: ${ie}`),hn(ie)})}function wu(m,L,j,ie){return typeof WebAssembly.instantiateStreaming!="function"||bo(L)||Ri(L)||v||typeof fetch!="function"?wi(L,j,ie):fetch(L,{credentials:"same-origin"}).then(le=>WebAssembly.instantiateStreaming(le,j).then(ie,function(Me){return re(`wasm streaming compile failed: ${Me}`),re("falling back to ArrayBuffer instantiation"),wi(L,j,ie)}))}function Qo(){return{a:Lp}}function Ip(){var m=Qo();function L(ie,le){return G=ie.exports,z=G.t,de(),mr(G.u),Cn(),G}function j(ie){L(ie.instance)}return Kn(),Ue??=wc(),wu(X,Ue,m,j).catch(o),{}}var vo=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 Te[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 yc=typeof TextDecoder<"u"?new TextDecoder:void 0,bc=(m,L=0,j=NaN)=>{for(var ie=L+j,le=L;m[le]&&!(le>=ie);)++le;if(le-L>16&&m.buffer&&yc)return yc.decode(m.subarray(L,le));for(var Me="";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)Me+=String.fromCharCode(Ve);else{var yn=Ve-65536;Me+=String.fromCharCode(55296|yn>>10,56320|1023&yn)}}else Me+=String.fromCharCode((31&Ve)<<6|Re)}else Me+=String.fromCharCode(Ve)}return Me},hr=(m,L)=>m?bc(me,m,L):"";function yu(m,L,j){return 0}var _o=(m,L,j,ie)=>{if(!(ie>0))return 0;for(var le=j,Me=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>=Me)break;L[j++]=Re}else if(Re<=2047){if(j+1>=Me)break;L[j++]=192|Re>>6,L[j++]=128|63&Re}else if(Re<=65535){if(j+2>=Me)break;L[j++]=224|Re>>12,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}else{if(j+3>=Me)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)=>_o(m,me,L,j);function vc(m,L,j){return 0}function bu(m,L,j,ie){}var _c=m=>m%4==0&&(m%100!=0||m%400==0),Sc=[0,31,60,91,121,152,182,213,244,274,305,335],xc=[0,31,59,90,120,151,181,212,243,273,304,334],Ec=m=>(_c(m.getFullYear())?Sc:xc)[m.getMonth()]+m.getDate()-1,vu=(m,L)=>L+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*L:NaN;function Di(m,L,j){var ie=vu(m,L),le=new Date(1e3*ie);Te[j>>2]=le.getSeconds(),Te[j+4>>2]=le.getMinutes(),Te[j+8>>2]=le.getHours(),Te[j+12>>2]=le.getDate(),Te[j+16>>2]=le.getMonth(),Te[j+20>>2]=le.getFullYear()-1900,Te[j+24>>2]=le.getDay();var Me=0|Ec(le);Te[j+28>>2]=Me,Te[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));Te[j+32>>2]=yn}var _u=()=>2147483648,Cc=(m,L)=>Math.ceil(m/L)*L,es=m=>{var L=(m-z.buffer.byteLength+65535)/65536|0;try{return z.grow(L),de(),1}catch{}},yi={},So=()=>M||"./this.program",Fi=()=>{if(!Fi.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",_:So()};for(var L in yi)yi[L]===void 0?delete m[L]:m[L]=yi[L];var j=[];for(var L in m)j.push(`${L}=${m[L]}`);Fi.strings=j}return Fi.strings},Tc=(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 Pc=[null,[],[]],Bs=(m,L)=>{var j=Pc[m];L===0||L===10?((m===1?Z:re)(bc(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 _o(m,le,0,le.length),le}var Lp={c:yu,q:(m,L,j)=>{},h:vc,d:bu,o:m=>{},n:(m,L)=>{},p:(m,L,j)=>{},l:()=>{hn("")},s:(m,L,j)=>me.copyWithin(m,L,L+j),j:Di,r:(m,L,j,ie)=>{var le=new Date().getFullYear(),Me=new Date(le,0,1),Ve=new Date(le,6,1),Re=Me.getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=Math.max(Re,tt);Ne[m>>2]=60*yn,Te[L>>2]=+(Re!=tt);var Yg=Jg=>{var mv=Jg>=0?"-":"+",Kg=Math.abs(Jg);return`UTC${mv}${String(Math.floor(Kg/60)).padStart(2,"0")}${String(Kg%60).padStart(2,"0")}`},Zg=Yg(Re),Xg=Yg(tt);tt<Re?(Ws(Zg,j,17),Ws(Xg,ie,17)):(Ws(Zg,ie,17),Ws(Xg,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 Me=Math.min(j,Cc(Math.max(m,le),65536));if(es(Me))return!0}return!1},e:(m,L)=>{var j=0;return Fi().forEach((ie,le)=>{var Me=L+j;Ne[m+4*le>>2]=Me,Tc(ie,Me),j+=ie.length+1}),0},f:(m,L)=>{var j=Fi();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,Me=0;Me<j;Me++){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=Ip();a._webidl_free=m=>(a._webidl_free=G.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=G.w)(m);var xo,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),Mc=a._emscripten_bind_PeObject_getType_0=m=>(Mc=a._emscripten_bind_PeObject_getType_0=G.z)(m),Qr=a._emscripten_bind_PeCoordsys_isEqual_1=(m,L)=>(Qr=a._emscripten_bind_PeCoordsys_isEqual_1=G.A)(m,L),bi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(bi=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),Ac=a._emscripten_bind_PeAngunit_getCode_0=m=>(Ac=a._emscripten_bind_PeAngunit_getCode_0=G.J)(m),Ic=a._emscripten_bind_PeAngunit_getName_1=(m,L)=>(Ic=a._emscripten_bind_PeAngunit_getName_1=G.K)(m,L),Lc=a._emscripten_bind_PeAngunit_getType_0=m=>(Lc=a._emscripten_bind_PeAngunit_getType_0=G.L)(m),Eo=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(Eo=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),kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(kc=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),Oc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=G.T)(m),Nc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=G.U)(m),ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=G.V)(m),Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Rc=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),Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Dc=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),Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=G.ga)(m),rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=G.ha)(m),$i=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>($i=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),ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(ns=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),Co=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(Co=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),$c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>($c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=G.oa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Uc=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),Vc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Vc=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),zc=a._emscripten_bind_PeDouble_get_val_0=m=>(zc=a._emscripten_bind_PeDouble_get_val_0=G.wa)(m),Wc=a._emscripten_bind_PeDouble_set_val_1=(m,L)=>(Wc=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),Bc=a._emscripten_bind_PeFactory_fromString_2=(m,L)=>(Bc=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),is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,L,j,ie,le,Me)=>(is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=G.Da)(m,L,j,ie,le,Me),Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=G.Ea)(m),Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=G.Fa)(m),jc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(jc=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),qc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(qc=a._emscripten_bind_PeGCSExtent___destroy___0=G.Ia)(m),Hc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Hc=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),Ui=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(Ui=a._emscripten_bind_PeGeogcs_getDatum_0=G.La)(m),To=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(To=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),os=a._emscripten_bind_PeGeogcs_getType_0=m=>(os=a._emscripten_bind_PeGeogcs_getType_0=G.Ra)(m),Yc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,L)=>(Yc=a._emscripten_bind_PeGeogtran_isEqual_1=G.Sa)(m,L),Zc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Zc=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),Xc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Xc=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,Me)=>(rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=G._a)(m,L,j,ie,le,Me),Jc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Jc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=G.$a)(m),Kc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Kc=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),Qc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Qc=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),el=a._emscripten_bind_PeHorizon_getCoord_0=m=>(el=a._emscripten_bind_PeHorizon_getCoord_0=G.jb)(m),tl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(tl=a._emscripten_bind_PeInteger_PeInteger_1=G.kb)(m),ss=a._emscripten_bind_PeInteger_get_val_0=m=>(ss=a._emscripten_bind_PeInteger_get_val_0=G.lb)(m),vi=a._emscripten_bind_PeInteger_set_val_1=(m,L)=>(vi=a._emscripten_bind_PeInteger_set_val_1=G.mb)(m,L),as=a._emscripten_bind_PeInteger___destroy___0=m=>(as=a._emscripten_bind_PeInteger___destroy___0=G.nb)(m),ld=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,L,j,ie,le,Me,Ve,Re,tt,yn)=>(ld=a._emscripten_bind_PeLineType_geodetic_distance_10=G.ob)(m,L,j,ie,le,Me,Ve,Re,tt,yn),rl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,L,j,ie,le,Me,Ve,Re,tt)=>(rl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=G.pb)(m,L,j,ie,le,Me,Ve,Re,tt),nl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,L,j,ie,le,Me,Ve,Re)=>(nl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=G.qb)(m,L,j,ie,le,Me,Ve,Re),il=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,L,j,ie,le,Me,Ve,Re,tt)=>(il=a._emscripten_bind_PeLineType_great_elliptic_distance_9=G.rb)(m,L,j,ie,le,Me,Ve,Re,tt),Po=a._emscripten_bind_PeMath_phi_to_eta_2=(m,L)=>(Po=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),cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(cs=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),ol=a._emscripten_bind_PeParameter_getValue_0=m=>(ol=a._emscripten_bind_PeParameter_getValue_0=G.Gb)(m),Mo=a._emscripten_bind_PeParameter_getCode_0=m=>(Mo=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),sl=a._emscripten_bind_PeParameter_getType_0=m=>(sl=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),Y=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Y=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),_t=a._emscripten_bind_PeSpheroid_getCode_0=m=>(_t=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 ls(){function m(){xo||(xo=!0,a.calledRun=!0,q||(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 ov(m,L){return er(m.ptr,L)}function sv(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete oa(m.__class__)[m.ptr]}function av(m,L){return m.ptr===L.ptr}function cv(m){return m.ptr}function lv(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,Me,Ve)=>(a._pe_geog_to_mgrs_extended=G.Hc)(m,L,j,ie,le,Me,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,Me,Ve)=>(a._pe_geog_to_usng=G.Jc)(m,L,j,ie,le,Me,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(){xo||ls(),xo||(Qt=m)},ls(),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=ov,a.NULL=er(0),a.destroy=sv,a.compare=av,a.getPointer=cv,a.getClass=lv;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),ee(He.buffer)),He.pos=0},alloc(m,L){ee(He.buffer);var j,ie=L.BYTES_PER_ELEMENT,le=m.length*ie;return le=Cc(le,8),He.pos+le>=He.size?(ee(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 kp(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 uv(m){if(typeof m=="object"){var L=He.alloc(m,ke);return He.copy(m,ke,L),L}return m}function dv(m){if(typeof m=="object"){var L=He.alloc(m,Te);return He.copy(m,Te,L),L}return m}function fv(m){if(typeof m=="object"){var L=He.alloc(m,we);return He.copy(m,we,L),L}return m}function pv(m){if(typeof m=="object"){var L=He.alloc(m,ce);return He.copy(m,ce,L),L}return m}function Bt(){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 Vi(){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 en(){throw"cannot construct a PeFactory, no constructor in IDL"}function yr(m,L,j,ie,le,Me){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),Me&&typeof Me=="object"&&(Me=Me.ptr),this.ptr=is(m,L,j,ie,le,Me),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=tl(m),oa(Mr)[this.ptr]=this}function tn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Ar(){throw"cannot construct a PeMath, no constructor in IDL"}function St(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Gt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function rn(){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 zi(){throw"cannot construct a PeVersion, no constructor in IDL"}return Bt.prototype=Object.create(ot.prototype),Bt.prototype.constructor=Bt,Bt.prototype.__class__=Bt,Bt.__cache__={},a.PeObject=Bt,Bt.prototype.getCode=Bt.prototype.getCode=function(){var m=this.ptr;return Cu(m)},Bt.prototype.getName=Bt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Tu(L,m))},Bt.prototype.getType=Bt.prototype.getType=function(){var m=this.ptr;return Mc(m)},Cr.prototype=Object.create(Bt.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),!!Qr(L,m)},Cr.prototype.getCode=Cr.prototype.getCode=function(){var m=this.ptr;return bi(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(Bt.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)},Vi.prototype=Object.create(ot.prototype),Vi.prototype.constructor=Vi,Vi.prototype.__class__=Vi,Vi.__cache__={},a.VoidPtr=Vi,Vi.prototype.__destroy__=Vi.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 Ac(m)},Dr.prototype.getName=Dr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ic(L,m))},Dr.prototype.getType=Dr.prototype.getType=function(){var m=this.ptr;return Lc(m)},Dr.prototype.getUnitFactor=Dr.prototype.getUnitFactor=function(){var m=this.ptr;return Eo(m)},Fr.prototype=Object.create(Bt.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 kc(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 Oc(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 Nc(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 ts(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 Rc(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 Dc(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 Fc(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 rs(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 $i(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 ns(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 Co(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 $c(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 Uc(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 Vc(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 zc(m)},Pr.prototype.set_val=Pr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wc(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)},en.prototype=Object.create(ot.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeFactory=en,en.prototype.initialize=en.prototype.initialize=function(m){He.prepare(),m=m&&typeof m=="object"?m.ptr:kp(m),Ks(m)},en.prototype.factoryByType=en.prototype.factoryByType=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),er(qu(m,L),Bt)},en.prototype.fromString=en.prototype.fromString=function(m,L){return He.prepare(),m&&typeof m=="object"&&(m=m.ptr),L=L&&typeof L=="object"?L.ptr:kp(L),er(Bc(m,L),Bt)},en.prototype.getCode=en.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 Gc(m)},yr.prototype.getRLon=yr.prototype.getRLon=function(){var m=this.ptr;return jc(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;qc(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;Hc(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(Ui(m),Fr)},ht.prototype.getPrimem=ht.prototype.getPrimem=function(){var m=this.ptr;return er(To(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 os(m)},Ft.prototype=Object.create(Bt.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),!!Yc(L,m)},Ft.prototype.getGeogcs1=Ft.prototype.getGeogcs1=function(){var m=this.ptr;return er(Zc(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 Xc(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,Me){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),Me&&typeof Me=="object"&&(Me=Me.ptr),er(rd(m,L,j,ie,le,Me),wn)},Pn.prototype.get_PE_GTLIST_OPTS_COMMON=Pn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Jc(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(Kc(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 Qc(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 el(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 ss(m)},Mr.prototype.set_val=Mr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),vi(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;as(m)},tn.prototype=Object.create(ot.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeLineType=tn,tn.prototype.geodetic_distance=tn.prototype.geodetic_distance=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.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,Me,Ve,Re,tt,yn)},tn.prototype.geodetic_coordinate=tn.prototype.geodetic_coordinate=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),rl(m,L,j,ie,le,Me,Ve,Re,tt)},tn.prototype.geodesic_coordinate=tn.prototype.geodesic_coordinate=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),nl(m,L,j,ie,le,Me,Ve,Re)},tn.prototype.great_elliptic_distance=tn.prototype.great_elliptic_distance=function(m,L,j,ie,le,Me,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),Me&&typeof Me=="object"&&(Me=Me.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),il(m,L,j,ie,le,Me,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),Po(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)},St.prototype=Object.create(ot.prototype),St.prototype.constructor=St,St.prototype.__class__=St,St.__cache__={},a.PeNotationMgrs=St,St.prototype.get_PE_MGRS_STYLE_NEW=St.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return md(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_NEW",{get:St.prototype.get_PE_MGRS_STYLE_NEW}),St.prototype.get_PE_MGRS_STYLE_OLD=St.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return hd(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_OLD",{get:St.prototype.get_PE_MGRS_STYLE_OLD}),St.prototype.get_PE_MGRS_STYLE_AUTO=St.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return ra(m)},Object.defineProperty(St.prototype,"PE_MGRS_STYLE_AUTO",{get:St.prototype.get_PE_MGRS_STYLE_AUTO}),St.prototype.get_PE_MGRS_180_ZONE_1_PLUS=St.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return gd(m)},Object.defineProperty(St.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:St.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),St.prototype.get_PE_MGRS_ADD_SPACES=St.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return cs(m)},Object.defineProperty(St.prototype,"PE_MGRS_ADD_SPACES",{get:St.prototype.get_PE_MGRS_ADD_SPACES}),Gt.prototype=Object.create(ot.prototype),Gt.prototype.constructor=Gt,Gt.prototype.__class__=Gt,Gt.__cache__={},a.PeNotationUtm=Gt,Gt.prototype.get_PE_UTM_OPTS_NONE=Gt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return wd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NONE",{get:Gt.prototype.get_PE_UTM_OPTS_NONE}),Gt.prototype.get_PE_UTM_OPTS_NS=Gt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return na(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NS",{get:Gt.prototype.get_PE_UTM_OPTS_NS}),Gt.prototype.get_PE_UTM_OPTS_NS_STRICT=Gt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return yd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Gt.prototype.get_PE_UTM_OPTS_NS_STRICT}),Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES=Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return bd(m)},Object.defineProperty(Gt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Gt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),rn.prototype=Object.create(Bt.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PeParameter=rn,rn.prototype.getValue=rn.prototype.getValue=function(){var m=this.ptr;return ol(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return Mo(m)},rn.prototype.getName=rn.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ri(L,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return sl(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(Bt.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(Y(m),ht)},ut.prototype.getProjection=ut.prototype.getProjection=function(){var m=this.ptr;return er(oe(m),Bt)},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(Bt.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 _t(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)},zi.prototype=Object.create(ot.prototype),zi.prototype.constructor=zi,zi.prototype.__class__=zi,zi.__cache__={},a.PeVersion=zi,zi.prototype.version_string=zi.prototype.version_string=function(){var m=this.ptr;return hr(Tn(m))},a.ensureCache=He,a.ensureString=kp,a.ensureInt8=zn,a.ensureInt16=uv,a.ensureInt32=dv,a.ensureFloat32=fv,a.ensureFloat64=pv,d},t.exports=r),dR.exports;var t,e,r}var uR,dR,VX,zX,pR=N(()=>{aR();dR={exports:{}};VX=sR(UX()),zX=Object.freeze(Object.defineProperty({__proto__:null,default:VX},Symbol.toStringTag,{value:"Module"}))});function mR(){return!!V}function WX(){return!!fe("esri-wasm")}function hR(){return Z5||(Z5=Promise.resolve().then(()=>(pR(),fR)).then(t=>t.p).then(({default:t})=>t({locateFile:e=>Gf(`esri/geometry/support/${e}`)})).then(t=>{yR(t)}),Z5)}function yR(t){function e(o,s,c){o[s]=c(o[s])}V=t,Vt.init(),Db.init(),Fb.init(),$b.init(),Ub.init(),gR=class extends V.PeDouble{constructor(o=NaN){super(o)}destroy(){V.destroy(this)}[Symbol.dispose](){this.destroy()}},wR=class extends V.PeGCSExtent{destroy(){V.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[V.PeAngunit,V.PeDatum,V.PeGeogcs,V.PeGeogtran,V.PeObject,V.PeParameter,V.PePrimem,V.PeProjcs,V.PeSpheroid,V.PeUnit];for(let o of r)e(o.prototype,"getName",s=>function(){return s.call(this,new Array(Vt.PE_NAME_MAX))});for(let o of[V.PeGeogtran,V.PeProjcs])e(o.prototype,"getParameters",s=>function(){let c=new Array(Vt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=V.getValue(a,"*");c[d]=h?V.wrapPointer(h,V.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});e(V.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return pc(a,c,o.call(this),s),a}),e(V.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=V._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!V.compare(a,V.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=V.getPointer(a);for(let g=1;g<d;g++)c.push(V.wrapPointer(h+s*g,V.PeGTlistExtendedGTs))}}return c}});let n=V._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(!V.compare(a,V.NULL)){c=[a];let d=a.getNump();if(d>1){let h=V.getPointer(a);for(let g=1;g<d;g++)c.push(V.wrapPointer(h+n*g,V.PeHorizon))}}return s.set(o,c),c};e(V.PeProjcs.prototype,"horizonGcsGenerate",i),e(V.PeProjcs.prototype,"horizonPcsGenerate",i),V.PeObject.prototype.toString=function(o=Vt.PE_STR_OPTS_NONE){V.ensureCache.prepare();let s=V.getPointer(this),c=V.ensureInt8(new Array(Vt.PE_BUFFER_MAX));return V.UTF8ToString(V._pe_object_to_string_ext(s,o,c))},V.PeGeogcs.prototype.destroy=function(){this.Delete(),ho(this),this.ptr=0},V.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},V.PeProjcs.prototype.destroy=function(){this.Delete(),ho(this),this.ptr=0},V.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function ho(t){if(!t)return;let e=V.getClass(t);if(!e)return;let r=V.getCache(e);if(!r)return;let n=V.getPointer(t);n&&delete r[n]}function Nb(t,e){let r=[],n=new Array(e);for(let i=0;i<t;i++)r.push(V.ensureInt8(n));return r}function ou(t){return ArrayBuffer.isView(t)?t:Array.isArray(t[0])?t.flat():t}function pc(t,e,r,n=!1){if(n)for(let i=0;i<2*e;i++)t[i]=V.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]=V.getValue(r,"double"),t[o][1]=V.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var Z5,V,X5,Vt,gR,Rb,wR,Db,J5,K5,Q5,eE,tE,Fb,rE,$b,Ub,nE,GSe,bR=N(()=>{j0();xt();V=null;(function(t){function e(o,s,c){V.ensureCache.prepare();let a=ou(c),d=c===a,h=V.ensureFloat64(a),g=V._pe_geog_to_proj(V.getPointer(o),s,h);return g&&pc(c,s,h,d),g}function r(o,s,c,a){switch(a){case Vt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case Vt.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){V.ensureCache.prepare();let d=ou(c),h=c===d,g=V.ensureFloat64(d),v=V._pe_proj_to_geog_center(V.getPointer(o),s,g,a);return v&&pc(c,s,g,h),v}t.geogToProj=e,t.projGeog=r,t.projToGeog=n,t.projToGeogCenter=i})(X5||(X5={})),function(t){function e(){t.PE_BUFFER_MAX=V.PeDefs.prototype.PE_BUFFER_MAX,t.PE_NAME_MAX=V.PeDefs.prototype.PE_NAME_MAX,t.PE_MGRS_MAX=V.PeDefs.prototype.PE_MGRS_MAX,t.PE_USNG_MAX=V.PeDefs.prototype.PE_USNG_MAX,t.PE_DD_MAX=V.PeDefs.prototype.PE_DD_MAX,t.PE_DDM_MAX=V.PeDefs.prototype.PE_DDM_MAX,t.PE_DMS_MAX=V.PeDefs.prototype.PE_DMS_MAX,t.PE_UTM_MAX=V.PeDefs.prototype.PE_UTM_MAX,t.PE_PARM_MAX=V.PeDefs.prototype.PE_PARM_MAX,t.PE_TYPE_NONE=V.PeDefs.prototype.PE_TYPE_NONE,t.PE_TYPE_GEOGCS=V.PeDefs.prototype.PE_TYPE_GEOGCS,t.PE_TYPE_PROJCS=V.PeDefs.prototype.PE_TYPE_PROJCS,t.PE_TYPE_GEOGTRAN=V.PeDefs.prototype.PE_TYPE_GEOGTRAN,t.PE_TYPE_COORDSYS=V.PeDefs.prototype.PE_TYPE_COORDSYS,t.PE_TYPE_UNIT=V.PeDefs.prototype.PE_TYPE_UNIT,t.PE_TYPE_LINUNIT=V.PeDefs.prototype.PE_TYPE_LINUNIT,t.PE_STR_OPTS_NONE=V.PeDefs.prototype.PE_STR_OPTS_NONE,t.PE_STR_AUTH_NONE=V.PeDefs.prototype.PE_STR_AUTH_NONE,t.PE_STR_AUTH_TOP=V.PeDefs.prototype.PE_STR_AUTH_TOP,t.PE_STR_NAME_CANON=V.PeDefs.prototype.PE_STR_NAME_CANON,t.PE_STR_FMT_WKT=V.PeDefs.prototype.PE_STR_FMT_WKT,t.PE_STR_FMT_WKT2=V.PeDefs.prototype.PE_STR_FMT_WKT2,t.PE_PARM_X0=V.PeDefs.prototype.PE_PARM_X0,t.PE_PARM_ND=V.PeDefs.prototype.PE_PARM_ND,t.PE_TRANSFORM_1_TO_2=V.PeDefs.prototype.PE_TRANSFORM_1_TO_2,t.PE_TRANSFORM_2_TO_1=V.PeDefs.prototype.PE_TRANSFORM_2_TO_1,t.PE_TRANSFORM_P_TO_G=V.PeDefs.prototype.PE_TRANSFORM_P_TO_G,t.PE_TRANSFORM_G_TO_P=V.PeDefs.prototype.PE_TRANSFORM_G_TO_P,t.PE_HORIZON_RECT=V.PeDefs.prototype.PE_HORIZON_RECT,t.PE_HORIZON_POLY=V.PeDefs.prototype.PE_HORIZON_POLY,t.PE_HORIZON_LINE=V.PeDefs.prototype.PE_HORIZON_LINE,t.PE_HORIZON_DELTA=V.PeDefs.prototype.PE_HORIZON_DELTA}t.init=e}(Vt||(Vt={}));gR=null;(function(t){let e={},r={},n=E=>{let M=E.getType();switch(M){case Vt.PE_TYPE_GEOGCS:E=V.castObject(E,V.PeGeogcs);break;case Vt.PE_TYPE_PROJCS:E=V.castObject(E,V.PeProjcs);break;case Vt.PE_TYPE_GEOGTRAN:E=V.castObject(E,V.PeGeogtran);break;default:M&Vt.PE_TYPE_UNIT&&(E=V.castObject(E,V.PeUnit))}return E};function i(){V.PeFactory.prototype.initialize(null)}function o(E){return s(Vt.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],V.compare(k,V.NULL)&&(k=null)),!k){let W=V.PeFactory.prototype.factoryByType(E,M);V.compare(W,V.NULL)||(k=n(W),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],V.compare(k,V.NULL)&&(k=null)),!k){let W=V.PeFactory.prototype.fromString(E,M);V.compare(W,V.NULL)||(k=n(W),F[M]=k)}return k}function a(E){return s(Vt.PE_TYPE_GEOGCS,E)}function d(E){return s(Vt.PE_TYPE_GEOGTRAN,E)}function h(E){return V.PeFactory.prototype.getCode(E)}function g(E){return s(Vt.PE_TYPE_PROJCS,E)}function v(E){return s(Vt.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})(Rb||(Rb={}));wR=null;(function(t){let e;function r(){t.PE_GTLIST_OPTS_COMMON=V.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=V._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new V.PeInteger(d);try{let v=V.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=V.getPointer(v);for(let M=1;M<d;M++)h.push(V.wrapPointer(E+e*M,V.PeGTlistExtendedEntry))}}finally{V.destroy(g)}return h}t.init=r,t.getGTlist=n})(Db||(Db={})),function(t){function e(r){if(r?.length){for(let n of r)ho(n),n.getEntries().forEach(i=>{ho(i);let o=i.getGeogtran();ho(o),o.getParameters().forEach(ho),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{ho(s);let c=s.getDatum();ho(c),ho(c.getSpheroid()),ho(s.getPrimem()),ho(s.getUnit())})});V.PeGTlistExtendedEntry.prototype.Delete(r[0])}}t.destroy=e}(J5||(J5={})),function(t){function e(r,n,i,o,s){V.ensureCache.prepare();let c=ou(i),a=i===c,d=V.ensureFloat64(c),h=0;o&&(h=V.ensureFloat64(o));let g=V._pe_geog_to_geog(V.getPointer(r),n,d,h,s);return g&&pc(i,n,d,a),g}t.geogToGeog=e}(K5||(K5={})),function(t){function e(o,s,c,a,d,h,g,v){V.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){V.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){V.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){V.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}(Q5||(Q5={})),function(t){function e(s,c){return V.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return V.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return V.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return V.PeMath.prototype.q(s,c,a)}function o(s,c){return V.PeMath.prototype.q90(s,c)}t.phiToEta=e,t.etaToPhi=r,t.phiToPhig=n,t.q=i,t.q90=o}(eE||(eE={})),function(t){let e=(d,h,g,v,E,M)=>{let k,F;switch(V.ensureCache.prepare(),d){case"dd":k=V._pe_geog_to_dd,F=Vt.PE_DD_MAX;break;case"ddm":k=V._pe_geog_to_ddm,F=Vt.PE_DDM_MAX;break;case"dms":k=V._pe_geog_to_dms,F=Vt.PE_DMS_MAX}let W=0;h&&(W=V.getPointer(h));let B=ou(v),X=V.ensureFloat64(B),z=Nb(g,F),Z=k(W,g,X,E,V.ensureInt32(z));if(Z)for(let re=0;re<g;re++)M[re]=V.UTF8ToString(z[re]);return Z},r=(d,h,g,v,E)=>{let M;switch(V.ensureCache.prepare(),d){case"dd":M=V._pe_dd_to_geog;break;case"ddm":M=V._pe_ddm_to_geog;break;case"dms":M=V._pe_dms_to_geog}let k=0;h&&(k=V.getPointer(h));let F=v.map(z=>V.ensureString(z)),W=V.ensureInt32(F),B=V.ensureFloat64(new Array(2*g)),X=M(k,g,W,B);return X&&pc(E,g,B),X};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}(tE||(tE={})),function(t){function e(){t.PE_MGRS_STYLE_NEW=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=V.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=V.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=V.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){V.ensureCache.prepare();let g=0;i&&(g=V.getPointer(i));let v=ou(s),E=V.ensureFloat64(v),M=Nb(o,Vt.PE_MGRS_MAX),k=V.ensureInt32(M),F=V._pe_geog_to_mgrs_extended(g,o,E,c,a,d,k);if(F)for(let W=0;W<o;W++)h[W]=V.UTF8ToString(M[W]);return F}function n(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=s.map(M=>V.ensureString(M)),g=V.ensureInt32(h),v=V.ensureFloat64(new Array(2*o)),E=V._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToMgrsExtended=r,t.mgrsToGeogExtended=n}(Fb||(Fb={})),function(t){function e(n,i,o,s,c,a,d){V.ensureCache.prepare();let h=0;n&&(h=V.getPointer(n));let g=ou(o),v=V.ensureFloat64(g),E=Nb(i,Vt.PE_MGRS_MAX),M=V.ensureInt32(E),k=V._pe_geog_to_usng(h,i,v,s,c,a,M);if(k)for(let F=0;F<i;F++)d[F]=V.UTF8ToString(E[F]);return k}function r(n,i,o,s){V.ensureCache.prepare();let c=0;n&&(c=V.getPointer(n));let a=o.map(v=>V.ensureString(v)),d=V.ensureInt32(a),h=V.ensureFloat64(new Array(2*i)),g=V._pe_usng_to_geog(c,i,d,h);return g&&pc(s,i,h),g}t.geogToUsng=e,t.usngToGeog=r}(rE||(rE={})),function(t){function e(){t.PE_UTM_OPTS_NONE=V.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=V.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=V.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=ou(s),g=V.ensureFloat64(h),v=Nb(o,Vt.PE_UTM_MAX),E=V.ensureInt32(v),M=V._pe_geog_to_utm(d,o,g,c,E);if(M)for(let k=0;k<o;k++)a[k]=V.UTF8ToString(v[k]);return M}function n(i,o,s,c,a){V.ensureCache.prepare();let d=0;i&&(d=V.getPointer(i));let h=s.map(M=>V.ensureString(M)),g=V.ensureInt32(h),v=V.ensureFloat64(new Array(2*o)),E=V._pe_utm_to_geog(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToUtm=r,t.utmToGeog=n}($b||($b={})),function(t){let e=new Map;function r(){t.PE_PCSINFO_OPTION_NONE=V.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=V.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=V.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=V.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=V.PePCSInfo.prototype.generate(i,o),c||(c=[],e.set(i,c)),c[o]=s),s}t.init=r,t.generate=n}(Ub||(Ub={})),function(t){function e(){return V.PeVersion.prototype.version_string()}t.versionString=e}(nE||(nE={}));GSe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return X5},get PeDefs(){return Vt},get PeDouble(){return gR},get PeFactory(){return Rb},get PeGCSExtent(){return wR},get PeGTTransformations(){return K5},get PeGTlistExtended(){return Db},get PeGTlistExtendedEntry(){return J5},get PeLineType(){return Q5},get PeMath(){return eE},get PeNotationDms(){return tE},get PeNotationMgrs(){return Fb},get PeNotationUsng(){return rE},get PeNotationUtm(){return $b},get PePCSInfo(){return Ub},get PeVersion(){return nE},_init:yR,get _pe(){return V},isLoaded:mR,isSupported:WX,load:hR},Symbol.toStringTag,{value:"Module"}))});var vp,vR=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"})(vp||(vp={}))});var l,P,iE=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 Sp(t){let e=t?.wkid;return e!=null&&e>=2e3&&SR[e]||null}function Ng(t){if(!ER(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 Rg(t){return t?.wkid===4326}function $s(t){let e=t?.wkid;return e!=null&&e>=2e3&&_R.includes(e)}function aE(t){return t===vp.GCSMARS2000||t===vp.GCSMARS2000_SPHERE}function cE(t){return t===vp.GCSMOON2000}function xR(t){let e=t?.wkid;return e!=null&&e>=2e3&&GX.includes(e)}function ER(t){if(t==null)return!1;let e=t.wkid;return e!=null&&e>=2e3||t.wkt2!=null||t.wkt!=null}var _R,BX,GX,_p,sE,oE,SR,lE,uE,CR,mc=N(()=>{xa();bR();vR();iE();_R=[102100,102113,3857,3785,900913],BX=[104905,104971],GX=[4326,..._R,...BX],_p=[-20037508342788905e-9,20037508342788905e-9],sE=[-20037508342787e-6,20037508342787e-6],oE={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:_p,origin:sE,dx:1e-5},SR={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:_p,origin:sE,dx:1e-5},102100:oE,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:_p,origin:sE,dx:1e-5},3857:oE,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:oE};lE={wkid:4326,wkt:Fo(SR[4326].wkTemplate,{Central_Meridian:"0.0"})},uE={wkid:102100,latestWkid:3857},CR={wkid:32662}});function dE(t){return{wkt:`GEOCCS["Spherical geocentric",
|
|
14
14
|
DATUM["Not specified",
|
|
15
15
|
SPHEROID["Sphere",${t.radius},0]],
|
|
16
16
|
PRIMEM["Greenwich",0.0,
|