function h(e){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(e),!0):!1}function D(e){return typeof e=="function"?e():VueDemi.unref(e)}const l=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d=Object.prototype.toString,g=e=>d.call(e)==="[object Object]",b=()=>{},y=p();function p(){var e,t;return l&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function f(e,t){function i(...n){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(u)})}return i}const r=e=>e();function w(e=r){const t=VueDemi.ref(!0);function i(){t.value=!1}function n(){t.value=!0}const o=(...u)=>{t.value&&e(...u)};return{isActive:VueDemi.readonly(t),pause:i,resume:n,eventFilter:o}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function m(e){return e||VueDemi.getCurrentInstance()}function v(e,t,i={}){const{eventFilter:n=r,...o}=i;return VueDemi.watch(e,f(n,t),o)}function O(e,t,i={}){const{eventFilter:n,...o}=i,{eventFilter:u,pause:s,resume:c,isActive:a}=w(n);return{stop:v(e,t,{...o,eventFilter:u}),pause:s,resume:c,isActive:a}}function S(e,t=!0,i){m()?VueDemi.onMounted(e,i):t?e():VueDemi.nextTick(e)}function F(e,t,i){const n=VueDemi.watch(e,(...o)=>(VueDemi.nextTick(()=>n()),t(...o)),i);return n}export{S as a,g as b,h as c,y as d,F as e,l as i,b as n,D as t,O as w};