function yd(e,t){for(var n=0;ns[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ra(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}const ve={},ts=[],St=()=>{},vd=()=>!1,_d=/^on[^a-z]/,hr=e=>_d.test(e),ia=e=>e.startsWith("onUpdate:"),be=Object.assign,oa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wd=Object.prototype.hasOwnProperty,ae=(e,t)=>wd.call(e,t),X=Array.isArray,ns=e=>dr(e)==="[object Map]",_u=e=>dr(e)==="[object Set]",bd=e=>dr(e)==="[object RegExp]",Z=e=>typeof e=="function",_e=e=>typeof e=="string",aa=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",la=e=>ye(e)&&Z(e.then)&&Z(e.catch),wu=Object.prototype.toString,dr=e=>wu.call(e),Td=e=>dr(e).slice(8,-1),bu=e=>dr(e)==="[object Object]",ca=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rs=ra(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ed=/-(\w)/g,Dt=pi(e=>e.replace(Ed,(t,n)=>n?n.toUpperCase():"")),Cd=/\B([A-Z])/g,Un=pi(e=>e.replace(Cd,"-$1").toLowerCase()),gi=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=pi(e=>e?`on${gi(e)}`:""),Ws=(e,t)=>!Object.is(e,t),ss=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},po=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tu=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let sl;const go=()=>sl||(sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(e){if(X(e)){const t={};for(let n=0;n{if(n){const s=n.split(Pd);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ut(e){let t="";if(_e(e))t=e;else if(X(e))for(let n=0;n_e(e)?e:e==null?"":X(e)||ye(e)&&(e.toString===wu||!Z(e.toString))?JSON.stringify(e,Su,2):String(e),Su=(e,t)=>t&&t.__v_isRef?Su(e,t.value):ns(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:_u(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!X(t)&&!bu(t)?String(t):t;let ot;class xd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ot,!t&&ot&&(this.index=(ot.scopes||(ot.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ot;try{return ot=this,t()}finally{ot=n}}}on(){ot=this}off(){ot=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Pu=e=>(e.w&_n)>0,ku=e=>(e.n&_n)>0,Ld=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":X(e)?ca(n)&&a.push(o.get("length")):(a.push(o.get(Nn)),ns(e)&&a.push(o.get(yo)));break;case"delete":X(e)||(a.push(o.get(Nn)),ns(e)&&a.push(o.get(yo)));break;case"set":ns(e)&&a.push(o.get(Nn));break}if(a.length===1)a[0]&&vo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);vo(fa(l))}}function vo(e,t){const n=X(e)?e:[...e];for(const s of n)s.computed&&il(s);for(const s of n)s.computed||il(s)}function il(e,t){(e!==bt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Dd(e,t){var n;return(n=Xr.get(e))==null?void 0:n.get(t)}const Nd=ra("__proto__,__v_isRef,__isVue"),Ru=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(aa)),Md=da(),Bd=da(!1,!0),Hd=da(!0),ol=Fd();function Fd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=re(this);for(let i=0,o=this.length;i{e[t]=function(...n){gs();const s=re(this)[t].apply(this,n);return ms(),s}}),e}function Ud(e){const t=re(this);return Ve(t,"has",e),t.hasOwnProperty(e)}function da(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?rp:ju:t?Lu:Iu).get(s))return s;const o=X(s);if(!e){if(o&&ae(ol,r))return Reflect.get(ol,r,i);if(r==="hasOwnProperty")return Ud}const a=Reflect.get(s,r,i);return(aa(r)?Ru.has(r):Nd(r))||(e||Ve(s,"get",r),t)?a:ke(a)?o&&ca(r)?a:a.value:ye(a)?e?Du(a):Jt(a):a}}const zd=xu(),Vd=xu(!0);function xu(e=!1){return function(n,s,r,i){let o=n[s];if(Hn(o)&&ke(o)&&!ke(r))return!1;if(!e&&(!Qr(r)&&!Hn(r)&&(o=re(o),r=re(r)),!X(n)&&ke(o)&&!ke(r)))return o.value=r,!0;const a=X(n)&&ca(s)?Number(s)e,mi=e=>Reflect.getPrototypeOf(e);function Tr(e,t,n=!1,s=!1){e=e.__v_raw;const r=re(e),i=re(t);n||(t!==i&&Ve(r,"get",t),Ve(r,"get",i));const{has:o}=mi(r),a=s?pa:n?ya:qs;if(o.call(r,t))return a(e.get(t));if(o.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function Er(e,t=!1){const n=this.__v_raw,s=re(n),r=re(e);return t||(e!==r&&Ve(s,"has",e),Ve(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Cr(e,t=!1){return e=e.__v_raw,!t&&Ve(re(e),"iterate",Nn),Reflect.get(e,"size",e)}function al(e){e=re(e);const t=re(this);return mi(t).has.call(t,e)||(t.add(e),qt(t,"add",e,e)),this}function ll(e,t){t=re(t);const n=re(this),{has:s,get:r}=mi(n);let i=s.call(n,e);i||(e=re(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?Ws(t,o)&&qt(n,"set",e,t):qt(n,"add",e,t),this}function cl(e){const t=re(this),{has:n,get:s}=mi(t);let r=n.call(t,e);r||(e=re(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&qt(t,"delete",e,void 0),i}function ul(){const e=re(this),t=e.size!==0,n=e.clear();return t&&qt(e,"clear",void 0,void 0),n}function Sr(e,t){return function(s,r){const i=this,o=i.__v_raw,a=re(o),l=t?pa:e?ya:qs;return!e&&Ve(a,"iterate",Nn),o.forEach((c,u)=>s.call(r,l(c),l(u),i))}}function Pr(e,t,n){return function(...s){const r=this.__v_raw,i=re(r),o=ns(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=r[e](...s),u=n?pa:t?ya:qs;return!t&&Ve(i,"iterate",l?yo:Nn),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function Yt(e){return function(...t){return e==="delete"?!1:this}}function Xd(){const e={get(i){return Tr(this,i)},get size(){return Cr(this)},has:Er,add:al,set:ll,delete:cl,clear:ul,forEach:Sr(!1,!1)},t={get(i){return Tr(this,i,!1,!0)},get size(){return Cr(this)},has:Er,add:al,set:ll,delete:cl,clear:ul,forEach:Sr(!1,!0)},n={get(i){return Tr(this,i,!0)},get size(){return Cr(this,!0)},has(i){return Er.call(this,i,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:Sr(!0,!1)},s={get(i){return Tr(this,i,!0,!0)},get size(){return Cr(this,!0)},has(i){return Er.call(this,i,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:Sr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Pr(i,!1,!1),n[i]=Pr(i,!0,!1),t[i]=Pr(i,!1,!0),s[i]=Pr(i,!0,!0)}),[e,n,t,s]}const[Qd,Yd,Zd,ep]=Xd();function ga(e,t){const n=t?e?ep:Zd:e?Yd:Qd;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ae(n,r)&&r in s?n:s,r,i)}const tp={get:ga(!1,!1)},np={get:ga(!1,!0)},sp={get:ga(!0,!1)},Iu=new WeakMap,Lu=new WeakMap,ju=new WeakMap,rp=new WeakMap;function ip(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function op(e){return e.__v_skip||!Object.isExtensible(e)?0:ip(Td(e))}function Jt(e){return Hn(e)?e:ma(e,!1,$u,tp,Iu)}function pr(e){return ma(e,!1,Gd,np,Lu)}function Du(e){return ma(e,!0,Jd,sp,ju)}function ma(e,t,n,s,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=op(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function rs(e){return Hn(e)?rs(e.__v_raw):!!(e&&e.__v_isReactive)}function Hn(e){return!!(e&&e.__v_isReadonly)}function Qr(e){return!!(e&&e.__v_isShallow)}function Nu(e){return rs(e)||Hn(e)}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function Mu(e){return Gr(e,"__v_skip",!0),e}const qs=e=>ye(e)?Jt(e):e,ya=e=>ye(e)?Du(e):e;function Bu(e){hn&&bt&&(e=re(e),Au(e.dep||(e.dep=fa())))}function Hu(e,t){e=re(e);const n=e.dep;n&&vo(n)}function ke(e){return!!(e&&e.__v_isRef===!0)}function Re(e){return Fu(e,!1)}function Js(e){return Fu(e,!0)}function Fu(e,t){return ke(e)?e:new ap(e,t)}class ap{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:re(t),this._value=n?t:qs(t)}get value(){return Bu(this),this._value}set value(t){const n=this.__v_isShallow||Qr(t)||Hn(t);t=n?t:re(t),Ws(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:qs(t),Hu(this))}}function ue(e){return ke(e)?e.value:e}function VE(e){return Z(e)?e():ue(e)}const lp={get:(e,t,n)=>ue(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ke(r)&&!ke(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Uu(e){return rs(e)?e:new Proxy(e,lp)}class cp{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Dd(re(this._object),this._key)}}class up{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function va(e,t,n){return ke(e)?e:Z(e)?new up(e):ye(e)&&arguments.length>1?fp(e,t,n):Re(e)}function fp(e,t,n){const s=e[t];return ke(s)?s:new cp(e,t,n)}class hp{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ha(t,()=>{this._dirty||(this._dirty=!0,Hu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=re(this);return Bu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function dp(e,t,n=!1){let s,r;const i=Z(e);return i?(s=e,r=St):(s=e.get,r=e.set),new hp(s,r,i||!r,n)}function dn(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){ys(i,t,n)}return r}function mt(e,t,n,s){if(Z(e)){const i=dn(e,t,n,s);return i&&la(i)&&i.catch(o=>{ys(o,t,n)}),i}const r=[];for(let i=0;i>>1;Xs(De[s])xt&&De.splice(t,1)}function Ku(e){X(e)?is.push(...e):(!zt||!zt.includes(e,e.allowRecurse?Rn+1:Rn))&&is.push(e),Vu()}function fl(e,t=Gs?xt+1:0){for(;tXs(n)-Xs(s)),Rn=0;Rne.id==null?1/0:e.id,yp=(e,t)=>{const n=Xs(e)-Xs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Wu(e){_o=!1,Gs=!0,De.sort(yp);const t=St;try{for(xt=0;xt_e(d)?d.trim():d)),f&&(r=n.map(po))}let a,l=s[a=Ur(t)]||s[a=Ur(Dt(t))];!l&&i&&(l=s[a=Ur(Un(t))]),l&&mt(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mt(c,e,6,r)}}function qu(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},a=!1;if(!Z(e)){const l=c=>{const u=qu(c,t,!0);u&&(a=!0,be(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&s.set(e,null),null):(X(i)?i.forEach(l=>o[l]=null):be(o,i),ye(e)&&s.set(e,o),o)}function vi(e,t){return!e||!hr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Un(t))||ae(e,t))}let Ae=null,_i=null;function Zr(e){const t=Ae;return Ae=e,_i=e&&e.type.__scopeId||null,t}function _p(e){_i=e}function wp(){_i=null}const bp=e=>yt;function yt(e,t=Ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Pl(-1);const i=Zr(t);let o;try{o=e(...r)}finally{Zr(i),s._d&&Pl(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Fi(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:h,setupState:d,ctx:g,inheritAttrs:w}=e;let E,y;const p=Zr(e);try{if(n.shapeFlag&4){const b=r||s;E=dt(u.call(b,b,f,i,d,h,g)),y=l}else{const b=t;E=dt(b.length>1?b(i,{attrs:l,slots:a,emit:c}):b(i,null)),y=t.props?l:Ep(l)}}catch(b){Ls.length=0,ys(b,e,1),E=de(Be)}let C=E;if(y&&w!==!1){const b=Object.keys(y),{shapeFlag:S}=C;b.length&&S&7&&(o&&b.some(ia)&&(y=Cp(y,o)),C=Gt(C,y))}return n.dirs&&(C=Gt(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),E=C,Zr(p),E}function Tp(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||hr(n))&&((t||(t={}))[n]=e[n]);return t},Cp=(e,t)=>{const n={};for(const s in e)(!ia(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Sp(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?hl(s,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,Pp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,a,l,c){e==null?kp(t,n,s,r,i,o,a,l,c):Op(e,t,n,s,r,o,a,l,c)},hydrate:Ap,create:Ta,normalize:Rp},ba=Pp;function Qs(e,t){const n=e.props&&e.props[t];Z(n)&&n()}function kp(e,t,n,s,r,i,o,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),h=e.suspense=Ta(e,r,s,t,f,n,i,o,a,l);c(null,h.pendingBranch=e.ssContent,f,null,s,h,i,o),h.deps>0?(Qs(e,"onPending"),Qs(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,i,o),os(h,e.ssFallback)):h.resolve(!1,!0)}function Op(e,t,n,s,r,i,o,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:g,pendingBranch:w,isInFallback:E,isHydrating:y}=f;if(w)f.pendingBranch=h,Tt(h,w)?(l(w,h,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0?f.resolve():E&&(l(g,d,n,s,r,null,i,o,a),os(f,d))):(f.pendingId++,y?(f.isHydrating=!1,f.activeBranch=w):c(w,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),E?(l(null,h,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0?f.resolve():(l(g,d,n,s,r,null,i,o,a),os(f,d))):g&&Tt(h,g)?(l(g,h,n,s,r,f,i,o,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0&&f.resolve()));else if(g&&Tt(h,g))l(g,h,n,s,r,f,i,o,a),os(f,h);else if(Qs(t,"onPending"),f.pendingBranch=h,f.pendingId++,l(null,h,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:p,pendingId:C}=f;p>0?setTimeout(()=>{f.pendingId===C&&f.fallback(d)},p):p===0&&f.fallback(d)}}function Ta(e,t,n,s,r,i,o,a,l,c,u=!1){const{p:f,m:h,um:d,n:g,o:{parentNode:w,remove:E}}=c;let y;const p=xp(e);p&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const C=e.props?Tu(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,x=!1){const{vnode:I,activeBranch:P,pendingBranch:F,pendingId:M,effects:D,parentComponent:B,container:V}=b;if(b.isHydrating)b.isHydrating=!1;else if(!S){const N=P&&F.transition&&F.transition.mode==="out-in";N&&(P.transition.afterLeave=()=>{M===b.pendingId&&h(F,V,Q,0)});let{anchor:Q}=b;P&&(Q=g(P),d(P,B,b,!0)),N||h(F,V,Q,0)}os(b,F),b.pendingBranch=null,b.isInFallback=!1;let _=b.parent,R=!1;for(;_;){if(_.pendingBranch){_.effects.push(...D),R=!0;break}_=_.parent}R||Ku(D),b.effects=[],p&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Qs(I,"onResolve")},fallback(S){if(!b.pendingBranch)return;const{vnode:x,activeBranch:I,parentComponent:P,container:F,isSVG:M}=b;Qs(x,"onFallback");const D=g(I),B=()=>{b.isInFallback&&(f(null,S,F,D,P,null,M,a,l),os(b,S))},V=S.transition&&S.transition.mode==="out-in";V&&(I.transition.afterLeave=B),b.isInFallback=!0,d(I,P,null,!0),V||B()},move(S,x,I){b.activeBranch&&h(b.activeBranch,S,x,I),b.container=S},next(){return b.activeBranch&&g(b.activeBranch)},registerDep(S,x){const I=!!b.pendingBranch;I&&b.deps++;const P=S.vnode.el;S.asyncDep.catch(F=>{ys(F,S,0)}).then(F=>{if(S.isUnmounted||b.isUnmounted||b.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;Po(S,F,!1),P&&(M.el=P);const D=!P&&S.subTree.el;x(S,M,w(P||S.subTree.el),P?null:g(S.subTree),b,o,l),D&&E(D),wa(S,M.el),I&&--b.deps===0&&b.resolve()})},unmount(S,x){b.isUnmounted=!0,b.activeBranch&&d(b.activeBranch,n,S,x),b.pendingBranch&&d(b.pendingBranch,n,S,x)}};return b}function Ap(e,t,n,s,r,i,o,a,l){const c=t.suspense=Ta(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function Rp(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=dl(s?n.default:n),e.ssFallback=s?dl(n.fallback):de(Be)}function dl(e){let t;if(Z(e)){const n=us&&e._c;n&&(e._d=!1,te()),e=e(),n&&(e._d=!0,t=pt,vf())}return X(e)&&(e=Tp(e)),e=dt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Gu(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):Ku(e)}function os(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,wa(s,r))}function xp(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function $p(e,t){return Ea(e,null,t)}const kr={};function pn(e,t,n){return Ea(e,t,n)}function Ea(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=ve){var a;const l=Id()===((a=Ce)==null?void 0:a.scope)?Ce:null;let c,u=!1,f=!1;if(ke(e)?(c=()=>e.value,u=Qr(e)):rs(e)?(c=()=>e,s=!0):X(e)?(f=!0,u=e.some(b=>rs(b)||Qr(b)),c=()=>e.map(b=>{if(ke(b))return b.value;if(rs(b))return Ln(b);if(Z(b))return dn(b,l,2)})):Z(e)?t?c=()=>dn(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),mt(e,l,3,[d])}:c=St,t&&s){const b=c;c=()=>Ln(b())}let h,d=b=>{h=p.onStop=()=>{dn(b,l,4)}},g;if(hs)if(d=St,t?n&&mt(t,l,3,[c(),f?[]:void 0,d]):c(),r==="sync"){const b=Tg();g=b.__watcherHandles||(b.__watcherHandles=[])}else return St;let w=f?new Array(e.length).fill(kr):kr;const E=()=>{if(p.active)if(t){const b=p.run();(s||u||(f?b.some((S,x)=>Ws(S,w[x])):Ws(b,w)))&&(h&&h(),mt(t,l,3,[b,w===kr?void 0:f&&w[0]===kr?[]:w,d]),w=b)}else p.run()};E.allowRecurse=!!t;let y;r==="sync"?y=E:r==="post"?y=()=>xe(E,l&&l.suspense):(E.pre=!0,l&&(E.id=l.uid),y=()=>yi(E));const p=new ha(c,y);t?n?E():w=p.run():r==="post"?xe(p.run.bind(p),l&&l.suspense):p.run();const C=()=>{p.stop(),l&&l.scope&&oa(l.scope.effects,p)};return g&&g.push(C),C}function Ip(e,t,n){const s=this.proxy,r=_e(e)?e.includes(".")?Xu(s,e):()=>s[e]:e.bind(s,s);let i;Z(t)?i=t:(i=t.handler,n=t);const o=Ce;wn(this);const a=Ea(r,i.bind(s),n);return o?wn(o):gn(),a}function Xu(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ln(n,t)});else if(bu(e))for(const n in e)Ln(e[n],t);return e}function KE(e,t){const n=Ae;if(n===null)return e;const s=Ci(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),bi(()=>{e.isUnmounting=!0}),e}const ft=[Function,Array],Yu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ft,onEnter:ft,onAfterEnter:ft,onEnterCancelled:ft,onBeforeLeave:ft,onLeave:ft,onAfterLeave:ft,onLeaveCancelled:ft,onBeforeAppear:ft,onAppear:ft,onAfterAppear:ft,onAppearCancelled:ft},Lp={name:"BaseTransition",props:Yu,setup(e,{slots:t}){const n=Qt(),s=Qu();let r;return()=>{const i=t.default&&Ca(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const w of i)if(w.type!==Be){o=w;break}}const a=re(e),{mode:l}=a;if(s.isLeaving)return Ui(o);const c=pl(o);if(!c)return Ui(o);const u=Ys(c,a,s,n);ls(c,u);const f=n.subTree,h=f&&pl(f);let d=!1;const{getTransitionKey:g}=c.type;if(g){const w=g();r===void 0?r=w:w!==r&&(r=w,d=!0)}if(h&&h.type!==Be&&(!Tt(c,h)||d)){const w=Ys(h,a,s,n);if(ls(h,w),l==="out-in")return s.isLeaving=!0,w.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Ui(o);l==="in-out"&&c.type!==Be&&(w.delayLeave=(E,y,p)=>{const C=Zu(s,h);C[String(h.key)]=h,E._leaveCb=()=>{y(),E._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=p})}return o}}},jp=Lp;function Zu(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ys(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:w,onAppear:E,onAfterAppear:y,onAppearCancelled:p}=t,C=String(e.key),b=Zu(n,e),S=(P,F)=>{P&&mt(P,s,9,F)},x=(P,F)=>{const M=F[1];S(P,F),X(P)?P.every(D=>D.length<=1)&&M():P.length<=1&&M()},I={mode:i,persisted:o,beforeEnter(P){let F=a;if(!n.isMounted)if(r)F=w||a;else return;P._leaveCb&&P._leaveCb(!0);const M=b[C];M&&Tt(e,M)&&M.el._leaveCb&&M.el._leaveCb(),S(F,[P])},enter(P){let F=l,M=c,D=u;if(!n.isMounted)if(r)F=E||l,M=y||c,D=p||u;else return;let B=!1;const V=P._enterCb=_=>{B||(B=!0,_?S(D,[P]):S(M,[P]),I.delayedLeave&&I.delayedLeave(),P._enterCb=void 0)};F?x(F,[P,V]):V()},leave(P,F){const M=String(e.key);if(P._enterCb&&P._enterCb(!0),n.isUnmounting)return F();S(f,[P]);let D=!1;const B=P._leaveCb=V=>{D||(D=!0,F(),V?S(g,[P]):S(d,[P]),P._leaveCb=void 0,b[M]===e&&delete b[M])};b[M]=e,h?x(h,[P,B]):B()},clone(P){return Ys(P,t,n,s)}};return I}function Ui(e){if(gr(e))return e=Gt(e),e.children=null,e}function pl(e){return gr(e)?e.children?e.children[0]:void 0:e}function ls(e,t){e.shapeFlag&6&&e.component?ls(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ca(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;ibe({name:e.name},t,{setup:e}))():e}const Mn=e=>!!e.type.__asyncLoader;function wo(e){Z(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,h()),h=()=>{let d;return l||(d=l=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((w,E)=>{a(g,()=>w(f()),()=>E(g),u+1)});throw g}).then(g=>d!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Se({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const d=Ce;if(c)return()=>zi(c,d);const g=p=>{l=null,ys(p,d,13,!s)};if(o&&d.suspense||hs)return h().then(p=>()=>zi(p,d)).catch(p=>(g(p),()=>s?de(s,{error:p}):null));const w=Re(!1),E=Re(),y=Re(!!r);return r&&setTimeout(()=>{y.value=!1},r),i!=null&&setTimeout(()=>{if(!w.value&&!E.value){const p=new Error(`Async component timed out after ${i}ms.`);g(p),E.value=p}},i),h().then(()=>{w.value=!0,d.parent&&gr(d.parent.vnode)&&yi(d.parent.update)}).catch(p=>{g(p),E.value=p}),()=>{if(w.value&&c)return zi(c,d);if(E.value&&s)return de(s,{error:E.value});if(n&&!y.value)return de(n)}}})}function zi(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=de(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const gr=e=>e.type.__isKeepAlive,Dp={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Qt(),s=n.ctx;if(!s.renderer)return()=>{const p=t.default&&t.default();return p&&p.length===1?p[0]:p};const r=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=s,h=f("div");s.activate=(p,C,b,S,x)=>{const I=p.component;c(p,C,b,0,a),l(I.vnode,p,C,b,I,a,S,p.slotScopeIds,x),xe(()=>{I.isDeactivated=!1,I.a&&ss(I.a);const P=p.props&&p.props.onVnodeMounted;P&&Fe(P,I.parent,p)},a)},s.deactivate=p=>{const C=p.component;c(p,h,null,1,a),xe(()=>{C.da&&ss(C.da);const b=p.props&&p.props.onVnodeUnmounted;b&&Fe(b,C.parent,p),C.isDeactivated=!0},a)};function d(p){Vi(p),u(p,n,a,!0)}function g(p){r.forEach((C,b)=>{const S=ko(C.type);S&&(!p||!p(S))&&w(b)})}function w(p){const C=r.get(p);!o||!Tt(C,o)?d(C):o&&Vi(o),r.delete(p),i.delete(p)}pn(()=>[e.include,e.exclude],([p,C])=>{p&&g(b=>Ps(p,b)),C&&g(b=>!Ps(C,b))},{flush:"post",deep:!0});let E=null;const y=()=>{E!=null&&r.set(E,Ki(n.subTree))};return Sa(y),Pa(y),bi(()=>{r.forEach(p=>{const{subTree:C,suspense:b}=n,S=Ki(C);if(p.type===S.type&&p.key===S.key){Vi(S);const x=S.component.da;x&&xe(x,b);return}d(p)})}),()=>{if(E=null,!t.default)return null;const p=t.default(),C=p[0];if(p.length>1)return o=null,p;if(!fs(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let b=Ki(C);const S=b.type,x=ko(Mn(b)?b.type.__asyncResolved||{}:S),{include:I,exclude:P,max:F}=e;if(I&&(!x||!Ps(I,x))||P&&x&&Ps(P,x))return o=b,C;const M=b.key==null?S:b.key,D=r.get(M);return b.el&&(b=Gt(b),C.shapeFlag&128&&(C.ssContent=b)),E=M,D?(b.el=D.el,b.component=D.component,b.transition&&ls(b,b.transition),b.shapeFlag|=512,i.delete(M),i.add(M)):(i.add(M),F&&i.size>parseInt(F,10)&&w(i.values().next().value)),b.shapeFlag|=256,o=b,Ju(C.type)?C:b}}},Np=Dp;function Ps(e,t){return X(e)?e.some(n=>Ps(n,t)):_e(e)?e.split(",").includes(t):bd(e)?e.test(t):!1}function ef(e,t){nf(e,"a",t)}function tf(e,t){nf(e,"da",t)}function nf(e,t,n=Ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(wi(t,s,n),n){let r=n.parent;for(;r&&r.parent;)gr(r.parent.vnode)&&Mp(s,t,n,r),r=r.parent}}function Mp(e,t,n,s){const r=wi(t,e,s,!0);Zs(()=>{oa(s[t],r)},n)}function Vi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ki(e){return e.shapeFlag&128?e.ssContent:e}function wi(e,t,n=Ce,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;gs(),wn(n);const a=mt(t,n,e,o);return gn(),ms(),a});return s?r.unshift(i):r.push(i),i}}const Xt=e=>(t,n=Ce)=>(!hs||e==="sp")&&wi(e,(...s)=>t(...s),n),sf=Xt("bm"),Sa=Xt("m"),Bp=Xt("bu"),Pa=Xt("u"),bi=Xt("bum"),Zs=Xt("um"),Hp=Xt("sp"),Fp=Xt("rtg"),Up=Xt("rtc");function rf(e,t=Ce){wi("ec",e,t)}const ka="components",zp="directives";function $t(e,t){return Oa(ka,e,!0,t)||e}const of=Symbol.for("v-ndc");function Ti(e){return _e(e)?Oa(ka,e,!1)||e:e||of}function WE(e){return Oa(zp,e)}function Oa(e,t,n=!0,s=!1){const r=Ae||Ce;if(r){const i=r.type;if(e===ka){const a=ko(i,!1);if(a&&(a===t||a===Dt(t)||a===gi(Dt(t))))return i}const o=gl(r[e]||i[e],t)||gl(r.appContext[e],t);return!o&&s?i:o}}function gl(e,t){return e&&(e[t]||e[Dt(t)]||e[gi(Dt(t))])}function ml(e,t,n,s){let r;const i=n&&n[s];if(X(e)||_e(e)){r=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;afs(t)?!(t.type===Be||t.type===Pe&&!af(t.children)):!0)?e:null}function Vp(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Ur(s)]=e[s];return n}const bo=e=>e?bf(e)?Ci(e)||e.proxy:bo(e.parent):null,xs=be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bo(e.parent),$root:e=>bo(e.root),$emit:e=>e.emit,$options:e=>Aa(e),$forceUpdate:e=>e.f||(e.f=()=>yi(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>Ip.bind(e)}),Wi=(e,t)=>e!==ve&&!e.__isScriptSetup&&ae(e,t),Kp={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Wi(s,t))return o[t]=1,s[t];if(r!==ve&&ae(r,t))return o[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return o[t]=3,i[t];if(n!==ve&&ae(n,t))return o[t]=4,n[t];To&&(o[t]=0)}}const u=xs[t];let f,h;if(u)return t==="$attrs"&&Ve(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ve&&ae(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,ae(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Wi(r,t)?(r[t]=n,!0):s!==ve&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||e!==ve&&ae(e,o)||Wi(t,o)||(a=i[0])&&ae(a,o)||ae(s,o)||ae(xs,o)||ae(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yl(e){return X(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Wp(e){const t=Qt();let n=e();return gn(),la(n)&&(n=n.catch(s=>{throw wn(t),s})),[n,()=>wn(t)]}let To=!0;function qp(e){const t=Aa(e),n=e.proxy,s=e.ctx;To=!1,t.beforeCreate&&vl(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:g,activated:w,deactivated:E,beforeDestroy:y,beforeUnmount:p,destroyed:C,unmounted:b,render:S,renderTracked:x,renderTriggered:I,errorCaptured:P,serverPrefetch:F,expose:M,inheritAttrs:D,components:B,directives:V,filters:_}=t;if(c&&Jp(c,s,null),o)for(const Q in o){const Y=o[Q];Z(Y)&&(s[Q]=Y.bind(n))}if(r){const Q=r.call(n,n);ye(Q)&&(e.data=Jt(Q))}if(To=!0,i)for(const Q in i){const Y=i[Q],ne=Z(Y)?Y.bind(n,n):Z(Y.get)?Y.get.bind(n,n):St,Ke=!Z(Y)&&Z(Y.set)?Y.set.bind(n):St,Ie=at({get:ne,set:Ke});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Oe=>Ie.value=Oe})}if(a)for(const Q in a)lf(a[Q],s,n,Q);if(l){const Q=Z(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(Y=>{Bn(Y,Q[Y])})}u&&vl(u,e,"c");function N(Q,Y){X(Y)?Y.forEach(ne=>Q(ne.bind(n))):Y&&Q(Y.bind(n))}if(N(sf,f),N(Sa,h),N(Bp,d),N(Pa,g),N(ef,w),N(tf,E),N(rf,P),N(Up,x),N(Fp,I),N(bi,p),N(Zs,b),N(Hp,F),X(M))if(M.length){const Q=e.exposed||(e.exposed={});M.forEach(Y=>{Object.defineProperty(Q,Y,{get:()=>n[Y],set:ne=>n[Y]=ne})})}else e.exposed||(e.exposed={});S&&e.render===St&&(e.render=S),D!=null&&(e.inheritAttrs=D),B&&(e.components=B),V&&(e.directives=V)}function Jp(e,t,n=St){X(e)&&(e=Eo(e));for(const s in e){const r=e[s];let i;ye(r)?"default"in r?i=Ne(r.from||s,r.default,!0):i=Ne(r.from||s):i=Ne(r),ke(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function vl(e,t,n){mt(X(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function lf(e,t,n,s){const r=s.includes(".")?Xu(n,s):()=>n[s];if(_e(e)){const i=t[e];Z(i)&&pn(r,i)}else if(Z(e))pn(r,e.bind(n));else if(ye(e))if(X(e))e.forEach(i=>lf(i,t,n,s));else{const i=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(i)&&pn(r,i,e)}}function Aa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>ei(l,c,o,!0)),ei(l,t,o)),ye(t)&&i.set(t,l),l}function ei(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&ei(e,i,n,!0),r&&r.forEach(o=>ei(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Gp[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Gp={data:_l,props:wl,emits:wl,methods:ks,computed:ks,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ks,directives:ks,watch:Qp,provide:_l,inject:Xp};function _l(e,t){return t?e?function(){return be(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Xp(e,t){return ks(Eo(e),Eo(t))}function Eo(e){if(X(e)){const t={};for(let n=0;n1)return n&&Z(t)?t.call(s&&s.proxy):t}}function uf(){return!!(Ce||Ae||tr)}function eg(e,t,n,s=!1){const r={},i={};Gr(i,Ei,1),e.propsDefaults=Object.create(null),ff(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:pr(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function tg(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,a=re(r),[l]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,d]=hf(f,t,!0);be(o,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&s.set(e,ts),ts;if(X(i))for(let u=0;u-1,d[1]=w<0||g-1||ae(d,"default"))&&a.push(f)}}}const c=[o,a];return ye(e)&&s.set(e,c),c}function bl(e){return e[0]!=="$"}function Tl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function El(e,t){return Tl(e)===Tl(t)}function Cl(e,t){return X(t)?t.findIndex(n=>El(n,e)):Z(t)&&El(t,e)?0:-1}const df=e=>e[0]==="_"||e==="$stable",Ra=e=>X(e)?e.map(dt):[dt(e)],ng=(e,t,n)=>{if(t._n)return t;const s=yt((...r)=>Ra(t(...r)),n);return s._c=!1,s},pf=(e,t,n)=>{const s=e._ctx;for(const r in e){if(df(r))continue;const i=e[r];if(Z(i))t[r]=ng(r,i,s);else if(i!=null){const o=Ra(i);t[r]=()=>o}}},gf=(e,t)=>{const n=Ra(t);e.slots.default=()=>n},sg=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=re(t),Gr(t,"_",n)):pf(t,e.slots={})}else e.slots={},t&&gf(e,t);Gr(e.slots,Ei,1)},rg=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=ve;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(be(r,t),!n&&a===1&&delete r._):(i=!t.$stable,pf(t,r)),o=t}else t&&(gf(e,t),o={default:1});if(i)for(const a in r)!df(a)&&!(a in o)&&delete r[a]};function ti(e,t,n,s,r=!1){if(X(e)){e.forEach((h,d)=>ti(h,t&&(X(t)?t[d]:t),n,s,r));return}if(Mn(s)&&!r)return;const i=s.shapeFlag&4?Ci(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===ve?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(_e(c)?(u[c]=null,ae(f,c)&&(f[c]=null)):ke(c)&&(c.value=null)),Z(l))dn(l,a,12,[o,u]);else{const h=_e(l),d=ke(l);if(h||d){const g=()=>{if(e.f){const w=h?ae(f,l)?f[l]:u[l]:l.value;r?X(w)&&oa(w,i):X(w)?w.includes(i)||w.push(i):h?(u[l]=[i],ae(f,l)&&(f[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else h?(u[l]=o,ae(f,l)&&(f[l]=o)):d&&(l.value=o,e.k&&(u[e.k]=o))};o?(g.id=-1,xe(g,n)):g()}}}let Zt=!1;const Or=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Ar=e=>e.nodeType===8;function ig(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(y,p)=>{if(!p.hasChildNodes()){n(null,y,p),Yr(),p._vnode=y;return}Zt=!1,f(p.firstChild,y,null,null,null),Yr(),p._vnode=y,Zt&&console.error("Hydration completed but contains mismatches.")},f=(y,p,C,b,S,x=!1)=>{const I=Ar(y)&&y.data==="[",P=()=>w(y,p,C,b,S,I),{type:F,ref:M,shapeFlag:D,patchFlag:B}=p;let V=y.nodeType;p.el=y,B===-2&&(x=!1,p.dynamicChildren=null);let _=null;switch(F){case cs:V!==3?p.children===""?(l(p.el=r(""),o(y),y),_=y):_=P():(y.data!==p.children&&(Zt=!0,y.data=p.children),_=i(y));break;case Be:V!==8||I?_=P():_=i(y);break;case Is:if(I&&(y=i(y),V=y.nodeType),V===1||V===3){_=y;const R=!p.children.length;for(let N=0;N{x=x||!!p.dynamicChildren;const{type:I,props:P,patchFlag:F,shapeFlag:M,dirs:D}=p,B=I==="input"&&D||I==="option";if(B||F!==-1){if(D&&Rt(p,null,C,"created"),P)if(B||!x||F&48)for(const _ in P)(B&&_.endsWith("value")||hr(_)&&!Rs(_))&&s(y,_,null,P[_],!1,void 0,C);else P.onClick&&s(y,"onClick",null,P.onClick,!1,void 0,C);let V;if((V=P&&P.onVnodeBeforeMount)&&Fe(V,C,p),D&&Rt(p,null,C,"beforeMount"),((V=P&&P.onVnodeMounted)||D)&&Gu(()=>{V&&Fe(V,C,p),D&&Rt(p,null,C,"mounted")},b),M&16&&!(P&&(P.innerHTML||P.textContent))){let _=d(y.firstChild,p,y,C,b,S,x);for(;_;){Zt=!0;const R=_;_=_.nextSibling,a(R)}}else M&8&&y.textContent!==p.children&&(Zt=!0,y.textContent=p.children)}return y.nextSibling},d=(y,p,C,b,S,x,I)=>{I=I||!!p.dynamicChildren;const P=p.children,F=P.length;for(let M=0;M{const{slotScopeIds:I}=p;I&&(S=S?S.concat(I):I);const P=o(y),F=d(i(y),p,P,C,b,S,x);return F&&Ar(F)&&F.data==="]"?i(p.anchor=F):(Zt=!0,l(p.anchor=c("]"),P,F),F)},w=(y,p,C,b,S,x)=>{if(Zt=!0,p.el=null,x){const F=E(y);for(;;){const M=i(y);if(M&&M!==F)a(M);else break}}const I=i(y),P=o(y);return a(y),n(null,p,P,I,C,b,Or(P),S),I},E=y=>{let p=0;for(;y;)if(y=i(y),y&&Ar(y)&&(y.data==="["&&p++,y.data==="]")){if(p===0)return i(y);p--}return y};return[u,f]}const xe=Gu;function og(e){return mf(e)}function ag(e){return mf(e,ig)}function mf(e,t){const n=go();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=St,insertStaticContent:g}=e,w=(m,v,T,k=null,A=null,$=null,z=!1,j=null,H=!!v.dynamicChildren)=>{if(m===v)return;m&&!Tt(m,v)&&(k=O(m),Oe(m,A,$,!0),m=null),v.patchFlag===-2&&(H=!1,v.dynamicChildren=null);const{type:L,ref:J,shapeFlag:W}=v;switch(L){case cs:E(m,v,T,k);break;case Be:y(m,v,T,k);break;case Is:m==null&&p(v,T,k,z);break;case Pe:B(m,v,T,k,A,$,z,j,H);break;default:W&1?S(m,v,T,k,A,$,z,j,H):W&6?V(m,v,T,k,A,$,z,j,H):(W&64||W&128)&&L.process(m,v,T,k,A,$,z,j,H,U)}J!=null&&A&&ti(J,m&&m.ref,$,v||m,!v)},E=(m,v,T,k)=>{if(m==null)s(v.el=a(v.children),T,k);else{const A=v.el=m.el;v.children!==m.children&&c(A,v.children)}},y=(m,v,T,k)=>{m==null?s(v.el=l(v.children||""),T,k):v.el=m.el},p=(m,v,T,k)=>{[m.el,m.anchor]=g(m.children,v,T,k,m.el,m.anchor)},C=({el:m,anchor:v},T,k)=>{let A;for(;m&&m!==v;)A=h(m),s(m,T,k),m=A;s(v,T,k)},b=({el:m,anchor:v})=>{let T;for(;m&&m!==v;)T=h(m),r(m),m=T;r(v)},S=(m,v,T,k,A,$,z,j,H)=>{z=z||v.type==="svg",m==null?x(v,T,k,A,$,z,j,H):F(m,v,A,$,z,j,H)},x=(m,v,T,k,A,$,z,j)=>{let H,L;const{type:J,props:W,shapeFlag:G,transition:ee,dirs:se}=m;if(H=m.el=o(m.type,$,W&&W.is,W),G&8?u(H,m.children):G&16&&P(m.children,H,null,k,A,$&&J!=="foreignObject",z,j),se&&Rt(m,null,k,"created"),I(H,m,m.scopeId,z,k),W){for(const he in W)he!=="value"&&!Rs(he)&&i(H,he,null,W[he],$,m.children,k,A,Le);"value"in W&&i(H,"value",null,W.value),(L=W.onVnodeBeforeMount)&&Fe(L,k,m)}se&&Rt(m,null,k,"beforeMount");const pe=(!A||A&&!A.pendingBranch)&&ee&&!ee.persisted;pe&&ee.beforeEnter(H),s(H,v,T),((L=W&&W.onVnodeMounted)||pe||se)&&xe(()=>{L&&Fe(L,k,m),pe&&ee.enter(H),se&&Rt(m,null,k,"mounted")},A)},I=(m,v,T,k,A)=>{if(T&&d(m,T),k)for(let $=0;${for(let L=H;L{const j=v.el=m.el;let{patchFlag:H,dynamicChildren:L,dirs:J}=v;H|=m.patchFlag&16;const W=m.props||ve,G=v.props||ve;let ee;T&&Tn(T,!1),(ee=G.onVnodeBeforeUpdate)&&Fe(ee,T,v,m),J&&Rt(v,m,T,"beforeUpdate"),T&&Tn(T,!0);const se=A&&v.type!=="foreignObject";if(L?M(m.dynamicChildren,L,j,T,k,se,$):z||Y(m,v,j,null,T,k,se,$,!1),H>0){if(H&16)D(j,v,W,G,T,k,A);else if(H&2&&W.class!==G.class&&i(j,"class",null,G.class,A),H&4&&i(j,"style",W.style,G.style,A),H&8){const pe=v.dynamicProps;for(let he=0;he{ee&&Fe(ee,T,v,m),J&&Rt(v,m,T,"updated")},k)},M=(m,v,T,k,A,$,z)=>{for(let j=0;j{if(T!==k){if(T!==ve)for(const j in T)!Rs(j)&&!(j in k)&&i(m,j,T[j],null,z,v.children,A,$,Le);for(const j in k){if(Rs(j))continue;const H=k[j],L=T[j];H!==L&&j!=="value"&&i(m,j,L,H,z,v.children,A,$,Le)}"value"in k&&i(m,"value",T.value,k.value)}},B=(m,v,T,k,A,$,z,j,H)=>{const L=v.el=m?m.el:a(""),J=v.anchor=m?m.anchor:a("");let{patchFlag:W,dynamicChildren:G,slotScopeIds:ee}=v;ee&&(j=j?j.concat(ee):ee),m==null?(s(L,T,k),s(J,T,k),P(v.children,T,J,A,$,z,j,H)):W>0&&W&64&&G&&m.dynamicChildren?(M(m.dynamicChildren,G,T,A,$,z,j),(v.key!=null||A&&v===A.subTree)&&xa(m,v,!0)):Y(m,v,T,J,A,$,z,j,H)},V=(m,v,T,k,A,$,z,j,H)=>{v.slotScopeIds=j,m==null?v.shapeFlag&512?A.ctx.activate(v,T,k,z,H):_(v,T,k,A,$,z,H):R(m,v,H)},_=(m,v,T,k,A,$,z)=>{const j=m.component=gg(m,k,A);if(gr(m)&&(j.ctx.renderer=U),mg(j),j.asyncDep){if(A&&A.registerDep(j,N),!m.el){const H=j.subTree=de(Be);y(null,H,v,T)}return}N(j,m,v,T,A,$,z)},R=(m,v,T)=>{const k=v.component=m.component;if(Sp(m,v,T))if(k.asyncDep&&!k.asyncResolved){Q(k,v,T);return}else k.next=v,mp(k.update),k.update();else v.el=m.el,k.vnode=v},N=(m,v,T,k,A,$,z)=>{const j=()=>{if(m.isMounted){let{next:J,bu:W,u:G,parent:ee,vnode:se}=m,pe=J,he;Tn(m,!1),J?(J.el=se.el,Q(m,J,z)):J=se,W&&ss(W),(he=J.props&&J.props.onVnodeBeforeUpdate)&&Fe(he,ee,J,se),Tn(m,!0);const Te=Fi(m),vt=m.subTree;m.subTree=Te,w(vt,Te,f(vt.el),O(vt),m,A,$),J.el=Te.el,pe===null&&wa(m,Te.el),G&&xe(G,A),(he=J.props&&J.props.onVnodeUpdated)&&xe(()=>Fe(he,ee,J,se),A)}else{let J;const{el:W,props:G}=v,{bm:ee,m:se,parent:pe}=m,he=Mn(v);if(Tn(m,!1),ee&&ss(ee),!he&&(J=G&&G.onVnodeBeforeMount)&&Fe(J,pe,v),Tn(m,!0),W&&ce){const Te=()=>{m.subTree=Fi(m),ce(W,m.subTree,m,A,null)};he?v.type.__asyncLoader().then(()=>!m.isUnmounted&&Te()):Te()}else{const Te=m.subTree=Fi(m);w(null,Te,T,k,m,A,$),v.el=Te.el}if(se&&xe(se,A),!he&&(J=G&&G.onVnodeMounted)){const Te=v;xe(()=>Fe(J,pe,Te),A)}(v.shapeFlag&256||pe&&Mn(pe.vnode)&&pe.vnode.shapeFlag&256)&&m.a&&xe(m.a,A),m.isMounted=!0,v=T=k=null}},H=m.effect=new ha(j,()=>yi(L),m.scope),L=m.update=()=>H.run();L.id=m.uid,Tn(m,!0),L()},Q=(m,v,T)=>{v.component=m;const k=m.vnode.props;m.vnode=v,m.next=null,tg(m,v.props,k,T),rg(m,v.children,T),gs(),fl(),ms()},Y=(m,v,T,k,A,$,z,j,H=!1)=>{const L=m&&m.children,J=m?m.shapeFlag:0,W=v.children,{patchFlag:G,shapeFlag:ee}=v;if(G>0){if(G&128){Ke(L,W,T,k,A,$,z,j,H);return}else if(G&256){ne(L,W,T,k,A,$,z,j,H);return}}ee&8?(J&16&&Le(L,A,$),W!==L&&u(T,W)):J&16?ee&16?Ke(L,W,T,k,A,$,z,j,H):Le(L,A,$,!0):(J&8&&u(T,""),ee&16&&P(W,T,k,A,$,z,j,H))},ne=(m,v,T,k,A,$,z,j,H)=>{m=m||ts,v=v||ts;const L=m.length,J=v.length,W=Math.min(L,J);let G;for(G=0;GJ?Le(m,A,$,!0,!1,W):P(v,T,k,A,$,z,j,H,W)},Ke=(m,v,T,k,A,$,z,j,H)=>{let L=0;const J=v.length;let W=m.length-1,G=J-1;for(;L<=W&&L<=G;){const ee=m[L],se=v[L]=H?ln(v[L]):dt(v[L]);if(Tt(ee,se))w(ee,se,T,null,A,$,z,j,H);else break;L++}for(;L<=W&&L<=G;){const ee=m[W],se=v[G]=H?ln(v[G]):dt(v[G]);if(Tt(ee,se))w(ee,se,T,null,A,$,z,j,H);else break;W--,G--}if(L>W){if(L<=G){const ee=G+1,se=eeG)for(;L<=W;)Oe(m[L],A,$,!0),L++;else{const ee=L,se=L,pe=new Map;for(L=se;L<=G;L++){const We=v[L]=H?ln(v[L]):dt(v[L]);We.key!=null&&pe.set(We.key,L)}let he,Te=0;const vt=G-se+1;let qn=!1,el=0;const bs=new Array(vt);for(L=0;L=vt){Oe(We,A,$,!0);continue}let Ot;if(We.key!=null)Ot=pe.get(We.key);else for(he=se;he<=G;he++)if(bs[he-se]===0&&Tt(We,v[he])){Ot=he;break}Ot===void 0?Oe(We,A,$,!0):(bs[Ot-se]=L+1,Ot>=el?el=Ot:qn=!0,w(We,v[Ot],T,null,A,$,z,j,H),Te++)}const tl=qn?lg(bs):ts;for(he=tl.length-1,L=vt-1;L>=0;L--){const We=se+L,Ot=v[We],nl=We+1{const{el:$,type:z,transition:j,children:H,shapeFlag:L}=m;if(L&6){Ie(m.component.subTree,v,T,k);return}if(L&128){m.suspense.move(v,T,k);return}if(L&64){z.move(m,v,T,U);return}if(z===Pe){s($,v,T);for(let W=0;Wj.enter($),A);else{const{leave:W,delayLeave:G,afterLeave:ee}=j,se=()=>s($,v,T),pe=()=>{W($,()=>{se(),ee&&ee()})};G?G($,se,pe):pe()}else s($,v,T)},Oe=(m,v,T,k=!1,A=!1)=>{const{type:$,props:z,ref:j,children:H,dynamicChildren:L,shapeFlag:J,patchFlag:W,dirs:G}=m;if(j!=null&&ti(j,null,T,m,!0),J&256){v.ctx.deactivate(m);return}const ee=J&1&&G,se=!Mn(m);let pe;if(se&&(pe=z&&z.onVnodeBeforeUnmount)&&Fe(pe,v,m),J&6)br(m.component,T,k);else{if(J&128){m.suspense.unmount(T,k);return}ee&&Rt(m,null,v,"beforeUnmount"),J&64?m.type.remove(m,v,T,A,U,k):L&&($!==Pe||W>0&&W&64)?Le(L,v,T,!1,!0):($===Pe&&W&384||!A&&J&16)&&Le(H,v,T),k&&Kn(m)}(se&&(pe=z&&z.onVnodeUnmounted)||ee)&&xe(()=>{pe&&Fe(pe,v,m),ee&&Rt(m,null,v,"unmounted")},T)},Kn=m=>{const{type:v,el:T,anchor:k,transition:A}=m;if(v===Pe){Wn(T,k);return}if(v===Is){b(m);return}const $=()=>{r(T),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m.shapeFlag&1&&A&&!A.persisted){const{leave:z,delayLeave:j}=A,H=()=>z(T,$);j?j(m.el,$,H):H()}else $()},Wn=(m,v)=>{let T;for(;m!==v;)T=h(m),r(m),m=T;r(v)},br=(m,v,T)=>{const{bum:k,scope:A,update:$,subTree:z,um:j}=m;k&&ss(k),A.stop(),$&&($.active=!1,Oe(z,m,v,T)),j&&xe(j,v),xe(()=>{m.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},Le=(m,v,T,k=!1,A=!1,$=0)=>{for(let z=$;zm.shapeFlag&6?O(m.component.subTree):m.shapeFlag&128?m.suspense.next():h(m.anchor||m.el),K=(m,v,T)=>{m==null?v._vnode&&Oe(v._vnode,null,null,!0):w(v._vnode||null,m,v,null,null,null,T),fl(),Yr(),v._vnode=m},U={p:w,um:Oe,m:Ie,r:Kn,mt:_,mc:P,pc:Y,pbc:M,n:O,o:e};let q,ce;return t&&([q,ce]=t(U)),{render:K,hydrate:q,createApp:Zp(K,q)}}function Tn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xa(e,t,n=!1){const s=e.children,r=t.children;if(X(s)&&X(r))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const cg=e=>e.__isTeleport,$s=e=>e&&(e.disabled||e.disabled===""),Sl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,So=(e,t)=>{const n=e&&e.to;return _e(n)?t?t(n):null:n},ug={__isTeleport:!0,process(e,t,n,s,r,i,o,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:d,querySelector:g,createText:w,createComment:E}}=c,y=$s(t.props);let{shapeFlag:p,children:C,dynamicChildren:b}=t;if(e==null){const S=t.el=w(""),x=t.anchor=w("");d(S,n,s),d(x,n,s);const I=t.target=So(t.props,g),P=t.targetAnchor=w("");I&&(d(P,I),o=o||Sl(I));const F=(M,D)=>{p&16&&u(C,M,D,r,i,o,a,l)};y?F(n,x):I&&F(I,P)}else{t.el=e.el;const S=t.anchor=e.anchor,x=t.target=e.target,I=t.targetAnchor=e.targetAnchor,P=$s(e.props),F=P?n:x,M=P?S:I;if(o=o||Sl(x),b?(h(e.dynamicChildren,b,F,r,i,o,a),xa(e,t,!0)):l||f(e,t,F,M,r,i,o,a,!1),y)P||Rr(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=So(t.props,g);D&&Rr(t,D,null,c,0)}else P&&Rr(t,x,I,c,1)}yf(t)},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:h}=e;if(f&&i(u),(o||!$s(h))&&(i(c),a&16))for(let d=0;d0?pt||ts:null,vf(),us>0&&pt&&pt.push(e),e}function $e(e,t,n,s,r,i){return _f(Ue(e,t,n,s,r,i,!0))}function Ee(e,t,n,s,r){return _f(de(e,t,n,s,r,!0))}function fs(e){return e?e.__v_isVNode===!0:!1}function Tt(e,t){return e.type===t.type&&e.key===t.key}const Ei="__vInternal",wf=({key:e})=>e??null,zr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||ke(e)||Z(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function Ue(e,t=null,n=null,s=0,r=null,i=e===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wf(t),ref:t&&zr(t),scopeId:_i,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ae};return a?(Ia(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),us>0&&!o&&pt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&pt.push(l),l}const de=hg;function hg(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===of)&&(e=Be),fs(e)){const a=Gt(e,t,!0);return n&&Ia(a,n),us>0&&!i&&pt&&(a.shapeFlag&6?pt[pt.indexOf(e)]=a:pt.push(a)),a.patchFlag|=-2,a}if(wg(e)&&(e=e.__vccOpts),t){t=$a(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=ut(a)),ye(l)&&(Nu(l)&&!X(l)&&(l=be({},l)),t.style=Vt(l))}const o=_e(e)?1:Ju(e)?128:cg(e)?64:ye(e)?4:Z(e)?2:0;return Ue(e,t,n,s,r,o,i,!0)}function $a(e){return e?Nu(e)||Ei in e?be({},e):e:null}function Gt(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,a=t?vs(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&wf(a),ref:t&&t.ref?n&&r?X(r)?r.concat(zr(t)):[r,zr(t)]:zr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mr(e=" ",t=0){return de(cs,null,e,t)}function JE(e,t){const n=de(Is,null,e);return n.staticCount=t,n}function js(e="",t=!1){return t?(te(),Ee(Be,null,e)):de(Be,null,e)}function dt(e){return e==null||typeof e=="boolean"?de(Be):X(e)?de(Pe,null,e.slice()):typeof e=="object"?ln(e):de(cs,null,String(e))}function ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function Ia(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(X(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ia(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Ei in t)?t._ctx=Ae:r===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),s&64?(n=16,t=[mr(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nCe||Ae;let La,Jn,kl="__VUE_INSTANCE_SETTERS__";(Jn=go()[kl])||(Jn=go()[kl]=[]),Jn.push(e=>Ce=e),La=e=>{Jn.length>1?Jn.forEach(t=>t(e)):Jn[0](e)};const wn=e=>{La(e),e.scope.on()},gn=()=>{Ce&&Ce.scope.off(),La(null)};function bf(e){return e.vnode.shapeFlag&4}let hs=!1;function mg(e,t=!1){hs=t;const{props:n,children:s}=e.vnode,r=bf(e);eg(e,n,r,t),sg(e,s);const i=r?yg(e,t):void 0;return hs=!1,i}function yg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Mu(new Proxy(e.ctx,Kp));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?_g(e):null;wn(e),gs();const i=dn(s,e,0,[e.props,r]);if(ms(),gn(),la(i)){if(i.then(gn,gn),t)return i.then(o=>{Po(e,o,t)}).catch(o=>{ys(o,e,0)});e.asyncDep=i}else Po(e,i,t)}else Tf(e,t)}function Po(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Uu(t)),Tf(e,n)}let Ol;function Tf(e,t,n){const s=e.type;if(!e.render){if(!t&&Ol&&!s.render){const r=s.template||Aa(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=be(be({isCustomElement:i,delimiters:a},o),l);s.render=Ol(r,c)}}e.render=s.render||St}wn(e),gs(),qp(e),ms(),gn()}function vg(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ve(e,"get","$attrs"),t[n]}}))}function _g(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return vg(e)},slots:e.slots,emit:e.emit,expose:t}}function Ci(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Uu(Mu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xs)return xs[n](e)},has(t,n){return n in t||n in xs}}))}function ko(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function wg(e){return Z(e)&&"__vccOpts"in e}const at=(e,t)=>dp(e,t,hs);function ze(e,t,n){const s=arguments.length;return s===2?ye(t)&&!X(t)?fs(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&fs(n)&&(n=[n]),de(e,t,n))}const bg=Symbol.for("v-scx"),Tg=()=>Ne(bg),Ef="3.3.4",Eg="http://www.w3.org/2000/svg",xn=typeof document<"u"?document:null,Al=xn&&xn.createElement("template"),Cg={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?xn.createElementNS(Eg,e):xn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Al.innerHTML=s?`${e}`:e;const a=Al.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Sg(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Pg(e,t,n){const s=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const i in t)n[i]==null&&Oo(s,i,"");for(const i in n)Oo(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Rl=/\s*!important$/;function Oo(e,t,n){if(X(n))n.forEach(s=>Oo(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=kg(e,t);Rl.test(n)?e.setProperty(Un(s),n.replace(Rl,""),"important"):e[s]=n}}const xl=["Webkit","Moz","ms"],qi={};function kg(e,t){const n=qi[t];if(n)return n;let s=Dt(t);if(s!=="filter"&&s in e)return qi[t]=s;s=gi(s);for(let r=0;rJi||(Ig.then(()=>Ji=0),Ji=Date.now());function jg(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;mt(Dg(s,n.value),t,5,[s])};return n.value=e,n.attached=Lg(),n}function Dg(e,t){if(X(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ll=/^on[a-z]/,Ng=(e,t,n,s,r=!1,i,o,a,l)=>{t==="class"?Sg(e,s,r):t==="style"?Pg(e,n,s):hr(t)?ia(t)||xg(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mg(e,t,s,r))?Ag(e,t,s,i,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Og(e,t,s,r))};function Mg(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ll.test(t)&&Z(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ll.test(t)&&_e(n)?!1:t in e}const en="transition",Ts="animation",Si=(e,{slots:t})=>ze(jp,Sf(e),t);Si.displayName="Transition";const Cf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bg=Si.props=be({},Yu,Cf),En=(e,t=[])=>{X(e)?e.forEach(n=>n(...t)):e&&e(...t)},jl=e=>e?X(e)?e.some(t=>t.length>1):e.length>1:!1;function Sf(e){const t={};for(const B in e)B in Cf||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,g=Hg(r),w=g&&g[0],E=g&&g[1],{onBeforeEnter:y,onEnter:p,onEnterCancelled:C,onLeave:b,onLeaveCancelled:S,onBeforeAppear:x=y,onAppear:I=p,onAppearCancelled:P=C}=t,F=(B,V,_)=>{rn(B,V?u:a),rn(B,V?c:o),_&&_()},M=(B,V)=>{B._isLeaving=!1,rn(B,f),rn(B,d),rn(B,h),V&&V()},D=B=>(V,_)=>{const R=B?I:p,N=()=>F(V,B,_);En(R,[V,N]),Dl(()=>{rn(V,B?l:i),Ft(V,B?u:a),jl(R)||Nl(V,s,w,N)})};return be(t,{onBeforeEnter(B){En(y,[B]),Ft(B,i),Ft(B,o)},onBeforeAppear(B){En(x,[B]),Ft(B,l),Ft(B,c)},onEnter:D(!1),onAppear:D(!0),onLeave(B,V){B._isLeaving=!0;const _=()=>M(B,V);Ft(B,f),kf(),Ft(B,h),Dl(()=>{B._isLeaving&&(rn(B,f),Ft(B,d),jl(b)||Nl(B,s,E,_))}),En(b,[B,_])},onEnterCancelled(B){F(B,!1),En(C,[B])},onAppearCancelled(B){F(B,!0),En(P,[B])},onLeaveCancelled(B){M(B),En(S,[B])}})}function Hg(e){if(e==null)return null;if(ye(e))return[Gi(e.enter),Gi(e.leave)];{const t=Gi(e);return[t,t]}}function Gi(e){return Tu(e)}function Ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function rn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Dl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fg=0;function Nl(e,t,n,s){const r=e._endId=++Fg,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Pf(e,t);if(!o)return s();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=d=>{d.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[g]||"").split(", "),r=s(`${en}Delay`),i=s(`${en}Duration`),o=Ml(r,i),a=s(`${Ts}Delay`),l=s(`${Ts}Duration`),c=Ml(a,l);let u=null,f=0,h=0;t===en?o>0&&(u=en,f=o,h=i.length):t===Ts?c>0&&(u=Ts,f=c,h=l.length):(f=Math.max(o,c),u=f>0?o>c?en:Ts:null,h=u?u===en?i.length:l.length:0);const d=u===en&&/\b(transform|all)(,|$)/.test(s(`${en}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:d}}function Ml(e,t){for(;e.lengthBl(n)+Bl(e[s])))}function Bl(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function kf(){return document.body.offsetHeight}const Of=new WeakMap,Af=new WeakMap,Rf={name:"TransitionGroup",props:be({},Bg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Qt(),s=Qu();let r,i;return Pa(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!qg(r[0].el,n.vnode.el,o))return;r.forEach(Vg),r.forEach(Kg);const a=r.filter(Wg);kf(),a.forEach(l=>{const c=l.el,u=c.style;Ft(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,rn(c,o))};c.addEventListener("transitionend",f)})}),()=>{const o=re(e),a=Sf(o);let l=o.tag||Pe;r=i,i=t.default?Ca(t.default()):[];for(let c=0;cdelete e.mode;Rf.props;const zg=Rf;function Vg(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Kg(e){Af.set(e,e.el.getBoundingClientRect())}function Wg(e){const t=Of.get(e),n=Af.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function qg(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Pf(s);return r.removeChild(s),i}const Hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>ss(t,n):t};function Jg(e){e.target.composing=!0}function Fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const GE={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Hl(r);const i=s||r.props&&r.props.type==="number";Qn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=po(a)),e._assign(a)}),n&&Qn(e,"change",()=>{e.value=e.value.trim()}),t||(Qn(e,"compositionstart",Jg),Qn(e,"compositionend",Fl),Qn(e,"change",Fl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=Hl(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&po(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Gg=["ctrl","shift","alt","meta"],Xg={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gg.some(n=>e[`${n}Key`]&&!t.includes(n))},Qg=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=Un(n.key);if(t.some(r=>r===s||Yg[r]===s))return e(n)},xf=be({patchProp:Ng},Cg);let Ds,Ul=!1;function em(){return Ds||(Ds=og(xf))}function tm(){return Ds=Ul?Ds:ag(xf),Ul=!0,Ds}const ja=(...e)=>{const t=em().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$f(s);if(!r)return;const i=t._component;!Z(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},nm=(...e)=>{const t=tm().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$f(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function $f(e){return _e(e)?document.querySelector(e):e}const sm=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,rm=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,im=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function om(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){am(e);return}return t}function am(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function nr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e[e.length-1]==='"')return n.slice(1,-1);if(n.length<=9){const s=n.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!im.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(sm.test(e)||rm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,om)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const lm=/#/g,cm=/&/g,um=/=/g,Da=/\+/g,fm=/%5e/gi,hm=/%60/gi,dm=/%7c/gi,pm=/%20/gi;function gm(e){return encodeURI(""+e).replace(dm,"|")}function Ao(e){return gm(typeof e=="string"?e:JSON.stringify(e)).replace(Da,"%2B").replace(pm,"+").replace(lm,"%23").replace(cm,"%26").replace(hm,"`").replace(fm,"^")}function Xi(e){return Ao(e).replace(um,"%3D")}function ni(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function mm(e){return ni(e.replace(Da," "))}function ym(e){return ni(e.replace(Da," "))}function vm(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=mm(s[1]);if(r==="__proto__"||r==="constructor")continue;const i=ym(s[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function _m(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Xi(e)}=${Ao(n)}`).join("&"):`${Xi(e)}=${Ao(t)}`:Xi(e)}function wm(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>_m(t,e[t])).filter(Boolean).join("&")}const bm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Tm=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Em=/^([/\\]\s*){2,}[^/\\]/;function Pi(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bm.test(e):Tm.test(e)||(t.acceptRelative?Em.test(e):!1)}const Cm=/^[\s\0]*(blob|data|javascript|vbscript):$/;function Sm(e){return!!e&&Cm.test(e)}const Pm=/\/$|\/\?/;function Ro(e="",t=!1){return t?Pm.test(e):e.endsWith("/")}function If(e="",t=!1){if(!t)return(Ro(e)?e.slice(0,-1):e)||"/";if(!Ro(e,!0))return e||"/";const[n,...s]=e.split("?");return(n.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")}function xo(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Ro(e,!0))return e||"/";const[n,...s]=e.split("?");return n+"/"+(s.length>0?`?${s.join("?")}`:"")}function km(e=""){return e.startsWith("/")}function zl(e=""){return km(e)?e:"/"+e}function Om(e,t){if(jf(t)||Pi(e))return e;const n=If(t);return e.startsWith(n)?e:ki(n,e)}function Vl(e,t){if(jf(t))return e;const n=If(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function Lf(e,t){const n=Na(e),s={...vm(n.search),...t};return n.search=wm(s),$m(n)}function jf(e){return!e||e==="/"}function Am(e){return e&&e!=="/"}const Rm=/^\.?\//;function ki(e,...t){let n=e||"";for(const s of t.filter(r=>Am(r)))if(n){const r=s.replace(Rm,"");n=xo(n)+r}else n=s;return n}function xm(e,t,n={}){return n.trailingSlash||(e=xo(e),t=xo(t)),n.leadingSlash||(e=zl(e),t=zl(t)),n.encoding||(e=ni(e),t=ni(t)),e===t}function Na(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(n){const[,f,h=""]=n;return{protocol:f,pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!Pi(e,{acceptRelative:!0}))return t?Na(t+e):Kl(e);const[,s="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=Kl(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:s,auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:o,pathname:l,search:c,hash:u}}function Kl(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function $m(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol?e.protocol+"//":"")+r+i+t+n+s}class Im extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Lm(e){var l,c,u,f,h;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",s=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"",o=`${r}: ${i}${t?` ${t}`:""}`,a=new Im(o,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[g]}});return a}const jm=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Wl(e="GET"){return jm.has(e.toUpperCase())}function Dm(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Nm=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Mm=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Bm(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Mm.test(t)?"json":Nm.has(t)||t.startsWith("text/")?"text":"blob"}function Hm(e,t,n=globalThis.Headers){const s={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(s.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(s.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){s.headers=new n((t==null?void 0:t.headers)||{});for(const[r,i]of new n((e==null?void 0:e.headers)||{}))s.headers.set(r,i)}return s}const Fm=new Set([408,409,425,429,500,502,503,504]),Um=new Set([101,204,205,304]);function Df(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=Wl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Fm.has(f))){const h=a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(a.request,{...a.options,retry:u-1,timeout:a.options.timeout})}}const c=Lm(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(l,c={}){var h;const u={request:l,options:Hm(c,e.defaults,n),response:void 0,error:void 0};if(u.options.method=(h=u.options.method)==null?void 0:h.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Om(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=Lf(u.request,{...u.options.params,...u.options.query}))),u.options.body&&Wl(u.options.method)&&(Dm(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"))),!u.options.signal&&u.options.timeout){const d=new s;setTimeout(()=>d.abort(),u.options.timeout),u.options.signal=d.signal}try{u.response=await t(u.request,u.options)}catch(d){return u.error=d,u.options.onRequestError&&await u.options.onRequestError(u),await r(u)}if(u.response.body&&!Um.has(u.response.status)&&u.options.method!=="HEAD"){const d=(u.options.parseResponse?"json":u.options.responseType)||Bm(u.response.headers.get("content-type")||"");switch(d){case"json":{const g=await u.response.text(),w=u.options.parseResponse||nr;u.response._data=w(g);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[d]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await r(u)):u.response},o=async function(l,c){return(await i(l,c))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={})=>Df({...e,defaults:{...e.defaults,...a}}),o}const Ma=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),zm=Ma.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Vm=Ma.Headers,Km=Ma.AbortController,Wm=Df({fetch:zm,Headers:Vm,AbortController:Km}),qm=Wm,Jm=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},si=Jm().app,Gm=()=>si.baseURL,Xm=()=>si.buildAssetsDir,Qm=(...e)=>ki(Nf(),Xm(),...e),Nf=(...e)=>{const t=si.cdnURL||si.baseURL;return e.length?ki(t,...e):t};globalThis.__buildAssetsURL=Qm,globalThis.__publicAssetsURL=Nf;function $o(e,t={},n){for(const s in e){const r=e[s],i=n?`${n}:${s}`:s;typeof r=="object"&&r!==null?$o(r,t,i):typeof r=="function"&&(t[i]=r)}return t}const Ym={run:e=>e()},Zm=()=>Ym,Mf=typeof console.createTask<"u"?console.createTask:Zm;function ey(e,t){const n=t.shift(),s=Mf(n);return e.reduce((r,i)=>r.then(()=>s.run(()=>i(...t))),Promise.resolve())}function ty(e,t){const n=t.shift(),s=Mf(n);return Promise.all(e.map(r=>s.run(()=>r(...t))))}function Qi(e,t){for(const n of[...e])n(t)}class ny{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,s={}){if(!t||typeof n!="function")return()=>{};const r=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!s.allowDeprecated){let o=i.message;o||(o=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let s,r=(...i)=>(typeof s=="function"&&s(),s=void 0,r=void 0,n(...i));return s=this.hook(t,r),s}removeHook(t,n){if(this._hooks[t]){const s=this._hooks[t].indexOf(n);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const s=this._hooks[t]||[];delete this._hooks[t];for(const r of s)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=$o(t),s=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of s.splice(0,s.length))r()}}removeHooks(t){const n=$o(t);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ey,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(ty,t,...n)}callHookWith(t,n,...s){const r=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Qi(this._before,r);const i=t(n in this._hooks?[...this._hooks[n]]:[],s);return i instanceof Promise?i.finally(()=>{this._after&&r&&Qi(this._after,r)}):(this._after&&r&&Qi(this._after,r),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Bf(){return new ny}function sy(e={}){let t,n=!1;const s=o=>{if(t&&t!==o)throw new Error("Context conflict")};let r;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?r=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(r&&t===void 0){const o=r.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||s(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{s(o),t=o;try{return r?r.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},c=()=>t===o?l:void 0;Io.add(c);try{const u=r?r.run(o,a):a();return n||(t=void 0),await u}finally{Io.delete(c)}}}}function ry(e={}){const t={};return{get(n,s={}){return t[n]||(t[n]=sy({...e,...s})),t[n],t[n]}}}const ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},ql="__unctx__",iy=ri[ql]||(ri[ql]=ry()),oy=(e,t={})=>iy.get(e,t),Jl="__unctx_async_handlers__",Io=ri[Jl]||(ri[Jl]=new Set);function ii(e){const t=[];for(const r of Io){const i=r();i&&t.push(i)}const n=()=>{for(const r of t)r()};let s=e();return s&&typeof s=="object"&&"catch"in s&&(s=s.catch(r=>{throw n(),r})),[s,n]}const Hf=oy("nuxt-app",{asyncContext:!1}),ay="__nuxt_plugin";function ly(e){let t=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.7.1"},get vue(){return n.vueApp.version}},payload:Jt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:r=>fy(n,r),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Bf(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,i)=>{const o="$"+r;xr(n,o,i),xr(n.vueApp.config.globalProperties,o,i)},xr(n.vueApp,"$nuxt",n),xr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||we;const r=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",r)}const s=Jt(n.payload.config);return n.provide("config",s),n}async function cy(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const s in n)e.provide(s,n[s])}}async function uy(e,t){const n=[],s=[];for(const r of t){const i=cy(e,r);r.parallel?n.push(i.catch(o=>s.push(o))):await i}if(await Promise.all(n),s.length)throw s[0]}/*! @__NO_SIDE_EFFECTS__ */function Bt(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[ay]:!0}))}function fy(e,t,n){const s=()=>n?t(...n):t();return Hf.set(e),e.vueApp.runWithContext(s)}/*! @__NO_SIDE_EFFECTS__ */function we(){var t;let e;if(uf()&&(e=(t=Qt())==null?void 0:t.appContext.app.$nuxt),e=e||Hf.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function Ba(){return we().$config}function xr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const hy="modulepreload",dy=function(e,t){return e[0]==="."?new URL(e,t).href:e},Gl={},py=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=dy(i,s),i in Gl)return;Gl[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let u=r.length-1;u>=0;u--){const f=r[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":hy,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},me=(...e)=>py(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),gy=-1,my=-2,yy=-3,vy=-4,_y=-5,wy=-6;function by(e,t){return Ty(JSON.parse(e),t)}function Ty(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,s=Array(n.length);function r(i,o=!1){if(i===gy)return;if(i===yy)return NaN;if(i===vy)return 1/0;if(i===_y)return-1/0;if(i===wy)return-0;if(o)throw new Error("Invalid input");if(i in s)return s[i];const a=n[i];if(!a||typeof a!="object")s[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return s[i]=c(r(a[1]));switch(l){case"Date":s[i]=new Date(a[1]);break;case"Set":const u=new Set;s[i]=u;for(let d=1;d>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Xl(e){return e._h||Uf(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function zf(e,t){const{props:n,tag:s}=e;if(Py.includes(s))return s;if(s==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const r=["id"];s==="meta"&&r.push("name","property","http-equiv");for(const i of r)if(typeof n[i]<"u"){const o=String(n[i]);return t&&!t(o)?!1:`${s}:${i}:${o}`}return!1}function Ql(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Oy(e,t,n){const s={tag:e,props:await Vf(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Ff.forEach(r=>{const i=typeof s.props[r]<"u"?s.props[r]:n[r];typeof i<"u"&&((!["innerHTML","textContent"].includes(r)||Cy.includes(s.tag))&&(s[r]=i),delete s.props[r])}),s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),s.props.children&&(s.innerHTML=s.props.children,delete s.props.children),s.tag==="script"&&typeof s.innerHTML=="object"?(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"):s.tag==="script"&&s.innerHTML&&(/^(https?:)?\/\//.test(s.innerHTML)||s.innerHTML.startsWith("/"))&&(s.props.src=s.innerHTML,delete s.innerHTML),Array.isArray(s.props.content)?s.props.content.map(r=>({...s,props:{...s.props,content:r}})):s}function Ay(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Vf(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=Ay(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Ff.includes(n)){const s=String(e[n]),r=n.startsWith("data-");s==="true"||s===""?e[n]=r?"true":!0:e[n]||(r&&s==="false"?e[n]="false":delete e[n])}}return e}const Ry=10;async function xy(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,s])=>typeof s<"u"&&Sy.includes(n)).forEach(([n,s])=>{const r=Ey(s);t.push(...r.map(i=>Oy(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,s)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[c]||void 0,t):a=t[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let r=e;try{r=decodeURI(e)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=s(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),e.includes(tn)&&(e.endsWith(tn)&&(e=e.slice(0,-tn.length).trim()),e.startsWith(tn)&&(e=e.slice(tn.length).trim()),e=e.replace(new RegExp(`\\${tn}\\s*\\${tn}`,"g"),tn),e=kn(e,{separator:n},n)),e}async function Iy(e){const t={tag:e.tagName.toLowerCase(),props:await Vf(e.getAttributeNames().reduce((n,s)=>({...n,[s]:e.getAttribute(s)}),{})),innerHTML:e.innerHTML};return t._d=zf(t),t}async function Kf(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n)return;const s={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!s.shouldRender)return;const r=(await e.resolveTags()).map(f=>({tag:f,id:Vr.includes(f.tag)?Xl(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const h=(u=n==null?void 0:n[f])==null?void 0:u.children;for(const d of[...h].filter(g=>Vr.includes(g.tagName.toLowerCase())))i.elMap[d.getAttribute("data-hid")||Xl(await Iy(d))]=d}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(f,h,d){const g=`${f}:${h}`;i.sideEffects[g]=d,delete i.pendingSideEffects[g]}function a({id:f,$el:h,tag:d}){const g=d.tag.endsWith("Attrs");i.elMap[f]=h,g||(["textContent","innerHTML"].forEach(w=>{d[w]&&d[w]!==h[w]&&(h[w]=d[w])}),o(f,"el",()=>{i.elMap[f].remove(),delete i.elMap[f]})),Object.entries(d.props).forEach(([w,E])=>{const y=`attr:${w}`;if(w==="class")for(const p of(E||"").split(" ").filter(Boolean))g&&o(f,`${y}:${p}`,()=>h.classList.remove(p)),!h.classList.contains(p)&&h.classList.add(p);else h.getAttribute(w)!==E&&h.setAttribute(w,E===!0?"":String(E)),g&&o(f,y,()=>h.removeAttribute(w))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:h,shouldRender:d,id:g}=f;if(d){if(h.tag==="title"){n.title=h.textContent;continue}f.$el=f.$el||i.elMap[g],f.$el?a(f):Vr.includes(h.tag)&&l.push(f)}}for(const f of l){const h=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),c[h]=c[h]||n.createDocumentFragment(),c[h].appendChild(f.$el)}for(const f of r)await e.hooks.callHook("dom:renderTag",f,n,o);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:r})}async function Ly(e,t={}){const n=t.delayFn||(s=>setTimeout(s,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(s=>n(async()=>{await Kf(e,t),delete e._domUpdatePromise,s()}))}function jy(e){return t=>{var s,r;const n=((r=(s=t.resolvedOptions.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){Ly(i,e)}}}}}const Dy=["templateParams","htmlAttrs","bodyAttrs"],Ny={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(s=>{e.props[s]&&(e.key=e.props[s],delete e.props[s])});const n=zf(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(s=>{const r=(s.key?`${s.tag}:${s.key}`:s._d)||s._p,i=t[r];if(i){let a=s==null?void 0:s.tagDuplicateStrategy;if(!a&&Dy.includes(s.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{s.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),s.props[c]=`${l[c]} ${s.props[c]}`)}),t[r].props={...l,...s.props};return}else if(s._e===i._e){i._duped=i._duped||[],s._d=`${i._d}:${i._duped.length+1}`,i._duped.push(s);return}else if(oi(s)>oi(i))return}const o=Object.keys(s.props).length+(s.innerHTML?1:0)+(s.textContent?1:0);if(Vr.includes(s.tag)&&o===0){delete t[r];return}t[r]=s});const n=[];Object.values(t).forEach(s=>{const r=s._duped;delete s._duped,n.push(s),r&&n.push(...r)}),e.tags=n}}},My={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},ec=["script","link","bodyAttrs"];function tc(e){const t={},n={};return Object.entries(e.props).forEach(([s,r])=>{s.startsWith("on")&&typeof r=="function"?n[s]=r:t[s]=r}),{props:t,eventHandlers:n}}const By={hooks:{"ssr:render":function(e){e.tags=e.tags.map(t=>(!ec.includes(t.tag)||!Object.entries(t.props).find(([n,s])=>n.startsWith("on")&&typeof s=="function")||(t.props=tc(t).props),t))},"tags:resolve":function(e){e.tags=e.tags.map(t=>{if(!ec.includes(t.tag))return t;const{props:n,eventHandlers:s}=tc(t);return Object.keys(s).length&&(t.props=n,t._eventHandlers=s),t})},"dom:renderTag":function(e,t,n){if(!e.tag._eventHandlers)return;const s=e.tag.tag==="bodyAttrs"?t.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([r,i])=>{const o=`${e.tag._d||e.tag._p}:${r}`,a=r.slice(2).toLowerCase(),l=`data-h-${a}`;if(n(e.id,o,()=>{}),e.$el.hasAttribute(l))return;const c=i;e.$el.setAttribute(l,""),s.addEventListener(a,c),e.entry&&n(e.id,o,()=>{s.removeEventListener(a,c),e.$el.removeAttribute(l)})})}}},Hy=["link","style","script","noscript"],Fy={hooks:{"tag:normalise":({tag:e})=>{e.key&&Hy.includes(e.tag)&&(e.props["data-hid"]=e._h=Uf(e.key))}}},Uy={hooks:{"tags:resolve":e=>{const t=n=>{var s;return(s=e.tags.find(r=>r._d===n))==null?void 0:s._p};for(const{prefix:n,offset:s}of $y)for(const r of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(r.tagPriority.replace(n,""));typeof i<"u"&&(r._p=i+s)}e.tags.sort((n,s)=>n._p-s._p).sort((n,s)=>oi(n)-oi(s))}}},zy={hooks:{"tags:resolve":e=>{var o;const{tags:t}=e,n=(o=t.find(a=>a.tag==="title"))==null?void 0:o.textContent,s=t.findIndex(a=>a.tag==="templateParams"),r=s!==-1?t[s].props:{},i=r.separator||"|";delete r.separator,r.pageTitle=kn(r.pageTitle||n||"",r,i);for(const a of t)a.processTemplateParams!==!1&&(["titleTemplate","title"].includes(a.tag)&&typeof a.textContent=="string"?a.textContent=kn(a.textContent,r,i):a.tag==="meta"&&typeof a.props.content=="string"?a.props.content=kn(a.props.content,r,i):a.tag==="link"&&typeof a.props.href=="string"?a.props.href=kn(a.props.href,r,i):a.processTemplateParams===!0&&(a.innerHTML?a.innerHTML=kn(a.innerHTML,r,i):a.textContent&&(a.textContent=kn(a.textContent,r,i))));e.tags=t.filter(a=>a.tag!=="templateParams")}}},Vy={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(r=>r.tag==="titleTemplate");const s=t.findIndex(r=>r.tag==="title");if(s!==-1&&n!==-1){const r=Ql(t[n].textContent,t[s].textContent);r!==null?t[s].textContent=r||t[s].textContent:delete t[s]}else if(n!==-1){const r=Ql(t[n].textContent);r!==null&&(t[n].textContent=r,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}};let Wf;function Ky(e={}){const t=Wy(e);return t.use(jy()),Wf=t}function nc(e,t){return!e||e==="server"&&t||e==="client"&&!t}function Wy(e={}){const t=Bf();t.addHooks(e.hooks||{}),e.document=e.document||(ky?document:void 0);const n=!e.document;e.plugins=[Ny,My,By,Fy,Uy,zy,Vy,...(e==null?void 0:e.plugins)||[]];const s=()=>{o.dirty=!0,t.callHook("entries:updated",o)};let r=0,i=[];const o={dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(a){const l=typeof a=="function"?a(o):a;nc(l.mode,n)&&t.addHooks(l.hooks||{})},push(a,l){l==null||delete l.head;const c={_i:r++,input:a,...l};return nc(c.mode,n)&&(i.push(c),s()),{dispose(){i=i.filter(u=>u._i!==c._i),t.callHook("entries:updated",o),s()},patch(u){i=i.map(f=>(f._i===c._i&&(f.input=c.input=u),f)),s()}}},async resolveTags(){const a={tags:[],entries:[...i]};await t.callHook("entries:resolve",a);for(const l of a.entries){const c=l.resolvedInput||l.input;if(l.resolvedInput=await(l.transform?l.transform(c):c),l.resolvedInput)for(const u of await xy(l)){const f={tag:u,entry:l,resolvedOptions:o.resolvedOptions};await t.callHook("tag:normalise",f),a.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),a.tags},ssr:n};return e.plugins.forEach(a=>o.use(a)),o.hooks.callHook("init",o),o}function qy(){return Wf}const Jy=Ef.startsWith("3");function Gy(e){return typeof e=="function"?e():ue(e)}function ai(e,t=""){if(e instanceof Promise)return e;const n=Gy(e);return!e||!n?n:Array.isArray(n)?n.map(s=>ai(s,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,r])=>s==="titleTemplate"||s.startsWith("on")?[s,ue(r)]:[s,ai(r,s)])):n}const Xy={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=ai(t.input)}}},qf="usehead";function Qy(e){return{install(n){Jy&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(qf,e))}}.install}function Yy(e={}){e.domDelayFn=e.domDelayFn||(n=>Mt(()=>setTimeout(()=>n(),0)));const t=Ky(e);return t.use(Xy),t.install=Qy(t),t}const Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},jo="__unhead_injection_handler__";function Zy(e){Lo[jo]=e}function ev(){if(jo in Lo)return Lo[jo]();const e=Ne(qf);return e||qy()}function tv(e,t={}){const n=t.head||ev();if(n)return n.ssr?n.push(e,t):nv(n,e,t)}function nv(e,t,n={}){const s=Re(!1),r=Re({});$p(()=>{r.value=s.value?{}:ai(t)});const i=e.push(r.value,n);return pn(r,a=>{i.patch(a)}),Qt()&&(bi(()=>{i.dispose()}),tf(()=>{s.value=!0}),ef(()=>{s.value=!1})),i}const sv=!1,Do=!1,rv=!1,iv="#__nuxt";async function ov(e){const t=fetch(e).then(n=>n.text().then(Jf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}let $r=null;async function av(){if($r)return $r;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=Jf(e.textContent||""),n=e.dataset.src?await ov(e.dataset.src):void 0;return $r={...t,...n,...window.__NUXT__},$r}function Jf(e){return by(e,we()._payloadRevivers)}function lv(e,t){we()._payloadRevivers[e]=t}const Ir=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function cv(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=(t||{}).decode||hv;let i=0;for(;it.reduce((n,s)=>No(n,s,"",e),{})}const gv=pv();function mv(e,t){try{return t in e}catch{return!1}}var yv=Object.defineProperty,vv=(e,t,n)=>t in e?yv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,On=(e,t,n)=>(vv(e,typeof t!="symbol"?t+"":t,n),n);class Mo extends Error{constructor(t,n={}){super(t,n),On(this,"statusCode",500),On(this,"fatal",!1),On(this,"unhandled",!1),On(this,"statusMessage"),On(this,"data"),On(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Ho(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Gf(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}On(Mo,"__h3_error__",!0);function Bo(e){if(typeof e=="string")return new Mo(e);if(_v(e))return e;const t=new Mo(e.message??e.statusMessage??"",{cause:e.cause||e});if(mv(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Ho(e.statusCode,t.statusCode):e.status&&(t.statusCode=Ho(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Gf(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function _v(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const wv=/[^\u0009\u0020-\u007E]/g;function Gf(e=""){return e.replace(wv,"")}function Ho(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Xf=Symbol("layout-meta"),yr=Symbol("route"),zn=()=>{var e;return(e=we())==null?void 0:e.$router},Qf=()=>uf()?Ne(yr,we()._route):we()._route;/*! @__NO_SIDE_EFFECTS__ */const bv=()=>{try{if(we()._processingMiddleware)return!0}catch{return!0}return!1},Tv=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Lf(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:a="_blank",windowFeatures:l={}}=t.open,c=Object.entries(l).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");open(n,a,c)}return Promise.resolve()}const s=(t==null?void 0:t.external)||Pi(n,{acceptRelative:!0});if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=Na(n).protocol;if(a&&Sm(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const r=bv();if(!s&&r)return e;const i=zn(),o=we();return s?(t!=null&&t.replace?location.replace(n):location.href=n,r?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},Oi=()=>va(we().payload,"error"),es=e=>{const t=vr(e);try{const n=we(),s=Oi();n.hooks.callHook("app:error",t),s.value=s.value||t}catch{throw t}return t},Ev=async(e={})=>{const t=we(),n=Oi();t.callHook("app:error:cleared",e),e.redirect&&await zn().replace(e.redirect),n.value=null},Cv=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),vr=e=>{const t=Bo(e);return t.__nuxt_error=!0,t},rc={NuxtError:e=>vr(e),EmptyShallowRef:e=>Js(e==="_"?void 0:e==="0n"?BigInt(0):nr(e)),EmptyRef:e=>Re(e==="_"?void 0:e==="0n"?BigInt(0):nr(e)),ShallowRef:e=>Js(e),ShallowReactive:e=>pr(e),Ref:e=>Re(e),Reactive:e=>Jt(e)},Sv=Bt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const s in rc)lv(s,rc[s]);Object.assign(e.payload,([t,n]=ii(()=>e.runWithContext(av)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Pv=()=>null;function kv(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,s,r={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");r.server=r.server??!0,r.default=r.default??Pv,r.lazy=r.lazy??!1,r.immediate=r.immediate??!0;const i=we(),o=()=>i.isHydrating?i.payload.data[n]:i.static.data[n],a=()=>o()!==void 0;(!i._asyncData[n]||!r.immediate)&&(i._asyncData[n]={data:Re(o()??r.default()),pending:Re(!a()),error:va(i.payload._errors,n),status:Re("idle")});const l={...i._asyncData[n]};l.refresh=l.execute=(h={})=>{if(i._asyncDataPromises[n]){if(h.dedupe===!1)return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((h._initial||i.isHydrating&&h._initial!==!1)&&a())return o();l.pending.value=!0,l.status.value="pending";const d=new Promise((g,w)=>{try{g(s(i))}catch(E){w(E)}}).then(g=>{if(d.cancelled)return i._asyncDataPromises[n];let w=g;r.transform&&(w=r.transform(g)),r.pick&&(w=Ov(w,r.pick)),l.data.value=w,l.error.value=null,l.status.value="success"}).catch(g=>{if(d.cancelled)return i._asyncDataPromises[n];l.error.value=g,l.data.value=ue(r.default()),l.status.value="error"}).finally(()=>{d.cancelled||(l.pending.value=!1,i.payload.data[n]=l.data.value,l.error.value&&(i.payload._errors[n]=vr(l.error.value)),delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=d,i._asyncDataPromises[n]};const c=()=>l.refresh({_initial:!0}),u=r.server!==!1&&i.payload.serverRendered;{const h=Qt();if(h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const g=h._nuxtOnBeforeMountCbs;h&&(sf(()=>{g.forEach(w=>{w()}),g.splice(0,g.length)}),Zs(()=>g.splice(0,g.length)))}u&&i.isHydrating&&a()?(l.pending.value=!1,l.status.value=l.error.value?"error":"success"):h&&(i.payload.serverRendered&&i.isHydrating||r.lazy)&&r.immediate?h._nuxtOnBeforeMountCbs.push(c):r.immediate&&c(),r.watch&&pn(r.watch,()=>l.refresh());const d=i.hook("app:data:refresh",g=>{if(!g||g.includes(n))return l.refresh()});h&&Zs(d)}const f=Promise.resolve(i._asyncDataPromises[n]).then(()=>l);return Object.assign(f,l),f}function Ov(e,t){const n={};for(const s of t)n[s]=e[s];return n}const Av="$s";function Rv(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,s]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(s!==void 0&&typeof s!="function")throw new Error("[nuxt] [useState] init must be a function: "+s);const r=Av+n,i=we(),o=va(i.payload.state,r);if(o.value===void 0&&s){const a=s();if(ke(a))return i.payload.state[r]=a,a;o.value=a}return o}const ic=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function xv(e,t){t?t={...ic,...t}:t=ic;const n=Yf(t);return n.dispatch(e),n.toString()}const $v=Object.freeze(["prototype","__proto__","constructor"]);function Yf(e){let t="",n=new Map;const s=r=>{t+=r};return{toString(){return t},getContext(){return n},dispatch(r){return e.replacer&&(r=e.replacer(r)),this[r===null?"null":typeof r](r)},object(r){if(r&&typeof r.toJSON=="function")return this.object(r.toJSON());const i=Object.prototype.toString.call(r);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(r))===void 0)n.set(r,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(r))return s("buffer:"),s(r.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](r):e.ignoreUnknown||this.unkown(r,o);else{let c=Object.keys(r);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!oc(r)&&(u=$v),e.excludeKeys&&(c=c.filter(h=>!e.excludeKeys(h)),u=u.filter(h=>!e.excludeKeys(h))),s("object:"+(c.length+u.length)+":");const f=h=>{this.dispatch(h),s(":"),e.excludeValues||this.dispatch(r[h]),s(",")};for(const h of c)f(h);for(const h of u)f(h)}},array(r,i){if(i=i===void 0?e.unorderedArrays!==!1:i,s("array:"+r.length+":"),!i||r.length<=1){for(const l of r)this.dispatch(l);return}const o=new Map,a=r.map(l=>{const c=Yf(e);c.dispatch(l);for(const[u,f]of c.getContext())o.set(u,f);return c.toString()});return n=o,a.sort(),this.array(a,!1)},date(r){return s("date:"+r.toJSON())},symbol(r){return s("symbol:"+r.toString())},unkown(r,i){if(s(i),!!r&&(s(":"),r&&typeof r.entries=="function"))return this.array(Array.from(r.entries()),!0)},error(r){return s("error:"+r.toString())},boolean(r){return s("bool:"+r)},string(r){s("string:"+r.length+":"),s(r)},function(r){s("fn:"),oc(r)?this.dispatch("[native]"):this.dispatch(r.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(r.name)),e.respectFunctionProperties&&this.object(r)},number(r){return s("number:"+r)},xml(r){return s("xml:"+r.toString())},null(){return s("Null")},undefined(){return s("Undefined")},regexp(r){return s("regex:"+r.toString())},uint8array(r){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(r))},uint8clampedarray(r){return s("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(r))},int8array(r){return s("int8array:"),this.dispatch(Array.prototype.slice.call(r))},uint16array(r){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(r))},int16array(r){return s("int16array:"),this.dispatch(Array.prototype.slice.call(r))},uint32array(r){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(r))},int32array(r){return s("int32array:"),this.dispatch(Array.prototype.slice.call(r))},float32array(r){return s("float32array:"),this.dispatch(Array.prototype.slice.call(r))},float64array(r){return s("float64array:"),this.dispatch(Array.prototype.slice.call(r))},arraybuffer(r){return s("arraybuffer:"),this.dispatch(new Uint8Array(r))},url(r){return s("url:"+r.toString())},map(r){s("map:");const i=[...r];return this.array(i,e.unorderedSets!==!1)},set(r){s("set:");const i=[...r];return this.array(i,e.unorderedSets!==!1)},file(r){return s("file:"),this.dispatch([r.name,r.size,r.type,r.lastModfied])},blob(){if(e.ignoreUnknown)return s("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return s("domwindow")},bigint(r){return s("bigint:"+r.toString())},process(){return s("process")},timer(){return s("timer")},pipe(){return s("pipe")},tcp(){return s("tcp")},udp(){return s("udp")},tty(){return s("tty")},statwatcher(){return s("statwatcher")},securecontext(){return s("securecontext")},connection(){return s("connection")},zlib(){return s("zlib")},context(){return s("context")},nodescript(){return s("nodescript")},httpparser(){return s("httpparser")},dataview(){return s("dataview")},signal(){return s("signal")},fsevent(){return s("fsevent")},tlswrap(){return s("tlswrap")}}}const Zf="[native code] }",Iv=Zf.length;function oc(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-Iv)===Zf}class mn{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||Lv).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=s<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new mn([...this.words])}}const Lv={stringify(e){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255;t.push((s>>>4).toString(16),(s&15).toString(16))}return t.join("")}},jv={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let s=0;s>>2]>>>24-s%4*8&255,i=e.words[s+1>>>2]>>>24-(s+1)%4*8&255,o=e.words[s+2>>>2]>>>24-(s+2)%4*8&255,a=r<<16|i<<8|o;for(let l=0;l<4&&s*8+l*6>>6*(3-l)&63))}return n.join("")}},Dv={parse(e){const t=e.length,n=[];for(let s=0;s>>2]|=(e.charCodeAt(s)&255)<<24-s%4*8;return new mn(n,t)}},Nv={parse(e){return Dv.parse(unescape(encodeURIComponent(e)))}};class Mv{constructor(){this._data=new mn,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new mn,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=Nv.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,s=this._data.sigBytes/(this.blockSize*4);t?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const r=s*this.blockSize,i=Math.min(r*4,this._data.sigBytes);if(r){for(let o=0;o>>7)^(C<<14|C>>>18)^C>>>3,S=Cn[h-2],x=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;Cn[h]=b+Cn[h-7]+x+Cn[h-16]}const d=l&c^~l&u,g=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),E=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),y=f+E+d+Hv[h]+Cn[h],p=w+g;f=u,u=c,c=l,l=a+y|0,a=o,o=i,i=r,r=y+p|0}s[0]=s[0]+r|0,s[1]=s[1]+i|0,s[2]=s[2]+o|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0,s[5]=s[5]+c|0,s[6]=s[6]+u|0,s[7]=s[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(s+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Uv(e){return new Fv().finalize(e).toString(jv)}function zv(e,t={}){const n=typeof e=="string"?e:xv(e,t);return Uv(n).slice(0,10)}function Vv(e,t,n){const[s={},r]=typeof t=="string"?[{},t]:[t,n],i=at(()=>{let b=e;return typeof b=="function"&&(b=b()),ue(b)}),o=s.key||zv([r,ue(s.baseURL),typeof i.value=="string"?i.value:"",ue(s.params||s.query)]);if(!o||typeof o!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+o);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const a=o===r?"$f"+o:o;if(!s.baseURL&&typeof i.value=="string"&&i.value.startsWith("//"))throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:c,default:u,transform:f,pick:h,watch:d,immediate:g,...w}=s,E=Jt({...w,cache:typeof s.cache=="boolean"?void 0:s.cache}),y={server:l,lazy:c,default:u,transform:f,pick:h,immediate:g,watch:d===!1?[]:[E,i,...d||[]]};let p;return kv(a,()=>{var S;return(S=p==null?void 0:p.abort)==null||S.call(p),p=typeof AbortController<"u"?new AbortController:{},typeof i.value=="string"&&i.value.startsWith("/"),(s.$fetch||globalThis.$fetch)(i.value,{signal:p.signal,...E})},y)}const Kv={path:"/",watch:!0,decode:e=>nr(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))};function nn(e,t){var i;const n={...Kv,...t},s=Wv(n)||{},r=Re(s[e]??((i=n.default)==null?void 0:i.call(n)));{const o=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${e}`);Qt()&&Zs(()=>{o==null||o.close()});const a=()=>{Jv(e,r.value,n),o==null||o.postMessage(re(r.value))};let l=!1;o&&(o.onmessage=c=>{l=!0,r.value=c.data,Mt(()=>{l=!1})}),n.watch?pn(r,()=>{l||a()},{deep:n.watch!=="shallow"}):a()}return r}function Wv(e={}){return cv(document.cookie,e)}function qv(e,t,n={}){return t==null?sc(e,t,{...n,maxAge:-1}):sc(e,t,n)}function Jv(e,t,n={}){document.cookie=qv(e,t,n)}function Gv(e={}){const t=e.path||window.location.pathname;let n={};try{n=nr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)we().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const s=async()=>{n=!1,await Kf(t)};t.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||s()}),e.hooks.hook("app:error",s),e.hooks.hook("app:suspense:resolve",s)}}});/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT */const Yn=typeof window<"u";function Yv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Zi(e,t){const n={};for(const s in t){const r=t[s];n[s]=kt(r)?r.map(e):e(r)}return n}const Ns=()=>{},kt=Array.isArray,Zv=/\/$/,e_=e=>e.replace(Zv,"");function eo(e,t,n="/"){let s,r={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(s=s||t.slice(0,a),o=t.slice(a,t.length)),s=r_(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:o}}function t_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function lc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function n_(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&ds(t.matched[s],n.matched[r])&&eh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!s_(e[n],t[n]))return!1;return!0}function s_(e,t){return kt(e)?cc(e,t):kt(t)?cc(t,e):e===t}function cc(e,t){return kt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function r_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var sr;(function(e){e.pop="pop",e.push="push"})(sr||(sr={}));var Ms;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ms||(Ms={}));function i_(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),e_(e)}const o_=/^[^#]+#/;function a_(e,t){return e.replace(o_,"#")+t}function l_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Ai=()=>({left:window.pageXOffset,top:window.pageYOffset});function c_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=l_(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function uc(e,t){return(history.state?history.state.position-t:-1)+e}const Fo=new Map;function u_(e,t){Fo.set(e,t)}function f_(e){const t=Fo.get(e);return Fo.delete(e),t}let h_=()=>location.protocol+"//"+location.host;function th(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),lc(l,"")}return lc(n,e)+s+r}function d_(e,t,n,s){let r=[],i=[],o=null;const a=({state:h})=>{const d=th(e,location),g=n.value,w=t.value;let E=0;if(h){if(n.value=d,t.value=h,o&&o===g){o=null;return}E=w?h.position-w.position:0}else s(d);r.forEach(y=>{y(n.value,g,{delta:E,type:sr.pop,direction:E?E>0?Ms.forward:Ms.back:Ms.unknown})})};function l(){o=n.value}function c(h){r.push(h);const d=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return i.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(fe({},h.state,{scroll:Ai()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function fc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Ai():null}}function p_(e){const{history:t,location:n}=window,s={value:th(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:h_()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),n[u?"replace":"assign"](h)}}function o(l,c){const u=fe({},t.state,fc(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),s.value=l}function a(l,c){const u=fe({},r.value,t.state,{forward:l,scroll:Ai()});i(u.current,u,!0);const f=fe({},fc(s.value,l,null),{position:u.position+1},c);i(l,f,!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function nh(e){e=i_(e);const t=p_(e),n=d_(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=fe({location:"",base:e,go:s,createHref:a_.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function g_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nh(e)}function m_(e){return typeof e=="string"||e&&typeof e=="object"}function sh(e){return typeof e=="string"||typeof e=="symbol"}const At={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},rh=Symbol("");var hc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hc||(hc={}));function ps(e,t){return fe(new Error,{type:e,[rh]:!0},t)}function Ht(e,t){return e instanceof Error&&rh in e&&(t==null||!!(e.type&t))}const dc="[^/]+?",y_={sensitive:!1,strict:!1,start:!0,end:!0},v_=/[.+*?^${}()[\]/\\]/g;function __(e,t){const n=fe({},y_,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function b_(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const T_={type:0,value:""},E_=/[a-zA-Z0-9_]/;function C_(e){if(!e)return[[]];if(e==="/")return[[T_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${c}": ${d}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(p)}:Ns}function o(u){if(sh(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!ih(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!mc(u)&&s.set(u.record.name,u)}function c(u,f){let h,d={},g,w;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw ps(1,{location:u});w=h.record.name,d=fe(gc(f.params,h.keys.filter(p=>!p.optional).map(p=>p.name)),u.params&&gc(u.params,h.keys.map(p=>p.name))),g=h.stringify(d)}else if("path"in u)g=u.path,h=n.find(p=>p.re.test(g)),h&&(d=h.parse(g),w=h.record.name);else{if(h=f.name?s.get(f.name):n.find(p=>p.re.test(f.path)),!h)throw ps(1,{location:u,currentLocation:f});w=h.record.name,d=fe({},f.params,u.params),g=h.stringify(d)}const E=[];let y=h;for(;y;)E.unshift(y.record),y=y.parent;return{name:w,path:g,params:d,matched:E,meta:A_(E)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:r}}function gc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function k_(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:O_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function O_(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function mc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function A_(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function yc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function ih(e,t){return t.children.some(n=>n===e||ih(e,n))}const oh=/#/g,R_=/&/g,x_=/\//g,$_=/=/g,I_=/\?/g,ah=/\+/g,L_=/%5B/g,j_=/%5D/g,lh=/%5E/g,D_=/%60/g,ch=/%7B/g,N_=/%7C/g,uh=/%7D/g,M_=/%20/g;function Ha(e){return encodeURI(""+e).replace(N_,"|").replace(L_,"[").replace(j_,"]")}function B_(e){return Ha(e).replace(ch,"{").replace(uh,"}").replace(lh,"^")}function Uo(e){return Ha(e).replace(ah,"%2B").replace(M_,"+").replace(oh,"%23").replace(R_,"%26").replace(D_,"`").replace(ch,"{").replace(uh,"}").replace(lh,"^")}function H_(e){return Uo(e).replace($_,"%3D")}function F_(e){return Ha(e).replace(oh,"%23").replace(I_,"%3F")}function U_(e){return e==null?"":F_(e).replace(x_,"%2F")}function li(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function z_(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Uo(i)):[s&&Uo(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function V_(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=kt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const K_=Symbol(""),_c=Symbol(""),Fa=Symbol(""),Ua=Symbol(""),zo=Symbol("");function Es(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function cn(e,t,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ps(4,{from:n,to:t})):f instanceof Error?a(f):m_(f)?a(ps(2,{from:t,to:f})):(i&&s.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),o())},c=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function to(e,t,n,s){const r=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(W_(a)){const c=(a.__vccOpts||a)[t];c&&r.push(cn(c,n,s,i,o))}else{let l=a();r.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=Yv(c)?c.default:c;i.components[o]=u;const h=(u.__vccOpts||u)[t];return h&&cn(h,n,s,i,o)()}))}}return r}function W_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wc(e){const t=Ne(Fa),n=Ne(Ua),s=at(()=>t.resolve(ue(e.to))),r=at(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(ds.bind(null,u));if(h>-1)return h;const d=bc(l[c-2]);return c>1&&bc(u)===d&&f[f.length-1].path!==d?f.findIndex(ds.bind(null,l[c-2])):h}),i=at(()=>r.value>-1&&X_(n.params,s.value.params)),o=at(()=>r.value>-1&&r.value===n.matched.length-1&&eh(n.params,s.value.params));function a(l={}){return G_(l)?t[ue(e.replace)?"replace":"push"](ue(e.to)).catch(Ns):Promise.resolve()}return{route:s,href:at(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const q_=Se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:wc,setup(e,{slots:t}){const n=Jt(wc(e)),{options:s}=Ne(Fa),r=at(()=>({[Tc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Tc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),J_=q_;function G_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function X_(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!kt(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function bc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tc=(e,t,n)=>e??t??n,Q_=Se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ne(zo),r=at(()=>e.route||s.value),i=Ne(_c,0),o=at(()=>{let c=ue(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=at(()=>r.value.matched[o.value]);Bn(_c,at(()=>o.value+1)),Bn(K_,a),Bn(zo,r);const l=Re();return pn(()=>[l.value,a.value,e.name],([c,u,f],[h,d,g])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!ds(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return Ec(n.default,{Component:h,route:c});const d=f.props[u],g=d?d===!0?c.params:typeof d=="function"?d(c):d:null,E=ze(h,fe({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Ec(n.default,{Component:E,route:c})||E}}});function Ec(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fh=Q_;function Y_(e){const t=P_(e.routes,e),n=e.parseQuery||z_,s=e.stringifyQuery||vc,r=e.history,i=Es(),o=Es(),a=Es(),l=Js(At);let c=At;Yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zi.bind(null,O=>""+O),f=Zi.bind(null,U_),h=Zi.bind(null,li);function d(O,K){let U,q;return sh(O)?(U=t.getRecordMatcher(O),q=K):q=O,t.addRoute(q,U)}function g(O){const K=t.getRecordMatcher(O);K&&t.removeRoute(K)}function w(){return t.getRoutes().map(O=>O.record)}function E(O){return!!t.getRecordMatcher(O)}function y(O,K){if(K=fe({},K||l.value),typeof O=="string"){const T=eo(n,O,K.path),k=t.resolve({path:T.path},K),A=r.createHref(T.fullPath);return fe(T,k,{params:h(k.params),hash:li(T.hash),redirectedFrom:void 0,href:A})}let U;if("path"in O)U=fe({},O,{path:eo(n,O.path,K.path).path});else{const T=fe({},O.params);for(const k in T)T[k]==null&&delete T[k];U=fe({},O,{params:f(T)}),K.params=f(K.params)}const q=t.resolve(U,K),ce=O.hash||"";q.params=u(h(q.params));const m=t_(s,fe({},O,{hash:B_(ce),path:q.path})),v=r.createHref(m);return fe({fullPath:m,hash:ce,query:s===vc?V_(O.query):O.query||{}},q,{redirectedFrom:void 0,href:v})}function p(O){return typeof O=="string"?eo(n,O,l.value.path):fe({},O)}function C(O,K){if(c!==O)return ps(8,{from:K,to:O})}function b(O){return I(O)}function S(O){return b(fe(p(O),{replace:!0}))}function x(O){const K=O.matched[O.matched.length-1];if(K&&K.redirect){const{redirect:U}=K;let q=typeof U=="function"?U(O):U;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=p(q):{path:q},q.params={}),fe({query:O.query,hash:O.hash,params:"path"in q?{}:O.params},q)}}function I(O,K){const U=c=y(O),q=l.value,ce=O.state,m=O.force,v=O.replace===!0,T=x(U);if(T)return I(fe(p(T),{state:typeof T=="object"?fe({},ce,T.state):ce,force:m,replace:v}),K||U);const k=U;k.redirectedFrom=K;let A;return!m&&n_(s,q,U)&&(A=ps(16,{to:k,from:q}),Ie(q,q,!0,!1)),(A?Promise.resolve(A):M(k,q)).catch($=>Ht($)?Ht($,2)?$:Ke($):Y($,k,q)).then($=>{if($){if(Ht($,2))return I(fe({replace:v},p($.to),{state:typeof $.to=="object"?fe({},ce,$.to.state):ce,force:m}),K||k)}else $=B(k,q,!0,v,ce);return D(k,q,$),$})}function P(O,K){const U=C(O,K);return U?Promise.reject(U):Promise.resolve()}function F(O){const K=Wn.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(O):O()}function M(O,K){let U;const[q,ce,m]=Z_(O,K);U=to(q.reverse(),"beforeRouteLeave",O,K);for(const T of q)T.leaveGuards.forEach(k=>{U.push(cn(k,O,K))});const v=P.bind(null,O,K);return U.push(v),Le(U).then(()=>{U=[];for(const T of i.list())U.push(cn(T,O,K));return U.push(v),Le(U)}).then(()=>{U=to(ce,"beforeRouteUpdate",O,K);for(const T of ce)T.updateGuards.forEach(k=>{U.push(cn(k,O,K))});return U.push(v),Le(U)}).then(()=>{U=[];for(const T of m)if(T.beforeEnter)if(kt(T.beforeEnter))for(const k of T.beforeEnter)U.push(cn(k,O,K));else U.push(cn(T.beforeEnter,O,K));return U.push(v),Le(U)}).then(()=>(O.matched.forEach(T=>T.enterCallbacks={}),U=to(m,"beforeRouteEnter",O,K),U.push(v),Le(U))).then(()=>{U=[];for(const T of o.list())U.push(cn(T,O,K));return U.push(v),Le(U)}).catch(T=>Ht(T,8)?T:Promise.reject(T))}function D(O,K,U){a.list().forEach(q=>F(()=>q(O,K,U)))}function B(O,K,U,q,ce){const m=C(O,K);if(m)return m;const v=K===At,T=Yn?history.state:{};U&&(q||v?r.replace(O.fullPath,fe({scroll:v&&T&&T.scroll},ce)):r.push(O.fullPath,ce)),l.value=O,Ie(O,K,U,v),Ke()}let V;function _(){V||(V=r.listen((O,K,U)=>{if(!br.listening)return;const q=y(O),ce=x(q);if(ce){I(fe(ce,{replace:!0}),q).catch(Ns);return}c=q;const m=l.value;Yn&&u_(uc(m.fullPath,U.delta),Ai()),M(q,m).catch(v=>Ht(v,12)?v:Ht(v,2)?(I(v.to,q).then(T=>{Ht(T,20)&&!U.delta&&U.type===sr.pop&&r.go(-1,!1)}).catch(Ns),Promise.reject()):(U.delta&&r.go(-U.delta,!1),Y(v,q,m))).then(v=>{v=v||B(q,m,!1),v&&(U.delta&&!Ht(v,8)?r.go(-U.delta,!1):U.type===sr.pop&&Ht(v,20)&&r.go(-1,!1)),D(q,m,v)}).catch(Ns)}))}let R=Es(),N=Es(),Q;function Y(O,K,U){Ke(O);const q=N.list();return q.length?q.forEach(ce=>ce(O,K,U)):console.error(O),Promise.reject(O)}function ne(){return Q&&l.value!==At?Promise.resolve():new Promise((O,K)=>{R.add([O,K])})}function Ke(O){return Q||(Q=!O,_(),R.list().forEach(([K,U])=>O?U(O):K()),R.reset()),O}function Ie(O,K,U,q){const{scrollBehavior:ce}=e;if(!Yn||!ce)return Promise.resolve();const m=!U&&f_(uc(O.fullPath,0))||(q||!U)&&history.state&&history.state.scroll||null;return Mt().then(()=>ce(O,K,m)).then(v=>v&&c_(v)).catch(v=>Y(v,O,K))}const Oe=O=>r.go(O);let Kn;const Wn=new Set,br={currentRoute:l,listening:!0,addRoute:d,removeRoute:g,hasRoute:E,getRoutes:w,resolve:y,options:e,push:b,replace:S,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:N.add,isReady:ne,install(O){const K=this;O.component("RouterLink",J_),O.component("RouterView",fh),O.config.globalProperties.$router=K,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>ue(l)}),Yn&&!Kn&&l.value===At&&(Kn=!0,b(r.location).catch(ce=>{}));const U={};for(const ce in At)Object.defineProperty(U,ce,{get:()=>l.value[ce],enumerable:!0});O.provide(Fa,K),O.provide(Ua,pr(U)),O.provide(zo,l);const q=O.unmount;Wn.add(O),O.unmount=function(){Wn.delete(O),Wn.size<1&&(c=At,V&&V(),V=null,l.value=At,Kn=!1,Q=!1),q()}}};function Le(O){return O.reduce((K,U)=>K.then(()=>F(U)),Promise.resolve())}return br}function Z_(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;ods(c,a))?s.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>ds(c,l))||r.push(l))}return[n,s,r]}function ew(){return Ne(Ua)}const qe={layout:"admin"},Je={layout:"admin"},Ge={layout:"admin"},Xe={layout:"admin"},Qe={layout:"admin"},Ye={layout:"admin"},Ze={layout:"admin"},et={layout:"admin"},tt={layout:"clean"},nt={layout:"admin"},st={layout:"admin"},rt={layout:"admin"},Cc=[{name:"icons-page",path:"/_icons",meta:{layout:"svg-sprite"},alias:[],redirect:void 0,component:()=>me(()=>import("./icons-page.acf9f24a.js"),["./icons-page.acf9f24a.js","./svg-icon.vue.63a39a8a.js","./_plugin-vue_export-helper.c27b6911.js","./icons-page.9e76990f.css"],import.meta.url).then(e=>e.default||e)},{name:(qe==null?void 0:qe.name)??"admin-atendimento",path:(qe==null?void 0:qe.path)??"/admin/atendimento",meta:qe||{},alias:(qe==null?void 0:qe.alias)||[],redirect:(qe==null?void 0:qe.redirect)||void 0,component:()=>me(()=>import("./atendimento.4722c4e6.js"),["./atendimento.4722c4e6.js","./index.esm.33181a6c.js","./svg-icon.vue.63a39a8a.js","./index.39a1a279.js"],import.meta.url).then(e=>e.default||e)},{path:(Ye==null?void 0:Ye.path)??"/admin/configuracoes",children:[{name:(Je==null?void 0:Je.name)??"admin-configuracoes-index",path:(Je==null?void 0:Je.path)??"",meta:Je||{},alias:(Je==null?void 0:Je.alias)||[],redirect:(Je==null?void 0:Je.redirect)||void 0,component:()=>me(()=>import("./index.266c8494.js"),["./index.266c8494.js","./index.esm.33181a6c.js","./svg-icon.vue.63a39a8a.js","./index.39a1a279.js","./useToast.9f86379c.js"],import.meta.url).then(e=>e.default||e)},{name:(Ge==null?void 0:Ge.name)??"admin-configuracoes-index-login-por-rede-social",path:(Ge==null?void 0:Ge.path)??"login-por-rede-social",meta:Ge||{},alias:(Ge==null?void 0:Ge.alias)||[],redirect:(Ge==null?void 0:Ge.redirect)||void 0,component:()=>me(()=>import("./login-por-rede-social.2c9ce330.js"),[],import.meta.url).then(e=>e.default||e)},{name:(Xe==null?void 0:Xe.name)??"admin-configuracoes-index-usuario",path:(Xe==null?void 0:Xe.path)??"usuario",meta:Xe||{},alias:(Xe==null?void 0:Xe.alias)||[],redirect:(Xe==null?void 0:Xe.redirect)||void 0,component:()=>me(()=>import("./usuario.d889d702.js"),["./usuario.d889d702.js","./index.esm.33181a6c.js","./svg-icon.vue.63a39a8a.js","./index.39a1a279.js","./useToast.9f86379c.js"],import.meta.url).then(e=>e.default||e)},{name:(Qe==null?void 0:Qe.name)??"admin-configuracoes-index-usuarios",path:(Qe==null?void 0:Qe.path)??"usuarios",meta:Qe||{},alias:(Qe==null?void 0:Qe.alias)||[],redirect:(Qe==null?void 0:Qe.redirect)||void 0,component:()=>me(()=>import("./usuarios.ef132d55.js"),["./usuarios.ef132d55.js","./svg-icon.vue.63a39a8a.js","./Modal.vue.e1be9adf.js","./index.esm.33181a6c.js","./index.39a1a279.js","./useToast.9f86379c.js"],import.meta.url).then(e=>e.default||e)}],name:(Ye==null?void 0:Ye.name)??void 0,meta:Ye||{},alias:(Ye==null?void 0:Ye.alias)||[],redirect:(Ye==null?void 0:Ye.redirect)||void 0,component:()=>me(()=>import("./index.1bc119f3.js"),["./index.1bc119f3.js","./nuxt-link.e2312035.js"],import.meta.url).then(e=>e.default||e)},{name:(Ze==null?void 0:Ze.name)??"admin-feedbacks",path:(Ze==null?void 0:Ze.path)??"/admin/feedbacks",meta:Ze||{},alias:(Ze==null?void 0:Ze.alias)||[],redirect:(Ze==null?void 0:Ze.redirect)||void 0,component:()=>me(()=>import("./feedbacks.b746720b.js"),[],import.meta.url).then(e=>e.default||e)},{name:(et==null?void 0:et.name)??"admin",path:(et==null?void 0:et.path)??"/admin",meta:et||{},alias:(et==null?void 0:et.alias)||[],redirect:(et==null?void 0:et.redirect)||void 0,component:()=>me(()=>import("./index.790e8b1a.js"),[],import.meta.url).then(e=>e.default||e)},{name:(tt==null?void 0:tt.name)??"admin-login",path:(tt==null?void 0:tt.path)??"/admin/login",meta:tt||{},alias:(tt==null?void 0:tt.alias)||[],redirect:(tt==null?void 0:tt.redirect)||void 0,component:()=>me(()=>import("./login.4840a580.js"),["./login.4840a580.js","./svg-icon.vue.63a39a8a.js","./index.esm.33181a6c.js","./index.39a1a279.js","./useToast.9f86379c.js"],import.meta.url).then(e=>e.default||e)},{name:(nt==null?void 0:nt.name)??"admin-planos",path:(nt==null?void 0:nt.path)??"/admin/planos",meta:nt||{},alias:(nt==null?void 0:nt.alias)||[],redirect:(nt==null?void 0:nt.redirect)||void 0,component:()=>me(()=>import("./planos.402634d0.js"),["./planos.402634d0.js","./svg-icon.vue.63a39a8a.js","./index.esm.33181a6c.js","./index.39a1a279.js","./Modal.vue.e1be9adf.js","./usePlans.e7632eb0.js"],import.meta.url).then(e=>e.default||e)},{name:(st==null?void 0:st.name)??"admin-slide",path:(st==null?void 0:st.path)??"/admin/slide",meta:st||{},alias:(st==null?void 0:st.alias)||[],redirect:(st==null?void 0:st.redirect)||void 0,component:()=>me(()=>import("./slide.5eb48185.js"),[],import.meta.url).then(e=>e.default||e)},{name:(rt==null?void 0:rt.name)??"admin-vantagens",path:(rt==null?void 0:rt.path)??"/admin/vantagens",meta:rt||{},alias:(rt==null?void 0:rt.alias)||[],redirect:(rt==null?void 0:rt.redirect)||void 0,component:()=>me(()=>import("./vantagens.c042626a.js"),[],import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>me(()=>import("./index.74fe16dc.js"),["./index.74fe16dc.js","./svg-icon.vue.63a39a8a.js","./usePlans.e7632eb0.js"],import.meta.url).then(e=>e.default||e)}],tw={scrollBehavior(e,t,n){var c;const s=we(),r=((c=zn().options)==null?void 0:c.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&nw(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:Sc(e.hash),behavior:r}}const a=u=>!!(u.meta.pageTransition??Do),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{s.hooks.hookOnce(l,async()=>{await Mt(),e.hash&&(i={el:e.hash,top:Sc(e.hash),behavior:r}),u(i)})})}};function Sc(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function nw(e,t){const n=t.matched.every((s,r)=>{var i,o,a;return((i=s.components)==null?void 0:i.default)===((a=(o=e.matched[r])==null?void 0:o.components)==null?void 0:a.default)});return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const sw={},He={...sw,...tw},rw=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const s=we(),r=zn();if(([t,n]=ii(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const o=vr({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=r.beforeResolve(c=>{if(a(),c===e){const u=r.afterEach(async()=>{u(),await s.runWithContext(()=>es(o)),window.history.pushState({},"",e.fullPath)});return!1}})},iw=()=>{var e;return(e=we().$supabase)==null?void 0:e.client},hh=()=>{const e=iw(),t=Rv("supabase_user",()=>null);return e==null||e.auth.getSession().then(({data:{session:n}})=>{n?JSON.stringify(t.value)!==JSON.stringify(n.user)&&(t.value=n.user):t.value=null}),t},ow=["/admin/login"],aw=(e,t)=>{const n=hh();if(!ow.includes(e.path)&&e.path.startsWith("/admin")&&!n.value)return Tv(`/admin/login?redirectTo=${e.path}`)},lw=[rw,aw],Bs={};function cw(e,t,n){const{pathname:s,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){const c=i.includes(e.slice(o))?e.slice(o).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),Vl(u,"")}const a=Vl(s,e),l=!n||xm(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":r)+i}const uw=Bt({name:"nuxt:router",enforce:"pre",async setup(e){var w,E;let t,n,s=Ba().app.baseURL;He.hashMode&&!s.includes("#")&&(s+="#");const r=((w=He.history)==null?void 0:w.call(He,s))??(He.hashMode?g_(s):nh(s)),i=((E=He.routes)==null?void 0:E.call(He,Cc))??Cc;let o;const a=cw(s,window.location,e.payload.path),l=Y_({...He,scrollBehavior:(y,p,C)=>{var b;if(p===At){o=C;return}return l.options.scrollBehavior=He.scrollBehavior,(b=He.scrollBehavior)==null?void 0:b.call(He,y,At,o||C)},history:r,routes:i});e.vueApp.use(l);const c=Js(l.currentRoute.value);l.afterEach((y,p)=>{c.value=p}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=Js(l.resolve(a)),f=()=>{u.value=l.currentRoute.value};e.hook("page:finish",f),l.afterEach((y,p)=>{var C,b,S,x;((b=(C=y.matched[0])==null?void 0:C.components)==null?void 0:b.default)===((x=(S=p.matched[0])==null?void 0:S.components)==null?void 0:x.default)&&f()});const h={};for(const y in u.value)Object.defineProperty(h,y,{get:()=>u.value[y]});e._route=pr(h),e._middleware=e._middleware||{global:[],named:{}};const d=Oi();try{[t,n]=ii(()=>l.isReady()),await t,n()}catch(y){[t,n]=ii(()=>e.runWithContext(()=>es(y))),await t,n()}const g=e.payload.state._layout;return l.beforeEach(async(y,p)=>{var C;y.meta=Jt(y.meta),e.isHydrating&&g&&!Hn(y.meta.layout)&&(y.meta.layout=g),e._processingMiddleware=!0;{const b=new Set([...lw,...e._middleware.global]);for(const S of y.matched){const x=S.meta.middleware;if(x)if(Array.isArray(x))for(const I of x)b.add(I);else b.add(x)}for(const S of b){const x=typeof S=="string"?e._middleware.named[S]||await((C=Bs[S])==null?void 0:C.call(Bs).then(P=>P.default||P)):S;if(!x)throw new Error(`Unknown route middleware: '${S}'.`);const I=await e.runWithContext(()=>x(y,p));if(!e.payload.serverRendered&&e.isHydrating&&(I===!1||I instanceof Error)){const P=I||Bo({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await e.runWithContext(()=>es(P)),!1}if(I!==!0&&(I||I===!1))return I}}}),l.onError(()=>{delete e._processingMiddleware}),l.afterEach(async(y,p,C)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(Ev),y.matched.length===0&&await e.runWithContext(()=>es(Bo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=He.scrollBehavior}catch(y){await e.runWithContext(()=>es(y))}}),{provide:{router:l}}}});var fw=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const hw=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>fw(void 0,void 0,void 0,function*(){return yield(yield me(()=>Promise.resolve().then(()=>Ri),void 0,import.meta.url)).fetch(...n)}):t=fetch,(...n)=>t(...n)};class za extends Error{constructor(t,n="FunctionsError",s){super(t),this.name=n,this.context=s}}class dw extends za{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class pw extends za{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class gw extends za{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var mw=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};class yw{constructor(t,{headers:n={},customFetch:s}={}){this.url=t,this.headers=n,this.fetch=hw(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var s;return mw(this,void 0,void 0,function*(){try{const{headers:r,method:i,body:o}=n;let a={},l;o&&(r&&!Object.prototype.hasOwnProperty.call(r,"Content-Type")||!r)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",l=o):typeof o=="string"?(a["Content-Type"]="text/plain",l=o):typeof FormData<"u"&&o instanceof FormData?l=o:(a["Content-Type"]="application/json",l=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),r),body:l}).catch(d=>{throw new dw(d)}),u=c.headers.get("x-relay-error");if(u&&u==="true")throw new pw(c);if(!c.ok)throw new gw(c);let f=((s=c.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(r){return{data:null,error:r}}})}}var vw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vo={exports:{}};(function(e,t){var n=typeof self<"u"?self:vw,s=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(_){return _&&DataView.prototype.isPrototypeOf(_)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(_){return _&&c.indexOf(Object.prototype.toString.call(_))>-1};function f(_){if(typeof _!="string"&&(_=String(_)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(_))throw new TypeError("Invalid character in header field name");return _.toLowerCase()}function h(_){return typeof _!="string"&&(_=String(_)),_}function d(_){var R={next:function(){var N=_.shift();return{done:N===void 0,value:N}}};return a.iterable&&(R[Symbol.iterator]=function(){return R}),R}function g(_){this.map={},_ instanceof g?_.forEach(function(R,N){this.append(N,R)},this):Array.isArray(_)?_.forEach(function(R){this.append(R[0],R[1])},this):_&&Object.getOwnPropertyNames(_).forEach(function(R){this.append(R,_[R])},this)}g.prototype.append=function(_,R){_=f(_),R=h(R);var N=this.map[_];this.map[_]=N?N+", "+R:R},g.prototype.delete=function(_){delete this.map[f(_)]},g.prototype.get=function(_){return _=f(_),this.has(_)?this.map[_]:null},g.prototype.has=function(_){return this.map.hasOwnProperty(f(_))},g.prototype.set=function(_,R){this.map[f(_)]=h(R)},g.prototype.forEach=function(_,R){for(var N in this.map)this.map.hasOwnProperty(N)&&_.call(R,this.map[N],N,this)},g.prototype.keys=function(){var _=[];return this.forEach(function(R,N){_.push(N)}),d(_)},g.prototype.values=function(){var _=[];return this.forEach(function(R){_.push(R)}),d(_)},g.prototype.entries=function(){var _=[];return this.forEach(function(R,N){_.push([N,R])}),d(_)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function w(_){if(_.bodyUsed)return Promise.reject(new TypeError("Already read"));_.bodyUsed=!0}function E(_){return new Promise(function(R,N){_.onload=function(){R(_.result)},_.onerror=function(){N(_.error)}})}function y(_){var R=new FileReader,N=E(R);return R.readAsArrayBuffer(_),N}function p(_){var R=new FileReader,N=E(R);return R.readAsText(_),N}function C(_){for(var R=new Uint8Array(_),N=new Array(R.length),Q=0;Q-1?R:_}function P(_,R){R=R||{};var N=R.body;if(_ instanceof P){if(_.bodyUsed)throw new TypeError("Already read");this.url=_.url,this.credentials=_.credentials,R.headers||(this.headers=new g(_.headers)),this.method=_.method,this.mode=_.mode,this.signal=_.signal,!N&&_._bodyInit!=null&&(N=_._bodyInit,_.bodyUsed=!0)}else this.url=String(_);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new g(R.headers)),this.method=I(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function F(_){var R=new FormData;return _.trim().split("&").forEach(function(N){if(N){var Q=N.split("="),Y=Q.shift().replace(/\+/g," "),ne=Q.join("=").replace(/\+/g," ");R.append(decodeURIComponent(Y),decodeURIComponent(ne))}}),R}function M(_){var R=new g,N=_.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(Q){var Y=Q.split(":"),ne=Y.shift().trim();if(ne){var Ke=Y.join(":").trim();R.append(ne,Ke)}}),R}S.call(P.prototype);function D(_,R){R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in R?R.statusText:"OK",this.headers=new g(R.headers),this.url=R.url||"",this._initBody(_)}S.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},D.error=function(){var _=new D(null,{status:0,statusText:""});return _.type="error",_};var B=[301,302,303,307,308];D.redirect=function(_,R){if(B.indexOf(R)===-1)throw new RangeError("Invalid status code");return new D(null,{status:R,headers:{location:_}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(R,N){this.message=R,this.name=N;var Q=Error(R);this.stack=Q.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function V(_,R){return new Promise(function(N,Q){var Y=new P(_,R);if(Y.signal&&Y.signal.aborted)return Q(new o.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function Ke(){ne.abort()}ne.onload=function(){var Ie={status:ne.status,statusText:ne.statusText,headers:M(ne.getAllResponseHeaders()||"")};Ie.url="responseURL"in ne?ne.responseURL:Ie.headers.get("X-Request-URL");var Oe="response"in ne?ne.response:ne.responseText;N(new D(Oe,Ie))},ne.onerror=function(){Q(new TypeError("Network request failed"))},ne.ontimeout=function(){Q(new TypeError("Network request failed"))},ne.onabort=function(){Q(new o.DOMException("Aborted","AbortError"))},ne.open(Y.method,Y.url,!0),Y.credentials==="include"?ne.withCredentials=!0:Y.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&a.blob&&(ne.responseType="blob"),Y.headers.forEach(function(Ie,Oe){ne.setRequestHeader(Oe,Ie)}),Y.signal&&(Y.signal.addEventListener("abort",Ke),ne.onreadystatechange=function(){ne.readyState===4&&Y.signal.removeEventListener("abort",Ke)}),ne.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return V.polyfill=!0,i.fetch||(i.fetch=V,i.Headers=g,i.Request=P,i.Response=D),o.Headers=g,o.Request=P,o.Response=D,o.fetch=V,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var r=s;t=r.fetch,t.default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t})(Vo,Vo.exports);var Va=Vo.exports;const Ka=_w(Va),Ri=yd({__proto__:null,default:Ka},[Va]);class ww{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Ka:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const s=this.fetch;let r=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let c=null,u=null,f=null,h=i.status,d=i.statusText;if(i.ok){if(this.method!=="HEAD"){const y=await i.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=y:u=JSON.parse(y))}const w=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),E=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");w&&E&&E.length>1&&(f=parseInt(E[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(c={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,f=null,h=406,d="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const w=await i.text();try{c=JSON.parse(w),Array.isArray(c)&&i.status===404&&(u=[],c=null,h=200,d="OK")}catch{i.status===404&&w===""?(h=204,d="No Content"):c={message:w}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("Results contain 0 rows"))&&(c=null,h=200,d="OK"),c&&this.shouldThrowOnError)throw c}return{error:c,data:u,count:f,status:h,statusText:d}});return this.shouldThrowOnError||(r=r.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),r.then(t,n)}}class bw extends ww{select(t){let n=!1;const s=(t??"*").split("").map(r=>/\s/.test(r)&&!n?"":(r==='"'&&(n=!n),r)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:s,foreignTable:r}={}){const i=r?`${r}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${n?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:s}={}){const r=typeof s>"u"?"offset":`${s}.offset`,i=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(r,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:s=!1,buffers:r=!1,wal:i=!1,format:o="text"}={}){const a=[t?"analyze":null,n?"verbose":null,s?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=this.headers.Accept;return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Zn extends bw{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const s=n.map(r=>typeof r=="string"&&new RegExp("[,()]").test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${s})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:s,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const o=s===void 0?"":`(${s})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,s])=>{this.url.searchParams.append(n,`eq.${s}`)}),this}not(t,n,s){return this.url.searchParams.append(t,`not.${n}.${s}`),this}or(t,{foreignTable:n}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,s){return this.url.searchParams.append(t,`${n}.${s}`),this}}class Tw{constructor(t,{headers:n={},schema:s,fetch:r}){this.url=t,this.headers=n,this.schema=s,this.fetch=r}select(t,{head:n=!1,count:s}={}){const r=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),s&&(this.headers.Prefer=`count=${s}`),new Zn({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:s=!0}={}){const r="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),s||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Zn({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:s=!1,count:r,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${s?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),r&&a.push(`count=${r}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new Zn({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const s="PATCH",r=[];return this.headers.Prefer&&r.push(this.headers.Prefer),n&&r.push(`count=${n}`),this.headers.Prefer=r.join(","),new Zn({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",s=[];return t&&s.push(`count=${t}`),this.headers.Prefer&&s.unshift(this.headers.Prefer),this.headers.Prefer=s.join(","),new Zn({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const Ew="1.7.2",Cw={"X-Client-Info":`postgrest-js/${Ew}`};class Sw{constructor(t,{headers:n={},schema:s,fetch:r}={}){this.url=t,this.headers=Object.assign(Object.assign({},Cw),n),this.schema=s,this.fetch=r}from(t){const n=new URL(`${this.url}/${t}`);return new Tw(n,{headers:Object.assign({},this.headers),schema:this.schema,fetch:this.fetch})}rpc(t,n={},{head:s=!1,count:r}={}){let i;const o=new URL(`${this.url}/rpc/${t}`);let a;s?(i="HEAD",Object.entries(n).forEach(([c,u])=>{o.searchParams.append(c,`${u}`)})):(i="POST",a=n);const l=Object.assign({},this.headers);return r&&(l.Prefer=`count=${r}`),new Zn({method:i,url:o,headers:l,schema:this.schema,body:a,fetch:this.fetch,allowEmpty:!1})}}var no,Pc;function Pw(){if(Pc)return no;Pc=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return no=function(){if(this)return this;if(typeof globalThis=="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),no}const kw="websocket",Ow="Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",Aw=["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],Rw="Brian McKelvey (https://github.com/theturtle32)",xw=["Iñaki Baz Castillo (http://dev.sipdoc.net)"],$w="1.0.34",Iw={type:"git",url:"https://github.com/theturtle32/WebSocket-Node.git"},Lw="https://github.com/theturtle32/WebSocket-Node",jw={node:">=4.0.0"},Dw={bufferutil:"^4.0.1",debug:"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2",yaeti:"^0.0.6"},Nw={"buffer-equal":"^1.0.0",gulp:"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1",jshint:"^2.0.0",tape:"^4.9.1"},Mw={verbose:!1},Bw={test:"tape test/unit/*.js",gulp:"gulp"},Hw="index",Fw={lib:"./lib"},Uw="lib/browser.js",zw="Apache-2.0",Vw={name:kw,description:Ow,keywords:Aw,author:Rw,contributors:xw,version:$w,repository:Iw,homepage:Lw,engines:jw,dependencies:Dw,devDependencies:Nw,config:Mw,scripts:Bw,main:Hw,directories:Fw,browser:Uw,license:zw};var Kw=Vw.version,$n;if(typeof globalThis=="object")$n=globalThis;else try{$n=Pw()}catch{}finally{if(!$n&&typeof window<"u"&&($n=window),!$n)throw new Error("Could not determine global this")}var rr=$n.WebSocket||$n.MozWebSocket,Ww=Kw;function dh(e,t){var n;return t?n=new rr(e,t):n=new rr(e),n}rr&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(dh,e,{get:function(){return rr[e]}})});var qw={w3cwebsocket:rr?dh:null,version:Ww};const Jw="2.7.3",Gw={"X-Client-Info":`realtime-js/${Jw}`},Xw="1.0.0",ph=1e4,Qw=1e3;var Hs;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Hs||(Hs={}));var it;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(it||(it={}));var _t;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(_t||(_t={}));var Ko;(function(e){e.websocket="websocket"})(Ko||(Ko={}));var In;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(In||(In={}));class gh{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class Yw{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),s=new TextDecoder;return this._decodeBroadcast(t,n,s)}_decodeBroadcast(t,n,s){const r=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=s.decode(t.slice(o,o+r));o=o+r;const l=s.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(s.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class so{constructor(t,n,s={},r=ph){this.channel=t,this.event=n,this.payload=s,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null,this.rateLimited=!1}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){if(this._hasReceived("timeout"))return;this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()})==="rate limited"&&(this.rateLimited=!0)}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var s;return this._hasReceived(t)&&n((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var kc;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(kc||(kc={}));class Fs{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},r=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Fs.syncState(this.state,r,i,o),this.pendingDiffs.forEach(l=>{this.state=Fs.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(s.diff,{},r=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=Fs.syncDiff(this.state,r,i,o),a())}),this.onJoin((r,i,o)=>{this.channel._trigger("presence",{event:"join",key:r,currentPresences:i,newPresences:o})}),this.onLeave((r,i,o)=>{this.channel._trigger("presence",{event:"leave",key:r,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,s,r){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const f=i[c];if(f){const h=u.map(E=>E.presence_ref),d=f.map(E=>E.presence_ref),g=u.filter(E=>d.indexOf(E.presence_ref)<0),w=f.filter(E=>h.indexOf(E.presence_ref)<0);g.length>0&&(a[c]=g),w.length>0&&(l[c]=w)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},s,r)}static syncDiff(t,n,s,r){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return s||(s=()=>{}),r||(r=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const f=t[a].map(d=>d.presence_ref),h=u.filter(d=>f.indexOf(d.presence_ref)<0);t[a].unshift(...h)}s(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(f=>f.presence_ref);c=c.filter(f=>u.indexOf(f.presence_ref)<0),t[a]=c,r(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(s=>n(s,t[s]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,s)=>{const r=t[s];return"metas"in r?n[s]=r.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[s]=r,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var ge;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ge||(ge={}));const Oc=(e,t,n={})=>{var s;const r=(s=n.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(t).reduce((i,o)=>(i[o]=Zw(o,e,t,r),i),{})},Zw=(e,t,n,s)=>{const r=t.find(a=>a.name===e),i=r==null?void 0:r.type,o=n[e];return i&&!s.includes(i)?mh(i,o):Wo(o)},mh=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return sb(t,n)}switch(e){case ge.bool:return eb(t);case ge.float4:case ge.float8:case ge.int2:case ge.int4:case ge.int8:case ge.numeric:case ge.oid:return tb(t);case ge.json:case ge.jsonb:return nb(t);case ge.timestamp:return rb(t);case ge.abstime:case ge.date:case ge.daterange:case ge.int4range:case ge.int8range:case ge.money:case ge.reltime:case ge.text:case ge.time:case ge.timestamptz:case ge.timetz:case ge.tsrange:case ge.tstzrange:return Wo(t);default:return Wo(t)}},Wo=e=>e,eb=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},tb=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},nb=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},sb=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,s=e[n];if(e[0]==="{"&&s==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>mh(t,a))}return e},rb=e=>typeof e=="string"?e.replace(" ","T"):e;var Ac=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})},Rc;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Rc||(Rc={}));var xc;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(xc||(xc={}));var $c;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})($c||($c={}));class Wa{constructor(t,n={config:{}},s){this.topic=t,this.params=n,this.socket=s,this.bindings={},this.state=it.closed,this.joinedOnce=!1,this.pushBuffer=[],this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},n.config),this.timeout=this.socket.timeout,this.joinPush=new so(this,_t.join,this.params,this.timeout),this.rejoinTimer=new gh(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=it.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=it.closed,this.socket._remove(this)}),this._onError(r=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,r),this.state=it.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=it.errored,this.rejoinTimer.scheduleTimeout())}),this._on(_t.reply,{},(r,i)=>{this._trigger(this._replyEventName(i),r)}),this.presence=new Fs(this)}subscribe(t,n=this.timeout){var s,r;if(this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o}}=this.params;this._onError(c=>t&&t("CHANNEL_ERROR",c)),this._onClose(()=>t&&t("CLOSED"));const a={},l={broadcast:i,presence:o,postgres_changes:(r=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(c=>c.filter))!==null&&r!==void 0?r:[]};this.socket.accessToken&&(a.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},a)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:c})=>{var u;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),c===void 0){t&&t("SUBSCRIBED");return}else{const f=this.bindings.postgres_changes,h=(u=f==null?void 0:f.length)!==null&&u!==void 0?u:0,d=[];for(let g=0;g{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}track(t,n={}){return Ac(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)})}untrack(t={}){return Ac(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"untrack"},t)})}on(t,n,s){return this._on(t,n,s)}send(t,n={}){return new Promise(s=>{var r,i,o;const a=this._push(t.type,t,n.timeout||this.timeout);a.rateLimited&&s("rate limited"),t.type==="broadcast"&&!(!((o=(i=(r=this.params)===null||r===void 0?void 0:r.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.ack)&&s("ok"),a.receive("ok",()=>s("ok")),a.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=it.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(_t.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(s=>{const r=new so(this,_t.leave,{},t);r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})})}_push(t,n,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let r=new so(this,t,n,s);return this._canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}_onMessage(t,n,s){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,s){var r,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=_t;if(s&&[a,l,c,u].indexOf(o)>=0&&s!==this._joinRef())return;let h=this._onMessage(o,n,s);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(r=this.bindings.postgres_changes)===null||r===void 0||r.filter(d=>{var g,w,E;return((g=d.filter)===null||g===void 0?void 0:g.event)==="*"||((E=(w=d.filter)===null||w===void 0?void 0:w.event)===null||E===void 0?void 0:E.toLocaleLowerCase())===o}).map(d=>d.callback(h,s)):(i=this.bindings[o])===null||i===void 0||i.filter(d=>{var g,w,E,y,p,C;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in d){const b=d.id,S=(g=d.filter)===null||g===void 0?void 0:g.event;return b&&((w=n.ids)===null||w===void 0?void 0:w.includes(b))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((E=n.data)===null||E===void 0?void 0:E.type.toLocaleLowerCase()))}else{const b=(p=(y=d==null?void 0:d.filter)===null||y===void 0?void 0:y.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return b==="*"||b===((C=n==null?void 0:n.event)===null||C===void 0?void 0:C.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===o}).map(d=>{if(typeof h=="object"&&"ids"in h){const g=h.data,{schema:w,table:E,commit_timestamp:y,type:p,errors:C}=g;h=Object.assign(Object.assign({},{schema:w,table:E,commit_timestamp:y,eventType:p,new:{},old:{},errors:C}),this._getPayloadRecords(g))}d.callback(h,s)})}_isClosed(){return this.state===it.closed}_isJoined(){return this.state===it.joined}_isJoining(){return this.state===it.joining}_isLeaving(){return this.state===it.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,s){const r=t.toLocaleLowerCase(),i={type:r,filter:n,callback:s};return this.bindings[r]?this.bindings[r].push(i):this.bindings[r]=[i],this}_off(t,n){const s=t.toLocaleLowerCase();return this.bindings[s]=this.bindings[s].filter(r=>{var i;return!(((i=r.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===s&&Wa.isEqual(r.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(t[s]!==n[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(_t.close,{},t)}_onError(t){this._on(_t.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=it.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Oc(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Oc(t.columns,t.old_record)),n}}var ro=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const ib=()=>{};class ob{constructor(t,n){var s;this.accessToken=null,this.channels=[],this.endPoint="",this.headers=Gw,this.params={},this.timeout=ph,this.transport=qw.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=ib,this.conn=null,this.sendBuffer=[],this.serializer=new Yw,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.eventsPerSecondLimitMs=100,this.inThrottle=!1,this.endPoint=`${t}/${Ko.websocket}`,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.transport&&(this.transport=n.transport),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const r=(s=n==null?void 0:n.params)===null||s===void 0?void 0:s.eventsPerSecond;r&&(this.eventsPerSecondLimitMs=Math.floor(1e3/r)),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(i,o)=>o(JSON.stringify(i)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new gh(()=>ro(this,void 0,void 0,function*(){this.disconnect(),this.connect()}),this.reconnectAfterMs)}connect(){this.conn||(this.conn=new this.transport(this._endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t)))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}removeChannel(t){return ro(this,void 0,void 0,function*(){const n=yield t.unsubscribe();return this.channels.length===0&&this.disconnect(),n})}removeAllChannels(){return ro(this,void 0,void 0,function*(){const t=yield Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t})}log(t,n,s){this.logger(t,n,s)}connectionState(){switch(this.conn&&this.conn.readyState){case Hs.connecting:return In.Connecting;case Hs.open:return In.Open;case Hs.closing:return In.Closing;default:return In.Closed}}isConnected(){return this.connectionState()===In.Open}channel(t,n={config:{}}){this.isConnected()||this.connect();const s=new Wa(`realtime:${t}`,n,this);return this.channels.push(s),s}push(t){const{topic:n,event:s,payload:r,ref:i}=t;let o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};if(this.log("push",`${n} ${s} (${i})`,r),this.isConnected())if(["broadcast","presence","postgres_changes"].includes(s)){if(this._throttle(o)())return"rate limited"}else o();else this.sendBuffer.push(o)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(_t.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(s=>s.topic===t&&(s._isJoined()||s._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Xw}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:s,event:r,payload:i,ref:o}=n;(o&&o===this.pendingHeartbeatRef||r===(i==null?void 0:i.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${s} ${r} ${o&&"("+o+")"||""}`,i),this.channels.filter(a=>a._isMember(s)).forEach(a=>a._trigger(r,i,o)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(_t.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const s=t.match(/\?/)?"&":"?",r=new URLSearchParams(n);return`${t}${s}${r}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(Qw,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_throttle(t,n=this.eventsPerSecondLimitMs){return()=>this.inThrottle?!0:(t(),n>0&&(this.inThrottle=!0,setTimeout(()=>{this.inThrottle=!1},n)),!1)}}class qa extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function je(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class ab extends qa{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Ic extends qa{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var yh=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const vh=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>yh(void 0,void 0,void 0,function*(){return yield(yield me(()=>Promise.resolve().then(()=>Ri),void 0,import.meta.url)).fetch(...n)}):t=fetch,(...n)=>t(...n)},lb=()=>yh(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield me(()=>Promise.resolve().then(()=>Ri),void 0,import.meta.url)).Response:Response});var _s=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const io=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),cb=(e,t)=>_s(void 0,void 0,void 0,function*(){const n=yield lb();e instanceof n?e.json().then(s=>{t(new ab(io(s),e.status||500))}).catch(s=>{t(new Ic(io(s),s))}):t(new Ic(io(e),e))}),ub=(e,t,n,s)=>{const r={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?r:(r.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r.body=JSON.stringify(s),Object.assign(Object.assign({},r),n))};function xi(e,t,n,s,r,i){return _s(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,ub(t,s,r,i)).then(l=>{if(!l.ok)throw l;return s!=null&&s.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>cb(l,a))})})}function qo(e,t,n,s){return _s(this,void 0,void 0,function*(){return xi(e,"GET",t,n,s)})}function un(e,t,n,s,r){return _s(this,void 0,void 0,function*(){return xi(e,"POST",t,s,r,n)})}function fb(e,t,n,s,r){return _s(this,void 0,void 0,function*(){return xi(e,"PUT",t,s,r,n)})}function _h(e,t,n,s,r){return _s(this,void 0,void 0,function*(){return xi(e,"DELETE",t,s,r,n)})}var ht=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const hb={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Lc={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class db{constructor(t,n={},s,r){this.url=t,this.headers=n,this.bucketId=s,this.fetch=vh(r)}uploadOrUpdate(t,n,s,r){return ht(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Lc),r),a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});typeof Blob<"u"&&s instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",s)):typeof FormData<"u"&&s instanceof FormData?(i=s,i.append("cacheControl",o.cacheControl)):(i=s,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType);const l=this._removeEmptyFolders(n),c=this._getFinalPath(l),u=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return u.ok?{data:{path:l},error:null}:{data:null,error:yield u.json()}}catch(i){if(je(i))return{data:null,error:i};throw i}})}upload(t,n,s){return ht(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,s)})}uploadToSignedUrl(t,n,s,r){return ht(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:Lc.upsert},r),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&s instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",s)):typeof FormData<"u"&&s instanceof FormData?(l=s,l.append("cacheControl",c.cacheControl)):(l=s,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:u});return f.ok?{data:{path:i},error:null}:{data:null,error:yield f.json()}}catch(l){if(je(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return ht(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const s=yield un(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:this.headers}),r=new URL(this.url+s.url),i=r.searchParams.get("token");if(!i)throw new qa("No token returned by API");return{data:{signedUrl:r.toString(),path:t,token:i},error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}})}update(t,n,s){return ht(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,s)})}move(t,n){return ht(this,void 0,void 0,function*(){try{return{data:yield un(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers}),error:null}}catch(s){if(je(s))return{data:null,error:s};throw s}})}copy(t,n){return ht(this,void 0,void 0,function*(){try{return{data:{path:(yield un(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers})).Key},error:null}}catch(s){if(je(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,s){return ht(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t),i=yield un(this.fetch,`${this.url}/object/sign/${r}`,Object.assign({expiresIn:n},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const o=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(r){if(je(r))return{data:null,error:r};throw r}})}createSignedUrls(t,n,s){return ht(this,void 0,void 0,function*(){try{const r=yield un(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:r.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(r){if(je(r))return{data:null,error:r};throw r}})}download(t,n){return ht(this,void 0,void 0,function*(){const r=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield qo(this.fetch,`${this.url}/${r}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(je(a))return{data:null,error:a};throw a}})}getPublicUrl(t,n){const s=this._getFinalPath(t),r=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&r.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&r.push(l);let c=r.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${s}${c}`)}}}remove(t){return ht(this,void 0,void 0,function*(){try{return{data:yield _h(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}})}list(t,n,s){return ht(this,void 0,void 0,function*(){try{const r=Object.assign(Object.assign(Object.assign({},hb),n),{prefix:t||""});return{data:yield un(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers},s),error:null}}catch(r){if(je(r))return{data:null,error:r};throw r}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const pb="2.5.1",gb={"X-Client-Info":`storage-js/${pb}`};var Gn=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};class mb{constructor(t,n={},s){this.url=t,this.headers=Object.assign(Object.assign({},gb),n),this.fetch=vh(s)}listBuckets(){return Gn(this,void 0,void 0,function*(){try{return{data:yield qo(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(je(t))return{data:null,error:t};throw t}})}getBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield qo(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Gn(this,void 0,void 0,function*(){try{return{data:yield un(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(je(s))return{data:null,error:s};throw s}})}updateBucket(t,n){return Gn(this,void 0,void 0,function*(){try{return{data:yield fb(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(je(s))return{data:null,error:s};throw s}})}emptyBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield un(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Gn(this,void 0,void 0,function*(){try{return{data:yield _h(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(je(n))return{data:null,error:n};throw n}})}}class yb extends mb{constructor(t,n={},s){super(t,n,s)}from(t){return new db(this.url,this.headers,t,this.fetch)}}const vb="2.31.0",_b={"X-Client-Info":`supabase-js/${vb}`};var wb=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const bb=e=>{let t;return e?t=e:typeof fetch>"u"?t=Ka:t=fetch,(...n)=>t(...n)},Tb=()=>typeof Headers>"u"?Va.Headers:Headers,Eb=(e,t,n)=>{const s=bb(n),r=Tb();return(i,o)=>wb(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new r(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),s(i,Object.assign(Object.assign({},o),{headers:c}))})};function Cb(e){return e.replace(/\/$/,"")}function Sb(e,t){const{db:n,auth:s,realtime:r,global:i}=e,{db:o,auth:a,realtime:l,global:c}=t;return{db:Object.assign(Object.assign({},o),n),auth:Object.assign(Object.assign({},a),s),realtime:Object.assign(Object.assign({},l),r),global:Object.assign(Object.assign({},c),i)}}function Pb(e){return Math.round(Date.now()/1e3)+e}function kb(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Ut=()=>typeof document<"u",Sn={tested:!1,writable:!1},Kr=()=>{if(!Ut())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Sn.tested)return Sn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Sn.tested=!0,Sn.writable=!0}catch{Sn.tested=!0,Sn.writable=!1}return Sn.writable};function oo(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((r,i)=>{t[i]=r})}catch{}return n.searchParams.forEach((s,r)=>{t[r]=s}),t}const wh=e=>{let t;return e?t=e:typeof fetch>"u"?t=async(...n)=>await(await me(()=>Promise.resolve().then(()=>Ri),void 0,import.meta.url)).fetch(...n):t=fetch,(...n)=>t(...n)},Ob=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Cs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Lr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ao=async(e,t)=>{await e.removeItem(t)};function Ab(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",s,r,i,o,a,l,c,u=0;for(e=e.replace("-","+").replace("_","/");u>4,r=(a&15)<<4|l>>2,i=(l&3)<<6|c,n=n+String.fromCharCode(s),l!=64&&r!=0&&(n=n+String.fromCharCode(r)),c!=64&&i!=0&&(n=n+String.fromCharCode(i));return n}class $i{constructor(){this.promise=new $i.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}$i.promiseConstructor=Promise;function jc(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const s=n[1];return JSON.parse(Ab(s))}async function bh(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Rb(e,t){return new Promise((s,r)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){s(o);return}}catch(o){if(!t(i,o)){r(o);return}}})()})}function xb(e){return("0"+e.toString(16)).substr(-2)}function jr(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=n.length;let r="";for(let i=0;i<56;i++)r+=n.charAt(Math.floor(Math.random()*s));return r}return crypto.getRandomValues(t),Array.from(t,xb).join("")}async function $b(e){const n=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",n),r=new Uint8Array(s);return Array.from(r).map(i=>String.fromCharCode(i)).join("")}function Ib(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Dr(e){if(typeof crypto>"u")return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await $b(e);return Ib(t)}const Lb="__stack_guard__",jb="__",Db=/__stack_guard__([a-zA-Z0-9_-]+)__/;let Jo=!1,Ii,Go=!1;function Os(e){var t,n;Ii();let s;try{throw new Error}catch(i){s=i}const r=(n=(t=s.stack)===null||t===void 0?void 0:t.split(` `))!==null&&n!==void 0?n:[];for(let i=0;iawait t()};return Object.assign(s[n],{displayName:n}),await s[n]()}async function Dc(){return Jo||await Ii(),Go}let Nc=!1;Ii=async()=>{Jo||(Jo=!0,await Wr("ENV_CHECK",async()=>{await bh(0);const e=Os("ENV_CHECK");return Go=e,!e&&!Nc&&(Nc=!0,console.warn("@supabase/gotrue-js: Stack guards not supported in this environment. Generally not an issue but may point to a very conservative transpilation environment (use ES2017 or above) that implements async/await with generators, or this is a JavaScript engine that does not support async/await stack traces. Safari is known to not support stack guards.")),e}))};class Ja extends Error{constructor(t,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n}}function oe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Nb extends Ja{constructor(t,n){super(t,n),this.name="AuthApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}function Mb(e){return oe(e)&&e.name==="AuthApiError"}class Th extends Ja{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ws extends Ja{constructor(t,n,s){super(t),this.name=n,this.status=s}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Xn extends ws{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class lo extends ws{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500)}}class Nr extends ws{constructor(t){super(t,"AuthInvalidCredentialsError",400)}}class Mr extends ws{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Mc extends ws{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Xo extends ws{constructor(t,n){super(t,"AuthRetryableFetchError",n)}}function Bc(e){return oe(e)&&e.name==="AuthRetryableFetchError"}var Bb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);re.msg||e.message||e.error_description||e.error||JSON.stringify(e),Hb=[502,503,504];async function Hc(e){if(!Ob(e))throw new Xo(As(e),0);if(Hb.includes(e.status))throw new Xo(As(e),e.status);let t;try{t=await e.json()}catch(n){throw new Th(As(n),n)}throw new Nb(As(t),e.status||500)}const Fb=(e,t,n,s)=>{const r={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?r:(r.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),r.body=JSON.stringify(s),Object.assign(Object.assign({},r),n))};async function le(e,t,n,s){var r;const i=Object.assign({},s==null?void 0:s.headers);s!=null&&s.jwt&&(i.Authorization=`Bearer ${s.jwt}`);const o=(r=s==null?void 0:s.query)!==null&&r!==void 0?r:{};s!=null&&s.redirectTo&&(o.redirect_to=s.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await Ub(e,t,n+a,{headers:i,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(l):{data:Object.assign({},l),error:null}}async function Ub(e,t,n,s,r,i){const o=Fb(t,s,r,i);let a;try{a=await e(n,o)}catch(l){throw console.error(l),new Xo(As(l),0)}if(a.ok||await Hc(a),s!=null&&s.noResolveJson)return a;try{return await a.json()}catch(l){await Hc(l)}}function sn(e){var t;let n=null;Wb(e)&&(n=Object.assign({},e),n.expires_at=Pb(e.expires_in));const s=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:s},error:null}}function fn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function zb(e){return{data:e,error:null}}function Vb(e){const{action_link:t,email_otp:n,hashed_token:s,redirect_to:r,verification_type:i}=e,o=Bb(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:s,redirect_to:r,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Kb(e){return e}function Wb(e){return e.access_token&&e.refresh_token&&e.expires_in}var qb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r0&&(d.forEach(g=>{const w=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),E=JSON.parse(g.split(";")[1].split("=")[1]);c[`${E}Page`]=w}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(oe(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await le(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:fn})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await le(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:fn})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,n=!1){try{return await le(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:fn})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){try{const{data:n,error:s}=await le(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:r=>({data:{factors:r},error:null})});return{data:n,error:s}}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await le(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(oe(n))return{data:null,error:n};throw n}}}const Eh="2.46.1",Gb="http://localhost:9999",Xb="supabase.auth.token",Qb={"X-Client-Info":`gotrue-js/${Eh}`},Fc=10,Uc={getItem:e=>Kr()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Kr()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Kr()&&globalThis.localStorage.removeItem(e)}};function Yb(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}Yb();const Zb={url:Gb,storageKey:Xb,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Qb,flowType:"implicit",debug:!1},Br=30*1e3,zc=3;async function e0(e,t,n){return await n()}class ir{constructor(t){var n;this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.broadcastChannel=null,this.instanceID=ir.nextInstanceID,ir.nextInstanceID+=1,this.instanceID>0&&Ut()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},Zb),t);if(this.logDebugMessages=s.debug,this.inMemorySession=null,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.persistSession=s.persistSession,this.storage=s.storage||Uc,this.admin=new Jb({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=wh(s.fetch),this.lock=s.lock||e0,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession&&this.storage===Uc&&!Kr()&&console.warn(`No storage option exists to persist the session, which may result in unexpected behavior when using auth. If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.`),Ut()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(r){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",r)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async r=>{this._debug("received broadcast notification from other tab or client",r),await this._notifyAllSubscribers(r.data.event,r.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&console.log(`GoTrueClient@${this.instanceID} (${Eh}) ${new Date().toISOString()}`,...t),this}initialize(){return this.initializePromise?this.initializePromise:this._initialize()}async _initialize(){if(this.initializePromise)throw new Error("Double call of #_initialize()");return this.initializePromise=this._acquireLock(-1,async()=>await Wr("_initialize",async()=>{try{const t=Ut()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:s}=await this._getSessionFromURL(t);if(s)return this._debug("#_initialize()","error detecting session from URL",s),await this._removeSession(),{error:s};const{session:r,redirectType:i}=n;return this._debug("#_initialize()","detected session in URL",r,"redirect type",i),await this._saveSession(r),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",r):await this._notifyAllSubscribers("SIGNED_IN",r)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return oe(t)?{error:t}:{error:new Th("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}})),await this.initializePromise}async signUp(t){var n,s,r;try{await this._removeSession();let i;if("email"in t){const{email:u,password:f,options:h}=t;let d=null,g=null;if(this.flowType==="pkce"){const w=jr();await Cs(this.storage,`${this.storageKey}-code-verifier`,w),d=await Dr(w),g=w===d?"plain":"s256"}i=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:d,code_challenge_method:g},xform:sn})}else if("phone"in t){const{phone:u,password:f,options:h}=t;i=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:f,data:(s=h==null?void 0:h.data)!==null&&s!==void 0?s:{},channel:(r=h==null?void 0:h.channel)!==null&&r!==void 0?r:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:sn})}else throw new Nr("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(i){if(oe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sn})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:sn})}else throw new Nr("You must provide either an email or phone number and a password");const{data:s,error:r}=n;return r?{data:{user:null,session:null},error:r}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new lo}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:{user:s.user,session:s.session},error:r})}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,s,r,i;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(r=t.options)===null||r===void 0?void 0:r.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){const n=await Lr(this.storage,`${this.storageKey}-code-verifier`),{data:s,error:r}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:sn});return await ao(this.storage,`${this.storageKey}-code-verifier`),r?{data:{user:null,session:null},error:r}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new lo}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:s,error:r})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:s,token:r,access_token:i,nonce:o}=t,a=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:r,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:sn}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new lo}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,s,r,i,o;try{if(await this._removeSession(),"email"in t){const{email:a,options:l}=t;let c=null,u=null;if(this.flowType==="pkce"){const h=jr();await Cs(this.storage,`${this.storageKey}-code-verifier`,h),c=await Dr(h),u=h===c?"plain":"s256"}const{error:f}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new Nr("You must provide either an email or phone number.")}catch(a){if(oe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,s;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let r,i;"options"in t&&(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:o,error:a}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:r,xform:sn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(oe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithSSO(t){var n,s,r;try{return await this._removeSession(),await le(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&s!==void 0?s:void 0}),!((r=t==null?void 0:t.options)===null||r===void 0)&&r.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0}),headers:this.headers,xform:zb})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:s}=t;if(s)throw s;if(!n)throw new Xn;const{error:r}=await le(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:r}})}catch(t){if(oe(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:s,type:r,options:i}=t,{error:o}=await le(this.fetch,"POST",n,{headers:this.headers,body:{email:s,type:r,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:s,type:r,options:i}=t,{data:o,error:a}=await le(this.fetch,"POST",n,{headers:this.headers,body:{phone:s,type:r,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Nr("You must provide either an email or phone number and a type")}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{return await Dc()?Os("_acquireLock")?(this._debug("#_acquireLock","recursive call"),await n()):await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{return await Wr("_acquireLock",async()=>await n())}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey)}}):(this._debug("#_acquireLock","Stack guards not supported, so exclusive locking is not performed as it can lead to deadlocks if the lock is attempted to be recursively acquired (as the recursion cannot be detected)."),await n())}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{if(Os("_useSession")){this._debug("#_useSession","recursive call");const n=await this.__loadSession();return await t(n)}return await this._acquireLock(-1,async()=>await Wr("_useSession",async()=>{const n=await this.__loadSession();return await t(n)}))}finally{this._debug("#_useSession","end")}}async __loadSession(){if(this._debug("#__loadSession()","begin"),this.logDebugMessages&&!Os("_useSession")&&await Dc())throw new Error("Please use #_useSession()");Os("_initialize")&&this._debug("#__loadSession","#_initialize recursion detected",new Error().stack),await this.initializePromise;try{let t=null;if(this.persistSession){const i=await Lr(this.storage,this.storageKey);this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?t=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession()))}else t=this.inMemorySession,this._debug("#getSession()","session from memory",t);if(!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n)return{data:{session:t},error:null};const{session:s,error:r}=await this._callRefreshToken(t.refresh_token);return r?{data:{session:null},error:r}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){try{return t?await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:fn}):await this._useSession(async n=>{var s,r;const{data:i,error:o}=n;if(o)throw o;return await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(r=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&r!==void 0?r:void 0,xform:fn})})}catch(n){if(oe(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){try{return await this._useSession(async s=>{const{data:r,error:i}=s;if(i)throw i;if(!r.session)throw new Xn;const o=r.session,{data:a,error:l}=await le(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:t,jwt:o.access_token,xform:fn});if(l)throw l;return o.user=a.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(s){if(oe(s))return{data:{user:null},error:s};throw s}}_decodeJWT(t){return jc(t)}async setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Xn;const n=Date.now()/1e3;let s=n,r=!0,i=null;const o=jc(t.access_token);if(o.exp&&(s=o.exp,r=s<=n),r){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this.getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:s-n,expires_at:s},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(oe(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){try{return await this._useSession(async n=>{var s;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(s=o.session)!==null&&s!==void 0?s:void 0}if(!(t!=null&&t.refresh_token))throw new Xn;const{session:r,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:r?{data:{user:r.user,session:r},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(oe(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!Ut())throw new Mr("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new Mr("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new Mc("Not a valid PKCE flow url.");const n=oo(window.location.href);if(t){if(!n.code)throw new Mc("No code detected.");const{data:w,error:E}=await this.exchangeCodeForSession(n.code);if(E)throw E;const y=new URL(window.location.href);return y.searchParams.delete("code"),window.history.replaceState(window.history.state,"",y.toString()),{data:{session:w.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new Mr(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:s,provider_refresh_token:r,access_token:i,refresh_token:o,expires_in:a,token_type:l}=n;if(!i||!a||!o||!l)throw new Mr("No session defined in URL");const c=Math.round(Date.now()/1e3),u=parseInt(a),f=c+u,{data:h,error:d}=await this.getUser(i);if(d)throw d;const g={provider_token:s,provider_refresh_token:r,access_token:i,expires_in:u,expires_at:f,refresh_token:o,token_type:l,user:h.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:n.type},error:null}}catch(n){if(oe(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=oo(window.location.href);return!!(Ut()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=oo(window.location.href),n=await Lr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var s;const{data:r,error:i}=n;if(i)return{error:i};const o=(s=r.session)===null||s===void 0?void 0:s.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(Mb(a)&&(a.status===404||a.status===401)))return{error:a}}return t!=="others"&&(await this._removeSession(),await ao(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=kb(),s={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,s),this._emitInitialSession(n),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async n=>{var s,r;try{const{data:{session:i},error:o}=n;if(o)throw o;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let s=null,r=null;if(this.flowType==="pkce"){const i=jr();await Cs(this.storage,`${this.storageKey}-code-verifier`,i),s=await Dr(i),r=i===s?"plain":"s256"}try{return await le(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:r,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(oe(i))return{data:null,error:i};throw i}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const s=Date.now();return await Rb(async r=>(await bh(r*200),this._debug(n,"refreshing attempt",r),await le(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:sn})),(r,i,o)=>o&&o.error&&Bc(o.error)&&Date.now()+(r+1)*200-s{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;athis._autoRefreshTokenTick(),Br);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:s}}=n;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const r=Math.floor((s.expires_at*1e3-t)/Br);this._debug("#_autoRefreshTokenTick()",`access token expires in ${r} ticks, a tick lasts ${Br}ms, refresh threshold is ${zc} ticks`),r<=zc&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ut()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){this._debug(`#_onVisibilityChanged(${t})`,"visibilityState",document.visibilityState),document.visibilityState==="visible"?setTimeout(async()=>{t||(await this.initializePromise,await this._recoverAndRefresh(),this._debug("#_onVisibilityChanged()","finished waiting for initialize, _recoverAndRefresh")),this.autoRefreshToken&&this._startAutoRefresh()},0):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n){const s=[`provider=${encodeURIComponent(t)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const r=jr();await Cs(this.storage,`${this.storageKey}-code-verifier`,r);const i=await Dr(r),o=r===i?"plain":"s256";this._debug("PKCE","code verifier",`${r.substring(0,5)}...`,"code challenge",i,"method",o);const a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const r=new URLSearchParams(n.queryParams);s.push(r.toString())}return`${this.url}/authorize?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var s;const{data:r,error:i}=n;return i?{data:null,error:i}:await le(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var s,r;const{data:i,error:o}=n;if(o)return{data:null,error:o};const{data:a,error:l}=await le(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return l?{data:null,error:l}:(!((r=a==null?void 0:a.totp)===null||r===void 0)&&r.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _verify(t){try{return await this._useSession(async n=>{var s;const{data:r,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await le(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _challenge(t){try{return await this._useSession(async n=>{var s;const{data:r,error:i}=n;return i?{data:null,error:i}:await le(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(oe(n))return{data:null,error:n};throw n}}async _challengeAndVerify(t){const{data:n,error:s}=await this._challenge({factorId:t.factorId});return s?{data:null,error:s}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const s=(t==null?void 0:t.factors)||[],r=s.filter(i=>i.factor_type==="totp"&&i.status==="verified");return{data:{all:s,totp:r},error:null}}async _getAuthenticatorAssuranceLevel(){return await this._useSession(async t=>{var n,s;const{data:{session:r},error:i}=t;if(i)return{data:null,error:i};if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const o=this._decodeJWT(r.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((s=(n=r.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(l="aal2");const u=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:u},error:null}})}}ir.nextInstanceID=0;globalThis&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class t0 extends ir{constructor(t){super(t)}}var n0=globalThis&&globalThis.__awaiter||function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):r(u.value).then(a,l)}c((s=s.apply(e,t||[])).next())})};const s0={headers:_b},r0={schema:"public"},i0={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},o0={};class a0{constructor(t,n,s){var r,i,o,a,l,c,u,f;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const h=Cb(t);this.realtimeUrl=`${h}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${h}/auth/v1`,this.storageUrl=`${h}/storage/v1`,this.functionsUrl=`${h}/functions/v1`;const d=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,g={db:r0,realtime:o0,auth:Object.assign(Object.assign({},i0),{storageKey:d}),global:s0},w=Sb(s??{},g);this.storageKey=(i=(r=w.auth)===null||r===void 0?void 0:r.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=(o=w.global)===null||o===void 0?void 0:o.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((l=w.auth)!==null&&l!==void 0?l:{},this.headers,(c=w.global)===null||c===void 0?void 0:c.fetch),this.fetch=Eb(n,this._getAccessToken.bind(this),(u=w.global)===null||u===void 0?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},w.realtime)),this.rest=new Sw(`${h}/rest/v1`,{headers:this.headers,schema:(f=w.db)===null||f===void 0?void 0:f.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new yw(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new yb(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}rpc(t,n={},s){return this.rest.rpc(t,n,s)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return n0(this,void 0,void 0,function*(){const{data:s}=yield this.auth.getSession();return(n=(t=s.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:s,storage:r,storageKey:i,flowType:o,debug:a},l,c){const u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new t0({url:this.authUrl,headers:Object.assign(Object.assign({},u),l),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:s,storage:r,flowType:o,debug:a,fetch:c})}_initRealtimeClient(t){return new ob(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,s)=>{this._handleTokenChanged(n,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(t,n,s){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==s?(this.realtime.setAuth(s??null),this.changedAccessToken=s):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const l0=(e,t,n)=>new a0(e,t,n),c0=Bt({name:"supabase",enforce:"pre",async setup(){const e=hh(),t=Ba().public.supabase,{url:n,key:s,cookieName:r,cookieOptions:i,clientOptions:o}=t,a=l0(n,s,o);return a.auth.onAuthStateChange(async(l,c)=>{c?JSON.stringify(e.value)!==JSON.stringify(c.user)&&(e.value=c.user):e.value=null,(l==="SIGNED_IN"||l==="TOKEN_REFRESHED")&&(nn(`${r}-access-token`,i).value=c==null?void 0:c.access_token,nn(`${r}-refresh-token`,i).value=c==null?void 0:c.refresh_token,c.provider_token&&(nn(`${r}-provider-token`,i).value=c.provider_token),c.provider_refresh_token&&(nn(`${r}-provider-refresh-token`,i).value=c.provider_refresh_token)),l==="SIGNED_OUT"&&(nn(`${r}-access-token`,i).value=null,nn(`${r}-refresh-token`,i).value=null,nn(`${r}-provider-token`,i).value=null,nn(`${r}-provider-refresh-token`,i).value=null)}),{provide:{supabase:{client:a}}}}}),u0=wo(()=>me(()=>import("./svg-icon.84d68e6f.js"),["./svg-icon.84d68e6f.js","./svg-icon.vue.63a39a8a.js"],import.meta.url).then(e=>e.default)),f0=[["SvgIcon",u0]],h0=Bt({name:"nuxt:global-components",setup(e){for(const[t,n]of f0)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),jn={admin:()=>me(()=>import("./admin.79840768.js"),["./admin.79840768.js","./svg-icon.vue.63a39a8a.js","./nuxt-link.e2312035.js","./Sticky.53372485.js","./index.39a1a279.js"],import.meta.url).then(e=>e.default||e),clean:()=>me(()=>import("./clean.ae6e96c2.js"),[],import.meta.url).then(e=>e.default||e),default:()=>me(()=>import("./default.f105731b.js"),["./default.f105731b.js","./svg-icon.vue.63a39a8a.js","./nuxt-link.e2312035.js","./Sticky.53372485.js","./index.39a1a279.js","./_plugin-vue_export-helper.c27b6911.js"],import.meta.url).then(e=>e.default||e),"svg-sprite":()=>me(()=>import("./svg-sprite.959f90b5.js"),["./svg-sprite.959f90b5.js","./_plugin-vue_export-helper.c27b6911.js"],import.meta.url).then(e=>e.default||e)},d0=Bt({name:"nuxt:prefetch",setup(e){const t=zn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var r;const s=(r=n==null?void 0:n.meta)==null?void 0:r.layout;s&&typeof jn[s]=="function"&&await jn[s]()})}),e.hooks.hook("link:prefetch",n=>{var o,a,l,c;if(Pi(n))return;const s=t.resolve(n);if(!s)return;const r=(o=s==null?void 0:s.meta)==null?void 0:o.layout;let i=Array.isArray((a=s==null?void 0:s.meta)==null?void 0:a.middleware)?(l=s==null?void 0:s.meta)==null?void 0:l.middleware:[(c=s==null?void 0:s.meta)==null?void 0:c.middleware];i=i.filter(u=>typeof u=="string");for(const u of i)typeof Bs[u]=="function"&&Bs[u]();r&&typeof jn[r]=="function"&&jn[r]()})}}),Vc="ga:user";p0();function p0(){let e;try{e=localStorage[Vc]}catch{}if(!e){e=Math.random()+"."+Math.random();try{localStorage[Vc]=e}catch{}}return e}function Ch(e){console.error("[nuxt vitals]",e)}function g0(e,...t){console.log(e,...t)}function m0(){return typeof navigator<"u"&&navigator.connection&&navigator.connection.effectiveType||""}function y0(e,t){if(navigator.sendBeacon){navigator.sendBeacon(e,t);return}fetch(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).catch(Ch)}async function v0({route:e,options:t,sendToAnalytics:n}){const s={fullPath:e.fullPath,href:location.href};try{const{getCLS:r,getFID:i,getLCP:o,getTTFB:a,getFCP:l}=await me(()=>import("./web-vitals.dfcc5b9a.js"),[],import.meta.url).then(c=>c.default||c);i(c=>n(s,c,t)),a(c=>n(s,c,t)),o(c=>n(s,c,t)),r(c=>n(s,c,t)),l(c=>n(s,c,t))}catch(r){Ch(r)}}const _0="https://vitals.vercel-analytics.com/v1/vitals";function w0({fullPath:e,href:t},n,s){const r={dsn:s.dsn,id:n.id,page:e,href:t,event_name:n.name,value:n.value.toString(),speed:m0()};s.debug&&g0(n.name,JSON.stringify(r,null,2));const i=new Blob([new URLSearchParams(r).toString()],{type:"application/x-www-form-urlencoded"});y0(_0,i)}const b0={debug:!1,dsn:"IWKfHi4x883NuwcB7Pdyqnh1PA8"},T0=e=>v0({options:b0,sendToAnalytics:w0,route:e}),E0=Bt(()=>{zn().afterEach(t=>T0(t))}),C0=Bt({name:"nuxt:chunk-reload",setup(e){const t=zn(),n=Ba(),s=new Set;t.beforeEach(()=>{s.clear()}),e.hook("app:chunkError",({error:r})=>{s.add(r)}),t.onError((r,i)=>{if(s.has(r)){const a="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:ki(n.app.baseURL,i.fullPath);Gv({path:a,persistState:!0})}})}}),S0=["top","right","bottom","left"],Kc=["start","end"],Wc=S0.reduce((e,t)=>e.concat(t,t+"-"+Kc[0],t+"-"+Kc[1]),[]),or=Math.min,An=Math.max,P0={left:"right",right:"left",bottom:"top",top:"bottom"},k0={start:"end",end:"start"};function Qo(e,t,n){return An(e,or(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function Sh(e){return e==="x"?"y":"x"}function Ga(e){return e==="y"?"height":"width"}function _r(e){return["top","bottom"].includes(Nt(e))?"y":"x"}function Xa(e){return Sh(_r(e))}function Ph(e,t,n){n===void 0&&(n=!1);const s=Pt(e),r=Xa(e),i=Ga(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ui(o)),[o,ui(o)]}function O0(e){const t=ui(e);return[ci(e),t,ci(t)]}function ci(e){return e.replace(/start|end/g,t=>k0[t])}function A0(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function R0(e,t,n,s){const r=Pt(e);let i=A0(Nt(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(ci)))),i}function ui(e){return e.replace(/left|right|bottom|top/g,t=>P0[t])}function x0(e){return{top:0,right:0,bottom:0,left:0,...e}}function kh(e){return typeof e!="number"?x0(e):{top:e,right:e,bottom:e,left:e}}function Us(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qc(e,t,n){let{reference:s,floating:r}=e;const i=_r(t),o=Xa(t),a=Ga(o),l=Nt(t),c=i==="y",u=s.x+s.width/2-r.width/2,f=s.y+s.height/2-r.height/2,h=s[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:s.y-r.height};break;case"bottom":d={x:u,y:s.y+s.height};break;case"right":d={x:s.x+s.width,y:f};break;case"left":d={x:s.x-r.width,y:f};break;default:d={x:s.x,y:s.y}}switch(Pt(t)){case"start":d[o]-=h*(n&&c?-1:1);break;case"end":d[o]+=h*(n&&c?-1:1);break}return d}const $0=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=qc(c,s,l),h=s,d={},g=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a}=t,{element:l,padding:c=0}=Vn(e,t)||{};if(l==null)return{};const u=kh(c),f={x:n,y:s},h=Xa(r),d=Ga(h),g=await o.getDimensions(l),w=h==="y",E=w?"top":"left",y=w?"bottom":"right",p=w?"clientHeight":"clientWidth",C=i.reference[d]+i.reference[h]-f[h]-i.floating[d],b=f[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let x=S?S[p]:0;(!x||!await(o.isElement==null?void 0:o.isElement(S)))&&(x=a.floating[p]||i.floating[d]);const I=C/2-b/2,P=x/2-g[d]/2-1,F=or(u[E],P),M=or(u[y],P),D=F,B=x-g[d]-M,V=x/2-g[d]/2+I,_=Qo(D,V,B),N=Pt(r)!=null&&V!=_&&i.reference[d]/2-(VPt(r)===e),...n.filter(r=>Pt(r)!==e)]:n.filter(r=>Nt(r)===r)).filter(r=>e?Pt(r)===e||(t?ci(r)!==r:!1):!0)}const j0=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,r;const{rects:i,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:h=Wc,autoAlignment:d=!0,...g}=Vn(e,t),w=f!==void 0||h===Wc?L0(f||null,d,h):h,E=await Li(t,g),y=((n=o.autoPlacement)==null?void 0:n.index)||0,p=w[y];if(p==null)return{};const C=Ph(p,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==p)return{reset:{placement:w[0]}};const b=[E[Nt(p)],E[C[0]],E[C[1]]],S=[...((s=o.autoPlacement)==null?void 0:s.overflows)||[],{placement:p,overflows:b}],x=w[y+1];if(x)return{data:{index:y+1,overflows:S},reset:{placement:x}};const I=S.map(M=>{const D=Pt(M.placement);return[M.placement,D&&u?M.overflows.slice(0,2).reduce((B,V)=>B+V,0):M.overflows[0],M.overflows]}).sort((M,D)=>M[1]-D[1]),F=((r=I.filter(M=>M[2].slice(0,Pt(M[0])?2:3).every(D=>D<=0))[0])==null?void 0:r[0])||I[0][0];return F!==a?{data:{index:y+1,overflows:S},reset:{placement:F}}:{}}}},D0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:s,middlewareData:r,rects:i,initialPlacement:o,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...w}=Vn(e,t),E=Nt(s),y=Nt(o)===o,p=await(a.isRTL==null?void 0:a.isRTL(l.floating)),C=f||(y||!g?[ui(o)]:O0(o));!f&&d!=="none"&&C.push(...R0(o,g,d,p));const b=[o,...C],S=await Li(t,w),x=[];let I=((n=r.flip)==null?void 0:n.overflows)||[];if(c&&x.push(S[E]),u){const D=Ph(s,i,p);x.push(S[D[0]],S[D[1]])}if(I=[...I,{placement:s,overflows:x}],!x.every(D=>D<=0)){var P,F;const D=(((P=r.flip)==null?void 0:P.index)||0)+1,B=b[D];if(B)return{data:{index:D,overflows:I},reset:{placement:B}};let V=(F=I.filter(_=>_.overflows[0]<=0).sort((_,R)=>_.overflows[1]-R.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(h){case"bestFit":{var M;const _=(M=I.map(R=>[R.placement,R.overflows.filter(N=>N>0).reduce((N,Q)=>N+Q,0)]).sort((R,N)=>R[1]-N[1])[0])==null?void 0:M[0];_&&(V=_);break}case"initialPlacement":V=o;break}if(s!==V)return{reset:{placement:V}}}return{}}}};async function N0(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=Nt(n),a=Pt(n),l=_r(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,f=Vn(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(d=a==="end"?g*-1:g),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const M0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:s}=t,r=await N0(t,e);return{x:n+r.x,y:s+r.y,data:r}}}},B0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:E=>{let{x:y,y:p}=E;return{x:y,y:p}}},...l}=Vn(e,t),c={x:n,y:s},u=await Li(t,l),f=_r(Nt(r)),h=Sh(f);let d=c[h],g=c[f];if(i){const E=h==="y"?"top":"left",y=h==="y"?"bottom":"right",p=d+u[E],C=d-u[y];d=Qo(p,d,C)}if(o){const E=f==="y"?"top":"left",y=f==="y"?"bottom":"right",p=g+u[E],C=g-u[y];g=Qo(p,g,C)}const w=a.fn({...t,[h]:d,[f]:g});return{...w,data:{x:w.x-n,y:w.y-s}}}}},H0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:r,elements:i}=t,{apply:o=()=>{},...a}=Vn(e,t),l=await Li(t,a),c=Nt(n),u=Pt(n),f=_r(n)==="y",{width:h,height:d}=s.floating;let g,w;c==="top"||c==="bottom"?(g=c,w=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(w=c,g=u==="end"?"top":"bottom");const E=d-l[g],y=h-l[w],p=!t.middlewareData.shift;let C=E,b=y;if(f){const x=h-l.left-l.right;b=u||p?or(y,x):x}else{const x=d-l.top-l.bottom;C=u||p?or(E,x):x}if(p&&!u){const x=An(l.left,0),I=An(l.right,0),P=An(l.top,0),F=An(l.bottom,0);f?b=h-2*(x!==0||I!==0?x+I:An(l.left,l.right)):C=d-2*(P!==0||F!==0?P+F:An(l.top,l.bottom))}await o({...t,availableWidth:b,availableHeight:C});const S=await r.getDimensions(i.floating);return h!==S.width||d!==S.height?{reset:{rects:!0}}:{}}}};function gt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){return gt(e).getComputedStyle(e)}const Jc=Math.min,zs=Math.max,fi=Math.round;function Oh(e){const t=It(e);let n=parseFloat(t.width),s=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,o=fi(n)!==r||fi(s)!==i;return o&&(n=r,s=i),{width:n,height:s,fallback:o}}function bn(e){return Rh(e)?(e.nodeName||"").toLowerCase():""}let Hr;function Ah(){if(Hr)return Hr;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Hr=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Hr):navigator.userAgent}function Lt(e){return e instanceof gt(e).HTMLElement}function yn(e){return e instanceof gt(e).Element}function Rh(e){return e instanceof gt(e).Node}function Gc(e){return typeof ShadowRoot>"u"?!1:e instanceof gt(e).ShadowRoot||e instanceof ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function F0(e){return["table","td","th"].includes(bn(e))}function Yo(e){const t=/firefox/i.test(Ah()),n=It(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(r=>n.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const i=n.contain;return i!=null&&i.includes(r)})}function xh(){return!/^((?!chrome|android).)*safari/i.test(Ah())}function Qa(e){return["html","body","#document"].includes(bn(e))}function $h(e){return yn(e)?e:e.contextElement}const Ih={x:1,y:1};function as(e){const t=$h(e);if(!Lt(t))return Ih;const n=t.getBoundingClientRect(),{width:s,height:r,fallback:i}=Oh(t);let o=(i?fi(n.width):n.width)/s,a=(i?fi(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}function ar(e,t,n,s){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=$h(e);let l=Ih;t&&(s?yn(s)&&(l=as(s)):l=as(e));const c=a?gt(a):window,u=!xh()&&n;let f=(o.left+(u&&((r=c.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,h=(o.top+(u&&((i=c.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,d=o.width/l.x,g=o.height/l.y;if(a){const w=gt(a),E=s&&yn(s)?gt(s):s;let y=w.frameElement;for(;y&&s&&E!==w;){const p=as(y),C=y.getBoundingClientRect(),b=getComputedStyle(y);C.x+=(y.clientLeft+parseFloat(b.paddingLeft))*p.x,C.y+=(y.clientTop+parseFloat(b.paddingTop))*p.y,f*=p.x,h*=p.y,d*=p.x,g*=p.y,f+=C.x,h+=C.y,y=gt(y).frameElement}}return{width:d,height:g,top:h,right:f+d,bottom:h+g,left:f,x:f,y:h}}function vn(e){return((Rh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Di(e){return yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lh(e){return ar(vn(e)).left+Di(e).scrollLeft}function lr(e){if(bn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gc(e)&&e.host||vn(e);return Gc(t)?t.host:t}function jh(e){const t=lr(e);return Qa(t)?t.ownerDocument.body:Lt(t)&&ji(t)?t:jh(t)}function hi(e,t){var n;t===void 0&&(t=[]);const s=jh(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=gt(s);return r?t.concat(i,i.visualViewport||[],ji(s)?s:[]):t.concat(s,hi(s))}function Xc(e,t,n){return t==="viewport"?Us(function(s,r){const i=gt(s),o=vn(s),a=i.visualViewport;let l=o.clientWidth,c=o.clientHeight,u=0,f=0;if(a){l=a.width,c=a.height;const h=xh();(h||!h&&r==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:u,y:f}}(e,n)):yn(t)?Us(function(s,r){const i=ar(s,!0,r==="fixed"),o=i.top+s.clientTop,a=i.left+s.clientLeft,l=Lt(s)?as(s):{x:1,y:1};return{width:s.clientWidth*l.x,height:s.clientHeight*l.y,x:a*l.x,y:o*l.y}}(t,n)):Us(function(s){const r=vn(s),i=Di(s),o=s.ownerDocument.body,a=zs(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),l=zs(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let c=-i.scrollLeft+Lh(s);const u=-i.scrollTop;return It(o).direction==="rtl"&&(c+=zs(r.clientWidth,o.clientWidth)-a),{width:a,height:l,x:c,y:u}}(vn(e)))}function Qc(e){return Lt(e)&&It(e).position!=="fixed"?e.offsetParent:null}function Yc(e){const t=gt(e);let n=Qc(e);for(;n&&F0(n)&&It(n).position==="static";)n=Qc(n);return n&&(bn(n)==="html"||bn(n)==="body"&&It(n).position==="static"&&!Yo(n))?t:n||function(s){let r=lr(s);for(;Lt(r)&&!Qa(r);){if(Yo(r))return r;r=lr(r)}return null}(e)||t}function U0(e,t,n){const s=Lt(t),r=vn(t),i=ar(e,!0,n==="fixed",t);let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(s||!s&&n!=="fixed")if((bn(t)!=="body"||ji(r))&&(o=Di(t)),Lt(t)){const l=ar(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=Lh(r));return{x:i.left+o.scrollLeft-a.x,y:i.top+o.scrollTop-a.y,width:i.width,height:i.height}}const z0={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const i=n==="clippingAncestors"?function(c,u){const f=u.get(c);if(f)return f;let h=hi(c).filter(E=>yn(E)&&bn(E)!=="body"),d=null;const g=It(c).position==="fixed";let w=g?lr(c):c;for(;yn(w)&&!Qa(w);){const E=It(w),y=Yo(w);(g?y||d:y||E.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=E:h=h.filter(p=>p!==w),w=lr(w)}return u.set(c,h),h}(t,this._c):[].concat(n),o=[...i,s],a=o[0],l=o.reduce((c,u)=>{const f=Xc(t,u,r);return c.top=zs(f.top,c.top),c.right=Jc(f.right,c.right),c.bottom=Jc(f.bottom,c.bottom),c.left=zs(f.left,c.left),c},Xc(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const r=Lt(n),i=vn(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&s!=="fixed")&&((bn(n)!=="body"||ji(i))&&(o=Di(n)),Lt(n))){const c=ar(n);a=as(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}},isElement:yn,getDimensions:function(e){return Lt(e)?Oh(e):e.getBoundingClientRect()},getOffsetParent:Yc,getDocumentElement:vn,getScale:as,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const r=this.getOffsetParent||Yc,i=this.getDimensions;return{reference:U0(t,await r(n),s),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>It(e).direction==="rtl"},V0=(e,t,n)=>{const s=new Map,r={platform:z0,...n},i={...r.platform,_c:s};return $0(e,t,{...r,platform:i})};function Dh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Dh(e[n],t[n]):e[n]=t[n])}const Kt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function cr(e,t){let n=Kt.themes[e]||{},s;do s=n[t],typeof s>"u"?n.$extend?n=Kt.themes[n.$extend]||{}:(n=null,s=Kt[t]):n=null;while(n);return s}function K0(e){const t=[e];let n=Kt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Kt.themes[n.$extend]||{}):n=null;while(n);return t.map(s=>`v-popper--theme-${s}`)}function Zc(e){const t=[e];let n=Kt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Kt.themes[n.$extend]||{}):n=null;while(n);return t}let Fn=!1;if(typeof window<"u"){Fn=!1;try{const e=Object.defineProperty({},"passive",{get(){Fn=!0}});window.addEventListener("test",null,e)}catch{}}let Nh=!1;typeof window<"u"&&typeof navigator<"u"&&(Nh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Mh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),eu={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},tu={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function nu(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function co(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Et=[];let Pn=null;const su={};function ru(e){let t=su[e];return t||(t=su[e]=[]),t}let Zo=function(){};typeof window<"u"&&(Zo=window.Element);function ie(e){return function(t){return cr(t.theme,e)}}const uo="__floating-vue__popper",Bh=()=>Se({name:"VPopper",provide(){return{[uo]:{parentPopper:this}}},inject:{[uo]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ie("disabled")},positioningDisabled:{type:Boolean,default:ie("positioningDisabled")},placement:{type:String,default:ie("placement"),validator:e=>Mh.includes(e)},delay:{type:[String,Number,Object],default:ie("delay")},distance:{type:[Number,String],default:ie("distance")},skidding:{type:[Number,String],default:ie("skidding")},triggers:{type:Array,default:ie("triggers")},showTriggers:{type:[Array,Function],default:ie("showTriggers")},hideTriggers:{type:[Array,Function],default:ie("hideTriggers")},popperTriggers:{type:Array,default:ie("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ie("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ie("popperHideTriggers")},container:{type:[String,Object,Zo,Boolean],default:ie("container")},boundary:{type:[String,Zo],default:ie("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ie("strategy")},autoHide:{type:[Boolean,Function],default:ie("autoHide")},handleResize:{type:Boolean,default:ie("handleResize")},instantMove:{type:Boolean,default:ie("instantMove")},eagerMount:{type:Boolean,default:ie("eagerMount")},popperClass:{type:[String,Array,Object],default:ie("popperClass")},computeTransformOrigin:{type:Boolean,default:ie("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ie("autoMinSize")},autoSize:{type:[Boolean,String],default:ie("autoSize")},autoMaxSize:{type:Boolean,default:ie("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ie("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ie("preventOverflow")},overflowPadding:{type:[Number,String],default:ie("overflowPadding")},arrowPadding:{type:[Number,String],default:ie("arrowPadding")},arrowOverflow:{type:Boolean,default:ie("arrowOverflow")},flip:{type:Boolean,default:ie("flip")},shift:{type:Boolean,default:ie("shift")},shiftCrossAxis:{type:Boolean,default:ie("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ie("noAutoFocus")},disposeTimeout:{type:Number,default:ie("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[uo])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var s,r;(s=this.parentPopper)!=null&&s.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(M0({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(j0({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(B0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(D0({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(I0({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:r,middlewareData:i})=>{let o;const{centerOffset:a}=i.arrow;return s.startsWith("top")||s.startsWith("bottom")?o=Math.abs(a)>r.reference.width/2:o=Math.abs(a)>r.reference.height/2,{data:{overflow:o}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:i,middlewareData:o})=>{var a;if((a=o.autoSize)!=null&&a.skip)return{};let l,c;return i.startsWith("top")||i.startsWith("bottom")?l=r.reference.width:c=r.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(H0({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:s,availableHeight:r})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const n=await V0(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Pn&&this.instantMove&&Pn.instantMove&&Pn!==this.parentPopper){Pn.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Pn=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await co(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...hi(this.$_referenceNode),...hi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),s=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(s.left+n.offsetLeft),i=t.y+t.height/2-(s.top+n.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,nu(Et,this),Et.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Zc(this.theme)){const s=ru(n);nu(s,this),s.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Pn===this&&(Pn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await co(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,eu,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],eu,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,tu,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],tu,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(s=>s.addEventListener(t,n,Fn?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,s,r){let i=n;s!=null&&(i=typeof s=="function"?s(i):s),i.forEach(o=>{const a=t[o];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:s,eventType:r,handler:i}=n;!e||e===r?s.forEach(o=>o.removeEventListener(r,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const s=n.getAttribute(e);s&&(n.removeAttribute(e),n.setAttribute(t,s))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const s=e[n];s==null?t.removeAttribute(n):t.setAttribute(n,s)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Vs>=e.left&&Vs<=e.right&&Ks>=e.top&&Ks<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Vs-on,s=Ks-an,r=t.left+t.width/2-on+(t.top+t.height/2)-an+t.width+t.height,i=on+n*r,o=an+s*r;return Fr(on,an,i,o,t.left,t.top,t.left,t.bottom)||Fr(on,an,i,o,t.left,t.top,t.right,t.top)||Fr(on,an,i,o,t.right,t.top,t.right,t.bottom)||Fr(on,an,i,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Nh?(document.addEventListener("touchstart",iu,Fn?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",q0,Fn?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",iu,!0),window.addEventListener("click",W0,!0)),window.addEventListener("resize",X0));function iu(e){for(let t=0;t=0;s--){const r=Et[s];try{const i=r.$_containsGlobalTarget=J0(r,e);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!n[r.randomId]&&ou(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let o=r.parentPopper;for(;o&&ou(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function J0(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function ou(e,t,n){return n.closeAllPopover||n.closePopover&&t||G0(e,n)&&!t}function G0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function X0(e){for(let t=0;t{on=Vs,an=Ks,Vs=e.clientX,Ks=e.clientY},Fn?{passive:!0}:void 0);function Fr(e,t,n,s,r,i,o,a){const l=((o-r)*(t-i)-(a-i)*(e-r))/((a-i)*(n-e)-(o-r)*(s-t)),c=((n-e)*(t-i)-(s-t)*(e-r))/((a-i)*(n-e)-(o-r)*(s-t));return l>=0&&l<=1&&c>=0&&c<=1}const Q0={extends:Bh()},Ni=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};function Y0(e,t,n,s,r,i){return te(),$e("div",{ref:"reference",class:ut(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[er(e.$slots,"default",Eu($a(e.slotData)))],2)}const Z0=Ni(Q0,[["render",Y0]]);function eT(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let qr;function ea(){ea.init||(ea.init=!0,qr=eT()!==-1)}var Mi={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ea(),Mt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",qr&&this.$el.appendChild(e),e.data="about:blank",qr||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!qr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tT=bp();_p("data-v-b329ee4c");const nT={class:"resize-observer",tabindex:"-1"};wp();const sT=tT((e,t,n,s,r,i)=>(te(),Ee("div",nT)));Mi.render=sT;Mi.__scopeId="data-v-b329ee4c";Mi.__file="src/components/ResizeObserver.vue";const Fh=(e="theme")=>({computed:{themeClass(){return K0(this[e])}}}),rT=Se({name:"VPopperContent",components:{ResizeObserver:Mi},mixins:[Fh()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),iT=["id","aria-hidden","tabindex","data-popper-placement"],oT={ref:"inner",class:"v-popper__inner"},aT=Ue("div",{class:"v-popper__arrow-outer"},null,-1),lT=Ue("div",{class:"v-popper__arrow-inner"},null,-1),cT=[aT,lT];function uT(e,t,n,s,r,i){const o=$t("ResizeObserver");return te(),$e("div",{id:e.popperId,ref:"popover",class:ut(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Vt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Zg(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[Ue("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),Ue("div",{class:"v-popper__wrapper",style:Vt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Ue("div",oT,[e.mounted?(te(),$e(Pe,{key:0},[Ue("div",null,[er(e.$slots,"default")]),e.handleResize?(te(),Ee(o,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):js("",!0)],64)):js("",!0)],512),Ue("div",{ref:"arrow",class:"v-popper__arrow-container",style:Vt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},cT,4)],4)],46,iT)}const Uh=Ni(rT,[["render",uT]]),zh={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},fT=Se({name:"VPopperWrapper",components:{Popper:Z0,PopperContent:Uh},mixins:[zh,Fh("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function hT(e,t,n,s,r,i){const o=$t("PopperContent"),a=$t("Popper");return te(),Ee(a,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:ut([e.themeClass])},{default:yt(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,show:d,hide:g,handleResize:w,onResize:E,classes:y,result:p})=>[er(e.$slots,"default",{shown:c,show:d,hide:g}),de(o,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":w,classes:y,result:p,onHide:g,onResize:E},{default:yt(()=>[er(e.$slots,"popper",{shown:c,hide:g})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Ya=Ni(fT,[["render",hT]]),dT={...Ya,name:"VDropdown",vPopperTheme:"dropdown"},pT={...Ya,name:"VMenu",vPopperTheme:"menu"},gT={...Ya,name:"VTooltip",vPopperTheme:"tooltip"},mT=Se({name:"VTooltipDirective",components:{Popper:Bh(),PopperContent:Uh},mixins:[zh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>cr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>cr(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(s=>this.onResult(t,s)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),yT=["innerHTML"],vT=["textContent"];function _T(e,t,n,s,r,i){const o=$t("PopperContent"),a=$t("Popper");return te(),Ee(a,vs({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:yt(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,hide:d,handleResize:g,onResize:w,classes:E,result:y})=>[de(o,{ref:"popperContent",class:ut({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:E,result:y,onHide:d,onResize:w},{default:yt(()=>[e.html?(te(),$e("div",{key:0,innerHTML:e.finalContent},null,8,yT)):(te(),$e("div",{key:1,textContent:ua(e.finalContent)},null,8,vT))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const wT=Ni(mT,[["render",_T]]),Vh="v-popper--has-tooltip";function bT(e,t){let n=e.placement;if(!n&&t)for(const s of Mh)t[s]&&(n=s);return n||(n=cr(e.theme||"tooltip","placement")),n}function Kh(e,t,n){let s;const r=typeof t;return r==="string"?s={content:t}:t&&r==="object"?s=t:s={content:!1},s.placement=bT(s,n),s.targetNodes=()=>[e],s.referenceNode=()=>e,s}let fo,ur,TT=0;function ET(){if(fo)return;ur=Re([]),fo=ja({name:"VTooltipDirectiveApp",setup(){return{directives:ur}},render(){return this.directives.map(t=>ze(wT,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),fo.mount(e)}function CT(e,t,n){ET();const s=Re(Kh(e,t,n)),r=Re(!1),i={id:TT++,options:s,shown:r};return ur.value.push(i),e.classList&&e.classList.add(Vh),e.$_popper={options:s,item:i,show(){r.value=!0},hide(){r.value=!1}}}function Wh(e){if(e.$_popper){const t=ur.value.indexOf(e.$_popper.item);t!==-1&&ur.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Vh)}function au(e,{value:t,modifiers:n}){const s=Kh(e,t,n);if(!s.content||cr(s.theme||"tooltip","disabled"))Wh(e);else{let r;e.$_popper?(r=e.$_popper,r.options.value=s):r=CT(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}const ST={beforeMount:au,updated:au,beforeUnmount(e){Wh(e)}};function lu(e){e.addEventListener("click",qh),e.addEventListener("touchstart",Jh,Fn?{passive:!0}:!1)}function cu(e){e.removeEventListener("click",qh),e.removeEventListener("touchstart",Jh),e.removeEventListener("touchend",Gh),e.removeEventListener("touchcancel",Xh)}function qh(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Jh(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Gh),t.addEventListener("touchcancel",Xh)}}function Gh(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],s=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-s.screenY)<20&&Math.abs(n.screenX-s.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Xh(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const PT={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&lu(e)},updated(e,{value:t,oldValue:n,modifiers:s}){e.$_closePopoverModifiers=s,t!==n&&(typeof t>"u"||t?lu(e):cu(e))},beforeUnmount(e){cu(e)}};function kT(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Dh(Kt,t),e.directive("tooltip",ST),e.directive("close-popper",PT),e.component("VTooltip",gT),e.component("VDropdown",dT),e.component("VMenu",pT))}const uu={version:"2.0.0-beta.24",install:kT,options:Kt};const OT=Bt(e=>{uu.options.themes.dropdown.distance=12,e.vueApp.use(uu)});var AT=Object.defineProperty,fu=Object.getOwnPropertySymbols,RT=Object.prototype.hasOwnProperty,xT=Object.prototype.propertyIsEnumerable,hu=(e,t,n)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qh=(e,t)=>{for(var n in t||(t={}))RT.call(t,n)&&hu(e,n,t[n]);if(fu)for(var n of fu(t))xT.call(t,n)&&hu(e,n,t[n]);return e},Bi=e=>typeof e=="function",Hi=e=>typeof e=="string",Yh=e=>Hi(e)&&e.trim().length>0,$T=e=>typeof e=="number",Dn=e=>typeof e>"u",fr=e=>typeof e=="object"&&e!==null,IT=e=>jt(e,"tag")&&Yh(e.tag),Zh=e=>window.TouchEvent&&e instanceof TouchEvent,ed=e=>jt(e,"component")&&td(e.component),LT=e=>Bi(e)||fr(e),td=e=>!Dn(e)&&(Hi(e)||LT(e)||ed(e)),du=e=>fr(e)&&["height","width","right","left","top","bottom"].every(t=>$T(e[t])),jt=(e,t)=>(fr(e)||Bi(e))&&t in e,jT=(e=>()=>e++)(0);function ho(e){return Zh(e)?e.targetTouches[0].clientX:e.clientX}function pu(e){return Zh(e)?e.targetTouches[0].clientY:e.clientY}var DT=e=>{Dn(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},wr=e=>ed(e)?wr(e.component):IT(e)?Se({render(){return e}}):typeof e=="string"?e:re(ue(e)),NT=e=>{if(typeof e=="string")return e;const t=jt(e,"props")&&fr(e.props)?e.props:{},n=jt(e,"listeners")&&fr(e.listeners)?e.listeners:{};return{component:wr(e),props:t,listeners:n}},MT=()=>typeof window<"u",Za=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(s=>s(t))}},BT=e=>["on","off","emit"].every(t=>jt(e,t)&&Bi(e[t])),lt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(lt||(lt={}));var di;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(di||(di={}));var ct;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(ct||(ct={}));var Ct="Vue-Toastification",wt={type:{type:String,default:lt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},nd={type:wt.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Jr={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:wt.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},ta={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},sd={transition:{type:[Object,String],default:`${Ct}__bounce`}},HT={position:{type:String,default:di.TOP_RIGHT},draggable:wt.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:wt.trueBoolean,pauseOnHover:wt.trueBoolean,closeOnClick:wt.trueBoolean,timeout:ta.timeout,hideProgressBar:ta.hideProgressBar,toastClassName:wt.classNames,bodyClassName:wt.classNames,icon:nd.customIcon,closeButton:Jr.component,closeButtonClassName:Jr.classNames,showCloseButtonOnHover:Jr.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Za}},FT={id:{type:[String,Number],required:!0,default:0},type:wt.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},UT={container:{type:[Object,Function],default:()=>document.body},newestOnTop:wt.trueBoolean,maxToasts:{type:Number,default:20},transition:sd.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:wt.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},Wt={CORE_TOAST:HT,TOAST:FT,CONTAINER:UT,PROGRESS_BAR:ta,ICON:nd,TRANSITION:sd,CLOSE_BUTTON:Jr},rd=Se({name:"VtProgressBar",props:Wt.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Ct}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function zT(e,t){return te(),$e("div",{style:Vt(e.style),class:ut(e.cpClass)},null,6)}rd.render=zT;var VT=rd,id=Se({name:"VtCloseButton",props:Wt.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?wr(this.component):"button"},classes(){const e=[`${Ct}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),KT=mr(" × ");function WT(e,t){return te(),Ee(Ti(e.buttonComponent),vs({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:yt(()=>[KT]),_:1},16,["aria-label","class"])}id.render=WT;var qT=id,od={},JT={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},GT=Ue("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),XT=[GT];function QT(e,t){return te(),$e("svg",JT,XT)}od.render=QT;var YT=od,ad={},ZT={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},eE=Ue("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),tE=[eE];function nE(e,t){return te(),$e("svg",ZT,tE)}ad.render=nE;var gu=ad,ld={},sE={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},rE=Ue("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),iE=[rE];function oE(e,t){return te(),$e("svg",sE,iE)}ld.render=oE;var aE=ld,cd={},lE={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},cE=Ue("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),uE=[cE];function fE(e,t){return te(),$e("svg",lE,uE)}cd.render=fE;var hE=cd,ud=Se({name:"VtIcon",props:Wt.ICON,computed:{customIconChildren(){return jt(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Hi(this.customIcon)?this.trimValue(this.customIcon):jt(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return jt(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:td(this.customIcon)?wr(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[lt.DEFAULT]:gu,[lt.INFO]:gu,[lt.SUCCESS]:YT,[lt.ERROR]:hE,[lt.WARNING]:aE}[this.type]},iconClasses(){const e=[`${Ct}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return Yh(e)?e.trim():t}}});function dE(e,t){return te(),Ee(Ti(e.component),{class:ut(e.iconClasses)},{default:yt(()=>[mr(ua(e.customIconChildren),1)]),_:1},8,["class"])}ud.render=dE;var pE=ud,fd=Se({name:"VtToast",components:{ProgressBar:VT,CloseButton:qT,Icon:pE},inheritAttrs:!1,props:Object.assign({},Wt.CORE_TOAST,Wt.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Ct}__toast`,`${Ct}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Ct}__toast--rtl`),e},bodyClasses(){return[`${Ct}__toast-${Hi(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return du(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:jt,getVueComponentFromObj:wr,closeToast(){this.eventBus.emit(ct.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:ho(e),y:pu(e)},this.dragStart=ho(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:ho(e),y:pu(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,du(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),gE=["role"];function mE(e,t){const n=$t("Icon"),s=$t("CloseButton"),r=$t("ProgressBar");return te(),$e("div",{class:ut(e.classes),style:Vt(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?(te(),Ee(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):js("v-if",!0),Ue("div",{role:e.accessibility.toastRole||"alert",class:ut(e.bodyClasses)},[typeof e.content=="string"?(te(),$e(Pe,{key:0},[mr(ua(e.content),1)],2112)):(te(),Ee(Ti(e.getVueComponentFromObj(e.content)),vs({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},Vp(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,gE),e.closeButton?(te(),Ee(s,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:Qg(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):js("v-if",!0),e.timeout?(te(),Ee(r,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):js("v-if",!0)],38)}fd.render=mE;var yE=fd,hd=Se({name:"VtTransition",props:Wt.TRANSITION,emits:["leave"],methods:{hasProp:jt,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function vE(e,t){return te(),Ee(zg,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:yt(()=>[er(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}hd.render=vE;var _E=hd,dd=Se({name:"VueToastification",devtools:{hide:!0},components:{Toast:yE,VtTransition:_E},props:Object.assign({},Wt.CORE_TOAST,Wt.CONTAINER,Wt.TRANSITION),data(){return{count:0,positions:Object.values(di),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(ct.ADD,this.addToast),e.on(ct.CLEAR,this.clearToasts),e.on(ct.DISMISS,this.dismissToast),e.on(ct.UPDATE,this.updateToast),e.on(ct.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Bi(e)&&(e=await e()),DT(this.$el),e.appendChild(this.$el)},setToast(e){Dn(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=NT(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Dn(t)&&!Dn(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Dn(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Ct}__container`,e].concat(this.defaults.containerClassName)}}});function wE(e,t){const n=$t("Toast"),s=$t("VtTransition");return te(),$e("div",null,[(te(!0),$e(Pe,null,ml(e.positions,r=>(te(),$e("div",{key:r},[de(s,{transition:e.defaults.transition,class:ut(e.getClasses(r))},{default:yt(()=>[(te(!0),$e(Pe,null,ml(e.getPositionToasts(r),i=>(te(),Ee(n,vs({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}dd.render=wE;var bE=dd,mu=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new Za;t&&Mt(()=>{const i=ja(bE,Qh({},e)),o=i.mount(document.createElement("div")),a=e.onMounted;if(Dn(a)||a(o,i),e.shareAppContext){const l=e.shareAppContext;l===!0?console.warn(`[${Ct}] App to share context with was not provided.`):(i._context.components=l._context.components,i._context.directives=l._context.directives,i._context.mixins=l._context.mixins,i._context.provides=l._context.provides,i.config.globalProperties=l.config.globalProperties)}});const s=(i,o)=>{const a=Object.assign({},{id:jT(),type:lt.DEFAULT},o,{content:i});return n.emit(ct.ADD,a),a.id};s.clear=()=>n.emit(ct.CLEAR,void 0),s.updateDefaults=i=>{n.emit(ct.UPDATE_DEFAULTS,i)},s.dismiss=i=>{n.emit(ct.DISMISS,i)};function r(i,{content:o,options:a},l=!1){const c=Object.assign({},a,{content:o});n.emit(ct.UPDATE,{id:i,options:c,create:l})}return s.update=r,s.success=(i,o)=>s(i,Object.assign({},o,{type:lt.SUCCESS})),s.info=(i,o)=>s(i,Object.assign({},o,{type:lt.INFO})),s.error=(i,o)=>s(i,Object.assign({},o,{type:lt.ERROR})),s.warning=(i,o)=>s(i,Object.assign({},o,{type:lt.WARNING})),s},TE=()=>{const e=()=>console.warn(`[${Ct}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function na(e){return MT()?BT(e)?mu({eventBus:e},!1):mu(e,!0):TE()}var pd=Symbol("VueToastification"),gd=new Za,EE=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=na(Qh({eventBus:gd},t));e.provide(pd,n)},XE=e=>{if(e)return na(e);const t=Qt()?Ne(pd,void 0):void 0;return t||na(gd)},CE=EE;const SE={transition:"Vue-Toastification__fade",closeButton:!1},PE=Bt(e=>{e.vueApp.use(CE,SE)}),kE=[Sv,Qv,uw,c0,h0,d0,E0,C0,OT,PE],OE=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var s;return((s=e.params[n.slice(1)])==null?void 0:s.toString())||""}),sa=(e,t)=>{const n=e.route.matched.find(r=>{var i;return((i=r.components)==null?void 0:i.default)===e.Component.type}),s=t??(n==null?void 0:n.meta.key)??(n&&OE(e.route,n));return typeof s=="function"?s(e.route):s},AE=(e,t)=>({default:()=>e?ze(Np,e===!0?{}:e,t):t}),RE=Se({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,s={};for(const r in e.route)Object.defineProperty(s,r,{get:()=>t===e.renderKey?e.route[r]:n[r]});return Bn(yr,pr(s)),()=>ze(e.vnode,{ref:e.vnodeRef})}}),md=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var s;return t?ze(e,t,n):(s=n.default)==null?void 0:s.call(n)}}),xE=Se({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const s=we(),r=Re(),i=Ne(yr,null);n({pageRef:r});const o=Ne(Xf,null);let a;const l=s.deferHydration();return()=>ze(fh,{name:e.name,route:e.route,...t},{default:c=>{const u=LE(i,c.route,c.Component),f=i&&i.matched.length===c.route.matched.length;if(!c.Component)return a&&!f?a:void 0;if(a&&o&&!o.isCurrent(c.route))return a;if(u&&i&&(!o||o!=null&&o.isCurrent(i)))return f?a:null;const h=sa(c,e.pageKey),d=!!(e.transition??c.route.meta.pageTransition??Do),g=d&&IE([e.transition,c.route.meta.pageTransition,Do,{onAfterLeave:()=>{s.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return a=md(Si,d&&g,AE(e.keepalive??c.route.meta.keepalive??rv,ze(ba,{suspensible:!0,onPending:()=>s.callHook("page:start",c.Component),onResolve:()=>{Mt(()=>s.callHook("page:finish",c.Component).finally(l))}},{default:()=>ze(RE,{key:h,vnode:c.Component,route:c.route,renderKey:h,trackRootNodes:d,vnodeRef:r})}))).default(),a}})}});function $E(e){return Array.isArray(e)?e:e?[e]:[]}function IE(e){const t=e.map(n=>({...n,onAfterLeave:$E(n.onAfterLeave)}));return gv(...t)}function LE(e,t,n){if(!e)return!1;const s=t.matched.findIndex(r=>{var i;return((i=r.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!s||s===-1?!1:t.matched.slice(0,s).some((r,i)=>{var o,a,l;return((o=r.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&sa({route:t,Component:n})!==sa({route:e,Component:n})}const jE=Se({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await jn[e.name]().then(s=>s.default||s);return()=>ze(n,e.layoutProps,t.slots)}}),DE=Se({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=we(),s=Ne(yr),r=s===Qf()?ew():s,i=at(()=>ue(e.name)??r.meta.layout??"default"),o=Re();t.expose({layoutRef:o});const a=n.deferHydration();return()=>{const l=i.value&&i.value in jn,c=r.meta.layoutTransition??sv;return md(Si,l&&c,{default:()=>ze(ba,{suspensible:!0,onResolve:()=>{Mt(a)}},{default:()=>ze(NE,{layoutProps:vs(t.attrs,{ref:o}),key:i.value,name:i.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),NE=Se({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Bn(Xf,{isCurrent:s=>n===(s.meta.layout??"default")}),()=>{var s,r;return!n||typeof n=="string"&&!(n in jn)?(r=(s=t.slots).default)==null?void 0:r.call(s):ze(jE,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),ME=async()=>{const{data:e,error:t}=await Vv("/api/meta","$Mj2fHO3CEa");if(t.value)throw vr({...t.value,statusMessage:"Could not fetch the website metadata"});return e},BE=Se({__name:"app",async setup(e){let t,n;const s=([t,n]=Wp(()=>ME()),t=await t,n(),t),{title:r,slogan:i}=s.value;return tv({titleTemplate:o=>o?`${o} - ${r}`:`${r} - ${i}`}),(o,a)=>{const l=xE,c=DE;return te(),$e("div",null,[de(c,null,{default:yt(()=>[de(l)]),_:1})])}}});const HE={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` `);const s=Number(n.statusCode||500),r=s===404,i=n.statusMessage??(r?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,u=r?wo(()=>me(()=>import("./error-404.5cfd94c3.js"),["./error-404.5cfd94c3.js","./nuxt-link.e2312035.js","./_plugin-vue_export-helper.c27b6911.js","./error-404.871584dc.css"],import.meta.url).then(f=>f.default||f)):wo(()=>me(()=>import("./error-500.c1bfeed7.js"),["./error-500.c1bfeed7.js","./_plugin-vue_export-helper.c27b6911.js","./error-500.5504fd74.css"],import.meta.url).then(f=>f.default||f));return(f,h)=>(te(),Ee(ue(u),Eu($a({statusCode:ue(s),statusMessage:ue(i),description:ue(o),stack:ue(a)})),null,16))}},FE=HE,UE={__name:"nuxt-root",setup(e){const t=()=>null,n=we(),s=n.deferHydration(),r=!1;Bn(yr,Qf()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=Oi();rf((a,l,c)=>{if(n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),Cv(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>es(a)),!1});const o=!1;return(a,l)=>(te(),Ee(ba,{onResolve:ue(s)},{default:yt(()=>[ue(i)?(te(),Ee(ue(FE),{key:0,error:ue(i)},null,8,["error"])):ue(o)?(te(),Ee(ue(t),{key:1,context:ue(o)},null,8,["context"])):ue(r)?(te(),Ee(Ti(ue(r)),{key:2})):(te(),Ee(ue(BE),{key:3}))]),_:1},8,["onResolve"]))}},yu=UE;globalThis.$fetch||(globalThis.$fetch=qm.create({baseURL:Gm()}));let vu;{let e;vu=async function(){var i,o;if(e)return e;const s=!!((i=window.__NUXT__)!=null&&i.serverRendered||((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?nm(yu):ja(yu),r=ly({vueApp:s});try{await uy(r,kE)}catch(a){await r.callHook("app:error",a),r.payload.error=r.payload.error||a}try{await r.hooks.callHook("app:created",s),await r.hooks.callHook("app:beforeMount",s),s.mount(iv),await r.hooks.callHook("app:mounted",s),await Mt()}catch(a){await r.callHook("app:error",a),r.payload.error=r.payload.error||a}return s},e=vu().catch(t=>{console.error("Error while mounting app:",t)})}export{vs as $,Sa as A,Mt as B,iw as C,Qf as D,$p as E,Pe as F,Tv as G,XE as H,Gt as I,ze as J,Ne as K,Bn as L,Zs as M,pn as N,Jt as O,yr as P,Js as Q,er as R,ke as S,qE as T,Du as U,VE as V,va as W,Ti as X,bi as Y,Qt as Z,xE as _,Ue as a,_w as a0,JE as a1,Vv as a2,vr as a3,we as a4,zn as a5,Na as a6,vm as a7,Pi as a8,xo as a9,If as aa,Id as ab,zE as ac,me as ad,de as b,$e as c,mr as d,wp as e,at as f,KE as g,ml as h,Se as i,Wp as j,ue as k,ME as l,Qg as m,hh as n,te as o,_p as p,Ee as q,Re as r,js as s,ua as t,tv as u,GE as v,yt as w,$t as x,WE as y,ut as z};