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
2 months ago
|
/**
|
||
|
* 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
|
||
|
//# sourceMappingURL=/sm/e91704c0f3a8ba415f48fdc8b09b8794488c45a62bd8f2784bef9c0ecc1e9f5a.map
|