@vtj/materials 0.8.4 → 0.8.6

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.
@@ -0,0 +1 @@
1
+ var VueDemi=function(w,d,a){if(w.install)return w;if(!d)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),w;if(d.version.slice(0,4)==="2.7."){let q=function(X,J){var K,L={},V={config:d.config,use:d.use.bind(d),mixin:d.mixin.bind(d),component:d.component.bind(d),provide:function($,U){return L[$]=U,this},directive:function($,U){return U?(d.directive($,U),V):d.directive($)},mount:function($,U){return K||(K=new d(Object.assign({propsData:J},X,{provide:Object.assign(L,X.provide)})),K.$mount($,U),K)},unmount:function(){K&&(K.$destroy(),K=void 0)}};return V};var Ve=q;for(var Y in d)w[Y]=d[Y];w.isVue2=!0,w.isVue3=!1,w.install=function(){},w.Vue=d,w.Vue2=d,w.version=d.version,w.warn=d.util.warn,w.hasInjectionContext=function(){return!!w.getCurrentInstance()},w.createApp=q}else if(d.version.slice(0,2)==="2.")if(a){for(var Y in a)w[Y]=a[Y];w.isVue2=!0,w.isVue3=!1,w.install=function(){},w.Vue=d,w.Vue2=d,w.version=d.version,w.hasInjectionContext=function(){return!!w.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)w[Y]=d[Y];w.isVue2=!1,w.isVue3=!0,w.install=function(){},w.Vue=d,w.Vue2=void 0,w.version=d.version,w.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)},w.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 w}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(w,d,a){"use strict";function Y(e,t,n){let o;a.isRef(n)?o={evaluating:n}:o=n||{};const{lazy:l=!1,evaluating:r=void 0,shallow:u=!0,onError:s=d.noop}=o,i=a.ref(!l),c=u?a.shallowRef(t):a.ref(t);let f=0;return a.watchEffect(async v=>{if(!i.value)return;f++;const m=f;let p=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const y=await e(S=>{v(()=>{r&&(r.value=!1),p||S()})});m===f&&(c.value=y)}catch(y){s(y)}finally{r&&m===f&&(r.value=!1),p=!0}}),l?a.computed(()=>(i.value=!0,c.value)):c}function Ve(e,t,n,o){let l=a.inject(e);return n&&(l=a.inject(e,n)),o&&(l=a.inject(e,n,o)),typeof t=="function"?a.computed(r=>t(l,r)):a.computed({get:r=>t.get(l,r),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(r,{slots:u}){return()=>{n.value=u.default}}}),l=a.defineComponent({inheritAttrs:t,setup(r,{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:l},[o,l])}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 l(...u){return e.singleton&&n.value.length>0?n.value[0].promise:o(...u)}const r=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 r.start=l,r}function K(e){return function(...t){return e.apply(this,t.map(n=>d.toValue(n)))}}function L(e){var t;const n=d.toValue(e);return(t=n?.$el)!=null?t:n}const V=d.isClient?window:void 0,$=d.isClient?window.document:void 0,U=d.isClient?window.navigator:void 0,kt=d.isClient?window.location:void 0;function _(...e){let t,n,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,l]=e,t=V):[t,n,o,l]=e,!t)return d.noop;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],u=()=>{r.forEach(f=>f()),r.length=0},s=(f,v,m,p)=>(f.addEventListener(v,m,p),()=>f.removeEventListener(v,m,p)),i=a.watch(()=>[L(t),d.toValue(l)],([f,v])=>{if(u(),!f)return;const m=d.isObject(v)?{...v}:v;r.push(...n.flatMap(p=>o.map(y=>s(f,p,y,m))))},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return d.tryOnScopeDispose(c),c}let Ae=!1;function _t(e,t,n={}){const{window:o=V,ignore:l=[],capture:r=!0,detectIframe:u=!1}=n;if(!o)return d.noop;d.isIOS&&!Ae&&(Ae=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",d.noop)),o.document.documentElement.addEventListener("click",d.noop));let s=!0;const i=m=>l.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(y=>y===m.target||m.composedPath().includes(y));{const y=L(p);return y&&(m.target===y||m.composedPath().includes(y))}}),f=[_(o,"click",m=>{const p=L(e);if(!(!p||p===m.target||m.composedPath().includes(p))){if(m.detail===0&&(s=!i(m)),!s){s=!0;return}t(m)}},{passive:!0,capture:r}),_(o,"pointerdown",m=>{const p=L(e);s=!i(m)&&!!(p&&!m.composedPath().includes(p))},{passive:!0}),u&&_(o,"blur",m=>{setTimeout(()=>{var p;const y=L(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!y?.contains(o.document.activeElement)&&t(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}function Rt(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:l=V,eventName:r="keydown",passive:u=!1,dedupe:s=!1}=o,i=Rt(t);return _(l,r,f=>{f.repeat&&d.toValue(s)||i(f)&&n(f)},u)}function Ft(e,t,n={}){return ce(e,t,{...n,eventName:"keydown"})}function Ct(e,t,n={}){return ce(e,t,{...n,eventName:"keypress"})}function Pt(e,t,n={}){return ce(e,t,{...n,eventName:"keyup"})}const Vt=500,At=10;function It(e,t,n){var o,l;const r=a.computed(()=>L(e));let u,s;function i(){u&&(clearTimeout(u),u=void 0),s=void 0}function c(y){var S,g,b,h;(S=n?.modifiers)!=null&&S.self&&y.target!==r.value||(i(),(g=n?.modifiers)!=null&&g.prevent&&y.preventDefault(),(b=n?.modifiers)!=null&&b.stop&&y.stopPropagation(),s={x:y.x,y:y.y},u=setTimeout(()=>t(y),(h=n?.delay)!=null?h:Vt))}function f(y){var S,g,b,h;if((S=n?.modifiers)!=null&&S.self&&y.target!==r.value||!s||n?.distanceThreshold===!1)return;(g=n?.modifiers)!=null&&g.prevent&&y.preventDefault(),(b=n?.modifiers)!=null&&b.stop&&y.stopPropagation();const E=y.x-s.x,R=y.y-s.y;Math.sqrt(E*E+R*R)>=((h=n?.distanceThreshold)!=null?h:At)&&i()}const v={capture:(o=n?.modifiers)==null?void 0:o.capture,once:(l=n?.modifiers)==null?void 0:l.once},m=[_(r,"pointerdown",c,v),_(r,"pointermove",f,v),_(r,["pointerup","pointerleave"],i,v)];return()=>m.forEach(y=>y())}function Mt(){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 Lt({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 Nt(e,t={}){const{document:n=$}=t;n&&_(n,"keydown",l=>{!Mt()&&Lt(l)&&e(l)},{passive:!0})}function xt(e,t=null){const n=a.getCurrentInstance();let o=()=>{};const l=a.customRef((r,u)=>(o=u,{get(){var s,i;return r(),(i=(s=n?.proxy)==null?void 0:s.$refs[e])!=null?i:t},set(){}}));return d.tryOnMounted(o),a.onUpdated(o),l}function Ie(e={}){var t;const{window:n=V,deep:o=!0}=e,l=(t=e.document)!=null?t:n?.document,r=()=>{var i;let c=l?.activeElement;if(o)for(;c?.shadowRoot;)c=(i=c?.shadowRoot)==null?void 0:i.activeElement;return c},u=a.ref(),s=()=>{u.value=r()};return n&&(_(n,"blur",i=>{i.relatedTarget===null&&s()},!0),_(n,"focus",s,!0)),s(),u}function Me(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},a.isVue2?null:t),e}function N(e){const t=Me();return a.computed(()=>(t.value,!!e()))}function Z(e,t={}){const{immediate:n=!0,fpsLimit:o=void 0,window:l=V}=t,r=a.ref(!1),u=o?1e3/o:null;let s=0,i=null;function c(m){if(!r.value||!l)return;s||(s=m);const p=m-s;if(u&&p<u){i=l.requestAnimationFrame(c);return}s=m,e({delta:p,timestamp:m}),i=l.requestAnimationFrame(c)}function f(){!r.value&&l&&(r.value=!0,s=0,i=l.requestAnimationFrame(c))}function v(){r.value=!1,i!=null&&l&&(l.cancelAnimationFrame(i),i=null)}return n&&f(),d.tryOnScopeDispose(v),{isActive:a.readonly(r),pause:v,resume:f}}function Wt(e,t,n){let o,l;d.isObject(n)?(o=n,l=d.objectOmit(n,["window","immediate","commitStyles","persist","onReady","onError"])):(o={duration:n},l=n);const{window:r=V,immediate:u=!0,commitStyles:s,persist:i,playbackRate:c=1,onReady:f,onError:v=M=>{console.error(M)}}=o,m=N(()=>r&&HTMLElement&&"animate"in HTMLElement.prototype),p=a.shallowRef(void 0),y=a.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:c,pending:!1,playState:u?"idle":"paused",replaceState:"active"}),S=a.computed(()=>y.pending),g=a.computed(()=>y.playState),b=a.computed(()=>y.replaceState),h=a.computed({get(){return y.startTime},set(M){y.startTime=M,p.value&&(p.value.startTime=M)}}),E=a.computed({get(){return y.currentTime},set(M){y.currentTime=M,p.value&&(p.value.currentTime=M,j())}}),R=a.computed({get(){return y.timeline},set(M){y.timeline=M,p.value&&(p.value.timeline=M)}}),k=a.computed({get(){return y.playbackRate},set(M){y.playbackRate=M,p.value&&(p.value.playbackRate=M)}}),A=()=>{if(p.value)try{p.value.play(),j()}catch(M){W(),v(M)}else F()},T=()=>{var M;try{(M=p.value)==null||M.pause(),W()}catch(H){v(H)}},P=()=>{var M;!p.value&&F();try{(M=p.value)==null||M.reverse(),j()}catch(H){W(),v(H)}},C=()=>{var M;try{(M=p.value)==null||M.finish(),W()}catch(H){v(H)}},O=()=>{var M;try{(M=p.value)==null||M.cancel(),W()}catch(H){v(H)}};a.watch(()=>L(e),M=>{M&&F()}),a.watch(()=>t,M=>{!p.value&&F(),!L(e)&&p.value&&(p.value.effect=new KeyframeEffect(L(e),d.toValue(M),l))},{deep:!0}),d.tryOnMounted(()=>{a.nextTick(()=>F(!0))}),d.tryOnScopeDispose(O);function F(M){const H=L(e);!m.value||!H||(p.value||(p.value=H.animate(d.toValue(t),l)),s&&p.value.commitStyles(),i&&p.value.persist(),c!==1&&(p.value.playbackRate=c),M&&!u?p.value.pause():j(),f?.(p.value))}_(p,["cancel","finish","remove"],W);const{resume:I,pause:x}=Z(()=>{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 j(){m.value&&I()}function W(){m.value&&r&&r.requestAnimationFrame(x)}return{isSupported:m,animate:p,play:A,pause:T,reverse:P,finish:C,cancel:O,pending:S,playState:g,replaceState:b,startTime:h,currentTime:E,timeline:R,playbackRate:k}}function Ht(e,t){const{interrupt:n=!0,onError:o=d.noop,onFinished:l=d.noop,signal:r}=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 l(),{activeIndex:c,result:i};function f(v,m){c.value++,i[c.value].data=m,i[c.value].state=v}return e.reduce((v,m)=>v.then(p=>{var y;if(r?.aborted){f(u.aborted,new Error("aborted"));return}if(((y=i[c.value])==null?void 0:y.state)===u.rejected&&n){l();return}const S=m(p).then(g=>(f(u.fulfilled,g),c.value===e.length-1&&l(),g));return r?Promise.race([S,$t(r)]):S}).catch(p=>r?.aborted?(f(u.aborted,p),p):(f(u.rejected,p),o(),p)),Promise.resolve()),{activeIndex:c,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 Le(e,t,n){const{immediate:o=!0,delay:l=0,onError:r=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),m=a.ref(!1),p=a.shallowRef(void 0);async function y(b=0,...h){s&&(f.value=t),p.value=void 0,v.value=!1,m.value=!0,b>0&&await d.promiseTimeout(b);const E=typeof e=="function"?e(...h):e;try{const R=await E;f.value=R,v.value=!0,u(R)}catch(R){if(p.value=R,r(R),c)throw R}finally{m.value=!1}return f.value}o&&y(l);const S={state:f,isReady:v,isLoading:m,error:p,execute:y};function g(){return new Promise((b,h)=>{d.until(m).toBe(!1).then(()=>b(S)).catch(h)})}return{...S,then(b,h){return g().then(b,h)}}}const ne={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 Ut(e){return e?e instanceof Map?ne.map:e instanceof Set?ne.set:Array.isArray(e)?ne.array:ne.object:ne.null}function jt(e,t){const n=a.ref(""),o=a.ref();function l(){if(d.isClient)return o.value=new Promise((r,u)=>{try{const s=d.toValue(e);if(s==null)r("");else if(typeof s=="string")r(Ee(new Blob([s],{type:"text/plain"})));else if(s instanceof Blob)r(Ee(s));else if(s instanceof ArrayBuffer)r(window.btoa(String.fromCharCode(...new Uint8Array(s))));else if(s instanceof HTMLCanvasElement)r(s.toDataURL(t?.type,t?.quality));else if(s instanceof HTMLImageElement){const i=s.cloneNode(!1);i.crossOrigin="Anonymous",Bt(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),r(c.toDataURL(t?.type,t?.quality))}).catch(u)}else if(typeof s=="object"){const c=(t?.serializer||Ut(s))(s);return r(Ee(new Blob([c],{type:"application/json"})))}else u(new Error("target is unsupported types"))}catch(s){u(s)}}),o.value.then(r=>n.value=r),o.value}return a.isRef(e)||typeof e=="function"?a.watch(e,l,{immediate:!0}):l(),{base64:n,promise:o,execute:l}}function Bt(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=l=>{t(l.target.result)},o.onerror=n,o.readAsDataURL(e)})}function zt(e={}){const{navigator:t=U}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],o=N(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),l=a.ref(!1),r=a.ref(0),u=a.ref(0),s=a.ref(1);let i;function c(){l.value=this.charging,r.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:l,chargingTime:r,dischargingTime:u,level:s}}function qt(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:o=void 0,navigator:l=U}=e||{},r=N(()=>l&&"bluetooth"in l),u=a.shallowRef(void 0),s=a.shallowRef(null);a.watch(u,()=>{v()});async function i(){if(r.value){s.value=null,n&&n.length>0&&(t=!1);try{u.value=await l?.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:o})}catch(m){s.value=m}}}const c=a.ref(),f=a.computed(()=>{var m;return((m=c.value)==null?void 0:m.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(m){s.value=m}}}return d.tryOnMounted(()=>{var m;u.value&&((m=u.value.gatt)==null||m.connect())}),d.tryOnScopeDispose(()=>{var m;u.value&&((m=u.value.gatt)==null||m.disconnect())}),{isSupported:r,isConnected:f,device:u,requestDevice:i,server:c,error:s}}function G(e,t={}){const{window:n=V}=t,o=N(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let l;const r=a.ref(!1),u=c=>{r.value=c.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",u):l.removeListener(u))},i=a.watchEffect(()=>{o.value&&(s(),l=n.matchMedia(d.toValue(e)),"addEventListener"in l?l.addEventListener("change",u):l.addListener(u),r.value=l.matches)});return d.tryOnScopeDispose(()=>{i(),s(),l=void 0}),r}const Gt={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Yt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},Ne={xs:0,sm:600,md:960,lg:1264,xl:1904},Xt={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},Kt=Ne,Jt={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},Qt={xs:0,sm:600,md:1024,lg:1440,xl:1920},Zt={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},Dt={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},en={sm:576,md:768,lg:992,xl:1200};function tn(e,t={}){function n(f,v){let m=d.toValue(e[d.toValue(f)]);return v!=null&&(m=d.increaseWithUnit(m,v)),typeof m=="number"&&(m=`${m}px`),m}const{window:o=V,strategy:l="min-width"}=t;function r(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:()=>l==="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 r(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return r(`(min-width: ${n(f)})`)},isSmaller(f){return r(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return r(`(max-width: ${n(f)})`)},isInBetween(f,v){return r(`(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 nn(e){const{name:t,window:n=V}=e,o=N(()=>n&&"BroadcastChannel"in n),l=a.ref(!1),r=a.ref(),u=a.ref(),s=a.shallowRef(null),i=f=>{r.value&&r.value.postMessage(f)},c=()=>{r.value&&r.value.close(),l.value=!0};return o.value&&d.tryOnMounted(()=>{s.value=null,r.value=new BroadcastChannel(t),r.value.addEventListener("message",f=>{u.value=f.data},{passive:!0}),r.value.addEventListener("messageerror",f=>{s.value=f},{passive:!0}),r.value.addEventListener("close",()=>{l.value=!0})}),d.tryOnScopeDispose(()=>{c()}),{isSupported:o,channel:r,data:u,post:i,close:c,error:s,isClosed:l}}const xe=["hash","host","hostname","href","pathname","port","protocol","search"];function on(e={}){const{window:t=V}=e,n=Object.fromEntries(xe.map(r=>[r,a.ref()]));for(const[r,u]of d.objectEntries(n))a.watch(u,s=>{!t?.location||t.location[r]===s||(t.location[r]=s)});const o=r=>{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:r,state:s,length:i,origin:c,...n})},l=a.ref(o("load"));return t&&(_(t,"popstate",()=>l.value=o("popstate"),{passive:!0}),_(t,"hashchange",()=>l.value=o("hashchange"),{passive:!0})),l}function rn(e,t=(o,l)=>o===l,n){const o=a.ref(e.value);return a.watch(()=>e.value,l=>{t(l,o.value)||(o.value=l)},n),o}function fe(e,t={}){const{controls:n=!1,navigator:o=U}=t,l=N(()=>o&&"permissions"in o);let r;const u=typeof e=="string"?{name:e}:e,s=a.ref(),i=()=>{r&&(s.value=r.state)},c=d.createSingletonPromise(async()=>{if(l.value){if(!r)try{r=await o.permissions.query(u),_(r,"change",i),i()}catch{s.value="prompt"}return r}});return c(),n?{state:s,isSupported:l,query:c}:s}function ln(e={}){const{navigator:t=U,read:n=!1,source:o,copiedDuring:l=1500,legacy:r=!1}=e,u=N(()=>t&&"clipboard"in t),s=fe("clipboard-read"),i=fe("clipboard-write"),c=a.computed(()=>u.value||r),f=a.ref(""),v=a.ref(!1),m=d.useTimeoutFn(()=>v.value=!1,l);function p(){u.value&&b(s.value)?t.clipboard.readText().then(h=>{f.value=h}):f.value=g()}c.value&&n&&_(["copy","cut"],p);async function y(h=d.toValue(o)){c.value&&h!=null&&(u.value&&b(i.value)?await t.clipboard.writeText(h):S(h),f.value=h,v.value=!0,m.start())}function S(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 g(){var h,E,R;return(R=(E=(h=document?.getSelection)==null?void 0:h.call(document))==null?void 0:E.toString())!=null?R:""}function b(h){return h==="granted"||h==="prompt"}return{isSupported:c,text:f,copied:v,copy:y}}function an(e={}){const{navigator:t=U,read:n=!1,source:o,copiedDuring:l=1500}=e,r=N(()=>t&&"clipboard"in t),u=a.ref([]),s=a.ref(!1),i=d.useTimeoutFn(()=>s.value=!1,l);function c(){r.value&&t.clipboard.read().then(v=>{u.value=v})}r.value&&n&&_(["copy","cut"],c);async function f(v=d.toValue(o)){r.value&&v!=null&&(await t.clipboard.write(v),u.value=v,s.value=!0,i.start())}return{isSupported:r,content:u,copied:s,copy:f}}function oe(e){return JSON.parse(JSON.stringify(e))}function un(e,t={}){const n=a.ref({}),{manual:o,clone:l=oe,deep:r=!0,immediate:u=!0}=t;function s(){n.value=l(d.toValue(e))}return!o&&(a.isRef(e)||typeof e=="function")?a.watch(e,s,{...t,deep:r,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=sn();function sn(){return ve in de||(de[ve]=de[ve]||{}),de[ve]}function pe(e,t){return We[e]||t}function cn(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 Te={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()}},Oe="vueuse-storage";function ye(e,t,n,o={}){var l;const{flush:r="pre",deep:u=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:v=V,eventFilter:m,onError:p=O=>{console.error(O)},initOnMounted:y}=o,S=(f?a.shallowRef:a.ref)(typeof t=="function"?t():t);if(!n)try{n=pe("getDefaultStorage",()=>{var O;return(O=V)==null?void 0:O.localStorage})()}catch(O){p(O)}if(!n)return S;const g=d.toValue(t),b=He(g),h=(l=o.serializer)!=null?l:Te[b],{pause:E,resume:R}=d.pausableWatch(S,()=>A(S.value),{flush:r,deep:u,eventFilter:m});v&&s&&d.tryOnMounted(()=>{_(v,"storage",P),_(v,Oe,C),y&&P()}),y||P();function k(O,F){v&&v.dispatchEvent(new CustomEvent(Oe,{detail:{key:e,oldValue:O,newValue:F,storageArea:n}}))}function A(O){try{const F=n.getItem(e);if(O==null)k(F,null),n.removeItem(e);else{const I=h.write(O);F!==I&&(n.setItem(e,I),k(F,I))}}catch(F){p(F)}}function T(O){const F=O?O.newValue:n.getItem(e);if(F==null)return i&&g!=null&&n.setItem(e,h.write(g)),g;if(!O&&c){const I=h.read(F);return typeof c=="function"?c(I,g):b==="object"&&!Array.isArray(I)?{...g,...I}:I}else return typeof F!="string"?F:h.read(F)}function P(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){S.value=g;return}if(!(O&&O.key!==e)){E();try{O?.newValue!==h.write(S.value)&&(S.value=T(O))}catch(F){p(F)}finally{O?a.nextTick(R):R()}}}}function C(O){P(O.detail)}return S}function ke(e){return G("(prefers-color-scheme: dark)",e)}function $e(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:l=V,storage:r,storageKey:u="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:i,emitAuto:c,disableTransition:f=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},m=ke({window:l}),p=a.computed(()=>m.value?"dark":"light"),y=i||(u==null?d.toRef(o):ye(u,o,r,{window:l,listenToStorageChanges:s})),S=a.computed(()=>y.value==="auto"?p.value:y.value),g=pe("updateHTMLAttrs",(R,k,A)=>{const T=typeof R=="string"?l?.document.querySelector(R):L(R);if(!T)return;let P;if(f&&(P=l.document.createElement("style"),P.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),l.document.head.appendChild(P)),k==="class"){const C=A.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{C.includes(O)?T.classList.add(O):T.classList.remove(O)})}else T.setAttribute(k,A);f&&(l.getComputedStyle(P).opacity,document.head.removeChild(P))});function b(R){var k;g(t,n,(k=v[R])!=null?k:R)}function h(R){e.onChanged?e.onChanged(R,b):b(R)}a.watch(S,h,{flush:"post",immediate:!0}),d.tryOnMounted(()=>h(S.value));const E=a.computed({get(){return c?y.value:S.value},set(R){y.value=R}});try{return Object.assign(E,{store:y,system:p,state:S})}catch{return E}}function fn(e=a.ref(!1)){const t=d.createEventHook(),n=d.createEventHook(),o=d.createEventHook();let l=d.noop;const r=i=>(o.trigger(i),e.value=!0,new Promise(c=>{l=c})),u=i=>{e.value=!1,t.trigger(i),l({data:i,isCanceled:!1})},s=i=>{e.value=!1,n.trigger(i),l({data:i,isCanceled:!0})};return{isRevealed:a.computed(()=>e.value),reveal:r,confirm:u,cancel:s,onReveal:o.on,onConfirm:t.on,onCancel:n.on}}function re(e,t,n={}){const{window:o=V,...l}=n;let r;const u=N(()=>o&&"MutationObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=a.computed(()=>{const m=d.toValue(e),p=(Array.isArray(m)?m:[m]).map(L).filter(d.notNullish);return new Set(p)}),c=a.watch(()=>i.value,m=>{s(),u.value&&o&&m.size&&(r=new MutationObserver(t),m.forEach(p=>r.observe(p,l)))},{immediate:!0,flush:"post"}),f=()=>r?.takeRecords(),v=()=>{s(),c()};return d.tryOnScopeDispose(v),{isSupported:u,stop:v,takeRecords:f}}function le(e,t,n={}){const{window:o=V,initialValue:l="",observe:r=!1}=n,u=a.ref(l),s=a.computed(()=>{var c;return L(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){const m=(c=o.getComputedStyle(v).getPropertyValue(f))==null?void 0:c.trim();u.value=m||l}}return r&&re(s,i,{attributeFilter:["style","class"],window:o}),a.watch([s,()=>d.toValue(e)],i,{immediate:!0}),a.watch(u,c=>{var f;(f=s.value)!=null&&f.style&&s.value.style.setProperty(d.toValue(e),c)}),u}function Ue(e){const t=a.getCurrentInstance(),n=d.computedWithControl(()=>null,()=>e?L(e):t.proxy.$el);return a.onUpdated(n.trigger),a.onMounted(n.trigger),n}function dn(e,t){const n=a.shallowRef(c()),o=d.toRef(e),l=a.computed({get(){var f;const v=o.value;let m=t?.getIndexOf?t.getIndexOf(n.value,v):v.indexOf(n.value);return m<0&&(m=(f=t?.fallbackIndex)!=null?f:0),m},set(f){r(f)}});function r(f){const v=o.value,m=v.length,p=(f%m+m)%m,y=v[p];return n.value=y,y}function u(f=1){return r(l.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,()=>r(l.value)),{state:n,index:l,next:s,prev:i,go:r}}function vn(e={}){const{valueDark:t="dark",valueLight:n="",window:o=V}=e,l=$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}}),r=a.computed(()=>l.system?l.system.value:ke({window:o}).value?"dark":"light");return a.computed({get(){return l.value==="dark"},set(s){const i=s?"dark":"light";r.value===i?l.value="auto":l.value=i}})}function je(e){return e}function pn(e,t){return e.value=t}function yn(e){return e?typeof e=="function"?e:oe:je}function mn(e){return e?typeof e=="function"?e:oe:je}function Be(e,t={}){const{clone:n=!1,dump:o=yn(n),parse:l=mn(n),setSource:r=pn}=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=>{r(e,l(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)},m=()=>{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))},y=()=>{const E=c.value.shift();E&&(i.value.unshift(s.value),f(E))},S=()=>{f(s.value)},g=a.computed(()=>[s.value,...i.value]),b=a.computed(()=>i.value.length>0),h=a.computed(()=>c.value.length>0);return{source:e,undoStack:i,redoStack:c,last:s,history:g,canUndo:b,canRedo:h,clear:m,commit:v,reset:S,undo:p,redo:y}}function _e(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:l}=t,{eventFilter:r,pause:u,resume:s,isActive:i}=d.pausableFilter(l),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:v}=d.watchIgnorable(e,g,{deep:n,flush:o,eventFilter:r});function m(R,k){f(),c(()=>{R.value=k})}const p=Be(e,{...t,clone:t.clone||n,setSource:m}),{clear:y,commit:S}=p;function g(){f(),S()}function b(R){s(),R&&g()}function h(R){let k=!1;const A=()=>k=!0;c(()=>{R(A)}),k||g()}function E(){v(),y()}return{...p,isTracking:i,pause:u,resume:b,commit:g,batch:h,dispose:E}}function gn(e,t={}){const n=t.debounce?d.debounceFilter(t.debounce):void 0;return{..._e(e,{...t,eventFilter:n})}}function wn(e={}){const{window:t=V,eventFilter:n=d.bypassFilter}=e,o=a.ref({x:null,y:null,z:null}),l=a.ref({alpha:null,beta:null,gamma:null}),r=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,l.value=i.rotationRate,r.value=i.interval});_(t,"devicemotion",s)}return{acceleration:o,accelerationIncludingGravity:u,rotationRate:l,interval:r}}function ze(e={}){const{window:t=V}=e,n=N(()=>t&&"DeviceOrientationEvent"in t),o=a.ref(!1),l=a.ref(null),r=a.ref(null),u=a.ref(null);return t&&n.value&&_(t,"deviceorientation",s=>{o.value=s.absolute,l.value=s.alpha,r.value=s.beta,u.value=s.gamma}),{isSupported:n,isAbsolute:o,alpha:l,beta:r,gamma:u}}function hn(e={}){const{window:t=V}=e,n=a.ref(1);if(t){let o=function(){n.value=t.devicePixelRatio,l(),r=t.matchMedia(`(resolution: ${n.value}dppx)`),r.addEventListener("change",o,{once:!0})},l=function(){r?.removeEventListener("change",o)},r;o(),d.tryOnScopeDispose(l)}return{pixelRatio:n}}function bn(e={}){const{navigator:t=U,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:l}=e,r=a.ref([]),u=a.computed(()=>r.value.filter(y=>y.kind==="videoinput")),s=a.computed(()=>r.value.filter(y=>y.kind==="audioinput")),i=a.computed(()=>r.value.filter(y=>y.kind==="audiooutput")),c=N(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=a.ref(!1);let v;async function m(){c.value&&(r.value=await t.mediaDevices.enumerateDevices(),l?.(r.value),v&&(v.getTracks().forEach(y=>y.stop()),v=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:y,query:S}=fe("camera",{controls:!0});return await S(),y.value!=="granted"&&(v=await t.mediaDevices.getUserMedia(o),m()),f.value=!0,f.value}return c.value&&(n&&p(),_(t.mediaDevices,"devicechange",m),m()),{devices:r,ensurePermissions:p,permissionGranted:f,videoInputs:u,audioInputs:s,audioOutputs:i,isSupported:c}}function Sn(e={}){var t;const n=a.ref((t=e.enabled)!=null?t:!1),o=e.video,l=e.audio,{navigator:r=U}=e,u=N(()=>{var p;return(p=r?.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:l,video:o},i=a.shallowRef();async function c(){if(!(!u.value||i.value))return i.value=await r.mediaDevices.getDisplayMedia(s),i.value}async function f(){var p;(p=i.value)==null||p.getTracks().forEach(y=>y.stop()),i.value=void 0}function v(){f(),n.value=!1}async function m(){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:m,stop:v,enabled:n}}function En(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 Tn(e,t={}){var n,o;const{pointerTypes:l,preventDefault:r,stopPropagation:u,exact:s,onMove:i,onEnd:c,onStart:f,initialValue:v,axis:m="both",draggingElement:p=V,containerElement:y,handle:S=e}=t,g=a.ref((n=d.toValue(v))!=null?n:{x:0,y:0}),b=a.ref(),h=T=>l?l.includes(T.pointerType):!0,E=T=>{d.toValue(r)&&T.preventDefault(),d.toValue(u)&&T.stopPropagation()},R=T=>{var P;if(d.toValue(t.disabled)||!h(T)||d.toValue(s)&&T.target!==d.toValue(e))return;const C=d.toValue(y),O=(P=C?.getBoundingClientRect)==null?void 0:P.call(C),F=d.toValue(e).getBoundingClientRect(),I={x:T.clientX-(C?F.left-O.left+C.scrollLeft:F.left),y:T.clientY-(C?F.top-O.top+C.scrollTop:F.top)};f?.(I,T)!==!1&&(b.value=I,E(T))},k=T=>{if(d.toValue(t.disabled)||!h(T)||!b.value)return;const P=d.toValue(y),C=d.toValue(e).getBoundingClientRect();let{x:O,y:F}=g.value;(m==="x"||m==="both")&&(O=T.clientX-b.value.x,P&&(O=Math.min(Math.max(0,O),P.scrollWidth-C.width))),(m==="y"||m==="both")&&(F=T.clientY-b.value.y,P&&(F=Math.min(Math.max(0,F),P.scrollHeight-C.height))),g.value={x:O,y:F},i?.(g.value,T),E(T)},A=T=>{d.toValue(t.disabled)||!h(T)||b.value&&(b.value=void 0,c?.(g.value,T),E(T))};if(d.isClient){const T={capture:(o=t.capture)!=null?o:!0};_(S,"pointerdown",R,T),_(p,"pointermove",k,T),_(p,"pointerup",A,T)}return{...d.toRefs(g),position:g,isDragging:a.computed(()=>!!b.value),style:a.computed(()=>`left:${g.value.x}px;top:${g.value.y}px;`)}}function On(e,t={}){const n=a.ref(!1),o=a.shallowRef(null);let l=0,r=!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(m=>m.kind==="file"?m.type:null).filter(d.notNullish);if(u.dataTypes&&i.dataTransfer){const m=a.unref(u.dataTypes);if(r=typeof m=="function"?m(v):m?m.some(p=>v.includes(p)):!0,!r)return}i.preventDefault(),l+=1,n.value=!0,(f=u.onEnter)==null||f.call(u,s(i),i)}),_(e,"dragover",i=>{var c;r&&(i.preventDefault(),(c=u.onOver)==null||c.call(u,s(i),i))}),_(e,"dragleave",i=>{var c;r&&(i.preventDefault(),l-=1,l===0&&(n.value=!1),(c=u.onLeave)==null||c.call(u,s(i),i))}),_(e,"drop",i=>{var c;i.preventDefault(),l=0,n.value=!1,(c=u.onDrop)==null||c.call(u,s(i),i)})}return{files:o,isOverDropZone:n}}function me(e,t,n={}){const{window:o=V,...l}=n;let r;const u=N(()=>o&&"ResizeObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=a.computed(()=>Array.isArray(e)?e.map(v=>L(v)):[L(e)]),c=a.watch(i,v=>{if(s(),u.value&&o){r=new ResizeObserver(t);for(const m of v)m&&r.observe(m,l)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return d.tryOnScopeDispose(f),{isSupported:u,stop:f}}function kn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:l=!0,immediate:r=!0}=t,u=a.ref(0),s=a.ref(0),i=a.ref(0),c=a.ref(0),f=a.ref(0),v=a.ref(0),m=a.ref(0),p=a.ref(0);function y(){const S=L(e);if(!S){n&&(u.value=0,s.value=0,i.value=0,c.value=0,f.value=0,v.value=0,m.value=0,p.value=0);return}const g=S.getBoundingClientRect();u.value=g.height,s.value=g.bottom,i.value=g.left,c.value=g.right,f.value=g.top,v.value=g.width,m.value=g.x,p.value=g.y}return me(e,y),a.watch(()=>L(e),S=>!S&&y()),re(e,y,{attributeFilter:["style","class"]}),l&&_("scroll",y,{capture:!0,passive:!0}),o&&_("resize",y,{passive:!0}),d.tryOnMounted(()=>{r&&y()}),{height:u,bottom:s,left:i,right:c,top:f,width:v,x:m,y:p,update:y}}function _n(e){const{x:t,y:n,document:o=$,multiple:l,interval:r="requestAnimationFrame",immediate:u=!0}=e,s=N(()=>d.toValue(l)?o&&"elementsFromPoint"in o:o&&"elementFromPoint"in o),i=a.ref(null),c=()=>{var v,m;i.value=d.toValue(l)?(v=o?.elementsFromPoint(d.toValue(t),d.toValue(n)))!=null?v:[]:(m=o?.elementFromPoint(d.toValue(t),d.toValue(n)))!=null?m:null},f=r==="requestAnimationFrame"?Z(c,{immediate:u}):d.useIntervalFn(c,r,{immediate:u});return{isSupported:s,element:i,...f}}function Rn(e,t={}){const{delayEnter:n=0,delayLeave:o=0,window:l=V}=t,r=a.ref(!1);let u;const s=i=>{const c=i?n:o;u&&(clearTimeout(u),u=void 0),c?u=setTimeout(()=>r.value=i,c):r.value=i};return l&&(_(e,"mouseenter",()=>s(!0),{passive:!0}),_(e,"mouseleave",()=>s(!1),{passive:!0})),r}function qe(e,t={width:0,height:0},n={}){const{window:o=V,box:l="content-box"}=n,r=a.computed(()=>{var v,m;return(m=(v=L(e))==null?void 0:v.namespaceURI)==null?void 0:m.includes("svg")}),u=a.ref(t.width),s=a.ref(t.height),{stop:i}=me(e,([v])=>{const m=l==="border-box"?v.borderBoxSize:l==="content-box"?v.contentBoxSize:v.devicePixelContentBoxSize;if(o&&r.value){const p=L(e);if(p){const y=o.getComputedStyle(p);u.value=Number.parseFloat(y.width),s.value=Number.parseFloat(y.height)}}else if(m){const p=Array.isArray(m)?m:[m];u.value=p.reduce((y,{inlineSize:S})=>y+S,0),s.value=p.reduce((y,{blockSize:S})=>y+S,0)}else u.value=v.contentRect.width,s.value=v.contentRect.height},n);d.tryOnMounted(()=>{const v=L(e);v&&(u.value="offsetWidth"in v?v.offsetWidth:t.width,s.value="offsetHeight"in v?v.offsetHeight:t.height)});const c=a.watch(()=>L(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 Ge(e,t,n={}){const{root:o,rootMargin:l="0px",threshold:r=.1,window:u=V,immediate:s=!0}=n,i=N(()=>u&&"IntersectionObserver"in u),c=a.computed(()=>{const y=d.toValue(e);return(Array.isArray(y)?y:[y]).map(L).filter(d.notNullish)});let f=d.noop;const v=a.ref(s),m=i.value?a.watch(()=>[c.value,L(o),v.value],([y,S])=>{if(f(),!v.value||!y.length)return;const g=new IntersectionObserver(t,{root:L(S),rootMargin:l,threshold:r});y.forEach(b=>b&&g.observe(b)),f=()=>{g.disconnect(),f=d.noop}},{immediate:s,flush:"post"}):d.noop,p=()=>{f(),m(),v.value=!1};return d.tryOnScopeDispose(p),{isSupported:i,isActive:v,pause(){f(),v.value=!1},resume(){v.value=!0},stop:p}}function Ye(e,t={}){const{window:n=V,scrollTarget:o,threshold:l=0}=t,r=a.ref(!1);return Ge(e,u=>{let s=r.value,i=0;for(const c of u)c.time>=i&&(i=c.time,s=c.isIntersecting);r.value=s},{root:o,window:n,threshold:l}),r}const ae=new Map;function Fn(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=()=>l(s);return(i=t?.cleanups)==null||i.push(f),f}function o(s){function i(...c){l(i),s(...c)}return n(i)}function l(s){const i=ae.get(e);i&&(i.delete(s),i.size||r())}function r(){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:l,emit:u,reset:r}}function Cn(e){return e===!0?{}:e}function Pn(e,t=[],n={}){const o=a.ref(null),l=a.ref(null),r=a.ref("CONNECTING"),u=a.ref(null),s=a.shallowRef(null),i=d.toRef(e);let c=!1,f=0;const{withCredentials:v=!1,immediate:m=!0}=n,p=()=>{d.isClient&&u.value&&(u.value.close(),u.value=null,r.value="CLOSED",c=!0)},y=()=>{if(c||typeof i.value>"u")return;const g=new EventSource(i.value,{withCredentials:v});r.value="CONNECTING",u.value=g,g.onopen=()=>{r.value="OPEN",s.value=null},g.onerror=b=>{if(r.value="CLOSED",s.value=b,g.readyState===2&&!c&&n.autoReconnect){g.close();const{retries:h=-1,delay:E=1e3,onFailed:R}=Cn(n.autoReconnect);f+=1,typeof h=="number"&&(h<0||f<h)||typeof h=="function"&&h()?setTimeout(y,E):R?.()}},g.onmessage=b=>{o.value=null,l.value=b.data};for(const b of t)_(g,b,h=>{o.value=b,l.value=h.data||null})},S=()=>{d.isClient&&(p(),c=!1,f=0,y())};return m&&a.watch(i,S,{immediate:!0}),d.tryOnScopeDispose(p),{eventSource:u,event:o,data:l,status:r,error:s,open:S,close:p}}function Vn(e={}){const{initialValue:t=""}=e,n=N(()=>typeof window<"u"&&"EyeDropper"in window),o=a.ref(t);async function l(r){if(!n.value)return;const s=await new window.EyeDropper().open(r);return o.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:o,open:l}}function An(e=null,t={}){const{baseUrl:n="",rel:o="icon",document:l=$}=t,r=d.toRef(e),u=s=>{const i=l?.head.querySelectorAll(`link[rel*="${o}"]`);if(!i||i.length===0){const c=l?.createElement("link");c&&(c.rel=o,c.href=`${n}${s}`,c.type=`image/${s.split(".").pop()}`,l?.head.append(c));return}i?.forEach(c=>c.href=`${n}${s}`)};return a.watch(r,(s,i)=>{typeof s=="string"&&s!==i&&u(s)},{immediate:!0}),r}const In={json:"application/json",text:"text/plain"};function ge(e){return e&&d.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}function Mn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ue(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function te(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 Ln(e={}){const t=e.combination||"chain",n=e.options||{},o=e.fetchOptions||{};function l(r,...u){const s=a.computed(()=>{const f=d.toValue(e.baseUrl),v=d.toValue(r);return f&&!Mn(v)?Nn(f,v):v});let i=n,c=o;return u.length>0&&(ge(u[0])?i={...i,...u[0],beforeFetch:te(t,n.beforeFetch,u[0].beforeFetch),afterFetch:te(t,n.afterFetch,u[0].afterFetch),onFetchError:te(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:te(t,n.beforeFetch,u[1].beforeFetch),afterFetch:te(t,n.afterFetch,u[1].afterFetch),onFetchError:te(t,n.onFetchError,u[1].onFetchError)}),Xe(s,c,i)}return l}function Xe(e,...t){var n;const o=typeof AbortController=="function";let l={},r={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const u={method:"GET",type:"text",payload:void 0};t.length>0&&(ge(t[0])?r={...r,...t[0]}:l=t[0]),t.length>1&&ge(t[1])&&(r={...r,...t[1]});const{fetch:s=(n=V)==null?void 0:n.fetch,initialData:i,timeout:c}=r,f=d.createEventHook(),v=d.createEventHook(),m=d.createEventHook(),p=a.ref(!1),y=a.ref(!1),S=a.ref(!1),g=a.ref(null),b=a.shallowRef(null),h=a.shallowRef(null),E=a.shallowRef(i||null),R=a.computed(()=>o&&y.value);let k,A;const T=()=>{o&&(k?.abort(),k=new AbortController,k.signal.onabort=()=>S.value=!0,l={...l,signal:k.signal})},P=M=>{y.value=M,p.value=!M};c&&(A=d.useTimeoutFn(T,c,{immediate:!1}));let C=0;const O=async(M=!1)=>{var H,B;T(),P(!0),h.value=null,g.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=In[u.payloadType])!=null?H:u.payloadType),D.body=u.payloadType==="json"?JSON.stringify(Q):Q}let Ot=!1;const ie={url:d.toValue(e),options:{...D,...l},cancel:()=>{Ot=!0}};if(r.beforeFetch&&Object.assign(ie,await r.beforeFetch(ie)),Ot||!s)return P(!1),Promise.resolve(null);let ee=null;return A&&A.start(),s(ie.url,{...D,...ie.options,headers:{...ue(D.headers),...ue((B=ie.options)==null?void 0:B.headers)}}).then(async z=>{if(b.value=z,g.value=z.status,ee=await z.clone()[u.type](),!z.ok)throw E.value=i||null,new Error(z.statusText);return r.afterFetch&&({data:ee}=await r.afterFetch({data:ee,response:z})),E.value=ee,f.trigger(z),z}).catch(async z=>{let Q=z.message||z.name;if(r.onFetchError&&({error:Q,data:ee}=await r.onFetchError({data:ee,error:z,response:b.value})),h.value=Q,r.updateDataOnError&&(E.value=ee),v.trigger(z),M)throw z;return null}).finally(()=>{se===C&&P(!1),A&&A.stop(),m.trigger(null)})},F=d.toRef(r.refetch);a.watch([F,d.toRef(e)],([M])=>M&&O(),{deep:!0});const I={isFinished:a.readonly(p),isFetching:a.readonly(y),statusCode:g,response:b,error:h,data:E,canAbort:R,aborted:S,abort:T,execute:O,onFetchResponse:f.on,onFetchError:v.on,onFetchFinally:m.on,get:x("GET"),put:x("PUT"),post:x("POST"),delete:x("DELETE"),patch:x("PATCH"),head:x("HEAD"),options:x("OPTIONS"),json:W("json"),text:W("text"),blob:W("blob"),arrayBuffer:W("arrayBuffer"),formData:W("formData")};function x(M){return(H,B)=>{if(!y.value)return u.method=M,u.payload=H,u.payloadType=B,a.isRef(u.payload)&&a.watch([F,d.toRef(u.payload)],([se])=>se&&O(),{deep:!0}),{...I,then(se,D){return j().then(se,D)}}}}function j(){return new Promise((M,H)=>{d.until(p).toBe(!0).then(()=>M(I)).catch(B=>H(B))})}function W(M){return()=>{if(!y.value)return u.type=M,{...I,then(H,B){return j().then(H,B)}}}}return r.immediate&&Promise.resolve().then(()=>O()),{...I,then(M,H){return j().then(M,H)}}}function Nn(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const xn={multiple:!0,accept:"*",reset:!1,directory:!1};function Wn(e={}){const{document:t=$}=e,n=a.ref(null),{on:o,trigger:l}=d.createEventHook();let r;t&&(r=t.createElement("input"),r.type="file",r.onchange=i=>{const c=i.target;n.value=c.files,l(n.value)});const u=()=>{n.value=null,r&&(r.value="",l(null))},s=i=>{if(!r)return;const c={...xn,...e,...i};r.multiple=c.multiple,r.accept=c.accept,r.webkitdirectory=c.directory,d.hasOwn(c,"capture")&&(r.capture=c.capture),c.reset&&u(),r.click()};return{files:a.readonly(n),open:s,reset:u,onChange:o}}function Hn(e={}){const{window:t=V,dataType:n="Text"}=e,o=t,l=N(()=>o&&"showSaveFilePicker"in o&&"showOpenFilePicker"in o),r=a.ref(),u=a.ref(),s=a.ref(),i=a.computed(()=>{var h,E;return(E=(h=s.value)==null?void 0:h.name)!=null?E:""}),c=a.computed(()=>{var h,E;return(E=(h=s.value)==null?void 0:h.type)!=null?E:""}),f=a.computed(()=>{var h,E;return(E=(h=s.value)==null?void 0:h.size)!=null?E:0}),v=a.computed(()=>{var h,E;return(E=(h=s.value)==null?void 0:h.lastModified)!=null?E:0});async function m(h={}){if(!l.value)return;const[E]=await o.showOpenFilePicker({...d.toValue(e),...h});r.value=E,await b()}async function p(h={}){l.value&&(r.value=await o.showSaveFilePicker({...e,...h}),u.value=void 0,await b())}async function y(h={}){if(l.value){if(!r.value)return S(h);if(u.value){const E=await r.value.createWritable();await E.write(u.value),await E.close()}await g()}}async function S(h={}){if(l.value){if(r.value=await o.showSaveFilePicker({...e,...h}),u.value){const E=await r.value.createWritable();await E.write(u.value),await E.close()}await g()}}async function g(){var h;s.value=await((h=r.value)==null?void 0:h.getFile())}async function b(){var h,E;await g();const R=d.toValue(n);R==="Text"?u.value=await((h=s.value)==null?void 0:h.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),b),{isSupported:l,data:u,file:s,fileName:i,fileMIME:c,fileSize:f,fileLastModified:v,open:m,create:p,save:y,saveAs:S,updateData:b}}function $n(e,t={}){const{initialValue:n=!1,focusVisible:o=!1}=t,l=a.ref(!1),r=a.computed(()=>L(e));_(r,"focus",s=>{var i,c;(!o||(c=(i=s.target).matches)!=null&&c.call(i,":focus-visible"))&&(l.value=!0)}),_(r,"blur",()=>l.value=!1);const u=a.computed({get:()=>l.value,set(s){var i,c;!s&&l.value?(i=r.value)==null||i.blur():s&&!l.value&&((c=r.value)==null||c.focus())}});return a.watch(r,()=>{u.value=n},{immediate:!0,flush:"post"}),{focused:u}}function Un(e,t={}){const n=Ie(t),o=a.computed(()=>L(e));return{focused:a.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function jn(e){var t;const n=a.ref(0);if(typeof performance>"u")return n;const o=(t=e?.every)!=null?t:10;let l=performance.now(),r=0;return Z(()=>{if(r+=1,r>=o){const u=performance.now(),s=u-l;n.value=Math.round(1e3/(s/r)),l=u,r=0}}),n}const Ke=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Bn(e,t={}){const{document:n=$,autoExit:o=!1}=t,l=a.computed(()=>{var b;return(b=L(e))!=null?b:n?.querySelector("html")}),r=a.ref(!1),u=a.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||l.value&&b in l.value)),s=a.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||l.value&&b in l.value)),i=a.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||l.value&&b in l.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),f=N(()=>l.value&&n&&u.value!==void 0&&s.value!==void 0&&i.value!==void 0),v=()=>c?n?.[c]===l.value:!1,m=()=>{if(i.value){if(n&&n[i.value]!=null)return n[i.value];{const b=l.value;if(b?.[i.value]!=null)return!!b[i.value]}}return!1};async function p(){if(!(!f.value||!r.value)){if(s.value)if(n?.[s.value]!=null)await n[s.value]();else{const b=l.value;b?.[s.value]!=null&&await b[s.value]()}r.value=!1}}async function y(){if(!f.value||r.value)return;m()&&await p();const b=l.value;u.value&&b?.[u.value]!=null&&(await b[u.value](),r.value=!0)}async function S(){await(r.value?p():y())}const g=()=>{const b=m();(!b||b&&v())&&(r.value=b)};return _(n,Ke,g,!1),_(()=>L(l),Ke,g,!1),o&&d.tryOnScopeDispose(p),{isSupported:f,isFullscreen:r,enter:y,exit:p,toggle:S}}function zn(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 qn(e={}){const{navigator:t=U}=e,n=N(()=>t&&"getGamepads"in t),o=a.ref([]),l=d.createEventHook(),r=d.createEventHook(),u=p=>{const y=[],S="vibrationActuator"in p?p.vibrationActuator:null;return S&&y.push(S),p.hapticActuators&&y.push(...p.hapticActuators),{...p,id:p.id,hapticActuators:y,axes:p.axes.map(g=>g),buttons:p.buttons.map(g=>({pressed:g.pressed,touched:g.touched,value:g.value})),index:p.index}},s=()=>{const p=t?.getGamepads()||[];for(const y of p)y&&o.value[y.index]&&(o.value[y.index]=u(y))},{isActive:i,pause:c,resume:f}=Z(s),v=p=>{o.value.some(({index:y})=>y===p.index)||(o.value.push(u(p)),l.trigger(p.index)),f()},m=p=>{o.value=o.value.filter(y=>y.index!==p.index),r.trigger(p.index)};return _("gamepadconnected",p=>v(p.gamepad)),_("gamepaddisconnected",p=>m(p.gamepad)),d.tryOnMounted(()=>{const p=t?.getGamepads()||[];for(const y of p)y&&o.value[y.index]&&v(y)}),c(),{isSupported:n,onConnected:l.on,onDisconnected:r.on,gamepads:o,pause:c,resume:f,isActive:i}}function Gn(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:o=27e3,navigator:l=U,immediate:r=!0}=e,u=N(()=>l&&"geolocation"in l),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(y){s.value=y.timestamp,c.value=y.coords,i.value=null}let v;function m(){u.value&&(v=l.geolocation.watchPosition(f,y=>i.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:o}))}r&&m();function p(){v&&l&&l.geolocation.clearWatch(v)}return d.tryOnScopeDispose(()=>{p()}),{isSupported:u,coords:c,locatedAt:s,error:i,resume:m,pause:p}}const Yn=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Xn=6e4;function Kn(e=Xn,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:l=Yn,window:r=V,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(r){const m=r.document;for(const p of l)_(r,p,v,{passive:!0});o&&_(m,"visibilitychange",()=>{m.hidden||v()}),f()}return{idle:s,lastActive:i,reset:f}}async function Jn(e){return new Promise((t,n)=>{const o=new Image,{src:l,srcset:r,sizes:u,class:s,loading:i,crossorigin:c,referrerPolicy:f}=e;o.src=l,r&&(o.srcset=r),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 Qn(e,t={}){const n=Le(()=>Jn(d.toValue(e)),void 0,{resetOnExecute:!0,...t});return a.watch(()=>d.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}const Je=1;function Qe(e,t={}){const{throttle:n=0,idle:o=200,onStop:l=d.noop,onScroll:r=d.noop,offset:u={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:c=V,onError:f=T=>{console.error(T)}}=t,v=a.ref(0),m=a.ref(0),p=a.computed({get(){return v.value},set(T){S(T,void 0)}}),y=a.computed({get(){return m.value},set(T){S(void 0,T)}});function S(T,P){var C,O,F;if(!c)return;const I=d.toValue(e);I&&((F=I instanceof Document?c.document.body:I)==null||F.scrollTo({top:(C=d.toValue(P))!=null?C:y.value,left:(O=d.toValue(T))!=null?O:p.value,behavior:d.toValue(i)}))}const g=a.ref(!1),b=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),h=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),E=T=>{g.value&&(g.value=!1,h.left=!1,h.right=!1,h.top=!1,h.bottom=!1,l(T))},R=d.useDebounceFn(E,n+o),k=T=>{var P;if(!c)return;const C=((P=T?.document)==null?void 0:P.documentElement)||T?.documentElement||L(T),{display:O,flexDirection:F}=getComputedStyle(C),I=C.scrollLeft;h.left=I<v.value,h.right=I>v.value;const x=Math.abs(I)<=(u.left||0),j=Math.abs(I)+C.clientWidth>=C.scrollWidth-(u.right||0)-Je;O==="flex"&&F==="row-reverse"?(b.left=j,b.right=x):(b.left=x,b.right=j),v.value=I;let W=C.scrollTop;T===c.document&&!W&&(W=c.document.body.scrollTop),h.top=W<m.value,h.bottom=W>m.value;const M=Math.abs(W)<=(u.top||0),H=Math.abs(W)+C.clientHeight>=C.scrollHeight-(u.bottom||0)-Je;O==="flex"&&F==="column-reverse"?(b.top=H,b.bottom=M):(b.top=M,b.bottom=H),m.value=W},A=T=>{var P;if(!c)return;const C=(P=T.target.documentElement)!=null?P:T.target;k(C),g.value=!0,R(T),r(T)};return _(e,"scroll",n?d.useThrottleFn(A,n,!0,!1):A,s),d.tryOnMounted(()=>{try{const T=d.toValue(e);if(!T)return;k(T)}catch(T){f(T)}}),_(e,"scrollend",E,s),{x:p,y,isScrolling:g,arrivedState:b,directions:h,measure(){const T=d.toValue(e);c&&T&&k(T)}}}function we(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Zn(e,t,n={}){var o;const{direction:l="bottom",interval:r=100,canLoadMore:u=()=>!0}=n,s=a.reactive(Qe(e,{...n,offset:{[l]:(o=n.distance)!=null?o:0,...n.offset}})),i=a.ref(),c=a.computed(()=>!!i.value),f=a.computed(()=>we(d.toValue(e))),v=Ye(f);function m(){if(s.measure(),!f.value||!v.value||!u(f.value))return;const{scrollHeight:p,clientHeight:y,scrollWidth:S,clientWidth:g}=f.value,b=l==="bottom"||l==="top"?p<=y:S<=g;(s.arrivedState[l]||b)&&(i.value||(i.value=Promise.all([t(s),new Promise(h=>setTimeout(h,r))]).finally(()=>{i.value=null,a.nextTick(()=>m())})))}return a.watch(()=>[s.arrivedState[l],v.value],m,{immediate:!0}),{isLoading:c}}const Dn=["mousedown","mouseup","keydown","keyup"];function eo(e,t={}){const{events:n=Dn,document:o=$,initial:l=null}=t,r=a.ref(l);return o&&n.forEach(u=>{_(o,u,s=>{typeof s.getModifierState=="function"&&(r.value=s.getModifierState(e))})}),r}function to(e,t,n={}){const{window:o=V}=n;return ye(e,t,o?.localStorage,n)}const Ze={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function no(e={}){const{reactive:t=!1,target:n=V,aliasMap:o=Ze,passive:l=!0,onEventFired:r=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,g){S in i&&(t?i[S]=g:i[S].value=g)}function m(){u.clear();for(const S of f)v(S,!1)}function p(S,g){var b,h;const E=(b=S.key)==null?void 0:b.toLowerCase(),k=[(h=S.code)==null?void 0:h.toLowerCase(),E].filter(Boolean);E&&(g?u.add(E):u.delete(E));for(const A of k)f.add(A),v(A,g);E==="meta"&&!g?(c.forEach(A=>{u.delete(A),v(A,!1)}),c.clear()):typeof S.getModifierState=="function"&&S.getModifierState("Meta")&&g&&[...u,...k].forEach(A=>c.add(A))}_(n,"keydown",S=>(p(S,!0),r(S)),{passive:l}),_(n,"keyup",S=>(p(S,!1),r(S)),{passive:l}),_("blur",m,{passive:!0}),_("focus",m,{passive:!0});const y=new Proxy(i,{get(S,g,b){if(typeof g!="string")return Reflect.get(S,g,b);if(g=g.toLowerCase(),g in o&&(g=o[g]),!(g in i))if(/[+_-]/.test(g)){const E=g.split(/[+_-]/g).map(R=>R.trim());i[g]=a.computed(()=>E.every(R=>d.toValue(y[R])))}else i[g]=a.ref(!1);const h=Reflect.get(S,g,b);return t?d.toValue(h):h}});return y}function Re(e,t){d.toValue(e)&&t(d.toValue(e))}function oo(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:l,activeCues:r,cues:u,inBandMetadataTrackDispatchType:s},i)=>({id:i,label:t,kind:n,language:o,mode:l,activeCues:r,cues:u,inBandMetadataTrackDispatchType:s}))}const ro={src:"",tracks:[]};function lo(e,t={}){t={...ro,...t};const{document:n=$}=t,o=a.ref(0),l=a.ref(0),r=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),m=a.ref([]),p=a.ref([]),y=a.ref(-1),S=a.ref(!1),g=a.ref(!1),b=n&&"pictureInPictureEnabled"in n,h=d.createEventHook(),E=O=>{Re(e,F=>{if(O){const I=typeof O=="number"?O:O.id;F.textTracks[I].mode="disabled"}else for(let I=0;I<F.textTracks.length;++I)F.textTracks[I].mode="disabled";y.value=-1})},R=(O,F=!0)=>{Re(e,I=>{const x=typeof O=="number"?O:O.id;F&&E(),I.textTracks[x].mode="showing",y.value=x})},k=()=>new Promise((O,F)=>{Re(e,async I=>{b&&(S.value?n.exitPictureInPicture().then(O).catch(F):I.requestPictureInPicture().then(O).catch(F))})});a.watchEffect(()=>{if(!n)return;const O=d.toValue(e);if(!O)return;const F=d.toValue(t.src);let I=[];F&&(typeof F=="string"?I=[{src:F}]:Array.isArray(F)?I=F:d.isObject(F)&&(I=[F]),O.querySelectorAll("source").forEach(x=>{x.removeEventListener("error",h.trigger),x.remove()}),I.forEach(({src:x,type:j})=>{const W=n.createElement("source");W.setAttribute("src",x),W.setAttribute("type",j||""),W.addEventListener("error",h.trigger),O.appendChild(W)}),O.load())}),d.tryOnScopeDispose(()=>{const O=d.toValue(e);O&&O.querySelectorAll("source").forEach(F=>F.removeEventListener("error",h.trigger))}),a.watch([e,u],()=>{const O=d.toValue(e);O&&(O.volume=u.value)}),a.watch([e,g],()=>{const O=d.toValue(e);O&&(O.muted=g.value)}),a.watch([e,f],()=>{const O=d.toValue(e);O&&(O.playbackRate=f.value)}),a.watchEffect(()=>{if(!n)return;const O=d.toValue(t.tracks),F=d.toValue(e);!O||!O.length||!F||(F.querySelectorAll("track").forEach(I=>I.remove()),O.forEach(({default:I,kind:x,label:j,src:W,srcLang:M},H)=>{const B=n.createElement("track");B.default=I||!1,B.kind=x,B.label=j,B.src=W,B.srclang=M,B.default&&(y.value=H),F.appendChild(B)}))});const{ignoreUpdates:A}=d.watchIgnorable(o,O=>{const F=d.toValue(e);F&&(F.currentTime=O)}),{ignoreUpdates:T}=d.watchIgnorable(c,O=>{const F=d.toValue(e);F&&(O?F.play():F.pause())});_(e,"timeupdate",()=>A(()=>o.value=d.toValue(e).currentTime)),_(e,"durationchange",()=>l.value=d.toValue(e).duration),_(e,"progress",()=>m.value=oo(d.toValue(e).buffered)),_(e,"seeking",()=>r.value=!0),_(e,"seeked",()=>r.value=!1),_(e,["waiting","loadstart"],()=>{s.value=!0,T(()=>c.value=!1)}),_(e,"loadeddata",()=>s.value=!1),_(e,"playing",()=>{s.value=!1,i.value=!1,T(()=>c.value=!0)}),_(e,"ratechange",()=>f.value=d.toValue(e).playbackRate),_(e,"stalled",()=>v.value=!0),_(e,"ended",()=>i.value=!0),_(e,"pause",()=>T(()=>c.value=!1)),_(e,"play",()=>T(()=>c.value=!0)),_(e,"enterpictureinpicture",()=>S.value=!0),_(e,"leavepictureinpicture",()=>S.value=!1),_(e,"volumechange",()=>{const O=d.toValue(e);O&&(u.value=O.volume,g.value=O.muted)});const P=[],C=a.watch([e],()=>{const O=d.toValue(e);O&&(C(),P[0]=_(O.textTracks,"addtrack",()=>p.value=Fe(O.textTracks)),P[1]=_(O.textTracks,"removetrack",()=>p.value=Fe(O.textTracks)),P[2]=_(O.textTracks,"change",()=>p.value=Fe(O.textTracks)))});return d.tryOnScopeDispose(()=>P.forEach(O=>O())),{currentTime:o,duration:l,waiting:s,seeking:r,ended:i,stalled:v,buffered:m,playing:c,rate:f,volume:u,muted:g,tracks:p,selectedTrack:y,enableTrack:R,disableTrack:E,supportsPictureInPicture:b,togglePictureInPicture:k,isPictureInPicture:S,onSourceError:h.on}}function ao(){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 uo(e,t){const o=t?.cache?a.shallowReactive(t.cache):a.isVue2?ao():a.shallowReactive(new Map),l=(...f)=>t?.getKey?t.getKey(...f):JSON.stringify(f),r=(f,...v)=>(o.set(f,e(...v)),o.get(f)),u=(...f)=>r(l(...f),...f),s=(...f)=>{o.delete(l(...f))},i=()=>{o.clear()},c=(...f)=>{const v=l(...f);return o.has(v)?o.get(v):r(v,...f)};return c.load=u,c.delete=s,c.clear=i,c.generateKey=l,c.cache=o,c}function so(e={}){const t=a.ref(),n=N(()=>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 io={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 De(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:r=V,target:u=r,scroll:s=!0,eventFilter:i}=e;let c=null;const f=a.ref(l.x),v=a.ref(l.y),m=a.ref(null),p=typeof t=="function"?t:io[t],y=k=>{const A=p(k);c=k,A&&([f.value,v.value]=A,m.value="mouse")},S=k=>{if(k.touches.length>0){const A=p(k.touches[0]);A&&([f.value,v.value]=A,m.value="touch")}},g=()=>{if(!c||!r)return;const k=p(c);c instanceof MouseEvent&&k&&(f.value=k[0]+r.scrollX,v.value=k[1]+r.scrollY)},b=()=>{f.value=l.x,v.value=l.y},h=i?k=>i(()=>y(k),{}):k=>y(k),E=i?k=>i(()=>S(k),{}):k=>S(k),R=i?()=>i(()=>g(),{}):()=>g();if(u){const k={passive:!0};_(u,["mousemove","dragover"],h,k),n&&t!=="movement"&&(_(u,["touchstart","touchmove"],E,k),o&&_(u,"touchend",b,k)),s&&t==="page"&&_(r,"scroll",R,{passive:!0})}return{x:f,y:v,sourceType:m}}function et(e,t={}){const{handleOutside:n=!0,window:o=V}=t,l=t.type||"page",{x:r,y:u,sourceType:s}=De(t),i=a.ref(e??o?.document.body),c=a.ref(0),f=a.ref(0),v=a.ref(0),m=a.ref(0),p=a.ref(0),y=a.ref(0),S=a.ref(!0);let g=()=>{};return o&&(g=a.watch([i,r,u],()=>{const b=L(i);if(!b)return;const{left:h,top:E,width:R,height:k}=b.getBoundingClientRect();v.value=h+(l==="page"?o.pageXOffset:0),m.value=E+(l==="page"?o.pageYOffset:0),p.value=k,y.value=R;const A=r.value-v.value,T=u.value-m.value;S.value=R===0||k===0||A<0||T<0||A>R||T>k,(n||!S.value)&&(c.value=A,f.value=T)},{immediate:!0}),_(document,"mouseleave",()=>{S.value=!0})),{x:r,y:u,sourceType:s,elementX:c,elementY:f,elementPositionX:v,elementPositionY:m,elementHeight:p,elementWidth:y,isOutside:S,stop:g}}function co(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:l=!1,window:r=V}=e,u=a.ref(l),s=a.ref(null);if(!r)return{pressed:u,sourceType:s};const i=v=>()=>{u.value=!0,s.value=v},c=()=>{u.value=!1,s.value=null},f=a.computed(()=>L(e.target)||r);return _(f,"mousedown",i("mouse"),{passive:!0,capture:o}),_(r,"mouseleave",c,{passive:!0,capture:o}),_(r,"mouseup",c,{passive:!0,capture:o}),n&&(_(f,"dragstart",i("mouse"),{passive:!0,capture:o}),_(r,"drop",c,{passive:!0,capture:o}),_(r,"dragend",c,{passive:!0,capture:o})),t&&(_(f,"touchstart",i("touch"),{passive:!0,capture:o}),_(r,"touchend",c,{passive:!0,capture:o}),_(r,"touchcancel",c,{passive:!0,capture:o})),{pressed:u,sourceType:s}}function fo(e={}){const{window:t=V}=e,n=t?.navigator,o=N(()=>n&&"language"in n),l=a.ref(n?.language);return _(t,"languagechange",()=>{n&&(l.value=n.language)}),{isSupported:o,language:l}}function tt(e={}){const{window:t=V}=e,n=t?.navigator,o=N(()=>n&&"connection"in n),l=a.ref(!0),r=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),m=a.ref("unknown"),p=o.value&&n.connection;function y(){n&&(l.value=n.onLine,u.value=l.value?void 0:Date.now(),s.value=l.value?Date.now():void 0,p&&(i.value=p.downlink,c.value=p.downlinkMax,v.value=p.effectiveType,f.value=p.rtt,r.value=p.saveData,m.value=p.type))}return t&&(_(t,"offline",()=>{l.value=!1,u.value=Date.now()}),_(t,"online",()=>{l.value=!0,s.value=Date.now()})),p&&_(p,"change",y,!1),y(),{isSupported:o,isOnline:l,saveData:r,offlineAt:u,onlineAt:s,downlink:i,downlinkMax:c,effectiveType:v,rtt:f,type:m}}function nt(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=a.ref(new Date),l=()=>o.value=new Date,r=n==="requestAnimationFrame"?Z(l,{immediate:!0}):d.useIntervalFn(l,n,{immediate:!0});return t?{now:o,...r}:o}function vo(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 ot(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(l){o.value=d.clamp(l,d.toValue(t),d.toValue(n))}})}function po(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:o=1,onPageChange:l=d.noop,onPageSizeChange:r=d.noop,onPageCountChange:u=d.noop}=e,s=ot(n,1,Number.POSITIVE_INFINITY),i=a.computed(()=>Math.max(1,Math.ceil(d.toValue(t)/d.toValue(s)))),c=ot(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 m(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:s,pageCount:i,isFirstPage:f,isLastPage:v,prev:m,next:p};return a.watch(c,()=>{l(a.reactive(y))}),a.watch(s,()=>{r(a.reactive(y))}),a.watch(i,()=>{u(a.reactive(y))}),y}function yo(e={}){const{isOnline:t}=tt(e);return t}function mo(e={}){const{window:t=V}=e,n=a.ref(!1),o=l=>{if(!t)return;l=l||t.event;const r=l.relatedTarget||l.toElement;n.value=!r};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=V}=e,n=N(()=>t&&"screen"in t&&"orientation"in t.screen),o=n.value?t.screen.orientation:{},l=a.ref(o.type),r=a.ref(o.angle||0);return n.value&&_(t,"orientationchange",()=>{l.value=o.type,r.value=o.angle}),{isSupported:n,orientation:l,angle:r,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 go(e,t={}){const{deviceOrientationTiltAdjust:n=g=>g,deviceOrientationRollAdjust:o=g=>g,mouseTiltAdjust:l=g=>g,mouseRollAdjust:r=g=>g,window:u=V}=t,s=a.reactive(ze({window:u})),i=a.reactive(rt({window:u})),{elementX:c,elementY:f,elementWidth:v,elementHeight:m}=et(e,{handleOutside:!1,window:u}),p=a.computed(()=>s.isSupported&&(s.alpha!=null&&s.alpha!==0||s.gamma!=null&&s.gamma!==0)?"deviceOrientation":"mouse"),y=a.computed(()=>{if(p.value==="deviceOrientation"){let g;switch(i.orientation){case"landscape-primary":g=s.gamma/90;break;case"landscape-secondary":g=-s.gamma/90;break;case"portrait-primary":g=-s.beta/90;break;case"portrait-secondary":g=s.beta/90;break;default:g=-s.beta/90}return o(g)}else{const g=-(f.value-m.value/2)/m.value;return r(g)}}),S=a.computed(()=>{if(p.value==="deviceOrientation"){let g;switch(i.orientation){case"landscape-primary":g=s.beta/90;break;case"landscape-secondary":g=-s.beta/90;break;case"portrait-primary":g=s.gamma/90;break;case"portrait-secondary":g=-s.gamma/90;break;default:g=s.gamma/90}return n(g)}else{const g=(c.value-v.value/2)/v.value;return l(g)}});return{roll:y,tilt:S,source:p}}function wo(e=Ue()){const t=a.shallowRef(),n=()=>{const o=L(e);o&&(t.value=o.parentElement)};return d.tryOnMounted(n),a.watch(()=>d.toValue(e),n),t}function ho(e,t){const{window:n=V,immediate:o=!0,...l}=e,r=N(()=>n&&"PerformanceObserver"in n);let u;const s=()=>{u?.disconnect()},i=()=>{r.value&&(s(),u=new PerformanceObserver(t),u.observe(l))};return d.tryOnScopeDispose(s),o&&i(),{isSupported:r,start:i,stop:s}}const lt={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},bo=Object.keys(lt);function So(e={}){const{target:t=V}=e,n=a.ref(!1),o=a.ref(e.initialValue||{});Object.assign(o.value,lt,o.value);const l=r=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(r.pointerType))&&(o.value=d.objectPick(r,bo,!1))};if(t){const r={passive:!0};_(t,["pointerdown","pointermove","pointerup"],l,r),_(t,"pointerleave",()=>n.value=!1,r)}return{...d.toRefs(o),isInside:n}}function Eo(e,t={}){const{document:n=$}=t,o=N(()=>n&&"pointerLockElement"in n),l=a.ref(),r=a.ref();let u;o.value&&(_(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:l.value;u&&f===u&&(l.value=n.pointerLockElement,l.value||(u=r.value=null))}),_(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:l.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(r.value=c instanceof Event?c.currentTarget:null,u=c instanceof Event?(f=L(e))!=null?f:r.value:L(c),!u)throw new Error("Target element undefined.");return u.requestPointerLock(),await d.until(l).toBe(u)}async function i(){return l.value?(n.exitPointerLock(),await d.until(l).toBeNull(),!0):!1}return{isSupported:o,element:l,triggerElement:r,lock:s,unlock:i}}function To(e,t={}){const n=d.toRef(e),{threshold:o=50,onSwipe:l,onSwipeEnd:r,onSwipeStart:u,disableTextSelect:s=!1}=t,i=a.reactive({x:0,y:0}),c=(T,P)=>{i.x=T,i.y=P},f=a.reactive({x:0,y:0}),v=(T,P)=>{f.x=T,f.y=P},m=a.computed(()=>i.x-f.x),p=a.computed(()=>i.y-f.y),{max:y,abs:S}=Math,g=a.computed(()=>y(S(m.value),S(p.value))>=o),b=a.ref(!1),h=a.ref(!1),E=a.computed(()=>g.value?S(m.value)>S(p.value)?m.value>0?"left":"right":p.value>0?"up":"down":"none"),R=T=>{var P,C,O;const F=T.buttons===0,I=T.buttons===1;return(O=(C=(P=t.pointerTypes)==null?void 0:P.includes(T.pointerType))!=null?C:F||I)!=null?O:!0},k=[_(e,"pointerdown",T=>{if(!R(T))return;h.value=!0;const P=T.target;P?.setPointerCapture(T.pointerId);const{clientX:C,clientY:O}=T;c(C,O),v(C,O),u?.(T)}),_(e,"pointermove",T=>{if(!R(T)||!h.value)return;const{clientX:P,clientY:C}=T;v(P,C),!b.value&&g.value&&(b.value=!0),b.value&&l?.(T)}),_(e,"pointerup",T=>{R(T)&&(b.value&&r?.(T,E.value),h.value=!1,b.value=!1)})];d.tryOnMounted(()=>{var T,P,C,O,F,I,x,j;(P=(T=n.value)==null?void 0:T.style)==null||P.setProperty("touch-action","none"),s&&((O=(C=n.value)==null?void 0:C.style)==null||O.setProperty("-webkit-user-select","none"),(I=(F=n.value)==null?void 0:F.style)==null||I.setProperty("-ms-user-select","none"),(j=(x=n.value)==null?void 0:x.style)==null||j.setProperty("user-select","none"))});const A=()=>k.forEach(T=>T());return{isSwiping:a.readonly(b),direction:a.readonly(E),posStart:a.readonly(i),posEnd:a.readonly(f),distanceX:m,distanceY:p,stop:A}}function Oo(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 ko(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 _o(e={}){const{window:t=V}=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 Ro(e){const t=G("(prefers-reduced-motion: reduce)",e);return a.computed(()=>t.value?"reduce":"no-preference")}function Fo(e,t){const n=a.shallowRef(t);return a.watch(d.toRef(e),(o,l)=>{n.value=l},{flush:"sync"}),a.readonly(n)}const at="--vueuse-safe-area-top",ut="--vueuse-safe-area-right",st="--vueuse-safe-area-bottom",it="--vueuse-safe-area-left";function Co(){const e=a.ref(""),t=a.ref(""),n=a.ref(""),o=a.ref("");if(d.isClient){const r=le(at),u=le(ut),s=le(st),i=le(it);r.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)",l(),_("resize",d.useDebounceFn(l))}function l(){e.value=he(at),t.value=he(ut),n.value=he(st),o.value=he(it)}return{top:e,right:t,bottom:n,left:o,update:l}}function he(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Po(e,t=d.noop,n={}){const{immediate:o=!0,manual:l=!1,type:r="text/javascript",async:u=!0,crossOrigin:s,referrerPolicy:i,noModule:c,defer:f,document:v=$,attrs:m={}}=n,p=a.ref(null);let y=null;const S=h=>new Promise((E,R)=>{const k=P=>(p.value=P,E(P),P);if(!v){E(!1);return}let A=!1,T=v.querySelector(`script[src="${d.toValue(e)}"]`);T?T.hasAttribute("data-loaded")&&k(T):(T=v.createElement("script"),T.type=r,T.async=u,T.src=d.toValue(e),f&&(T.defer=f),s&&(T.crossOrigin=s),c&&(T.noModule=c),i&&(T.referrerPolicy=i),Object.entries(m).forEach(([P,C])=>T?.setAttribute(P,C)),A=!0),T.addEventListener("error",P=>R(P)),T.addEventListener("abort",P=>R(P)),T.addEventListener("load",()=>{T.setAttribute("data-loaded","true"),t(T),k(T)}),A&&(T=v.head.appendChild(T)),h||k(T)}),g=(h=!0)=>(y||(y=S(h)),y),b=()=>{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&&!l&&d.tryOnMounted(g),l||d.tryOnUnmounted(b),{scriptTag:p,load:g,unload:b}}function ct(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:ct(n)}}function Vo(e){const t=e||window.event,n=t.target;return ct(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const be=new WeakMap;function Ao(e,t=!1){const n=a.ref(t);let o=null;a.watch(d.toRef(e),u=>{const s=we(d.toValue(u));if(s){const i=s;be.get(i)||be.set(i,i.style.overflow),n.value&&(i.style.overflow="hidden")}},{immediate:!0});const l=()=>{const u=we(d.toValue(e));!u||n.value||(d.isIOS&&(o=_(u,"touchmove",s=>{Vo(s)},{passive:!1})),u.style.overflow="hidden",n.value=!0)},r=()=>{var u;const s=we(d.toValue(e));!s||!n.value||(d.isIOS&&o?.(),s.style.overflow=(u=be.get(s))!=null?u:"",be.delete(s),n.value=!1)};return d.tryOnScopeDispose(r),a.computed({get(){return n.value},set(u){u?l():r()}})}function Io(e,t,n={}){const{window:o=V}=n;return ye(e,t,o?.sessionStorage,n)}function Mo(e={},t={}){const{navigator:n=U}=t,o=n,l=N(()=>o&&"canShare"in o);return{isSupported:l,share:async(u={})=>{if(l.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 Lo=(e,t)=>e.sort(t),Se=(e,t)=>e-t;function No(...e){var t,n,o,l;const[r]=e;let u=Se,s={};e.length===2?typeof e[1]=="object"?(s=e[1],u=(t=s.compareFn)!=null?t:Se):u=(n=e[1])!=null?n:Se:e.length>2&&(u=(o=e[1])!=null?o:Se,s=(l=e[2])!=null?l:{});const{dirty:i=!1,sortFn:c=Lo}=s;return i?(a.watchEffect(()=>{const f=c(d.toValue(r),u);a.isRef(r)?r.value=f:r.splice(0,r.length,...f)}),r):a.computed(()=>c([...d.toValue(r)],u))}function xo(e={}){const{interimResults:t=!0,continuous:n=!0,window:o=V}=e,l=d.toRef(e.lang||"en-US"),r=a.ref(!1),u=a.ref(!1),s=a.ref(""),i=a.shallowRef(void 0),c=(S=!r.value)=>{r.value=S},f=()=>{r.value=!0},v=()=>{r.value=!1},m=o&&(o.SpeechRecognition||o.webkitSpeechRecognition),p=N(()=>m);let y;return p.value&&(y=new m,y.continuous=n,y.interimResults=t,y.lang=d.toValue(l),y.onstart=()=>{u.value=!1},a.watch(l,S=>{y&&!r.value&&(y.lang=S)}),y.onresult=S=>{const g=Array.from(S.results).map(b=>(u.value=b.isFinal,b[0])).map(b=>b.transcript).join("");s.value=g,i.value=void 0},y.onerror=S=>{i.value=S},y.onend=()=>{r.value=!1,y.lang=d.toValue(l)},a.watch(r,()=>{r.value?y.start():y.stop()})),d.tryOnScopeDispose(()=>{r.value=!1}),{isSupported:p,isListening:r,isFinal:u,recognition:y,result:s,error:i,toggle:c,start:f,stop:v}}function Wo(e,t={}){const{pitch:n=1,rate:o=1,volume:l=1,window:r=V}=t,u=r&&r.speechSynthesis,s=N(()=>u),i=a.ref(!1),c=a.ref("init"),f=d.toRef(e||""),v=d.toRef(t.lang||"en-US"),m=a.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=l,h.onstart=()=>{i.value=!0,c.value="play"},h.onpause=()=>{i.value=!1,c.value="pause"},h.onresume=()=>{i.value=!0,c.value="play"},h.onend=()=>{i.value=!1,c.value="end"},h.onerror=E=>{m.value=E}},S=a.computed(()=>{i.value=!1,c.value="init";const h=new SpeechSynthesisUtterance(f.value);return y(h),h}),g=()=>{u.cancel(),S&&u.speak(S.value)},b=()=>{u.cancel(),i.value=!1};return s.value&&(y(S.value),a.watch(v,h=>{S.value&&!i.value&&(S.value.lang=h)}),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:m,stop:b,toggle:p,speak:g}}function Ho(e,t){const n=a.ref(e),o=a.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),l=a.ref(o.value.indexOf(t??o.value[0])),r=a.computed(()=>f(l.value)),u=a.computed(()=>l.value===0),s=a.computed(()=>l.value===o.value.length-1),i=a.computed(()=>o.value[l.value+1]),c=a.computed(()=>o.value[l.value-1]);function f(k){return Array.isArray(n.value)?n.value[k]:n.value[o.value[k]]}function v(k){if(o.value.includes(k))return f(o.value.indexOf(k))}function m(k){o.value.includes(k)&&(l.value=o.value.indexOf(k))}function p(){s.value||l.value++}function y(){u.value||l.value--}function S(k){R(k)&&m(k)}function g(k){return o.value.indexOf(k)===l.value+1}function b(k){return o.value.indexOf(k)===l.value-1}function h(k){return o.value.indexOf(k)===l.value}function E(k){return l.value<o.value.indexOf(k)}function R(k){return l.value>o.value.indexOf(k)}return{steps:n,stepNames:o,index:l,current:r,next:i,previous:c,isFirst:u,isLast:s,at:f,get:v,goTo:m,goToNext:p,goToPrevious:y,goBackTo:S,isNext:g,isPrevious:b,isCurrent:h,isBefore:E,isAfter:R}}function $o(e,t,n,o={}){var l;const{flush:r="pre",deep:u=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:v=V,eventFilter:m,onError:p=E=>{console.error(E)}}=o,y=d.toValue(t),S=He(y),g=(f?a.shallowRef:a.ref)(t),b=(l=o.serializer)!=null?l:Te[S];if(!n)try{n=pe("getDefaultStorageAsync",()=>{var E;return(E=V)==null?void 0:E.localStorage})()}catch(E){p(E)}async function h(E){if(!(!n||E&&E.key!==e))try{const R=E?E.newValue:await n.getItem(e);if(R==null)g.value=y,i&&y!==null&&await n.setItem(e,await b.write(y));else if(c){const k=await b.read(R);typeof c=="function"?g.value=c(k,y):S==="object"&&!Array.isArray(k)?g.value={...y,...k}:g.value=k}else g.value=await b.read(R)}catch(R){p(R)}}return h(),v&&s&&_(v,"storage",E=>Promise.resolve().then(()=>h(E))),n&&d.watchWithFilter(g,async()=>{try{g.value==null?await n.removeItem(e):await n.setItem(e,await b.write(g.value))}catch(E){p(E)}},{flush:r,deep:u,eventFilter:m}),g}let Uo=0;function jo(e,t={}){const n=a.ref(!1),{document:o=$,immediate:l=!0,manual:r=!1,id:u=`vueuse_styletag_${++Uo}`}=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,m=>{v.textContent=m},{immediate:!0}),n.value=!0)},f=()=>{!o||!n.value||(i(),o.head.removeChild(o.getElementById(u)),n.value=!1)};return l&&!r&&d.tryOnMounted(c),r||d.tryOnScopeDispose(f),{id:u,css:s,unload:f,load:c,isLoaded:a.readonly(n)}}function Bo(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:l,onSwipeStart:r,passive:u=!0,window:s=V}=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:m,abs:p}=Math,y=a.computed(()=>m(p(f.value),p(v.value))>=n),S=a.ref(!1),g=a.computed(()=>y.value?p(f.value)>p(v.value)?f.value>0?"left":"right":v.value>0?"up":"down":"none"),b=C=>[C.touches[0].clientX,C.touches[0].clientY],h=(C,O)=>{i.x=C,i.y=O},E=(C,O)=>{c.x=C,c.y=O};let R;const k=zo(s?.document);u?R=k?{passive:!0}:{capture:!1}:R=k?{passive:!1,capture:!0}:{capture:!0};const A=C=>{S.value&&l?.(C,g.value),S.value=!1},T=[_(e,"touchstart",C=>{if(C.touches.length!==1)return;R.capture&&!R.passive&&C.preventDefault();const[O,F]=b(C);h(O,F),E(O,F),r?.(C)},R),_(e,"touchmove",C=>{if(C.touches.length!==1)return;const[O,F]=b(C);E(O,F),!S.value&&y.value&&(S.value=!0),S.value&&o?.(C)},R),_(e,["touchend","touchcancel"],A,R)];return{isPassiveEventSupported:k,isSwiping:S,direction:g,coordsStart:i,coordsEnd:c,lengthX:f,lengthY:v,stop:()=>T.forEach(C=>C())}}function zo(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 qo(){const e=a.ref([]);return e.value.set=t=>{t&&e.value.push(t)},a.onBeforeUpdate(()=>{e.value.length=0}),e}function Go(e={}){const{document:t=$,selector:n="html",observe:o=!1,initialValue:l="ltr"}=e;function r(){var s,i;return(i=(s=t?.querySelector(n))==null?void 0:s.getAttribute("dir"))!=null?i:l}const u=a.ref(r());return d.tryOnMounted(()=>u.value=r()),o&&t&&re(t.querySelector(n),()=>u.value=r(),{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 Yo(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(o,l)=>e.getRangeAt(l))}function Xo(e={}){const{window:t=V}=e,n=a.ref(null),o=a.computed(()=>{var s,i;return(i=(s=n.value)==null?void 0:s.toString())!=null?i:""}),l=a.computed(()=>n.value?Yo(n.value):[]),r=a.computed(()=>l.value.map(s=>s.getBoundingClientRect()));function u(){n.value=null,t&&(n.value=t.getSelection())}return t&&_(t.document,"selectionchange",u),{text:o,rects:r,ranges:l,selection:n}}function Ko(e){var t;const n=a.ref(e?.element),o=a.ref(e?.input),l=(t=e?.styleProp)!=null?t:"height",r=a.ref(1);function u(){var s,i;if(!n.value)return;let c="";n.value.style[l]="1px",r.value=(s=n.value)==null?void 0:s.scrollHeight,e?.styleTarget?d.toValue(e.styleTarget).style[l]=`${r.value}px`:c=`${r.value}px`,n.value.style[l]=c,(i=e?.onResize)==null||i.call(e)}return a.watch([o,n],()=>a.nextTick(u),{immediate:!0}),me(n,()=>u()),e?.watch&&a.watch(e.watch,u,{immediate:!0,deep:!0}),{textarea:n,input:o,triggerResize:u}}function Jo(e,t={}){const{throttle:n=200,trailing:o=!0}=t,l=d.throttleFilter(n,o);return{..._e(e,{...t,eventFilter:l})}}const Qo=[{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"}],Zo={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 Do(e){return e.toISOString().slice(0,10)}function er(e,t={}){const{controls:n=!1,updateInterval:o=3e4}=t,{now:l,...r}=nt({interval:o,controls:!0}),u=a.computed(()=>ft(new Date(d.toValue(e)),t,d.toValue(l)));return n?{timeAgo:u,...r}:u}function ft(e,t={},n=Date.now()){var o;const{max:l,messages:r=Zo,fullDateFormatter:u=Do,units:s=Qo,showSecond:i=!1,rounding:c="round"}=t,f=typeof c=="number"?g=>+g.toFixed(c):Math[c],v=+n-+e,m=Math.abs(v);function p(g,b){return f(Math.abs(g)/b.value)}function y(g,b){const h=p(g,b),E=g>0,R=S(b.name,h,E);return S(E?"past":"future",R,E)}function S(g,b,h){const E=r[g];return typeof E=="function"?E(b,h):E.replace("{0}",b.toString())}if(m<6e4&&!i)return r.justNow;if(typeof l=="number"&&m>l)return u(new Date(e));if(typeof l=="string"){const g=(o=s.find(b=>b.name===l))==null?void 0:o.max;if(g&&m>g)return u(new Date(e))}for(const[g,b]of s.entries()){if(p(v,b)<=0&&s[g-1])return y(v,s[g-1]);if(m<b.max)return y(v,b)}return r.invalid}function tr(e,t,n){const{start:o}=d.useTimeoutFn(r,t,{immediate:!1}),l=a.ref(!1);async function r(){l.value&&(await e(),o())}function u(){l.value||(l.value=!0,r())}function s(){l.value=!1}return n?.immediate&&u(),d.tryOnScopeDispose(s),{isActive:l,pause:s,resume:u}}function nr(e={}){const{controls:t=!1,offset:n=0,immediate:o=!0,interval:l="requestAnimationFrame",callback:r}=e,u=a.ref(d.timestamp()+n),s=()=>u.value=d.timestamp()+n,i=r?()=>{s(),r(u.value)}:s,c=l==="requestAnimationFrame"?Z(i,{immediate:o}):d.useIntervalFn(i,l,{immediate:o});return t?{timestamp:u,...c}:u}function or(e=null,t={}){var n,o,l;const{document:r=$,restoreOnUnmount:u=v=>v}=t,s=(n=r?.title)!=null?n:"",i=d.toRef((o=e??r?.title)!=null?o:null),c=e&&typeof e=="function";function f(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 a.watch(i,(v,m)=>{v!==m&&r&&(r.title=f(typeof v=="string"?v:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!c&&re((l=r.head)==null?void 0:l.querySelector("title"),()=>{r&&r.title!==i.value&&(i.value=f(r.title))},{childList:!0}),d.tryOnBeforeUnmount(()=>{if(u){const v=u(s,i.value||"");v!=null&&r&&(r.title=v)}}),i}const rr={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]},lr=Object.assign({},{linear:d.identity},rr);function ar([e,t,n,o]){const l=(f,v)=>1-3*v+3*f,r=(f,v)=>3*v-6*f,u=f=>3*f,s=(f,v,m)=>((l(v,m)*f+r(v,m))*f+u(v))*f,i=(f,v,m)=>3*l(v,m)*f*f+2*r(v,m)*f+u(v),c=f=>{let v=f;for(let m=0;m<4;++m){const p=i(v,e,n);if(p===0)return v;const y=s(v,e,n)-f;v-=y/p}return v};return f=>e===t&&n===o?f:s(c(f),t,o)}function dt(e,t,n){return e+n*(t-e)}function Ce(e){return(typeof e=="number"?[e]:e)||[]}function vt(e,t,n,o={}){var l,r;const u=d.toValue(t),s=d.toValue(n),i=Ce(u),c=Ce(s),f=(l=d.toValue(o.duration))!=null?l:1e3,v=Date.now(),m=Date.now()+f,p=typeof o.transition=="function"?o.transition:(r=d.toValue(o.transition))!=null?r:d.identity,y=typeof p=="function"?p:ar(p);return new Promise(S=>{e.value=u;const g=()=>{var b;if((b=o.abort)!=null&&b.call(o)){S();return}const h=Date.now(),E=y((h-v)/f),R=Ce(e.value).map((k,A)=>dt(i[A],c[A],E));Array.isArray(e.value)?e.value=R.map((k,A)=>{var T,P;return dt((T=i[A])!=null?T:0,(P=c[A])!=null?P:0,E)}):typeof e.value=="number"&&(e.value=R[0]),h<m?requestAnimationFrame(g):(e.value=s,S())};g()})}function ur(e,t={}){let n=0;const o=()=>{const r=d.toValue(e);return typeof r=="number"?r:r.map(d.toValue)},l=a.ref(o());return a.watch(o,async r=>{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(r)?r.map(d.toValue):d.toValue(r);(u=t.onStarted)==null||u.call(t),await vt(l,l.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),r=>{r&&(n++,l.value=o())}),d.tryOnScopeDispose(()=>{n++}),a.computed(()=>d.toValue(t.disabled)?o():l.value)}function sr(e="history",t={}){const{initialValue:n={},removeNullishValues:o=!0,removeFalsyValues:l=!1,write:r=!0,window:u=V}=t;if(!u)return a.reactive(n);const s=a.reactive({});function i(){if(e==="history")return u.location.search||"";if(e==="hash"){const b=u.location.hash||"",h=b.indexOf("?");return h>0?b.slice(h):""}else return(u.location.hash||"").replace(/^#/,"")}function c(b){const h=b.toString();if(e==="history")return`${h?`?${h}`:""}${u.location.hash||""}`;if(e==="hash-params")return`${u.location.search||""}${h?`#${h}`:""}`;const E=u.location.hash||"#",R=E.indexOf("?");return R>0?`${E.slice(0,R)}${h?`?${h}`:""}`:`${E}${h?`?${h}`:""}`}function f(){return new URLSearchParams(i())}function v(b){const h=new Set(Object.keys(s));for(const E of b.keys()){const R=b.getAll(E);s[E]=R.length>1?R:b.get(E)||"",h.delete(E)}Array.from(h).forEach(E=>delete s[E])}const{pause:m,resume:p}=d.pausableWatch(s,()=>{const b=new URLSearchParams("");Object.keys(s).forEach(h=>{const E=s[h];Array.isArray(E)?E.forEach(R=>b.append(h,R)):o&&E==null||l&&!E?b.delete(h):b.set(h,E)}),y(b)},{deep:!0});function y(b,h){m(),h&&v(b),u.history.replaceState(u.history.state,u.document.title,u.location.pathname+c(b)),p()}function S(){r&&y(f(),!0)}_(u,"popstate",S,!1),e!=="history"&&_(u,"hashchange",S,!1);const g=f();return g.keys().next().value?v(g):Object.assign(s,n),s}function ir(e={}){var t,n;const o=a.ref((t=e.enabled)!=null?t:!1),l=a.ref((n=e.autoSwitch)!=null?n:!0),r=a.ref(e.constraints),{navigator:u=U}=e,s=N(()=>{var S;return(S=u?.mediaDevices)==null?void 0:S.getUserMedia}),i=a.shallowRef();function c(S){switch(S){case"video":{if(r.value)return r.value.video||!1;break}case"audio":{if(r.value)return r.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(g=>g.stop()),i.value=void 0}function m(){v(),o.value=!1}async function p(){return await f(),i.value&&(o.value=!0),i.value}async function y(){return v(),await p()}return a.watch(o,S=>{S?f():v()},{immediate:!0}),a.watch(r,()=>{l.value&&i.value&&y()},{immediate:!0}),d.tryOnScopeDispose(()=>{m()}),{isSupported:s,stream:i,start:p,stop:m,restart:y,constraints:r,enabled:o,autoSwitch:l}}function pt(e,t,n,o={}){var l,r,u,s,i;const{clone:c=!1,passive:f=!1,eventName:v,deep:m=!1,defaultValue:p,shouldEmit:y}=o,S=a.getCurrentInstance(),g=n||S?.emit||((l=S?.$emit)==null?void 0:l.bind(S))||((u=(r=S?.proxy)==null?void 0:r.$emit)==null?void 0:u.bind(S?.proxy));let b=v;if(!t)if(a.isVue2){const k=(i=(s=S?.proxy)==null?void 0:s.$options)==null?void 0:i.model;t=k?.value||"value",v||(b=k?.event||"input")}else t="modelValue";b=b||`update:${t.toString()}`;const h=k=>c?typeof c=="function"?c(k):oe(k):k,E=()=>d.isDef(e[t])?h(e[t]):p,R=k=>{y?y(k)&&g(b,k):g(b,k)};if(f){const k=E(),A=a.ref(k);let T=!1;return a.watch(()=>e[t],P=>{T||(T=!0,A.value=h(P),a.nextTick(()=>T=!1))}),a.watch(A,P=>{!T&&(P!==e[t]||m)&&R(P)},{deep:m}),A}else return a.computed({get(){return E()},set(k){R(k)}})}function cr(e,t,n={}){const o={};for(const l in e)o[l]=pt(e,l,t,n);return o}function fr(e){const{pattern:t=[],interval:n=0,navigator:o=U}=e||{},l=N(()=>typeof o<"u"&&"vibrate"in o),r=d.toRef(t);let u;const s=(c=r.value)=>{l.value&&o.vibrate(c)},i=()=>{l.value&&o.vibrate(0),u?.pause()};return n>0&&(u=d.useIntervalFn(s,n,{immediate:!1,immediateCallback:!1})),{isSupported:l,pattern:t,intervalControls:u,vibrate:s,stop:i}}function dr(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:l,calculateRange:r,currentList:u,containerRef:s}="itemHeight"in t?yr(t,e):pr(t,e);return{list:u,scrollTo:l,containerProps:{ref:s,onScroll:()=>{r()},style:n},wrapperProps:o}}function yt(e){const t=a.ref(null),n=qe(t),o=a.ref([]),l=a.shallowRef(e);return{state:a.ref({start:0,end:10}),source:l,currentList:o,size:n,containerRef:t}}function mt(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:l=0}=e.value;let r=0,u=0;for(let s=l;s<t.value.length;s++){const i=n(s);if(r+=i,u=s,r>o)break}return u-l}}function gt(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,l=0;for(let r=0;r<e.value.length;r++){const u=t(r);if(o+=u,o>=n){l=r;break}}return l+1}}function wt(e,t,n,o,{containerRef:l,state:r,currentList:u,source:s}){return()=>{const i=l.value;if(i){const c=n(e==="vertical"?i.scrollTop:i.scrollLeft),f=o(e==="vertical"?i.clientHeight:i.clientWidth),v=c-t,m=c+f+t;r.value={start:v<0?0:v,end:m>s.value.length?s.value.length:m},u.value=s.value.slice(r.value.start,r.value.end).map((p,y)=>({data:p,index:y+r.value.start}))}}}function ht(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((l,r,u)=>l+e(u),0)}function bt(e,t,n){a.watch([e.width,e.height,t],()=>{n()})}function St(e,t){return a.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,l)=>n+e(l),0))}const vr={horizontal:"scrollLeft",vertical:"scrollTop"};function Et(e,t,n,o){return l=>{o.value&&(o.value[vr[e]]=n(l),t())}}function pr(e,t){const n=yt(t),{state:o,source:l,currentList:r,size:u,containerRef:s}=n,i={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,v=mt(o,l,c),m=gt(l,c),p=wt("horizontal",f,m,v,n),y=ht(c,l),S=a.computed(()=>y(o.value.start)),g=St(c,l);bt(u,t,p);const b=Et("horizontal",p,y,s),h=a.computed(()=>({style:{height:"100%",width:`${g.value-S.value}px`,marginLeft:`${S.value}px`,display:"flex"}}));return{scrollTo:b,calculateRange:p,wrapperProps:h,containerStyle:i,currentList:r,containerRef:s}}function yr(e,t){const n=yt(t),{state:o,source:l,currentList:r,size:u,containerRef:s}=n,i={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,v=mt(o,l,c),m=gt(l,c),p=wt("vertical",f,m,v,n),y=ht(c,l),S=a.computed(()=>y(o.value.start)),g=St(c,l);bt(u,t,p);const b=Et("vertical",p,y,s),h=a.computed(()=>({style:{width:"100%",height:`${g.value-S.value}px`,marginTop:`${S.value}px`}}));return{calculateRange:p,scrollTo:b,containerStyle:i,wrapperProps:h,currentList:r,containerRef:s}}function mr(e={}){const{navigator:t=U,document:n=$}=e;let o;const l=N(()=>t&&"wakeLock"in t),r=a.ref(!1);async function u(){!l.value||!o||(n&&n.visibilityState==="visible"&&(o=await t.wakeLock.request("screen")),r.value=!o.released)}n&&_(n,"visibilitychange",u,{passive:!0});async function s(c){l.value&&(o=await t.wakeLock.request(c),r.value=!o.released)}async function i(){!l.value||!o||(await o.release(),r.value=!o.released,o=null)}return{isSupported:l,isActive:r,request:s,release:i}}function gr(e={}){const{window:t=V,requestPermissions:n=!0}=e,o=e,l=N(()=>!!t&&"Notification"in t),r=a.ref(l.value&&"permission"in Notification&&Notification.permission==="granted"),u=a.ref(null),s=async()=>{if(l.value)return!r.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(r.value=!0),r.value},{on:i,trigger:c}=d.createEventHook(),{on:f,trigger:v}=d.createEventHook(),{on:m,trigger:p}=d.createEventHook(),{on:y,trigger:S}=d.createEventHook(),g=async h=>{if(!l.value||!r.value)return;const E=Object.assign({},o,h);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},b=()=>{u.value&&u.value.close(),u.value=null};if(n&&d.tryOnMounted(s),d.tryOnScopeDispose(b),l.value&&t){const h=t.document;_(h,"visibilitychange",E=>{E.preventDefault(),h.visibilityState==="visible"&&b()})}return{isSupported:l,notification:u,ensurePermissions:s,permissionGranted:r,show:g,close:b,onClick:i,onShow:f,onError:m,onClose:y}}const Tt="ping";function Pe(e){return e===!0?{}:e}function wr(e,t={}){const{onConnected:n,onDisconnected:o,onError:l,onMessage:r,immediate:u=!0,autoClose:s=!0,protocols:i=[]}=t,c=a.ref(null),f=a.ref("CLOSED"),v=a.ref(),m=d.toRef(e);let p,y,S=!1,g=0,b=[],h;const E=()=>{if(b.length&&v.value&&f.value==="OPEN"){for(const C of b)v.value.send(C);b=[]}},R=()=>{clearTimeout(h),h=void 0},k=(C=1e3,O)=>{!d.isClient||!v.value||(S=!0,R(),p?.(),v.value.close(C,O),v.value=void 0)},A=(C,O=!0)=>!v.value||f.value!=="OPEN"?(O&&b.push(C),!1):(E(),v.value.send(C),!0),T=()=>{if(S||typeof m.value>"u")return;const C=new WebSocket(m.value,i);v.value=C,f.value="CONNECTING",C.onopen=()=>{f.value="OPEN",n?.(C),y?.(),E()},C.onclose=O=>{if(f.value="CLOSED",o?.(C,O),!S&&t.autoReconnect){const{retries:F=-1,delay:I=1e3,onFailed:x}=Pe(t.autoReconnect);g+=1,typeof F=="number"&&(F<0||g<F)||typeof F=="function"&&F()?setTimeout(T,I):x?.()}},C.onerror=O=>{l?.(C,O)},C.onmessage=O=>{if(t.heartbeat){R();const{message:F=Tt}=Pe(t.heartbeat);if(O.data===F)return}c.value=O.data,r?.(C,O)}};if(t.heartbeat){const{message:C=Tt,interval:O=1e3,pongTimeout:F=1e3}=Pe(t.heartbeat),{pause:I,resume:x}=d.useIntervalFn(()=>{A(C,!1),h==null&&(h=setTimeout(()=>{k(),S=!1},F))},O,{immediate:!1});p=I,y=x}s&&(d.isClient&&_("beforeunload",()=>k()),d.tryOnScopeDispose(k));const P=()=>{!d.isClient&&!d.isWorker||(k(),S=!1,g=0,T())};return u&&P(),{data:c,status:f,close:k,send:A,open:P,ws:v}}function hr(e,t,n){const{window:o=V}=n??{},l=a.ref(null),r=a.shallowRef(),u=(...i)=>{r.value&&r.value.postMessage(...i)},s=function(){r.value&&r.value.terminate()};return o&&(typeof e=="string"?r.value=new Worker(e,t):typeof e=="function"?r.value=e():r.value=e,r.value.onmessage=i=>{l.value=i.data},d.tryOnScopeDispose(()=>{r.value&&r.value.terminate()})),{data:l,post:u,terminate:s,worker:r}}function br(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 Sr(e){return e.length===0?"":`importScripts(${e.map(n=>`'${n}'`).toString()})`}function Er(e,t){const n=`${Sr(t)}; onmessage=(${br})(${e})`,o=new Blob([n],{type:"text/javascript"});return URL.createObjectURL(o)}function Tr(e,t={}){const{dependencies:n=[],timeout:o,window:l=V}=t,r=a.ref(),u=a.ref("PENDING"),s=a.ref({}),i=a.ref(),c=(p="PENDING")=>{r.value&&r.value._url&&l&&(r.value.terminate(),URL.revokeObjectURL(r.value._url),s.value={},r.value=void 0,l.clearTimeout(i.value),u.value=p)};c(),d.tryOnScopeDispose(c);const f=()=>{const p=Er(e,n),y=new Worker(p);return y._url=p,y.onmessage=S=>{const{resolve:g=()=>{},reject:b=()=>{}}=s.value,[h,E]=S.data;switch(h){case"SUCCESS":g(E),c(h);break;default:b(E),c("ERROR");break}},y.onerror=S=>{const{reject:g=()=>{}}=s.value;S.preventDefault(),g(S),c("ERROR")},o&&(i.value=setTimeout(()=>c("TIMEOUT_EXPIRED"),o)),y},v=(...p)=>new Promise((y,S)=>{s.value={resolve:y,reject:S},r.value&&r.value.postMessage([[...p]]),u.value="RUNNING"});return{workerFn:(...p)=>u.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(r.value=f(),v(...p)),workerStatus:u,workerTerminate:c}}function Or(e={}){const{window:t=V}=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 kr(e={}){const{window:t=V,behavior:n="auto"}=e;if(!t)return{x:a.ref(0),y:a.ref(0)};const o=a.ref(t.scrollX),l=a.ref(t.scrollY),r=a.computed({get(){return o.value},set(s){scrollTo({left:s,behavior:n})}}),u=a.computed({get(){return l.value},set(s){scrollTo({top:s,behavior:n})}});return _(t,"scroll",()=>{o.value=t.scrollX,l.value=t.scrollY},{capture:!1,passive:!0}),{x:r,y:u}}function _r(e={}){const{window:t=V,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:l=!0,includeScrollbar:r=!0}=e,u=a.ref(n),s=a.ref(o),i=()=>{t&&(r?(u.value=t.innerWidth,s.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};if(i(),d.tryOnMounted(i),_("resize",i,{passive:!0}),l){const c=G("(orientation: portrait)");a.watch(c,()=>i())}return{width:u,height:s}}w.DefaultMagicKeysAliasMap=Ze,w.StorageSerializers=Te,w.TransitionPresets=lr,w.asyncComputed=Y,w.breakpointsAntDesign=Jt,w.breakpointsBootstrapV5=Yt,w.breakpointsMasterCss=Dt,w.breakpointsPrimeFlex=en,w.breakpointsQuasar=Qt,w.breakpointsSematic=Zt,w.breakpointsTailwind=Gt,w.breakpointsVuetify=Kt,w.breakpointsVuetifyV2=Ne,w.breakpointsVuetifyV3=Xt,w.cloneFnJSON=oe,w.computedAsync=Y,w.computedInject=Ve,w.createFetch=Ln,w.createReusableTemplate=q,w.createTemplatePromise=J,w.createUnrefFn=K,w.customStorageEventName=Oe,w.defaultDocument=$,w.defaultLocation=kt,w.defaultNavigator=U,w.defaultWindow=V,w.executeTransition=vt,w.formatTimeAgo=ft,w.getSSRHandler=pe,w.mapGamepadToXbox360Controller=zn,w.onClickOutside=_t,w.onKeyDown=Ft,w.onKeyPressed=Ct,w.onKeyStroke=ce,w.onKeyUp=Pt,w.onLongPress=It,w.onStartTyping=Nt,w.setSSRHandler=cn,w.templateRef=xt,w.unrefElement=L,w.useActiveElement=Ie,w.useAnimate=Wt,w.useAsyncQueue=Ht,w.useAsyncState=Le,w.useBase64=jt,w.useBattery=zt,w.useBluetooth=qt,w.useBreakpoints=tn,w.useBroadcastChannel=nn,w.useBrowserLocation=on,w.useCached=rn,w.useClipboard=ln,w.useClipboardItems=an,w.useCloned=un,w.useColorMode=$e,w.useConfirmDialog=fn,w.useCssVar=le,w.useCurrentElement=Ue,w.useCycleList=dn,w.useDark=vn,w.useDebouncedRefHistory=gn,w.useDeviceMotion=wn,w.useDeviceOrientation=ze,w.useDevicePixelRatio=hn,w.useDevicesList=bn,w.useDisplayMedia=Sn,w.useDocumentVisibility=En,w.useDraggable=Tn,w.useDropZone=On,w.useElementBounding=kn,w.useElementByPoint=_n,w.useElementHover=Rn,w.useElementSize=qe,w.useElementVisibility=Ye,w.useEventBus=Fn,w.useEventListener=_,w.useEventSource=Pn,w.useEyeDropper=Vn,w.useFavicon=An,w.useFetch=Xe,w.useFileDialog=Wn,w.useFileSystemAccess=Hn,w.useFocus=$n,w.useFocusWithin=Un,w.useFps=jn,w.useFullscreen=Bn,w.useGamepad=qn,w.useGeolocation=Gn,w.useIdle=Kn,w.useImage=Qn,w.useInfiniteScroll=Zn,w.useIntersectionObserver=Ge,w.useKeyModifier=eo,w.useLocalStorage=to,w.useMagicKeys=no,w.useManualRefHistory=Be,w.useMediaControls=lo,w.useMediaQuery=G,w.useMemoize=uo,w.useMemory=so,w.useMounted=Me,w.useMouse=De,w.useMouseInElement=et,w.useMousePressed=co,w.useMutationObserver=re,w.useNavigatorLanguage=fo,w.useNetwork=tt,w.useNow=nt,w.useObjectUrl=vo,w.useOffsetPagination=po,w.useOnline=yo,w.usePageLeave=mo,w.useParallax=go,w.useParentElement=wo,w.usePerformanceObserver=ho,w.usePermission=fe,w.usePointer=So,w.usePointerLock=Eo,w.usePointerSwipe=To,w.usePreferredColorScheme=Oo,w.usePreferredContrast=ko,w.usePreferredDark=ke,w.usePreferredLanguages=_o,w.usePreferredReducedMotion=Ro,w.usePrevious=Fo,w.useRafFn=Z,w.useRefHistory=_e,w.useResizeObserver=me,w.useScreenOrientation=rt,w.useScreenSafeArea=Co,w.useScriptTag=Po,w.useScroll=Qe,w.useScrollLock=Ao,w.useSessionStorage=Io,w.useShare=Mo,w.useSorted=No,w.useSpeechRecognition=xo,w.useSpeechSynthesis=Wo,w.useStepper=Ho,w.useStorage=ye,w.useStorageAsync=$o,w.useStyleTag=jo,w.useSupported=N,w.useSwipe=Bo,w.useTemplateRefsList=qo,w.useTextDirection=Go,w.useTextSelection=Xo,w.useTextareaAutosize=Ko,w.useThrottledRefHistory=Jo,w.useTimeAgo=er,w.useTimeoutPoll=tr,w.useTimestamp=nr,w.useTitle=or,w.useTransition=ur,w.useUrlSearchParams=sr,w.useUserMedia=ir,w.useVModel=pt,w.useVModels=cr,w.useVibrate=fr,w.useVirtualList=dr,w.useWakeLock=mr,w.useWebNotification=gr,w.useWebSocket=wr,w.useWebWorker=hr,w.useWebWorkerFn=Tr,w.useWindowFocus=Or,w.useWindowScroll=kr,w.useWindowSize=_r,Object.keys(d).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(w,e)&&Object.defineProperty(w,e,{enumerable:!0,get:function(){return d[e]}})})})(this.VueUse=this.VueUse||{},VueUse,VueDemi);
@@ -0,0 +1 @@
1
+ var VueDemi=function(c,u,E){if(c.install)return c;if(!u)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),c;if(u.version.slice(0,4)==="2.7."){let v=function(S,A){var T,_={},U={config:u.config,use:u.use.bind(u),mixin:u.mixin.bind(u),component:u.component.bind(u),provide:function(I,F){return _[I]=F,this},directive:function(I,F){return F?(u.directive(I,F),U):u.directive(I)},mount:function(I,F){return T||(T=new u(Object.assign({propsData:A},S,{provide:Object.assign(_,S.provide)})),T.$mount(I,F),T)},unmount:function(){T&&(T.$destroy(),T=void 0)}};return U};var M=v;for(var O in u)c[O]=u[O];c.isVue2=!0,c.isVue3=!1,c.install=function(){},c.Vue=u,c.Vue2=u,c.version=u.version,c.warn=u.util.warn,c.hasInjectionContext=function(){return!!c.getCurrentInstance()},c.createApp=v}else if(u.version.slice(0,2)==="2.")if(E){for(var O in E)c[O]=E[O];c.isVue2=!0,c.isVue3=!1,c.install=function(){},c.Vue=u,c.Vue2=u,c.version=u.version,c.hasInjectionContext=function(){return!!c.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(u.version.slice(0,2)==="3."){for(var O in u)c[O]=u[O];c.isVue2=!1,c.isVue3=!0,c.install=function(){},c.Vue=u,c.Vue2=void 0,c.version=u.version,c.set=function(v,S,A){return Array.isArray(v)?(v.length=Math.max(v.length,S),v.splice(S,1,A),A):(v[S]=A,A)},c.del=function(v,S){if(Array.isArray(v)){v.splice(S,1);return}delete v[S]}}else console.error("[vue-demi] Vue version "+u.version+" is unsupported.");return c}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(c,u){"use strict";function E(t,e){var n;const r=u.shallowRef();return u.watchEffect(()=>{r.value=t()},{...e,flush:(n=e?.flush)!=null?n:"sync"}),u.readonly(r)}function O(t,e){let n,r,o;const i=u.ref(!0),a=()=>{i.value=!0,o()};u.watch(t,a,{flush:"sync"});const l=typeof e=="function"?e:e.get,f=typeof e=="function"?void 0:e.set,w=u.customRef((y,h)=>(r=y,o=h,{get(){return i.value&&(n=l(),i.value=!1),r(),n},set(d){f?.(d)}}));return Object.isExtensible(w)&&(w.trigger=a),w}function M(t){return u.getCurrentScope()?(u.onScopeDispose(t),!0):!1}function v(){const t=new Set,e=o=>{t.delete(o)};return{on:o=>{t.add(o);const i=()=>e(o);return M(i),{off:i}},off:e,trigger:(...o)=>Promise.all(Array.from(t).map(i=>i(...o)))}}function S(t){let e=!1,n;const r=u.effectScope(!0);return(...o)=>(e||(n=r.run(()=>t(...o)),e=!0),n)}const A=new WeakMap,T=(t,e)=>{var n;const r=(n=u.getCurrentInstance())==null?void 0:n.proxy;if(r==null)throw new Error("provideLocal must be called in setup");A.has(r)||A.set(r,Object.create(null));const o=A.get(r);o[t]=e,u.provide(t,e)},_=(...t)=>{var e;const n=t[0],r=(e=u.getCurrentInstance())==null?void 0:e.proxy;if(r==null)throw new Error("injectLocal must be called in setup");return A.has(r)&&n in A.get(r)?A.get(r)[n]:u.inject(...t)};function U(t,e){const n=e?.injectionKey||Symbol(t.name||"InjectionState");return[(...i)=>{const a=t(...i);return T(n,a),a},()=>_(n)]}function I(t){let e=0,n,r;const o=()=>{e-=1,r&&e<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(e+=1,n||(r=u.effectScope(!0),n=r.run(()=>t(...i))),M(o),n)}function F(t,e,{enumerable:n=!1,unwrap:r=!0}={}){if(!u.isVue3&&!u.version.startsWith("2.7.")){if(process.env.NODE_ENV!=="production")throw new Error("[VueUse] extendRef only works in Vue 2.7 or above.");return}for(const[o,i]of Object.entries(e))o!=="value"&&(u.isRef(i)&&r?Object.defineProperty(t,o,{get(){return i.value},set(a){i.value=a},enumerable:n}):Object.defineProperty(t,o,{value:i,enumerable:n}));return t}function mt(t,e){return e==null?u.unref(t):u.unref(t)[e]}function gt(t){return u.unref(t)!=null}function pt(t,e){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let r=0;return{next:()=>({value:e[r++],done:r>e.length})}}}),n}else return Object.assign([...e],t)}function s(t){return typeof t=="function"?t():u.unref(t)}const vt=s;function Y(t,e){const n=e?.computedGetter===!1?u.unref:s;return function(...r){return u.computed(()=>t.apply(this,r.map(o=>n(o))))}}function bt(t,e={}){let n=[],r;if(Array.isArray(e))n=e;else{r=e;const{includeOwnProperties:o=!0}=e;n.push(...Object.keys(t)),o&&n.push(...Object.getOwnPropertyNames(t))}return Object.fromEntries(n.map(o=>{const i=t[o];return[o,typeof i=="function"?Y(i.bind(t),r):i]}))}function D(t){if(!u.isRef(t))return u.reactive(t);const e=new Proxy({},{get(n,r,o){return u.unref(Reflect.get(t.value,r,o))},set(n,r,o){return u.isRef(t.value[r])&&!u.isRef(o)?t.value[r].value=o:t.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(t.value,r)},has(n,r){return Reflect.has(t.value,r)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return u.reactive(e)}function G(t){return D(u.computed(t))}function At(t,...e){const n=e.flat(),r=n[0];return G(()=>Object.fromEntries(typeof r=="function"?Object.entries(u.toRefs(t)).filter(([o,i])=>!r(s(i),o)):Object.entries(u.toRefs(t)).filter(o=>!n.includes(o[0]))))}const j=typeof window<"u"&&typeof document<"u",Ot=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,St=t=>typeof t<"u",Tt=t=>t!=null,Pt=(t,...e)=>{t||console.warn(...e)},Ft=Object.prototype.toString,tt=t=>Ft.call(t)==="[object Object]",Mt=()=>Date.now(),et=()=>+Date.now(),It=(t,e,n)=>Math.min(n,Math.max(e,t)),C=()=>{},Ct=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),Rt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Et=kt();function kt(){var t,e;return j&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function N(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}const B=t=>t();function z(t,e={}){let n,r,o=C;const i=l=>{clearTimeout(l),o(),o=C};return l=>{const f=s(t),w=s(e.maxWait);return n&&i(n),f<=0||w!==void 0&&w<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((y,h)=>{o=e.rejectOnCancel?h:y,w&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,y(l())},w)),n=setTimeout(()=>{r&&i(r),r=null,y(l())},f)})}}function q(...t){let e=0,n,r=!0,o=C,i,a,l,f,w;!u.isRef(t[0])&&typeof t[0]=="object"?{delay:a,trailing:l=!0,leading:f=!0,rejectOnCancel:w=!1}=t[0]:[a,l=!0,f=!0,w=!1]=t;const y=()=>{n&&(clearTimeout(n),n=void 0,o(),o=C)};return d=>{const m=s(a),g=Date.now()-e,b=()=>i=d();return y(),m<=0?(e=Date.now(),b()):(g>m&&(f||!r)?(e=Date.now(),b()):l&&(i=new Promise((p,P)=>{o=w?P:p,n=setTimeout(()=>{e=Date.now(),r=!0,p(b()),y()},Math.max(0,m-g))})),!f&&!n&&(n=setTimeout(()=>r=!0,m)),r=!1,i)}}function nt(t=B){const e=u.ref(!0);function n(){e.value=!1}function r(){e.value=!0}const o=(...i)=>{e.value&&t(...i)};return{isActive:u.readonly(e),pause:n,resume:r,eventFilter:o}}const _t={mounted:u.isVue3?"mounted":"inserted",updated:u.isVue3?"updated":"componentUpdated",unmounted:u.isVue3?"unmounted":"unbind"};function rt(t){const e=Object.create(null);return n=>e[n]||(e[n]=t(n))}const jt=/\B([A-Z])/g,Nt=rt(t=>t.replace(jt,"-$1").toLowerCase()),Lt=/-(\w)/g,Wt=rt(t=>t.replace(Lt,(e,n)=>n?n.toUpperCase():""));function Z(t,e=!1,n="Timeout"){return new Promise((r,o)=>{setTimeout(e?()=>o(n):r,t)})}function Ut(t){return t}function Bt(t){let e;function n(){return e||(e=t()),e}return n.reset=async()=>{const r=e;e=void 0,r&&await r},n}function $t(t){return t()}function ot(t,...e){return e.some(n=>n in t)}function Ht(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",o=t.slice(r.length),i=Number.parseFloat(r)+e;return Number.isNaN(i)?t:i+o}function Yt(t,e,n=!1){return e.reduce((r,o)=>(o in t&&(!n||t[o]!==void 0)&&(r[o]=t[o]),r),{})}function Gt(t,e,n=!1){return Object.fromEntries(Object.entries(t).filter(([r,o])=>(!n||o!==void 0)&&!e.includes(r)))}function zt(t){return Object.entries(t)}function L(t){return t||u.getCurrentInstance()}function J(...t){if(t.length!==1)return u.toRef(...t);const e=t[0];return typeof e=="function"?u.readonly(u.customRef(()=>({get:e,set:C}))):u.ref(e)}const qt=J;function Zt(t,...e){const n=e.flat(),r=n[0];return G(()=>Object.fromEntries(typeof r=="function"?Object.entries(u.toRefs(t)).filter(([o,i])=>r(s(i),o)):n.map(o=>[o,J(t,o)])))}function ct(t,e=1e4){return u.customRef((n,r)=>{let o=s(t),i;const a=()=>setTimeout(()=>{o=s(t),r()},s(e));return M(()=>{clearTimeout(i)}),{get(){return n(),o},set(l){o=l,r(),clearTimeout(i),i=a()}}})}function ut(t,e=200,n={}){return N(z(e,n),t)}function X(t,e=200,n={}){const r=u.ref(t.value),o=ut(()=>{r.value=t.value},e,n);return u.watch(t,()=>o()),r}function Jt(t,e){return u.computed({get(){var n;return(n=t.value)!=null?n:e},set(n){t.value=n}})}function it(t,e=200,n=!1,r=!0,o=!1){return N(q(e,n,r,o),t)}function K(t,e=200,n=!0,r=!0){if(e<=0)return t;const o=u.ref(t.value),i=it(()=>{o.value=t.value},e,n,r);return u.watch(t,()=>i()),o}function at(t,e={}){let n=t,r,o;const i=u.customRef((d,m)=>(r=d,o=m,{get(){return a()},set(g){l(g)}}));function a(d=!0){return d&&r(),n}function l(d,m=!0){var g,b;if(d===n)return;const p=n;((g=e.onBeforeChange)==null?void 0:g.call(e,d,p))!==!1&&(n=d,(b=e.onChanged)==null||b.call(e,d,p),m&&o())}return F(i,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:d=>l(d,!1),peek:()=>a(!1),lay:d=>l(d,!1)},{enumerable:!0})}const Xt=at;function Kt(...t){if(t.length===2){const[e,n]=t;e.value=n}if(t.length===3)if(u.isVue2)u.set(...t);else{const[e,n,r]=t;e[n]=r}}function W(t,e,n={}){const{eventFilter:r=B,...o}=n;return u.watch(t,N(r,e),o)}function $(t,e,n={}){const{eventFilter:r,...o}=n,{eventFilter:i,pause:a,resume:l,isActive:f}=nt(r);return{stop:W(t,e,{...o,eventFilter:i}),pause:a,resume:l,isActive:f}}function Qt(t,e,...[n]){const{flush:r="sync",deep:o=!1,immediate:i=!0,direction:a="both",transform:l={}}=n||{},f=[],w="ltr"in l&&l.ltr||(d=>d),y="rtl"in l&&l.rtl||(d=>d);return(a==="both"||a==="ltr")&&f.push($(t,d=>{f.forEach(m=>m.pause()),e.value=w(d),f.forEach(m=>m.resume())},{flush:r,deep:o,immediate:i})),(a==="both"||a==="rtl")&&f.push($(e,d=>{f.forEach(m=>m.pause()),t.value=y(d),f.forEach(m=>m.resume())},{flush:r,deep:o,immediate:i})),()=>{f.forEach(d=>d.stop())}}function Vt(t,e,n={}){const{flush:r="sync",deep:o=!1,immediate:i=!0}=n;return Array.isArray(e)||(e=[e]),u.watch(t,a=>e.forEach(l=>l.value=a),{flush:r,deep:o,immediate:i})}function xt(t,e={}){if(!u.isRef(t))return u.toRefs(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const r in t.value)n[r]=u.customRef(()=>({get(){return t.value[r]},set(o){var i;if((i=s(e.replaceRef))!=null?i:!0)if(Array.isArray(t.value)){const l=[...t.value];l[r]=o,t.value=l}else{const l={...t.value,[r]:o};Object.setPrototypeOf(l,Object.getPrototypeOf(t.value)),t.value=l}else t.value[r]=o}}));return n}function Dt(t,e=!0,n){L(n)?u.onBeforeMount(t,n):e?t():u.nextTick(t)}function te(t,e){L(e)&&u.onBeforeUnmount(t,e)}function ee(t,e=!0,n){L()?u.onMounted(t,n):e?t():u.nextTick(t)}function ne(t,e){L(e)&&u.onUnmounted(t,e)}function Q(t,e=!1){function n(h,{flush:d="sync",deep:m=!1,timeout:g,throwOnTimeout:b}={}){let p=null;const x=[new Promise(H=>{p=u.watch(t,k=>{h(k)!==e&&(p?.(),H(k))},{flush:d,deep:m,immediate:!0})})];return g!=null&&x.push(Z(g,b).then(()=>s(t)).finally(()=>p?.())),Promise.race(x)}function r(h,d){if(!u.isRef(h))return n(k=>k===h,d);const{flush:m="sync",deep:g=!1,timeout:b,throwOnTimeout:p}=d??{};let P=null;const H=[new Promise(k=>{P=u.watch([t,h],([wt,He])=>{e!==(wt===He)&&(P?.(),k(wt))},{flush:m,deep:g,immediate:!0})})];return b!=null&&H.push(Z(b,p).then(()=>s(t)).finally(()=>(P?.(),s(t)))),Promise.race(H)}function o(h){return n(d=>!!d,h)}function i(h){return r(null,h)}function a(h){return r(void 0,h)}function l(h){return n(Number.isNaN,h)}function f(h,d){return n(m=>{const g=Array.from(m);return g.includes(h)||g.includes(s(h))},d)}function w(h){return y(1,h)}function y(h=1,d){let m=-1;return n(()=>(m+=1,m>=h),d)}return Array.isArray(s(t))?{toMatch:n,toContains:f,changed:w,changedTimes:y,get not(){return Q(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:o,toBeNull:i,toBeNaN:l,toBeUndefined:a,changed:w,changedTimes:y,get not(){return Q(t,!e)}}}function re(t){return Q(t)}function oe(t,e){return t===e}function ce(...t){var e;const n=t[0],r=t[1];let o=(e=t[2])!=null?e:oe;if(typeof o=="string"){const i=o;o=(a,l)=>a[i]===l[i]}return u.computed(()=>s(n).filter(i=>s(r).findIndex(a=>o(i,a))===-1))}function ue(t,e){return u.computed(()=>s(t).every((n,r,o)=>e(s(n),r,o)))}function ie(t,e){return u.computed(()=>s(t).map(n=>s(n)).filter(e))}function ae(t,e){return u.computed(()=>s(s(t).find((n,r,o)=>e(s(n),r,o))))}function le(t,e){return u.computed(()=>s(t).findIndex((n,r,o)=>e(s(n),r,o)))}function se(t,e){let n=t.length;for(;n-- >0;)if(e(t[n],n,t))return t[n]}function fe(t,e){return u.computed(()=>s(Array.prototype.findLast?s(t).findLast((n,r,o)=>e(s(n),r,o)):se(s(t),(n,r,o)=>e(s(n),r,o))))}function de(t){return tt(t)&&ot(t,"formIndex","comparator")}function he(...t){var e;const n=t[0],r=t[1];let o=t[2],i=0;if(de(o)&&(i=(e=o.fromIndex)!=null?e:0,o=o.comparator),typeof o=="string"){const a=o;o=(l,f)=>l[a]===s(f)}return o=o??((a,l)=>a===s(l)),u.computed(()=>s(n).slice(i).some((a,l,f)=>o(s(a),s(r),l,s(f))))}function ye(t,e){return u.computed(()=>s(t).map(n=>s(n)).join(s(e)))}function we(t,e){return u.computed(()=>s(t).map(n=>s(n)).map(e))}function me(t,e,...n){const r=(o,i,a)=>e(s(o),s(i),a);return u.computed(()=>{const o=s(t);return n.length?o.reduce(r,s(n[0])):o.reduce(r)})}function ge(t,e){return u.computed(()=>s(t).some((n,r,o)=>e(s(n),r,o)))}function pe(t){return Array.from(new Set(t))}function ve(t,e){return t.reduce((n,r)=>(n.some(o=>e(r,o,t))||n.push(r),n),[])}function be(t,e){return u.computed(()=>{const n=s(t).map(r=>s(r));return e?ve(n,e):pe(n)})}function Ae(t=0,e={}){let n=u.unref(t);const r=u.ref(t),{max:o=Number.POSITIVE_INFINITY,min:i=Number.NEGATIVE_INFINITY}=e,a=(h=1)=>r.value=Math.max(Math.min(o,r.value+h),i),l=(h=1)=>r.value=Math.min(Math.max(i,r.value-h),o),f=()=>r.value,w=h=>r.value=Math.max(i,Math.min(o,h));return{count:r,inc:a,dec:l,get:f,set:w,reset:(h=n)=>(n=h,w(h))}}const Oe=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Se=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Te(t,e,n,r){let o=t<12?"AM":"PM";return r&&(o=o.split("").reduce((i,a)=>i+=`${a}.`,"")),n?o.toLowerCase():o}function R(t){const e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])}function lt(t,e,n={}){var r;const o=t.getFullYear(),i=t.getMonth(),a=t.getDate(),l=t.getHours(),f=t.getMinutes(),w=t.getSeconds(),y=t.getMilliseconds(),h=t.getDay(),d=(r=n.customMeridiem)!=null?r:Te,m={Yo:()=>R(o),YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>i+1,Mo:()=>R(i+1),MM:()=>`${i+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(a),Do:()=>R(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>R(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>R(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(f),mo:()=>R(f),mm:()=>`${f}`.padStart(2,"0"),s:()=>String(w),so:()=>R(w),ss:()=>`${w}`.padStart(2,"0"),SSS:()=>`${y}`.padStart(3,"0"),d:()=>h,dd:()=>t.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>d(l,f),AA:()=>d(l,f,!1,!0),a:()=>d(l,f,!0),aa:()=>d(l,f,!0,!0)};return e.replace(Se,(g,b)=>{var p,P;return(P=b??((p=m[g])==null?void 0:p.call(m)))!=null?P:g})}function st(t){if(t===null)return new Date(Number.NaN);if(t===void 0)return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){const e=t.match(Oe);if(e){const n=e[2]-1||0,r=(e[7]||"0").substring(0,3);return new Date(e[1],n,e[3]||1,e[4]||0,e[5]||0,e[6]||0,r)}}return new Date(t)}function Pe(t,e="HH:mm:ss",n={}){return u.computed(()=>lt(st(s(t)),s(e),n))}function ft(t,e=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const a=u.ref(!1);function l(){i&&(clearInterval(i),i=null)}function f(){a.value=!1,l()}function w(){const y=s(e);y<=0||(a.value=!0,o&&t(),l(),i=setInterval(t,y))}if(r&&j&&w(),u.isRef(e)||typeof e=="function"){const y=u.watch(e,()=>{a.value&&j&&w()});M(y)}return M(f),{isActive:a,pause:f,resume:w}}function Fe(t=1e3,e={}){const{controls:n=!1,immediate:r=!0,callback:o}=e,i=u.ref(0),a=()=>i.value+=1,l=()=>{i.value=0},f=ft(o?()=>{a(),o(i.value)}:a,t,{immediate:r});return n?{counter:i,reset:l,...f}:i}function Me(t,e={}){var n;const r=u.ref((n=e.initialValue)!=null?n:null);return u.watch(t,()=>r.value=et(),e),r}function dt(t,e,n={}){const{immediate:r=!0}=n,o=u.ref(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function l(){o.value=!1,a()}function f(...w){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,t(...w)},s(e))}return r&&(o.value=!0,j&&f()),M(l),{isPending:u.readonly(o),start:f,stop:l}}function Ie(t=1e3,e={}){const{controls:n=!1,callback:r}=e,o=dt(r??C,t,e),i=u.computed(()=>!o.isPending.value);return n?{ready:i,...o}:i}function Ce(t,e={}){const{method:n="parseFloat",radix:r,nanToZero:o}=e;return u.computed(()=>{let i=s(t);return typeof i=="string"&&(i=Number[n](i,r)),o&&Number.isNaN(i)&&(i=0),i})}function Re(t){return u.computed(()=>`${s(t)}`)}function Ee(t=!1,e={}){const{truthyValue:n=!0,falsyValue:r=!1}=e,o=u.isRef(t),i=u.ref(t);function a(l){if(arguments.length)return i.value=l,i.value;{const f=s(n);return i.value=i.value===f?s(r):f,i.value}}return o?a:[i,a]}function ke(t,e,n){let r=n?.immediate?[]:[...t instanceof Function?t():Array.isArray(t)?t:s(t)];return u.watch(t,(o,i,a)=>{const l=Array.from({length:r.length}),f=[];for(const y of o){let h=!1;for(let d=0;d<r.length;d++)if(!l[d]&&y===r[d]){l[d]=!0,h=!0;break}h||f.push(y)}const w=r.filter((y,h)=>!l[h]);e(o,r,f,w,a),r=[...o]},n)}function _e(t,e,n){const{count:r,...o}=n,i=u.ref(0),a=W(t,(...l)=>{i.value+=1,i.value>=s(r)&&u.nextTick(()=>a()),e(...l)},o);return{count:i,stop:a}}function ht(t,e,n={}){const{debounce:r=0,maxWait:o=void 0,...i}=n;return W(t,e,{...i,eventFilter:z(r,{maxWait:o})})}function je(t,e,n){return u.watch(t,e,{...n,deep:!0})}function V(t,e,n={}){const{eventFilter:r=B,...o}=n,i=N(r,e);let a,l,f;if(o.flush==="sync"){const w=u.ref(!1);l=()=>{},a=y=>{w.value=!0,y(),w.value=!1},f=u.watch(t,(...y)=>{w.value||i(...y)},o)}else{const w=[],y=u.ref(0),h=u.ref(0);l=()=>{y.value=h.value},w.push(u.watch(t,()=>{h.value++},{...o,flush:"sync"})),a=d=>{const m=h.value;d(),y.value+=h.value-m},w.push(u.watch(t,(...d)=>{const m=y.value>0&&y.value===h.value;y.value=0,h.value=0,!m&&i(...d)},o)),f=()=>{w.forEach(d=>d())}}return{stop:f,ignoreUpdates:a,ignorePrevAsyncUpdates:l}}function Ne(t,e,n){return u.watch(t,e,{...n,immediate:!0})}function Le(t,e,n){const r=u.watch(t,(...o)=>(u.nextTick(()=>r()),e(...o)),n);return r}function yt(t,e,n={}){const{throttle:r=0,trailing:o=!0,leading:i=!0,...a}=n;return W(t,e,{...a,eventFilter:q(r,o,i)})}function We(t,e,n={}){let r;function o(){if(!r)return;const y=r;r=void 0,y()}function i(y){r=y}const a=(y,h)=>(o(),e(y,h,i)),l=V(t,a,n),{ignoreUpdates:f}=l;return{...l,trigger:()=>{let y;return f(()=>{y=a(Ue(t),Be(t))}),y}}}function Ue(t){return u.isReactive(t)?t:Array.isArray(t)?t.map(e=>s(e)):s(t)}function Be(t){return Array.isArray(t)?t.map(()=>{}):void 0}function $e(t,e,n){const r=u.watch(t,(o,i,a)=>{o&&(n?.once&&u.nextTick(()=>r()),e(o,i,a))},{...n,once:!1});return r}c.assert=Pt,c.autoResetRef=ct,c.bypassFilter=B,c.camelize=Wt,c.clamp=It,c.computedEager=E,c.computedWithControl=O,c.containsProp=ot,c.controlledComputed=O,c.controlledRef=Xt,c.createEventHook=v,c.createFilterWrapper=N,c.createGlobalState=S,c.createInjectionState=U,c.createReactiveFn=Y,c.createSharedComposable=I,c.createSingletonPromise=Bt,c.debounceFilter=z,c.debouncedRef=X,c.debouncedWatch=ht,c.directiveHooks=_t,c.eagerComputed=E,c.extendRef=F,c.formatDate=lt,c.get=mt,c.getLifeCycleTarget=L,c.hasOwn=Rt,c.hyphenate=Nt,c.identity=Ut,c.ignorableWatch=V,c.increaseWithUnit=Ht,c.injectLocal=_,c.invoke=$t,c.isClient=j,c.isDef=St,c.isDefined=gt,c.isIOS=Et,c.isObject=tt,c.isWorker=Ot,c.makeDestructurable=pt,c.noop=C,c.normalizeDate=st,c.notNullish=Tt,c.now=Mt,c.objectEntries=zt,c.objectOmit=Gt,c.objectPick=Yt,c.pausableFilter=nt,c.pausableWatch=$,c.promiseTimeout=Z,c.provideLocal=T,c.rand=Ct,c.reactify=Y,c.reactifyObject=bt,c.reactiveComputed=G,c.reactiveOmit=At,c.reactivePick=Zt,c.refAutoReset=ct,c.refDebounced=X,c.refDefault=Jt,c.refThrottled=K,c.refWithControl=at,c.resolveRef=qt,c.resolveUnref=vt,c.set=Kt,c.syncRef=Qt,c.syncRefs=Vt,c.throttleFilter=q,c.throttledRef=K,c.throttledWatch=yt,c.timestamp=et,c.toReactive=D,c.toRef=J,c.toRefs=xt,c.toValue=s,c.tryOnBeforeMount=Dt,c.tryOnBeforeUnmount=te,c.tryOnMounted=ee,c.tryOnScopeDispose=M,c.tryOnUnmounted=ne,c.until=re,c.useArrayDifference=ce,c.useArrayEvery=ue,c.useArrayFilter=ie,c.useArrayFind=ae,c.useArrayFindIndex=le,c.useArrayFindLast=fe,c.useArrayIncludes=he,c.useArrayJoin=ye,c.useArrayMap=we,c.useArrayReduce=me,c.useArraySome=ge,c.useArrayUnique=be,c.useCounter=Ae,c.useDateFormat=Pe,c.useDebounce=X,c.useDebounceFn=ut,c.useInterval=Fe,c.useIntervalFn=ft,c.useLastChanged=Me,c.useThrottle=K,c.useThrottleFn=it,c.useTimeout=Ie,c.useTimeoutFn=dt,c.useToNumber=Ce,c.useToString=Re,c.useToggle=Ee,c.watchArray=ke,c.watchAtMost=_e,c.watchDebounced=ht,c.watchDeep=je,c.watchIgnorable=V,c.watchImmediate=Ne,c.watchOnce=Le,c.watchPausable=$,c.watchThrottled=yt,c.watchTriggerable=We,c.watchWithFilter=W,c.whenever=$e})(this.VueUse=this.VueUse||{},VueDemi);