@vtj/materials 0.8.141 → 0.8.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/package.json +7 -7
- package/src/version.ts +2 -2
@@ -1 +1 @@
|
|
1
|
-
var _VueDemiGlobal=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this,VueDemi=function(h,d,a){if(h.install)return h;if(!d)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),h;if(d.version.slice(0,4)==="2.7."){let q=function(X,J){var K,N={},I={config:d.config,use:d.use.bind(d),mixin:d.mixin.bind(d),component:d.component.bind(d),provide:function($,U){return N[$]=U,this},directive:function($,U){return U?(d.directive($,U),I):d.directive($)},mount:function($,U){return K||(K=new d(Object.assign({propsData:J},X,{provide:Object.assign(N,X.provide)})),K.$mount($,U),K)},unmount:function(){K&&(K.$destroy(),K=void 0)}};return I};var Ae=q;for(var Y in d)h[Y]=d[Y];h.isVue2=!0,h.isVue3=!1,h.install=function(){},h.Vue=d,h.Vue2=d,h.version=d.version,h.warn=d.util.warn,h.hasInjectionContext=function(){return!!h.getCurrentInstance()},h.createApp=q}else if(d.version.slice(0,2)==="2.")if(a){for(var Y in a)h[Y]=a[Y];h.isVue2=!0,h.isVue3=!1,h.install=function(){},h.Vue=d,h.Vue2=d,h.version=d.version,h.hasInjectionContext=function(){return!!h.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(d.version.slice(0,2)==="3."){for(var Y in d)h[Y]=d[Y];h.isVue2=!1,h.isVue3=!0,h.install=function(){},h.Vue=d,h.Vue2=void 0,h.version=d.version,h.set=function(q,X,J){return Array.isArray(q)?(q.length=Math.max(q.length,X),q.splice(X,1,J),J):(q[X]=J,J)},h.del=function(q,X){if(Array.isArray(q)){q.splice(X,1);return}delete q[X]}}else console.error("[vue-demi] Vue version "+d.version+" is unsupported.");return h}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),_VueDemiGlobal.Vue||(typeof Vue<"u"?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(h,d,a){"use strict";function Y(e,t,n){let o;a.isRef(n)?o={evaluating:n}:o=n||{};const{lazy:r=!1,evaluating:l=void 0,shallow:u=!0,onError:s=d.noop}=o,i=a.ref(!r),c=u?a.shallowRef(t):a.ref(t);let f=0;return a.watchEffect(async v=>{if(!i.value)return;f++;const y=f;let p=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const m=await e(S=>{v(()=>{l&&(l.value=!1),p||S()})});y===f&&(c.value=m)}catch(m){s(m)}finally{l&&y===f&&(l.value=!1),p=!0}}),r?a.computed(()=>(i.value=!0,c.value)):c}function Ae(e,t,n,o){let r=a.inject(e);return n&&(r=a.inject(e,n)),o&&(r=a.inject(e,n,o)),typeof t=="function"?a.computed(l=>t(r,l)):a.computed({get:l=>t.get(r,l),set:t.set})}function q(e={}){if(!a.isVue3&&!a.version.startsWith("2.7.")){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createReusableTemplate only works in Vue 2.7 or above.");return}const{inheritAttrs:t=!0}=e,n=a.shallowRef(),o=a.defineComponent({setup(l,{slots:u}){return()=>{n.value=u.default}}}),r=a.defineComponent({inheritAttrs:t,setup(l,{attrs:u,slots:s}){return()=>{var i;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(i=n.value)==null?void 0:i.call(n,{...X(u),$slots:s});return t&&c?.length===1?c[0]:c}}});return d.makeDestructurable({define:o,reuse:r},[o,r])}function X(e){const t={};for(const n in e)t[d.camelize(n)]=e[n];return t}function J(e={}){if(!a.isVue3){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createTemplatePromise only works in Vue 3 or above.");return}let t=0;const n=a.ref([]);function o(...u){const s=a.shallowReactive({key:t++,args:u,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(s),s.promise=new Promise((i,c)=>{s.resolve=f=>(s.isResolving=!0,i(f)),s.reject=c}).finally(()=>{s.promise=void 0;const i=n.value.indexOf(s);i!==-1&&n.value.splice(i,1)}),s.promise}function r(...u){return e.singleton&&n.value.length>0?n.value[0].promise:o(...u)}const l=a.defineComponent((u,{slots:s})=>{const i=()=>n.value.map(c=>{var f;return a.h(a.Fragment,{key:c.key},(f=s.default)==null?void 0:f.call(s,c))});return e.transition?()=>a.h(a.TransitionGroup,e.transition,i):i});return l.start=r,l}function K(e){return function(...t){return e.apply(this,t.map(n=>d.toValue(n)))}}function N(e){var t;const n=d.toValue(e);return(t=n?.$el)!=null?t:n}const I=d.isClient?window:void 0,$=d.isClient?window.document:void 0,U=d.isClient?window.navigator:void 0,_t=d.isClient?window.location:void 0;function _(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=I):[t,n,o,r]=e,!t)return d.noop;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],u=()=>{l.forEach(f=>f()),l.length=0},s=(f,v,y,p)=>(f.addEventListener(v,y,p),()=>f.removeEventListener(v,y,p)),i=a.watch(()=>[N(t),d.toValue(r)],([f,v])=>{if(u(),!f)return;const y=d.isObject(v)?{...v}:v;l.push(...n.flatMap(p=>o.map(m=>s(f,p,m,y))))},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return d.tryOnScopeDispose(c),c}let Ve=!1;function Rt(e,t,n={}){const{window:o=I,ignore:r=[],capture:l=!0,detectIframe:u=!1}=n;if(!o)return d.noop;d.isIOS&&!Ve&&(Ve=!0,Array.from(o.document.body.children).forEach(y=>y.addEventListener("click",d.noop)),o.document.documentElement.addEventListener("click",d.noop));let s=!0;const i=y=>r.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(m=>m===y.target||y.composedPath().includes(m));{const m=N(p);return m&&(y.target===m||y.composedPath().includes(m))}}),f=[_(o,"click",y=>{const p=N(e);if(!(!p||p===y.target||y.composedPath().includes(p))){if(y.detail===0&&(s=!i(y)),!s){s=!0;return}t(y)}},{passive:!0,capture:l}),_(o,"pointerdown",y=>{const p=N(e);s=!i(y)&&!!(p&&!y.composedPath().includes(p))},{passive:!0}),u&&_(o,"blur",y=>{setTimeout(()=>{var p;const m=N(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!m?.contains(o.document.activeElement)&&t(y)},0)})].filter(Boolean);return()=>f.forEach(y=>y())}function Ft(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ce(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=I,eventName:l="keydown",passive:u=!1,dedupe:s=!1}=o,i=Ft(t);return _(r,l,f=>{f.repeat&&d.toValue(s)||i(f)&&n(f)},u)}function Pt(e,t,n={}){return ce(e,t,{...n,eventName:"keydown"})}function Ct(e,t,n={}){return ce(e,t,{...n,eventName:"keypress"})}function At(e,t,n={}){return ce(e,t,{...n,eventName:"keyup"})}const Vt=500,It=10;function Mt(e,t,n){var o,r;const l=a.computed(()=>N(e));let u,s,i,c=!1;function f(){u&&(clearTimeout(u),u=void 0),s=void 0,i=void 0,c=!1}function v(g){var w,E,R;const[O,V,k]=[i,s,c];if(f(),!n?.onMouseUp||!V||!O||(w=n?.modifiers)!=null&&w.self&&g.target!==l.value)return;(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(R=n?.modifiers)!=null&&R.stop&&g.stopPropagation();const F=g.x-V.x,C=g.y-V.y,T=Math.sqrt(F*F+C*C);n.onMouseUp(g.timeStamp-O,T,k)}function y(g){var w,E,R,O;(w=n?.modifiers)!=null&&w.self&&g.target!==l.value||(f(),(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(R=n?.modifiers)!=null&&R.stop&&g.stopPropagation(),s={x:g.x,y:g.y},i=g.timeStamp,u=setTimeout(()=>{c=!0,t(g)},(O=n?.delay)!=null?O:Vt))}function p(g){var w,E,R,O;if((w=n?.modifiers)!=null&&w.self&&g.target!==l.value||!s||n?.distanceThreshold===!1)return;(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(R=n?.modifiers)!=null&&R.stop&&g.stopPropagation();const V=g.x-s.x,k=g.y-s.y;Math.sqrt(V*V+k*k)>=((O=n?.distanceThreshold)!=null?O:It)&&f()}const m={capture:(o=n?.modifiers)==null?void 0:o.capture,once:(r=n?.modifiers)==null?void 0:r.once},S=[_(l,"pointerdown",y,m),_(l,"pointermove",p,m),_(l,["pointerup","pointerleave"],v,m)];return()=>S.forEach(g=>g())}function Lt(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function Nt({keyCode:e,metaKey:t,ctrlKey:n,altKey:o}){return t||n||o?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function xt(e,t={}){const{document:n=$}=t;n&&_(n,"keydown",r=>{!Lt()&&Nt(r)&&e(r)},{passive:!0})}function Wt(e,t=null){const n=a.getCurrentInstance();let o=()=>{};const r=a.customRef((l,u)=>(o=u,{get(){var s,i;return l(),(i=(s=n?.proxy)==null?void 0:s.$refs[e])!=null?i:t},set(){}}));return d.tryOnMounted(o),a.onUpdated(o),r}function Ie(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},a.isVue2?void 0:t),e}function x(e){const t=Ie();return a.computed(()=>(t.value,!!e()))}function te(e,t,n={}){const{window:o=I,...r}=n;let l;const u=x(()=>o&&"MutationObserver"in o),s=()=>{l&&(l.disconnect(),l=void 0)},i=a.computed(()=>{const y=d.toValue(e),p=(Array.isArray(y)?y:[y]).map(N).filter(d.notNullish);return new Set(p)}),c=a.watch(()=>i.value,y=>{s(),u.value&&y.size&&(l=new MutationObserver(t),y.forEach(p=>l.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>l?.takeRecords(),v=()=>{c(),s()};return d.tryOnScopeDispose(v),{isSupported:u,stop:v,takeRecords:f}}function Me(e={}){var t;const{window:n=I,deep:o=!0,triggerOnRemoval:r=!1}=e,l=(t=e.document)!=null?t:n?.document,u=()=>{var c;let f=l?.activeElement;if(o)for(;f?.shadowRoot;)f=(c=f?.shadowRoot)==null?void 0:c.activeElement;return f},s=a.ref(),i=()=>{s.value=u()};return n&&(_(n,"blur",c=>{c.relatedTarget===null&&i()},!0),_(n,"focus",i,!0)),r&&te(l,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===s.value&&i()})},{childList:!0,subtree:!0}),i(),s}function Z(e,t={}){const{immediate:n=!0,fpsLimit:o=void 0,window:r=I}=t,l=a.ref(!1),u=o?1e3/o:null;let s=0,i=null;function c(y){if(!l.value||!r)return;s||(s=y);const p=y-s;if(u&&p<u){i=r.requestAnimationFrame(c);return}s=y,e({delta:p,timestamp:y}),i=r.requestAnimationFrame(c)}function f(){!l.value&&r&&(l.value=!0,s=0,i=r.requestAnimationFrame(c))}function v(){l.value=!1,i!=null&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&f(),d.tryOnScopeDispose(v),{isActive:a.readonly(l),pause:v,resume:f}}function Ht(e,t,n){let o,r;d.isObject(n)?(o=n,r=d.objectOmit(n,["window","immediate","commitStyles","persist","onReady","onError"])):(o={duration:n},r=n);const{window:l=I,immediate:u=!0,commitStyles:s,persist:i,playbackRate:c=1,onReady:f,onError:v=M=>{console.error(M)}}=o,y=x(()=>l&&HTMLElement&&"animate"in HTMLElement.prototype),p=a.shallowRef(void 0),m=a.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:c,pending:!1,playState:u?"idle":"paused",replaceState:"active"}),S=a.computed(()=>m.pending),b=a.computed(()=>m.playState),g=a.computed(()=>m.replaceState),w=a.computed({get(){return m.startTime},set(M){m.startTime=M,p.value&&(p.value.startTime=M)}}),E=a.computed({get(){return m.currentTime},set(M){m.currentTime=M,p.value&&(p.value.currentTime=M,B())}}),R=a.computed({get(){return m.timeline},set(M){m.timeline=M,p.value&&(p.value.timeline=M)}}),O=a.computed({get(){return m.playbackRate},set(M){m.playbackRate=M,p.value&&(p.value.playbackRate=M)}}),V=()=>{if(p.value)try{p.value.play(),B()}catch(M){W(),v(M)}else P()},k=()=>{var M;try{(M=p.value)==null||M.pause(),W()}catch(H){v(H)}},F=()=>{var M;p.value||P();try{(M=p.value)==null||M.reverse(),B()}catch(H){W(),v(H)}},C=()=>{var M;try{(M=p.value)==null||M.finish(),W()}catch(H){v(H)}},T=()=>{var M;try{(M=p.value)==null||M.cancel(),W()}catch(H){v(H)}};a.watch(()=>N(e),M=>{M&&P()}),a.watch(()=>t,M=>{p.value&&P(),!N(e)&&p.value&&(p.value.effect=new KeyframeEffect(N(e),d.toValue(M),r))},{deep:!0}),d.tryOnMounted(()=>P(!0),!1),d.tryOnScopeDispose(T);function P(M){const H=N(e);!y.value||!H||(p.value||(p.value=H.animate(d.toValue(t),r)),i&&p.value.persist(),c!==1&&(p.value.playbackRate=c),M&&!u?p.value.pause():B(),f?.(p.value))}_(p,["cancel","finish","remove"],W),_(p,"finish",()=>{var M;s&&((M=p.value)==null||M.commitStyles())});const{resume:A,pause:L}=Z(()=>{p.value&&(m.pending=p.value.pending,m.playState=p.value.playState,m.replaceState=p.value.replaceState,m.startTime=p.value.startTime,m.currentTime=p.value.currentTime,m.timeline=p.value.timeline,m.playbackRate=p.value.playbackRate)},{immediate:!1});function B(){y.value&&A()}function W(){y.value&&l&&l.requestAnimationFrame(L)}return{isSupported:y,animate:p,play:V,pause:k,reverse:F,finish:C,cancel:T,pending:S,playState:b,replaceState:g,startTime:w,currentTime:E,timeline:R,playbackRate:O}}function $t(e,t){const{interrupt:n=!0,onError:o=d.noop,onFinished:r=d.noop,signal:l}=t||{},u={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},s=Array.from(Array.from({length:e.length}),()=>({state:u.pending,data:null})),i=a.reactive(s),c=a.ref(-1);if(!e||e.length===0)return r(),{activeIndex:c,result:i};function f(v,y){c.value++,i[c.value].data=y,i[c.value].state=v}return e.reduce((v,y)=>v.then(p=>{var m;if(l?.aborted){f(u.aborted,new Error("aborted"));return}if(((m=i[c.value])==null?void 0:m.state)===u.rejected&&n){r();return}const S=y(p).then(b=>(f(u.fulfilled,b),c.value===e.length-1&&r(),b));return l?Promise.race([S,Ut(l)]):S}).catch(p=>l?.aborted?(f(u.aborted,p),p):(f(u.rejected,p),o(),p)),Promise.resolve()),{activeIndex:c,result:i}}function Ut(e){return new Promise((t,n)=>{const o=new Error("aborted");e.aborted?n(o):e.addEventListener("abort",()=>n(o),{once:!0})})}function Le(e,t,n){const{immediate:o=!0,delay:r=0,onError:l=d.noop,onSuccess:u=d.noop,resetOnExecute:s=!0,shallow:i=!0,throwError:c}=n??{},f=i?a.shallowRef(t):a.ref(t),v=a.ref(!1),y=a.ref(!1),p=a.shallowRef(void 0);async function m(g=0,...w){s&&(f.value=t),p.value=void 0,v.value=!1,y.value=!0,g>0&&await d.promiseTimeout(g);const E=typeof e=="function"?e(...w):e;try{const R=await E;f.value=R,v.value=!0,u(R)}catch(R){if(p.value=R,l(R),c)throw R}finally{y.value=!1}return f.value}o&&m(r);const S={state:f,isReady:v,isLoading:y,error:p,execute:m};function b(){return new Promise((g,w)=>{d.until(y).toBe(!1).then(()=>g(S)).catch(w)})}return{...S,then(g,w){return b().then(g,w)}}}const oe={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function Bt(e){return e?e instanceof Map?oe.map:e instanceof Set?oe.set:Array.isArray(e)?oe.array:oe.object:oe.null}function jt(e,t){const n=a.ref(""),o=a.ref();function r(){if(d.isClient)return o.value=new Promise((l,u)=>{try{const s=d.toValue(e);if(s==null)l("");else if(typeof s=="string")l(Se(new Blob([s],{type:"text/plain"})));else if(s instanceof Blob)l(Se(s));else if(s instanceof ArrayBuffer)l(window.btoa(String.fromCharCode(...new Uint8Array(s))));else if(s instanceof HTMLCanvasElement)l(s.toDataURL(t?.type,t?.quality));else if(s instanceof HTMLImageElement){const i=s.cloneNode(!1);i.crossOrigin="Anonymous",zt(i).then(()=>{const c=document.createElement("canvas"),f=c.getContext("2d");c.width=i.width,c.height=i.height,f.drawImage(i,0,0,c.width,c.height),l(c.toDataURL(t?.type,t?.quality))}).catch(u)}else if(typeof s=="object"){const c=(t?.serializer||Bt(s))(s);return l(Se(new Blob([c],{type:"application/json"})))}else u(new Error("target is unsupported types"))}catch(s){u(s)}}),o.value.then(l=>n.value=l),o.value}return a.isRef(e)||typeof e=="function"?a.watch(e,r,{immediate:!0}):r(),{base64:n,promise:o,execute:r}}function zt(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function Se(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=r=>{t(r.target.result)},o.onerror=n,o.readAsDataURL(e)})}function qt(e={}){const{navigator:t=U}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],o=x(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),r=a.ref(!1),l=a.ref(0),u=a.ref(0),s=a.ref(1);let i;function c(){r.value=this.charging,l.value=this.chargingTime||0,u.value=this.dischargingTime||0,s.value=this.level}return o.value&&t.getBattery().then(f=>{i=f,c.call(i),_(i,n,c,{passive:!0})}),{isSupported:o,charging:r,chargingTime:l,dischargingTime:u,level:s}}function Gt(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:o=void 0,navigator:r=U}=e||{},l=x(()=>r&&"bluetooth"in r),u=a.shallowRef(void 0),s=a.shallowRef(null);a.watch(u,()=>{v()});async function i(){if(l.value){s.value=null,n&&n.length>0&&(t=!1);try{u.value=await r?.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:o})}catch(y){s.value=y}}}const c=a.ref(),f=a.computed(()=>{var y;return((y=c.value)==null?void 0:y.connected)||!1});async function v(){if(s.value=null,u.value&&u.value.gatt){u.value.addEventListener("gattserverdisconnected",()=>{});try{c.value=await u.value.gatt.connect()}catch(y){s.value=y}}}return d.tryOnMounted(()=>{var y;u.value&&((y=u.value.gatt)==null||y.connect())}),d.tryOnScopeDispose(()=>{var y;u.value&&((y=u.value.gatt)==null||y.disconnect())}),{isSupported:l,isConnected:f,device:u,requestDevice:i,server:c,error:s}}function G(e,t={}){const{window:n=I}=t,o=x(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const l=a.ref(!1),u=c=>{l.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",u):r.removeListener(u))},i=a.watchEffect(()=>{o.value&&(s(),r=n.matchMedia(d.toValue(e)),"addEventListener"in r?r.addEventListener("change",u):r.addListener(u),l.value=r.matches)});return d.tryOnScopeDispose(()=>{i(),s(),r=void 0}),l}const Yt={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Xt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},Ne={xs:0,sm:600,md:960,lg:1264,xl:1904},Kt={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},Jt=Ne,Qt={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},Zt={xs:0,sm:600,md:1024,lg:1440,xl:1920},Dt={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},en={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},tn={sm:576,md:768,lg:992,xl:1200};function nn(e,t={}){function n(f,v){let y=d.toValue(e[d.toValue(f)]);return v!=null&&(y=d.increaseWithUnit(y,v)),typeof y=="number"&&(y=`${y}px`),y}const{window:o=I,strategy:r="min-width"}=t;function l(f){return o?o.matchMedia(f).matches:!1}const u=f=>G(()=>`(min-width: ${n(f)})`,t),s=f=>G(()=>`(max-width: ${n(f)})`,t),i=Object.keys(e).reduce((f,v)=>(Object.defineProperty(f,v,{get:()=>r==="min-width"?u(v):s(v),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(v=>[v,u(v)]);return a.computed(()=>f.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(i,{greaterOrEqual:u,smallerOrEqual:s,greater(f){return G(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return G(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,v){return G(()=>`(min-width: ${n(f)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(f){return l(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return l(`(min-width: ${n(f)})`)},isSmaller(f){return l(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return l(`(max-width: ${n(f)})`)},isInBetween(f,v){return l(`(min-width: ${n(f)}) and (max-width: ${n(v,-.1)})`)},current:c,active(){const f=c();return a.computed(()=>f.value.length===0?"":f.value.at(-1))}})}function on(e){const{name:t,window:n=I}=e,o=x(()=>n&&"BroadcastChannel"in n),r=a.ref(!1),l=a.ref(),u=a.ref(),s=a.shallowRef(null),i=f=>{l.value&&l.value.postMessage(f)},c=()=>{l.value&&l.value.close(),r.value=!0};return o.value&&d.tryOnMounted(()=>{s.value=null,l.value=new BroadcastChannel(t),l.value.addEventListener("message",f=>{u.value=f.data},{passive:!0}),l.value.addEventListener("messageerror",f=>{s.value=f},{passive:!0}),l.value.addEventListener("close",()=>{r.value=!0})}),d.tryOnScopeDispose(()=>{c()}),{isSupported:o,channel:l,data:u,post:i,close:c,error:s,isClosed:r}}const xe=["hash","host","hostname","href","pathname","port","protocol","search"];function ln(e={}){const{window:t=I}=e,n=Object.fromEntries(xe.map(l=>[l,a.ref()]));for(const[l,u]of d.objectEntries(n))a.watch(u,s=>{!t?.location||t.location[l]===s||(t.location[l]=s)});const o=l=>{var u;const{state:s,length:i}=t?.history||{},{origin:c}=t?.location||{};for(const f of xe)n[f].value=(u=t?.location)==null?void 0:u[f];return a.reactive({trigger:l,state:s,length:i,origin:c,...n})},r=a.ref(o("load"));return t&&(_(t,"popstate",()=>r.value=o("popstate"),{passive:!0}),_(t,"hashchange",()=>r.value=o("hashchange"),{passive:!0})),r}function rn(e,t=(o,r)=>o===r,n){const o=a.ref(e.value);return a.watch(()=>e.value,r=>{t(r,o.value)||(o.value=r)},n),o}function fe(e,t={}){const{controls:n=!1,navigator:o=U}=t,r=x(()=>o&&"permissions"in o),l=a.shallowRef(),u=typeof e=="string"?{name:e}:e,s=a.shallowRef(),i=()=>{var f,v;s.value=(v=(f=l.value)==null?void 0:f.state)!=null?v:"prompt"};_(l,"change",i);const c=d.createSingletonPromise(async()=>{if(r.value){if(!l.value)try{l.value=await o.permissions.query(u)}catch{l.value=void 0}finally{i()}if(n)return a.toRaw(l.value)}});return c(),n?{state:s,isSupported:r,query:c}:s}function an(e={}){const{navigator:t=U,read:n=!1,source:o,copiedDuring:r=1500,legacy:l=!1}=e,u=x(()=>t&&"clipboard"in t),s=fe("clipboard-read"),i=fe("clipboard-write"),c=a.computed(()=>u.value||l),f=a.ref(""),v=a.ref(!1),y=d.useTimeoutFn(()=>v.value=!1,r);function p(){u.value&&g(s.value)?t.clipboard.readText().then(w=>{f.value=w}):f.value=b()}c.value&&n&&_(["copy","cut"],p);async function m(w=d.toValue(o)){c.value&&w!=null&&(u.value&&g(i.value)?await t.clipboard.writeText(w):S(w),f.value=w,v.value=!0,y.start())}function S(w){const E=document.createElement("textarea");E.value=w??"",E.style.position="absolute",E.style.opacity="0",document.body.appendChild(E),E.select(),document.execCommand("copy"),E.remove()}function b(){var w,E,R;return(R=(E=(w=document?.getSelection)==null?void 0:w.call(document))==null?void 0:E.toString())!=null?R:""}function g(w){return w==="granted"||w==="prompt"}return{isSupported:c,text:f,copied:v,copy:m}}function un(e={}){const{navigator:t=U,read:n=!1,source:o,copiedDuring:r=1500}=e,l=x(()=>t&&"clipboard"in t),u=a.ref([]),s=a.ref(!1),i=d.useTimeoutFn(()=>s.value=!1,r);function c(){l.value&&t.clipboard.read().then(v=>{u.value=v})}l.value&&n&&_(["copy","cut"],c);async function f(v=d.toValue(o)){l.value&&v!=null&&(await t.clipboard.write(v),u.value=v,s.value=!0,i.start())}return{isSupported:l,content:u,copied:s,copy:f}}function le(e){return JSON.parse(JSON.stringify(e))}function sn(e,t={}){const n=a.ref({}),{manual:o,clone:r=le,deep:l=!0,immediate:u=!0}=t;function s(){n.value=r(d.toValue(e))}return!o&&(a.isRef(e)||typeof e=="function")?a.watch(e,s,{...t,deep:l,immediate:u}):s(),{cloned:n,sync:s}}const de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ve="__vueuse_ssr_handlers__",We=cn();function cn(){return ve in de||(de[ve]=de[ve]||{}),de[ve]}function pe(e,t){return We[e]||t}function fn(e,t){We[e]=t}function He(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 Ee={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()}},Te="vueuse-storage";function ye(e,t,n,o={}){var r;const{flush:l="pre",deep:u=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:v=I,eventFilter:y,onError:p=T=>{console.error(T)},initOnMounted:m}=o,S=(f?a.shallowRef:a.ref)(typeof t=="function"?t():t);if(!n)try{n=pe("getDefaultStorage",()=>{var T;return(T=I)==null?void 0:T.localStorage})()}catch(T){p(T)}if(!n)return S;const b=d.toValue(t),g=He(b),w=(r=o.serializer)!=null?r:Ee[g],{pause:E,resume:R}=d.pausableWatch(S,()=>V(S.value),{flush:l,deep:u,eventFilter:y});v&&s&&d.tryOnMounted(()=>{n instanceof Storage?_(v,"storage",F):_(v,Te,C),m&&F()}),m||F();function O(T,P){if(v){const A={key:e,oldValue:T,newValue:P,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",A):new CustomEvent(Te,{detail:A}))}}function V(T){try{const P=n.getItem(e);if(T==null)O(P,null),n.removeItem(e);else{const A=w.write(T);P!==A&&(n.setItem(e,A),O(P,A))}}catch(P){p(P)}}function k(T){const P=T?T.newValue:n.getItem(e);if(P==null)return i&&b!=null&&n.setItem(e,w.write(b)),b;if(!T&&c){const A=w.read(P);return typeof c=="function"?c(A,b):g==="object"&&!Array.isArray(A)?{...b,...A}:A}else return typeof P!="string"?P:w.read(P)}function F(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){S.value=b;return}if(!(T&&T.key!==e)){E();try{T?.newValue!==w.write(S.value)&&(S.value=k(T))}catch(P){p(P)}finally{T?a.nextTick(R):R()}}}}function C(T){F(T.detail)}return S}function Oe(e){return G("(prefers-color-scheme: dark)",e)}const dn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function $e(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=I,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:i,emitAuto:c,disableTransition:f=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},y=Oe({window:r}),p=a.computed(()=>y.value?"dark":"light"),m=i||(u==null?d.toRef(o):ye(u,o,l,{window:r,listenToStorageChanges:s})),S=a.computed(()=>m.value==="auto"?p.value:m.value),b=pe("updateHTMLAttrs",(R,O,V)=>{const k=typeof R=="string"?r?.document.querySelector(R):N(R);if(!k)return;const F=new Set,C=new Set;let T=null;if(O==="class"){const A=V.split(/\s/g);Object.values(v).flatMap(L=>(L||"").split(/\s/g)).filter(Boolean).forEach(L=>{A.includes(L)?F.add(L):C.add(L)})}else T={key:O,value:V};if(F.size===0&&C.size===0&&T===null)return;let P;f&&(P=r.document.createElement("style"),P.appendChild(document.createTextNode(dn)),r.document.head.appendChild(P));for(const A of F)k.classList.add(A);for(const A of C)k.classList.remove(A);T&&k.setAttribute(T.key,T.value),f&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function g(R){var O;b(t,n,(O=v[R])!=null?O:R)}function w(R){e.onChanged?e.onChanged(R,g):g(R)}a.watch(S,w,{flush:"post",immediate:!0}),d.tryOnMounted(()=>w(S.value));const E=a.computed({get(){return c?m.value:S.value},set(R){m.value=R}});try{return Object.assign(E,{store:m,system:p,state:S})}catch{return E}}function vn(e=a.ref(!1)){const t=d.createEventHook(),n=d.createEventHook(),o=d.createEventHook();let r=d.noop;const l=i=>(o.trigger(i),e.value=!0,new Promise(c=>{r=c})),u=i=>{e.value=!1,t.trigger(i),r({data:i,isCanceled:!1})},s=i=>{e.value=!1,n.trigger(i),r({data:i,isCanceled:!0})};return{isRevealed:a.computed(()=>e.value),reveal:l,confirm:u,cancel:s,onReveal:o.on,onConfirm:t.on,onCancel:n.on}}function re(e,t,n={}){const{window:o=I,initialValue:r,observe:l=!1}=n,u=a.ref(r),s=a.computed(()=>{var c;return N(t)||((c=o?.document)==null?void 0:c.documentElement)});function i(){var c;const f=d.toValue(e),v=d.toValue(s);if(v&&o&&f){const y=(c=o.getComputedStyle(v).getPropertyValue(f))==null?void 0:c.trim();u.value=y||r}}return l&&te(s,i,{attributeFilter:["style","class"],window:o}),a.watch([s,()=>d.toValue(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),i()},{immediate:!0}),a.watch(u,c=>{var f;const v=d.toValue(e);(f=s.value)!=null&&f.style&&v&&(c==null?s.value.style.removeProperty(v):s.value.style.setProperty(v,c))}),u}function Ue(e){const t=a.getCurrentInstance(),n=d.computedWithControl(()=>null,()=>e?N(e):t.proxy.$el);return a.onUpdated(n.trigger),a.onMounted(n.trigger),n}function pn(e,t){const n=a.shallowRef(c()),o=d.toRef(e),r=a.computed({get(){var f;const v=o.value;let y=t?.getIndexOf?t.getIndexOf(n.value,v):v.indexOf(n.value);return y<0&&(y=(f=t?.fallbackIndex)!=null?f:0),y},set(f){l(f)}});function l(f){const v=o.value,y=v.length,p=(f%y+y)%y,m=v[p];return n.value=m,m}function u(f=1){return l(r.value+f)}function s(f=1){return u(f)}function i(f=1){return u(-f)}function c(){var f,v;return(v=d.toValue((f=t?.initialValue)!=null?f:d.toValue(e)[0]))!=null?v:void 0}return a.watch(o,()=>l(r.value)),{state:n,index:r,next:s,prev:i,go:l}}function yn(e={}){const{valueDark:t="dark",valueLight:n="",window:o=I}=e,r=$e({...e,onChanged:(s,i)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",i,s):i(s)},modes:{dark:t,light:n}}),l=a.computed(()=>r.system?r.system.value:Oe({window:o}).value?"dark":"light");return a.computed({get(){return r.value==="dark"},set(s){const i=s?"dark":"light";l.value===i?r.value="auto":r.value=i}})}function Be(e){return e}function mn(e,t){return e.value=t}function gn(e){return e?typeof e=="function"?e:le:Be}function wn(e){return e?typeof e=="function"?e:le:Be}function je(e,t={}){const{clone:n=!1,dump:o=gn(n),parse:r=wn(n),setSource:l=mn}=t;function u(){return a.markRaw({snapshot:o(e.value),timestamp:d.timestamp()})}const s=a.ref(u()),i=a.ref([]),c=a.ref([]),f=E=>{l(e,r(E.snapshot)),s.value=E},v=()=>{i.value.unshift(s.value),s.value=u(),t.capacity&&i.value.length>t.capacity&&i.value.splice(t.capacity,Number.POSITIVE_INFINITY),c.value.length&&c.value.splice(0,c.value.length)},y=()=>{i.value.splice(0,i.value.length),c.value.splice(0,c.value.length)},p=()=>{const E=i.value.shift();E&&(c.value.unshift(s.value),f(E))},m=()=>{const E=c.value.shift();E&&(i.value.unshift(s.value),f(E))},S=()=>{f(s.value)},b=a.computed(()=>[s.value,...i.value]),g=a.computed(()=>i.value.length>0),w=a.computed(()=>c.value.length>0);return{source:e,undoStack:i,redoStack:c,last:s,history:b,canUndo:g,canRedo:w,clear:y,commit:v,reset:S,undo:p,redo:m}}function ke(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:r}=t,{eventFilter:l,pause:u,resume:s,isActive:i}=d.pausableFilter(r),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:v}=d.watchIgnorable(e,b,{deep:n,flush:o,eventFilter:l});function y(R,O){f(),c(()=>{R.value=O})}const p=je(e,{...t,clone:t.clone||n,setSource:y}),{clear:m,commit:S}=p;function b(){f(),S()}function g(R){s(),R&&b()}function w(R){let O=!1;const V=()=>O=!0;c(()=>{R(V)}),O||b()}function E(){v(),m()}return{...p,isTracking:i,pause:u,resume:g,commit:b,batch:w,dispose:E}}function hn(e,t={}){const n=t.debounce?d.debounceFilter(t.debounce):void 0;return{...ke(e,{...t,eventFilter:n})}}function bn(e={}){const{window:t=I,eventFilter:n=d.bypassFilter}=e,o=a.ref({x:null,y:null,z:null}),r=a.ref({alpha:null,beta:null,gamma:null}),l=a.ref(0),u=a.ref({x:null,y:null,z:null});if(t){const s=d.createFilterWrapper(n,i=>{o.value=i.acceleration,u.value=i.accelerationIncludingGravity,r.value=i.rotationRate,l.value=i.interval});_(t,"devicemotion",s)}return{acceleration:o,accelerationIncludingGravity:u,rotationRate:r,interval:l}}function ze(e={}){const{window:t=I}=e,n=x(()=>t&&"DeviceOrientationEvent"in t),o=a.ref(!1),r=a.ref(null),l=a.ref(null),u=a.ref(null);return t&&n.value&&_(t,"deviceorientation",s=>{o.value=s.absolute,r.value=s.alpha,l.value=s.beta,u.value=s.gamma}),{isSupported:n,isAbsolute:o,alpha:r,beta:l,gamma:u}}function Sn(e={}){const{window:t=I}=e,n=a.ref(1);if(t){let o=function(){n.value=t.devicePixelRatio,r(),l=t.matchMedia(`(resolution: ${n.value}dppx)`),l.addEventListener("change",o,{once:!0})},r=function(){l?.removeEventListener("change",o)},l;o(),d.tryOnScopeDispose(r)}return{pixelRatio:n}}function En(e={}){const{navigator:t=U,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:r}=e,l=a.ref([]),u=a.computed(()=>l.value.filter(m=>m.kind==="videoinput")),s=a.computed(()=>l.value.filter(m=>m.kind==="audioinput")),i=a.computed(()=>l.value.filter(m=>m.kind==="audiooutput")),c=x(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=a.ref(!1);let v;async function y(){c.value&&(l.value=await t.mediaDevices.enumerateDevices(),r?.(l.value),v&&(v.getTracks().forEach(m=>m.stop()),v=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:m,query:S}=fe("camera",{controls:!0});return await S(),m.value!=="granted"&&(v=await t.mediaDevices.getUserMedia(o),y()),f.value=!0,f.value}return c.value&&(n&&p(),_(t.mediaDevices,"devicechange",y),y()),{devices:l,ensurePermissions:p,permissionGranted:f,videoInputs:u,audioInputs:s,audioOutputs:i,isSupported:c}}function Tn(e={}){var t;const n=a.ref((t=e.enabled)!=null?t:!1),o=e.video,r=e.audio,{navigator:l=U}=e,u=x(()=>{var p;return(p=l?.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:r,video:o},i=a.shallowRef();async function c(){var p;if(!(!u.value||i.value))return i.value=await l.mediaDevices.getDisplayMedia(s),(p=i.value)==null||p.getTracks().forEach(m=>m.addEventListener("ended",v)),i.value}async function f(){var p;(p=i.value)==null||p.getTracks().forEach(m=>m.stop()),i.value=void 0}function v(){f(),n.value=!1}async function y(){return await c(),i.value&&(n.value=!0),i.value}return a.watch(n,p=>{p?c():f()},{immediate:!0}),{isSupported:u,stream:i,start:y,stop:v,enabled:n}}function qe(e={}){const{document:t=$}=e;if(!t)return a.ref("visible");const n=a.ref(t.visibilityState);return _(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function On(e,t={}){var n,o;const{pointerTypes:r,preventDefault:l,stopPropagation:u,exact:s,onMove:i,onEnd:c,onStart:f,initialValue:v,axis:y="both",draggingElement:p=I,containerElement:m,handle:S=e,buttons:b=[0]}=t,g=a.ref((n=d.toValue(v))!=null?n:{x:0,y:0}),w=a.ref(),E=F=>r?r.includes(F.pointerType):!0,R=F=>{d.toValue(l)&&F.preventDefault(),d.toValue(u)&&F.stopPropagation()},O=F=>{var C;if(!d.toValue(b).includes(F.button)||d.toValue(t.disabled)||!E(F)||d.toValue(s)&&F.target!==d.toValue(e))return;const T=d.toValue(m),P=(C=T?.getBoundingClientRect)==null?void 0:C.call(T),A=d.toValue(e).getBoundingClientRect(),L={x:F.clientX-(T?A.left-P.left+T.scrollLeft:A.left),y:F.clientY-(T?A.top-P.top+T.scrollTop:A.top)};f?.(L,F)!==!1&&(w.value=L,R(F))},V=F=>{if(d.toValue(t.disabled)||!E(F)||!w.value)return;const C=d.toValue(m),T=d.toValue(e).getBoundingClientRect();let{x:P,y:A}=g.value;(y==="x"||y==="both")&&(P=F.clientX-w.value.x,C&&(P=Math.min(Math.max(0,P),C.scrollWidth-T.width))),(y==="y"||y==="both")&&(A=F.clientY-w.value.y,C&&(A=Math.min(Math.max(0,A),C.scrollHeight-T.height))),g.value={x:P,y:A},i?.(g.value,F),R(F)},k=F=>{d.toValue(t.disabled)||!E(F)||w.value&&(w.value=void 0,c?.(g.value,F),R(F))};if(d.isClient){const F={capture:(o=t.capture)!=null?o:!0};_(S,"pointerdown",O,F),_(p,"pointermove",V,F),_(p,"pointerup",k,F)}return{...d.toRefs(g),position:g,isDragging:a.computed(()=>!!w.value),style:a.computed(()=>`left:${g.value.x}px;top:${g.value.y}px;`)}}function kn(e,t={}){const n=a.ref(!1),o=a.shallowRef(null);let r=0,l=!0;if(d.isClient){const u=typeof t=="function"?{onDrop:t}:t,s=i=>{var c,f;const v=Array.from((f=(c=i.dataTransfer)==null?void 0:c.files)!=null?f:[]);return o.value=v.length===0?null:v};_(e,"dragenter",i=>{var c,f;const v=Array.from(((c=i?.dataTransfer)==null?void 0:c.items)||[]).map(p=>p.kind==="file"?p.type:null).filter(d.notNullish);if(u.dataTypes&&i.dataTransfer){const p=a.unref(u.dataTypes);if(l=typeof p=="function"?p(v):p?p.some(m=>v.includes(m)):!0,!l)return}i.preventDefault(),r+=1,n.value=!0;const y=s(i);(f=u.onEnter)==null||f.call(u,y,i)}),_(e,"dragover",i=>{var c;if(!l)return;i.preventDefault();const f=s(i);(c=u.onOver)==null||c.call(u,f,i)}),_(e,"dragleave",i=>{var c;if(!l)return;i.preventDefault(),r-=1,r===0&&(n.value=!1);const f=s(i);(c=u.onLeave)==null||c.call(u,f,i)}),_(e,"drop",i=>{var c;i.preventDefault(),r=0,n.value=!1;const f=s(i);(c=u.onDrop)==null||c.call(u,f,i)})}return{files:o,isOverDropZone:n}}function me(e,t,n={}){const{window:o=I,...r}=n;let l;const u=x(()=>o&&"ResizeObserver"in o),s=()=>{l&&(l.disconnect(),l=void 0)},i=a.computed(()=>{const v=d.toValue(e);return Array.isArray(v)?v.map(y=>N(y)):[N(v)]}),c=a.watch(i,v=>{if(s(),u.value&&o){l=new ResizeObserver(t);for(const y of v)y&&l.observe(y,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return d.tryOnScopeDispose(f),{isSupported:u,stop:f}}function _n(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:l=!0,updateTiming:u="sync"}=t,s=a.ref(0),i=a.ref(0),c=a.ref(0),f=a.ref(0),v=a.ref(0),y=a.ref(0),p=a.ref(0),m=a.ref(0);function S(){const g=N(e);if(!g){n&&(s.value=0,i.value=0,c.value=0,f.value=0,v.value=0,y.value=0,p.value=0,m.value=0);return}const w=g.getBoundingClientRect();s.value=w.height,i.value=w.bottom,c.value=w.left,f.value=w.right,v.value=w.top,y.value=w.width,p.value=w.x,m.value=w.y}function b(){u==="sync"?S():u==="next-frame"&&requestAnimationFrame(()=>S())}return me(e,b),a.watch(()=>N(e),g=>!g&&b()),te(e,b,{attributeFilter:["style","class"]}),r&&_("scroll",b,{capture:!0,passive:!0}),o&&_("resize",b,{passive:!0}),d.tryOnMounted(()=>{l&&b()}),{height:s,bottom:i,left:c,right:f,top:v,width:y,x:p,y:m,update:b}}function Rn(e){const{x:t,y:n,document:o=$,multiple:r,interval:l="requestAnimationFrame",immediate:u=!0}=e,s=x(()=>d.toValue(r)?o&&"elementsFromPoint"in o:o&&"elementFromPoint"in o),i=a.ref(null),c=()=>{var v,y;i.value=d.toValue(r)?(v=o?.elementsFromPoint(d.toValue(t),d.toValue(n)))!=null?v:[]:(y=o?.elementFromPoint(d.toValue(t),d.toValue(n)))!=null?y:null},f=l==="requestAnimationFrame"?Z(c,{immediate:u}):d.useIntervalFn(c,l,{immediate:u});return{isSupported:s,element:i,...f}}function Fn(e,t={}){const{delayEnter:n=0,delayLeave:o=0,window:r=I}=t,l=a.ref(!1);let u;const s=i=>{const c=i?n:o;u&&(clearTimeout(u),u=void 0),c?u=setTimeout(()=>l.value=i,c):l.value=i};return r&&(_(e,"mouseenter",()=>s(!0),{passive:!0}),_(e,"mouseleave",()=>s(!1),{passive:!0})),l}function Ge(e,t={width:0,height:0},n={}){const{window:o=I,box:r="content-box"}=n,l=a.computed(()=>{var v,y;return(y=(v=N(e))==null?void 0:v.namespaceURI)==null?void 0:y.includes("svg")}),u=a.ref(t.width),s=a.ref(t.height),{stop:i}=me(e,([v])=>{const y=r==="border-box"?v.borderBoxSize:r==="content-box"?v.contentBoxSize:v.devicePixelContentBoxSize;if(o&&l.value){const p=N(e);if(p){const m=p.getBoundingClientRect();u.value=m.width,s.value=m.height}}else if(y){const p=Array.isArray(y)?y:[y];u.value=p.reduce((m,{inlineSize:S})=>m+S,0),s.value=p.reduce((m,{blockSize:S})=>m+S,0)}else u.value=v.contentRect.width,s.value=v.contentRect.height},n);d.tryOnMounted(()=>{const v=N(e);v&&(u.value="offsetWidth"in v?v.offsetWidth:t.width,s.value="offsetHeight"in v?v.offsetHeight:t.height)});const c=a.watch(()=>N(e),v=>{u.value=v?t.width:0,s.value=v?t.height:0});function f(){i(),c()}return{width:u,height:s,stop:f}}function Ye(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:l=0,window:u=I,immediate:s=!0}=n,i=x(()=>u&&"IntersectionObserver"in u),c=a.computed(()=>{const m=d.toValue(e);return(Array.isArray(m)?m:[m]).map(N).filter(d.notNullish)});let f=d.noop;const v=a.ref(s),y=i.value?a.watch(()=>[c.value,N(o),v.value],([m,S])=>{if(f(),!v.value||!m.length)return;const b=new IntersectionObserver(t,{root:N(S),rootMargin:r,threshold:l});m.forEach(g=>g&&b.observe(g)),f=()=>{b.disconnect(),f=d.noop}},{immediate:s,flush:"post"}):d.noop,p=()=>{f(),y(),v.value=!1};return d.tryOnScopeDispose(p),{isSupported:i,isActive:v,pause(){f(),v.value=!1},resume(){v.value=!0},stop:p}}function Xe(e,t={}){const{window:n=I,scrollTarget:o,threshold:r=0}=t,l=a.ref(!1);return Ye(e,u=>{let s=l.value,i=0;for(const c of u)c.time>=i&&(i=c.time,s=c.isIntersecting);l.value=s},{root:o,window:n,threshold:r}),l}const ae=new Map;function Pn(e){const t=a.getCurrentScope();function n(s){var i;const c=ae.get(e)||new Set;c.add(s),ae.set(e,c);const f=()=>r(s);return(i=t?.cleanups)==null||i.push(f),f}function o(s){function i(...c){r(i),s(...c)}return n(i)}function r(s){const i=ae.get(e);i&&(i.delete(s),i.size||l())}function l(){ae.delete(e)}function u(s,i){var c;(c=ae.get(e))==null||c.forEach(f=>f(s,i))}return{on:n,once:o,off:r,emit:u,reset:l}}function Cn(e){return e===!0?{}:e}function An(e,t=[],n={}){const o=a.ref(null),r=a.ref(null),l=a.ref("CONNECTING"),u=a.ref(null),s=a.shallowRef(null),i=d.toRef(e),c=a.shallowRef(null);let f=!1,v=0;const{withCredentials:y=!1,immediate:p=!0}=n,m=()=>{d.isClient&&u.value&&(u.value.close(),u.value=null,l.value="CLOSED",f=!0)},S=()=>{if(f||typeof i.value>"u")return;const g=new EventSource(i.value,{withCredentials:y});l.value="CONNECTING",u.value=g,g.onopen=()=>{l.value="OPEN",s.value=null},g.onerror=w=>{if(l.value="CLOSED",s.value=w,g.readyState===2&&!f&&n.autoReconnect){g.close();const{retries:E=-1,delay:R=1e3,onFailed:O}=Cn(n.autoReconnect);v+=1,typeof E=="number"&&(E<0||v<E)||typeof E=="function"&&E()?setTimeout(S,R):O?.()}},g.onmessage=w=>{o.value=null,r.value=w.data,c.value=w.lastEventId};for(const w of t)_(g,w,E=>{o.value=w,r.value=E.data||null})},b=()=>{d.isClient&&(m(),f=!1,v=0,S())};return p&&a.watch(i,b,{immediate:!0}),d.tryOnScopeDispose(m),{eventSource:u,event:o,data:r,status:l,error:s,open:b,close:m,lastEventId:c}}function Vn(e={}){const{initialValue:t=""}=e,n=x(()=>typeof window<"u"&&"EyeDropper"in window),o=a.ref(t);async function r(l){if(!n.value)return;const s=await new window.EyeDropper().open(l);return o.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:o,open:r}}function In(e=null,t={}){const{baseUrl:n="",rel:o="icon",document:r=$}=t,l=d.toRef(e),u=s=>{const i=r?.head.querySelectorAll(`link[rel*="${o}"]`);if(!i||i.length===0){const c=r?.createElement("link");c&&(c.rel=o,c.href=`${n}${s}`,c.type=`image/${s.split(".").pop()}`,r?.head.append(c));return}i?.forEach(c=>c.href=`${n}${s}`)};return a.watch(l,(s,i)=>{typeof s=="string"&&s!==i&&u(s)},{immediate:!0}),l}const Mn={json:"application/json",text:"text/plain"};function ge(e){return e&&d.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Ln=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function Nn(e){return Ln.test(e)}function ue(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function ne(e,...t){return e==="overwrite"?async n=>{const o=t[t.length-1];return o?{...n,...await o(n)}:n}:async n=>{for(const o of t)o&&(n={...n,...await o(n)});return n}}function xn(e={}){const t=e.combination||"chain",n=e.options||{},o=e.fetchOptions||{};function r(l,...u){const s=a.computed(()=>{const f=d.toValue(e.baseUrl),v=d.toValue(l);return f&&!Nn(v)?Wn(f,v):v});let i=n,c=o;return u.length>0&&(ge(u[0])?i={...i,...u[0],beforeFetch:ne(t,n.beforeFetch,u[0].beforeFetch),afterFetch:ne(t,n.afterFetch,u[0].afterFetch),onFetchError:ne(t,n.onFetchError,u[0].onFetchError)}:c={...c,...u[0],headers:{...ue(c.headers)||{},...ue(u[0].headers)||{}}}),u.length>1&&ge(u[1])&&(i={...i,...u[1],beforeFetch:ne(t,n.beforeFetch,u[1].beforeFetch),afterFetch:ne(t,n.afterFetch,u[1].afterFetch),onFetchError:ne(t,n.onFetchError,u[1].onFetchError)}),Ke(s,c,i)}return r}function Ke(e,...t){var n;const o=typeof AbortController=="function";let r={},l={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const u={method:"GET",type:"text",payload:void 0};t.length>0&&(ge(t[0])?l={...l,...t[0]}:r=t[0]),t.length>1&&ge(t[1])&&(l={...l,...t[1]});const{fetch:s=(n=I)==null?void 0:n.fetch,initialData:i,timeout:c}=l,f=d.createEventHook(),v=d.createEventHook(),y=d.createEventHook(),p=a.ref(!1),m=a.ref(!1),S=a.ref(!1),b=a.ref(null),g=a.shallowRef(null),w=a.shallowRef(null),E=a.shallowRef(i||null),R=a.computed(()=>o&&m.value);let O,V;const k=()=>{o&&(O?.abort(),O=new AbortController,O.signal.onabort=()=>S.value=!0,r={...r,signal:O.signal})},F=M=>{m.value=M,p.value=!M};c&&(V=d.useTimeoutFn(k,c,{immediate:!1}));let C=0;const T=async(M=!1)=>{var H,j;k(),F(!0),w.value=null,b.value=null,S.value=!1,C+=1;const se=C,D={method:u.method,headers:{}};if(u.payload){const z=ue(D.headers),Q=d.toValue(u.payload);!u.payloadType&&Q&&Object.getPrototypeOf(Q)===Object.prototype&&!(Q instanceof FormData)&&(u.payloadType="json"),u.payloadType&&(z["Content-Type"]=(H=Mn[u.payloadType])!=null?H:u.payloadType),D.body=u.payloadType==="json"?JSON.stringify(Q):Q}let kt=!1;const ie={url:d.toValue(e),options:{...D,...r},cancel:()=>{kt=!0}};if(l.beforeFetch&&Object.assign(ie,await l.beforeFetch(ie)),kt||!s)return F(!1),Promise.resolve(null);let ee=null;return V&&V.start(),s(ie.url,{...D,...ie.options,headers:{...ue(D.headers),...ue((j=ie.options)==null?void 0:j.headers)}}).then(async z=>{if(g.value=z,b.value=z.status,ee=await z.clone()[u.type](),!z.ok)throw E.value=i||null,new Error(z.statusText);return l.afterFetch&&({data:ee}=await l.afterFetch({data:ee,response:z})),E.value=ee,f.trigger(z),z}).catch(async z=>{let Q=z.message||z.name;if(l.onFetchError&&({error:Q,data:ee}=await l.onFetchError({data:ee,error:z,response:g.value})),w.value=Q,l.updateDataOnError&&(E.value=ee),v.trigger(z),M)throw z;return null}).finally(()=>{se===C&&F(!1),V&&V.stop(),y.trigger(null)})},P=d.toRef(l.refetch);a.watch([P,d.toRef(e)],([M])=>M&&T(),{deep:!0});const A={isFinished:a.readonly(p),isFetching:a.readonly(m),statusCode:b,response:g,error:w,data:E,canAbort:R,aborted:S,abort:k,execute:T,onFetchResponse:f.on,onFetchError:v.on,onFetchFinally:y.on,get:L("GET"),put:L("PUT"),post:L("POST"),delete:L("DELETE"),patch:L("PATCH"),head:L("HEAD"),options:L("OPTIONS"),json:W("json"),text:W("text"),blob:W("blob"),arrayBuffer:W("arrayBuffer"),formData:W("formData")};function L(M){return(H,j)=>{if(!m.value)return u.method=M,u.payload=H,u.payloadType=j,a.isRef(u.payload)&&a.watch([P,d.toRef(u.payload)],([se])=>se&&T(),{deep:!0}),{...A,then(se,D){return B().then(se,D)}}}}function B(){return new Promise((M,H)=>{d.until(p).toBe(!0).then(()=>M(A)).catch(j=>H(j))})}function W(M){return()=>{if(!m.value)return u.type=M,{...A,then(H,j){return B().then(H,j)}}}}return l.immediate&&Promise.resolve().then(()=>T()),{...A,then(M,H){return B().then(M,H)}}}function Wn(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const Hn={multiple:!0,accept:"*",reset:!1,directory:!1};function $n(e={}){const{document:t=$}=e,n=a.ref(null),{on:o,trigger:r}=d.createEventHook();let l;t&&(l=t.createElement("input"),l.type="file",l.onchange=i=>{const c=i.target;n.value=c.files,r(n.value)});const u=()=>{n.value=null,l&&l.value&&(l.value="",r(null))},s=i=>{if(!l)return;const c={...Hn,...e,...i};l.multiple=c.multiple,l.accept=c.accept,l.webkitdirectory=c.directory,d.hasOwn(c,"capture")&&(l.capture=c.capture),c.reset&&u(),l.click()};return{files:a.readonly(n),open:s,reset:u,onChange:o}}function Un(e={}){const{window:t=I,dataType:n="Text"}=e,o=t,r=x(()=>o&&"showSaveFilePicker"in o&&"showOpenFilePicker"in o),l=a.ref(),u=a.ref(),s=a.ref(),i=a.computed(()=>{var w,E;return(E=(w=s.value)==null?void 0:w.name)!=null?E:""}),c=a.computed(()=>{var w,E;return(E=(w=s.value)==null?void 0:w.type)!=null?E:""}),f=a.computed(()=>{var w,E;return(E=(w=s.value)==null?void 0:w.size)!=null?E:0}),v=a.computed(()=>{var w,E;return(E=(w=s.value)==null?void 0:w.lastModified)!=null?E:0});async function y(w={}){if(!r.value)return;const[E]=await o.showOpenFilePicker({...d.toValue(e),...w});l.value=E,await g()}async function p(w={}){r.value&&(l.value=await o.showSaveFilePicker({...e,...w}),u.value=void 0,await g())}async function m(w={}){if(r.value){if(!l.value)return S(w);if(u.value){const E=await l.value.createWritable();await E.write(u.value),await E.close()}await b()}}async function S(w={}){if(r.value){if(l.value=await o.showSaveFilePicker({...e,...w}),u.value){const E=await l.value.createWritable();await E.write(u.value),await E.close()}await b()}}async function b(){var w;s.value=await((w=l.value)==null?void 0:w.getFile())}async function g(){var w,E;await b();const R=d.toValue(n);R==="Text"?u.value=await((w=s.value)==null?void 0:w.text()):R==="ArrayBuffer"?u.value=await((E=s.value)==null?void 0:E.arrayBuffer()):R==="Blob"&&(u.value=s.value)}return a.watch(()=>d.toValue(n),g),{isSupported:r,data:u,file:s,fileName:i,fileMIME:c,fileSize:f,fileLastModified:v,open:y,create:p,save:m,saveAs:S,updateData:g}}function Bn(e,t={}){const{initialValue:n=!1,focusVisible:o=!1,preventScroll:r=!1}=t,l=a.ref(!1),u=a.computed(()=>N(e));_(u,"focus",i=>{var c,f;(!o||(f=(c=i.target).matches)!=null&&f.call(c,":focus-visible"))&&(l.value=!0)}),_(u,"blur",()=>l.value=!1);const s=a.computed({get:()=>l.value,set(i){var c,f;!i&&l.value?(c=u.value)==null||c.blur():i&&!l.value&&((f=u.value)==null||f.focus({preventScroll:r}))}});return a.watch(u,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function jn(e,t={}){const n=Me(t),o=a.computed(()=>N(e));return{focused:a.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function zn(e){var t;const n=a.ref(0);if(typeof performance>"u")return n;const o=(t=e?.every)!=null?t:10;let r=performance.now(),l=0;return Z(()=>{if(l+=1,l>=o){const u=performance.now(),s=u-r;n.value=Math.round(1e3/(s/l)),r=u,l=0}}),n}const Je=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function qn(e,t={}){const{document:n=$,autoExit:o=!1}=t,r=a.computed(()=>{var g;return(g=N(e))!=null?g:n?.querySelector("html")}),l=a.ref(!1),u=a.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(g=>n&&g in n||r.value&&g in r.value)),s=a.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(g=>n&&g in n||r.value&&g in r.value)),i=a.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(g=>n&&g in n||r.value&&g in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(g=>n&&g in n),f=x(()=>r.value&&n&&u.value!==void 0&&s.value!==void 0&&i.value!==void 0),v=()=>c?n?.[c]===r.value:!1,y=()=>{if(i.value){if(n&&n[i.value]!=null)return n[i.value];{const g=r.value;if(g?.[i.value]!=null)return!!g[i.value]}}return!1};async function p(){if(!(!f.value||!l.value)){if(s.value)if(n?.[s.value]!=null)await n[s.value]();else{const g=r.value;g?.[s.value]!=null&&await g[s.value]()}l.value=!1}}async function m(){if(!f.value||l.value)return;y()&&await p();const g=r.value;u.value&&g?.[u.value]!=null&&(await g[u.value](),l.value=!0)}async function S(){await(l.value?p():m())}const b=()=>{const g=y();(!g||g&&v())&&(l.value=g)};return _(n,Je,b,!1),_(()=>N(r),Je,b,!1),o&&d.tryOnScopeDispose(p),{isSupported:f,isFullscreen:l,enter:m,exit:p,toggle:S}}function Gn(e){return a.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function Yn(e={}){const{navigator:t=U}=e,n=x(()=>t&&"getGamepads"in t),o=a.ref([]),r=d.createEventHook(),l=d.createEventHook(),u=p=>{const m=[],S="vibrationActuator"in p?p.vibrationActuator:null;return S&&m.push(S),p.hapticActuators&&m.push(...p.hapticActuators),{id:p.id,index:p.index,connected:p.connected,mapping:p.mapping,timestamp:p.timestamp,vibrationActuator:p.vibrationActuator,hapticActuators:m,axes:p.axes.map(b=>b),buttons:p.buttons.map(b=>({pressed:b.pressed,touched:b.touched,value:b.value}))}},s=()=>{const p=t?.getGamepads()||[];for(const m of p)m&&o.value[m.index]&&(o.value[m.index]=u(m))},{isActive:i,pause:c,resume:f}=Z(s),v=p=>{o.value.some(({index:m})=>m===p.index)||(o.value.push(u(p)),r.trigger(p.index)),f()},y=p=>{o.value=o.value.filter(m=>m.index!==p.index),l.trigger(p.index)};return _("gamepadconnected",p=>v(p.gamepad)),_("gamepaddisconnected",p=>y(p.gamepad)),d.tryOnMounted(()=>{const p=t?.getGamepads()||[];for(const m of p)m&&o.value[m.index]&&v(m)}),c(),{isSupported:n,onConnected:r.on,onDisconnected:l.on,gamepads:o,pause:c,resume:f,isActive:i}}function Xn(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:o=27e3,navigator:r=U,immediate:l=!0}=e,u=x(()=>r&&"geolocation"in r),s=a.ref(null),i=a.shallowRef(null),c=a.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(m){s.value=m.timestamp,c.value=m.coords,i.value=null}let v;function y(){u.value&&(v=r.geolocation.watchPosition(f,m=>i.value=m,{enableHighAccuracy:t,maximumAge:n,timeout:o}))}l&&y();function p(){v&&r&&r.geolocation.clearWatch(v)}return d.tryOnScopeDispose(()=>{p()}),{isSupported:u,coords:c,locatedAt:s,error:i,resume:y,pause:p}}const Kn=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Jn=6e4;function Qn(e=Jn,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:r=Kn,window:l=I,eventFilter:u=d.throttleFilter(50)}=t,s=a.ref(n),i=a.ref(d.timestamp());let c;const f=()=>{s.value=!1,clearTimeout(c),c=setTimeout(()=>s.value=!0,e)},v=d.createFilterWrapper(u,()=>{i.value=d.timestamp(),f()});if(l){const y=l.document;for(const p of r)_(l,p,v,{passive:!0});o&&_(y,"visibilitychange",()=>{y.hidden||v()}),f()}return{idle:s,lastActive:i,reset:f}}async function Zn(e){return new Promise((t,n)=>{const o=new Image,{src:r,srcset:l,sizes:u,class:s,loading:i,crossorigin:c,referrerPolicy:f}=e;o.src=r,l&&(o.srcset=l),u&&(o.sizes=u),s&&(o.className=s),i&&(o.loading=i),c&&(o.crossOrigin=c),f&&(o.referrerPolicy=f),o.onload=()=>t(o),o.onerror=n})}function Dn(e,t={}){const n=Le(()=>Zn(d.toValue(e)),void 0,{resetOnExecute:!0,...t});return a.watch(()=>d.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}const Qe=1;function Ze(e,t={}){const{throttle:n=0,idle:o=200,onStop:r=d.noop,onScroll:l=d.noop,offset:u={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:c=I,onError:f=k=>{console.error(k)}}=t,v=a.ref(0),y=a.ref(0),p=a.computed({get(){return v.value},set(k){S(k,void 0)}}),m=a.computed({get(){return y.value},set(k){S(void 0,k)}});function S(k,F){var C,T,P,A;if(!c)return;const L=d.toValue(e);if(!L)return;(P=L instanceof Document?c.document.body:L)==null||P.scrollTo({top:(C=d.toValue(F))!=null?C:m.value,left:(T=d.toValue(k))!=null?T:p.value,behavior:d.toValue(i)});const B=((A=L?.document)==null?void 0:A.documentElement)||L?.documentElement||L;p!=null&&(v.value=B.scrollLeft),m!=null&&(y.value=B.scrollTop)}const b=a.ref(!1),g=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),E=k=>{b.value&&(b.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,r(k))},R=d.useDebounceFn(E,n+o),O=k=>{var F;if(!c)return;const C=((F=k?.document)==null?void 0:F.documentElement)||k?.documentElement||N(k),{display:T,flexDirection:P}=getComputedStyle(C),A=C.scrollLeft;w.left=A<v.value,w.right=A>v.value;const L=Math.abs(A)<=(u.left||0),B=Math.abs(A)+C.clientWidth>=C.scrollWidth-(u.right||0)-Qe;T==="flex"&&P==="row-reverse"?(g.left=B,g.right=L):(g.left=L,g.right=B),v.value=A;let W=C.scrollTop;k===c.document&&!W&&(W=c.document.body.scrollTop),w.top=W<y.value,w.bottom=W>y.value;const M=Math.abs(W)<=(u.top||0),H=Math.abs(W)+C.clientHeight>=C.scrollHeight-(u.bottom||0)-Qe;T==="flex"&&P==="column-reverse"?(g.top=H,g.bottom=M):(g.top=M,g.bottom=H),y.value=W},V=k=>{var F;if(!c)return;const C=(F=k.target.documentElement)!=null?F:k.target;O(C),b.value=!0,R(k),l(k)};return _(e,"scroll",n?d.useThrottleFn(V,n,!0,!1):V,s),d.tryOnMounted(()=>{try{const k=d.toValue(e);if(!k)return;O(k)}catch(k){f(k)}}),_(e,"scrollend",E,s),{x:p,y:m,isScrolling:b,arrivedState:g,directions:w,measure(){const k=d.toValue(e);c&&k&&O(k)}}}function we(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function eo(e,t,n={}){var o;const{direction:r="bottom",interval:l=100,canLoadMore:u=()=>!0}=n,s=a.reactive(Ze(e,{...n,offset:{[r]:(o=n.distance)!=null?o:0,...n.offset}})),i=a.ref(),c=a.computed(()=>!!i.value),f=a.computed(()=>we(d.toValue(e))),v=Xe(f);function y(){if(s.measure(),!f.value||!v.value||!u(f.value))return;const{scrollHeight:p,clientHeight:m,scrollWidth:S,clientWidth:b}=f.value,g=r==="bottom"||r==="top"?p<=m:S<=b;(s.arrivedState[r]||g)&&(i.value||(i.value=Promise.all([t(s),new Promise(w=>setTimeout(w,l))]).finally(()=>{i.value=null,a.nextTick(()=>y())})))}return a.watch(()=>[s.arrivedState[r],v.value],y,{immediate:!0}),{isLoading:c,reset(){a.nextTick(()=>y())}}}const to=["mousedown","mouseup","keydown","keyup"];function no(e,t={}){const{events:n=to,document:o=$,initial:r=null}=t,l=a.ref(r);return o&&n.forEach(u=>{_(o,u,s=>{typeof s.getModifierState=="function"&&(l.value=s.getModifierState(e))})}),l}function oo(e,t,n={}){const{window:o=I}=n;return ye(e,t,o?.localStorage,n)}const De={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function lo(e={}){const{reactive:t=!1,target:n=I,aliasMap:o=De,passive:r=!0,onEventFired:l=d.noop}=e,u=a.reactive(new Set),s={toJSON(){return{}},current:u},i=t?a.reactive(s):s,c=new Set,f=new Set;function v(S,b){S in i&&(t?i[S]=b:i[S].value=b)}function y(){u.clear();for(const S of f)v(S,!1)}function p(S,b){var g,w;const E=(g=S.key)==null?void 0:g.toLowerCase(),O=[(w=S.code)==null?void 0:w.toLowerCase(),E].filter(Boolean);E&&(b?u.add(E):u.delete(E));for(const V of O)f.add(V),v(V,b);E==="meta"&&!b?(c.forEach(V=>{u.delete(V),v(V,!1)}),c.clear()):typeof S.getModifierState=="function"&&S.getModifierState("Meta")&&b&&[...u,...O].forEach(V=>c.add(V))}_(n,"keydown",S=>(p(S,!0),l(S)),{passive:r}),_(n,"keyup",S=>(p(S,!1),l(S)),{passive:r}),_("blur",y,{passive:!0}),_("focus",y,{passive:!0});const m=new Proxy(i,{get(S,b,g){if(typeof b!="string")return Reflect.get(S,b,g);if(b=b.toLowerCase(),b in o&&(b=o[b]),!(b in i))if(/[+_-]/.test(b)){const E=b.split(/[+_-]/g).map(R=>R.trim());i[b]=a.computed(()=>E.every(R=>d.toValue(m[R])))}else i[b]=a.ref(!1);const w=Reflect.get(S,b,g);return t?d.toValue(w):w}});return m}function _e(e,t){d.toValue(e)&&t(d.toValue(e))}function ro(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function Re(e){return Array.from(e).map(({label:t,kind:n,language:o,mode:r,activeCues:l,cues:u,inBandMetadataTrackDispatchType:s},i)=>({id:i,label:t,kind:n,language:o,mode:r,activeCues:l,cues:u,inBandMetadataTrackDispatchType:s}))}const ao={src:"",tracks:[]};function uo(e,t={}){e=d.toRef(e),t={...ao,...t};const{document:n=$}=t,o=a.ref(0),r=a.ref(0),l=a.ref(!1),u=a.ref(1),s=a.ref(!1),i=a.ref(!1),c=a.ref(!1),f=a.ref(1),v=a.ref(!1),y=a.ref([]),p=a.ref([]),m=a.ref(-1),S=a.ref(!1),b=a.ref(!1),g=n&&"pictureInPictureEnabled"in n,w=d.createEventHook(),E=T=>{_e(e,P=>{if(T){const A=typeof T=="number"?T:T.id;P.textTracks[A].mode="disabled"}else for(let A=0;A<P.textTracks.length;++A)P.textTracks[A].mode="disabled";m.value=-1})},R=(T,P=!0)=>{_e(e,A=>{const L=typeof T=="number"?T:T.id;P&&E(),A.textTracks[L].mode="showing",m.value=L})},O=()=>new Promise((T,P)=>{_e(e,async A=>{g&&(S.value?n.exitPictureInPicture().then(T).catch(P):A.requestPictureInPicture().then(T).catch(P))})});a.watchEffect(()=>{if(!n)return;const T=d.toValue(e);if(!T)return;const P=d.toValue(t.src);let A=[];P&&(typeof P=="string"?A=[{src:P}]:Array.isArray(P)?A=P:d.isObject(P)&&(A=[P]),T.querySelectorAll("source").forEach(L=>{L.removeEventListener("error",w.trigger),L.remove()}),A.forEach(({src:L,type:B})=>{const W=n.createElement("source");W.setAttribute("src",L),W.setAttribute("type",B||""),W.addEventListener("error",w.trigger),T.appendChild(W)}),T.load())}),d.tryOnScopeDispose(()=>{const T=d.toValue(e);T&&T.querySelectorAll("source").forEach(P=>P.removeEventListener("error",w.trigger))}),a.watch([e,u],()=>{const T=d.toValue(e);T&&(T.volume=u.value)}),a.watch([e,b],()=>{const T=d.toValue(e);T&&(T.muted=b.value)}),a.watch([e,f],()=>{const T=d.toValue(e);T&&(T.playbackRate=f.value)}),a.watchEffect(()=>{if(!n)return;const T=d.toValue(t.tracks),P=d.toValue(e);!T||!T.length||!P||(P.querySelectorAll("track").forEach(A=>A.remove()),T.forEach(({default:A,kind:L,label:B,src:W,srcLang:M},H)=>{const j=n.createElement("track");j.default=A||!1,j.kind=L,j.label=B,j.src=W,j.srclang=M,j.default&&(m.value=H),P.appendChild(j)}))});const{ignoreUpdates:V}=d.watchIgnorable(o,T=>{const P=d.toValue(e);P&&(P.currentTime=T)}),{ignoreUpdates:k}=d.watchIgnorable(c,T=>{const P=d.toValue(e);P&&(T?P.play():P.pause())});_(e,"timeupdate",()=>V(()=>o.value=d.toValue(e).currentTime)),_(e,"durationchange",()=>r.value=d.toValue(e).duration),_(e,"progress",()=>y.value=ro(d.toValue(e).buffered)),_(e,"seeking",()=>l.value=!0),_(e,"seeked",()=>l.value=!1),_(e,["waiting","loadstart"],()=>{s.value=!0,k(()=>c.value=!1)}),_(e,"loadeddata",()=>s.value=!1),_(e,"playing",()=>{s.value=!1,i.value=!1,k(()=>c.value=!0)}),_(e,"ratechange",()=>f.value=d.toValue(e).playbackRate),_(e,"stalled",()=>v.value=!0),_(e,"ended",()=>i.value=!0),_(e,"pause",()=>k(()=>c.value=!1)),_(e,"play",()=>k(()=>c.value=!0)),_(e,"enterpictureinpicture",()=>S.value=!0),_(e,"leavepictureinpicture",()=>S.value=!1),_(e,"volumechange",()=>{const T=d.toValue(e);T&&(u.value=T.volume,b.value=T.muted)});const F=[],C=a.watch([e],()=>{const T=d.toValue(e);T&&(C(),F[0]=_(T.textTracks,"addtrack",()=>p.value=Re(T.textTracks)),F[1]=_(T.textTracks,"removetrack",()=>p.value=Re(T.textTracks)),F[2]=_(T.textTracks,"change",()=>p.value=Re(T.textTracks)))});return d.tryOnScopeDispose(()=>F.forEach(T=>T())),{currentTime:o,duration:r,waiting:s,seeking:l,ended:i,stalled:v,buffered:y,playing:c,rate:f,volume:u,muted:b,tracks:p,selectedTrack:m,enableTrack:R,disableTrack:E,supportsPictureInPicture:g,togglePictureInPicture:O,isPictureInPicture:S,onSourceError:w.on}}function so(){const e=a.shallowReactive({});return{get:t=>e[t],set:(t,n)=>a.set(e,t,n),has:t=>d.hasOwn(e,t),delete:t=>a.del(e,t),clear:()=>{Object.keys(e).forEach(t=>{a.del(e,t)})}}}function io(e,t){const o=t?.cache?a.shallowReactive(t.cache):a.isVue2?so():a.shallowReactive(new Map),r=(...f)=>t?.getKey?t.getKey(...f):JSON.stringify(f),l=(f,...v)=>(o.set(f,e(...v)),o.get(f)),u=(...f)=>l(r(...f),...f),s=(...f)=>{o.delete(r(...f))},i=()=>{o.clear()},c=(...f)=>{const v=r(...f);return o.has(v)?o.get(v):l(v,...f)};return c.load=u,c.delete=s,c.clear=i,c.generateKey=r,c.cache=o,c}function co(e={}){const t=a.ref(),n=x(()=>typeof performance<"u"&&"memory"in performance);if(n.value){const{interval:o=1e3}=e;d.useIntervalFn(()=>{t.value=performance.memory},o,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const fo={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function et(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:r={x:0,y:0},window:l=I,target:u=l,scroll:s=!0,eventFilter:i}=e;let c=null;const f=a.ref(r.x),v=a.ref(r.y),y=a.ref(null),p=typeof t=="function"?t:fo[t],m=O=>{const V=p(O);c=O,V&&([f.value,v.value]=V,y.value="mouse")},S=O=>{if(O.touches.length>0){const V=p(O.touches[0]);V&&([f.value,v.value]=V,y.value="touch")}},b=()=>{if(!c||!l)return;const O=p(c);c instanceof MouseEvent&&O&&(f.value=O[0]+l.scrollX,v.value=O[1]+l.scrollY)},g=()=>{f.value=r.x,v.value=r.y},w=i?O=>i(()=>m(O),{}):O=>m(O),E=i?O=>i(()=>S(O),{}):O=>S(O),R=i?()=>i(()=>b(),{}):()=>b();if(u){const O={passive:!0};_(u,["mousemove","dragover"],w,O),n&&t!=="movement"&&(_(u,["touchstart","touchmove"],E,O),o&&_(u,"touchend",g,O)),s&&t==="page"&&_(l,"scroll",R,{passive:!0})}return{x:f,y:v,sourceType:y}}function tt(e,t={}){const{handleOutside:n=!0,window:o=I}=t,r=t.type||"page",{x:l,y:u,sourceType:s}=et(t),i=a.ref(e??o?.document.body),c=a.ref(0),f=a.ref(0),v=a.ref(0),y=a.ref(0),p=a.ref(0),m=a.ref(0),S=a.ref(!0);let b=()=>{};return o&&(b=a.watch([i,l,u],()=>{const g=N(i);if(!g||!(g instanceof HTMLElement))return;const{left:w,top:E,width:R,height:O}=g.getBoundingClientRect();v.value=w+(r==="page"?o.pageXOffset:0),y.value=E+(r==="page"?o.pageYOffset:0),p.value=O,m.value=R;const V=l.value-v.value,k=u.value-y.value;S.value=R===0||O===0||V<0||k<0||V>R||k>O,(n||!S.value)&&(c.value=V,f.value=k)},{immediate:!0}),_(document,"mouseleave",()=>{S.value=!0})),{x:l,y:u,sourceType:s,elementX:c,elementY:f,elementPositionX:v,elementPositionY:y,elementHeight:p,elementWidth:m,isOutside:S,stop:b}}function vo(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:r=!1,window:l=I}=e,u=a.ref(r),s=a.ref(null);if(!l)return{pressed:u,sourceType:s};const i=v=>()=>{u.value=!0,s.value=v},c=()=>{u.value=!1,s.value=null},f=a.computed(()=>N(e.target)||l);return _(f,"mousedown",i("mouse"),{passive:!0,capture:o}),_(l,"mouseleave",c,{passive:!0,capture:o}),_(l,"mouseup",c,{passive:!0,capture:o}),n&&(_(f,"dragstart",i("mouse"),{passive:!0,capture:o}),_(l,"drop",c,{passive:!0,capture:o}),_(l,"dragend",c,{passive:!0,capture:o})),t&&(_(f,"touchstart",i("touch"),{passive:!0,capture:o}),_(l,"touchend",c,{passive:!0,capture:o}),_(l,"touchcancel",c,{passive:!0,capture:o})),{pressed:u,sourceType:s}}function po(e={}){const{window:t=I}=e,n=t?.navigator,o=x(()=>n&&"language"in n),r=a.ref(n?.language);return _(t,"languagechange",()=>{n&&(r.value=n.language)}),{isSupported:o,language:r}}function nt(e={}){const{window:t=I}=e,n=t?.navigator,o=x(()=>n&&"connection"in n),r=a.ref(!0),l=a.ref(!1),u=a.ref(void 0),s=a.ref(void 0),i=a.ref(void 0),c=a.ref(void 0),f=a.ref(void 0),v=a.ref(void 0),y=a.ref("unknown"),p=o.value&&n.connection;function m(){n&&(r.value=n.onLine,u.value=r.value?void 0:Date.now(),s.value=r.value?Date.now():void 0,p&&(i.value=p.downlink,c.value=p.downlinkMax,v.value=p.effectiveType,f.value=p.rtt,l.value=p.saveData,y.value=p.type))}return t&&(_(t,"offline",()=>{r.value=!1,u.value=Date.now()}),_(t,"online",()=>{r.value=!0,s.value=Date.now()})),p&&_(p,"change",m,!1),m(),{isSupported:o,isOnline:r,saveData:l,offlineAt:u,onlineAt:s,downlink:i,downlinkMax:c,effectiveType:v,rtt:f,type:y}}function ot(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=a.ref(new Date),r=()=>o.value=new Date,l=n==="requestAnimationFrame"?Z(r,{immediate:!0}):d.useIntervalFn(r,n,{immediate:!0});return t?{now:o,...l}:o}function yo(e){const t=a.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return a.watch(()=>d.toValue(e),o=>{n(),o&&(t.value=URL.createObjectURL(o))},{immediate:!0}),d.tryOnScopeDispose(n),a.readonly(t)}function lt(e,t,n){if(typeof e=="function"||a.isReadonly(e))return a.computed(()=>d.clamp(d.toValue(e),d.toValue(t),d.toValue(n)));const o=a.ref(e);return a.computed({get(){return o.value=d.clamp(o.value,d.toValue(t),d.toValue(n))},set(r){o.value=d.clamp(r,d.toValue(t),d.toValue(n))}})}function mo(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:o=1,onPageChange:r=d.noop,onPageSizeChange:l=d.noop,onPageCountChange:u=d.noop}=e,s=lt(n,1,Number.POSITIVE_INFINITY),i=a.computed(()=>Math.max(1,Math.ceil(d.toValue(t)/d.toValue(s)))),c=lt(o,1,i),f=a.computed(()=>c.value===1),v=a.computed(()=>c.value===i.value);a.isRef(o)&&d.syncRef(o,c,{direction:a.isReadonly(o)?"ltr":"both"}),a.isRef(n)&&d.syncRef(n,s,{direction:a.isReadonly(n)?"ltr":"both"});function y(){c.value--}function p(){c.value++}const m={currentPage:c,currentPageSize:s,pageCount:i,isFirstPage:f,isLastPage:v,prev:y,next:p};return a.watch(c,()=>{r(a.reactive(m))}),a.watch(s,()=>{l(a.reactive(m))}),a.watch(i,()=>{u(a.reactive(m))}),m}function go(e={}){const{isOnline:t}=nt(e);return t}function wo(e={}){const{window:t=I}=e,n=a.ref(!1),o=r=>{if(!t)return;r=r||t.event;const l=r.relatedTarget||r.toElement;n.value=!l};return t&&(_(t,"mouseout",o,{passive:!0}),_(t.document,"mouseleave",o,{passive:!0}),_(t.document,"mouseenter",o,{passive:!0})),n}function rt(e={}){const{window:t=I}=e,n=x(()=>t&&"screen"in t&&"orientation"in t.screen),o=n.value?t.screen.orientation:{},r=a.ref(o.type),l=a.ref(o.angle||0);return n.value&&_(t,"orientationchange",()=>{r.value=o.type,l.value=o.angle}),{isSupported:n,orientation:r,angle:l,lockOrientation:i=>n.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof o.unlock=="function"&&o.unlock()}}}function ho(e,t={}){const{deviceOrientationTiltAdjust:n=b=>b,deviceOrientationRollAdjust:o=b=>b,mouseTiltAdjust:r=b=>b,mouseRollAdjust:l=b=>b,window:u=I}=t,s=a.reactive(ze({window:u})),i=a.reactive(rt({window:u})),{elementX:c,elementY:f,elementWidth:v,elementHeight:y}=tt(e,{handleOutside:!1,window:u}),p=a.computed(()=>s.isSupported&&(s.alpha!=null&&s.alpha!==0||s.gamma!=null&&s.gamma!==0)?"deviceOrientation":"mouse"),m=a.computed(()=>{if(p.value==="deviceOrientation"){let b;switch(i.orientation){case"landscape-primary":b=s.gamma/90;break;case"landscape-secondary":b=-s.gamma/90;break;case"portrait-primary":b=-s.beta/90;break;case"portrait-secondary":b=s.beta/90;break;default:b=-s.beta/90}return o(b)}else{const b=-(f.value-y.value/2)/y.value;return l(b)}}),S=a.computed(()=>{if(p.value==="deviceOrientation"){let b;switch(i.orientation){case"landscape-primary":b=s.beta/90;break;case"landscape-secondary":b=-s.beta/90;break;case"portrait-primary":b=s.gamma/90;break;case"portrait-secondary":b=-s.gamma/90;break;default:b=s.gamma/90}return n(b)}else{const b=(c.value-v.value/2)/v.value;return r(b)}});return{roll:m,tilt:S,source:p}}function bo(e=Ue()){const t=a.shallowRef(),n=()=>{const o=N(e);o&&(t.value=o.parentElement)};return d.tryOnMounted(n),a.watch(()=>d.toValue(e),n),t}function So(e,t){const{window:n=I,immediate:o=!0,...r}=e,l=x(()=>n&&"PerformanceObserver"in n);let u;const s=()=>{u?.disconnect()},i=()=>{l.value&&(s(),u=new PerformanceObserver(t),u.observe(r))};return d.tryOnScopeDispose(s),o&&i(),{isSupported:l,start:i,stop:s}}const at={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Eo=Object.keys(at);function To(e={}){const{target:t=I}=e,n=a.ref(!1),o=a.ref(e.initialValue||{});Object.assign(o.value,at,o.value);const r=l=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(l.pointerType))&&(o.value=d.objectPick(l,Eo,!1))};if(t){const l={passive:!0};_(t,["pointerdown","pointermove","pointerup"],r,l),_(t,"pointerleave",()=>n.value=!1,l)}return{...d.toRefs(o),isInside:n}}function Oo(e,t={}){const{document:n=$}=t,o=x(()=>n&&"pointerLockElement"in n),r=a.ref(),l=a.ref();let u;o.value&&(_(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;u&&f===u&&(r.value=n.pointerLockElement,r.value||(u=l.value=null))}),_(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;if(u&&f===u){const v=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${v} pointer lock.`)}}));async function s(c){var f;if(!o.value)throw new Error("Pointer Lock API is not supported by your browser.");if(l.value=c instanceof Event?c.currentTarget:null,u=c instanceof Event?(f=N(e))!=null?f:l.value:N(c),!u)throw new Error("Target element undefined.");return u.requestPointerLock(),await d.until(r).toBe(u)}async function i(){return r.value?(n.exitPointerLock(),await d.until(r).toBeNull(),!0):!1}return{isSupported:o,element:r,triggerElement:l,lock:s,unlock:i}}function ko(e,t={}){const n=d.toRef(e),{threshold:o=50,onSwipe:r,onSwipeEnd:l,onSwipeStart:u,disableTextSelect:s=!1}=t,i=a.reactive({x:0,y:0}),c=(k,F)=>{i.x=k,i.y=F},f=a.reactive({x:0,y:0}),v=(k,F)=>{f.x=k,f.y=F},y=a.computed(()=>i.x-f.x),p=a.computed(()=>i.y-f.y),{max:m,abs:S}=Math,b=a.computed(()=>m(S(y.value),S(p.value))>=o),g=a.ref(!1),w=a.ref(!1),E=a.computed(()=>b.value?S(y.value)>S(p.value)?y.value>0?"left":"right":p.value>0?"up":"down":"none"),R=k=>{var F,C,T;const P=k.buttons===0,A=k.buttons===1;return(T=(C=(F=t.pointerTypes)==null?void 0:F.includes(k.pointerType))!=null?C:P||A)!=null?T:!0},O=[_(e,"pointerdown",k=>{if(!R(k))return;w.value=!0;const F=k.target;F?.setPointerCapture(k.pointerId);const{clientX:C,clientY:T}=k;c(C,T),v(C,T),u?.(k)}),_(e,"pointermove",k=>{if(!R(k)||!w.value)return;const{clientX:F,clientY:C}=k;v(F,C),!g.value&&b.value&&(g.value=!0),g.value&&r?.(k)}),_(e,"pointerup",k=>{R(k)&&(g.value&&l?.(k,E.value),w.value=!1,g.value=!1)})];d.tryOnMounted(()=>{var k,F,C,T,P,A,L,B;(F=(k=n.value)==null?void 0:k.style)==null||F.setProperty("touch-action","none"),s&&((T=(C=n.value)==null?void 0:C.style)==null||T.setProperty("-webkit-user-select","none"),(A=(P=n.value)==null?void 0:P.style)==null||A.setProperty("-ms-user-select","none"),(B=(L=n.value)==null?void 0:L.style)==null||B.setProperty("user-select","none"))});const V=()=>O.forEach(k=>k());return{isSwiping:a.readonly(g),direction:a.readonly(E),posStart:a.readonly(i),posEnd:a.readonly(f),distanceX:y,distanceY:p,stop:V}}function _o(e){const t=G("(prefers-color-scheme: light)",e),n=G("(prefers-color-scheme: dark)",e);return a.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Ro(e){const t=G("(prefers-contrast: more)",e),n=G("(prefers-contrast: less)",e),o=G("(prefers-contrast: custom)",e);return a.computed(()=>t.value?"more":n.value?"less":o.value?"custom":"no-preference")}function Fo(e={}){const{window:t=I}=e;if(!t)return a.ref(["en"]);const n=t.navigator,o=a.ref(n.languages);return _(t,"languagechange",()=>{o.value=n.languages}),o}function Po(e){const t=G("(prefers-reduced-motion: reduce)",e);return a.computed(()=>t.value?"reduce":"no-preference")}function Co(e,t){const n=a.shallowRef(t);return a.watch(d.toRef(e),(o,r)=>{n.value=r},{flush:"sync"}),a.readonly(n)}const ut="--vueuse-safe-area-top",st="--vueuse-safe-area-right",it="--vueuse-safe-area-bottom",ct="--vueuse-safe-area-left";function Ao(){const e=a.ref(""),t=a.ref(""),n=a.ref(""),o=a.ref("");if(d.isClient){const l=re(ut),u=re(st),s=re(it),i=re(ct);l.value="env(safe-area-inset-top, 0px)",u.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",i.value="env(safe-area-inset-left, 0px)",r(),_("resize",d.useDebounceFn(r))}function r(){e.value=he(ut),t.value=he(st),n.value=he(it),o.value=he(ct)}return{top:e,right:t,bottom:n,left:o,update:r}}function he(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Vo(e,t=d.noop,n={}){const{immediate:o=!0,manual:r=!1,type:l="text/javascript",async:u=!0,crossOrigin:s,referrerPolicy:i,noModule:c,defer:f,document:v=$,attrs:y={}}=n,p=a.ref(null);let m=null;const S=w=>new Promise((E,R)=>{const O=F=>(p.value=F,E(F),F);if(!v){E(!1);return}let V=!1,k=v.querySelector(`script[src="${d.toValue(e)}"]`);k?k.hasAttribute("data-loaded")&&O(k):(k=v.createElement("script"),k.type=l,k.async=u,k.src=d.toValue(e),f&&(k.defer=f),s&&(k.crossOrigin=s),c&&(k.noModule=c),i&&(k.referrerPolicy=i),Object.entries(y).forEach(([F,C])=>k?.setAttribute(F,C)),V=!0),k.addEventListener("error",F=>R(F)),k.addEventListener("abort",F=>R(F)),k.addEventListener("load",()=>{k.setAttribute("data-loaded","true"),t(k),O(k)}),V&&(k=v.head.appendChild(k)),w||O(k)}),b=(w=!0)=>(m||(m=S(w)),m),g=()=>{if(!v)return;m=null,p.value&&(p.value=null);const w=v.querySelector(`script[src="${d.toValue(e)}"]`);w&&v.head.removeChild(w)};return o&&!r&&d.tryOnMounted(b),r||d.tryOnUnmounted(g),{scriptTag:p,load:b,unload:g}}function ft(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:ft(n)}}function Io(e){const t=e||window.event,n=t.target;return ft(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Fe=new WeakMap;function Mo(e,t=!1){const n=a.ref(t);let o=null,r="";a.watch(d.toRef(e),s=>{const i=we(d.toValue(s));if(i){const c=i;if(Fe.get(c)||Fe.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const l=()=>{const s=we(d.toValue(e));!s||n.value||(d.isIOS&&(o=_(s,"touchmove",i=>{Io(i)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},u=()=>{const s=we(d.toValue(e));!s||!n.value||(d.isIOS&&o?.(),s.style.overflow=r,Fe.delete(s),n.value=!1)};return d.tryOnScopeDispose(u),a.computed({get(){return n.value},set(s){s?l():u()}})}function Lo(e,t,n={}){const{window:o=I}=n;return ye(e,t,o?.sessionStorage,n)}function No(e={},t={}){const{navigator:n=U}=t,o=n,r=x(()=>o&&"canShare"in o);return{isSupported:r,share:async(u={})=>{if(r.value){const s={...d.toValue(e),...d.toValue(u)};let i=!0;if(s.files&&o.canShare&&(i=o.canShare({files:s.files})),i)return o.share(s)}}}}const xo=(e,t)=>e.sort(t),be=(e,t)=>e-t;function Wo(...e){var t,n,o,r;const[l]=e;let u=be,s={};e.length===2?typeof e[1]=="object"?(s=e[1],u=(t=s.compareFn)!=null?t:be):u=(n=e[1])!=null?n:be:e.length>2&&(u=(o=e[1])!=null?o:be,s=(r=e[2])!=null?r:{});const{dirty:i=!1,sortFn:c=xo}=s;return i?(a.watchEffect(()=>{const f=c(d.toValue(l),u);a.isRef(l)?l.value=f:l.splice(0,l.length,...f)}),l):a.computed(()=>c([...d.toValue(l)],u))}function Ho(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:o=1,window:r=I}=e,l=d.toRef(e.lang||"en-US"),u=a.ref(!1),s=a.ref(!1),i=a.ref(""),c=a.shallowRef(void 0),f=(b=!u.value)=>{u.value=b},v=()=>{u.value=!0},y=()=>{u.value=!1},p=r&&(r.SpeechRecognition||r.webkitSpeechRecognition),m=x(()=>p);let S;return m.value&&(S=new p,S.continuous=n,S.interimResults=t,S.lang=d.toValue(l),S.maxAlternatives=o,S.onstart=()=>{s.value=!1},a.watch(l,b=>{S&&!u.value&&(S.lang=b)}),S.onresult=b=>{const g=b.results[b.resultIndex],{transcript:w}=g[0];s.value=g.isFinal,i.value=w,c.value=void 0},S.onerror=b=>{c.value=b},S.onend=()=>{u.value=!1,S.lang=d.toValue(l)},a.watch(u,()=>{u.value?S.start():S.stop()})),d.tryOnScopeDispose(()=>{u.value=!1}),{isSupported:m,isListening:u,isFinal:s,recognition:S,result:i,error:c,toggle:f,start:v,stop:y}}function $o(e,t={}){const{pitch:n=1,rate:o=1,volume:r=1,window:l=I}=t,u=l&&l.speechSynthesis,s=x(()=>u),i=a.ref(!1),c=a.ref("init"),f=d.toRef(e||""),v=d.toRef(t.lang||"en-US"),y=a.shallowRef(void 0),p=(w=!i.value)=>{i.value=w},m=w=>{w.lang=d.toValue(v),w.voice=d.toValue(t.voice)||null,w.pitch=d.toValue(n),w.rate=d.toValue(o),w.volume=r,w.onstart=()=>{i.value=!0,c.value="play"},w.onpause=()=>{i.value=!1,c.value="pause"},w.onresume=()=>{i.value=!0,c.value="play"},w.onend=()=>{i.value=!1,c.value="end"},w.onerror=E=>{y.value=E}},S=a.computed(()=>{i.value=!1,c.value="init";const w=new SpeechSynthesisUtterance(f.value);return m(w),w}),b=()=>{u.cancel(),S&&u.speak(S.value)},g=()=>{u.cancel(),i.value=!1};return s.value&&(m(S.value),a.watch(v,w=>{S.value&&!i.value&&(S.value.lang=w)}),t.voice&&a.watch(t.voice,()=>{u.cancel()}),a.watch(i,()=>{i.value?u.resume():u.pause()})),d.tryOnScopeDispose(()=>{i.value=!1}),{isSupported:s,isPlaying:i,status:c,utterance:S,error:y,stop:g,toggle:p,speak:b}}function Uo(e,t){const n=a.ref(e),o=a.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),r=a.ref(o.value.indexOf(t??o.value[0])),l=a.computed(()=>f(r.value)),u=a.computed(()=>r.value===0),s=a.computed(()=>r.value===o.value.length-1),i=a.computed(()=>o.value[r.value+1]),c=a.computed(()=>o.value[r.value-1]);function f(O){return Array.isArray(n.value)?n.value[O]:n.value[o.value[O]]}function v(O){if(o.value.includes(O))return f(o.value.indexOf(O))}function y(O){o.value.includes(O)&&(r.value=o.value.indexOf(O))}function p(){s.value||r.value++}function m(){u.value||r.value--}function S(O){R(O)&&y(O)}function b(O){return o.value.indexOf(O)===r.value+1}function g(O){return o.value.indexOf(O)===r.value-1}function w(O){return o.value.indexOf(O)===r.value}function E(O){return r.value<o.value.indexOf(O)}function R(O){return r.value>o.value.indexOf(O)}return{steps:n,stepNames:o,index:r,current:l,next:i,previous:c,isFirst:u,isLast:s,at:f,get:v,goTo:y,goToNext:p,goToPrevious:m,goBackTo:S,isNext:b,isPrevious:g,isCurrent:w,isBefore:E,isAfter:R}}function Bo(e,t,n,o={}){var r;const{flush:l="pre",deep:u=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:v=I,eventFilter:y,onError:p=E=>{console.error(E)}}=o,m=d.toValue(t),S=He(m),b=(f?a.shallowRef:a.ref)(t),g=(r=o.serializer)!=null?r:Ee[S];if(!n)try{n=pe("getDefaultStorageAsync",()=>{var E;return(E=I)==null?void 0:E.localStorage})()}catch(E){p(E)}async function w(E){if(!(!n||E&&E.key!==e))try{const R=E?E.newValue:await n.getItem(e);if(R==null)b.value=m,i&&m!==null&&await n.setItem(e,await g.write(m));else if(c){const O=await g.read(R);typeof c=="function"?b.value=c(O,m):S==="object"&&!Array.isArray(O)?b.value={...m,...O}:b.value=O}else b.value=await g.read(R)}catch(R){p(R)}}return w(),v&&s&&_(v,"storage",E=>Promise.resolve().then(()=>w(E))),n&&d.watchWithFilter(b,async()=>{try{b.value==null?await n.removeItem(e):await n.setItem(e,await g.write(b.value))}catch(E){p(E)}},{flush:l,deep:u,eventFilter:y}),b}let jo=0;function zo(e,t={}){const n=a.ref(!1),{document:o=$,immediate:r=!0,manual:l=!1,id:u=`vueuse_styletag_${++jo}`}=t,s=a.ref(e);let i=()=>{};const c=()=>{if(!o)return;const v=o.getElementById(u)||o.createElement("style");v.isConnected||(v.id=u,t.media&&(v.media=t.media),o.head.appendChild(v)),!n.value&&(i=a.watch(s,y=>{v.textContent=y},{immediate:!0}),n.value=!0)},f=()=>{!o||!n.value||(i(),o.head.removeChild(o.getElementById(u)),n.value=!1)};return r&&!l&&d.tryOnMounted(c),l||d.tryOnScopeDispose(f),{id:u,css:s,unload:f,load:c,isLoaded:a.readonly(n)}}function qo(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:r,onSwipeStart:l,passive:u=!0,window:s=I}=t,i=a.reactive({x:0,y:0}),c=a.reactive({x:0,y:0}),f=a.computed(()=>i.x-c.x),v=a.computed(()=>i.y-c.y),{max:y,abs:p}=Math,m=a.computed(()=>y(p(f.value),p(v.value))>=n),S=a.ref(!1),b=a.computed(()=>m.value?p(f.value)>p(v.value)?f.value>0?"left":"right":v.value>0?"up":"down":"none"),g=C=>[C.touches[0].clientX,C.touches[0].clientY],w=(C,T)=>{i.x=C,i.y=T},E=(C,T)=>{c.x=C,c.y=T};let R;const O=Go(s?.document);u?R=O?{passive:!0}:{capture:!1}:R=O?{passive:!1,capture:!0}:{capture:!0};const V=C=>{S.value&&r?.(C,b.value),S.value=!1},k=[_(e,"touchstart",C=>{if(C.touches.length!==1)return;R.capture&&!R.passive&&C.preventDefault();const[T,P]=g(C);w(T,P),E(T,P),l?.(C)},R),_(e,"touchmove",C=>{if(C.touches.length!==1)return;const[T,P]=g(C);E(T,P),!S.value&&m.value&&(S.value=!0),S.value&&o?.(C)},R),_(e,["touchend","touchcancel"],V,R)];return{isPassiveEventSupported:O,isSwiping:S,direction:b,coordsStart:i,coordsEnd:c,lengthX:f,lengthY:v,stop:()=>k.forEach(C=>C())}}function Go(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",d.noop,n),e.removeEventListener("x",d.noop),t}function Yo(){const e=a.ref([]);return e.value.set=t=>{t&&e.value.push(t)},a.onBeforeUpdate(()=>{e.value.length=0}),e}function Xo(e={}){const{document:t=$,selector:n="html",observe:o=!1,initialValue:r="ltr"}=e;function l(){var s,i;return(i=(s=t?.querySelector(n))==null?void 0:s.getAttribute("dir"))!=null?i:r}const u=a.ref(l());return d.tryOnMounted(()=>u.value=l()),o&&t&&te(t.querySelector(n),()=>u.value=l(),{attributes:!0}),a.computed({get(){return u.value},set(s){var i,c;u.value=s,t&&(u.value?(i=t.querySelector(n))==null||i.setAttribute("dir",u.value):(c=t.querySelector(n))==null||c.removeAttribute("dir"))}})}function Ko(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(o,r)=>e.getRangeAt(r))}function Jo(e={}){const{window:t=I}=e,n=a.ref(null),o=a.computed(()=>{var s,i;return(i=(s=n.value)==null?void 0:s.toString())!=null?i:""}),r=a.computed(()=>n.value?Ko(n.value):[]),l=a.computed(()=>r.value.map(s=>s.getBoundingClientRect()));function u(){n.value=null,t&&(n.value=t.getSelection())}return t&&_(t.document,"selectionchange",u),{text:o,rects:l,ranges:r,selection:n}}function Qo(e){var t;const n=a.ref(e?.element),o=a.ref(e?.input),r=(t=e?.styleProp)!=null?t:"height",l=a.ref(1),u=a.ref(0);function s(){var i;if(!n.value)return;let c="";n.value.style[r]="1px",l.value=(i=n.value)==null?void 0:i.scrollHeight;const f=d.toValue(e?.styleTarget);f?f.style[r]=`${l.value}px`:c=`${l.value}px`,n.value.style[r]=c}return a.watch([o,n],()=>a.nextTick(s),{immediate:!0}),a.watch(l,()=>{var i;return(i=e?.onResize)==null?void 0:i.call(e)}),me(n,([{contentRect:i}])=>{u.value!==i.width&&(u.value=i.width,s())}),e?.watch&&a.watch(e.watch,s,{immediate:!0,deep:!0}),{textarea:n,input:o,triggerResize:s}}function Zo(e,t={}){const{throttle:n=200,trailing:o=!0}=t,r=d.throttleFilter(n,o);return{...ke(e,{...t,eventFilter:r})}}const Do=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],el={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function tl(e){return e.toISOString().slice(0,10)}function nl(e,t={}){const{controls:n=!1,updateInterval:o=3e4}=t,{now:r,...l}=ot({interval:o,controls:!0}),u=a.computed(()=>dt(new Date(d.toValue(e)),t,d.toValue(r)));return n?{timeAgo:u,...l}:u}function dt(e,t={},n=Date.now()){var o;const{max:r,messages:l=el,fullDateFormatter:u=tl,units:s=Do,showSecond:i=!1,rounding:c="round"}=t,f=typeof c=="number"?b=>+b.toFixed(c):Math[c],v=+n-+e,y=Math.abs(v);function p(b,g){return f(Math.abs(b)/g.value)}function m(b,g){const w=p(b,g),E=b>0,R=S(g.name,w,E);return S(E?"past":"future",R,E)}function S(b,g,w){const E=l[b];return typeof E=="function"?E(g,w):E.replace("{0}",g.toString())}if(y<6e4&&!i)return l.justNow;if(typeof r=="number"&&y>r)return u(new Date(e));if(typeof r=="string"){const b=(o=s.find(g=>g.name===r))==null?void 0:o.max;if(b&&y>b)return u(new Date(e))}for(const[b,g]of s.entries()){if(p(v,g)<=0&&s[b-1])return m(v,s[b-1]);if(y<g.max)return m(v,g)}return l.invalid}function ol(e,t,n){const{start:o}=d.useTimeoutFn(l,t,{immediate:!1}),r=a.ref(!1);async function l(){r.value&&(await e(),o())}function u(){r.value||(r.value=!0,l())}function s(){r.value=!1}return n?.immediate&&u(),d.tryOnScopeDispose(s),{isActive:r,pause:s,resume:u}}function ll(e={}){const{controls:t=!1,offset:n=0,immediate:o=!0,interval:r="requestAnimationFrame",callback:l}=e,u=a.ref(d.timestamp()+n),s=()=>u.value=d.timestamp()+n,i=l?()=>{s(),l(u.value)}:s,c=r==="requestAnimationFrame"?Z(i,{immediate:o}):d.useIntervalFn(i,r,{immediate:o});return t?{timestamp:u,...c}:u}function rl(e=null,t={}){var n,o,r;const{document:l=$,restoreOnUnmount:u=v=>v}=t,s=(n=l?.title)!=null?n:"",i=d.toRef((o=e??l?.title)!=null?o:null),c=e&&typeof e=="function";function f(v){if(!("titleTemplate"in t))return v;const y=t.titleTemplate||"%s";return typeof y=="function"?y(v):d.toValue(y).replace(/%s/g,v)}return a.watch(i,(v,y)=>{v!==y&&l&&(l.title=f(typeof v=="string"?v:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&l&&!c&&te((r=l.head)==null?void 0:r.querySelector("title"),()=>{l&&l.title!==i.value&&(i.value=f(l.title))},{childList:!0}),d.tryOnBeforeUnmount(()=>{if(u){const v=u(s,i.value||"");v!=null&&l&&(l.title=v)}}),i}const al={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]},ul=Object.assign({},{linear:d.identity},al);function sl([e,t,n,o]){const r=(f,v)=>1-3*v+3*f,l=(f,v)=>3*v-6*f,u=f=>3*f,s=(f,v,y)=>((r(v,y)*f+l(v,y))*f+u(v))*f,i=(f,v,y)=>3*r(v,y)*f*f+2*l(v,y)*f+u(v),c=f=>{let v=f;for(let y=0;y<4;++y){const p=i(v,e,n);if(p===0)return v;const m=s(v,e,n)-f;v-=m/p}return v};return f=>e===t&&n===o?f:s(c(f),t,o)}function vt(e,t,n){return e+n*(t-e)}function Pe(e){return(typeof e=="number"?[e]:e)||[]}function pt(e,t,n,o={}){var r,l;const u=d.toValue(t),s=d.toValue(n),i=Pe(u),c=Pe(s),f=(r=d.toValue(o.duration))!=null?r:1e3,v=Date.now(),y=Date.now()+f,p=typeof o.transition=="function"?o.transition:(l=d.toValue(o.transition))!=null?l:d.identity,m=typeof p=="function"?p:sl(p);return new Promise(S=>{e.value=u;const b=()=>{var g;if((g=o.abort)!=null&&g.call(o)){S();return}const w=Date.now(),E=m((w-v)/f),R=Pe(e.value).map((O,V)=>vt(i[V],c[V],E));Array.isArray(e.value)?e.value=R.map((O,V)=>{var k,F;return vt((k=i[V])!=null?k:0,(F=c[V])!=null?F:0,E)}):typeof e.value=="number"&&(e.value=R[0]),w<y?requestAnimationFrame(b):(e.value=s,S())};b()})}function il(e,t={}){let n=0;const o=()=>{const l=d.toValue(e);return typeof l=="number"?l:l.map(d.toValue)},r=a.ref(o());return a.watch(o,async l=>{var u,s;if(d.toValue(t.disabled))return;const i=++n;if(t.delay&&await d.promiseTimeout(d.toValue(t.delay)),i!==n)return;const c=Array.isArray(l)?l.map(d.toValue):d.toValue(l);(u=t.onStarted)==null||u.call(t),await pt(r,r.value,c,{...t,abort:()=>{var f;return i!==n||((f=t.abort)==null?void 0:f.call(t))}}),(s=t.onFinished)==null||s.call(t)},{deep:!0}),a.watch(()=>d.toValue(t.disabled),l=>{l&&(n++,r.value=o())}),d.tryOnScopeDispose(()=>{n++}),a.computed(()=>d.toValue(t.disabled)?o():r.value)}function cl(e="history",t={}){const{initialValue:n={},removeNullishValues:o=!0,removeFalsyValues:r=!1,write:l=!0,window:u=I}=t;if(!u)return a.reactive(n);const s=a.reactive({});function i(){if(e==="history")return u.location.search||"";if(e==="hash"){const g=u.location.hash||"",w=g.indexOf("?");return w>0?g.slice(w):""}else return(u.location.hash||"").replace(/^#/,"")}function c(g){const w=g.toString();if(e==="history")return`${w?`?${w}`:""}${u.location.hash||""}`;if(e==="hash-params")return`${u.location.search||""}${w?`#${w}`:""}`;const E=u.location.hash||"#",R=E.indexOf("?");return R>0?`${E.slice(0,R)}${w?`?${w}`:""}`:`${E}${w?`?${w}`:""}`}function f(){return new URLSearchParams(i())}function v(g){const w=new Set(Object.keys(s));for(const E of g.keys()){const R=g.getAll(E);s[E]=R.length>1?R:g.get(E)||"",w.delete(E)}Array.from(w).forEach(E=>delete s[E])}const{pause:y,resume:p}=d.pausableWatch(s,()=>{const g=new URLSearchParams("");Object.keys(s).forEach(w=>{const E=s[w];Array.isArray(E)?E.forEach(R=>g.append(w,R)):o&&E==null||r&&!E?g.delete(w):g.set(w,E)}),m(g)},{deep:!0});function m(g,w){y(),w&&v(g),u.history.replaceState(u.history.state,u.document.title,u.location.pathname+c(g)),p()}function S(){l&&m(f(),!0)}_(u,"popstate",S,!1),e!=="history"&&_(u,"hashchange",S,!1);const b=f();return b.keys().next().value?v(b):Object.assign(s,n),s}function fl(e={}){var t,n;const o=a.ref((t=e.enabled)!=null?t:!1),r=a.ref((n=e.autoSwitch)!=null?n:!0),l=a.ref(e.constraints),{navigator:u=U}=e,s=x(()=>{var S;return(S=u?.mediaDevices)==null?void 0:S.getUserMedia}),i=a.shallowRef();function c(S){switch(S){case"video":{if(l.value)return l.value.video||!1;break}case"audio":{if(l.value)return l.value.audio||!1;break}}}async function f(){if(!(!s.value||i.value))return i.value=await u.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),i.value}function v(){var S;(S=i.value)==null||S.getTracks().forEach(b=>b.stop()),i.value=void 0}function y(){v(),o.value=!1}async function p(){return await f(),i.value&&(o.value=!0),i.value}async function m(){return v(),await p()}return a.watch(o,S=>{S?f():v()},{immediate:!0}),a.watch(l,()=>{r.value&&i.value&&m()},{immediate:!0}),d.tryOnScopeDispose(()=>{y()}),{isSupported:s,stream:i,start:p,stop:y,restart:m,constraints:l,enabled:o,autoSwitch:r}}function yt(e,t,n,o={}){var r,l,u,s,i;const{clone:c=!1,passive:f=!1,eventName:v,deep:y=!1,defaultValue:p,shouldEmit:m}=o,S=a.getCurrentInstance(),b=n||S?.emit||((r=S?.$emit)==null?void 0:r.bind(S))||((u=(l=S?.proxy)==null?void 0:l.$emit)==null?void 0:u.bind(S?.proxy));let g=v;if(!t)if(a.isVue2){const O=(i=(s=S?.proxy)==null?void 0:s.$options)==null?void 0:i.model;t=O?.value||"value",v||(g=O?.event||"input")}else t="modelValue";g=g||`update:${t.toString()}`;const w=O=>c?typeof c=="function"?c(O):le(O):O,E=()=>d.isDef(e[t])?w(e[t]):p,R=O=>{m?m(O)&&b(g,O):b(g,O)};if(f){const O=E(),V=a.ref(O);let k=!1;return a.watch(()=>e[t],F=>{k||(k=!0,V.value=w(F),a.nextTick(()=>k=!1))}),a.watch(V,F=>{!k&&(F!==e[t]||y)&&R(F)},{deep:y}),V}else return a.computed({get(){return E()},set(O){R(O)}})}function dl(e,t,n={}){const o={};for(const r in e)o[r]=yt(e,r,t,n);return o}function vl(e){const{pattern:t=[],interval:n=0,navigator:o=U}=e||{},r=x(()=>typeof o<"u"&&"vibrate"in o),l=d.toRef(t);let u;const s=(c=l.value)=>{r.value&&o.vibrate(c)},i=()=>{r.value&&o.vibrate(0),u?.pause()};return n>0&&(u=d.useIntervalFn(s,n,{immediate:!1,immediateCallback:!1})),{isSupported:r,pattern:t,intervalControls:u,vibrate:s,stop:i}}function pl(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:r,calculateRange:l,currentList:u,containerRef:s}="itemHeight"in t?gl(t,e):ml(t,e);return{list:u,scrollTo:r,containerProps:{ref:s,onScroll:()=>{l()},style:n},wrapperProps:o}}function mt(e){const t=a.ref(null),n=Ge(t),o=a.ref([]),r=a.shallowRef(e);return{state:a.ref({start:0,end:10}),source:r,currentList:o,size:n,containerRef:t}}function gt(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:r=0}=e.value;let l=0,u=0;for(let s=r;s<t.value.length;s++){const i=n(s);if(l+=i,u=s,l>o)break}return u-r}}function wt(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,r=0;for(let l=0;l<e.value.length;l++){const u=t(l);if(o+=u,o>=n){r=l;break}}return r+1}}function ht(e,t,n,o,{containerRef:r,state:l,currentList:u,source:s}){return()=>{const i=r.value;if(i){const c=n(e==="vertical"?i.scrollTop:i.scrollLeft),f=o(e==="vertical"?i.clientHeight:i.clientWidth),v=c-t,y=c+f+t;l.value={start:v<0?0:v,end:y>s.value.length?s.value.length:y},u.value=s.value.slice(l.value.start,l.value.end).map((p,m)=>({data:p,index:m+l.value.start}))}}}function bt(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,l,u)=>r+e(u),0)}function St(e,t,n,o){a.watch([e.width,e.height,t,n],()=>{o()})}function Et(e,t){return a.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,r)=>n+e(r),0))}const yl={horizontal:"scrollLeft",vertical:"scrollTop"};function Tt(e,t,n,o){return r=>{o.value&&(o.value[yl[e]]=n(r),t())}}function ml(e,t){const n=mt(t),{state:o,source:r,currentList:l,size:u,containerRef:s}=n,i={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,v=gt(o,r,c),y=wt(r,c),p=ht("horizontal",f,y,v,n),m=bt(c,r),S=a.computed(()=>m(o.value.start)),b=Et(c,r);St(u,t,s,p);const g=Tt("horizontal",p,m,s),w=a.computed(()=>({style:{height:"100%",width:`${b.value-S.value}px`,marginLeft:`${S.value}px`,display:"flex"}}));return{scrollTo:g,calculateRange:p,wrapperProps:w,containerStyle:i,currentList:l,containerRef:s}}function gl(e,t){const n=mt(t),{state:o,source:r,currentList:l,size:u,containerRef:s}=n,i={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,v=gt(o,r,c),y=wt(r,c),p=ht("vertical",f,y,v,n),m=bt(c,r),S=a.computed(()=>m(o.value.start)),b=Et(c,r);St(u,t,s,p);const g=Tt("vertical",p,m,s),w=a.computed(()=>({style:{width:"100%",height:`${b.value-S.value}px`,marginTop:`${S.value}px`}}));return{calculateRange:p,scrollTo:g,containerStyle:i,wrapperProps:w,currentList:l,containerRef:s}}function wl(e={}){const{navigator:t=U,document:n=$}=e,o=a.ref(!1),r=a.shallowRef(null),l=qe({document:n}),u=x(()=>t&&"wakeLock"in t),s=a.computed(()=>!!r.value&&l.value==="visible");u.value&&(_(r,"release",()=>{var v,y;o.value=(y=(v=r.value)==null?void 0:v.type)!=null?y:!1}),d.whenever(()=>l.value==="visible"&&n?.visibilityState==="visible"&&o.value,v=>{o.value=!1,i(v)}));async function i(v){var y;await((y=r.value)==null?void 0:y.release()),r.value=u.value?await t.wakeLock.request(v):null}async function c(v){l.value==="visible"?await i(v):o.value=v}async function f(){o.value=!1;const v=r.value;r.value=null,await v?.release()}return{sentinel:r,isSupported:u,isActive:s,request:c,forceRequest:i,release:f}}function hl(e={}){const{window:t=I,requestPermissions:n=!0}=e,o=e,r=x(()=>{if(!t||!("Notification"in t))return!1;try{new Notification("")}catch{return!1}return!0}),l=a.ref(r.value&&"permission"in Notification&&Notification.permission==="granted"),u=a.ref(null),s=async()=>{if(r.value)return!l.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(l.value=!0),l.value},{on:i,trigger:c}=d.createEventHook(),{on:f,trigger:v}=d.createEventHook(),{on:y,trigger:p}=d.createEventHook(),{on:m,trigger:S}=d.createEventHook(),b=async w=>{if(!r.value||!l.value)return;const E=Object.assign({},o,w);return u.value=new Notification(E.title||"",E),u.value.onclick=c,u.value.onshow=v,u.value.onerror=p,u.value.onclose=S,u.value},g=()=>{u.value&&u.value.close(),u.value=null};if(n&&d.tryOnMounted(s),d.tryOnScopeDispose(g),r.value&&t){const w=t.document;_(w,"visibilitychange",E=>{E.preventDefault(),w.visibilityState==="visible"&&g()})}return{isSupported:r,notification:u,ensurePermissions:s,permissionGranted:l,show:b,close:g,onClick:i,onShow:f,onError:y,onClose:m}}const Ot="ping";function Ce(e){return e===!0?{}:e}function bl(e,t={}){const{onConnected:n,onDisconnected:o,onError:r,onMessage:l,immediate:u=!0,autoClose:s=!0,protocols:i=[]}=t,c=a.ref(null),f=a.ref("CLOSED"),v=a.ref(),y=d.toRef(e);let p,m,S=!1,b=0,g=[],w;const E=()=>{if(g.length&&v.value&&f.value==="OPEN"){for(const C of g)v.value.send(C);g=[]}},R=()=>{clearTimeout(w),w=void 0},O=(C=1e3,T)=>{!d.isClient||!v.value||(S=!0,R(),p?.(),v.value.close(C,T),v.value=void 0)},V=(C,T=!0)=>!v.value||f.value!=="OPEN"?(T&&g.push(C),!1):(E(),v.value.send(C),!0),k=()=>{if(S||typeof y.value>"u")return;const C=new WebSocket(y.value,i);v.value=C,f.value="CONNECTING",C.onopen=()=>{f.value="OPEN",b=0,n?.(C),m?.(),E()},C.onclose=T=>{if(f.value="CLOSED",o?.(C,T),!S&&t.autoReconnect&&C===v.value){const{retries:P=-1,delay:A=1e3,onFailed:L}=Ce(t.autoReconnect);typeof P=="number"&&(P<0||b<P)?(b+=1,setTimeout(k,A)):typeof P=="function"&&P()?setTimeout(k,A):L?.()}},C.onerror=T=>{r?.(C,T)},C.onmessage=T=>{if(t.heartbeat){R();const{message:P=Ot,responseMessage:A=P}=Ce(t.heartbeat);if(T.data===A)return}c.value=T.data,l?.(C,T)}};if(t.heartbeat){const{message:C=Ot,interval:T=1e3,pongTimeout:P=1e3}=Ce(t.heartbeat),{pause:A,resume:L}=d.useIntervalFn(()=>{V(C,!1),w==null&&(w=setTimeout(()=>{O(),S=!1},P))},T,{immediate:!1});p=A,m=L}s&&(d.isClient&&_("beforeunload",()=>O()),d.tryOnScopeDispose(O));const F=()=>{!d.isClient&&!d.isWorker||(O(),S=!1,b=0,k())};return u&&F(),a.watch(y,F),{data:c,status:f,close:O,send:V,open:F,ws:v}}function Sl(e,t,n){const{window:o=I}=n??{},r=a.ref(null),l=a.shallowRef(),u=(...i)=>{l.value&&l.value.postMessage(...i)},s=function(){l.value&&l.value.terminate()};return o&&(typeof e=="string"?l.value=new Worker(e,t):typeof e=="function"?l.value=e():l.value=e,l.value.onmessage=i=>{r.value=i.data},d.tryOnScopeDispose(()=>{l.value&&l.value.terminate()})),{data:r,post:u,terminate:s,worker:l}}function El(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(o=>{postMessage(["SUCCESS",o])}).catch(o=>{postMessage(["ERROR",o])})}}function Tl(e,t){if(e.length===0&&t.length===0)return"";const n=e.map(l=>`'${l}'`).toString(),o=t.filter(l=>typeof l=="function").map(l=>{const u=l.toString();return u.trim().startsWith("function")?u:`const ${l.name} = ${u}`}).join(";"),r=`importScripts(${n});`;return`${n.trim()===""?"":r} ${o}`}function Ol(e,t,n){const o=`${Tl(t,n)}; onmessage=(${El})(${e})`,r=new Blob([o],{type:"text/javascript"});return URL.createObjectURL(r)}function kl(e,t={}){const{dependencies:n=[],localDependencies:o=[],timeout:r,window:l=I}=t,u=a.ref(),s=a.ref("PENDING"),i=a.ref({}),c=a.ref(),f=(m="PENDING")=>{u.value&&u.value._url&&l&&(u.value.terminate(),URL.revokeObjectURL(u.value._url),i.value={},u.value=void 0,l.clearTimeout(c.value),s.value=m)};f(),d.tryOnScopeDispose(f);const v=()=>{const m=Ol(e,n,o),S=new Worker(m);return S._url=m,S.onmessage=b=>{const{resolve:g=()=>{},reject:w=()=>{}}=i.value,[E,R]=b.data;switch(E){case"SUCCESS":g(R),f(E);break;default:w(R),f("ERROR");break}},S.onerror=b=>{const{reject:g=()=>{}}=i.value;b.preventDefault(),g(b),f("ERROR")},r&&(c.value=setTimeout(()=>f("TIMEOUT_EXPIRED"),r)),S},y=(...m)=>new Promise((S,b)=>{var g;i.value={resolve:S,reject:b},(g=u.value)==null||g.postMessage([[...m]]),s.value="RUNNING"});return{workerFn:(...m)=>s.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(u.value=v(),y(...m)),workerStatus:s,workerTerminate:f}}function _l(e={}){const{window:t=I}=e;if(!t)return a.ref(!1);const n=a.ref(t.document.hasFocus());return _(t,"blur",()=>{n.value=!1}),_(t,"focus",()=>{n.value=!0}),n}function Rl(e={}){const{window:t=I,behavior:n="auto"}=e;if(!t)return{x:a.ref(0),y:a.ref(0)};const o=a.ref(t.scrollX),r=a.ref(t.scrollY),l=a.computed({get(){return o.value},set(s){scrollTo({left:s,behavior:n})}}),u=a.computed({get(){return r.value},set(s){scrollTo({top:s,behavior:n})}});return _(t,"scroll",()=>{o.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:l,y:u}}function Fl(e={}){const{window:t=I,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:l=!0,type:u="inner"}=e,s=a.ref(n),i=a.ref(o),c=()=>{t&&(u==="outer"?(s.value=t.outerWidth,i.value=t.outerHeight):l?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(c(),d.tryOnMounted(c),_("resize",c,{passive:!0}),r){const f=G("(orientation: portrait)");a.watch(f,()=>c())}return{width:s,height:i}}h.DefaultMagicKeysAliasMap=De,h.StorageSerializers=Ee,h.TransitionPresets=ul,h.asyncComputed=Y,h.breakpointsAntDesign=Qt,h.breakpointsBootstrapV5=Xt,h.breakpointsMasterCss=en,h.breakpointsPrimeFlex=tn,h.breakpointsQuasar=Zt,h.breakpointsSematic=Dt,h.breakpointsTailwind=Yt,h.breakpointsVuetify=Jt,h.breakpointsVuetifyV2=Ne,h.breakpointsVuetifyV3=Kt,h.cloneFnJSON=le,h.computedAsync=Y,h.computedInject=Ae,h.createFetch=xn,h.createReusableTemplate=q,h.createTemplatePromise=J,h.createUnrefFn=K,h.customStorageEventName=Te,h.defaultDocument=$,h.defaultLocation=_t,h.defaultNavigator=U,h.defaultWindow=I,h.executeTransition=pt,h.formatTimeAgo=dt,h.getSSRHandler=pe,h.mapGamepadToXbox360Controller=Gn,h.onClickOutside=Rt,h.onKeyDown=Pt,h.onKeyPressed=Ct,h.onKeyStroke=ce,h.onKeyUp=At,h.onLongPress=Mt,h.onStartTyping=xt,h.setSSRHandler=fn,h.templateRef=Wt,h.unrefElement=N,h.useActiveElement=Me,h.useAnimate=Ht,h.useAsyncQueue=$t,h.useAsyncState=Le,h.useBase64=jt,h.useBattery=qt,h.useBluetooth=Gt,h.useBreakpoints=nn,h.useBroadcastChannel=on,h.useBrowserLocation=ln,h.useCached=rn,h.useClipboard=an,h.useClipboardItems=un,h.useCloned=sn,h.useColorMode=$e,h.useConfirmDialog=vn,h.useCssVar=re,h.useCurrentElement=Ue,h.useCycleList=pn,h.useDark=yn,h.useDebouncedRefHistory=hn,h.useDeviceMotion=bn,h.useDeviceOrientation=ze,h.useDevicePixelRatio=Sn,h.useDevicesList=En,h.useDisplayMedia=Tn,h.useDocumentVisibility=qe,h.useDraggable=On,h.useDropZone=kn,h.useElementBounding=_n,h.useElementByPoint=Rn,h.useElementHover=Fn,h.useElementSize=Ge,h.useElementVisibility=Xe,h.useEventBus=Pn,h.useEventListener=_,h.useEventSource=An,h.useEyeDropper=Vn,h.useFavicon=In,h.useFetch=Ke,h.useFileDialog=$n,h.useFileSystemAccess=Un,h.useFocus=Bn,h.useFocusWithin=jn,h.useFps=zn,h.useFullscreen=qn,h.useGamepad=Yn,h.useGeolocation=Xn,h.useIdle=Qn,h.useImage=Dn,h.useInfiniteScroll=eo,h.useIntersectionObserver=Ye,h.useKeyModifier=no,h.useLocalStorage=oo,h.useMagicKeys=lo,h.useManualRefHistory=je,h.useMediaControls=uo,h.useMediaQuery=G,h.useMemoize=io,h.useMemory=co,h.useMounted=Ie,h.useMouse=et,h.useMouseInElement=tt,h.useMousePressed=vo,h.useMutationObserver=te,h.useNavigatorLanguage=po,h.useNetwork=nt,h.useNow=ot,h.useObjectUrl=yo,h.useOffsetPagination=mo,h.useOnline=go,h.usePageLeave=wo,h.useParallax=ho,h.useParentElement=bo,h.usePerformanceObserver=So,h.usePermission=fe,h.usePointer=To,h.usePointerLock=Oo,h.usePointerSwipe=ko,h.usePreferredColorScheme=_o,h.usePreferredContrast=Ro,h.usePreferredDark=Oe,h.usePreferredLanguages=Fo,h.usePreferredReducedMotion=Po,h.usePrevious=Co,h.useRafFn=Z,h.useRefHistory=ke,h.useResizeObserver=me,h.useScreenOrientation=rt,h.useScreenSafeArea=Ao,h.useScriptTag=Vo,h.useScroll=Ze,h.useScrollLock=Mo,h.useSessionStorage=Lo,h.useShare=No,h.useSorted=Wo,h.useSpeechRecognition=Ho,h.useSpeechSynthesis=$o,h.useStepper=Uo,h.useStorage=ye,h.useStorageAsync=Bo,h.useStyleTag=zo,h.useSupported=x,h.useSwipe=qo,h.useTemplateRefsList=Yo,h.useTextDirection=Xo,h.useTextSelection=Jo,h.useTextareaAutosize=Qo,h.useThrottledRefHistory=Zo,h.useTimeAgo=nl,h.useTimeoutPoll=ol,h.useTimestamp=ll,h.useTitle=rl,h.useTransition=il,h.useUrlSearchParams=cl,h.useUserMedia=fl,h.useVModel=yt,h.useVModels=dl,h.useVibrate=vl,h.useVirtualList=pl,h.useWakeLock=wl,h.useWebNotification=hl,h.useWebSocket=bl,h.useWebWorker=Sl,h.useWebWorkerFn=kl,h.useWindowFocus=_l,h.useWindowScroll=Rl,h.useWindowSize=Fl,Object.keys(d).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:function(){return d[e]}})})})(this.VueUse=this.VueUse||{},VueUse,VueDemi);
|
1
|
+
var _VueDemiGlobal=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this,VueDemi=function(S,d,r){if(S.install)return S;if(!d)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),S;if(d.version.slice(0,4)==="2.7."){let q=function(X,J){var K,I={},B={config:d.config,use:d.use.bind(d),mixin:d.mixin.bind(d),component:d.component.bind(d),provide:function(H,Q){return I[H]=Q,this},directive:function(H,Q){return Q?(d.directive(H,Q),B):d.directive(H)},mount:function(H,Q){return K||(K=new d(Object.assign({propsData:J},X,{provide:Object.assign(I,X.provide)})),K.$mount(H,Q),K)},unmount:function(){K&&(K.$destroy(),K=void 0)}};return B};var Ae=q;for(var Y in d)S[Y]=d[Y];S.isVue2=!0,S.isVue3=!1,S.install=function(){},S.Vue=d,S.Vue2=d,S.version=d.version,S.warn=d.util.warn,S.hasInjectionContext=function(){return!!S.getCurrentInstance()},S.createApp=q}else if(d.version.slice(0,2)==="2.")if(r){for(var Y in r)S[Y]=r[Y];S.isVue2=!0,S.isVue3=!1,S.install=function(){},S.Vue=d,S.Vue2=d,S.version=d.version,S.hasInjectionContext=function(){return!!S.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(d.version.slice(0,2)==="3."){for(var Y in d)S[Y]=d[Y];S.isVue2=!1,S.isVue3=!0,S.install=function(){},S.Vue=d,S.Vue2=void 0,S.version=d.version,S.set=function(q,X,J){return Array.isArray(q)?(q.length=Math.max(q.length,X),q.splice(X,1,J),J):(q[X]=J,J)},S.del=function(q,X){if(Array.isArray(q)){q.splice(X,1);return}delete q[X]}}else console.error("[vue-demi] Vue version "+d.version+" is unsupported.");return S}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),_VueDemiGlobal.Vue||(typeof Vue<"u"?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(S,d,r){"use strict";function Y(e,t,n){let o;r.isRef(n)?o={evaluating:n}:o=n||{};const{lazy:a=!1,evaluating:l=void 0,shallow:s=!0,onError:u=d.noop}=o,i=r.ref(!a),f=s?r.shallowRef(t):r.ref(t);let c=0;return r.watchEffect(async v=>{if(!i.value)return;c++;const m=c;let p=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const y=await e(w=>{v(()=>{l&&(l.value=!1),p||w()})});m===c&&(f.value=y)}catch(y){u(y)}finally{l&&m===c&&(l.value=!1),p=!0}}),a?r.computed(()=>(i.value=!0,f.value)):f}function Ae(e,t,n,o){let a=r.inject(e);return n&&(a=r.inject(e,n)),o&&(a=r.inject(e,n,o)),typeof t=="function"?r.computed(l=>t(a,l)):r.computed({get:l=>t.get(a,l),set:t.set})}function q(e={}){if(!r.isVue3&&!r.version.startsWith("2.7.")){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createReusableTemplate only works in Vue 2.7 or above.");return}const{inheritAttrs:t=!0}=e,n=r.shallowRef(),o=r.defineComponent({setup(l,{slots:s}){return()=>{n.value=s.default}}}),a=r.defineComponent({inheritAttrs:t,setup(l,{attrs:s,slots:u}){return()=>{var i;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const f=(i=n.value)==null?void 0:i.call(n,{...X(s),$slots:u});return t&&f?.length===1?f[0]:f}}});return d.makeDestructurable({define:o,reuse:a},[o,a])}function X(e){const t={};for(const n in e)t[d.camelize(n)]=e[n];return t}function J(e={}){if(!r.isVue3){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] createTemplatePromise only works in Vue 3 or above.");return}let t=0;const n=r.ref([]);function o(...s){const u=r.shallowReactive({key:t++,args:s,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(u),u.promise=new Promise((i,f)=>{u.resolve=c=>(u.isResolving=!0,i(c)),u.reject=f}).finally(()=>{u.promise=void 0;const i=n.value.indexOf(u);i!==-1&&n.value.splice(i,1)}),u.promise}function a(...s){return e.singleton&&n.value.length>0?n.value[0].promise:o(...s)}const l=r.defineComponent((s,{slots:u})=>{const i=()=>n.value.map(f=>{var c;return r.h(r.Fragment,{key:f.key},(c=u.default)==null?void 0:c.call(u,f))});return e.transition?()=>r.h(r.TransitionGroup,e.transition,i):i});return l.start=a,l}function K(e){return function(...t){return e.apply(this,t.map(n=>d.toValue(n)))}}const I=d.isClient?window:void 0,B=d.isClient?window.document:void 0,H=d.isClient?window.navigator:void 0,Q=d.isClient?window.location:void 0;function N(e){var t;const n=d.toValue(e);return(t=n?.$el)!=null?t:n}function R(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=I):[t,n,o,a]=e,!t)return d.noop;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],s=()=>{l.forEach(c=>c()),l.length=0},u=(c,v,m,p)=>(c.addEventListener(v,m,p),()=>c.removeEventListener(v,m,p)),i=r.watch(()=>[N(t),d.toValue(a)],([c,v])=>{if(s(),!c)return;const m=d.isObject(v)?{...v}:v;l.push(...n.flatMap(p=>o.map(y=>u(c,p,y,m))))},{immediate:!0,flush:"post"}),f=()=>{i(),s()};return d.tryOnScopeDispose(f),f}let Ie=!1;function Rt(e,t,n={}){const{window:o=I,ignore:a=[],capture:l=!0,detectIframe:s=!1}=n;if(!o)return d.noop;d.isIOS&&!Ie&&(Ie=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",d.noop)),o.document.documentElement.addEventListener("click",d.noop));let u=!0;const i=p=>d.toValue(a).some(y=>{if(typeof y=="string")return Array.from(o.document.querySelectorAll(y)).some(w=>w===p.target||p.composedPath().includes(w));{const w=N(y);return w&&(p.target===w||p.composedPath().includes(w))}}),f=p=>{const y=N(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(u=!i(p)),!u){u=!0;return}t(p)}};let c=!1;const v=[R(o,"click",p=>{c||(c=!0,setTimeout(()=>{c=!1},0),f(p))},{passive:!0,capture:l}),R(o,"pointerdown",p=>{const y=N(e);u=!i(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),s&&R(o,"blur",p=>{setTimeout(()=>{var y;const w=N(e);((y=o.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!w?.contains(o.document.activeElement)&&t(p)},0)})].filter(Boolean);return()=>v.forEach(p=>p())}function Ft(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function fe(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=I,eventName:l="keydown",passive:s=!1,dedupe:u=!1}=o,i=Ft(t);return R(a,l,c=>{c.repeat&&d.toValue(u)||i(c)&&n(c)},s)}function Pt(e,t,n={}){return fe(e,t,{...n,eventName:"keydown"})}function Ct(e,t,n={}){return fe(e,t,{...n,eventName:"keypress"})}function Vt(e,t,n={}){return fe(e,t,{...n,eventName:"keyup"})}const At=500,It=10;function Mt(e,t,n){var o,a;const l=r.computed(()=>N(e));let s,u,i,f=!1;function c(){s&&(clearTimeout(s),s=void 0),u=void 0,i=void 0,f=!1}function v(g){var h,E,k;const[O,A,_]=[i,u,f];if(c(),!n?.onMouseUp||!A||!O||(h=n?.modifiers)!=null&&h.self&&g.target!==l.value)return;(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(k=n?.modifiers)!=null&&k.stop&&g.stopPropagation();const F=g.x-A.x,C=g.y-A.y,T=Math.sqrt(F*F+C*C);n.onMouseUp(g.timeStamp-O,T,_)}function m(g){var h,E,k,O;(h=n?.modifiers)!=null&&h.self&&g.target!==l.value||(c(),(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(k=n?.modifiers)!=null&&k.stop&&g.stopPropagation(),u={x:g.x,y:g.y},i=g.timeStamp,s=setTimeout(()=>{f=!0,t(g)},(O=n?.delay)!=null?O:At))}function p(g){var h,E,k,O;if((h=n?.modifiers)!=null&&h.self&&g.target!==l.value||!u||n?.distanceThreshold===!1)return;(E=n?.modifiers)!=null&&E.prevent&&g.preventDefault(),(k=n?.modifiers)!=null&&k.stop&&g.stopPropagation();const A=g.x-u.x,_=g.y-u.y;Math.sqrt(A*A+_*_)>=((O=n?.distanceThreshold)!=null?O:It)&&c()}const y={capture:(o=n?.modifiers)==null?void 0:o.capture,once:(a=n?.modifiers)==null?void 0:a.once},w=[R(l,"pointerdown",m,y),R(l,"pointermove",p,y),R(l,["pointerup","pointerleave"],v,y)];return()=>w.forEach(g=>g())}function Lt(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function Nt({keyCode:e,metaKey:t,ctrlKey:n,altKey:o}){return t||n||o?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function xt(e,t={}){const{document:n=B}=t;n&&R(n,"keydown",a=>{!Lt()&&Nt(a)&&e(a)},{passive:!0})}function Ut(e,t=null){const n=r.getCurrentInstance();let o=()=>{};const a=r.customRef((l,s)=>(o=s,{get(){var u,i;return l(),(i=(u=n?.proxy)==null?void 0:u.$refs[e])!=null?i:t},set(){}}));return d.tryOnMounted(o),r.onUpdated(o),a}function Me(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},r.isVue2?void 0:t),e}function x(e){const t=Me();return r.computed(()=>(t.value,!!e()))}function ne(e,t,n={}){const{window:o=I,...a}=n;let l;const s=x(()=>o&&"MutationObserver"in o),u=()=>{l&&(l.disconnect(),l=void 0)},i=r.computed(()=>{const m=d.toValue(e),p=(Array.isArray(m)?m:[m]).map(N).filter(d.notNullish);return new Set(p)}),f=r.watch(()=>i.value,m=>{u(),s.value&&m.size&&(l=new MutationObserver(t),m.forEach(p=>l.observe(p,a)))},{immediate:!0,flush:"post"}),c=()=>l?.takeRecords(),v=()=>{f(),u()};return d.tryOnScopeDispose(v),{isSupported:s,stop:v,takeRecords:c}}function Le(e={}){var t;const{window:n=I,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n?.document,s=()=>{var f;let c=l?.activeElement;if(o)for(;c?.shadowRoot;)c=(f=c?.shadowRoot)==null?void 0:f.activeElement;return c},u=r.ref(),i=()=>{u.value=s()};return n&&(R(n,"blur",f=>{f.relatedTarget===null&&i()},!0),R(n,"focus",i,!0)),a&&ne(l,f=>{f.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===u.value&&i()})},{childList:!0,subtree:!0}),i(),u}function D(e,t={}){const{immediate:n=!0,fpsLimit:o=void 0,window:a=I}=t,l=r.ref(!1),s=o?1e3/o:null;let u=0,i=null;function f(m){if(!l.value||!a)return;u||(u=m);const p=m-u;if(s&&p<s){i=a.requestAnimationFrame(f);return}u=m,e({delta:p,timestamp:m}),i=a.requestAnimationFrame(f)}function c(){!l.value&&a&&(l.value=!0,u=0,i=a.requestAnimationFrame(f))}function v(){l.value=!1,i!=null&&a&&(a.cancelAnimationFrame(i),i=null)}return n&&c(),d.tryOnScopeDispose(v),{isActive:r.readonly(l),pause:v,resume:c}}function Wt(e,t,n){let o,a;d.isObject(n)?(o=n,a=d.objectOmit(n,["window","immediate","commitStyles","persist","onReady","onError"])):(o={duration:n},a=n);const{window:l=I,immediate:s=!0,commitStyles:u,persist:i,playbackRate:f=1,onReady:c,onError:v=M=>{console.error(M)}}=o,m=x(()=>l&&HTMLElement&&"animate"in HTMLElement.prototype),p=r.shallowRef(void 0),y=r.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:f,pending:!1,playState:s?"idle":"paused",replaceState:"active"}),w=r.computed(()=>y.pending),b=r.computed(()=>y.playState),g=r.computed(()=>y.replaceState),h=r.computed({get(){return y.startTime},set(M){y.startTime=M,p.value&&(p.value.startTime=M)}}),E=r.computed({get(){return y.currentTime},set(M){y.currentTime=M,p.value&&(p.value.currentTime=M,$())}}),k=r.computed({get(){return y.timeline},set(M){y.timeline=M,p.value&&(p.value.timeline=M)}}),O=r.computed({get(){return y.playbackRate},set(M){y.playbackRate=M,p.value&&(p.value.playbackRate=M)}}),A=()=>{if(p.value)try{p.value.play(),$()}catch(M){U(),v(M)}else P()},_=()=>{var M;try{(M=p.value)==null||M.pause(),U()}catch(W){v(W)}},F=()=>{var M;p.value||P();try{(M=p.value)==null||M.reverse(),$()}catch(W){U(),v(W)}},C=()=>{var M;try{(M=p.value)==null||M.finish(),U()}catch(W){v(W)}},T=()=>{var M;try{(M=p.value)==null||M.cancel(),U()}catch(W){v(W)}};r.watch(()=>N(e),M=>{M&&P()}),r.watch(()=>t,M=>{p.value&&P(),!N(e)&&p.value&&(p.value.effect=new KeyframeEffect(N(e),d.toValue(M),a))},{deep:!0}),d.tryOnMounted(()=>P(!0),!1),d.tryOnScopeDispose(T);function P(M){const W=N(e);!m.value||!W||(p.value||(p.value=W.animate(d.toValue(t),a)),i&&p.value.persist(),f!==1&&(p.value.playbackRate=f),M&&!s?p.value.pause():$(),c?.(p.value))}R(p,["cancel","finish","remove"],U),R(p,"finish",()=>{var M;u&&((M=p.value)==null||M.commitStyles())});const{resume:V,pause:L}=D(()=>{p.value&&(y.pending=p.value.pending,y.playState=p.value.playState,y.replaceState=p.value.replaceState,y.startTime=p.value.startTime,y.currentTime=p.value.currentTime,y.timeline=p.value.timeline,y.playbackRate=p.value.playbackRate)},{immediate:!1});function $(){m.value&&V()}function U(){m.value&&l&&l.requestAnimationFrame(L)}return{isSupported:m,animate:p,play:A,pause:_,reverse:F,finish:C,cancel:T,pending:w,playState:b,replaceState:g,startTime:h,currentTime:E,timeline:k,playbackRate:O}}function Ht(e,t){const{interrupt:n=!0,onError:o=d.noop,onFinished:a=d.noop,signal:l}=t||{},s={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},u=Array.from(Array.from({length:e.length}),()=>({state:s.pending,data:null})),i=r.reactive(u),f=r.ref(-1);if(!e||e.length===0)return a(),{activeIndex:f,result:i};function c(v,m){f.value++,i[f.value].data=m,i[f.value].state=v}return e.reduce((v,m)=>v.then(p=>{var y;if(l?.aborted){c(s.aborted,new Error("aborted"));return}if(((y=i[f.value])==null?void 0:y.state)===s.rejected&&n){a();return}const w=m(p).then(b=>(c(s.fulfilled,b),f.value===e.length-1&&a(),b));return l?Promise.race([w,$t(l)]):w}).catch(p=>l?.aborted?(c(s.aborted,p),p):(c(s.rejected,p),o(),p)),Promise.resolve()),{activeIndex:f,result:i}}function $t(e){return new Promise((t,n)=>{const o=new Error("aborted");e.aborted?n(o):e.addEventListener("abort",()=>n(o),{once:!0})})}function Ne(e,t,n){const{immediate:o=!0,delay:a=0,onError:l=d.noop,onSuccess:s=d.noop,resetOnExecute:u=!0,shallow:i=!0,throwError:f}=n??{},c=i?r.shallowRef(t):r.ref(t),v=r.ref(!1),m=r.ref(!1),p=r.shallowRef(void 0);async function y(g=0,...h){u&&(c.value=t),p.value=void 0,v.value=!1,m.value=!0,g>0&&await d.promiseTimeout(g);const E=typeof e=="function"?e(...h):e;try{const k=await E;c.value=k,v.value=!0,s(k)}catch(k){if(p.value=k,l(k),f)throw k}finally{m.value=!1}return c.value}o&&y(a);const w={state:c,isReady:v,isLoading:m,error:p,execute:y};function b(){return new Promise((g,h)=>{d.until(m).toBe(!1).then(()=>g(w)).catch(h)})}return{...w,then(g,h){return b().then(g,h)}}}const le={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function Bt(e){return e?e instanceof Map?le.map:e instanceof Set?le.set:Array.isArray(e)?le.array:le.object:le.null}function jt(e,t){const n=r.ref(""),o=r.ref();function a(){if(d.isClient)return o.value=new Promise((l,s)=>{try{const u=d.toValue(e);if(u==null)l("");else if(typeof u=="string")l(Ee(new Blob([u],{type:"text/plain"})));else if(u instanceof Blob)l(Ee(u));else if(u instanceof ArrayBuffer)l(window.btoa(String.fromCharCode(...new Uint8Array(u))));else if(u instanceof HTMLCanvasElement)l(u.toDataURL(t?.type,t?.quality));else if(u instanceof HTMLImageElement){const i=u.cloneNode(!1);i.crossOrigin="Anonymous",zt(i).then(()=>{const f=document.createElement("canvas"),c=f.getContext("2d");f.width=i.width,f.height=i.height,c.drawImage(i,0,0,f.width,f.height),l(f.toDataURL(t?.type,t?.quality))}).catch(s)}else if(typeof u=="object"){const f=(t?.serializer||Bt(u))(u);return l(Ee(new Blob([f],{type:"application/json"})))}else s(new Error("target is unsupported types"))}catch(u){s(u)}}),o.value.then(l=>n.value=l),o.value}return r.isRef(e)||typeof e=="function"?r.watch(e,a,{immediate:!0}):a(),{base64:n,promise:o,execute:a}}function zt(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function Ee(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=a=>{t(a.target.result)},o.onerror=n,o.readAsDataURL(e)})}function qt(e={}){const{navigator:t=H}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],o=x(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),a=r.ref(!1),l=r.ref(0),s=r.ref(0),u=r.ref(1);let i;function f(){a.value=this.charging,l.value=this.chargingTime||0,s.value=this.dischargingTime||0,u.value=this.level}return o.value&&t.getBattery().then(c=>{i=c,f.call(i),R(i,n,f,{passive:!0})}),{isSupported:o,charging:a,chargingTime:l,dischargingTime:s,level:u}}function Gt(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:o=void 0,navigator:a=H}=e||{},l=x(()=>a&&"bluetooth"in a),s=r.shallowRef(void 0),u=r.shallowRef(null);r.watch(s,()=>{v()});async function i(){if(l.value){u.value=null,n&&n.length>0&&(t=!1);try{s.value=await a?.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:o})}catch(m){u.value=m}}}const f=r.ref(),c=r.computed(()=>{var m;return((m=f.value)==null?void 0:m.connected)||!1});async function v(){if(u.value=null,s.value&&s.value.gatt){s.value.addEventListener("gattserverdisconnected",()=>{});try{f.value=await s.value.gatt.connect()}catch(m){u.value=m}}}return d.tryOnMounted(()=>{var m;s.value&&((m=s.value.gatt)==null||m.connect())}),d.tryOnScopeDispose(()=>{var m;s.value&&((m=s.value.gatt)==null||m.disconnect())}),{isSupported:l,isConnected:c,device:s,requestDevice:i,server:f,error:u}}function G(e,t={}){const{window:n=I}=t,o=x(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=r.ref(!1),s=f=>{l.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},i=r.watchEffect(()=>{o.value&&(u(),a=n.matchMedia(d.toValue(e)),"addEventListener"in a?a.addEventListener("change",s):a.addListener(s),l.value=a.matches)});return d.tryOnScopeDispose(()=>{i(),u(),a=void 0}),l}const Yt={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Xt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},xe={xs:0,sm:600,md:960,lg:1264,xl:1904},Kt={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},Jt=xe,Qt={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},Zt={xs:0,sm:600,md:1024,lg:1440,xl:1920},Dt={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},en={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},tn={sm:576,md:768,lg:992,xl:1200};function nn(e,t={}){function n(c,v){let m=d.toValue(e[d.toValue(c)]);return v!=null&&(m=d.increaseWithUnit(m,v)),typeof m=="number"&&(m=`${m}px`),m}const{window:o=I,strategy:a="min-width"}=t;function l(c){return o?o.matchMedia(c).matches:!1}const s=c=>G(()=>`(min-width: ${n(c)})`,t),u=c=>G(()=>`(max-width: ${n(c)})`,t),i=Object.keys(e).reduce((c,v)=>(Object.defineProperty(c,v,{get:()=>a==="min-width"?s(v):u(v),enumerable:!0,configurable:!0}),c),{});function f(){const c=Object.keys(e).map(v=>[v,s(v)]);return r.computed(()=>c.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(i,{greaterOrEqual:s,smallerOrEqual:u,greater(c){return G(()=>`(min-width: ${n(c,.1)})`,t)},smaller(c){return G(()=>`(max-width: ${n(c,-.1)})`,t)},between(c,v){return G(()=>`(min-width: ${n(c)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(c){return l(`(min-width: ${n(c,.1)})`)},isGreaterOrEqual(c){return l(`(min-width: ${n(c)})`)},isSmaller(c){return l(`(max-width: ${n(c,-.1)})`)},isSmallerOrEqual(c){return l(`(max-width: ${n(c)})`)},isInBetween(c,v){return l(`(min-width: ${n(c)}) and (max-width: ${n(v,-.1)})`)},current:f,active(){const c=f();return r.computed(()=>c.value.length===0?"":c.value.at(-1))}})}function on(e){const{name:t,window:n=I}=e,o=x(()=>n&&"BroadcastChannel"in n),a=r.ref(!1),l=r.ref(),s=r.ref(),u=r.shallowRef(null),i=c=>{l.value&&l.value.postMessage(c)},f=()=>{l.value&&l.value.close(),a.value=!0};return o.value&&d.tryOnMounted(()=>{u.value=null,l.value=new BroadcastChannel(t),l.value.addEventListener("message",c=>{s.value=c.data},{passive:!0}),l.value.addEventListener("messageerror",c=>{u.value=c},{passive:!0}),l.value.addEventListener("close",()=>{a.value=!0})}),d.tryOnScopeDispose(()=>{f()}),{isSupported:o,channel:l,data:s,post:i,close:f,error:u,isClosed:a}}const Ue=["hash","host","hostname","href","pathname","port","protocol","search"];function ln(e={}){const{window:t=I}=e,n=Object.fromEntries(Ue.map(l=>[l,r.ref()]));for(const[l,s]of d.objectEntries(n))r.watch(s,u=>{!t?.location||t.location[l]===u||(t.location[l]=u)});const o=l=>{var s;const{state:u,length:i}=t?.history||{},{origin:f}=t?.location||{};for(const c of Ue)n[c].value=(s=t?.location)==null?void 0:s[c];return r.reactive({trigger:l,state:u,length:i,origin:f,...n})},a=r.ref(o("load"));return t&&(R(t,"popstate",()=>a.value=o("popstate"),{passive:!0}),R(t,"hashchange",()=>a.value=o("hashchange"),{passive:!0})),a}function rn(e,t=(o,a)=>o===a,n){const o=r.ref(e.value);return r.watch(()=>e.value,a=>{t(a,o.value)||(o.value=a)},n),o}function de(e,t={}){const{controls:n=!1,navigator:o=H}=t,a=x(()=>o&&"permissions"in o),l=r.shallowRef(),s=typeof e=="string"?{name:e}:e,u=r.shallowRef(),i=()=>{var c,v;u.value=(v=(c=l.value)==null?void 0:c.state)!=null?v:"prompt"};R(l,"change",i);const f=d.createSingletonPromise(async()=>{if(a.value){if(!l.value)try{l.value=await o.permissions.query(s)}catch{l.value=void 0}finally{i()}if(n)return r.toRaw(l.value)}});return f(),n?{state:u,isSupported:a,query:f}:u}function an(e={}){const{navigator:t=H,read:n=!1,source:o,copiedDuring:a=1500,legacy:l=!1}=e,s=x(()=>t&&"clipboard"in t),u=de("clipboard-read"),i=de("clipboard-write"),f=r.computed(()=>s.value||l),c=r.ref(""),v=r.ref(!1),m=d.useTimeoutFn(()=>v.value=!1,a);function p(){s.value&&g(u.value)?t.clipboard.readText().then(h=>{c.value=h}):c.value=b()}f.value&&n&&R(["copy","cut"],p);async function y(h=d.toValue(o)){f.value&&h!=null&&(s.value&&g(i.value)?await t.clipboard.writeText(h):w(h),c.value=h,v.value=!0,m.start())}function w(h){const E=document.createElement("textarea");E.value=h??"",E.style.position="absolute",E.style.opacity="0",document.body.appendChild(E),E.select(),document.execCommand("copy"),E.remove()}function b(){var h,E,k;return(k=(E=(h=document?.getSelection)==null?void 0:h.call(document))==null?void 0:E.toString())!=null?k:""}function g(h){return h==="granted"||h==="prompt"}return{isSupported:f,text:c,copied:v,copy:y}}function un(e={}){const{navigator:t=H,read:n=!1,source:o,copiedDuring:a=1500}=e,l=x(()=>t&&"clipboard"in t),s=r.ref([]),u=r.ref(!1),i=d.useTimeoutFn(()=>u.value=!1,a);function f(){l.value&&t.clipboard.read().then(v=>{s.value=v})}l.value&&n&&R(["copy","cut"],f);async function c(v=d.toValue(o)){l.value&&v!=null&&(await t.clipboard.write(v),s.value=v,u.value=!0,i.start())}return{isSupported:l,content:s,copied:u,copy:c}}function re(e){return JSON.parse(JSON.stringify(e))}function sn(e,t={}){const n=r.ref({}),{manual:o,clone:a=re,deep:l=!0,immediate:s=!0}=t;function u(){n.value=a(d.toValue(e))}return!o&&(r.isRef(e)||typeof e=="function")?r.watch(e,u,{...t,deep:l,immediate:s}):u(),{cloned:n,sync:u}}const ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pe="__vueuse_ssr_handlers__",We=cn();function cn(){return pe in ve||(ve[pe]=ve[pe]||{}),ve[pe]}function ye(e,t){return We[e]||t}function fn(e,t){We[e]=t}function Te(e){return G("(prefers-color-scheme: dark)",e)}function He(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 Oe={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()}},ke="vueuse-storage";function me(e,t,n,o={}){var a;const{flush:l="pre",deep:s=!0,listenToStorageChanges:u=!0,writeDefaults:i=!0,mergeDefaults:f=!1,shallow:c,window:v=I,eventFilter:m,onError:p=T=>{console.error(T)},initOnMounted:y}=o,w=(c?r.shallowRef:r.ref)(typeof t=="function"?t():t);if(!n)try{n=ye("getDefaultStorage",()=>{var T;return(T=I)==null?void 0:T.localStorage})()}catch(T){p(T)}if(!n)return w;const b=d.toValue(t),g=He(b),h=(a=o.serializer)!=null?a:Oe[g],{pause:E,resume:k}=d.pausableWatch(w,()=>A(w.value),{flush:l,deep:s,eventFilter:m});v&&u&&d.tryOnMounted(()=>{n instanceof Storage?R(v,"storage",F):R(v,ke,C),y&&F()}),y||F();function O(T,P){if(v){const V={key:e,oldValue:T,newValue:P,storageArea:n};v.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(ke,{detail:V}))}}function A(T){try{const P=n.getItem(e);if(T==null)O(P,null),n.removeItem(e);else{const V=h.write(T);P!==V&&(n.setItem(e,V),O(P,V))}}catch(P){p(P)}}function _(T){const P=T?T.newValue:n.getItem(e);if(P==null)return i&&b!=null&&n.setItem(e,h.write(b)),b;if(!T&&f){const V=h.read(P);return typeof f=="function"?f(V,b):g==="object"&&!Array.isArray(V)?{...b,...V}:V}else return typeof P!="string"?P:h.read(P)}function F(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){w.value=b;return}if(!(T&&T.key!==e)){E();try{T?.newValue!==h.write(w.value)&&(w.value=_(T))}catch(P){p(P)}finally{T?r.nextTick(k):k()}}}}function C(T){F(T.detail)}return w}const dn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function $e(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:a=I,storage:l,storageKey:s="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:i,emitAuto:f,disableTransition:c=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Te({window:a}),p=r.computed(()=>m.value?"dark":"light"),y=i||(s==null?d.toRef(o):me(s,o,l,{window:a,listenToStorageChanges:u})),w=r.computed(()=>y.value==="auto"?p.value:y.value),b=ye("updateHTMLAttrs",(k,O,A)=>{const _=typeof k=="string"?a?.document.querySelector(k):N(k);if(!_)return;const F=new Set,C=new Set;let T=null;if(O==="class"){const V=A.split(/\s/g);Object.values(v).flatMap(L=>(L||"").split(/\s/g)).filter(Boolean).forEach(L=>{V.includes(L)?F.add(L):C.add(L)})}else T={key:O,value:A};if(F.size===0&&C.size===0&&T===null)return;let P;c&&(P=a.document.createElement("style"),P.appendChild(document.createTextNode(dn)),a.document.head.appendChild(P));for(const V of F)_.classList.add(V);for(const V of C)_.classList.remove(V);T&&_.setAttribute(T.key,T.value),c&&(a.getComputedStyle(P).opacity,document.head.removeChild(P))});function g(k){var O;b(t,n,(O=v[k])!=null?O:k)}function h(k){e.onChanged?e.onChanged(k,g):g(k)}r.watch(w,h,{flush:"post",immediate:!0}),d.tryOnMounted(()=>h(w.value));const E=r.computed({get(){return f?y.value:w.value},set(k){y.value=k}});try{return Object.assign(E,{store:y,system:p,state:w})}catch{return E}}function vn(e=r.ref(!1)){const t=d.createEventHook(),n=d.createEventHook(),o=d.createEventHook();let a=d.noop;const l=i=>(o.trigger(i),e.value=!0,new Promise(f=>{a=f})),s=i=>{e.value=!1,t.trigger(i),a({data:i,isCanceled:!1})},u=i=>{e.value=!1,n.trigger(i),a({data:i,isCanceled:!0})};return{isRevealed:r.computed(()=>e.value),reveal:l,confirm:s,cancel:u,onReveal:o.on,onConfirm:t.on,onCancel:n.on}}function ae(e,t,n={}){const{window:o=I,initialValue:a,observe:l=!1}=n,s=r.ref(a),u=r.computed(()=>{var f;return N(t)||((f=o?.document)==null?void 0:f.documentElement)});function i(){var f;const c=d.toValue(e),v=d.toValue(u);if(v&&o&&c){const m=(f=o.getComputedStyle(v).getPropertyValue(c))==null?void 0:f.trim();s.value=m||a}}return l&&ne(u,i,{attributeFilter:["style","class"],window:o}),r.watch([u,()=>d.toValue(e)],(f,c)=>{c[0]&&c[1]&&c[0].style.removeProperty(c[1]),i()},{immediate:!0}),r.watch(s,f=>{var c;const v=d.toValue(e);(c=u.value)!=null&&c.style&&v&&(f==null?u.value.style.removeProperty(v):u.value.style.setProperty(v,f))}),s}function Be(e){const t=r.getCurrentInstance(),n=d.computedWithControl(()=>null,()=>e?N(e):t.proxy.$el);return r.onUpdated(n.trigger),r.onMounted(n.trigger),n}function pn(e,t){const n=r.shallowRef(f()),o=d.toRef(e),a=r.computed({get(){var c;const v=o.value;let m=t?.getIndexOf?t.getIndexOf(n.value,v):v.indexOf(n.value);return m<0&&(m=(c=t?.fallbackIndex)!=null?c:0),m},set(c){l(c)}});function l(c){const v=o.value,m=v.length,p=(c%m+m)%m,y=v[p];return n.value=y,y}function s(c=1){return l(a.value+c)}function u(c=1){return s(c)}function i(c=1){return s(-c)}function f(){var c,v;return(v=d.toValue((c=t?.initialValue)!=null?c:d.toValue(e)[0]))!=null?v:void 0}return r.watch(o,()=>l(a.value)),{state:n,index:a,next:u,prev:i,go:l}}function yn(e={}){const{valueDark:t="dark",valueLight:n="",window:o=I}=e,a=$e({...e,onChanged:(u,i)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}}),l=r.computed(()=>a.system?a.system.value:Te({window:o}).value?"dark":"light");return r.computed({get(){return a.value==="dark"},set(u){const i=u?"dark":"light";l.value===i?a.value="auto":a.value=i}})}function je(e){return e}function mn(e,t){return e.value=t}function gn(e){return e?typeof e=="function"?e:re:je}function wn(e){return e?typeof e=="function"?e:re:je}function ze(e,t={}){const{clone:n=!1,dump:o=gn(n),parse:a=wn(n),setSource:l=mn}=t;function s(){return r.markRaw({snapshot:o(e.value),timestamp:d.timestamp()})}const u=r.ref(s()),i=r.ref([]),f=r.ref([]),c=E=>{l(e,a(E.snapshot)),u.value=E},v=()=>{i.value.unshift(u.value),u.value=s(),t.capacity&&i.value.length>t.capacity&&i.value.splice(t.capacity,Number.POSITIVE_INFINITY),f.value.length&&f.value.splice(0,f.value.length)},m=()=>{i.value.splice(0,i.value.length),f.value.splice(0,f.value.length)},p=()=>{const E=i.value.shift();E&&(f.value.unshift(u.value),c(E))},y=()=>{const E=f.value.shift();E&&(i.value.unshift(u.value),c(E))},w=()=>{c(u.value)},b=r.computed(()=>[u.value,...i.value]),g=r.computed(()=>i.value.length>0),h=r.computed(()=>f.value.length>0);return{source:e,undoStack:i,redoStack:f,last:u,history:b,canUndo:g,canRedo:h,clear:m,commit:v,reset:w,undo:p,redo:y}}function _e(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:a}=t,{eventFilter:l,pause:s,resume:u,isActive:i}=d.pausableFilter(a),{ignoreUpdates:f,ignorePrevAsyncUpdates:c,stop:v}=d.watchIgnorable(e,b,{deep:n,flush:o,eventFilter:l});function m(k,O){c(),f(()=>{k.value=O})}const p=ze(e,{...t,clone:t.clone||n,setSource:m}),{clear:y,commit:w}=p;function b(){c(),w()}function g(k){u(),k&&b()}function h(k){let O=!1;const A=()=>O=!0;f(()=>{k(A)}),O||b()}function E(){v(),y()}return{...p,isTracking:i,pause:s,resume:g,commit:b,batch:h,dispose:E}}function hn(e,t={}){const n=t.debounce?d.debounceFilter(t.debounce):void 0;return{..._e(e,{...t,eventFilter:n})}}function bn(e={}){const{window:t=I,eventFilter:n=d.bypassFilter}=e,o=r.ref({x:null,y:null,z:null}),a=r.ref({alpha:null,beta:null,gamma:null}),l=r.ref(0),s=r.ref({x:null,y:null,z:null});if(t){const u=d.createFilterWrapper(n,i=>{o.value=i.acceleration,s.value=i.accelerationIncludingGravity,a.value=i.rotationRate,l.value=i.interval});R(t,"devicemotion",u)}return{acceleration:o,accelerationIncludingGravity:s,rotationRate:a,interval:l}}function qe(e={}){const{window:t=I}=e,n=x(()=>t&&"DeviceOrientationEvent"in t),o=r.ref(!1),a=r.ref(null),l=r.ref(null),s=r.ref(null);return t&&n.value&&R(t,"deviceorientation",u=>{o.value=u.absolute,a.value=u.alpha,l.value=u.beta,s.value=u.gamma}),{isSupported:n,isAbsolute:o,alpha:a,beta:l,gamma:s}}function Sn(e={}){const{window:t=I}=e,n=r.ref(1);if(t){let o=function(){n.value=t.devicePixelRatio,a(),l=t.matchMedia(`(resolution: ${n.value}dppx)`),l.addEventListener("change",o,{once:!0})},a=function(){l?.removeEventListener("change",o)},l;o(),d.tryOnScopeDispose(a)}return{pixelRatio:n}}function En(e={}){const{navigator:t=H,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:a}=e,l=r.ref([]),s=r.computed(()=>l.value.filter(y=>y.kind==="videoinput")),u=r.computed(()=>l.value.filter(y=>y.kind==="audioinput")),i=r.computed(()=>l.value.filter(y=>y.kind==="audiooutput")),f=x(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),c=r.ref(!1);let v;async function m(){f.value&&(l.value=await t.mediaDevices.enumerateDevices(),a?.(l.value),v&&(v.getTracks().forEach(y=>y.stop()),v=null))}async function p(){if(!f.value)return!1;if(c.value)return!0;const{state:y,query:w}=de("camera",{controls:!0});return await w(),y.value!=="granted"&&(v=await t.mediaDevices.getUserMedia(o),m()),c.value=!0,c.value}return f.value&&(n&&p(),R(t.mediaDevices,"devicechange",m),m()),{devices:l,ensurePermissions:p,permissionGranted:c,videoInputs:s,audioInputs:u,audioOutputs:i,isSupported:f}}function Tn(e={}){var t;const n=r.ref((t=e.enabled)!=null?t:!1),o=e.video,a=e.audio,{navigator:l=H}=e,s=x(()=>{var p;return(p=l?.mediaDevices)==null?void 0:p.getDisplayMedia}),u={audio:a,video:o},i=r.shallowRef();async function f(){var p;if(!(!s.value||i.value))return i.value=await l.mediaDevices.getDisplayMedia(u),(p=i.value)==null||p.getTracks().forEach(y=>y.addEventListener("ended",v)),i.value}async function c(){var p;(p=i.value)==null||p.getTracks().forEach(y=>y.stop()),i.value=void 0}function v(){c(),n.value=!1}async function m(){return await f(),i.value&&(n.value=!0),i.value}return r.watch(n,p=>{p?f():c()},{immediate:!0}),{isSupported:s,stream:i,start:m,stop:v,enabled:n}}function Ge(e={}){const{document:t=B}=e;if(!t)return r.ref("visible");const n=r.ref(t.visibilityState);return R(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function On(e,t={}){var n,o;const{pointerTypes:a,preventDefault:l,stopPropagation:s,exact:u,onMove:i,onEnd:f,onStart:c,initialValue:v,axis:m="both",draggingElement:p=I,containerElement:y,handle:w=e,buttons:b=[0]}=t,g=r.ref((n=d.toValue(v))!=null?n:{x:0,y:0}),h=r.ref(),E=F=>a?a.includes(F.pointerType):!0,k=F=>{d.toValue(l)&&F.preventDefault(),d.toValue(s)&&F.stopPropagation()},O=F=>{var C;if(!d.toValue(b).includes(F.button)||d.toValue(t.disabled)||!E(F)||d.toValue(u)&&F.target!==d.toValue(e))return;const T=d.toValue(y),P=(C=T?.getBoundingClientRect)==null?void 0:C.call(T),V=d.toValue(e).getBoundingClientRect(),L={x:F.clientX-(T?V.left-P.left+T.scrollLeft:V.left),y:F.clientY-(T?V.top-P.top+T.scrollTop:V.top)};c?.(L,F)!==!1&&(h.value=L,k(F))},A=F=>{if(d.toValue(t.disabled)||!E(F)||!h.value)return;const C=d.toValue(y),T=d.toValue(e).getBoundingClientRect();let{x:P,y:V}=g.value;(m==="x"||m==="both")&&(P=F.clientX-h.value.x,C&&(P=Math.min(Math.max(0,P),C.scrollWidth-T.width))),(m==="y"||m==="both")&&(V=F.clientY-h.value.y,C&&(V=Math.min(Math.max(0,V),C.scrollHeight-T.height))),g.value={x:P,y:V},i?.(g.value,F),k(F)},_=F=>{d.toValue(t.disabled)||!E(F)||h.value&&(h.value=void 0,f?.(g.value,F),k(F))};if(d.isClient){const F={capture:(o=t.capture)!=null?o:!0};R(w,"pointerdown",O,F),R(p,"pointermove",A,F),R(p,"pointerup",_,F)}return{...d.toRefs(g),position:g,isDragging:r.computed(()=>!!h.value),style:r.computed(()=>`left:${g.value.x}px;top:${g.value.y}px;`)}}function kn(e,t={}){var n,o;const a=r.ref(!1),l=r.shallowRef(null);let s=0,u=!0;if(d.isClient){const i=typeof t=="function"?{onDrop:t}:t,f=(n=i.multiple)!=null?n:!0,c=(o=i.preventDefaultForUnhandled)!=null?o:!1,v=w=>{var b,g;const h=Array.from((g=(b=w.dataTransfer)==null?void 0:b.files)!=null?g:[]);return h.length===0?null:f?h:[h[0]]},m=w=>{if(i.dataTypes){const b=r.unref(i.dataTypes);return typeof b=="function"?b(w):b?b.some(g=>w.includes(g)):!0}return!0},p=w=>{var b,g;const h=Array.from((g=(b=w.dataTransfer)==null?void 0:b.items)!=null?g:[]),E=h.filter(A=>A.kind==="file").map(A=>A.type),k=m(E),O=f||h.filter(A=>A.kind==="file").length<=1;return k&&O},y=(w,b)=>{var g,h,E,k;if(u=p(w),!u){c&&w.preventDefault(),w.dataTransfer&&(w.dataTransfer.dropEffect="none");return}w.preventDefault(),w.dataTransfer&&(w.dataTransfer.dropEffect="copy");const O=v(w);switch(b){case"enter":s+=1,a.value=!0,(g=i.onEnter)==null||g.call(i,null,w);break;case"over":(h=i.onOver)==null||h.call(i,null,w);break;case"leave":s-=1,s===0&&(a.value=!1),(E=i.onLeave)==null||E.call(i,null,w);break;case"drop":s=0,a.value=!1,u&&(l.value=O,(k=i.onDrop)==null||k.call(i,O,w));break}};R(e,"dragenter",w=>y(w,"enter")),R(e,"dragover",w=>y(w,"over")),R(e,"dragleave",w=>y(w,"leave")),R(e,"drop",w=>y(w,"drop"))}return{files:l,isOverDropZone:a}}function ge(e,t,n={}){const{window:o=I,...a}=n;let l;const s=x(()=>o&&"ResizeObserver"in o),u=()=>{l&&(l.disconnect(),l=void 0)},i=r.computed(()=>{const v=d.toValue(e);return Array.isArray(v)?v.map(m=>N(m)):[N(v)]}),f=r.watch(i,v=>{if(u(),s.value&&o){l=new ResizeObserver(t);for(const m of v)m&&l.observe(m,a)}},{immediate:!0,flush:"post"}),c=()=>{u(),f()};return d.tryOnScopeDispose(c),{isSupported:s,stop:c}}function _n(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0,updateTiming:s="sync"}=t,u=r.ref(0),i=r.ref(0),f=r.ref(0),c=r.ref(0),v=r.ref(0),m=r.ref(0),p=r.ref(0),y=r.ref(0);function w(){const g=N(e);if(!g){n&&(u.value=0,i.value=0,f.value=0,c.value=0,v.value=0,m.value=0,p.value=0,y.value=0);return}const h=g.getBoundingClientRect();u.value=h.height,i.value=h.bottom,f.value=h.left,c.value=h.right,v.value=h.top,m.value=h.width,p.value=h.x,y.value=h.y}function b(){s==="sync"?w():s==="next-frame"&&requestAnimationFrame(()=>w())}return ge(e,b),r.watch(()=>N(e),g=>!g&&b()),ne(e,b,{attributeFilter:["style","class"]}),a&&R("scroll",b,{capture:!0,passive:!0}),o&&R("resize",b,{passive:!0}),d.tryOnMounted(()=>{l&&b()}),{height:u,bottom:i,left:f,right:c,top:v,width:m,x:p,y,update:b}}function Rn(e){const{x:t,y:n,document:o=B,multiple:a,interval:l="requestAnimationFrame",immediate:s=!0}=e,u=x(()=>d.toValue(a)?o&&"elementsFromPoint"in o:o&&"elementFromPoint"in o),i=r.ref(null),f=()=>{var v,m;i.value=d.toValue(a)?(v=o?.elementsFromPoint(d.toValue(t),d.toValue(n)))!=null?v:[]:(m=o?.elementFromPoint(d.toValue(t),d.toValue(n)))!=null?m:null},c=l==="requestAnimationFrame"?D(f,{immediate:s}):d.useIntervalFn(f,l,{immediate:s});return{isSupported:u,element:i,...c}}function Fn(e,t={}){const{delayEnter:n=0,delayLeave:o=0,window:a=I}=t,l=r.ref(!1);let s;const u=i=>{const f=i?n:o;s&&(clearTimeout(s),s=void 0),f?s=setTimeout(()=>l.value=i,f):l.value=i};return a&&(R(e,"mouseenter",()=>u(!0),{passive:!0}),R(e,"mouseleave",()=>u(!1),{passive:!0})),l}function Ye(e,t={width:0,height:0},n={}){const{window:o=I,box:a="content-box"}=n,l=r.computed(()=>{var v,m;return(m=(v=N(e))==null?void 0:v.namespaceURI)==null?void 0:m.includes("svg")}),s=r.ref(t.width),u=r.ref(t.height),{stop:i}=ge(e,([v])=>{const m=a==="border-box"?v.borderBoxSize:a==="content-box"?v.contentBoxSize:v.devicePixelContentBoxSize;if(o&&l.value){const p=N(e);if(p){const y=p.getBoundingClientRect();s.value=y.width,u.value=y.height}}else if(m){const p=Array.isArray(m)?m:[m];s.value=p.reduce((y,{inlineSize:w})=>y+w,0),u.value=p.reduce((y,{blockSize:w})=>y+w,0)}else s.value=v.contentRect.width,u.value=v.contentRect.height},n);d.tryOnMounted(()=>{const v=N(e);v&&(s.value="offsetWidth"in v?v.offsetWidth:t.width,u.value="offsetHeight"in v?v.offsetHeight:t.height)});const f=r.watch(()=>N(e),v=>{s.value=v?t.width:0,u.value=v?t.height:0});function c(){i(),f()}return{width:s,height:u,stop:c}}function Xe(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=0,window:s=I,immediate:u=!0}=n,i=x(()=>s&&"IntersectionObserver"in s),f=r.computed(()=>{const y=d.toValue(e);return(Array.isArray(y)?y:[y]).map(N).filter(d.notNullish)});let c=d.noop;const v=r.ref(u),m=i.value?r.watch(()=>[f.value,N(o),v.value],([y,w])=>{if(c(),!v.value||!y.length)return;const b=new IntersectionObserver(t,{root:N(w),rootMargin:a,threshold:l});y.forEach(g=>g&&b.observe(g)),c=()=>{b.disconnect(),c=d.noop}},{immediate:u,flush:"post"}):d.noop,p=()=>{c(),m(),v.value=!1};return d.tryOnScopeDispose(p),{isSupported:i,isActive:v,pause(){c(),v.value=!1},resume(){v.value=!0},stop:p}}function Ke(e,t={}){const{window:n=I,scrollTarget:o,threshold:a=0}=t,l=r.ref(!1);return Xe(e,s=>{let u=l.value,i=0;for(const f of s)f.time>=i&&(i=f.time,u=f.isIntersecting);l.value=u},{root:o,window:n,threshold:a}),l}const ue=new Map;function Pn(e){const t=r.getCurrentScope();function n(u){var i;const f=ue.get(e)||new Set;f.add(u),ue.set(e,f);const c=()=>a(u);return(i=t?.cleanups)==null||i.push(c),c}function o(u){function i(...f){a(i),u(...f)}return n(i)}function a(u){const i=ue.get(e);i&&(i.delete(u),i.size||l())}function l(){ue.delete(e)}function s(u,i){var f;(f=ue.get(e))==null||f.forEach(c=>c(u,i))}return{on:n,once:o,off:a,emit:s,reset:l}}function Cn(e){return e===!0?{}:e}function Vn(e,t=[],n={}){const o=r.ref(null),a=r.ref(null),l=r.ref("CONNECTING"),s=r.ref(null),u=r.shallowRef(null),i=d.toRef(e),f=r.shallowRef(null);let c=!1,v=0;const{withCredentials:m=!1,immediate:p=!0}=n,y=()=>{d.isClient&&s.value&&(s.value.close(),s.value=null,l.value="CLOSED",c=!0)},w=()=>{if(c||typeof i.value>"u")return;const g=new EventSource(i.value,{withCredentials:m});l.value="CONNECTING",s.value=g,g.onopen=()=>{l.value="OPEN",u.value=null},g.onerror=h=>{if(l.value="CLOSED",u.value=h,g.readyState===2&&!c&&n.autoReconnect){g.close();const{retries:E=-1,delay:k=1e3,onFailed:O}=Cn(n.autoReconnect);v+=1,typeof E=="number"&&(E<0||v<E)||typeof E=="function"&&E()?setTimeout(w,k):O?.()}},g.onmessage=h=>{o.value=null,a.value=h.data,f.value=h.lastEventId};for(const h of t)R(g,h,E=>{o.value=h,a.value=E.data||null})},b=()=>{d.isClient&&(y(),c=!1,v=0,w())};return p&&r.watch(i,b,{immediate:!0}),d.tryOnScopeDispose(y),{eventSource:s,event:o,data:a,status:l,error:u,open:b,close:y,lastEventId:f}}function An(e={}){const{initialValue:t=""}=e,n=x(()=>typeof window<"u"&&"EyeDropper"in window),o=r.ref(t);async function a(l){if(!n.value)return;const u=await new window.EyeDropper().open(l);return o.value=u.sRGBHex,u}return{isSupported:n,sRGBHex:o,open:a}}function In(e=null,t={}){const{baseUrl:n="",rel:o="icon",document:a=B}=t,l=d.toRef(e),s=u=>{const i=a?.head.querySelectorAll(`link[rel*="${o}"]`);if(!i||i.length===0){const f=a?.createElement("link");f&&(f.rel=o,f.href=`${n}${u}`,f.type=`image/${u.split(".").pop()}`,a?.head.append(f));return}i?.forEach(f=>f.href=`${n}${u}`)};return r.watch(l,(u,i)=>{typeof u=="string"&&u!==i&&s(u)},{immediate:!0}),l}const Mn={json:"application/json",text:"text/plain"};function we(e){return e&&d.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Ln=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function Nn(e){return Ln.test(e)}function se(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function oe(e,...t){return e==="overwrite"?async n=>{const o=t[t.length-1];return o?{...n,...await o(n)}:n}:async n=>{for(const o of t)o&&(n={...n,...await o(n)});return n}}function xn(e={}){const t=e.combination||"chain",n=e.options||{},o=e.fetchOptions||{};function a(l,...s){const u=r.computed(()=>{const c=d.toValue(e.baseUrl),v=d.toValue(l);return c&&!Nn(v)?Un(c,v):v});let i=n,f=o;return s.length>0&&(we(s[0])?i={...i,...s[0],beforeFetch:oe(t,n.beforeFetch,s[0].beforeFetch),afterFetch:oe(t,n.afterFetch,s[0].afterFetch),onFetchError:oe(t,n.onFetchError,s[0].onFetchError)}:f={...f,...s[0],headers:{...se(f.headers)||{},...se(s[0].headers)||{}}}),s.length>1&&we(s[1])&&(i={...i,...s[1],beforeFetch:oe(t,n.beforeFetch,s[1].beforeFetch),afterFetch:oe(t,n.afterFetch,s[1].afterFetch),onFetchError:oe(t,n.onFetchError,s[1].onFetchError)}),Je(u,f,i)}return a}function Je(e,...t){var n;const o=typeof AbortController=="function";let a={},l={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const s={method:"GET",type:"text",payload:void 0};t.length>0&&(we(t[0])?l={...l,...t[0]}:a=t[0]),t.length>1&&we(t[1])&&(l={...l,...t[1]});const{fetch:u=(n=I)==null?void 0:n.fetch,initialData:i,timeout:f}=l,c=d.createEventHook(),v=d.createEventHook(),m=d.createEventHook(),p=r.ref(!1),y=r.ref(!1),w=r.ref(!1),b=r.ref(null),g=r.shallowRef(null),h=r.shallowRef(null),E=r.shallowRef(i||null),k=r.computed(()=>o&&y.value);let O,A;const _=()=>{o&&(O?.abort(),O=new AbortController,O.signal.onabort=()=>w.value=!0,a={...a,signal:O.signal})},F=M=>{y.value=M,p.value=!M};f&&(A=d.useTimeoutFn(_,f,{immediate:!1}));let C=0;const T=async(M=!1)=>{var W,j;_(),F(!0),h.value=null,b.value=null,w.value=!1,C+=1;const ie=C,ee={method:s.method,headers:{}};if(s.payload){const z=se(ee.headers),Z=d.toValue(s.payload);!s.payloadType&&Z&&Object.getPrototypeOf(Z)===Object.prototype&&!(Z instanceof FormData)&&(s.payloadType="json"),s.payloadType&&(z["Content-Type"]=(W=Mn[s.payloadType])!=null?W:s.payloadType),ee.body=s.payloadType==="json"?JSON.stringify(Z):Z}let _t=!1;const ce={url:d.toValue(e),options:{...ee,...a},cancel:()=>{_t=!0}};if(l.beforeFetch&&Object.assign(ce,await l.beforeFetch(ce)),_t||!u)return F(!1),Promise.resolve(null);let te=null;return A&&A.start(),u(ce.url,{...ee,...ce.options,headers:{...se(ee.headers),...se((j=ce.options)==null?void 0:j.headers)}}).then(async z=>{if(g.value=z,b.value=z.status,te=await z.clone()[s.type](),!z.ok)throw E.value=i||null,new Error(z.statusText);return l.afterFetch&&({data:te}=await l.afterFetch({data:te,response:z})),E.value=te,c.trigger(z),z}).catch(async z=>{let Z=z.message||z.name;if(l.onFetchError&&({error:Z,data:te}=await l.onFetchError({data:te,error:z,response:g.value})),h.value=Z,l.updateDataOnError&&(E.value=te),v.trigger(z),M)throw z;return null}).finally(()=>{ie===C&&F(!1),A&&A.stop(),m.trigger(null)})},P=d.toRef(l.refetch);r.watch([P,d.toRef(e)],([M])=>M&&T(),{deep:!0});const V={isFinished:r.readonly(p),isFetching:r.readonly(y),statusCode:b,response:g,error:h,data:E,canAbort:k,aborted:w,abort:_,execute:T,onFetchResponse:c.on,onFetchError:v.on,onFetchFinally:m.on,get:L("GET"),put:L("PUT"),post:L("POST"),delete:L("DELETE"),patch:L("PATCH"),head:L("HEAD"),options:L("OPTIONS"),json:U("json"),text:U("text"),blob:U("blob"),arrayBuffer:U("arrayBuffer"),formData:U("formData")};function L(M){return(W,j)=>{if(!y.value)return s.method=M,s.payload=W,s.payloadType=j,r.isRef(s.payload)&&r.watch([P,d.toRef(s.payload)],([ie])=>ie&&T(),{deep:!0}),{...V,then(ie,ee){return $().then(ie,ee)}}}}function $(){return new Promise((M,W)=>{d.until(p).toBe(!0).then(()=>M(V)).catch(j=>W(j))})}function U(M){return()=>{if(!y.value)return s.type=M,{...V,then(W,j){return $().then(W,j)}}}}return l.immediate&&Promise.resolve().then(()=>T()),{...V,then(M,W){return $().then(M,W)}}}function Un(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const Wn={multiple:!0,accept:"*",reset:!1,directory:!1};function Hn(e={}){const{document:t=B}=e,n=r.ref(null),{on:o,trigger:a}=d.createEventHook(),{on:l,trigger:s}=d.createEventHook();let u;t&&(u=t.createElement("input"),u.type="file",u.onchange=c=>{const v=c.target;n.value=v.files,a(n.value)},u.oncancel=()=>{s()});const i=()=>{n.value=null,u&&u.value&&(u.value="",a(null))},f=c=>{if(!u)return;const v={...Wn,...e,...c};u.multiple=v.multiple,u.accept=v.accept,u.webkitdirectory=v.directory,d.hasOwn(v,"capture")&&(u.capture=v.capture),v.reset&&i(),u.click()};return{files:r.readonly(n),open:f,reset:i,onCancel:l,onChange:o}}function $n(e={}){const{window:t=I,dataType:n="Text"}=e,o=t,a=x(()=>o&&"showSaveFilePicker"in o&&"showOpenFilePicker"in o),l=r.ref(),s=r.ref(),u=r.ref(),i=r.computed(()=>{var h,E;return(E=(h=u.value)==null?void 0:h.name)!=null?E:""}),f=r.computed(()=>{var h,E;return(E=(h=u.value)==null?void 0:h.type)!=null?E:""}),c=r.computed(()=>{var h,E;return(E=(h=u.value)==null?void 0:h.size)!=null?E:0}),v=r.computed(()=>{var h,E;return(E=(h=u.value)==null?void 0:h.lastModified)!=null?E:0});async function m(h={}){if(!a.value)return;const[E]=await o.showOpenFilePicker({...d.toValue(e),...h});l.value=E,await g()}async function p(h={}){a.value&&(l.value=await o.showSaveFilePicker({...e,...h}),s.value=void 0,await g())}async function y(h={}){if(a.value){if(!l.value)return w(h);if(s.value){const E=await l.value.createWritable();await E.write(s.value),await E.close()}await b()}}async function w(h={}){if(a.value){if(l.value=await o.showSaveFilePicker({...e,...h}),s.value){const E=await l.value.createWritable();await E.write(s.value),await E.close()}await b()}}async function b(){var h;u.value=await((h=l.value)==null?void 0:h.getFile())}async function g(){var h,E;await b();const k=d.toValue(n);k==="Text"?s.value=await((h=u.value)==null?void 0:h.text()):k==="ArrayBuffer"?s.value=await((E=u.value)==null?void 0:E.arrayBuffer()):k==="Blob"&&(s.value=u.value)}return r.watch(()=>d.toValue(n),g),{isSupported:a,data:s,file:u,fileName:i,fileMIME:f,fileSize:c,fileLastModified:v,open:m,create:p,save:y,saveAs:w,updateData:g}}function Bn(e,t={}){const{initialValue:n=!1,focusVisible:o=!1,preventScroll:a=!1}=t,l=r.ref(!1),s=r.computed(()=>N(e));R(s,"focus",i=>{var f,c;(!o||(c=(f=i.target).matches)!=null&&c.call(f,":focus-visible"))&&(l.value=!0)}),R(s,"blur",()=>l.value=!1);const u=r.computed({get:()=>l.value,set(i){var f,c;!i&&l.value?(f=s.value)==null||f.blur():i&&!l.value&&((c=s.value)==null||c.focus({preventScroll:a}))}});return r.watch(s,()=>{u.value=n},{immediate:!0,flush:"post"}),{focused:u}}const jn="focusin",zn="focusout";function qn(e,t={}){const{window:n=I}=t,o=r.computed(()=>N(e)),a=r.ref(!1),l=r.computed(()=>a.value),s=Le(t);return!n||!s.value?{focused:l}:(R(o,jn,()=>a.value=!0),R(o,zn,()=>a.value=!1),{focused:l})}function Gn(e){var t;const n=r.ref(0);if(typeof performance>"u")return n;const o=(t=e?.every)!=null?t:10;let a=performance.now(),l=0;return D(()=>{if(l+=1,l>=o){const s=performance.now(),u=s-a;n.value=Math.round(1e3/(u/l)),a=s,l=0}}),n}const Qe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Yn(e,t={}){const{document:n=B,autoExit:o=!1}=t,a=r.computed(()=>{var g;return(g=N(e))!=null?g:n?.querySelector("html")}),l=r.ref(!1),s=r.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(g=>n&&g in n||a.value&&g in a.value)),u=r.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(g=>n&&g in n||a.value&&g in a.value)),i=r.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(g=>n&&g in n||a.value&&g in a.value)),f=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(g=>n&&g in n),c=x(()=>a.value&&n&&s.value!==void 0&&u.value!==void 0&&i.value!==void 0),v=()=>f?n?.[f]===a.value:!1,m=()=>{if(i.value){if(n&&n[i.value]!=null)return n[i.value];{const g=a.value;if(g?.[i.value]!=null)return!!g[i.value]}}return!1};async function p(){if(!(!c.value||!l.value)){if(u.value)if(n?.[u.value]!=null)await n[u.value]();else{const g=a.value;g?.[u.value]!=null&&await g[u.value]()}l.value=!1}}async function y(){if(!c.value||l.value)return;m()&&await p();const g=a.value;s.value&&g?.[s.value]!=null&&(await g[s.value](),l.value=!0)}async function w(){await(l.value?p():y())}const b=()=>{const g=m();(!g||g&&v())&&(l.value=g)};return R(n,Qe,b,!1),R(()=>N(a),Qe,b,!1),o&&d.tryOnScopeDispose(p),{isSupported:c,isFullscreen:l,enter:y,exit:p,toggle:w}}function Xn(e){return r.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function Kn(e={}){const{navigator:t=H}=e,n=x(()=>t&&"getGamepads"in t),o=r.ref([]),a=d.createEventHook(),l=d.createEventHook(),s=p=>{const y=[],w="vibrationActuator"in p?p.vibrationActuator:null;return w&&y.push(w),p.hapticActuators&&y.push(...p.hapticActuators),{id:p.id,index:p.index,connected:p.connected,mapping:p.mapping,timestamp:p.timestamp,vibrationActuator:p.vibrationActuator,hapticActuators:y,axes:p.axes.map(b=>b),buttons:p.buttons.map(b=>({pressed:b.pressed,touched:b.touched,value:b.value}))}},u=()=>{const p=t?.getGamepads()||[];for(const y of p)y&&o.value[y.index]&&(o.value[y.index]=s(y))},{isActive:i,pause:f,resume:c}=D(u),v=p=>{o.value.some(({index:y})=>y===p.index)||(o.value.push(s(p)),a.trigger(p.index)),c()},m=p=>{o.value=o.value.filter(y=>y.index!==p.index),l.trigger(p.index)};return R("gamepadconnected",p=>v(p.gamepad)),R("gamepaddisconnected",p=>m(p.gamepad)),d.tryOnMounted(()=>{const p=t?.getGamepads()||[];for(const y of p)y&&o.value[y.index]&&v(y)}),f(),{isSupported:n,onConnected:a.on,onDisconnected:l.on,gamepads:o,pause:f,resume:c,isActive:i}}function Jn(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:o=27e3,navigator:a=H,immediate:l=!0}=e,s=x(()=>a&&"geolocation"in a),u=r.ref(null),i=r.shallowRef(null),f=r.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function c(y){u.value=y.timestamp,f.value=y.coords,i.value=null}let v;function m(){s.value&&(v=a.geolocation.watchPosition(c,y=>i.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:o}))}l&&m();function p(){v&&a&&a.geolocation.clearWatch(v)}return d.tryOnScopeDispose(()=>{p()}),{isSupported:s,coords:f,locatedAt:u,error:i,resume:m,pause:p}}const Qn=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Zn=6e4;function Dn(e=Zn,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:a=Qn,window:l=I,eventFilter:s=d.throttleFilter(50)}=t,u=r.ref(n),i=r.ref(d.timestamp());let f;const c=()=>{u.value=!1,clearTimeout(f),f=setTimeout(()=>u.value=!0,e)},v=d.createFilterWrapper(s,()=>{i.value=d.timestamp(),c()});if(l){const m=l.document;for(const p of a)R(l,p,v,{passive:!0});o&&R(m,"visibilitychange",()=>{m.hidden||v()}),c()}return{idle:u,lastActive:i,reset:c}}async function eo(e){return new Promise((t,n)=>{const o=new Image,{src:a,srcset:l,sizes:s,class:u,loading:i,crossorigin:f,referrerPolicy:c}=e;o.src=a,l&&(o.srcset=l),s&&(o.sizes=s),u&&(o.className=u),i&&(o.loading=i),f&&(o.crossOrigin=f),c&&(o.referrerPolicy=c),o.onload=()=>t(o),o.onerror=n})}function to(e,t={}){const n=Ne(()=>eo(d.toValue(e)),void 0,{resetOnExecute:!0,...t});return r.watch(()=>d.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}function he(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Ze=1;function De(e,t={}){const{throttle:n=0,idle:o=200,onStop:a=d.noop,onScroll:l=d.noop,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:u={capture:!1,passive:!0},behavior:i="auto",window:f=I,onError:c=_=>{console.error(_)}}=t,v=r.ref(0),m=r.ref(0),p=r.computed({get(){return v.value},set(_){w(_,void 0)}}),y=r.computed({get(){return m.value},set(_){w(void 0,_)}});function w(_,F){var C,T,P,V;if(!f)return;const L=d.toValue(e);if(!L)return;(P=L instanceof Document?f.document.body:L)==null||P.scrollTo({top:(C=d.toValue(F))!=null?C:y.value,left:(T=d.toValue(_))!=null?T:p.value,behavior:d.toValue(i)});const $=((V=L?.document)==null?void 0:V.documentElement)||L?.documentElement||L;p!=null&&(v.value=$.scrollLeft),y!=null&&(m.value=$.scrollTop)}const b=r.ref(!1),g=r.reactive({left:!0,right:!1,top:!0,bottom:!1}),h=r.reactive({left:!1,right:!1,top:!1,bottom:!1}),E=_=>{b.value&&(b.value=!1,h.left=!1,h.right=!1,h.top=!1,h.bottom=!1,a(_))},k=d.useDebounceFn(E,n+o),O=_=>{var F;if(!f)return;const C=((F=_?.document)==null?void 0:F.documentElement)||_?.documentElement||N(_),{display:T,flexDirection:P}=getComputedStyle(C),V=C.scrollLeft;h.left=V<v.value,h.right=V>v.value;const L=Math.abs(V)<=(s.left||0),$=Math.abs(V)+C.clientWidth>=C.scrollWidth-(s.right||0)-Ze;T==="flex"&&P==="row-reverse"?(g.left=$,g.right=L):(g.left=L,g.right=$),v.value=V;let U=C.scrollTop;_===f.document&&!U&&(U=f.document.body.scrollTop),h.top=U<m.value,h.bottom=U>m.value;const M=Math.abs(U)<=(s.top||0),W=Math.abs(U)+C.clientHeight>=C.scrollHeight-(s.bottom||0)-Ze;T==="flex"&&P==="column-reverse"?(g.top=W,g.bottom=M):(g.top=M,g.bottom=W),m.value=U},A=_=>{var F;if(!f)return;const C=(F=_.target.documentElement)!=null?F:_.target;O(C),b.value=!0,k(_),l(_)};return R(e,"scroll",n?d.useThrottleFn(A,n,!0,!1):A,u),d.tryOnMounted(()=>{try{const _=d.toValue(e);if(!_)return;O(_)}catch(_){c(_)}}),R(e,"scrollend",E,u),{x:p,y,isScrolling:b,arrivedState:g,directions:h,measure(){const _=d.toValue(e);f&&_&&O(_)}}}function no(e,t,n={}){var o;const{direction:a="bottom",interval:l=100,canLoadMore:s=()=>!0}=n,u=r.reactive(De(e,{...n,offset:{[a]:(o=n.distance)!=null?o:0,...n.offset}})),i=r.ref(),f=r.computed(()=>!!i.value),c=r.computed(()=>he(d.toValue(e))),v=Ke(c);function m(){if(u.measure(),!c.value||!v.value||!s(c.value))return;const{scrollHeight:y,clientHeight:w,scrollWidth:b,clientWidth:g}=c.value,h=a==="bottom"||a==="top"?y<=w:b<=g;(u.arrivedState[a]||h)&&(i.value||(i.value=Promise.all([t(u),new Promise(E=>setTimeout(E,l))]).finally(()=>{i.value=null,r.nextTick(()=>m())})))}const p=r.watch(()=>[u.arrivedState[a],v.value],m,{immediate:!0});return d.tryOnUnmounted(p),{isLoading:f,reset(){r.nextTick(()=>m())}}}const oo=["mousedown","mouseup","keydown","keyup"];function lo(e,t={}){const{events:n=oo,document:o=B,initial:a=null}=t,l=r.ref(a);return o&&n.forEach(s=>{R(o,s,u=>{typeof u.getModifierState=="function"&&(l.value=u.getModifierState(e))})}),l}function ro(e,t,n={}){const{window:o=I}=n;return me(e,t,o?.localStorage,n)}const et={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function ao(e={}){const{reactive:t=!1,target:n=I,aliasMap:o=et,passive:a=!0,onEventFired:l=d.noop}=e,s=r.reactive(new Set),u={toJSON(){return{}},current:s},i=t?r.reactive(u):u,f=new Set,c=new Set;function v(w,b){w in i&&(t?i[w]=b:i[w].value=b)}function m(){s.clear();for(const w of c)v(w,!1)}function p(w,b){var g,h;const E=(g=w.key)==null?void 0:g.toLowerCase(),O=[(h=w.code)==null?void 0:h.toLowerCase(),E].filter(Boolean);E&&(b?s.add(E):s.delete(E));for(const A of O)c.add(A),v(A,b);E==="meta"&&!b?(f.forEach(A=>{s.delete(A),v(A,!1)}),f.clear()):typeof w.getModifierState=="function"&&w.getModifierState("Meta")&&b&&[...s,...O].forEach(A=>f.add(A))}R(n,"keydown",w=>(p(w,!0),l(w)),{passive:a}),R(n,"keyup",w=>(p(w,!1),l(w)),{passive:a}),R("blur",m,{passive:!0}),R("focus",m,{passive:!0});const y=new Proxy(i,{get(w,b,g){if(typeof b!="string")return Reflect.get(w,b,g);if(b=b.toLowerCase(),b in o&&(b=o[b]),!(b in i))if(/[+_-]/.test(b)){const E=b.split(/[+_-]/g).map(k=>k.trim());i[b]=r.computed(()=>E.every(k=>d.toValue(y[k])))}else i[b]=r.ref(!1);const h=Reflect.get(w,b,g);return t?d.toValue(h):h}});return y}function Re(e,t){d.toValue(e)&&t(d.toValue(e))}function uo(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function Fe(e){return Array.from(e).map(({label:t,kind:n,language:o,mode:a,activeCues:l,cues:s,inBandMetadataTrackDispatchType:u},i)=>({id:i,label:t,kind:n,language:o,mode:a,activeCues:l,cues:s,inBandMetadataTrackDispatchType:u}))}const so={src:"",tracks:[]};function io(e,t={}){e=d.toRef(e),t={...so,...t};const{document:n=B}=t,o=r.ref(0),a=r.ref(0),l=r.ref(!1),s=r.ref(1),u=r.ref(!1),i=r.ref(!1),f=r.ref(!1),c=r.ref(1),v=r.ref(!1),m=r.ref([]),p=r.ref([]),y=r.ref(-1),w=r.ref(!1),b=r.ref(!1),g=n&&"pictureInPictureEnabled"in n,h=d.createEventHook(),E=T=>{Re(e,P=>{if(T){const V=typeof T=="number"?T:T.id;P.textTracks[V].mode="disabled"}else for(let V=0;V<P.textTracks.length;++V)P.textTracks[V].mode="disabled";y.value=-1})},k=(T,P=!0)=>{Re(e,V=>{const L=typeof T=="number"?T:T.id;P&&E(),V.textTracks[L].mode="showing",y.value=L})},O=()=>new Promise((T,P)=>{Re(e,async V=>{g&&(w.value?n.exitPictureInPicture().then(T).catch(P):V.requestPictureInPicture().then(T).catch(P))})});r.watchEffect(()=>{if(!n)return;const T=d.toValue(e);if(!T)return;const P=d.toValue(t.src);let V=[];P&&(typeof P=="string"?V=[{src:P}]:Array.isArray(P)?V=P:d.isObject(P)&&(V=[P]),T.querySelectorAll("source").forEach(L=>{L.removeEventListener("error",h.trigger),L.remove()}),V.forEach(({src:L,type:$})=>{const U=n.createElement("source");U.setAttribute("src",L),U.setAttribute("type",$||""),U.addEventListener("error",h.trigger),T.appendChild(U)}),T.load())}),d.tryOnScopeDispose(()=>{const T=d.toValue(e);T&&T.querySelectorAll("source").forEach(P=>P.removeEventListener("error",h.trigger))}),r.watch([e,s],()=>{const T=d.toValue(e);T&&(T.volume=s.value)}),r.watch([e,b],()=>{const T=d.toValue(e);T&&(T.muted=b.value)}),r.watch([e,c],()=>{const T=d.toValue(e);T&&(T.playbackRate=c.value)}),r.watchEffect(()=>{if(!n)return;const T=d.toValue(t.tracks),P=d.toValue(e);!T||!T.length||!P||(P.querySelectorAll("track").forEach(V=>V.remove()),T.forEach(({default:V,kind:L,label:$,src:U,srcLang:M},W)=>{const j=n.createElement("track");j.default=V||!1,j.kind=L,j.label=$,j.src=U,j.srclang=M,j.default&&(y.value=W),P.appendChild(j)}))});const{ignoreUpdates:A}=d.watchIgnorable(o,T=>{const P=d.toValue(e);P&&(P.currentTime=T)}),{ignoreUpdates:_}=d.watchIgnorable(f,T=>{const P=d.toValue(e);P&&(T?P.play():P.pause())});R(e,"timeupdate",()=>A(()=>o.value=d.toValue(e).currentTime)),R(e,"durationchange",()=>a.value=d.toValue(e).duration),R(e,"progress",()=>m.value=uo(d.toValue(e).buffered)),R(e,"seeking",()=>l.value=!0),R(e,"seeked",()=>l.value=!1),R(e,["waiting","loadstart"],()=>{u.value=!0,_(()=>f.value=!1)}),R(e,"loadeddata",()=>u.value=!1),R(e,"playing",()=>{u.value=!1,i.value=!1,_(()=>f.value=!0)}),R(e,"ratechange",()=>c.value=d.toValue(e).playbackRate),R(e,"stalled",()=>v.value=!0),R(e,"ended",()=>i.value=!0),R(e,"pause",()=>_(()=>f.value=!1)),R(e,"play",()=>_(()=>f.value=!0)),R(e,"enterpictureinpicture",()=>w.value=!0),R(e,"leavepictureinpicture",()=>w.value=!1),R(e,"volumechange",()=>{const T=d.toValue(e);T&&(s.value=T.volume,b.value=T.muted)});const F=[],C=r.watch([e],()=>{const T=d.toValue(e);T&&(C(),F[0]=R(T.textTracks,"addtrack",()=>p.value=Fe(T.textTracks)),F[1]=R(T.textTracks,"removetrack",()=>p.value=Fe(T.textTracks)),F[2]=R(T.textTracks,"change",()=>p.value=Fe(T.textTracks)))});return d.tryOnScopeDispose(()=>F.forEach(T=>T())),{currentTime:o,duration:a,waiting:u,seeking:l,ended:i,stalled:v,buffered:m,playing:f,rate:c,volume:s,muted:b,tracks:p,selectedTrack:y,enableTrack:k,disableTrack:E,supportsPictureInPicture:g,togglePictureInPicture:O,isPictureInPicture:w,onSourceError:h.on}}function co(){const e=r.shallowReactive({});return{get:t=>e[t],set:(t,n)=>r.set(e,t,n),has:t=>d.hasOwn(e,t),delete:t=>r.del(e,t),clear:()=>{Object.keys(e).forEach(t=>{r.del(e,t)})}}}function fo(e,t){const o=t?.cache?r.shallowReactive(t.cache):r.isVue2?co():r.shallowReactive(new Map),a=(...c)=>t?.getKey?t.getKey(...c):JSON.stringify(c),l=(c,...v)=>(o.set(c,e(...v)),o.get(c)),s=(...c)=>l(a(...c),...c),u=(...c)=>{o.delete(a(...c))},i=()=>{o.clear()},f=(...c)=>{const v=a(...c);return o.has(v)?o.get(v):l(v,...c)};return f.load=s,f.delete=u,f.clear=i,f.generateKey=a,f.cache=o,f}function vo(e={}){const t=r.ref(),n=x(()=>typeof performance<"u"&&"memory"in performance);if(n.value){const{interval:o=1e3}=e;d.useIntervalFn(()=>{t.value=performance.memory},o,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const po={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function tt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:a={x:0,y:0},window:l=I,target:s=l,scroll:u=!0,eventFilter:i}=e;let f=null;const c=r.ref(a.x),v=r.ref(a.y),m=r.ref(null),p=typeof t=="function"?t:po[t],y=O=>{const A=p(O);f=O,A&&([c.value,v.value]=A,m.value="mouse")},w=O=>{if(O.touches.length>0){const A=p(O.touches[0]);A&&([c.value,v.value]=A,m.value="touch")}},b=()=>{if(!f||!l)return;const O=p(f);f instanceof MouseEvent&&O&&(c.value=O[0]+l.scrollX,v.value=O[1]+l.scrollY)},g=()=>{c.value=a.x,v.value=a.y},h=i?O=>i(()=>y(O),{}):O=>y(O),E=i?O=>i(()=>w(O),{}):O=>w(O),k=i?()=>i(()=>b(),{}):()=>b();if(s){const O={passive:!0};R(s,["mousemove","dragover"],h,O),n&&t!=="movement"&&(R(s,["touchstart","touchmove"],E,O),o&&R(s,"touchend",g,O)),u&&t==="page"&&R(l,"scroll",k,{passive:!0})}return{x:c,y:v,sourceType:m}}function nt(e,t={}){const{handleOutside:n=!0,window:o=I}=t,a=t.type||"page",{x:l,y:s,sourceType:u}=tt(t),i=r.ref(e??o?.document.body),f=r.ref(0),c=r.ref(0),v=r.ref(0),m=r.ref(0),p=r.ref(0),y=r.ref(0),w=r.ref(!0);let b=()=>{};return o&&(b=r.watch([i,l,s],()=>{const g=N(i);if(!g||!(g instanceof Element))return;const{left:h,top:E,width:k,height:O}=g.getBoundingClientRect();v.value=h+(a==="page"?o.pageXOffset:0),m.value=E+(a==="page"?o.pageYOffset:0),p.value=O,y.value=k;const A=l.value-v.value,_=s.value-m.value;w.value=k===0||O===0||A<0||_<0||A>k||_>O,(n||!w.value)&&(f.value=A,c.value=_)},{immediate:!0}),R(document,"mouseleave",()=>{w.value=!0})),{x:l,y:s,sourceType:u,elementX:f,elementY:c,elementPositionX:v,elementPositionY:m,elementHeight:p,elementWidth:y,isOutside:w,stop:b}}function yo(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:a=!1,window:l=I}=e,s=r.ref(a),u=r.ref(null);if(!l)return{pressed:s,sourceType:u};const i=v=>()=>{s.value=!0,u.value=v},f=()=>{s.value=!1,u.value=null},c=r.computed(()=>N(e.target)||l);return R(c,"mousedown",i("mouse"),{passive:!0,capture:o}),R(l,"mouseleave",f,{passive:!0,capture:o}),R(l,"mouseup",f,{passive:!0,capture:o}),n&&(R(c,"dragstart",i("mouse"),{passive:!0,capture:o}),R(l,"drop",f,{passive:!0,capture:o}),R(l,"dragend",f,{passive:!0,capture:o})),t&&(R(c,"touchstart",i("touch"),{passive:!0,capture:o}),R(l,"touchend",f,{passive:!0,capture:o}),R(l,"touchcancel",f,{passive:!0,capture:o})),{pressed:s,sourceType:u}}function mo(e={}){const{window:t=I}=e,n=t?.navigator,o=x(()=>n&&"language"in n),a=r.ref(n?.language);return R(t,"languagechange",()=>{n&&(a.value=n.language)}),{isSupported:o,language:a}}function ot(e={}){const{window:t=I}=e,n=t?.navigator,o=x(()=>n&&"connection"in n),a=r.ref(!0),l=r.ref(!1),s=r.ref(void 0),u=r.ref(void 0),i=r.ref(void 0),f=r.ref(void 0),c=r.ref(void 0),v=r.ref(void 0),m=r.ref("unknown"),p=o.value&&n.connection;function y(){n&&(a.value=n.onLine,s.value=a.value?void 0:Date.now(),u.value=a.value?Date.now():void 0,p&&(i.value=p.downlink,f.value=p.downlinkMax,v.value=p.effectiveType,c.value=p.rtt,l.value=p.saveData,m.value=p.type))}return t&&(R(t,"offline",()=>{a.value=!1,s.value=Date.now()}),R(t,"online",()=>{a.value=!0,u.value=Date.now()})),p&&R(p,"change",y,!1),y(),{isSupported:r.readonly(o),isOnline:r.readonly(a),saveData:r.readonly(l),offlineAt:r.readonly(s),onlineAt:r.readonly(u),downlink:r.readonly(i),downlinkMax:r.readonly(f),effectiveType:r.readonly(v),rtt:r.readonly(c),type:r.readonly(m)}}function lt(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=r.ref(new Date),a=()=>o.value=new Date,l=n==="requestAnimationFrame"?D(a,{immediate:!0}):d.useIntervalFn(a,n,{immediate:!0});return t?{now:o,...l}:o}function go(e){const t=r.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return r.watch(()=>d.toValue(e),o=>{n(),o&&(t.value=URL.createObjectURL(o))},{immediate:!0}),d.tryOnScopeDispose(n),r.readonly(t)}function rt(e,t,n){if(typeof e=="function"||r.isReadonly(e))return r.computed(()=>d.clamp(d.toValue(e),d.toValue(t),d.toValue(n)));const o=r.ref(e);return r.computed({get(){return o.value=d.clamp(o.value,d.toValue(t),d.toValue(n))},set(a){o.value=d.clamp(a,d.toValue(t),d.toValue(n))}})}function wo(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:o=1,onPageChange:a=d.noop,onPageSizeChange:l=d.noop,onPageCountChange:s=d.noop}=e,u=rt(n,1,Number.POSITIVE_INFINITY),i=r.computed(()=>Math.max(1,Math.ceil(d.toValue(t)/d.toValue(u)))),f=rt(o,1,i),c=r.computed(()=>f.value===1),v=r.computed(()=>f.value===i.value);r.isRef(o)&&d.syncRef(o,f,{direction:r.isReadonly(o)?"ltr":"both"}),r.isRef(n)&&d.syncRef(n,u,{direction:r.isReadonly(n)?"ltr":"both"});function m(){f.value--}function p(){f.value++}const y={currentPage:f,currentPageSize:u,pageCount:i,isFirstPage:c,isLastPage:v,prev:m,next:p};return r.watch(f,()=>{a(r.reactive(y))}),r.watch(u,()=>{l(r.reactive(y))}),r.watch(i,()=>{s(r.reactive(y))}),y}function ho(e={}){const{isOnline:t}=ot(e);return t}function bo(e={}){const{window:t=I}=e,n=r.ref(!1),o=a=>{if(!t)return;a=a||t.event;const l=a.relatedTarget||a.toElement;n.value=!l};return t&&(R(t,"mouseout",o,{passive:!0}),R(t.document,"mouseleave",o,{passive:!0}),R(t.document,"mouseenter",o,{passive:!0})),n}function at(e={}){const{window:t=I}=e,n=x(()=>t&&"screen"in t&&"orientation"in t.screen),o=n.value?t.screen.orientation:{},a=r.ref(o.type),l=r.ref(o.angle||0);return n.value&&R(t,"orientationchange",()=>{a.value=o.type,l.value=o.angle}),{isSupported:n,orientation:a,angle:l,lockOrientation:i=>n.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof o.unlock=="function"&&o.unlock()}}}function So(e,t={}){const{deviceOrientationTiltAdjust:n=b=>b,deviceOrientationRollAdjust:o=b=>b,mouseTiltAdjust:a=b=>b,mouseRollAdjust:l=b=>b,window:s=I}=t,u=r.reactive(qe({window:s})),i=r.reactive(at({window:s})),{elementX:f,elementY:c,elementWidth:v,elementHeight:m}=nt(e,{handleOutside:!1,window:s}),p=r.computed(()=>u.isSupported&&(u.alpha!=null&&u.alpha!==0||u.gamma!=null&&u.gamma!==0)?"deviceOrientation":"mouse"),y=r.computed(()=>{if(p.value==="deviceOrientation"){let b;switch(i.orientation){case"landscape-primary":b=u.gamma/90;break;case"landscape-secondary":b=-u.gamma/90;break;case"portrait-primary":b=-u.beta/90;break;case"portrait-secondary":b=u.beta/90;break;default:b=-u.beta/90}return o(b)}else{const b=-(c.value-m.value/2)/m.value;return l(b)}}),w=r.computed(()=>{if(p.value==="deviceOrientation"){let b;switch(i.orientation){case"landscape-primary":b=u.beta/90;break;case"landscape-secondary":b=-u.beta/90;break;case"portrait-primary":b=u.gamma/90;break;case"portrait-secondary":b=-u.gamma/90;break;default:b=u.gamma/90}return n(b)}else{const b=(f.value-v.value/2)/v.value;return a(b)}});return{roll:y,tilt:w,source:p}}function Eo(e=Be()){const t=r.shallowRef(),n=()=>{const o=N(e);o&&(t.value=o.parentElement)};return d.tryOnMounted(n),r.watch(()=>d.toValue(e),n),t}function To(e,t){const{window:n=I,immediate:o=!0,...a}=e,l=x(()=>n&&"PerformanceObserver"in n);let s;const u=()=>{s?.disconnect()},i=()=>{l.value&&(u(),s=new PerformanceObserver(t),s.observe(a))};return d.tryOnScopeDispose(u),o&&i(),{isSupported:l,start:i,stop:u}}const ut={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Oo=Object.keys(ut);function ko(e={}){const{target:t=I}=e,n=r.ref(!1),o=r.ref(e.initialValue||{});Object.assign(o.value,ut,o.value);const a=l=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(l.pointerType))&&(o.value=d.objectPick(l,Oo,!1))};if(t){const l={passive:!0};R(t,["pointerdown","pointermove","pointerup"],a,l),R(t,"pointerleave",()=>n.value=!1,l)}return{...d.toRefs(o),isInside:n}}function _o(e,t={}){const{document:n=B}=t,o=x(()=>n&&"pointerLockElement"in n),a=r.ref(),l=r.ref();let s;o.value&&(R(n,"pointerlockchange",()=>{var f;const c=(f=n.pointerLockElement)!=null?f:a.value;s&&c===s&&(a.value=n.pointerLockElement,a.value||(s=l.value=null))}),R(n,"pointerlockerror",()=>{var f;const c=(f=n.pointerLockElement)!=null?f:a.value;if(s&&c===s){const v=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${v} pointer lock.`)}}));async function u(f){var c;if(!o.value)throw new Error("Pointer Lock API is not supported by your browser.");if(l.value=f instanceof Event?f.currentTarget:null,s=f instanceof Event?(c=N(e))!=null?c:l.value:N(f),!s)throw new Error("Target element undefined.");return s.requestPointerLock(),await d.until(a).toBe(s)}async function i(){return a.value?(n.exitPointerLock(),await d.until(a).toBeNull(),!0):!1}return{isSupported:o,element:a,triggerElement:l,lock:u,unlock:i}}function Ro(e,t={}){const n=d.toRef(e),{threshold:o=50,onSwipe:a,onSwipeEnd:l,onSwipeStart:s,disableTextSelect:u=!1}=t,i=r.reactive({x:0,y:0}),f=(_,F)=>{i.x=_,i.y=F},c=r.reactive({x:0,y:0}),v=(_,F)=>{c.x=_,c.y=F},m=r.computed(()=>i.x-c.x),p=r.computed(()=>i.y-c.y),{max:y,abs:w}=Math,b=r.computed(()=>y(w(m.value),w(p.value))>=o),g=r.ref(!1),h=r.ref(!1),E=r.computed(()=>b.value?w(m.value)>w(p.value)?m.value>0?"left":"right":p.value>0?"up":"down":"none"),k=_=>{var F,C,T;const P=_.buttons===0,V=_.buttons===1;return(T=(C=(F=t.pointerTypes)==null?void 0:F.includes(_.pointerType))!=null?C:P||V)!=null?T:!0},O=[R(e,"pointerdown",_=>{if(!k(_))return;h.value=!0;const F=_.target;F?.setPointerCapture(_.pointerId);const{clientX:C,clientY:T}=_;f(C,T),v(C,T),s?.(_)}),R(e,"pointermove",_=>{if(!k(_)||!h.value)return;const{clientX:F,clientY:C}=_;v(F,C),!g.value&&b.value&&(g.value=!0),g.value&&a?.(_)}),R(e,"pointerup",_=>{k(_)&&(g.value&&l?.(_,E.value),h.value=!1,g.value=!1)})];d.tryOnMounted(()=>{var _,F,C,T,P,V,L,$;(F=(_=n.value)==null?void 0:_.style)==null||F.setProperty("touch-action","none"),u&&((T=(C=n.value)==null?void 0:C.style)==null||T.setProperty("-webkit-user-select","none"),(V=(P=n.value)==null?void 0:P.style)==null||V.setProperty("-ms-user-select","none"),($=(L=n.value)==null?void 0:L.style)==null||$.setProperty("user-select","none"))});const A=()=>O.forEach(_=>_());return{isSwiping:r.readonly(g),direction:r.readonly(E),posStart:r.readonly(i),posEnd:r.readonly(c),distanceX:m,distanceY:p,stop:A}}function Fo(e){const t=G("(prefers-color-scheme: light)",e),n=G("(prefers-color-scheme: dark)",e);return r.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Po(e){const t=G("(prefers-contrast: more)",e),n=G("(prefers-contrast: less)",e),o=G("(prefers-contrast: custom)",e);return r.computed(()=>t.value?"more":n.value?"less":o.value?"custom":"no-preference")}function Co(e={}){const{window:t=I}=e;if(!t)return r.ref(["en"]);const n=t.navigator,o=r.ref(n.languages);return R(t,"languagechange",()=>{o.value=n.languages}),o}function Vo(e){const t=G("(prefers-reduced-motion: reduce)",e);return r.computed(()=>t.value?"reduce":"no-preference")}function Ao(e,t){const n=r.shallowRef(t);return r.watch(d.toRef(e),(o,a)=>{n.value=a},{flush:"sync"}),r.readonly(n)}const st="--vueuse-safe-area-top",it="--vueuse-safe-area-right",ct="--vueuse-safe-area-bottom",ft="--vueuse-safe-area-left";function Io(){const e=r.ref(""),t=r.ref(""),n=r.ref(""),o=r.ref("");if(d.isClient){const l=ae(st),s=ae(it),u=ae(ct),i=ae(ft);l.value="env(safe-area-inset-top, 0px)",s.value="env(safe-area-inset-right, 0px)",u.value="env(safe-area-inset-bottom, 0px)",i.value="env(safe-area-inset-left, 0px)",a(),R("resize",d.useDebounceFn(a))}function a(){e.value=be(st),t.value=be(it),n.value=be(ct),o.value=be(ft)}return{top:e,right:t,bottom:n,left:o,update:a}}function be(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Mo(e,t=d.noop,n={}){const{immediate:o=!0,manual:a=!1,type:l="text/javascript",async:s=!0,crossOrigin:u,referrerPolicy:i,noModule:f,defer:c,document:v=B,attrs:m={}}=n,p=r.ref(null);let y=null;const w=h=>new Promise((E,k)=>{const O=F=>(p.value=F,E(F),F);if(!v){E(!1);return}let A=!1,_=v.querySelector(`script[src="${d.toValue(e)}"]`);_?_.hasAttribute("data-loaded")&&O(_):(_=v.createElement("script"),_.type=l,_.async=s,_.src=d.toValue(e),c&&(_.defer=c),u&&(_.crossOrigin=u),f&&(_.noModule=f),i&&(_.referrerPolicy=i),Object.entries(m).forEach(([F,C])=>_?.setAttribute(F,C)),A=!0),_.addEventListener("error",F=>k(F)),_.addEventListener("abort",F=>k(F)),_.addEventListener("load",()=>{_.setAttribute("data-loaded","true"),t(_),O(_)}),A&&(_=v.head.appendChild(_)),h||O(_)}),b=(h=!0)=>(y||(y=w(h)),y),g=()=>{if(!v)return;y=null,p.value&&(p.value=null);const h=v.querySelector(`script[src="${d.toValue(e)}"]`);h&&v.head.removeChild(h)};return o&&!a&&d.tryOnMounted(b),a||d.tryOnUnmounted(g),{scriptTag:p,load:b,unload:g}}function dt(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:dt(n)}}function Lo(e){const t=e||window.event,n=t.target;return dt(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Pe=new WeakMap;function No(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(d.toRef(e),u=>{const i=he(d.toValue(u));if(i){const f=i;if(Pe.get(f)||Pe.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(a=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const l=()=>{const u=he(d.toValue(e));!u||n.value||(d.isIOS&&(o=R(u,"touchmove",i=>{Lo(i)},{passive:!1})),u.style.overflow="hidden",n.value=!0)},s=()=>{const u=he(d.toValue(e));!u||!n.value||(d.isIOS&&o?.(),u.style.overflow=a,Pe.delete(u),n.value=!1)};return d.tryOnScopeDispose(s),r.computed({get(){return n.value},set(u){u?l():s()}})}function xo(e,t,n={}){const{window:o=I}=n;return me(e,t,o?.sessionStorage,n)}function Uo(e={},t={}){const{navigator:n=H}=t,o=n,a=x(()=>o&&"canShare"in o);return{isSupported:a,share:async(s={})=>{if(a.value){const u={...d.toValue(e),...d.toValue(s)};let i=!0;if(u.files&&o.canShare&&(i=o.canShare({files:u.files})),i)return o.share(u)}}}}const Wo=(e,t)=>e.sort(t),Se=(e,t)=>e-t;function Ho(...e){var t,n,o,a;const[l]=e;let s=Se,u={};e.length===2?typeof e[1]=="object"?(u=e[1],s=(t=u.compareFn)!=null?t:Se):s=(n=e[1])!=null?n:Se:e.length>2&&(s=(o=e[1])!=null?o:Se,u=(a=e[2])!=null?a:{});const{dirty:i=!1,sortFn:f=Wo}=u;return i?(r.watchEffect(()=>{const c=f(d.toValue(l),s);r.isRef(l)?l.value=c:l.splice(0,l.length,...c)}),l):r.computed(()=>f([...d.toValue(l)],s))}function $o(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:o=1,window:a=I}=e,l=d.toRef(e.lang||"en-US"),s=r.ref(!1),u=r.ref(!1),i=r.ref(""),f=r.shallowRef(void 0),c=(b=!s.value)=>{s.value=b},v=()=>{s.value=!0},m=()=>{s.value=!1},p=a&&(a.SpeechRecognition||a.webkitSpeechRecognition),y=x(()=>p);let w;return y.value&&(w=new p,w.continuous=n,w.interimResults=t,w.lang=d.toValue(l),w.maxAlternatives=o,w.onstart=()=>{u.value=!1},r.watch(l,b=>{w&&!s.value&&(w.lang=b)}),w.onresult=b=>{const g=b.results[b.resultIndex],{transcript:h}=g[0];u.value=g.isFinal,i.value=h,f.value=void 0},w.onerror=b=>{f.value=b},w.onend=()=>{s.value=!1,w.lang=d.toValue(l)},r.watch(s,()=>{s.value?w.start():w.stop()})),d.tryOnScopeDispose(()=>{s.value=!1}),{isSupported:y,isListening:s,isFinal:u,recognition:w,result:i,error:f,toggle:c,start:v,stop:m}}function Bo(e,t={}){const{pitch:n=1,rate:o=1,volume:a=1,window:l=I}=t,s=l&&l.speechSynthesis,u=x(()=>s),i=r.ref(!1),f=r.ref("init"),c=d.toRef(e||""),v=d.toRef(t.lang||"en-US"),m=r.shallowRef(void 0),p=(h=!i.value)=>{i.value=h},y=h=>{h.lang=d.toValue(v),h.voice=d.toValue(t.voice)||null,h.pitch=d.toValue(n),h.rate=d.toValue(o),h.volume=a,h.onstart=()=>{i.value=!0,f.value="play"},h.onpause=()=>{i.value=!1,f.value="pause"},h.onresume=()=>{i.value=!0,f.value="play"},h.onend=()=>{i.value=!1,f.value="end"},h.onerror=E=>{m.value=E}},w=r.computed(()=>{i.value=!1,f.value="init";const h=new SpeechSynthesisUtterance(c.value);return y(h),h}),b=()=>{s.cancel(),w&&s.speak(w.value)},g=()=>{s.cancel(),i.value=!1};return u.value&&(y(w.value),r.watch(v,h=>{w.value&&!i.value&&(w.value.lang=h)}),t.voice&&r.watch(t.voice,()=>{s.cancel()}),r.watch(i,()=>{i.value?s.resume():s.pause()})),d.tryOnScopeDispose(()=>{i.value=!1}),{isSupported:u,isPlaying:i,status:f,utterance:w,error:m,stop:g,toggle:p,speak:b}}function jo(e,t){const n=r.ref(e),o=r.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),a=r.ref(o.value.indexOf(t??o.value[0])),l=r.computed(()=>c(a.value)),s=r.computed(()=>a.value===0),u=r.computed(()=>a.value===o.value.length-1),i=r.computed(()=>o.value[a.value+1]),f=r.computed(()=>o.value[a.value-1]);function c(O){return Array.isArray(n.value)?n.value[O]:n.value[o.value[O]]}function v(O){if(o.value.includes(O))return c(o.value.indexOf(O))}function m(O){o.value.includes(O)&&(a.value=o.value.indexOf(O))}function p(){u.value||a.value++}function y(){s.value||a.value--}function w(O){k(O)&&m(O)}function b(O){return o.value.indexOf(O)===a.value+1}function g(O){return o.value.indexOf(O)===a.value-1}function h(O){return o.value.indexOf(O)===a.value}function E(O){return a.value<o.value.indexOf(O)}function k(O){return a.value>o.value.indexOf(O)}return{steps:n,stepNames:o,index:a,current:l,next:i,previous:f,isFirst:s,isLast:u,at:c,get:v,goTo:m,goToNext:p,goToPrevious:y,goBackTo:w,isNext:b,isPrevious:g,isCurrent:h,isBefore:E,isAfter:k}}function zo(e,t,n,o={}){var a;const{flush:l="pre",deep:s=!0,listenToStorageChanges:u=!0,writeDefaults:i=!0,mergeDefaults:f=!1,shallow:c,window:v=I,eventFilter:m,onError:p=E=>{console.error(E)}}=o,y=d.toValue(t),w=He(y),b=(c?r.shallowRef:r.ref)(t),g=(a=o.serializer)!=null?a:Oe[w];if(!n)try{n=ye("getDefaultStorageAsync",()=>{var E;return(E=I)==null?void 0:E.localStorage})()}catch(E){p(E)}async function h(E){if(!(!n||E&&E.key!==e))try{const k=E?E.newValue:await n.getItem(e);if(k==null)b.value=y,i&&y!==null&&await n.setItem(e,await g.write(y));else if(f){const O=await g.read(k);typeof f=="function"?b.value=f(O,y):w==="object"&&!Array.isArray(O)?b.value={...y,...O}:b.value=O}else b.value=await g.read(k)}catch(k){p(k)}}return h(),v&&u&&R(v,"storage",E=>Promise.resolve().then(()=>h(E))),n&&d.watchWithFilter(b,async()=>{try{b.value==null?await n.removeItem(e):await n.setItem(e,await g.write(b.value))}catch(E){p(E)}},{flush:l,deep:s,eventFilter:m}),b}let qo=0;function Go(e,t={}){const n=r.ref(!1),{document:o=B,immediate:a=!0,manual:l=!1,id:s=`vueuse_styletag_${++qo}`}=t,u=r.ref(e);let i=()=>{};const f=()=>{if(!o)return;const v=o.getElementById(s)||o.createElement("style");v.isConnected||(v.id=s,t.media&&(v.media=t.media),o.head.appendChild(v)),!n.value&&(i=r.watch(u,m=>{v.textContent=m},{immediate:!0}),n.value=!0)},c=()=>{!o||!n.value||(i(),o.head.removeChild(o.getElementById(s)),n.value=!1)};return a&&!l&&d.tryOnMounted(f),l||d.tryOnScopeDispose(c),{id:s,css:u,unload:c,load:f,isLoaded:r.readonly(n)}}function Yo(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:a,onSwipeStart:l,passive:s=!0,window:u=I}=t,i=r.reactive({x:0,y:0}),f=r.reactive({x:0,y:0}),c=r.computed(()=>i.x-f.x),v=r.computed(()=>i.y-f.y),{max:m,abs:p}=Math,y=r.computed(()=>m(p(c.value),p(v.value))>=n),w=r.ref(!1),b=r.computed(()=>y.value?p(c.value)>p(v.value)?c.value>0?"left":"right":v.value>0?"up":"down":"none"),g=C=>[C.touches[0].clientX,C.touches[0].clientY],h=(C,T)=>{i.x=C,i.y=T},E=(C,T)=>{f.x=C,f.y=T};let k;const O=Xo(u?.document);s?k=O?{passive:!0}:{capture:!1}:k=O?{passive:!1,capture:!0}:{capture:!0};const A=C=>{w.value&&a?.(C,b.value),w.value=!1},_=[R(e,"touchstart",C=>{if(C.touches.length!==1)return;k.capture&&!k.passive&&C.preventDefault();const[T,P]=g(C);h(T,P),E(T,P),l?.(C)},k),R(e,"touchmove",C=>{if(C.touches.length!==1)return;const[T,P]=g(C);E(T,P),!w.value&&y.value&&(w.value=!0),w.value&&o?.(C)},k),R(e,["touchend","touchcancel"],A,k)];return{isPassiveEventSupported:O,isSwiping:w,direction:b,coordsStart:i,coordsEnd:f,lengthX:c,lengthY:v,stop:()=>_.forEach(C=>C())}}function Xo(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",d.noop,n),e.removeEventListener("x",d.noop),t}function Ko(){const e=r.ref([]);return e.value.set=t=>{t&&e.value.push(t)},r.onBeforeUpdate(()=>{e.value.length=0}),e}function Jo(e={}){const{document:t=B,selector:n="html",observe:o=!1,initialValue:a="ltr"}=e;function l(){var u,i;return(i=(u=t?.querySelector(n))==null?void 0:u.getAttribute("dir"))!=null?i:a}const s=r.ref(l());return d.tryOnMounted(()=>s.value=l()),o&&t&&ne(t.querySelector(n),()=>s.value=l(),{attributes:!0}),r.computed({get(){return s.value},set(u){var i,f;s.value=u,t&&(s.value?(i=t.querySelector(n))==null||i.setAttribute("dir",s.value):(f=t.querySelector(n))==null||f.removeAttribute("dir"))}})}function Qo(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(o,a)=>e.getRangeAt(a))}function Zo(e={}){const{window:t=I}=e,n=r.ref(null),o=r.computed(()=>{var u,i;return(i=(u=n.value)==null?void 0:u.toString())!=null?i:""}),a=r.computed(()=>n.value?Qo(n.value):[]),l=r.computed(()=>a.value.map(u=>u.getBoundingClientRect()));function s(){n.value=null,t&&(n.value=t.getSelection())}return t&&R(t.document,"selectionchange",s),{text:o,rects:l,ranges:a,selection:n}}function Do(e){var t;const n=r.ref(e?.element),o=r.ref(e?.input),a=(t=e?.styleProp)!=null?t:"height",l=r.ref(1),s=r.ref(0);function u(){var i;if(!n.value)return;let f="";n.value.style[a]="1px",l.value=(i=n.value)==null?void 0:i.scrollHeight;const c=d.toValue(e?.styleTarget);c?c.style[a]=`${l.value}px`:f=`${l.value}px`,n.value.style[a]=f}return r.watch([o,n],()=>r.nextTick(u),{immediate:!0}),r.watch(l,()=>{var i;return(i=e?.onResize)==null?void 0:i.call(e)}),ge(n,([{contentRect:i}])=>{s.value!==i.width&&(s.value=i.width,u())}),e?.watch&&r.watch(e.watch,u,{immediate:!0,deep:!0}),{textarea:n,input:o,triggerResize:u}}function el(e,t={}){const{throttle:n=200,trailing:o=!0}=t,a=d.throttleFilter(n,o);return{..._e(e,{...t,eventFilter:a})}}const tl=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],nl={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function ol(e){return e.toISOString().slice(0,10)}function ll(e,t={}){const{controls:n=!1,updateInterval:o=3e4}=t,{now:a,...l}=lt({interval:o,controls:!0}),s=r.computed(()=>vt(new Date(d.toValue(e)),t,d.toValue(a)));return n?{timeAgo:s,...l}:s}function vt(e,t={},n=Date.now()){var o;const{max:a,messages:l=nl,fullDateFormatter:s=ol,units:u=tl,showSecond:i=!1,rounding:f="round"}=t,c=typeof f=="number"?b=>+b.toFixed(f):Math[f],v=+n-+e,m=Math.abs(v);function p(b,g){return c(Math.abs(b)/g.value)}function y(b,g){const h=p(b,g),E=b>0,k=w(g.name,h,E);return w(E?"past":"future",k,E)}function w(b,g,h){const E=l[b];return typeof E=="function"?E(g,h):E.replace("{0}",g.toString())}if(m<6e4&&!i)return l.justNow;if(typeof a=="number"&&m>a)return s(new Date(e));if(typeof a=="string"){const b=(o=u.find(g=>g.name===a))==null?void 0:o.max;if(b&&m>b)return s(new Date(e))}for(const[b,g]of u.entries()){if(p(v,g)<=0&&u[b-1])return y(v,u[b-1]);if(m<g.max)return y(v,g)}return l.invalid}function rl(e,t,n){const{start:o}=d.useTimeoutFn(l,t,{immediate:!1}),a=r.ref(!1);async function l(){a.value&&(await e(),o())}function s(){a.value||(a.value=!0,l())}function u(){a.value=!1}return n?.immediate&&s(),d.tryOnScopeDispose(u),{isActive:a,pause:u,resume:s}}function al(e={}){const{controls:t=!1,offset:n=0,immediate:o=!0,interval:a="requestAnimationFrame",callback:l}=e,s=r.ref(d.timestamp()+n),u=()=>s.value=d.timestamp()+n,i=l?()=>{u(),l(s.value)}:u,f=a==="requestAnimationFrame"?D(i,{immediate:o}):d.useIntervalFn(i,a,{immediate:o});return t?{timestamp:s,...f}:s}function ul(e=null,t={}){var n,o,a;const{document:l=B,restoreOnUnmount:s=v=>v}=t,u=(n=l?.title)!=null?n:"",i=d.toRef((o=e??l?.title)!=null?o:null),f=e&&typeof e=="function";function c(v){if(!("titleTemplate"in t))return v;const m=t.titleTemplate||"%s";return typeof m=="function"?m(v):d.toValue(m).replace(/%s/g,v)}return r.watch(i,(v,m)=>{v!==m&&l&&(l.title=c(typeof v=="string"?v:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&l&&!f&&ne((a=l.head)==null?void 0:a.querySelector("title"),()=>{l&&l.title!==i.value&&(i.value=c(l.title))},{childList:!0}),d.tryOnBeforeUnmount(()=>{if(s){const v=s(u,i.value||"");v!=null&&l&&(l.title=v)}}),i}const sl={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]},il=Object.assign({},{linear:d.identity},sl);function cl([e,t,n,o]){const a=(c,v)=>1-3*v+3*c,l=(c,v)=>3*v-6*c,s=c=>3*c,u=(c,v,m)=>((a(v,m)*c+l(v,m))*c+s(v))*c,i=(c,v,m)=>3*a(v,m)*c*c+2*l(v,m)*c+s(v),f=c=>{let v=c;for(let m=0;m<4;++m){const p=i(v,e,n);if(p===0)return v;const y=u(v,e,n)-c;v-=y/p}return v};return c=>e===t&&n===o?c:u(f(c),t,o)}function pt(e,t,n){return e+n*(t-e)}function Ce(e){return(typeof e=="number"?[e]:e)||[]}function yt(e,t,n,o={}){var a,l;const s=d.toValue(t),u=d.toValue(n),i=Ce(s),f=Ce(u),c=(a=d.toValue(o.duration))!=null?a:1e3,v=Date.now(),m=Date.now()+c,p=typeof o.transition=="function"?o.transition:(l=d.toValue(o.transition))!=null?l:d.identity,y=typeof p=="function"?p:cl(p);return new Promise(w=>{e.value=s;const b=()=>{var g;if((g=o.abort)!=null&&g.call(o)){w();return}const h=Date.now(),E=y((h-v)/c),k=Ce(e.value).map((O,A)=>pt(i[A],f[A],E));Array.isArray(e.value)?e.value=k.map((O,A)=>{var _,F;return pt((_=i[A])!=null?_:0,(F=f[A])!=null?F:0,E)}):typeof e.value=="number"&&(e.value=k[0]),h<m?requestAnimationFrame(b):(e.value=u,w())};b()})}function fl(e,t={}){let n=0;const o=()=>{const l=d.toValue(e);return typeof l=="number"?l:l.map(d.toValue)},a=r.ref(o());return r.watch(o,async l=>{var s,u;if(d.toValue(t.disabled))return;const i=++n;if(t.delay&&await d.promiseTimeout(d.toValue(t.delay)),i!==n)return;const f=Array.isArray(l)?l.map(d.toValue):d.toValue(l);(s=t.onStarted)==null||s.call(t),await yt(a,a.value,f,{...t,abort:()=>{var c;return i!==n||((c=t.abort)==null?void 0:c.call(t))}}),(u=t.onFinished)==null||u.call(t)},{deep:!0}),r.watch(()=>d.toValue(t.disabled),l=>{l&&(n++,a.value=o())}),d.tryOnScopeDispose(()=>{n++}),r.computed(()=>d.toValue(t.disabled)?o():a.value)}function dl(e="history",t={}){const{initialValue:n={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:l=!0,window:s=I}=t;if(!s)return r.reactive(n);const u=r.reactive({});function i(){if(e==="history")return s.location.search||"";if(e==="hash"){const g=s.location.hash||"",h=g.indexOf("?");return h>0?g.slice(h):""}else return(s.location.hash||"").replace(/^#/,"")}function f(g){const h=g.toString();if(e==="history")return`${h?`?${h}`:""}${s.location.hash||""}`;if(e==="hash-params")return`${s.location.search||""}${h?`#${h}`:""}`;const E=s.location.hash||"#",k=E.indexOf("?");return k>0?`${E.slice(0,k)}${h?`?${h}`:""}`:`${E}${h?`?${h}`:""}`}function c(){return new URLSearchParams(i())}function v(g){const h=new Set(Object.keys(u));for(const E of g.keys()){const k=g.getAll(E);u[E]=k.length>1?k:g.get(E)||"",h.delete(E)}Array.from(h).forEach(E=>delete u[E])}const{pause:m,resume:p}=d.pausableWatch(u,()=>{const g=new URLSearchParams("");Object.keys(u).forEach(h=>{const E=u[h];Array.isArray(E)?E.forEach(k=>g.append(h,k)):o&&E==null||a&&!E?g.delete(h):g.set(h,E)}),y(g)},{deep:!0});function y(g,h){m(),h&&v(g),s.history.replaceState(s.history.state,s.document.title,s.location.pathname+f(g)),p()}function w(){l&&y(c(),!0)}R(s,"popstate",w,!1),e!=="history"&&R(s,"hashchange",w,!1);const b=c();return b.keys().next().value?v(b):Object.assign(u,n),u}function vl(e={}){var t,n;const o=r.ref((t=e.enabled)!=null?t:!1),a=r.ref((n=e.autoSwitch)!=null?n:!0),l=r.ref(e.constraints),{navigator:s=H}=e,u=x(()=>{var w;return(w=s?.mediaDevices)==null?void 0:w.getUserMedia}),i=r.shallowRef();function f(w){switch(w){case"video":{if(l.value)return l.value.video||!1;break}case"audio":{if(l.value)return l.value.audio||!1;break}}}async function c(){if(!(!u.value||i.value))return i.value=await s.mediaDevices.getUserMedia({video:f("video"),audio:f("audio")}),i.value}function v(){var w;(w=i.value)==null||w.getTracks().forEach(b=>b.stop()),i.value=void 0}function m(){v(),o.value=!1}async function p(){return await c(),i.value&&(o.value=!0),i.value}async function y(){return v(),await p()}return r.watch(o,w=>{w?c():v()},{immediate:!0}),r.watch(l,()=>{a.value&&i.value&&y()},{immediate:!0}),d.tryOnScopeDispose(()=>{m()}),{isSupported:u,stream:i,start:p,stop:m,restart:y,constraints:l,enabled:o,autoSwitch:a}}function mt(e,t,n,o={}){var a,l,s,u,i;const{clone:f=!1,passive:c=!1,eventName:v,deep:m=!1,defaultValue:p,shouldEmit:y}=o,w=r.getCurrentInstance(),b=n||w?.emit||((a=w?.$emit)==null?void 0:a.bind(w))||((s=(l=w?.proxy)==null?void 0:l.$emit)==null?void 0:s.bind(w?.proxy));let g=v;if(!t)if(r.isVue2){const O=(i=(u=w?.proxy)==null?void 0:u.$options)==null?void 0:i.model;t=O?.value||"value",v||(g=O?.event||"input")}else t="modelValue";g=g||`update:${t.toString()}`;const h=O=>f?typeof f=="function"?f(O):re(O):O,E=()=>d.isDef(e[t])?h(e[t]):p,k=O=>{y?y(O)&&b(g,O):b(g,O)};if(c){const O=E(),A=r.ref(O);let _=!1;return r.watch(()=>e[t],F=>{_||(_=!0,A.value=h(F),r.nextTick(()=>_=!1))}),r.watch(A,F=>{!_&&(F!==e[t]||m)&&k(F)},{deep:m}),A}else return r.computed({get(){return E()},set(O){k(O)}})}function pl(e,t,n={}){const o={};for(const a in e)o[a]=mt(e,a,t,n);return o}function yl(e){const{pattern:t=[],interval:n=0,navigator:o=H}=e||{},a=x(()=>typeof o<"u"&&"vibrate"in o),l=d.toRef(t);let s;const u=(f=l.value)=>{a.value&&o.vibrate(f)},i=()=>{a.value&&o.vibrate(0),s?.pause()};return n>0&&(s=d.useIntervalFn(u,n,{immediate:!1,immediateCallback:!1})),{isSupported:a,pattern:t,intervalControls:s,vibrate:u,stop:i}}function ml(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:a,calculateRange:l,currentList:s,containerRef:u}="itemHeight"in t?hl(t,e):wl(t,e);return{list:s,scrollTo:a,containerProps:{ref:u,onScroll:()=>{l()},style:n},wrapperProps:o}}function gt(e){const t=r.ref(null),n=Ye(t),o=r.ref([]),a=r.shallowRef(e);return{state:r.ref({start:0,end:10}),source:a,currentList:o,size:n,containerRef:t}}function wt(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:a=0}=e.value;let l=0,s=0;for(let u=a;u<t.value.length;u++){const i=n(u);if(l+=i,s=u,l>o)break}return s-a}}function ht(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,a=0;for(let l=0;l<e.value.length;l++){const s=t(l);if(o+=s,o>=n){a=l;break}}return a+1}}function bt(e,t,n,o,{containerRef:a,state:l,currentList:s,source:u}){return()=>{const i=a.value;if(i){const f=n(e==="vertical"?i.scrollTop:i.scrollLeft),c=o(e==="vertical"?i.clientHeight:i.clientWidth),v=f-t,m=f+c+t;l.value={start:v<0?0:v,end:m>u.value.length?u.value.length:m},s.value=u.value.slice(l.value.start,l.value.end).map((p,y)=>({data:p,index:y+l.value.start}))}}}function St(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((a,l,s)=>a+e(s),0)}function Et(e,t,n,o){r.watch([e.width,e.height,t,n],()=>{o()})}function Tt(e,t){return r.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,a)=>n+e(a),0))}const gl={horizontal:"scrollLeft",vertical:"scrollTop"};function Ot(e,t,n,o){return a=>{o.value&&(o.value[gl[e]]=n(a),t())}}function wl(e,t){const n=gt(t),{state:o,source:a,currentList:l,size:s,containerRef:u}=n,i={overflowX:"auto"},{itemWidth:f,overscan:c=5}=e,v=wt(o,a,f),m=ht(a,f),p=bt("horizontal",c,m,v,n),y=St(f,a),w=r.computed(()=>y(o.value.start)),b=Tt(f,a);Et(s,t,u,p);const g=Ot("horizontal",p,y,u),h=r.computed(()=>({style:{height:"100%",width:`${b.value-w.value}px`,marginLeft:`${w.value}px`,display:"flex"}}));return{scrollTo:g,calculateRange:p,wrapperProps:h,containerStyle:i,currentList:l,containerRef:u}}function hl(e,t){const n=gt(t),{state:o,source:a,currentList:l,size:s,containerRef:u}=n,i={overflowY:"auto"},{itemHeight:f,overscan:c=5}=e,v=wt(o,a,f),m=ht(a,f),p=bt("vertical",c,m,v,n),y=St(f,a),w=r.computed(()=>y(o.value.start)),b=Tt(f,a);Et(s,t,u,p);const g=Ot("vertical",p,y,u),h=r.computed(()=>({style:{width:"100%",height:`${b.value-w.value}px`,marginTop:`${w.value}px`}}));return{calculateRange:p,scrollTo:g,containerStyle:i,wrapperProps:h,currentList:l,containerRef:u}}function bl(e={}){const{navigator:t=H,document:n=B}=e,o=r.ref(!1),a=r.shallowRef(null),l=Ge({document:n}),s=x(()=>t&&"wakeLock"in t),u=r.computed(()=>!!a.value&&l.value==="visible");s.value&&(R(a,"release",()=>{var v,m;o.value=(m=(v=a.value)==null?void 0:v.type)!=null?m:!1}),d.whenever(()=>l.value==="visible"&&n?.visibilityState==="visible"&&o.value,v=>{o.value=!1,i(v)}));async function i(v){var m;await((m=a.value)==null?void 0:m.release()),a.value=s.value?await t.wakeLock.request(v):null}async function f(v){l.value==="visible"?await i(v):o.value=v}async function c(){o.value=!1;const v=a.value;a.value=null,await v?.release()}return{sentinel:a,isSupported:s,isActive:u,request:f,forceRequest:i,release:c}}function Sl(e={}){const{window:t=I,requestPermissions:n=!0}=e,o=e,a=x(()=>{if(!t||!("Notification"in t))return!1;try{new Notification("")}catch{return!1}return!0}),l=r.ref(a.value&&"permission"in Notification&&Notification.permission==="granted"),s=r.ref(null),u=async()=>{if(a.value)return!l.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(l.value=!0),l.value},{on:i,trigger:f}=d.createEventHook(),{on:c,trigger:v}=d.createEventHook(),{on:m,trigger:p}=d.createEventHook(),{on:y,trigger:w}=d.createEventHook(),b=async h=>{if(!a.value||!l.value)return;const E=Object.assign({},o,h);return s.value=new Notification(E.title||"",E),s.value.onclick=f,s.value.onshow=v,s.value.onerror=p,s.value.onclose=w,s.value},g=()=>{s.value&&s.value.close(),s.value=null};if(n&&d.tryOnMounted(u),d.tryOnScopeDispose(g),a.value&&t){const h=t.document;R(h,"visibilitychange",E=>{E.preventDefault(),h.visibilityState==="visible"&&g()})}return{isSupported:a,notification:s,ensurePermissions:u,permissionGranted:l,show:b,close:g,onClick:i,onShow:c,onError:m,onClose:y}}const kt="ping";function Ve(e){return e===!0?{}:e}function El(e,t={}){const{onConnected:n,onDisconnected:o,onError:a,onMessage:l,immediate:s=!0,autoClose:u=!0,protocols:i=[]}=t,f=r.ref(null),c=r.ref("CLOSED"),v=r.ref(),m=d.toRef(e);let p,y,w=!1,b=0,g=[],h;const E=()=>{if(g.length&&v.value&&c.value==="OPEN"){for(const C of g)v.value.send(C);g=[]}},k=()=>{clearTimeout(h),h=void 0},O=(C=1e3,T)=>{!d.isClient||!v.value||(w=!0,k(),p?.(),v.value.close(C,T),v.value=void 0)},A=(C,T=!0)=>!v.value||c.value!=="OPEN"?(T&&g.push(C),!1):(E(),v.value.send(C),!0),_=()=>{if(w||typeof m.value>"u")return;const C=new WebSocket(m.value,i);v.value=C,c.value="CONNECTING",C.onopen=()=>{c.value="OPEN",b=0,n?.(C),y?.(),E()},C.onclose=T=>{if(c.value="CLOSED",o?.(C,T),!w&&t.autoReconnect&&C===v.value){const{retries:P=-1,delay:V=1e3,onFailed:L}=Ve(t.autoReconnect);typeof P=="number"&&(P<0||b<P)?(b+=1,setTimeout(_,V)):typeof P=="function"&&P()?setTimeout(_,V):L?.()}},C.onerror=T=>{a?.(C,T)},C.onmessage=T=>{if(t.heartbeat){k();const{message:P=kt,responseMessage:V=P}=Ve(t.heartbeat);if(T.data===V)return}f.value=T.data,l?.(C,T)}};if(t.heartbeat){const{message:C=kt,interval:T=1e3,pongTimeout:P=1e3}=Ve(t.heartbeat),{pause:V,resume:L}=d.useIntervalFn(()=>{A(C,!1),h==null&&(h=setTimeout(()=>{O(),w=!1},P))},T,{immediate:!1});p=V,y=L}u&&(d.isClient&&R("beforeunload",()=>O()),d.tryOnScopeDispose(O));const F=()=>{!d.isClient&&!d.isWorker||(O(),w=!1,b=0,_())};return s&&F(),r.watch(m,F),{data:f,status:c,close:O,send:A,open:F,ws:v}}function Tl(e,t,n){const{window:o=I}=n??{},a=r.ref(null),l=r.shallowRef(),s=(...i)=>{l.value&&l.value.postMessage(...i)},u=function(){l.value&&l.value.terminate()};return o&&(typeof e=="string"?l.value=new Worker(e,t):typeof e=="function"?l.value=e():l.value=e,l.value.onmessage=i=>{a.value=i.data},d.tryOnScopeDispose(()=>{l.value&&l.value.terminate()})),{data:a,post:s,terminate:u,worker:l}}function Ol(e,t){if(e.length===0&&t.length===0)return"";const n=e.map(l=>`'${l}'`).toString(),o=t.filter(l=>typeof l=="function").map(l=>{const s=l.toString();return s.trim().startsWith("function")?s:`const ${l.name} = ${s}`}).join(";"),a=`importScripts(${n});`;return`${n.trim()===""?"":a} ${o}`}function kl(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(o=>{postMessage(["SUCCESS",o])}).catch(o=>{postMessage(["ERROR",o])})}}function _l(e,t,n){const o=`${Ol(t,n)}; onmessage=(${kl})(${e})`,a=new Blob([o],{type:"text/javascript"});return URL.createObjectURL(a)}function Rl(e,t={}){const{dependencies:n=[],localDependencies:o=[],timeout:a,window:l=I}=t,s=r.ref(),u=r.ref("PENDING"),i=r.ref({}),f=r.ref(),c=(y="PENDING")=>{s.value&&s.value._url&&l&&(s.value.terminate(),URL.revokeObjectURL(s.value._url),i.value={},s.value=void 0,l.clearTimeout(f.value),u.value=y)};c(),d.tryOnScopeDispose(c);const v=()=>{const y=_l(e,n,o),w=new Worker(y);return w._url=y,w.onmessage=b=>{const{resolve:g=()=>{},reject:h=()=>{}}=i.value,[E,k]=b.data;switch(E){case"SUCCESS":g(k),c(E);break;default:h(k),c("ERROR");break}},w.onerror=b=>{const{reject:g=()=>{}}=i.value;b.preventDefault(),g(b),c("ERROR")},a&&(f.value=setTimeout(()=>c("TIMEOUT_EXPIRED"),a)),w},m=(...y)=>new Promise((w,b)=>{var g;i.value={resolve:w,reject:b},(g=s.value)==null||g.postMessage([[...y]]),u.value="RUNNING"});return{workerFn:(...y)=>u.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(s.value=v(),m(...y)),workerStatus:u,workerTerminate:c}}function Fl(e={}){const{window:t=I}=e;if(!t)return r.ref(!1);const n=r.ref(t.document.hasFocus());return R(t,"blur",()=>{n.value=!1}),R(t,"focus",()=>{n.value=!0}),n}function Pl(e={}){const{window:t=I,behavior:n="auto"}=e;if(!t)return{x:r.ref(0),y:r.ref(0)};const o=r.ref(t.scrollX),a=r.ref(t.scrollY),l=r.computed({get(){return o.value},set(u){scrollTo({left:u,behavior:n})}}),s=r.computed({get(){return a.value},set(u){scrollTo({top:u,behavior:n})}});return R(t,"scroll",()=>{o.value=t.scrollX,a.value=t.scrollY},{capture:!1,passive:!0}),{x:l,y:s}}function Cl(e={}){const{window:t=I,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0,type:s="inner"}=e,u=r.ref(n),i=r.ref(o),f=()=>{t&&(s==="outer"?(u.value=t.outerWidth,i.value=t.outerHeight):l?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(f(),d.tryOnMounted(f),R("resize",f,{passive:!0}),a){const c=G("(orientation: portrait)");r.watch(c,()=>f())}return{width:u,height:i}}S.DefaultMagicKeysAliasMap=et,S.StorageSerializers=Oe,S.TransitionPresets=il,S.asyncComputed=Y,S.breakpointsAntDesign=Qt,S.breakpointsBootstrapV5=Xt,S.breakpointsMasterCss=en,S.breakpointsPrimeFlex=tn,S.breakpointsQuasar=Zt,S.breakpointsSematic=Dt,S.breakpointsTailwind=Yt,S.breakpointsVuetify=Jt,S.breakpointsVuetifyV2=xe,S.breakpointsVuetifyV3=Kt,S.cloneFnJSON=re,S.computedAsync=Y,S.computedInject=Ae,S.createFetch=xn,S.createReusableTemplate=q,S.createTemplatePromise=J,S.createUnrefFn=K,S.customStorageEventName=ke,S.defaultDocument=B,S.defaultLocation=Q,S.defaultNavigator=H,S.defaultWindow=I,S.executeTransition=yt,S.formatTimeAgo=vt,S.getSSRHandler=ye,S.mapGamepadToXbox360Controller=Xn,S.onClickOutside=Rt,S.onKeyDown=Pt,S.onKeyPressed=Ct,S.onKeyStroke=fe,S.onKeyUp=Vt,S.onLongPress=Mt,S.onStartTyping=xt,S.setSSRHandler=fn,S.templateRef=Ut,S.unrefElement=N,S.useActiveElement=Le,S.useAnimate=Wt,S.useAsyncQueue=Ht,S.useAsyncState=Ne,S.useBase64=jt,S.useBattery=qt,S.useBluetooth=Gt,S.useBreakpoints=nn,S.useBroadcastChannel=on,S.useBrowserLocation=ln,S.useCached=rn,S.useClipboard=an,S.useClipboardItems=un,S.useCloned=sn,S.useColorMode=$e,S.useConfirmDialog=vn,S.useCssVar=ae,S.useCurrentElement=Be,S.useCycleList=pn,S.useDark=yn,S.useDebouncedRefHistory=hn,S.useDeviceMotion=bn,S.useDeviceOrientation=qe,S.useDevicePixelRatio=Sn,S.useDevicesList=En,S.useDisplayMedia=Tn,S.useDocumentVisibility=Ge,S.useDraggable=On,S.useDropZone=kn,S.useElementBounding=_n,S.useElementByPoint=Rn,S.useElementHover=Fn,S.useElementSize=Ye,S.useElementVisibility=Ke,S.useEventBus=Pn,S.useEventListener=R,S.useEventSource=Vn,S.useEyeDropper=An,S.useFavicon=In,S.useFetch=Je,S.useFileDialog=Hn,S.useFileSystemAccess=$n,S.useFocus=Bn,S.useFocusWithin=qn,S.useFps=Gn,S.useFullscreen=Yn,S.useGamepad=Kn,S.useGeolocation=Jn,S.useIdle=Dn,S.useImage=to,S.useInfiniteScroll=no,S.useIntersectionObserver=Xe,S.useKeyModifier=lo,S.useLocalStorage=ro,S.useMagicKeys=ao,S.useManualRefHistory=ze,S.useMediaControls=io,S.useMediaQuery=G,S.useMemoize=fo,S.useMemory=vo,S.useMounted=Me,S.useMouse=tt,S.useMouseInElement=nt,S.useMousePressed=yo,S.useMutationObserver=ne,S.useNavigatorLanguage=mo,S.useNetwork=ot,S.useNow=lt,S.useObjectUrl=go,S.useOffsetPagination=wo,S.useOnline=ho,S.usePageLeave=bo,S.useParallax=So,S.useParentElement=Eo,S.usePerformanceObserver=To,S.usePermission=de,S.usePointer=ko,S.usePointerLock=_o,S.usePointerSwipe=Ro,S.usePreferredColorScheme=Fo,S.usePreferredContrast=Po,S.usePreferredDark=Te,S.usePreferredLanguages=Co,S.usePreferredReducedMotion=Vo,S.usePrevious=Ao,S.useRafFn=D,S.useRefHistory=_e,S.useResizeObserver=ge,S.useScreenOrientation=at,S.useScreenSafeArea=Io,S.useScriptTag=Mo,S.useScroll=De,S.useScrollLock=No,S.useSessionStorage=xo,S.useShare=Uo,S.useSorted=Ho,S.useSpeechRecognition=$o,S.useSpeechSynthesis=Bo,S.useStepper=jo,S.useStorage=me,S.useStorageAsync=zo,S.useStyleTag=Go,S.useSupported=x,S.useSwipe=Yo,S.useTemplateRefsList=Ko,S.useTextDirection=Jo,S.useTextSelection=Zo,S.useTextareaAutosize=Do,S.useThrottledRefHistory=el,S.useTimeAgo=ll,S.useTimeoutPoll=rl,S.useTimestamp=al,S.useTitle=ul,S.useTransition=fl,S.useUrlSearchParams=dl,S.useUserMedia=vl,S.useVModel=mt,S.useVModels=pl,S.useVibrate=yl,S.useVirtualList=ml,S.useWakeLock=bl,S.useWebNotification=Sl,S.useWebSocket=El,S.useWebWorker=Tl,S.useWebWorkerFn=Rl,S.useWindowFocus=Fl,S.useWindowScroll=Pl,S.useWindowSize=Cl,Object.keys(d).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(S,e)&&Object.defineProperty(S,e,{enumerable:!0,get:function(){return d[e]}})})})(this.VueUse=this.VueUse||{},VueUse,VueDemi);
|
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/materials",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.8.
|
4
|
+
"version": "0.8.143",
|
5
5
|
"type": "module",
|
6
6
|
"devDependencies": {
|
7
|
-
"@vueuse/core": "~11.0
|
7
|
+
"@vueuse/core": "~11.1.0",
|
8
8
|
"ant-design-vue": "~4.2.0",
|
9
9
|
"echarts": "~5.5.0",
|
10
10
|
"element-plus": "~2.8.0",
|
11
11
|
"vant": "~4.9.0",
|
12
12
|
"vue": "~3.5.5",
|
13
13
|
"vue-router": "~4.4.0",
|
14
|
-
"@vtj/
|
15
|
-
"@vtj/
|
16
|
-
"@vtj/
|
17
|
-
"@vtj/
|
18
|
-
"@vtj/
|
14
|
+
"@vtj/cli": "~0.8.35",
|
15
|
+
"@vtj/ui": "~0.8.143",
|
16
|
+
"@vtj/charts": "~0.8.143",
|
17
|
+
"@vtj/core": "~0.8.143",
|
18
|
+
"@vtj/utils": "~0.8.143"
|
19
19
|
},
|
20
20
|
"files": [
|
21
21
|
"dist",
|
package/src/version.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/materials
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.8.
|
5
|
+
* @version 0.8.143
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export const version = '0.8.
|
8
|
+
export const version = '0.8.143';
|