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