UNPKG

@vueuse/components

Version:
2 lines (1 loc) 37 kB
(function(y,E,o,U){"use strict";const Ue=o.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const a=o.shallowRef();return E.onClickOutside(a,s=>{n("trigger",s)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:a},t.default())}}}),I=U.isClient?window:void 0;function L(e){var t;const n=o.toValue(e);return(t=n?.$el)!=null?t:n}function D(...e){const t=[],n=()=>{t.forEach(r=>r()),t.length=0},a=(r,c,f,i)=>(r.addEventListener(c,f,i),()=>r.removeEventListener(c,f,i)),s=o.computed(()=>{const r=U.toArray(o.toValue(e[0])).filter(c=>c!=null);return r.every(c=>typeof c!="string")?r:void 0}),l=U.watchImmediate(()=>{var r,c;return[(c=(r=s.value)==null?void 0:r.map(f=>L(f)))!=null?c:[I].filter(f=>f!=null),U.toArray(o.toValue(s.value?e[1]:e[0])),U.toArray(o.unref(s.value?e[2]:e[1])),o.toValue(s.value?e[3]:e[2])]},([r,c,f,i])=>{if(n(),!r?.length||!c?.length||!f?.length)return;const d=U.isObject(i)?{...i}:i;t.push(...r.flatMap(p=>c.flatMap(g=>f.map(v=>a(p,g,v,d)))))},{flush:"post"}),u=()=>{l(),n()};return U.tryOnScopeDispose(n),u}let te=!1;function ne(e,t,n={}){const{window:a=I,ignore:s=[],capture:l=!0,detectIframe:u=!1,controls:r=!1}=n;if(!a)return r?{stop:U.noop,cancel:U.noop,trigger:U.noop}:U.noop;if(U.isIOS&&!te){te=!0;const h={passive:!0};Array.from(a.document.body.children).forEach(m=>m.addEventListener("click",U.noop,h)),a.document.documentElement.addEventListener("click",U.noop,h)}let c=!0;const f=h=>o.toValue(s).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(w=>w===h.target||h.composedPath().includes(w));{const w=L(m);return w&&(h.target===w||h.composedPath().includes(w))}});function i(h){const m=o.toValue(h);return m&&m.$.subTree.shapeFlag===16}function d(h,m){const w=o.toValue(h),O=w.$.subTree&&w.$.subTree.children;return O==null||!Array.isArray(O)?!1:O.some(b=>b.el===m.target||m.composedPath().includes(b.el))}const p=h=>{const m=L(e);if(h.target!=null&&!(!(m instanceof Element)&&i(e)&&d(e,h))&&!(!m||m===h.target||h.composedPath().includes(m))){if("detail"in h&&h.detail===0&&(c=!f(h)),!c){c=!0;return}t(h)}};let g=!1;const v=[D(a,"click",h=>{g||(g=!0,setTimeout(()=>{g=!1},0),p(h))},{passive:!0,capture:l}),D(a,"pointerdown",h=>{const m=L(e);c=!f(h)&&!!(m&&!h.composedPath().includes(m))},{passive:!0}),u&&D(a,"blur",h=>{setTimeout(()=>{var m;const w=L(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&t(h)},0)},{passive:!0})].filter(Boolean),C=()=>v.forEach(h=>h());return r?{stop:C,cancel:()=>{c=!1},trigger:h=>{c=!0,p(h),c=!1}}:C}const J=new WeakMap,oe={mounted(e,t){const n=!t.modifiers.bubble;let a;if(typeof t.value=="function")a=ne(e,t.value,{capture:n});else{const[s,l]=t.value;a=ne(e,s,Object.assign({capture:n},l))}J.set(e,a)},unmounted(e){const t=J.get(e);t&&typeof t=="function"?t():t?.stop(),J.delete(e)}};function be(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ae(...e){let t,n,a={};e.length===3?(t=e[0],n=e[1],a=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],a=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=I,eventName:l="keydown",passive:u=!1,dedupe:r=!1}=a,c=be(t);return D(s,l,i=>{i.repeat&&o.toValue(r)||c(i)&&n(i)},u)}const Se={mounted(e,t){var n,a;const s=(a=(n=t.arg)==null?void 0:n.split(","))!=null?a:!0;if(typeof t.value=="function")ae(s,t.value,{target:e});else{const[l,u]=t.value;ae(s,l,{target:e,...u})}}},Ce=500,Ee=10;function $(e,t,n){var a,s;const l=o.computed(()=>L(e));let u,r,c,f=!1;function i(){u&&(clearTimeout(u),u=void 0),r=void 0,c=void 0,f=!1}function d(m){var w,O,b;const[V,k,R]=[c,r,f];if(i(),!n?.onMouseUp||!k||!V||(w=n?.modifiers)!=null&&w.self&&m.target!==l.value)return;(O=n?.modifiers)!=null&&O.prevent&&m.preventDefault(),(b=n?.modifiers)!=null&&b.stop&&m.stopPropagation();const _=m.x-k.x,S=m.y-k.y,A=Math.sqrt(_*_+S*S);n.onMouseUp(m.timeStamp-V,A,R)}function p(m){var w,O,b,V;(w=n?.modifiers)!=null&&w.self&&m.target!==l.value||(i(),(O=n?.modifiers)!=null&&O.prevent&&m.preventDefault(),(b=n?.modifiers)!=null&&b.stop&&m.stopPropagation(),r={x:m.x,y:m.y},c=m.timeStamp,u=setTimeout(()=>{f=!0,t(m)},(V=n?.delay)!=null?V:Ce))}function g(m){var w,O,b,V;if((w=n?.modifiers)!=null&&w.self&&m.target!==l.value||!r||n?.distanceThreshold===!1)return;(O=n?.modifiers)!=null&&O.prevent&&m.preventDefault(),(b=n?.modifiers)!=null&&b.stop&&m.stopPropagation();const k=m.x-r.x,R=m.y-r.y;Math.sqrt(k*k+R*R)>=((V=n?.distanceThreshold)!=null?V:Ee)&&i()}const v={capture:(a=n?.modifiers)==null?void 0:a.capture,once:(s=n?.modifiers)==null?void 0:s.once},C=[D(l,"pointerdown",p,v),D(l,"pointermove",g,v),D(l,["pointerup","pointerleave"],d,v)];return()=>C.forEach(m=>m())}const Re=o.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const a=o.shallowRef();return $(a,s=>{n("trigger",s)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:a},t.default())}}}),se={mounted(e,t){typeof t.value=="function"?$(e,t.value,{modifiers:t.modifiers}):$(e,...t.value)}},Oe=o.defineComponent({name:"UseActiveElement",setup(e,{slots:t}){const n=o.reactive({element:E.useActiveElement()});return()=>{if(t.default)return t.default(n)}}}),Pe=o.defineComponent({name:"UseBattery",setup(e,{slots:t}){const n=o.reactive(E.useBattery(e));return()=>{if(t.default)return t.default(n)}}}),Ve=o.defineComponent({name:"UseBrowserLocation",setup(e,{slots:t}){const n=o.reactive(E.useBrowserLocation());return()=>{if(t.default)return t.default(n)}}}),Me=o.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(e,{slots:t}){const n=o.reactive(E.useClipboard(e));return()=>{var a;return(a=t.default)==null?void 0:a.call(t,n)}}}),j=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x="__vueuse_ssr_handlers__",De=Le();function Le(){return x in j||(j[x]=j[x]||{}),j[x]}function le(e,t){return De[e]||t}const Te=Symbol("vueuse-ssr-width");function _e(){const e=o.hasInjectionContext()?U.injectLocal(Te,null):null;return typeof e=="number"?e:void 0}function ke(){const e=o.shallowRef(!1),t=o.getCurrentInstance();return t&&o.onMounted(()=>{e.value=!0},t),e}function Y(e){const t=ke();return o.computed(()=>(t.value,!!e()))}function Ae(e,t={}){const{window:n=I,ssrWidth:a=_e()}=t,s=Y(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=o.shallowRef(typeof a=="number"),u=o.shallowRef(),r=o.shallowRef(!1),c=f=>{r.value=f.matches};return o.watchEffect(()=>{if(l.value){l.value=!s.value;const f=o.toValue(e).split(",");r.value=f.some(i=>{const d=i.includes("not all"),p=i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),g=i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(p||g);return p&&v&&(v=a>=U.pxValue(p[1])),g&&v&&(v=a<=U.pxValue(g[1])),d?!v:v});return}s.value&&(u.value=n.matchMedia(o.toValue(e)),r.value=u.value.matches)}),D(u,"change",c,{passive:!0}),o.computed(()=>r.value)}function ze(e){return Ae("(prefers-color-scheme: dark)",e)}function Ie(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const We={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},re="vueuse-storage";function Be(e,t,n,a={}){var s;const{flush:l="pre",deep:u=!0,listenToStorageChanges:r=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:i,window:d=I,eventFilter:p,onError:g=P=>{console.error(P)},initOnMounted:v}=a,C=(i?o.shallowRef:o.ref)(typeof t=="function"?t():t),h=o.computed(()=>o.toValue(e));if(!n)try{n=le("getDefaultStorage",()=>{var P;return(P=I)==null?void 0:P.localStorage})()}catch(P){g(P)}if(!n)return C;const m=o.toValue(t),w=Ie(m),O=(s=a.serializer)!=null?s:We[w],{pause:b,resume:V}=U.pausableWatch(C,()=>A(C.value),{flush:l,deep:u,eventFilter:p});o.watch(h,()=>W(),{flush:l});let k=!1;const R=P=>{v&&!k||W(P)},_=P=>{v&&!k||B(P)};d&&r&&(n instanceof Storage?D(d,"storage",R,{passive:!0}):D(d,re,_)),v?U.tryOnMounted(()=>{k=!0,W()}):W();function S(P,M){if(d){const z={key:h.value,oldValue:P,newValue:M,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",z):new CustomEvent(re,{detail:z}))}}function A(P){try{const M=n.getItem(h.value);if(P==null)S(M,null),n.removeItem(h.value);else{const z=O.write(P);M!==z&&(n.setItem(h.value,z),S(M,z))}}catch(M){g(M)}}function T(P){const M=P?P.newValue:n.getItem(h.value);if(M==null)return c&&m!=null&&n.setItem(h.value,O.write(m)),m;if(!P&&f){const z=O.read(M);return typeof f=="function"?f(z,m):w==="object"&&!Array.isArray(z)?{...m,...z}:z}else return typeof M!="string"?M:O.read(M)}function W(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){C.value=m;return}if(!(P&&P.key!==h.value)){b();try{P?.newValue!==O.write(C.value)&&(C.value=T(P))}catch(M){g(M)}finally{P?o.nextTick(V):V()}}}}function B(P){W(P.detail)}return C}const He="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Ne(e={}){const{selector:t="html",attribute:n="class",initialValue:a="auto",window:s=I,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:r=!0,storageRef:c,emitAuto:f,disableTransition:i=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},p=ze({window:s}),g=o.computed(()=>p.value?"dark":"light"),v=c||(u==null?U.toRef(a):Be(u,a,l,{window:s,listenToStorageChanges:r})),C=o.computed(()=>v.value==="auto"?g.value:v.value),h=le("updateHTMLAttrs",(b,V,k)=>{const R=typeof b=="string"?s?.document.querySelector(b):L(b);if(!R)return;const _=new Set,S=new Set;let A=null;if(V==="class"){const W=k.split(/\s/g);Object.values(d).flatMap(B=>(B||"").split(/\s/g)).filter(Boolean).forEach(B=>{W.includes(B)?_.add(B):S.add(B)})}else A={key:V,value:k};if(_.size===0&&S.size===0&&A===null)return;let T;i&&(T=s.document.createElement("style"),T.appendChild(document.createTextNode(He)),s.document.head.appendChild(T));for(const W of _)R.classList.add(W);for(const W of S)R.classList.remove(W);A&&R.setAttribute(A.key,A.value),i&&(s.getComputedStyle(T).opacity,document.head.removeChild(T))});function m(b){var V;h(t,n,(V=d[b])!=null?V:b)}function w(b){e.onChanged?e.onChanged(b,m):m(b)}o.watch(C,w,{flush:"post",immediate:!0}),U.tryOnMounted(()=>w(C.value));const O=o.computed({get(){return f?v.value:C.value},set(b){v.value=b}});return Object.assign(O,{store:v,system:g,state:C})}const Fe=o.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=Ne(e),a=o.reactive({mode:n,system:n.system,store:n.store});return()=>{if(t.default)return t.default(a)}}}),je=o.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=E.useDark(e),a=o.reactive({isDark:n,toggleDark:U.useToggle(n)});return()=>{if(t.default)return t.default(a)}}}),xe=o.defineComponent({name:"UseDeviceMotion",setup(e,{slots:t}){const n=E.useDeviceMotion();return()=>{if(t.default)return t.default(n)}}}),Ye=o.defineComponent({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=o.reactive(E.useDeviceOrientation());return()=>{if(t.default)return t.default(n)}}}),Xe=o.defineComponent({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=o.reactive({pixelRatio:E.useDevicePixelRatio()});return()=>{if(t.default)return t.default(n)}}}),Ke=o.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=o.reactive(E.useDevicesList(e));return()=>{if(t.default)return t.default(n)}}}),Ge=o.defineComponent({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=o.reactive({visibility:E.useDocumentVisibility()});return()=>{if(t.default)return t.default(n)}}}),Je=o.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement","capture"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.computed(()=>{var i;return(i=o.toValue(e.handle))!=null?i:n.value}),s=o.computed(()=>{var i;return(i=e.containerElement)!=null?i:void 0}),l=o.computed(()=>!!e.disabled),u=e.storageKey&&E.useStorage(e.storageKey,o.toValue(e.initialValue)||{x:0,y:0},E.isClient?e.storageType==="session"?sessionStorage:localStorage:void 0),r=u||e.initialValue||{x:0,y:0},c=(i,d)=>{var p;(p=e.onEnd)==null||p.call(e,i,d),u&&(u.value.x=i.x,u.value.y=i.y)},f=o.reactive(E.useDraggable(n,{...e,handle:a,initialValue:r,onEnd:c,disabled:l,containerElement:s}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n,style:`touch-action:none;${f.style}`},t.default(f))}}}),$e=o.defineComponent({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive(E.useElementBounding(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}});function N(e,t,n={}){const{window:a=I,...s}=n;let l;const u=Y(()=>a&&"MutationObserver"in a),r=()=>{l&&(l.disconnect(),l=void 0)},c=o.computed(()=>{const p=o.toValue(e),g=U.toArray(p).map(L).filter(U.notNullish);return new Set(g)}),f=o.watch(()=>c.value,p=>{r(),u.value&&p.size&&(l=new MutationObserver(t),p.forEach(g=>l.observe(g,s)))},{immediate:!0,flush:"post"}),i=()=>l?.takeRecords(),d=()=>{f(),r()};return U.tryOnScopeDispose(d),{isSupported:u,stop:d,takeRecords:i}}function F(e,t,n={}){const{window:a=I,...s}=n;let l;const u=Y(()=>a&&"ResizeObserver"in a),r=()=>{l&&(l.disconnect(),l=void 0)},c=o.computed(()=>{const d=o.toValue(e);return Array.isArray(d)?d.map(p=>L(p)):[L(d)]}),f=o.watch(c,d=>{if(r(),u.value&&a){l=new ResizeObserver(t);for(const p of d)p&&l.observe(p,s)}},{immediate:!0,flush:"post"}),i=()=>{r(),f()};return U.tryOnScopeDispose(i),{isSupported:u,stop:i}}function qe(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:s=!0,immediate:l=!0,updateTiming:u="sync"}=t,r=o.shallowRef(0),c=o.shallowRef(0),f=o.shallowRef(0),i=o.shallowRef(0),d=o.shallowRef(0),p=o.shallowRef(0),g=o.shallowRef(0),v=o.shallowRef(0);function C(){const m=L(e);if(!m){n&&(r.value=0,c.value=0,f.value=0,i.value=0,d.value=0,p.value=0,g.value=0,v.value=0);return}const w=m.getBoundingClientRect();r.value=w.height,c.value=w.bottom,f.value=w.left,i.value=w.right,d.value=w.top,p.value=w.width,g.value=w.x,v.value=w.y}function h(){u==="sync"?C():u==="next-frame"&&requestAnimationFrame(()=>C())}return F(e,h),o.watch(()=>L(e),m=>!m&&h()),N(e,h,{attributeFilter:["style","class"]}),s&&D("scroll",h,{capture:!0,passive:!0}),a&&D("resize",h,{passive:!0}),U.tryOnMounted(()=>{l&&h()}),{height:r,bottom:c,left:f,right:i,top:d,width:p,x:g,y:v,update:h}}const Qe={mounted(e,t){const[n,a]=typeof t.value=="function"?[t.value,{}]:t.value,{height:s,bottom:l,left:u,right:r,top:c,width:f,x:i,y:d}=qe(e,a);o.watch([s,l,u,r,c,f,i,d],()=>n({height:s,bottom:l,left:u,right:r,top:c,width:f,x:i,y:d}))}};function Ze(e,t,n={}){const{window:a=I,document:s=a?.document,flush:l="sync"}=n;if(!a||!s)return U.noop;let u;const r=i=>{u?.(),u=i},c=o.watchEffect(()=>{const i=L(e);if(i){const{stop:d}=N(s,p=>{p.map(v=>[...v.removedNodes]).flat().some(v=>v===i||v.contains(i))&&t(p)},{window:a,childList:!0,subtree:!0});r(d)}},{flush:l}),f=()=>{c(),r()};return U.tryOnScopeDispose(f),f}function ie(e,t={}){const{delayEnter:n=0,delayLeave:a=0,triggerOnRemoval:s=!1,window:l=I}=t,u=o.shallowRef(!1);let r;const c=f=>{const i=f?n:a;r&&(clearTimeout(r),r=void 0),i?r=setTimeout(()=>u.value=f,i):u.value=f};return l&&(D(e,"mouseenter",()=>c(!0),{passive:!0}),D(e,"mouseleave",()=>c(!1),{passive:!0}),s&&Ze(o.computed(()=>L(e)),()=>c(!1))),u}const et={mounted(e,t){const n=t.value;if(typeof n=="function"){const a=ie(e);o.watch(a,s=>n(s))}else{const[a,s]=n,l=ie(e,s);o.watch(l,u=>a(u))}}},tt=o.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(e,{slots:t}){var n,a;const s=o.shallowRef(),l=o.reactive(E.useElementSize(s,{width:(n=e.width)!=null?n:0,height:(a=e.height)!=null?a:0},{box:e.box}));return()=>{if(t.default)return o.h(e.as||"div",{ref:s},t.default(l))}}});function nt(e,t={width:0,height:0},n={}){const{window:a=I,box:s="content-box"}=n,l=o.computed(()=>{var d,p;return(p=(d=L(e))==null?void 0:d.namespaceURI)==null?void 0:p.includes("svg")}),u=o.shallowRef(t.width),r=o.shallowRef(t.height),{stop:c}=F(e,([d])=>{const p=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(a&&l.value){const g=L(e);if(g){const v=g.getBoundingClientRect();u.value=v.width,r.value=v.height}}else if(p){const g=U.toArray(p);u.value=g.reduce((v,{inlineSize:C})=>v+C,0),r.value=g.reduce((v,{blockSize:C})=>v+C,0)}else u.value=d.contentRect.width,r.value=d.contentRect.height},n);U.tryOnMounted(()=>{const d=L(e);d&&(u.value="offsetWidth"in d?d.offsetWidth:t.width,r.value="offsetHeight"in d?d.offsetHeight:t.height)});const f=o.watch(()=>L(e),d=>{u.value=d?t.width:0,r.value=d?t.height:0});function i(){c(),f()}return{width:u,height:r,stop:i}}const ot={mounted(e,t){var n;const a=typeof t.value=="function"?t.value:(n=t.value)==null?void 0:n[0],s=typeof t.value=="function"?[]:t.value.slice(1),{width:l,height:u}=nt(e,...s);o.watch([l,u],([r,c])=>a({width:r,height:c}))}},at=o.defineComponent({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive({isVisible:E.useElementVisibility(n)});return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}});function q(e,t,n={}){const{root:a,rootMargin:s="0px",threshold:l=0,window:u=I,immediate:r=!0}=n,c=Y(()=>u&&"IntersectionObserver"in u),f=o.computed(()=>{const v=o.toValue(e);return U.toArray(v).map(L).filter(U.notNullish)});let i=U.noop;const d=o.shallowRef(r),p=c.value?o.watch(()=>[f.value,L(a),d.value],([v,C])=>{if(i(),!d.value||!v.length)return;const h=new IntersectionObserver(t,{root:L(C),rootMargin:s,threshold:l});v.forEach(m=>m&&h.observe(m)),i=()=>{h.disconnect(),i=U.noop}},{immediate:r,flush:"post"}):U.noop,g=()=>{i(),p(),d.value=!1};return U.tryOnScopeDispose(g),{isSupported:c,isActive:d,pause(){i(),d.value=!1},resume(){d.value=!0},stop:g}}function Q(e,t={}){const{window:n=I,scrollTarget:a,threshold:s=0,rootMargin:l,once:u=!1}=t,r=o.shallowRef(!1),{stop:c}=q(e,f=>{let i=r.value,d=0;for(const p of f)p.time>=d&&(d=p.time,i=p.isIntersecting);r.value=i,u&&U.watchOnce(r,()=>{c()})},{root:a,window:n,threshold:s,rootMargin:o.toValue(l)});return r}const st={mounted(e,t){if(typeof t.value=="function"){const n=t.value,a=Q(e);o.watch(a,s=>n(s),{immediate:!0})}else{const[n,a]=t.value,s=Q(e,a);o.watch(s,l=>n(l),{immediate:!0})}}},lt=o.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=o.reactive(E.useEyeDropper());return()=>{if(t.default)return t.default(n)}}}),rt=o.defineComponent({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive(E.useFullscreen(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}}),it=o.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=o.reactive(E.useGeolocation(e));return()=>{if(t.default)return t.default(n)}}}),ut=o.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=o.reactive(E.useIdle(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function ct(e,t,n){const{immediate:a=!0,delay:s=0,onError:l=U.noop,onSuccess:u=U.noop,resetOnExecute:r=!0,shallow:c=!0,throwError:f}=n??{},i=c?o.shallowRef(t):o.ref(t),d=o.shallowRef(!1),p=o.shallowRef(!1),g=o.shallowRef(void 0);async function v(m=0,...w){r&&(i.value=t),g.value=void 0,d.value=!1,p.value=!0,m>0&&await U.promiseTimeout(m);const O=typeof e=="function"?e(...w):e;try{const b=await O;i.value=b,d.value=!0,u(b)}catch(b){if(g.value=b,l(b),f)throw b}finally{p.value=!1}return i.value}a&&v(s);const C={state:i,isReady:d,isLoading:p,error:g,execute:v,executeImmediate:(...m)=>v(0,...m)};function h(){return new Promise((m,w)=>{U.until(p).toBe(!1).then(()=>m(C)).catch(w)})}return{...C,then(m,w){return h().then(m,w)}}}async function ft(e){return new Promise((t,n)=>{const a=new Image,{src:s,srcset:l,sizes:u,class:r,loading:c,crossorigin:f,referrerPolicy:i,width:d,height:p,decoding:g,fetchPriority:v,ismap:C,usemap:h}=e;a.src=s,l!=null&&(a.srcset=l),u!=null&&(a.sizes=u),r!=null&&(a.className=r),c!=null&&(a.loading=c),f!=null&&(a.crossOrigin=f),i!=null&&(a.referrerPolicy=i),d!=null&&(a.width=d),p!=null&&(a.height=p),g!=null&&(a.decoding=g),v!=null&&(a.fetchPriority=v),C!=null&&(a.isMap=C),h!=null&&(a.useMap=h),a.onload=()=>t(a),a.onerror=n})}function dt(e,t={}){const n=ct(()=>ft(o.toValue(e)),void 0,{resetOnExecute:!0,...t});return o.watch(()=>o.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}const mt=o.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy","width","height","decoding","fetchPriority","ismap","usemap"],setup(e,{slots:t}){const n=o.reactive(dt(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):o.h(e.as||"img",e)}});function X(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const ue=1;function Z(e,t={}){const{throttle:n=0,idle:a=200,onStop:s=U.noop,onScroll:l=U.noop,offset:u={left:0,right:0,top:0,bottom:0},observe:r={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:f="auto",window:i=I,onError:d=S=>{console.error(S)}}=t,p=typeof r=="boolean"?{mutation:r}:r,g=o.shallowRef(0),v=o.shallowRef(0),C=o.computed({get(){return g.value},set(S){m(S,void 0)}}),h=o.computed({get(){return v.value},set(S){m(void 0,S)}});function m(S,A){var T,W,B,P;if(!i)return;const M=o.toValue(e);if(!M)return;(B=M instanceof Document?i.document.body:M)==null||B.scrollTo({top:(T=o.toValue(A))!=null?T:h.value,left:(W=o.toValue(S))!=null?W:C.value,behavior:o.toValue(f)});const z=((P=M?.document)==null?void 0:P.documentElement)||M?.documentElement||M;C!=null&&(g.value=z.scrollLeft),h!=null&&(v.value=z.scrollTop)}const w=o.shallowRef(!1),O=o.reactive({left:!0,right:!1,top:!0,bottom:!1}),b=o.reactive({left:!1,right:!1,top:!1,bottom:!1}),V=S=>{w.value&&(w.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,s(S))},k=U.useDebounceFn(V,n+a),R=S=>{var A;if(!i)return;const T=((A=S?.document)==null?void 0:A.documentElement)||S?.documentElement||L(S),{display:W,flexDirection:B,direction:P}=getComputedStyle(T),M=P==="rtl"?-1:1,z=T.scrollLeft;b.left=z<g.value,b.right=z>g.value;const ve=Math.abs(z*M)<=(u.left||0),ge=Math.abs(z*M)+T.clientWidth>=T.scrollWidth-(u.right||0)-ue;W==="flex"&&B==="row-reverse"?(O.left=ge,O.right=ve):(O.left=ve,O.right=ge),g.value=z;let H=T.scrollTop;S===i.document&&!H&&(H=i.document.body.scrollTop),b.top=H<v.value,b.bottom=H>v.value;const ye=Math.abs(H)<=(u.top||0),we=Math.abs(H)+T.clientHeight>=T.scrollHeight-(u.bottom||0)-ue;W==="flex"&&B==="column-reverse"?(O.top=we,O.bottom=ye):(O.top=ye,O.bottom=we),v.value=H},_=S=>{var A;if(!i)return;const T=(A=S.target.documentElement)!=null?A:S.target;R(T),w.value=!0,k(S),l(S)};return D(e,"scroll",n?U.useThrottleFn(_,n,!0,!1):_,c),U.tryOnMounted(()=>{try{const S=o.toValue(e);if(!S)return;R(S)}catch(S){d(S)}}),p?.mutation&&e!=null&&e!==i&&e!==document&&N(e,()=>{const S=o.toValue(e);S&&R(S)},{attributes:!0,childList:!0,subtree:!0}),D(e,"scrollend",V,c),{x:C,y:h,isScrolling:w,arrivedState:O,directions:b,measure(){const S=o.toValue(e);i&&S&&R(S)}}}function ce(e,t,n={}){var a;const{direction:s="bottom",interval:l=100,canLoadMore:u=()=>!0}=n,r=o.reactive(Z(e,{...n,offset:{[s]:(a=n.distance)!=null?a:0,...n.offset}})),c=o.ref(),f=o.computed(()=>!!c.value),i=o.computed(()=>X(o.toValue(e))),d=Q(i);function p(){if(r.measure(),!i.value||!d.value||!u(i.value))return;const{scrollHeight:v,clientHeight:C,scrollWidth:h,clientWidth:m}=i.value,w=s==="bottom"||s==="top"?v<=C:h<=m;(r.arrivedState[s]||w)&&(c.value||(c.value=Promise.all([t(r),new Promise(O=>setTimeout(O,l))]).finally(()=>{c.value=null,o.nextTick(()=>p())})))}const g=o.watch(()=>[r.arrivedState[s],d.value],p,{immediate:!0});return U.tryOnUnmounted(g),{isLoading:f,reset(){o.nextTick(()=>p())}}}const pt={mounted(e,t){typeof t.value=="function"?ce(e,t.value):ce(e,...t.value)}},ht={mounted(e,t){typeof t.value=="function"?q(e,t.value):q(e,...t.value)}},vt=o.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=o.reactive(E.useMouse(e));return()=>{if(t.default)return t.default(n)}}}),gt=o.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive(E.useMouseInElement(n,e));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}}),yt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function wt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:a=!1,initialValue:s={x:0,y:0},window:l=I,target:u=l,scroll:r=!0,eventFilter:c}=e;let f=null,i=0,d=0;const p=o.shallowRef(s.x),g=o.shallowRef(s.y),v=o.shallowRef(null),C=typeof t=="function"?t:yt[t],h=R=>{const _=C(R);f=R,_&&([p.value,g.value]=_,v.value="mouse"),l&&(i=l.scrollX,d=l.scrollY)},m=R=>{if(R.touches.length>0){const _=C(R.touches[0]);_&&([p.value,g.value]=_,v.value="touch")}},w=()=>{if(!f||!l)return;const R=C(f);f instanceof MouseEvent&&R&&(p.value=R[0]+l.scrollX-i,g.value=R[1]+l.scrollY-d)},O=()=>{p.value=s.x,g.value=s.y},b=c?R=>c(()=>h(R),{}):R=>h(R),V=c?R=>c(()=>m(R),{}):R=>m(R),k=c?()=>c(()=>w(),{}):()=>w();if(u){const R={passive:!0};D(u,["mousemove","dragover"],b,R),n&&t!=="movement"&&(D(u,["touchstart","touchmove"],V,R),a&&D(u,"touchend",O,R)),r&&t==="page"&&D(l,"scroll",k,R)}return{x:p,y:g,sourceType:v}}function Ut(e,t={}){const{windowResize:n=!0,windowScroll:a=!0,handleOutside:s=!0,window:l=I}=t,u=t.type||"page",{x:r,y:c,sourceType:f}=wt(t),i=o.shallowRef(e??l?.document.body),d=o.shallowRef(0),p=o.shallowRef(0),g=o.shallowRef(0),v=o.shallowRef(0),C=o.shallowRef(0),h=o.shallowRef(0),m=o.shallowRef(!0);function w(){if(!l)return;const V=L(i);if(!V||!(V instanceof Element))return;const{left:k,top:R,width:_,height:S}=V.getBoundingClientRect();g.value=k+(u==="page"?l.pageXOffset:0),v.value=R+(u==="page"?l.pageYOffset:0),C.value=S,h.value=_;const A=r.value-g.value,T=c.value-v.value;m.value=_===0||S===0||A<0||T<0||A>_||T>S,(s||!m.value)&&(d.value=A,p.value=T)}const O=[];function b(){O.forEach(V=>V()),O.length=0}if(U.tryOnMounted(()=>{w()}),l){const{stop:V}=F(i,w),{stop:k}=N(i,w,{attributeFilter:["style","class"]}),R=o.watch([i,r,c],w);O.push(V,k,R),D(document,"mouseleave",()=>m.value=!0,{passive:!0}),a&&O.push(D("scroll",w,{capture:!0,passive:!0})),n&&O.push(D("resize",w,{passive:!0}))}return{x:r,y:c,sourceType:f,elementX:d,elementY:p,elementPositionX:g,elementPositionY:v,elementHeight:C,elementWidth:h,isOutside:m,stop:b}}const bt={mounted(e,t){const[n,a]=typeof t.value=="function"?[t.value,{}]:t.value,s=U.reactiveOmit(o.reactive(Ut(e,a)),"stop");o.watch(s,l=>n(l))}},St=o.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive(E.useMousePressed({...e,target:n}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}}),Ct=o.defineComponent({name:"UseNetwork",setup(e,{slots:t}){const n=o.reactive(E.useNetwork());return()=>{if(t.default)return t.default(n)}}}),Et=o.defineComponent({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=o.reactive(E.useNow({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),Rt=o.defineComponent({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=U.toRef(e,"object"),a=E.useObjectUrl(n);return()=>{if(t.default&&a.value)return t.default(a)}}}),Ot=o.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const a=o.reactive(E.useOffsetPagination({...e,onPageChange(...s){var l;(l=e.onPageChange)==null||l.call(e,...s),n("page-change",...s)},onPageSizeChange(...s){var l;(l=e.onPageSizeChange)==null||l.call(e,...s),n("page-size-change",...s)},onPageCountChange(...s){var l;(l=e.onPageCountChange)==null||l.call(e,...s),n("page-count-change",...s)}}));return()=>{if(t.default)return t.default(a)}}}),Pt=o.defineComponent({name:"UseOnline",setup(e,{slots:t}){const n=o.reactive({isOnline:E.useOnline()});return()=>{if(t.default)return t.default(n)}}}),Vt=o.defineComponent({name:"UsePageLeave",setup(e,{slots:t}){const n=o.reactive({isLeft:E.usePageLeave()});return()=>{if(t.default)return t.default(n)}}}),Mt=o.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=o.shallowRef(null),a=o.reactive(E.usePointer({...e,target:e.target==="self"?n:I}));return()=>{if(t.default)return t.default(a,{ref:n})}}}),Dt=o.defineComponent({name:"UsePointerLock",props:["as"],setup(e,{slots:t}){const n=o.shallowRef(),a=o.reactive(E.usePointerLock(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(a))}}}),Lt=o.defineComponent({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=o.reactive({colorScheme:E.usePreferredColorScheme()});return()=>{if(t.default)return t.default(n)}}}),Tt=o.defineComponent({name:"UsePreferredContrast",setup(e,{slots:t}){const n=o.reactive({contrast:E.usePreferredContrast()});return()=>{if(t.default)return t.default(n)}}}),_t=o.defineComponent({name:"UsePreferredDark",setup(e,{slots:t}){const n=o.reactive({prefersDark:E.usePreferredDark()});return()=>{if(t.default)return t.default(n)}}}),kt=o.defineComponent({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=o.reactive({languages:E.usePreferredLanguages()});return()=>{if(t.default)return t.default(n)}}}),At=o.defineComponent({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=o.reactive({motion:E.usePreferredReducedMotion()});return()=>{if(t.default)return t.default(n)}}}),zt=o.defineComponent({name:"UsePreferredReducedTransparency",setup(e,{slots:t}){const n=o.reactive({transparency:E.usePreferredReducedTransparency()});return()=>{if(t.default)return t.default(n)}}}),It={mounted(e,t){typeof t.value=="function"?F(e,t.value):F(e,...t.value)}};function K(e,t,n={}){const{window:a=I,initialValue:s,observe:l=!1}=n,u=o.shallowRef(s),r=o.computed(()=>{var f;return L(t)||((f=a?.document)==null?void 0:f.documentElement)});function c(){var f;const i=o.toValue(e),d=o.toValue(r);if(d&&a&&i){const p=(f=a.getComputedStyle(d).getPropertyValue(i))==null?void 0:f.trim();u.value=p||u.value||s}}return l&&N(r,c,{attributeFilter:["style","class"],window:a}),o.watch([r,()=>o.toValue(e)],(f,i)=>{i[0]&&i[1]&&i[0].style.removeProperty(i[1]),c()},{immediate:!0}),o.watch([u,r],([f,i])=>{const d=o.toValue(e);i?.style&&d&&(f==null?i.style.removeProperty(d):i.style.setProperty(d,f))},{immediate:!0}),u}const fe="--vueuse-safe-area-top",de="--vueuse-safe-area-right",me="--vueuse-safe-area-bottom",pe="--vueuse-safe-area-left";function Wt(){const e=o.shallowRef(""),t=o.shallowRef(""),n=o.shallowRef(""),a=o.shallowRef("");if(U.isClient){const l=K(fe),u=K(de),r=K(me),c=K(pe);l.value="env(safe-area-inset-top, 0px)",u.value="env(safe-area-inset-right, 0px)",r.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",U.tryOnMounted(s),D("resize",U.useDebounceFn(s),{passive:!0})}function s(){e.value=G(fe),t.value=G(de),n.value=G(me),a.value=G(pe)}return{top:e,right:t,bottom:n,left:a,update:s}}function G(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}const Bt=o.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:a,bottom:s,left:l}=Wt();return()=>{if(t.default)return o.h("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?a.value:"",paddingBottom:e.bottom?s.value:"",paddingLeft:e.left?l.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}}),Ht={mounted(e,t){if(typeof t.value=="function"){const n=t.value,a=Z(e,{onScroll(){n(a)},onStop(){n(a)}})}else{const[n,a]=t.value,s=Z(e,{...a,onScroll(l){var u;(u=a.onScroll)==null||u.call(a,l),n(s)},onStop(l){var u;(u=a.onStop)==null||u.call(a,l),n(s)}})}}};function he(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:he(n)}}function Nt(e){const t=e||window.event,n=t.target;return he(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ee=new WeakMap;function Ft(e,t=!1){const n=o.shallowRef(t);let a=null,s="";o.watch(U.toRef(e),r=>{const c=X(o.toValue(r));if(c){const f=c;if(ee.get(f)||ee.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(s=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const l=()=>{const r=X(o.toValue(e));!r||n.value||(U.isIOS&&(a=D(r,"touchmove",c=>{Nt(c)},{passive:!1})),r.style.overflow="hidden",n.value=!0)},u=()=>{const r=X(o.toValue(e));!r||!n.value||(U.isIOS&&a?.(),r.style.overflow=s,ee.delete(r),n.value=!1)};return U.tryOnScopeDispose(u),o.computed({get(){return n.value},set(r){r?l():u()}})}function jt(){let e=!1;const t=o.shallowRef(!1);return(n,a)=>{if(t.value=a.value,e)return;e=!0;const s=Ft(n,a.value);o.watch(t,l=>s.value=l)}}const xt=jt(),Yt=o.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=o.reactive(E.useTimeAgo(()=>e.time,{...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),Xt=o.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=o.reactive(E.useTimestamp({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),Kt=o.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t,expose:n}){const{list:a}=o.toRefs(e),{list:s,containerProps:l,wrapperProps:u,scrollTo:r}=E.useVirtualList(a,e.options);return n({scrollTo:r}),l.style&&typeof l.style=="object"&&!Array.isArray(l.style)&&(l.style.height=e.height||"300px"),()=>o.h("div",{...l},[o.h("div",{...u.value},s.value.map(c=>o.h("div",{style:{overflow:"hidden",height:c.height}},t.default?t.default(c):"Please set content!")))])}}),Gt=o.defineComponent({name:"UseWindowFocus",setup(e,{slots:t}){const n=o.reactive({focused:E.useWindowFocus()});return()=>{if(t.default)return t.default(n)}}}),Jt=o.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=o.reactive(E.useWindowSize(e));return()=>{if(t.default)return t.default(n)}}});y.OnClickOutside=Ue,y.OnLongPress=Re,y.UseActiveElement=Oe,y.UseBattery=Pe,y.UseBrowserLocation=Ve,y.UseClipboard=Me,y.UseColorMode=Fe,y.UseDark=je,y.UseDeviceMotion=xe,y.UseDeviceOrientation=Ye,y.UseDevicePixelRatio=Xe,y.UseDevicesList=Ke,y.UseDocumentVisibility=Ge,y.UseDraggable=Je,y.UseElementBounding=$e,y.UseElementSize=tt,y.UseElementVisibility=at,y.UseEyeDropper=lt,y.UseFullscreen=rt,y.UseGeolocation=it,y.UseIdle=ut,y.UseImage=mt,y.UseMouse=vt,y.UseMouseInElement=gt,y.UseMousePressed=St,y.UseNetwork=Ct,y.UseNow=Et,y.UseObjectUrl=Rt,y.UseOffsetPagination=Ot,y.UseOnline=Pt,y.UsePageLeave=Vt,y.UsePointer=Mt,y.UsePointerLock=Dt,y.UsePreferredColorScheme=Lt,y.UsePreferredContrast=Tt,y.UsePreferredDark=_t,y.UsePreferredLanguages=kt,y.UsePreferredReducedMotion=At,y.UsePreferredReducedTransparency=zt,y.UseScreenSafeArea=Bt,y.UseTimeAgo=Yt,y.UseTimestamp=Xt,y.UseVirtualList=Kt,y.UseWindowFocus=Gt,y.UseWindowSize=Jt,y.VOnClickOutside=oe,y.VOnLongPress=se,y.vElementBounding=Qe,y.vElementHover=et,y.vElementSize=ot,y.vElementVisibility=st,y.vInfiniteScroll=pt,y.vIntersectionObserver=ht,y.vMouseInElement=bt,y.vOnClickOutside=oe,y.vOnKeyStroke=Se,y.vOnLongPress=se,y.vResizeObserver=It,y.vScroll=Ht,y.vScrollLock=xt})(this.VueUse=this.VueUse||{},VueUse,Vue,VueUse);