ray-template/js/@vue_reactivity@3.5.13-CVvlldVq.js

6 lines
17 KiB
JavaScript

import{i as F,a as j,h as I,e as ze,t as Be,b as Y,c as y,E as Fe,d as de,f as $,g as Ge,j as Je,k as C,l as Ue,N as qe,m as Qe,r as Xe}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let g;class Ze{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=g,!t&&g&&(this.index=(g.scopes||(g.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=g;try{return g=this,t()}finally{g=s}}}on(){g=this}off(){g=this.parent}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s<i;s++)this.effects[s].stop();for(this.effects.length=0,s=0,i=this.cleanups.length;s<i;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,i=this.scopes.length;s<i;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function Mt(e){return new Ze(e)}function $e(){return g}function Pt(e,t=!1){g&&g.cleanups.push(e)}let h;const ae=new WeakSet;class ke{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,g&&g.active&&g.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ae.has(this)&&(ae.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Se(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,we(this),me(this);const t=h,s=b;h=this,b=!0;try{return this.fn()}finally{xe(this),h=t,b=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ge(t);this.deps=this.depsTail=void 0,we(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ce(this)&&this.run()}get dirty(){return ce(this)}}let be=0,W,V;function Se(e,t=!1){if(e.flags|=8,t){e.next=V,V=e;return}e.next=W,W=e}function pe(){be++}function _e(){if(--be>0)return;if(V){let t=V;for(V=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;W;){let t=W;for(W=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function me(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xe(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),ge(i),et(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===z))return;e.globalVersion=z;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ce(e)){e.flags&=-3;return}const s=h,i=b;h=e,b=!0;try{me(e);const n=e.fn(e._value);(t.version===0||I(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{h=s,b=i,xe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ge(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function et(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let b=!0;const Te=[];function De(){Te.push(b),b=!1}function Ie(){const e=Te.pop();b=e===void 0?!0:e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=h;h=void 0;try{t()}finally{h=s}}}let z=0;class tt{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class te{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new tt(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Ee(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=i)}return s}trigger(t){this.version++,z++,this.notify(t)}notify(t){pe();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_e()}}}function Ee(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ee(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const k=new WeakMap,P=Symbol(""),ue=Symbol(""),B=Symbol("");function w(e,t,s){if(b&&h){let i=k.get(e);i||k.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new te),n.map=i,n.key=s),n.track()}}function T(e,t,s,i,n,r){const a=k.get(e);if(!a){z++;return}const f=o=>{o&&o.trigger()};if(pe(),t==="clear")a.forEach(f);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);a.forEach((d,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&f(d)})}else switch((s!==void 0||a.has(void 0))&&f(a.get(s)),p&&f(a.get(B)),t){case"add":o?p&&f(a.get("length")):(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"delete":o||(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"set":C(e)&&f(a.get(P));break}}_e()}function st(e,t){const s=k.get(e);return s&&s.get(t)}function L(e){const t=l(e);return t===e?t:(w(t,"iterate",B),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",B),e}const nt={__proto__:null,[Symbol.iterator](){return fe(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return fe(this,"entries",e=>(e[1]=v(e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,s=>s.map(v),arguments)},find(e,t){return x(this,"find",e,t,v,arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,v,arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return oe(this,"includes",e)},indexOf(...e){return oe(this,"indexOf",e)},join(e){return L(this).join(e)},lastIndexOf(...e){return oe(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return H(this,"pop")},push(...e){return H(this,"push",e)},reduce(e,...t){return Re(this,"reduce",e,t)},reduceRight(e,...t){return Re(this,"reduceRight",e,t)},shift(){return H(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return H(this,"splice",e)},toReversed(){return L(this).toReversed()},toSorted(e){return L(this).toSorted(e)},toSpliced(...e){return L(this).toSpliced(...e)},unshift(...e){return H(this,"unshift",e)},values(){return fe(this,"values",v)}};function fe(e,t,s){const i=ve(e),n=i[t]();return i!==e&&!S(e)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=s(r.value)),r}),n}const it=Array.prototype;function x(e,t,s,i,n,r){const a=ve(e),f=a!==e&&!S(e),o=a[t];if(o!==it[t]){const d=o.apply(e,r);return f?v(d):d}let p=s;a!==e&&(f?p=function(d,_){return s.call(this,v(d),_,e)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,e)}));const c=o.call(a,p,i);return f&&n?n(c):c}function Re(e,t,s,i){const n=ve(e);let r=s;return n!==e&&(S(e)?s.length>3&&(r=function(a,f,o){return s.call(this,a,f,o,e)}):r=function(a,f,o){return s.call(this,a,v(f),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",B);const n=i[t](...s);return(n===-1||n===!1)&&Rt(s[0])?(s[0]=l(s[0]),i[t](...s)):n}function H(e,t,s=[]){De(),pe();const i=l(e)[t].apply(e,s);return _e(),Ie(),i}const rt=Qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(F));function at(e){F(e)||(e=String(e));const t=l(this);return w(t,"has",e),t.hasOwnProperty(e)}class Pe{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(n?r?He:Ke:r?je:Le).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const a=y(t);if(!n){let o;if(a&&(o=nt[s]))return o;if(s==="hasOwnProperty")return at}const f=Reflect.get(t,s,R(t)?t:i);return(F(s)?Me.has(s):rt(s))||(n||w(t,"get",s),r)?f:R(f)?a&&de(s)?f:f.value:j(f)?n?We(f):Ce(f):f}}class Oe extends Pe{constructor(t=!1){super(!1,t)}set(t,s,i,n){let r=t[s];if(!this._isShallow){const o=O(r);if(!S(i)&&!O(i)&&(r=l(r),i=l(i)),!y(t)&&R(r)&&!R(i))return o?!1:(r.value=i,!0)}const a=y(t)&&de(s)?Number(s)<t.length:$(t,s),f=Reflect.set(t,s,i,R(t)?t:n);return t===l(n)&&(a?I(i,r)&&T(t,"set",s,i):T(t,"add",s,i)),f}deleteProperty(t,s){const i=$(t,s);t[s];const n=Reflect.deleteProperty(t,s);return n&&i&&T(t,"delete",s,void 0),n}has(t,s){const i=Reflect.has(t,s);return(!F(s)||!Me.has(s))&&w(t,"has",s),i}ownKeys(t){return w(t,"iterate",y(t)?"length":P),Reflect.ownKeys(t)}}class Ae extends Pe{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ft=new Oe,ot=new Ae,ct=new Oe(!0),ut=new Ae(!0),le=e=>e,Q=e=>Reflect.getPrototypeOf(e);function lt(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),a=C(r),f=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,p=n[e](...i),c=s?le:t?he:v;return!t&&w(r,"iterate",o?ue:P),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:f?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ht(e,t){const s={get(n){const r=this.__v_raw,a=l(r),f=l(n);e||(I(n,f)&&w(a,"get",n),w(a,"get",f));const{has:o}=Q(a),p=t?le:e?he:v;if(o.call(a,n))return p(r.get(n));if(o.call(a,f))return p(r.get(f));r!==a&&r.get(n)},get size(){const n=this.__v_raw;return!e&&w(l(n),"iterate",P),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,a=l(r),f=l(n);return e||(I(n,f)&&w(a,"has",n),w(a,"has",f)),n===f?r.has(n):r.has(n)||r.has(f)},forEach(n,r){const a=this,f=a.__v_raw,o=l(f),p=t?le:e?he:v;return!e&&w(o,"iterate",P),f.forEach((c,d)=>n.call(r,p(c),p(d),a))}};return ze(s,e?{add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear")}:{add(n){!t&&!S(n)&&!O(n)&&(n=l(n));const r=l(this);return Q(r).has.call(r,n)||(r.add(n),T(r,"add",n,n)),this},set(n,r){!t&&!S(r)&&!O(r)&&(r=l(r));const a=l(this),{has:f,get:o}=Q(a);let p=f.call(a,n);p||(n=l(n),p=f.call(a,n));const c=o.call(a,n);return a.set(n,r),p?I(r,c)&&T(a,"set",n,r):T(a,"add",n,r),this},delete(n){const r=l(this),{has:a,get:f}=Q(r);let o=a.call(r,n);o||(n=l(n),o=a.call(r,n)),f&&f.call(r,n);const p=r.delete(n);return o&&T(r,"delete",n,void 0),p},clear(){const n=l(this),r=n.size!==0,a=n.clear();return r&&T(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=lt(n,e,t)}),s}function se(e,t){const s=ht(e,t);return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get($(s,n)&&n in i?s:i,n,r)}const dt={get:se(!1,!1)},pt={get:se(!1,!0)},_t={get:se(!0,!1)},gt={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function vt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wt(e){return e.__v_skip||!Object.isExtensible(e)?0:vt(Be(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,dt,Le)}function Ot(e){return ne(e,!1,ct,pt,je)}function We(e){return ne(e,!0,ot,_t,Ke)}function At(e){return ne(e,!0,ut,gt,He)}function ne(e,t,s,i,n){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const a=wt(e);if(a===0)return e;const f=new Proxy(e,a===2?i:s);return n.set(e,f),f}function N(e){return O(e)?N(e.__v_raw):!!(e&&e.__v_isReactive)}function O(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function Rt(e){return e?!!e.__v_raw:!1}function l(e){const t=e&&e.__v_raw;return t?l(t):e}function Lt(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&Ge(e,"__v_skip",!0),e}const v=e=>j(e)?Ce(e):e,he=e=>j(e)?We(e):e;function R(e){return e?e.__v_isRef===!0:!1}function bt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new St(e,t)}class St{constructor(t,s){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:l(t),this._value=s?t:v(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||S(t)||O(t);t=i?t:l(t),I(t,s)&&(this._rawValue=t,this._value=i?t:v(t),this.dep.trigger())}}function Ne(e){return R(e)?e.value:e}function Kt(e){return Y(e)?e():Ne(e)}const mt={get:(e,t,s)=>t==="__v_raw"?e:Ne(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return R(n)&&!R(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function Ht(e){return N(e)?e:new Proxy(e,mt)}class xt{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new te,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ct(e){return new xt(e)}function Wt(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ye(e,s);return t}class yt{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return st(l(this._object),this._key)}}class Tt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Vt(e,t,s){return R(e)?e:Y(e)?new Tt(e):j(e)&&arguments.length>1?Ye(e,t,s):bt(e)}function Ye(e,t,s){const i=e[t];return R(i)?i:new yt(e,t,s)}class Dt{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=z-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return Se(this,!0),!0}get value(){const t=this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nt(e,t,s=!1){let i,n;return Y(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const Z={},ee=new WeakMap;let M;function It(e,t=!1,s=M){if(s){let i=ee.get(s);i||ee.set(s,i=[]),i.push(e)}}function Yt(e,t,s=Fe){const{immediate:i,deep:n,once:r,scheduler:a,augmentJob:f,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,G,J=!1,U=!1;if(R(e)?(d=()=>e.value,J=S(e)):N(e)?(d=()=>p(e),J=!0):y(e)?(U=!0,J=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Y(u))return o?o(u,2):u()})):Y(e)?t?d=o?()=>o(e,2):e:d=()=>{if(_){De();try{_()}finally{Ie()}}const u=M;M=c;try{return o?o(e,3,[G]):e(G)}finally{M=u}}:d=qe,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=$e(),A=()=>{c.stop(),ie&&ie.active&&Xe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=U?new Array(e.length).fill(Z):Z;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||J||(U?m.some((re,q)=>I(re,E[q])):I(m,E))){_&&_();const re=M;M=c;try{const q=[m,E===Z?void 0:U&&E[0]===Z?[]:E,G];o?o(t,3,q):t(...q),E=m}finally{M=re}}}else c.run()};return f&&f(K),c=new ke(d),c.scheduler=a?()=>a(K,!1):K,G=u=>It(u,!1,c),_=c.onStop=()=>{const u=ee.get(c);if(u){if(o)o(u,4);else for(const m of u)m();ee.delete(c)}},t?i?K(!0):E=c.run():a?a(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,R(e))D(e.value,t,s);else if(y(e))for(let i=0;i<e.length;i++)D(e[i],t,s);else if(Je(e)||C(e))e.forEach(i=>{D(i,t,s)});else if(Ue(e)){for(const i in e)D(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&D(e[i],t,s)}return e}export{N as A,Ze as E,ke as R,R as a,De as b,Nt as c,l as d,Ce as e,w as f,Ot as g,T as h,Rt as i,At as j,bt as k,Kt as l,Lt as m,We as n,Vt as o,Ht as p,Ct as q,Ie as r,jt as s,D as t,$e as u,Pt as v,Yt as w,Wt as x,Ne as y,Mt as z};