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.

6 lines
19 KiB

/**
* @vue/reactivity v3.5.5
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */let e,t,i,s;let r={},n=()=>{},l=Object.assign,a=(e,t)=>{let i=e.indexOf(t);i>-1&&e.splice(i,1)},o=Object.prototype.hasOwnProperty,u=(e,t)=>o.call(e,t),c=Array.isArray,f=e=>"[object Map]"===y(e),h=e=>"[object Set]"===y(e),p=e=>"function"==typeof e,d=e=>"string"==typeof e,_=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,g=Object.prototype.toString,y=e=>g.call(e),R=e=>y(e).slice(8,-1),b=e=>"[object Object]"===y(e),w=e=>d(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=(e,t)=>!Object.is(e,t),E=(e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})};class x{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function T(e){return new x(e)}function m(){return e}function A(t,i=!1){e&&e.cleanups.push(t)}let k={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},D=/* @__PURE__ */new WeakSet;class O{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,e&&e.active&&e.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,D.has(this)&&(D.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||(this.flags|=8,this.nextEffect=i,i=this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,F(this),j(this);let e=t,i=M;t=this,M=!0;try{return this.fn()}finally{C(this),t=e,M=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)N(e);this.deps=this.depsTail=void 0,F(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?D.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){P(this)&&this.run()}get dirty(){return P(this)}}let I=0;function L(){let e;if(!(--I>0)){for(;i;){let t=i;for(i=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(e)throw e}}function j(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function C(e){let t;let i=e.depsTail,s=i;for(;s;){let e=s.prevDep;-1===s.version?(s===i&&(i=e),N(s),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=i}function P(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&W(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function W(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===B))return;e.globalVersion=B;let i=e.dep;if(e.flags|=2,i.version>0&&!e.isSSR&&!P(e)){e.flags&=-3;return}let s=t,r=M;t=e,M=!0;try{j(e);let t=e.fn(e._value);(0===i.version||S(t,e._value))&&(e._value=t,i.version++)}catch(e){throw i.version++,e}finally{t=s,M=r,C(e),e.flags&=-3}}function N(e){let{dep:t,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)N(e)}}function V(e,t){e.effect instanceof O&&(e=e.effect.fn);let i=new O(e);t&&l(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s}function K(e){e.effect.stop()}let M=!0,H=[];function U(){H.push(M),M=!1}function Y(){H.push(M),M=!0}function G(){let e=H.pop();M=void 0===e||e}function z(e,i=!1){t instanceof O&&(t.cleanup=e)}function F(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let B=0;class q{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class J{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!t||!M||t===this.computed)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink=new q(t,this),t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,4&t.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,B++,this.notify(e)}notify(e){I++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{L()}}}let Q=/* @__PURE__ */new WeakMap,X=Symbol(""),Z=Symbol(""),$=Symbol("");function ee(e,i,s){if(M&&t){let t=Q.get(e);t||Q.set(e,t=/* @__PURE__ */new Map);let i=t.get(s);i||t.set(s,i=new J),i.track()}}function et(e,t,i,s,r,n){let l=Q.get(e);if(!l){B++;return}let a=e=>{e&&e.trigger()};if(I++,"clear"===t)l.forEach(a);else{let r=c(e),n=r&&w(i);if(r&&"length"===i){let e=Number(s);l.forEach((t,i)=>{("length"===i||i===$||!_(i)&&i>=e)&&a(t)})}else switch(void 0!==i&&a(l.get(i)),n&&a(l.get($)),t){case"add":r?n&&a(l.get("length")):(a(l.get(X)),f(e)&&a(l.get(Z)));break;case"delete":!r&&(a(l.get(X)),f(e)&&a(l.get(Z)));break;case"set":f(e)&&a(l.get(X))}}L()}function ei(e){let t=e1(e);return t===e?t:(ee(t,"iterate",$),e$(e)?t:t.map(e4))}function es(e){return ee(e=e1(e),"iterate",$),e}let er={__proto__:null,[Symbol.iterator](){return en(this,Symbol.iterator,e4)},concat(...e){return ei(this).concat(...e.map(e=>c(e)?ei(e):e))},entries(){return en(this,"entries",e=>(e[1]=e4(e[1]),e))},every(e,t){return ea(this,"every",e,t,void 0,arguments)},filter(e,t){return ea(this,"filter",e,t,e=>e.map(e4),arguments)},find(e,t){return ea(this,"find",e,t,e4,arguments)},findIndex(e,t){return ea(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ea(this,"findLast",e,t,e4,arguments)},findLastIndex(e,t){return ea(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ea(this,"forEach",e,t,void 0,arguments)},includes(...e){return eu(this,"includes",e)},indexOf(...e){return eu(this,"indexOf",e)},join(e){return ei(this).join(e)},lastIndexOf(...e){return eu(this,"lastIndexOf",e)},map(e,t){return ea(this,"map",e,t,void 0,arguments)},pop(){return ec(this,"pop")},push(...e){return ec(this,"push",e)},reduce(e,...t){return eo(this,"reduce",e,t)},reduceRight(e,...t){return eo(this,"reduceRight",e,t)},shift(){return ec(this,"shift")},some(e,t){return ea(this,"some",e,t,void 0,arguments)},splice(...e){return ec(this,"splice",e)},toReversed(){return ei(this).toReversed()},toSorted(e){return ei(this).toSorted(e)},toSpliced(...e){return ei(this).toSpliced(...e)},unshift(...e){return ec(this,"unshift",e)},values(){return en(this,"values",e4)}};function en(e,t,i){let s=es(e),r=s[t]();return s===e||e$(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}let el=Array.prototype;function ea(e,t,i,s,r,n){let l=es(e),a=l!==e&&!e$(e),o=l[t];if(o!==el[t]){let t=o.apply(e,n);return a?e4(t):t}let u=i;l!==e&&(a?u=function(t,s){return i.call(this,e4(t),s,e)}:i.length>2&&(u=function(t,s){return i.call(this,t,s,e)}));let c=o.call(l,u,s);return a&&r?r(c):c}function eo(e,t,i,s){let r=es(e),n=i;return r!==e&&(e$(e)?i.length>3&&(n=function(t,s,r){return i.call(this,t,s,r,e)}):n=function(t,s,r){return i.call(this,t,e4(s),r,e)}),r[t](n,...s)}function eu(e,t,i){let s=e1(e);ee(s,"iterate",$);let r=s[t](...i);return(-1===r||!1===r)&&e0(i[0])?(i[0]=e1(i[0]),s[t](...i)):r}function ec(e,t,i=[]){U(),I++;let s=e1(e)[t].apply(e,i);return L(),G(),s}let ef=/* @__PURE__ */function(e){let t=/* @__PURE__ */Object.create(null);for(let i of e.split(","))t[i]=1;return e=>e in t}("__proto__,__v_isRef,__isVue"),eh=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function ep(e){_(e)||(e=String(e));let t=e1(this);return ee(t,"has",e),t.hasOwnProperty(e)}class ed{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(s?r?ez:eG:r?eY:eU).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=c(e);if(!s){let e;if(n&&(e=er[t]))return e;if("hasOwnProperty"===t)return ep}let l=Reflect.get(e,t,e6(e)?e:i);return(_(t)?eh.has(t):ef(t))?l:(s||ee(e,"get",t),r)?l:e6(l)?n&&w(t)?l:l.value:v(l)?s?eq(l):eF(l):l}}class e_ extends ed{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=eZ(r);if(e$(i)||eZ(i)||(r=e1(r),i=e1(i)),!c(e)&&e6(r)&&!e6(i))return!t&&(r.value=i,!0)}let n=c(e)&&w(t)?Number(t)<e.length:u(e,t),l=Reflect.set(e,t,i,e6(e)?e:s);return e===e1(s)&&(n?S(i,r)&&et(e,"set",t,i):et(e,"add",t,i)),l}deleteProperty(e,t){let i=u(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&et(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return _(t)&&eh.has(t)||ee(e,"has",t),i}ownKeys(e){return ee(e,"iterate",c(e)?"length":X),Reflect.ownKeys(e)}}class ev extends ed{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eg=/* @__PURE__ */new e_,ey=/* @__PURE__ */new ev,eR=/* @__PURE__ */new e_(!0),eb=/* @__PURE__ */new ev(!0),ew=e=>e,eS=e=>Reflect.getPrototypeOf(e);function eE(e,t,i=!1,s=!1){let r=e1(e=e.__v_raw),n=e1(t);i||(S(t,n)&&ee(r,"get",t),ee(r,"get",n));let{has:l}=eS(r),a=s?ew:i?e3:e4;return l.call(r,t)?a(e.get(t)):l.call(r,n)?a(e.get(n)):void(e!==r&&e.get(t))}function ex(e,t=!1){let i=this.__v_raw,s=e1(i),r=e1(e);return t||(S(e,r)&&ee(s,"has",e),ee(s,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function eT(e,t=!1){return e=e.__v_raw,t||ee(e1(e),"iterate",X),Reflect.get(e,"size",e)}function em(e,t=!1){t||e$(e)||eZ(e)||(e=e1(e));let i=e1(this);return eS(i).has.call(i,e)||(i.add(e),et(i,"add",e,e)),this}function eA(e,t,i=!1){i||e$(t)||eZ(t)||(t=e1(t));let s=e1(this),{has:r,get:n}=eS(s),l=r.call(s,e);l||(e=e1(e),l=r.call(s,e));let a=n.call(s,e);return s.set(e,t),l?S(t,a)&&et(s,"set",e,t):et(s,"add",e,t),this}function ek(e){let t=e1(this),{has:i,get:s}=eS(t),r=i.call(t,e);r||(e=e1(e),r=i.call(t,e)),s&&s.call(t,e);let n=t.delete(e);return r&&et(t,"delete",e,void 0),n}function eD(){let e=e1(this),t=0!==e.size,i=e.clear();return t&&et(e,"clear",void 0,void 0),i}function eO(e,t){return function(i,s){let r=this,n=r.__v_raw,l=e1(n),a=t?ew:e?e3:e4;return e||ee(l,"iterate",X),n.forEach((e,t)=>i.call(s,a(e),a(t),r))}}function eI(e,t,i){return function(...s){let r=this.__v_raw,n=e1(r),l=f(n),a="entries"===e||e===Symbol.iterator&&l,o=r[e](...s),u=i?ew:t?e3:e4;return t||ee(n,"iterate","keys"===e&&l?Z:X),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function eL(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[ej,eC,eP,eW]=/* @__PURE__ */function(){let e={get(e){return eE(this,e)},get size(){return eT(this)},has:ex,add:em,set:eA,delete:ek,clear:eD,forEach:eO(!1,!1)},t={get(e){return eE(this,e,!1,!0)},get size(){return eT(this)},has:ex,add(e){return em.call(this,e,!0)},set(e,t){return eA.call(this,e,t,!0)},delete:ek,clear:eD,forEach:eO(!1,!0)},i={get(e){return eE(this,e,!0)},get size(){return eT(this,!0)},has(e){return ex.call(this,e,!0)},add:eL("add"),set:eL("set"),delete:eL("delete"),clear:eL("clear"),forEach:eO(!0,!1)},s={get(e){return eE(this,e,!0,!0)},get size(){return eT(this,!0)},has(e){return ex.call(this,e,!0)},add:eL("add"),set:eL("set"),delete:eL("delete"),clear:eL("clear"),forEach:eO(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=eI(r,!1,!1),i[r]=eI(r,!0,!1),t[r]=eI(r,!1,!0),s[r]=eI(r,!0,!0)}),[e,i,t,s]}();function eN(e,t){let i=t?e?eW:eP:e?eC:ej;return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(u(i,s)&&s in t?i:t,s,r)}let eV={get:/* @__PURE__ */eN(!1,!1)},eK={get:/* @__PURE__ */eN(!1,!0)},eM={get:/* @__PURE__ */eN(!0,!1)},eH={get:/* @__PURE__ */eN(!0,!0)},eU=/* @__PURE__ */new WeakMap,eY=/* @__PURE__ */new WeakMap,eG=/* @__PURE__ */new WeakMap,ez=/* @__PURE__ */new WeakMap;function eF(e){return eZ(e)?e:eQ(e,!1,eg,eV,eU)}function eB(e){return eQ(e,!1,eR,eK,eY)}function eq(e){return eQ(e,!0,ey,eM,eG)}function eJ(e){return eQ(e,!0,eb,eH,ez)}function eQ(e,t,i,s,r){if(!v(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}}(R(e));if(0===l)return e;let a=new Proxy(e,2===l?s:i);return r.set(e,a),a}function eX(e){return eZ(e)?eX(e.__v_raw):!!(e&&e.__v_isReactive)}function eZ(e){return!!(e&&e.__v_isReadonly)}function e$(e){return!!(e&&e.__v_isShallow)}function e0(e){return!!e&&!!e.__v_raw}function e1(e){let t=e&&e.__v_raw;return t?e1(t):e}function e2(e){return!u(e,"__v_skip")&&Object.isExtensible(e)&&E(e,"__v_skip",!0),e}let e4=e=>v(e)?eF(e):e,e3=e=>v(e)?eq(e):e;function e6(e){return!!e&&!0===e.__v_isRef}function e8(e){return e7(e,!1)}function e5(e){return e7(e,!0)}function e7(e,t){return e6(e)?e:new e9(e,t)}class e9{constructor(e,t){this.dep=new J,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:e1(e),this._value=t?e:e4(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||e$(e)||eZ(e);S(e=i?e:e1(e),t)&&(this._rawValue=e,this._value=i?e:e4(e),this.dep.trigger())}}function te(e){e.dep.trigger()}function tt(e){return e6(e)?e.value:e}function ti(e){return p(e)?e():tt(e)}let ts={get:(e,t,i)=>"__v_raw"===t?e:tt(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return e6(r)&&!e6(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function tr(e){return eX(e)?e:new Proxy(e,ts)}class tn{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new J,{get:i,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function tl(e){return new tn(e)}function ta(e){let t=c(e)?Array(e.length):{};for(let i in e)t[i]=tf(e,i);return t}class to{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=e1(this._object),t=this._key,null==(i=Q.get(e))?void 0:i.get(t)}}class tu{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tc(e,t,i){return e6(e)?e:p(e)?new tu(e):v(e)&&arguments.length>1?tf(e,t,i):e8(e)}function tf(e,t,i){let s=e[t];return e6(s)?s:new to(e,t,i)}class th{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new J(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){this.flags|=16,t!==this&&this.dep.notify()}get value(){let e=this.dep.track();return W(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function tp(e,t,i=!1){let s,r;return p(e)?s=e:(s=e.get,r=e.set),new th(s,r,i)}let td={GET:"get",HAS:"has",ITERATE:"iterate"},t_={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},tv={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},tg={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},ty={},tR=/* @__PURE__ */new WeakMap;function tb(){return s}function tw(e,t=!1,i=s){if(i){let t=tR.get(i);t||tR.set(i,t=[]),t.push(e)}}function tS(e,t,i=r){let l,o,u,f;let{immediate:h,deep:d,once:_,scheduler:v,augmentJob:g,call:y}=i,R=e=>d?e:e$(e)||!1===d||0===d?tE(e,1):tE(e),b=!1,w=!1;if(e6(e)?(o=()=>e.value,b=e$(e)):eX(e)?(o=()=>R(e),b=!0):c(e)?(w=!0,b=e.some(e=>eX(e)||e$(e)),o=()=>e.map(e=>e6(e)?e.value:eX(e)?R(e):p(e)?y?y(e,2):e():void 0)):o=p(e)?t?y?()=>y(e,2):e:()=>{if(u){U();try{u()}finally{G()}}let t=s;s=l;try{return y?y(e,3,[f]):e(f)}finally{s=t}}:n,t&&d){let e=o,t=!0===d?1/0:d;o=()=>tE(e(),t)}let E=m(),x=()=>{l.stop(),E&&a(E.effects,l)};if(_){if(t){let e=t;t=(...t)=>{e(...t),x()}}else{let e=o;o=()=>{e(),x()}}}let T=w?Array(e.length).fill(ty):ty,A=e=>{if(1&l.flags&&(l.dirty||e)){if(t){let e=l.run();if(d||b||(w?e.some((e,t)=>S(e,T[t])):S(e,T))){u&&u();let i=s;s=l;try{let i=[e,T===ty?void 0:w&&T[0]===ty?[]:T,f];y?y(t,3,i):t(...i),T=e}finally{s=i}}}else l.run()}};return g&&g(A),(l=new O(o)).scheduler=v?()=>v(A,!1):A,f=e=>tw(e,!1,l),u=l.onStop=()=>{let e=tR.get(l);if(e){if(y)y(e,4);else for(let t of e)t();tR.delete(l)}},t?h?A(!0):T=l.run():v?v(A.bind(null,!0),!0):l.run(),x.pause=l.pause.bind(l),x.resume=l.resume.bind(l),x.stop=x,x}function tE(e,t=1/0,i){if(t<=0||!v(e)||e.__v_skip||(i=i||/* @__PURE__ */new Set).has(e))return e;if(i.add(e),t--,e6(e))tE(e.value,t,i);else if(c(e))for(let s=0;s<e.length;s++)tE(e[s],t,i);else if(h(e)||f(e))e.forEach(e=>{tE(e,t,i)});else if(b(e)){for(let s in e)tE(e[s],t,i);for(let s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&tE(e[s],t,i)}return e}export{$ as ARRAY_ITERATE_KEY,k as EffectFlags,x as EffectScope,X as ITERATE_KEY,Z as MAP_KEY_ITERATE_KEY,O as ReactiveEffect,tv as ReactiveFlags,td as TrackOpTypes,t_ as TriggerOpTypes,tg as WatchErrorCodes,tp as computed,tl as customRef,V as effect,T as effectScope,Y as enableTracking,m as getCurrentScope,tb as getCurrentWatcher,e0 as isProxy,eX as isReactive,eZ as isReadonly,e6 as isRef,e$ as isShallow,e2 as markRaw,z as onEffectCleanup,A as onScopeDispose,tw as onWatcherCleanup,U as pauseTracking,tr as proxyRefs,eF as reactive,ei as reactiveReadArray,eq as readonly,e8 as ref,G as resetTracking,eB as shallowReactive,es as shallowReadArray,eJ as shallowReadonly,e5 as shallowRef,K as stop,e1 as toRaw,e4 as toReactive,e3 as toReadonly,tc as toRef,ta as toRefs,ti as toValue,ee as track,tE as traverse,et as trigger,te as triggerRef,tt as unref,tS as watch};