var fl=Object.defineProperty;var dl=(e,t,n)=>t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var me=(e,t,n)=>(dl(e,typeof t!="symbol"?t+"":t,n),n);var Vd=hl((qd,bn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).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 i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function qi(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function Ot(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ve(i)?vl(i):Ot(i);if(r)for(const s in r)t[s]=r[s]}return t}else{if(ve(e))return e;if(fe(e))return e}}const pl=/;(?![^(]*\))/g,ml=/:([^]+)/,gl=/\/\*.*?\*\//gs;function vl(e){const t={};return e.replace(gl,"").split(pl).forEach(n=>{if(n){const i=n.split(ml);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Xe(e){let t="";if(ve(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const i=Xe(e[n]);i&&(t+=i+" ")}else if(fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _l(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ve(t)&&(e.class=Xe(t)),n&&(e.style=Ot(n)),e}const wl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yl=qi(wl);function Is(e){return!!e||e===""}const Kn=e=>ve(e)?e:e==null?"":W(e)||fe(e)&&(e.toString===Bs||!U(e.toString))?JSON.stringify(e,Ds,2):String(e),Ds=(e,t)=>t&&t.__v_isRef?Ds(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r])=>(n[`${i} =>`]=r,n),{})}:Ls(t)?{[`Set(${t.size})`]:[...t.values()]}:fe(t)&&!W(t)&&!ks(t)?String(t):t,ue={},Rt=[],ze=()=>{},bl=()=>!1,Cl=/^on[^a-z]/,qn=e=>Cl.test(e),Yi=e=>e.startsWith("onUpdate:"),ye=Object.assign,Xi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$l=Object.prototype.hasOwnProperty,ee=(e,t)=>$l.call(e,t),W=Array.isArray,Bt=e=>Yn(e)==="[object Map]",Ls=e=>Yn(e)==="[object Set]",U=e=>typeof e=="function",ve=e=>typeof e=="string",Gi=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Rs=e=>fe(e)&&U(e.then)&&U(e.catch),Bs=Object.prototype.toString,Yn=e=>Bs.call(e),Tl=e=>Yn(e).slice(8,-1),ks=e=>Yn(e)==="[object Object]",Ji=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,An=qi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Pl=/-(\w)/g,Ye=Xn(e=>e.replace(Pl,(t,n)=>n?n.toUpperCase():"")),xl=/\B([A-Z])/g,Nt=Xn(e=>e.replace(xl,"-$1").toLowerCase()),Gn=Xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),pi=Xn(e=>e?`on${Gn(e)}`:""),an=(e,t)=>!Object.is(e,t),mi=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Qi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Pr;const El=()=>Pr||(Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Se;class Ol{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Se;try{return Se=this,t()}finally{Se=n}}}on(){Se=this}off(){Se=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;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 Al(e,t=Se){t&&t.active&&t.effects.push(e)}function Sl(){return Se}function Ml(e){Se&&Se.cleanups.push(e)}const Zi=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hs=e=>(e.w&pt)>0,zs=e=>(e.n&pt)>0,Fl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=pt},Nl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];Hs(r)&&!zs(r)?r.delete(e):t[n++]=r,r.w&=~pt,r.n&=~pt}t.length=n}},xi=new WeakMap;let en=0,pt=1;const Ei=30;let Be;const At=Symbol(""),Oi=Symbol("");class er{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Al(this,i)}run(){if(!this.active)return this.fn();let t=Be,n=ft;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Be,Be=this,ft=!0,pt=1<<++en,en<=Ei?Fl(this):xr(this),this.fn()}finally{en<=Ei&&Nl(this),pt=1<<--en,Be=this.parent,ft=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Be===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ft=!0;const js=[];function Xt(){js.push(ft),ft=!1}function Gt(){const e=js.pop();ft=e===void 0?!0:e}function Me(e,t,n){if(ft&&Be){let i=xi.get(e);i||xi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=Zi()),Ws(r)}}function Ws(e,t){let n=!1;en<=Ei?zs(e)||(e.n|=pt,n=!Hs(e)):n=!e.has(Be),n&&(e.add(Be),Be.deps.push(e))}function Ze(e,t,n,i,r,s){const o=xi.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&W(e)){const a=Qi(i);o.forEach((c,d)=>{(d==="length"||d>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":W(e)?Ji(n)&&l.push(o.get("length")):(l.push(o.get(At)),Bt(e)&&l.push(o.get(Oi)));break;case"delete":W(e)||(l.push(o.get(At)),Bt(e)&&l.push(o.get(Oi)));break;case"set":Bt(e)&&l.push(o.get(At));break}if(l.length===1)l[0]&&Ai(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);Ai(Zi(a))}}function Ai(e,t){const n=W(e)?e:[...e];for(const i of n)i.computed&&Er(i);for(const i of n)i.computed||Er(i)}function Er(e,t){(e!==Be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Il=qi("__proto__,__v_isRef,__isVue"),Us=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gi)),Dl=tr(),Ll=tr(!1,!0),Rl=tr(!0),Or=Bl();function Bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=ne(this);for(let s=0,o=this.length;s<o;s++)Me(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(ne)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const i=ne(this)[t].apply(this,n);return Gt(),i}}),e}function tr(e=!1,t=!1){return function(i,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?ea:Xs:t?Ys:qs).get(i))return i;const o=W(i);if(!e&&o&&ee(Or,r))return Reflect.get(Or,r,s);const l=Reflect.get(i,r,s);return(Gi(r)?Us.has(r):Il(r))||(e||Me(i,"get",r),t)?l:be(l)?o&&Ji(r)?l:l.value:fe(l)?e?Gs(l):rr(l):l}}const kl=Vs(),Hl=Vs(!0);function Vs(e=!1){return function(n,i,r,s){let o=n[i];if(jt(o)&&be(o)&&!be(r))return!1;if(!e&&(!In(r)&&!jt(r)&&(o=ne(o),r=ne(r)),!W(n)&&be(o)&&!be(r)))return o.value=r,!0;const l=W(n)&&Ji(i)?Number(i)<n.length:ee(n,i),a=Reflect.set(n,i,r,s);return n===ne(s)&&(l?an(r,o)&&Ze(n,"set",i,r):Ze(n,"add",i,r)),a}}function zl(e,t){const n=ee(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Ze(e,"delete",t,void 0),i}function jl(e,t){const n=Reflect.has(e,t);return(!Gi(t)||!Us.has(t))&&Me(e,"has",t),n}function Wl(e){return Me(e,"iterate",W(e)?"length":At),Reflect.ownKeys(e)}const Ks={get:Dl,set:kl,deleteProperty:zl,has:jl,ownKeys:Wl},Ul={get:Rl,set(e,t){return!0},deleteProperty(e,t){return!0}},Vl=ye({},Ks,{get:Ll,set:Hl}),nr=e=>e,Jn=e=>Reflect.getPrototypeOf(e);function Cn(e,t,n=!1,i=!1){e=e.__v_raw;const r=ne(e),s=ne(t);n||(t!==s&&Me(r,"get",t),Me(r,"get",s));const{has:o}=Jn(r),l=i?nr:n?or:un;if(o.call(r,t))return l(e.get(t));if(o.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,i=ne(n),r=ne(e);return t||(e!==r&&Me(i,"has",e),Me(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Tn(e,t=!1){return e=e.__v_raw,!t&&Me(ne(e),"iterate",At),Reflect.get(e,"size",e)}function Ar(e){e=ne(e);const t=ne(this);return Jn(t).has.call(t,e)||(t.add(e),Ze(t,"add",e,e)),this}function Sr(e,t){t=ne(t);const n=ne(this),{has:i,get:r}=Jn(n);let s=i.call(n,e);s||(e=ne(e),s=i.call(n,e));const o=r.call(n,e);return n.set(e,t),s?an(t,o)&&Ze(n,"set",e,t):Ze(n,"add",e,t),this}function Mr(e){const t=ne(this),{has:n,get:i}=Jn(t);let r=n.call(t,e);r||(e=ne(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&Ze(t,"delete",e,void 0),s}function Fr(){const e=ne(this),t=e.size!==0,n=e.clear();return t&&Ze(e,"clear",void 0,void 0),n}function Pn(e,t){return function(i,r){const s=this,o=s.__v_raw,l=ne(o),a=t?nr:e?or:un;return!e&&Me(l,"iterate",At),o.forEach((c,d)=>i.call(r,a(c),a(d),s))}}function xn(e,t,n){return function(...i){const r=this.__v_raw,s=ne(r),o=Bt(s),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=r[e](...i),d=n?nr:t?or:un;return!t&&Me(s,"iterate",a?Oi:At),{next(){const{value:p,done:m}=c.next();return m?{value:p,done:m}:{value:l?[d(p[0]),d(p[1])]:d(p),done:m}},[Symbol.iterator](){return this}}}}function st(e){return function(...t){return e==="delete"?!1:this}}function Kl(){const e={get(s){return Cn(this,s)},get size(){return Tn(this)},has:$n,add:Ar,set:Sr,delete:Mr,clear:Fr,forEach:Pn(!1,!1)},t={get(s){return Cn(this,s,!1,!0)},get size(){return Tn(this)},has:$n,add:Ar,set:Sr,delete:Mr,clear:Fr,forEach:Pn(!1,!0)},n={get(s){return Cn(this,s,!0)},get size(){return Tn(this,!0)},has(s){return $n.call(this,s,!0)},add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear"),forEach:Pn(!0,!1)},i={get(s){return Cn(this,s,!0,!0)},get size(){return Tn(this,!0)},has(s){return $n.call(this,s,!0)},add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear"),forEach:Pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=xn(s,!1,!1),n[s]=xn(s,!0,!1),t[s]=xn(s,!1,!0),i[s]=xn(s,!0,!0)}),[e,n,t,i]}const[ql,Yl,Xl,Gl]=Kl();function ir(e,t){const n=t?e?Gl:Xl:e?Yl:ql;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(ee(n,r)&&r in i?n:i,r,s)}const Jl={get:ir(!1,!1)},Ql={get:ir(!1,!0)},Zl={get:ir(!0,!1)},qs=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,ea=new WeakMap;function ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function na(e){return e.__v_skip||!Object.isExtensible(e)?0:ta(Tl(e))}function rr(e){return jt(e)?e:sr(e,!1,Ks,Jl,qs)}function ia(e){return sr(e,!1,Vl,Ql,Ys)}function Gs(e){return sr(e,!0,Ul,Zl,Xs)}function sr(e,t,n,i,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const o=na(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return r.set(e,l),l}function kt(e){return jt(e)?kt(e.__v_raw):!!(e&&e.__v_isReactive)}function jt(e){return!!(e&&e.__v_isReadonly)}function In(e){return!!(e&&e.__v_isShallow)}function Js(e){return kt(e)||jt(e)}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Qs(e){return Nn(e,"__v_skip",!0),e}const un=e=>fe(e)?rr(e):e,or=e=>fe(e)?Gs(e):e;function Zs(e){ft&&Be&&(e=ne(e),Ws(e.dep||(e.dep=Zi())))}function eo(e,t){e=ne(e),e.dep&&Ai(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function $e(e){return to(e,!1)}function ra(e){return to(e,!0)}function to(e,t){return be(e)?e:new sa(e,t)}class sa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ne(t),this._value=n?t:un(t)}get value(){return Zs(this),this._value}set value(t){const n=this.__v_isShallow||In(t)||jt(t);t=n?t:ne(t),an(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),eo(this))}}function Wt(e){return be(e)?e.value:e}const oa={get:(e,t,n)=>Wt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function no(e){return kt(e)?e:new Proxy(e,oa)}var io;class la{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[io]=!1,this._dirty=!0,this.effect=new er(t,()=>{this._dirty||(this._dirty=!0,eo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=ne(this);return Zs(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}io="__v_isReadonly";function aa(e,t,n=!1){let i,r;const s=U(e);return s?(i=e,r=ze):(i=e.get,r=e.set),new la(i,r,s||!r,n)}function dt(e,t,n,i){let r;try{r=i?e(...i):e()}catch(s){Qn(s,t,n)}return r}function Ie(e,t,n,i){if(U(e)){const s=dt(e,t,n,i);return s&&Rs(s)&&s.catch(o=>{Qn(o,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ie(e[s],t,n,i));return r}function Qn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,o,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){dt(a,null,10,[e,o,l]);return}}ua(e,n,r,i)}function ua(e,t,n,i=!0){console.error(e)}let cn=!1,Si=!1;const Pe=[];let qe=0;const Ht=[];let Je=null,Tt=0;const ro=Promise.resolve();let lr=null;function ar(e){const t=lr||ro;return e?t.then(this?e.bind(this):e):t}function ca(e){let t=qe+1,n=Pe.length;for(;t<n;){const i=t+n>>>1;fn(Pe[i])<e?t=i+1:n=i}return t}function ur(e){(!Pe.length||!Pe.includes(e,cn&&e.allowRecurse?qe+1:qe))&&(e.id==null?Pe.push(e):Pe.splice(ca(e.id),0,e),so())}function so(){!cn&&!Si&&(Si=!0,lr=ro.then(lo))}function fa(e){const t=Pe.indexOf(e);t>qe&&Pe.splice(t,1)}function da(e){W(e)?Ht.push(...e):(!Je||!Je.includes(e,e.allowRecurse?Tt+1:Tt))&&Ht.push(e),so()}function Nr(e,t=cn?qe+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function oo(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,Je){Je.push(...t);return}for(Je=t,Je.sort((n,i)=>fn(n)-fn(i)),Tt=0;Tt<Je.length;Tt++)Je[Tt]();Je=null,Tt=0}}const fn=e=>e.id==null?1/0:e.id,ha=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function lo(e){Si=!1,cn=!0,Pe.sort(ha);const t=ze;try{for(qe=0;qe<Pe.length;qe++){const n=Pe[qe];n&&n.active!==!1&&dt(n,null,14)}}finally{qe=0,Pe.length=0,oo(),cn=!1,lr=null,(Pe.length||Ht.length)&&lo()}}function pa(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ue;let r=n;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in i){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:p,trim:m}=i[d]||ue;m&&(r=n.map(_=>ve(_)?_.trim():_)),p&&(r=n.map(Qi))}let l,a=i[l=pi(t)]||i[l=pi(Ye(t))];!a&&s&&(a=i[l=pi(Nt(t))]),a&&Ie(a,e,6,r);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ie(c,e,6,r)}}function ao(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let o={},l=!1;if(!U(e)){const a=c=>{const d=ao(c,t,!0);d&&(l=!0,ye(o,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(fe(e)&&i.set(e,null),null):(W(s)?s.forEach(a=>o[a]=null):ye(o,s),fe(e)&&i.set(e,o),o)}function Zn(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Nt(t))||ee(e,t))}let Ce=null,ei=null;function Dn(e){const t=Ce;return Ce=e,ei=e&&e.type.__scopeId||null,t}function uo(e){ei=e}function co(){ei=null}const ma=e=>Ft;function Ft(e,t=Ce,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Wr(-1);const s=Dn(t);let o;try{o=e(...r)}finally{Dn(s),i._d&&Wr(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function gi(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:s,propsOptions:[o],slots:l,attrs:a,emit:c,render:d,renderCache:p,data:m,setupState:_,ctx:x,inheritAttrs:$}=e;let b,E;const N=Dn(e);try{if(n.shapeFlag&4){const L=r||i;b=Ke(d.call(L,L,p,s,_,m,x)),E=a}else{const L=t;b=Ke(L.length>1?L(s,{attrs:a,slots:l,emit:c}):L(s,null)),E=t.props?a:ga(a)}}catch(L){rn.length=0,Qn(L,e,1),b=de(De)}let A=b;if(E&&$!==!1){const L=Object.keys(E),{shapeFlag:K}=A;L.length&&K&7&&(o&&L.some(Yi)&&(E=va(E,o)),A=mt(A,E))}return n.dirs&&(A=mt(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),b=A,Dn(N),b}const ga=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},va=(e,t)=>{const n={};for(const i in e)(!Yi(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function _a(e,t,n){const{props:i,children:r,component:s}=e,{props:o,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Ir(i,o,c):!!o;if(a&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const m=d[p];if(o[m]!==i[m]&&!Zn(c,m))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:i===o?!1:i?o?Ir(i,o,c):!0:!!o;return!1}function Ir(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!Zn(n,s))return!0}return!1}function wa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ya=e=>e.__isSuspense;function ba(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):da(e)}function Ca(e,t){if(we){let n=we.provides;const i=we.parent&&we.parent.provides;i===n&&(n=we.provides=Object.create(i)),n[e]=t}}function Sn(e,t,n=!1){const i=we||Ce;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&U(t)?t.call(i.proxy):t}}function $a(e,t){return cr(e,null,t)}const En={};function ht(e,t,n){return cr(e,t,n)}function cr(e,t,{immediate:n,deep:i,flush:r,onTrack:s,onTrigger:o}=ue){const l=we;let a,c=!1,d=!1;if(be(e)?(a=()=>e.value,c=In(e)):kt(e)?(a=()=>e,i=!0):W(e)?(d=!0,c=e.some(A=>kt(A)||In(A)),a=()=>e.map(A=>{if(be(A))return A.value;if(kt(A))return Et(A);if(U(A))return dt(A,l,2)})):U(e)?t?a=()=>dt(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ie(e,l,3,[m])}:a=ze,t&&i){const A=a;a=()=>Et(A())}let p,m=A=>{p=E.onStop=()=>{dt(A,l,4)}},_;if(gn)if(m=ze,t?n&&Ie(t,l,3,[a(),d?[]:void 0,m]):a(),r==="sync"){const A=_u();_=A.__watcherHandles||(A.__watcherHandles=[])}else return ze;let x=d?new Array(e.length).fill(En):En;const $=()=>{if(!!E.active)if(t){const A=E.run();(i||c||(d?A.some((L,K)=>an(L,x[K])):an(A,x)))&&(p&&p(),Ie(t,l,3,[A,x===En?void 0:d&&x[0]===En?[]:x,m]),x=A)}else E.run()};$.allowRecurse=!!t;let b;r==="sync"?b=$:r==="post"?b=()=>Ee($,l&&l.suspense):($.pre=!0,l&&($.id=l.uid),b=()=>ur($));const E=new er(a,b);t?n?$():x=E.run():r==="post"?Ee(E.run.bind(E),l&&l.suspense):E.run();const N=()=>{E.stop(),l&&l.scope&&Xi(l.scope.effects,E)};return _&&_.push(N),N}function Ta(e,t,n){const i=this.proxy,r=ve(e)?e.includes(".")?fo(i,e):()=>i[e]:e.bind(i,i);let s;U(t)?s=t:(s=t.handler,n=t);const o=we;Ut(this);const l=cr(r,s.bind(i),n);return o?Ut(o):St(),l}function fo(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Et(e,t){if(!fe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))Et(e.value,t);else if(W(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(Ls(e)||Bt(e))e.forEach(n=>{Et(n,t)});else if(ks(e))for(const n in e)Et(e[n],t);return e}function ho(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ii(()=>{e.isMounted=!0}),vo(()=>{e.isUnmounting=!0}),e}const Ne=[Function,Array],Pa={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ne,onEnter:Ne,onAfterEnter:Ne,onEnterCancelled:Ne,onBeforeLeave:Ne,onLeave:Ne,onAfterLeave:Ne,onLeaveCancelled:Ne,onBeforeAppear:Ne,onAppear:Ne,onAfterAppear:Ne,onAppearCancelled:Ne},setup(e,{slots:t}){const n=gr(),i=ho();let r;return()=>{const s=t.default&&fr(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const $ of s)if($.type!==De){o=$;break}}const l=ne(e),{mode:a}=l;if(i.isLeaving)return vi(o);const c=Dr(o);if(!c)return vi(o);const d=dn(c,l,i,n);hn(c,d);const p=n.subTree,m=p&&Dr(p);let _=!1;const{getTransitionKey:x}=c.type;if(x){const $=x();r===void 0?r=$:$!==r&&(r=$,_=!0)}if(m&&m.type!==De&&(!Pt(c,m)||_)){const $=dn(m,l,i,n);if(hn(m,$),a==="out-in")return i.isLeaving=!0,$.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},vi(o);a==="in-out"&&c.type!==De&&($.delayLeave=(b,E,N)=>{const A=po(i,m);A[String(m.key)]=m,b._leaveCb=()=>{E(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=N})}return o}}},xa=Pa;function po(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function dn(e,t,n,i){const{appear:r,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:_,onLeaveCancelled:x,onBeforeAppear:$,onAppear:b,onAfterAppear:E,onAppearCancelled:N}=t,A=String(e.key),L=po(n,e),K=(I,V)=>{I&&Ie(I,i,9,V)},he=(I,V)=>{const J=V[1];K(I,V),W(I)?I.every(ae=>ae.length<=1)&&J():I.length<=1&&J()},z={mode:s,persisted:o,beforeEnter(I){let V=l;if(!n.isMounted)if(r)V=$||l;else return;I._leaveCb&&I._leaveCb(!0);const J=L[A];J&&Pt(e,J)&&J.el._leaveCb&&J.el._leaveCb(),K(V,[I])},enter(I){let V=a,J=c,ae=d;if(!n.isMounted)if(r)V=b||a,J=E||c,ae=N||d;else return;let M=!1;const te=I._enterCb=g=>{M||(M=!0,g?K(ae,[I]):K(J,[I]),z.delayedLeave&&z.delayedLeave(),I._enterCb=void 0)};V?he(V,[I,te]):te()},leave(I,V){const J=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return V();K(p,[I]);let ae=!1;const M=I._leaveCb=te=>{ae||(ae=!0,V(),te?K(x,[I]):K(_,[I]),I._leaveCb=void 0,L[J]===e&&delete L[J])};L[J]=e,m?he(m,[I,M]):M()},clone(I){return dn(I,t,n,i)}};return z}function vi(e){if(ti(e))return e=mt(e),e.children=null,e}function Dr(e){return ti(e)?e.children?e.children[0]:void 0:e}function hn(e,t){e.shapeFlag&6&&e.component?hn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fr(e,t=!1,n){let i=[],r=0;for(let s=0;s<e.length;s++){let o=e[s];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Te?(o.patchFlag&128&&r++,i=i.concat(fr(o.children,t,l))):(t||o.type!==De)&&i.push(l!=null?mt(o,{key:l}):o)}if(r>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}function Le(e){return U(e)?{setup:e,name:e.name}:e}const tn=e=>!!e.type.__asyncLoader,ti=e=>e.type.__isKeepAlive;function Ea(e,t){mo(e,"a",t)}function Oa(e,t){mo(e,"da",t)}function mo(e,t,n=we){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ni(t,i,n),n){let r=n.parent;for(;r&&r.parent;)ti(r.parent.vnode)&&Aa(i,t,n,r),r=r.parent}}function Aa(e,t,n,i){const r=ni(t,e,i,!0);_o(()=>{Xi(i[t],r)},n)}function ni(e,t,n=we,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Xt(),Ut(n);const l=Ie(t,n,e,o);return St(),Gt(),l});return i?r.unshift(s):r.push(s),s}}const nt=e=>(t,n=we)=>(!gn||e==="sp")&&ni(e,(...i)=>t(...i),n),Sa=nt("bm"),ii=nt("m"),Ma=nt("bu"),go=nt("u"),vo=nt("bum"),_o=nt("um"),Fa=nt("sp"),Na=nt("rtg"),Ia=nt("rtc");function Da(e,t=we){ni("ec",e,t)}function La(e,t){const n=Ce;if(n===null)return e;const i=oi(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,l,a,c=ue]=t[s];o&&(U(o)&&(o={mounted:o,updated:o}),o.deep&&Et(l),r.push({dir:o,instance:i,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function _t(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];s&&(l.oldValue=s[o].value);let a=l.dir[i];a&&(Xt(),Ie(a,n,8,[e.el,l,e,t]),Gt())}}const wo="components",Ra="directives";function pn(e,t){return yo(wo,e,!0,t)||e}const Ba=Symbol();function ka(e){return yo(Ra,e)}function yo(e,t,n=!0,i=!1){const r=Ce||we;if(r){const s=r.type;if(e===wo){const l=pu(s,!1);if(l&&(l===t||l===Ye(t)||l===Gn(Ye(t))))return s}const o=Lr(r[e]||s[e],t)||Lr(r.appContext[e],t);return!o&&i?s:o}}function Lr(e,t){return e&&(e[t]||e[Ye(t)]||e[Gn(Ye(t))])}function Ha(e,t,n,i){let r;const s=n&&n[i];if(W(e)||ve(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,s&&s[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,s&&s[o])}else if(fe(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,s&&s[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[i]=r),r}function Ln(e,t,n={},i,r){if(Ce.isCE||Ce.parent&&tn(Ce.parent)&&Ce.parent.isCE)return t!=="default"&&(n.name=t),de("slot",n,i&&i());let s=e[t];s&&s._c&&(s._d=!1),ce();const o=s&&bo(s(n)),l=Jt(Te,{key:n.key||o&&o.key||`_${t}`},o||(i?i():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function bo(e){return e.some(t=>Bn(t)?!(t.type===De||t.type===Te&&!bo(t.children)):!0)?e:null}const Mi=e=>e?No(e)?oi(e)||e.proxy:Mi(e.parent):null,nn=ye(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=>Mi(e.parent),$root:e=>Mi(e.root),$emit:e=>e.emit,$options:e=>dr(e),$forceUpdate:e=>e.f||(e.f=()=>ur(e.update)),$nextTick:e=>e.n||(e.n=ar.bind(e.proxy)),$watch:e=>Ta.bind(e)}),_i=(e,t)=>e!==ue&&!e.__isScriptSetup&&ee(e,t),za={get({_:e},t){const{ctx:n,setupState:i,data:r,props:s,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const _=o[t];if(_!==void 0)switch(_){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(_i(i,t))return o[t]=1,i[t];if(r!==ue&&ee(r,t))return o[t]=2,r[t];if((c=e.propsOptions[0])&&ee(c,t))return o[t]=3,s[t];if(n!==ue&&ee(n,t))return o[t]=4,n[t];Fi&&(o[t]=0)}}const d=nn[t];let p,m;if(d)return t==="$attrs"&&Me(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==ue&&ee(n,t))return o[t]=4,n[t];if(m=a.config.globalProperties,ee(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return _i(r,t)?(r[t]=n,!0):i!==ue&&ee(i,t)?(i[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},o){let l;return!!n[o]||e!==ue&&ee(e,o)||_i(t,o)||(l=s[0])&&ee(l,o)||ee(i,o)||ee(nn,o)||ee(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Fi=!0;function ja(e){const t=dr(e),n=e.proxy,i=e.ctx;Fi=!1,t.beforeCreate&&Rr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:o,watch:l,provide:a,inject:c,created:d,beforeMount:p,mounted:m,beforeUpdate:_,updated:x,activated:$,deactivated:b,beforeDestroy:E,beforeUnmount:N,destroyed:A,unmounted:L,render:K,renderTracked:he,renderTriggered:z,errorCaptured:I,serverPrefetch:V,expose:J,inheritAttrs:ae,components:M,directives:te,filters:g}=t;if(c&&Wa(c,i,null,e.appContext.config.unwrapInjectedRef),o)for(const B in o){const k=o[B];U(k)&&(i[B]=k.bind(n))}if(r){const B=r.call(n,n);fe(B)&&(e.data=rr(B))}if(Fi=!0,s)for(const B in s){const k=s[B],X=U(k)?k.bind(n,n):U(k.get)?k.get.bind(n,n):ze,G=!U(k)&&U(k.set)?k.set.bind(n):ze,q=vn({get:X,set:G});Object.defineProperty(i,B,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(l)for(const B in l)Co(l[B],i,n,B);if(a){const B=U(a)?a.call(n):a;Reflect.ownKeys(B).forEach(k=>{Ca(k,B[k])})}d&&Rr(d,e,"c");function H(B,k){W(k)?k.forEach(X=>B(X.bind(n))):k&&B(k.bind(n))}if(H(Sa,p),H(ii,m),H(Ma,_),H(go,x),H(Ea,$),H(Oa,b),H(Da,I),H(Ia,he),H(Na,z),H(vo,N),H(_o,L),H(Fa,V),W(J))if(J.length){const B=e.exposed||(e.exposed={});J.forEach(k=>{Object.defineProperty(B,k,{get:()=>n[k],set:X=>n[k]=X})})}else e.exposed||(e.exposed={});K&&e.render===ze&&(e.render=K),ae!=null&&(e.inheritAttrs=ae),M&&(e.components=M),te&&(e.directives=te)}function Wa(e,t,n=ze,i=!1){W(e)&&(e=Ni(e));for(const r in e){const s=e[r];let o;fe(s)?"default"in s?o=Sn(s.from||r,s.default,!0):o=Sn(s.from||r):o=Sn(s),be(o)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function Rr(e,t,n){Ie(W(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Co(e,t,n,i){const r=i.includes(".")?fo(n,i):()=>n[i];if(ve(e)){const s=t[e];U(s)&&ht(r,s)}else if(U(e))ht(r,e.bind(n));else if(fe(e))if(W(e))e.forEach(s=>Co(s,t,n,i));else{const s=U(e.handler)?e.handler.bind(n):t[e.handler];U(s)&&ht(r,s,e)}}function dr(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(c=>Rn(a,c,o,!0)),Rn(a,t,o)),fe(t)&&s.set(t,a),a}function Rn(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&Rn(e,s,n,!0),r&&r.forEach(o=>Rn(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const l=Ua[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ua={data:Br,props:Ct,emits:Ct,methods:Ct,computed:Ct,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Ct,directives:Ct,watch:Ka,provide:Br,inject:Va};function Br(e,t){return t?e?function(){return ye(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Va(e,t){return Ct(Ni(e),Ni(t))}function Ni(e){if(W(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Ct(e,t){return e?ye(ye(Object.create(null),e),t):t}function Ka(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const i in t)n[i]=xe(e[i],t[i]);return n}function qa(e,t,n,i=!1){const r={},s={};Nn(s,si,1),e.propsDefaults=Object.create(null),$o(e,t,r,s);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=i?r:ia(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ya(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:o}}=e,l=ne(r),[a]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let m=d[p];if(Zn(e.emitsOptions,m))continue;const _=t[m];if(a)if(ee(s,m))_!==s[m]&&(s[m]=_,c=!0);else{const x=Ye(m);r[x]=Ii(a,l,x,_,e,!1)}else _!==s[m]&&(s[m]=_,c=!0)}}}else{$o(e,t,r,s)&&(c=!0);let d;for(const p in l)(!t||!ee(t,p)&&((d=Nt(p))===p||!ee(t,d)))&&(a?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Ii(a,l,p,void 0,e,!0)):delete r[p]);if(s!==l)for(const p in s)(!t||!ee(t,p)&&!0)&&(delete s[p],c=!0)}c&&Ze(e,"set","$attrs")}function $o(e,t,n,i){const[r,s]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(An(a))continue;const c=t[a];let d;r&&ee(r,d=Ye(a))?!s||!s.includes(d)?n[d]=c:(l||(l={}))[d]=c:Zn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,o=!0)}if(s){const a=ne(n),c=l||ue;for(let d=0;d<s.length;d++){const p=s[d];n[p]=Ii(r,a,p,c[p],e,!ee(c,p))}}return o}function Ii(e,t,n,i,r,s){const o=e[n];if(o!=null){const l=ee(o,"default");if(l&&i===void 0){const a=o.default;if(o.type!==Function&&U(a)){const{propsDefaults:c}=r;n in c?i=c[n]:(Ut(r),i=c[n]=a.call(null,t),St())}else i=a}o[0]&&(s&&!l?i=!1:o[1]&&(i===""||i===Nt(n))&&(i=!0))}return i}function To(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,o={},l=[];let a=!1;if(!U(e)){const d=p=>{a=!0;const[m,_]=To(p,t,!0);ye(o,m),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!a)return fe(e)&&i.set(e,Rt),Rt;if(W(s))for(let d=0;d<s.length;d++){const p=Ye(s[d]);kr(p)&&(o[p]=ue)}else if(s)for(const d in s){const p=Ye(d);if(kr(p)){const m=s[d],_=o[p]=W(m)||U(m)?{type:m}:Object.assign({},m);if(_){const x=jr(Boolean,_.type),$=jr(String,_.type);_[0]=x>-1,_[1]=$<0||x<$,(x>-1||ee(_,"default"))&&l.push(p)}}}const c=[o,l];return fe(e)&&i.set(e,c),c}function kr(e){return e[0]!=="$"}function Hr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function zr(e,t){return Hr(e)===Hr(t)}function jr(e,t){return W(t)?t.findIndex(n=>zr(n,e)):U(t)&&zr(t,e)?0:-1}const Po=e=>e[0]==="_"||e==="$stable",hr=e=>W(e)?e.map(Ke):[Ke(e)],Xa=(e,t,n)=>{if(t._n)return t;const i=Ft((...r)=>hr(t(...r)),n);return i._c=!1,i},xo=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Po(r))continue;const s=e[r];if(U(s))t[r]=Xa(r,s,i);else if(s!=null){const o=hr(s);t[r]=()=>o}}},Eo=(e,t)=>{const n=hr(t);e.slots.default=()=>n},Ga=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ne(t),Nn(t,"_",n)):xo(t,e.slots={})}else e.slots={},t&&Eo(e,t);Nn(e.slots,si,1)},Ja=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,o=ue;if(i.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ye(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xo(t,r)),o=t}else t&&(Eo(e,t),o={default:1});if(s)for(const l in r)!Po(l)&&!(l in o)&&delete r[l]};function Oo(){return{app:null,config:{isNativeTag:bl,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 Qa=0;function Za(e,t){return function(i,r=null){U(i)||(i=Object.assign({},i)),r!=null&&!fe(r)&&(r=null);const s=Oo(),o=new Set;let l=!1;const a=s.app={_uid:Qa++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:wu,get config(){return s.config},set config(c){},use(c,...d){return o.has(c)||(c&&U(c.install)?(o.add(c),c.install(a,...d)):U(c)&&(o.add(c),c(a,...d))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,d){return d?(s.components[c]=d,a):s.components[c]},directive(c,d){return d?(s.directives[c]=d,a):s.directives[c]},mount(c,d,p){if(!l){const m=de(i,r);return m.appContext=s,d&&t?t(m,c):e(m,c,p),l=!0,a._container=c,c.__vue_app__=a,oi(m.component)||m.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,d){return s.provides[c]=d,a}};return a}}function Di(e,t,n,i,r=!1){if(W(e)){e.forEach((m,_)=>Di(m,t&&(W(t)?t[_]:t),n,i,r));return}if(tn(i)&&!r)return;const s=i.shapeFlag&4?oi(i.component)||i.component.proxy:i.el,o=r?null:s,{i:l,r:a}=e,c=t&&t.r,d=l.refs===ue?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(ve(c)?(d[c]=null,ee(p,c)&&(p[c]=null)):be(c)&&(c.value=null)),U(a))dt(a,l,12,[o,d]);else{const m=ve(a),_=be(a);if(m||_){const x=()=>{if(e.f){const $=m?ee(p,a)?p[a]:d[a]:a.value;r?W($)&&Xi($,s):W($)?$.includes(s)||$.push(s):m?(d[a]=[s],ee(p,a)&&(p[a]=d[a])):(a.value=[s],e.k&&(d[e.k]=a.value))}else m?(d[a]=o,ee(p,a)&&(p[a]=o)):_&&(a.value=o,e.k&&(d[e.k]=o))};o?(x.id=-1,Ee(x,n)):x()}}}const Ee=ba;function eu(e){return tu(e)}function tu(e,t){const n=El();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:o,createText:l,createComment:a,setText:c,setElementText:d,parentNode:p,nextSibling:m,setScopeId:_=ze,insertStaticContent:x}=e,$=(u,f,v,y=null,w=null,P=null,S=!1,T=null,O=!!f.dynamicChildren)=>{if(u===f)return;u&&!Pt(u,f)&&(y=re(u),Q(u,w,P,!0),u=null),f.patchFlag===-2&&(O=!1,f.dynamicChildren=null);const{type:C,ref:D,shapeFlag:F}=f;switch(C){case ri:b(u,f,v,y);break;case De:E(u,f,v,y);break;case wi:u==null&&N(f,v,y,S);break;case Te:M(u,f,v,y,w,P,S,T,O);break;default:F&1?K(u,f,v,y,w,P,S,T,O):F&6?te(u,f,v,y,w,P,S,T,O):(F&64||F&128)&&C.process(u,f,v,y,w,P,S,T,O,je)}D!=null&&w&&Di(D,u&&u.ref,P,f||u,!f)},b=(u,f,v,y)=>{if(u==null)i(f.el=l(f.children),v,y);else{const w=f.el=u.el;f.children!==u.children&&c(w,f.children)}},E=(u,f,v,y)=>{u==null?i(f.el=a(f.children||""),v,y):f.el=u.el},N=(u,f,v,y)=>{[u.el,u.anchor]=x(u.children,f,v,y,u.el,u.anchor)},A=({el:u,anchor:f},v,y)=>{let w;for(;u&&u!==f;)w=m(u),i(u,v,y),u=w;i(f,v,y)},L=({el:u,anchor:f})=>{let v;for(;u&&u!==f;)v=m(u),r(u),u=v;r(f)},K=(u,f,v,y,w,P,S,T,O)=>{S=S||f.type==="svg",u==null?he(f,v,y,w,P,S,T,O):V(u,f,w,P,S,T,O)},he=(u,f,v,y,w,P,S,T)=>{let O,C;const{type:D,props:F,shapeFlag:R,transition:j,dirs:Y}=u;if(O=u.el=o(u.type,P,F&&F.is,F),R&8?d(O,u.children):R&16&&I(u.children,O,null,y,w,P&&D!=="foreignObject",S,T),Y&&_t(u,null,y,"created"),F){for(const se in F)se!=="value"&&!An(se)&&s(O,se,null,F[se],P,u.children,y,w,pe);"value"in F&&s(O,"value",null,F.value),(C=F.onVnodeBeforeMount)&&Ve(C,y,u)}z(O,u,u.scopeId,S,y),Y&&_t(u,null,y,"beforeMount");const le=(!w||w&&!w.pendingBranch)&&j&&!j.persisted;le&&j.beforeEnter(O),i(O,f,v),((C=F&&F.onVnodeMounted)||le||Y)&&Ee(()=>{C&&Ve(C,y,u),le&&j.enter(O),Y&&_t(u,null,y,"mounted")},w)},z=(u,f,v,y,w)=>{if(v&&_(u,v),y)for(let P=0;P<y.length;P++)_(u,y[P]);if(w){let P=w.subTree;if(f===P){const S=w.vnode;z(u,S,S.scopeId,S.slotScopeIds,w.parent)}}},I=(u,f,v,y,w,P,S,T,O=0)=>{for(let C=O;C<u.length;C++){const D=u[C]=T?ct(u[C]):Ke(u[C]);$(null,D,f,v,y,w,P,S,T)}},V=(u,f,v,y,w,P,S)=>{const T=f.el=u.el;let{patchFlag:O,dynamicChildren:C,dirs:D}=f;O|=u.patchFlag&16;const F=u.props||ue,R=f.props||ue;let j;v&&wt(v,!1),(j=R.onVnodeBeforeUpdate)&&Ve(j,v,f,u),D&&_t(f,u,v,"beforeUpdate"),v&&wt(v,!0);const Y=w&&f.type!=="foreignObject";if(C?J(u.dynamicChildren,C,T,v,y,Y,P):S||k(u,f,T,null,v,y,Y,P,!1),O>0){if(O&16)ae(T,f,F,R,v,y,w);else if(O&2&&F.class!==R.class&&s(T,"class",null,R.class,w),O&4&&s(T,"style",F.style,R.style,w),O&8){const le=f.dynamicProps;for(let se=0;se<le.length;se++){const ge=le[se],Re=F[ge],Dt=R[ge];(Dt!==Re||ge==="value")&&s(T,ge,Re,Dt,w,u.children,v,y,pe)}}O&1&&u.children!==f.children&&d(T,f.children)}else!S&&C==null&&ae(T,f,F,R,v,y,w);((j=R.onVnodeUpdated)||D)&&Ee(()=>{j&&Ve(j,v,f,u),D&&_t(f,u,v,"updated")},y)},J=(u,f,v,y,w,P,S)=>{for(let T=0;T<f.length;T++){const O=u[T],C=f[T],D=O.el&&(O.type===Te||!Pt(O,C)||O.shapeFlag&70)?p(O.el):v;$(O,C,D,null,y,w,P,S,!0)}},ae=(u,f,v,y,w,P,S)=>{if(v!==y){if(v!==ue)for(const T in v)!An(T)&&!(T in y)&&s(u,T,v[T],null,S,f.children,w,P,pe);for(const T in y){if(An(T))continue;const O=y[T],C=v[T];O!==C&&T!=="value"&&s(u,T,C,O,S,f.children,w,P,pe)}"value"in y&&s(u,"value",v.value,y.value)}},M=(u,f,v,y,w,P,S,T,O)=>{const C=f.el=u?u.el:l(""),D=f.anchor=u?u.anchor:l("");let{patchFlag:F,dynamicChildren:R,slotScopeIds:j}=f;j&&(T=T?T.concat(j):j),u==null?(i(C,v,y),i(D,v,y),I(f.children,v,D,w,P,S,T,O)):F>0&&F&64&&R&&u.dynamicChildren?(J(u.dynamicChildren,R,v,w,P,S,T),(f.key!=null||w&&f===w.subTree)&&Ao(u,f,!0)):k(u,f,v,D,w,P,S,T,O)},te=(u,f,v,y,w,P,S,T,O)=>{f.slotScopeIds=T,u==null?f.shapeFlag&512?w.ctx.activate(f,v,y,S,O):g(f,v,y,w,P,S,O):h(u,f,O)},g=(u,f,v,y,w,P,S)=>{const T=u.component=uu(u,y,w);if(ti(u)&&(T.ctx.renderer=je),cu(T),T.asyncDep){if(w&&w.registerDep(T,H),!u.el){const O=T.subTree=de(De);E(null,O,f,v)}return}H(T,u,f,v,w,P,S)},h=(u,f,v)=>{const y=f.component=u.component;if(_a(u,f,v))if(y.asyncDep&&!y.asyncResolved){B(y,f,v);return}else y.next=f,fa(y.update),y.update();else f.el=u.el,y.vnode=f},H=(u,f,v,y,w,P,S)=>{const T=()=>{if(u.isMounted){let{next:D,bu:F,u:R,parent:j,vnode:Y}=u,le=D,se;wt(u,!1),D?(D.el=Y.el,B(u,D,S)):D=Y,F&&mi(F),(se=D.props&&D.props.onVnodeBeforeUpdate)&&Ve(se,j,D,Y),wt(u,!0);const ge=gi(u),Re=u.subTree;u.subTree=ge,$(Re,ge,p(Re.el),re(Re),u,w,P),D.el=ge.el,le===null&&wa(u,ge.el),R&&Ee(R,w),(se=D.props&&D.props.onVnodeUpdated)&&Ee(()=>Ve(se,j,D,Y),w)}else{let D;const{el:F,props:R}=f,{bm:j,m:Y,parent:le}=u,se=tn(f);if(wt(u,!1),j&&mi(j),!se&&(D=R&&R.onVnodeBeforeMount)&&Ve(D,le,f),wt(u,!0),F&&rt){const ge=()=>{u.subTree=gi(u),rt(F,u.subTree,u,w,null)};se?f.type.__asyncLoader().then(()=>!u.isUnmounted&&ge()):ge()}else{const ge=u.subTree=gi(u);$(null,ge,v,y,u,w,P),f.el=ge.el}if(Y&&Ee(Y,w),!se&&(D=R&&R.onVnodeMounted)){const ge=f;Ee(()=>Ve(D,le,ge),w)}(f.shapeFlag&256||le&&tn(le.vnode)&&le.vnode.shapeFlag&256)&&u.a&&Ee(u.a,w),u.isMounted=!0,f=v=y=null}},O=u.effect=new er(T,()=>ur(C),u.scope),C=u.update=()=>O.run();C.id=u.uid,wt(u,!0),C()},B=(u,f,v)=>{f.component=u;const y=u.vnode.props;u.vnode=f,u.next=null,Ya(u,f.props,y,v),Ja(u,f.children,v),Xt(),Nr(),Gt()},k=(u,f,v,y,w,P,S,T,O=!1)=>{const C=u&&u.children,D=u?u.shapeFlag:0,F=f.children,{patchFlag:R,shapeFlag:j}=f;if(R>0){if(R&128){G(C,F,v,y,w,P,S,T,O);return}else if(R&256){X(C,F,v,y,w,P,S,T,O);return}}j&8?(D&16&&pe(C,w,P),F!==C&&d(v,F)):D&16?j&16?G(C,F,v,y,w,P,S,T,O):pe(C,w,P,!0):(D&8&&d(v,""),j&16&&I(F,v,y,w,P,S,T,O))},X=(u,f,v,y,w,P,S,T,O)=>{u=u||Rt,f=f||Rt;const C=u.length,D=f.length,F=Math.min(C,D);let R;for(R=0;R<F;R++){const j=f[R]=O?ct(f[R]):Ke(f[R]);$(u[R],j,v,null,w,P,S,T,O)}C>D?pe(u,w,P,!0,!1,F):I(f,v,y,w,P,S,T,O,F)},G=(u,f,v,y,w,P,S,T,O)=>{let C=0;const D=f.length;let F=u.length-1,R=D-1;for(;C<=F&&C<=R;){const j=u[C],Y=f[C]=O?ct(f[C]):Ke(f[C]);if(Pt(j,Y))$(j,Y,v,null,w,P,S,T,O);else break;C++}for(;C<=F&&C<=R;){const j=u[F],Y=f[R]=O?ct(f[R]):Ke(f[R]);if(Pt(j,Y))$(j,Y,v,null,w,P,S,T,O);else break;F--,R--}if(C>F){if(C<=R){const j=R+1,Y=j<D?f[j].el:y;for(;C<=R;)$(null,f[C]=O?ct(f[C]):Ke(f[C]),v,Y,w,P,S,T,O),C++}}else if(C>R)for(;C<=F;)Q(u[C],w,P,!0),C++;else{const j=C,Y=C,le=new Map;for(C=Y;C<=R;C++){const Ae=f[C]=O?ct(f[C]):Ke(f[C]);Ae.key!=null&&le.set(Ae.key,C)}let se,ge=0;const Re=R-Y+1;let Dt=!1,Cr=0;const Qt=new Array(Re);for(C=0;C<Re;C++)Qt[C]=0;for(C=j;C<=F;C++){const Ae=u[C];if(ge>=Re){Q(Ae,w,P,!0);continue}let Ue;if(Ae.key!=null)Ue=le.get(Ae.key);else for(se=Y;se<=R;se++)if(Qt[se-Y]===0&&Pt(Ae,f[se])){Ue=se;break}Ue===void 0?Q(Ae,w,P,!0):(Qt[Ue-Y]=C+1,Ue>=Cr?Cr=Ue:Dt=!0,$(Ae,f[Ue],v,null,w,P,S,T,O),ge++)}const $r=Dt?nu(Qt):Rt;for(se=$r.length-1,C=Re-1;C>=0;C--){const Ae=Y+C,Ue=f[Ae],Tr=Ae+1<D?f[Ae+1].el:y;Qt[C]===0?$(null,Ue,v,Tr,w,P,S,T,O):Dt&&(se<0||C!==$r[se]?q(Ue,v,Tr,2):se--)}}},q=(u,f,v,y,w=null)=>{const{el:P,type:S,transition:T,children:O,shapeFlag:C}=u;if(C&6){q(u.component.subTree,f,v,y);return}if(C&128){u.suspense.move(f,v,y);return}if(C&64){S.move(u,f,v,je);return}if(S===Te){i(P,f,v);for(let F=0;F<O.length;F++)q(O[F],f,v,y);i(u.anchor,f,v);return}if(S===wi){A(u,f,v);return}if(y!==2&&C&1&&T)if(y===0)T.beforeEnter(P),i(P,f,v),Ee(()=>T.enter(P),w);else{const{leave:F,delayLeave:R,afterLeave:j}=T,Y=()=>i(P,f,v),le=()=>{F(P,()=>{Y(),j&&j()})};R?R(P,Y,le):le()}else i(P,f,v)},Q=(u,f,v,y=!1,w=!1)=>{const{type:P,props:S,ref:T,children:O,dynamicChildren:C,shapeFlag:D,patchFlag:F,dirs:R}=u;if(T!=null&&Di(T,null,v,u,!0),D&256){f.ctx.deactivate(u);return}const j=D&1&&R,Y=!tn(u);let le;if(Y&&(le=S&&S.onVnodeBeforeUnmount)&&Ve(le,f,u),D&6)Oe(u.component,v,y);else{if(D&128){u.suspense.unmount(v,y);return}j&&_t(u,null,f,"beforeUnmount"),D&64?u.type.remove(u,f,v,w,je,y):C&&(P!==Te||F>0&&F&64)?pe(C,f,v,!1,!0):(P===Te&&F&384||!w&&D&16)&&pe(O,f,v),y&&Fe(u)}(Y&&(le=S&&S.onVnodeUnmounted)||j)&&Ee(()=>{le&&Ve(le,f,u),j&&_t(u,null,f,"unmounted")},v)},Fe=u=>{const{type:f,el:v,anchor:y,transition:w}=u;if(f===Te){oe(v,y);return}if(f===wi){L(u);return}const P=()=>{r(v),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:S,delayLeave:T}=w,O=()=>S(v,P);T?T(u.el,P,O):O()}else P()},oe=(u,f)=>{let v;for(;u!==f;)v=m(u),r(u),u=v;r(f)},Oe=(u,f,v)=>{const{bum:y,scope:w,update:P,subTree:S,um:T}=u;y&&mi(y),w.stop(),P&&(P.active=!1,Q(S,u,f,v)),T&&Ee(T,f),Ee(()=>{u.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},pe=(u,f,v,y=!1,w=!1,P=0)=>{for(let S=P;S<u.length;S++)Q(u[S],f,v,y,w)},re=u=>u.shapeFlag&6?re(u.component.subTree):u.shapeFlag&128?u.suspense.next():m(u.anchor||u.el),It=(u,f,v)=>{u==null?f._vnode&&Q(f._vnode,null,null,!0):$(f._vnode||null,u,f,null,null,null,v),Nr(),oo(),f._vnode=u},je={p:$,um:Q,m:q,r:Fe,mt:g,mc:I,pc:k,pbc:J,n:re,o:e};let We,rt;return t&&([We,rt]=t(je)),{render:It,hydrate:We,createApp:Za(It,We)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ao(e,t,n=!1){const i=e.children,r=t.children;if(W(i)&&W(r))for(let s=0;s<i.length;s++){const o=i[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=ct(r[s]),l.el=o.el),n||Ao(o,l)),l.type===ri&&(l.el=o.el)}}function nu(e){const t=e.slice(),n=[0];let i,r,s,o,l;const a=e.length;for(i=0;i<a;i++){const c=e[i];if(c!==0){if(r=n[n.length-1],e[r]<c){t[i]=r,n.push(i);continue}for(s=0,o=n.length-1;s<o;)l=s+o>>1,e[n[l]]<c?s=l+1:o=l;c<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const iu=e=>e.__isTeleport,Te=Symbol(void 0),ri=Symbol(void 0),De=Symbol(void 0),wi=Symbol(void 0),rn=[];let He=null;function ce(e=!1){rn.push(He=e?null:[])}function ru(){rn.pop(),He=rn[rn.length-1]||null}let mn=1;function Wr(e){mn+=e}function So(e){return e.dynamicChildren=mn>0?He||Rt:null,ru(),mn>0&&He&&He.push(e),e}function _e(e,t,n,i,r,s){return So(ie(e,t,n,i,r,s,!0))}function Jt(e,t,n,i,r){return So(de(e,t,n,i,r,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function Pt(e,t){return e.type===t.type&&e.key===t.key}const si="__vInternal",Mo=({key:e})=>e!=null?e:null,Mn=({ref:e,ref_key:t,ref_for:n})=>e!=null?ve(e)||be(e)||U(e)?{i:Ce,r:e,k:t,f:!!n}:e:null;function ie(e,t=null,n=null,i=0,r=null,s=e===Te?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&Mn(t),scopeId:ei,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:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ce};return l?(pr(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),mn>0&&!o&&He&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&He.push(a),a}const de=su;function su(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Ba)&&(e=De),Bn(e)){const l=mt(e,t,!0);return n&&pr(l,n),mn>0&&!s&&He&&(l.shapeFlag&6?He[He.indexOf(e)]=l:He.push(l)),l.patchFlag|=-2,l}if(mu(e)&&(e=e.__vccOpts),t){t=Fo(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=Xe(l)),fe(a)&&(Js(a)&&!W(a)&&(a=ye({},a)),t.style=Ot(a))}const o=ve(e)?1:ya(e)?128:iu(e)?64:fe(e)?4:U(e)?2:0;return ie(e,t,n,i,r,o,s,!0)}function Fo(e){return e?Js(e)||si in e?ye({},e):e:null}function mt(e,t,n=!1){const{props:i,ref:r,patchFlag:s,children:o}=e,l=t?mr(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Mo(l),ref:t&&t.ref?n&&r?W(r)?r.concat(Mn(t)):[r,Mn(t)]:Mn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function ou(e=" ",t=0){return de(ri,null,e,t)}function Li(e="",t=!1){return t?(ce(),Jt(De,null,e)):de(De,null,e)}function Ke(e){return e==null||typeof e=="boolean"?de(De):W(e)?de(Te,null,e.slice()):typeof e=="object"?ct(e):de(ri,null,String(e))}function ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function pr(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),pr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(si in t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else U(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),i&64?(n=16,t=[ou(t)]):n=8);e.children=t,e.shapeFlag|=n}function mr(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Xe([t.class,i.class]));else if(r==="style")t.style=Ot([t.style,i.style]);else if(qn(r)){const s=t[r],o=i[r];o&&s!==o&&!(W(s)&&s.includes(o))&&(t[r]=s?[].concat(s,o):o)}else r!==""&&(t[r]=i[r])}return t}function Ve(e,t,n,i=null){Ie(e,t,7,[n,i])}const lu=Oo();let au=0;function uu(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||lu,s={uid:au++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ol(!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:To(i,r),emitsOptions:ao(i,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:i.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext: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=pa.bind(null,s),e.ce&&e.ce(s),s}let we=null;const gr=()=>we||Ce,Ut=e=>{we=e,e.scope.on()},St=()=>{we&&we.scope.off(),we=null};function No(e){return e.vnode.shapeFlag&4}let gn=!1;function cu(e,t=!1){gn=t;const{props:n,children:i}=e.vnode,r=No(e);qa(e,n,r,t),Ga(e,i);const s=r?fu(e,t):void 0;return gn=!1,s}function fu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qs(new Proxy(e.ctx,za));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?hu(e):null;Ut(e),Xt();const s=dt(i,e,0,[e.props,r]);if(Gt(),St(),Rs(s)){if(s.then(St,St),t)return s.then(o=>{Ur(e,o,t)}).catch(o=>{Qn(o,e,0)});e.asyncDep=s}else Ur(e,s,t)}else Io(e,t)}function Ur(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=no(t)),Io(e,n)}let Vr;function Io(e,t,n){const i=e.type;if(!e.render){if(!t&&Vr&&!i.render){const r=i.template||dr(e).template;if(r){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=ye(ye({isCustomElement:s,delimiters:l},o),a);i.render=Vr(r,c)}}e.render=i.render||ze}Ut(e),Xt(),ja(e),Gt(),St()}function du(e){return new Proxy(e.attrs,{get(t,n){return Me(e,"get","$attrs"),t[n]}})}function hu(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=du(e))},slots:e.slots,emit:e.emit,expose:t}}function oi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(no(Qs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}}))}function pu(e,t=!0){return U(e)?e.displayName||e.name:e.name||t&&e.__name}function mu(e){return U(e)&&"__vccOpts"in e}const vn=(e,t)=>aa(e,t,gn);function gu(e,t,n){const i=arguments.length;return i===2?fe(t)&&!W(t)?Bn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Bn(n)&&(n=[n]),de(e,t,n))}const vu=Symbol(""),_u=()=>Sn(vu),wu="3.2.45",yu="http://www.w3.org/2000/svg",xt=typeof document<"u"?document:null,Kr=xt&&xt.createElement("template"),bu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?xt.createElementNS(yu,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const o=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Kr.innerHTML=i?`<svg>${e}</svg>`:e;const l=Kr.content;if(i){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Cu(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function $u(e,t,n){const i=e.style,r=ve(n);if(n&&!r){for(const s in n)Ri(i,s,n[s]);if(t&&!ve(t))for(const s in t)n[s]==null&&Ri(i,s,"")}else{const s=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}const qr=/\s*!important$/;function Ri(e,t,n){if(W(n))n.forEach(i=>Ri(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Tu(e,t);qr.test(n)?e.setProperty(Nt(i),n.replace(qr,""),"important"):e[i]=n}}const Yr=["Webkit","Moz","ms"],yi={};function Tu(e,t){const n=yi[t];if(n)return n;let i=Ye(t);if(i!=="filter"&&i in e)return yi[t]=i;i=Gn(i);for(let r=0;r<Yr.length;r++){const s=Yr[r]+i;if(s in e)return yi[t]=s}return t}const Xr="http://www.w3.org/1999/xlink";function Pu(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Xr,t.slice(6,t.length)):e.setAttributeNS(Xr,t,n);else{const s=yl(t);n==null||s&&!Is(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function xu(e,t,n,i,r,s,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,r,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n==null?"":n;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Is(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Eu(e,t,n,i){e.addEventListener(t,n,i)}function Ou(e,t,n,i){e.removeEventListener(t,n,i)}function Au(e,t,n,i,r=null){const s=e._vei||(e._vei={}),o=s[t];if(i&&o)o.value=i;else{const[l,a]=Su(t);if(i){const c=s[t]=Nu(i,r);Eu(e,l,c,a)}else o&&(Ou(e,l,o,a),s[t]=void 0)}}const Gr=/(?:Once|Passive|Capture)$/;function Su(e){let t;if(Gr.test(e)){t={};let i;for(;i=e.match(Gr);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Nt(e.slice(2)),t]}let bi=0;const Mu=Promise.resolve(),Fu=()=>bi||(Mu.then(()=>bi=0),bi=Date.now());function Nu(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ie(Iu(i,n.value),t,5,[i])};return n.value=e,n.attached=Fu(),n}function Iu(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Jr=/^on[a-z]/,Du=(e,t,n,i,r=!1,s,o,l,a)=>{t==="class"?Cu(e,i,r):t==="style"?$u(e,n,i):qn(t)?Yi(t)||Au(e,t,n,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lu(e,t,i,r))?xu(e,t,i,s,o,l,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Pu(e,t,i,r))};function Lu(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Jr.test(t)&&U(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jr.test(t)&&ve(n)?!1:t in e}const ot="transition",Zt="animation",Do={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ru=ye({},xa.props,Do),yt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qr=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function Bu(e){const t={};for(const M in e)M in Do||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=o,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,x=ku(r),$=x&&x[0],b=x&&x[1],{onBeforeEnter:E,onEnter:N,onEnterCancelled:A,onLeave:L,onLeaveCancelled:K,onBeforeAppear:he=E,onAppear:z=N,onAppearCancelled:I=A}=t,V=(M,te,g)=>{lt(M,te?d:l),lt(M,te?c:o),g&&g()},J=(M,te)=>{M._isLeaving=!1,lt(M,p),lt(M,_),lt(M,m),te&&te()},ae=M=>(te,g)=>{const h=M?z:N,H=()=>V(te,M,g);yt(h,[te,H]),Zr(()=>{lt(te,M?a:s),Ge(te,M?d:l),Qr(h)||es(te,i,$,H)})};return ye(t,{onBeforeEnter(M){yt(E,[M]),Ge(M,s),Ge(M,o)},onBeforeAppear(M){yt(he,[M]),Ge(M,a),Ge(M,c)},onEnter:ae(!1),onAppear:ae(!0),onLeave(M,te){M._isLeaving=!0;const g=()=>J(M,te);Ge(M,p),Ro(),Ge(M,m),Zr(()=>{!M._isLeaving||(lt(M,p),Ge(M,_),Qr(L)||es(M,i,b,g))}),yt(L,[M,g])},onEnterCancelled(M){V(M,!1),yt(A,[M])},onAppearCancelled(M){V(M,!0),yt(I,[M])},onLeaveCancelled(M){J(M),yt(K,[M])}})}function ku(e){if(e==null)return null;if(fe(e))return[Ci(e.enter),Ci(e.leave)];{const t=Ci(e);return[t,t]}}function Ci(e){return Qi(e)}function Ge(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function lt(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Zr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hu=0;function es(e,t,n,i){const r=e._endId=++Hu,s=()=>{r===e._endId&&i()};if(n)return setTimeout(s,n);const{type:o,timeout:l,propCount:a}=Lo(e,t);if(!o)return i();const c=o+"end";let d=0;const p=()=>{e.removeEventListener(c,m),s()},m=_=>{_.target===e&&++d>=a&&p()};setTimeout(()=>{d<a&&p()},l+1),e.addEventListener(c,m)}function Lo(e,t){const n=window.getComputedStyle(e),i=x=>(n[x]||"").split(", "),r=i(`${ot}Delay`),s=i(`${ot}Duration`),o=ts(r,s),l=i(`${Zt}Delay`),a=i(`${Zt}Duration`),c=ts(l,a);let d=null,p=0,m=0;t===ot?o>0&&(d=ot,p=o,m=s.length):t===Zt?c>0&&(d=Zt,p=c,m=a.length):(p=Math.max(o,c),d=p>0?o>c?ot:Zt:null,m=d?d===ot?s.length:a.length:0);const _=d===ot&&/\b(transform|all)(,|$)/.test(i(`${ot}Property`).toString());return{type:d,timeout:p,propCount:m,hasTransform:_}}function ts(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>ns(n)+ns(e[i])))}function ns(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Ro(){return document.body.offsetHeight}const Bo=new WeakMap,ko=new WeakMap,zu={name:"TransitionGroup",props:ye({},Ru,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=gr(),i=ho();let r,s;return go(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Ku(r[0].el,n.vnode.el,o))return;r.forEach(Wu),r.forEach(Uu);const l=r.filter(Vu);Ro(),l.forEach(a=>{const c=a.el,d=c.style;Ge(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const p=c._moveCb=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",p),c._moveCb=null,lt(c,o))};c.addEventListener("transitionend",p)})}),()=>{const o=ne(e),l=Bu(o);let a=o.tag||Te;r=s,s=t.default?fr(t.default()):[];for(let c=0;c<s.length;c++){const d=s[c];d.key!=null&&hn(d,dn(d,l,i,n))}if(r)for(let c=0;c<r.length;c++){const d=r[c];hn(d,dn(d,l,i,n)),Bo.set(d,d.el.getBoundingClientRect())}return de(a,null,s)}}},ju=zu;function Wu(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Uu(e){ko.set(e,e.el.getBoundingClientRect())}function Vu(e){const t=Bo.get(e),n=ko.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${i}px,${r}px)`,s.transitionDuration="0s",e}}function Ku(e,t,n){const i=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(i);const{hasTransform:s}=Lo(i);return r.removeChild(i),s}const qu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Yu=(e,t)=>n=>{if(!("key"in n))return;const i=Nt(n.key);if(t.some(r=>r===i||qu[r]===i))return e(n)},Xu=ye({patchProp:Du},bu);let is;function Gu(){return is||(is=eu(Xu))}const Ho=(...e)=>{const t=Gu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=Ju(i);if(!r)return;const s=t._component;!U(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Ju(e){return ve(e)?document.querySelector(e):e}function it(e){return e.split("-")[0]}function zt(e){return e.split("-")[1]}function wn(e){return["top","bottom"].includes(it(e))?"x":"y"}function vr(e){return e==="y"?"height":"width"}function rs(e){let{reference:t,floating:n,placement:i}=e;const r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2;let o;switch(it(i)){case"top":o={x:r,y:t.y-n.height};break;case"bottom":o={x:r,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:s};break;case"left":o={x:t.x-n.width,y:s};break;default:o={x:t.x,y:t.y}}const l=wn(i),a=vr(l);switch(zt(i)){case"start":o[l]=o[l]-(t[a]/2-n[a]/2);break;case"end":o[l]=o[l]+(t[a]/2-n[a]/2);break}return o}const Qu=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n;let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:c}=rs({...l,placement:i}),d=i,p={};for(let m=0;m<s.length;m++){const{name:_,fn:x}=s[m],{x:$,y:b,data:E,reset:N}=await x({x:a,y:c,initialPlacement:i,placement:d,strategy:r,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});if(a=$!=null?$:a,c=b!=null?b:c,p={...p,[_]:E!=null?E:{}},N){typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(l=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):N.rects),{x:a,y:c}=rs({...l,placement:d})),m=-1;continue}}return{x:a,y:c,placement:d,strategy:r,middlewareData:p}};function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function zo(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function Bi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function li(e,t){t===void 0&&(t={});const{x:n,y:i,platform:r,rects:s,elements:o,strategy:l}=e,{boundary:a="clippingParents",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=t,_=zo(m),$=o[p?d==="floating"?"reference":"floating":d],b=await r.getClippingClientRect({element:await r.isElement($)?$:$.contextElement||await r.getDocumentElement({element:o.floating}),boundary:a,rootBoundary:c}),E=Bi(await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:n,y:i}:s.reference,offsetParent:await r.getOffsetParent({element:o.floating}),strategy:l}));return{top:b.top-E.top+_.top,bottom:E.bottom-b.bottom+_.bottom,left:b.left-E.left+_.left,right:E.right-b.right+_.right}}const ec=Math.min,$t=Math.max;function ki(e,t,n){return $t(e,ec(t,n))}const tc=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e!=null?e:{},{x:r,y:s,placement:o,rects:l,platform:a}=t;if(n==null)return{};const c=zo(i),d={x:r,y:s},p=it(o),m=wn(p),_=vr(m),x=await a.getDimensions({element:n}),$=m==="y"?"top":"left",b=m==="y"?"bottom":"right",E=l.reference[_]+l.reference[m]-d[m]-l.floating[_],N=d[m]-l.reference[m],A=await a.getOffsetParent({element:n}),L=A?m==="y"?A.clientHeight||0:A.clientWidth||0:0,K=E/2-N/2,he=c[$],z=L-x[_]-c[b],I=L/2-x[_]/2+K,V=ki(he,I,z);return{data:{[m]:V,centerOffset:I-V}}}}),nc={left:"right",right:"left",bottom:"top",top:"bottom"};function kn(e){return e.replace(/left|right|bottom|top/g,t=>nc[t])}function jo(e,t){const n=zt(e)==="start",i=wn(e),r=vr(i);let s=i==="x"?n?"right":"left":n?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=kn(s)),{main:s,cross:kn(s)}}const ic={start:"end",end:"start"};function Hi(e){return e.replace(/start|end/g,t=>ic[t])}const rc=["top","right","bottom","left"],sc=rc.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function oc(e,t,n){return(e?[...n.filter(r=>zt(r)===e),...n.filter(r=>zt(r)!==e)]:n.filter(r=>it(r)===r)).filter(r=>e?zt(r)===e||(t?Hi(r)!==r:!1):!0)}const lc=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,r,s,o,l;const{x:a,y:c,rects:d,middlewareData:p,placement:m}=t,{alignment:_=null,allowedPlacements:x=sc,autoAlignment:$=!0,...b}=e;if((n=p.autoPlacement)!=null&&n.skip)return{};const E=oc(_,$,x),N=await li(t,b),A=(i=(r=p.autoPlacement)==null?void 0:r.index)!=null?i:0,L=E[A],{main:K,cross:he}=jo(L,d);if(m!==L)return{x:a,y:c,reset:{placement:E[0]}};const z=[N[it(L)],N[K],N[he]],I=[...(s=(o=p.autoPlacement)==null?void 0:o.overflows)!=null?s:[],{placement:L,overflows:z}],V=E[A+1];if(V)return{data:{index:A+1,overflows:I},reset:{placement:V}};const J=I.slice().sort((M,te)=>M.overflows[0]-te.overflows[0]),ae=(l=J.find(M=>{let{overflows:te}=M;return te.every(g=>g<=0)}))==null?void 0:l.placement;return{data:{skip:!0},reset:{placement:ae!=null?ae:J[0].placement}}}}};function ac(e){const t=kn(e);return[Hi(e),t,Hi(t)]}const uc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:l}=t;if((n=s.flip)!=null&&n.skip)return{};const{mainAxis:a=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",flipAlignment:m=!0,..._}=e,x=it(r),b=d||(x===l||!m?[kn(l)]:ac(l)),E=[l,...b],N=await li(t,_),A=[];let L=((i=s.flip)==null?void 0:i.overflows)||[];if(a&&A.push(N[x]),c){const{main:I,cross:V}=jo(r,o);A.push(N[I],N[V])}if(L=[...L,{placement:r,overflows:A}],!A.every(I=>I<=0)){var K,he;const I=((K=(he=s.flip)==null?void 0:he.index)!=null?K:0)+1,V=E[I];if(V)return{data:{index:I,overflows:L},reset:{placement:V}};let J="bottom";switch(p){case"bestFit":{var z;const ae=(z=L.slice().sort((M,te)=>M.overflows.filter(g=>g>0).reduce((g,h)=>g+h,0)-te.overflows.filter(g=>g>0).reduce((g,h)=>g+h,0))[0])==null?void 0:z.placement;ae&&(J=ae);break}case"initialPlacement":J=l;break}return{data:{skip:!0},reset:{placement:J}}}return{}}}};function cc(e){let{placement:t,rects:n,value:i}=e;const r=it(t),s=["left","top"].includes(r)?-1:1,o=typeof i=="function"?i({...n,placement:t}):i,{mainAxis:l,crossAxis:a}=typeof o=="number"?{mainAxis:o,crossAxis:0}:{mainAxis:0,crossAxis:0,...o};return wn(r)==="x"?{x:a,y:l*s}:{x:l*s,y:a}}const fc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:i,placement:r,rects:s}=t,o=cc({placement:r,rects:s,value:e});return{x:n+o.x,y:i+o.y,data:o}}}};function dc(e){return e==="x"?"y":"x"}const hc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:E,y:N}=b;return{x:E,y:N}}},...a}=e,c={x:n,y:i},d=await li(t,a),p=wn(it(r)),m=dc(p);let _=c[p],x=c[m];if(s){const b=p==="y"?"top":"left",E=p==="y"?"bottom":"right",N=_+d[b],A=_-d[E];_=ki(N,_,A)}if(o){const b=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=x+d[b],A=x-d[E];x=ki(N,x,A)}const $=l.fn({...t,[p]:_,[m]:x});return{...$,data:{x:$.x-n,y:$.y-i}}}}},pc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:i,rects:r,middlewareData:s}=t,{apply:o,...l}=e;if((n=s.size)!=null&&n.skip)return{};const a=await li(t,l),c=it(i),d=zt(i)==="end";let p,m;c==="top"||c==="bottom"?(p=c,m=d?"left":"right"):(m=c,p=d?"top":"bottom");const _=$t(a.left,0),x=$t(a.right,0),$=$t(a.top,0),b=$t(a.bottom,0),E={height:r.floating.height-(["left","right"].includes(i)?2*($!==0||b!==0?$+b:$t(a.top,a.bottom)):a[p]),width:r.floating.width-(["top","bottom"].includes(i)?2*(_!==0||x!==0?_+x:$t(a.left,a.right)):a[m])};return o==null||o({...E,...r}),{data:{skip:!0},reset:{rects:!0}}}}};function _r(e){return(e==null?void 0:e.toString())==="[object Window]"}function gt(e){if(e==null)return window;if(!_r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ai(e){return gt(e).getComputedStyle(e)}function et(e){return _r(e)?"":e?(e.nodeName||"").toLowerCase():""}function tt(e){return e instanceof gt(e).HTMLElement}function Hn(e){return e instanceof gt(e).Element}function mc(e){return e instanceof gt(e).Node}function Wo(e){const t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ui(e){const{overflow:t,overflowX:n,overflowY:i}=ai(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function gc(e){return["table","td","th"].includes(et(e))}function Uo(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=ai(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const ss=Math.min,sn=Math.max,zn=Math.round;function Vt(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let i=1,r=1;return t&&tt(e)&&(i=e.offsetWidth>0&&zn(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&zn(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function vt(e){return((mc(e)?e.ownerDocument:e.document)||window.document).documentElement}function ci(e){return _r(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vo(e){return Vt(vt(e)).left+ci(e).scrollLeft}function vc(e){const t=Vt(e);return zn(t.width)!==e.offsetWidth||zn(t.height)!==e.offsetHeight}function _c(e,t,n){const i=tt(t),r=vt(t),s=Vt(e,i&&vc(t));let o={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&n!=="fixed")if((et(t)!=="body"||ui(r))&&(o=ci(t)),tt(t)){const a=Vt(t,!0);l.x=a.x+t.clientLeft,l.y=a.y+t.clientTop}else r&&(l.x=Vo(r));return{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function fi(e){return et(e)==="html"?e:e.assignedSlot||e.parentNode||(Wo(e)?e.host:null)||vt(e)}function os(e){return!tt(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function wc(e){let t=fi(e);for(;tt(t)&&!["html","body"].includes(et(t));){if(Uo(t))return t;t=t.parentNode}return null}function zi(e){const t=gt(e);let n=os(e);for(;n&&gc(n)&&getComputedStyle(n).position==="static";)n=os(n);return n&&(et(n)==="html"||et(n)==="body"&&getComputedStyle(n).position==="static"&&!Uo(n))?t:n||wc(e)||t}function ls(e){return{width:e.offsetWidth,height:e.offsetHeight}}function yc(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=tt(n),s=vt(n);if(n===s)return t;let o={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((r||!r&&i!=="fixed")&&((et(n)!=="body"||ui(s))&&(o=ci(n)),tt(n))){const a=Vt(n,!0);l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+l.x,y:t.y-o.scrollTop+l.y}}function bc(e){const t=gt(e),n=vt(e),i=t.visualViewport;let r=n.clientWidth,s=n.clientHeight,o=0,l=0;return i&&(r=i.width,s=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(o=i.offsetLeft,l=i.offsetTop)),{width:r,height:s,x:o,y:l}}function Cc(e){var t;const n=vt(e),i=ci(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=sn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=sn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let l=-i.scrollLeft+Vo(e);const a=-i.scrollTop;return ai(r||n).direction==="rtl"&&(l+=sn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:a}}function Ko(e){return["html","body","#document"].includes(et(e))?e.ownerDocument.body:tt(e)&&ui(e)?e:Ko(fi(e))}function jn(e,t){var n;t===void 0&&(t=[]);const i=Ko(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),s=gt(i),o=r?[s].concat(s.visualViewport||[],ui(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(jn(fi(o)))}function $c(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Wo(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function Tc(e){const t=Vt(e),n=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function as(e,t){return t==="viewport"?Bi(bc(e)):Hn(t)?Tc(t):Bi(Cc(vt(e)))}function Pc(e){const t=jn(fi(e)),i=["absolute","fixed"].includes(ai(e).position)&&tt(e)?zi(e):e;return Hn(i)?t.filter(r=>Hn(r)&&$c(r,i)&&et(r)!=="body"):[]}function xc(e){let{element:t,boundary:n,rootBoundary:i}=e;const s=[...n==="clippingParents"?Pc(t):[].concat(n),i],o=s[0],l=s.reduce((a,c)=>{const d=as(t,c);return a.top=sn(d.top,a.top),a.right=ss(d.right,a.right),a.bottom=ss(d.bottom,a.bottom),a.left=sn(d.left,a.left),a},as(t,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}const Ec={getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:_c(t,zi(n),i),floating:{...ls(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>yc(e),getOffsetParent:e=>{let{element:t}=e;return zi(t)},isElement:e=>Hn(e),getDocumentElement:e=>{let{element:t}=e;return vt(t)},getClippingClientRect:e=>xc(e),getDimensions:e=>{let{element:t}=e;return ls(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},Oc=(e,t,n)=>Qu(e,t,{platform:Ec,...n});var Ac=Object.defineProperty,Sc=Object.defineProperties,Mc=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,Fc=Object.prototype.hasOwnProperty,Nc=Object.prototype.propertyIsEnumerable,cs=(e,t,n)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qe=(e,t)=>{for(var n in t||(t={}))Fc.call(t,n)&&cs(e,n,t[n]);if(us)for(var n of us(t))Nc.call(t,n)&&cs(e,n,t[n]);return e},yn=(e,t)=>Sc(e,Mc(t));const Mt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Kt(e,t){let n=Mt.themes[e]||{},i;do i=n[t],typeof i>"u"?n.$extend?n=Mt.themes[n.$extend]||{}:(n=null,i=Mt[t]):n=null;while(n);return i}function Ic(e){const t=[e];let n=Mt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Mt.themes[n.$extend]||{}):n=null;while(n);return t.map(i=>`v-popper--theme-${i}`)}function fs(e){const t=[e];let n=Mt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Mt.themes[n.$extend]||{}):n=null;while(n);return t}let qt=!1;if(typeof window<"u"){qt=!1;try{const e=Object.defineProperty({},"passive",{get(){qt=!0}});window.addEventListener("test",null,e)}catch{}}let qo=!1;typeof window<"u"&&typeof navigator<"u"&&(qo=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Yo=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ds={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},hs={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function ps(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function $i(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const ke=[];let bt=null;const ms={};function gs(e){let t=ms[e];return t||(t=ms[e]=[]),t}let ji=function(){};typeof window<"u"&&(ji=window.Element);function Z(e){return function(t){return Kt(t.theme,e)}}const Ti="__floating-vue__popper";var Xo=()=>Le({name:"VPopper",provide(){return{[Ti]:{parentPopper:this}}},inject:{[Ti]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Z("disabled")},positioningDisabled:{type:Boolean,default:Z("positioningDisabled")},placement:{type:String,default:Z("placement"),validator:e=>Yo.includes(e)},delay:{type:[String,Number,Object],default:Z("delay")},distance:{type:[Number,String],default:Z("distance")},skidding:{type:[Number,String],default:Z("skidding")},triggers:{type:Array,default:Z("triggers")},showTriggers:{type:[Array,Function],default:Z("showTriggers")},hideTriggers:{type:[Array,Function],default:Z("hideTriggers")},popperTriggers:{type:Array,default:Z("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Z("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Z("popperHideTriggers")},container:{type:[String,Object,ji,Boolean],default:Z("container")},boundary:{type:[String,ji],default:Z("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Z("strategy")},autoHide:{type:[Boolean,Function],default:Z("autoHide")},handleResize:{type:Boolean,default:Z("handleResize")},instantMove:{type:Boolean,default:Z("instantMove")},eagerMount:{type:Boolean,default:Z("eagerMount")},popperClass:{type:[String,Array,Object],default:Z("popperClass")},computeTransformOrigin:{type:Boolean,default:Z("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Z("autoMinSize")},autoSize:{type:[Boolean,String],default:Z("autoSize")},autoMaxSize:{type:Boolean,default:Z("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Z("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Z("preventOverflow")},overflowPadding:{type:[Number,String],default:Z("overflowPadding")},arrowPadding:{type:[Number,String],default:Z("arrowPadding")},arrowOverflow:{type:Boolean,default:Z("arrowOverflow")},flip:{type:Boolean,default:Z("flip")},shift:{type:Boolean,default:Z("shift")},shiftCrossAxis:{type:Boolean,default:Z("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Z("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:yn(Qe({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ti])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Qe(Qe({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var i,r;((i=this.parentPopper)==null?void 0:i.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(n=>n.nodeType===n.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(fc({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(lc({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(hc({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(uc({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(tc({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:s,middlewareData:o})=>{let l;const{centerOffset:a}=o.arrow;return r.startsWith("top")||r.startsWith("bottom")?l=Math.abs(a)>s.reference.width/2:l=Math.abs(a)>s.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:l})=>{var a;if((a=l.autoSize)!=null&&a.skip)return{};let c,d;return o.startsWith("top")||o.startsWith("bottom")?c=s.reference.width:d=s.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(pc({boundary:this.boundary,padding:this.overflowPadding,apply:({width:r,height:s})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const i=await Oc(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:Qe(Qe({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),bt&&this.instantMove&&bt.instantMove&&bt!==this.parentPopper){bt.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(bt=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await $i(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...jn(this.$_referenceNode),...jn(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(i.left+n.offsetLeft),s=t.y+t.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${r}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<ke.length;n++)t=ke[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}ke.push(this),document.body.classList.add("v-popper--some-open");for(const t of fs(this.theme))gs(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await $i(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ps(ke,this),ke.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of fs(this.theme)){const i=gs(n);ps(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}bt===this&&(bt=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Kt(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await $i(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,ds,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ds,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,hs,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],hs,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(i=>i.addEventListener(t,n,qt?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,i,r){let s=n;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(o=>{const l=t[o];l&&this.$_registerEventListeners(e,l,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:r,handler:s}=n;!e||e===r?i.forEach(o=>o.removeEventListener(r,s)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const i=n.getAttribute(e);i&&(n.removeAttribute(e),n.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const i=e[n];i==null?t.removeAttribute(n):t.setAttribute(n,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(on>=e.left&&on<=e.right&&ln>=e.top&&ln<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=on-at,i=ln-ut,s=t.left+t.width/2-at+(t.top+t.height/2)-ut+t.width+t.height,o=at+n*s,l=ut+i*s;return On(at,ut,o,l,t.left,t.top,t.left,t.bottom)||On(at,ut,o,l,t.left,t.top,t.right,t.top)||On(at,ut,o,l,t.right,t.top,t.right,t.bottom)||On(at,ut,o,l,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(qo?(document.addEventListener("touchstart",vs,qt?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Lc,qt?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",vs,!0),window.addEventListener("click",Dc,!0)),window.addEventListener("resize",kc));function vs(e){for(let t=0;t<ke.length;t++){const n=ke[t];try{const i=n.popperNode();n.$_mouseDownContains=i.contains(e.target)}catch{}}}function Dc(e){Go(e)}function Lc(e){Go(e,!0)}function Go(e,t=!1){const n={};for(let i=ke.length-1;i>=0;i--){const r=ke[i];try{const s=r.$_containsGlobalTarget=Rc(r,e);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!n[r.randomId]&&_s(r,s,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let l=r.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let o=r.parentPopper;for(;o&&_s(o,o.$_containsGlobalTarget,e);){o.$_handleGlobalClose(e,t);o=o.parentPopper}}})}catch{}}}function Rc(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function _s(e,t,n){return n.closeAllPopover||n.closePopover&&t||Bc(e,n)&&!t}function Bc(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function kc(e){for(let t=0;t<ke.length;t++)ke[t].$_computePosition(e)}let at=0,ut=0,on=0,ln=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{at=on,ut=ln,on=e.clientX,ln=e.clientY},qt?{passive:!0}:void 0);function On(e,t,n,i,r,s,o,l){const a=((o-r)*(t-s)-(l-s)*(e-r))/((l-s)*(n-e)-(o-r)*(i-t)),c=((n-e)*(t-s)-(i-t)*(e-r))/((l-s)*(n-e)-(o-r)*(i-t));return a>=0&&a<=1&&c>=0&&c<=1}var di=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const Hc={extends:Xo()};function zc(e,t,n,i,r,s){return ce(),_e("div",{ref:"reference",class:Xe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Ln(e.$slots,"default",_l(Fo(e.slotData)))],2)}var jc=di(Hc,[["render",zc]]);function Wc(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let Fn;function Wi(){Wi.init||(Wi.init=!0,Fn=Wc()!==-1)}var hi={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wi(),ar(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Fn&&this.$el.appendChild(e),e.data="about:blank",Fn||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Fn&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Uc=ma();uo("data-v-b329ee4c");const Vc={class:"resize-observer",tabindex:"-1"};co();const Kc=Uc((e,t,n,i,r,s)=>(ce(),Jt("div",Vc)));hi.render=Kc;hi.__scopeId="data-v-b329ee4c";hi.__file="src/components/ResizeObserver.vue";var Jo=(e="theme")=>({computed:{themeClass(){return Ic(this[e])}}});const qc=Le({name:"VPopperContent",components:{ResizeObserver:hi},mixins:[Jo()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Yc=["id","aria-hidden","tabindex","data-popper-placement"],Xc={ref:"inner",class:"v-popper__inner"},Gc=ie("div",{class:"v-popper__arrow-outer"},null,-1),Jc=ie("div",{class:"v-popper__arrow-inner"},null,-1),Qc=[Gc,Jc];function Zc(e,t,n,i,r,s){const o=pn("ResizeObserver");return ce(),_e("div",{id:e.popperId,ref:"popover",class:Xe(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ot(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Yu(l=>e.autoHide&&e.$emit("hide"),["esc"]))},[ie("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=l=>e.autoHide&&e.$emit("hide"))}),ie("div",{class:"v-popper__wrapper",style:Ot(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ie("div",Xc,[e.mounted?(ce(),_e(Te,{key:0},[ie("div",null,[Ln(e.$slots,"default")]),e.handleResize?(ce(),Jt(o,{key:0,onNotify:t[1]||(t[1]=l=>e.$emit("resize",l))})):Li("",!0)],64)):Li("",!0)],512),ie("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ot(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Qc,4)],4)],46,Yc)}var Qo=di(qc,[["render",Zc]]),Zo={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const ef=Le({name:"VPopperWrapper",components:{Popper:jc,PopperContent:Qo},mixins:[Zo,Jo("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function tf(e,t,n,i,r,s){const o=pn("PopperContent"),l=pn("Popper");return ce(),Jt(l,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Xe([e.themeClass])},{default:Ft(({popperId:a,isShown:c,shouldMountContent:d,skipTransition:p,autoHide:m,show:_,hide:x,handleResize:$,onResize:b,classes:E,result:N})=>[Ln(e.$slots,"default",{shown:c,show:_,hide:x}),de(o,{ref:"popperContent","popper-id":a,theme:e.finalTheme,shown:c,mounted:d,"skip-transition":p,"auto-hide":m,"handle-resize":$,classes:E,result:N,onHide:x,onResize:b},{default:Ft(()=>[Ln(e.$slots,"popper",{shown:c,hide:x})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var wr=di(ef,[["render",tf]]);Le(yn(Qe({},wr),{name:"VDropdown",vPopperTheme:"dropdown"}));Le(yn(Qe({},wr),{name:"VMenu",vPopperTheme:"menu"}));Le(yn(Qe({},wr),{name:"VTooltip",vPopperTheme:"tooltip"}));const nf=Le({name:"VTooltipDirective",components:{Popper:Xo(),PopperContent:Qo},mixins:[Zo],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Kt(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Kt(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(i=>this.onResult(t,i)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),rf=["innerHTML"],sf=["textContent"];function of(e,t,n,i,r,s){const o=pn("PopperContent"),l=pn("Popper");return ce(),Jt(l,mr({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Ft(({popperId:a,isShown:c,shouldMountContent:d,skipTransition:p,autoHide:m,hide:_,handleResize:x,onResize:$,classes:b,result:E})=>[de(o,{ref:"popperContent",class:Xe({"v-popper--tooltip-loading":e.loading}),"popper-id":a,theme:e.theme,shown:c,mounted:d,"skip-transition":p,"auto-hide":m,"handle-resize":x,classes:b,result:E,onHide:_,onResize:$},{default:Ft(()=>[e.html?(ce(),_e("div",{key:0,innerHTML:e.finalContent},null,8,rf)):(ce(),_e("div",{key:1,textContent:Kn(e.finalContent)},null,8,sf))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var lf=di(nf,[["render",of]]);const el="v-popper--has-tooltip";function af(e,t){let n=e.placement;if(!n&&t)for(const i of Yo)t[i]&&(n=i);return n||(n=Kt(e.theme||"tooltip","placement")),n}function tl(e,t,n){let i;const r=typeof t;return r==="string"?i={content:t}:t&&r==="object"?i=t:i={content:!1},i.placement=af(i,n),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Pi,_n,uf=0;function cf(){if(Pi)return;_n=$e([]),Pi=Ho({name:"VTooltipDirectiveApp",setup(){return{directives:_n}},render(){return this.directives.map(t=>gu(lf,yn(Qe({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Pi.mount(e)}function ff(e,t,n){cf();const i=$e(tl(e,t,n)),r=$e(!1),s={id:uf++,options:i,shown:r};return _n.value.push(s),e.classList&&e.classList.add(el),e.$_popper={options:i,item:s,show(){r.value=!0},hide(){r.value=!1}}}function nl(e){if(e.$_popper){const t=_n.value.indexOf(e.$_popper.item);t!==-1&&_n.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(el)}function ws(e,{value:t,modifiers:n}){const i=tl(e,t,n);if(!i.content||Kt(i.theme||"tooltip","disabled"))nl(e);else{let r;e.$_popper?(r=e.$_popper,r.options.value=i):r=ff(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var df={beforeMount:ws,updated:ws,beforeUnmount(e){nl(e)}};const hf=df;var bn={};(function e(t,n,i,r){var s=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function o(){}function l(g){var h=n.exports.Promise,H=h!==void 0?h:t.Promise;return typeof H=="function"?new H(g):(g(o,o),null)}var a=function(){var g=Math.floor(16.666666666666668),h,H,B={},k=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(h=function(X){var G=Math.random();return B[G]=requestAnimationFrame(function q(Q){k===Q||k+g-1<Q?(k=Q,delete B[G],X()):B[G]=requestAnimationFrame(q)}),G},H=function(X){B[X]&&cancelAnimationFrame(B[X])}):(h=function(X){return setTimeout(X,g)},H=function(X){return clearTimeout(X)}),{frame:h,cancel:H}}(),c=function(){var g,h,H={};function B(k){function X(G,q){k.postMessage({options:G||{},callback:q})}k.init=function(q){var Q=q.transferControlToOffscreen();k.postMessage({canvas:Q},[Q])},k.fire=function(q,Q,Fe){if(h)return X(q,null),h;var oe=Math.random().toString(36).slice(2);return h=l(function(Oe){function pe(re){re.data.callback===oe&&(delete H[oe],k.removeEventListener("message",pe),h=null,Fe(),Oe())}k.addEventListener("message",pe),X(q,oe),H[oe]=pe.bind(null,{data:{callback:oe}})}),h},k.reset=function(){k.postMessage({reset:!0});for(var q in H)H[q](),delete H[q]}}return function(){if(g)return g;if(!i&&s){var k=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{g=new Worker(URL.createObjectURL(new Blob([k])))}catch(X){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",X),null}B(g)}return g}}(),d={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function p(g,h){return h?h(g):g}function m(g){return g!=null}function _(g,h,H){return p(g&&m(g[h])?g[h]:d[h],H)}function x(g){return g<0?0:Math.floor(g)}function $(g,h){return Math.floor(Math.random()*(h-g))+g}function b(g){return parseInt(g,16)}function E(g){return g.map(N)}function N(g){var h=String(g).replace(/[^0-9a-f]/gi,"");return h.length<6&&(h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]),{r:b(h.substring(0,2)),g:b(h.substring(2,4)),b:b(h.substring(4,6))}}function A(g){var h=_(g,"origin",Object);return h.x=_(h,"x",Number),h.y=_(h,"y",Number),h}function L(g){g.width=document.documentElement.clientWidth,g.height=document.documentElement.clientHeight}function K(g){var h=g.getBoundingClientRect();g.width=h.width,g.height=h.height}function he(g){var h=document.createElement("canvas");return h.style.position="fixed",h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",h.style.zIndex=g,h}function z(g,h,H,B,k,X,G,q,Q){g.save(),g.translate(h,H),g.rotate(X),g.scale(B,k),g.arc(0,0,1,G,q,Q),g.restore()}function I(g){var h=g.angle*(Math.PI/180),H=g.spread*(Math.PI/180);return{x:g.x,y:g.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:g.startVelocity*.5+Math.random()*g.startVelocity,angle2D:-h+(.5*H-Math.random()*H),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:g.color,shape:g.shape,tick:0,totalTicks:g.ticks,decay:g.decay,drift:g.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:g.gravity*3,ovalScalar:.6,scalar:g.scalar}}function V(g,h){h.x+=Math.cos(h.angle2D)*h.velocity+h.drift,h.y+=Math.sin(h.angle2D)*h.velocity+h.gravity,h.wobble+=h.wobbleSpeed,h.velocity*=h.decay,h.tiltAngle+=.1,h.tiltSin=Math.sin(h.tiltAngle),h.tiltCos=Math.cos(h.tiltAngle),h.random=Math.random()+2,h.wobbleX=h.x+10*h.scalar*Math.cos(h.wobble),h.wobbleY=h.y+10*h.scalar*Math.sin(h.wobble);var H=h.tick++/h.totalTicks,B=h.x+h.random*h.tiltCos,k=h.y+h.random*h.tiltSin,X=h.wobbleX+h.random*h.tiltCos,G=h.wobbleY+h.random*h.tiltSin;if(g.fillStyle="rgba("+h.color.r+", "+h.color.g+", "+h.color.b+", "+(1-H)+")",g.beginPath(),h.shape==="circle")g.ellipse?g.ellipse(h.x,h.y,Math.abs(X-B)*h.ovalScalar,Math.abs(G-k)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI):z(g,h.x,h.y,Math.abs(X-B)*h.ovalScalar,Math.abs(G-k)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI);else if(h.shape==="star")for(var q=Math.PI/2*3,Q=4*h.scalar,Fe=8*h.scalar,oe=h.x,Oe=h.y,pe=5,re=Math.PI/pe;pe--;)oe=h.x+Math.cos(q)*Fe,Oe=h.y+Math.sin(q)*Fe,g.lineTo(oe,Oe),q+=re,oe=h.x+Math.cos(q)*Q,Oe=h.y+Math.sin(q)*Q,g.lineTo(oe,Oe),q+=re;else g.moveTo(Math.floor(h.x),Math.floor(h.y)),g.lineTo(Math.floor(h.wobbleX),Math.floor(k)),g.lineTo(Math.floor(X),Math.floor(G)),g.lineTo(Math.floor(B),Math.floor(h.wobbleY));return g.closePath(),g.fill(),h.tick<h.totalTicks}function J(g,h,H,B,k){var X=h.slice(),G=g.getContext("2d"),q,Q,Fe=l(function(oe){function Oe(){q=Q=null,G.clearRect(0,0,B.width,B.height),k(),oe()}function pe(){i&&!(B.width===r.width&&B.height===r.height)&&(B.width=g.width=r.width,B.height=g.height=r.height),!B.width&&!B.height&&(H(g),B.width=g.width,B.height=g.height),G.clearRect(0,0,B.width,B.height),X=X.filter(function(re){return V(G,re)}),X.length?q=a.frame(pe):Oe()}q=a.frame(pe),Q=Oe});return{addFettis:function(oe){return X=X.concat(oe),Fe},canvas:g,promise:Fe,reset:function(){q&&a.cancel(q),Q&&Q()}}}function ae(g,h){var H=!g,B=!!_(h||{},"resize"),k=_(h,"disableForReducedMotion",Boolean),X=s&&!!_(h||{},"useWorker"),G=X?c():null,q=H?L:K,Q=g&&G?!!g.__confetti_initialized:!1,Fe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,oe;function Oe(re,It,je){for(var We=_(re,"particleCount",x),rt=_(re,"angle",Number),u=_(re,"spread",Number),f=_(re,"startVelocity",Number),v=_(re,"decay",Number),y=_(re,"gravity",Number),w=_(re,"drift",Number),P=_(re,"colors",E),S=_(re,"ticks",Number),T=_(re,"shapes"),O=_(re,"scalar"),C=A(re),D=We,F=[],R=g.width*C.x,j=g.height*C.y;D--;)F.push(I({x:R,y:j,angle:rt,spread:u,startVelocity:f,color:P[D%P.length],shape:T[$(0,T.length)],ticks:S,decay:v,gravity:y,drift:w,scalar:O}));return oe?oe.addFettis(F):(oe=J(g,F,q,It,je),oe.promise)}function pe(re){var It=k||_(re,"disableForReducedMotion",Boolean),je=_(re,"zIndex",Number);if(It&&Fe)return l(function(f){f()});H&&oe?g=oe.canvas:H&&!g&&(g=he(je),document.body.appendChild(g)),B&&!Q&&q(g);var We={width:g.width,height:g.height};G&&!Q&&G.init(g),Q=!0,G&&(g.__confetti_initialized=!0);function rt(){if(G){var f={getBoundingClientRect:function(){if(!H)return g.getBoundingClientRect()}};q(f),G.postMessage({resize:{width:f.width,height:f.height}});return}We.width=We.height=null}function u(){oe=null,B&&t.removeEventListener("resize",rt),H&&g&&(document.body.removeChild(g),g=null,Q=!1)}return B&&t.addEventListener("resize",rt,!1),G?G.fire(re,We,u):Oe(re,We,u)}return pe.reset=function(){G&&G.reset(),oe&&oe.reset()},pe}var M;function te(){return M||(M=ae(null,{useWorker:!0,resize:!0})),M}n.exports=function(){return te().apply(this,arguments)},n.exports.reset=function(){te().reset()},n.exports.create=ae})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),bn,!1);const Ui=bn.exports;bn.exports.create;function pf(){const e=Date.now()+3e3,t=["#ffa62d","#ff5e7e","#26ccff","#a25afd","#88ff5a","#fcff42","#ff36ff"];(function n(){Ui({particleCount:2,angle:60,spread:55,origin:{x:0},colors:t}),Ui({particleCount:2,angle:120,spread:55,origin:{x:1},colors:t}),Date.now()<e&&requestAnimationFrame(n)})()}function mf(){Ui({particleCount:100,spread:100,origin:{y:.6}})}class Lt{constructor(t,n){me(this,"row");me(this,"column");this.row=t,this.column=n}toString(){return`tile-position-${this.row}-${this.column}`}equal(t){return this.row===t.row&&this.column===t.column}add(t){this.row+=t.row,this.column+=t.column}sub(t){this.row-=t.row,this.column-=t.column}}var gf=function(){function e(t){if(!t)throw new TypeError("Invalid argument; `value` has no value.");this.value=e.EMPTY,t&&e.isGuid(t)&&(this.value=t)}return e.isGuid=function(t){var n=t.toString();return t&&(t instanceof e||e.validator.test(n))},e.create=function(){return new e([e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-"))},e.createEmpty=function(){return new e("emptyguid")},e.parse=function(t){return new e(t)},e.raw=function(){return[e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join("-")},e.gen=function(t){for(var n="",i=0;i<t;i++)n+=((1+Math.random())*65536|0).toString(16).substring(1);return n},e.prototype.equals=function(t){return e.isGuid(t)&&this.value===t.toString()},e.prototype.isEmpty=function(){return this.value===e.EMPTY},e.prototype.toString=function(){return this.value},e.prototype.toJSON=function(){return{value:this.value}},e.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),e.EMPTY="00000000-0000-0000-0000-000000000000",e}(),vf=gf;class Wn{constructor(t,n,i=!1){me(this,"id");me(this,"value");me(this,"position");me(this,"moveToPosition");me(this,"isEmpty");me(this,"mergedOut");me(this,"mergedIn");this.id=vf.create().toString(),this.value=n,this.position=t,this.moveToPosition=t,this.isEmpty=i,this.mergedOut=!1,this.mergedIn=!1}merge(){this.mergedIn=!1,this.value*=2}isNeedMove(){return!this.position.equal(this.moveToPosition)}clear(){this.value=0,this.isEmpty=!0,this.moveToPosition=this.position,this.mergedOut=!1,this.mergedIn=!1}}class _f{constructor(t){me(this,"size");me(this,"tiles",[]);this.size=t;for(let n=0;n<t;n++)for(let i=0;i<t;i++)this.tiles.push(new Wn(new Lt(n,i),0,!0))}inBound(t){return t.row>=0&&t.row<this.size&&t.column>=0&&t.column<this.size}generateTile(){const t=this.randomAvailableCell(),n=Math.random()<.7?2:4;let i=this.tiles.filter(r=>r.position.equal(t))[0];i.value=n,i.isEmpty=!1}removeTile(t){let n=this.tiles.filter(i=>i.position.equal(t.position))[0];this.tiles.splice(this.tiles.indexOf(n),1,new Wn(t.position,0,!0))}isAvailable(t){return!!this.tiles.filter(i=>i.position.equal(t))[0].isEmpty}isAvailableAfterMove(t){return!!this.tiles.filter(i=>i.moveToPosition.equal(t))[0].isEmpty}getTileByPosition(t){return this.tiles.filter(n=>n.position.equal(t))[0]}getTileByPositionAfterMove(t){return this.tiles.filter(n=>n.moveToPosition.equal(t))[0]}randomAvailableCell(){let t=this.tiles.filter(n=>n.isEmpty);return t[Math.floor(Math.random()*t.length)].position}hasAvailableCells(){return this.tiles.filter(n=>n.isEmpty).length>0}moveTo(t,n){if(t.position.equal(n))return;let i=this.tiles.indexOf(this.tiles.filter(l=>l.position.equal(t.position))[0]),r=this.tiles.indexOf(this.tiles.filter(l=>l.position.equal(n))[0]);const s=this.tiles[i],o=s.position;this.tiles[i].position=n,this.tiles[r].position=o,this.tiles[i]=this.tiles[r],this.tiles[r]=s}simulateMoveTo(t,n){if(t.moveToPosition.equal(n))return;let i=this.tiles.indexOf(this.tiles.filter(l=>l.moveToPosition.equal(t.position))[0]),r=this.tiles.indexOf(this.tiles.filter(l=>l.moveToPosition.equal(n))[0]);const o=this.tiles[i].moveToPosition;this.tiles[i].moveToPosition=n,this.tiles[r].moveToPosition=o}resurrect(){this.tiles.sort(()=>Math.random()-.5).forEach((n,i)=>{n.position.row=Math.floor(i/this.size),n.position.column=i-n.position.row*this.size,n.moveToPosition=n.position,n.mergedOut=!1,n.mergedIn=!1})}}const ys=[[5e3,["\u98CE\u884C\u5929\u4E0B\uFF0C\u8C01\u4E0E\u4E89\u950B\u3002","\u5927\u795E\uFF0C\u819C\u62DC\uFF01"]],[3500,["\u9AD8\u7D20\u8D28\u4EBA\u624D\u5C31\u662F\u4E0D\u4E00\u6837\uFF01","\u5DF2\u6C89\u9189\u5728\u5144\u53F0\u8FD9\u9AD8\u7EDD\u7684\u80FD\u529B\u4E4B\u4E2D\u3002"]],[2500,["\u54CE\u5466\uFF0C\u76F8\u5F53\u54C7\u585E\uFF01","\u770B\u597D\u4F60,\u71C3\u8D77\u6765\u4E86\uFF01"]],[1500,["\u534A\u5C71\u8170\u603B\u662F\u6700\u6324\u7684\uFF0C\u4F60\u5F97\u53BB\u5C71\u9876\u770B\u770B\u3002","\u54CE\u5466\uFF0C\u4E0D\u9519\u54E6\uFF01"]],[0,["\u9AD8\u624B\u8FC7\u62DB\uFF0C\u6700\u5FCC\u5FC3\u6D6E\u6C14\u8E81\u3002","\u55EF...... \u52A0\u6CB9\uFF01","\u52AA\u529B\u5427\uFF0C\u5C11\u5E74\uFF01"]]],wf={size:4};class yf{constructor(t){me(this,"score",0);me(this,"grid");me(this,"gameOver",!1);me(this,"msg","");me(this,"size");me(this,"timing","");me(this,"shuffleNum");me(this,"maxShuffleNum",2);me(this,"events");me(this,"isMoving",!1);const{size:n=0,events:i={}}={...wf,...t};this.size=n,this.shuffleNum=this.maxShuffleNum,this.events=i,this.grid=new _f(this.size),this.generateTile()}reStart(){this.score=0,this.isMoving=!1,this.gameOver=!1,this.shuffleNum=this.maxShuffleNum,this.grid.tiles.forEach(t=>t.clear()),this.generateTile()}generateTile(){this.grid.hasAvailableCells()&&(this.grid.generateTile(),this.gameOver=this.ifGameOver())}getDirection(t){let n=new Lt(0,0);switch(t){case"ArrowUp":n.row=-1;break;case"ArrowDown":n.row=1;break;case"ArrowLeft":n.column=-1;break;case"ArrowRight":n.column=1;break;default:return console.error("Main Managere getDirection() should not accept key ",t),n}return n}buildTraversal(t){let n=[];for(let i=0;i<2;i++){n.push([]);for(let r=0;r<this.size;r++)n[i].push(r)}return t.row===1&&n[0].reverse(),t.column===1&&n[1].reverse(),n}async move(t){if(this.isMoving)return;this.timing="",this.isMoving=!0;const n=this.getDirection(t),i=this.buildTraversal(n);this.timing="beformove",this.arrange(n,i);let r=this.grid.tiles.some(l=>!l.isEmpty&&l.isNeedMove());r&&(this.events.moveCallback&&this.events.moveCallback(),await this.moveAction(n,i)),this.timing="beformerge";let s=this.grid.tiles.some(l=>!l.isEmpty&&l.mergedOut);s&&(await this.delay(200),await this.mergeAction()),this.timing="aftermerge",this.arrange(n,i,!0),this.grid.tiles.some(l=>!l.isEmpty&&l.isNeedMove())&&await this.moveAction(n,i),(r||s)&&this.generateTile(),this.isMoving=!1,this.timing=""}arrange(t,n,i=!1){this.grid.tiles.forEach(r=>{r.moveToPosition=r.position});for(let r=0;r<this.size;r++)for(let s=0;s<this.size;s++){const o=new Lt(n[0][r],n[1][s]);if(!this.grid.isAvailable(o)){const l=this.grid.getTileByPosition(o);l instanceof Wn&&!l.isEmpty&&this.arrangeMove(l,t,i)}}}arrangeMove(t,n,i=!1){const r=new Lt(t.position.row,t.position.column);for(r.add(n);this.grid.inBound(r)&&this.grid.isAvailableAfterMove(r);)r.add(n);if(!i&&this.grid.inBound(r)){const s=this.grid.getTileByPositionAfterMove(r);!s.mergedOut&&!s.mergedIn&&s.value===t.value&&(t.mergedOut=!0,s.mergedIn=!0)}r.sub(n),this.grid.simulateMoveTo(t,r)}async moveAction(t,n){for(let i=0;i<this.size;i++)for(let r=0;r<this.size;r++){const s=new Lt(n[0][i],n[1][r]);if(!this.grid.isAvailable(s)){const o=this.grid.getTileByPosition(s);o instanceof Wn&&!o.isEmpty&&o.isNeedMove()&&this.grid.moveTo(o,o.moveToPosition)}}await this.delay(400)}async mergeAction(){this.grid.tiles.forEach(t=>{t.mergedIn?(t.merge(),this.score+=t.value):t.mergedOut&&t.clear()})}delay(t){return new Promise(n=>setTimeout(n,t))}ifGameOver(t=!0){if(this.grid.hasAvailableCells())return!1;let n=!0;return this.grid.tiles.forEach(i=>{this.canMergeToAround(i)&&(n=!1)}),t&&n&&(this.score<ys[2][0]?this.events.winCallback&&this.events.winCallback():this.events.loseCallback&&this.events.loseCallback()),n}canMergeToAround(t){const n=[[0,1],[0,-1],[1,0],[-1,0]];for(let i=0;i<4;i++){const r=new Lt(t.position.row+n[i][0],t.position.column+n[i][1]);if(this.grid.inBound(r)&&this.grid.getTileByPosition(r).value===t.value)return!0}return!1}onGameStatusChange(t,n){if(n){let i=ys.filter(s=>s[0]<=this.score),r=Math.floor(Math.random()*2);this.msg=i.length>0?i[0][1][r]:""}else this.msg=""}resurrect(){for(;this.ifGameOver(!1)&&this.shuffleNum>0;)this.grid.resurrect();this.shuffleNum-=1,this.gameOver=this.ifGameOver(!1)}isShuffled(){return this.shuffleNum<this.maxShuffleNum}}var bs;const il=typeof window<"u",bf=e=>typeof e=="function",Cf=e=>typeof e=="string",$f=()=>{};il&&((bs=window==null?void 0:window.navigator)==null?void 0:bs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Un(e){return typeof e=="function"?e():Wt(e)}function Tf(e,t){function n(...i){e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})}return n}const rl=e=>e();function Pf(e=rl){const t=$e(!0);function n(){t.value=!1}function i(){t.value=!0}return{isActive:t,pause:n,resume:i,eventFilter:(...s)=>{t.value&&e(...s)}}}function xf(e){return e}function sl(e){return Sl()?(Ml(e),!0):!1}function Ef(e){return typeof e=="function"?vn(e):$e(e)}function ol(e,t=!0){gr()?ii(e):t?e():ar(e)}function Of(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=be(e),s=$e(e);function o(l){if(arguments.length)return s.value=l,s.value;{const a=Un(n);return s.value=s.value===a?Un(i):a,s.value}}return r?o:[s,o]}var Cs=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Sf=Object.prototype.propertyIsEnumerable,Mf=(e,t)=>{var n={};for(var i in e)Af.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Cs)for(var i of Cs(e))t.indexOf(i)<0&&Sf.call(e,i)&&(n[i]=e[i]);return n};function Ff(e,t,n={}){const i=n,{eventFilter:r=rl}=i,s=Mf(i,["eventFilter"]);return ht(e,Tf(r,t),s)}var Nf=Object.defineProperty,If=Object.defineProperties,Df=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable,$s=(e,t,n)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lf=(e,t)=>{for(var n in t||(t={}))ll.call(t,n)&&$s(e,n,t[n]);if(Vn)for(var n of Vn(t))al.call(t,n)&&$s(e,n,t[n]);return e},Rf=(e,t)=>If(e,Df(t)),Bf=(e,t)=>{var n={};for(var i in e)ll.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Vn)for(var i of Vn(e))t.indexOf(i)<0&&al.call(e,i)&&(n[i]=e[i]);return n};function kf(e,t,n={}){const i=n,{eventFilter:r}=i,s=Bf(i,["eventFilter"]),{eventFilter:o,pause:l,resume:a,isActive:c}=Pf(r);return{stop:Ff(e,t,Rf(Lf({},s),{eventFilter:o})),pause:l,resume:a,isActive:c}}function Hf(e){var t;const n=Un(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Yt=il?window:void 0;function zf(...e){let t,n,i,r;if(Cf(e[0])||Array.isArray(e[0])?([n,i,r]=e,t=Yt):[t,n,i,r]=e,!t)return $f;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],o=()=>{s.forEach(d=>d()),s.length=0},l=(d,p,m)=>(d.addEventListener(p,m,r),()=>d.removeEventListener(p,m,r)),a=ht(()=>Hf(t),d=>{o(),d&&s.push(...n.flatMap(p=>i.map(m=>l(d,p,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return sl(c),c}function jf(e,t=!1){const n=$e(),i=()=>n.value=Boolean(e());return i(),ol(i,t),n}function Wf(e,t={}){const{window:n=Yt}=t,i=jf(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const s=$e(!1),o=()=>{!r||("removeEventListener"in r?r.removeEventListener("change",l):r.removeListener(l))},l=()=>{!i.value||(o(),r=n.matchMedia(Ef(e).value),s.value=r.matches,"addEventListener"in r?r.addEventListener("change",l):r.addListener(l))};return $a(l),sl(()=>o()),s}const Vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ki="__vueuse_ssr_handlers__";Vi[Ki]=Vi[Ki]||{};const Uf=Vi[Ki];function ul(e,t){return Uf[e]||t}function Vf(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"}var Kf=Object.defineProperty,Ts=Object.getOwnPropertySymbols,qf=Object.prototype.hasOwnProperty,Yf=Object.prototype.propertyIsEnumerable,Ps=(e,t,n)=>t in e?Kf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xs=(e,t)=>{for(var n in t||(t={}))qf.call(t,n)&&Ps(e,n,t[n]);if(Ts)for(var n of Ts(t))Yf.call(t,n)&&Ps(e,n,t[n]);return e};const Xf={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()}};function Gf(e,t,n,i={}){var r;const{flush:s="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:d,window:p=Yt,eventFilter:m,onError:_=z=>{console.error(z)}}=i,x=(d?ra:$e)(t);if(!n)try{n=ul("getDefaultStorage",()=>{var z;return(z=Yt)==null?void 0:z.localStorage})()}catch(z){_(z)}if(!n)return x;const $=Un(t),b=Vf($),E=(r=i.serializer)!=null?r:Xf[b],{pause:N,resume:A}=kf(x,()=>L(x.value),{flush:s,deep:o,eventFilter:m});return p&&l&&zf(p,"storage",he),he(),x;function L(z){try{z==null?n.removeItem(e):n.setItem(e,E.write(z))}catch(I){_(I)}}function K(z){N();try{const I=z?z.newValue:n.getItem(e);if(I==null)return a&&$!==null&&n.setItem(e,E.write($)),$;if(!z&&c){const V=E.read(I);return bf(c)?c(V,$):b==="object"&&!Array.isArray(V)?xs(xs({},$),V):V}else return typeof I!="string"?I:E.read(I)}catch(I){_(I)}finally{A()}}function he(z){if(!(z&&z.storageArea!==n)){if(z&&z.key===null){x.value=$;return}z&&z.key!==e||(x.value=K(z))}}}function cl(e){return Wf("(prefers-color-scheme: dark)",e)}var Jf=Object.defineProperty,Es=Object.getOwnPropertySymbols,Qf=Object.prototype.hasOwnProperty,Zf=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?Jf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ed=(e,t)=>{for(var n in t||(t={}))Qf.call(t,n)&&Os(e,n,t[n]);if(Es)for(var n of Es(t))Zf.call(t,n)&&Os(e,n,t[n]);return e};function td(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Yt,storage:s,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:a,emitAuto:c}=e,d=ed({auto:"",light:"light",dark:"dark"},e.modes||{}),p=cl({window:r}),m=vn(()=>p.value?"dark":"light"),_=a||(o==null?$e(i):Gf(o,i,s,{window:r,listenToStorageChanges:l})),x=vn({get(){return _.value==="auto"&&!c?m.value:_.value},set(N){_.value=N}}),$=ul("updateHTMLAttrs",(N,A,L)=>{const K=r==null?void 0:r.document.querySelector(N);if(!!K)if(A==="class"){const he=L.split(/\s/g);Object.values(d).flatMap(z=>(z||"").split(/\s/g)).filter(Boolean).forEach(z=>{he.includes(z)?K.classList.add(z):K.classList.remove(z)})}else K.setAttribute(A,L)});function b(N){var A;const L=N==="auto"?m.value:N;$(t,n,(A=d[L])!=null?A:L)}function E(N){e.onChanged?e.onChanged(N,b):b(N)}return ht(x,E,{flush:"post",immediate:!0}),c&&ht(m,()=>E(x.value),{flush:"post"}),ol(()=>E(x.value)),x}var nd=Object.defineProperty,id=Object.defineProperties,rd=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,sd=Object.prototype.hasOwnProperty,od=Object.prototype.propertyIsEnumerable,Ss=(e,t,n)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ld=(e,t)=>{for(var n in t||(t={}))sd.call(t,n)&&Ss(e,n,t[n]);if(As)for(var n of As(t))od.call(t,n)&&Ss(e,n,t[n]);return e},ad=(e,t)=>id(e,rd(t));function ud(e={}){const{valueDark:t="dark",valueLight:n="",window:i=Yt}=e,r=td(ad(ld({},e),{onChanged:(l,a)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,l==="dark"):a(l)},modes:{dark:t,light:n}})),s=cl({window:i});return vn({get(){return r.value==="dark"},set(l){l===s.value?r.value="auto":r.value=l?"dark":"light"}})}var Ms;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ms||(Ms={}));var cd=Object.defineProperty,Fs=Object.getOwnPropertySymbols,fd=Object.prototype.hasOwnProperty,dd=Object.prototype.propertyIsEnumerable,Ns=(e,t,n)=>t in e?cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hd=(e,t)=>{for(var n in t||(t={}))fd.call(t,n)&&Ns(e,n,t[n]);if(Fs)for(var n of Fs(t))dd.call(t,n)&&Ns(e,n,t[n]);return e};const pd={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};hd({linear:xf},pd);const yr=ud(),md=Of(yr),gd={key:0,class:"tile"},vd=Le({__name:"TileComponent",props:{tile:null,timing:null},setup(e){return(t,n)=>e.tile.isEmpty?(ce(),_e("button",gd)):(ce(),_e("button",{key:1,class:Xe([e.tile.mergedIn&&e.timing=="beformerge"?Wt(yr)?"mergein-dark":"mergein":"","tile-"+e.tile.value,"tile"])},Kn(e.tile.value),3))}}),br=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},_d=br(vd,[["__scopeId","data-v-6b80713a"]]),wd={},yd=e=>(uo("data-v-5d2656dc"),e=e(),co(),e),bd={class:"items-center"},Cd=yd(()=>ie("h1",{class:"mt-3 mb-3 text-cyan-600 dark:text-cyan-500 text-5xl font-bold title-animation"},[ie("span",null,"G"),ie("span",null,"O"),ie("span",null,"!"),ie("span",null,"-"),ie("span",null,"2"),ie("span",null,"0"),ie("span",null,"4"),ie("span",null,"8")],-1)),$d=[Cd];function Td(e,t){return ce(),_e("div",bd,$d)}const Pd=br(wd,[["render",Td],["__scopeId","data-v-5d2656dc"]]),xd={class:"text-2xl"},Ed=ie("span",null,"Score: ",-1),Od={class:"text-indigo-500"},Ad=Le({__name:"ScoreComponent",props:{score:null},setup(e){return(t,n)=>(ce(),_e("div",xd,[Ed,ie("strong",Od,Kn(e.score),1)]))}}),Sd={"text-xl":"","mt-6":"","inline-flex":"","gap-2":"",needtouch:""},Md={key:0,class:"needtouch","i-carbon-moon":""},Fd={key:1,class:"needtouch","i-carbon-sun":""},Nd={key:0,class:"needtouch","i-carbon-help-filled":""},Id={key:1,class:"needtouch","i-carbon-help-filled":""},Dd=Le({__name:"FooterComponent",props:{isShowTip:{type:Boolean}},emits:["toggleTip"],setup(e,{emit:t}){return(n,i)=>{const r=ka("tooltip");return ce(),_e("nav",Sd,[ie("button",{class:"icon-btn !outline-none needtouch",onClick:i[0]||(i[0]=s=>Wt(md)())},[Wt(yr)?(ce(),_e("div",Md)):(ce(),_e("div",Fd))]),ie("button",{class:"icon-btn !outline-none needtouch",onClick:i[1]||(i[1]=s=>t("toggleTip"))},[e.isShowTip?La((ce(),_e("div",Nd,null,512)),[[r,{content:"\u6ED1\u52A8\u5C4F\u5E55\u6765\u79FB\u52A8\u65B9\u5757\uFF0C\u4E24\u4E2A\u6570\u5B57\u76F8\u540C\u7684\u65B9\u5757\u76F8\u649E\u65F6\u76F8\u52A0\u5408\u6210\u4E00\u4E2A\u65B9\u5757\u5E76\u5F97\u5206\uFF0C\u6BCF\u6B21\u64CD\u4F5C\u4E4B\u540E\u4F1A\u5728\u7A7A\u767D\u7684\u65B9\u683C\u5904\u968F\u673A\u751F\u6210\u4E00\u4E2A2\u62164\u7684\u65B9\u5757\uFF0C\u5982\u679C16\u4E2A\u683C\u5B50\u5168\u90E8\u586B\u6EE1\u65E0\u6CD5\u79FB\u52A8\u5219\u6E38\u620F\u7ED3\u675F\u3002",html:!0,shown:!0,showTriggers:["click","touch"],hideTriggers:["click"],autoHide:!1}]]):(ce(),_e("div",Id,"aa"))])])}}}),Ld={key:0,class:"won"},Rd={class:"ml-3 mr-3"},Bd={class:"mt-3",id:"gameOver"},kd={class:"mt-3"},Hd=["data-num","disabled"],zd=Le({__name:"PageComponent",setup(e){const t=$e(new yf({events:{moveCallback:o,winCallback:l,loseCallback:a}}));function n(b){return b==="ArrowUp"||b==="ArrowDown"||b==="ArrowLeft"||b==="ArrowRight"}const i=$e(),r=$e(),s=$e();function o(){setTimeout(function(){var b;(b=i.value)!=null&&b.paused?i.value.play():i.value&&(i.value.load(),i.value.play())},300)}function l(){setTimeout(function(){var b;(b=r.value)==null||b.play(),pf()},300)}function a(){setTimeout(function(){var b;(b=s.value)==null||b.play(),mf()},300)}function c(b){t.value.gameOver||!n(b.key)||(b.preventDefault(),t.value.move(b.key))}function d(b){return!!(b.target.matches(".needtouch")||t.value.gameOver)}let p=$e(!1);function m(){p.value=!p.value}$e(!1);let _=0,x=0,$=!1;return ii(()=>{window.addEventListener("keyup",c),window.addEventListener("touchstart",function(b){p.value=!1,!(d(b)||$)&&(b.preventDefault(),$=!0,_=b.changedTouches[0].pageX,x=b.changedTouches[0].pageY)},{passive:!1}),window.addEventListener("touchend",function(b){d(b)||(b.preventDefault(),$=!1)},{passive:!1}),window.addEventListener("touchmove",function(b){if(!(d(b)||!$)&&(b.preventDefault(),b.changedTouches.length)){let E=b.changedTouches[0].pageX,N=b.changedTouches[0].pageY,A=E-_,L=N-x,K=60;Math.abs(A)>Math.abs(L)&&A>K?(t.value.move("ArrowRight"),$=!1):Math.abs(A)>Math.abs(L)&&A<-K?(t.value.move("ArrowLeft"),$=!1):Math.abs(L)>Math.abs(A)&&L>K?(t.value.move("ArrowDown"),$=!1):Math.abs(L)>Math.abs(A)&&L<-K&&(t.value.move("ArrowUp"),$=!1)}},{passive:!1})}),ht(()=>t.value.gameOver,(b,E)=>{t.value.onGameStatusChange(E,b)}),(b,E)=>(ce(),_e(Te,null,[de(Pd),de(ju,mr({tag:"div",name:"list",class:"wrapper normal-bg",style:{"grid-template-columns":`repeat(${t.value.size}, 1fr)`}},b.$attrs),{default:Ft(()=>[(ce(!0),_e(Te,null,Ha(t.value.grid.tiles,N=>(ce(),_e("div",{key:N.id.toString()},[de(_d,{tile:N,timing:t.value.timing},null,8,["tile","timing"])]))),128)),t.value.gameOver?(ce(),_e("div",Ld,[ie("span",Rd,Kn(t.value.msg),1)])):Li("",!0)]),_:1},16,["style"]),de(Ad,{class:"mt-2",score:t.value.score},null,8,["score"]),ie("div",Bd,[ie("div",kd,[ie("button",{class:"button ml-2 py-2 px-7 w-25 needtouch",onClick:E[0]||(E[0]=N=>t.value.reStart())}," \u91CD\u6765 "),ie("button",{"data-num":t.value.maxShuffleNum-t.value.shuffleNum,class:Xe(["button","ml-2","py-2","px-7","w-25","needtouch","used"]),disabled:!t.value.gameOver||t.value.shuffleNum<1,onClick:E[1]||(E[1]=N=>t.value.resurrect())}," \u6253\u4E71 ",8,Hd)])]),de(Dd,{isShowTip:Wt(p),onToggleTip:E[2]||(E[2]=N=>m())},null,8,["isShowTip"]),ie("audio",{ref_key:"clickAudioRef",ref:i,style:{display:"none"},controls:"",src:"./audio/click.mp3"},null,512),ie("audio",{ref_key:"winAudioRef",ref:r,style:{display:"none"},controls:"",src:"./audio/win.mp3"},null,512),ie("audio",{ref_key:"loseAudioRef",ref:s,style:{display:"none"},controls:"",src:"./audio/lose.mp3"},null,512)],64))}}),jd=br(zd,[["__scopeId","data-v-b6dbe8c0"]]),Wd={"font-sans":"",class:"flex flex-col h-screen items-center","un-bg":"slate-50 dark:slate-900","un-text":"gray-700 dark:gray-200"},Ud=Le({__name:"App",setup(e){return(t,n)=>(ce(),_e("main",Wd,[de(jd)]))}});Ho(Ud).directive("tooltip",hf).mount("#app")});export default Vd();
