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

6 lines
16 KiB
JavaScript

import{i as B,a as j,h as I,e as Ye,t as ze,b as y,c as Z,E as Be,d as de,f as $,g as Fe,j as Ge,k as C,l as Je,N as Ue,m as qe,r as Qe}from"./@vue_shared@3.5.13-DbMIZLZJ.js";/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let g;class Xe{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 Xe(e)}function Ze(){return g}function Pt(e,t=!1){g&&g.cleanups.push(e)}let h;const fe=new WeakSet;class $e{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,fe.has(this)&&(fe.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?fe.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),ke(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===Y))return;e.globalVersion=Y;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 ke(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 Y=0;class et{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 et(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++,Y++,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(""),z=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 f=k.get(e);if(!f){Y++;return}const a=o=>{o&&o.trigger()};if(pe(),t==="clear")f.forEach(a);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);f.forEach((d,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(d)})}else switch((s!==void 0||f.has(void 0))&&a(f.get(s)),p&&a(f.get(z)),t){case"add":o?p&&a(f.get("length")):(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"delete":o||(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"set":C(e)&&a(f.get(P));break}}_e()}function tt(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",z),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",z),e}const st={__proto__:null,[Symbol.iterator](){return ae(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return ae(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 ae(this,"values",v)}};function ae(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 nt=Array.prototype;function x(e,t,s,i,n,r){const f=ve(e),a=f!==e&&!S(e),o=f[t];if(o!==nt[t]){const d=o.apply(e,r);return a?v(d):d}let p=s;f!==e&&(a?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(f,p,i);return a&&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(f,a,o){return s.call(this,f,a,o,e)}):r=function(f,a,o){return s.call(this,f,v(a),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",z);const n=i[t](...s);return(n===-1||n===!1)&&wt(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 it=qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(B));function rt(e){B(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 f=y(t);if(!n){let o;if(f&&(o=st[s]))return o;if(s==="hasOwnProperty")return rt}const a=Reflect.get(t,s,R(t)?t:i);return(B(s)?Me.has(s):it(s))||(n||w(t,"get",s),r)?a:R(a)?f&&de(s)?a:a.value:j(a)?n?We(a):Ce(a):a}}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 f=y(t)&&de(s)?Number(s)<t.length:$(t,s),a=Reflect.set(t,s,i,R(t)?t:n);return t===l(n)&&(f?I(i,r)&&T(t,"set",s,i):T(t,"add",s,i)),a}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(!B(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,at=new Ae,ot=new Oe(!0),ct=new Ae(!0),le=e=>e,q=e=>Reflect.getPrototypeOf(e);function ut(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),f=C(r),a=e==="entries"||e===Symbol.iterator&&f,o=e==="keys"&&f,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:a?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function Q(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lt(e,t){const s={get(n){const r=this.__v_raw,f=l(r),a=l(n);e||(I(n,a)&&w(f,"get",n),w(f,"get",a));const{has:o}=q(f),p=t?le:e?he:v;if(o.call(f,n))return p(r.get(n));if(o.call(f,a))return p(r.get(a));r!==f&&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,f=l(r),a=l(n);return e||(I(n,a)&&w(f,"has",n),w(f,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const f=this,a=f.__v_raw,o=l(a),p=t?le:e?he:v;return!e&&w(o,"iterate",P),a.forEach((c,d)=>n.call(r,p(c),p(d),f))}};return Ye(s,e?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("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 f=l(this),{has:a,get:o}=q(f);let p=a.call(f,n);p||(n=l(n),p=a.call(f,n));const c=o.call(f,n);return f.set(n,r),p?I(r,c)&&T(f,"set",n,r):T(f,"add",n,r),this},delete(n){const r=l(this),{has:f,get:a}=q(r);let o=f.call(r,n);o||(n=l(n),o=f.call(r,n)),a&&a.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,f=n.clear();return r&&T(n,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ut(n,e,t)}),s}function se(e,t){const s=lt(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 ht={get:se(!1,!1)},dt={get:se(!1,!0)},pt={get:se(!0,!1)},_t={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function gt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vt(e){return e.__v_skip||!Object.isExtensible(e)?0:gt(ze(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,ht,Le)}function Ot(e){return ne(e,!1,ot,dt,je)}function We(e){return ne(e,!0,at,pt,Ke)}function At(e){return ne(e,!0,ct,_t,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 f=vt(e);if(f===0)return e;const a=new Proxy(e,f===2?i:s);return n.set(e,a),a}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 wt(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)&&Fe(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 Rt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new bt(e,t)}class bt{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 St(e){return R(e)?e.value:e}const mt={get:(e,t,s)=>t==="__v_raw"?e:St(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 Kt(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 Ht(e){return new xt(e)}function Ct(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ne(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 tt(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 Wt(e,t,s){return R(e)?e:Z(e)?new Tt(e):j(e)&&arguments.length>1?Ne(e,t,s):Rt(e)}function Ne(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=Y-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 Vt(e,t,s=!1){let i,n;return Z(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const X={},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 Nt(e,t,s=Be){const{immediate:i,deep:n,once:r,scheduler:f,augmentJob:a,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,F,G=!1,J=!1;if(R(e)?(d=()=>e.value,G=S(e)):N(e)?(d=()=>p(e),G=!0):y(e)?(J=!0,G=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Z(u))return o?o(u,2):u()})):Z(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,[F]):e(F)}finally{M=u}}:d=Ue,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=Ze(),A=()=>{c.stop(),ie&&ie.active&&Qe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=J?new Array(e.length).fill(X):X;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||G||(J?m.some((re,U)=>I(re,E[U])):I(m,E))){_&&_();const re=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];o?o(t,3,U):t(...U),E=m}finally{M=re}}}else c.run()};return a&&a(K),c=new $e(d),c.scheduler=f?()=>f(K,!1):K,F=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():f?f(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(Ge(e)||C(e))e.forEach(i=>{D(i,t,s)});else if(Je(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{Xe as E,$e as R,R as a,De as b,Vt as c,l as d,Ce as e,w as f,Ot as g,T as h,wt as i,At as j,Rt as k,We as l,Lt as m,Wt as n,Ht as o,Kt as p,Ze as q,Ie as r,jt as s,D as t,St as u,Pt as v,Nt as w,Ct as x,Mt as y,N as z};