"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");function v(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}function f(e){return typeof e=="function"?e():u.unref(e)}const S=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const T=e=>e!=null,j=Object.prototype.toString,W=e=>j.call(e)==="[object Object]",p=()=>{};function b(e,n){function r(...t){return new Promise((i,o)=>{Promise.resolve(e(()=>n.apply(this,t),{fn:n,thisArg:this,args:t})).then(i).catch(o)})}return r}const d=e=>e();function m(e,n={}){let r,t,i=p;const o=c=>{clearTimeout(c),i(),i=p};return c=>{const l=f(e),s=f(n.maxWait);return r&&o(r),l<=0||s!==void 0&&s<=0?(t&&(o(t),t=null),Promise.resolve(c())):new Promise((a,g)=>{i=n.rejectOnCancel?g:a,s&&!t&&(t=setTimeout(()=>{r&&o(r),t=null,a(c())},s)),r=setTimeout(()=>{t&&o(t),t=null,a(c())},l)})}}function y(e=d){const n=u.ref(!0);function r(){n.value=!1}function t(){n.value=!0}const i=(...o)=>{n.value&&e(...o)};return{isActive:u.readonly(n),pause:r,resume:t,eventFilter:i}}function F(e){return e||u.getCurrentInstance()}function C(e,n=200,r={}){return b(m(n,r),e)}function w(e,n,r={}){const{eventFilter:t=d,...i}=r;return u.watch(e,b(t,n),i)}function O(e,n,r={}){const{eventFilter:t,...i}=r,{eventFilter:o,pause:h,resume:c,isActive:l}=y(t);return{stop:w(e,n,{...i,eventFilter:o}),pause:h,resume:c,isActive:l}}function P(e,n=!0,r){F()?u.onMounted(e,r):n?e():u.nextTick(e)}exports.bypassFilter=d;exports.createFilterWrapper=b;exports.debounceFilter=m;exports.getLifeCycleTarget=F;exports.isClient=S;exports.isObject=W;exports.noop=p;exports.notNullish=T;exports.pausableFilter=y;exports.pausableWatch=O;exports.toValue=f;exports.tryOnMounted=P;exports.tryOnScopeDispose=v;exports.useDebounceFn=C;exports.watchPausable=O;exports.watchWithFilter=w;
