diff --git "a/assets/index-RRIxYnAQ.js" "b/assets/index-RRIxYnAQ.js" new file mode 100644--- /dev/null +++ "b/assets/index-RRIxYnAQ.js" @@ -0,0 +1,17 @@ +var la=Object.defineProperty;var aa=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ie=(e,t,n)=>aa(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function ws(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ws(e,t,n=".",s){if(!ws(t))return Ws(e,{},n,s);const r=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(s&&s(r,i,o,n)||(Array.isArray(o)&&Array.isArray(r[i])?r[i]=[...o,...r[i]]:ws(o)&&ws(r[i])?r[i]=Ws(o,r[i],(n?`${n}.`:"")+i.toString(),s):r[i]=o))}return r}function ca(e){return(...t)=>t.reduce((n,s)=>Ws(n,s,"",e),{})}const Wi=ca();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function dr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ne={},Dt=[],qe=()=>{},ua=()=>!1,es=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pr=e=>e.startsWith("onUpdate:"),de=Object.assign,hr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fa=Object.prototype.hasOwnProperty,Q=(e,t)=>fa.call(e,t),k=Array.isArray,Nt=e=>hn(e)==="[object Map]",ts=e=>hn(e)==="[object Set]",Wr=e=>hn(e)==="[object Date]",B=e=>typeof e=="function",ce=e=>typeof e=="string",Ge=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",zi=e=>(ee(e)||B(e))&&B(e.then)&&B(e.catch),Ki=Object.prototype.toString,hn=e=>Ki.call(e),da=e=>hn(e).slice(8,-1),qi=e=>hn(e)==="[object Object]",gr=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qt=dr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pa=/-(\w)/g,ut=ns(e=>e.replace(pa,(t,n)=>n?n.toUpperCase():"")),ha=/\B([A-Z])/g,Mt=ns(e=>e.replace(ha,"-$1").toLowerCase()),Gi=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=ns(e=>e?`on${Gi(e)}`:""),ct=(e,t)=>!Object.is(e,t),Fn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Yi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ga=e=>{const t=ce(e)?Number(e):NaN;return isNaN(t)?e:t};let zr;const ss=()=>zr||(zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(k(e)){const t={};for(let n=0;n{if(n){const s=n.split(ya);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function is(e){let t="";if(ce(e))t=e;else if(k(e))for(let n=0;nos(n,t))}const Qi=e=>!!(e&&e.__v_isRef===!0),Dn=e=>ce(e)?e:e==null?"":k(e)||ee(e)&&(e.toString===Ki||!B(e.toString))?Qi(e)?Dn(e.value):JSON.stringify(e,Xi,2):String(e),Xi=(e,t)=>Qi(t)?Xi(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Ts(s,i)+" =>"]=r,n),{})}:ts(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ts(n))}:Ge(t)?Ts(t):ee(t)&&!k(t)&&!qi(t)?String(t):t,Ts=(e,t="")=>{var n;return Ge(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let be;class Oa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Jt){let t=Jt;for(Jt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gt;){let t=Gt;for(Gt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ro(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function io(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),vr(s),Ca(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rn))return;e.globalVersion=rn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!zs(e)){e.flags&=-3;return}const n=ie,s=Ne;ie=e,Ne=!0;try{ro(e);const r=e.fn(e._value);(t.version===0||ct(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ie=n,Ne=s,io(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)vr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ca(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const lo=[];function pt(){lo.push(Ne),Ne=!1}function ht(){const e=lo.pop();Ne=e===void 0?!0:e}function Kr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ie;ie=void 0;try{t()}finally{ie=n}}}let rn=0;class Aa{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ls{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ie||!Ne||ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ie)n=this.activeLink=new Aa(ie,this),ie.deps?(n.prevDep=ie.depsTail,ie.depsTail.nextDep=n,ie.depsTail=n):ie.deps=ie.depsTail=n,ao(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ie.depsTail,n.nextDep=void 0,ie.depsTail.nextDep=n,ie.depsTail=n,ie.deps===n&&(ie.deps=s)}return n}trigger(t){this.version++,rn++,this.notify(t)}notify(t){mr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yr()}}}function ao(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ao(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $n=new WeakMap,Ct=Symbol(""),Ks=Symbol(""),on=Symbol("");function ge(e,t,n){if(Ne&&ie){let s=$n.get(e);s||$n.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ls),r.map=s,r.key=n),r.track()}}function Xe(e,t,n,s,r,i){const o=$n.get(e);if(!o){rn++;return}const l=a=>{a&&a.trigger()};if(mr(),t==="clear")o.forEach(l);else{const a=k(e),u=a&&gr(n);if(a&&n==="length"){const c=Number(s);o.forEach((f,h)=>{(h==="length"||h===on||!Ge(h)&&h>=c)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(on)),t){case"add":a?u&&l(o.get("length")):(l(o.get(Ct)),Nt(e)&&l(o.get(Ks)));break;case"delete":a||(l(o.get(Ct)),Nt(e)&&l(o.get(Ks)));break;case"set":Nt(e)&&l(o.get(Ct));break}}yr()}function Ea(e,t){const n=$n.get(e);return n&&n.get(t)}function Pt(e){const t=G(e);return t===e?t:(ge(t,"iterate",on),Fe(e)?t:t.map(me))}function as(e){return ge(e=G(e),"iterate",on),e}const Ma={__proto__:null,[Symbol.iterator](){return As(this,Symbol.iterator,me)},concat(...e){return Pt(this).concat(...e.map(t=>k(t)?Pt(t):t))},entries(){return As(this,"entries",e=>(e[1]=me(e[1]),e))},every(e,t){return Je(this,"every",e,t,void 0,arguments)},filter(e,t){return Je(this,"filter",e,t,n=>n.map(me),arguments)},find(e,t){return Je(this,"find",e,t,me,arguments)},findIndex(e,t){return Je(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Je(this,"findLast",e,t,me,arguments)},findLastIndex(e,t){return Je(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Je(this,"forEach",e,t,void 0,arguments)},includes(...e){return Es(this,"includes",e)},indexOf(...e){return Es(this,"indexOf",e)},join(e){return Pt(this).join(e)},lastIndexOf(...e){return Es(this,"lastIndexOf",e)},map(e,t){return Je(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return qr(this,"reduce",e,t)},reduceRight(e,...t){return qr(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return Je(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return Pt(this).toReversed()},toSorted(e){return Pt(this).toSorted(e)},toSpliced(...e){return Pt(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return As(this,"values",me)}};function As(e,t,n){const s=as(e),r=s[t]();return s!==e&&!Fe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Ra=Array.prototype;function Je(e,t,n,s,r,i){const o=as(e),l=o!==e&&!Fe(e),a=o[t];if(a!==Ra[t]){const f=a.apply(e,i);return l?me(f):f}let u=n;o!==e&&(l?u=function(f,h){return n.call(this,me(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=a.call(o,u,s);return l&&r?r(c):c}function qr(e,t,n,s){const r=as(e);let i=n;return r!==e&&(Fe(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,me(l),a,e)}),r[t](i,...s)}function Es(e,t,n){const s=G(e);ge(s,"iterate",on);const r=s[t](...n);return(r===-1||r===!1)&&xr(n[0])?(n[0]=G(n[0]),s[t](...n)):r}function Wt(e,t,n=[]){pt(),mr();const s=G(e)[t].apply(e,n);return yr(),ht(),s}const Ia=dr("__proto__,__v_isRef,__isVue"),co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ge));function Pa(e){Ge(e)||(e=String(e));const t=G(this);return ge(t,"has",e),t.hasOwnProperty(e)}class uo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Ba:go:i?ho:po).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=k(t);if(!r){let a;if(o&&(a=Ma[n]))return a;if(n==="hasOwnProperty")return Pa}const l=Reflect.get(t,n,fe(t)?t:s);return(Ge(n)?co.has(n):Ia(n))||(r||ge(t,"get",n),i)?l:fe(l)?o&&gr(n)?l:l.value:ee(l)?r?cs(l):Rt(l):l}}class fo extends uo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const a=Et(i);if(!Fe(s)&&!Et(s)&&(i=G(i),s=G(s)),!k(t)&&fe(i)&&!fe(s))return a?!1:(i.value=s,!0)}const o=k(t)&&gr(n)?Number(n)e,Cn=e=>Reflect.getPrototypeOf(e);function La(e,t,n){return function(...s){const r=this.__v_raw,i=G(r),o=Nt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=r[e](...s),c=n?qs:t?Gs:me;return!t&&ge(i,"iterate",a?Ks:Ct),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function An(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ka(e,t){const n={get(r){const i=this.__v_raw,o=G(i),l=G(r);e||(ct(r,l)&&ge(o,"get",r),ge(o,"get",l));const{has:a}=Cn(o),u=t?qs:e?Gs:me;if(a.call(o,r))return u(i.get(r));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ge(G(r),"iterate",Ct),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=G(i),l=G(r);return e||(ct(r,l)&&ge(o,"has",r),ge(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,a=G(l),u=t?qs:e?Gs:me;return!e&&ge(a,"iterate",Ct),l.forEach((c,f)=>r.call(i,u(c),u(f),o))}};return de(n,e?{add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear")}:{add(r){!t&&!Fe(r)&&!Et(r)&&(r=G(r));const i=G(this);return Cn(i).has.call(i,r)||(i.add(r),Xe(i,"add",r,r)),this},set(r,i){!t&&!Fe(i)&&!Et(i)&&(i=G(i));const o=G(this),{has:l,get:a}=Cn(o);let u=l.call(o,r);u||(r=G(r),u=l.call(o,r));const c=a.call(o,r);return o.set(r,i),u?ct(i,c)&&Xe(o,"set",r,i):Xe(o,"add",r,i),this},delete(r){const i=G(this),{has:o,get:l}=Cn(i);let a=o.call(i,r);a||(r=G(r),a=o.call(i,r)),l&&l.call(i,r);const u=i.delete(r);return a&&Xe(i,"delete",r,void 0),u},clear(){const r=G(this),i=r.size!==0,o=r.clear();return i&&Xe(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=La(r,e,t)}),n}function br(e,t){const n=ka(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const Va={get:br(!1,!1)},Ha={get:br(!1,!0)},$a={get:br(!0,!1)};const po=new WeakMap,ho=new WeakMap,go=new WeakMap,Ba=new WeakMap;function Ua(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ua(da(e))}function Rt(e){return Et(e)?e:_r(e,!1,Fa,Va,po)}function za(e){return _r(e,!1,Na,Ha,ho)}function cs(e){return _r(e,!0,Da,$a,go)}function _r(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Wa(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Lt(e){return Et(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function xr(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Ka(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&Ji(e,"__v_skip",!0),e}const me=e=>ee(e)?Rt(e):e,Gs=e=>ee(e)?cs(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function oe(e){return mo(e,!1)}function ue(e){return mo(e,!0)}function mo(e,t){return fe(e)?e:new qa(e,t)}class qa{constructor(t,n){this.dep=new ls,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Fe(t)||Et(t);t=s?t:G(t),ct(t,n)&&(this._rawValue=t,this._value=s?t:me(t),this.dep.trigger())}}function De(e){return fe(e)?e.value:e}function Le(e){return B(e)?e():De(e)}const Ga={get:(e,t,n)=>t==="__v_raw"?e:De(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function yo(e){return Lt(e)?e:new Proxy(e,Ga)}class Ja{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ls,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ya(e){return new Ja(e)}class Za{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ea(G(this._object),this._key)}}class Qa{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function vo(e,t,n){return fe(e)?e:B(e)?new Qa(e):ee(e)&&arguments.length>1?Xa(e,t,n):oe(e)}function Xa(e,t,n){const s=e[t];return fe(s)?s:new Za(e,t,n)}class ec{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ls(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return so(this,!0),!0}get value(){const t=this.dep.track();return oo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function tc(e,t,n=!1){let s,r;return B(e)?s=e:(s=e.get,r=e.set),new ec(s,r,n)}const En={},Bn=new WeakMap;let wt;function nc(e,t=!1,n=wt){if(n){let s=Bn.get(n);s||Bn.set(n,s=[]),s.push(e)}}function sc(e,t,n=ne){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:a}=n,u=b=>r?b:Fe(b)||r===!1||r===0?et(b,1):et(b);let c,f,h,g,y=!1,x=!1;if(fe(e)?(f=()=>e.value,y=Fe(e)):Lt(e)?(f=()=>u(e),y=!0):k(e)?(x=!0,y=e.some(b=>Lt(b)||Fe(b)),f=()=>e.map(b=>{if(fe(b))return b.value;if(Lt(b))return u(b);if(B(b))return a?a(b,2):b()})):B(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){pt();try{h()}finally{ht()}}const b=wt;wt=c;try{return a?a(e,3,[g]):e(g)}finally{wt=b}}:f=qe,t&&r){const b=f,F=r===!0?1/0:r;f=()=>et(b(),F)}const M=eo(),C=()=>{c.stop(),M&&M.active&&hr(M.effects,c)};if(i&&t){const b=t;t=(...F)=>{b(...F),C()}}let P=x?new Array(e.length).fill(En):En;const T=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const F=c.run();if(r||y||(x?F.some((U,J)=>ct(U,P[J])):ct(F,P))){h&&h();const U=wt;wt=c;try{const J=[F,P===En?void 0:x&&P[0]===En?[]:P,g];a?a(t,3,J):t(...J),P=F}finally{wt=U}}}else c.run()};return l&&l(T),c=new to(f),c.scheduler=o?()=>o(T,!1):T,g=b=>nc(b,!1,c),h=c.onStop=()=>{const b=Bn.get(c);if(b){if(a)a(b,4);else for(const F of b)F();Bn.delete(c)}},t?s?T(!0):P=c.run():o?o(T.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function et(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,fe(e))et(e.value,t,n);else if(k(e))for(let s=0;s{et(s,t,n)});else if(qi(e)){for(const s in e)et(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&et(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function gn(e,t,n,s){try{return s?e(...s):e()}catch(r){us(r,t,n)}}function Ve(e,t,n,s){if(B(e)){const r=gn(e,t,n,s);return r&&zi(r)&&r.catch(i=>{us(i,t,n)}),r}if(k(e)){const r=[];for(let i=0;i>>1,r=xe[s],i=ln(r);i=ln(n)?xe.push(e):xe.splice(ic(t),0,e),e.flags|=1,_o()}}function _o(){Un||(Un=bo.then(So))}function oc(e){k(e)?kt.push(...e):it&&e.id===-1?it.splice(jt+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),_o()}function Gr(e,t,n=ze+1){for(;nln(n)-ln(s));if(kt.length=0,it){it.push(...t);return}for(it=t,jt=0;jte.id==null?e.flags&2?-1:1/0:e.id;function So(e){try{for(ze=0;ze{s._d&&ri(-1);const i=Wn(t);let o;try{o=e(...r)}finally{Wn(i),s._d&&ri(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function lc(e,t){if(Ce===null)return e;const n=vs(Ce),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,ot=Symbol("_leaveCb"),Mn=Symbol("_enterCb");function cc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mn(()=>{e.isMounted=!0}),jo(()=>{e.isUnmounting=!0}),e}const Pe=[Function,Array],Co={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pe,onEnter:Pe,onAfterEnter:Pe,onEnterCancelled:Pe,onBeforeLeave:Pe,onLeave:Pe,onAfterLeave:Pe,onLeaveCancelled:Pe,onBeforeAppear:Pe,onAppear:Pe,onAfterAppear:Pe,onAppearCancelled:Pe},Ao=e=>{const t=e.subTree;return t.component?Ao(t.component):t},uc={name:"BaseTransition",props:Co,setup(e,{slots:t}){const n=yn(),s=cc();return()=>{const r=t.default&&Ro(t.default(),!0);if(!r||!r.length)return;const i=Eo(r),o=G(e),{mode:l}=o;if(s.isLeaving)return Ms(i);const a=Jr(i);if(!a)return Ms(i);let u=Js(a,o,s,n,f=>u=f);a.type!==Te&&an(a,u);let c=n.subTree&&Jr(n.subTree);if(c&&c.type!==Te&&!Ot(a,c)&&Ao(n).type!==Te){let f=Js(c,o,s,n);if(an(c,f),l==="out-in"&&a.type!==Te)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Ms(i);l==="in-out"&&a.type!==Te?f.delayLeave=(h,g,y)=>{const x=Mo(s,c);x[String(c.key)]=c,h[ot]=()=>{g(),h[ot]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Eo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Te){t=n;break}}return t}const fc=uc;function Mo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Js(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:x,onBeforeAppear:M,onAppear:C,onAfterAppear:P,onAppearCancelled:T}=t,b=String(e.key),F=Mo(n,e),U=(N,K)=>{N&&Ve(N,s,9,K)},J=(N,K)=>{const D=K[1];U(N,K),k(N)?N.every(O=>O.length<=1)&&D():N.length<=1&&D()},te={mode:o,persisted:l,beforeEnter(N){let K=a;if(!n.isMounted)if(i)K=M||a;else return;N[ot]&&N[ot](!0);const D=F[b];D&&Ot(e,D)&&D.el[ot]&&D.el[ot](),U(K,[N])},enter(N){let K=u,D=c,O=f;if(!n.isMounted)if(i)K=C||u,D=P||c,O=T||f;else return;let I=!1;const H=N[Mn]=W=>{I||(I=!0,W?U(O,[N]):U(D,[N]),te.delayedLeave&&te.delayedLeave(),N[Mn]=void 0)};K?J(K,[N,H]):H()},leave(N,K){const D=String(e.key);if(N[Mn]&&N[Mn](!0),n.isUnmounting)return K();U(h,[N]);let O=!1;const I=N[ot]=H=>{O||(O=!0,K(),H?U(x,[N]):U(y,[N]),N[ot]=void 0,F[D]===e&&delete F[D])};F[D]=e,g?J(g,[N,I]):I()},clone(N){const K=Js(N,t,n,s,r);return r&&r(K),K}};return te}function Ms(e){if(ps(e))return e=ft(e),e.children=null,e}function Jr(e){if(!ps(e))return To(e.type)&&e.children?Eo(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&B(n.default))return n.default()}}function an(e,t){e.shapeFlag&6&&e.component?(e.transition=t,an(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 Ro(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;izn(y,t&&(k(t)?t[x]:t),n,s,r));return}if(Yt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&zn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?vs(s.component):s.el,o=r?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ne?l.refs={}:l.refs,f=l.setupState,h=G(f),g=f===ne?()=>!1:y=>Q(h,y);if(u!=null&&u!==a&&(ce(u)?(c[u]=null,g(u)&&(f[u]=null)):fe(u)&&(u.value=null)),B(a))gn(a,l,12,[o,c]);else{const y=ce(a),x=fe(a);if(y||x){const M=()=>{if(e.f){const C=y?g(a)?f[a]:c[a]:a.value;r?k(C)&&hr(C,i):k(C)?C.includes(i)||C.push(i):y?(c[a]=[i],g(a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else y?(c[a]=o,g(a)&&(f[a]=o)):x&&(a.value=o,e.k&&(c[e.k]=o))};o?(M.id=-1,Me(M,n)):M()}}}ss().requestIdleCallback;ss().cancelIdleCallback;const Yt=e=>!!e.type.__asyncLoader,ps=e=>e.type.__isKeepAlive;function dc(e,t){Po(e,"a",t)}function pc(e,t){Po(e,"da",t)}function Po(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)ps(r.parent.vnode)&&hc(s,t,n,r),r=r.parent}}function hc(e,t,n,s){const r=hs(t,e,s,!0);gs(()=>{hr(s[t],r)},n)}function hs(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{pt();const l=vn(n),a=Ve(t,n,e,o);return l(),ht(),a});return s?r.unshift(i):r.push(i),i}}const nt=e=>(t,n=he)=>{(!un||e==="sp")&&hs(e,(...s)=>t(...s),n)},gc=nt("bm"),mn=nt("m"),mc=nt("bu"),yc=nt("u"),jo=nt("bum"),gs=nt("um"),vc=nt("sp"),bc=nt("rtg"),_c=nt("rtc");function xc(e,t=he){hs("ec",e,t)}const Sc=Symbol.for("v-ndc");function wc(e,t,n,s){let r;const i=n,o=k(e);if(o||ce(e)){const l=o&&Lt(e);let a=!1;l&&(a=!Fe(e),e=as(e)),r=new Array(e.length);for(let u=0,c=e.length;ut(l,a,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;ae?tl(e)?vs(e):Ys(e.parent):null,Zt=de(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=>Ys(e.parent),$root:e=>Ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>{Sr(e.update)}),$nextTick:e=>e.n||(e.n=fs.bind(e.proxy)),$watch:e=>qc.bind(e)}),Rs=(e,t)=>e!==ne&&!e.__isScriptSetup&&Q(e,t),Oc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Rs(s,t))return o[t]=1,s[t];if(r!==ne&&Q(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&Q(u,t))return o[t]=3,i[t];if(n!==ne&&Q(n,t))return o[t]=4,n[t];Zs&&(o[t]=0)}}const c=Zt[t];let f,h;if(c)return t==="$attrs"&&ge(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ne&&Q(n,t))return o[t]=4,n[t];if(h=a.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Rs(r,t)?(r[t]=n,!0):s!==ne&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==ne&&Q(e,o)||Rs(t,o)||(l=i[0])&&Q(l,o)||Q(s,o)||Q(Zt,o)||Q(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fo(){return Tc().slots}function Tc(){const e=yn();return e.setupContext||(e.setupContext=sl(e))}function Yr(e){return k(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zs=!0;function Cc(e){const t=No(e),n=e.proxy,s=e.ctx;Zs=!1,t.beforeCreate&&Zr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:y,activated:x,deactivated:M,beforeDestroy:C,beforeUnmount:P,destroyed:T,unmounted:b,render:F,renderTracked:U,renderTriggered:J,errorCaptured:te,serverPrefetch:N,expose:K,inheritAttrs:D,components:O,directives:I,filters:H}=t;if(u&&Ac(u,s,null),o)for(const q in o){const se=o[q];B(se)&&(s[q]=se.bind(n))}if(r){const q=r.call(n,n);ee(q)&&(e.data=Rt(q))}if(Zs=!0,i)for(const q in i){const se=i[q],gt=B(se)?se.bind(n,n):B(se.get)?se.get.bind(n,n):qe,On=!B(se)&&B(se.set)?se.set.bind(n):qe,mt=ae({get:gt,set:On});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>mt.value,set:He=>mt.value=He})}if(l)for(const q in l)Do(l[q],s,n,q);if(a){const q=B(a)?a.call(n):a;Reflect.ownKeys(q).forEach(se=>{jc(se,q[se])})}c&&Zr(c,e,"c");function Z(q,se){k(se)?se.forEach(gt=>q(gt.bind(n))):se&&q(se.bind(n))}if(Z(gc,f),Z(mn,h),Z(mc,g),Z(yc,y),Z(dc,x),Z(pc,M),Z(xc,te),Z(_c,U),Z(bc,J),Z(jo,P),Z(gs,b),Z(vc,N),k(K))if(K.length){const q=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(q,se,{get:()=>n[se],set:gt=>n[se]=gt})})}else e.exposed||(e.exposed={});F&&e.render===qe&&(e.render=F),D!=null&&(e.inheritAttrs=D),O&&(e.components=O),I&&(e.directives=I),N&&Io(e)}function Ac(e,t,n=qe){k(e)&&(e=Qs(e));for(const s in e){const r=e[s];let i;ee(r)?"default"in r?i=Vt(r.from||s,r.default,!0):i=Vt(r.from||s):i=Vt(r),fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Zr(e,t,n){Ve(k(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Do(e,t,n,s){let r=s.includes(".")?Yo(n,s):()=>n[s];if(ce(e)){const i=t[e];B(i)&&le(r,i)}else if(B(e))le(r,e.bind(n));else if(ee(e))if(k(e))e.forEach(i=>Do(i,t,n,s));else{const i=B(e.handler)?e.handler.bind(n):t[e.handler];B(i)&&le(r,i,e)}}function No(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(u=>Kn(a,u,o,!0)),Kn(a,t,o)),ee(t)&&i.set(t,a),a}function Kn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Kn(e,i,n,!0),r&&r.forEach(o=>Kn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Ec[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ec={data:Qr,props:Xr,emits:Xr,methods:Kt,computed:Kt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Kt,directives:Kt,watch:Rc,provide:Qr,inject:Mc};function Qr(e,t){return t?e?function(){return de(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Mc(e,t){return Kt(Qs(e),Qs(t))}function Qs(e){if(k(e)){const t={};for(let n=0;n1)return n&&B(t)?t.call(s&&s.proxy):t}}function ko(){return!!(he||Ce||At)}const Vo={},Ho=()=>Object.create(Vo),$o=e=>Object.getPrototypeOf(e)===Vo;function Fc(e,t,n,s=!1){const r={},i=Ho();e.propsDefaults=Object.create(null),Bo(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:za(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Dc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=G(r),[a]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[h,g]=Uo(f,t,!0);de(o,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return ee(e)&&s.set(e,Dt),Dt;if(k(i))for(let c=0;ce[0]==="_"||e==="$stable",wr=e=>k(e)?e.map(Ke):[Ke(e)],Lc=(e,t,n)=>{if(t._n)return t;const s=Oo((...r)=>wr(t(...r)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Wo(r))continue;const i=e[r];if(B(i))t[r]=Lc(r,i,s);else if(i!=null){const o=wr(i);t[r]=()=>o}}},Ko=(e,t)=>{const n=wr(t);e.slots.default=()=>n},qo=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},kc=(e,t,n)=>{const s=e.slots=Ho();if(e.vnode.shapeFlag&32){const r=t._;r?(qo(s,t,n),n&&Ji(s,"_",r,!0)):zo(t,s)}else t&&Ko(e,t)},Vc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=ne;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:qo(r,t,n):(i=!t.$stable,zo(t,r)),o=t}else t&&(Ko(e,t),o={default:1});if(i)for(const l in r)!Wo(l)&&o[l]==null&&delete r[l]},Me=eu;function Hc(e){return $c(e)}function $c(e,t){const n=ss();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=qe,insertStaticContent:y}=e,x=(d,p,m,S=null,v=null,_=null,R=void 0,E=null,A=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ot(d,p)&&(S=Tn(d),He(d,v,_,!0),d=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:w,ref:V,shapeFlag:j}=p;switch(w){case ys:M(d,p,m,S);break;case Te:C(d,p,m,S);break;case Ps:d==null&&P(p,m,S,R);break;case je:O(d,p,m,S,v,_,R,E,A);break;default:j&1?F(d,p,m,S,v,_,R,E,A):j&6?I(d,p,m,S,v,_,R,E,A):(j&64||j&128)&&w.process(d,p,m,S,v,_,R,E,A,Bt)}V!=null&&v&&zn(V,d&&d.ref,_,p||d,!p)},M=(d,p,m,S)=>{if(d==null)s(p.el=l(p.children),m,S);else{const v=p.el=d.el;p.children!==d.children&&u(v,p.children)}},C=(d,p,m,S)=>{d==null?s(p.el=a(p.children||""),m,S):p.el=d.el},P=(d,p,m,S)=>{[d.el,d.anchor]=y(d.children,p,m,S,d.el,d.anchor)},T=({el:d,anchor:p},m,S)=>{let v;for(;d&&d!==p;)v=h(d),s(d,m,S),d=v;s(p,m,S)},b=({el:d,anchor:p})=>{let m;for(;d&&d!==p;)m=h(d),r(d),d=m;r(p)},F=(d,p,m,S,v,_,R,E,A)=>{p.type==="svg"?R="svg":p.type==="math"&&(R="mathml"),d==null?U(p,m,S,v,_,R,E,A):N(d,p,v,_,R,E,A)},U=(d,p,m,S,v,_,R,E)=>{let A,w;const{props:V,shapeFlag:j,transition:L,dirs:$}=d;if(A=d.el=o(d.type,_,V&&V.is,V),j&8?c(A,d.children):j&16&&te(d.children,A,null,S,v,Is(d,_),R,E),$&&yt(d,null,S,"created"),J(A,d,d.scopeId,R,S),V){for(const re in V)re!=="value"&&!qt(re)&&i(A,re,null,V[re],_,S);"value"in V&&i(A,"value",null,V.value,_),(w=V.onVnodeBeforeMount)&&We(w,S,d)}$&&yt(d,null,S,"beforeMount");const Y=Bc(v,L);Y&&L.beforeEnter(A),s(A,p,m),((w=V&&V.onVnodeMounted)||Y||$)&&Me(()=>{w&&We(w,S,d),Y&&L.enter(A),$&&yt(d,null,S,"mounted")},v)},J=(d,p,m,S,v)=>{if(m&&g(d,m),S)for(let _=0;_{for(let w=A;w{const E=p.el=d.el;let{patchFlag:A,dynamicChildren:w,dirs:V}=p;A|=d.patchFlag&16;const j=d.props||ne,L=p.props||ne;let $;if(m&&vt(m,!1),($=L.onVnodeBeforeUpdate)&&We($,m,p,d),V&&yt(p,d,m,"beforeUpdate"),m&&vt(m,!0),(j.innerHTML&&L.innerHTML==null||j.textContent&&L.textContent==null)&&c(E,""),w?K(d.dynamicChildren,w,E,m,S,Is(p,v),_):R||se(d,p,E,null,m,S,Is(p,v),_,!1),A>0){if(A&16)D(E,j,L,m,v);else if(A&2&&j.class!==L.class&&i(E,"class",null,L.class,v),A&4&&i(E,"style",j.style,L.style,v),A&8){const Y=p.dynamicProps;for(let re=0;re{$&&We($,m,p,d),V&&yt(p,d,m,"updated")},S)},K=(d,p,m,S,v,_,R)=>{for(let E=0;E{if(p!==m){if(p!==ne)for(const _ in p)!qt(_)&&!(_ in m)&&i(d,_,p[_],null,v,S);for(const _ in m){if(qt(_))continue;const R=m[_],E=p[_];R!==E&&_!=="value"&&i(d,_,E,R,v,S)}"value"in m&&i(d,"value",p.value,m.value,v)}},O=(d,p,m,S,v,_,R,E,A)=>{const w=p.el=d?d.el:l(""),V=p.anchor=d?d.anchor:l("");let{patchFlag:j,dynamicChildren:L,slotScopeIds:$}=p;$&&(E=E?E.concat($):$),d==null?(s(w,m,S),s(V,m,S),te(p.children||[],m,V,v,_,R,E,A)):j>0&&j&64&&L&&d.dynamicChildren?(K(d.dynamicChildren,L,m,v,_,R,E),(p.key!=null||v&&p===v.subTree)&&Go(d,p,!0)):se(d,p,m,V,v,_,R,E,A)},I=(d,p,m,S,v,_,R,E,A)=>{p.slotScopeIds=E,d==null?p.shapeFlag&512?v.ctx.activate(p,m,S,R,A):H(p,m,S,v,_,R,A):W(d,p,A)},H=(d,p,m,S,v,_,R)=>{const E=d.component=cu(d,S,v);if(ps(d)&&(E.ctx.renderer=Bt),uu(E,!1,R),E.asyncDep){if(v&&v.registerDep(E,Z,R),!d.el){const A=E.subTree=Se(Te);C(null,A,p,m)}}else Z(E,d,p,m,v,_,R)},W=(d,p,m)=>{const S=p.component=d.component;if(Qc(d,p,m))if(S.asyncDep&&!S.asyncResolved){q(S,p,m);return}else S.next=p,S.update();else p.el=d.el,S.vnode=p},Z=(d,p,m,S,v,_,R)=>{const E=()=>{if(d.isMounted){let{next:j,bu:L,u:$,parent:Y,vnode:re}=d;{const Be=Jo(d);if(Be){j&&(j.el=re.el,q(d,j,R)),Be.asyncDep.then(()=>{d.isUnmounted||E()});return}}let X=j,Ae;vt(d,!1),j?(j.el=re.el,q(d,j,R)):j=re,L&&Fn(L),(Ae=j.props&&j.props.onVnodeBeforeUpdate)&&We(Ae,Y,j,re),vt(d,!0);const we=ni(d),$e=d.subTree;d.subTree=we,x($e,we,f($e.el),Tn($e),d,v,_),j.el=we.el,X===null&&Xc(d,we.el),$&&Me($,v),(Ae=j.props&&j.props.onVnodeUpdated)&&Me(()=>We(Ae,Y,j,re),v)}else{let j;const{el:L,props:$}=p,{bm:Y,m:re,parent:X,root:Ae,type:we}=d,$e=Yt(p);vt(d,!1),Y&&Fn(Y),!$e&&(j=$&&$.onVnodeBeforeMount)&&We(j,X,p),vt(d,!0);{Ae.ce&&Ae.ce._injectChildStyle(we);const Be=d.subTree=ni(d);x(null,Be,m,S,d,v,_),p.el=Be.el}if(re&&Me(re,v),!$e&&(j=$&&$.onVnodeMounted)){const Be=p;Me(()=>We(j,X,Be),v)}(p.shapeFlag&256||X&&Yt(X.vnode)&&X.vnode.shapeFlag&256)&&d.a&&Me(d.a,v),d.isMounted=!0,p=m=S=null}};d.scope.on();const A=d.effect=new to(E);d.scope.off();const w=d.update=A.run.bind(A),V=d.job=A.runIfDirty.bind(A);V.i=d,V.id=d.uid,A.scheduler=()=>Sr(V),vt(d,!0),w()},q=(d,p,m)=>{p.component=d;const S=d.vnode.props;d.vnode=p,d.next=null,Dc(d,p.props,S,m),Vc(d,p.children,m),pt(),Gr(d),ht()},se=(d,p,m,S,v,_,R,E,A=!1)=>{const w=d&&d.children,V=d?d.shapeFlag:0,j=p.children,{patchFlag:L,shapeFlag:$}=p;if(L>0){if(L&128){On(w,j,m,S,v,_,R,E,A);return}else if(L&256){gt(w,j,m,S,v,_,R,E,A);return}}$&8?(V&16&&$t(w,v,_),j!==w&&c(m,j)):V&16?$&16?On(w,j,m,S,v,_,R,E,A):$t(w,v,_,!0):(V&8&&c(m,""),$&16&&te(j,m,S,v,_,R,E,A))},gt=(d,p,m,S,v,_,R,E,A)=>{d=d||Dt,p=p||Dt;const w=d.length,V=p.length,j=Math.min(w,V);let L;for(L=0;LV?$t(d,v,_,!0,!1,j):te(p,m,S,v,_,R,E,A,j)},On=(d,p,m,S,v,_,R,E,A)=>{let w=0;const V=p.length;let j=d.length-1,L=V-1;for(;w<=j&&w<=L;){const $=d[w],Y=p[w]=A?lt(p[w]):Ke(p[w]);if(Ot($,Y))x($,Y,m,null,v,_,R,E,A);else break;w++}for(;w<=j&&w<=L;){const $=d[j],Y=p[L]=A?lt(p[L]):Ke(p[L]);if(Ot($,Y))x($,Y,m,null,v,_,R,E,A);else break;j--,L--}if(w>j){if(w<=L){const $=L+1,Y=$L)for(;w<=j;)He(d[w],v,_,!0),w++;else{const $=w,Y=w,re=new Map;for(w=Y;w<=L;w++){const Ee=p[w]=A?lt(p[w]):Ke(p[w]);Ee.key!=null&&re.set(Ee.key,w)}let X,Ae=0;const we=L-Y+1;let $e=!1,Be=0;const Ut=new Array(we);for(w=0;w=we){He(Ee,v,_,!0);continue}let Ue;if(Ee.key!=null)Ue=re.get(Ee.key);else for(X=Y;X<=L;X++)if(Ut[X-Y]===0&&Ot(Ee,p[X])){Ue=X;break}Ue===void 0?He(Ee,v,_,!0):(Ut[Ue-Y]=w+1,Ue>=Be?Be=Ue:$e=!0,x(Ee,p[Ue],m,null,v,_,R,E,A),Ae++)}const Br=$e?Uc(Ut):Dt;for(X=Br.length-1,w=we-1;w>=0;w--){const Ee=Y+w,Ue=p[Ee],Ur=Ee+1{const{el:_,type:R,transition:E,children:A,shapeFlag:w}=d;if(w&6){mt(d.component.subTree,p,m,S);return}if(w&128){d.suspense.move(p,m,S);return}if(w&64){R.move(d,p,m,Bt);return}if(R===je){s(_,p,m);for(let j=0;jE.enter(_),v);else{const{leave:j,delayLeave:L,afterLeave:$}=E,Y=()=>s(_,p,m),re=()=>{j(_,()=>{Y(),$&&$()})};L?L(_,Y,re):re()}else s(_,p,m)},He=(d,p,m,S=!1,v=!1)=>{const{type:_,props:R,ref:E,children:A,dynamicChildren:w,shapeFlag:V,patchFlag:j,dirs:L,cacheIndex:$}=d;if(j===-2&&(v=!1),E!=null&&zn(E,null,m,d,!0),$!=null&&(p.renderCache[$]=void 0),V&256){p.ctx.deactivate(d);return}const Y=V&1&&L,re=!Yt(d);let X;if(re&&(X=R&&R.onVnodeBeforeUnmount)&&We(X,p,d),V&6)oa(d.component,m,S);else{if(V&128){d.suspense.unmount(m,S);return}Y&&yt(d,null,p,"beforeUnmount"),V&64?d.type.remove(d,p,m,Bt,S):w&&!w.hasOnce&&(_!==je||j>0&&j&64)?$t(w,p,m,!1,!0):(_===je&&j&384||!v&&V&16)&&$t(A,p,m),S&&Hr(d)}(re&&(X=R&&R.onVnodeUnmounted)||Y)&&Me(()=>{X&&We(X,p,d),Y&&yt(d,null,p,"unmounted")},m)},Hr=d=>{const{type:p,el:m,anchor:S,transition:v}=d;if(p===je){ia(m,S);return}if(p===Ps){b(d);return}const _=()=>{r(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(d.shapeFlag&1&&v&&!v.persisted){const{leave:R,delayLeave:E}=v,A=()=>R(m,_);E?E(d.el,_,A):A()}else _()},ia=(d,p)=>{let m;for(;d!==p;)m=h(d),r(d),d=m;r(p)},oa=(d,p,m)=>{const{bum:S,scope:v,job:_,subTree:R,um:E,m:A,a:w}=d;ti(A),ti(w),S&&Fn(S),v.stop(),_&&(_.flags|=8,He(R,d,p,m)),E&&Me(E,p),Me(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$t=(d,p,m,S=!1,v=!1,_=0)=>{for(let R=_;R{if(d.shapeFlag&6)return Tn(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=h(d.anchor||d.el),m=p&&p[ac];return m?h(m):p};let Ss=!1;const $r=(d,p,m)=>{d==null?p._vnode&&He(p._vnode,null,null,!0):x(p._vnode||null,d,p,null,null,null,m),p._vnode=d,Ss||(Ss=!0,Gr(),xo(),Ss=!1)},Bt={p:x,um:He,m:mt,r:Hr,mt:H,mc:te,pc:se,pbc:K,n:Tn,o:e};return{render:$r,hydrate:void 0,createApp:Pc($r)}}function Is({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Bc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(e,t,n=!1){const s=e.children,r=t.children;if(k(s)&&k(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Jo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jo(t)}function ti(e){if(e)for(let t=0;tVt(Wc);function Kc(e,t){return Or(e,null,t)}function le(e,t,n){return Or(e,t,n)}function Or(e,t,n=ne){const{immediate:s,deep:r,flush:i,once:o}=n,l=de({},n),a=t&&s||!t&&i!=="post";let u;if(un){if(i==="sync"){const g=zc();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=qe,g.resume=qe,g.pause=qe,g}}const c=he;l.call=(g,y,x)=>Ve(g,c,y,x);let f=!1;i==="post"?l.scheduler=g=>{Me(g,c&&c.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(g,y)=>{y?g():Sr(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const h=sc(e,t,l);return un&&(u?u.push(h):a&&h()),h}function qc(e,t,n){const s=this.proxy,r=ce(e)?e.includes(".")?Yo(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=vn(this),l=Or(r,i.bind(s),n);return o(),l}function Yo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ut(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ne;let r=n;const i=t.startsWith("update:"),o=i&&Gc(s,t.slice(7));o&&(o.trim&&(r=n.map(c=>ce(c)?c.trim():c)),o.number&&(r=n.map(Yi)));let l,a=s[l=Os(t)]||s[l=Os(ut(t))];!a&&i&&(a=s[l=Os(Mt(t))]),a&&Ve(a,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ve(u,e,6,r)}}function Zo(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!B(e)){const a=u=>{const c=Zo(u,t,!0);c&&(l=!0,de(o,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ee(e)&&s.set(e,null),null):(k(i)?i.forEach(a=>o[a]=null):de(o,i),ee(e)&&s.set(e,o),o)}function ms(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Mt(t))||Q(e,t))}function ni(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:c,props:f,data:h,setupState:g,ctx:y,inheritAttrs:x}=e,M=Wn(e);let C,P;try{if(n.shapeFlag&4){const b=r||s,F=b;C=Ke(u.call(F,b,c,f,g,h,y)),P=l}else{const b=t;C=Ke(b.length>1?b(f,{attrs:l,slots:o,emit:a}):b(f,null)),P=t.props?l:Yc(l)}}catch(b){Qt.length=0,us(b,e,1),C=Se(Te)}let T=C;if(P&&x!==!1){const b=Object.keys(P),{shapeFlag:F}=T;b.length&&F&7&&(i&&b.some(pr)&&(P=Zc(P,i)),T=ft(T,P,!1,!0))}return n.dirs&&(T=ft(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&an(T,n.transition),C=T,Wn(M),C}const Yc=e=>{let t;for(const n in e)(n==="class"||n==="style"||es(n))&&((t||(t={}))[n]=e[n]);return t},Zc=(e,t)=>{const n={};for(const s in e)(!pr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Qc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?si(s,o,u):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function eu(e,t){t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):oc(e)}const je=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),Te=Symbol.for("v-cmt"),Ps=Symbol.for("v-stc"),Qt=[];let Re=null;function Ze(e=!1){Qt.push(Re=e?null:[])}function tu(){Qt.pop(),Re=Qt[Qt.length-1]||null}let cn=1;function ri(e,t=!1){cn+=e,e<0&&Re&&t&&(Re.hasOnce=!0)}function Xo(e){return e.dynamicChildren=cn>0?Re||Dt:null,tu(),cn>0&&Re&&Re.push(e),e}function rt(e,t,n,s,r,i){return Xo(ve(e,t,n,s,r,i,!0))}function nu(e,t,n,s,r){return Xo(Se(e,t,n,s,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const el=({key:e})=>e??null,Nn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||fe(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function ve(e,t=null,n=null,s=0,r=null,i=e===je?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&el(t),ref:t&&Nn(t),scopeId:wo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ce};return l?(Tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ce(n)?8:16),cn>0&&!o&&Re&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Re.push(a),a}const Se=su;function su(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Sc)&&(e=Te),qn(e)){const l=ft(e,t,!0);return n&&Tr(l,n),cn>0&&!i&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag=-2,l}if(pu(e)&&(e=e.__vccOpts),t){t=ru(t);let{class:l,style:a}=t;l&&!ce(l)&&(t.class=is(l)),ee(a)&&(xr(a)&&!k(a)&&(a=de({},a)),t.style=rs(a))}const o=ce(e)?1:Qo(e)?128:To(e)?64:ee(e)?4:B(e)?2:0;return ve(e,t,n,s,r,o,i,!0)}function ru(e){return e?xr(e)||$o(e)?de({},e):e:null}function ft(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?ou(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&el(u),ref:t&&t.ref?n&&i?k(i)?i.concat(Nn(t)):[i,Nn(t)]:Nn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ft(e.ssContent),ssFallback:e.ssFallback&&ft(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&an(c,a.clone(c)),c}function iu(e=" ",t=0){return Se(ys,null,e,t)}function ii(e="",t=!1){return t?(Ze(),nu(Te,null,e)):Se(Te,null,e)}function Ke(e){return e==null||typeof e=="boolean"?Se(Te):k(e)?Se(je,null,e.slice()):qn(e)?lt(e):Se(ys,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ft(e)}function Tr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(k(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!$o(t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[iu(t)]):n=8);e.children=t,e.shapeFlag|=n}function ou(...e){const t={};for(let n=0;nhe||Ce;let Gn,er;{const e=ss(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Gn=t("__VUE_INSTANCE_SETTERS__",n=>he=n),er=t("__VUE_SSR_SETTERS__",n=>un=n)}const vn=e=>{const t=he;return Gn(e),e.scope.on(),()=>{e.scope.off(),Gn(t)}},oi=()=>{he&&he.scope.off(),Gn(null)};function tl(e){return e.vnode.shapeFlag&4}let un=!1;function uu(e,t=!1,n=!1){t&&er(t);const{props:s,children:r}=e.vnode,i=tl(e);Fc(e,s,i,t),kc(e,r,n);const o=i?fu(e,t):void 0;return t&&er(!1),o}function fu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oc);const{setup:s}=n;if(s){pt();const r=e.setupContext=s.length>1?sl(e):null,i=vn(e),o=gn(s,e,0,[e.props,r]),l=zi(o);if(ht(),i(),(l||e.sp)&&!Yt(e)&&Io(e),l){if(o.then(oi,oi),t)return o.then(a=>{li(e,a)}).catch(a=>{us(a,e,0)});e.asyncDep=o}else li(e,o)}else nl(e)}function li(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=yo(t)),nl(e)}function nl(e,t,n){const s=e.type;e.render||(e.render=s.render||qe);{const r=vn(e);pt();try{Cc(e)}finally{ht(),r()}}}const du={get(e,t){return ge(e,"get",""),e[t]}};function sl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,du),slots:e.slots,emit:e.emit,expose:t}}function vs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yo(Ka(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zt)return Zt[n](e)},has(t,n){return n in t||n in Zt}})):e.proxy}function pu(e){return B(e)&&"__vccOpts"in e}const ae=(e,t)=>tc(e,t,un);function Cr(e,t,n){const s=arguments.length;return s===2?ee(t)&&!k(t)?qn(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&qn(n)&&(n=[n]),Se(e,t,n))}const hu="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let tr;const ai=typeof window<"u"&&window.trustedTypes;if(ai)try{tr=ai.createPolicy("vue",{createHTML:e=>e})}catch{}const rl=tr?e=>tr.createHTML(e):e=>e,gu="http://www.w3.org/2000/svg",mu="http://www.w3.org/1998/Math/MathML",Qe=typeof document<"u"?document:null,ci=Qe&&Qe.createElement("template"),yu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Qe.createElementNS(gu,e):t==="mathml"?Qe.createElementNS(mu,e):n?Qe.createElement(e,{is:n}):Qe.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Qe.createTextNode(e),createComment:e=>Qe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{ci.innerHTML=rl(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=ci.content;if(s==="svg"||s==="mathml"){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]}},st="transition",zt="animation",fn=Symbol("_vtc"),il={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},vu=de({},Co,il),bu=e=>(e.displayName="Transition",e.props=vu,e),_u=bu((e,{slots:t})=>Cr(fc,xu(e),t)),bt=(e,t=[])=>{k(e)?e.forEach(n=>n(...t)):e&&e(...t)},ui=e=>e?k(e)?e.some(t=>t.length>1):e.length>1:!1;function xu(e){const t={};for(const O in e)O in il||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=Su(r),x=y&&y[0],M=y&&y[1],{onBeforeEnter:C,onEnter:P,onEnterCancelled:T,onLeave:b,onLeaveCancelled:F,onBeforeAppear:U=C,onAppear:J=P,onAppearCancelled:te=T}=t,N=(O,I,H,W)=>{O._enterCancelled=W,_t(O,I?c:l),_t(O,I?u:o),H&&H()},K=(O,I)=>{O._isLeaving=!1,_t(O,f),_t(O,g),_t(O,h),I&&I()},D=O=>(I,H)=>{const W=O?J:P,Z=()=>N(I,O,H);bt(W,[I,Z]),fi(()=>{_t(I,O?a:i),Ye(I,O?c:l),ui(W)||di(I,s,x,Z)})};return de(t,{onBeforeEnter(O){bt(C,[O]),Ye(O,i),Ye(O,o)},onBeforeAppear(O){bt(U,[O]),Ye(O,a),Ye(O,u)},onEnter:D(!1),onAppear:D(!0),onLeave(O,I){O._isLeaving=!0;const H=()=>K(O,I);Ye(O,f),O._enterCancelled?(Ye(O,h),gi()):(gi(),Ye(O,h)),fi(()=>{O._isLeaving&&(_t(O,f),Ye(O,g),ui(b)||di(O,s,M,H))}),bt(b,[O,H])},onEnterCancelled(O){N(O,!1,void 0,!0),bt(T,[O])},onAppearCancelled(O){N(O,!0,void 0,!0),bt(te,[O])},onLeaveCancelled(O){K(O),bt(F,[O])}})}function Su(e){if(e==null)return null;if(ee(e))return[js(e.enter),js(e.leave)];{const t=js(e);return[t,t]}}function js(e){return ga(e)}function Ye(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fn]||(e[fn]=new Set)).add(t)}function _t(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[fn];n&&(n.delete(t),n.size||(e[fn]=void 0))}function fi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wu=0;function di(e,t,n,s){const r=e._endId=++wu,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=Ou(e,t);if(!o)return s();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=g=>{g.target===e&&++c>=a&&f()};setTimeout(()=>{c(n[y]||"").split(", "),r=s(`${st}Delay`),i=s(`${st}Duration`),o=pi(r,i),l=s(`${zt}Delay`),a=s(`${zt}Duration`),u=pi(l,a);let c=null,f=0,h=0;t===st?o>0&&(c=st,f=o,h=i.length):t===zt?u>0&&(c=zt,f=u,h=a.length):(f=Math.max(o,u),c=f>0?o>u?st:zt:null,h=c?c===st?i.length:a.length:0);const g=c===st&&/\b(transform|all)(,|$)/.test(s(`${st}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function pi(e,t){for(;e.lengthhi(n)+hi(e[s])))}function hi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function gi(){return document.body.offsetHeight}function Tu(e,t,n){const s=e[fn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mi=Symbol("_vod"),Cu=Symbol("_vsh"),Au=Symbol(""),Eu=/(^|;)\s*display\s*:/;function Mu(e,t,n){const s=e.style,r=ce(n);let i=!1;if(n&&!r){if(t)if(ce(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Ln(s,l,"")}else for(const o in t)n[o]==null&&Ln(s,o,"");for(const o in n)o==="display"&&(i=!0),Ln(s,o,n[o])}else if(r){if(t!==n){const o=s[Au];o&&(n+=";"+o),s.cssText=n,i=Eu.test(n)}}else t&&e.removeAttribute("style");mi in e&&(e[mi]=i?s.display:"",e[Cu]&&(s.display="none"))}const yi=/\s*!important$/;function Ln(e,t,n){if(k(n))n.forEach(s=>Ln(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ru(e,t);yi.test(n)?e.setProperty(Mt(s),n.replace(yi,""),"important"):e[s]=n}}const vi=["Webkit","Moz","ms"],Fs={};function Ru(e,t){const n=Fs[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return Fs[t]=s;s=Gi(s);for(let r=0;rDs||(Fu.then(()=>Ds=0),Ds=Date.now());function Nu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ve(Lu(s,n.value),t,5,[s])};return n.value=e,n.attached=Du(),n}function Lu(e,t){if(k(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Oi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ku=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Tu(e,s,o):t==="style"?Mu(e,n,s):es(t)?pr(t)||Pu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vu(e,t,s,o))?(xi(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_i(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ce(s))?xi(e,ut(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),_i(e,t,s,o))};function Vu(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Oi(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Oi(t)&&ce(n)?!1:t in e}const Ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return k(t)?n=>Fn(t,n):t},Ns=Symbol("_assign"),Hu={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=ts(t);ol(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Yi(Jn(o)):Jn(o));e[Ns](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,fs(()=>{e._assigning=!1})}),e[Ns]=Ti(s)},mounted(e,{value:t}){Ci(e,t)},beforeUpdate(e,t,n){e[Ns]=Ti(n)},updated(e,{value:t}){e._assigning||Ci(e,t)}};function Ci(e,t){const n=e.multiple,s=k(t);if(!(n&&!s&&!ts(t))){for(let r=0,i=e.options.length;rString(u)===String(l)):o.selected=wa(t,l)>-1}else o.selected=t.has(l);else if(os(Jn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jn(e){return"_value"in e?e._value:e.value}const $u=de({patchProp:ku},yu);let Ai;function Bu(){return Ai||(Ai=Hc($u))}const Uu=(...e)=>{const t=Bu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=zu(s);if(!r)return;const i=t._component;!B(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Wu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zu(e){return ce(e)?document.querySelector(e):e}function bn(e){return eo()?(Ta(e),!0):!1}const Ls=new WeakMap,Ku=(...e)=>{var t;const n=e[0],s=(t=yn())==null?void 0:t.proxy;if(s==null&&!ko())throw new Error("injectLocal must be called in setup");return s&&Ls.has(s)&&n in Ls.get(s)?Ls.get(s)[n]:Vt(...e)},ll=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const al=e=>e!=null,qu=Object.prototype.toString,Yn=e=>qu.call(e)==="[object Object]",kn=()=>{};function cl(...e){if(e.length!==1)return vo(...e);const t=e[0];return typeof t=="function"?cs(Ya(()=>({get:t,set:kn}))):oe(t)}function Gu(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const ul=e=>e();function Ju(e=ul,t={}){const{initialState:n="active"}=t,s=cl(n==="active");function r(){s.value=!1}function i(){s.value=!0}const o=(...l)=>{s.value&&e(...l)};return{isActive:cs(s),pause:r,resume:i,eventFilter:o}}function Yu(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function Ei(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Xt(e){return Array.isArray(e)?e:[e]}function fl(e){return yn()}function Zu(e,t,n={}){const{eventFilter:s=ul,...r}=n;return le(e,Gu(s,t),r)}function Qu(e,t,n={}){const{eventFilter:s,initialState:r="active",...i}=n,{eventFilter:o,pause:l,resume:a,isActive:u}=Ju(s,{initialState:r});return{stop:Zu(e,t,{...i,eventFilter:o}),pause:l,resume:a,isActive:u}}function Ar(e,t=!0,n){fl()?mn(e,n):t?e():fs(e)}function Xu(e,t){fl()&&gs(e,t)}function ef(e,t,n){return le(e,t,{...n,immediate:!0})}const dt=ll?window:void 0,Er=ll?window.navigator:void 0;function ke(e){var t;const n=Le(e);return(t=n==null?void 0:n.$el)!=null?t:n}function pe(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,a,u,c)=>(l.addEventListener(a,u,c),()=>l.removeEventListener(a,u,c)),r=ae(()=>{const l=Xt(Le(e[0])).filter(a=>a!=null);return l.every(a=>typeof a!="string")?l:void 0}),i=ef(()=>{var l,a;return[(a=(l=r.value)==null?void 0:l.map(u=>ke(u)))!=null?a:[dt].filter(u=>u!=null),Xt(Le(r.value?e[1]:e[0])),Xt(De(r.value?e[2]:e[1])),Le(r.value?e[3]:e[2])]},([l,a,u,c])=>{if(n(),!(l!=null&&l.length)||!(a!=null&&a.length)||!(u!=null&&u.length))return;const f=Yn(c)?{...c}:c;t.push(...l.flatMap(h=>a.flatMap(g=>u.map(y=>s(h,g,y,f)))))},{flush:"post"}),o=()=>{i(),n()};return bn(n),o}function tf(){const e=ue(!1),t=yn();return t&&mn(()=>{e.value=!0},t),e}function It(e){const t=tf();return ae(()=>(t.value,!!e()))}function nf(e,t,n={}){const{window:s=dt,...r}=n;let i;const o=It(()=>s&&"MutationObserver"in s),l=()=>{i&&(i.disconnect(),i=void 0)},a=ae(()=>{const h=Le(e),g=Xt(h).map(ke).filter(al);return new Set(g)}),u=le(()=>a.value,h=>{l(),o.value&&h.size&&(i=new MutationObserver(t),h.forEach(g=>i.observe(g,r)))},{immediate:!0,flush:"post"}),c=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),l()};return bn(f),{isSupported:o,stop:f,takeRecords:c}}const sf=Symbol("vueuse-ssr-width");function rf(){const e=ko()?Ku(sf,null):null;return typeof e=="number"?e:void 0}function of(e,t={}){const{window:n=dt,ssrWidth:s=rf()}=t,r=It(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=ue(typeof s=="number"),o=ue(),l=ue(!1),a=u=>{l.value=u.matches};return Kc(()=>{if(i.value){i.value=!r.value;const u=Le(e).split(",");l.value=u.some(c=>{const f=c.includes("not all"),h=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),g=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(h||g);return h&&y&&(y=s>=Ei(h[1])),g&&y&&(y=s<=Ei(g[1])),f?!y:y});return}r.value&&(o.value=n.matchMedia(Le(e)),l.value=o.value.matches)}),pe(o,"change",a,{passive:!0}),ae(()=>l.value)}function lf(e,t={}){const{controls:n=!1,navigator:s=Er}=t,r=It(()=>s&&"permissions"in s),i=ue(),o=typeof e=="string"?{name:e}:e,l=ue(),a=()=>{var c,f;l.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};pe(i,"change",a,{passive:!0});const u=Yu(async()=>{if(r.value){if(!i.value)try{i.value=await s.permissions.query(o)}catch{i.value=void 0}finally{a()}if(n)return G(i.value)}});return u(),n?{state:l,isSupported:r,query:u}:l}const Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},In="__vueuse_ssr_handlers__",af=cf();function cf(){return In in Rn||(Rn[In]=Rn[In]||{}),Rn[In]}function dl(e,t){return af[e]||t}function uf(e){return of("(prefers-color-scheme: dark)",e)}function ff(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const df={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()}},Mi="vueuse-storage";function pf(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:f=dt,eventFilter:h,onError:g=D=>{console.error(D)},initOnMounted:y}=s,x=(c?ue:oe)(typeof t=="function"?t():t),M=ae(()=>Le(e));if(!n)try{n=dl("getDefaultStorage",()=>{var D;return(D=dt)==null?void 0:D.localStorage})()}catch(D){g(D)}if(!n)return x;const C=Le(t),P=ff(C),T=(r=s.serializer)!=null?r:df[P],{pause:b,resume:F}=Qu(x,()=>J(x.value),{flush:i,deep:o,eventFilter:h});le(M,()=>N(),{flush:i}),f&&l&&Ar(()=>{n instanceof Storage?pe(f,"storage",N,{passive:!0}):pe(f,Mi,K),y&&N()}),y||N();function U(D,O){if(f){const I={key:M.value,oldValue:D,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(Mi,{detail:I}))}}function J(D){try{const O=n.getItem(M.value);if(D==null)U(O,null),n.removeItem(M.value);else{const I=T.write(D);O!==I&&(n.setItem(M.value,I),U(O,I))}}catch(O){g(O)}}function te(D){const O=D?D.newValue:n.getItem(M.value);if(O==null)return a&&C!=null&&n.setItem(M.value,T.write(C)),C;if(!D&&u){const I=T.read(O);return typeof u=="function"?u(I,C):P==="object"&&!Array.isArray(I)?{...C,...I}:I}else return typeof O!="string"?O:T.read(O)}function N(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){x.value=C;return}if(!(D&&D.key!==M.value)){b();try{(D==null?void 0:D.newValue)!==T.write(x.value)&&(x.value=te(D))}catch(O){g(O)}finally{D?fs(F):F()}}}}function K(D){N(D.detail)}return x}const hf="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function gf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=dt,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:a,emitAuto:u,disableTransition:c=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},h=uf({window:r}),g=ae(()=>h.value?"dark":"light"),y=a||(o==null?cl(s):pf(o,s,i,{window:r,listenToStorageChanges:l})),x=ae(()=>y.value==="auto"?g.value:y.value),M=dl("updateHTMLAttrs",(b,F,U)=>{const J=typeof b=="string"?r==null?void 0:r.document.querySelector(b):ke(b);if(!J)return;const te=new Set,N=new Set;let K=null;if(F==="class"){const O=U.split(/\s/g);Object.values(f).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{O.includes(I)?te.add(I):N.add(I)})}else K={key:F,value:U};if(te.size===0&&N.size===0&&K===null)return;let D;c&&(D=r.document.createElement("style"),D.appendChild(document.createTextNode(hf)),r.document.head.appendChild(D));for(const O of te)J.classList.add(O);for(const O of N)J.classList.remove(O);K&&J.setAttribute(K.key,K.value),c&&(r.getComputedStyle(D).opacity,document.head.removeChild(D))});function C(b){var F;M(t,n,(F=f[b])!=null?F:b)}function P(b){e.onChanged?e.onChanged(b,C):C(b)}le(x,P,{flush:"post",immediate:!0}),Ar(()=>P(x.value));const T=ae({get(){return u?y.value:x.value},set(b){y.value=b}});return Object.assign(T,{store:y,system:g,state:x})}function mf(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=gf({...e,onChanged:(o,l)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=ae(()=>s.system.value);return ae({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}function yf(e={}){const{navigator:t=Er,requestPermissions:n=!1,constraints:s={audio:!0,video:!0},onUpdated:r}=e,i=oe([]),o=ae(()=>i.value.filter(y=>y.kind==="videoinput")),l=ae(()=>i.value.filter(y=>y.kind==="audioinput")),a=ae(()=>i.value.filter(y=>y.kind==="audiooutput")),u=It(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),c=ue(!1);let f;async function h(){u.value&&(i.value=await t.mediaDevices.enumerateDevices(),r==null||r(i.value),f&&(f.getTracks().forEach(y=>y.stop()),f=null))}async function g(){const y=s.video?"camera":"microphone";if(!u.value)return!1;if(c.value)return!0;const{state:x,query:M}=lf(y,{controls:!0});if(await M(),x.value!=="granted"){let C=!0;try{f=await t.mediaDevices.getUserMedia(s)}catch{f=null,C=!1}h(),c.value=C}else c.value=!0;return c.value}return u.value&&(n&&g(),pe(t.mediaDevices,"devicechange",h,{passive:!0}),h()),{devices:i,ensurePermissions:g,permissionGranted:c,videoInputs:o,audioInputs:l,audioOutputs:a,isSupported:u}}function vf(e,t,n={}){const{window:s=dt,...r}=n;let i;const o=It(()=>s&&"ResizeObserver"in s),l=()=>{i&&(i.disconnect(),i=void 0)},a=ae(()=>{const f=Le(e);return Array.isArray(f)?f.map(h=>ke(h)):[ke(f)]}),u=le(a,f=>{if(l(),o.value&&s){i=new ResizeObserver(t);for(const h of f)h&&i.observe(h,r)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return bn(c),{isSupported:o,stop:c}}function bf(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:r=!0,immediate:i=!0,updateTiming:o="sync"}=t,l=ue(0),a=ue(0),u=ue(0),c=ue(0),f=ue(0),h=ue(0),g=ue(0),y=ue(0);function x(){const C=ke(e);if(!C){n&&(l.value=0,a.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0,y.value=0);return}const P=C.getBoundingClientRect();l.value=P.height,a.value=P.bottom,u.value=P.left,c.value=P.right,f.value=P.top,h.value=P.width,g.value=P.x,y.value=P.y}function M(){o==="sync"?x():o==="next-frame"&&requestAnimationFrame(()=>x())}return vf(e,M),le(()=>ke(e),C=>!C&&M()),nf(e,M,{attributeFilter:["style","class"]}),r&&pe("scroll",M,{capture:!0,passive:!0}),s&&pe("resize",M,{passive:!0}),Ar(()=>{i&&M()}),{height:l,bottom:a,left:u,right:c,top:f,width:h,x:g,y,update:M}}function _f(e,t,n={}){const{root:s,rootMargin:r="0px",threshold:i=0,window:o=dt,immediate:l=!0}=n,a=It(()=>o&&"IntersectionObserver"in o),u=ae(()=>{const y=Le(e);return Xt(y).map(ke).filter(al)});let c=kn;const f=ue(l),h=a.value?le(()=>[u.value,ke(s),f.value],([y,x])=>{if(c(),!f.value||!y.length)return;const M=new IntersectionObserver(t,{root:ke(x),rootMargin:r,threshold:i});y.forEach(C=>C&&M.observe(C)),c=()=>{M.disconnect(),c=kn}},{immediate:l,flush:"post"}):kn,g=()=>{c(),h(),f.value=!1};return bn(g),{isSupported:a,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:g}}function xf(e={}){var t,n;const s=ue((t=e.enabled)!=null?t:!1),r=ue((n=e.autoSwitch)!=null?n:!0),i=oe(e.constraints),{navigator:o=Er}=e,l=It(()=>{var x;return(x=o==null?void 0:o.mediaDevices)==null?void 0:x.getUserMedia}),a=ue();function u(x){switch(x){case"video":{if(i.value)return i.value.video||!1;break}case"audio":{if(i.value)return i.value.audio||!1;break}}}async function c(){if(!(!l.value||a.value))return a.value=await o.mediaDevices.getUserMedia({video:u("video"),audio:u("audio")}),a.value}function f(){var x;(x=a.value)==null||x.getTracks().forEach(M=>M.stop()),a.value=void 0}function h(){f(),s.value=!1}async function g(){return await c(),a.value&&(s.value=!0),a.value}async function y(){return f(),await g()}return le(s,x=>{x?c():f()},{immediate:!0}),le(i,()=>{r.value&&a.value&&y()},{immediate:!0}),bn(()=>{h()}),{isSupported:l,stream:a,start:g,stop:h,restart:y,constraints:i,enabled:s,autoSwitch:r}}const pl=1/60*1e3,Sf=typeof performance<"u"?()=>performance.now():()=>Date.now(),hl=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Sf()),pl);function wf(e){let t=[],n=[],s=0,r=!1,i=!1;const o=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&r,h=f?t:n;return u&&o.add(a),h.indexOf(a)===-1&&(h.push(a),f&&r&&(s=t.length)),a},cancel:a=>{const u=n.indexOf(a);u!==-1&&n.splice(u,1),o.delete(a)},process:a=>{if(r){i=!0;return}if(r=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let u=0;u(e[t]=wf(()=>dn=!0),e),{}),rr=_n.reduce((e,t)=>{const n=bs[t];return e[t]=(s,r=!1,i=!1)=>(dn||Af(),n.schedule(s,r,i)),e},{}),Tf=_n.reduce((e,t)=>(e[t]=bs[t].cancel,e),{});_n.reduce((e,t)=>(e[t]=()=>bs[t].process(Ht),e),{});const Cf=e=>bs[e].process(Ht),gl=e=>{dn=!1,Ht.delta=nr?pl:Math.max(Math.min(e-Ht.timestamp,Of),1),Ht.timestamp=e,sr=!0,_n.forEach(Cf),sr=!1,dn&&(nr=!1,hl(gl))},Af=()=>{dn=!0,nr=!0,sr||hl(gl)},ml=()=>Ht;function yl(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);rMath.min(Math.max(n,e),t),Ii=.001,Ef=.01,Mf=10,Rf=.05,If=1;function Pf({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let r,i,o=1-t;o=ir(Rf,If,o),e=ir(Ef,Mf,e/1e3),o<1?(r=u=>{const c=u*o,f=c*e,h=c-n,g=or(u,o),y=Math.exp(-f);return Ii-h/g*y},i=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=or(Math.pow(u,2),o);return(-r(u)+Ii>0?-1:1)*((h-g)*y)/x}):(r=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-.001+c*f},i=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=Ff(r,i,l);if(e=e*1e3,isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const jf=12;function Ff(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function Lf(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Pi(e,Nf)&&Pi(e,Df)){const n=Pf(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Mr(e){var{from:t=0,to:n=1,restSpeed:s=2,restDelta:r}=e,i=yl(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:l,damping:a,mass:u,velocity:c,duration:f,isResolvedFromDuration:h}=Lf(i),g=ji,y=ji;function x(){const M=c?-(c/1e3):0,C=n-t,P=a/(2*Math.sqrt(l*u)),T=Math.sqrt(l/u)/1e3;if(r===void 0&&(r=Math.min(Math.abs(n-t)/100,.4)),P<1){const b=or(T,P);g=F=>{const U=Math.exp(-P*T*F);return n-U*((M+P*T*C)/b*Math.sin(b*F)+C*Math.cos(b*F))},y=F=>{const U=Math.exp(-P*T*F);return P*T*U*(Math.sin(b*F)*(M+P*T*C)/b+C*Math.cos(b*F))-U*(Math.cos(b*F)*(M+P*T*C)-b*C*Math.sin(b*F))}}else if(P===1)g=b=>n-Math.exp(-T*b)*(C+(M+T*C)*b);else{const b=T*Math.sqrt(P*P-1);g=F=>{const U=Math.exp(-P*T*F),J=Math.min(b*F,300);return n-U*((M+P*T*C)*Math.sinh(J)+b*C*Math.cosh(J))/b}}}return x(),{next:M=>{const C=g(M);if(h)o.done=M>=f;else{const P=y(M)*1e3,T=Math.abs(P)<=s,b=Math.abs(n-C)<=r;o.done=T&&b}return o.value=o.done?n:C,o},flipTarget:()=>{c=-c,[t,n]=[n,t],x()}}}Mr.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const ji=e=>0,vl=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Rr=(e,t,n)=>-n*e+n*t+e,bl=(e,t)=>n=>Math.max(Math.min(n,t),e),en=e=>e%1?Number(e.toFixed(5)):e,pn=/(-)?([\d]*\.?[\d])+/g,lr=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kf=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xn(e){return typeof e=="string"}const Sn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},tn=Object.assign(Object.assign({},Sn),{transform:bl(0,1)}),Pn=Object.assign(Object.assign({},Sn),{default:1}),Ir=e=>({test:t=>xn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=Ir("deg"),nn=Ir("%"),z=Ir("px"),Fi=Object.assign(Object.assign({},nn),{parse:e=>nn.parse(e)/100,transform:e=>nn.transform(e*100)}),Pr=(e,t)=>n=>!!(xn(n)&&kf.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_l=(e,t,n)=>s=>{if(!xn(s))return s;const[r,i,o,l]=s.match(pn);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Tt={test:Pr("hsl","hue"),parse:_l("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+nn.transform(en(t))+", "+nn.transform(en(n))+", "+en(tn.transform(s))+")"},Vf=bl(0,255),ks=Object.assign(Object.assign({},Sn),{transform:e=>Math.round(Vf(e))}),at={test:Pr("rgb","red"),parse:_l("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ks.transform(e)+", "+ks.transform(t)+", "+ks.transform(n)+", "+en(tn.transform(s))+")"};function Hf(e){let t="",n="",s="",r="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),s=e.substr(5,2),r=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),s=e.substr(3,1),r=e.substr(4,1),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const ar={test:Pr("#"),parse:Hf,transform:at.transform},Oe={test:e=>at.test(e)||ar.test(e)||Tt.test(e),parse:e=>at.test(e)?at.parse(e):Tt.test(e)?Tt.parse(e):ar.parse(e),transform:e=>xn(e)?e:e.hasOwnProperty("red")?at.transform(e):Tt.transform(e)},xl="${c}",Sl="${n}";function $f(e){var t,n,s,r;return isNaN(e)&&xn(e)&&((n=(t=e.match(pn))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((r=(s=e.match(lr))===null||s===void 0?void 0:s.length)!==null&&r!==void 0?r:0)>0}function wl(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const s=e.match(lr);s&&(n=s.length,e=e.replace(lr,xl),t.push(...s.map(Oe.parse)));const r=e.match(pn);return r&&(e=e.replace(pn,Sl),t.push(...r.map(Sn.parse))),{values:t,numColors:n,tokenised:e}}function Ol(e){return wl(e).values}function Tl(e){const{values:t,numColors:n,tokenised:s}=wl(e),r=t.length;return i=>{let o=s;for(let l=0;ltypeof e=="number"?0:e;function Uf(e){const t=Ol(e);return Tl(e)(t.map(Bf))}const wn={test:$f,parse:Ol,createTransformer:Tl,getAnimatableNone:Uf},Wf=new Set(["brightness","contrast","saturate","opacity"]);function zf(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(pn)||[];if(!s)return e;const r=n.replace(s,"");let i=Wf.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const Kf=/([a-z-]*)\(.*?\)/g,cr=Object.assign(Object.assign({},wn),{getAnimatableNone:e=>{const t=e.match(Kf);return t?t.map(zf).join(" "):e}});function Vs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Di({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;r=Vs(a,l,e+1/3),i=Vs(a,l,e),o=Vs(a,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}const qf=(e,t,n)=>{const s=e*e,r=t*t;return Math.sqrt(Math.max(0,n*(r-s)+s))},Gf=[ar,at,Tt],Ni=e=>Gf.find(t=>t.test(e)),Cl=(e,t)=>{let n=Ni(e),s=Ni(t),r=n.parse(e),i=s.parse(t);n===Tt&&(r=Di(r),n=at),s===Tt&&(i=Di(i),s=at);const o=Object.assign({},r);return l=>{for(const a in o)a!=="alpha"&&(o[a]=qf(r[a],i[a],l));return o.alpha=Rr(r.alpha,i.alpha,l),n.transform(o)}},Jf=e=>typeof e=="number",Yf=(e,t)=>n=>t(e(n)),Al=(...e)=>e.reduce(Yf);function El(e,t){return Jf(e)?n=>Rr(e,t,n):Oe.test(e)?Cl(e,t):Rl(e,t)}const Ml=(e,t)=>{const n=[...e],s=n.length,r=e.map((i,o)=>El(i,t[o]));return i=>{for(let o=0;o{const n=Object.assign(Object.assign({},e),t),s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=El(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}};function Li(e){const t=wn.parse(e),n=t.length;let s=0,r=0,i=0;for(let o=0;o{const n=wn.createTransformer(t),s=Li(e),r=Li(t);return s.numHSL===r.numHSL&&s.numRGB===r.numRGB&&s.numNumbers>=r.numNumbers?Al(Ml(s.parsed,r.parsed),n):o=>`${o>0?t:e}`},Qf=(e,t)=>n=>Rr(e,t,n);function Xf(e){if(typeof e=="number")return Qf;if(typeof e=="string")return Oe.test(e)?Cl:Rl;if(Array.isArray(e))return Ml;if(typeof e=="object")return Zf}function ed(e,t,n){const s=[],r=n||Xf(e[0]),i=e.length-1;for(let o=0;on(vl(e,t,s))}function nd(e,t){const n=e.length,s=n-1;return r=>{let i=0,o=!1;if(r<=e[0]?o=!0:r>=e[s]&&(i=s-1,o=!0),!o){let a=1;for(;ar||a===s);a++);i=a-1}const l=vl(e[i],e[i+1],r);return t[i](l)}}function Il(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;Ri(i===t.length),Ri(!s||!Array.isArray(s)||s.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=ed(t,s,r),l=i===2?td(e,o):nd(e,o);return n?a=>l(ir(e[0],e[i-1],a)):l}const _s=e=>t=>1-e(1-t),jr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sd=e=>t=>Math.pow(t,e),Pl=e=>t=>t*t*((e+1)*t-e),rd=e=>{const t=Pl(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},jl=1.525,id=4/11,od=8/11,ld=9/10,Fl=e=>e,Fr=sd(2),ad=_s(Fr),Dl=jr(Fr),Nl=e=>1-Math.sin(Math.acos(e)),Ll=_s(Nl),cd=jr(Ll),Dr=Pl(jl),ud=_s(Dr),fd=jr(Dr),dd=rd(jl),pd=4356/361,hd=35442/1805,gd=16061/1805,Zn=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-Zn(1-e*2)):.5*Zn(e*2-1)+.5;function vd(e,t){return e.map(()=>t||Dl).splice(0,e.length-1)}function bd(e){const t=e.length;return e.map((n,s)=>s!==0?s/(t-1):0)}function _d(e,t){return e.map(n=>n*t)}function Vn({from:e=0,to:t=1,ease:n,offset:s,duration:r=300}){const i={done:!1,value:e},o=Array.isArray(t)?t:[e,t],l=_d(s&&s.length===o.length?s:bd(o),r);function a(){return Il(l,o,{ease:Array.isArray(n)?n:vd(o,n)})}let u=a();return{next:c=>(i.value=u(c),i.done=c>=r,i),flipTarget:()=>{o.reverse(),u=a()}}}function xd({velocity:e=0,from:t=0,power:n=.8,timeConstant:s=350,restDelta:r=.5,modifyTarget:i}){const o={done:!1,value:t};let l=n*e;const a=t+l,u=i===void 0?a:i(a);return u!==a&&(l=u-t),{next:c=>{const f=-l*Math.exp(-c/s);return o.done=!(f>r||f<-r),o.value=o.done?u:u+f,o},flipTarget:()=>{}}}const ki={keyframes:Vn,spring:Mr,decay:xd};function Sd(e){if(Array.isArray(e.to))return Vn;if(ki[e.type])return ki[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Vn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Mr:Vn}function kl(e,t,n=0){return e-t-n}function wd(e,t,n=0,s=!0){return s?kl(t+-e,t,n):t-(e-t)+n}function Od(e,t,n,s){return s?e>=t+n:e<=-n}const Td=e=>{const t=({delta:n})=>e(n);return{start:()=>rr.update(t,!0),stop:()=>Tf.update(t)}};function Vl(e){var t,n,{from:s,autoplay:r=!0,driver:i=Td,elapsed:o=0,repeat:l=0,repeatType:a="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:h,onRepeat:g,onUpdate:y}=e,x=yl(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=x,C,P=0,T=x.duration,b,F=!1,U=!0,J;const te=Sd(x);!((n=(t=te).needsInterpolation)===null||n===void 0)&&n.call(t,s,M)&&(J=Il([0,100],[s,M],{clamp:!1}),s=0,M=100);const N=te(Object.assign(Object.assign({},x),{from:s,to:M}));function K(){P++,a==="reverse"?(U=P%2===0,o=wd(o,T,u,U)):(o=kl(o,T,u),a==="mirror"&&N.flipTarget()),F=!1,g&&g()}function D(){C.stop(),h&&h()}function O(H){if(U||(H=-H),o+=H,!F){const W=N.next(Math.max(0,o));b=W.value,J&&(b=J(b)),F=U?W.done:o<=0}y==null||y(b),F&&(P===0&&(T??(T=o)),P{f==null||f(),C.stop()}}}function Hl(e,t){return t?e*(1e3/t):0}function Cd({from:e=0,velocity:t=0,min:n,max:s,power:r=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:a=1,modifyTarget:u,driver:c,onUpdate:f,onComplete:h,onStop:g}){let y;function x(T){return n!==void 0&&Ts}function M(T){return n===void 0?s:s===void 0||Math.abs(n-T){var F;f==null||f(b),(F=T.onUpdate)===null||F===void 0||F.call(T,b)},onComplete:h,onStop:g}))}function P(T){C(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:a},T))}if(x(e))P({from:e,velocity:t,to:M(e)});else{let T=r*t+e;typeof u<"u"&&(T=u(T));const b=M(T),F=b===n?-1:1;let U,J;const te=N=>{U=J,J=N,t=Hl(N-U,ml().delta),(F===1&&N>b||F===-1&&Ny==null?void 0:y.stop()}}const $l=(e,t)=>1-3*t+3*e,Bl=(e,t)=>3*t-6*e,Ul=e=>3*e,Qn=(e,t,n)=>(($l(t,n)*e+Bl(t,n))*e+Ul(t))*e,Wl=(e,t,n)=>3*$l(t,n)*e*e+2*Bl(t,n)*e+Ul(t),Ad=1e-7,Ed=10;function Md(e,t,n,s,r){let i,o,l=0;do o=t+(n-t)/2,i=Qn(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>Ad&&++l=Id?Pd(o,f,e,n):h===0?f:Md(o,l,l+jn,e,n)}return o=>o===0||o===1?o:Qn(i(o),t,s)}const tt={},Hs={};class Fd{constructor(){Ie(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,n,s){if(this.subscriptions.size)for(const r of this.subscriptions)r(t,n,s)}clear(){this.subscriptions.clear()}}function Vi(e){return!Number.isNaN(Number.parseFloat(e))}class Dd{constructor(t){Ie(this,"current");Ie(this,"prev");Ie(this,"timeDelta",0);Ie(this,"lastUpdated",0);Ie(this,"updateSubscribers",new Fd);Ie(this,"stopAnimation");Ie(this,"canTrackVelocity",!1);Ie(this,"updateAndNotify",t=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=ml();this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s),rr.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)});Ie(this,"scheduleVelocityCheck",()=>rr.postRender(this.velocityCheck));Ie(this,"velocityCheck",({timestamp:t})=>{this.canTrackVelocity||(this.canTrackVelocity=Vi(this.current)),t!==this.lastUpdated&&(this.prev=this.current)});this.prev=this.current=t,this.canTrackVelocity=Vi(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Hl(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{const{stop:s}=t(n);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Nd(e){return new Dd(e)}const{isArray:Ld}=Array;function kd(){const e=oe({}),t=s=>{const r=i=>{e.value[i]&&(e.value[i].stop(),e.value[i].destroy(),delete e.value[i])};s?Ld(s)?s.forEach(r):r(s):Object.keys(e.value).forEach(r)},n=(s,r,i)=>{if(e.value[s])return e.value[s];const o=Nd(r);return o.onChange(l=>i[s]=l),e.value[s]=o,o};return Xu(t),{motionValues:e,get:n,stop:t}}function Vd(e){return Array.isArray(e)}function St(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function $s(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function Hd(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Bs(){return{type:"keyframes",ease:"linear",duration:300}}function $d(e){return{type:"keyframes",duration:800,values:e}}const Hi={default:Hd,x:St,y:St,z:St,rotate:St,rotateX:St,rotateY:St,rotateZ:St,scaleX:$s,scaleY:$s,scale:$s,backgroundColor:Bs,color:Bs,opacity:Bs};function zl(e,t){let n;return Vd(t)?n=$d:n=Hi[e]||Hi.default,{to:t,...n(t)}}const $i={...Sn,transform:Math.round},Kl={color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,size:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Pn,scaleX:Pn,scaleY:Pn,scaleZ:Pn,skew:xt,skewX:xt,skewY:xt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:tn,originX:Fi,originY:Fi,originZ:z,zIndex:$i,filter:cr,WebkitFilter:cr,fillOpacity:tn,strokeOpacity:tn,numOctaves:$i},Nr=e=>Kl[e];function ur(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function Bd(e,t){let n=Nr(e);return n!==cr&&(n=wn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ud={linear:Fl,easeIn:Fr,easeInOut:Dl,easeOut:ad,circIn:Nl,circInOut:cd,circOut:Ll,backIn:Dr,backInOut:fd,backOut:ud,anticipate:dd,bounceIn:md,bounceInOut:yd,bounceOut:Zn};function Bi(e){if(Array.isArray(e)){const[t,n,s,r]=e;return jd(t,n,s,r)}else if(typeof e=="string")return Ud[e];return e}function Wd(e){return Array.isArray(e)&&typeof e[0]!="number"}function Ui(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&wn.test(t)&&!t.startsWith("url("))}function zd(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Kd({ease:e,times:t,delay:n,...s}){const r={...s};return t&&(r.offset=t),e&&(r.ease=Wd(e)?e.map(Bi):Bi(e)),n&&(r.elapsed=-n),r}function qd(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),zd(t),Gd(e)||(e={...e,...zl(n,t.to)}),{...t,...Kd(e)}}function Gd({delay:e,repeat:t,repeatType:n,repeatDelay:s,from:r,...i}){return!!Object.keys(i).length}function Jd(e,t){return e[t]||e.default||e}function Yd(e,t,n,s,r){const i=Jd(s,e);let o=i.from===null||i.from===void 0?t.get():i.from;const l=Ui(e,n);o==="none"&&l&&typeof n=="string"&&(o=Bd(e,n));const a=Ui(e,o);function u(f){const h={from:o,to:n,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:g=>t.set(g)};return i.type==="inertia"||i.type==="decay"?Cd({...h,...i}):Vl({...qd(i,h,e),onUpdate:g=>{h.onUpdate(g),i.onUpdate&&i.onUpdate(g)},onComplete:()=>{r&&r(),f&&f()}})}function c(f){return t.set(n),r&&r(),f&&f(),{stop:()=>{}}}return!a||!l||i.type===!1?c:u}function Zd(){const{motionValues:e,stop:t,get:n}=kd();return{motionValues:e,stop:t,push:(r,i,o,l={},a)=>{const u=o[r],c=n(r,u,o);if(l&&l.immediate){c.set(i);return}const f=Yd(r,c,i,l,a);c.start(f)}}}function Qd(e,t={},{motionValues:n,push:s,stop:r}=Zd()){const i=De(t),o=oe(!1);le(n,f=>{o.value=Object.values(f).filter(h=>h.isAnimating()).length>0},{immediate:!0,deep:!0});const l=f=>{if(!i||!i[f])throw new Error(`The variant ${f} does not exist.`);return i[f]},a=f=>{typeof f=="string"&&(f=l(f));const h=Object.entries(f).map(([y,x])=>{if(y!=="transition")return new Promise(M=>s(y,x,e,f.transition||zl(y,f[y]),M))}).filter(Boolean);async function g(){var y,x;await Promise.all(h),(x=(y=f.transition)==null?void 0:y.onComplete)==null||x.call(y)}return Promise.all([g()])};return{isAnimating:o,apply:a,set:f=>{const h=Yn(f)?f:l(f);Object.entries(h).forEach(([g,y])=>{g!=="transition"&&s(g,y,e,{immediate:!0})})},leave:async f=>{let h;if(i&&(i.leave&&(h=i.leave),!i.leave&&i.initial&&(h=i.initial)),!h){f();return}await a(h),f()},stop:r}}const Lr=typeof window<"u",Xd=()=>Lr&&(window.onpointerdown===null||(tt==null?void 0:tt.TEST)),ep=()=>Lr&&(window.ontouchstart===null||(tt==null?void 0:tt.TEST)),tp=()=>Lr&&(window.onmousedown===null||(tt==null?void 0:tt.TEST));function np({target:e,state:t,variants:n,apply:s}){const r=De(n),i=oe(!1),o=oe(!1),l=oe(!1),a=ae(()=>{let c=[...Object.keys(t.value||{})];return r&&(r.hovered&&(c=[...c,...Object.keys(r.hovered)]),r.tapped&&(c=[...c,...Object.keys(r.tapped)]),r.focused&&(c=[...c,...Object.keys(r.focused)])),c}),u=ae(()=>{const c={};Object.assign(c,t.value),i.value&&r.hovered&&Object.assign(c,r.hovered),o.value&&r.tapped&&Object.assign(c,r.tapped),l.value&&r.focused&&Object.assign(c,r.focused);for(const f in c)a.value.includes(f)||delete c[f];return c});r.hovered&&(pe(e,"mouseenter",()=>i.value=!0),pe(e,"mouseleave",()=>{i.value=!1,o.value=!1})),r.tapped&&(tp()&&(pe(e,"mousedown",()=>o.value=!0),pe(e,"mouseup",()=>o.value=!1)),Xd()&&(pe(e,"pointerdown",()=>o.value=!0),pe(e,"pointerup",()=>o.value=!1)),ep()&&(pe(e,"touchstart",()=>o.value=!0),pe(e,"touchend",()=>o.value=!1))),r.focused&&(pe(e,"focus",()=>l.value=!0),pe(e,"blur",()=>l.value=!1)),le([i,o,l],()=>{s(u.value)})}function sp({set:e,target:t,variants:n,variant:s}){const r=De(n);le(()=>t,()=>{r&&(r.initial&&(e("initial"),s.value="initial"),r.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function rp({state:e,apply:t}){le(e,n=>{n&&t(n)},{immediate:!0})}function ql({target:e,variants:t,variant:n}){const s=De(t);s&&(s.visible||s.visibleOnce)&&_f(e,([{isIntersecting:r}])=>{s.visible?r?n.value="visible":n.value="initial":s.visibleOnce&&(r&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function ip(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&sp(e),t.syncVariants&&rp(e),t.visibilityHooks&&ql(e),t.eventListeners&&np(e)}function Gl(e={}){const t=Rt({...e}),n=oe({});return le(t,()=>{const s={};for(const[r,i]of Object.entries(t)){const o=Nr(r),l=ur(i,o);s[r]=l}n.value=s},{immediate:!0,deep:!0}),{state:t,style:n}}function kr(e,t){le(()=>ke(e),n=>{n&&t(n)},{immediate:!0})}const op={x:"translateX",y:"translateY",z:"translateZ"};function Jl(e={},t=!0){const n=Rt({...e}),s=oe("");return le(n,r=>{let i="",o=!1;if(t&&(r.x||r.y||r.z)){const l=[r.x||0,r.y||0,r.z||0].map(a=>ur(a,z)).join(",");i+=`translate3d(${l}) `,o=!0}for(const[l,a]of Object.entries(r)){if(t&&(l==="x"||l==="y"||l==="z"))continue;const u=Nr(l),c=ur(a,u);i+=`${op[l]||l}(${c}) `}t&&!o&&(i+="translateZ(0px) "),s.value=i.trim()},{immediate:!0,deep:!0}),{state:n,transform:s}}const lp=["","X","Y","Z"],ap=["perspective","translate","scale","rotate","skew"],Yl=["transformPerspective","x","y","z"];ap.forEach(e=>{lp.forEach(t=>{const n=e+t;Yl.push(n)})});const cp=new Set(Yl);function Vr(e){return cp.has(e)}const up=new Set(["originX","originY","originZ"]);function Zl(e){return up.has(e)}function fp(e){const t={},n={};return Object.entries(e).forEach(([s,r])=>{Vr(s)||Zl(s)?t[s]=r:n[s]=r}),{transform:t,style:n}}function xs(e){const{transform:t,style:n}=fp(e),{transform:s}=Jl(t),{style:r}=Gl(n);return s.value&&(r.value.transform=s.value),r.value}function dp(e,t){let n,s;const{state:r,style:i}=Gl();return kr(e,o=>{s=o;for(const l of Object.keys(Kl))o.style[l]===null||o.style[l]===""||Vr(l)||Zl(l)||(r[l]=o.style[l]);n&&Object.entries(n).forEach(([l,a])=>o.style[l]=a),t&&t(r)}),le(i,o=>{if(!s){n=o;return}for(const l in o)s.style[l]=o[l]},{immediate:!0}),{style:r}}function pp(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const n=s=>s.endsWith("px")||s.endsWith("deg")?Number.parseFloat(s):Number.isNaN(Number(s))?Number(s):s;return t.reduce((s,r)=>{if(!r)return s;const[i,o]=r.split("("),a=o.split(",").map(c=>n(c.endsWith(")")?c.replace(")",""):c.trim())),u=a.length===1?a[0]:a;return{...s,[i]:u}},{})}function hp(e,t){Object.entries(pp(t)).forEach(([n,s])=>{const r=["x","y","z"];if(n==="translate3d"){if(s===0){r.forEach(i=>e[i]=0);return}s.forEach((i,o)=>e[r[o]]=i);return}if(s=Number.parseFloat(`${s}`),n==="translateX"){e.x=s;return}if(n==="translateY"){e.y=s;return}if(n==="translateZ"){e.z=s;return}e[n]=s})}function gp(e,t){let n,s;const{state:r,transform:i}=Jl();return kr(e,o=>{s=o,o.style.transform&&hp(r,o.style.transform),n&&(o.style.transform=n),t&&t(r)}),le(i,o=>{if(!s){n=o;return}s.style.transform=o},{immediate:!0}),{transform:r}}function mp(e){return Object.entries(e)}function yp(e,t){const n=Rt({}),s=o=>Object.entries(o).forEach(([l,a])=>n[l]=a),{style:r}=dp(e,s),{transform:i}=gp(e,s);return le(n,o=>{mp(o).forEach(([l,a])=>{const u=Vr(l)?i:r;u[l]&&u[l]===a||(u[l]=a)})},{immediate:!0,deep:!0}),kr(e,()=>t),{motionProperties:n,style:r,transform:i}}function vp(e={}){const t=De(e),n=oe();return{state:ae(()=>{if(n.value)return t[n.value]}),variant:n}}function Ql(e,t={},n){const{motionProperties:s}=yp(e),{variant:r,state:i}=vp(t),o=Qd(s,t),l={target:e,variant:r,variants:t,state:i,motionProperties:s,...o};return ip(l,n),l}const Xl=["delay","duration"],bp=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused",...Xl];function _p(e){return Xl.includes(e)}function xp(e,t){const n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&Yn(n.variants)&&(t.value={...t.value,...n.variants});for(let s of bp)if(!(!n||!n[s])){if(_p(s)&&typeof n[s]=="number"){for(const r of["enter","visible","visibleOnce"]){const i=t.value[r];i!=null&&(i.transition??(i.transition={}),i.transition[s]=n[s])}continue}if(Yn(n[s])){const r=n[s];s==="visible-once"&&(s="visibleOnce"),t.value[s]=r}}}}function Us(e,t=!1){return{created:(r,i,o)=>{const l=i.value&&typeof i.value=="string"?i.value:o.key;l&&Hs[l]&&Hs[l].stop();const a=t?structuredClone(G(e)||{}):e||{},u=oe(a);typeof i.value=="object"&&(u.value=i.value),xp(o,u);const f=Ql(r,u,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});r.motionInstance=f,l&&(Hs[l]=f)},mounted:(r,i,o)=>{r.motionInstance&&ql(r.motionInstance)},getSSRProps(r,i){let{initial:o}=r.value||i&&(i==null?void 0:i.props)||{};o=De(o);const l=Wi({},(e==null?void 0:e.initial)||{},o||{});return!l||Object.keys(l).length===0?void 0:{style:xs(l)}}}}const Sp={initial:{opacity:0},enter:{opacity:1}},wp={initial:{opacity:0},visible:{opacity:1}},Op={initial:{opacity:0},visibleOnce:{opacity:1}},Tp={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},Cp={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},Ap={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},Ep={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},Mp={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},Rp={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},Ip={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},Pp={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},jp={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},Fp={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},Dp={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},Np={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},Lp={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},kp={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},Vp={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},Hp={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},$p={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},Bp={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},Up={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},Wp={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},zp={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},Kp={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},qp={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},Gp={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Jp={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},Yp={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},Zp={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Xn={__proto__:null,fade:Sp,fadeVisible:wp,fadeVisibleOnce:Op,pop:Tp,popVisible:Cp,popVisibleOnce:Ap,rollBottom:Lp,rollLeft:Ep,rollRight:Ip,rollTop:Fp,rollVisibleBottom:kp,rollVisibleLeft:Mp,rollVisibleOnceBottom:Vp,rollVisibleOnceLeft:Rp,rollVisibleOnceRight:jp,rollVisibleOnceTop:Np,rollVisibleRight:Pp,rollVisibleTop:Dp,slideBottom:Jp,slideLeft:Hp,slideRight:Up,slideTop:Kp,slideVisibleBottom:Yp,slideVisibleLeft:$p,slideVisibleOnceBottom:Zp,slideVisibleOnceLeft:Bp,slideVisibleOnceRight:zp,slideVisibleOnceTop:Gp,slideVisibleRight:Wp,slideVisibleTop:qp};function Qp(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,r=>`-${r}`).toLowerCase().replace(/\s+/g,"-").replace(s,r=>n.charAt(t.indexOf(r))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const ea=Symbol(""),ta={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Xp(e){return Object.prototype.toString.call(e)==="[object Object]"}function fr(e){if(Array.isArray(e))return e.map(fr);if(Xp(e)){const t={};for(const n in e)t[n]=fr(e[n]);return t}return e}function na(e){const t=Rt({}),n=Vt(ea,{}),s=ae(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(G(n)[e.preset]):e.preset in Xn?structuredClone(Xn[e.preset]):{}),r=ae(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function i(a,u){for(const c of["delay","duration"]){if(u[c]==null)continue;const f=Number.parseInt(u[c]);for(const h of["enter","visible","visibleOnce"]){const g=a[h];g!=null&&(g.transition??(g.transition={}),g.transition[c]=f)}}return a}const o=ae(()=>{const a=Wi({},r.value,s.value,e.variants||{});return i({...a},e)});function l(a,u,c){var h;a.props??(a.props={}),(h=a.props).style??(h.style={}),a.props.style={...a.props.style,...c};const f=i(fr(o.value),a.props);return a.props.onVnodeMounted=({el:g})=>{t[u]=Ql(g,f)},a.props.onVnodeUpdated=({el:g})=>{const y=xs(t[u].state);for(const[x,M]of Object.entries(y))g.style[x]=M},a}return{motionConfig:o,setNodeInstance:l}}const eh=ds({name:"Motion",props:{...ta,is:{type:[String,Object],default:"div"}},setup(e){const t=Fo(),{motionConfig:n,setNodeInstance:s}=na(e);return()=>{const r=xs(n.value.initial||{}),i=Cr(e.is,void 0,t);return s(i,0,r),i}}}),th=ds({name:"MotionGroup",props:{...ta,is:{type:[String,Object],required:!1}},setup(e){const t=Fo(),{motionConfig:n,setNodeInstance:s}=na(e);return()=>{var o;const r=xs(n.value.initial||{}),i=((o=t.default)==null?void 0:o.call(t))||[];for(let l=0;l(Ze(),rt("div",sh,[ve("div",{"h-full":"",bg:"white dark:neutral-200","rounded-full":"",w:"[100%]",style:rs({transform:`translateX(-${Math.max(0,100-t.percentage)}%)`})},null,4)]))}}),ih="/assets/worker-CwQTQlbK.js";let _e,sn=!1,Ft=!1,sa;async function ra(e){return sa=e,new Promise((t,n)=>{if(sn){t();return}try{let s;if(e!=null&&"onProgress"in e&&e.onProgress!=null&&(s=e==null?void 0:e.onProgress,e==null||delete e.onProgress),!Ft&&!sn&&!_e){try{if(_e=new Worker(ih,{type:"module"}),!_e)throw new Error("Worker not initialized");_e.postMessage({type:"load",data:void 0})}catch(r){Ft=!1,n(r);return}_e.addEventListener("message",r=>{switch(r.data.type){case"error":Ft=!1,n(r.data.data.error);break;case"progress":s!=null&&typeof s=="function"&&s(r.data.data.progress);break}})}_e==null||_e.addEventListener("message",r=>{r.data.type!=="status"||r.data.data.status!=="ready"||(sn=!0,Ft=!1,t())})}catch(s){Ft=!1,n(s)}})}async function oh(e){return new Promise((t,n)=>{ra(sa).then(()=>{if(!_e||!sn){n(new Error("Model not loaded"));return}_e.addEventListener("error",i=>{n(i)});let s=!1,r=!1;_e.addEventListener("message",i=>{switch(i.data.type){case"error":s=!0,n(i.data.data.error);break;case"processResult":r=!0,t(i.data.data.output);break}}),!s&&!r&&_e.postMessage({data:{instruction:e.instruction,imageBuffer:e.imageBuffer,imageWidth:e.imageWidth,imageHeight:e.imageHeight,channels:e.channels},type:"process"})})})}function lh(){_e&&(_e.terminate(),sn=!1,Ft=!1,_e=void 0)}const ah={relative:"","z-0":"","h-full":"","w-full":"","overflow-hidden":"",class:"rounded-none sm:rounded-3xl","shadow-md":""},ch={key:0,bottom:"20",left:"1/2","translate-x":"-50%","max-w":"50",absolute:"","z-10":"","h-10":"","w-full":""},uh={key:1,"translate-x":"-50%",absolute:"",bottom:"20",left:"1/2","z-10":"",bg:"neutral-700/60 dark:neutral-900/90",text:"white/98 dark:neutral-100/90 {var I;return(I=t.value[0])==null?void 0:I.deviceId}),o=ae(()=>({video:{deviceId:i.value}})),l=oe(!1),a=oe(!1),u=oe("In one sentence, what do you see?"),c=oe(""),f=oe("1000"),h=oe([]),g=new Set,y=oe(0),x=oe(0),M=oe(!1),C=mf({disableTransition:!1}),P=bf(n,{immediate:!0,windowResize:!0}),{stream:T,start:b}=xf({constraints:o,enabled:!0,autoSwitch:!0});le([T,s],()=>{T.value&&s.value&&(s.value.srcObject=T.value)}),le(i,()=>i.value&&b()),mn(P.update),gs(()=>lh());function F(){var W,Z,q;if(!T||!((W=s.value)!=null&&W.videoWidth)||!r.value)return console.warn("Video stream not ready for capture."),null;r.value.width=(Z=s.value)==null?void 0:Z.videoWidth,r.value.height=(q=s.value)==null?void 0:q.videoHeight;const I=r.value.getContext("2d",{willReadFrequently:!0});if(!I)return console.warn("Canvas context not ready for capture."),null;I.drawImage(s.value,0,0,r.value.width,r.value.height);const H=I.getImageData(0,0,r.value.width,r.value.height);return{imageBuffer:H.data,imageWidth:H.width,imageHeight:H.height,channels:4}}async function U(){if(!a.value)return;const I=u.value,H=F();if(!H){c.value="Capture failed";return}try{const W=await oh({instruction:I,imageBuffer:H.imageBuffer,imageWidth:H.imageWidth,imageHeight:H.imageHeight,channels:H.channels});c.value=W.data??""}catch(W){console.error(W),c.value=`Error: ${W instanceof Error?W.message:"Unknown error"}`}}function J(I){return new Promise(H=>setTimeout(H,I))}async function te(){const I=Number.parseInt(f.value,10);for(;a.value&&(await U(),!!a.value);)await J(I)}const N=async I=>{if(I.status==="initiate"){if(g.has(I.file))return;g.add(I.file),h.value.push(I),M.value=!0}else if(I.status==="progress"){const H=h.value.findIndex(W=>W.file===I.file);if(H>=0){h.value[H]=I;let W=0,Z=0;for(const q of h.value)"total"in q&&q.total&&(W+=q.total,"loaded"in q&&q.loaded&&(Z+=q.loaded));x.value=W,W>0&&(y.value=Z/W*100)}else{h.value.push(I);let W=0,Z=0;for(const q of h.value)"total"in q&&q.total&&(W+=q.total,"loaded"in q&&q.loaded&&(Z+=q.loaded));x.value=W,W>0&&(y.value=Z/W*100)}}else if(I.status==="done"){const H=h.value.findIndex(Z=>Z.file===I.file);H>=0&&(h.value[H]=I),h.value.every(Z=>Z.status==="done"||Z.status==="ready")&&(M.value=!1,y.value=100)}else I.status==="ready"&&(M.value=!1,y.value=100)};async function K(){if(!T){c.value="Camera not available. Cannot start.",alert("Camera not available. Please grant permission first.");return}l.value||(await ra({onProgress:N}),l.value=!0),a.value=!0,c.value="...",te()}function D(){a.value=!1,c.value==="..."&&(c.value="")}function O(){a.value?D():K()}return(I,H)=>(Ze(),rt("div",{ref_key:"videoScreenContainer",ref:n,"max-h":"100dvh","max-w":"100dvw",relative:"","h-full":"","w-full":"",class:"p-0 sm:p-4"},[ve("div",ah,[H[2]||(H[2]=ve("div",{absolute:"","left-0":"","top-0":"","z-10":"",class:"p-2 sm:p-4",flex:"","gap-2":""},[ve("div",{bg:"white dark:neutral-900",text:"black dark:white 0&&M.value?(Ze(),rt("div",ch,[Se(rh,{percentage:Math.min(100,y.value)},null,8,["percentage"])])):ii("",!0),c.value?(Ze(),rt("div",uh,Dn(c.value),1)):ii("",!0),ve("video",{ref_key:"videoScreen",ref:s,autoplay:"",muted:"",relative:"","z-0":"","h-full":"","w-full":"","object-cover":""},null,512),ve("canvas",{ref_key:"captureCanvas",ref:r,class:"hidden"},null,512),ve("div",fh,[lc(ve("select",{"onUpdate:modelValue":H[0]||(H[0]=W=>i.value=W),bg:"neutral-500/40 hover:neutral-600/40 dark:neutral-900/70 hover:dark:neutral-900/60",text:"white/98 dark:neutral-100/90 (Ze(),rt("option",{key:W.deviceId,value:W.deviceId,class:"text-xs sm:text-sm","inline-block":""},Dn(W.label),9,dh))),128))],512),[[Hu,i.value]]),ve("button",{bg:"neutral-500/40 hover:neutral-600/40 dark:neutral-900/70 hover:dark:neutral-900/60",text:"white/98 dark:neutral-100/90",border:"neutral-400/40 dark:neutral-500/50 1 solid",outline:"none",shadow:"none hover:lg",transition:"all duration-300 ease-in-out","aspect-square":"","h-full":"",flex:"","cursor-pointer":"","items-center":"","justify-center":"","rounded-full":"","backdrop-blur-lg":"",onClick:H[1]||(H[1]=W=>C.value=!De(C))},[Se(_u,{name:"fade",mode:"out-in"},{default:Oo(()=>[De(C)?(Ze(),rt("div",ph)):(Ze(),rt("div",hh))]),_:1})])])])],512))}});Uu(gh).use(nh).mount("#app");