const __vite__fileDeps=["assets/HomeView-BCZ05PDj.js","assets/HomeView-DP3eSxBf.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function oi(e,t){const n=new Set(e.split(","));return o=>n.has(o)}const Pe={},jn=[],ct=()=>{},gf=()=>!1,Cr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ri=e=>e.startsWith("onUpdate:"),je=Object.assign,si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vf=Object.prototype.hasOwnProperty,he=(e,t)=>vf.call(e,t),se=Array.isArray,zn=e=>Sr(e)==="[object Map]",ka=e=>Sr(e)==="[object Set]",le=e=>typeof e=="function",$e=e=>typeof e=="string",$n=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Ia=e=>(Ae(e)||le(e))&&le(e.then)&&le(e.catch),La=Object.prototype.toString,Sr=e=>La.call(e),yf=e=>Sr(e).slice(8,-1),Da=e=>Sr(e)==="[object Object]",ii=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,po=oi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Or=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bf=/-(\w)/g,ft=Or(e=>e.replace(bf,(t,n)=>n?n.toUpperCase():"")),wf=/\B([A-Z])/g,kn=Or(e=>e.replace(wf,"-$1").toLowerCase()),Ar=Or(e=>e.charAt(0).toUpperCase()+e.slice(1)),rr=Or(e=>e?`on${Ar(e)}`:""),cn=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ba=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},_f=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Xi;const Na=()=>Xi||(Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ge(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=$e(o)?Sf(o):Ge(o);if(r)for(const s in r)t[s]=r[s]}return t}else if($e(e)||Ae(e))return e}const xf=/;(?![^(]*\))/g,Ef=/:([^]+)/,Cf=/\/\*[^]*?\*\//g;function Sf(e){const t={};return e.replace(Cf,"").split(xf).forEach(n=>{if(n){const o=n.split(Ef);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function pt(e){let t="";if($e(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const o=pt(e[n]);o&&(t+=o+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ko(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$e(t)&&(e.class=pt(t)),n&&(e.style=Ge(n)),e}const Of="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Af=oi(Of);function Fa(e){return!!e||e===""}const ur=e=>$e(e)?e:e==null?"":se(e)||Ae(e)&&(e.toString===La||!le(e.toString))?JSON.stringify(e,Ma,2):String(e),Ma=(e,t)=>t&&t.__v_isRef?Ma(e,t.value):zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[os(o,s)+" =>"]=r,n),{})}:ka(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>os(n))}:$n(t)?os(t):Ae(t)&&!se(t)&&!Da(t)?String(t):t,os=(e,t="")=>{var n;return $n(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let rt;class ja{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Rr(e){return new ja(e)}function Rf(e,t=rt){t&&t.active&&t.effects.push(e)}function Io(){return rt}function Pr(e){rt&&rt.cleanups.push(e)}let Sn;class li{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Rf(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,pn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Pf(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),hn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=sn,n=Sn;try{return sn=!0,Sn=this,this._runnings++,Zi(this),this.fn()}finally{Qi(this),this._runnings--,Sn=n,sn=t}}stop(){this.active&&(Zi(this),Qi(this),this.onStop&&this.onStop(),this.active=!1)}}function Pf(e){return e.value}function Zi(e){e._trackId++,e._depsLength=0}function Qi(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)za(e.deps[t],e);e.deps.length=e._depsLength}}function za(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let sn=!0,Cs=0;const Ha=[];function pn(){Ha.push(sn),sn=!1}function hn(){const e=Ha.pop();sn=e===void 0?!0:e}function ai(){Cs++}function ci(){for(Cs--;!Cs&&Ss.length;)Ss.shift()()}function Ua(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&za(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ss=[];function Wa(e,t,n){ai();for(const o of e.keys()){let r;o._dirtyLevel<t&&(r??(r=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(r??(r=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&Ss.push(o.scheduler)))}ci()}const Va=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},fr=new WeakMap,On=Symbol(""),Os=Symbol("");function Qe(e,t,n){if(sn&&Sn){let o=fr.get(e);o||fr.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Va(()=>o.delete(n))),Ua(Sn,r)}}function Bt(e,t,n,o,r,s){const i=fr.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&se(e)){const a=Number(o);i.forEach((u,c)=>{(c==="length"||!$n(c)&&c>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":se(e)?ii(n)&&l.push(i.get("length")):(l.push(i.get(On)),zn(e)&&l.push(i.get(Os)));break;case"delete":se(e)||(l.push(i.get(On)),zn(e)&&l.push(i.get(Os)));break;case"set":zn(e)&&l.push(i.get(On));break}ai();for(const a of l)a&&Wa(a,4);ci()}function Tf(e,t){const n=fr.get(e);return n&&n.get(t)}const $f=oi("__proto__,__v_isRef,__isVue"),qa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($n)),el=kf();function kf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let s=0,i=this.length;s<i;s++)Qe(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){pn(),ai();const o=me(this)[t].apply(this,n);return ci(),hn(),o}}),e}function If(e){$n(e)||(e=String(e));const t=me(this);return Qe(t,"has",e),t.hasOwnProperty(e)}class Ka{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?Qa:Za:s?Xa:Ya).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=se(t);if(!r){if(i&&he(el,n))return Reflect.get(el,n,o);if(n==="hasOwnProperty")return If}const l=Reflect.get(t,n,o);return($n(n)?qa.has(n):$f(n))||(r||Qe(t,"get",n),s)?l:Le(l)?i&&ii(n)?l:l.value:Ae(l)?r?kr(l):Ht(l):l}}class Ga extends Ka{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._isShallow){const a=xo(s);if(!dr(o)&&!xo(o)&&(s=me(s),o=me(o)),!se(t)&&Le(s)&&!Le(o))return a?!1:(s.value=o,!0)}const i=se(t)&&ii(n)?Number(n)<t.length:he(t,n),l=Reflect.set(t,n,o,r);return t===me(r)&&(i?cn(o,s)&&Bt(t,"set",n,o):Bt(t,"add",n,o)),l}deleteProperty(t,n){const o=he(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&Bt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!$n(n)||!qa.has(n))&&Qe(t,"has",n),o}ownKeys(t){return Qe(t,"iterate",se(t)?"length":On),Reflect.ownKeys(t)}}class Ja extends Ka{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Lf=new Ga,Df=new Ja,Bf=new Ga(!0),Nf=new Ja(!0),ui=e=>e,Tr=e=>Reflect.getPrototypeOf(e);function jo(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),s=me(t);n||(cn(t,s)&&Qe(r,"get",t),Qe(r,"get",s));const{has:i}=Tr(r),l=o?ui:n?di:Eo;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function zo(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(cn(e,r)&&Qe(o,"has",e),Qe(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ho(e,t=!1){return e=e.__v_raw,!t&&Qe(me(e),"iterate",On),Reflect.get(e,"size",e)}function tl(e){e=me(e);const t=me(this);return Tr(t).has.call(t,e)||(t.add(e),Bt(t,"add",e,e)),this}function nl(e,t){t=me(t);const n=me(this),{has:o,get:r}=Tr(n);let s=o.call(n,e);s||(e=me(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?cn(t,i)&&Bt(n,"set",e,t):Bt(n,"add",e,t),this}function ol(e){const t=me(this),{has:n,get:o}=Tr(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&Bt(t,"delete",e,void 0),s}function rl(){const e=me(this),t=e.size!==0,n=e.clear();return t&&Bt(e,"clear",void 0,void 0),n}function Uo(e,t){return function(o,r){const s=this,i=s.__v_raw,l=me(i),a=t?ui:e?di:Eo;return!e&&Qe(l,"iterate",On),i.forEach((u,c)=>o.call(r,a(u),a(c),s))}}function Wo(e,t,n){return function(...o){const r=this.__v_raw,s=me(r),i=zn(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...o),c=n?ui:t?di:Eo;return!t&&Qe(s,"iterate",a?Os:On),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Gt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ff(){const e={get(s){return jo(this,s)},get size(){return Ho(this)},has:zo,add:tl,set:nl,delete:ol,clear:rl,forEach:Uo(!1,!1)},t={get(s){return jo(this,s,!1,!0)},get size(){return Ho(this)},has:zo,add:tl,set:nl,delete:ol,clear:rl,forEach:Uo(!1,!0)},n={get(s){return jo(this,s,!0)},get size(){return Ho(this,!0)},has(s){return zo.call(this,s,!0)},add:Gt("add"),set:Gt("set"),delete:Gt("delete"),clear:Gt("clear"),forEach:Uo(!0,!1)},o={get(s){return jo(this,s,!0,!0)},get size(){return Ho(this,!0)},has(s){return zo.call(this,s,!0)},add:Gt("add"),set:Gt("set"),delete:Gt("delete"),clear:Gt("clear"),forEach:Uo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Wo(s,!1,!1),n[s]=Wo(s,!0,!1),t[s]=Wo(s,!1,!0),o[s]=Wo(s,!0,!0)}),[e,n,t,o]}const[Mf,jf,zf,Hf]=Ff();function $r(e,t){const n=t?e?Hf:zf:e?jf:Mf;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(he(n,r)&&r in o?n:o,r,s)}const Uf={get:$r(!1,!1)},Wf={get:$r(!1,!0)},Vf={get:$r(!0,!1)},qf={get:$r(!0,!0)},Ya=new WeakMap,Xa=new WeakMap,Za=new WeakMap,Qa=new WeakMap;function Kf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gf(e){return e.__v_skip||!Object.isExtensible(e)?0:Kf(yf(e))}function Ht(e){return xo(e)?e:Ir(e,!1,Lf,Uf,Ya)}function ec(e){return Ir(e,!1,Bf,Wf,Xa)}function kr(e){return Ir(e,!0,Df,Vf,Za)}function Dn(e){return Ir(e,!0,Nf,qf,Qa)}function Ir(e,t,n,o,r){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Gf(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function ln(e){return xo(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function xo(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function tc(e){return e?!!e.__v_raw:!1}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function fi(e){return Object.isExtensible(e)&&Ba(e,"__v_skip",!0),e}const Eo=e=>Ae(e)?Ht(e):e,di=e=>Ae(e)?kr(e):e;class nc{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new li(()=>t(this._value),()=>sr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return(!t._cacheable||t.effect.dirty)&&cn(t._value,t._value=t.effect.run())&&sr(t,4),oc(t),t.effect._dirtyLevel>=2&&sr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Jf(e,t,n=!1){let o,r;const s=le(e);return s?(o=e,r=ct):(o=e.get,r=e.set),new nc(o,r,s||!r,n)}function oc(e){var t;sn&&Sn&&(e=me(e),Ua(Sn,(t=e.dep)!=null?t:e.dep=Va(()=>e.dep=void 0,e instanceof nc?e:void 0)))}function sr(e,t=4,n){e=me(e);const o=e.dep;o&&Wa(o,t)}function Le(e){return!!(e&&e.__v_isRef===!0)}function F(e){return rc(e,!1)}function Lr(e){return rc(e,!0)}function rc(e,t){return Le(e)?e:new Yf(e,t)}class Yf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:Eo(t)}get value(){return oc(this),this._value}set value(t){const n=this.__v_isShallow||dr(t)||xo(t);t=n?t:me(t),cn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Eo(t),sr(this,4))}}function y(e){return Le(e)?e.value:e}const Xf={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function sc(e){return ln(e)?e:new Proxy(e,Xf)}function mn(e){const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=lc(e,n);return t}class Zf{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,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 Tf(me(this._object),this._key)}}class Qf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ic(e,t,n){return Le(e)?e:le(e)?new Qf(e):Ae(e)&&arguments.length>1?lc(e,t,n):F(e)}function lc(e,t,n){const o=e[t];return Le(o)?o:new Zf(e,t,n)}/**
* @vue/runtime-core v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function an(e,t,n,o){try{return o?e(...o):e()}catch(r){Dr(r,t,n)}}function vt(e,t,n,o){if(le(e)){const r=an(e,t,n,o);return r&&Ia(r)&&r.catch(s=>{Dr(s,t,n)}),r}if(se(e)){const r=[];for(let s=0;s<e.length;s++)r.push(vt(e[s],t,n,o));return r}}function Dr(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){pn(),an(a,null,10,[e,i,l]),hn();return}}ed(e,n,r,o)}function ed(e,t,n,o=!0){console.error(e)}let Co=!1,As=!1;const Ve=[];let St=0;const Hn=[];let tn=null,En=0;const ac=Promise.resolve();let pi=null;function et(e){const t=pi||ac;return e?t.then(this?e.bind(this):e):t}function td(e){let t=St+1,n=Ve.length;for(;t<n;){const o=t+n>>>1,r=Ve[o],s=So(r);s<e||s===e&&r.pre?t=o+1:n=o}return t}function hi(e){(!Ve.length||!Ve.includes(e,Co&&e.allowRecurse?St+1:St))&&(e.id==null?Ve.push(e):Ve.splice(td(e.id),0,e),cc())}function cc(){!Co&&!As&&(As=!0,pi=ac.then(fc))}function nd(e){const t=Ve.indexOf(e);t>St&&Ve.splice(t,1)}function od(e){se(e)?Hn.push(...e):(!tn||!tn.includes(e,e.allowRecurse?En+1:En))&&Hn.push(e),cc()}function sl(e,t,n=Co?St+1:0){for(;n<Ve.length;n++){const o=Ve[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Ve.splice(n,1),n--,o()}}}function uc(e){if(Hn.length){const t=[...new Set(Hn)].sort((n,o)=>So(n)-So(o));if(Hn.length=0,tn){tn.push(...t);return}for(tn=t,En=0;En<tn.length;En++)tn[En]();tn=null,En=0}}const So=e=>e.id==null?1/0:e.id,rd=(e,t)=>{const n=So(e)-So(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function fc(e){As=!1,Co=!0,Ve.sort(rd);try{for(St=0;St<Ve.length;St++){const t=Ve[St];t&&t.active!==!1&&an(t,null,14)}}finally{St=0,Ve.length=0,uc(),Co=!1,pi=null,(Ve.length||Hn.length)&&fc()}}function sd(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Pe;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const c=`${i==="modelValue"?"model":i}Modifiers`,{number:f,trim:d}=o[c]||Pe;d&&(r=n.map(p=>$e(p)?p.trim():p)),f&&(r=n.map(_f))}let l,a=o[l=rr(t)]||o[l=rr(ft(t))];!a&&s&&(a=o[l=rr(kn(t))]),a&&vt(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,vt(u,e,6,r)}}function dc(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!le(e)){const a=u=>{const c=dc(u,t,!0);c&&(l=!0,je(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(Ae(e)&&o.set(e,null),null):(se(s)?s.forEach(a=>i[a]=null):je(i,s),Ae(e)&&o.set(e,i),i)}function Br(e,t){return!e||!Cr(t)?!1:(t=t.slice(2).replace(/Once$/,""),he(e,t[0].toLowerCase()+t.slice(1))||he(e,kn(t))||he(e,t))}let Ue=null,pc=null;function pr(e){const t=Ue;return Ue=e,pc=e&&e.type.__scopeId||null,t}function j(e,t=Ue,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&vl(-1);const s=pr(t);let i;try{i=e(...r)}finally{pr(s),o._d&&vl(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function rs(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:h,inheritAttrs:m}=e,w=pr(e);let v,_;try{if(n.shapeFlag&4){const P=r||o,A=P;v=Ct(u.call(A,P,c,f,p,d,h)),_=l}else{const P=t;v=Ct(P.length>1?P(f,{attrs:l,slots:i,emit:a}):P(f,null)),_=t.props?l:id(l)}}catch(P){yo.length=0,Dr(P,e,1),v=oe(Mt)}let x=v;if(_&&m!==!1){const P=Object.keys(_),{shapeFlag:A}=x;P.length&&A&7&&(s&&P.some(ri)&&(_=ld(_,s)),x=Rn(x,_,!1,!0))}return n.dirs&&(x=Rn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,pr(w),v}const id=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cr(n))&&((t||(t={}))[n]=e[n]);return t},ld=(e,t)=>{const n={};for(const o in e)(!ri(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ad(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?il(o,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==o[d]&&!Br(u,d))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?il(o,i,u):!0:!!i;return!1}function il(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Br(n,s))return!0}return!1}function cd({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hc="components";function ud(e,t){return gc(hc,e,!0,t)||e}const mc=Symbol.for("v-ndc");function fd(e){return $e(e)?gc(hc,e,!1)||e:e||mc}function gc(e,t,n=!0,o=!1){const r=Ue||Me;if(r){const s=r.type;{const l=sp(s,!1);if(l&&(l===t||l===ft(t)||l===Ar(ft(t))))return s}const i=ll(r[e]||s[e],t)||ll(r.appContext[e],t);return!i&&o?s:i}}function ll(e,t){return e&&(e[t]||e[ft(t)]||e[Ar(ft(t))])}const dd=e=>e.__isSuspense;function pd(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):od(e)}const hd=Symbol.for("v-scx"),md=()=>it(hd);function at(e,t){return mi(e,null,t)}const Vo={};function ve(e,t,n){return mi(e,t,n)}function mi(e,t,{immediate:n,deep:o,flush:r,once:s,onTrack:i,onTrigger:l}=Pe){if(t&&s){const R=t;t=(...N)=>{R(...N),A()}}const a=Me,u=R=>o===!0?R:Mn(R,o===!1?1:void 0);let c,f=!1,d=!1;if(Le(e)?(c=()=>e.value,f=dr(e)):ln(e)?(c=()=>u(e),f=!0):se(e)?(d=!0,f=e.some(R=>ln(R)||dr(R)),c=()=>e.map(R=>{if(Le(R))return R.value;if(ln(R))return u(R);if(le(R))return an(R,a,2)})):le(e)?t?c=()=>an(e,a,2):c=()=>(p&&p(),vt(e,a,3,[h])):c=ct,t&&o){const R=c;c=()=>Mn(R())}let p,h=R=>{p=x.onStop=()=>{an(R,a,4),p=x.onStop=void 0}},m;if(jr)if(h=ct,t?n&&vt(t,a,3,[c(),d?[]:void 0,h]):c(),r==="sync"){const R=md();m=R.__watcherHandles||(R.__watcherHandles=[])}else return ct;let w=d?new Array(e.length).fill(Vo):Vo;const v=()=>{if(!(!x.active||!x.dirty))if(t){const R=x.run();(o||f||(d?R.some((N,z)=>cn(N,w[z])):cn(R,w)))&&(p&&p(),vt(t,a,3,[R,w===Vo?void 0:d&&w[0]===Vo?[]:w,h]),w=R)}else x.run()};v.allowRecurse=!!t;let _;r==="sync"?_=v:r==="post"?_=()=>Xe(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),_=()=>hi(v));const x=new li(c,ct,_),P=Io(),A=()=>{x.stop(),P&&si(P.effects,x)};return t?n?v():w=x.run():r==="post"?Xe(x.run.bind(x),a&&a.suspense):x.run(),m&&m.push(A),A}function gd(e,t,n){const o=this.proxy,r=$e(e)?e.includes(".")?vc(o,e):()=>o[e]:e.bind(o,o);let s;le(t)?s=t:(s=t.handler,n=t);const i=Lo(this),l=mi(r,s.bind(o),n);return i(),l}function vc(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Mn(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Le(e))Mn(e.value,t,n);else if(se(e))for(let o=0;o<e.length;o++)Mn(e[o],t,n);else if(ka(e)||zn(e))e.forEach(o=>{Mn(o,t,n)});else if(Da(e))for(const o in e)Mn(e[o],t,n);return e}function wn(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(pn(),vt(a,n,8,[e.el,l,e,t]),hn())}}/*! #__NO_SIDE_EFFECTS__ */function K(e,t){return le(e)?je({name:e.name},t,{setup:e}):e}const ho=e=>!!e.type.__asyncLoader,yc=e=>e.type.__isKeepAlive;function vd(e,t){bc(e,"a",t)}function yd(e,t){bc(e,"da",t)}function bc(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nr(t,o,n),n){let r=n.parent;for(;r&&r.parent;)yc(r.parent.vnode)&&bd(o,t,n,r),r=r.parent}}function bd(e,t,n,o){const r=Nr(t,e,o,!0);Pt(()=>{si(o[t],r)},n)}function Nr(e,t,n=Me,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;pn();const l=Lo(n),a=vt(t,n,e,i);return l(),hn(),a});return o?r.unshift(s):r.push(s),s}}const Ut=e=>(t,n=Me)=>(!jr||e==="sp")&&Nr(e,(...o)=>t(...o),n),wd=Ut("bm"),Je=Ut("m"),_d=Ut("bu"),xd=Ut("u"),wc=Ut("bum"),Pt=Ut("um"),Ed=Ut("sp"),Cd=Ut("rtg"),Sd=Ut("rtc");function Od(e,t=Me){Nr("ec",e,t)}function gi(e,t,n,o){let r;const s=n;if(se(e)||$e(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s)}else if(Ae(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const u=i[l];r[l]=t(e[u],u,l,s)}}else r=[];return r}function te(e,t,n={},o,r){if(Ue.isCE||Ue.parent&&ho(Ue.parent)&&Ue.parent.isCE)return oe("slot",n,o);let s=e[t];s&&s._c&&(s._d=!1),M();const i=s&&_c(s(n)),l=ee(He,{key:n.key||i&&i.key||`_${t}`},i||[],i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function _c(e){return e.some(t=>mr(t)?!(t.type===Mt||t.type===He&&!_c(t.children)):!0)?e:null}const Rs=e=>e?Nc(e)?_i(e)||e.proxy:Rs(e.parent):null,mo=je(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=>Rs(e.parent),$root:e=>Rs(e.root),$emit:e=>e.emit,$options:e=>vi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,hi(e.update)}),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>gd.bind(e)}),ss=(e,t)=>e!==Pe&&!e.__isScriptSetup&&he(e,t),Ad={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(ss(o,t))return i[t]=1,o[t];if(r!==Pe&&he(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&he(u,t))return i[t]=3,s[t];if(n!==Pe&&he(n,t))return i[t]=4,n[t];Ts&&(i[t]=0)}}const c=mo[t];let f,d;if(c)return t==="$attrs"&&Qe(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Pe&&he(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,he(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return ss(r,t)?(r[t]=n,!0):o!==Pe&&he(o,t)?(o[t]=n,!0):he(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==Pe&&he(e,i)||ss(t,i)||(l=s[0])&&he(l,i)||he(o,i)||he(mo,i)||he(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:he(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xc(){return Rd().slots}function Rd(){const e=Tt();return e.setupContext||(e.setupContext=Mc(e))}function Ps(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Pd(e,t){const n=Ps(e);for(const o in t){if(o.startsWith("__skip"))continue;let r=n[o];r?se(r)||le(r)?r=n[o]={type:r,default:t[o]}:r.default=t[o]:r===null&&(r=n[o]={default:t[o]}),r&&t[`__skip_${o}`]&&(r.skipFactory=!0)}return n}let Ts=!0;function Td(e){const t=vi(e),n=e.proxy,o=e.ctx;Ts=!1,t.beforeCreate&&al(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:m,deactivated:w,beforeDestroy:v,beforeUnmount:_,destroyed:x,unmounted:P,render:A,renderTracked:R,renderTriggered:N,errorCaptured:z,serverPrefetch:G,expose:D,inheritAttrs:Z,components:W,directives:fe,filters:J}=t;if(u&&$d(u,o,null),i)for(const ie in i){const de=i[ie];le(de)&&(o[ie]=de.bind(n))}if(r){const ie=r.call(n,n);Ae(ie)&&(e.data=Ht(ie))}if(Ts=!0,s)for(const ie in s){const de=s[ie],ze=le(de)?de.bind(n,n):le(de.get)?de.get.bind(n,n):ct,tt=!le(de)&&le(de.set)?de.set.bind(n):ct,Ne=U({get:ze,set:tt});Object.defineProperty(o,ie,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:ke=>Ne.value=ke})}if(l)for(const ie in l)Ec(l[ie],o,n,ie);if(a){const ie=le(a)?a.call(n):a;Reflect.ownKeys(ie).forEach(de=>{go(de,ie[de])})}c&&al(c,e,"c");function Y(ie,de){se(de)?de.forEach(ze=>ie(ze.bind(n))):de&&ie(de.bind(n))}if(Y(wd,f),Y(Je,d),Y(_d,p),Y(xd,h),Y(vd,m),Y(yd,w),Y(Od,z),Y(Sd,R),Y(Cd,N),Y(wc,_),Y(Pt,P),Y(Ed,G),se(D))if(D.length){const ie=e.exposed||(e.exposed={});D.forEach(de=>{Object.defineProperty(ie,de,{get:()=>n[de],set:ze=>n[de]=ze})})}else e.exposed||(e.exposed={});A&&e.render===ct&&(e.render=A),Z!=null&&(e.inheritAttrs=Z),W&&(e.components=W),fe&&(e.directives=fe)}function $d(e,t,n=ct){se(e)&&(e=$s(e));for(const o in e){const r=e[o];let s;Ae(r)?"default"in r?s=it(r.from||o,r.default,!0):s=it(r.from||o):s=it(r),Le(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function al(e,t,n){vt(se(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ec(e,t,n,o){const r=o.includes(".")?vc(n,o):()=>n[o];if($e(e)){const s=t[e];le(s)&&ve(r,s)}else if(le(e))ve(r,e.bind(n));else if(Ae(e))if(se(e))e.forEach(s=>Ec(s,t,n,o));else{const s=le(e.handler)?e.handler.bind(n):t[e.handler];le(s)&&ve(r,s,e)}}function vi(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>hr(a,u,i,!0)),hr(a,t,i)),Ae(t)&&s.set(t,a),a}function hr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&hr(e,s,n,!0),r&&r.forEach(i=>hr(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=kd[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const kd={data:cl,props:ul,emits:ul,methods:fo,computed:fo,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:fo,directives:fo,watch:Ld,provide:cl,inject:Id};function cl(e,t){return t?e?function(){return je(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Id(e,t){return fo($s(e),$s(t))}function $s(e){if(se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qe(e,t){return e?[...new Set([].concat(e,t))]:t}function fo(e,t){return e?je(Object.create(null),e,t):t}function ul(e,t){return e?se(e)&&se(t)?[...new Set([...e,...t])]:je(Object.create(null),Ps(e),Ps(t??{})):t}function Ld(e,t){if(!e)return t;if(!t)return e;const n=je(Object.create(null),e);for(const o in t)n[o]=qe(e[o],t[o]);return n}function Cc(){return{app:null,config:{isNativeTag:gf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Dd=0;function Bd(e,t){return function(o,r=null){le(o)||(o=je({},o)),r!=null&&!Ae(r)&&(r=null);const s=Cc(),i=new WeakSet;let l=!1;const a=s.app={_uid:Dd++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:lp,get config(){return s.config},set config(u){},use(u,...c){return i.has(u)||(u&&le(u.install)?(i.add(u),u.install(a,...c)):le(u)&&(i.add(u),u(a,...c))),a},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),a},component(u,c){return c?(s.components[u]=c,a):s.components[u]},directive(u,c){return c?(s.directives[u]=c,a):s.directives[u]},mount(u,c,f){if(!l){const d=oe(o,r);return d.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(d,u):e(d,u,f),l=!0,a._container=u,u.__vue_app__=a,_i(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,c){return s.provides[u]=c,a},runWithContext(u){const c=Un;Un=a;try{return u()}finally{Un=c}}};return a}}let Un=null;function go(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function it(e,t,n=!1){const o=Me||Ue;if(o||Un){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function Nd(){return!!(Me||Ue||Un)}const Sc={},Oc=()=>Object.create(Sc),Ac=e=>Object.getPrototypeOf(e)===Sc;function Fd(e,t,n,o=!1){const r={},s=Oc();e.propsDefaults=Object.create(null),Rc(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:ec(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Md(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=me(r),[a]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Br(e.emitsOptions,d))continue;const p=t[d];if(a)if(he(s,d))p!==s[d]&&(s[d]=p,u=!0);else{const h=ft(d);r[h]=ks(a,l,h,p,e,!1)}else p!==s[d]&&(s[d]=p,u=!0)}}}else{Rc(e,t,r,s)&&(u=!0);let c;for(const f in l)(!t||!he(t,f)&&((c=kn(f))===f||!he(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=ks(a,l,f,void 0,e,!0)):delete r[f]);if(s!==l)for(const f in s)(!t||!he(t,f))&&(delete s[f],u=!0)}u&&Bt(e.attrs,"set","")}function Rc(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(po(a))continue;const u=t[a];let c;r&&he(r,c=ft(a))?!s||!s.includes(c)?n[c]=u:(l||(l={}))[c]=u:Br(e.emitsOptions,a)||(!(a in o)||u!==o[a])&&(o[a]=u,i=!0)}if(s){const a=me(n),u=l||Pe;for(let c=0;c<s.length;c++){const f=s[c];n[f]=ks(r,a,f,u[f],e,!he(u,f))}}return i}function ks(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=he(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&le(a)){const{propsDefaults:u}=r;if(n in u)o=u[n];else{const c=Lo(r);o=u[n]=a.call(null,t),c()}}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===kn(n))&&(o=!0))}return o}function Pc(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!le(e)){const c=f=>{a=!0;const[d,p]=Pc(f,t,!0);je(i,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!a)return Ae(e)&&o.set(e,jn),jn;if(se(s))for(let c=0;c<s.length;c++){const f=ft(s[c]);fl(f)&&(i[f]=Pe)}else if(s)for(const c in s){const f=ft(c);if(fl(f)){const d=s[c],p=i[f]=se(d)||le(d)?{type:d}:je({},d);if(p){const h=hl(Boolean,p.type),m=hl(String,p.type);p[0]=h>-1,p[1]=m<0||h<m,(h>-1||he(p,"default"))&&l.push(f)}}}const u=[i,l];return Ae(e)&&o.set(e,u),u}function fl(e){return e[0]!=="$"&&!po(e)}function dl(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function pl(e,t){return dl(e)===dl(t)}function hl(e,t){return se(t)?t.findIndex(n=>pl(n,e)):le(t)&&pl(t,e)?0:-1}const Tc=e=>e[0]==="_"||e==="$stable",yi=e=>se(e)?e.map(Ct):[Ct(e)],jd=(e,t,n)=>{if(t._n)return t;const o=j((...r)=>yi(t(...r)),n);return o._c=!1,o},$c=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Tc(r))continue;const s=e[r];if(le(s))t[r]=jd(r,s,o);else if(s!=null){const i=yi(s);t[r]=()=>i}}},kc=(e,t)=>{const n=yi(t);e.slots.default=()=>n},zd=(e,t)=>{const n=e.slots=Oc();if(e.vnode.shapeFlag&32){const o=t._;o?(je(n,t),Ba(n,"_",o,!0)):$c(t,n)}else t&&kc(e,t)},Hd=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=Pe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(je(r,t),!n&&l===1&&delete r._):(s=!t.$stable,$c(t,r)),i=t}else t&&(kc(e,t),i={default:1});if(s)for(const l in r)!Tc(l)&&i[l]==null&&delete r[l]};function Is(e,t,n,o,r=!1){if(se(e)){e.forEach((d,p)=>Is(d,t&&(se(t)?t[p]:t),n,o,r));return}if(ho(o)&&!r)return;const s=o.shapeFlag&4?_i(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,u=t&&t.r,c=l.refs===Pe?l.refs={}:l.refs,f=l.setupState;if(u!=null&&u!==a&&($e(u)?(c[u]=null,he(f,u)&&(f[u]=null)):Le(u)&&(u.value=null)),le(a))an(a,l,12,[i,c]);else{const d=$e(a),p=Le(a);if(d||p){const h=()=>{if(e.f){const m=d?he(f,a)?f[a]:c[a]:a.value;r?se(m)&&si(m,s):se(m)?m.includes(s)||m.push(s):d?(c[a]=[s],he(f,a)&&(f[a]=c[a])):(a.value=[s],e.k&&(c[e.k]=a.value))}else d?(c[a]=i,he(f,a)&&(f[a]=i)):p&&(a.value=i,e.k&&(c[e.k]=i))};i?(h.id=-1,Xe(h,n)):h()}}}const Xe=pd;function Ud(e){return Wd(e)}function Wd(e,t){const n=Na();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=ct,insertStaticContent:h}=e,m=(g,b,C,E=null,S=null,k=null,L=void 0,I=null,B=!!b.dynamicChildren)=>{if(g===b)return;g&&!so(g,b)&&(E=T(g),ke(g,S,k,!0),g=null),b.patchFlag===-2&&(B=!1,b.dynamicChildren=null);const{type:$,ref:V,shapeFlag:ne}=b;switch($){case Fr:w(g,b,C,E);break;case Mt:v(g,b,C,E);break;case ls:g==null&&_(b,C,E,L);break;case He:W(g,b,C,E,S,k,L,I,B);break;default:ne&1?A(g,b,C,E,S,k,L,I,B):ne&6?fe(g,b,C,E,S,k,L,I,B):(ne&64||ne&128)&&$.process(g,b,C,E,S,k,L,I,B,X)}V!=null&&S&&Is(V,g&&g.ref,k,b||g,!b)},w=(g,b,C,E)=>{if(g==null)o(b.el=l(b.children),C,E);else{const S=b.el=g.el;b.children!==g.children&&u(S,b.children)}},v=(g,b,C,E)=>{g==null?o(b.el=a(b.children||""),C,E):b.el=g.el},_=(g,b,C,E)=>{[g.el,g.anchor]=h(g.children,b,C,E,g.el,g.anchor)},x=({el:g,anchor:b},C,E)=>{let S;for(;g&&g!==b;)S=d(g),o(g,C,E),g=S;o(b,C,E)},P=({el:g,anchor:b})=>{let C;for(;g&&g!==b;)C=d(g),r(g),g=C;r(b)},A=(g,b,C,E,S,k,L,I,B)=>{b.type==="svg"?L="svg":b.type==="math"&&(L="mathml"),g==null?R(b,C,E,S,k,L,I,B):G(g,b,S,k,L,I,B)},R=(g,b,C,E,S,k,L,I)=>{let B,$;const{props:V,shapeFlag:ne,transition:Q,dirs:re}=g;if(B=g.el=i(g.type,k,V&&V.is,V),ne&8?c(B,g.children):ne&16&&z(g.children,B,null,E,S,is(g,k),L,I),re&&wn(g,null,E,"created"),N(B,g,g.scopeId,L,E),V){for(const we in V)we!=="value"&&!po(we)&&s(B,we,null,V[we],k,g.children,E,S,Fe);"value"in V&&s(B,"value",null,V.value,k),($=V.onVnodeBeforeMount)&&Et($,E,g)}re&&wn(g,null,E,"beforeMount");const ue=Vd(S,Q);ue&&Q.beforeEnter(B),o(B,b,C),(($=V&&V.onVnodeMounted)||ue||re)&&Xe(()=>{$&&Et($,E,g),ue&&Q.enter(B),re&&wn(g,null,E,"mounted")},S)},N=(g,b,C,E,S)=>{if(C&&p(g,C),E)for(let k=0;k<E.length;k++)p(g,E[k]);if(S){let k=S.subTree;if(b===k){const L=S.vnode;N(g,L,L.scopeId,L.slotScopeIds,S.parent)}}},z=(g,b,C,E,S,k,L,I,B=0)=>{for(let $=B;$<g.length;$++){const V=g[$]=I?nn(g[$]):Ct(g[$]);m(null,V,b,C,E,S,k,L,I)}},G=(g,b,C,E,S,k,L)=>{const I=b.el=g.el;let{patchFlag:B,dynamicChildren:$,dirs:V}=b;B|=g.patchFlag&16;const ne=g.props||Pe,Q=b.props||Pe;let re;if(C&&_n(C,!1),(re=Q.onVnodeBeforeUpdate)&&Et(re,C,b,g),V&&wn(b,g,C,"beforeUpdate"),C&&_n(C,!0),$?D(g.dynamicChildren,$,I,C,E,is(b,S),k):L||de(g,b,I,null,C,E,is(b,S),k,!1),B>0){if(B&16)Z(I,b,ne,Q,C,E,S);else if(B&2&&ne.class!==Q.class&&s(I,"class",null,Q.class,S),B&4&&s(I,"style",ne.style,Q.style,S),B&8){const ue=b.dynamicProps;for(let we=0;we<ue.length;we++){const ge=ue[we],Ie=ne[ge],nt=Q[ge];(nt!==Ie||ge==="value")&&s(I,ge,Ie,nt,S,g.children,C,E,Fe)}}B&1&&g.children!==b.children&&c(I,b.children)}else!L&&$==null&&Z(I,b,ne,Q,C,E,S);((re=Q.onVnodeUpdated)||V)&&Xe(()=>{re&&Et(re,C,b,g),V&&wn(b,g,C,"updated")},E)},D=(g,b,C,E,S,k,L)=>{for(let I=0;I<b.length;I++){const B=g[I],$=b[I],V=B.el&&(B.type===He||!so(B,$)||B.shapeFlag&70)?f(B.el):C;m(B,$,V,null,E,S,k,L,!0)}},Z=(g,b,C,E,S,k,L)=>{if(C!==E){if(C!==Pe)for(const I in C)!po(I)&&!(I in E)&&s(g,I,C[I],null,L,b.children,S,k,Fe);for(const I in E){if(po(I))continue;const B=E[I],$=C[I];B!==$&&I!=="value"&&s(g,I,$,B,L,b.children,S,k,Fe)}"value"in E&&s(g,"value",C.value,E.value,L)}},W=(g,b,C,E,S,k,L,I,B)=>{const $=b.el=g?g.el:l(""),V=b.anchor=g?g.anchor:l("");let{patchFlag:ne,dynamicChildren:Q,slotScopeIds:re}=b;re&&(I=I?I.concat(re):re),g==null?(o($,C,E),o(V,C,E),z(b.children||[],C,V,S,k,L,I,B)):ne>0&&ne&64&&Q&&g.dynamicChildren?(D(g.dynamicChildren,Q,C,S,k,L,I),(b.key!=null||S&&b===S.subTree)&&bi(g,b,!0)):de(g,b,C,V,S,k,L,I,B)},fe=(g,b,C,E,S,k,L,I,B)=>{b.slotScopeIds=I,g==null?b.shapeFlag&512?S.ctx.activate(b,C,E,L,B):J(b,C,E,S,k,L,B):ye(g,b,B)},J=(g,b,C,E,S,k,L)=>{const I=g.component=tp(g,E,S);if(yc(g)&&(I.ctx.renderer=X),np(I),I.asyncDep){if(S&&S.registerDep(I,Y),!g.el){const B=I.subTree=oe(Mt);v(null,B,b,C)}}else Y(I,g,b,C,S,k,L)},ye=(g,b,C)=>{const E=b.component=g.component;if(ad(g,b,C))if(E.asyncDep&&!E.asyncResolved){ie(E,b,C);return}else E.next=b,nd(E.update),E.effect.dirty=!0,E.update();else b.el=g.el,E.vnode=b},Y=(g,b,C,E,S,k,L)=>{const I=()=>{if(g.isMounted){let{next:V,bu:ne,u:Q,parent:re,vnode:ue}=g;{const Ye=Ic(g);if(Ye){V&&(V.el=ue.el,ie(g,V,L)),Ye.asyncDep.then(()=>{g.isUnmounted||I()});return}}let we=V,ge;_n(g,!1),V?(V.el=ue.el,ie(g,V,L)):V=ue,ne&&ns(ne),(ge=V.props&&V.props.onVnodeBeforeUpdate)&&Et(ge,re,V,ue),_n(g,!0);const Ie=rs(g),nt=g.subTree;g.subTree=Ie,m(nt,Ie,f(nt.el),T(nt),g,S,k),V.el=Ie.el,we===null&&cd(g,Ie.el),Q&&Xe(Q,S),(ge=V.props&&V.props.onVnodeUpdated)&&Xe(()=>Et(ge,re,V,ue),S)}else{let V;const{el:ne,props:Q}=b,{bm:re,m:ue,parent:we}=g,ge=ho(b);if(_n(g,!1),re&&ns(re),!ge&&(V=Q&&Q.onVnodeBeforeMount)&&Et(V,we,b),_n(g,!0),ne&&Ee){const Ie=()=>{g.subTree=rs(g),Ee(ne,g.subTree,g,S,null)};ge?b.type.__asyncLoader().then(()=>!g.isUnmounted&&Ie()):Ie()}else{const Ie=g.subTree=rs(g);m(null,Ie,C,E,g,S,k),b.el=Ie.el}if(ue&&Xe(ue,S),!ge&&(V=Q&&Q.onVnodeMounted)){const Ie=b;Xe(()=>Et(V,we,Ie),S)}(b.shapeFlag&256||we&&ho(we.vnode)&&we.vnode.shapeFlag&256)&&g.a&&Xe(g.a,S),g.isMounted=!0,b=C=E=null}},B=g.effect=new li(I,ct,()=>hi($),g.scope),$=g.update=()=>{B.dirty&&B.run()};$.id=g.uid,_n(g,!0),$()},ie=(g,b,C)=>{b.component=g;const E=g.vnode.props;g.vnode=b,g.next=null,Md(g,b.props,E,C),Hd(g,b.children,C),pn(),sl(g),hn()},de=(g,b,C,E,S,k,L,I,B=!1)=>{const $=g&&g.children,V=g?g.shapeFlag:0,ne=b.children,{patchFlag:Q,shapeFlag:re}=b;if(Q>0){if(Q&128){tt($,ne,C,E,S,k,L,I,B);return}else if(Q&256){ze($,ne,C,E,S,k,L,I,B);return}}re&8?(V&16&&Fe($,S,k),ne!==$&&c(C,ne)):V&16?re&16?tt($,ne,C,E,S,k,L,I,B):Fe($,S,k,!0):(V&8&&c(C,""),re&16&&z(ne,C,E,S,k,L,I,B))},ze=(g,b,C,E,S,k,L,I,B)=>{g=g||jn,b=b||jn;const $=g.length,V=b.length,ne=Math.min($,V);let Q;for(Q=0;Q<ne;Q++){const re=b[Q]=B?nn(b[Q]):Ct(b[Q]);m(g[Q],re,C,null,S,k,L,I,B)}$>V?Fe(g,S,k,!0,!1,ne):z(b,C,E,S,k,L,I,B,ne)},tt=(g,b,C,E,S,k,L,I,B)=>{let $=0;const V=b.length;let ne=g.length-1,Q=V-1;for(;$<=ne&&$<=Q;){const re=g[$],ue=b[$]=B?nn(b[$]):Ct(b[$]);if(so(re,ue))m(re,ue,C,null,S,k,L,I,B);else break;$++}for(;$<=ne&&$<=Q;){const re=g[ne],ue=b[Q]=B?nn(b[Q]):Ct(b[Q]);if(so(re,ue))m(re,ue,C,null,S,k,L,I,B);else break;ne--,Q--}if($>ne){if($<=Q){const re=Q+1,ue=re<V?b[re].el:E;for(;$<=Q;)m(null,b[$]=B?nn(b[$]):Ct(b[$]),C,ue,S,k,L,I,B),$++}}else if($>Q)for(;$<=ne;)ke(g[$],S,k,!0),$++;else{const re=$,ue=$,we=new Map;for($=ue;$<=Q;$++){const ot=b[$]=B?nn(b[$]):Ct(b[$]);ot.key!=null&&we.set(ot.key,$)}let ge,Ie=0;const nt=Q-ue+1;let Ye=!1,bn=0;const Kt=new Array(nt);for($=0;$<nt;$++)Kt[$]=0;for($=re;$<=ne;$++){const ot=g[$];if(Ie>=nt){ke(ot,S,k,!0);continue}let xt;if(ot.key!=null)xt=we.get(ot.key);else for(ge=ue;ge<=Q;ge++)if(Kt[ge-ue]===0&&so(ot,b[ge])){xt=ge;break}xt===void 0?ke(ot,S,k,!0):(Kt[xt-ue]=$+1,xt>=bn?bn=xt:Ye=!0,m(ot,b[xt],C,null,S,k,L,I,B),Ie++)}const Ji=Ye?qd(Kt):jn;for(ge=Ji.length-1,$=nt-1;$>=0;$--){const ot=ue+$,xt=b[ot],Yi=ot+1<V?b[ot+1].el:E;Kt[$]===0?m(null,xt,C,Yi,S,k,L,I,B):Ye&&(ge<0||$!==Ji[ge]?Ne(xt,C,Yi,2):ge--)}}},Ne=(g,b,C,E,S=null)=>{const{el:k,type:L,transition:I,children:B,shapeFlag:$}=g;if($&6){Ne(g.component.subTree,b,C,E);return}if($&128){g.suspense.move(b,C,E);return}if($&64){L.move(g,b,C,X);return}if(L===He){o(k,b,C);for(let ne=0;ne<B.length;ne++)Ne(B[ne],b,C,E);o(g.anchor,b,C);return}if(L===ls){x(g,b,C);return}if(E!==2&&$&1&&I)if(E===0)I.beforeEnter(k),o(k,b,C),Xe(()=>I.enter(k),S);else{const{leave:ne,delayLeave:Q,afterLeave:re}=I,ue=()=>o(k,b,C),we=()=>{ne(k,()=>{ue(),re&&re()})};Q?Q(k,ue,we):we()}else o(k,b,C)},ke=(g,b,C,E=!1,S=!1)=>{const{type:k,props:L,ref:I,children:B,dynamicChildren:$,shapeFlag:V,patchFlag:ne,dirs:Q}=g;if(I!=null&&Is(I,null,C,g,!0),V&256){b.ctx.deactivate(g);return}const re=V&1&&Q,ue=!ho(g);let we;if(ue&&(we=L&&L.onVnodeBeforeUnmount)&&Et(we,b,g),V&6)mt(g.component,C,E);else{if(V&128){g.suspense.unmount(C,E);return}re&&wn(g,null,b,"beforeUnmount"),V&64?g.type.remove(g,b,C,S,X,E):$&&(k!==He||ne>0&&ne&64)?Fe($,b,C,!1,!0):(k===He&&ne&384||!S&&V&16)&&Fe(B,b,C),E&&Vt(g)}(ue&&(we=L&&L.onVnodeUnmounted)||re)&&Xe(()=>{we&&Et(we,b,g),re&&wn(g,null,b,"unmounted")},C)},Vt=g=>{const{type:b,el:C,anchor:E,transition:S}=g;if(b===He){qt(C,E);return}if(b===ls){P(g);return}const k=()=>{r(C),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(g.shapeFlag&1&&S&&!S.persisted){const{leave:L,delayLeave:I}=S,B=()=>L(C,k);I?I(g.el,k,B):B()}else k()},qt=(g,b)=>{let C;for(;g!==b;)C=d(g),r(g),g=C;r(b)},mt=(g,b,C)=>{const{bum:E,scope:S,update:k,subTree:L,um:I}=g;E&&ns(E),S.stop(),k&&(k.active=!1,ke(L,g,b,C)),I&&Xe(I,b),Xe(()=>{g.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},Fe=(g,b,C,E=!1,S=!1,k=0)=>{for(let L=k;L<g.length;L++)ke(g[L],b,C,E,S)},T=g=>g.shapeFlag&6?T(g.component.subTree):g.shapeFlag&128?g.suspense.next():d(g.anchor||g.el);let q=!1;const H=(g,b,C)=>{g==null?b._vnode&&ke(b._vnode,null,null,!0):m(b._vnode||null,g,b,null,null,null,C),q||(q=!0,sl(),uc(),q=!1),b._vnode=g},X={p:m,um:ke,m:Ne,r:Vt,mt:J,mc:z,pc:de,pbc:D,n:T,o:e};let be,Ee;return{render:H,hydrate:be,createApp:Bd(H,be)}}function is({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _n({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Vd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bi(e,t,n=!1){const o=e.children,r=t.children;if(se(o)&&se(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=nn(r[s]),l.el=i.el),n||bi(i,l)),l.type===Fr&&(l.el=i.el)}}function qd(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<u?s=l+1:i=l;u<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Ic(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ic(t)}const Kd=e=>e.__isTeleport,vo=e=>e&&(e.disabled||e.disabled===""),ml=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ls=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},Gd={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,s,i,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:w}}=u,v=vo(t.props);let{shapeFlag:_,children:x,dynamicChildren:P}=t;if(e==null){const A=t.el=m(""),R=t.anchor=m("");p(A,n,o),p(R,n,o);const N=t.target=Ls(t.props,h),z=t.targetAnchor=m("");N&&(p(z,N),i==="svg"||ml(N)?i="svg":(i==="mathml"||gl(N))&&(i="mathml"));const G=(D,Z)=>{_&16&&c(x,D,Z,r,s,i,l,a)};v?G(n,R):N&&G(N,z)}else{t.el=e.el;const A=t.anchor=e.anchor,R=t.target=e.target,N=t.targetAnchor=e.targetAnchor,z=vo(e.props),G=z?n:R,D=z?A:N;if(i==="svg"||ml(R)?i="svg":(i==="mathml"||gl(R))&&(i="mathml"),P?(d(e.dynamicChildren,P,G,r,s,i,l),bi(e,t,!0)):a||f(e,t,G,D,r,s,i,l,!1),v)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):qo(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=Ls(t.props,h);Z&&qo(t,Z,null,u,0)}else z&&qo(t,R,N,u,1)}Lc(t)},remove(e,t,n,o,{um:r,o:{remove:s}},i){const{shapeFlag:l,children:a,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&s(c),i&&s(u),l&16){const p=i||!vo(d);for(let h=0;h<a.length;h++){const m=a[h];r(m,t,n,p,!!m.dynamicChildren)}}},move:qo,hydrate:Jd};function qo(e,t,n,{o:{insert:o},m:r},s=2){s===0&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,f=s===2;if(f&&o(i,t,n),(!f||vo(c))&&a&16)for(let d=0;d<u.length;d++)r(u[d],t,n,2);f&&o(l,t,n)}function Jd(e,t,n,o,r,s,{o:{nextSibling:i,parentNode:l,querySelector:a}},u){const c=t.target=Ls(t.props,a);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(vo(t.props))t.anchor=u(i(e),t,l(e),n,o,r,s),t.targetAnchor=f;else{t.anchor=i(e);let d=f;for(;d;)if(d=i(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&i(t.targetAnchor);break}u(f,t,c,n,o,r,s)}Lc(t)}return t.anchor&&i(t.anchor)}const Yd=Gd;function Lc(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const He=Symbol.for("v-fgt"),Fr=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ls=Symbol.for("v-stc"),yo=[];let gt=null;function M(e=!1){yo.push(gt=e?null:[])}function Xd(){yo.pop(),gt=yo[yo.length-1]||null}let Oo=1;function vl(e){Oo+=e}function Dc(e){return e.dynamicChildren=Oo>0?gt||jn:null,Xd(),Oo>0&&gt&&gt.push(e),e}function Te(e,t,n,o,r,s){return Dc(Oe(e,t,n,o,r,s,!0))}function ee(e,t,n,o,r){return Dc(oe(e,t,n,o,r,!0))}function mr(e){return e?e.__v_isVNode===!0:!1}function so(e,t){return e.type===t.type&&e.key===t.key}const Bc=({key:e})=>e??null,ir=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Le(e)||le(e)?{i:Ue,r:e,k:t,f:!!n}:e:null);function Oe(e,t=null,n=null,o=0,r=null,s=e===He?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bc(t),ref:t&&ir(t),scopeId:pc,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ue};return l?(wi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=$e(n)?8:16),Oo>0&&!i&&gt&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&gt.push(a),a}const oe=Zd;function Zd(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===mc)&&(e=Mt),mr(e)){const l=Rn(e,t,!0);return n&&wi(l,n),Oo>0&&!s&&gt&&(l.shapeFlag&6?gt[gt.indexOf(e)]=l:gt.push(l)),l.patchFlag|=-2,l}if(ip(e)&&(e=e.__vccOpts),t){t=Xn(t);let{class:l,style:a}=t;l&&!$e(l)&&(t.class=pt(l)),Ae(a)&&(tc(a)&&!se(a)&&(a=je({},a)),t.style=Ge(a))}const i=$e(e)?1:dd(e)?128:Kd(e)?64:Ae(e)?4:le(e)?2:0;return Oe(e,t,n,o,r,i,s,!0)}function Xn(e){return e?tc(e)||Ac(e)?je({},e):e:null}function Rn(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:a}=e,u=t?pe(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Bc(u),ref:t&&t.ref?n&&s?se(s)?s.concat(ir(t)):[s,ir(t)]:ir(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rn(e.ssContent),ssFallback:e.ssFallback&&Rn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&(c.transition=a.clone(c)),c}function Mr(e=" ",t=0){return oe(Fr,null,e,t)}function gn(e="",t=!1){return t?(M(),ee(Mt,null,e)):oe(Mt,null,e)}function Ct(e){return e==null||typeof e=="boolean"?oe(Mt):se(e)?oe(He,null,e.slice()):typeof e=="object"?nn(e):oe(Fr,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rn(e)}function wi(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),wi(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ac(t)?t._ctx=Ue:r===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Ue},n=32):(t=String(t),o&64?(n=16,t=[Mr(t)]):n=8);e.children=t,e.shapeFlag|=n}function pe(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=pt([t.class,o.class]));else if(r==="style")t.style=Ge([t.style,o.style]);else if(Cr(r)){const s=t[r],i=o[r];i&&s!==i&&!(se(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function Et(e,t,n,o=null){vt(e,t,7,[n,o])}const Qd=Cc();let ep=0;function tp(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Qd,s={uid:ep++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ja(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pc(o,r),emitsOptions:dc(o,r),emit:null,emitted:null,propsDefaults:Pe,inheritAttrs:o.inheritAttrs,ctx:Pe,data:Pe,props:Pe,attrs:Pe,slots:Pe,refs:Pe,setupState:Pe,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=sd.bind(null,s),e.ce&&e.ce(s),s}let Me=null;const Tt=()=>Me||Ue;let gr,Ds;{const e=Na(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};gr=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Ds=t("__VUE_SSR_SETTERS__",n=>jr=n)}const Lo=e=>{const t=Me;return gr(e),e.scope.on(),()=>{e.scope.off(),gr(t)}},yl=()=>{Me&&Me.scope.off(),gr(null)};function Nc(e){return e.vnode.shapeFlag&4}let jr=!1;function np(e,t=!1){t&&Ds(t);const{props:n,children:o}=e.vnode,r=Nc(e);Fd(e,n,r,t),zd(e,o);const s=r?op(e,t):void 0;return t&&Ds(!1),s}function op(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ad);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Mc(e):null,s=Lo(e);pn();const i=an(o,e,0,[e.props,r]);if(hn(),s(),Ia(i)){if(i.then(yl,yl),t)return i.then(l=>{bl(e,l,t)}).catch(l=>{Dr(l,e,0)});e.asyncDep=i}else bl(e,i,t)}else Fc(e,t)}function bl(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=sc(t)),Fc(e,n)}let wl;function Fc(e,t,n){const o=e.type;if(!e.render){if(!t&&wl&&!o.render){const r=o.template||vi(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,u=je(je({isCustomElement:s,delimiters:l},i),a);o.render=wl(r,u)}}e.render=o.render||ct}{const r=Lo(e);pn();try{Td(e)}finally{hn(),r()}}}const rp={get(e,t){return Qe(e,"get",""),e[t]}};function Mc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,rp),slots:e.slots,emit:e.emit,expose:t}}function _i(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(fi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mo)return mo[n](e)},has(t,n){return n in t||n in mo}}))}function sp(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function ip(e){return le(e)&&"__vccOpts"in e}const U=(e,t)=>Jf(e,t,jr);function Nt(e,t,n){const o=arguments.length;return o===2?Ae(t)&&!se(t)?mr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&mr(n)&&(n=[n]),oe(e,t,n))}const lp="3.4.27";/**
* @vue/runtime-dom v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const ap="http://www.w3.org/2000/svg",cp="http://www.w3.org/1998/Math/MathML",on=typeof document<"u"?document:null,_l=on&&on.createElement("template"),up={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?on.createElementNS(ap,e):t==="mathml"?on.createElementNS(cp,e):on.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>on.createTextNode(e),createComment:e=>on.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>on.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{_l.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=_l.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fp=Symbol("_vtc");function dp(e,t,n){const o=e[fp];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xl=Symbol("_vod"),pp=Symbol("_vsh"),hp=Symbol(""),mp=/(^|;)\s*display\s*:/;function gp(e,t,n){const o=e.style,r=$e(n);let s=!1;if(n&&!r){if(t)if($e(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&lr(o,l,"")}else for(const i in t)n[i]==null&&lr(o,i,"");for(const i in n)i==="display"&&(s=!0),lr(o,i,n[i])}else if(r){if(t!==n){const i=o[hp];i&&(n+=";"+i),o.cssText=n,s=mp.test(n)}}else t&&e.removeAttribute("style");xl in e&&(e[xl]=s?o.display:"",e[pp]&&(o.display="none"))}const El=/\s*!important$/;function lr(e,t,n){if(se(n))n.forEach(o=>lr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=vp(e,t);El.test(n)?e.setProperty(kn(o),n.replace(El,""),"important"):e[o]=n}}const Cl=["Webkit","Moz","ms"],as={};function vp(e,t){const n=as[t];if(n)return n;let o=ft(t);if(o!=="filter"&&o in e)return as[t]=o;o=Ar(o);for(let r=0;r<Cl.length;r++){const s=Cl[r]+o;if(s in e)return as[t]=s}return t}const Sl="http://www.w3.org/1999/xlink";function yp(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Sl,t.slice(6,t.length)):e.setAttributeNS(Sl,t,n);else{const s=Af(t);n==null||s&&!Fa(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function bp(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const u=l==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(u!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Fa(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function wp(e,t,n,o){e.addEventListener(t,n,o)}function _p(e,t,n,o){e.removeEventListener(t,n,o)}const Ol=Symbol("_vei");function xp(e,t,n,o,r=null){const s=e[Ol]||(e[Ol]={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=Ep(t);if(o){const u=s[t]=Op(o,r);wp(e,l,u,a)}else i&&(_p(e,l,i,a),s[t]=void 0)}}const Al=/(?:Once|Passive|Capture)$/;function Ep(e){let t;if(Al.test(e)){t={};let o;for(;o=e.match(Al);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kn(e.slice(2)),t]}let cs=0;const Cp=Promise.resolve(),Sp=()=>cs||(Cp.then(()=>cs=0),cs=Date.now());function Op(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;vt(Ap(o,n.value),t,5,[o])};return n.value=e,n.attached=Sp(),n}function Ap(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Rl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Rp=(e,t,n,o,r,s,i,l,a)=>{const u=r==="svg";t==="class"?dp(e,o,u):t==="style"?gp(e,n,o):Cr(t)?ri(t)||xp(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pp(e,t,o,u))?bp(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),yp(e,t,o,u))};function Pp(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rl(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rl(t)&&$e(n)?!1:t in e}const Tp=["ctrl","shift","alt","meta"],$p={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)=>Tp.some(n=>e[`${n}Key`]&&!t.includes(n))},Bs=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...s)=>{for(let i=0;i<t.length;i++){const l=$p[t[i]];if(l&&l(r,t))return}return e(r,...s)})},kp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ip=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const s=kn(r.key);if(t.some(i=>i===s||kp[i]===s))return e(r)})},Lp=je({patchProp:Rp},up);let Pl;function Dp(){return Pl||(Pl=Ud(Lp))}const Bp=(...e)=>{const t=Dp().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Fp(o);if(!r)return;const s=t._component;!le(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Np(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Np(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fp(e){return $e(e)?document.querySelector(e):e}var Mp=!1;/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */let jc;const zr=e=>jc=e,zc=Symbol();function Ns(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bo||(bo={}));function jp(){const e=Rr(!0),t=e.run(()=>F({}));let n=[],o=[];const r=fi({install(s){zr(r),r._a=s,s.provide(zc,r),s.config.globalProperties.$pinia=r,o.forEach(i=>n.push(i)),o=[]},use(s){return!this._a&&!Mp?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Hc=()=>{};function Tl(e,t,n,o=Hc){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&Io()&&Pr(r),r}function Bn(e,...t){e.slice().forEach(n=>{n(...t)})}const zp=e=>e();function Fs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Ns(r)&&Ns(o)&&e.hasOwnProperty(n)&&!Le(o)&&!ln(o)?e[n]=Fs(r,o):e[n]=o}return e}const Hp=Symbol();function Up(e){return!Ns(e)||!e.hasOwnProperty(Hp)}const{assign:Qt}=Object;function Wp(e){return!!(Le(e)&&e.effect)}function Vp(e,t,n,o){const{state:r,actions:s,getters:i}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=r?r():{});const c=mn(n.state.value[e]);return Qt(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=fi(U(()=>{zr(n);const p=n._s.get(e);return i[d].call(p,p)})),f),{}))}return a=Uc(e,u,t,n,o,!0),a}function Uc(e,t,n={},o,r,s){let i;const l=Qt({actions:{}},n),a={deep:!0};let u,c,f=[],d=[],p;const h=o.state.value[e];!s&&!h&&(o.state.value[e]={}),F({});let m;function w(z){let G;u=c=!1,typeof z=="function"?(z(o.state.value[e]),G={type:bo.patchFunction,storeId:e,events:p}):(Fs(o.state.value[e],z),G={type:bo.patchObject,payload:z,storeId:e,events:p});const D=m=Symbol();et().then(()=>{m===D&&(u=!0)}),c=!0,Bn(f,G,o.state.value[e])}const v=s?function(){const{state:G}=n,D=G?G():{};this.$patch(Z=>{Qt(Z,D)})}:Hc;function _(){i.stop(),f=[],d=[],o._s.delete(e)}function x(z,G){return function(){zr(o);const D=Array.from(arguments),Z=[],W=[];function fe(Y){Z.push(Y)}function J(Y){W.push(Y)}Bn(d,{args:D,name:z,store:A,after:fe,onError:J});let ye;try{ye=G.apply(this&&this.$id===e?this:A,D)}catch(Y){throw Bn(W,Y),Y}return ye instanceof Promise?ye.then(Y=>(Bn(Z,Y),Y)).catch(Y=>(Bn(W,Y),Promise.reject(Y))):(Bn(Z,ye),ye)}}const P={_p:o,$id:e,$onAction:Tl.bind(null,d),$patch:w,$reset:v,$subscribe(z,G={}){const D=Tl(f,z,G.detached,()=>Z()),Z=i.run(()=>ve(()=>o.state.value[e],W=>{(G.flush==="sync"?c:u)&&z({storeId:e,type:bo.direct,events:p},W)},Qt({},a,G)));return D},$dispose:_},A=Ht(P);o._s.set(e,A);const N=(o._a&&o._a.runWithContext||zp)(()=>o._e.run(()=>(i=Rr()).run(t)));for(const z in N){const G=N[z];if(Le(G)&&!Wp(G)||ln(G))s||(h&&Up(G)&&(Le(G)?G.value=h[z]:Fs(G,h[z])),o.state.value[e][z]=G);else if(typeof G=="function"){const D=x(z,G);N[z]=D,l.actions[z]=G}}return Qt(A,N),Qt(me(A),N),Object.defineProperty(A,"$state",{get:()=>o.state.value[e],set:z=>{w(G=>{Qt(G,z)})}}),o._p.forEach(z=>{Qt(A,i.run(()=>z({store:A,app:o._a,pinia:o,options:l})))}),h&&s&&n.hydrate&&n.hydrate(A.$state,h),u=!0,c=!0,A}function Wc(e,t,n){let o,r;const s=typeof t=="function";typeof e=="string"?(o=e,r=s?n:t):(r=e,o=e.id);function i(l,a){const u=Nd();return l=l||(u?it(zc,null):null),l&&zr(l),l=jc,l._s.has(o)||(s?Uc(o,t,r,l):Vp(o,r,l)),l._s.get(o)}return i.$id=o,i}function qp(e){{e=me(e);const t={};for(const n in e){const o=e[n];(Le(o)||ln(o))&&(t[n]=ic(e,n))}return t}}var Hr={library:"https://accounts.google.com/gsi/client",defaultButtonConfig:{theme:"outline",size:"large"},scopes:"email profile openid"};const Ke=Ht({clientId:null,popupType:"CODE",prompt:!1,autoLogin:!1,idConfiguration:null,buttonConfig:Hr.defaultButtonConfig,callback:()=>{},error:null}),Wn=Ht({apiLoaded:!1,apiLoadIntitited:!1}),Vc=new Promise(e=>{const t=typeof window<"u";if(!Wn.apiLoadIntitited&&t){const n=document.createElement("script");Wn.apiLoadIntitited=!0,n.addEventListener("load",()=>{Wn.apiLoaded=!0,e(window.google)}),n.src=Hr.library,n.async=!0,n.defer=!0,document.head.appendChild(n)}}),Do=e=>{Wn.apiLoadIntitited?Wn.apiLoaded?e(window.google):ve(()=>Wn.apiLoaded,t=>{t&&e(window.google)}):Vc.then(t=>{e(t)})},Kp=(e,t,n,o)=>{if(!e.client_id)throw new Error("Prop client id required since plugin is not initialized with a client id");Do(()=>{((r,s,i,l,a)=>{if(a){const c=r.callback;r.callback=f=>{f.credential?c&&c(f):a(f)}}window.google.accounts.id.initialize(r);const u=s.value;u&&!l&&window.google.accounts.id.renderButton(u,i)})(e,t,n.buttonConfig,o,n.error),n.prompt&&Yp({clientId:n.clientId,callback:n.callback,error:n.error,autoLogin:n.autoLogin})})},Gp=e=>new Promise((t,n)=>{Do(o=>{if(!(e&&e.clientId||Ke.clientId))throw new Error("clientId is required since the plugin is not initialized with a Client Id");o.accounts.oauth2.initCodeClient({client_id:e&&e.clientId||Ke.clientId||"",scope:Hr.scopes,ux_mode:"popup",callback:r=>{r.code?t(r):n(r)},error_callback:r=>{n(r)}}).requestCode()})}),Jp=e=>new Promise((t,n)=>{Do(o=>{if(!(e&&e.clientId||Ke.clientId))throw new Error("clientId is required since the plugin is not initialized with a Client Id");o.accounts.oauth2.initTokenClient({client_id:e&&e.clientId||Ke.clientId||"",scope:Hr.scopes,callback:r=>{r.access_token?t(r):n(r)},error_callback:r=>{n(r)}}).requestAccessToken()})}),Yp=e=>{if(!e&&(e={}),!e.clientId&&!Ke.clientId)throw new Error("clientId is required");const t={use_fedcm_for_prompt:!0};return e.clientId&&(t.client_id=e.clientId),!e.clientId&&Ke.clientId&&(t.client_id=Ke.clientId),e.context&&(t.context=e.context),e.autoLogin!=null&&(t.auto_select=e.autoLogin),e.cancelOnTapOutside!=null&&(t.cancel_on_tap_outside=e.cancelOnTapOutside),new Promise((n,o)=>{t.callback=r=>{e&&e.callback&&e.callback(r),r.credential?n(r):o(r)},Do(r=>{r.accounts.id.initialize(t),r.accounts.id.prompt()})})};var Ms=K({__name:"GoogleLogin",props:{clientId:{type:String,required:!1},prompt:{type:Boolean,required:!1,default:!1},autoLogin:{type:Boolean,required:!1,default:!1},popupType:{type:String,required:!1},idConfiguration:{type:Object,required:!1},buttonConfig:{type:Object,required:!1},callback:{type:Function,required:!1},error:{type:Function,required:!1}},setup(e){const t=!!xc().default,n=e,o=((i,l)=>{const a={...i};for(const u in l)l[u]!==void 0&&l[u]!==null&&(a[u]=l[u]);return a})(Ke,n),r={client_id:o.clientId||null,auto_select:o.autoLogin||!1,callback:o.callback,...o.idConfiguration},s=F();return Je(()=>{Kp(r,s,o,t),n.popupType&&!t&&console.warn("Option 'popupType' is ignored since a slot which act as a custom login button was not found!!!")}),(i,l)=>(M(),Te("div",{class:"g-btn-wrapper",onClick:l[0]||(l[0]=a=>y(t)&&void(y(o).popupType==="TOKEN"?Jp({clientId:o.clientId}).then(u=>{o.callback&&o.callback(u)}).catch(u=>{o.error&&o.error(u)}):Gp({clientId:o.clientId}).then(u=>{o.callback&&o.callback(u)}).catch(u=>{o.error&&o.error(u)})))},[y(t)?gn("v-if",!0):(M(),Te("span",{key:0,ref_key:"buttonRef",ref:s,class:"g-btn"},null,512)),te(i.$slots,"default")]))}});(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})(`
.g-btn-wrapper[data-v-5e610566] {
  display: inline-block;
}
`),Ms.__scopeId="data-v-5e610566",Ms.__file="src/plugin/GoogleLogin.vue";var Xp={install:(e,t)=>{t&&(n=>{n.clientId&&(Ke.clientId=n.clientId),n.popupType&&(Ke.popupType=n.popupType),n.prompt!=null&&(Ke.prompt=n.prompt),n.autoLogin!=null&&(Ke.autoLogin=n.autoLogin),n.idConfiguration&&(Ke.idConfiguration=n.idConfiguration),n.buttonConfig&&(Ke.buttonConfig=n.buttonConfig),n.callback&&(Ke.callback=n.callback)})(t),Vc.then(()=>{if(t.clientId){const n={client_id:t.clientId,auto_select:t.autoLogin===!0,callback:t.callback,use_fedcm_for_prompt:!0,...t.idConfiguration};window.google.accounts.id.initialize(n),t.prompt&&window.google.accounts.id.prompt()}}),e.component("GoogleLogin",Ms)}},Zp={VITE_API_HOST:"https://api.familyview.app",VITE_APP_BASE_URL:"https://familyview.app",VITE_GOOGLE_CLIENT_ID:"199814996288-keos92ujs76gi7g93mfg8a14numcdmcl.apps.googleusercontent.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const us=(e,t)=>Zp[e]??t,xi={API_HOST:us("VITE_API_HOST","http://localhost:3000"),GOOGLE_CLIENT_ID:us("VITE_GOOGLE_CLIENT_ID"),APP_BASE_URL:us("VITE_APP_BASE_URL","http://localhost:5173")};function Qp(e){return Io()?(Pr(e),!0):!1}function Ei(e){return typeof e=="function"?e():y(e)}const eh=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const th=Object.prototype.toString,nh=e=>th.call(e)==="[object Object]",oh=()=>{};function rh(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const qc=e=>e();function sh(e=qc){const t=F(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:kr(t),pause:n,resume:o,eventFilter:r}}function ih(e){return Tt()}function lh(e,t,n={}){const{eventFilter:o=qc,...r}=n;return ve(e,rh(o,t),r)}function ah(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:s,pause:i,resume:l,isActive:a}=sh(o);return{stop:lh(e,t,{...r,eventFilter:s}),pause:i,resume:l,isActive:a}}function ch(e,t=!0,n){ih()?Je(e,n):t?e():et(e)}function uh(e){var t;const n=Ei(e);return(t=n==null?void 0:n.$el)!=null?t:n}const vr=eh?window:void 0;function $l(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=vr):[t,n,o,r]=e,!t)return oh;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(c=>c()),s.length=0},l=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),a=ve(()=>[uh(t),Ei(r)],([c,f])=>{if(i(),!c)return;const d=nh(f)?{...f}:f;s.push(...n.flatMap(p=>o.map(h=>l(c,p,h,d))))},{immediate:!0,flush:"post"}),u=()=>{a(),i()};return Qp(u),u}const Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Go="__vueuse_ssr_handlers__",fh=dh();function dh(){return Go in Ko||(Ko[Go]=Ko[Go]||{}),Ko[Go]}function ph(e,t){return fh[e]||t}function hh(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const mh={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},kl="vueuse-storage";function gh(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:f=vr,eventFilter:d,onError:p=D=>{console.error(D)},initOnMounted:h}=o,m=(c?Lr:F)(typeof t=="function"?t():t);if(!n)try{n=ph("getDefaultStorage",()=>{var D;return(D=vr)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return m;const w=Ei(t),v=hh(w),_=(r=o.serializer)!=null?r:mh[v],{pause:x,resume:P}=ah(m,()=>R(m.value),{flush:s,deep:i,eventFilter:d});f&&l&&ch(()=>{$l(f,"storage",z),$l(f,kl,G),h&&z()}),h||z();function A(D,Z){f&&f.dispatchEvent(new CustomEvent(kl,{detail:{key:e,oldValue:D,newValue:Z,storageArea:n}}))}function R(D){try{const Z=n.getItem(e);if(D==null)A(Z,null),n.removeItem(e);else{const W=_.write(D);Z!==W&&(n.setItem(e,W),A(Z,W))}}catch(Z){p(Z)}}function N(D){const Z=D?D.newValue:n.getItem(e);if(Z==null)return a&&w!=null&&n.setItem(e,_.write(w)),w;if(!D&&u){const W=_.read(Z);return typeof u=="function"?u(W,w):v==="object"&&!Array.isArray(W)?{...w,...W}:W}else return typeof Z!="string"?Z:_.read(Z)}function z(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){m.value=w;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==_.write(m.value)&&(m.value=N(D))}catch(Z){p(Z)}finally{D?et(P):P()}}}}function G(D){z(D.detail)}return m}function Il(e,t,n={}){const{window:o=vr}=n;return gh(e,t,o==null?void 0:o.localStorage,n)}const Zn=Wc("session",()=>{const e=Il("session/token",void 0),t=Il("session/user",F({})),n=U(()=>e.value!==void 0);function o(s,i){e.value=s,t.value=i}function r(){e.value=void 0,t.value=void 0}return{isLoggedIn:n,login:o,userProfile:t,jwtToken:e,logout:r}});function Kc(e,t){return function(){return e.apply(t,arguments)}}const{toString:vh}=Object.prototype,{getPrototypeOf:Ci}=Object,Ur=(e=>t=>{const n=vh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>Ur(t)===e),Wr=e=>t=>typeof t===e,{isArray:Qn}=Array,Ao=Wr("undefined");function yh(e){return e!==null&&!Ao(e)&&e.constructor!==null&&!Ao(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gc=_t("ArrayBuffer");function bh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gc(e.buffer),t}const wh=Wr("string"),ut=Wr("function"),Jc=Wr("number"),Vr=e=>e!==null&&typeof e=="object",_h=e=>e===!0||e===!1,ar=e=>{if(Ur(e)!=="object")return!1;const t=Ci(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xh=_t("Date"),Eh=_t("File"),Ch=_t("Blob"),Sh=_t("FileList"),Oh=e=>Vr(e)&&ut(e.pipe),Ah=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ut(e.append)&&((t=Ur(e))==="formdata"||t==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"))},Rh=_t("URLSearchParams"),[Ph,Th,$h,kh]=["ReadableStream","Request","Response","Headers"].map(_t),Ih=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Qn(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(o=0;o<i;o++)l=s[o],t.call(null,e[l],l,e)}}function Yc(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zc=e=>!Ao(e)&&e!==Xc;function js(){const{caseless:e}=Zc(this)&&this||{},t={},n=(o,r)=>{const s=e&&Yc(t,r)||r;ar(t[s])&&ar(o)?t[s]=js(t[s],o):ar(o)?t[s]=js({},o):Qn(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Bo(arguments[o],n);return t}const Lh=(e,t,n,{allOwnKeys:o}={})=>(Bo(t,(r,s)=>{n&&ut(r)?e[s]=Kc(r,n):e[s]=r},{allOwnKeys:o}),e),Dh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bh=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Nh=(e,t,n,o)=>{let r,s,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)i=r[s],(!o||o(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ci(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Mh=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!Jc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ci(Uint8Array)),zh=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},Hh=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Uh=_t("HTMLFormElement"),Wh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Ll=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vh=_t("RegExp"),Qc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Bo(n,(r,s)=>{let i;(i=t(r,s,e))!==!1&&(o[s]=i||r)}),Object.defineProperties(e,o)},qh=e=>{Qc(e,(t,n)=>{if(ut(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(ut(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Kh=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return Qn(e)?o(e):o(String(e).split(t)),n},Gh=()=>{},Jh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,fs="abcdefghijklmnopqrstuvwxyz",Dl="0123456789",eu={DIGIT:Dl,ALPHA:fs,ALPHA_DIGIT:fs+fs.toUpperCase()+Dl},Yh=(e=16,t=eu.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Xh(e){return!!(e&&ut(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zh=e=>{const t=new Array(10),n=(o,r)=>{if(Vr(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=Qn(o)?[]:{};return Bo(o,(i,l)=>{const a=n(i,r+1);!Ao(a)&&(s[l]=a)}),t[r]=void 0,s}}return o};return n(e,0)},Qh=_t("AsyncFunction"),em=e=>e&&(Vr(e)||ut(e))&&ut(e.then)&&ut(e.catch),O={isArray:Qn,isArrayBuffer:Gc,isBuffer:yh,isFormData:Ah,isArrayBufferView:bh,isString:wh,isNumber:Jc,isBoolean:_h,isObject:Vr,isPlainObject:ar,isReadableStream:Ph,isRequest:Th,isResponse:$h,isHeaders:kh,isUndefined:Ao,isDate:xh,isFile:Eh,isBlob:Ch,isRegExp:Vh,isFunction:ut,isStream:Oh,isURLSearchParams:Rh,isTypedArray:jh,isFileList:Sh,forEach:Bo,merge:js,extend:Lh,trim:Ih,stripBOM:Dh,inherits:Bh,toFlatObject:Nh,kindOf:Ur,kindOfTest:_t,endsWith:Fh,toArray:Mh,forEachEntry:zh,matchAll:Hh,isHTMLForm:Uh,hasOwnProperty:Ll,hasOwnProp:Ll,reduceDescriptors:Qc,freezeMethods:qh,toObjectSet:Kh,toCamelCase:Wh,noop:Gh,toFiniteNumber:Jh,findKey:Yc,global:Xc,isContextDefined:Zc,ALPHABET:eu,generateString:Yh,isSpecCompliantForm:Xh,toJSONObject:Zh,isAsyncFn:Qh,isThenable:em};function ae(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}O.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tu=ae.prototype,nu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nu[e]={value:e}});Object.defineProperties(ae,nu);Object.defineProperty(tu,"isAxiosError",{value:!0});ae.from=(e,t,n,o,r,s)=>{const i=Object.create(tu);return O.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ae.call(i,e.message,t,n,o,r),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const tm=null;function zs(e){return O.isPlainObject(e)||O.isArray(e)}function ou(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Bl(e,t,n){return e?e.concat(t).map(function(r,s){return r=ou(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function nm(e){return O.isArray(e)&&!e.some(zs)}const om=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});function qr(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,w){return!O.isUndefined(w[m])});const o=n.metaTokens,r=n.visitor||c,s=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(r))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(O.isDate(h))return h.toISOString();if(!a&&O.isBlob(h))throw new ae("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(h)||O.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,w){let v=h;if(h&&!w&&typeof h=="object"){if(O.endsWith(m,"{}"))m=o?m:m.slice(0,-2),h=JSON.stringify(h);else if(O.isArray(h)&&nm(h)||(O.isFileList(h)||O.endsWith(m,"[]"))&&(v=O.toArray(h)))return m=ou(m),v.forEach(function(x,P){!(O.isUndefined(x)||x===null)&&t.append(i===!0?Bl([m],P,s):i===null?m:m+"[]",u(x))}),!1}return zs(h)?!0:(t.append(Bl(w,m,s),u(h)),!1)}const f=[],d=Object.assign(om,{defaultVisitor:c,convertValue:u,isVisitable:zs});function p(h,m){if(!O.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),O.forEach(h,function(v,_){(!(O.isUndefined(v)||v===null)&&r.call(t,v,O.isString(_)?_.trim():_,m,d))===!0&&p(v,m?m.concat(_):[_])}),f.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Nl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Si(e,t){this._pairs=[],e&&qr(e,this,t)}const ru=Si.prototype;ru.append=function(t,n){this._pairs.push([t,n])};ru.toString=function(t){const n=t?function(o){return t.call(this,o,Nl)}:Nl;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function rm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function su(e,t,n){if(!t)return e;const o=n&&n.encode||rm,r=n&&n.serialize;let s;if(r?s=r(t,n):s=O.isURLSearchParams(t)?t.toString():new Si(t,n).toString(o),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Fl{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(o){o!==null&&t(o)})}}const iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sm=typeof URLSearchParams<"u"?URLSearchParams:Si,im=typeof FormData<"u"?FormData:null,lm=typeof Blob<"u"?Blob:null,am={isBrowser:!0,classes:{URLSearchParams:sm,FormData:im,Blob:lm},protocols:["http","https","file","blob","url","data"]},Oi=typeof window<"u"&&typeof document<"u",cm=(e=>Oi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),um=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Oi&&window.location.href||"http://localhost",dm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oi,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:um,origin:fm},Symbol.toStringTag,{value:"Module"})),yt={...dm,...am};function pm(e,t){return qr(e,new yt.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return yt.isNode&&O.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function hm(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mm(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function lu(e){function t(n,o,r,s){let i=n[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=s>=n.length;return i=!i&&O.isArray(r)?r.length:i,a?(O.hasOwnProp(r,i)?r[i]=[r[i],o]:r[i]=o,!l):((!r[i]||!O.isObject(r[i]))&&(r[i]=[]),t(n,o,r[i],s)&&O.isArray(r[i])&&(r[i]=mm(r[i])),!l)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(o,r)=>{t(hm(o),r,n,0)}),n}return null}function gm(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const No={transitional:iu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=O.isObject(t);if(s&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return r?JSON.stringify(lu(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t)||O.isReadableStream(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return pm(t,this.formSerializer).toString();if((l=O.isFileList(t))||o.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return qr(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),gm(t)):t}],transformResponse:[function(t){const n=this.transitional||No.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(O.isResponse(t)||O.isReadableStream(t))return t;if(t&&O.isString(t)&&(o&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{No.headers[e]={}});const vm=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ym=e=>{const t={};let n,o,r;return e&&e.split(`
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),o=i.substring(r+1).trim(),!(!n||t[n]&&vm[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Ml=Symbol("internals");function io(e){return e&&String(e).trim().toLowerCase()}function cr(e){return e===!1||e==null?e:O.isArray(e)?e.map(cr):String(e)}function bm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const wm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ds(e,t,n,o,r){if(O.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!O.isString(t)){if(O.isString(o))return t.indexOf(o)!==-1;if(O.isRegExp(o))return o.test(t)}}function _m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function xm(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,i){return this[o].call(this,t,r,s,i)},configurable:!0})})}class Ze{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(l,a,u){const c=io(a);if(!c)throw new Error("header name must be a non-empty string");const f=O.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||a]=cr(l))}const i=(l,a)=>O.forEach(l,(u,c)=>s(u,c,a));if(O.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(O.isString(t)&&(t=t.trim())&&!wm(t))i(ym(t),n);else if(O.isHeaders(t))for(const[l,a]of t.entries())s(a,l,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=io(t),t){const o=O.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return bm(r);if(O.isFunction(n))return n.call(this,r,o);if(O.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=io(t),t){const o=O.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||ds(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(i){if(i=io(i),i){const l=O.findKey(o,i);l&&(!n||ds(o,o[l],l,n))&&(delete o[l],r=!0)}}return O.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||ds(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return O.forEach(this,(r,s)=>{const i=O.findKey(o,s);if(i){n[i]=cr(r),delete n[s];return}const l=t?_m(s):String(s).trim();l!==s&&delete n[s],n[l]=cr(r),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&O.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Ml]=this[Ml]={accessors:{}}).accessors,r=this.prototype;function s(i){const l=io(i);o[l]||(xm(r,i),o[l]=!0)}return O.isArray(t)?t.forEach(s):s(t),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});O.freezeMethods(Ze);function ps(e,t){const n=this||No,o=t||n,r=Ze.from(o.headers);let s=o.data;return O.forEach(e,function(l){s=l.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function au(e){return!!(e&&e.__CANCEL__)}function eo(e,t,n){ae.call(this,e??"canceled",ae.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(eo,ae,{__CANCEL__:!0});function cu(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Em(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cm(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=o[s];i||(i=u),n[r]=a,o[r]=u;let f=s,d=0;for(;f!==r;)d+=n[f++],f=f%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(d*1e3/p):void 0}}function Sm(e,t){let n=0;const o=1e3/t;let r=null;return function(){const i=this===!0,l=Date.now();if(i||l-n>o)return r&&(clearTimeout(r),r=null),n=l,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),o-(l-n)))}}const yr=(e,t,n=3)=>{let o=0;const r=Cm(50,250);return Sm(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,a=i-o,u=r(a),c=i<=l;o=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&c?(l-i)/u:void 0,event:s,lengthComputable:l!=null};f[t?"download":"upload"]=!0,e(f)},n)},Om=yt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(i){const l=O.isString(i)?r(i):i;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),Am=yt.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const i=[e+"="+encodeURIComponent(t)];O.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),O.isString(o)&&i.push("path="+o),O.isString(r)&&i.push("domain="+r),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uu(e,t){return e&&!Rm(t)?Pm(e,t):t}const jl=e=>e instanceof Ze?{...e}:e;function Pn(e,t){t=t||{};const n={};function o(u,c,f){return O.isPlainObject(u)&&O.isPlainObject(c)?O.merge.call({caseless:f},u,c):O.isPlainObject(c)?O.merge({},c):O.isArray(c)?c.slice():c}function r(u,c,f){if(O.isUndefined(c)){if(!O.isUndefined(u))return o(void 0,u,f)}else return o(u,c,f)}function s(u,c){if(!O.isUndefined(c))return o(void 0,c)}function i(u,c){if(O.isUndefined(c)){if(!O.isUndefined(u))return o(void 0,u)}else return o(void 0,c)}function l(u,c,f){if(f in t)return o(u,c);if(f in e)return o(void 0,u)}const a={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c)=>r(jl(u),jl(c),!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||r,d=f(e[c],t[c],c);O.isUndefined(d)&&f!==l||(n[c]=d)}),n}const fu=e=>{const t=Pn({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Ze.from(i),t.url=su(uu(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(O.isFormData(n)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((a=i.getContentType())!==!1){const[u,...c]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...c].join("; "))}}if(yt.hasStandardBrowserEnv&&(o&&O.isFunction(o)&&(o=o(t)),o||o!==!1&&Om(t.url))){const u=r&&s&&Am.read(s);u&&i.set(r,u)}return t},Tm=typeof XMLHttpRequest<"u",$m=Tm&&function(e){return new Promise(function(n,o){const r=fu(e);let s=r.data;const i=Ze.from(r.headers).normalize();let{responseType:l}=r,a;function u(){r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function f(){if(!c)return;const p=Ze.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};cu(function(v){n(v),u()},function(v){o(v),u()},m),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(o(new ae("Request aborted",ae.ECONNABORTED,r,c)),c=null)},c.onerror=function(){o(new ae("Network Error",ae.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let h=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const m=r.transitional||iu;r.timeoutErrorMessage&&(h=r.timeoutErrorMessage),o(new ae(h,m.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,r,c)),c=null},s===void 0&&i.setContentType(null),"setRequestHeader"in c&&O.forEach(i.toJSON(),function(h,m){c.setRequestHeader(m,h)}),O.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),l&&l!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",yr(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",yr(r.onUploadProgress)),(r.cancelToken||r.signal)&&(a=p=>{c&&(o(!p||p.type?new eo(null,e,c):p),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const d=Em(r.url);if(d&&yt.protocols.indexOf(d)===-1){o(new ae("Unsupported protocol "+d+":",ae.ERR_BAD_REQUEST,e));return}c.send(s||null)})},km=(e,t)=>{let n=new AbortController,o;const r=function(a){if(!o){o=!0,i();const u=a instanceof Error?a:this.reason;n.abort(u instanceof ae?u:new eo(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{r(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(a=>{a&&(a.removeEventListener?a.removeEventListener("abort",r):a.unsubscribe(r))}),e=null)};e.forEach(a=>a&&a.addEventListener&&a.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},Im=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Lm=async function*(e,t,n){for await(const o of e)yield*Im(ArrayBuffer.isView(o)?o:await n(String(o)),t)},zl=(e,t,n,o,r)=>{const s=Lm(e,t,r);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:a,value:u}=await s.next();if(a){l.close(),o();return}let c=u.byteLength;n&&n(i+=c),l.enqueue(new Uint8Array(u))},cancel(l){return o(l),s.return()}},{highWaterMark:2})},Hl=(e,t)=>{const n=e!=null;return o=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:o}))},Kr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",du=Kr&&typeof ReadableStream=="function",Hs=Kr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dm=du&&(()=>{let e=!1;const t=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Ul=64*1024,Us=du&&!!(()=>{try{return O.isReadableStream(new Response("").body)}catch{}})(),br={stream:Us&&(e=>e.body)};Kr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!br[t]&&(br[t]=O.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new ae(`Response type '${t}' is not supported`,ae.ERR_NOT_SUPPORT,o)})})})(new Response);const Bm=async e=>{if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(O.isArrayBufferView(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(await Hs(e)).byteLength},Nm=async(e,t)=>{const n=O.toFiniteNumber(e.getContentLength());return n??Bm(t)},Fm=Kr&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:a,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=fu(e);u=u?(u+"").toLowerCase():"text";let[p,h]=r||s||i?km([r,s],i):[],m,w;const v=()=>{!m&&setTimeout(()=>{p&&p.unsubscribe()}),m=!0};let _;try{if(a&&Dm&&n!=="get"&&n!=="head"&&(_=await Nm(c,o))!==0){let R=new Request(t,{method:"POST",body:o,duplex:"half"}),N;O.isFormData(o)&&(N=R.headers.get("content-type"))&&c.setContentType(N),R.body&&(o=zl(R.body,Ul,Hl(_,yr(a)),null,Hs))}O.isString(f)||(f=f?"cors":"omit"),w=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:o,duplex:"half",withCredentials:f});let x=await fetch(w);const P=Us&&(u==="stream"||u==="response");if(Us&&(l||P)){const R={};["status","statusText","headers"].forEach(z=>{R[z]=x[z]});const N=O.toFiniteNumber(x.headers.get("content-length"));x=new Response(zl(x.body,Ul,l&&Hl(N,yr(l,!0)),P&&v,Hs),R)}u=u||"text";let A=await br[O.findKey(br,u)||"text"](x,e);return!P&&v(),h&&h(),await new Promise((R,N)=>{cu(R,N,{data:A,headers:Ze.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:w})})}catch(x){throw v(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,w),{cause:x.cause||x}):ae.from(x,x&&x.code,e,w)}}),Ws={http:tm,xhr:$m,fetch:Fm};O.forEach(Ws,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wl=e=>`- ${e}`,Mm=e=>O.isFunction(e)||e===null||e===!1,pu={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){n=e[s];let i;if(o=n,!Mm(n)&&(o=Ws[(i=String(n)).toLowerCase()],o===void 0))throw new ae(`Unknown adapter '${i}'`);if(o)break;r[i||"#"+s]=o}if(!o){const s=Object.entries(r).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
`+s.map(Wl).join(`
`):" "+Wl(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return o},adapters:Ws};function hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function Vl(e){return hs(e),e.headers=Ze.from(e.headers),e.data=ps.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pu.getAdapter(e.adapter||No.adapter)(e).then(function(o){return hs(e),o.data=ps.call(e,e.transformResponse,o),o.headers=Ze.from(o.headers),o},function(o){return au(o)||(hs(e),o&&o.response&&(o.response.data=ps.call(e,e.transformResponse,o.response),o.response.headers=Ze.from(o.response.headers))),Promise.reject(o)})}const hu="1.7.2",Ai={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ai[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const ql={};Ai.transitional=function(t,n,o){function r(s,i){return"[Axios v"+hu+"] Transitional option '"+s+"'"+i+(o?". "+o:"")}return(s,i,l)=>{if(t===!1)throw new ae(r(i," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!ql[i]&&(ql[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,l):!0}};function jm(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],i=t[s];if(i){const l=e[s],a=l===void 0||i(l,s,e);if(a!==!0)throw new ae("option "+s+" must be "+a,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+s,ae.ERR_BAD_OPTION)}}const Vs={assertOptions:jm,validators:Ai},Jt=Vs.validators;class An{constructor(t){this.defaults=t,this.interceptors={request:new Fl,response:new Fl}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
`+s):o.stack=s}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pn(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&Vs.assertOptions(o,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean)},!1),r!=null&&(O.isFunction(r)?n.paramsSerializer={serialize:r}:Vs.assertOptions(r,{encode:Jt.function,serialize:Jt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&O.merge(s.common,s[n.method]);s&&O.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),n.headers=Ze.concat(i,s);const l=[];let a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(a=a&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!a){const h=[Vl.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),d=h.length,c=Promise.resolve(n);f<d;)c=c.then(h[f++],h[f++]);return c}d=l.length;let p=n;for(f=0;f<d;){const h=l[f++],m=l[f++];try{p=h(p)}catch(w){m.call(this,w);break}}try{c=Vl.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Pn(this.defaults,t);const n=uu(t.baseURL,t.url);return su(n,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(t){An.prototype[t]=function(n,o){return this.request(Pn(o||{},{method:t,url:n,data:(o||{}).data}))}});O.forEach(["post","put","patch"],function(t){function n(o){return function(s,i,l){return this.request(Pn(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}An.prototype[t]=n(),An.prototype[t+"Form"]=n(!0)});class Ri{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const i=new Promise(l=>{o.subscribe(l),s=l}).then(r);return i.cancel=function(){o.unsubscribe(s)},i},t(function(s,i,l){o.reason||(o.reason=new eo(s,i,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ri(function(r){t=r}),cancel:t}}}function zm(e){return function(n){return e.apply(null,n)}}function Hm(e){return O.isObject(e)&&e.isAxiosError===!0}const qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qs).forEach(([e,t])=>{qs[t]=e});function mu(e){const t=new An(e),n=Kc(An.prototype.request,t);return O.extend(n,An.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return mu(Pn(e,r))},n}const Be=mu(No);Be.Axios=An;Be.CanceledError=eo;Be.CancelToken=Ri;Be.isCancel=au;Be.VERSION=hu;Be.toFormData=qr;Be.AxiosError=ae;Be.Cancel=Be.CanceledError;Be.all=function(t){return Promise.all(t)};Be.spread=zm;Be.isAxiosError=Hm;Be.mergeConfig=Pn;Be.AxiosHeaders=Ze;Be.formToJSON=e=>lu(O.isHTMLForm(e)?new FormData(e):e);Be.getAdapter=pu.getAdapter;Be.HttpStatusCode=qs;Be.default=Be;function Um(e){const t=Zn();if(t.isLoggedIn){const n=t.jwtToken;e.headers=e.headers??{},e.headers.authorization=`BEARER ${n}`}return e}const Dt=Be.create({baseURL:xi.API_HOST});Dt.interceptors.request.use(Um);const gu=Wc("calendar",()=>{const e=F([]),t=F([]);async function n(){const a=await Dt.get("/calendars/google");t.value=a.data}async function o(){const a=await Dt.get("/calendars/subscriptions");e.value=a.data}async function r(a){if(!e.value.some(u=>u.provider_id===a.provider_id))try{await Dt.post("/calendars/subscribe",a),e.value.push(a)}catch(u){console.error(u)}}async function s(a){const u=e.value.findIndex(c=>c.provider_id===a.provider_id);u!==-1&&(e.value.splice(u,1),await Dt.delete(`/calendars/${encodeURIComponent(a.provider_id)}`))}async function i(a){const u=e.value.findIndex(c=>c.provider_id===a.provider_id);e.value[u].color=a.color,await Dt.patch(`/calendars/${encodeURIComponent(a.provider_id)}`,a)}async function l(a,u,c){return(await Dt.get(`/calendars/${encodeURIComponent(a)}/events?start=${u}&end=${c}`)).data}return{loadAvailableCalendars:n,loadSubscriptions:o,subscribeToCalendar:r,unsubscribeFromCalendar:s,subscriptions:e,availableCalendars:t,updateCalendar:i,getEventsForCalendar:l}}),Wm={class:"grid grid-cols-1 gap-6 px-2 place-items-center"},Vm=["onClick"],qm=K({__name:"NavLinks",setup(e){const t=gu(),{subscriptions:n}=qp(t),o=r=>{if(r.highlighted){r.highlighted=!1;return}n.value.forEach(s=>{s.highlighted=s===r})};return(r,s)=>(M(),Te("nav",Wm,[(M(!0),Te(He,null,gi(y(n),i=>(M(),Te("div",{key:i.provider_id,class:pt(["link content-center",{highlighted:i.highlighted}]),style:Ge({backgroundColor:i.color}),onClick:l=>o(i)},null,14,Vm))),128))]))}}),vu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Km=vu(qm,[["__scopeId","data-v-789cd5fc"]]),Ft={home:"home",main:"/",auth:"/auth",settings:"/settings"};/*!
  * vue-router v4.3.2
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const Fn=typeof document<"u";function Gm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const _e=Object.assign;function ms(e,t){const n={};for(const o in t){const r=t[o];n[o]=bt(r)?r.map(e):e(r)}return n}const wo=()=>{},bt=Array.isArray,yu=/#/g,Jm=/&/g,Ym=/\//g,Xm=/=/g,Zm=/\?/g,bu=/\+/g,Qm=/%5B/g,eg=/%5D/g,wu=/%5E/g,tg=/%60/g,_u=/%7B/g,ng=/%7C/g,xu=/%7D/g,og=/%20/g;function Pi(e){return encodeURI(""+e).replace(ng,"|").replace(Qm,"[").replace(eg,"]")}function rg(e){return Pi(e).replace(_u,"{").replace(xu,"}").replace(wu,"^")}function Ks(e){return Pi(e).replace(bu,"%2B").replace(og,"+").replace(yu,"%23").replace(Jm,"%26").replace(tg,"`").replace(_u,"{").replace(xu,"}").replace(wu,"^")}function sg(e){return Ks(e).replace(Xm,"%3D")}function ig(e){return Pi(e).replace(yu,"%23").replace(Zm,"%3F")}function lg(e){return e==null?"":ig(e).replace(Ym,"%2F")}function Ro(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ag=/\/$/,cg=e=>e.replace(ag,"");function gs(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(o=t.slice(0,a),s=t.slice(a+1,l>-1?l:t.length),r=e(s)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=pg(o??t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:Ro(i)}}function ug(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fg(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&qn(t.matched[o],n.matched[r])&&Eu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dg(e[n],t[n]))return!1;return!0}function dg(e,t){return bt(e)?Gl(e,t):bt(t)?Gl(t,e):e===t}function Gl(e,t){return bt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function pg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,i,l;for(i=0;i<o.length;i++)if(l=o[i],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}var Po;(function(e){e.pop="pop",e.push="push"})(Po||(Po={}));var _o;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_o||(_o={}));function hg(e){if(!e)if(Fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cg(e)}const mg=/^[^#]+#/;function gg(e,t){return e.replace(mg,"#")+t}function vg(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Gr=()=>({left:window.scrollX,top:window.scrollY});function yg(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=vg(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Jl(e,t){return(history.state?history.state.position-t:-1)+e}const Gs=new Map;function bg(e,t){Gs.set(e,t)}function wg(e){const t=Gs.get(e);return Gs.delete(e),t}let _g=()=>location.protocol+"//"+location.host;function Cu(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let l=r.includes(e.slice(s))?e.slice(s).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Kl(a,"")}return Kl(n,e)+o+r}function xg(e,t,n,o){let r=[],s=[],i=null;const l=({state:d})=>{const p=Cu(e,location),h=n.value,m=t.value;let w=0;if(d){if(n.value=p,t.value=d,i&&i===h){i=null;return}w=m?d.position-m.position:0}else o(p);r.forEach(v=>{v(n.value,h,{delta:w,type:Po.pop,direction:w?w>0?_o.forward:_o.back:_o.unknown})})};function a(){i=n.value}function u(d){r.push(d);const p=()=>{const h=r.indexOf(d);h>-1&&r.splice(h,1)};return s.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(_e({},d.state,{scroll:Gr()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function Yl(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Gr():null}}function Eg(e){const{history:t,location:n}=window,o={value:Cu(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:_g()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),r.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function i(a,u){const c=_e({},t.state,Yl(r.value.back,a,r.value.forward,!0),u,{position:r.value.position});s(a,c,!0),o.value=a}function l(a,u){const c=_e({},r.value,t.state,{forward:a,scroll:Gr()});s(c.current,c,!0);const f=_e({},Yl(o.value,a,null),{position:c.position+1},u);s(a,f,!1),o.value=a}return{location:o,state:r,push:l,replace:i}}function Cg(e){e=hg(e);const t=Eg(e),n=xg(e,t.state,t.location,t.replace);function o(s,i=!0){i||n.pauseListeners(),history.go(s)}const r=_e({location:"",base:e,go:o,createHref:gg.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 Sg(e){return typeof e=="string"||e&&typeof e=="object"}function Su(e){return typeof e=="string"||typeof e=="symbol"}const Yt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ou=Symbol("");var Xl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xl||(Xl={}));function Kn(e,t){return _e(new Error,{type:e,[Ou]:!0},t)}function kt(e,t){return e instanceof Error&&Ou in e&&(t==null||!!(e.type&t))}const Zl="[^/]+?",Og={sensitive:!1,strict:!1,start:!0,end:!0},Ag=/[.+*?^${}()[\]/\\]/g;function Rg(e,t){const n=_e({},Og,t),o=[];let r=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=40+(n.sensitive?.25:0);if(d.type===0)f||(r+="/"),r+=d.value.replace(Ag,"\\$&"),p+=40;else if(d.type===1){const{value:h,repeatable:m,optional:w,regexp:v}=d;s.push({name:h,repeatable:m,optional:w});const _=v||Zl;if(_!==Zl){p+=10;try{new RegExp(`(${_})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${h}" (${_}): `+P.message)}}let x=m?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(x=w&&u.length<2?`(?:/${x})`:"/"+x),w&&(x+="?"),r+=x,p+=20,w&&(p+=-8),m&&(p+=-20),_===".*"&&(p+=-50)}c.push(p)}o.push(c)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const c=u.match(i),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=s[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function a(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===0)c+=p.value;else if(p.type===1){const{value:h,repeatable:m,optional:w}=p,v=h in u?u[h]:"";if(bt(v)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const _=bt(v)?v.join("/"):v;if(!_)if(w)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=_}}return c||"/"}return{re:i,score:o,keys:s,parse:l,stringify:a}}function Pg(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Tg(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=Pg(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(Ql(o))return 1;if(Ql(r))return-1}return r.length-o.length}function Ql(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $g={type:0,value:""},kg=/[a-zA-Z0-9_]/;function Ig(e){if(!e)return[[]];if(e==="/")return[[$g]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,o=n;const r=[];let s;function i(){s&&r.push(s),s=[]}let l=0,a,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:a==="/"?(u&&f(),i()):a===":"?(f(),n=1):d();break;case 4:d(),n=o;break;case 1:a==="("?n=2:kg.test(a)?d():(f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=3:c+=a;break;case 3:f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}function Lg(e,t,n){const o=Rg(Ig(e.path),n),r=_e(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dg(e,t){const n=[],o=new Map;t=na({strict:!1,end:!0,sensitive:!1},t);function r(c){return o.get(c)}function s(c,f,d){const p=!d,h=Bg(c);h.aliasOf=d&&d.record;const m=na(t,c),w=[h];if("alias"in c){const x=typeof c.alias=="string"?[c.alias]:c.alias;for(const P of x)w.push(_e({},h,{components:d?d.record.components:h.components,path:P,aliasOf:d?d.record:h}))}let v,_;for(const x of w){const{path:P}=x;if(f&&P[0]!=="/"){const A=f.record.path,R=A[A.length-1]==="/"?"":"/";x.path=f.record.path+(P&&R+P)}if(v=Lg(x,f,m),d?d.alias.push(v):(_=_||v,_!==v&&_.alias.push(v),p&&c.name&&!ta(v)&&i(c.name)),h.children){const A=h.children;for(let R=0;R<A.length;R++)s(A[R],v,d&&d.children[R])}d=d||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&a(v)}return _?()=>{i(_)}:wo}function i(c){if(Su(c)){const f=o.get(c);f&&(o.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&o.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function l(){return n}function a(c){let f=0;for(;f<n.length&&Tg(c,n[f])>=0&&(c.record.path!==n[f].record.path||!Au(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!ta(c)&&o.set(c.record.name,c)}function u(c,f){let d,p={},h,m;if("name"in c&&c.name){if(d=o.get(c.name),!d)throw Kn(1,{location:c});m=d.record.name,p=_e(ea(f.params,d.keys.filter(_=>!_.optional).concat(d.parent?d.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&ea(c.params,d.keys.map(_=>_.name))),h=d.stringify(p)}else if(c.path!=null)h=c.path,d=n.find(_=>_.re.test(h)),d&&(p=d.parse(h),m=d.record.name);else{if(d=f.name?o.get(f.name):n.find(_=>_.re.test(f.path)),!d)throw Kn(1,{location:c,currentLocation:f});m=d.record.name,p=_e({},f.params,c.params),h=d.stringify(p)}const w=[];let v=d;for(;v;)w.unshift(v.record),v=v.parent;return{name:m,path:h,params:p,matched:w,meta:Fg(w)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function ea(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Bg(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ng(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 Ng(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function ta(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fg(e){return e.reduce((t,n)=>_e(t,n.meta),{})}function na(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Au(e,t){return t.children.some(n=>n===e||Au(e,n))}function Mg(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const s=o[r].replace(bu," "),i=s.indexOf("="),l=Ro(i<0?s:s.slice(0,i)),a=i<0?null:Ro(s.slice(i+1));if(l in t){let u=t[l];bt(u)||(u=t[l]=[u]),u.push(a)}else t[l]=a}return t}function oa(e){let t="";for(let n in e){const o=e[n];if(n=sg(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(bt(o)?o.map(s=>s&&Ks(s)):[o&&Ks(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function jg(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=bt(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const zg=Symbol(""),ra=Symbol(""),Jr=Symbol(""),Ti=Symbol(""),Js=Symbol("");function lo(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function rn(e,t,n,o,r,s=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const u=d=>{d===!1?a(Kn(4,{from:n,to:t})):d instanceof Error?a(d):Sg(d)?a(Kn(2,{from:t,to:d})):(i&&o.enterCallbacks[r]===i&&typeof d=="function"&&i.push(d),l())},c=s(()=>e.call(o&&o.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>a(d))})}function vs(e,t,n,o,r=s=>s()){const s=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Hg(a)){const c=(a.__vccOpts||a)[t];c&&s.push(rn(c,n,o,i,l,r))}else{let u=a();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const f=Gm(c)?c.default:c;i.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&rn(p,n,o,i,l,r)()}))}}return s}function Hg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sa(e){const t=it(Jr),n=it(Ti),o=U(()=>{const a=y(e.to);return t.resolve(a)}),r=U(()=>{const{matched:a}=o.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(qn.bind(null,c));if(d>-1)return d;const p=ia(a[u-2]);return u>1&&ia(c)===p&&f[f.length-1].path!==p?f.findIndex(qn.bind(null,a[u-2])):d}),s=U(()=>r.value>-1&&qg(n.params,o.value.params)),i=U(()=>r.value>-1&&r.value===n.matched.length-1&&Eu(n.params,o.value.params));function l(a={}){return Vg(a)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(wo):Promise.resolve()}return{route:o,href:U(()=>o.value.href),isActive:s,isExactActive:i,navigate:l}}const Ug=K({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:sa,setup(e,{slots:t}){const n=Ht(sa(e)),{options:o}=it(Jr),r=U(()=>({[la(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[la(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Nt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),Wg=Ug;function Vg(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 qg(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!bt(r)||r.length!==o.length||o.some((s,i)=>s!==r[i]))return!1}return!0}function ia(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const la=(e,t,n)=>e??t??n,Kg=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=it(Js),r=U(()=>e.route||o.value),s=it(ra,0),i=U(()=>{let u=y(s);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=U(()=>r.value.matched[i.value]);go(ra,U(()=>i.value+1)),go(zg,l),go(Js,r);const a=F();return ve(()=>[a.value,l.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!qn(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return aa(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,w=Nt(d,_e({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return aa(n.default,{Component:w,route:u})||w}}});function aa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ru=Kg;function Gg(e){const t=Dg(e.routes,e),n=e.parseQuery||Mg,o=e.stringifyQuery||oa,r=e.history,s=lo(),i=lo(),l=lo(),a=Lr(Yt);let u=Yt;Fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=ms.bind(null,T=>""+T),f=ms.bind(null,lg),d=ms.bind(null,Ro);function p(T,q){let H,X;return Su(T)?(H=t.getRecordMatcher(T),X=q):X=T,t.addRoute(X,H)}function h(T){const q=t.getRecordMatcher(T);q&&t.removeRoute(q)}function m(){return t.getRoutes().map(T=>T.record)}function w(T){return!!t.getRecordMatcher(T)}function v(T,q){if(q=_e({},q||a.value),typeof T=="string"){const b=gs(n,T,q.path),C=t.resolve({path:b.path},q),E=r.createHref(b.fullPath);return _e(b,C,{params:d(C.params),hash:Ro(b.hash),redirectedFrom:void 0,href:E})}let H;if(T.path!=null)H=_e({},T,{path:gs(n,T.path,q.path).path});else{const b=_e({},T.params);for(const C in b)b[C]==null&&delete b[C];H=_e({},T,{params:f(b)}),q.params=f(q.params)}const X=t.resolve(H,q),be=T.hash||"";X.params=c(d(X.params));const Ee=ug(o,_e({},T,{hash:rg(be),path:X.path})),g=r.createHref(Ee);return _e({fullPath:Ee,hash:be,query:o===oa?jg(T.query):T.query||{}},X,{redirectedFrom:void 0,href:g})}function _(T){return typeof T=="string"?gs(n,T,a.value.path):_e({},T)}function x(T,q){if(u!==T)return Kn(8,{from:q,to:T})}function P(T){return N(T)}function A(T){return P(_e(_(T),{replace:!0}))}function R(T){const q=T.matched[T.matched.length-1];if(q&&q.redirect){const{redirect:H}=q;let X=typeof H=="function"?H(T):H;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=_(X):{path:X},X.params={}),_e({query:T.query,hash:T.hash,params:X.path!=null?{}:T.params},X)}}function N(T,q){const H=u=v(T),X=a.value,be=T.state,Ee=T.force,g=T.replace===!0,b=R(H);if(b)return N(_e(_(b),{state:typeof b=="object"?_e({},be,b.state):be,force:Ee,replace:g}),q||H);const C=H;C.redirectedFrom=q;let E;return!Ee&&fg(o,X,H)&&(E=Kn(16,{to:C,from:X}),Ne(X,X,!0,!1)),(E?Promise.resolve(E):D(C,X)).catch(S=>kt(S)?kt(S,2)?S:tt(S):de(S,C,X)).then(S=>{if(S){if(kt(S,2))return N(_e({replace:g},_(S.to),{state:typeof S.to=="object"?_e({},be,S.to.state):be,force:Ee}),q||C)}else S=W(C,X,!0,g,be);return Z(C,X,S),S})}function z(T,q){const H=x(T,q);return H?Promise.reject(H):Promise.resolve()}function G(T){const q=qt.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(T):T()}function D(T,q){let H;const[X,be,Ee]=Jg(T,q);H=vs(X.reverse(),"beforeRouteLeave",T,q);for(const b of X)b.leaveGuards.forEach(C=>{H.push(rn(C,T,q))});const g=z.bind(null,T,q);return H.push(g),Fe(H).then(()=>{H=[];for(const b of s.list())H.push(rn(b,T,q));return H.push(g),Fe(H)}).then(()=>{H=vs(be,"beforeRouteUpdate",T,q);for(const b of be)b.updateGuards.forEach(C=>{H.push(rn(C,T,q))});return H.push(g),Fe(H)}).then(()=>{H=[];for(const b of Ee)if(b.beforeEnter)if(bt(b.beforeEnter))for(const C of b.beforeEnter)H.push(rn(C,T,q));else H.push(rn(b.beforeEnter,T,q));return H.push(g),Fe(H)}).then(()=>(T.matched.forEach(b=>b.enterCallbacks={}),H=vs(Ee,"beforeRouteEnter",T,q,G),H.push(g),Fe(H))).then(()=>{H=[];for(const b of i.list())H.push(rn(b,T,q));return H.push(g),Fe(H)}).catch(b=>kt(b,8)?b:Promise.reject(b))}function Z(T,q,H){l.list().forEach(X=>G(()=>X(T,q,H)))}function W(T,q,H,X,be){const Ee=x(T,q);if(Ee)return Ee;const g=q===Yt,b=Fn?history.state:{};H&&(X||g?r.replace(T.fullPath,_e({scroll:g&&b&&b.scroll},be)):r.push(T.fullPath,be)),a.value=T,Ne(T,q,H,g),tt()}let fe;function J(){fe||(fe=r.listen((T,q,H)=>{if(!mt.listening)return;const X=v(T),be=R(X);if(be){N(_e(be,{replace:!0}),X).catch(wo);return}u=X;const Ee=a.value;Fn&&bg(Jl(Ee.fullPath,H.delta),Gr()),D(X,Ee).catch(g=>kt(g,12)?g:kt(g,2)?(N(g.to,X).then(b=>{kt(b,20)&&!H.delta&&H.type===Po.pop&&r.go(-1,!1)}).catch(wo),Promise.reject()):(H.delta&&r.go(-H.delta,!1),de(g,X,Ee))).then(g=>{g=g||W(X,Ee,!1),g&&(H.delta&&!kt(g,8)?r.go(-H.delta,!1):H.type===Po.pop&&kt(g,20)&&r.go(-1,!1)),Z(X,Ee,g)}).catch(wo)}))}let ye=lo(),Y=lo(),ie;function de(T,q,H){tt(T);const X=Y.list();return X.length?X.forEach(be=>be(T,q,H)):console.error(T),Promise.reject(T)}function ze(){return ie&&a.value!==Yt?Promise.resolve():new Promise((T,q)=>{ye.add([T,q])})}function tt(T){return ie||(ie=!T,J(),ye.list().forEach(([q,H])=>T?H(T):q()),ye.reset()),T}function Ne(T,q,H,X){const{scrollBehavior:be}=e;if(!Fn||!be)return Promise.resolve();const Ee=!H&&wg(Jl(T.fullPath,0))||(X||!H)&&history.state&&history.state.scroll||null;return et().then(()=>be(T,q,Ee)).then(g=>g&&yg(g)).catch(g=>de(g,T,q))}const ke=T=>r.go(T);let Vt;const qt=new Set,mt={currentRoute:a,listening:!0,addRoute:p,removeRoute:h,hasRoute:w,getRoutes:m,resolve:v,options:e,push:P,replace:A,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:Y.add,isReady:ze,install(T){const q=this;T.component("RouterLink",Wg),T.component("RouterView",Ru),T.config.globalProperties.$router=q,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),Fn&&!Vt&&a.value===Yt&&(Vt=!0,P(r.location).catch(be=>{}));const H={};for(const be in Yt)Object.defineProperty(H,be,{get:()=>a.value[be],enumerable:!0});T.provide(Jr,q),T.provide(Ti,ec(H)),T.provide(Js,a);const X=T.unmount;qt.add(T),T.unmount=function(){qt.delete(T),qt.size<1&&(u=Yt,fe&&fe(),fe=null,a.value=Yt,Vt=!1,ie=!1),X()}}};function Fe(T){return T.reduce((q,H)=>q.then(()=>G(H)),Promise.resolve())}return mt}function Jg(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const l=t.matched[i];l&&(e.matched.find(u=>qn(u,l))?o.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>qn(u,a))||r.push(a))}return[n,o,r]}function Pu(){return it(Jr)}function Yg(){return it(Ti)}function Tu(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Tu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Xg(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Tu(e))&&(o&&(o+=" "),o+=t);return o}const $i="-";function Zg(e){const t=ev(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;function r(i){const l=i.split($i);return l[0]===""&&l.length!==1&&l.shift(),$u(l,t)||Qg(i)}function s(i,l){const a=n[i]||[];return l&&o[i]?[...a,...o[i]]:a}return{getClassGroupId:r,getConflictingClassGroupIds:s}}function $u(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?$u(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join($i);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId}const ca=/^\[(.+)\]$/;function Qg(e){if(ca.test(e)){const t=ca.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ev(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return nv(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ys(i,o,s,t)}),o}function Ys(e,t,n,o){e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:ua(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(tv(r)){Ys(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,i])=>{Ys(i,ua(t,s),n,o)})})}function ua(e,t){let n=e;return t.split($i).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function tv(e){return e.isThemeGetter}function nv(e,t){return t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,r]}):e}function ov(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(s,i){n.set(s,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){n.has(s)?n.set(s,i):r(s,i)}}}const ku="!";function rv(e){const t=e.separator,n=t.length===1,o=t[0],r=t.length;return function(i){const l=[];let a=0,u=0,c;for(let m=0;m<i.length;m++){let w=i[m];if(a===0){if(w===o&&(n||i.slice(m,m+r)===t)){l.push(i.slice(u,m)),u=m+r;continue}if(w==="/"){c=m;continue}}w==="["?a++:w==="]"&&a--}const f=l.length===0?i:i.substring(u),d=f.startsWith(ku),p=d?f.substring(1):f,h=c&&c>u?c-u:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}}}function sv(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t}function iv(e){return{cache:ov(e.cacheSize),splitModifiers:rv(e),...Zg(e)}}const lv=/\s+/;function av(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=new Set;return e.trim().split(lv).map(i=>{const{modifiers:l,hasImportantModifier:a,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let f=o(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:i};if(f=o(u),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const p=sv(l).join(":");return{isTailwindClass:!0,modifierId:a?p+ku:p,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:l,classGroupId:a,hasPostfixModifier:u}=i,c=l+a;return s.has(c)?!1:(s.add(c),r(a,u).forEach(f=>s.add(l+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function cv(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Iu(t))&&(o&&(o+=" "),o+=n);return o}function Iu(e){if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Iu(e[o]))&&(n&&(n+=" "),n+=t);return n}function uv(e,...t){let n,o,r,s=i;function i(a){const u=t.reduce((c,f)=>f(c),e());return n=iv(u),o=n.cache.get,r=n.cache.set,s=l,l(a)}function l(a){const u=o(a);if(u)return u;const c=av(a,n);return r(a,c),c}return function(){return s(cv.apply(null,arguments))}}function Se(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Lu=/^\[(?:([a-z-]+):)?(.+)\]$/i,fv=/^\d+\/\d+$/,dv=new Set(["px","full","screen"]),pv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function It(e){return Cn(e)||dv.has(e)||fv.test(e)}function Xt(e){return to(e,"length",Sv)}function Cn(e){return!!e&&!Number.isNaN(Number(e))}function Jo(e){return to(e,"number",Cn)}function ao(e){return!!e&&Number.isInteger(Number(e))}function yv(e){return e.endsWith("%")&&Cn(e.slice(0,-1))}function ce(e){return Lu.test(e)}function Zt(e){return pv.test(e)}const bv=new Set(["length","size","percentage"]);function wv(e){return to(e,bv,Du)}function _v(e){return to(e,"position",Du)}const xv=new Set(["image","url"]);function Ev(e){return to(e,xv,Av)}function Cv(e){return to(e,"",Ov)}function co(){return!0}function to(e,t,n){const o=Lu.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1}function Sv(e){return hv.test(e)&&!mv.test(e)}function Du(){return!1}function Ov(e){return gv.test(e)}function Av(e){return vv.test(e)}function Rv(){const e=Se("colors"),t=Se("spacing"),n=Se("blur"),o=Se("brightness"),r=Se("borderColor"),s=Se("borderRadius"),i=Se("borderSpacing"),l=Se("borderWidth"),a=Se("contrast"),u=Se("grayscale"),c=Se("hueRotate"),f=Se("invert"),d=Se("gap"),p=Se("gradientColorStops"),h=Se("gradientColorStopPositions"),m=Se("inset"),w=Se("margin"),v=Se("opacity"),_=Se("padding"),x=Se("saturate"),P=Se("scale"),A=Se("sepia"),R=Se("skew"),N=Se("space"),z=Se("translate"),G=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",ce,t],W=()=>[ce,t],fe=()=>["",It,Xt],J=()=>["auto",Cn,ce],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],ze=()=>["","0",ce],tt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ne=()=>[Cn,Jo],ke=()=>[Cn,ce];return{cacheSize:500,separator:":",theme:{colors:[co],spacing:[It,Xt],blur:["none","",Zt,ce],brightness:Ne(),borderColor:[e],borderRadius:["none","","full",Zt,ce],borderSpacing:W(),borderWidth:fe(),contrast:Ne(),grayscale:ze(),hueRotate:ke(),invert:ze(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[yv,Xt],inset:Z(),margin:Z(),opacity:Ne(),padding:W(),saturate:Ne(),scale:Ne(),sepia:ze(),skew:ke(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Zt]}],"break-after":[{"break-after":tt()}],"break-before":[{"break-before":tt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ye(),ce]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ao,ce]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:ze()}],shrink:[{shrink:ze()}],order:[{order:["first","last","none",ao,ce]}],"grid-cols":[{"grid-cols":[co]}],"col-start-end":[{col:["auto",{span:["full",ao,ce]},ce]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[co]}],"row-start-end":[{row:["auto",{span:[ao,ce]},ce]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Zt]},Zt]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zt,Xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jo]}],"font-family":[{font:[co]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",Cn,Jo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,Xt]}],"underline-offset":[{"underline-offset":["auto",It,ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ye(),_v]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ev]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Y()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[It,ce]}],"outline-w":[{outline:[It,Xt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[It,Xt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zt,Cv]}],"shadow-color":[{shadow:[co]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Zt,ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[ao,ce]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,Xt,Jo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Pv=uv(Rv);function dt(...e){return Pv(Xg(e))}const Tv=K({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,o)=>(M(),Te("div",{class:pt(y(dt)("rounded-lg border bg-card text-card-foreground shadow-sm",t.class))},[te(n.$slots,"default")],2))}}),$v=K({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(M(),Te("div",{class:pt(y(dt)("flex flex-col gap-y-1.5 p-6",t.class))},[te(n.$slots,"default")],2))}}),kv=K({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,o)=>(M(),Te("h3",{class:pt(y(dt)("text-2xl font-semibold leading-none tracking-tight",t.class))},[te(n.$slots,"default")],2))}}),Iv=K({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,o)=>(M(),Te("div",{class:pt(y(dt)("p-6 pt-0",t.class))},[te(n.$slots,"default")],2))}}),Lv=["top","right","bottom","left"],Ot=Math.min,st=Math.max,wr=Math.round,Yo=Math.floor,un=e=>({x:e,y:e}),Dv={left:"right",right:"left",bottom:"top",top:"bottom"},Bv={start:"end",end:"start"};function Xs(e,t,n){return st(e,Ot(t,n))}function jt(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function ki(e){return e==="x"?"y":"x"}function Ii(e){return e==="y"?"height":"width"}function oo(e){return["top","bottom"].includes(zt(e))?"y":"x"}function Li(e){return ki(oo(e))}function Nv(e,t,n){n===void 0&&(n=!1);const o=no(e),r=Li(e),s=Ii(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=_r(i)),[i,_r(i)]}function Fv(e){const t=_r(e);return[Zs(e),t,Zs(t)]}function Zs(e){return e.replace(/start|end/g,t=>Bv[t])}function Mv(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function jv(e,t,n,o){const r=no(e);let s=Mv(zt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Zs)))),s}function _r(e){return e.replace(/left|right|bottom|top/g,t=>Dv[t])}function zv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bu(e){return typeof e!="number"?zv(e):{top:e,right:e,bottom:e,left:e}}function xr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function fa(e,t,n){let{reference:o,floating:r}=e;const s=oo(t),i=Li(t),l=Ii(i),a=zt(t),u=s==="y",c=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(a){case"top":p={x:c,y:o.y-r.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(no(t)){case"start":p[i]-=d*(n&&u?-1:1);break;case"end":p[i]+=d*(n&&u?-1:1);break}return p}const Hv=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=fa(u,o,a),d=o,p={},h=0;for(let m=0;m<l.length;m++){const{name:w,fn:v}=l[m],{x:_,y:x,data:P,reset:A}=await v({x:c,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=_??c,f=x??f,p={...p,[w]:{...p[w],...P}},A&&h<=50&&(h++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(u=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:c,y:f}=fa(u,d,a)),m=-1)}return{x:c,y:f,placement:d,strategy:r,middlewareData:p}};async function To(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=jt(t,e),h=Bu(p),w=l[d?f==="floating"?"reference":"floating":f],v=xr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),_=f==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},A=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:x,strategy:a}):_);return{top:(v.top-A.top+h.top)/P.y,bottom:(A.bottom-v.bottom+h.bottom)/P.y,left:(v.left-A.left+h.left)/P.x,right:(A.right-v.right+h.right)/P.x}}const Uv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=jt(e,t)||{};if(u==null)return{};const f=Bu(c),d={x:n,y:o},p=Li(r),h=Ii(p),m=await i.getDimensions(u),w=p==="y",v=w?"top":"left",_=w?"bottom":"right",x=w?"clientHeight":"clientWidth",P=s.reference[h]+s.reference[p]-d[p]-s.floating[h],A=d[p]-s.reference[p],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=R?R[x]:0;(!N||!await(i.isElement==null?void 0:i.isElement(R)))&&(N=l.floating[x]||s.floating[h]);const z=P/2-A/2,G=N/2-m[h]/2-1,D=Ot(f[v],G),Z=Ot(f[_],G),W=D,fe=N-m[h]-Z,J=N/2-m[h]/2+z,ye=Xs(W,J,fe),Y=!a.arrow&&no(r)!=null&&J!==ye&&s.reference[h]/2-(J<W?D:Z)-m[h]/2<0,ie=Y?J<W?J-W:J-fe:0;return{[p]:d[p]+ie,data:{[p]:ye,centerOffset:J-ye-ie,...Y&&{alignmentOffset:ie}},reset:Y}}}),Wv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...w}=jt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=zt(r),_=zt(l)===l,x=await(a.isRTL==null?void 0:a.isRTL(u.floating)),P=d||(_||!m?[_r(l)]:Fv(l));!d&&h!=="none"&&P.push(...jv(l,m,h,x));const A=[l,...P],R=await To(t,w),N=[];let z=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&N.push(R[v]),f){const W=Nv(r,i,x);N.push(R[W[0]],R[W[1]])}if(z=[...z,{placement:r,overflows:N}],!N.every(W=>W<=0)){var G,D;const W=(((G=s.flip)==null?void 0:G.index)||0)+1,fe=A[W];if(fe)return{data:{index:W,overflows:z},reset:{placement:fe}};let J=(D=z.filter(ye=>ye.overflows[0]<=0).sort((ye,Y)=>ye.overflows[1]-Y.overflows[1])[0])==null?void 0:D.placement;if(!J)switch(p){case"bestFit":{var Z;const ye=(Z=z.map(Y=>[Y.placement,Y.overflows.filter(ie=>ie>0).reduce((ie,de)=>ie+de,0)]).sort((Y,ie)=>Y[1]-ie[1])[0])==null?void 0:Z[0];ye&&(J=ye);break}case"initialPlacement":J=l;break}if(r!==J)return{reset:{placement:J}}}return{}}}};function da(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pa(e){return Lv.some(t=>e[t]>=0)}const Vv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=jt(e,t);switch(o){case"referenceHidden":{const s=await To(t,{...r,elementContext:"reference"}),i=da(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:pa(i)}}}case"escaped":{const s=await To(t,{...r,altBoundary:!0}),i=da(s,n.floating);return{data:{escapedOffsets:i,escaped:pa(i)}}}default:return{}}}}};async function qv(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=zt(n),l=no(n),a=oo(n)==="y",u=["left","top"].includes(i)?-1:1,c=s&&a?-1:1,f=jt(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Kv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,a=await qv(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:i}}}}},Gv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:v,y:_}=w;return{x:v,y:_}}},...a}=jt(e,t),u={x:n,y:o},c=await To(t,a),f=oo(zt(r)),d=ki(f);let p=u[d],h=u[f];if(s){const w=d==="y"?"top":"left",v=d==="y"?"bottom":"right",_=p+c[w],x=p-c[v];p=Xs(_,p,x)}if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",_=h+c[w],x=h-c[v];h=Xs(_,h,x)}const m=l.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-o}}}}},Jv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=jt(e,t),c={x:n,y:o},f=oo(r),d=ki(f);let p=c[d],h=c[f];const m=jt(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=d==="y"?"height":"width",P=s.reference[d]-s.floating[x]+w.mainAxis,A=s.reference[d]+s.reference[x]-w.mainAxis;p<P?p=P:p>A&&(p=A)}if(u){var v,_;const x=d==="y"?"width":"height",P=["top","left"].includes(zt(r)),A=s.reference[f]-s.floating[x]+(P&&((v=i.offset)==null?void 0:v[f])||0)+(P?0:w.crossAxis),R=s.reference[f]+s.reference[x]+(P?0:((_=i.offset)==null?void 0:_[f])||0)-(P?w.crossAxis:0);h<A?h=A:h>R&&(h=R)}return{[d]:p,[f]:h}}}},Yv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...l}=jt(e,t),a=await To(t,l),u=zt(n),c=no(n),f=oo(n)==="y",{width:d,height:p}=o.floating;let h,m;u==="top"||u==="bottom"?(h=u,m=c===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,h=c==="end"?"top":"bottom");const w=p-a.top-a.bottom,v=d-a.left-a.right,_=Ot(p-a[h],w),x=Ot(d-a[m],v),P=!t.middlewareData.shift;let A=_,R=x;if(f?R=c||P?Ot(x,v):v:A=c||P?Ot(_,w):w,P&&!c){const z=st(a.left,0),G=st(a.right,0),D=st(a.top,0),Z=st(a.bottom,0);f?R=d-2*(z!==0||G!==0?z+G:st(a.left,a.right)):A=p-2*(D!==0||Z!==0?D+Z:st(a.top,a.bottom))}await i({...t,availableWidth:R,availableHeight:A});const N=await r.getDimensions(s.floating);return d!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function In(e){return Di(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wt(e){var t;return(t=(Di(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Di(e){return e instanceof Node||e instanceof lt(e).Node}function At(e){return e instanceof Element||e instanceof lt(e).Element}function Rt(e){return e instanceof HTMLElement||e instanceof lt(e).HTMLElement}function ha(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Xv(e){return["table","td","th"].includes(In(e))}function Bi(e){const t=Ni(),n=wt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Zv(e){let t=fn(e);for(;Rt(t)&&!Gn(t);){if(Bi(t))return t;t=fn(t)}return null}function Ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gn(e){return["html","body","#document"].includes(In(e))}function wt(e){return lt(e).getComputedStyle(e)}function Yr(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fn(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ha(e)&&e.host||Wt(e);return ha(t)?t.host:t}function Nu(e){const t=fn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&Fo(t)?t:Nu(t)}function $o(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Nu(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=lt(r);return s?t.concat(i,i.visualViewport||[],Fo(r)?r:[],i.frameElement&&n?$o(i.frameElement):[]):t.concat(r,$o(r,[],n))}function Fu(e){const t=wt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Rt(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=wr(n)!==s||wr(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Fi(e){return At(e)?e:e.contextElement}function Vn(e){const t=Fi(e);if(!Rt(t))return un(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Fu(t);let i=(s?wr(n.width):n.width)/o,l=(s?wr(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Qv=un(0);function Mu(e){const t=lt(e);return!Ni()||!t.visualViewport?Qv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ey(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Tn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Fi(e);let i=un(1);t&&(o?At(o)&&(i=Vn(o)):i=Vn(e));const l=ey(s,n,o)?Mu(s):un(0);let a=(r.left+l.x)/i.x,u=(r.top+l.y)/i.y,c=r.width/i.x,f=r.height/i.y;if(s){const d=lt(s),p=o&&At(o)?lt(o):o;let h=d,m=h.frameElement;for(;m&&o&&p!==h;){const w=Vn(m),v=m.getBoundingClientRect(),_=wt(m),x=v.left+(m.clientLeft+parseFloat(_.paddingLeft))*w.x,P=v.top+(m.clientTop+parseFloat(_.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=x,u+=P,h=lt(m),m=h.frameElement}}return xr({width:c,height:f,x:a,y:u})}const ty=[":popover-open",":modal"];function Mi(e){return ty.some(t=>{try{return e.matches(t)}catch{return!1}})}function ny(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Wt(o),l=t?Mi(t.floating):!1;if(o===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=un(1);const c=un(0),f=Rt(o);if((f||!f&&!s)&&((In(o)!=="body"||Fo(i))&&(a=Yr(o)),Rt(o))){const d=Tn(o);u=Vn(o),c.x=d.x+o.clientLeft,c.y=d.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function oy(e){return Array.from(e.getClientRects())}function ju(e){return Tn(Wt(e)).left+Yr(e).scrollLeft}function ry(e){const t=Wt(e),n=Yr(e),o=e.ownerDocument.body,r=st(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=st(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+ju(e);const l=-n.scrollTop;return wt(o).direction==="rtl"&&(i+=st(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:l}}function sy(e,t){const n=lt(e),o=Wt(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,a=0;if(r){s=r.width,i=r.height;const u=Ni();(!u||u&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}return{width:s,height:i,x:l,y:a}}function iy(e,t){const n=Tn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Rt(e)?Vn(e):un(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=r*s.x,u=o*s.y;return{width:i,height:l,x:a,y:u}}function ma(e,t,n){let o;if(t==="viewport")o=sy(e,n);else if(t==="document")o=ry(Wt(e));else if(At(t))o=iy(t,n);else{const r=Mu(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return xr(o)}function zu(e,t){const n=fn(e);return n===t||!At(n)||Gn(n)?!1:wt(n).position==="fixed"||zu(n,t)}function ly(e,t){const n=t.get(e);if(n)return n;let o=$o(e,[],!1).filter(l=>At(l)&&In(l)!=="body"),r=null;const s=wt(e).position==="fixed";let i=s?fn(e):e;for(;At(i)&&!Gn(i);){const l=wt(i),a=Bi(i);!a&&l.position==="fixed"&&(r=null),(s?!a&&!r:!a&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Fo(i)&&!a&&zu(e,i))?o=o.filter(c=>c!==i):r=l,i=fn(i)}return t.set(e,o),o}function ay(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Mi(t)?[]:ly(t,this._c):[].concat(n),o],l=i[0],a=i.reduce((u,c)=>{const f=ma(t,c,r);return u.top=st(f.top,u.top),u.right=Ot(f.right,u.right),u.bottom=Ot(f.bottom,u.bottom),u.left=st(f.left,u.left),u},ma(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function cy(e){const{width:t,height:n}=Fu(e);return{width:t,height:n}}function uy(e,t,n){const o=Rt(t),r=Wt(t),s=n==="fixed",i=Tn(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=un(0);if(o||!o&&!s)if((In(t)!=="body"||Fo(r))&&(l=Yr(t)),o){const f=Tn(t,!0,s,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else r&&(a.x=ju(r));const u=i.left+l.scrollLeft-a.x,c=i.top+l.scrollTop-a.y;return{x:u,y:c,width:i.width,height:i.height}}function ys(e){return wt(e).position==="static"}function ga(e,t){return!Rt(e)||wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Hu(e,t){const n=lt(e);if(Mi(e))return n;if(!Rt(e)){let r=fn(e);for(;r&&!Gn(r);){if(At(r)&&!ys(r))return r;r=fn(r)}return n}let o=ga(e,t);for(;o&&Xv(o)&&ys(o);)o=ga(o,t);return o&&Gn(o)&&ys(o)&&!Bi(o)?n:o||Zv(e)||n}const fy=async function(e){const t=this.getOffsetParent||Hu,n=this.getDimensions,o=await n(e.floating);return{reference:uy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function dy(e){return wt(e).direction==="rtl"}const py={convertOffsetParentRelativeRectToViewportRelativeRect:ny,getDocumentElement:Wt,getClippingRect:ay,getOffsetParent:Hu,getElementRects:fy,getClientRects:oy,getDimensions:cy,getScale:Vn,isElement:At,isRTL:dy};function hy(e,t){let n=null,o;const r=Wt(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const p=Yo(c),h=Yo(r.clientWidth-(u+f)),m=Yo(r.clientHeight-(c+d)),w=Yo(u),_={rootMargin:-p+"px "+-h+"px "+-m+"px "+-w+"px",threshold:st(0,Ot(1,a))||1};let x=!0;function P(A){const R=A[0].intersectionRatio;if(R!==a){if(!x)return i();R?i(!1,R):o=setTimeout(()=>{i(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(P,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(P,_)}n.observe(e)}return i(!0),s}function my(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=Fi(e),c=r||s?[...u?$o(u):[],...$o(t)]:[];c.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=u&&l?hy(u,n):null;let d=-1,p=null;i&&(p=new ResizeObserver(v=>{let[_]=v;_&&_.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let h,m=a?Tn(e):null;a&&w();function w(){const v=Tn(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,h=requestAnimationFrame(w)}return n(),()=>{var v;c.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const gy=Kv,vy=Gv,va=Wv,yy=Yv,by=Vv,wy=Uv,_y=Jv,xy=(e,t,n)=>{const o=new Map,r={platform:py,...n},s={...r.platform,_c:o};return Hv(e,t,{...r,platform:s})};function Ey(e){return e!=null&&typeof e=="object"&&"$el"in e}function Qs(e){if(Ey(e)){const t=e.$el;return Di(t)&&In(t)==="#comment"?null:t}return e}function Cy(e){return{name:"arrow",options:e,fn(t){const n=Qs(y(e.element));return n==null?{}:wy({element:n,padding:e.padding}).fn(t)}}}function Uu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){const n=Uu(e);return Math.round(t*n)/n}function Sy(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=U(()=>{var N;return(N=y(n.open))!=null?N:!0}),s=U(()=>y(n.middleware)),i=U(()=>{var N;return(N=y(n.placement))!=null?N:"bottom"}),l=U(()=>{var N;return(N=y(n.strategy))!=null?N:"absolute"}),a=U(()=>{var N;return(N=y(n.transform))!=null?N:!0}),u=U(()=>Qs(e.value)),c=U(()=>Qs(t.value)),f=F(0),d=F(0),p=F(l.value),h=F(i.value),m=Lr({}),w=F(!1),v=U(()=>{const N={position:p.value,left:"0",top:"0"};if(!c.value)return N;const z=ya(c.value,f.value),G=ya(c.value,d.value);return a.value?{...N,transform:"translate("+z+"px, "+G+"px)",...Uu(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:z+"px",top:G+"px"}});let _;function x(){u.value==null||c.value==null||xy(u.value,c.value,{middleware:s.value,placement:i.value,strategy:l.value}).then(N=>{f.value=N.x,d.value=N.y,p.value=N.strategy,h.value=N.placement,m.value=N.middlewareData,w.value=!0})}function P(){typeof _=="function"&&(_(),_=void 0)}function A(){if(P(),o===void 0){x();return}if(u.value!=null&&c.value!=null){_=o(u.value,c.value,x);return}}function R(){r.value||(w.value=!1)}return ve([s,i,l],x,{flush:"sync"}),ve([u,c],A,{flush:"sync"}),ve(r,R,{flush:"sync"}),Io()&&Pr(P),{x:Dn(f),y:Dn(d),strategy:Dn(p),placement:Dn(h),middlewareData:Dn(m),isPositioned:Dn(w),floatingStyles:v,update:x}}function $t(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[r=>{const s=it(o,r);if(s||s===null)return s;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},r=>(go(o,r),r)]}function Wu(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function Oy(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function Ay(e,t){var n;const o=Lr();return at(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),kr(o)}function ji(e){return Io()?(Pr(e),!0):!1}function Ry(e){let t=!1,n;const o=Rr(!0);return(...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n)}function Py(e){let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return(...s)=>(t+=1,n||(o=Rr(!0),n=o.run(()=>e(...s))),ji(r),n)}function Jn(e){return typeof e=="function"?e():y(e)}const vn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ty=e=>typeof e<"u",$y=Object.prototype.toString,ky=e=>$y.call(e)==="[object Object]",ei=()=>{},ba=Iy();function Iy(){var e,t;return vn&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ly(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function Dy(e,t={}){let n,o,r=ei;const s=i=>{clearTimeout(i),r(),r=ei};return i=>{const l=Jn(e),a=Jn(t.maxWait);return n&&s(n),l<=0||a!==void 0&&a<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((u,c)=>{r=t.rejectOnCancel?c:u,a&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(i())},a)),n=setTimeout(()=>{o&&s(o),o=null,u(i())},l)})}}function By(e){return Tt()}function Vu(e,t=200,n={}){return Ly(Dy(t,n),e)}function Ny(e,t){By()&&wc(e,t)}function Fy(e,t,n){const o=ve(e,(...r)=>(et(()=>o()),t(...r)),n);return o}function dn(e){var t;const n=Jn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const zi=vn?window:void 0;function qu(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=zi):[t,n,o,r]=e,!t)return ei;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(c=>c()),s.length=0},l=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),a=ve(()=>[dn(t),Jn(r)],([c,f])=>{if(i(),!c)return;const d=ky(f)?{...f}:f;s.push(...n.flatMap(p=>o.map(h=>l(c,p,h,d))))},{immediate:!0,flush:"post"}),u=()=>{a(),i()};return ji(u),u}function My(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function jy(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=zi,eventName:s="keydown",passive:i=!1,dedupe:l=!1}=o,a=My(t);return qu(r,s,u=>{u.repeat&&Jn(l)||a(u)&&n(u)},i)}function Ku(){const e=F(!1),t=Tt();return t&&Je(()=>{e.value=!0},t),e}function zy(e){const t=Ku();return U(()=>(t.value,!!e()))}function Hy(e){return JSON.parse(JSON.stringify(e))}function Yn(e,t,n={}){const{window:o=zi,...r}=n;let s;const i=zy(()=>o&&"ResizeObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},a=U(()=>Array.isArray(e)?e.map(f=>dn(f)):[dn(e)]),u=ve(a,f=>{if(l(),i.value&&o){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,r)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return ji(c),{isSupported:i,stop:c}}function Hi(e,t,n,o={}){var r,s,i;const{clone:l=!1,passive:a=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:d}=o,p=Tt(),h=n||(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((i=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let m=u;t||(t="modelValue"),m=m||`update:${t.toString()}`;const w=x=>l?typeof l=="function"?l(x):Hy(x):x,v=()=>Ty(e[t])?w(e[t]):f,_=x=>{d?d(x)&&h(m,x):h(m,x)};if(a){const x=v(),P=F(x);let A=!1;return ve(()=>e[t],R=>{A||(A=!0,P.value=w(R),et(()=>A=!1))}),ve(P,R=>{!A&&(R!==e[t]||c)&&_(R)},{deep:c}),P}else return U({get(){return v()},set(x){_(x)}})}function Ui(e){return e?e.flatMap(t=>t.type===He?Ui(t.children):[t]):[]}function bs(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ti(e,t,n=".",o){if(!bs(t))return ti(e,{},n);const r=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(Array.isArray(i)&&Array.isArray(r[s])?r[s]=[...i,...r[s]]:bs(i)&&bs(r[s])?r[s]=ti(i,r[s],(n?`${n}.`:"")+s.toString()):r[s]=i)}return r}function Uy(e){return(...t)=>t.reduce((n,o)=>ti(n,o,""),{})}const Wy=Uy(),[Wi,Ew]=$t("ConfigProvider");let Vy="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qy=(e=21)=>{let t="",n=e;for(;n--;)t+=Vy[Math.random()*64|0];return t};const Ky=Py(()=>{const e=F(new Map),t=F(),n=U(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=Wi({scrollBody:F(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",ba&&(r==null||r()),t.value=void 0};return ve(n,(i,l)=>{var a;if(!vn)return;if(!i){l&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,c={padding:u,margin:0},f=(a=o.scrollBody)!=null&&a.value?typeof o.scrollBody.value=="object"?Wy({padding:o.scrollBody.value.padding===!0?u:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?u:o.scrollBody.value.margin},c):c:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),ba&&(r=qu(document,"touchmove",d=>{var p;d.target===document.documentElement&&(d.touches.length>1||(p=d.preventDefault)==null||p.call(d))},{passive:!1})),et(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Gu(e){const t=qy(6),n=Ky();n.value.set(t,e);const o=U({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return Ny(()=>{n.value.delete(t)}),o}function Gy(e){const t=Wi({dir:F("ltr")});return U(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Xr(e){const t=Tt(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(r=>{o[rr(ft(r))]=(...s)=>e(r,...s)}),o}let ws=0;function Jy(){at(e=>{if(!vn)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??wa()),document.body.insertAdjacentElement("beforeend",t[1]??wa()),ws++,e(()=>{ws===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),ws--})})}function wa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Yy(e){return U(()=>{var t;return Jn(e)?!!((t=dn(e))!=null&&t.closest("form")):!0})}function Ju(e){const t=Tt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,s)=>{const i=(t==null?void 0:t.type.props[s]).default;return i!==void 0&&(r[s]=i),r},{}),o=ic(e);return U(()=>{const r={},s=(t==null?void 0:t.vnode.props)??{};return Object.keys(s).forEach(i=>{r[ft(i)]=s[i]}),Object.keys({...n,...r}).reduce((i,l)=>(o.value[l]!==void 0&&(i[l]=o.value[l]),i),{})})}function yn(e,t){const n=Ju(e),o=t?Xr(t):{};return U(()=>({...n.value,...o}))}function xe(){const e=Tt(),t=F(),n=U(()=>{var i,l;return["#text","#comment"].includes((i=t.value)==null?void 0:i.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:dn(t)}),o=Object.assign({},e.exposed),r={};for(const i in e.props)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(o).length>0)for(const i in o)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o[i]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function s(i){t.value=i,!(i instanceof Element||!i)&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>i.$el}),e.exposed=r)}return{forwardRef:s,currentRef:t,currentElement:n}}var Xy=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nn=new WeakMap,Xo=new WeakMap,Zo={},_s=0,Yu=function(e){return e&&(e.host||Yu(e.parentNode))},Zy=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Yu(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Qy=function(e,t,n,o){var r=Zy(t,Array.isArray(e)?e:[e]);Zo[n]||(Zo[n]=new WeakMap);var s=Zo[n],i=[],l=new Set,a=new Set(r),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};r.forEach(u);var c=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(d){if(l.has(d))c(d);else{var p=d.getAttribute(o),h=p!==null&&p!=="false",m=(Nn.get(d)||0)+1,w=(s.get(d)||0)+1;Nn.set(d,m),s.set(d,w),i.push(d),m===1&&h&&Xo.set(d,!0),w===1&&d.setAttribute(n,"true"),h||d.setAttribute(o,"true")}})};return c(t),l.clear(),_s++,function(){i.forEach(function(f){var d=Nn.get(f)-1,p=s.get(f)-1;Nn.set(f,d),s.set(f,p),d||(Xo.has(f)||f.removeAttribute(o),Xo.delete(f)),p||f.removeAttribute(n)}),_s--,_s||(Nn=new WeakMap,Nn=new WeakMap,Xo=new WeakMap,Zo={})}},eb=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Xy(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Qy(o,r,n,"aria-hidden")):function(){return null}};function Xu(e){let t;ve(()=>dn(e),n=>{n?t=eb(n):t&&t()}),Pt(()=>{t&&t()})}let tb=0;function Er(e,t="radix"){const{useId:n}=Wi({useId:void 0});return n&&typeof n=="function"?`${t}-${n()}`:`${t}-${++tb}`}function nb(e){const t=F(),n=U(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=U(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return Je(()=>{const r=dn(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let a,u;if("borderBoxSize"in l){const c=l.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,u=f.blockSize}else a=r.offsetWidth,u=r.offsetHeight;t.value={width:a,height:u}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function Zu(e,t){const n=F(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}const ob=K({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,r;if(!n.default)return null;const s=Ui(n.default()),i=s.findIndex(c=>c.type!==Mt);if(i===-1)return s;const l=s[i];(o=l.props)==null||delete o.ref;const a=l.props?pe(t,l.props):t;t.class&&(r=l.props)!=null&&r.class&&delete l.props.class;const u=Rn(l,a);for(const c in a)c.startsWith("on")&&(u.props||(u.props={}),u.props[c]=a[c]);return s.length===1?u:(s[i]=u,s)}}}),We=K({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>Nt(o,t):o!=="template"?()=>Nt(e.as,t,{default:n.default}):()=>Nt(ob,t,{default:n.default})}});function rb(e,t){const n=F({}),o=F("none"),r=e.value?"mounted":"unmounted",{state:s,dispatch:i}=Zu(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),l=d=>{var p;if(vn){const h=new CustomEvent(d,{bubbles:!1,cancelable:!1});(p=t.value)==null||p.dispatchEvent(h)}};ve(e,async(d,p)=>{var h;const m=p!==d;if(await et(),m){const w=o.value,v=Qo(t.value);d?(i("MOUNT"),l("enter"),v==="none"&&l("after-enter")):v==="none"||((h=n.value)==null?void 0:h.display)==="none"?(i("UNMOUNT"),l("leave"),l("after-leave")):p&&w!==v?(i("ANIMATION_OUT"),l("leave")):(i("UNMOUNT"),l("after-leave"))}},{immediate:!0});const a=d=>{const p=Qo(t.value),h=p.includes(d.animationName),m=s.value==="mounted"?"enter":"leave";d.target===t.value&&h&&(l(`after-${m}`),i("ANIMATION_END")),d.target===t.value&&p==="none"&&i("ANIMATION_END")},u=d=>{d.target===t.value&&(o.value=Qo(t.value))},c=ve(t,(d,p)=>{d?(n.value=getComputedStyle(d),d.addEventListener("animationstart",u),d.addEventListener("animationcancel",a),d.addEventListener("animationend",a)):(i("ANIMATION_END"),p==null||p.removeEventListener("animationstart",u),p==null||p.removeEventListener("animationcancel",a),p==null||p.removeEventListener("animationend",a))},{immediate:!0}),f=ve(s,()=>{const d=Qo(t.value);o.value=s.value==="mounted"?d:"none"});return Pt(()=>{c(),f()}),{isPresent:U(()=>["mounted","unmountSuspended"].includes(s.value))}}function Qo(e){return e&&getComputedStyle(e).animationName||"none"}const ro=K({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:r,forceMount:s}=mn(e),i=F(),{isPresent:l}=rb(r,i);n({present:l});let a=t.default({present:l});a=Ui(a||[]);const u=Tt();if(a&&(a==null?void 0:a.length)>1){const c=(o=u==null?void 0:u.parent)!=null&&o.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>`  - ${f}`).join(`
`)].join(`
`))}return()=>s.value||r.value||l.value?Nt(t.default({present:l})[0],{ref:c=>{const f=dn(c);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?i.value=f.firstElementChild:i.value=f),f}}):null}}),[Ln,sb]=$t("DialogRoot"),ib=K({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=Hi(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=F(),s=F(),{modal:i}=mn(n);return sb({open:o,modal:i,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:s}),(l,a)=>te(l.$slots,"default",{open:y(o)})}}),lb=K({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ln(),{forwardRef:o,currentElement:r}=xe();return n.contentId||(n.contentId=Er(void 0,"radix-vue-dialog-content")),Je(()=>{n.triggerElement.value=r.value}),(s,i)=>(M(),ee(y(We),pe(t,{ref:y(o),type:s.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":y(n).open.value||!1,"aria-controls":y(n).open.value?y(n).contentId:void 0,"data-state":y(n).open.value?"open":"closed",onClick:y(n).onOpenToggle}),{default:j(()=>[te(s.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),Qu=K({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Ku();return(n,o)=>y(t)||n.forceMount?(M(),ee(Yd,{key:0,to:n.to,disabled:n.disabled},[te(n.$slots,"default")],8,["to","disabled"])):gn("",!0)}}),ab=K({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(M(),ee(y(Qu),ko(Xn(t)),{default:j(()=>[te(n.$slots,"default")]),_:3},16))}}),cb="dismissableLayer.pointerDownOutside",ub="dismissableLayer.focusOutside";function ef(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||r.indexOf(o)<r.indexOf(n))}function fb(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=F(!1),s=F(()=>{});return at(i=>{if(!vn)return;const l=async u=>{const c=u.target;if(t!=null&&t.value){if(ef(t.value,c)){r.value=!1;return}if(u.target&&!r.value){let f=function(){Wu(cb,e,d)};const d={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=f,o.addEventListener("click",s.value,{once:!0})):f()}else o.removeEventListener("click",s.value);r.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",l)},0);i(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",l),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>r.value=!0}}function db(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=F(!1);return at(s=>{if(!vn)return;const i=async l=>{t!=null&&t.value&&(await et(),!(!t.value||ef(t.value,l.target))&&l.target&&!r.value&&Wu(ub,e,{originalEvent:l}))};o.addEventListener("focusin",i),s(()=>o.removeEventListener("focusin",i))}),{onFocusCapture:()=>r.value=!0,onBlurCapture:()=>r.value=!1}}const Lt=Ht({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tf=K({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=xe(),i=U(()=>{var h;return((h=s.value)==null?void 0:h.ownerDocument)??globalThis.document}),l=U(()=>Lt.layersRoot),a=U(()=>s.value?Array.from(l.value).indexOf(s.value):-1),u=U(()=>Lt.layersWithOutsidePointerEventsDisabled.size>0),c=U(()=>{const h=Array.from(l.value),[m]=[...Lt.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(m);return a.value>=w}),f=fb(async h=>{const m=[...Lt.branches].some(w=>w.contains(h.target));!c.value||m||(o("pointerDownOutside",h),o("interactOutside",h),await et(),h.defaultPrevented||o("dismiss"))},s),d=db(h=>{[...Lt.branches].some(m=>m.contains(h.target))||(o("focusOutside",h),o("interactOutside",h),h.defaultPrevented||o("dismiss"))},s);jy("Escape",h=>{a.value===l.value.size-1&&(o("escapeKeyDown",h),h.defaultPrevented||o("dismiss"))});let p;return at(h=>{s.value&&(n.disableOutsidePointerEvents&&(Lt.layersWithOutsidePointerEventsDisabled.size===0&&(p=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),Lt.layersWithOutsidePointerEventsDisabled.add(s.value)),l.value.add(s.value),h(()=>{n.disableOutsidePointerEvents&&Lt.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=p)}))}),at(h=>{h(()=>{s.value&&(l.value.delete(s.value),Lt.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(h,m)=>(M(),ee(y(We),{ref:y(r),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:Ge({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:y(d).onFocusCapture,onBlurCapture:y(d).onBlurCapture,onPointerdownCapture:y(f).onPointerDownCapture},{default:j(()=>[te(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),xs="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",_a={bubbles:!1,cancelable:!0};function pb(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(en(o,{select:t}),document.activeElement!==n)return!0}function hb(e){const t=nf(e),n=xa(t,e),o=xa(t.reverse(),e);return[n,o]}function nf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xa(e,t){for(const n of e)if(!mb(n,{upTo:t}))return n}function mb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gb(e){return e instanceof HTMLInputElement&&"select"in e}function en(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gb(e)&&t&&e.select()}}const vb=Ry(()=>F([]));function yb(){const e=vb();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=Ea(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Ea(e.value,t),(n=e.value[0])==null||n.resume()}}}function Ea(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function bb(e){return e.filter(t=>t.tagName!=="A")}const of=K({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=xe(),i=F(null),l=yb(),a=Ht({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});at(c=>{if(!vn)return;const f=s.value;if(!n.trapped)return;function d(w){if(a.paused||!f)return;const v=w.target;f.contains(v)?i.value=v:en(i.value,{select:!0})}function p(w){if(a.paused||!f)return;const v=w.relatedTarget;v!==null&&(f.contains(v)||en(i.value,{select:!0}))}function h(w){f.contains(i.value)||en(f)}document.addEventListener("focusin",d),document.addEventListener("focusout",p);const m=new MutationObserver(h);f&&m.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",p),m.disconnect()})}),at(async c=>{const f=s.value;if(await et(),!f)return;l.add(a);const d=document.activeElement;if(!f.contains(d)){const p=new CustomEvent(xs,_a);f.addEventListener(xs,h=>o("mountAutoFocus",h)),f.dispatchEvent(p),p.defaultPrevented||(pb(bb(nf(f)),{select:!0}),document.activeElement===d&&en(f))}c(()=>{f.removeEventListener(xs,m=>o("mountAutoFocus",m));const p=new CustomEvent(Es,_a),h=m=>{o("unmountAutoFocus",m)};f.addEventListener(Es,h),f.dispatchEvent(p),setTimeout(()=>{p.defaultPrevented||en(d??document.body,{select:!0}),f.removeEventListener(Es,h),l.remove(a)},0)})});function u(c){if(!n.loop&&!n.trapped||a.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,d=document.activeElement;if(f&&d){const p=c.currentTarget,[h,m]=hb(p);h&&m?!c.shiftKey&&d===m?(c.preventDefault(),n.loop&&en(h,{select:!0})):c.shiftKey&&d===h&&(c.preventDefault(),n.loop&&en(m,{select:!0})):d===p&&c.preventDefault()}}return(c,f)=>(M(),ee(y(We),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:j(()=>[te(c.$slots,"default")]),_:3},8,["as-child","as"]))}});function wb(e){return e?"open":"closed"}const rf=K({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ln(),{forwardRef:s,currentElement:i}=xe();return r.titleId||(r.titleId=Er(void 0,"radix-vue-dialog-title")),r.descriptionId||(r.descriptionId=Er(void 0,"radix-vue-dialog-description")),Je(()=>{r.contentElement=i,document.activeElement!==document.body&&(r.triggerElement.value=document.activeElement)}),(l,a)=>(M(),ee(y(of),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:a[5]||(a[5]=u=>o("openAutoFocus",u)),onUnmountAutoFocus:a[6]||(a[6]=u=>o("closeAutoFocus",u))},{default:j(()=>[oe(y(tf),pe({id:y(r).contentId,ref:y(s),as:l.as,"as-child":l.asChild,"disable-outside-pointer-events":l.disableOutsidePointerEvents,role:"dialog","aria-describedby":y(r).descriptionId,"aria-labelledby":y(r).titleId,"data-state":y(wb)(y(r).open.value)},l.$attrs,{onDismiss:a[0]||(a[0]=u=>y(r).onOpenChange(!1)),onEscapeKeyDown:a[1]||(a[1]=u=>o("escapeKeyDown",u)),onFocusOutside:a[2]||(a[2]=u=>o("focusOutside",u)),onInteractOutside:a[3]||(a[3]=u=>o("interactOutside",u)),onPointerDownOutside:a[4]||(a[4]=u=>o("pointerDownOutside",u))}),{default:j(()=>[te(l.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),_b=K({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ln(),s=Xr(o),{forwardRef:i,currentElement:l}=xe();return Xu(l),(a,u)=>(M(),ee(rf,pe({...n,...y(s)},{ref:y(i),"trap-focus":y(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=c=>{var f;o("closeAutoFocus",c),c.defaultPrevented||(c.preventDefault(),(f=y(r).triggerElement.value)==null||f.focus())}),onPointerDownOutside:u[1]||(u[1]=c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&c.preventDefault()}),onFocusOutside:u[2]||(u[2]=c=>{c.preventDefault()}),onOpenAutoFocus:u[3]||(u[3]=c=>o("openAutoFocus",c))}),{default:j(()=>[te(a.$slots,"default")]),_:3},16,["trap-focus"]))}}),xb=K({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Xr(o);xe();const s=Ln(),i=F(!1),l=F(!1);return(a,u)=>(M(),ee(rf,pe({...n,...y(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=c=>{var f;o("closeAutoFocus",c),c.defaultPrevented||(i.value||(f=y(s).triggerElement.value)==null||f.focus(),c.preventDefault()),i.value=!1,l.value=!1}),onInteractOutside:u[1]||(u[1]=c=>{var f;c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const d=c.target;(f=y(s).triggerElement.value)!=null&&f.contains(d)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&l.value&&c.preventDefault()})}),{default:j(()=>[te(a.$slots,"default")]),_:3},16))}}),Eb=K({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ln(),s=Xr(o),{forwardRef:i}=xe();return(l,a)=>(M(),ee(y(ro),{present:l.forceMount||y(r).open.value},{default:j(()=>[y(r).modal.value?(M(),ee(_b,pe({key:0,ref:y(i)},{...n,...y(s),...l.$attrs},{onOpenAutoFocus:a[0]||(a[0]=u=>o("openAutoFocus",u))}),{default:j(()=>[te(l.$slots,"default")]),_:3},16)):(M(),ee(xb,pe({key:1,ref:y(i)},{...n,...y(s),...l.$attrs}),{default:j(()=>[te(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Cb=K({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Ln();return Gu(!0),xe(),(n,o)=>(M(),ee(y(We),{as:n.as,"as-child":n.asChild,"data-state":y(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:j(()=>[te(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Sb=K({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Ln(),{forwardRef:n}=xe();return(o,r)=>{var s;return(s=y(t))!=null&&s.modal.value?(M(),ee(y(ro),{key:0,present:o.forceMount||y(t).open.value},{default:j(()=>[oe(Cb,pe(o.$attrs,{ref:y(n),as:o.as,"as-child":o.asChild}),{default:j(()=>[te(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):gn("",!0)}}}),[sf,Ob]=$t("PopperRoot"),Ab=K({__name:"PopperRoot",setup(e){const t=F();return Ob({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>te(n.$slots,"default")}}),Rb=K({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=xe(),r=sf();return ve(o,()=>{r.onAnchorChange(t.element??o.value)}),(s,i)=>(M(),ee(y(We),{ref:y(n),as:s.as,"as-child":s.asChild},{default:j(()=>[te(s.$slots,"default")]),_:3},8,["as","as-child"]))}});function Pb(e){return e!==null}function Tb(e){return{name:"transformOrigin",options:e,fn(t){var n,o,r;const{placement:s,rects:i,middlewareData:l}=t,a=((n=l.arrow)==null?void 0:n.centerOffset)!==0,u=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,d]=ni(s),p={start:"0%",center:"50%",end:"100%"}[d],h=(((o=l.arrow)==null?void 0:o.x)??0)+u/2,m=(((r=l.arrow)==null?void 0:r.y)??0)+c/2;let w="",v="";return f==="bottom"?(w=a?p:`${h}px`,v=`${-c}px`):f==="top"?(w=a?p:`${h}px`,v=`${i.floating.height+c}px`):f==="right"?(w=`${-c}px`,v=a?p:`${m}px`):f==="left"&&(w=`${i.floating.width+c}px`,v=a?p:`${m}px`),{data:{x:w,y:v}}}}}function ni(e){const[t,n="center"]=e.split("-");return[t,n]}const $b={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Cw,kb]=$t("PopperContent"),Ib=K({inheritAttrs:!1,__name:"PopperContent",props:Pd({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...$b}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=sf(),{forwardRef:s,currentElement:i}=xe(),l=F(),a=F(),{width:u,height:c}=nb(a),f=U(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),d=U(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=U(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=U(()=>({padding:d.value,boundary:p.value.filter(Pb),altBoundary:p.value.length>0})),m=Ay(()=>[gy({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&va({...h.value}),n.avoidCollisions&&vy({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?_y():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&va({...h.value}),yy({...h.value,apply:({elements:D,rects:Z,availableWidth:W,availableHeight:fe})=>{const{width:J,height:ye}=Z.reference,Y=D.floating.style;Object.assign(D.floating.style,{maxWidth:`${W}px`,maxHeight:`${fe}px`}),Y.setProperty("--radix-popper-available-width",`${W}px`),Y.setProperty("--radix-popper-available-height",`${fe}px`),Y.setProperty("--radix-popper-anchor-width",`${J}px`),Y.setProperty("--radix-popper-anchor-height",`${ye}px`)}}),a.value&&Cy({element:a.value,padding:n.arrowPadding}),Tb({arrowWidth:u.value,arrowHeight:c.value}),n.hideWhenDetached&&by({strategy:"referenceHidden",...h.value})]),{floatingStyles:w,placement:v,isPositioned:_,middlewareData:x}=Sy(r.anchor,l,{strategy:"fixed",placement:f,whileElementsMounted:(...D)=>my(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),P=U(()=>ni(v.value)[0]),A=U(()=>ni(v.value)[1]);at(()=>{_.value&&o("placed")});const R=U(()=>{var D;return((D=x.value.arrow)==null?void 0:D.centerOffset)!==0}),N=F("");at(()=>{i.value&&(N.value=window.getComputedStyle(i.value).zIndex)});const z=U(()=>{var D;return((D=x.value.arrow)==null?void 0:D.x)??0}),G=U(()=>{var D;return((D=x.value.arrow)==null?void 0:D.y)??0});return kb({placedSide:P,onArrowChange:D=>a.value=D,arrowX:z,arrowY:G,shouldHideArrow:R}),(D,Z)=>{var W,fe,J;return M(),Te("div",{ref_key:"floatingRef",ref:l,"data-radix-popper-content-wrapper":"",style:Ge({...y(w),transform:y(_)?y(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:N.value,"--radix-popper-transform-origin":[(W=y(x).transformOrigin)==null?void 0:W.x,(fe=y(x).transformOrigin)==null?void 0:fe.y].join(" "),...((J=y(x).hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[oe(y(We),pe({ref:y(s)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":P.value,"data-align":A.value,style:{animation:y(_)?void 0:"none"}}),{default:j(()=>[te(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),[Mo,Lb]=$t("PopoverRoot"),Db=K({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t,{modal:r}=mn(n),s=Hi(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=F(),l=F(!1);return Lb({contentId:"",modal:r,open:s,onOpenChange:a=>{s.value=a},onOpenToggle:()=>{s.value=!s.value},triggerElement:i,hasCustomAnchor:l}),(a,u)=>(M(),ee(y(Ab),null,{default:j(()=>[te(a.$slots,"default",{open:y(s)})]),_:3}))}}),Bb=K({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Mo(),{forwardRef:o,currentElement:r}=xe();return Je(()=>{n.triggerElement.value=r.value}),(s,i)=>(M(),ee(fd(y(n).hasCustomAnchor.value?y(We):y(Rb)),{"as-child":""},{default:j(()=>[oe(y(We),{ref:y(o),type:s.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":y(n).open.value,"aria-controls":y(n).contentId,"data-state":y(n).open.value?"open":"closed",as:s.as,"as-child":t.asChild,onClick:y(n).onOpenToggle},{default:j(()=>[te(s.$slots,"default")]),_:3},8,["type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),Nb=K({__name:"PopoverPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(M(),ee(y(Qu),ko(Xn(t)),{default:j(()=>[te(n.$slots,"default")]),_:3},16))}}),lf=K({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ju(n),{forwardRef:s}=xe(),i=Mo();return Jy(),(l,a)=>(M(),ee(y(of),{"as-child":"",loop:"",trapped:l.trapFocus,onMountAutoFocus:a[5]||(a[5]=u=>o("openAutoFocus",u)),onUnmountAutoFocus:a[6]||(a[6]=u=>o("closeAutoFocus",u))},{default:j(()=>[oe(y(tf),{"as-child":"","disable-outside-pointer-events":l.disableOutsidePointerEvents,onPointerDownOutside:a[0]||(a[0]=u=>o("pointerDownOutside",u)),onInteractOutside:a[1]||(a[1]=u=>o("interactOutside",u)),onEscapeKeyDown:a[2]||(a[2]=u=>o("escapeKeyDown",u)),onFocusOutside:a[3]||(a[3]=u=>o("focusOutside",u)),onDismiss:a[4]||(a[4]=u=>y(i).onOpenChange(!1))},{default:j(()=>[oe(y(Ib),pe(y(r),{id:y(i).contentId,ref:y(s),"data-state":y(i).open.value?"open":"closed",role:"dialog",style:{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:j(()=>[te(l.$slots,"default")]),_:3},16,["id","data-state","style"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Fb=K({__name:"PopoverContentModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Mo(),s=F(!1);Gu(!0);const i=yn(n,o),{forwardRef:l,currentElement:a}=xe();return Xu(a),(u,c)=>(M(),ee(lf,pe(y(i),{ref:y(l),"trap-focus":y(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=Bs(f=>{var d;o("closeAutoFocus",f),s.value||(d=y(r).triggerElement.value)==null||d.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=f=>{o("pointerDownOutside",f);const d=f.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,h=d.button===2||p;s.value=h}),onFocusOutside:c[2]||(c[2]=Bs(()=>{},["prevent"]))}),{default:j(()=>[te(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),Mb=K({__name:"PopoverContentNonModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Mo(),s=F(!1),i=F(!1),l=yn(n,o);return(a,u)=>(M(),ee(lf,pe(y(l),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=c=>{var f;o("closeAutoFocus",c),c.defaultPrevented||(s.value||(f=y(r).triggerElement.value)==null||f.focus(),c.preventDefault()),s.value=!1,i.value=!1}),onInteractOutside:u[1]||(u[1]=async c=>{var f;o("interactOutside",c),c.defaultPrevented||(s.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const d=c.target;(f=y(r).triggerElement.value)!=null&&f.contains(d)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:j(()=>[te(a.$slots,"default")]),_:3},16))}}),jb=K({__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Mo(),s=yn(n,o),{forwardRef:i}=xe();return r.contentId||(r.contentId=Er(void 0,"radix-vue-popover-content")),(l,a)=>(M(),ee(y(ro),{present:l.forceMount||y(r).open.value},{default:j(()=>[y(r).modal.value?(M(),ee(Fb,pe({key:0},y(s),{ref:y(i)}),{default:j(()=>[te(l.$slots,"default")]),_:3},16)):(M(),ee(Mb,pe({key:1},y(s),{ref:y(i)}),{default:j(()=>[te(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),[ht,zb]=$t("ScrollAreaRoot"),Hb=K({__name:"ScrollAreaRoot",props:{type:{default:"hover"},dir:{},scrollHideDelay:{default:600},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=xe(),r=F(0),s=F(0),i=F(),l=F(),a=F(),u=F(),c=F(!1),f=F(!1),{type:d,dir:p,scrollHideDelay:h}=mn(t),m=Gy(p);return zb({type:d,dir:m,scrollHideDelay:h,scrollArea:o,viewport:i,onViewportChange:w=>{i.value=w||void 0},content:l,onContentChange:w=>{l.value=w},scrollbarX:a,scrollbarXEnabled:c,scrollbarY:u,scrollbarYEnabled:f,onScrollbarXChange:w=>{a.value=w||void 0},onScrollbarYChange:w=>{u.value=w||void 0},onScrollbarXEnabledChange:w=>{c.value=w},onScrollbarYEnabledChange:w=>{f.value=w},onCornerWidthChange:w=>{r.value=w},onCornerHeightChange:w=>{s.value=w}}),(w,v)=>(M(),ee(y(We),{ref:y(n),"as-child":t.asChild,as:w.as,dir:y(m),style:Ge({position:"relative","--radix-scroll-area-corner-width":`${r.value}px`,"--radix-scroll-area-corner-height":`${s.value}px`})},{default:j(()=>[te(w.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),Ub=K({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,o=ht(),r=F();Je(()=>{o.onViewportChange(r.value),o.onContentChange(i.value)}),t({viewportElement:r});const{forwardRef:s,currentElement:i}=xe();return(l,a)=>(M(),Te(He,null,[Oe("div",pe({ref_key:"viewportElement",ref:r,"data-radix-scroll-area-viewport":"",style:{overflowX:y(o).scrollbarXEnabled.value?"scroll":"hidden",overflowY:y(o).scrollbarYEnabled.value?"scroll":"hidden"}},l.$attrs,{tabindex:0}),[oe(y(We),{ref:y(s),style:{minWidth:"100%",display:"table"},"as-child":n.asChild,as:l.as},{default:j(()=>[te(l.$slots,"default")]),_:3},8,["as-child","as"])],16),oe(y(We),{as:"style",nonce:l.nonce},{default:j(()=>[Mr(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")]),_:1},8,["nonce"])],64))}});function af(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Zr(e){const t=cf(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function cf(e,t){const n=e/t;return Number.isNaN(n)?0:n}function Wb(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return function r(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,l=n.top!==s.top;(i||l)&&t(),n=s,o=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(o)}function Ca(e,t,n="ltr"){const o=Zr(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,i=t.content-t.viewport,l=s-o,a=n==="ltr"?[0,i]:[i*-1,0],u=Oy(e,a[0],a[1]);return af([0,i],[0,l])(u)}function er(e){return e?Number.parseInt(e,10):0}function Vb(e,t,n,o="ltr"){const r=Zr(n),s=r/2,i=t||s,l=r-i,a=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,c=n.content-n.viewport,f=o==="ltr"?[0,c]:[c*-1,0];return af([a,u],f)(e)}function Sa(e,t){return e>0&&e<t}const uf=K({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const n=e,o=t,r=ht(),s=Qr(),i=es(),{forwardRef:l,currentElement:a}=xe(),u=F(""),c=F();function f(v){var _,x;if(c.value){const P=v.clientX-((_=c.value)==null?void 0:_.left),A=v.clientY-((x=c.value)==null?void 0:x.top);o("onDragScroll",{x:P,y:A})}}function d(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),c.value=a.value.getBoundingClientRect(),u.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",r.viewport&&(r.viewport.value.style.scrollBehavior="auto"),f(v))}function p(v){f(v)}function h(v){const _=v.target;_.hasPointerCapture(v.pointerId)&&_.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=u.value,r.viewport&&(r.viewport.value.style.scrollBehavior=""),c.value=void 0}function m(v){var _;const x=v.target,P=(_=a.value)==null?void 0:_.contains(x),A=s.sizes.value.content-s.sizes.value.viewport;P&&s.handleWheelScroll(v,A)}Je(()=>{document.addEventListener("wheel",m,{passive:!1})}),Pt(()=>{document.removeEventListener("wheel",m)});function w(){var v,_,x,P,A;a.value&&(n.isHorizontal?s.handleSizeChange({content:((v=r.viewport.value)==null?void 0:v.scrollWidth)??0,viewport:((_=r.viewport.value)==null?void 0:_.offsetWidth)??0,scrollbar:{size:a.value.clientWidth??0,paddingStart:er(getComputedStyle(a.value).paddingLeft),paddingEnd:er(getComputedStyle(a.value).paddingRight)}}):s.handleSizeChange({content:((x=r.viewport.value)==null?void 0:x.scrollHeight)??0,viewport:((P=r.viewport.value)==null?void 0:P.offsetHeight)??0,scrollbar:{size:((A=a.value)==null?void 0:A.clientHeight)??0,paddingStart:er(getComputedStyle(a.value).paddingLeft),paddingEnd:er(getComputedStyle(a.value).paddingRight)}}))}return Yn(a,w),Yn(r.content,w),(v,_)=>(M(),ee(y(We),{ref:y(l),style:{position:"absolute"},"data-scrollbarimpl":"",as:y(i).as.value,"as-child":y(i).asChild.value,onPointerdown:d,onPointermove:p,onPointerup:h},{default:j(()=>[te(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),qb=K({__name:"ScrollAreaScrollbarX",setup(e){const t=ht(),n=Qr(),{forwardRef:o,currentElement:r}=xe();Je(()=>{r.value&&t.onScrollbarXChange(r.value)});const s=U(()=>n.sizes.value);return(i,l)=>(M(),ee(uf,{ref:y(o),"is-horizontal":!0,"data-orientation":"horizontal",style:Ge({bottom:0,left:y(t).dir.value==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:y(t).dir.value==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":s.value?`${y(Zr)(s.value)}px`:void 0}),onOnDragScroll:l[0]||(l[0]=a=>y(n).onDragScroll(a.x))},{default:j(()=>[te(i.$slots,"default")]),_:3},8,["style"]))}}),Kb=K({__name:"ScrollAreaScrollbarY",setup(e){const t=ht(),n=Qr(),{forwardRef:o,currentElement:r}=xe();Je(()=>{r.value&&t.onScrollbarYChange(r.value)});const s=U(()=>n.sizes.value);return(i,l)=>(M(),ee(uf,{ref:y(o),"is-horizontal":!1,"data-orientation":"vertical",style:Ge({top:0,right:y(t).dir.value==="ltr"?0:void 0,left:y(t).dir.value==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":s.value?`${y(Zr)(s.value)}px`:void 0}),onOnDragScroll:l[0]||(l[0]=a=>y(n).onDragScroll(a.y))},{default:j(()=>[te(i.$slots,"default")]),_:3},8,["style"]))}}),[Qr,Gb]=$t("ScrollAreaScrollbarVisible"),Vi=K({__name:"ScrollAreaScrollbarVisible",setup(e){const t=ht(),n=es(),{forwardRef:o}=xe(),r=F({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),s=U(()=>{const v=cf(r.value.viewport,r.value.content);return v>0&&v<1}),i=F(),l=F(0);function a(v,_){if(p.value){const x=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=x,Sa(x,_)&&v.preventDefault()}else{const x=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=x,Sa(x,_)&&v.preventDefault()}}function u(v,_){p.value?l.value=_.x:l.value=_.y}function c(v){l.value=0}function f(v){r.value=v}function d(v,_){return Vb(v,l.value,r.value,_)}const p=U(()=>n.isHorizontal.value);function h(v){p.value?t.viewport.value.scrollLeft=d(v,t.dir.value):t.viewport.value.scrollTop=d(v)}function m(){if(p.value){if(t.viewport.value&&i.value){const v=t.viewport.value.scrollLeft,_=Ca(v,r.value,t.dir.value);i.value.style.transform=`translate3d(${_}px, 0, 0)`}}else if(t.viewport.value&&i.value){const v=t.viewport.value.scrollTop,_=Ca(v,r.value);i.value.style.transform=`translate3d(0, ${_}px, 0)`}}function w(v){i.value=v}return Gb({sizes:r,hasThumb:s,handleWheelScroll:a,handleThumbDown:u,handleThumbUp:c,handleSizeChange:f,onThumbPositionChange:m,onThumbChange:w,onDragScroll:h}),(v,_)=>p.value?(M(),ee(qb,pe({key:0},v.$attrs,{ref:y(o)}),{default:j(()=>[te(v.$slots,"default")]),_:3},16)):(M(),ee(Kb,pe({key:1},v.$attrs,{ref:y(o)}),{default:j(()=>[te(v.$slots,"default")]),_:3},16))}}),ff=K({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean}},setup(e){const t=ht(),n=es(),{forwardRef:o}=xe(),r=F(!1),s=Vu(()=>{if(t.viewport.value){const i=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,l=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;r.value=n.isHorizontal.value?i:l}},10);return Je(()=>s()),Yn(t.viewport,s),Yn(t.content,s),(i,l)=>(M(),ee(y(ro),{present:i.forceMount||r.value},{default:j(()=>[oe(Vi,pe(i.$attrs,{ref:y(o),"data-state":r.value?"visible":"hidden"}),{default:j(()=>[te(i.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),Jb=K({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean}},setup(e){const t=ht(),{forwardRef:n}=xe();let o;const r=F(!1);function s(){window.clearTimeout(o),r.value=!0}function i(){o=window.setTimeout(()=>{r.value=!1},t.scrollHideDelay.value)}return Je(()=>{const l=t.scrollArea.value;l&&(l.addEventListener("pointerenter",s),l.addEventListener("pointerleave",i))}),Pt(()=>{const l=t.scrollArea.value;l&&(window.clearTimeout(o),l.removeEventListener("pointerenter",s),l.removeEventListener("pointerleave",i))}),(l,a)=>(M(),ee(y(ro),{present:l.forceMount||r.value},{default:j(()=>[oe(ff,pe(l.$attrs,{ref:y(n),"data-state":r.value?"visible":"hidden"}),{default:j(()=>[te(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),Yb=K({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean}},setup(e){const t=ht(),n=es(),{forwardRef:o}=xe(),{state:r,dispatch:s}=Zu("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});at(l=>{if(r.value==="idle"){const a=window.setTimeout(()=>s("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(a)})}});const i=Vu(()=>s("SCROLL_END"),100);return at(l=>{const a=t.viewport.value,u=n.isHorizontal.value?"scrollLeft":"scrollTop";if(a){let c=a[u];const f=()=>{const d=a[u];c!==d&&(s("SCROLL"),i()),c=d};a.addEventListener("scroll",f),l(()=>{a.removeEventListener("scroll",f)})}}),(l,a)=>(M(),ee(y(ro),{present:l.forceMount||y(r)!=="hidden"},{default:j(()=>[oe(Vi,pe(l.$attrs,{ref:y(o)}),{default:j(()=>[te(l.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),[es,Xb]=$t("ScrollAreaScrollbar"),Zb=K({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e,{forwardRef:n}=xe(),o=ht(),r=U(()=>t.orientation==="horizontal");ve(r,()=>{r.value?o.onScrollbarXEnabledChange(!0):o.onScrollbarYEnabledChange(!0)},{immediate:!0}),Pt(()=>{o.onScrollbarXEnabledChange(!1),o.onScrollbarYEnabledChange(!1)});const{orientation:s,forceMount:i,asChild:l,as:a}=mn(t);return Xb({orientation:s,forceMount:i,isHorizontal:r,as:a,asChild:l}),(u,c)=>y(o).type.value==="hover"?(M(),ee(Jb,pe({key:0},u.$attrs,{ref:y(n),"force-mount":y(i)}),{default:j(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):y(o).type.value==="scroll"?(M(),ee(Yb,pe({key:1},u.$attrs,{ref:y(n),"force-mount":y(i)}),{default:j(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):y(o).type.value==="auto"?(M(),ee(ff,pe({key:2},u.$attrs,{ref:y(n),"force-mount":y(i)}),{default:j(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):y(o).type.value==="always"?(M(),ee(Vi,pe({key:3},u.$attrs,{ref:y(n),"data-state":"visible"}),{default:j(()=>[te(u.$slots,"default")]),_:3},16)):gn("",!0)}}),Qb=K({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=ht(),o=Qr();function r(d){const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;o.handleThumbDown(d,{x:h,y:m})}function s(d){o.handleThumbUp(d)}const{forwardRef:i,currentElement:l}=xe(),a=F(),u=U(()=>n.viewport.value);function c(){if(!a.value){const d=Wb(u.value,o.onThumbPositionChange);a.value=d,o.onThumbPositionChange()}}const f=U(()=>o.sizes.value);return Fy(f,()=>{o.onThumbChange(l.value),u.value&&(o.onThumbPositionChange(),u.value.addEventListener("scroll",c))}),Pt(()=>{var d;u.value.removeEventListener("scroll",c),(d=n.viewport.value)==null||d.removeEventListener("scroll",c)}),(d,p)=>(M(),ee(y(We),{ref:y(i),"data-state":y(o).hasThumb?"visible":"hidden",style:Ge({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"}),"as-child":t.asChild,as:d.as,onPointerdown:r,onPointerup:s},{default:j(()=>[te(d.$slots,"default")]),_:3},8,["data-state","style","as-child","as"]))}}),e0=K({__name:"ScrollAreaCornerImpl",setup(e){const t=ht(),n=F(0),o=F(0),r=U(()=>!!n.value&&!!o.value);function s(){var l;const a=((l=t.scrollbarX.value)==null?void 0:l.offsetHeight)||0;t.onCornerHeightChange(a),o.value=a}function i(){var l;const a=((l=t.scrollbarY.value)==null?void 0:l.offsetWidth)||0;t.onCornerWidthChange(a),n.value=a}return Yn(t.scrollbarX.value,s),Yn(t.scrollbarY.value,i),ve(()=>t.scrollbarX.value,s),ve(()=>t.scrollbarY.value,i),(l,a)=>{var u;return r.value?(M(),ee(y(We),pe({key:0,style:{width:`${n.value}px`,height:`${o.value}px`,position:"absolute",right:y(t).dir.value==="ltr"?0:void 0,left:y(t).dir.value==="rtl"?0:void 0,bottom:0}},(u=l.$parent)==null?void 0:u.$props),{default:j(()=>[te(l.$slots,"default")]),_:3},16,["style"])):gn("",!0)}}}),t0=K({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=xe(),o=ht(),r=U(()=>!!o.scrollbarX.value&&!!o.scrollbarY.value),s=U(()=>o.type.value!=="scroll"&&r.value);return(i,l)=>s.value?(M(),ee(e0,pe({key:0},t,{ref:y(n)}),{default:j(()=>[te(i.$slots,"default")]),_:3},16)):gn("",!0)}});function n0(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}n0();const o0=["name","disabled","required","value","checked","data-state","data-disabled"],[r0,s0]=$t("SwitchRoot"),i0=K({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,{disabled:r}=mn(n),s=Hi(n,"checked",o,{defaultValue:n.defaultChecked,passive:n.checked===void 0});function i(){r.value||(s.value=!s.value)}const{forwardRef:l,currentElement:a}=xe(),u=Yy(a),c=U(()=>{var f;return n.id&&a.value?(f=document.querySelector(`[for="${n.id}"]`))==null?void 0:f.innerText:void 0});return s0({checked:s,toggleCheck:i,disabled:r}),(f,d)=>(M(),Te(He,null,[oe(y(We),pe(f.$attrs,{id:f.id,ref:y(l),role:"switch",type:f.as==="button"?"button":void 0,value:f.value,"aria-label":f.$attrs["aria-label"]||c.value,"aria-checked":y(s),"aria-required":f.required,"data-state":y(s)?"checked":"unchecked","data-disabled":y(r)?"":void 0,"as-child":f.asChild,as:f.as,disabled:y(r),onClick:i,onKeydown:Ip(Bs(i,["prevent"]),["enter"])}),{default:j(()=>[te(f.$slots,"default",{checked:y(s)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),y(u)?(M(),Te("input",{key:0,type:"checkbox",name:f.name,tabindex:"-1","aria-hidden":"",disabled:y(r),required:f.required,value:f.value,checked:!!y(s),"data-state":y(s)?"checked":"unchecked","data-disabled":y(r)?"":void 0,style:Ge({transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0})},null,12,o0)):gn("",!0)],64))}}),l0=K({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=r0();return xe(),(n,o)=>{var r;return M(),ee(y(We),{"data-state":(r=y(t).checked)!=null&&r.value?"checked":"unchecked","data-disabled":y(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:j(()=>[te(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),a0=K({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=yn(e,t);return(s,i)=>(M(),ee(y(Db),ko(Xn(y(r))),{default:j(()=>[te(s.$slots,"default")]),_:3},16))}}),c0=K({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(M(),ee(y(Bb),ko(Xn(t)),{default:j(()=>[te(n.$slots,"default")]),_:3},16))}}),u0=K({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=U(()=>{const{class:i,...l}=n;return l}),s=yn(r,o);return(i,l)=>(M(),ee(y(Nb),null,{default:j(()=>[oe(y(jb),pe({...y(s),...i.$attrs},{class:y(dt)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:j(()=>[te(i.$slots,"default")]),_:3},16,["class"])]),_:3}))}});var qi=(e=>(e.WEATHERED_WOOD="#786F5D",e.SAGE_GREEN="#8F9D60",e.SMOKE_BLUE="#5C6BC4",e.MISTY_GREY="#B2B8CF",e.CARAMEL_HONEY="#964B3A",e.BLUSH_ROSE="#D97FAC",e.CORAL_PINK="#C71585",e.TAUPE_BEIGE="#9B6F58",e))(qi||{});const f0={class:"grid grid-cols-4 gap-2"},d0=["onClick"],p0=K({__name:"ColorPicker",props:{color:String},emits:["update:color"],setup(e,{emit:t}){const n=t,o=e,r=F(!1),s=i=>{r.value=!1,n("update:color",i)};return(i,l)=>(M(),Te("div",null,[oe(y(a0),{open:r.value,"onUpdate:open":l[0]||(l[0]=a=>r.value=a)},{default:j(()=>[oe(y(c0),null,{default:j(()=>[Oe("div",{class:"w-8 h-8 rounded-full cursor-pointer",style:Ge({backgroundColor:o.color})},null,4)]),_:1}),oe(y(u0),{class:"w-50 p-2"},{default:j(()=>[Oe("div",f0,[(M(!0),Te(He,null,gi(Object.values(y(qi)),a=>(M(),Te("div",{key:a,class:"w-6 h-6 rounded-md cursor-pointer m-1",style:Ge({backgroundColor:a}),onClick:u=>s(a)},null,12,d0))),128))])]),_:1})]),_:1},8,["open"])]))}}),h0=K({__name:"Switch",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,r=U(()=>{const{class:i,...l}=n;return l}),s=yn(r,o);return(i,l)=>(M(),ee(y(i0),pe(y(s),{class:y(dt)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n.class)}),{default:j(()=>[oe(y(l0),{class:pt(y(dt)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"))},null,8,["class"])]),_:1},16,["class"]))}}),m0={class:"flex-grow"},g0={class:"text-lg font-semibold"},v0={class:"text-sm text-gray-600"},y0=K({__name:"CalendarSettings",setup(e){const t=gu();t.loadAvailableCalendars(),t.loadSubscriptions();const n=U(()=>{const a=[...t.availableCalendars,...t.subscriptions].reduce((u,c)=>((!u.has(c.provider_id)||c.color)&&u.set(c.provider_id,c),u),new Map);return Array.from(a.values())}),o=l=>{r(l)?t.unsubscribeFromCalendar(l):(l.color=qi.WEATHERED_WOOD,t.subscribeToCalendar(l))},r=l=>t.subscriptions.some(a=>a.provider_id===l.provider_id),s=l=>t.availableCalendars.some(a=>a.provider_id===l.provider_id),i=(l,a)=>{l.color=a,t.updateCalendar(l)};return(l,a)=>(M(),Te("div",null,[oe(y(Tv),null,{default:j(()=>[oe(y($v),null,{default:j(()=>[oe(y(kv),null,{default:j(()=>[Mr("Calendars")]),_:1})]),_:1}),oe(y(Iv),null,{default:j(()=>[(M(!0),Te(He,null,gi(n.value,u=>(M(),Te("div",{key:u.id,class:"mb-4"},[Oe("div",{class:pt(["flex items-center",{"text-red-500":r(u)&&!s(u)}])},[oe(y(h0),{checked:r(u),"onUpdate:checked":c=>o(u),class:"mr-4"},null,8,["checked","onUpdate:checked"]),Oe("div",m0,[Oe("h3",g0,ur(u.summary),1),Oe("p",v0,ur(u.description),1)]),r(u)?(M(),ee(p0,{key:0,class:"ml-4",color:u.color,"onUpdate:color":[c=>u.color=c,c=>i(u,c)]},null,8,["color","onUpdate:color"])):gn("",!0)],2)]))),128))]),_:1})]),_:1})]))}}),b0={class:"flex flex-col min-h-full"},w0={class:"flex-grow"},_0={class:"m-5 pb-5"},x0=K({__name:"AppSettings",setup(e){const t=Zn(),n=Pu(),o=()=>{t.logout(),n.push({name:Ft.main})},r=window.devicePixelRatio;return(s,i)=>(M(),Te("div",b0,[Oe("div",w0,[oe(y0)]),Oe("div",_0,[Oe("button",{onClick:o},"Logout "+ur(y(r)),1)])]))}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top],.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left],.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{-webkit-user-select:none;user-select:none}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const E0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const C0=e=>typeof e<"u";function S0(e){return JSON.parse(JSON.stringify(e))}function Oa(e,t,n,o={}){var r,s,i;const{clone:l=!1,passive:a=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:d}=o,p=Tt(),h=n||(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((i=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let m=u;t||(t="modelValue"),m=m||`update:${t.toString()}`;const w=x=>l?typeof l=="function"?l(x):S0(x):x,v=()=>C0(e[t])?w(e[t]):f,_=x=>{d?d(x)&&h(m,x):h(m,x)};if(a){const x=v(),P=F(x);let A=!1;return ve(()=>e[t],R=>{A||(A=!0,P.value=w(R),et(()=>A=!1))}),ve(P,R=>{!A&&(R!==e[t]||c)&&_(R)},{deep:c}),P}else return U({get(){return v()},set(x){_(x)}})}const[df,O0]=$t("DrawerRoot"),pf=new WeakMap;function Re(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const o={};Object.entries(t).forEach(([r,s])=>{if(r.startsWith("--")){e.style.setProperty(r,s);return}o[r]=e.style[r],e.style[r]=s}),!n&&pf.set(e,o)}function tr(e,t){if(!e||!(e instanceof HTMLElement))return;const n=pf.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([o,r])=>{e.style[o]=r}))}function nr(e,t){const n=window.getComputedStyle(e),o=n.transform||n.webkitTransform||n.mozTransform;let r=o.match(/^matrix3d\((.+)\)$/);return r?Number.parseFloat(r[1].split(", ")[De(t)?13:12]):(r=o.match(/^matrix\((.+)\)$/),r?Number.parseFloat(r[1].split(", ")[De(t)?5:4]):null)}function A0(e){return 8*(Math.log(e+1)-2)}function De(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}const Ce={DURATION:.5,EASE:[.32,.72,0,1]},hf=.4;function R0({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:o,fadeFromIndex:r,onSnapPointChange:s,direction:i}){const l=U(()=>(t.value&&e.value===t.value[t.value.length-1])??null),a=U(()=>t.value&&t.value.length>0&&((r==null?void 0:r.value)||(r==null?void 0:r.value)===0)&&!Number.isNaN(r==null?void 0:r.value)&&t.value[(r==null?void 0:r.value)??-1]===e.value||!t.value),u=U(()=>{var w;return((w=t.value)==null?void 0:w.findIndex(v=>v===e.value))??null}),c=U(()=>{var w;return((w=t.value)==null?void 0:w.map(v=>{const _=typeof window<"u",x=typeof v=="string";let P=0;if(x&&(P=Number.parseInt(v,10)),De(i.value)){const R=x?P:_?v*window.innerHeight:0;return _?i.value==="bottom"?window.innerHeight-R:-window.innerHeight+R:R}const A=x?P:_?v*window.innerWidth:0;return _?i.value==="right"?window.innerWidth-A:-window.innerWidth+A:A}))??[]}),f=U(()=>{var w;return u.value!==null?(w=c.value)==null?void 0:w[u.value]:null}),d=w=>{var v,_,x,P;const A=((v=c.value)==null?void 0:v.findIndex(R=>R===w))??null;et(()=>{var R;s(A,c.value),Re((R=n.value)==null?void 0:R.$el,{transition:`transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,transform:De(i.value)?`translate3d(0, ${w}px, 0)`:`translate3d(${w}px, 0, 0)`})}),c.value&&A!==c.value.length-1&&A!==(r==null?void 0:r.value)?Re((_=o.value)==null?void 0:_.$el,{transition:`opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,opacity:"0"}):Re((x=o.value)==null?void 0:x.$el,{transition:`opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,opacity:"1"}),e.value=A!==null?((P=t.value)==null?void 0:P[A])??null:null};ve([e,c,t],()=>{var w;if(e.value){const v=((w=t.value)==null?void 0:w.findIndex(_=>_===e.value))??-1;c.value&&v!==-1&&typeof c.value[v]=="number"&&d(c.value[v])}},{immediate:!0});function p({draggedDistance:w,closeDrawer:v,velocity:_,dismissible:x}){var P,A,R;if(r===void 0)return;const N=i.value==="bottom"||i.value==="right"?(f.value??0)-w:(f.value??0)+w,z=u.value===(r.value??0)-1,G=u.value===0,D=w>0;if(z&&Re((P=o.value)==null?void 0:P.$el,{transition:`opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`}),_>2&&!D){x?v():d(c.value[0]);return}if(_>2&&D&&c&&t.value){d(c.value[t.value.length-1]);return}const Z=(A=c.value)==null?void 0:A.reduce((fe,J)=>typeof fe!="number"||typeof J!="number"?fe:Math.abs(J-N)<Math.abs(fe-N)?J:fe),W=De(i.value)?window.innerHeight:window.innerWidth;if(_>hf&&Math.abs(w)<W*.4){const fe=D?1:-1;if(fe>0&&l){d(c.value[(((R=t.value)==null?void 0:R.length)??0)-1]);return}if(G&&fe<0&&x&&v(),u.value===null)return;d(c.value[u.value+fe]);return}d(Z)}function h({draggedDistance:w}){var v;if(f.value===null)return;const _=i.value==="bottom"||i.value==="right"?(f.value??0)-w:(f.value??0)+w;(i.value==="bottom"||i.value==="right")&&_<c.value[c.value.length-1]||(i.value==="top"||i.value==="left")&&_>c.value[c.value.length-1]||Re((v=n.value)==null?void 0:v.$el,{transform:De(i.value)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function m(w,v){if(!t||typeof u.value!="number"||!c.value||r===void 0)return null;const _=u.value===(r.value??0)-1;if(u.value>=(r.value??0)&&v)return 0;if(_&&!v)return 1;if(!a.value&&!_)return null;const x=_?u.value+1:u.value-1,P=_?c.value[x]-c.value[x-1]:c.value[x+1]-c.value[x],A=w/Math.abs(P);return _?1-A:A}return{isLastSnapPoint:l,shouldFade:a,getPercentageDragged:m,activeSnapPointIndex:u,onRelease:p,onDrag:h,snapPointsOffset:c}}let uo=null;function P0(e){const{isOpen:t,modal:n,nested:o,hasBeenOpened:r}=e,s=F(typeof window<"u"?window.location.href:""),i=F(0);function l(){if(uo===null&&t.value){uo={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:u,innerHeight:c}=window;document.body.style.position="fixed",document.body.style.top=`-${i.value}px`,document.body.style.left=`-${u}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>{requestAnimationFrame(()=>{const f=c-window.innerHeight;f&&i.value>=c&&(document.body.style.top=`-${i.value+f}px`)})},300)}}function a(){if(uo!==null){const u=-Number.parseInt(document.body.style.top,10),c=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,uo),requestAnimationFrame(()=>{if(s.value!==window.location.href){s.value=window.location.href;return}window.scrollTo(c,u)}),uo=null}}return Je(()=>{function u(){i.value=window.scrollY}u(),window.addEventListener("scroll",u),Pt(()=>{window.removeEventListener("scroll",u)})}),ve([t,r,s],()=>{o.value||!r.value||(t.value?(!window.matchMedia("(display-mode: standalone)").matches&&l(),n.value||setTimeout(()=>{a()},500)):a())}),{restorePositionSetting:a}}const T0=.25,$0=100,Aa=8,xn=16,k0=26,Ra="vaul-dragging";function I0(e,t){return e&&e.value?e:t}function L0(e){const{emitDrag:t,emitRelease:n,emitClose:o,emitOpenChange:r,open:s,dismissible:i,nested:l,fixed:a,modal:u,shouldScaleBackground:c,scrollLockTimeout:f,closeThreshold:d,activeSnapPoint:p,fadeFromIndex:h,direction:m}=e,w=F(s.value??!1),v=F(!1),_=F(!1),x=F(!1),P=F(!1),A=F(null),R=F(null),N=F(null),z=F(null),G=F(null),D=F(!0),Z=F(null),W=F(0),fe=F(!1);F(0);const J=F(null);F(0);const ye=U(()=>{var E;return((E=J.value)==null?void 0:E.$el.getBoundingClientRect().height)||0}),Y=I0(e.snapPoints,F(void 0)),{activeSnapPointIndex:ie,onRelease:de,snapPointsOffset:ze,onDrag:tt,shouldFade:Ne,getPercentageDragged:ke}=R0({snapPoints:Y,activeSnapPoint:p,drawerRef:J,fadeFromIndex:h,overlayRef:A,onSnapPointChange:Vt,direction:m});function Vt(E,S){Y.value&&E===S.length-1&&(R.value=new Date)}const{restorePositionSetting:qt}=P0({isOpen:w,modal:u,nested:l,hasBeenOpened:v});function mt(){return(window.innerWidth-k0)/window.innerWidth}function Fe(E,S){var k;if(!E)return!1;let L=E;const I=(k=window.getSelection())==null?void 0:k.toString(),B=J.value?nr(J.value.$el,m.value):null,$=new Date;if(L.hasAttribute("data-vaul-no-drag")||L.closest("[data-vaul-no-drag]"))return!1;if(m.value==="right"||m.value==="left")return!0;if(R.value&&$.getTime()-R.value.getTime()<500)return!1;if(B!==null&&(m.value==="bottom"?B>0:B<0))return!0;if(I&&I.length>0)return!1;if(G.value&&$.getTime()-G.value.getTime()<f.value&&B===0||S)return G.value=$,!1;for(;L;){if(L.scrollHeight>L.clientHeight){if(L.scrollTop!==0)return G.value=new Date,!1;if(L.getAttribute("role")==="dialog")return!0}L=L.parentNode}return!0}function T(E){!i.value&&!Y.value||J.value&&!J.value.$el.contains(E.target)||(x.value=!0,N.value=new Date,E.target.setPointerCapture(E.pointerId),W.value=De(m.value)?E.clientY:E.clientX)}function q(E){var S,k,L,I,B,$;if(J.value&&x.value){const V=m.value==="bottom"||m.value==="right"?1:-1,ne=(W.value-(De(m.value)?E.clientY:E.clientX))*V,Q=ne>0,re=Y.value&&!i.value&&!Q;if(re&&ie.value===0)return;const ue=Math.abs(ne),we=document.querySelector("[vaul-drawer-wrapper]");let ge=ue/ye.value;const Ie=ke(ue,Q);if(Ie!==null&&(ge=Ie),re&&ge>=1||!D.value&&!Fe(E.target,Q))return;if((S=J==null?void 0:J.value)==null||S.$el.classList.add(Ra),D.value=!0,Re((k=J.value)==null?void 0:k.$el,{transition:"none"}),Re((L=A.value)==null?void 0:L.$el,{transition:"none"}),Y.value&&tt({draggedDistance:ne}),Q&&!Y.value){const Ye=A0(ne),bn=Math.min(Ye*-1,0)*V;Re((I=J.value)==null?void 0:I.$el,{transform:De(m.value)?`translate3d(0, ${bn}px, 0)`:`translate3d(${bn}px, 0, 0)`});return}const nt=1-ge;if((Ne.value||h.value&&ie.value===h.value-1)&&(t(ge),Re((B=A.value)==null?void 0:B.$el,{opacity:`${nt}`,transition:"none"},!0)),we&&A.value&&c.value){const Ye=Math.min(mt()+ge*(1-mt()),1),bn=8-ge*8,Kt=Math.max(0,14-ge*14);Re(we,{borderRadius:`${bn}px`,transform:De(m.value)?`scale(${Ye}) translate3d(0, ${Kt}px, 0)`:`scale(${Ye}) translate3d(${Kt}px, 0, 0)`,transition:"none"},!0)}if(!Y.value){const Ye=ue*V;Re(($=J.value)==null?void 0:$.$el,{transform:De(m.value)?`translate3d(0, ${Ye}px, 0)`:`translate3d(${Ye}px, 0, 0)`})}}}function H(){var E;if(!J.value)return;const S=document.querySelector("[vaul-drawer-wrapper]"),k=nr(J.value.$el,m.value);Re(J.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`}),Re((E=A.value)==null?void 0:E.$el,{transition:`opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,opacity:"1"}),c.value&&k&&k>0&&w.value&&Re(S,{borderRadius:`${Aa}px`,overflow:"hidden",...De(m.value)?{transform:`scale(${mt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${mt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ce.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ce.EASE.join(",")})`},!0)}function X(){var E;J.value&&(Re(J.value.$el,{transform:De(m.value)?`translate3d(0, ${m.value==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${m.value==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`}),Re((E=A.value)==null?void 0:E.$el,{opacity:"0",transition:`opacity ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`}),Ee(!1),window.setTimeout(()=>{_.value=!1,w.value=!1},300),window.setTimeout(()=>{Y.value&&(p.value=Y.value[0])},Ce.DURATION*1e3))}at(()=>{if(!w.value&&c.value&&E0){const E=setTimeout(()=>{tr(document.body)},200);return()=>clearTimeout(E)}}),Pt(()=>{Ee(!1),qt()});function be(E){if(!x.value||!J.value)return;J.value.$el.classList.remove(Ra),D.value=!1,x.value=!1,z.value=new Date;const S=nr(J.value.$el,m.value);if(!Fe(E.target,!1)||!S||Number.isNaN(S)||N.value===null)return;const k=z.value.getTime()-N.value.getTime(),L=W.value-(De(m.value)?E.clientY:E.clientX),I=Math.abs(L)/k;if(I>.05&&(P.value=!0,window.setTimeout(()=>{P.value=!1},200)),Y.value){const $=m.value==="bottom"||m.value==="right"?1:-1;de({draggedDistance:L*$,closeDrawer:X,velocity:I,dismissible:i.value}),n(!0);return}if(m.value==="bottom"||m.value==="right"?L>0:L<0){H(),n(!0);return}if(I>hf){X(),n(!1);return}const B=Math.min(J.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(S>=B*d.value){X(),n(!1);return}n(!0),H()}ve(w,E=>{E&&(R.value=new Date,Ee(!0)),r(E)},{immediate:!0}),ve(s,E=>{E?(w.value=E,v.value=!0):X()},{immediate:!0});function Ee(E){const S=document.querySelector("[vaul-drawer-wrapper]");!S||!c.value||(E?(Re(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),Re(document.body,{background:"black"},!0),Re(S,{borderRadius:`${Aa}px`,overflow:"hidden",...De(m.value)?{transform:`scale(${mt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${mt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ce.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ce.EASE.join(",")})`})):(tr(S,"overflow"),tr(S,"transform"),tr(S,"borderRadius"),Re(S,{transitionProperty:"transform, border-radius",transitionDuration:`${Ce.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ce.EASE.join(",")})`})))}function g(E){var S,k;const L=E?(window.innerWidth-xn)/window.innerWidth:1,I=E?-xn:0;Z.value&&window.clearTimeout(Z.value),Re((S=J.value)==null?void 0:S.$el,{transition:`transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,transform:`scale(${L}) translate3d(0, ${I}px, 0)`}),!E&&(k=J.value)!=null&&k.$el&&(Z.value=window.setTimeout(()=>{var B,$;const V=nr((B=J.value)==null?void 0:B.$el,m.value);Re(($=J.value)==null?void 0:$.$el,{transition:"none",transform:De(m.value)?`translate3d(0, ${V}px, 0)`:`translate3d(${V}px, 0, 0)`})},500))}function b(E){var S;if(E<0)return;const k=De(m.value)?window.innerHeight:window.innerWidth,L=(k-xn)/k,I=L+E*(1-L),B=-xn+E*xn;Re((S=J.value)==null?void 0:S.$el,{transform:De(m.value)?`scale(${I}) translate3d(0, ${B}px, 0)`:`scale(${I}) translate3d(${B}px, 0, 0)`,transition:"none"})}function C(E){var S;const k=De(m.value)?window.innerHeight:window.innerWidth,L=E?(k-xn)/k:1,I=E?-xn:0;E&&Re((S=J.value)==null?void 0:S.$el,{transition:`transform ${Ce.DURATION}s cubic-bezier(${Ce.EASE.join(",")})`,transform:De(m.value)?`scale(${L}) translate3d(0, ${I}px, 0)`:`scale(${L}) translate3d(${I}px, 0, 0)`})}return{open:s,isOpen:w,modal:u,keyboardIsOpen:fe,hasBeenOpened:v,isVisible:_,drawerRef:J,drawerHeightRef:ye,overlayRef:A,isDragging:x,dragStartTime:N,isAllowedToDrag:D,snapPoints:Y,activeSnapPoint:p,pointerStart:W,dismissible:i,snapPointsOffset:ze,direction:m,shouldFade:Ne,fadeFromIndex:h,shouldScaleBackground:c,onPress:T,onDrag:q,onRelease:be,closeDrawer:X,onNestedDrag:b,onNestedRelease:C,onNestedOpenChange:g,emitClose:o,emitDrag:t,emitRelease:n,emitOpenChange:r,nested:l}}const D0=K({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:T0},shouldScaleBackground:{type:Boolean,default:void 0},scrollLockTimeout:{default:$0},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint"],setup(e,{expose:t,emit:n}){const o=e,r=n;xc();const s=U(()=>o.fadeFromIndex??(o.snapPoints&&o.snapPoints.length-1)),i=Oa(o,"open",r,{defaultValue:o.defaultOpen,passive:o.open===void 0}),l=Oa(o,"activeSnapPoint",r,{passive:o.activeSnapPoint===void 0}),a={emitDrag:h=>r("drag",h),emitRelease:h=>r("release",h),emitClose:()=>r("close"),emitOpenChange:h=>{r("update:open",h)}},{closeDrawer:u,hasBeenOpened:c,modal:f,isOpen:d}=O0(L0({...a,...mn(o),activeSnapPoint:l,fadeFromIndex:s,open:i}));function p(h){if(i.value!==void 0){a.emitOpenChange(h);return}h?(c.value=!0,d.value=h):u()}return t({open:d}),(h,m)=>(M(),ee(y(ib),{open:y(d),modal:y(f),"onUpdate:open":p},{default:j(()=>[te(h.$slots,"default",{open:y(d)})]),_:3},8,["open","modal"]))}}),B0=K({__name:"DrawerOverlay",setup(e){const{overlayRef:t,snapPoints:n,isVisible:o,isOpen:r,shouldFade:s}=df(),i=U(()=>{var l;return n&&(((l=n.value)==null?void 0:l.length)??0)>0});return(l,a)=>(M(),ee(y(Sb),{ref_key:"overlayRef",ref:t,"vaul-drawer-visible":y(o)?"true":"false","vaul-overlay":"","vaul-snap-points":y(r)&&i.value?"true":"false","vaul-snap-points-overlay":y(r)&&y(s)?"true":"false"},null,8,["vaul-drawer-visible","vaul-snap-points","vaul-snap-points-overlay"]))}}),N0=K({__name:"DrawerContent",setup(e){const{open:t,isOpen:n,isVisible:o,snapPointsOffset:r,drawerRef:s,onPress:i,onDrag:l,onRelease:a,modal:u,emitOpenChange:c,dismissible:f,keyboardIsOpen:d,closeDrawer:p,direction:h}=df(),m=U(()=>r.value&&r.value.length>0?`${r.value[0]}px`:"0");function w(v){if(!u.value||v.defaultPrevented){v.preventDefault();return}d.value&&(d.value=!1),v.preventDefault(),f.value&&c(!1),!(!f.value||t.value!==void 0)&&p()}return ve(n,v=>{v&&setTimeout(()=>{o.value=!0},1)},{immediate:!0}),(v,_)=>(M(),ee(y(Eb),{ref_key:"drawerRef",ref:s,"vaul-drawer":"","vaul-drawer-direction":y(h),"vaul-drawer-visible":y(o)?"true":"false",style:Ge({"--snap-point-height":m.value}),onPointerdown:y(i),onPointermove:y(l),onPointerup:y(a),onPointerDownOutside:w,onEscapeKeyDown:_[0]||(_[0]=x=>{y(f)||x.preventDefault()})},{default:j(()=>[te(v.$slots,"default")]),_:3},8,["vaul-drawer-direction","vaul-drawer-visible","style","onPointerdown","onPointermove","onPointerup"]))}}),F0=K({__name:"Drawer",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean,default:!0},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint"],setup(e,{emit:t}){const r=yn(e,t);return(s,i)=>(M(),ee(y(D0),ko(Xn(y(r))),{default:j(()=>[te(s.$slots,"default")]),_:3},16))}}),M0=K({__name:"DrawerOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=U(()=>{const{class:o,...r}=t;return r});return(o,r)=>(M(),ee(y(B0),pe(n.value,{class:y(dt)("fixed inset-0 z-50 bg-black/80",t.class)}),null,16,["class"]))}}),j0=Oe("div",{class:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"},null,-1),z0=K({__name:"DrawerContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=yn(n,t);return(s,i)=>(M(),ee(y(ab),null,{default:j(()=>[oe(M0),oe(y(N0),pe(y(r),{class:y(dt)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",n.class)}),{default:j(()=>[j0,te(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),H0=K({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=U(()=>{const{class:o,...r}=t;return r});return(o,r)=>(M(),ee(y(Zb),pe(n.value,{class:y(dt)("flex touch-none select-none transition-colors",o.orientation==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",o.orientation==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",t.class)}),{default:j(()=>[oe(y(Qb),{class:"relative flex-1 rounded-full bg-border"})]),_:1},16,["class"]))}}),U0=K({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=U(()=>{const{class:o,...r}=t;return r});return(o,r)=>(M(),ee(y(Hb),pe(n.value,{class:y(dt)("relative overflow-hidden",t.class)}),{default:j(()=>[oe(y(Ub),{class:"h-full w-full rounded-[inherit]"},{default:j(()=>[te(o.$slots,"default")]),_:3}),oe(H0),oe(y(t0))]),_:3},16,["class"]))}});/**
 * @license lucide-vue-next v0.390.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-vue-next v0.390.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var or={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
 * @license lucide-vue-next v0.390.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V0=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:o,iconNode:r,name:s,class:i,...l},{slots:a})=>Nt("svg",{...or,width:e||or.width,height:e||or.height,stroke:o||or.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${W0(s??"icon")}`],...l},[...r.map(u=>Nt(...u)),...a.default?[a.default()]:[]]);/**
 * @license lucide-vue-next v0.390.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q0=(e,t)=>(n,{slots:o})=>Nt(V0,{...n,iconNode:t,name:e},o);/**
 * @license lucide-vue-next v0.390.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K0=q0("ChevronsRightIcon",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),G0={class:"flex flex-col h-screen"},J0={class:"flex flex-1 overflow-hidden"},Y0={class:"pt-10 w-32 overflow-y-auto"},X0={class:"flex-grow overflow-y-auto w-full h-full p-2"},Z0={class:"flex"},Q0=K({__name:"DefaultLayout",setup(e){return(t,n)=>(M(),Te("div",G0,[Oe("div",J0,[Oe("aside",Y0,[oe(Km)]),Oe("main",X0,[oe(y(Ru))])]),Oe("div",Z0,[oe(y(F0),{direction:"left"},{default:j(()=>[oe(y(lb),{"as-child":""},{default:j(()=>[oe(y(K0),{"stroke-width":"2.5",size:32})]),_:1}),oe(y(z0),{class:"h-full w-[95%] max-w-[1000px] px-8"},{default:j(()=>[oe(U0,{class:"h-full v-full p-1 my-3 -mx-5"},{default:j(()=>[oe(x0)]),_:1})]),_:1})]),_:1})])]))}}),ew={};function tw(e,t){const n=ud("RouterView");return M(),ee(n)}const nw=vu(ew,[["render",tw]]),ow=K({__name:"App",setup(e){const t=Zn();return(n,o)=>y(t).isLoggedIn?(M(),ee(Q0,{key:0})):(M(),ee(nw,{key:1}))}}),rw="modulepreload",sw=function(e){return"/"+e},Pa={},iw=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=sw(l),l in Pa)return;Pa[l]=!0;const a=l.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":rw,a||(c.as="script",c.crossOrigin=""),c.href=l,i&&c.setAttribute("nonce",i),document.head.appendChild(c),a)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},lw=K({__name:"AuthView",setup(e){const t=Zn(),n=Yg(),o=Pu(),r=n.params.provider;switch(r){case"google":s();break;default:o.replace({name:Ft.home})}async function s(){const i=n.query.code,l=await Dt.get("/auth/session/google",{headers:{Authorization:"BEARER "+i}}),{jwt:a,payload:u}=l.data;t.login(a,u),o.replace({name:Ft.home})}return(i,l)=>(M(),Te("div",null,ur(y(r)),1))}}),aw="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1200'%20height='1200'%20fill='none'%3e%3crect%20width='1200'%20height='1200'%20fill='%23EAEAEA'%20rx='3'/%3e%3cg%20opacity='.5'%3e%3cg%20opacity='.5'%3e%3cpath%20fill='%23FAFAFA'%20d='M600.709%20736.5c-75.454%200-136.621-61.167-136.621-136.62%200-75.454%2061.167-136.621%20136.621-136.621%2075.453%200%20136.62%2061.167%20136.62%20136.621%200%2075.453-61.167%20136.62-136.62%20136.62Z'/%3e%3cpath%20stroke='%23C9C9C9'%20stroke-width='2.418'%20d='M600.709%20736.5c-75.454%200-136.621-61.167-136.621-136.62%200-75.454%2061.167-136.621%20136.621-136.621%2075.453%200%20136.62%2061.167%20136.62%20136.621%200%2075.453-61.167%20136.62-136.62%20136.62Z'/%3e%3c/g%3e%3cpath%20stroke='url(%23a)'%20stroke-width='2.418'%20d='M0-1.209h553.581'%20transform='scale(1%20-1)%20rotate(45%201163.11%2091.165)'/%3e%3cpath%20stroke='url(%23b)'%20stroke-width='2.418'%20d='M404.846%20598.671h391.726'/%3e%3cpath%20stroke='url(%23c)'%20stroke-width='2.418'%20d='M599.5%20795.742V404.017'/%3e%3cpath%20stroke='url(%23d)'%20stroke-width='2.418'%20d='m795.717%20796.597-391.441-391.44'/%3e%3cpath%20fill='%23fff'%20d='M600.709%20656.704c-31.384%200-56.825-25.441-56.825-56.824%200-31.384%2025.441-56.825%2056.825-56.825%2031.383%200%2056.824%2025.441%2056.824%2056.825%200%2031.383-25.441%2056.824-56.824%2056.824Z'/%3e%3cg%20clip-path='url(%23e)'%3e%3cpath%20fill='%23666'%20fill-rule='evenodd'%20d='M616.426%20586.58h-31.434v16.176l3.553-3.554.531-.531h9.068l.074-.074%208.463-8.463h2.565l7.18%207.181V586.58Zm-15.715%2014.654%203.698%203.699%201.283%201.282-2.565%202.565-1.282-1.283-5.2-5.199h-6.066l-5.514%205.514-.073.073v2.876a2.418%202.418%200%200%200%202.418%202.418h26.598a2.418%202.418%200%200%200%202.418-2.418v-8.317l-8.463-8.463-7.181%207.181-.071.072Zm-19.347%205.442v4.085a6.045%206.045%200%200%200%206.046%206.045h26.598a6.044%206.044%200%200%200%206.045-6.045v-7.108l1.356-1.355-1.282-1.283-.074-.073v-17.989h-38.689v23.43l-.146.146.146.147Z'%20clip-rule='evenodd'/%3e%3c/g%3e%3cpath%20stroke='%23C9C9C9'%20stroke-width='2.418'%20d='M600.709%20656.704c-31.384%200-56.825-25.441-56.825-56.824%200-31.384%2025.441-56.825%2056.825-56.825%2031.383%200%2056.824%2025.441%2056.824%2056.825%200%2031.383-25.441%2056.824-56.824%2056.824Z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='554.061'%20x2='-.48'%20y1='.083'%20y2='.087'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3cstop%20offset='.208'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='.792'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='1'%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='796.912'%20x2='404.507'%20y1='599.963'%20y2='599.965'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3cstop%20offset='.208'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='.792'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='1'%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='600.792'%20x2='600.794'%20y1='403.677'%20y2='796.082'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3cstop%20offset='.208'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='.792'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='1'%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='404.85'%20x2='796.972'%20y1='403.903'%20y2='796.02'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3cstop%20offset='.208'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='.792'%20stop-color='%23C9C9C9'/%3e%3cstop%20offset='1'%20stop-color='%23C9C9C9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='e'%3e%3cpath%20fill='%23fff'%20d='M581.364%20580.535h38.689v38.689h-38.689z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function mf(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=mf(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function cw(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=mf(e))&&(o&&(o+=" "),o+=t);return o}const Ta=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,$a=cw,uw=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return $a(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(u=>{const c=n==null?void 0:n[u],f=s==null?void 0:s[u];if(c===null)return null;const d=Ta(c)||Ta(f);return r[u][d]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,c)=>{let{class:f,className:d,...p}=c;return Object.entries(p).every(h=>{let[m,w]=h;return Array.isArray(w)?w.includes({...s,...l}[m]):{...s,...l}[m]===w})?[...u,f,d]:u},[]);return $a(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},fw=K({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(M(),ee(y(We),{as:n.as,"as-child":n.asChild,class:pt(y(dt)(y(dw)({variant:n.variant,size:n.size}),t.class))},{default:j(()=>[te(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),dw=uw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pw={class:"w-full lg:grid lg:min-h-[600px] lg:grid-cols-2 xl:min-h-[800px] h-screen"},hw={class:"flex items-center justify-center py-12"},mw={class:"mx-auto grid w-[350px] gap-6"},gw=Oe("div",{class:"grid gap-2 text-center"},[Oe("h1",{class:"text-3xl font-bold"}," Family Sync "),Oe("p",{class:"text-balance text-muted-foreground"}," Login to get started ")],-1),vw={class:"grid gap-2 content-center"},yw=Oe("div",{class:"hidden bg-muted lg:block"},[Oe("img",{src:aw,alt:"Image",width:"1920",height:"1080",class:"h-full w-full object-cover dark:brightness-[0.2] dark:grayscale"})],-1),bw=K({__name:"MainView",setup(e){const t=Zn(),n=()=>{Do(o=>{o.accounts.oauth2.initCodeClient({client_id:xi.GOOGLE_CLIENT_ID,scope:"email profile openid https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.calendarlist.readonly",callback:async r=>{const s=await Dt.get("/auth/session/google",{headers:{Authorization:"BEARER "+r.code}}),{jwt:i,payload:l}=s.data;t.login(i,l),Gi.replace({name:Ft.home})}}).requestCode()})};return(o,r)=>(M(),Te("div",pw,[Oe("div",hw,[Oe("div",mw,[gw,Oe("div",vw,[oe(y(fw),{onClick:n},{default:j(()=>[Mr("Login with Google")]),_:1})])])]),yw]))}});function ww(e){return e.matched.some(t=>!t.meta.pageType||t.meta.pageType==Ki.PrivateOnly)}function _w(e){return e.matched.some(t=>t.meta.pageType==Ki.PublicOnly)}function xw(e,t,n){const o=Zn();if(ww(e)&&!o.isLoggedIn){n(Ft.main);return}if(_w(e)&&o.isLoggedIn){n(Ft.home);return}n()}var Ki=(e=>(e[e.Any=0]="Any",e[e.PublicOnly=1]="PublicOnly",e[e.PrivateOnly=2]="PrivateOnly",e))(Ki||{});const Gi=Gg({history:Cg("/"),routes:[{path:"/",name:Ft.main,component:bw,meta:{pageType:1}},{path:"/auth/:provider",name:Ft.auth,component:lw,meta:{pageType:1}},{path:"/home",name:Ft.home,component:()=>iw(()=>import("./HomeView-BCZ05PDj.js"),__vite__mapDeps([0,1]))}]});Gi.beforeEach(xw);const ts=Bp(ow);ts.use(jp());ts.use(Gi);ts.use(Xp,{clientId:xi.GOOGLE_CLIENT_ID,buttonConfig:{text:"continue_with",logo_alignment:"center",size:"large"}});ts.mount("#app");export{He as F,Yd as T,Pt as a,M as b,Te as c,K as d,Oe as e,oe as f,y as g,Nt as h,Je as o,F as r,ur as t,gu as u,ve as w};
