You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
95 KiB
8 lines
95 KiB
/**
|
|
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
|
|
* Original file: /npm/@vueuse/core@10.7.2/index.mjs
|
|
*
|
|
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
*/
|
|
import{makeDestructurable as e,toValue as t,isClient as n,noop as a,isObject as l,tryOnScopeDispose as o,isIOS as r,tryOnMounted as u,computedWithControl as i,objectOmit as s,objectEntries as c,createSingletonPromise as v,useTimeoutFn as d,pausableWatch as f,toRef as p,createEventHook as m,pausableFilter as h,watchIgnorable as g,debounceFilter as y,createFilterWrapper as w,toRefs as b,notNullish as S,useIntervalFn as x,until as E,throttleFilter as k,timestamp as T,useDebounceFn as O,useThrottleFn as A,syncRef as F,tryOnUnmounted as P,watchWithFilter as I,tryOnBeforeUnmount as C,identity as R,promiseTimeout as L,camelize as D,increaseWithUnit as N,bypassFilter as M,containsProp as $,hasOwn as j,clamp as q,objectPick as B,isDef as z,isWorker as U}from"/npm/@vueuse/shared@10.7.2/+esm";export*from"/npm/@vueuse/shared@10.7.2/+esm";import{isRef as V,ref as Y,shallowRef as H,watchEffect as W,computed as X,inject as _,isVue3 as G,version as J,watch as K,getCurrentInstance as Q,customRef as Z,onUpdated as ee,onMounted as te,readonly as ne,shallowReactive as ae,nextTick as le,reactive as oe,unref as re,getCurrentScope as ue,isReadonly as ie,onBeforeUpdate as se,isVue2 as ce,defineComponent as ve,h as de,TransitionGroup as fe,markRaw as pe,Fragment as me,set as he,del as ge}from"/npm/vue-demi@0.14.6/+esm";var ye="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function we(e,t,n){let l;l=V(n)?{evaluating:n}:n||{};const{lazy:o=!1,evaluating:r,shallow:u=!0,onError:i=a}=l,s=Y(!o),c=u?H(t):Y(t);let v=0;return W((async t=>{if(!s.value)return;v++;const n=v;let a=!1;r&&Promise.resolve().then((()=>{r.value=!0}));try{const l=await e((e=>{t((()=>{r&&(r.value=!1),a||e()}))}));n===v&&(c.value=l)}catch(e){i(e)}finally{r&&n===v&&(r.value=!1),a=!0}})),o?X((()=>(s.value=!0,c.value))):c}function be(e,t,n,a){let l=_(e);return n&&(l=_(e,n)),a&&(l=_(e,n,a)),X("function"==typeof t?e=>t(l,e):{get:e=>t.get(l,e),set:t.set})}function Se(t={}){if(!G&&!J.startsWith("2.7."))return;const{inheritAttrs:n=!0}=t,a=H(),l=ve({setup:(e,{slots:t})=>()=>{a.value=t.default}}),o=ve({inheritAttrs:n,setup:(e,{attrs:t,slots:l})=>()=>{var e;a.value;const o=null==(e=a.value)?void 0:e.call(a,{...xe(t),$slots:l});return n&&1===(null==o?void 0:o.length)?o[0]:o}});return e({define:l,reuse:o},[l,o])}function xe(e){const t={};for(const n in e)t[D(n)]=e[n];return t}function Ee(e={}){if(!G)return;let t=0;const n=Y([]);const a=ve(((t,{slots:a})=>{const l=()=>n.value.map((e=>{var t;return de(me,{key:e.key},null==(t=a.default)?void 0:t.call(a,e))}));return e.transition?()=>de(fe,e.transition,l):l}));return a.start=function(...a){return e.singleton&&n.value.length>0?n.value[0].promise:function(...a){const l=ae({key:t++,args:a,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(l),l.promise=new Promise(((e,t)=>{l.resolve=t=>(l.isResolving=!0,e(t)),l.reject=t})).finally((()=>{l.promise=void 0;const e=n.value.indexOf(l);-1!==e&&n.value.splice(e,1)})),l.promise}(...a)},a}function ke(e){return function(...n){return e.apply(this,n.map((e=>t(e))))}}function Te(e){var n;const a=t(e);return null!=(n=null==a?void 0:a.$el)?n:a}const Oe=n?window:void 0,Ae=n?window.document:void 0,Fe=n?window.navigator:void 0,Pe=n?window.location:void 0;function Ie(...e){let n,r,u,i;if("string"==typeof e[0]||Array.isArray(e[0])?([r,u,i]=e,n=Oe):[n,r,u,i]=e,!n)return a;Array.isArray(r)||(r=[r]),Array.isArray(u)||(u=[u]);const s=[],c=()=>{s.forEach((e=>e())),s.length=0},v=K((()=>[Te(n),t(i)]),(([e,t])=>{if(c(),!e)return;const n=l(t)?{...t}:t;s.push(...r.flatMap((t=>u.map((a=>((e,t,n,a)=>(e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)))(e,t,a,n))))))}),{immediate:!0,flush:"post"}),d=()=>{v(),c()};return o(d),d}let Ce=!1;function Re(e,t,n={}){const{window:l=Oe,ignore:o=[],capture:u=!0,detectIframe:i=!1}=n;if(!l)return a;r&&!Ce&&(Ce=!0,Array.from(l.document.body.children).forEach((e=>e.addEventListener("click",a))),l.document.documentElement.addEventListener("click",a));let s=!0;const c=e=>o.some((t=>{if("string"==typeof t)return Array.from(l.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=Te(t);return n&&(e.target===n||e.composedPath().includes(n))}})),v=[Ie(l,"click",(n=>{const a=Te(e);a&&a!==n.target&&!n.composedPath().includes(a)&&(0===n.detail&&(s=!c(n)),s?t(n):s=!0)}),{passive:!0,capture:u}),Ie(l,"pointerdown",(t=>{const n=Te(e);s=!c(t)&&!(!n||t.composedPath().includes(n))}),{passive:!0}),i&&Ie(l,"blur",(n=>{setTimeout((()=>{var a;const o=Te(e);"IFRAME"!==(null==(a=l.document.activeElement)?void 0:a.tagName)||(null==o?void 0:o.contains(l.document.activeElement))||t(n)}),0)}))].filter(Boolean);return()=>v.forEach((e=>e()))}function Le(...e){let n,a,l={};3===e.length?(n=e[0],a=e[1],l=e[2]):2===e.length?"object"==typeof e[1]?(n=!0,a=e[0],l=e[1]):(n=e[0],a=e[1]):(n=!0,a=e[0]);const{target:o=Oe,eventName:r="keydown",passive:u=!1,dedupe:i=!1}=l,s="function"==typeof(c=n)?c:"string"==typeof c?e=>e.key===c:Array.isArray(c)?e=>c.includes(e.key):()=>!0;var c;return Ie(o,r,(e=>{e.repeat&&t(i)||s(e)&&a(e)}),u)}function De(e,t,n={}){return Le(e,t,{...n,eventName:"keydown"})}function Ne(e,t,n={}){return Le(e,t,{...n,eventName:"keypress"})}function Me(e,t,n={}){return Le(e,t,{...n,eventName:"keyup"})}function $e(e,t,n){var a,l;const o=X((()=>Te(e)));let r,u;function i(){r&&(clearTimeout(r),r=void 0),u=void 0}const s={capture:null==(a=null==n?void 0:n.modifiers)?void 0:a.capture,once:null==(l=null==n?void 0:n.modifiers)?void 0:l.once},c=[Ie(o,"pointerdown",(function(e){var a,l,s,c;(null==(a=null==n?void 0:n.modifiers)?void 0:a.self)&&e.target!==o.value||(i(),(null==(l=null==n?void 0:n.modifiers)?void 0:l.prevent)&&e.preventDefault(),(null==(s=null==n?void 0:n.modifiers)?void 0:s.stop)&&e.stopPropagation(),u={x:e.x,y:e.y},r=setTimeout((()=>t(e)),null!=(c=null==n?void 0:n.delay)?c:500))}),s),Ie(o,"pointermove",(function(e){var t,a,l,r;if((null==(t=null==n?void 0:n.modifiers)?void 0:t.self)&&e.target!==o.value)return;if(!u||!1===(null==n?void 0:n.distanceThreshold))return;(null==(a=null==n?void 0:n.modifiers)?void 0:a.prevent)&&e.preventDefault(),(null==(l=null==n?void 0:n.modifiers)?void 0:l.stop)&&e.stopPropagation();const s=e.x-u.x,c=e.y-u.y;Math.sqrt(s*s+c*c)>=(null!=(r=null==n?void 0:n.distanceThreshold)?r:10)&&i()}),s),Ie(o,["pointerup","pointerleave"],i,s)];return()=>c.forEach((e=>e()))}function je(e,t={}){const{document:n=Ae}=t;n&&Ie(n,"keydown",(t=>{!function(){const{activeElement:e,body:t}=document;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}()&&function({keyCode:e,metaKey:t,ctrlKey:n,altKey:a}){return!(t||n||a)&&(e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)}(t)&&e(t)}),{passive:!0})}function qe(e,t=null){const n=Q();let a=()=>{};const l=Z(((l,o)=>(a=o,{get(){var a,o;return l(),null!=(o=null==(a=null==n?void 0:n.proxy)?void 0:a.$refs[e])?o:t},set(){}})));return u(a),ee(a),l}function Be(e={}){var t;const{window:n=Oe,deep:a=!0}=e,l=null!=(t=e.document)?t:null==n?void 0:n.document,o=i((()=>null),(()=>(()=>{var e;let t=null==l?void 0:l.activeElement;if(a)for(;null==t?void 0:t.shadowRoot;)t=null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;return t})()));return n&&(Ie(n,"blur",(e=>{null===e.relatedTarget&&o.trigger()}),!0),Ie(n,"focus",o.trigger,!0)),o}function ze(){const e=Y(!1);return Q()&&te((()=>{e.value=!0})),e}function Ue(e){const t=ze();return X((()=>(t.value,Boolean(e()))))}function Ve(e,t={}){const{immediate:n=!0,fpsLimit:a,window:l=Oe}=t,r=Y(!1),u=a?1e3/a:null;let i=0,s=null;function c(t){if(!r.value||!l)return;const n=t-(i||t);u&&n<u||(e({delta:n,timestamp:t}),i=t),s=l.requestAnimationFrame(c)}function v(){!r.value&&l&&(r.value=!0,s=l.requestAnimationFrame(c))}function d(){r.value=!1,null!=s&&l&&(l.cancelAnimationFrame(s),s=null)}return n&&v(),o(d),{isActive:ne(r),pause:d,resume:v}}function Ye(e,n,a){let r,i;l(a)?(r=a,i=s(a,["window","immediate","commitStyles","persist","onReady","onError"])):(r={duration:a},i=a);const{window:c=Oe,immediate:v=!0,commitStyles:d,persist:f,playbackRate:p=1,onReady:m,onError:h=(e=>{console.error(e)})}=r,g=Ue((()=>c&&HTMLElement&&"animate"in HTMLElement.prototype)),y=H(void 0),w=ae({startTime:null,currentTime:null,timeline:null,playbackRate:p,pending:!1,playState:v?"idle":"paused",replaceState:"active"}),b=X((()=>w.pending)),S=X((()=>w.playState)),x=X((()=>w.replaceState)),E=X({get:()=>w.startTime,set(e){w.startTime=e,y.value&&(y.value.startTime=e)}}),k=X({get:()=>w.currentTime,set(e){w.currentTime=e,y.value&&(y.value.currentTime=e,C())}}),T=X({get:()=>w.timeline,set(e){w.timeline=e,y.value&&(y.value.timeline=e)}}),O=X({get:()=>w.playbackRate,set(e){w.playbackRate=e,y.value&&(y.value.playbackRate=e)}}),A=()=>{var e;try{null==(e=y.value)||e.cancel(),R()}catch(e){h(e)}};function F(a){const l=Te(e);g.value&&l&&(y.value=l.animate(t(n),i),d&&y.value.commitStyles(),f&&y.value.persist(),1!==p&&(y.value.playbackRate=p),a&&!v?y.value.pause():C(),null==m||m(y.value))}K((()=>Te(e)),(e=>{e&&F()})),K((()=>n),(n=>{!y.value&&F(),!Te(e)&&y.value&&(y.value.effect=new KeyframeEffect(Te(e),t(n),i))}),{deep:!0}),u((()=>{le((()=>F(!0)))})),o(A),Ie(y,["cancel","finish","remove"],R);const{resume:P,pause:I}=Ve((()=>{y.value&&(w.pending=y.value.pending,w.playState=y.value.playState,w.replaceState=y.value.replaceState,w.startTime=y.value.startTime,w.currentTime=y.value.currentTime,w.timeline=y.value.timeline,w.playbackRate=y.value.playbackRate)}),{immediate:!1});function C(){g.value&&P()}function R(){g.value&&c&&c.requestAnimationFrame(I)}return{isSupported:g,animate:y,play:()=>{if(y.value)try{y.value.play(),C()}catch(e){R(),h(e)}else F()},pause:()=>{var e;try{null==(e=y.value)||e.pause(),R()}catch(e){h(e)}},reverse:()=>{var e;!y.value&&F();try{null==(e=y.value)||e.reverse(),C()}catch(e){R(),h(e)}},finish:()=>{var e;try{null==(e=y.value)||e.finish(),R()}catch(e){h(e)}},cancel:A,pending:b,playState:S,replaceState:x,startTime:E,currentTime:k,timeline:T,playbackRate:O}}function He(e,t){const{interrupt:n=!0,onError:l=a,onFinished:o=a,signal:r}=t||{},u="aborted",i="fulfilled",s="pending",c="rejected",v=Array.from(Array.from({length:e.length}),(()=>({state:s,data:null}))),d=oe(v),f=Y(-1);if(!e||0===e.length)return o(),{activeIndex:f,result:d};function p(e,t){f.value++,d[f.value].data=t,d[f.value].state=e}return e.reduce(((t,a)=>t.then((t=>{var l;if(null==r?void 0:r.aborted)return void p(u,new Error("aborted"));if((null==(l=d[f.value])?void 0:l.state)===c&&n)return void o();const s=a(t).then((t=>(p(i,t),f.value===e.length-1&&o(),t)));return r?Promise.race([s,We(r)]):s})).catch((e=>(null==r?void 0:r.aborted)?(p(u,e),e):(p(c,e),l(),e)))),Promise.resolve()),{activeIndex:f,result:d}}function We(e){return new Promise(((t,n)=>{const a=new Error("aborted");e.aborted?n(a):e.addEventListener("abort",(()=>n(a)),{once:!0})}))}function Xe(e,t,n){const{immediate:l=!0,delay:o=0,onError:r=a,onSuccess:u=a,resetOnExecute:i=!0,shallow:s=!0,throwError:c}=null!=n?n:{},v=s?H(t):Y(t),d=Y(!1),f=Y(!1),p=H(void 0);async function m(n=0,...a){i&&(v.value=t),p.value=void 0,d.value=!1,f.value=!0,n>0&&await L(n);const l="function"==typeof e?e(...a):e;try{const e=await l;v.value=e,d.value=!0,u(e)}catch(e){if(p.value=e,r(e),c)throw e}finally{f.value=!1}return v.value}l&&m(o);const h={state:v,isReady:d,isLoading:f,error:p,execute:m};return{...h,then:(e,t)=>new Promise(((e,t)=>{E(f).toBe(!1).then((()=>e(h))).catch(t)})).then(e,t)}}const _e={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 Ge(e,a){const l=Y(""),o=Y();function r(){if(n)return o.value=new Promise(((n,l)=>{try{const o=t(e);if(null==o)n("");else if("string"==typeof o)n(Je(new Blob([o],{type:"text/plain"})));else if(o instanceof Blob)n(Je(o));else if(o instanceof ArrayBuffer)n(window.btoa(String.fromCharCode(...new Uint8Array(o))));else if(o instanceof HTMLCanvasElement)n(o.toDataURL(null==a?void 0:a.type,null==a?void 0:a.quality));else if(o instanceof HTMLImageElement){const e=o.cloneNode(!1);e.crossOrigin="Anonymous",function(e){return new Promise(((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)}))}(e).then((()=>{const t=document.createElement("canvas"),l=t.getContext("2d");t.width=e.width,t.height=e.height,l.drawImage(e,0,0,t.width,t.height),n(t.toDataURL(null==a?void 0:a.type,null==a?void 0:a.quality))})).catch(l)}else{if("object"==typeof o){const e=(null==a?void 0:a.serializer)||function(e){return e?e instanceof Map?_e.map:e instanceof Set?_e.set:Array.isArray(e)?_e.array:_e.object:_e.null}(o),t=e(o);return n(Je(new Blob([t],{type:"application/json"})))}l(new Error("target is unsupported types"))}}catch(e){l(e)}})),o.value.then((e=>l.value=e)),o.value}return V(e)||"function"==typeof e?K(e,r,{immediate:!0}):r(),{base64:l,promise:o,execute:r}}function Je(e){return new Promise(((t,n)=>{const a=new FileReader;a.onload=e=>{t(e.target.result)},a.onerror=n,a.readAsDataURL(e)}))}function Ke(e={}){const{navigator:t=Fe}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],a=Ue((()=>t&&"getBattery"in t&&"function"==typeof t.getBattery)),l=Y(!1),o=Y(0),r=Y(0),u=Y(1);let i;function s(){l.value=this.charging,o.value=this.chargingTime||0,r.value=this.dischargingTime||0,u.value=this.level}return a.value&&t.getBattery().then((e=>{i=e,s.call(i),Ie(i,n,s,{passive:!0})})),{isSupported:a,charging:l,chargingTime:o,dischargingTime:r,level:u}}function Qe(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n,optionalServices:a,navigator:l=Fe}=e||{},r=Ue((()=>l&&"bluetooth"in l)),i=H(void 0),s=H(null);K(i,(()=>{!async function(){if(s.value=null,i.value&&i.value.gatt){i.value.addEventListener("gattserverdisconnected",(()=>{}));try{c.value=await i.value.gatt.connect()}catch(e){s.value=e}}}()}));const c=Y(),v=X((()=>{var e;return(null==(e=c.value)?void 0:e.connected)||!1}));return u((()=>{var e;i.value&&(null==(e=i.value.gatt)||e.connect())})),o((()=>{var e;i.value&&(null==(e=i.value.gatt)||e.disconnect())})),{isSupported:r,isConnected:v,device:i,requestDevice:async function(){if(r.value){s.value=null,n&&n.length>0&&(t=!1);try{i.value=await(null==l?void 0:l.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:a}))}catch(e){s.value=e}}},server:c,error:s}}function Ze(e,n={}){const{window:a=Oe}=n,l=Ue((()=>a&&"matchMedia"in a&&"function"==typeof a.matchMedia));let r;const u=Y(!1),i=e=>{u.value=e.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i))},c=W((()=>{l.value&&(s(),r=a.matchMedia(t(e)),"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),u.value=r.matches)}));return o((()=>{c(),s(),r=void 0})),u}const et={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},tt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},nt={xs:600,sm:960,md:1264,lg:1904},at={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},lt={xs:600,sm:1024,md:1440,lg:1920},ot={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},rt={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ut={sm:576,md:768,lg:992,xl:1200};function it(e,n={}){function a(n,a){let l=t(e[n]);return null!=a&&(l=N(l,a)),"number"==typeof l&&(l=`${l}px`),l}const{window:l=Oe}=n;function o(e){return!!l&&l.matchMedia(e).matches}const r=e=>Ze((()=>`(min-width: ${a(e)})`),n),u=Object.keys(e).reduce(((e,t)=>(Object.defineProperty(e,t,{get:()=>r(t),enumerable:!0,configurable:!0}),e)),{});return Object.assign(u,{greater:e=>Ze((()=>`(min-width: ${a(e,.1)})`),n),greaterOrEqual:r,smaller:e=>Ze((()=>`(max-width: ${a(e,-.1)})`),n),smallerOrEqual:e=>Ze((()=>`(max-width: ${a(e)})`),n),between:(e,t)=>Ze((()=>`(min-width: ${a(e)}) and (max-width: ${a(t,-.1)})`),n),isGreater:e=>o(`(min-width: ${a(e,.1)})`),isGreaterOrEqual:e=>o(`(min-width: ${a(e)})`),isSmaller:e=>o(`(max-width: ${a(e,-.1)})`),isSmallerOrEqual:e=>o(`(max-width: ${a(e)})`),isInBetween:(e,t)=>o(`(min-width: ${a(e)}) and (max-width: ${a(t,-.1)})`),current(){const t=Object.keys(e).map((e=>[e,r(e)]));return X((()=>t.filter((([,e])=>e.value)).map((([e])=>e))))}})}function st(e){const{name:t,window:n=Oe}=e,a=Ue((()=>n&&"BroadcastChannel"in n)),l=Y(!1),r=Y(),i=Y(),s=H(null),c=()=>{r.value&&r.value.close(),l.value=!0};return a.value&&u((()=>{s.value=null,r.value=new BroadcastChannel(t),r.value.addEventListener("message",(e=>{i.value=e.data}),{passive:!0}),r.value.addEventListener("messageerror",(e=>{s.value=e}),{passive:!0}),r.value.addEventListener("close",(()=>{l.value=!0}))})),o((()=>{c()})),{isSupported:a,channel:r,data:i,post:e=>{r.value&&r.value.postMessage(e)},close:c,error:s,isClosed:l}}const ct=["hash","host","hostname","href","pathname","port","protocol","search"];function vt(e={}){const{window:t=Oe}=e,n=Object.fromEntries(ct.map((e=>[e,Y()])));for(const[e,a]of c(n))K(a,(n=>{(null==t?void 0:t.location)&&t.location[e]!==n&&(t.location[e]=n)}));const a=e=>{var a;const{state:l,length:o}=(null==t?void 0:t.history)||{},{origin:r}=(null==t?void 0:t.location)||{};for(const e of ct)n[e].value=null==(a=null==t?void 0:t.location)?void 0:a[e];return oe({trigger:e,state:l,length:o,origin:r,...n})},l=Y(a("load"));return t&&(Ie(t,"popstate",(()=>l.value=a("popstate")),{passive:!0}),Ie(t,"hashchange",(()=>l.value=a("hashchange")),{passive:!0})),l}function dt(e,t=((e,t)=>e===t),n){const a=Y(e.value);return K((()=>e.value),(e=>{t(e,a.value)||(a.value=e)}),n),a}function ft(e,t={}){const{controls:n=!1,navigator:a=Fe}=t,l=Ue((()=>a&&"permissions"in a));let o;const r="string"==typeof e?{name:e}:e,u=Y(),i=()=>{o&&(u.value=o.state)},s=v((async()=>{if(l.value){if(!o)try{o=await a.permissions.query(r),Ie(o,"change",i),i()}catch(e){u.value="prompt"}return o}}));return s(),n?{state:u,isSupported:l,query:s}:u}function pt(e={}){const{navigator:n=Fe,read:a=!1,source:l,copiedDuring:o=1500,legacy:r=!1}=e,u=Ue((()=>n&&"clipboard"in n)),i=ft("clipboard-read"),s=ft("clipboard-write"),c=X((()=>u.value||r)),v=Y(""),f=Y(!1),p=d((()=>f.value=!1),o);return c.value&&a&&Ie(["copy","cut"],(function(){var e,t,a;u.value&&"denied"!==i.value?n.clipboard.readText().then((e=>{v.value=e})):v.value=null!=(a=null==(t=null==(e=null==document?void 0:document.getSelection)?void 0:e.call(document))?void 0:t.toString())?a:""})),{isSupported:c,text:v,copied:f,copy:async function(e=t(l)){c.value&&null!=e&&(u.value&&"denied"!==s.value?await n.clipboard.writeText(e):function(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),v.value=e,f.value=!0,p.start())}}}function mt(e={}){const{navigator:n=Fe,read:a=!1,source:l,copiedDuring:o=1500}=e,r=Ue((()=>n&&"clipboard"in n)),u=Y([]),i=Y(!1),s=d((()=>i.value=!1),o);return r.value&&a&&Ie(["copy","cut"],(function(){r.value&&n.clipboard.read().then((e=>{u.value=e}))})),{isSupported:r,content:u,copied:i,copy:async function(e=t(l)){r.value&&null!=e&&(await n.clipboard.write(e),u.value=e,i.value=!0,s.start())}}}function ht(e){return JSON.parse(JSON.stringify(e))}function gt(e,n={}){const a=Y({}),{manual:l,clone:o=ht,deep:r=!0,immediate:u=!0}=n;function i(){a.value=o(t(e))}return l||!V(e)&&"function"!=typeof e?i():K(e,i,{...n,deep:r,immediate:u}),{cloned:a,sync:i}}const yt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==ye?ye:"undefined"!=typeof self?self:{},wt="__vueuse_ssr_handlers__",bt=St();function St(){return wt in yt||(yt[wt]=yt[wt]||{}),yt[wt]}function xt(e,t){return bt[e]||t}function Et(e,t){bt[e]=t}function kt(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}const Tt={boolean:{read:e=>"true"===e,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()}},Ot="vueuse-storage";function At(e,n,a,l={}){var o;const{flush:r="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:v=!1,shallow:d,window:p=Oe,eventFilter:m,onError:h=(e=>{console.error(e)}),initOnMounted:g}=l,y=(d?H:Y)("function"==typeof n?n():n);if(!a)try{a=xt("getDefaultStorage",(()=>{var e;return null==(e=Oe)?void 0:e.localStorage}))()}catch(e){h(e)}if(!a)return y;const w=t(n),b=kt(w),S=null!=(o=l.serializer)?o:Tt[b],{pause:x,resume:E}=f(y,(()=>function(t){try{if(null==t)a.removeItem(e);else{const n=S.write(t),l=a.getItem(e);l!==n&&(a.setItem(e,n),p&&p.dispatchEvent(new CustomEvent(Ot,{detail:{key:e,oldValue:l,newValue:n,storageArea:a}})))}}catch(e){h(e)}}(y.value)),{flush:r,deep:i,eventFilter:m});return p&&s&&u((()=>{Ie(p,"storage",T),Ie(p,Ot,k),g&&T()})),g||T(),y;function k(e){T(e.detail)}function T(t){if(!t||t.storageArea===a)if(t&&null==t.key)y.value=w;else if(!t||t.key===e){x();try{(null==t?void 0:t.newValue)!==S.write(y.value)&&(y.value=function(t){const n=t?t.newValue:a.getItem(e);if(null==n)return c&&null!=w&&a.setItem(e,S.write(w)),w;if(!t&&v){const e=S.read(n);return"function"==typeof v?v(e,w):"object"!==b||Array.isArray(e)?e:{...w,...e}}return"string"!=typeof n?n:S.read(n)}(t))}catch(e){h(e)}finally{t?le(E):E()}}}}function Ft(e){return Ze("(prefers-color-scheme: dark)",e)}function Pt(e={}){const{selector:t="html",attribute:n="class",initialValue:a="auto",window:l=Oe,storage:o,storageKey:r="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:s,emitAuto:c,disableTransition:v=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=Ft({window:l}),m=X((()=>f.value?"dark":"light")),h=s||(null==r?p(a):At(r,a,o,{window:l,listenToStorageChanges:i})),g=X((()=>"auto"===h.value?m.value:h.value)),y=xt("updateHTMLAttrs",((e,t,n)=>{const a="string"==typeof e?null==l?void 0:l.document.querySelector(e):Te(e);if(!a)return;let o;if(v){o=l.document.createElement("style");const e="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";o.appendChild(document.createTextNode(e)),l.document.head.appendChild(o)}if("class"===t){const e=n.split(/\s/g);Object.values(d).flatMap((e=>(e||"").split(/\s/g))).filter(Boolean).forEach((t=>{e.includes(t)?a.classList.add(t):a.classList.remove(t)}))}else a.setAttribute(t,n);v&&(l.getComputedStyle(o).opacity,document.head.removeChild(o))}));function w(e){var a;y(t,n,null!=(a=d[e])?a:e)}function b(t){e.onChanged?e.onChanged(t,w):w(t)}K(g,b,{flush:"post",immediate:!0}),u((()=>b(g.value)));const S=X({get:()=>c?h.value:g.value,set(e){h.value=e}});try{return Object.assign(S,{store:h,system:m,state:g})}catch(e){return S}}function It(e=Y(!1)){const t=m(),n=m(),l=m();let o=a;return{isRevealed:X((()=>e.value)),reveal:t=>(l.trigger(t),e.value=!0,new Promise((e=>{o=e}))),confirm:n=>{e.value=!1,t.trigger(n),o({data:n,isCanceled:!1})},cancel:t=>{e.value=!1,n.trigger(t),o({data:t,isCanceled:!0})},onReveal:l.on,onConfirm:t.on,onCancel:n.on}}function Ct(e,t,n={}){const{window:a=Oe,...l}=n;let r;const u=Ue((()=>a&&"MutationObserver"in a)),i=()=>{r&&(r.disconnect(),r=void 0)},s=K((()=>Te(e)),(e=>{i(),u.value&&a&&e&&(r=new MutationObserver(t),r.observe(e,l))}),{immediate:!0}),c=()=>{i(),s()};return o(c),{isSupported:u,stop:c,takeRecords:()=>null==r?void 0:r.takeRecords()}}function Rt(e,n,a={}){const{window:l=Oe,initialValue:o="",observe:r=!1}=a,u=Y(o),i=X((()=>{var e;return Te(n)||(null==(e=null==l?void 0:l.document)?void 0:e.documentElement)}));function s(){var n;const a=t(e),r=t(i);if(r&&l){const e=null==(n=l.getComputedStyle(r).getPropertyValue(a))?void 0:n.trim();u.value=e||o}}return r&&Ct(i,s,{attributeFilter:["style","class"],window:l}),K([i,()=>t(e)],s,{immediate:!0}),K(u,(n=>{var a;(null==(a=i.value)?void 0:a.style)&&i.value.style.setProperty(t(e),n)})),u}function Lt(){const e=Q(),t=i((()=>null),(()=>e.proxy.$el));return ee(t.trigger),te(t.trigger),t}function Dt(e,n){const a=H(null!=(o=t(null!=(l=null==n?void 0:n.initialValue)?l:t(e)[0]))?o:void 0);var l,o;const r=p(e),u=X({get(){var e;const t=r.value;let l=(null==n?void 0:n.getIndexOf)?n.getIndexOf(a.value,t):t.indexOf(a.value);return l<0&&(l=null!=(e=null==n?void 0:n.fallbackIndex)?e:0),l},set(e){i(e)}});function i(e){const t=r.value,n=t.length,l=t[(e%n+n)%n];return a.value=l,l}function s(e=1){return i(u.value+e)}return K(r,(()=>i(u.value))),{state:a,index:u,next:function(e=1){return s(e)},prev:function(e=1){return s(-e)}}}function Nt(e={}){const{valueDark:t="dark",valueLight:n="",window:a=Oe}=e,l=Pt({...e,onChanged:(t,n)=>{var a;e.onChanged?null==(a=e.onChanged)||a.call(e,"dark"===t,n,t):n(t)},modes:{dark:t,light:n}}),o=X((()=>{if(l.system)return l.system.value;return Ft({window:a}).value?"dark":"light"}));return X({get:()=>"dark"===l.value,set(e){const t=e?"dark":"light";o.value===t?l.value="auto":l.value=t}})}function Mt(e){return e}function $t(e,t){return e.value=t}function jt(e){return e?"function"==typeof e?e:ht:Mt}function qt(e){return e?"function"==typeof e?e:ht:Mt}function Bt(e,t={}){const{clone:n=!1,dump:a=jt(n),parse:l=qt(n),setSource:o=$t}=t;function r(){return pe({snapshot:a(e.value),timestamp:T()})}const u=Y(r()),i=Y([]),s=Y([]),c=t=>{o(e,l(t.snapshot)),u.value=t},v=X((()=>[u.value,...i.value])),d=X((()=>i.value.length>0)),f=X((()=>s.value.length>0));return{source:e,undoStack:i,redoStack:s,last:u,history:v,canUndo:d,canRedo:f,clear:()=>{i.value.splice(0,i.value.length),s.value.splice(0,s.value.length)},commit:()=>{i.value.unshift(u.value),u.value=r(),t.capacity&&i.value.length>t.capacity&&i.value.splice(t.capacity,Number.POSITIVE_INFINITY),s.value.length&&s.value.splice(0,s.value.length)},reset:()=>{c(u.value)},undo:()=>{const e=i.value.shift();e&&(s.value.unshift(u.value),c(e))},redo:()=>{const e=s.value.shift();e&&(i.value.unshift(u.value),c(e))}}}function zt(e,t={}){const{deep:n=!1,flush:a="pre",eventFilter:l}=t,{eventFilter:o,pause:r,resume:u,isActive:i}=h(l),{ignoreUpdates:s,ignorePrevAsyncUpdates:c,stop:v}=g(e,m,{deep:n,flush:a,eventFilter:o});const d=Bt(e,{...t,clone:t.clone||n,setSource:function(e,t){c(),s((()=>{e.value=t}))}}),{clear:f,commit:p}=d;function m(){c(),p()}return{...d,isTracking:i,pause:r,resume:function(e){u(),e&&m()},commit:m,batch:function(e){let t=!1;const n=()=>t=!0;s((()=>{e(n)})),t||m()},dispose:function(){v(),f()}}}function Ut(e,t={}){const n=t.debounce?y(t.debounce):void 0;return{...zt(e,{...t,eventFilter:n})}}function Vt(e={}){const{window:t=Oe,eventFilter:n=M}=e,a=Y({x:null,y:null,z:null}),l=Y({alpha:null,beta:null,gamma:null}),o=Y(0),r=Y({x:null,y:null,z:null});if(t){Ie(t,"devicemotion",w(n,(e=>{a.value=e.acceleration,r.value=e.accelerationIncludingGravity,l.value=e.rotationRate,o.value=e.interval})))}return{acceleration:a,accelerationIncludingGravity:r,rotationRate:l,interval:o}}function Yt(e={}){const{window:t=Oe}=e,n=Ue((()=>t&&"DeviceOrientationEvent"in t)),a=Y(!1),l=Y(null),o=Y(null),r=Y(null);return t&&n.value&&Ie(t,"deviceorientation",(e=>{a.value=e.absolute,l.value=e.alpha,o.value=e.beta,r.value=e.gamma})),{isSupported:n,isAbsolute:a,alpha:l,beta:o,gamma:r}}function Ht(e={}){const{window:t=Oe}=e,n=Y(1);if(t){let e,a=function(){n.value=t.devicePixelRatio,l(),e=t.matchMedia(`(resolution: ${n.value}dppx)`),e.addEventListener("change",a,{once:!0})},l=function(){null==e||e.removeEventListener("change",a)};a(),o(l)}return{pixelRatio:n}}function Wt(e={}){const{navigator:t=Fe,requestPermissions:n=!1,constraints:a={audio:!0,video:!0},onUpdated:l}=e,o=Y([]),r=X((()=>o.value.filter((e=>"videoinput"===e.kind)))),u=X((()=>o.value.filter((e=>"audioinput"===e.kind)))),i=X((()=>o.value.filter((e=>"audiooutput"===e.kind)))),s=Ue((()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices)),c=Y(!1);let v;async function d(){s.value&&(o.value=await t.mediaDevices.enumerateDevices(),null==l||l(o.value),v&&(v.getTracks().forEach((e=>e.stop())),v=null))}async function f(){if(!s.value)return!1;if(c.value)return!0;const{state:e,query:n}=ft("camera",{controls:!0});return await n(),"granted"!==e.value?(v=await t.mediaDevices.getUserMedia(a),d(),c.value=!0):c.value=!0,c.value}return s.value&&(n&&f(),Ie(t.mediaDevices,"devicechange",d),d()),{devices:o,ensurePermissions:f,permissionGranted:c,videoInputs:r,audioInputs:u,audioOutputs:i,isSupported:s}}function Xt(e={}){var t;const n=Y(null!=(t=e.enabled)&&t),a=e.video,l=e.audio,{navigator:o=Fe}=e,r=Ue((()=>{var e;return null==(e=null==o?void 0:o.mediaDevices)?void 0:e.getDisplayMedia})),u={audio:l,video:a},i=H();async function s(){if(r.value&&!i.value)return i.value=await o.mediaDevices.getDisplayMedia(u),i.value}async function c(){var e;null==(e=i.value)||e.getTracks().forEach((e=>e.stop())),i.value=void 0}return K(n,(e=>{e?s():c()}),{immediate:!0}),{isSupported:r,stream:i,start:async function(){return await s(),i.value&&(n.value=!0),i.value},stop:function(){c(),n.value=!1},enabled:n}}function _t(e={}){const{document:t=Ae}=e;if(!t)return Y("visible");const n=Y(t.visibilityState);return Ie(t,"visibilitychange",(()=>{n.value=t.visibilityState})),n}function Gt(e,a={}){var l,o;const{pointerTypes:r,preventDefault:u,stopPropagation:i,exact:s,onMove:c,onEnd:v,onStart:d,initialValue:f,axis:p="both",draggingElement:m=Oe,containerElement:h,handle:g=e}=a,y=Y(null!=(l=t(f))?l:{x:0,y:0}),w=Y(),S=e=>!r||r.includes(e.pointerType),x=e=>{t(u)&&e.preventDefault(),t(i)&&e.stopPropagation()},E=n=>{var a;if(!S(n))return;if(t(s)&&n.target!==t(e))return;const l=t(h),o=null==(a=null==l?void 0:l.getBoundingClientRect)?void 0:a.call(l),r=t(e).getBoundingClientRect(),u={x:n.clientX-(l?r.left-o.left+l.scrollLeft:r.left),y:n.clientY-(l?r.top-o.top+l.scrollTop:r.top)};!1!==(null==d?void 0:d(u,n))&&(w.value=u,x(n))},k=n=>{var a;if(!S(n))return;if(!w.value)return;const l=t(h),o=null==(a=null==l?void 0:l.getBoundingClientRect)?void 0:a.call(l),r=t(e).getBoundingClientRect();let{x:u,y:i}=y.value;"x"!==p&&"both"!==p||(u=n.clientX-w.value.x,l&&(u=Math.min(Math.max(0,u),o.width+l.scrollLeft-r.width))),"y"!==p&&"both"!==p||(i=n.clientY-w.value.y,l&&(i=Math.min(Math.max(0,i),o.height+l.scrollTop-r.height))),y.value={x:u,y:i},null==c||c(y.value,n),x(n)},T=e=>{S(e)&&w.value&&(w.value=void 0,null==v||v(y.value,e),x(e))};if(n){const e={capture:null==(o=a.capture)||o};Ie(g,"pointerdown",E,e),Ie(m,"pointermove",k,e),Ie(m,"pointerup",T,e)}return{...b(y),position:y,isDragging:X((()=>!!w.value)),style:X((()=>`left:${y.value.x}px;top:${y.value.y}px;`))}}function Jt(e,t={}){const a=Y(!1),l=H(null);let o=0,r=!0;if(n){const n="function"==typeof t?{onDrop:t}:t,u=e=>{var t,n;const a=Array.from(null!=(n=null==(t=e.dataTransfer)?void 0:t.files)?n:[]);return l.value=0===a.length?null:a};Ie(e,"dragenter",(e=>{var t,l;const i=Array.from((null==(t=null==e?void 0:e.dataTransfer)?void 0:t.items)||[]).map((e=>"file"===e.kind?e.type:null)).filter(S);if(n.dataTypes&&e.dataTransfer){const e=re(n.dataTypes);if(r="function"==typeof e?e(i):!e||e.some((e=>i.includes(e))),!r)return}e.preventDefault(),o+=1,a.value=!0,null==(l=n.onEnter)||l.call(n,u(e),e)})),Ie(e,"dragover",(e=>{var t;r&&(e.preventDefault(),null==(t=n.onOver)||t.call(n,u(e),e))})),Ie(e,"dragleave",(e=>{var t;r&&(e.preventDefault(),o-=1,0===o&&(a.value=!1),null==(t=n.onLeave)||t.call(n,u(e),e))})),Ie(e,"drop",(e=>{var t;e.preventDefault(),o=0,a.value=!1,null==(t=n.onDrop)||t.call(n,u(e),e)}))}return{files:l,isOverDropZone:a}}function Kt(e,t,n={}){const{window:a=Oe,...l}=n;let r;const u=Ue((()=>a&&"ResizeObserver"in a)),i=()=>{r&&(r.disconnect(),r=void 0)},s=X((()=>Array.isArray(e)?e.map((e=>Te(e))):[Te(e)])),c=K(s,(e=>{if(i(),u.value&&a){r=new ResizeObserver(t);for(const t of e)t&&r.observe(t,l)}}),{immediate:!0,flush:"post",deep:!0}),v=()=>{i(),c()};return o(v),{isSupported:u,stop:v}}function Qt(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:o=!0}=t,r=Y(0),i=Y(0),s=Y(0),c=Y(0),v=Y(0),d=Y(0),f=Y(0),p=Y(0);function m(){const t=Te(e);if(!t)return void(n&&(r.value=0,i.value=0,s.value=0,c.value=0,v.value=0,d.value=0,f.value=0,p.value=0));const a=t.getBoundingClientRect();r.value=a.height,i.value=a.bottom,s.value=a.left,c.value=a.right,v.value=a.top,d.value=a.width,f.value=a.x,p.value=a.y}return Kt(e,m),K((()=>Te(e)),(e=>!e&&m())),Ct(e,m,{attributeFilter:["style","class"]}),l&&Ie("scroll",m,{capture:!0,passive:!0}),a&&Ie("resize",m,{passive:!0}),u((()=>{o&&m()})),{height:r,bottom:i,left:s,right:c,top:v,width:d,x:f,y:p,update:m}}function Zt(e){const{x:n,y:a,document:l=Ae,multiple:o,interval:r="requestAnimationFrame",immediate:u=!0}=e,i=Ue((()=>t(o)?l&&"elementsFromPoint"in l:l&&"elementFromPoint"in l)),s=Y(null),c=()=>{var e,r;s.value=t(o)?null!=(e=null==l?void 0:l.elementsFromPoint(t(n),t(a)))?e:[]:null!=(r=null==l?void 0:l.elementFromPoint(t(n),t(a)))?r:null},v="requestAnimationFrame"===r?Ve(c,{immediate:u}):x(c,r,{immediate:u});return{isSupported:i,element:s,...v}}function en(e,t={}){const{delayEnter:n=0,delayLeave:a=0,window:l=Oe}=t,o=Y(!1);let r;const u=e=>{const t=e?n:a;r&&(clearTimeout(r),r=void 0),t?r=setTimeout((()=>o.value=e),t):o.value=e};return l?(Ie(e,"mouseenter",(()=>u(!0)),{passive:!0}),Ie(e,"mouseleave",(()=>u(!1)),{passive:!0}),o):o}function tn(e,t={width:0,height:0},n={}){const{window:a=Oe,box:l="content-box"}=n,o=X((()=>{var t,n;return null==(n=null==(t=Te(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),r=Y(t.width),i=Y(t.height),{stop:s}=Kt(e,(([t])=>{const n="border-box"===l?t.borderBoxSize:"content-box"===l?t.contentBoxSize:t.devicePixelContentBoxSize;if(a&&o.value){const t=Te(e);if(t){const e=a.getComputedStyle(t);r.value=Number.parseFloat(e.width),i.value=Number.parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];r.value=e.reduce(((e,{inlineSize:t})=>e+t),0),i.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else r.value=t.contentRect.width,i.value=t.contentRect.height}),n);u((()=>{const n=Te(e);n&&(r.value="offsetWidth"in n?n.offsetWidth:t.width,i.value="offsetHeight"in n?n.offsetHeight:t.height)}));const c=K((()=>Te(e)),(e=>{r.value=e?t.width:0,i.value=e?t.height:0}));return{width:r,height:i,stop:function(){s(),c()}}}function nn(e,n,l={}){const{root:r,rootMargin:u="0px",threshold:i=.1,window:s=Oe,immediate:c=!0}=l,v=Ue((()=>s&&"IntersectionObserver"in s)),d=X((()=>{const n=t(e);return(Array.isArray(n)?n:[n]).map(Te).filter(S)}));let f=a;const p=Y(c),m=v.value?K((()=>[d.value,Te(r),p.value]),(([e,t])=>{if(f(),!p.value)return;if(!e.length)return;const l=new IntersectionObserver(n,{root:Te(t),rootMargin:u,threshold:i});e.forEach((e=>e&&l.observe(e))),f=()=>{l.disconnect(),f=a}}),{immediate:c,flush:"post"}):a,h=()=>{f(),m(),p.value=!1};return o(h),{isSupported:v,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:h}}function an(e,t={}){const{window:n=Oe,scrollTarget:a}=t,l=Y(!1);return nn(e,(e=>{let t=l.value,n=0;for(const a of e)a.time>=n&&(n=a.time,t=a.isIntersecting);l.value=t}),{root:a,window:n,threshold:0}),l}const ln=new Map;function on(e){const t=ue();function n(n){var l;const o=ln.get(e)||new Set;o.add(n),ln.set(e,o);const r=()=>a(n);return null==(l=null==t?void 0:t.cleanups)||l.push(r),r}function a(t){const n=ln.get(e);n&&(n.delete(t),n.size||l())}function l(){ln.delete(e)}return{on:n,once:function(e){return n((function t(...n){a(t),e(...n)}))},off:a,emit:function(t,n){var a;null==(a=ln.get(e))||a.forEach((e=>e(t,n)))},reset:l}}function rn(e,t=[],n={}){const a=Y(null),l=Y(null),r=Y("CONNECTING"),u=Y(null),i=H(null),{withCredentials:s=!1}=n,c=()=>{u.value&&(u.value.close(),u.value=null,r.value="CLOSED")},v=new EventSource(e,{withCredentials:s});u.value=v,v.onopen=()=>{r.value="OPEN",i.value=null},v.onerror=e=>{r.value="CLOSED",i.value=e},v.onmessage=e=>{a.value=null,l.value=e.data};for(const e of t)Ie(v,e,(t=>{a.value=e,l.value=t.data||null}));return o((()=>{c()})),{eventSource:u,event:a,data:l,status:r,error:i,close:c}}function un(e={}){const{initialValue:t=""}=e,n=Ue((()=>"undefined"!=typeof window&&"EyeDropper"in window)),a=Y(t);return{isSupported:n,sRGBHex:a,open:async function(e){if(!n.value)return;const t=new window.EyeDropper,l=await t.open(e);return a.value=l.sRGBHex,l}}}function sn(e=null,t={}){const{baseUrl:n="",rel:a="icon",document:l=Ae}=t,o=p(e);return K(o,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{const t=null==l?void 0:l.head.querySelectorAll(`link[rel*="${a}"]`);if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${n}${e}`));else{const t=null==l?void 0:l.createElement("link");t&&(t.rel=a,t.href=`${n}${e}`,t.type=`image/${e.split(".").pop()}`,null==l||l.head.append(t))}})(e)}),{immediate:!0}),o}const cn={json:"application/json",text:"text/plain"};function vn(e){return e&&$(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}function dn(e){return"undefined"!=typeof Headers&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function fn(e,...t){return"overwrite"===e?async e=>{const n=t[t.length-1];return n?{...e,...await n(e)}:e}:async e=>{for(const n of t)n&&(e={...e,...await n(e)});return e}}function pn(e={}){const n=e.combination||"chain",a=e.options||{},l=e.fetchOptions||{};return function(o,...r){const u=X((()=>{const n=t(e.baseUrl),a=t(o);return n&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(a)?(r=a,(l=n).endsWith("/")||r.startsWith("/")?`${l}${r}`:`${l}/${r}`):a;var l,r}));let i=a,s=l;return r.length>0&&(vn(r[0])?i={...i,...r[0],beforeFetch:fn(n,a.beforeFetch,r[0].beforeFetch),afterFetch:fn(n,a.afterFetch,r[0].afterFetch),onFetchError:fn(n,a.onFetchError,r[0].onFetchError)}:s={...s,...r[0],headers:{...dn(s.headers)||{},...dn(r[0].headers)||{}}}),r.length>1&&vn(r[1])&&(i={...i,...r[1],beforeFetch:fn(n,a.beforeFetch,r[1].beforeFetch),afterFetch:fn(n,a.afterFetch,r[1].afterFetch),onFetchError:fn(n,a.onFetchError,r[1].onFetchError)}),mn(u,s,i)}}function mn(e,...n){var a;const l="function"==typeof AbortController;let o={},r={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const u={method:"GET",type:"text",payload:void 0};n.length>0&&(vn(n[0])?r={...r,...n[0]}:o=n[0]),n.length>1&&vn(n[1])&&(r={...r,...n[1]});const{fetch:i=(null==(a=Oe)?void 0:a.fetch),initialData:s,timeout:c}=r,v=m(),f=m(),h=m(),g=Y(!1),y=Y(!1),w=Y(!1),b=Y(null),S=H(null),x=H(null),k=H(s||null),T=X((()=>l&&y.value));let O,A;const F=()=>{l&&(null==O||O.abort(),O=new AbortController,O.signal.onabort=()=>w.value=!0,o={...o,signal:O.signal})},P=e=>{y.value=e,g.value=!e};c&&(A=d(F,c,{immediate:!1}));let I=0;const C=async(n=!1)=>{var a,l;F(),P(!0),x.value=null,b.value=null,w.value=!1,I+=1;const c=I,d={method:u.method,headers:{}};if(u.payload){const e=dn(d.headers),n=t(u.payload);u.payloadType||!n||Object.getPrototypeOf(n)!==Object.prototype||n instanceof FormData||(u.payloadType="json"),u.payloadType&&(e["Content-Type"]=null!=(a=cn[u.payloadType])?a:u.payloadType),d.body="json"===u.payloadType?JSON.stringify(n):n}let p=!1;const m={url:t(e),options:{...d,...o},cancel:()=>{p=!0}};if(r.beforeFetch&&Object.assign(m,await r.beforeFetch(m)),p||!i)return P(!1),Promise.resolve(null);let g=null;return A&&A.start(),i(m.url,{...d,...m.options,headers:{...dn(d.headers),...dn(null==(l=m.options)?void 0:l.headers)}}).then((async e=>{if(S.value=e,b.value=e.status,g=await e.clone()[u.type](),!e.ok)throw k.value=s||null,new Error(e.statusText);return r.afterFetch&&({data:g}=await r.afterFetch({data:g,response:e})),k.value=g,v.trigger(e),e})).catch((async e=>{let t=e.message||e.name;if(r.onFetchError&&({error:t,data:g}=await r.onFetchError({data:g,error:e,response:S.value})),x.value=t,r.updateDataOnError&&(k.value=g),f.trigger(e),n)throw e;return null})).finally((()=>{c===I&&P(!1),A&&A.stop(),h.trigger(null)}))},R=p(r.refetch);K([R,p(e)],(([e])=>e&&C()),{deep:!0});const L={isFinished:g,statusCode:b,response:S,error:x,data:k,isFetching:y,canAbort:T,aborted:w,abort:F,execute:C,onFetchResponse:v.on,onFetchError:f.on,onFetchFinally:h.on,get:D("GET"),put:D("PUT"),post:D("POST"),delete:D("DELETE"),patch:D("PATCH"),head:D("HEAD"),options:D("OPTIONS"),json:M("json"),text:M("text"),blob:M("blob"),arrayBuffer:M("arrayBuffer"),formData:M("formData")};function D(e){return(t,n)=>{if(!y.value)return u.method=e,u.payload=t,u.payloadType=n,V(u.payload)&&K([R,p(u.payload)],(([e])=>e&&C()),{deep:!0}),{...L,then:(e,t)=>N().then(e,t)}}}function N(){return new Promise(((e,t)=>{E(g).toBe(!0).then((()=>e(L))).catch((e=>t(e)))}))}function M(e){return()=>{if(!y.value)return u.type=e,{...L,then:(e,t)=>N().then(e,t)}}}return r.immediate&&Promise.resolve().then((()=>C())),{...L,then:(e,t)=>N().then(e,t)}}const hn={multiple:!0,accept:"*",reset:!1,directory:!1};function gn(e={}){const{document:t=Ae}=e,n=Y(null),{on:a,trigger:l}=m();let o;t&&(o=t.createElement("input"),o.type="file",o.onchange=e=>{const t=e.target;n.value=t.files,l(n.value)});const r=()=>{n.value=null,o&&(o.value="",l(null))};return{files:ne(n),open:t=>{if(!o)return;const n={...hn,...e,...t};o.multiple=n.multiple,o.accept=n.accept,o.webkitdirectory=n.directory,j(n,"capture")&&(o.capture=n.capture),n.reset&&r(),o.click()},reset:r,onChange:a}}function yn(e={}){const{window:n=Oe,dataType:a="Text"}=e,l=n,o=Ue((()=>l&&"showSaveFilePicker"in l&&"showOpenFilePicker"in l)),r=Y(),u=Y(),i=Y(),s=X((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.name)?t:""})),c=X((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.type)?t:""})),v=X((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.size)?t:0})),d=X((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.lastModified)?t:0}));async function f(t={}){if(o.value){if(r.value=await l.showSaveFilePicker({...e,...t}),u.value){const e=await r.value.createWritable();await e.write(u.value),await e.close()}await p()}}async function p(){var e;i.value=await(null==(e=r.value)?void 0:e.getFile())}async function m(){var e,n;const l=t(a);"Text"===l?u.value=await(null==(e=i.value)?void 0:e.text()):"ArrayBuffer"===l?u.value=await(null==(n=i.value)?void 0:n.arrayBuffer()):"Blob"===l&&(u.value=i.value)}return K((()=>t(a)),m),{isSupported:o,data:u,file:i,fileName:s,fileMIME:c,fileSize:v,fileLastModified:d,open:async function(n={}){if(!o.value)return;const[a]=await l.showOpenFilePicker({...t(e),...n});r.value=a,await p(),await m()},create:async function(t={}){o.value&&(r.value=await l.showSaveFilePicker({...e,...t}),u.value=void 0,await p(),await m())},save:async function(e={}){if(o.value){if(!r.value)return f(e);if(u.value){const e=await r.value.createWritable();await e.write(u.value),await e.close()}await p()}},saveAs:f,updateData:m}}function wn(e,t={}){const{initialValue:n=!1,focusVisible:a=!1}=t,l=Y(!1),o=X((()=>Te(e)));Ie(o,"focus",(e=>{var t,n;a&&!(null==(n=(t=e.target).matches)?void 0:n.call(t,":focus-visible"))||(l.value=!0)})),Ie(o,"blur",(()=>l.value=!1));const r=X({get:()=>l.value,set(e){var t,n;!e&&l.value?null==(t=o.value)||t.blur():e&&!l.value&&(null==(n=o.value)||n.focus())}});return K(o,(()=>{r.value=n}),{immediate:!0,flush:"post"}),{focused:r}}function bn(e,t={}){const n=Be(t),a=X((()=>Te(e)));return{focused:X((()=>!(!a.value||!n.value)&&a.value.contains(n.value)))}}function Sn(e){var t;const n=Y(0);if("undefined"==typeof performance)return n;const a=null!=(t=null==e?void 0:e.every)?t:10;let l=performance.now(),o=0;return Ve((()=>{if(o+=1,o>=a){const e=performance.now(),t=e-l;n.value=Math.round(1e3/(t/o)),l=e,o=0}})),n}const xn=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function En(e,t={}){const{document:n=Ae,autoExit:a=!1}=t,l=X((()=>{var t;return null!=(t=Te(e))?t:null==n?void 0:n.querySelector("html")})),r=Y(!1),u=X((()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find((e=>n&&e in n||l.value&&e in l.value)))),i=X((()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find((e=>n&&e in n||l.value&&e in l.value)))),s=X((()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find((e=>n&&e in n||l.value&&e in l.value)))),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find((e=>n&&e in n)),v=Ue((()=>l.value&&n&&void 0!==u.value&&void 0!==i.value&&void 0!==s.value)),d=()=>{if(s.value){if(n&&null!=n[s.value])return n[s.value];{const e=l.value;if(null!=(null==e?void 0:e[s.value]))return Boolean(e[s.value])}}return!1};async function f(){if(v.value&&r.value){if(i.value)if(null!=(null==n?void 0:n[i.value]))await n[i.value]();else{const e=l.value;null!=(null==e?void 0:e[i.value])&&await e[i.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;d()&&await f();const e=l.value;u.value&&null!=(null==e?void 0:e[u.value])&&(await e[u.value](),r.value=!0)}const m=()=>{const e=d();(!e||e&&c&&(null==n?void 0:n[c])===l.value)&&(r.value=e)};return Ie(n,xn,m,!1),Ie((()=>Te(l)),xn,m,!1),a&&o(f),{isSupported:v,isFullscreen:r,enter:p,exit:f,toggle:async function(){await(r.value?f():p())}}}function kn(e){return X((()=>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 Tn(e={}){const{navigator:t=Fe}=e,n=Ue((()=>t&&"getGamepads"in t)),a=Y([]),l=m(),o=m(),r=e=>{const t=[],n="vibrationActuator"in e?e.vibrationActuator:null;return n&&t.push(n),e.hapticActuators&&t.push(...e.hapticActuators),{...e,id:e.id,hapticActuators:t,axes:e.axes.map((e=>e)),buttons:e.buttons.map((e=>({pressed:e.pressed,touched:e.touched,value:e.value})))}},{isActive:i,pause:s,resume:c}=Ve((()=>{const e=(null==t?void 0:t.getGamepads())||[];for(let t=0;t<e.length;++t){const n=e[t];if(n){const e=a.value.findIndex((({index:e})=>e===n.index));e>-1&&(a.value[e]=r(n))}}})),v=e=>{a.value.some((({index:t})=>t===e.index))||(a.value.push(r(e)),l.trigger(e.index)),c()};return Ie("gamepadconnected",(e=>v(e.gamepad))),Ie("gamepaddisconnected",(e=>{return t=e.gamepad,a.value=a.value.filter((e=>e.index!==t.index)),void o.trigger(t.index);var t})),u((()=>{const e=(null==t?void 0:t.getGamepads())||[];if(e)for(let t=0;t<e.length;++t){const n=e[t];n&&v(n)}})),s(),{isSupported:n,onConnected:l.on,onDisconnected:o.on,gamepads:a,pause:s,resume:c,isActive:i}}function On(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:a=27e3,navigator:l=Fe,immediate:r=!0}=e,u=Ue((()=>l&&"geolocation"in l)),i=Y(null),s=H(null),c=Y({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function v(e){i.value=e.timestamp,c.value=e.coords,s.value=null}let d;function f(){u.value&&(d=l.geolocation.watchPosition(v,(e=>s.value=e),{enableHighAccuracy:t,maximumAge:n,timeout:a}))}function p(){d&&l&&l.geolocation.clearWatch(d)}return r&&f(),o((()=>{p()})),{isSupported:u,coords:c,locatedAt:i,error:s,resume:f,pause:p}}const An=["mousemove","mousedown","resize","keydown","touchstart","wheel"];function Fn(e=6e4,t={}){const{initialState:n=!1,listenForVisibilityChange:a=!0,events:l=An,window:o=Oe,eventFilter:r=k(50)}=t,u=Y(n),i=Y(T());let s;const c=()=>{u.value=!1,clearTimeout(s),s=setTimeout((()=>u.value=!0),e)},v=w(r,(()=>{i.value=T(),c()}));if(o){const e=o.document;for(const e of l)Ie(o,e,v,{passive:!0});a&&Ie(e,"visibilitychange",(()=>{e.hidden||v()})),c()}return{idle:u,lastActive:i,reset:c}}function Pn(e,n={}){const a=Xe((()=>async function(e){return new Promise(((t,n)=>{const a=new Image,{src:l,srcset:o,sizes:r,class:u,loading:i,crossorigin:s,referrerPolicy:c}=e;a.src=l,o&&(a.srcset=o),r&&(a.sizes=r),u&&(a.className=u),i&&(a.loading=i),s&&(a.crossOrigin=s),c&&(a.referrerPolicy=c),a.onload=()=>t(a),a.onerror=n}))}(t(e))),void 0,{resetOnExecute:!0,...n});return K((()=>t(e)),(()=>a.execute(n.delay)),{deep:!0}),a}const In=1;function Cn(e,n={}){const{throttle:l=0,idle:o=200,onStop:r=a,onScroll:i=a,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:c={capture:!1,passive:!0},behavior:v="auto",window:d=Oe}=n,f=Y(0),p=Y(0),m=X({get:()=>f.value,set(e){g(e,void 0)}}),h=X({get:()=>p.value,set(e){g(void 0,e)}});function g(n,a){var l,o,r;if(!d)return;const u=t(e);u&&(null==(r=u instanceof Document?d.document.body:u)||r.scrollTo({top:null!=(l=t(a))?l:h.value,left:null!=(o=t(n))?o:m.value,behavior:t(v)}))}const y=Y(!1),w=oe({left:!0,right:!1,top:!0,bottom:!1}),b=oe({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{y.value&&(y.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,r(e))},x=O(S,l+o),E=e=>{var t;if(!d)return;const n=e.document?e.document.documentElement:null!=(t=e.documentElement)?t:e,{display:a,flexDirection:l}=getComputedStyle(n),o=n.scrollLeft;b.left=o<f.value,b.right=o>f.value;const r=Math.abs(o)<=0+(s.left||0),u=Math.abs(o)+n.clientWidth>=n.scrollWidth-(s.right||0)-In;"flex"===a&&"row-reverse"===l?(w.left=u,w.right=r):(w.left=r,w.right=u),f.value=o;let i=n.scrollTop;e!==d.document||i||(i=d.document.body.scrollTop),b.top=i<p.value,b.bottom=i>p.value;const c=Math.abs(i)<=0+(s.top||0),v=Math.abs(i)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-In;"flex"===a&&"column-reverse"===l?(w.top=v,w.bottom=c):(w.top=c,w.bottom=v),p.value=i},k=e=>{var t;if(!d)return;const n=null!=(t=e.target.documentElement)?t:e.target;E(n),y.value=!0,x(e),i(e)};return Ie(e,"scroll",l?A(k,l,!0,!1):k,c),u((()=>{const n=t(e);n&&E(n)})),Ie(e,"scrollend",S,c),{x:m,y:h,isScrolling:y,arrivedState:w,directions:b,measure(){const n=t(e);d&&n&&E(n)}}}function Rn(e){return"undefined"!=typeof Window&&e instanceof Window?e.document.documentElement:"undefined"!=typeof Document&&e instanceof Document?e.documentElement:e}function Ln(e,n,a={}){var l;const{direction:o="bottom",interval:r=100,canLoadMore:u=(()=>!0)}=a,i=oe(Cn(e,{...a,offset:{[o]:null!=(l=a.distance)?l:0,...a.offset}})),s=Y(),c=X((()=>!!s.value)),v=X((()=>Rn(t(e)))),d=an(v);return K((()=>[i.arrivedState[o],d.value]),(function e(){if(i.measure(),!v.value||!d.value||!u(v.value))return;const{scrollHeight:t,clientHeight:a,scrollWidth:l,clientWidth:c}=v.value,f="bottom"===o||"top"===o?t<=a:l<=c;(i.arrivedState[o]||f)&&(s.value||(s.value=Promise.all([n(i),new Promise((e=>setTimeout(e,r)))]).finally((()=>{s.value=null,le((()=>e()))}))))}),{immediate:!0}),{isLoading:c}}const Dn=["mousedown","mouseup","keydown","keyup"];function Nn(e,t={}){const{events:n=Dn,document:a=Ae,initial:l=null}=t,o=Y(l);return a&&n.forEach((t=>{Ie(a,t,(t=>{"function"==typeof t.getModifierState&&(o.value=t.getModifierState(e))}))})),o}function Mn(e,t,n={}){const{window:a=Oe}=n;return At(e,t,null==a?void 0:a.localStorage,n)}const $n={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function jn(e={}){const{reactive:n=!1,target:l=Oe,aliasMap:o=$n,passive:r=!0,onEventFired:u=a}=e,i=oe(new Set),s={toJSON:()=>({}),current:i},c=n?oe(s):s,v=new Set,d=new Set;function f(e,t){e in c&&(n?c[e]=t:c[e].value=t)}function p(){i.clear();for(const e of d)f(e,!1)}function m(e,t){var n,a;const l=null==(n=e.key)?void 0:n.toLowerCase(),o=[null==(a=e.code)?void 0:a.toLowerCase(),l].filter(Boolean);l&&(t?i.add(l):i.delete(l));for(const e of o)d.add(e),f(e,t);"meta"!==l||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...i,...o].forEach((e=>v.add(e))):(v.forEach((e=>{i.delete(e),f(e,!1)})),v.clear())}Ie(l,"keydown",(e=>(m(e,!0),u(e))),{passive:r}),Ie(l,"keyup",(e=>(m(e,!1),u(e))),{passive:r}),Ie("blur",p,{passive:!0}),Ie("focus",p,{passive:!0});const h=new Proxy(c,{get(e,a,l){if("string"!=typeof a)return Reflect.get(e,a,l);if((a=a.toLowerCase())in o&&(a=o[a]),!(a in c))if(/[+_-]/.test(a)){const e=a.split(/[+_-]/g).map((e=>e.trim()));c[a]=X((()=>e.every((e=>t(h[e])))))}else c[a]=Y(!1);const r=Reflect.get(e,a,l);return n?t(r):r}});return h}function qn(e,n){t(e)&&n(t(e))}function Bn(e){return Array.from(e).map((({label:e,kind:t,language:n,mode:a,activeCues:l,cues:o,inBandMetadataTrackDispatchType:r},u)=>({id:u,label:e,kind:t,language:n,mode:a,activeCues:l,cues:o,inBandMetadataTrackDispatchType:r})))}const zn={src:"",tracks:[]};function Un(e,n={}){n={...zn,...n};const{document:a=Ae}=n,r=Y(0),u=Y(0),i=Y(!1),s=Y(1),c=Y(!1),v=Y(!1),d=Y(!1),f=Y(1),p=Y(!1),h=Y([]),y=Y([]),w=Y(-1),b=Y(!1),S=Y(!1),x=a&&"pictureInPictureEnabled"in a,E=m(),k=t=>{qn(e,(e=>{if(t){const n="number"==typeof t?t:t.id;e.textTracks[n].mode="disabled"}else for(let t=0;t<e.textTracks.length;++t)e.textTracks[t].mode="disabled";w.value=-1}))};W((()=>{if(!a)return;const o=t(e);if(!o)return;const r=t(n.src);let u=[];r&&("string"==typeof r?u=[{src:r}]:Array.isArray(r)?u=r:l(r)&&(u=[r]),o.querySelectorAll("source").forEach((e=>{e.removeEventListener("error",E.trigger),e.remove()})),u.forEach((({src:e,type:t})=>{const n=a.createElement("source");n.setAttribute("src",e),n.setAttribute("type",t||""),n.addEventListener("error",E.trigger),o.appendChild(n)})),o.load())})),o((()=>{const n=t(e);n&&n.querySelectorAll("source").forEach((e=>e.removeEventListener("error",E.trigger)))})),K([e,s],(()=>{const n=t(e);n&&(n.volume=s.value)})),K([e,S],(()=>{const n=t(e);n&&(n.muted=S.value)})),K([e,f],(()=>{const n=t(e);n&&(n.playbackRate=f.value)})),W((()=>{if(!a)return;const l=t(n.tracks),o=t(e);l&&l.length&&o&&(o.querySelectorAll("track").forEach((e=>e.remove())),l.forEach((({default:e,kind:t,label:n,src:l,srcLang:r},u)=>{const i=a.createElement("track");i.default=e||!1,i.kind=t,i.label=n,i.src=l,i.srclang=r,i.default&&(w.value=u),o.appendChild(i)})))}));const{ignoreUpdates:T}=g(r,(n=>{const a=t(e);a&&(a.currentTime=n)})),{ignoreUpdates:O}=g(d,(n=>{const a=t(e);a&&(n?a.play():a.pause())}));Ie(e,"timeupdate",(()=>T((()=>r.value=t(e).currentTime)))),Ie(e,"durationchange",(()=>u.value=t(e).duration)),Ie(e,"progress",(()=>h.value=function(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}(t(e).buffered))),Ie(e,"seeking",(()=>i.value=!0)),Ie(e,"seeked",(()=>i.value=!1)),Ie(e,["waiting","loadstart"],(()=>{c.value=!0,O((()=>d.value=!1))})),Ie(e,"loadeddata",(()=>c.value=!1)),Ie(e,"playing",(()=>{c.value=!1,v.value=!1,O((()=>d.value=!0))})),Ie(e,"ratechange",(()=>f.value=t(e).playbackRate)),Ie(e,"stalled",(()=>p.value=!0)),Ie(e,"ended",(()=>v.value=!0)),Ie(e,"pause",(()=>O((()=>d.value=!1)))),Ie(e,"play",(()=>O((()=>d.value=!0)))),Ie(e,"enterpictureinpicture",(()=>b.value=!0)),Ie(e,"leavepictureinpicture",(()=>b.value=!1)),Ie(e,"volumechange",(()=>{const n=t(e);n&&(s.value=n.volume,S.value=n.muted)}));const A=[],F=K([e],(()=>{const n=t(e);n&&(F(),A[0]=Ie(n.textTracks,"addtrack",(()=>y.value=Bn(n.textTracks))),A[1]=Ie(n.textTracks,"removetrack",(()=>y.value=Bn(n.textTracks))),A[2]=Ie(n.textTracks,"change",(()=>y.value=Bn(n.textTracks))))}));return o((()=>A.forEach((e=>e())))),{currentTime:r,duration:u,waiting:c,seeking:i,ended:v,stalled:p,buffered:h,playing:d,rate:f,volume:s,muted:S,tracks:y,selectedTrack:w,enableTrack:(t,n=!0)=>{qn(e,(e=>{const a="number"==typeof t?t:t.id;n&&k(),e.textTracks[a].mode="showing",w.value=a}))},disableTrack:k,supportsPictureInPicture:x,togglePictureInPicture:()=>new Promise(((t,n)=>{qn(e,(async e=>{x&&(b.value?a.exitPictureInPicture().then(t).catch(n):e.requestPictureInPicture().then(t).catch(n))}))})),isPictureInPicture:b,onSourceError:E.on}}function Vn(e,t){const n=(null==t?void 0:t.cache)?ae(t.cache):ce?function(){const e=ae({});return{get:t=>e[t],set:(t,n)=>he(e,t,n),has:t=>j(e,t),delete:t=>ge(e,t),clear:()=>{Object.keys(e).forEach((t=>{ge(e,t)}))}}}():ae(new Map),a=(...e)=>(null==t?void 0:t.getKey)?t.getKey(...e):JSON.stringify(e),l=(t,...a)=>(n.set(t,e(...a)),n.get(t)),o=(...e)=>{const t=a(...e);return n.has(t)?n.get(t):l(t,...e)};return o.load=(...e)=>l(a(...e),...e),o.delete=(...e)=>{n.delete(a(...e))},o.clear=()=>{n.clear()},o.generateKey=a,o.cache=n,o}function Yn(e={}){const t=Y(),n=Ue((()=>"undefined"!=typeof performance&&"memory"in performance));if(n.value){const{interval:n=1e3}=e;x((()=>{t.value=performance.memory}),n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const Hn={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 Wn(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:a=!1,initialValue:l={x:0,y:0},window:o=Oe,target:r=o,scroll:u=!0,eventFilter:i}=e;let s=null;const c=Y(l.x),v=Y(l.y),d=Y(null),f="function"==typeof t?t:Hn[t],p=e=>{const t=f(e);s=e,t&&([c.value,v.value]=t,d.value="mouse")},m=e=>{if(e.touches.length>0){const t=f(e.touches[0]);t&&([c.value,v.value]=t,d.value="touch")}},h=()=>{if(!s||!o)return;const e=f(s);s instanceof MouseEvent&&e&&(c.value=e[0]+o.scrollX,v.value=e[1]+o.scrollY)},g=()=>{c.value=l.x,v.value=l.y},y=i?e=>i((()=>p(e)),{}):e=>p(e),w=i?e=>i((()=>m(e)),{}):e=>m(e),b=i?()=>i((()=>h()),{}):()=>h();if(r){const e={passive:!0};Ie(r,["mousemove","dragover"],y,e),n&&"movement"!==t&&(Ie(r,["touchstart","touchmove"],w,e),a&&Ie(r,"touchend",g,e)),u&&"page"===t&&Ie(o,"scroll",b,{passive:!0})}return{x:c,y:v,sourceType:d}}function Xn(e,t={}){const{handleOutside:n=!0,window:a=Oe}=t,l=t.type||"page",{x:o,y:r,sourceType:u}=Wn(t),i=Y(null!=e?e:null==a?void 0:a.document.body),s=Y(0),c=Y(0),v=Y(0),d=Y(0),f=Y(0),p=Y(0),m=Y(!0);let h=()=>{};return a&&(h=K([i,o,r],(()=>{const e=Te(i);if(!e)return;const{left:t,top:u,width:h,height:g}=e.getBoundingClientRect();v.value=t+("page"===l?a.pageXOffset:0),d.value=u+("page"===l?a.pageYOffset:0),f.value=g,p.value=h;const y=o.value-v.value,w=r.value-d.value;m.value=0===h||0===g||y<0||w<0||y>h||w>g,!n&&m.value||(s.value=y,c.value=w)}),{immediate:!0}),Ie(document,"mouseleave",(()=>{m.value=!0}))),{x:o,y:r,sourceType:u,elementX:s,elementY:c,elementPositionX:v,elementPositionY:d,elementHeight:f,elementWidth:p,isOutside:m,stop:h}}function _n(e={}){const{touch:t=!0,drag:n=!0,capture:a=!1,initialValue:l=!1,window:o=Oe}=e,r=Y(l),u=Y(null);if(!o)return{pressed:r,sourceType:u};const i=e=>()=>{r.value=!0,u.value=e},s=()=>{r.value=!1,u.value=null},c=X((()=>Te(e.target)||o));return Ie(c,"mousedown",i("mouse"),{passive:!0,capture:a}),Ie(o,"mouseleave",s,{passive:!0,capture:a}),Ie(o,"mouseup",s,{passive:!0,capture:a}),n&&(Ie(c,"dragstart",i("mouse"),{passive:!0,capture:a}),Ie(o,"drop",s,{passive:!0,capture:a}),Ie(o,"dragend",s,{passive:!0,capture:a})),t&&(Ie(c,"touchstart",i("touch"),{passive:!0,capture:a}),Ie(o,"touchend",s,{passive:!0,capture:a}),Ie(o,"touchcancel",s,{passive:!0,capture:a})),{pressed:r,sourceType:u}}function Gn(e={}){const{window:t=Oe}=e,n=null==t?void 0:t.navigator,a=Ue((()=>n&&"language"in n)),l=Y(null==n?void 0:n.language);return Ie(t,"languagechange",(()=>{n&&(l.value=n.language)})),{isSupported:a,language:l}}function Jn(e={}){const{window:t=Oe}=e,n=null==t?void 0:t.navigator,a=Ue((()=>n&&"connection"in n)),l=Y(!0),o=Y(!1),r=Y(void 0),u=Y(void 0),i=Y(void 0),s=Y(void 0),c=Y(void 0),v=Y(void 0),d=Y("unknown"),f=a.value&&n.connection;function p(){n&&(l.value=n.onLine,r.value=l.value?void 0:Date.now(),u.value=l.value?Date.now():void 0,f&&(i.value=f.downlink,s.value=f.downlinkMax,v.value=f.effectiveType,c.value=f.rtt,o.value=f.saveData,d.value=f.type))}return t&&(Ie(t,"offline",(()=>{l.value=!1,r.value=Date.now()})),Ie(t,"online",(()=>{l.value=!0,u.value=Date.now()}))),f&&Ie(f,"change",p,!1),p(),{isSupported:a,isOnline:l,saveData:o,offlineAt:r,onlineAt:u,downlink:i,downlinkMax:s,effectiveType:v,rtt:c,type:d}}function Kn(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,a=Y(new Date),l=()=>a.value=new Date,o="requestAnimationFrame"===n?Ve(l,{immediate:!0}):x(l,n,{immediate:!0});return t?{now:a,...o}:a}function Qn(e){const n=Y(),a=()=>{n.value&&URL.revokeObjectURL(n.value),n.value=void 0};return K((()=>t(e)),(e=>{a(),e&&(n.value=URL.createObjectURL(e))}),{immediate:!0}),o(a),ne(n)}function Zn(e,n,a){if("function"==typeof e||ie(e))return X((()=>q(t(e),t(n),t(a))));const l=Y(e);return X({get:()=>l.value=q(l.value,t(n),t(a)),set(e){l.value=q(e,t(n),t(a))}})}function ea(e){const{total:n=Number.POSITIVE_INFINITY,pageSize:l=10,page:o=1,onPageChange:r=a,onPageSizeChange:u=a,onPageCountChange:i=a}=e,s=Zn(l,1,Number.POSITIVE_INFINITY),c=X((()=>Math.max(1,Math.ceil(t(n)/t(s))))),v=Zn(o,1,c),d=X((()=>1===v.value)),f=X((()=>v.value===c.value));V(o)&&F(o,v,{direction:ie(o)?"ltr":"both"}),V(l)&&F(l,s,{direction:ie(l)?"ltr":"both"});const p={currentPage:v,currentPageSize:s,pageCount:c,isFirstPage:d,isLastPage:f,prev:function(){v.value--},next:function(){v.value++}};return K(v,(()=>{r(oe(p))})),K(s,(()=>{u(oe(p))})),K(c,(()=>{i(oe(p))})),p}function ta(e={}){const{isOnline:t}=Jn(e);return t}function na(e={}){const{window:t=Oe}=e,n=Y(!1),a=e=>{if(!t)return;const a=(e=e||t.event).relatedTarget||e.toElement;n.value=!a};return t&&(Ie(t,"mouseout",a,{passive:!0}),Ie(t.document,"mouseleave",a,{passive:!0}),Ie(t.document,"mouseenter",a,{passive:!0})),n}function aa(e,t={}){const{deviceOrientationTiltAdjust:n=(e=>e),deviceOrientationRollAdjust:a=(e=>e),mouseTiltAdjust:l=(e=>e),mouseRollAdjust:o=(e=>e),window:r=Oe}=t,u=oe(Yt({window:r})),{elementX:i,elementY:s,elementWidth:c,elementHeight:v}=Xn(e,{handleOutside:!1,window:r}),d=X((()=>u.isSupported&&(null!=u.alpha&&0!==u.alpha||null!=u.gamma&&0!==u.gamma)?"deviceOrientation":"mouse"));return{roll:X((()=>{if("deviceOrientation"===d.value){const e=-u.beta/90;return a(e)}{const e=-(s.value-v.value/2)/v.value;return o(e)}})),tilt:X((()=>{if("deviceOrientation"===d.value){const e=u.gamma/90;return n(e)}{const e=(i.value-c.value/2)/c.value;return l(e)}})),source:d}}function la(e=Lt()){const n=H(),a=()=>{const t=Te(e);t&&(n.value=t.parentElement)};return u(a),K((()=>t(e)),a),n}function oa(e,t){const{window:n=Oe,immediate:a=!0,...l}=e,r=Ue((()=>n&&"PerformanceObserver"in n));let u;const i=()=>{null==u||u.disconnect()},s=()=>{r.value&&(i(),u=new PerformanceObserver(t),u.observe(l))};return o(i),a&&s(),{isSupported:r,start:s,stop:i}}const ra={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},ua=Object.keys(ra);function ia(e={}){const{target:t=Oe}=e,n=Y(!1),a=Y(e.initialValue||{});Object.assign(a.value,ra,a.value);if(t){const l={passive:!0};Ie(t,["pointerdown","pointermove","pointerup"],(t=>{n.value=!0,e.pointerTypes&&!e.pointerTypes.includes(t.pointerType)||(a.value=B(t,ua,!1))}),l),Ie(t,"pointerleave",(()=>n.value=!1),l)}return{...b(a),isInside:n}}function sa(e,t={}){const{document:n=Ae,pointerLockOptions:a}=t,l=Ue((()=>n&&"pointerLockElement"in n)),o=Y(),r=Y();let u;return l.value&&(Ie(n,"pointerlockchange",(()=>{var e;const t=null!=(e=n.pointerLockElement)?e:o.value;u&&t===u&&(o.value=n.pointerLockElement,o.value||(u=r.value=null))})),Ie(n,"pointerlockerror",(()=>{var e;const t=null!=(e=n.pointerLockElement)?e:o.value;if(u&&t===u){const e=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${e} pointer lock.`)}}))),{isSupported:l,element:o,triggerElement:r,lock:async function(t,n){var i;if(!l.value)throw new Error("Pointer Lock API is not supported by your browser.");if(r.value=t instanceof Event?t.currentTarget:null,u=t instanceof Event?null!=(i=Te(e))?i:r.value:Te(t),!u)throw new Error("Target element undefined.");return u.requestPointerLock(null!=n?n:a),await E(o).toBe(u)},unlock:async function(){return!!o.value&&(n.exitPointerLock(),await E(o).toBeNull(),!0)}}}function ca(e,t={}){const n=p(e),{threshold:a=50,onSwipe:l,onSwipeEnd:o,onSwipeStart:r,disableTextSelect:i=!1}=t,s=oe({x:0,y:0}),c=oe({x:0,y:0}),v=(e,t)=>{c.x=e,c.y=t},d=X((()=>s.x-c.x)),f=X((()=>s.y-c.y)),{max:m,abs:h}=Math,g=X((()=>m(h(d.value),h(f.value))>=a)),y=Y(!1),w=Y(!1),b=X((()=>g.value?h(d.value)>h(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none")),S=e=>{var n,a,l;const o=0===e.buttons,r=1===e.buttons;return null==(l=null!=(a=null==(n=t.pointerTypes)?void 0:n.includes(e.pointerType))?a:o||r)||l},x=[Ie(e,"pointerdown",(e=>{if(!S(e))return;w.value=!0;const t=e.target;null==t||t.setPointerCapture(e.pointerId);const{clientX:n,clientY:a}=e;((e,t)=>{s.x=e,s.y=t})(n,a),v(n,a),null==r||r(e)})),Ie(e,"pointermove",(e=>{if(!S(e))return;if(!w.value)return;const{clientX:t,clientY:n}=e;v(t,n),!y.value&&g.value&&(y.value=!0),y.value&&(null==l||l(e))})),Ie(e,"pointerup",(e=>{S(e)&&(y.value&&(null==o||o(e,b.value)),w.value=!1,y.value=!1)}))];u((()=>{var e,t,a,l,o,r,u,s;null==(t=null==(e=n.value)?void 0:e.style)||t.setProperty("touch-action","none"),i&&(null==(l=null==(a=n.value)?void 0:a.style)||l.setProperty("-webkit-user-select","none"),null==(r=null==(o=n.value)?void 0:o.style)||r.setProperty("-ms-user-select","none"),null==(s=null==(u=n.value)?void 0:u.style)||s.setProperty("user-select","none"))}));return{isSwiping:ne(y),direction:ne(b),posStart:ne(s),posEnd:ne(c),distanceX:d,distanceY:f,stop:()=>x.forEach((e=>e()))}}function va(e){const t=Ze("(prefers-color-scheme: light)",e),n=Ze("(prefers-color-scheme: dark)",e);return X((()=>n.value?"dark":t.value?"light":"no-preference"))}function da(e){const t=Ze("(prefers-contrast: more)",e),n=Ze("(prefers-contrast: less)",e),a=Ze("(prefers-contrast: custom)",e);return X((()=>t.value?"more":n.value?"less":a.value?"custom":"no-preference"))}function fa(e={}){const{window:t=Oe}=e;if(!t)return Y(["en"]);const n=t.navigator,a=Y(n.languages);return Ie(t,"languagechange",(()=>{a.value=n.languages})),a}function pa(e){const t=Ze("(prefers-reduced-motion: reduce)",e);return X((()=>t.value?"reduce":"no-preference"))}function ma(e,t){const n=H(t);return K(p(e),((e,t)=>{n.value=t}),{flush:"sync"}),ne(n)}function ha(e={}){const{window:t=Oe}=e,n=Ue((()=>t&&"screen"in t&&"orientation"in t.screen)),a=n.value?t.screen.orientation:{},l=Y(a.type),o=Y(a.angle||0);n.value&&Ie(t,"orientationchange",(()=>{l.value=a.type,o.value=a.angle}));return{isSupported:n,orientation:l,angle:o,lockOrientation:e=>n.value&&"function"==typeof a.lock?a.lock(e):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&"function"==typeof a.unlock&&a.unlock()}}}const ga="--vueuse-safe-area-top",ya="--vueuse-safe-area-right",wa="--vueuse-safe-area-bottom",ba="--vueuse-safe-area-left";function Sa(){const e=Y(""),t=Y(""),a=Y(""),l=Y("");if(n){const e=Rt(ga),t=Rt(ya),n=Rt(wa),a=Rt(ba);e.value="env(safe-area-inset-top, 0px)",t.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",a.value="env(safe-area-inset-left, 0px)",o(),Ie("resize",O(o))}function o(){e.value=xa(ga),t.value=xa(ya),a.value=xa(wa),l.value=xa(ba)}return{top:e,right:t,bottom:a,left:l,update:o}}function xa(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Ea(e,n=a,l={}){const{immediate:o=!0,manual:r=!1,type:i="text/javascript",async:s=!0,crossOrigin:c,referrerPolicy:v,noModule:d,defer:f,document:p=Ae,attrs:m={}}=l,h=Y(null);let g=null;const y=(a=!0)=>(g||(g=(a=>new Promise(((l,o)=>{const r=e=>(h.value=e,l(e),e);if(!p)return void l(!1);let u=!1,g=p.querySelector(`script[src="${t(e)}"]`);g?g.hasAttribute("data-loaded")&&r(g):(g=p.createElement("script"),g.type=i,g.async=s,g.src=t(e),f&&(g.defer=f),c&&(g.crossOrigin=c),d&&(g.noModule=d),v&&(g.referrerPolicy=v),Object.entries(m).forEach((([e,t])=>null==g?void 0:g.setAttribute(e,t))),u=!0),g.addEventListener("error",(e=>o(e))),g.addEventListener("abort",(e=>o(e))),g.addEventListener("load",(()=>{g.setAttribute("data-loaded","true"),n(g),r(g)})),u&&(g=p.head.appendChild(g)),a||r(g)})))(a)),g),w=()=>{if(!p)return;g=null,h.value&&(h.value=null);const n=p.querySelector(`script[src="${t(e)}"]`);n&&p.head.removeChild(n)};return o&&!r&&u(y),r||P(w),{scriptTag:h,load:y,unload:w}}function ka(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientWidth<e.scrollWidth||"auto"===t.overflowY&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(!t||"BODY"===t.tagName)&&ka(t)}}function Ta(e){const t=e||window.event;return!ka(t.target)&&(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}const Oa=new WeakMap;function Aa(e,n=!1){const a=Y(n);let l=null;K(p(e),(e=>{const n=Rn(t(e));if(n){const e=n;Oa.get(e)||Oa.set(e,undefined),a.value&&(e.style.overflow="hidden")}}),{immediate:!0});const u=()=>{var n;const o=Rn(t(e));o&&a.value&&(r&&(null==l||l()),o.style.overflow=null!=(n=Oa.get(o))?n:"",Oa.delete(o),a.value=!1)};return o(u),X({get:()=>a.value,set(n){n?(()=>{const n=Rn(t(e));n&&!a.value&&(r&&(l=Ie(n,"touchmove",(e=>{Ta(e)}),{passive:!1})),n.style.overflow="hidden",a.value=!0)})():u()}})}function Fa(e,t,n={}){const{window:a=Oe}=n;return At(e,t,null==a?void 0:a.sessionStorage,n)}function Pa(e={},n={}){const{navigator:a=Fe}=n,l=a,o=Ue((()=>l&&"canShare"in l));return{isSupported:o,share:async(n={})=>{if(o.value){const a={...t(e),...t(n)};let o=!0;if(a.files&&l.canShare&&(o=l.canShare({files:a.files})),o)return l.share(a)}}}}const Ia=(e,t)=>e.sort(t),Ca=(e,t)=>e-t;function Ra(...e){var n,a,l,o;const[r]=e;let u=Ca,i={};2===e.length?"object"==typeof e[1]?(i=e[1],u=null!=(n=i.compareFn)?n:Ca):u=null!=(a=e[1])?a:Ca:e.length>2&&(u=null!=(l=e[1])?l:Ca,i=null!=(o=e[2])?o:{});const{dirty:s=!1,sortFn:c=Ia}=i;return s?(W((()=>{const e=c(t(r),u);V(r)?r.value=e:r.splice(0,r.length,...e)})),r):X((()=>c([...t(r)],u)))}function La(e={}){const{interimResults:n=!0,continuous:a=!0,window:l=Oe}=e,r=p(e.lang||"en-US"),u=Y(!1),i=Y(!1),s=Y(""),c=H(void 0),v=l&&(l.SpeechRecognition||l.webkitSpeechRecognition),d=Ue((()=>v));let f;return d.value&&(f=new v,f.continuous=a,f.interimResults=n,f.lang=t(r),f.onstart=()=>{i.value=!1},K(r,(e=>{f&&!u.value&&(f.lang=e)})),f.onresult=e=>{const t=Array.from(e.results).map((e=>(i.value=e.isFinal,e[0]))).map((e=>e.transcript)).join("");s.value=t,c.value=void 0},f.onerror=e=>{c.value=e},f.onend=()=>{u.value=!1,f.lang=t(r)},K(u,(()=>{u.value?f.start():f.stop()}))),o((()=>{u.value=!1})),{isSupported:d,isListening:u,isFinal:i,recognition:f,result:s,error:c,toggle:(e=!u.value)=>{u.value=e},start:()=>{u.value=!0},stop:()=>{u.value=!1}}}function Da(e,n={}){const{pitch:a=1,rate:l=1,volume:r=1,window:u=Oe}=n,i=u&&u.speechSynthesis,s=Ue((()=>i)),c=Y(!1),v=Y("init"),d=p(e||""),f=p(n.lang||"en-US"),m=H(void 0),h=e=>{e.lang=t(f),e.voice=t(n.voice)||null,e.pitch=t(a),e.rate=t(l),e.volume=r,e.onstart=()=>{c.value=!0,v.value="play"},e.onpause=()=>{c.value=!1,v.value="pause"},e.onresume=()=>{c.value=!0,v.value="play"},e.onend=()=>{c.value=!1,v.value="end"},e.onerror=e=>{m.value=e}},g=X((()=>{c.value=!1,v.value="init";const e=new SpeechSynthesisUtterance(d.value);return h(e),e}));return s.value&&(h(g.value),K(f,(e=>{g.value&&!c.value&&(g.value.lang=e)})),n.voice&&K(n.voice,(()=>{i.cancel()})),K(c,(()=>{c.value?i.resume():i.pause()}))),o((()=>{c.value=!1})),{isSupported:s,isPlaying:c,status:v,utterance:g,error:m,stop:()=>{i.cancel(),c.value=!1},toggle:(e=!c.value)=>{c.value=e},speak:()=>{i.cancel(),g&&i.speak(g.value)}}}function Na(e,t){const n=Y(e),a=X((()=>Array.isArray(n.value)?n.value:Object.keys(n.value))),l=Y(a.value.indexOf(null!=t?t:a.value[0])),o=X((()=>c(l.value))),r=X((()=>0===l.value)),u=X((()=>l.value===a.value.length-1)),i=X((()=>a.value[l.value+1])),s=X((()=>a.value[l.value-1]));function c(e){return Array.isArray(n.value)?n.value[e]:n.value[a.value[e]]}function v(e){a.value.includes(e)&&(l.value=a.value.indexOf(e))}function d(e){return l.value>a.value.indexOf(e)}return{steps:n,stepNames:a,index:l,current:o,next:i,previous:s,isFirst:r,isLast:u,at:c,get:function(e){if(a.value.includes(e))return c(a.value.indexOf(e))},goTo:v,goToNext:function(){u.value||l.value++},goToPrevious:function(){r.value||l.value--},goBackTo:function(e){d(e)&&v(e)},isNext:function(e){return a.value.indexOf(e)===l.value+1},isPrevious:function(e){return a.value.indexOf(e)===l.value-1},isCurrent:function(e){return a.value.indexOf(e)===l.value},isBefore:function(e){return l.value<a.value.indexOf(e)},isAfter:d}}function Ma(e,n,a,l={}){var o;const{flush:r="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:v,window:d=Oe,eventFilter:f,onError:p=(e=>{console.error(e)})}=l,m=t(n),h=kt(m),g=(v?H:Y)(n),y=null!=(o=l.serializer)?o:Tt[h];if(!a)try{a=xt("getDefaultStorageAsync",(()=>{var e;return null==(e=Oe)?void 0:e.localStorage}))()}catch(e){p(e)}async function w(t){if(a&&(!t||t.key===e))try{const n=t?t.newValue:await a.getItem(e);if(null==n)g.value=m,s&&null!==m&&await a.setItem(e,await y.write(m));else if(c){const e=await y.read(n);"function"==typeof c?g.value=c(e,m):"object"!==h||Array.isArray(e)?g.value=e:g.value={...m,...e}}else g.value=await y.read(n)}catch(e){p(e)}}return w(),d&&i&&Ie(d,"storage",(e=>Promise.resolve().then((()=>w(e))))),a&&I(g,(async()=>{try{null==g.value?await a.removeItem(e):await a.setItem(e,await y.write(g.value))}catch(e){p(e)}}),{flush:r,deep:u,eventFilter:f}),g}let $a=0;function ja(e,t={}){const n=Y(!1),{document:a=Ae,immediate:l=!0,manual:r=!1,id:i="vueuse_styletag_"+ ++$a}=t,s=Y(e);let c=()=>{};const v=()=>{if(!a)return;const e=a.getElementById(i)||a.createElement("style");e.isConnected||(e.id=i,t.media&&(e.media=t.media),a.head.appendChild(e)),n.value||(c=K(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},d=()=>{a&&n.value&&(c(),a.head.removeChild(a.getElementById(i)),n.value=!1)};return l&&!r&&u(v),r||o(d),{id:i,css:s,unload:d,load:v,isLoaded:ne(n)}}function qa(e,t={}){const{threshold:n=50,onSwipe:l,onSwipeEnd:o,onSwipeStart:r,passive:u=!0,window:i=Oe}=t,s=oe({x:0,y:0}),c=oe({x:0,y:0}),v=X((()=>s.x-c.x)),d=X((()=>s.y-c.y)),{max:f,abs:p}=Math,m=X((()=>f(p(v.value),p(d.value))>=n)),h=Y(!1),g=X((()=>m.value?p(v.value)>p(d.value)?v.value>0?"left":"right":d.value>0?"up":"down":"none")),y=e=>[e.touches[0].clientX,e.touches[0].clientY],w=(e,t)=>{c.x=e,c.y=t};let b;const S=function(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",a,n),e.removeEventListener("x",a),t}(null==i?void 0:i.document);b=u?S?{passive:!0}:{capture:!1}:S?{passive:!1,capture:!0}:{capture:!0};const x=[Ie(e,"touchstart",(e=>{if(1!==e.touches.length)return;b.capture&&!b.passive&&e.preventDefault();const[t,n]=y(e);((e,t)=>{s.x=e,s.y=t})(t,n),w(t,n),null==r||r(e)}),b),Ie(e,"touchmove",(e=>{if(1!==e.touches.length)return;const[t,n]=y(e);w(t,n),!h.value&&m.value&&(h.value=!0),h.value&&(null==l||l(e))}),b),Ie(e,["touchend","touchcancel"],(e=>{h.value&&(null==o||o(e,g.value)),h.value=!1}),b)];return{isPassiveEventSupported:S,isSwiping:h,direction:g,coordsStart:s,coordsEnd:c,lengthX:v,lengthY:d,stop:()=>x.forEach((e=>e()))}}function Ba(){const e=Y([]);return e.value.set=t=>{t&&e.value.push(t)},se((()=>{e.value.length=0})),e}function za(e={}){const{document:t=Ae,selector:n="html",observe:a=!1,initialValue:l="ltr"}=e;function o(){var e,a;return null!=(a=null==(e=null==t?void 0:t.querySelector(n))?void 0:e.getAttribute("dir"))?a:l}const r=Y(o());return u((()=>r.value=o())),a&&t&&Ct(t.querySelector(n),(()=>r.value=o()),{attributes:!0}),X({get:()=>r.value,set(e){var a,l;r.value=e,t&&(r.value?null==(a=t.querySelector(n))||a.setAttribute("dir",r.value):null==(l=t.querySelector(n))||l.removeAttribute("dir"))}})}function Ua(e={}){const{window:t=Oe}=e,n=Y(null),a=X((()=>{var e,t;return null!=(t=null==(e=n.value)?void 0:e.toString())?t:""})),l=X((()=>n.value?function(e){var t;const n=null!=(t=e.rangeCount)?t:0;return Array.from({length:n},((t,n)=>e.getRangeAt(n)))}(n.value):[])),o=X((()=>l.value.map((e=>e.getBoundingClientRect()))));return t&&Ie(t.document,"selectionchange",(function(){n.value=null,t&&(n.value=t.getSelection())})),{text:a,rects:o,ranges:l,selection:n}}function Va(e){const n=Y(null==e?void 0:e.element),a=Y(null==e?void 0:e.input),l=Y(1);function o(){var a,o;if(!n.value)return;let r="";n.value.style.height="1px",l.value=null==(a=n.value)?void 0:a.scrollHeight,(null==e?void 0:e.styleTarget)?t(e.styleTarget).style.height=`${l.value}px`:r=`${l.value}px`,n.value.style.height=r,null==(o=null==e?void 0:e.onResize)||o.call(e)}return K([a,n],(()=>le(o)),{immediate:!0}),Kt(n,(()=>o())),(null==e?void 0:e.watch)&&K(e.watch,o,{immediate:!0,deep:!0}),{textarea:n,input:a,triggerResize:o}}function Ya(e,t={}){const{throttle:n=200,trailing:a=!0}=t,l=k(n,a);return{...zt(e,{...t,eventFilter:l})}}const Ha=[{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"}],Wa={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>1===e?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>1===e?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>1===e?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>1===e?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 Xa(e){return e.toISOString().slice(0,10)}function _a(e,n={}){const{controls:a=!1,updateInterval:l=3e4}=n,{now:o,...r}=Kn({interval:l,controls:!0}),u=X((()=>Ga(new Date(t(e)),n,t(o))));return a?{timeAgo:u,...r}:u}function Ga(e,t={},n=Date.now()){var a;const{max:l,messages:o=Wa,fullDateFormatter:r=Xa,units:u=Ha,showSecond:i=!1,rounding:s="round"}=t,c="number"==typeof s?e=>+e.toFixed(s):Math[s],v=+n-+e,d=Math.abs(v);function f(e,t){return c(Math.abs(e)/t.value)}function p(e,t){const n=f(e,t),a=e>0,l=m(t.name,n,a);return m(a?"past":"future",l,a)}function m(e,t,n){const a=o[e];return"function"==typeof a?a(t,n):a.replace("{0}",t.toString())}if(d<6e4&&!i)return o.justNow;if("number"==typeof l&&d>l)return r(new Date(e));if("string"==typeof l){const t=null==(a=u.find((e=>e.name===l)))?void 0:a.max;if(t&&d>t)return r(new Date(e))}for(const[e,t]of u.entries()){if(f(v,t)<=0&&u[e-1])return p(v,u[e-1]);if(d<t.max)return p(v,t)}return o.invalid}function Ja(e,t,n){const{start:a}=d(r,t,{immediate:!1}),l=Y(!1);async function r(){l.value&&(await e(),a())}function u(){l.value||(l.value=!0,r())}function i(){l.value=!1}return(null==n?void 0:n.immediate)&&u(),o(i),{isActive:l,pause:i,resume:u}}function Ka(e={}){const{controls:t=!1,offset:n=0,immediate:a=!0,interval:l="requestAnimationFrame",callback:o}=e,r=Y(T()+n),u=()=>r.value=T()+n,i=o?()=>{u(),o(r.value)}:u,s="requestAnimationFrame"===l?Ve(i,{immediate:a}):x(i,l,{immediate:a});return t?{timestamp:r,...s}:r}function Qa(e=null,n={}){var a,l,o;const{document:r=Ae,restoreOnUnmount:u=(e=>e)}=n,i=null!=(a=null==r?void 0:r.title)?a:"",s=p(null!=(l=null!=e?e:null==r?void 0:r.title)?l:null),c=e&&"function"==typeof e;function v(e){if(!("titleTemplate"in n))return e;const a=n.titleTemplate||"%s";return"function"==typeof a?a(e):t(a).replace(/%s/g,e)}return K(s,((e,t)=>{e!==t&&r&&(r.title=v("string"==typeof e?e:""))}),{immediate:!0}),n.observe&&!n.titleTemplate&&r&&!c&&Ct(null==(o=r.head)?void 0:o.querySelector("title"),(()=>{r&&r.title!==s.value&&(s.value=v(r.title))}),{childList:!0}),C((()=>{if(u){const e=u(i,s.value||"");null!=e&&r&&(r.title=e)}})),s}const Za={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]},el=Object.assign({},{linear:R},Za);function tl([e,t,n,a]){const l=(e,t)=>1-3*t+3*e,o=(e,t)=>3*t-6*e,r=e=>3*e,u=(e,t,n)=>((l(t,n)*e+o(t,n))*e+r(t))*e;return i=>e===t&&n===a?i:u((t=>{let a=t;for(let v=0;v<4;++v){const v=(i=a,3*l(s=e,c=n)*i*i+2*o(s,c)*i+r(s));if(0===v)return a;a-=(u(a,e,n)-t)/v}var i,s,c;return a})(i),t,a)}function nl(e,t,n){return e+n*(t-e)}function al(e){return("number"==typeof e?[e]:e)||[]}function ll(e,n,a,l={}){var o,r;const u=t(n),i=t(a),s=al(u),c=al(i),v=null!=(o=t(l.duration))?o:1e3,d=Date.now(),f=Date.now()+v,p="function"==typeof l.transition?l.transition:null!=(r=t(l.transition))?r:R,m="function"==typeof p?p:tl(p);return new Promise((t=>{e.value=u;const n=()=>{var a;if(null==(a=l.abort)?void 0:a.call(l))return void t();const o=Date.now(),r=m((o-d)/v),u=al(e.value).map(((e,t)=>nl(s[t],c[t],r)));Array.isArray(e.value)?e.value=u.map(((e,t)=>{var n,a;return nl(null!=(n=s[t])?n:0,null!=(a=c[t])?a:0,r)})):"number"==typeof e.value&&(e.value=u[0]),o<f?requestAnimationFrame(n):(e.value=i,t())};n()}))}function ol(e,n={}){let a=0;const l=()=>{const n=t(e);return"number"==typeof n?n:n.map(t)},r=Y(l());return K(l,(async e=>{var l,o;if(t(n.disabled))return;const u=++a;if(n.delay&&await L(t(n.delay)),u!==a)return;const i=Array.isArray(e)?e.map(t):t(e);null==(l=n.onStarted)||l.call(n),await ll(r,r.value,i,{...n,abort:()=>{var e;return u!==a||(null==(e=n.abort)?void 0:e.call(n))}}),null==(o=n.onFinished)||o.call(n)}),{deep:!0}),K((()=>t(n.disabled)),(e=>{e&&(a++,r.value=l())})),o((()=>{a++})),X((()=>t(n.disabled)?l():r.value))}function rl(e="history",t={}){const{initialValue:n={},removeNullishValues:a=!0,removeFalsyValues:l=!1,write:o=!0,window:r=Oe}=t;if(!r)return oe(n);const u=oe({});function i(){return new URLSearchParams(function(){if("history"===e)return r.location.search||"";if("hash"===e){const e=r.location.hash||"",t=e.indexOf("?");return t>0?e.slice(t):""}return(r.location.hash||"").replace(/^#/,"")}())}function s(e){const t=new Set(Object.keys(u));for(const n of e.keys()){const a=e.getAll(n);u[n]=a.length>1?a:e.get(n)||"",t.delete(n)}Array.from(t).forEach((e=>delete u[e]))}const{pause:c,resume:v}=f(u,(()=>{const e=new URLSearchParams("");Object.keys(u).forEach((t=>{const n=u[t];Array.isArray(n)?n.forEach((n=>e.append(t,n))):a&&null==n||l&&!n?e.delete(t):e.set(t,n)})),d(e)}),{deep:!0});function d(t,n){c(),n&&s(t),r.history.replaceState(r.history.state,r.document.title,r.location.pathname+function(t){const n=t.toString();if("history"===e)return`${n?`?${n}`:""}${r.location.hash||""}`;if("hash-params"===e)return`${r.location.search||""}${n?`#${n}`:""}`;const a=r.location.hash||"#",l=a.indexOf("?");return l>0?`${a.slice(0,l)}${n?`?${n}`:""}`:`${a}${n?`?${n}`:""}`}(t)),v()}function p(){o&&d(i(),!0)}Ie(r,"popstate",p,!1),"history"!==e&&Ie(r,"hashchange",p,!1);const m=i();return m.keys().next().value?s(m):Object.assign(u,n),u}function ul(e={}){var t,n;const a=Y(null!=(t=e.enabled)&&t),l=Y(null==(n=e.autoSwitch)||n),o=Y(e.constraints),{navigator:r=Fe}=e,u=Ue((()=>{var e;return null==(e=null==r?void 0:r.mediaDevices)?void 0:e.getUserMedia})),i=H();function s(e){switch(e){case"video":if(o.value)return o.value.video||!1;break;case"audio":if(o.value)return o.value.audio||!1}}async function c(){if(u.value&&!i.value)return i.value=await r.mediaDevices.getUserMedia({video:s("video"),audio:s("audio")}),i.value}function v(){var e;null==(e=i.value)||e.getTracks().forEach((e=>e.stop())),i.value=void 0}async function d(){return await c(),i.value&&(a.value=!0),i.value}async function f(){return v(),await d()}return K(a,(e=>{e?c():v()}),{immediate:!0}),K(o,(()=>{l.value&&i.value&&f()}),{immediate:!0}),{isSupported:u,stream:i,start:d,stop:function(){v(),a.value=!1},restart:f,constraints:o,enabled:a,autoSwitch:l}}function il(e,t,n,a={}){var l,o,r,u,i;const{clone:s=!1,passive:c=!1,eventName:v,deep:d=!1,defaultValue:f,shouldEmit:p}=a,m=Q(),h=n||(null==m?void 0:m.emit)||(null==(l=null==m?void 0:m.$emit)?void 0:l.bind(m))||(null==(r=null==(o=null==m?void 0:m.proxy)?void 0:o.$emit)?void 0:r.bind(null==m?void 0:m.proxy));let g=v;if(!t)if(ce){const e=null==(i=null==(u=null==m?void 0:m.proxy)?void 0:u.$options)?void 0:i.model;t=(null==e?void 0:e.value)||"value",v||(g=(null==e?void 0:e.event)||"input")}else t="modelValue";g=g||`update:${t.toString()}`;const y=e=>s?"function"==typeof s?s(e):ht(e):e,w=()=>z(e[t])?y(e[t]):f,b=e=>{p?p(e)&&h(g,e):h(g,e)};if(c){const n=w(),a=Y(n);let l=!1;return K((()=>e[t]),(e=>{l||(l=!0,a.value=y(e),le((()=>l=!1)))})),K(a,(n=>{l||n===e[t]&&!d||b(n)}),{deep:d}),a}return X({get:()=>w(),set(e){b(e)}})}function sl(e,t,n={}){const a={};for(const l in e)a[l]=il(e,l,t,n);return a}function cl(e){const{pattern:t=[],interval:n=0,navigator:a=Fe}=e||{},l=Ue((()=>void 0!==a&&"vibrate"in a)),o=p(t);let r;const u=(e=o.value)=>{l.value&&a.vibrate(e)};return n>0&&(r=x(u,n,{immediate:!1,immediateCallback:!1})),{isSupported:l,pattern:t,intervalControls:r,vibrate:u,stop:()=>{l.value&&a.vibrate(0),null==r||r.pause()}}}function vl(e,t){const{containerStyle:n,wrapperProps:a,scrollTo:l,calculateRange:o,currentList:r,containerRef:u}="itemHeight"in t?function(e,t){const n=dl(t),{state:a,source:l,currentList:o,size:r,containerRef:u}=n,i={overflowY:"auto"},{itemHeight:s,overscan:c=5}=e,v=fl(a,l,s),d=pl(l,s),f=ml("vertical",c,d,v,n),p=hl(s,l),m=X((()=>p(a.value.start))),h=yl(s,l);gl(r,t,f);const g=bl("vertical",f,p,u),y=X((()=>({style:{width:"100%",height:h.value-m.value+"px",marginTop:`${m.value}px`}})));return{calculateRange:f,scrollTo:g,containerStyle:i,wrapperProps:y,currentList:o,containerRef:u}}(t,e):function(e,t){const n=dl(t),{state:a,source:l,currentList:o,size:r,containerRef:u}=n,i={overflowX:"auto"},{itemWidth:s,overscan:c=5}=e,v=fl(a,l,s),d=pl(l,s),f=ml("horizontal",c,d,v,n),p=hl(s,l),m=X((()=>p(a.value.start))),h=yl(s,l);gl(r,t,f);const g=bl("horizontal",f,p,u),y=X((()=>({style:{height:"100%",width:h.value-m.value+"px",marginLeft:`${m.value}px`,display:"flex"}})));return{scrollTo:g,calculateRange:f,wrapperProps:y,containerStyle:i,currentList:o,containerRef:u}}(t,e);return{list:r,scrollTo:l,containerProps:{ref:u,onScroll:()=>{o()},style:n},wrapperProps:a}}function dl(e){const t=Y(null),n=tn(t),a=Y([]),l=H(e);return{state:Y({start:0,end:10}),source:l,currentList:a,size:n,containerRef:t}}function fl(e,t,n){return a=>{if("number"==typeof n)return Math.ceil(a/n);const{start:l=0}=e.value;let o=0,r=0;for(let e=l;e<t.value.length;e++){if(o+=n(e),r=e,o>a)break}return r-l}}function pl(e,t){return n=>{if("number"==typeof t)return Math.floor(n/t)+1;let a=0,l=0;for(let o=0;o<e.value.length;o++){if(a+=t(o),a>=n){l=o;break}}return l+1}}function ml(e,t,n,a,{containerRef:l,state:o,currentList:r,source:u}){return()=>{const i=l.value;if(i){const l=n("vertical"===e?i.scrollTop:i.scrollLeft),s=a("vertical"===e?i.clientHeight:i.clientWidth),c=l-t,v=l+s+t;o.value={start:c<0?0:c,end:v>u.value.length?u.value.length:v},r.value=u.value.slice(o.value.start,o.value.end).map(((e,t)=>({data:e,index:t+o.value.start})))}}}function hl(e,t){return n=>{if("number"==typeof e){return n*e}return t.value.slice(0,n).reduce(((t,n,a)=>t+e(a)),0)}}function gl(e,t,n){K([e.width,e.height,t],(()=>{n()}))}function yl(e,t){return X((()=>"number"==typeof e?t.value.length*e:t.value.reduce(((t,n,a)=>t+e(a)),0)))}const wl={horizontal:"scrollLeft",vertical:"scrollTop"};function bl(e,t,n,a){return l=>{a.value&&(a.value[wl[e]]=n(l),t())}}function Sl(e={}){const{navigator:t=Fe,document:n=Ae}=e;let a;const l=Ue((()=>t&&"wakeLock"in t)),o=Y(!1);return n&&Ie(n,"visibilitychange",(async function(){l.value&&a&&(n&&"visible"===n.visibilityState&&(a=await t.wakeLock.request("screen")),o.value=!a.released)}),{passive:!0}),{isSupported:l,isActive:o,request:async function(e){l.value&&(a=await t.wakeLock.request(e),o.value=!a.released)},release:async function(){l.value&&a&&(await a.release(),o.value=!a.released,a=null)}}}function xl(e={}){const{window:t=Oe,requestPermissions:n=!0}=e,a=e,l=Ue((()=>!!t&&"Notification"in t)),r=Y(l.value&&"permission"in Notification&&"granted"===Notification.permission),i=Y(null),s=async()=>{if(l.value){if(!r.value&&"denied"!==Notification.permission){"granted"===await Notification.requestPermission()&&(r.value=!0)}return r.value}},{on:c,trigger:v}=m(),{on:d,trigger:f}=m(),{on:p,trigger:h}=m(),{on:g,trigger:y}=m(),w=()=>{i.value&&i.value.close(),i.value=null};if(n&&u(s),o(w),l.value&&t){const e=t.document;Ie(e,"visibilitychange",(t=>{t.preventDefault(),"visible"===e.visibilityState&&w()}))}return{isSupported:l,notification:i,ensurePermissions:s,permissionGranted:r,show:async e=>{if(!l.value||!r.value)return;const t=Object.assign({},a,e);return i.value=new Notification(t.title||"",t),i.value.onclick=v,i.value.onshow=f,i.value.onerror=h,i.value.onclose=y,i.value},close:w,onClick:c,onShow:d,onError:p,onClose:g}}const El="ping";function kl(e){return!0===e?{}:e}function Tl(e,t={}){const{onConnected:a,onDisconnected:l,onError:r,onMessage:u,immediate:i=!0,autoClose:s=!0,protocols:c=[]}=t,v=Y(null),d=Y("CLOSED"),f=Y(),m=p(e);let h,g,y,w=!1,b=0,S=[];const E=()=>{if(S.length&&f.value&&"OPEN"===d.value){for(const e of S)f.value.send(e);S=[]}},k=()=>{clearTimeout(y),y=void 0},T=(e=1e3,t)=>{n&&f.value&&(w=!0,k(),null==h||h(),f.value.close(e,t))},O=(e,t=!0)=>f.value&&"OPEN"===d.value?(E(),f.value.send(e),!0):(t&&S.push(e),!1),A=()=>{if(w||void 0===m.value)return;const e=new WebSocket(m.value,c);f.value=e,d.value="CONNECTING",e.onopen=()=>{d.value="OPEN",null==a||a(e),null==g||g(),E()},e.onclose=n=>{if(d.value="CLOSED",f.value=void 0,null==l||l(e,n),!w&&t.autoReconnect){const{retries:e=-1,delay:n=1e3,onFailed:a}=kl(t.autoReconnect);b+=1,"number"==typeof e&&(e<0||b<e)||"function"==typeof e&&e()?setTimeout(A,n):null==a||a()}},e.onerror=t=>{null==r||r(e,t)},e.onmessage=n=>{if(t.heartbeat){k();const{message:e=El}=kl(t.heartbeat);if(n.data===e)return}v.value=n.data,null==u||u(e,n)}};if(t.heartbeat){const{message:e=El,interval:n=1e3,pongTimeout:a=1e3}=kl(t.heartbeat),{pause:l,resume:o}=x((()=>{O(e,!1),null==y&&(y=setTimeout((()=>{T(),w=!1}),a))}),n,{immediate:!1});h=l,g=o}s&&(n&&Ie("beforeunload",(()=>T())),o(T));const F=()=>{(n||U)&&(T(),w=!1,b=0,A())};return i&&K(m,F,{immediate:!0}),{data:v,status:d,close:T,send:O,open:F,ws:f}}function Ol(e,t,n){const{window:a=Oe}=null!=n?n:{},l=Y(null),r=H();return a&&(r.value="string"==typeof e?new Worker(e,t):"function"==typeof e?e():e,r.value.onmessage=e=>{l.value=e.data},o((()=>{r.value&&r.value.terminate()}))),{data:l,post:(...e)=>{r.value&&r.value.postMessage(...e)},terminate:function(){r.value&&r.value.terminate()},worker:r}}function Al(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then((e=>{postMessage(["SUCCESS",e])})).catch((e=>{postMessage(["ERROR",e])}))}}function Fl(e,t){const n=`${function(e){return 0===e.length?"":`importScripts(${e.map((e=>`'${e}'`)).toString()})`}(t)}; onmessage=(${Al})(${e})`,a=new Blob([n],{type:"text/javascript"});return URL.createObjectURL(a)}function Pl(e,t={}){const{dependencies:n=[],timeout:a,window:l=Oe}=t,r=Y(),u=Y("PENDING"),i=Y({}),s=Y(),c=(e="PENDING")=>{r.value&&r.value._url&&l&&(r.value.terminate(),URL.revokeObjectURL(r.value._url),i.value={},r.value=void 0,l.clearTimeout(s.value),u.value=e)};c(),o(c);return{workerFn:(...t)=>"RUNNING"===u.value?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(r.value=(()=>{const t=Fl(e,n),l=new Worker(t);return l._url=t,l.onmessage=e=>{const{resolve:t=(()=>{}),reject:n=(()=>{})}=i.value,[a,l]=e.data;"SUCCESS"===a?(t(l),c(a)):(n(l),c("ERROR"))},l.onerror=e=>{const{reject:t=(()=>{})}=i.value;e.preventDefault(),t(e),c("ERROR")},a&&(s.value=setTimeout((()=>c("TIMEOUT_EXPIRED")),a)),l})(),((...e)=>new Promise(((t,n)=>{i.value={resolve:t,reject:n},r.value&&r.value.postMessage([[...e]]),u.value="RUNNING"})))(...t)),workerStatus:u,workerTerminate:c}}function Il(e={}){const{window:t=Oe}=e;if(!t)return Y(!1);const n=Y(t.document.hasFocus());return Ie(t,"blur",(()=>{n.value=!1})),Ie(t,"focus",(()=>{n.value=!0})),n}function Cl(e={}){const{window:t=Oe,behavior:n="auto"}=e;if(!t)return{x:Y(0),y:Y(0)};const a=Y(t.scrollX),l=Y(t.scrollY),o=X({get:()=>a.value,set(e){scrollTo({left:e,behavior:n})}}),r=X({get:()=>l.value,set(e){scrollTo({top:e,behavior:n})}});return Ie(t,"scroll",(()=>{a.value=t.scrollX,l.value=t.scrollY}),{capture:!1,passive:!0}),{x:o,y:r}}function Rl(e={}){const{window:t=Oe,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:l=!0,includeScrollbar:o=!0}=e,r=Y(n),i=Y(a),s=()=>{t&&(o?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(s(),u(s),Ie("resize",s,{passive:!0}),l){const e=Ze("(orientation: portrait)");K(e,(()=>s()))}return{width:r,height:i}}export{$n as DefaultMagicKeysAliasMap,Tt as StorageSerializers,el as TransitionPresets,we as asyncComputed,at as breakpointsAntDesign,tt as breakpointsBootstrapV5,rt as breakpointsMasterCss,ut as breakpointsPrimeFlex,lt as breakpointsQuasar,ot as breakpointsSematic,et as breakpointsTailwind,nt as breakpointsVuetify,ht as cloneFnJSON,we as computedAsync,be as computedInject,pn as createFetch,Se as createReusableTemplate,Ee as createTemplatePromise,ke as createUnrefFn,Ot as customStorageEventName,Ae as defaultDocument,Pe as defaultLocation,Fe as defaultNavigator,Oe as defaultWindow,ll as executeTransition,Ga as formatTimeAgo,xt as getSSRHandler,kn as mapGamepadToXbox360Controller,Re as onClickOutside,De as onKeyDown,Ne as onKeyPressed,Le as onKeyStroke,Me as onKeyUp,$e as onLongPress,je as onStartTyping,Et as setSSRHandler,qe as templateRef,Te as unrefElement,Be as useActiveElement,Ye as useAnimate,He as useAsyncQueue,Xe as useAsyncState,Ge as useBase64,Ke as useBattery,Qe as useBluetooth,it as useBreakpoints,st as useBroadcastChannel,vt as useBrowserLocation,dt as useCached,pt as useClipboard,mt as useClipboardItems,gt as useCloned,Pt as useColorMode,It as useConfirmDialog,Rt as useCssVar,Lt as useCurrentElement,Dt as useCycleList,Nt as useDark,Ut as useDebouncedRefHistory,Vt as useDeviceMotion,Yt as useDeviceOrientation,Ht as useDevicePixelRatio,Wt as useDevicesList,Xt as useDisplayMedia,_t as useDocumentVisibility,Gt as useDraggable,Jt as useDropZone,Qt as useElementBounding,Zt as useElementByPoint,en as useElementHover,tn as useElementSize,an as useElementVisibility,on as useEventBus,Ie as useEventListener,rn as useEventSource,un as useEyeDropper,sn as useFavicon,mn as useFetch,gn as useFileDialog,yn as useFileSystemAccess,wn as useFocus,bn as useFocusWithin,Sn as useFps,En as useFullscreen,Tn as useGamepad,On as useGeolocation,Fn as useIdle,Pn as useImage,Ln as useInfiniteScroll,nn as useIntersectionObserver,Nn as useKeyModifier,Mn as useLocalStorage,jn as useMagicKeys,Bt as useManualRefHistory,Un as useMediaControls,Ze as useMediaQuery,Vn as useMemoize,Yn as useMemory,ze as useMounted,Wn as useMouse,Xn as useMouseInElement,_n as useMousePressed,Ct as useMutationObserver,Gn as useNavigatorLanguage,Jn as useNetwork,Kn as useNow,Qn as useObjectUrl,ea as useOffsetPagination,ta as useOnline,na as usePageLeave,aa as useParallax,la as useParentElement,oa as usePerformanceObserver,ft as usePermission,ia as usePointer,sa as usePointerLock,ca as usePointerSwipe,va as usePreferredColorScheme,da as usePreferredContrast,Ft as usePreferredDark,fa as usePreferredLanguages,pa as usePreferredReducedMotion,ma as usePrevious,Ve as useRafFn,zt as useRefHistory,Kt as useResizeObserver,ha as useScreenOrientation,Sa as useScreenSafeArea,Ea as useScriptTag,Cn as useScroll,Aa as useScrollLock,Fa as useSessionStorage,Pa as useShare,Ra as useSorted,La as useSpeechRecognition,Da as useSpeechSynthesis,Na as useStepper,At as useStorage,Ma as useStorageAsync,ja as useStyleTag,Ue as useSupported,qa as useSwipe,Ba as useTemplateRefsList,za as useTextDirection,Ua as useTextSelection,Va as useTextareaAutosize,Ya as useThrottledRefHistory,_a as useTimeAgo,Ja as useTimeoutPoll,Ka as useTimestamp,Qa as useTitle,ol as useTransition,rl as useUrlSearchParams,ul as useUserMedia,il as useVModel,sl as useVModels,cl as useVibrate,vl as useVirtualList,Sl as useWakeLock,xl as useWebNotification,Tl as useWebSocket,Ol as useWebWorker,Pl as useWebWorkerFn,Il as useWindowFocus,Cl as useWindowScroll,Rl as useWindowSize};export default null;
|
|
//# sourceMappingURL=/sm/e91704c0f3a8ba415f48fdc8b09b8794488c45a62bd8f2784bef9c0ecc1e9f5a.map
|