varVueDemi=function(c,u,R){if(c.install)returnc;if(!u)returnconsole.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),c;if(u.version.slice(0,4)==="2.7."){letb=function(S,A){varT,_={},L={config:u.config,use:u.use.bind(u),mixin:u.mixin.bind(u),component:u.component.bind(u),provide:function(C,I){return_[C]=I,this},directive:function(C,I){returnI?(u.directive(C,I),L):u.directive(C)},mount:function(C,I){returnT||(T=newu(Object.assign({propsData:A},S,{provide:Object.assign(_,S.provide)})),T.$mount(C,I),T)},unmount:function(){T&&(T.$destroy(),T=void0)}};returnL};varP=b;for(varOinu)c[O]=u[O];c.isVue2=!0,c.isVue3=!1,c.install=function(){},c.Vue=u,c.Vue2=u,c.version=u.version,c.warn=u.util.warn,c.hasInjectionContext=()=>!!c.getCurrentInstance(),c.createApp=b}elseif(u.version.slice(0,2)==="2.")if(R){for(varOinR)c[O]=R[O];c.isVue2=!0,c.isVue3=!1,c.install=function(){},c.Vue=u,c.Vue2=u,c.version=u.version,c.hasInjectionContext=()=>!!c.getCurrentInstance()}elseconsole.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");elseif(u.version.slice(0,2)==="3."){for(varOinu)c[O]=u[O];c.isVue2=!1,c.isVue3=!0,c.install=function(){},c.Vue=u,c.Vue2=void0,c.version=u.version,c.set=function(b,S,A){returnArray.isArray(b)?(b.length=Math.max(b.length,S),b.splice(S,1,A),A):(b[S]=A,A)},c.del=function(b,S){if(Array.isArray(b)){b.splice(S,1);return}deleteb[S]}}elseconsole.error("[vue-demi] Vue version "+u.version+" is unsupported.");returnc}(this.VueDemi=this.VueDemi||(typeofVueDemi<"u"?VueDemi:{}),this.Vue||(typeofVue<"u"?Vue:void0),this.VueCompositionAPI||(typeofVueCompositionAPI<"u"?VueCompositionAPI:void0));(function(c,u){"use strict";functionR(t,e){varn;constr=u.shallowRef();returnu.watchEffect(()=>{r.value=t()},{...e,flush:(n=e?.flush)!=null?n:"sync"}),u.readonly(r)}functionO(t,e){letn,r,o;consta=u.ref(!0),i=()=>{a.value=!0,o()};u.watch(t,i,{flush:"sync"});constl=typeofe=="function"?e:e.get,d=typeofe=="function"?void0:e.set,g=u.customRef((h,f)=>(r=h,o=f,{get(){returna.value&&(n=l(),a.value=!1),r(),n},set(y){d?.(y)}}));returnObject.isExtensible(g)&&(g.trigger=i),g}functionP(t){returnu.getCurrentScope()?(u.onScopeDispose(t),!0):!1}functionb(){constt=newSet,e=o=>{t.delete(o)};return{on:o=>{t.add(o);consta=()=>e(o);returnP(a),{off:a}},off:e,trigger:o=>Promise.all(Array.from(t).map(a=>a(o)))}}functionS(t){lete=!1,n;constr=u.effectScope(!0);return(...o)=>(e||(n=r.run(()=>t(...o)),e=!0),n)}constA=newWeakMap,T=(t,e)=>{varn;constr=(n=u.getCurrentInstance())==null?void0:n.proxy;if(r==null)thrownewError("provideLocal must be called in setup");A.has(r)||A.set(r,Object.create(null));consto=A.get(r);o[t]=e,u.provide(t,e)},_=(...t)=>{vare;constn=t[0],r=(e=u.getCurrentInstance())==null?void0:e.proxy;if(r==null)thrownewError("injectLocal must be called in setup");returnA.has(r)&&ninA.get(r)?A.get(r)[n]:u.inject(...t)};functionL(t,e){constn=e?.injectionKey||Symbol("InjectionState");return[(...a)=>{consti=t(...a);returnT(n,i),i},()=>_(n)]}functionC(t){lete=0,n,r;consto=()=>{e-=1,r&&e<=0&&(r.stop(),n=void0,r=void0)};return(...a)=>(e+=1,n||(r=u.effectScope(!0),n=r.run(()=>t(...a))),P(o),n)}functionI(t,e,{enumerable:n=!1,unwrap:r=!0}={}){if(!u.isVue3&&!u.version.startsWith("2.7.")){if(process.env.NODE_ENV!=="production")thrownewError("[VueUse] extendRef only works in Vue 2.7 or above.");return}for(const[o,a]ofObject.entries(e))o!=="value"&&(u.isRef(a)&&r?Object.defineProperty(t,o,{get(){returna.value},set(i){a.value=i},enumerable:n}):Object.defineProperty(t,o,{value:a,enumerable:n}));returnt}functionyt(t,e){returne==null?u.unref(t):u.unref(t)[e]}functiongt(t){returnu.unref(t)!=null}functionmt(t,e){if(typeofSymbol<"u"){constn={...t};returnObject.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){letr=0;return{next:()=>({value:e[r++],done:r>e.length})}}}),n}elsereturnObject.assign([...e],t)}functions(t){returntypeoft=="function"?t():u.unref(t)}constwt=s