@vue/reactivity 3.2.33 → 3.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reactivity.cjs.js +43 -22
- package/dist/reactivity.cjs.prod.js +36 -18
- package/dist/reactivity.d.ts +8 -2
- package/dist/reactivity.esm-browser.js +39 -21
- package/dist/reactivity.esm-browser.prod.js +1 -1
- package/dist/reactivity.esm-bundler.js +39 -21
- package/dist/reactivity.global.js +39 -21
- package/dist/reactivity.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/reactivity.cjs.js
CHANGED
|
@@ -289,7 +289,10 @@ function trackEffects(dep, debuggerEventExtraInfo) {
|
|
|
289
289
|
dep.add(activeEffect);
|
|
290
290
|
activeEffect.deps.push(dep);
|
|
291
291
|
if (activeEffect.onTrack) {
|
|
292
|
-
activeEffect.onTrack(
|
|
292
|
+
activeEffect.onTrack({
|
|
293
|
+
effect: activeEffect,
|
|
294
|
+
...debuggerEventExtraInfo
|
|
295
|
+
});
|
|
293
296
|
}
|
|
294
297
|
}
|
|
295
298
|
}
|
|
@@ -369,17 +372,28 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
369
372
|
}
|
|
370
373
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
371
374
|
// spread into array for stabilization
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
375
|
+
const effects = shared.isArray(dep) ? dep : [...dep];
|
|
376
|
+
for (const effect of effects) {
|
|
377
|
+
if (effect.computed) {
|
|
378
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
for (const effect of effects) {
|
|
382
|
+
if (!effect.computed) {
|
|
383
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
388
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
389
|
+
if (effect.onTrigger) {
|
|
390
|
+
effect.onTrigger(shared.extend({ effect }, debuggerEventExtraInfo));
|
|
391
|
+
}
|
|
392
|
+
if (effect.scheduler) {
|
|
393
|
+
effect.scheduler();
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
effect.run();
|
|
383
397
|
}
|
|
384
398
|
}
|
|
385
399
|
}
|
|
@@ -388,6 +402,10 @@ const isNonTrackableKeys = /*#__PURE__*/ shared.makeMap(`__proto__,__v_isRef,__i
|
|
|
388
402
|
const builtInSymbols = new Set(
|
|
389
403
|
/*#__PURE__*/
|
|
390
404
|
Object.getOwnPropertyNames(Symbol)
|
|
405
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
406
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
407
|
+
// function
|
|
408
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
391
409
|
.map(key => Symbol[key])
|
|
392
410
|
.filter(shared.isSymbol));
|
|
393
411
|
const get = /*#__PURE__*/ createGetter();
|
|
@@ -461,9 +479,8 @@ function createGetter(isReadonly = false, shallow = false) {
|
|
|
461
479
|
return res;
|
|
462
480
|
}
|
|
463
481
|
if (isRef(res)) {
|
|
464
|
-
// ref unwrapping -
|
|
465
|
-
|
|
466
|
-
return shouldUnwrap ? res.value : res;
|
|
482
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
483
|
+
return targetIsArray && shared.isIntegerKey(key) ? res : res.value;
|
|
467
484
|
}
|
|
468
485
|
if (shared.isObject(res)) {
|
|
469
486
|
// Convert returned value into a proxy as well. we do the isObject check
|
|
@@ -569,10 +586,12 @@ function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
|
569
586
|
target = target["__v_raw" /* RAW */];
|
|
570
587
|
const rawTarget = toRaw(target);
|
|
571
588
|
const rawKey = toRaw(key);
|
|
572
|
-
if (
|
|
573
|
-
|
|
589
|
+
if (!isReadonly) {
|
|
590
|
+
if (key !== rawKey) {
|
|
591
|
+
track(rawTarget, "get" /* GET */, key);
|
|
592
|
+
}
|
|
593
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
574
594
|
}
|
|
575
|
-
!isReadonly && track(rawTarget, "get" /* GET */, rawKey);
|
|
576
595
|
const { has } = getProto(rawTarget);
|
|
577
596
|
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
578
597
|
if (has.call(rawTarget, key)) {
|
|
@@ -591,10 +610,12 @@ function has$1(key, isReadonly = false) {
|
|
|
591
610
|
const target = this["__v_raw" /* RAW */];
|
|
592
611
|
const rawTarget = toRaw(target);
|
|
593
612
|
const rawKey = toRaw(key);
|
|
594
|
-
if (
|
|
595
|
-
|
|
613
|
+
if (!isReadonly) {
|
|
614
|
+
if (key !== rawKey) {
|
|
615
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
616
|
+
}
|
|
617
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
596
618
|
}
|
|
597
|
-
!isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
|
|
598
619
|
return key === rawKey
|
|
599
620
|
? target.has(key)
|
|
600
621
|
: target.has(key) || target.has(rawKey);
|
|
@@ -920,7 +941,7 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
920
941
|
if (existingProxy) {
|
|
921
942
|
return existingProxy;
|
|
922
943
|
}
|
|
923
|
-
// only
|
|
944
|
+
// only specific value types can be observed.
|
|
924
945
|
const targetType = getTargetType(target);
|
|
925
946
|
if (targetType === 0 /* INVALID */) {
|
|
926
947
|
return target;
|
|
@@ -351,14 +351,25 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
351
351
|
}
|
|
352
352
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
353
353
|
// spread into array for stabilization
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
354
|
+
const effects = shared.isArray(dep) ? dep : [...dep];
|
|
355
|
+
for (const effect of effects) {
|
|
356
|
+
if (effect.computed) {
|
|
357
|
+
triggerEffect(effect);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
for (const effect of effects) {
|
|
361
|
+
if (!effect.computed) {
|
|
362
|
+
triggerEffect(effect);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
367
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
368
|
+
if (effect.scheduler) {
|
|
369
|
+
effect.scheduler();
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
effect.run();
|
|
362
373
|
}
|
|
363
374
|
}
|
|
364
375
|
}
|
|
@@ -367,6 +378,10 @@ const isNonTrackableKeys = /*#__PURE__*/ shared.makeMap(`__proto__,__v_isRef,__i
|
|
|
367
378
|
const builtInSymbols = new Set(
|
|
368
379
|
/*#__PURE__*/
|
|
369
380
|
Object.getOwnPropertyNames(Symbol)
|
|
381
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
382
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
383
|
+
// function
|
|
384
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
370
385
|
.map(key => Symbol[key])
|
|
371
386
|
.filter(shared.isSymbol));
|
|
372
387
|
const get = /*#__PURE__*/ createGetter();
|
|
@@ -440,9 +455,8 @@ function createGetter(isReadonly = false, shallow = false) {
|
|
|
440
455
|
return res;
|
|
441
456
|
}
|
|
442
457
|
if (isRef(res)) {
|
|
443
|
-
// ref unwrapping -
|
|
444
|
-
|
|
445
|
-
return shouldUnwrap ? res.value : res;
|
|
458
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
459
|
+
return targetIsArray && shared.isIntegerKey(key) ? res : res.value;
|
|
446
460
|
}
|
|
447
461
|
if (shared.isObject(res)) {
|
|
448
462
|
// Convert returned value into a proxy as well. we do the isObject check
|
|
@@ -542,10 +556,12 @@ function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
|
542
556
|
target = target["__v_raw" /* RAW */];
|
|
543
557
|
const rawTarget = toRaw(target);
|
|
544
558
|
const rawKey = toRaw(key);
|
|
545
|
-
if (
|
|
546
|
-
|
|
559
|
+
if (!isReadonly) {
|
|
560
|
+
if (key !== rawKey) {
|
|
561
|
+
track(rawTarget, "get" /* GET */, key);
|
|
562
|
+
}
|
|
563
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
547
564
|
}
|
|
548
|
-
!isReadonly && track(rawTarget, "get" /* GET */, rawKey);
|
|
549
565
|
const { has } = getProto(rawTarget);
|
|
550
566
|
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
551
567
|
if (has.call(rawTarget, key)) {
|
|
@@ -564,10 +580,12 @@ function has$1(key, isReadonly = false) {
|
|
|
564
580
|
const target = this["__v_raw" /* RAW */];
|
|
565
581
|
const rawTarget = toRaw(target);
|
|
566
582
|
const rawKey = toRaw(key);
|
|
567
|
-
if (
|
|
568
|
-
|
|
583
|
+
if (!isReadonly) {
|
|
584
|
+
if (key !== rawKey) {
|
|
585
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
586
|
+
}
|
|
587
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
569
588
|
}
|
|
570
|
-
!isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
|
|
571
589
|
return key === rawKey
|
|
572
590
|
? target.has(key)
|
|
573
591
|
: target.has(key) || target.has(rawKey);
|
|
@@ -865,7 +883,7 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
865
883
|
if (existingProxy) {
|
|
866
884
|
return existingProxy;
|
|
867
885
|
}
|
|
868
|
-
// only
|
|
886
|
+
// only specific value types can be observed.
|
|
869
887
|
const targetType = getTargetType(target);
|
|
870
888
|
if (targetType === 0 /* INVALID */) {
|
|
871
889
|
return target;
|
package/dist/reactivity.d.ts
CHANGED
|
@@ -106,7 +106,9 @@ declare type IterableCollections = Map<any, any> | Set<any>;
|
|
|
106
106
|
|
|
107
107
|
export declare const ITERATE_KEY: unique symbol;
|
|
108
108
|
|
|
109
|
-
export declare function markRaw<T extends object>(value: T): T
|
|
109
|
+
export declare function markRaw<T extends object>(value: T): T & {
|
|
110
|
+
[RawSymbol]?: true;
|
|
111
|
+
};
|
|
110
112
|
|
|
111
113
|
export declare function onScopeDispose(fn: () => void): void;
|
|
112
114
|
|
|
@@ -116,6 +118,8 @@ declare type Primitive = string | number | boolean | bigint | symbol | undefined
|
|
|
116
118
|
|
|
117
119
|
export declare function proxyRefs<T extends object>(objectWithRefs: T): ShallowUnwrapRef<T>;
|
|
118
120
|
|
|
121
|
+
declare const RawSymbol: unique symbol;
|
|
122
|
+
|
|
119
123
|
/**
|
|
120
124
|
* Creates a reactive copy of the original object.
|
|
121
125
|
*
|
|
@@ -319,7 +323,9 @@ export declare type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>
|
|
|
319
323
|
|
|
320
324
|
export declare type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
|
|
321
325
|
|
|
322
|
-
declare type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
|
|
326
|
+
declare type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
|
|
327
|
+
[RawSymbol]?: true;
|
|
328
|
+
} ? T : T extends Array<any> ? {
|
|
323
329
|
[K in keyof T]: UnwrapRefSimple<T[K]>;
|
|
324
330
|
} : T extends object & {
|
|
325
331
|
[ShallowReactiveMarker]?: never;
|
|
@@ -422,17 +422,28 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
422
422
|
}
|
|
423
423
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
424
424
|
// spread into array for stabilization
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
425
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
426
|
+
for (const effect of effects) {
|
|
427
|
+
if (effect.computed) {
|
|
428
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
for (const effect of effects) {
|
|
432
|
+
if (!effect.computed) {
|
|
433
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
438
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
439
|
+
if (effect.onTrigger) {
|
|
440
|
+
effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));
|
|
441
|
+
}
|
|
442
|
+
if (effect.scheduler) {
|
|
443
|
+
effect.scheduler();
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
effect.run();
|
|
436
447
|
}
|
|
437
448
|
}
|
|
438
449
|
}
|
|
@@ -441,6 +452,10 @@ const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
|
441
452
|
const builtInSymbols = new Set(
|
|
442
453
|
/*#__PURE__*/
|
|
443
454
|
Object.getOwnPropertyNames(Symbol)
|
|
455
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
456
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
457
|
+
// function
|
|
458
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
444
459
|
.map(key => Symbol[key])
|
|
445
460
|
.filter(isSymbol));
|
|
446
461
|
const get = /*#__PURE__*/ createGetter();
|
|
@@ -514,9 +529,8 @@ function createGetter(isReadonly = false, shallow = false) {
|
|
|
514
529
|
return res;
|
|
515
530
|
}
|
|
516
531
|
if (isRef(res)) {
|
|
517
|
-
// ref unwrapping -
|
|
518
|
-
|
|
519
|
-
return shouldUnwrap ? res.value : res;
|
|
532
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
533
|
+
return targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
520
534
|
}
|
|
521
535
|
if (isObject(res)) {
|
|
522
536
|
// Convert returned value into a proxy as well. we do the isObject check
|
|
@@ -622,10 +636,12 @@ function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
|
622
636
|
target = target["__v_raw" /* RAW */];
|
|
623
637
|
const rawTarget = toRaw(target);
|
|
624
638
|
const rawKey = toRaw(key);
|
|
625
|
-
if (
|
|
626
|
-
|
|
639
|
+
if (!isReadonly) {
|
|
640
|
+
if (key !== rawKey) {
|
|
641
|
+
track(rawTarget, "get" /* GET */, key);
|
|
642
|
+
}
|
|
643
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
627
644
|
}
|
|
628
|
-
!isReadonly && track(rawTarget, "get" /* GET */, rawKey);
|
|
629
645
|
const { has } = getProto(rawTarget);
|
|
630
646
|
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
631
647
|
if (has.call(rawTarget, key)) {
|
|
@@ -644,10 +660,12 @@ function has$1(key, isReadonly = false) {
|
|
|
644
660
|
const target = this["__v_raw" /* RAW */];
|
|
645
661
|
const rawTarget = toRaw(target);
|
|
646
662
|
const rawKey = toRaw(key);
|
|
647
|
-
if (
|
|
648
|
-
|
|
663
|
+
if (!isReadonly) {
|
|
664
|
+
if (key !== rawKey) {
|
|
665
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
666
|
+
}
|
|
667
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
649
668
|
}
|
|
650
|
-
!isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
|
|
651
669
|
return key === rawKey
|
|
652
670
|
? target.has(key)
|
|
653
671
|
: target.has(key) || target.has(rawKey);
|
|
@@ -973,7 +991,7 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
973
991
|
if (existingProxy) {
|
|
974
992
|
return existingProxy;
|
|
975
993
|
}
|
|
976
|
-
// only
|
|
994
|
+
// only specific value types can be observed.
|
|
977
995
|
const targetType = getTargetType(target);
|
|
978
996
|
if (targetType === 0 /* INVALID */) {
|
|
979
997
|
return target;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const e=()=>{},n=Object.assign,s=Object.prototype.hasOwnProperty,i=(t,e)=>s.call(t,e),r=Array.isArray,c=t=>"[object Map]"===l(t),o=t=>"symbol"==typeof t,u=t=>null!==t&&"object"==typeof t,h=Object.prototype.toString,l=t=>h.call(t),a=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,f=(t,e)=>!Object.is(t,e);let _;class p{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&_&&(this.parent=_,this.index=(_.scopes||(_.scopes=[])).push(this)-1)}run(t){if(this.active){const e=_;try{return _=this,t()}finally{_=e}}}on(){_=this}off(){_=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function d(t){return new p(t)}function v(t,e=_){e&&e.active&&e.effects.push(t)}function g(){return _}function y(t){_&&_.cleanups.push(t)}const w=t=>{const e=new Set(t);return e.w=0,e.n=0,e},b=t=>(t.w&k)>0,R=t=>(t.n&k)>0,S=new WeakMap;let m=0,k=1;let j;const O=Symbol(""),x=Symbol("");class E{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,v(this,n)}run(){if(!this.active)return this.fn();let t=j,e=W;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=j,j=this,W=!0,k=1<<++m,m<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=k})(this):P(this),this.fn()}finally{m<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const i=e[s];b(i)&&!R(i)?i.delete(t):e[n++]=i,i.w&=~k,i.n&=~k}e.length=n}})(this),k=1<<--m,j=this.parent,W=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){j===this?this.deferStop=!0:this.active&&(P(this),this.onStop&&this.onStop(),this.active=!1)}}function P(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}function M(t,e){t.effect&&(t=t.effect.fn);const s=new E(t);e&&(n(s,e),e.scope&&v(s,e.scope)),e&&e.lazy||s.run();const i=s.run.bind(s);return i.effect=s,i}function z(t){t.effect.stop()}let W=!0;const V=[];function A(){V.push(W),W=!1}function N(){V.push(W),W=!0}function I(){const t=V.pop();W=void 0===t||t}function K(t,e,n){if(W&&j){let e=S.get(t);e||S.set(t,e=new Map);let s=e.get(n);s||e.set(n,s=w()),C(s)}}function C(t,e){let n=!1;m<=30?R(t)||(t.n|=k,n=!b(t)):n=!t.has(j),n&&(t.add(j),j.deps.push(t))}function L(t,e,n,s,i,o){const u=S.get(t);if(!u)return;let h=[];if("clear"===e)h=[...u.values()];else if("length"===n&&r(t))u.forEach(((t,e)=>{("length"===e||e>=s)&&h.push(t)}));else switch(void 0!==n&&h.push(u.get(n)),e){case"add":r(t)?a(n)&&h.push(u.get("length")):(h.push(u.get(O)),c(t)&&h.push(u.get(x)));break;case"delete":r(t)||(h.push(u.get(O)),c(t)&&h.push(u.get(x)));break;case"set":c(t)&&h.push(u.get(O))}if(1===h.length)h[0]&&q(h[0]);else{const t=[];for(const e of h)e&&t.push(...e);q(w(t))}}function q(t,e){for(const n of r(t)?t:[...t])(n!==j||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const B=t("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(o)),F=U(),G=U(!1,!0),H=U(!0),J=U(!0,!0),Q=T();function T(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Kt(this);for(let e=0,i=this.length;e<i;e++)K(n,0,e+"");const s=n[e](...t);return-1===s||!1===s?n[e](...t.map(Kt)):s}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){A();const n=Kt(this)[e].apply(this,t);return I(),n}})),t}function U(t=!1,e=!1){return function(n,s,c){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_isShallow"===s)return e;if("__v_raw"===s&&c===(t?e?Ot:jt:e?kt:mt).get(n))return n;const h=r(n);if(!t&&h&&i(Q,s))return Reflect.get(Q,s,c);const l=Reflect.get(n,s,c);if(o(s)?D.has(s):B(s))return l;if(t||K(n,0,s),e)return l;if(Ft(l)){return!h||!a(s)?l.value:l}return u(l)?t?Mt(l):Et(l):l}}function X(t=!1){return function(e,n,s,c){let o=e[n];if(At(o)&&Ft(o)&&!Ft(s))return!1;if(!t&&!At(s)&&(Nt(s)||(s=Kt(s),o=Kt(o)),!r(e)&&Ft(o)&&!Ft(s)))return o.value=s,!0;const u=r(e)&&a(n)?Number(n)<e.length:i(e,n),h=Reflect.set(e,n,s,c);return e===Kt(c)&&(u?f(s,o)&&L(e,"set",n,s):L(e,"add",n,s)),h}}const Y={get:F,set:X(),deleteProperty:function(t,e){const n=i(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&L(t,"delete",e,void 0),s},has:function(t,e){const n=Reflect.has(t,e);return o(e)&&D.has(e)||K(t,0,e),n},ownKeys:function(t){return K(t,0,r(t)?"length":O),Reflect.ownKeys(t)}},Z={get:H,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},$=n({},Y,{get:G,set:X(!0)}),tt=n({},Z,{get:J}),et=t=>t,nt=t=>Reflect.getPrototypeOf(t);function st(t,e,n=!1,s=!1){const i=Kt(t=t.__v_raw),r=Kt(e);e!==r&&!n&&K(i,0,e),!n&&K(i,0,r);const{has:c}=nt(i),o=s?et:n?qt:Lt;return c.call(i,e)?o(t.get(e)):c.call(i,r)?o(t.get(r)):void(t!==i&&t.get(e))}function it(t,e=!1){const n=this.__v_raw,s=Kt(n),i=Kt(t);return t!==i&&!e&&K(s,0,t),!e&&K(s,0,i),t===i?n.has(t):n.has(t)||n.has(i)}function rt(t,e=!1){return t=t.__v_raw,!e&&K(Kt(t),0,O),Reflect.get(t,"size",t)}function ct(t){t=Kt(t);const e=Kt(this);return nt(e).has.call(e,t)||(e.add(t),L(e,"add",t,t)),this}function ot(t,e){e=Kt(e);const n=Kt(this),{has:s,get:i}=nt(n);let r=s.call(n,t);r||(t=Kt(t),r=s.call(n,t));const c=i.call(n,t);return n.set(t,e),r?f(e,c)&&L(n,"set",t,e):L(n,"add",t,e),this}function ut(t){const e=Kt(this),{has:n,get:s}=nt(e);let i=n.call(e,t);i||(t=Kt(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&L(e,"delete",t,void 0),r}function ht(){const t=Kt(this),e=0!==t.size,n=t.clear();return e&&L(t,"clear",void 0,void 0),n}function lt(t,e){return function(n,s){const i=this,r=i.__v_raw,c=Kt(r),o=e?et:t?qt:Lt;return!t&&K(c,0,O),r.forEach(((t,e)=>n.call(s,o(t),o(e),i)))}}function at(t,e,n){return function(...s){const i=this.__v_raw,r=Kt(i),o=c(r),u="entries"===t||t===Symbol.iterator&&o,h="keys"===t&&o,l=i[t](...s),a=n?et:e?qt:Lt;return!e&&K(r,0,h?x:O),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[a(t[0]),a(t[1])]:a(t),done:e}},[Symbol.iterator](){return this}}}}function ft(t){return function(...e){return"delete"!==t&&this}}function _t(){const t={get(t){return st(this,t)},get size(){return rt(this)},has:it,add:ct,set:ot,delete:ut,clear:ht,forEach:lt(!1,!1)},e={get(t){return st(this,t,!1,!0)},get size(){return rt(this)},has:it,add:ct,set:ot,delete:ut,clear:ht,forEach:lt(!1,!0)},n={get(t){return st(this,t,!0)},get size(){return rt(this,!0)},has(t){return it.call(this,t,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:lt(!0,!1)},s={get(t){return st(this,t,!0,!0)},get size(){return rt(this,!0)},has(t){return it.call(this,t,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=at(i,!1,!1),n[i]=at(i,!0,!1),e[i]=at(i,!1,!0),s[i]=at(i,!0,!0)})),[t,n,e,s]}const[pt,dt,vt,gt]=_t();function yt(t,e){const n=e?t?gt:vt:t?dt:pt;return(e,s,r)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(i(n,s)&&s in e?n:e,s,r)}const wt={get:yt(!1,!1)},bt={get:yt(!1,!0)},Rt={get:yt(!0,!1)},St={get:yt(!0,!0)},mt=new WeakMap,kt=new WeakMap,jt=new WeakMap,Ot=new WeakMap;function xt(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>l(t).slice(8,-1))(t))}function Et(t){return At(t)?t:Wt(t,!1,Y,wt,mt)}function Pt(t){return Wt(t,!1,$,bt,kt)}function Mt(t){return Wt(t,!0,Z,Rt,jt)}function zt(t){return Wt(t,!0,tt,St,Ot)}function Wt(t,e,n,s,i){if(!u(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const c=xt(t);if(0===c)return t;const o=new Proxy(t,2===c?s:n);return i.set(t,o),o}function Vt(t){return At(t)?Vt(t.__v_raw):!(!t||!t.__v_isReactive)}function At(t){return!(!t||!t.__v_isReadonly)}function Nt(t){return!(!t||!t.__v_isShallow)}function It(t){return Vt(t)||At(t)}function Kt(t){const e=t&&t.__v_raw;return e?Kt(e):t}function Ct(t){return((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t}const Lt=t=>u(t)?Et(t):t,qt=t=>u(t)?Mt(t):t;function Bt(t){W&&j&&C((t=Kt(t)).dep||(t.dep=w()))}function Dt(t,e){(t=Kt(t)).dep&&q(t.dep)}function Ft(t){return!(!t||!0!==t.__v_isRef)}function Gt(t){return Jt(t,!1)}function Ht(t){return Jt(t,!0)}function Jt(t,e){return Ft(t)?t:new Qt(t,e)}class Qt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Kt(t),this._value=e?t:Lt(t)}get value(){return Bt(this),this._value}set value(t){t=this.__v_isShallow?t:Kt(t),f(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Lt(t),Dt(this))}}function Tt(t){Dt(t)}function Ut(t){return Ft(t)?t.value:t}const Xt={get:(t,e,n)=>Ut(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Ft(i)&&!Ft(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Yt(t){return Vt(t)?t:new Proxy(t,Xt)}class Zt{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Bt(this)),(()=>Dt(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function $t(t){return new Zt(t)}function te(t){const e=r(t)?new Array(t.length):{};for(const n in t)e[n]=ne(t,n);return e}class ee{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ne(t,e,n){const s=t[e];return Ft(s)?s:new ee(t,e,n)}class se{constructor(t,e,n,s){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(()=>{this._dirty||(this._dirty=!0,Dt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Kt(this);return Bt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ie(t,n,s=!1){let i,r;const c="function"==typeof t;c?(i=t,r=e):(i=t.get,r=t.set);return new se(i,r,c||!r,s)}var re;const ce=Promise.resolve(),oe=[];let ue=!1;const he=()=>{for(let t=0;t<oe.length;t++)oe[t]();oe.length=0,ue=!1};class le{constructor(t){let e;this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this[re]=!0;let n=!1,s=!1;this.effect=new E(t,(t=>{if(this.dep){if(t)e=this._value,n=!0;else if(!s){const t=n?e:this._value;s=!0,n=!1,oe.push((()=>{this.effect.active&&this._get()!==t&&Dt(this),s=!1})),ue||(ue=!0,ce.then(he))}for(const t of this.dep)t.computed instanceof le&&t.scheduler(!0)}this._dirty=!0})),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Bt(this),Kt(this)._get()}}function ae(t){return new le(t)}re="__v_isReadonly";export{p as EffectScope,O as ITERATE_KEY,E as ReactiveEffect,ie as computed,$t as customRef,ae as deferredComputed,M as effect,d as effectScope,N as enableTracking,g as getCurrentScope,It as isProxy,Vt as isReactive,At as isReadonly,Ft as isRef,Nt as isShallow,Ct as markRaw,y as onScopeDispose,A as pauseTracking,Yt as proxyRefs,Et as reactive,Mt as readonly,Gt as ref,I as resetTracking,Pt as shallowReactive,zt as shallowReadonly,Ht as shallowRef,z as stop,Kt as toRaw,ne as toRef,te as toRefs,K as track,L as trigger,Tt as triggerRef,Ut as unref};
|
|
1
|
+
function t(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const e=()=>{},n=Object.assign,s=Object.prototype.hasOwnProperty,i=(t,e)=>s.call(t,e),r=Array.isArray,c=t=>"[object Map]"===l(t),o=t=>"symbol"==typeof t,u=t=>null!==t&&"object"==typeof t,h=Object.prototype.toString,l=t=>h.call(t),a=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,f=(t,e)=>!Object.is(t,e);let _;class p{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&_&&(this.parent=_,this.index=(_.scopes||(_.scopes=[])).push(this)-1)}run(t){if(this.active){const e=_;try{return _=this,t()}finally{_=e}}}on(){_=this}off(){_=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function d(t){return new p(t)}function v(t,e=_){e&&e.active&&e.effects.push(t)}function g(){return _}function y(t){_&&_.cleanups.push(t)}const w=t=>{const e=new Set(t);return e.w=0,e.n=0,e},b=t=>(t.w&k)>0,R=t=>(t.n&k)>0,S=new WeakMap;let m=0,k=1;let j;const O=Symbol(""),x=Symbol("");class E{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,v(this,n)}run(){if(!this.active)return this.fn();let t=j,e=W;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=j,j=this,W=!0,k=1<<++m,m<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=k})(this):P(this),this.fn()}finally{m<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const i=e[s];b(i)&&!R(i)?i.delete(t):e[n++]=i,i.w&=~k,i.n&=~k}e.length=n}})(this),k=1<<--m,j=this.parent,W=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){j===this?this.deferStop=!0:this.active&&(P(this),this.onStop&&this.onStop(),this.active=!1)}}function P(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}function M(t,e){t.effect&&(t=t.effect.fn);const s=new E(t);e&&(n(s,e),e.scope&&v(s,e.scope)),e&&e.lazy||s.run();const i=s.run.bind(s);return i.effect=s,i}function z(t){t.effect.stop()}let W=!0;const V=[];function A(){V.push(W),W=!1}function N(){V.push(W),W=!0}function I(){const t=V.pop();W=void 0===t||t}function K(t,e,n){if(W&&j){let e=S.get(t);e||S.set(t,e=new Map);let s=e.get(n);s||e.set(n,s=w()),C(s)}}function C(t,e){let n=!1;m<=30?R(t)||(t.n|=k,n=!b(t)):n=!t.has(j),n&&(t.add(j),j.deps.push(t))}function L(t,e,n,s,i,o){const u=S.get(t);if(!u)return;let h=[];if("clear"===e)h=[...u.values()];else if("length"===n&&r(t))u.forEach(((t,e)=>{("length"===e||e>=s)&&h.push(t)}));else switch(void 0!==n&&h.push(u.get(n)),e){case"add":r(t)?a(n)&&h.push(u.get("length")):(h.push(u.get(O)),c(t)&&h.push(u.get(x)));break;case"delete":r(t)||(h.push(u.get(O)),c(t)&&h.push(u.get(x)));break;case"set":c(t)&&h.push(u.get(O))}if(1===h.length)h[0]&&q(h[0]);else{const t=[];for(const e of h)e&&t.push(...e);q(w(t))}}function q(t,e){const n=r(t)?t:[...t];for(const s of n)s.computed&&B(s);for(const s of n)s.computed||B(s)}function B(t,e){(t!==j||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const D=t("__proto__,__v_isRef,__isVue"),F=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(o)),G=X(),H=X(!1,!0),J=X(!0),Q=X(!0,!0),T=U();function U(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Ct(this);for(let e=0,i=this.length;e<i;e++)K(n,0,e+"");const s=n[e](...t);return-1===s||!1===s?n[e](...t.map(Ct)):s}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){A();const n=Ct(this)[e].apply(this,t);return I(),n}})),t}function X(t=!1,e=!1){return function(n,s,c){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_isShallow"===s)return e;if("__v_raw"===s&&c===(t?e?xt:Ot:e?jt:kt).get(n))return n;const h=r(n);if(!t&&h&&i(T,s))return Reflect.get(T,s,c);const l=Reflect.get(n,s,c);return(o(s)?F.has(s):D(s))?l:(t||K(n,0,s),e?l:Gt(l)?h&&a(s)?l:l.value:u(l)?t?zt(l):Pt(l):l)}}function Y(t=!1){return function(e,n,s,c){let o=e[n];if(Nt(o)&&Gt(o)&&!Gt(s))return!1;if(!t&&!Nt(s)&&(It(s)||(s=Ct(s),o=Ct(o)),!r(e)&&Gt(o)&&!Gt(s)))return o.value=s,!0;const u=r(e)&&a(n)?Number(n)<e.length:i(e,n),h=Reflect.set(e,n,s,c);return e===Ct(c)&&(u?f(s,o)&&L(e,"set",n,s):L(e,"add",n,s)),h}}const Z={get:G,set:Y(),deleteProperty:function(t,e){const n=i(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&L(t,"delete",e,void 0),s},has:function(t,e){const n=Reflect.has(t,e);return o(e)&&F.has(e)||K(t,0,e),n},ownKeys:function(t){return K(t,0,r(t)?"length":O),Reflect.ownKeys(t)}},$={get:J,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},tt=n({},Z,{get:H,set:Y(!0)}),et=n({},$,{get:Q}),nt=t=>t,st=t=>Reflect.getPrototypeOf(t);function it(t,e,n=!1,s=!1){const i=Ct(t=t.__v_raw),r=Ct(e);n||(e!==r&&K(i,0,e),K(i,0,r));const{has:c}=st(i),o=s?nt:n?Bt:qt;return c.call(i,e)?o(t.get(e)):c.call(i,r)?o(t.get(r)):void(t!==i&&t.get(e))}function rt(t,e=!1){const n=this.__v_raw,s=Ct(n),i=Ct(t);return e||(t!==i&&K(s,0,t),K(s,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}function ct(t,e=!1){return t=t.__v_raw,!e&&K(Ct(t),0,O),Reflect.get(t,"size",t)}function ot(t){t=Ct(t);const e=Ct(this);return st(e).has.call(e,t)||(e.add(t),L(e,"add",t,t)),this}function ut(t,e){e=Ct(e);const n=Ct(this),{has:s,get:i}=st(n);let r=s.call(n,t);r||(t=Ct(t),r=s.call(n,t));const c=i.call(n,t);return n.set(t,e),r?f(e,c)&&L(n,"set",t,e):L(n,"add",t,e),this}function ht(t){const e=Ct(this),{has:n,get:s}=st(e);let i=n.call(e,t);i||(t=Ct(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&L(e,"delete",t,void 0),r}function lt(){const t=Ct(this),e=0!==t.size,n=t.clear();return e&&L(t,"clear",void 0,void 0),n}function at(t,e){return function(n,s){const i=this,r=i.__v_raw,c=Ct(r),o=e?nt:t?Bt:qt;return!t&&K(c,0,O),r.forEach(((t,e)=>n.call(s,o(t),o(e),i)))}}function ft(t,e,n){return function(...s){const i=this.__v_raw,r=Ct(i),o=c(r),u="entries"===t||t===Symbol.iterator&&o,h="keys"===t&&o,l=i[t](...s),a=n?nt:e?Bt:qt;return!e&&K(r,0,h?x:O),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[a(t[0]),a(t[1])]:a(t),done:e}},[Symbol.iterator](){return this}}}}function _t(t){return function(...e){return"delete"!==t&&this}}function pt(){const t={get(t){return it(this,t)},get size(){return ct(this)},has:rt,add:ot,set:ut,delete:ht,clear:lt,forEach:at(!1,!1)},e={get(t){return it(this,t,!1,!0)},get size(){return ct(this)},has:rt,add:ot,set:ut,delete:ht,clear:lt,forEach:at(!1,!0)},n={get(t){return it(this,t,!0)},get size(){return ct(this,!0)},has(t){return rt.call(this,t,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:at(!0,!1)},s={get(t){return it(this,t,!0,!0)},get size(){return ct(this,!0)},has(t){return rt.call(this,t,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=ft(i,!1,!1),n[i]=ft(i,!0,!1),e[i]=ft(i,!1,!0),s[i]=ft(i,!0,!0)})),[t,n,e,s]}const[dt,vt,gt,yt]=pt();function wt(t,e){const n=e?t?yt:gt:t?vt:dt;return(e,s,r)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(i(n,s)&&s in e?n:e,s,r)}const bt={get:wt(!1,!1)},Rt={get:wt(!1,!0)},St={get:wt(!0,!1)},mt={get:wt(!0,!0)},kt=new WeakMap,jt=new WeakMap,Ot=new WeakMap,xt=new WeakMap;function Et(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>l(t).slice(8,-1))(t))}function Pt(t){return Nt(t)?t:Vt(t,!1,Z,bt,kt)}function Mt(t){return Vt(t,!1,tt,Rt,jt)}function zt(t){return Vt(t,!0,$,St,Ot)}function Wt(t){return Vt(t,!0,et,mt,xt)}function Vt(t,e,n,s,i){if(!u(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const c=Et(t);if(0===c)return t;const o=new Proxy(t,2===c?s:n);return i.set(t,o),o}function At(t){return Nt(t)?At(t.__v_raw):!(!t||!t.__v_isReactive)}function Nt(t){return!(!t||!t.__v_isReadonly)}function It(t){return!(!t||!t.__v_isShallow)}function Kt(t){return At(t)||Nt(t)}function Ct(t){const e=t&&t.__v_raw;return e?Ct(e):t}function Lt(t){return((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t}const qt=t=>u(t)?Pt(t):t,Bt=t=>u(t)?zt(t):t;function Dt(t){W&&j&&C((t=Ct(t)).dep||(t.dep=w()))}function Ft(t,e){(t=Ct(t)).dep&&q(t.dep)}function Gt(t){return!(!t||!0!==t.__v_isRef)}function Ht(t){return Qt(t,!1)}function Jt(t){return Qt(t,!0)}function Qt(t,e){return Gt(t)?t:new Tt(t,e)}class Tt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Ct(t),this._value=e?t:qt(t)}get value(){return Dt(this),this._value}set value(t){t=this.__v_isShallow?t:Ct(t),f(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:qt(t),Ft(this))}}function Ut(t){Ft(t)}function Xt(t){return Gt(t)?t.value:t}const Yt={get:(t,e,n)=>Xt(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Gt(i)&&!Gt(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Zt(t){return At(t)?t:new Proxy(t,Yt)}class $t{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Dt(this)),(()=>Ft(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function te(t){return new $t(t)}function ee(t){const e=r(t)?new Array(t.length):{};for(const n in t)e[n]=se(t,n);return e}class ne{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function se(t,e,n){const s=t[e];return Gt(s)?s:new ne(t,e,n)}class ie{constructor(t,e,n,s){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(()=>{this._dirty||(this._dirty=!0,Ft(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Ct(this);return Dt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function re(t,n,s=!1){let i,r;const c="function"==typeof t;c?(i=t,r=e):(i=t.get,r=t.set);return new ie(i,r,c||!r,s)}var ce;const oe=Promise.resolve(),ue=[];let he=!1;const le=()=>{for(let t=0;t<ue.length;t++)ue[t]();ue.length=0,he=!1};class ae{constructor(t){let e;this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this[ce]=!0;let n=!1,s=!1;this.effect=new E(t,(t=>{if(this.dep){if(t)e=this._value,n=!0;else if(!s){const t=n?e:this._value;s=!0,n=!1,ue.push((()=>{this.effect.active&&this._get()!==t&&Ft(this),s=!1})),he||(he=!0,oe.then(le))}for(const t of this.dep)t.computed instanceof ae&&t.scheduler(!0)}this._dirty=!0})),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Dt(this),Ct(this)._get()}}function fe(t){return new ae(t)}ce="__v_isReadonly";export{p as EffectScope,O as ITERATE_KEY,E as ReactiveEffect,re as computed,te as customRef,fe as deferredComputed,M as effect,d as effectScope,N as enableTracking,g as getCurrentScope,Kt as isProxy,At as isReactive,Nt as isReadonly,Gt as isRef,It as isShallow,Lt as markRaw,y as onScopeDispose,A as pauseTracking,Zt as proxyRefs,Pt as reactive,zt as readonly,Ht as ref,I as resetTracking,Mt as shallowReactive,Wt as shallowReadonly,Jt as shallowRef,z as stop,Ct as toRaw,se as toRef,ee as toRefs,K as track,L as trigger,Ut as triggerRef,Xt as unref};
|
|
@@ -373,17 +373,28 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
373
373
|
}
|
|
374
374
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
375
375
|
// spread into array for stabilization
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
376
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
377
|
+
for (const effect of effects) {
|
|
378
|
+
if (effect.computed) {
|
|
379
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
for (const effect of effects) {
|
|
383
|
+
if (!effect.computed) {
|
|
384
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
389
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
390
|
+
if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {
|
|
391
|
+
effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));
|
|
392
|
+
}
|
|
393
|
+
if (effect.scheduler) {
|
|
394
|
+
effect.scheduler();
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
effect.run();
|
|
387
398
|
}
|
|
388
399
|
}
|
|
389
400
|
}
|
|
@@ -392,6 +403,10 @@ const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
|
392
403
|
const builtInSymbols = new Set(
|
|
393
404
|
/*#__PURE__*/
|
|
394
405
|
Object.getOwnPropertyNames(Symbol)
|
|
406
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
407
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
408
|
+
// function
|
|
409
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
395
410
|
.map(key => Symbol[key])
|
|
396
411
|
.filter(isSymbol));
|
|
397
412
|
const get = /*#__PURE__*/ createGetter();
|
|
@@ -465,9 +480,8 @@ function createGetter(isReadonly = false, shallow = false) {
|
|
|
465
480
|
return res;
|
|
466
481
|
}
|
|
467
482
|
if (isRef(res)) {
|
|
468
|
-
// ref unwrapping -
|
|
469
|
-
|
|
470
|
-
return shouldUnwrap ? res.value : res;
|
|
483
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
484
|
+
return targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
471
485
|
}
|
|
472
486
|
if (isObject(res)) {
|
|
473
487
|
// Convert returned value into a proxy as well. we do the isObject check
|
|
@@ -573,10 +587,12 @@ function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
|
573
587
|
target = target["__v_raw" /* RAW */];
|
|
574
588
|
const rawTarget = toRaw(target);
|
|
575
589
|
const rawKey = toRaw(key);
|
|
576
|
-
if (
|
|
577
|
-
|
|
590
|
+
if (!isReadonly) {
|
|
591
|
+
if (key !== rawKey) {
|
|
592
|
+
track(rawTarget, "get" /* GET */, key);
|
|
593
|
+
}
|
|
594
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
578
595
|
}
|
|
579
|
-
!isReadonly && track(rawTarget, "get" /* GET */, rawKey);
|
|
580
596
|
const { has } = getProto(rawTarget);
|
|
581
597
|
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
582
598
|
if (has.call(rawTarget, key)) {
|
|
@@ -595,10 +611,12 @@ function has$1(key, isReadonly = false) {
|
|
|
595
611
|
const target = this["__v_raw" /* RAW */];
|
|
596
612
|
const rawTarget = toRaw(target);
|
|
597
613
|
const rawKey = toRaw(key);
|
|
598
|
-
if (
|
|
599
|
-
|
|
614
|
+
if (!isReadonly) {
|
|
615
|
+
if (key !== rawKey) {
|
|
616
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
617
|
+
}
|
|
618
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
600
619
|
}
|
|
601
|
-
!isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
|
|
602
620
|
return key === rawKey
|
|
603
621
|
? target.has(key)
|
|
604
622
|
: target.has(key) || target.has(rawKey);
|
|
@@ -925,7 +943,7 @@ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandle
|
|
|
925
943
|
if (existingProxy) {
|
|
926
944
|
return existingProxy;
|
|
927
945
|
}
|
|
928
|
-
// only
|
|
946
|
+
// only specific value types can be observed.
|
|
929
947
|
const targetType = getTargetType(target);
|
|
930
948
|
if (targetType === 0 /* INVALID */) {
|
|
931
949
|
return target;
|
|
@@ -425,17 +425,28 @@ var VueReactivity = (function (exports) {
|
|
|
425
425
|
}
|
|
426
426
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
427
427
|
// spread into array for stabilization
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
428
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
429
|
+
for (const effect of effects) {
|
|
430
|
+
if (effect.computed) {
|
|
431
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
for (const effect of effects) {
|
|
435
|
+
if (!effect.computed) {
|
|
436
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
441
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
442
|
+
if (effect.onTrigger) {
|
|
443
|
+
effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));
|
|
444
|
+
}
|
|
445
|
+
if (effect.scheduler) {
|
|
446
|
+
effect.scheduler();
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
effect.run();
|
|
439
450
|
}
|
|
440
451
|
}
|
|
441
452
|
}
|
|
@@ -444,6 +455,10 @@ var VueReactivity = (function (exports) {
|
|
|
444
455
|
const builtInSymbols = new Set(
|
|
445
456
|
/*#__PURE__*/
|
|
446
457
|
Object.getOwnPropertyNames(Symbol)
|
|
458
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
459
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
460
|
+
// function
|
|
461
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
447
462
|
.map(key => Symbol[key])
|
|
448
463
|
.filter(isSymbol));
|
|
449
464
|
const get = /*#__PURE__*/ createGetter();
|
|
@@ -517,9 +532,8 @@ var VueReactivity = (function (exports) {
|
|
|
517
532
|
return res;
|
|
518
533
|
}
|
|
519
534
|
if (isRef(res)) {
|
|
520
|
-
// ref unwrapping -
|
|
521
|
-
|
|
522
|
-
return shouldUnwrap ? res.value : res;
|
|
535
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
536
|
+
return targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
523
537
|
}
|
|
524
538
|
if (isObject(res)) {
|
|
525
539
|
// Convert returned value into a proxy as well. we do the isObject check
|
|
@@ -625,10 +639,12 @@ var VueReactivity = (function (exports) {
|
|
|
625
639
|
target = target["__v_raw" /* RAW */];
|
|
626
640
|
const rawTarget = toRaw(target);
|
|
627
641
|
const rawKey = toRaw(key);
|
|
628
|
-
if (
|
|
629
|
-
|
|
642
|
+
if (!isReadonly) {
|
|
643
|
+
if (key !== rawKey) {
|
|
644
|
+
track(rawTarget, "get" /* GET */, key);
|
|
645
|
+
}
|
|
646
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
630
647
|
}
|
|
631
|
-
!isReadonly && track(rawTarget, "get" /* GET */, rawKey);
|
|
632
648
|
const { has } = getProto(rawTarget);
|
|
633
649
|
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
634
650
|
if (has.call(rawTarget, key)) {
|
|
@@ -647,10 +663,12 @@ var VueReactivity = (function (exports) {
|
|
|
647
663
|
const target = this["__v_raw" /* RAW */];
|
|
648
664
|
const rawTarget = toRaw(target);
|
|
649
665
|
const rawKey = toRaw(key);
|
|
650
|
-
if (
|
|
651
|
-
|
|
666
|
+
if (!isReadonly) {
|
|
667
|
+
if (key !== rawKey) {
|
|
668
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
669
|
+
}
|
|
670
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
652
671
|
}
|
|
653
|
-
!isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
|
|
654
672
|
return key === rawKey
|
|
655
673
|
? target.has(key)
|
|
656
674
|
: target.has(key) || target.has(rawKey);
|
|
@@ -976,7 +994,7 @@ var VueReactivity = (function (exports) {
|
|
|
976
994
|
if (existingProxy) {
|
|
977
995
|
return existingProxy;
|
|
978
996
|
}
|
|
979
|
-
// only
|
|
997
|
+
// only specific value types can be observed.
|
|
980
998
|
const targetType = getTargetType(target);
|
|
981
999
|
if (targetType === 0 /* INVALID */) {
|
|
982
1000
|
return target;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var VueReactivity=function(t){"use strict";function e(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const n=()=>{},s=Object.assign,i=Object.prototype.hasOwnProperty,r=(t,e)=>i.call(t,e),c=Array.isArray,o=t=>"[object Map]"===l(t),u=t=>"symbol"==typeof t,a=t=>null!==t&&"object"==typeof t,h=Object.prototype.toString,l=t=>h.call(t),f=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,_=(t,e)=>!Object.is(t,e);let p;class d{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&p&&(this.parent=p,this.index=(p.scopes||(p.scopes=[])).push(this)-1)}run(t){if(this.active){const e=p;try{return p=this,t()}finally{p=e}}}on(){p=this}off(){p=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function v(t,e=p){e&&e.active&&e.effects.push(t)}const g=t=>{const e=new Set(t);return e.w=0,e.n=0,e},y=t=>(t.w&S)>0,w=t=>(t.n&S)>0,R=new WeakMap;let b=0,S=1;let k;const m=Symbol(""),j=Symbol("");class E{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,v(this,n)}run(){if(!this.active)return this.fn();let t=k,e=x;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=k,k=this,x=!0,S=1<<++b,b<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=S})(this):O(this),this.fn()}finally{b<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const i=e[s];y(i)&&!w(i)?i.delete(t):e[n++]=i,i.w&=~S,i.n&=~S}e.length=n}})(this),S=1<<--b,k=this.parent,x=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){k===this?this.deferStop=!0:this.active&&(O(this),this.onStop&&this.onStop(),this.active=!1)}}function O(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let x=!0;const P=[];function M(){P.push(x),x=!1}function z(){const t=P.pop();x=void 0===t||t}function V(t,e,n){if(x&&k){let e=R.get(t);e||R.set(t,e=new Map);let s=e.get(n);s||e.set(n,s=g()),W(s)}}function W(t,e){let n=!1;b<=30?w(t)||(t.n|=S,n=!y(t)):n=!t.has(k),n&&(t.add(k),k.deps.push(t))}function A(t,e,n,s,i,r){const u=R.get(t);if(!u)return;let a=[];if("clear"===e)a=[...u.values()];else if("length"===n&&c(t))u.forEach(((t,e)=>{("length"===e||e>=s)&&a.push(t)}));else switch(void 0!==n&&a.push(u.get(n)),e){case"add":c(t)?f(n)&&a.push(u.get("length")):(a.push(u.get(m)),o(t)&&a.push(u.get(j)));break;case"delete":c(t)||(a.push(u.get(m)),o(t)&&a.push(u.get(j)));break;case"set":o(t)&&a.push(u.get(m))}if(1===a.length)a[0]&&T(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);T(g(t))}}function T(t,e){for(const n of c(t)?t:[...t])(n!==k||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const N=e("__proto__,__v_isRef,__isVue"),C=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(u)),I=B(),K=B(!1,!0),D=B(!0),L=B(!0,!0),Y=q();function q(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Pt(this);for(let e=0,i=this.length;e<i;e++)V(n,0,e+"");const s=n[e](...t);return-1===s||!1===s?n[e](...t.map(Pt)):s}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){M();const n=Pt(this)[e].apply(this,t);return z(),n}})),t}function B(t=!1,e=!1){return function(n,s,i){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_isShallow"===s)return e;if("__v_raw"===s&&i===(t?e?bt:Rt:e?wt:yt).get(n))return n;const o=c(n);if(!t&&o&&r(Y,s))return Reflect.get(Y,s,i);const h=Reflect.get(n,s,i);if(u(s)?C.has(s):N(s))return h;if(t||V(n,0,s),e)return h;if(At(h)){return!o||!f(s)?h.value:h}return a(h)?t?mt(h):kt(h):h}}function F(t=!1){return function(e,n,s,i){let o=e[n];if(Ot(o)&&At(o)&&!At(s))return!1;if(!t&&!Ot(s)&&(xt(s)||(s=Pt(s),o=Pt(o)),!c(e)&&At(o)&&!At(s)))return o.value=s,!0;const u=c(e)&&f(n)?Number(n)<e.length:r(e,n),a=Reflect.set(e,n,s,i);return e===Pt(i)&&(u?_(s,o)&&A(e,"set",n,s):A(e,"add",n,s)),a}}const G={get:I,set:F(),deleteProperty:function(t,e){const n=r(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&A(t,"delete",e,void 0),s},has:function(t,e){const n=Reflect.has(t,e);return u(e)&&C.has(e)||V(t,0,e),n},ownKeys:function(t){return V(t,0,c(t)?"length":m),Reflect.ownKeys(t)}},H={get:D,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},J=s({},G,{get:K,set:F(!0)}),Q=s({},H,{get:L}),U=t=>t,X=t=>Reflect.getPrototypeOf(t);function Z(t,e,n=!1,s=!1){const i=Pt(t=t.__v_raw),r=Pt(e);e!==r&&!n&&V(i,0,e),!n&&V(i,0,r);const{has:c}=X(i),o=s?U:n?zt:Mt;return c.call(i,e)?o(t.get(e)):c.call(i,r)?o(t.get(r)):void(t!==i&&t.get(e))}function $(t,e=!1){const n=this.__v_raw,s=Pt(n),i=Pt(t);return t!==i&&!e&&V(s,0,t),!e&&V(s,0,i),t===i?n.has(t):n.has(t)||n.has(i)}function tt(t,e=!1){return t=t.__v_raw,!e&&V(Pt(t),0,m),Reflect.get(t,"size",t)}function et(t){t=Pt(t);const e=Pt(this);return X(e).has.call(e,t)||(e.add(t),A(e,"add",t,t)),this}function nt(t,e){e=Pt(e);const n=Pt(this),{has:s,get:i}=X(n);let r=s.call(n,t);r||(t=Pt(t),r=s.call(n,t));const c=i.call(n,t);return n.set(t,e),r?_(e,c)&&A(n,"set",t,e):A(n,"add",t,e),this}function st(t){const e=Pt(this),{has:n,get:s}=X(e);let i=n.call(e,t);i||(t=Pt(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&A(e,"delete",t,void 0),r}function it(){const t=Pt(this),e=0!==t.size,n=t.clear();return e&&A(t,"clear",void 0,void 0),n}function rt(t,e){return function(n,s){const i=this,r=i.__v_raw,c=Pt(r),o=e?U:t?zt:Mt;return!t&&V(c,0,m),r.forEach(((t,e)=>n.call(s,o(t),o(e),i)))}}function ct(t,e,n){return function(...s){const i=this.__v_raw,r=Pt(i),c=o(r),u="entries"===t||t===Symbol.iterator&&c,a="keys"===t&&c,h=i[t](...s),l=n?U:e?zt:Mt;return!e&&V(r,0,a?j:m),{next(){const{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:u?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function ot(t){return function(...e){return"delete"!==t&&this}}function ut(){const t={get(t){return Z(this,t)},get size(){return tt(this)},has:$,add:et,set:nt,delete:st,clear:it,forEach:rt(!1,!1)},e={get(t){return Z(this,t,!1,!0)},get size(){return tt(this)},has:$,add:et,set:nt,delete:st,clear:it,forEach:rt(!1,!0)},n={get(t){return Z(this,t,!0)},get size(){return tt(this,!0)},has(t){return $.call(this,t,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:rt(!0,!1)},s={get(t){return Z(this,t,!0,!0)},get size(){return tt(this,!0)},has(t){return $.call(this,t,!0)},add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=ct(i,!1,!1),n[i]=ct(i,!0,!1),e[i]=ct(i,!1,!0),s[i]=ct(i,!0,!0)})),[t,n,e,s]}const[at,ht,lt,ft]=ut();function _t(t,e){const n=e?t?ft:lt:t?ht:at;return(e,s,i)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(r(n,s)&&s in e?n:e,s,i)}const pt={get:_t(!1,!1)},dt={get:_t(!1,!0)},vt={get:_t(!0,!1)},gt={get:_t(!0,!0)},yt=new WeakMap,wt=new WeakMap,Rt=new WeakMap,bt=new WeakMap;function St(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>l(t).slice(8,-1))(t))}function kt(t){return Ot(t)?t:jt(t,!1,G,pt,yt)}function mt(t){return jt(t,!0,H,vt,Rt)}function jt(t,e,n,s,i){if(!a(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const c=St(t);if(0===c)return t;const o=new Proxy(t,2===c?s:n);return i.set(t,o),o}function Et(t){return Ot(t)?Et(t.__v_raw):!(!t||!t.__v_isReactive)}function Ot(t){return!(!t||!t.__v_isReadonly)}function xt(t){return!(!t||!t.__v_isShallow)}function Pt(t){const e=t&&t.__v_raw;return e?Pt(e):t}const Mt=t=>a(t)?kt(t):t,zt=t=>a(t)?mt(t):t;function Vt(t){x&&k&&W((t=Pt(t)).dep||(t.dep=g()))}function Wt(t,e){(t=Pt(t)).dep&&T(t.dep)}function At(t){return!(!t||!0!==t.__v_isRef)}function Tt(t,e){return At(t)?t:new Nt(t,e)}class Nt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Mt(t)}get value(){return Vt(this),this._value}set value(t){t=this.__v_isShallow?t:Pt(t),_(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Mt(t),Wt(this))}}function Ct(t){return At(t)?t.value:t}const It={get:(t,e,n)=>Ct(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return At(i)&&!At(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};class Kt{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Vt(this)),(()=>Wt(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}class Dt{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Lt(t,e,n){const s=t[e];return At(s)?s:new Dt(t,e,n)}class Yt{constructor(t,e,n,s){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(()=>{this._dirty||(this._dirty=!0,Wt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Pt(this);return Vt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}var qt;const Bt=Promise.resolve(),Ft=[];let Gt=!1;const Ht=()=>{for(let t=0;t<Ft.length;t++)Ft[t]();Ft.length=0,Gt=!1};class Jt{constructor(t){let e;this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this[qt]=!0;let n=!1,s=!1;this.effect=new E(t,(t=>{if(this.dep){if(t)e=this._value,n=!0;else if(!s){const t=n?e:this._value;s=!0,n=!1,Ft.push((()=>{this.effect.active&&this._get()!==t&&Wt(this),s=!1})),Gt||(Gt=!0,Bt.then(Ht))}for(const t of this.dep)t.computed instanceof Jt&&t.scheduler(!0)}this._dirty=!0})),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Vt(this),Pt(this)._get()}}return qt="__v_isReadonly",t.EffectScope=d,t.ITERATE_KEY=m,t.ReactiveEffect=E,t.computed=function(t,e,s=!1){let i,r;const c="function"==typeof t;return c?(i=t,r=n):(i=t.get,r=t.set),new Yt(i,r,c||!r,s)},t.customRef=function(t){return new Kt(t)},t.deferredComputed=function(t){return new Jt(t)},t.effect=function(t,e){t.effect&&(t=t.effect.fn);const n=new E(t);e&&(s(n,e),e.scope&&v(n,e.scope)),e&&e.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i},t.effectScope=function(t){return new d(t)},t.enableTracking=function(){P.push(x),x=!0},t.getCurrentScope=function(){return p},t.isProxy=function(t){return Et(t)||Ot(t)},t.isReactive=Et,t.isReadonly=Ot,t.isRef=At,t.isShallow=xt,t.markRaw=function(t){return((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t},t.onScopeDispose=function(t){p&&p.cleanups.push(t)},t.pauseTracking=M,t.proxyRefs=function(t){return Et(t)?t:new Proxy(t,It)},t.reactive=kt,t.readonly=mt,t.ref=function(t){return Tt(t,!1)},t.resetTracking=z,t.shallowReactive=function(t){return jt(t,!1,J,dt,wt)},t.shallowReadonly=function(t){return jt(t,!0,Q,gt,bt)},t.shallowRef=function(t){return Tt(t,!0)},t.stop=function(t){t.effect.stop()},t.toRaw=Pt,t.toRef=Lt,t.toRefs=function(t){const e=c(t)?new Array(t.length):{};for(const n in t)e[n]=Lt(t,n);return e},t.track=V,t.trigger=A,t.triggerRef=function(t){Wt(t)},t.unref=Ct,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
1
|
+
var VueReactivity=function(t){"use strict";function e(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const n=()=>{},s=Object.assign,i=Object.prototype.hasOwnProperty,r=(t,e)=>i.call(t,e),c=Array.isArray,o=t=>"[object Map]"===h(t),u=t=>"symbol"==typeof t,a=t=>null!==t&&"object"==typeof t,l=Object.prototype.toString,h=t=>l.call(t),f=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,_=(t,e)=>!Object.is(t,e);let p;class d{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&p&&(this.parent=p,this.index=(p.scopes||(p.scopes=[])).push(this)-1)}run(t){if(this.active){const e=p;try{return p=this,t()}finally{p=e}}}on(){p=this}off(){p=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function v(t,e=p){e&&e.active&&e.effects.push(t)}const g=t=>{const e=new Set(t);return e.w=0,e.n=0,e},y=t=>(t.w&S)>0,w=t=>(t.n&S)>0,R=new WeakMap;let b=0,S=1;let m;const k=Symbol(""),j=Symbol("");class E{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,v(this,n)}run(){if(!this.active)return this.fn();let t=m,e=x;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=m,m=this,x=!0,S=1<<++b,b<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=S})(this):O(this),this.fn()}finally{b<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const i=e[s];y(i)&&!w(i)?i.delete(t):e[n++]=i,i.w&=~S,i.n&=~S}e.length=n}})(this),S=1<<--b,m=this.parent,x=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){m===this?this.deferStop=!0:this.active&&(O(this),this.onStop&&this.onStop(),this.active=!1)}}function O(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let x=!0;const P=[];function M(){P.push(x),x=!1}function z(){const t=P.pop();x=void 0===t||t}function V(t,e,n){if(x&&m){let e=R.get(t);e||R.set(t,e=new Map);let s=e.get(n);s||e.set(n,s=g()),W(s)}}function W(t,e){let n=!1;b<=30?w(t)||(t.n|=S,n=!y(t)):n=!t.has(m),n&&(t.add(m),m.deps.push(t))}function A(t,e,n,s,i,r){const u=R.get(t);if(!u)return;let a=[];if("clear"===e)a=[...u.values()];else if("length"===n&&c(t))u.forEach(((t,e)=>{("length"===e||e>=s)&&a.push(t)}));else switch(void 0!==n&&a.push(u.get(n)),e){case"add":c(t)?f(n)&&a.push(u.get("length")):(a.push(u.get(k)),o(t)&&a.push(u.get(j)));break;case"delete":c(t)||(a.push(u.get(k)),o(t)&&a.push(u.get(j)));break;case"set":o(t)&&a.push(u.get(k))}if(1===a.length)a[0]&&T(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);T(g(t))}}function T(t,e){const n=c(t)?t:[...t];for(const s of n)s.computed&&N(s);for(const s of n)s.computed||N(s)}function N(t,e){(t!==m||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const C=e("__proto__,__v_isRef,__isVue"),I=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(u)),K=F(),D=F(!1,!0),L=F(!0),Y=F(!0,!0),q=B();function B(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Mt(this);for(let e=0,i=this.length;e<i;e++)V(n,0,e+"");const s=n[e](...t);return-1===s||!1===s?n[e](...t.map(Mt)):s}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){M();const n=Mt(this)[e].apply(this,t);return z(),n}})),t}function F(t=!1,e=!1){return function(n,s,i){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_isShallow"===s)return e;if("__v_raw"===s&&i===(t?e?St:bt:e?Rt:wt).get(n))return n;const o=c(n);if(!t&&o&&r(q,s))return Reflect.get(q,s,i);const l=Reflect.get(n,s,i);return(u(s)?I.has(s):C(s))?l:(t||V(n,0,s),e?l:Tt(l)?o&&f(s)?l:l.value:a(l)?t?jt(l):kt(l):l)}}function G(t=!1){return function(e,n,s,i){let o=e[n];if(xt(o)&&Tt(o)&&!Tt(s))return!1;if(!t&&!xt(s)&&(Pt(s)||(s=Mt(s),o=Mt(o)),!c(e)&&Tt(o)&&!Tt(s)))return o.value=s,!0;const u=c(e)&&f(n)?Number(n)<e.length:r(e,n),a=Reflect.set(e,n,s,i);return e===Mt(i)&&(u?_(s,o)&&A(e,"set",n,s):A(e,"add",n,s)),a}}const H={get:K,set:G(),deleteProperty:function(t,e){const n=r(t,e),s=Reflect.deleteProperty(t,e);return s&&n&&A(t,"delete",e,void 0),s},has:function(t,e){const n=Reflect.has(t,e);return u(e)&&I.has(e)||V(t,0,e),n},ownKeys:function(t){return V(t,0,c(t)?"length":k),Reflect.ownKeys(t)}},J={get:L,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Q=s({},H,{get:D,set:G(!0)}),U=s({},J,{get:Y}),X=t=>t,Z=t=>Reflect.getPrototypeOf(t);function $(t,e,n=!1,s=!1){const i=Mt(t=t.__v_raw),r=Mt(e);n||(e!==r&&V(i,0,e),V(i,0,r));const{has:c}=Z(i),o=s?X:n?Vt:zt;return c.call(i,e)?o(t.get(e)):c.call(i,r)?o(t.get(r)):void(t!==i&&t.get(e))}function tt(t,e=!1){const n=this.__v_raw,s=Mt(n),i=Mt(t);return e||(t!==i&&V(s,0,t),V(s,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}function et(t,e=!1){return t=t.__v_raw,!e&&V(Mt(t),0,k),Reflect.get(t,"size",t)}function nt(t){t=Mt(t);const e=Mt(this);return Z(e).has.call(e,t)||(e.add(t),A(e,"add",t,t)),this}function st(t,e){e=Mt(e);const n=Mt(this),{has:s,get:i}=Z(n);let r=s.call(n,t);r||(t=Mt(t),r=s.call(n,t));const c=i.call(n,t);return n.set(t,e),r?_(e,c)&&A(n,"set",t,e):A(n,"add",t,e),this}function it(t){const e=Mt(this),{has:n,get:s}=Z(e);let i=n.call(e,t);i||(t=Mt(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&A(e,"delete",t,void 0),r}function rt(){const t=Mt(this),e=0!==t.size,n=t.clear();return e&&A(t,"clear",void 0,void 0),n}function ct(t,e){return function(n,s){const i=this,r=i.__v_raw,c=Mt(r),o=e?X:t?Vt:zt;return!t&&V(c,0,k),r.forEach(((t,e)=>n.call(s,o(t),o(e),i)))}}function ot(t,e,n){return function(...s){const i=this.__v_raw,r=Mt(i),c=o(r),u="entries"===t||t===Symbol.iterator&&c,a="keys"===t&&c,l=i[t](...s),h=n?X:e?Vt:zt;return!e&&V(r,0,a?j:k),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function ut(t){return function(...e){return"delete"!==t&&this}}function at(){const t={get(t){return $(this,t)},get size(){return et(this)},has:tt,add:nt,set:st,delete:it,clear:rt,forEach:ct(!1,!1)},e={get(t){return $(this,t,!1,!0)},get size(){return et(this)},has:tt,add:nt,set:st,delete:it,clear:rt,forEach:ct(!1,!0)},n={get(t){return $(this,t,!0)},get size(){return et(this,!0)},has(t){return tt.call(this,t,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},s={get(t){return $(this,t,!0,!0)},get size(){return et(this,!0)},has(t){return tt.call(this,t,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=ot(i,!1,!1),n[i]=ot(i,!0,!1),e[i]=ot(i,!1,!0),s[i]=ot(i,!0,!0)})),[t,n,e,s]}const[lt,ht,ft,_t]=at();function pt(t,e){const n=e?t?_t:ft:t?ht:lt;return(e,s,i)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(r(n,s)&&s in e?n:e,s,i)}const dt={get:pt(!1,!1)},vt={get:pt(!1,!0)},gt={get:pt(!0,!1)},yt={get:pt(!0,!0)},wt=new WeakMap,Rt=new WeakMap,bt=new WeakMap,St=new WeakMap;function mt(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>h(t).slice(8,-1))(t))}function kt(t){return xt(t)?t:Et(t,!1,H,dt,wt)}function jt(t){return Et(t,!0,J,gt,bt)}function Et(t,e,n,s,i){if(!a(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const c=mt(t);if(0===c)return t;const o=new Proxy(t,2===c?s:n);return i.set(t,o),o}function Ot(t){return xt(t)?Ot(t.__v_raw):!(!t||!t.__v_isReactive)}function xt(t){return!(!t||!t.__v_isReadonly)}function Pt(t){return!(!t||!t.__v_isShallow)}function Mt(t){const e=t&&t.__v_raw;return e?Mt(e):t}const zt=t=>a(t)?kt(t):t,Vt=t=>a(t)?jt(t):t;function Wt(t){x&&m&&W((t=Mt(t)).dep||(t.dep=g()))}function At(t,e){(t=Mt(t)).dep&&T(t.dep)}function Tt(t){return!(!t||!0!==t.__v_isRef)}function Nt(t,e){return Tt(t)?t:new Ct(t,e)}class Ct{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Mt(t),this._value=e?t:zt(t)}get value(){return Wt(this),this._value}set value(t){t=this.__v_isShallow?t:Mt(t),_(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:zt(t),At(this))}}function It(t){return Tt(t)?t.value:t}const Kt={get:(t,e,n)=>It(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Tt(i)&&!Tt(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};class Dt{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Wt(this)),(()=>At(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}class Lt{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Yt(t,e,n){const s=t[e];return Tt(s)?s:new Lt(t,e,n)}class qt{constructor(t,e,n,s){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new E(t,(()=>{this._dirty||(this._dirty=!0,At(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Mt(this);return Wt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}var Bt;const Ft=Promise.resolve(),Gt=[];let Ht=!1;const Jt=()=>{for(let t=0;t<Gt.length;t++)Gt[t]();Gt.length=0,Ht=!1};class Qt{constructor(t){let e;this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this[Bt]=!0;let n=!1,s=!1;this.effect=new E(t,(t=>{if(this.dep){if(t)e=this._value,n=!0;else if(!s){const t=n?e:this._value;s=!0,n=!1,Gt.push((()=>{this.effect.active&&this._get()!==t&&At(this),s=!1})),Ht||(Ht=!0,Ft.then(Jt))}for(const t of this.dep)t.computed instanceof Qt&&t.scheduler(!0)}this._dirty=!0})),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return Wt(this),Mt(this)._get()}}return Bt="__v_isReadonly",t.EffectScope=d,t.ITERATE_KEY=k,t.ReactiveEffect=E,t.computed=function(t,e,s=!1){let i,r;const c="function"==typeof t;return c?(i=t,r=n):(i=t.get,r=t.set),new qt(i,r,c||!r,s)},t.customRef=function(t){return new Dt(t)},t.deferredComputed=function(t){return new Qt(t)},t.effect=function(t,e){t.effect&&(t=t.effect.fn);const n=new E(t);e&&(s(n,e),e.scope&&v(n,e.scope)),e&&e.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i},t.effectScope=function(t){return new d(t)},t.enableTracking=function(){P.push(x),x=!0},t.getCurrentScope=function(){return p},t.isProxy=function(t){return Ot(t)||xt(t)},t.isReactive=Ot,t.isReadonly=xt,t.isRef=Tt,t.isShallow=Pt,t.markRaw=function(t){return((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t},t.onScopeDispose=function(t){p&&p.cleanups.push(t)},t.pauseTracking=M,t.proxyRefs=function(t){return Ot(t)?t:new Proxy(t,Kt)},t.reactive=kt,t.readonly=jt,t.ref=function(t){return Nt(t,!1)},t.resetTracking=z,t.shallowReactive=function(t){return Et(t,!1,Q,vt,Rt)},t.shallowReadonly=function(t){return Et(t,!0,U,yt,St)},t.shallowRef=function(t){return Nt(t,!0)},t.stop=function(t){t.effect.stop()},t.toRaw=Mt,t.toRef=Yt,t.toRefs=function(t){const e=c(t)?new Array(t.length):{};for(const n in t)e[n]=Yt(t,n);return e},t.track=V,t.trigger=A,t.triggerRef=function(t){At(t)},t.unref=It,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.35",
|
|
4
4
|
"description": "@vue/reactivity",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/reactivity.esm-bundler.js",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vue/shared": "3.2.
|
|
39
|
+
"@vue/shared": "3.2.35"
|
|
40
40
|
}
|
|
41
41
|
}
|