/** * @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */let e,t;let s=()=>{},i=Object.assign,r=Object.prototype.hasOwnProperty,n=(e,t)=>r.call(e,t),l=Array.isArray,u=e=>"[object Map]"===_(e),c=e=>"function"==typeof e,a=e=>"string"==typeof e,h=e=>"symbol"==typeof e,o=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,_=e=>f.call(e),d=e=>_(e).slice(8,-1),p=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=(e,t)=>!Object.is(e,t),g=(e,t,s,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})};class y{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){let s=e;try{return e=this,t()}finally{e=s}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),M()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=x,s=t;try{return x=!0,t=this,this._runnings++,L(this),this.fn()}finally{E(this),this._runnings--,t=s,x=e}}stop(){this.active&&(L(this),E(this),this.onStop&&this.onStop(),this.active=!1)}}function L(e){e._trackId++,e._depsLength=0}function E(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{r.dirty&&r.run()});t&&(i(r,t),t.scope&&R(r,t.scope)),t&&t.lazy||r.run();let n=r.run.bind(r);return n.effect=r,n}function j(e){e.effect.stop()}let x=!0,I=0,P=[];function T(){P.push(x),x=!1}function A(){P.push(x),x=!0}function M(){let e=P.pop();x=void 0===e||e}function V(){I++}function W(){for(I--;!I&&N.length;)N.shift()()}function z(e,t,s){if(t.get(e)!==e._trackId){t.set(e,e._trackId);let s=e.deps[e._depsLength];s!==t?(s&&O(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}let N=[];function D(e,t,s){for(let s of(V(),e.keys())){let i;s._dirtyLevel{let s=new Map;return s.cleanup=e,s.computed=t,s},K=new WeakMap,H=Symbol(""),Y=Symbol("");function F(e,s,i){if(x&&t){let s=K.get(e);s||K.set(e,s=new Map);let r=s.get(i);r||s.set(i,r=C(()=>s.delete(i))),z(t,r)}}function G(e,t,s,i,r,n){let c=K.get(e);if(!c)return;let a=[];if("clear"===t)a=[...c.values()];else if("length"===s&&l(e)){let e=Number(i);c.forEach((t,s)=>{("length"===s||!h(s)&&s>=e)&&a.push(t)})}else switch(void 0!==s&&a.push(c.get(s)),t){case"add":l(e)?p(s)&&a.push(c.get("length")):(a.push(c.get(H)),u(e)&&a.push(c.get(Y)));break;case"delete":!l(e)&&(a.push(c.get(H)),u(e)&&a.push(c.get(Y)));break;case"set":u(e)&&a.push(c.get(H))}for(let e of(V(),a))e&&D(e,4);W()}let q=function(e,t){let s=new Set(e.split(","));return e=>s.has(e)}("__proto__,__v_isRef,__isVue"),B=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h)),J=function(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){let s=ez(this);for(let e=0,t=this.length;e{e[t]=function(...e){T(),V();let s=ez(this)[t].apply(this,e);return W(),M(),s}}),e}();function Q(e){h(e)||(e=String(e));let t=ez(this);return F(t,"has",e),t.hasOwnProperty(e)}class U{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){let i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t)return s===(i?r?em:eO:r?eE:eL).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;let u=l(e);if(!i){if(u&&n(J,t))return Reflect.get(J,t,s);if("hasOwnProperty"===t)return Q}let c=Reflect.get(e,t,s);return(h(t)?B.has(t):q(t))?c:(i||F(e,"get",t),r)?c:eG(c)?u&&p(t)?c:c.value:o(c)?i?eI(c):ej(c):c}}class X extends U{constructor(e=!1){super(!1,e)}set(e,t,s,i){let r=e[t];if(!this._isShallow){let t=eM(r);if(eV(s)||eM(s)||(r=ez(r),s=ez(s)),!l(e)&&eG(r)&&!eG(s))return!t&&(r.value=s,!0)}let u=l(e)&&p(t)?Number(t)e,er=e=>Reflect.getPrototypeOf(e);function en(e,t,s=!1,i=!1){let r=ez(e=e.__v_raw),n=ez(t);s||(v(t,n)&&F(r,"get",t),F(r,"get",n));let{has:l}=er(r),u=i?ei:s?eC:eD;return l.call(r,t)?u(e.get(t)):l.call(r,n)?u(e.get(n)):void(e!==r&&e.get(t))}function el(e,t=!1){let s=this.__v_raw,i=ez(s),r=ez(e);return t||(v(e,r)&&F(i,"has",e),F(i,"has",r)),e===r?s.has(e):s.has(e)||s.has(r)}function eu(e,t=!1){return e=e.__v_raw,t||F(ez(e),"iterate",H),Reflect.get(e,"size",e)}function ec(e,t=!1){t||eV(e)||eM(e)||(e=ez(e));let s=ez(this);return er(s).has.call(s,e)||(s.add(e),G(s,"add",e,e)),this}function ea(e,t,s=!1){s||eV(t)||eM(t)||(t=ez(t));let i=ez(this),{has:r,get:n}=er(i),l=r.call(i,e);l||(e=ez(e),l=r.call(i,e));let u=n.call(i,e);return i.set(e,t),l?v(t,u)&&G(i,"set",e,t):G(i,"add",e,t),this}function eh(e){let t=ez(this),{has:s,get:i}=er(t),r=s.call(t,e);r||(e=ez(e),r=s.call(t,e)),i&&i.call(t,e);let n=t.delete(e);return r&&G(t,"delete",e,void 0),n}function eo(){let e=ez(this),t=0!==e.size,s=e.clear();return t&&G(e,"clear",void 0,void 0),s}function ef(e,t){return function(s,i){let r=this,n=r.__v_raw,l=ez(n),u=t?ei:e?eC:eD;return e||F(l,"iterate",H),n.forEach((e,t)=>s.call(i,u(e),u(t),r))}}function e_(e,t,s){return function(...i){let r=this.__v_raw,n=ez(r),l=u(n),c="entries"===e||e===Symbol.iterator&&l,a=r[e](...i),h=s?ei:t?eC:eD;return t||F(n,"iterate","keys"===e&&l?Y:H),{next(){let{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:c?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function ed(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[ep,ev,eg,ey]=function(){let e={get(e){return en(this,e)},get size(){return eu(this)},has:el,add:ec,set:ea,delete:eh,clear:eo,forEach:ef(!1,!1)},t={get(e){return en(this,e,!1,!0)},get size(){return eu(this)},has:el,add(e){return ec.call(this,e,!0)},set(e,t){return ea.call(this,e,t,!0)},delete:eh,clear:eo,forEach:ef(!1,!0)},s={get(e){return en(this,e,!0)},get size(){return eu(this,!0)},has(e){return el.call(this,e,!0)},add:ed("add"),set:ed("set"),delete:ed("delete"),clear:ed("clear"),forEach:ef(!0,!1)},i={get(e){return en(this,e,!0,!0)},get size(){return eu(this,!0)},has(e){return el.call(this,e,!0)},add:ed("add"),set:ed("set"),delete:ed("delete"),clear:ed("clear"),forEach:ef(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=e_(r,!1,!1),s[r]=e_(r,!0,!1),t[r]=e_(r,!1,!0),i[r]=e_(r,!0,!0)}),[e,s,t,i]}();function ew(e,t){let s=t?e?ey:eg:e?ev:ep;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(n(s,i)&&i in t?s:t,i,r)}let eR={get:ew(!1,!1)},eS={get:ew(!1,!0)},eb={get:ew(!0,!1)},ek={get:ew(!0,!0)},eL=new WeakMap,eE=new WeakMap,eO=new WeakMap,em=new WeakMap;function ej(e){return eM(e)?e:eT(e,!1,$,eR,eL)}function ex(e){return eT(e,!1,et,eS,eE)}function eI(e){return eT(e,!0,ee,eb,eO)}function eP(e){return eT(e,!0,es,ek,em)}function eT(e,t,s,i,r){if(!o(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=r.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(d(e));if(0===l)return e;let u=new Proxy(e,2===l?i:s);return r.set(e,u),u}function eA(e){return eM(e)?eA(e.__v_raw):!!(e&&e.__v_isReactive)}function eM(e){return!!(e&&e.__v_isReadonly)}function eV(e){return!!(e&&e.__v_isShallow)}function eW(e){return!!e&&!!e.__v_raw}function ez(e){let t=e&&e.__v_raw;return t?ez(t):e}function eN(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eD=e=>o(e)?ej(e):e,eC=e=>o(e)?eI(e):e;class eK{constructor(e,t,s,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new k(()=>e(this._value),()=>eF(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){let e=ez(this);return(!e._cacheable||e.effect.dirty)&&v(e._value,e._value=e.effect.run())&&eF(e,4),eY(e),e.effect._dirtyLevel>=2&&eF(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function eH(e,t,i=!1){let r,n;let l=c(e);return l?(r=e,n=s):(r=e.get,n=e.set),new eK(r,n,l||!n,i)}function eY(e){var s;x&&t&&(e=ez(e),z(t,null!=(s=e.dep)?s:e.dep=C(()=>e.dep=void 0,e instanceof eK?e:void 0)))}function eF(e,t=4,s,i){let r=(e=ez(e)).dep;r&&D(r,t)}function eG(e){return!!(e&&!0===e.__v_isRef)}function eq(e){return eJ(e,!1)}function eB(e){return eJ(e,!0)}function eJ(e,t){return eG(e)?e:new eQ(e,t)}class eQ{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ez(e),this._value=t?e:eD(e)}get value(){return eY(this),this._value}set value(e){let t=this.__v_isShallow||eV(e)||eM(e);v(e=t?e:ez(e),this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:eD(e),eF(this,4))}}function eU(e){eF(e,4)}function eX(e){return eG(e)?e.value:e}function eZ(e){return c(e)?e():eX(e)}let e$={get:(e,t,s)=>eX(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let r=e[t];return eG(r)&&!eG(s)?(r.value=s,!0):Reflect.set(e,t,s,i)}};function e0(e){return eA(e)?e:new Proxy(e,e$)}class e1{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:s}=e(()=>eY(this),()=>eF(this));this._get=t,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function e4(e){return new e1(e)}function e2(e){let t=l(e)?Array(e.length):{};for(let s in e)t[s]=e6(e,s);return t}class e3{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){let s=K.get(e);return s&&s.get(t)}(ez(this._object),this._key)}}class e8{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function e5(e,t,s){return eG(e)?e:c(e)?new e8(e):o(e)&&arguments.length>1?e6(e,t,s):eq(e)}function e6(e,t,s){let i=e[t];return eG(i)?i:new e3(e,t,s)}let e7=eH,e9={GET:"get",HAS:"has",ITERATE:"iterate"},te={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},tt={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw"};export{y as EffectScope,H as ITERATE_KEY,k as ReactiveEffect,tt as ReactiveFlags,e9 as TrackOpTypes,te as TriggerOpTypes,eH as computed,e4 as customRef,e7 as deferredComputed,m as effect,w as effectScope,A as enableTracking,S as getCurrentScope,eW as isProxy,eA as isReactive,eM as isReadonly,eG as isRef,eV as isShallow,eN as markRaw,b as onScopeDispose,V as pauseScheduling,T as pauseTracking,e0 as proxyRefs,ej as reactive,eI as readonly,eq as ref,W as resetScheduling,M as resetTracking,ex as shallowReactive,eP as shallowReadonly,eB as shallowRef,j as stop,ez as toRaw,e5 as toRef,e2 as toRefs,eZ as toValue,F as track,G as trigger,eU as triggerRef,eX as unref};