pinia-plugin-subscription 0.1.6-beta.1 → 0.1.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as He } from "pinia";
|
|
2
|
+
class ir {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
5
5
|
_name;
|
|
@@ -53,7 +53,7 @@ class tr {
|
|
|
53
53
|
return this._storeInstance = this._createInstance(t, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(t), !0) : !1;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
class
|
|
56
|
+
class je {
|
|
57
57
|
_console;
|
|
58
58
|
_debug = !1;
|
|
59
59
|
get console() {
|
|
@@ -78,8 +78,8 @@ class He {
|
|
|
78
78
|
this.console.error(...t);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
function
|
|
81
|
+
const Le = "pinia-plugin-subscription", wt = (e, t = "white") => `background-color: ${e}; color: ${t}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
82
|
+
function Ot(e, t) {
|
|
83
83
|
if (!e)
|
|
84
84
|
throw new Error("Style instructions are required");
|
|
85
85
|
console.log(
|
|
@@ -89,7 +89,7 @@ function Et(e, t) {
|
|
|
89
89
|
...t
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
class
|
|
92
|
+
class vt {
|
|
93
93
|
_bgColor = "#ffec73";
|
|
94
94
|
_color = "green";
|
|
95
95
|
_icon = "🍍⚡";
|
|
@@ -101,10 +101,10 @@ class wt {
|
|
|
101
101
|
info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
|
|
102
102
|
};
|
|
103
103
|
formatMessage(t, n) {
|
|
104
|
-
return ` [${n} ${
|
|
104
|
+
return ` [${n} ${Le}] - ${t} `;
|
|
105
105
|
}
|
|
106
106
|
generateStyle(t) {
|
|
107
|
-
return
|
|
107
|
+
return wt(t.bgColor, t.color);
|
|
108
108
|
}
|
|
109
109
|
getStyleDefinition(t) {
|
|
110
110
|
return this._styles[t ?? "info"];
|
|
@@ -128,35 +128,35 @@ class wt {
|
|
|
128
128
|
return [this.formatMessage(t.shift(), n), ...t ?? []];
|
|
129
129
|
}
|
|
130
130
|
useLog(t, n) {
|
|
131
|
-
|
|
131
|
+
Ot(
|
|
132
132
|
this.generateStyle(t),
|
|
133
133
|
this.rebuildArgs(n, t.icon)
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
class
|
|
138
|
-
_pluginName =
|
|
137
|
+
class Nt extends vt {
|
|
138
|
+
_pluginName = Le;
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const Ct = new Nt();
|
|
141
141
|
function be(e) {
|
|
142
142
|
return e ? Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : typeof e == "string" ? e.trim() === "" : !1 : !(typeof e == "boolean" || typeof e == "number");
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const Te = "PluginSubscription", xt = {
|
|
145
145
|
environment: "both",
|
|
146
146
|
hydration: "immediate"
|
|
147
147
|
};
|
|
148
|
-
function
|
|
148
|
+
function Rt(e) {
|
|
149
149
|
if (typeof window < "u" && typeof window.requestAnimationFrame == "function") {
|
|
150
150
|
window.requestAnimationFrame(() => globalThis.setTimeout(e, 0));
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
globalThis.setTimeout(e, 0);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function At(e) {
|
|
156
156
|
return e !== void 0 && !Array.isArray(e);
|
|
157
157
|
}
|
|
158
|
-
class
|
|
159
|
-
_className =
|
|
158
|
+
class We extends je {
|
|
159
|
+
_className = Te;
|
|
160
160
|
_hydrationScheduler;
|
|
161
161
|
_options;
|
|
162
162
|
_pluginDebug;
|
|
@@ -175,8 +175,8 @@ class Le extends He {
|
|
|
175
175
|
return this._subscriptions;
|
|
176
176
|
}
|
|
177
177
|
constructor(t, n, s) {
|
|
178
|
-
const r = Array.isArray(n) ? n : void 0, i =
|
|
179
|
-
super(Array.isArray(r) && !!r?.includes(
|
|
178
|
+
const r = Array.isArray(n) ? n : void 0, i = At(n) ? n : s;
|
|
179
|
+
super(Array.isArray(r) && !!r?.includes(Te), Ct), this._hydrationScheduler = i?.hydrationScheduler ?? Rt, this._options = i, this._pluginDebug = Array.isArray(r) ? r : void 0, this._subscribers = t;
|
|
180
180
|
}
|
|
181
181
|
addResetStoreCallback(t) {
|
|
182
182
|
this._resetStoreCallback.push(t);
|
|
@@ -189,7 +189,7 @@ class Le extends He {
|
|
|
189
189
|
}
|
|
190
190
|
definePluginExecution(t) {
|
|
191
191
|
return {
|
|
192
|
-
...
|
|
192
|
+
...xt,
|
|
193
193
|
...this._options?.execution ?? {},
|
|
194
194
|
...t.execution ?? {},
|
|
195
195
|
...this._options?.subscriberExecution?.[t.name] ?? {}
|
|
@@ -315,20 +315,20 @@ class Le extends He {
|
|
|
315
315
|
"stores:",
|
|
316
316
|
c
|
|
317
317
|
]);
|
|
318
|
-
const
|
|
318
|
+
const l = {
|
|
319
319
|
storeOptions: { ...n?.storeOptions ?? {}, ...o }
|
|
320
320
|
};
|
|
321
321
|
i.invoke(
|
|
322
|
-
{ store: t, options: { ...n, ...
|
|
322
|
+
{ store: t, options: { ...n, ...l } },
|
|
323
323
|
this.debug
|
|
324
324
|
), this._subscriptionsDelivered.add(this.defineSubscriptionKey(s, t)), be(c) || c?.forEach(
|
|
325
|
-
(
|
|
325
|
+
(a) => i.invoke(
|
|
326
326
|
{
|
|
327
|
-
store:
|
|
327
|
+
store: a,
|
|
328
328
|
options: {
|
|
329
329
|
...n,
|
|
330
|
-
...
|
|
331
|
-
...
|
|
330
|
+
...l,
|
|
331
|
+
...a?.storeOptions ?? {}
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
this.debug
|
|
@@ -340,47 +340,47 @@ class Le extends He {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
// @__NO_SIDE_EFFECTS__
|
|
343
|
-
function
|
|
343
|
+
function It(e) {
|
|
344
344
|
const t = /* @__PURE__ */ Object.create(null);
|
|
345
345
|
for (const n of e.split(",")) t[n] = 1;
|
|
346
346
|
return (n) => n in t;
|
|
347
347
|
}
|
|
348
|
-
const
|
|
348
|
+
const me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
349
349
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
350
|
-
const
|
|
351
|
-
},
|
|
352
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
350
|
+
const ze = () => {
|
|
351
|
+
}, Dt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
352
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), $t = (e) => e.startsWith("onUpdate:"), M = Object.assign, Vt = Object.prototype.hasOwnProperty, Se = (e, t) => Vt.call(e, t), p = Array.isArray, z = (e) => Ue(e) === "[object Map]", R = (e) => typeof e == "function", O = (e) => typeof e == "string", P = (e) => typeof e == "symbol", g = (e) => e !== null && typeof e == "object", Tt = Object.prototype.toString, Ue = (e) => Tt.call(e), qe = (e) => Ue(e).slice(8, -1), ce = (e) => O(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Pt = (e) => {
|
|
353
353
|
const t = /* @__PURE__ */ Object.create(null);
|
|
354
354
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
355
|
-
},
|
|
356
|
-
let
|
|
357
|
-
const ue = () =>
|
|
355
|
+
}, Mt = Pt((e) => e.charAt(0).toUpperCase() + e.slice(1)), $ = (e, t) => !Object.is(e, t);
|
|
356
|
+
let Pe;
|
|
357
|
+
const ue = () => Pe || (Pe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
358
358
|
function Ne(e) {
|
|
359
359
|
if (p(e)) {
|
|
360
360
|
const t = {};
|
|
361
361
|
for (let n = 0; n < e.length; n++) {
|
|
362
|
-
const s = e[n], r =
|
|
362
|
+
const s = e[n], r = O(s) ? Ht(s) : Ne(s);
|
|
363
363
|
if (r)
|
|
364
364
|
for (const i in r)
|
|
365
365
|
t[i] = r[i];
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
|
-
} else if (
|
|
368
|
+
} else if (O(e) || g(e))
|
|
369
369
|
return e;
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
function
|
|
371
|
+
const Ft = /;(?![^(]*\))/g, kt = /:([^]+)/, Kt = /\/\*[^]*?\*\//g;
|
|
372
|
+
function Ht(e) {
|
|
373
373
|
const t = {};
|
|
374
|
-
return e.replace(
|
|
374
|
+
return e.replace(Kt, "").split(Ft).forEach((n) => {
|
|
375
375
|
if (n) {
|
|
376
|
-
const s = n.split(
|
|
376
|
+
const s = n.split(kt);
|
|
377
377
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
378
378
|
}
|
|
379
379
|
}), t;
|
|
380
380
|
}
|
|
381
381
|
function Ce(e) {
|
|
382
382
|
let t = "";
|
|
383
|
-
if (
|
|
383
|
+
if (O(e))
|
|
384
384
|
t = e;
|
|
385
385
|
else if (p(e))
|
|
386
386
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -392,15 +392,15 @@ function Ce(e) {
|
|
|
392
392
|
e[n] && (t += n + " ");
|
|
393
393
|
return t.trim();
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function j(e, ...t) {
|
|
396
396
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
397
397
|
}
|
|
398
|
-
let
|
|
398
|
+
let jt, Be = 0, fe;
|
|
399
399
|
function xe() {
|
|
400
|
-
|
|
400
|
+
Be++;
|
|
401
401
|
}
|
|
402
402
|
function Re() {
|
|
403
|
-
if (--
|
|
403
|
+
if (--Be > 0)
|
|
404
404
|
return;
|
|
405
405
|
let e;
|
|
406
406
|
for (; fe; ) {
|
|
@@ -419,15 +419,15 @@ function Re() {
|
|
|
419
419
|
if (e) throw e;
|
|
420
420
|
}
|
|
421
421
|
let ee = !0;
|
|
422
|
-
const
|
|
423
|
-
function ae() {
|
|
424
|
-
Be.push(ee), ee = !1;
|
|
425
|
-
}
|
|
422
|
+
const Je = [];
|
|
426
423
|
function le() {
|
|
427
|
-
|
|
424
|
+
Je.push(ee), ee = !1;
|
|
425
|
+
}
|
|
426
|
+
function ae() {
|
|
427
|
+
const e = Je.pop();
|
|
428
428
|
ee = e === void 0 ? !0 : e;
|
|
429
429
|
}
|
|
430
|
-
class
|
|
430
|
+
class Ye {
|
|
431
431
|
// TODO isolatedDeclarations "__v_skip"
|
|
432
432
|
constructor(t) {
|
|
433
433
|
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, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
@@ -443,7 +443,7 @@ class Je {
|
|
|
443
443
|
if (process.env.NODE_ENV !== "production")
|
|
444
444
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
445
445
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
446
|
-
|
|
446
|
+
M(
|
|
447
447
|
{
|
|
448
448
|
effect: n.sub
|
|
449
449
|
},
|
|
@@ -457,95 +457,95 @@ class Je {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
const te = /* @__PURE__ */ new WeakMap(),
|
|
460
|
+
const te = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ Symbol(
|
|
461
461
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
462
462
|
), ye = /* @__PURE__ */ Symbol(
|
|
463
463
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
464
|
-
),
|
|
464
|
+
), U = /* @__PURE__ */ Symbol(
|
|
465
465
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
466
466
|
);
|
|
467
467
|
function _(e, t, n) {
|
|
468
|
-
if (ee &&
|
|
468
|
+
if (ee && jt) {
|
|
469
469
|
let s = te.get(e);
|
|
470
470
|
s || te.set(e, s = /* @__PURE__ */ new Map());
|
|
471
471
|
let r = s.get(n);
|
|
472
|
-
r || (s.set(n, r = new
|
|
472
|
+
r || (s.set(n, r = new Ye()), r.map = s, r.key = n), process.env.NODE_ENV !== "production" ? r.track({
|
|
473
473
|
target: e,
|
|
474
474
|
type: t,
|
|
475
475
|
key: n
|
|
476
476
|
}) : r.track();
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function I(e, t, n, s, r, i) {
|
|
480
480
|
const o = te.get(e);
|
|
481
481
|
if (!o)
|
|
482
482
|
return;
|
|
483
|
-
const c = (
|
|
484
|
-
|
|
483
|
+
const c = (l) => {
|
|
484
|
+
l && (process.env.NODE_ENV !== "production" ? l.trigger({
|
|
485
485
|
target: e,
|
|
486
486
|
type: t,
|
|
487
487
|
key: n,
|
|
488
488
|
newValue: s,
|
|
489
489
|
oldValue: r,
|
|
490
490
|
oldTarget: i
|
|
491
|
-
}) :
|
|
491
|
+
}) : l.trigger());
|
|
492
492
|
};
|
|
493
493
|
if (xe(), t === "clear")
|
|
494
494
|
o.forEach(c);
|
|
495
495
|
else {
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
496
|
+
const l = p(e), a = l && ce(n);
|
|
497
|
+
if (l && n === "length") {
|
|
498
498
|
const d = Number(s);
|
|
499
499
|
o.forEach((u, f) => {
|
|
500
|
-
(f === "length" || f ===
|
|
500
|
+
(f === "length" || f === U || !P(f) && f >= d) && c(u);
|
|
501
501
|
});
|
|
502
502
|
} else
|
|
503
|
-
switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)),
|
|
503
|
+
switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)), a && c(o.get(U)), t) {
|
|
504
504
|
case "add":
|
|
505
|
-
|
|
505
|
+
l ? a && c(o.get("length")) : (c(o.get(V)), z(e) && c(o.get(ye)));
|
|
506
506
|
break;
|
|
507
507
|
case "delete":
|
|
508
|
-
|
|
508
|
+
l || (c(o.get(V)), z(e) && c(o.get(ye)));
|
|
509
509
|
break;
|
|
510
510
|
case "set":
|
|
511
|
-
z(e) && c(o.get(
|
|
511
|
+
z(e) && c(o.get(V));
|
|
512
512
|
break;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
Re();
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Lt(e, t) {
|
|
518
518
|
const n = te.get(e);
|
|
519
519
|
return n && n.get(t);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function F(e) {
|
|
522
522
|
const t = /* @__PURE__ */ h(e);
|
|
523
|
-
return t === e ? t : (_(t, "iterate",
|
|
523
|
+
return t === e ? t : (_(t, "iterate", U), /* @__PURE__ */ y(e) ? t : t.map(x));
|
|
524
524
|
}
|
|
525
525
|
function Ae(e) {
|
|
526
|
-
return _(e = /* @__PURE__ */ h(e), "iterate",
|
|
526
|
+
return _(e = /* @__PURE__ */ h(e), "iterate", U), e;
|
|
527
527
|
}
|
|
528
528
|
function w(e, t) {
|
|
529
|
-
return /* @__PURE__ */
|
|
529
|
+
return /* @__PURE__ */ v(e) ? B(/* @__PURE__ */ Ie(e) ? x(t) : t) : x(t);
|
|
530
530
|
}
|
|
531
|
-
const
|
|
531
|
+
const Wt = {
|
|
532
532
|
__proto__: null,
|
|
533
533
|
[Symbol.iterator]() {
|
|
534
534
|
return he(this, Symbol.iterator, (e) => w(this, e));
|
|
535
535
|
},
|
|
536
536
|
concat(...e) {
|
|
537
|
-
return
|
|
538
|
-
...e.map((t) => p(t) ?
|
|
537
|
+
return F(this).concat(
|
|
538
|
+
...e.map((t) => p(t) ? F(t) : t)
|
|
539
539
|
);
|
|
540
540
|
},
|
|
541
541
|
entries() {
|
|
542
542
|
return he(this, "entries", (e) => (e[1] = w(this, e[1]), e));
|
|
543
543
|
},
|
|
544
544
|
every(e, t) {
|
|
545
|
-
return
|
|
545
|
+
return N(this, "every", e, t, void 0, arguments);
|
|
546
546
|
},
|
|
547
547
|
filter(e, t) {
|
|
548
|
-
return
|
|
548
|
+
return N(
|
|
549
549
|
this,
|
|
550
550
|
"filter",
|
|
551
551
|
e,
|
|
@@ -555,7 +555,7 @@ const jt = {
|
|
|
555
555
|
);
|
|
556
556
|
},
|
|
557
557
|
find(e, t) {
|
|
558
|
-
return
|
|
558
|
+
return N(
|
|
559
559
|
this,
|
|
560
560
|
"find",
|
|
561
561
|
e,
|
|
@@ -565,10 +565,10 @@ const jt = {
|
|
|
565
565
|
);
|
|
566
566
|
},
|
|
567
567
|
findIndex(e, t) {
|
|
568
|
-
return
|
|
568
|
+
return N(this, "findIndex", e, t, void 0, arguments);
|
|
569
569
|
},
|
|
570
570
|
findLast(e, t) {
|
|
571
|
-
return
|
|
571
|
+
return N(
|
|
572
572
|
this,
|
|
573
573
|
"findLast",
|
|
574
574
|
e,
|
|
@@ -578,11 +578,11 @@ const jt = {
|
|
|
578
578
|
);
|
|
579
579
|
},
|
|
580
580
|
findLastIndex(e, t) {
|
|
581
|
-
return
|
|
581
|
+
return N(this, "findLastIndex", e, t, void 0, arguments);
|
|
582
582
|
},
|
|
583
583
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
584
584
|
forEach(e, t) {
|
|
585
|
-
return
|
|
585
|
+
return N(this, "forEach", e, t, void 0, arguments);
|
|
586
586
|
},
|
|
587
587
|
includes(...e) {
|
|
588
588
|
return de(this, "includes", e);
|
|
@@ -591,14 +591,14 @@ const jt = {
|
|
|
591
591
|
return de(this, "indexOf", e);
|
|
592
592
|
},
|
|
593
593
|
join(e) {
|
|
594
|
-
return
|
|
594
|
+
return F(this).join(e);
|
|
595
595
|
},
|
|
596
596
|
// keys() iterator only reads `length`, no optimization required
|
|
597
597
|
lastIndexOf(...e) {
|
|
598
598
|
return de(this, "lastIndexOf", e);
|
|
599
599
|
},
|
|
600
600
|
map(e, t) {
|
|
601
|
-
return
|
|
601
|
+
return N(this, "map", e, t, void 0, arguments);
|
|
602
602
|
},
|
|
603
603
|
pop() {
|
|
604
604
|
return W(this, "pop");
|
|
@@ -607,29 +607,29 @@ const jt = {
|
|
|
607
607
|
return W(this, "push", e);
|
|
608
608
|
},
|
|
609
609
|
reduce(e, ...t) {
|
|
610
|
-
return
|
|
610
|
+
return Me(this, "reduce", e, t);
|
|
611
611
|
},
|
|
612
612
|
reduceRight(e, ...t) {
|
|
613
|
-
return
|
|
613
|
+
return Me(this, "reduceRight", e, t);
|
|
614
614
|
},
|
|
615
615
|
shift() {
|
|
616
616
|
return W(this, "shift");
|
|
617
617
|
},
|
|
618
618
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
619
619
|
some(e, t) {
|
|
620
|
-
return
|
|
620
|
+
return N(this, "some", e, t, void 0, arguments);
|
|
621
621
|
},
|
|
622
622
|
splice(...e) {
|
|
623
623
|
return W(this, "splice", e);
|
|
624
624
|
},
|
|
625
625
|
toReversed() {
|
|
626
|
-
return
|
|
626
|
+
return F(this).toReversed();
|
|
627
627
|
},
|
|
628
628
|
toSorted(e) {
|
|
629
|
-
return
|
|
629
|
+
return F(this).toSorted(e);
|
|
630
630
|
},
|
|
631
631
|
toSpliced(...e) {
|
|
632
|
-
return
|
|
632
|
+
return F(this).toSpliced(...e);
|
|
633
633
|
},
|
|
634
634
|
unshift(...e) {
|
|
635
635
|
return W(this, "unshift", e);
|
|
@@ -645,53 +645,53 @@ function he(e, t, n) {
|
|
|
645
645
|
return i.done || (i.value = n(i.value)), i;
|
|
646
646
|
}), r;
|
|
647
647
|
}
|
|
648
|
-
const
|
|
649
|
-
function
|
|
650
|
-
const o = Ae(e), c = o !== e && !/* @__PURE__ */ y(e),
|
|
651
|
-
if (
|
|
652
|
-
const u =
|
|
648
|
+
const zt = Array.prototype;
|
|
649
|
+
function N(e, t, n, s, r, i) {
|
|
650
|
+
const o = Ae(e), c = o !== e && !/* @__PURE__ */ y(e), l = o[t];
|
|
651
|
+
if (l !== zt[t]) {
|
|
652
|
+
const u = l.apply(e, i);
|
|
653
653
|
return c ? x(u) : u;
|
|
654
654
|
}
|
|
655
|
-
let
|
|
656
|
-
o !== e && (c ?
|
|
655
|
+
let a = n;
|
|
656
|
+
o !== e && (c ? a = function(u, f) {
|
|
657
657
|
return n.call(this, w(e, u), f, e);
|
|
658
|
-
} : n.length > 2 && (
|
|
658
|
+
} : n.length > 2 && (a = function(u, f) {
|
|
659
659
|
return n.call(this, u, f, e);
|
|
660
660
|
}));
|
|
661
|
-
const d =
|
|
661
|
+
const d = l.call(o, a, s);
|
|
662
662
|
return c && r ? r(d) : d;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Me(e, t, n, s) {
|
|
665
665
|
const r = Ae(e), i = r !== e && !/* @__PURE__ */ y(e);
|
|
666
666
|
let o = n, c = !1;
|
|
667
|
-
r !== e && (i ? (c = s.length === 0, o = function(
|
|
668
|
-
return c && (c = !1,
|
|
669
|
-
}) : n.length > 3 && (o = function(
|
|
670
|
-
return n.call(this,
|
|
667
|
+
r !== e && (i ? (c = s.length === 0, o = function(a, d, u) {
|
|
668
|
+
return c && (c = !1, a = w(e, a)), n.call(this, a, w(e, d), u, e);
|
|
669
|
+
}) : n.length > 3 && (o = function(a, d, u) {
|
|
670
|
+
return n.call(this, a, d, u, e);
|
|
671
671
|
}));
|
|
672
|
-
const
|
|
673
|
-
return c ? w(e,
|
|
672
|
+
const l = r[t](o, ...s);
|
|
673
|
+
return c ? w(e, l) : l;
|
|
674
674
|
}
|
|
675
675
|
function de(e, t, n) {
|
|
676
676
|
const s = /* @__PURE__ */ h(e);
|
|
677
|
-
_(s, "iterate",
|
|
677
|
+
_(s, "iterate", U);
|
|
678
678
|
const r = s[t](...n);
|
|
679
|
-
return (r === -1 || r === !1) && /* @__PURE__ */
|
|
679
|
+
return (r === -1 || r === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */ h(n[0]), s[t](...n)) : r;
|
|
680
680
|
}
|
|
681
681
|
function W(e, t, n = []) {
|
|
682
|
-
|
|
682
|
+
le(), xe();
|
|
683
683
|
const s = (/* @__PURE__ */ h(e))[t].apply(e, n);
|
|
684
|
-
return Re(),
|
|
684
|
+
return Re(), ae(), s;
|
|
685
685
|
}
|
|
686
|
-
const
|
|
687
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
686
|
+
const Ut = /* @__PURE__ */ It("__proto__,__v_isRef,__isVue"), Ge = new Set(
|
|
687
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(P)
|
|
688
688
|
);
|
|
689
|
-
function
|
|
690
|
-
|
|
689
|
+
function qt(e) {
|
|
690
|
+
P(e) || (e = String(e));
|
|
691
691
|
const t = /* @__PURE__ */ h(this);
|
|
692
692
|
return _(t, "has", e), t.hasOwnProperty(e);
|
|
693
693
|
}
|
|
694
|
-
class
|
|
694
|
+
class Qe {
|
|
695
695
|
constructor(t = !1, n = !1) {
|
|
696
696
|
this._isReadonly = t, this._isShallow = n;
|
|
697
697
|
}
|
|
@@ -705,16 +705,16 @@ class Ge {
|
|
|
705
705
|
if (n === "__v_isShallow")
|
|
706
706
|
return i;
|
|
707
707
|
if (n === "__v_raw")
|
|
708
|
-
return s === (r ? i ?
|
|
708
|
+
return s === (r ? i ? nn : et : i ? tn : Ze).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
709
709
|
// this means the receiver is a user proxy of the reactive proxy
|
|
710
710
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
711
711
|
const o = p(t);
|
|
712
712
|
if (!r) {
|
|
713
|
-
let
|
|
714
|
-
if (o && (
|
|
715
|
-
return
|
|
713
|
+
let l;
|
|
714
|
+
if (o && (l = Wt[n]))
|
|
715
|
+
return l;
|
|
716
716
|
if (n === "hasOwnProperty")
|
|
717
|
-
return
|
|
717
|
+
return qt;
|
|
718
718
|
}
|
|
719
719
|
const c = Reflect.get(
|
|
720
720
|
t,
|
|
@@ -724,16 +724,16 @@ class Ge {
|
|
|
724
724
|
// its class methods
|
|
725
725
|
/* @__PURE__ */ b(t) ? t : s
|
|
726
726
|
);
|
|
727
|
-
if ((
|
|
727
|
+
if ((P(n) ? Ge.has(n) : Ut(n)) || (r || _(t, "get", n), i))
|
|
728
728
|
return c;
|
|
729
729
|
if (/* @__PURE__ */ b(c)) {
|
|
730
|
-
const
|
|
731
|
-
return r && g(
|
|
730
|
+
const l = o && ce(n) ? c : c.value;
|
|
731
|
+
return r && g(l) ? /* @__PURE__ */ we(l) : l;
|
|
732
732
|
}
|
|
733
|
-
return g(c) ? r ? /* @__PURE__ */ we(c) : /* @__PURE__ */
|
|
733
|
+
return g(c) ? r ? /* @__PURE__ */ we(c) : /* @__PURE__ */ tt(c) : c;
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
class
|
|
736
|
+
class Bt extends Qe {
|
|
737
737
|
constructor(t = !1) {
|
|
738
738
|
super(!1, t);
|
|
739
739
|
}
|
|
@@ -741,69 +741,69 @@ class qt extends Ge {
|
|
|
741
741
|
let i = t[n];
|
|
742
742
|
const o = p(t) && ce(n);
|
|
743
743
|
if (!this._isShallow) {
|
|
744
|
-
const
|
|
745
|
-
if (!/* @__PURE__ */ y(s) && !/* @__PURE__ */
|
|
746
|
-
return
|
|
744
|
+
const a = /* @__PURE__ */ v(i);
|
|
745
|
+
if (!/* @__PURE__ */ y(s) && !/* @__PURE__ */ v(s) && (i = /* @__PURE__ */ h(i), s = /* @__PURE__ */ h(s)), !o && /* @__PURE__ */ b(i) && !/* @__PURE__ */ b(s))
|
|
746
|
+
return a ? (process.env.NODE_ENV !== "production" && j(
|
|
747
747
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
748
748
|
t[n]
|
|
749
749
|
), !0) : (i.value = s, !0);
|
|
750
750
|
}
|
|
751
|
-
const c = o ? Number(n) < t.length :
|
|
751
|
+
const c = o ? Number(n) < t.length : Se(t, n), l = Reflect.set(
|
|
752
752
|
t,
|
|
753
753
|
n,
|
|
754
754
|
s,
|
|
755
755
|
/* @__PURE__ */ b(t) ? t : r
|
|
756
756
|
);
|
|
757
|
-
return t === /* @__PURE__ */ h(r) &&
|
|
757
|
+
return t === /* @__PURE__ */ h(r) && l && (c ? $(s, i) && I(t, "set", n, s, i) : I(t, "add", n, s)), l;
|
|
758
758
|
}
|
|
759
759
|
deleteProperty(t, n) {
|
|
760
|
-
const s =
|
|
761
|
-
return i && s &&
|
|
760
|
+
const s = Se(t, n), r = t[n], i = Reflect.deleteProperty(t, n);
|
|
761
|
+
return i && s && I(t, "delete", n, void 0, r), i;
|
|
762
762
|
}
|
|
763
763
|
has(t, n) {
|
|
764
764
|
const s = Reflect.has(t, n);
|
|
765
|
-
return (!
|
|
765
|
+
return (!P(n) || !Ge.has(n)) && _(t, "has", n), s;
|
|
766
766
|
}
|
|
767
767
|
ownKeys(t) {
|
|
768
768
|
return _(
|
|
769
769
|
t,
|
|
770
770
|
"iterate",
|
|
771
|
-
p(t) ? "length" :
|
|
771
|
+
p(t) ? "length" : V
|
|
772
772
|
), Reflect.ownKeys(t);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
class
|
|
775
|
+
class Jt extends Qe {
|
|
776
776
|
constructor(t = !1) {
|
|
777
777
|
super(!0, t);
|
|
778
778
|
}
|
|
779
779
|
set(t, n) {
|
|
780
|
-
return process.env.NODE_ENV !== "production" &&
|
|
780
|
+
return process.env.NODE_ENV !== "production" && j(
|
|
781
781
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
782
782
|
t
|
|
783
783
|
), !0;
|
|
784
784
|
}
|
|
785
785
|
deleteProperty(t, n) {
|
|
786
|
-
return process.env.NODE_ENV !== "production" &&
|
|
786
|
+
return process.env.NODE_ENV !== "production" && j(
|
|
787
787
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
788
788
|
t
|
|
789
789
|
), !0;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
const
|
|
793
|
-
function
|
|
792
|
+
const Yt = /* @__PURE__ */ new Bt(), Gt = /* @__PURE__ */ new Jt(), Ee = (e) => e, G = (e) => Reflect.getPrototypeOf(e);
|
|
793
|
+
function Qt(e, t, n) {
|
|
794
794
|
return function(...s) {
|
|
795
|
-
const r = this.__v_raw, i = /* @__PURE__ */ h(r), o = z(i), c = e === "entries" || e === Symbol.iterator && o,
|
|
795
|
+
const r = this.__v_raw, i = /* @__PURE__ */ h(r), o = z(i), c = e === "entries" || e === Symbol.iterator && o, l = e === "keys" && o, a = r[e](...s), d = n ? Ee : t ? B : x;
|
|
796
796
|
return !t && _(
|
|
797
797
|
i,
|
|
798
798
|
"iterate",
|
|
799
|
-
|
|
800
|
-
),
|
|
799
|
+
l ? ye : V
|
|
800
|
+
), M(
|
|
801
801
|
// inheriting all iterator properties
|
|
802
|
-
Object.create(
|
|
802
|
+
Object.create(a),
|
|
803
803
|
{
|
|
804
804
|
// iterator protocol
|
|
805
805
|
next() {
|
|
806
|
-
const { value: u, done: f } =
|
|
806
|
+
const { value: u, done: f } = a.next();
|
|
807
807
|
return f ? { value: u, done: f } : {
|
|
808
808
|
value: c ? [d(u[0]), d(u[1])] : d(u),
|
|
809
809
|
done: f
|
|
@@ -817,40 +817,40 @@ function Q(e) {
|
|
|
817
817
|
return function(...t) {
|
|
818
818
|
if (process.env.NODE_ENV !== "production") {
|
|
819
819
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
820
|
-
|
|
821
|
-
`${
|
|
820
|
+
j(
|
|
821
|
+
`${Mt(e)} operation ${n}failed: target is readonly.`,
|
|
822
822
|
/* @__PURE__ */ h(this)
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Xt(e, t) {
|
|
829
829
|
const n = {
|
|
830
830
|
get(r) {
|
|
831
831
|
const i = this.__v_raw, o = /* @__PURE__ */ h(i), c = /* @__PURE__ */ h(r);
|
|
832
|
-
e || (
|
|
833
|
-
const { has:
|
|
834
|
-
if (
|
|
835
|
-
return
|
|
836
|
-
if (
|
|
837
|
-
return
|
|
832
|
+
e || ($(r, c) && _(o, "get", r), _(o, "get", c));
|
|
833
|
+
const { has: l } = G(o), a = t ? Ee : e ? B : x;
|
|
834
|
+
if (l.call(o, r))
|
|
835
|
+
return a(i.get(r));
|
|
836
|
+
if (l.call(o, c))
|
|
837
|
+
return a(i.get(c));
|
|
838
838
|
i !== o && i.get(r);
|
|
839
839
|
},
|
|
840
840
|
get size() {
|
|
841
841
|
const r = this.__v_raw;
|
|
842
|
-
return !e && _(/* @__PURE__ */ h(r), "iterate",
|
|
842
|
+
return !e && _(/* @__PURE__ */ h(r), "iterate", V), r.size;
|
|
843
843
|
},
|
|
844
844
|
has(r) {
|
|
845
845
|
const i = this.__v_raw, o = /* @__PURE__ */ h(i), c = /* @__PURE__ */ h(r);
|
|
846
|
-
return e || (
|
|
846
|
+
return e || ($(r, c) && _(o, "has", r), _(o, "has", c)), r === c ? i.has(r) : i.has(r) || i.has(c);
|
|
847
847
|
},
|
|
848
848
|
forEach(r, i) {
|
|
849
|
-
const o = this, c = o.__v_raw,
|
|
850
|
-
return !e && _(
|
|
849
|
+
const o = this, c = o.__v_raw, l = /* @__PURE__ */ h(c), a = t ? Ee : e ? B : x;
|
|
850
|
+
return !e && _(l, "iterate", V), c.forEach((d, u) => r.call(i, a(d), a(u), o));
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
return
|
|
853
|
+
return M(
|
|
854
854
|
n,
|
|
855
855
|
e ? {
|
|
856
856
|
add: Q("add"),
|
|
@@ -859,27 +859,27 @@ function Gt(e, t) {
|
|
|
859
859
|
clear: Q("clear")
|
|
860
860
|
} : {
|
|
861
861
|
add(r) {
|
|
862
|
-
const i = /* @__PURE__ */ h(this), o = G(i), c = /* @__PURE__ */ h(r),
|
|
863
|
-
return o.has.call(i,
|
|
862
|
+
const i = /* @__PURE__ */ h(this), o = G(i), c = /* @__PURE__ */ h(r), l = !t && !/* @__PURE__ */ y(r) && !/* @__PURE__ */ v(r) ? c : r;
|
|
863
|
+
return o.has.call(i, l) || $(r, l) && o.has.call(i, r) || $(c, l) && o.has.call(i, c) || (i.add(l), I(i, "add", l, l)), this;
|
|
864
864
|
},
|
|
865
865
|
set(r, i) {
|
|
866
|
-
!t && !/* @__PURE__ */ y(i) && !/* @__PURE__ */
|
|
867
|
-
const o = /* @__PURE__ */ h(this), { has: c, get:
|
|
868
|
-
let
|
|
869
|
-
|
|
870
|
-
const d =
|
|
871
|
-
return o.set(r, i),
|
|
866
|
+
!t && !/* @__PURE__ */ y(i) && !/* @__PURE__ */ v(i) && (i = /* @__PURE__ */ h(i));
|
|
867
|
+
const o = /* @__PURE__ */ h(this), { has: c, get: l } = G(o);
|
|
868
|
+
let a = c.call(o, r);
|
|
869
|
+
a ? process.env.NODE_ENV !== "production" && Fe(o, c, r) : (r = /* @__PURE__ */ h(r), a = c.call(o, r));
|
|
870
|
+
const d = l.call(o, r);
|
|
871
|
+
return o.set(r, i), a ? $(i, d) && I(o, "set", r, i, d) : I(o, "add", r, i), this;
|
|
872
872
|
},
|
|
873
873
|
delete(r) {
|
|
874
874
|
const i = /* @__PURE__ */ h(this), { has: o, get: c } = G(i);
|
|
875
|
-
let
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
return
|
|
875
|
+
let l = o.call(i, r);
|
|
876
|
+
l ? process.env.NODE_ENV !== "production" && Fe(i, o, r) : (r = /* @__PURE__ */ h(r), l = o.call(i, r));
|
|
877
|
+
const a = c ? c.call(i, r) : void 0, d = i.delete(r);
|
|
878
|
+
return l && I(i, "delete", r, void 0, a), d;
|
|
879
879
|
},
|
|
880
880
|
clear() {
|
|
881
881
|
const r = /* @__PURE__ */ h(this), i = r.size !== 0, o = process.env.NODE_ENV !== "production" ? z(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
|
|
882
|
-
return i &&
|
|
882
|
+
return i && I(
|
|
883
883
|
r,
|
|
884
884
|
"clear",
|
|
885
885
|
void 0,
|
|
@@ -894,33 +894,33 @@ function Gt(e, t) {
|
|
|
894
894
|
"entries",
|
|
895
895
|
Symbol.iterator
|
|
896
896
|
].forEach((r) => {
|
|
897
|
-
n[r] =
|
|
897
|
+
n[r] = Qt(r, e, t);
|
|
898
898
|
}), n;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
const n =
|
|
900
|
+
function Xe(e, t) {
|
|
901
|
+
const n = Xt(e, t);
|
|
902
902
|
return (s, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
903
|
-
|
|
903
|
+
Se(n, r) && r in s ? n : s,
|
|
904
904
|
r,
|
|
905
905
|
i
|
|
906
906
|
);
|
|
907
907
|
}
|
|
908
|
-
const
|
|
909
|
-
get: /* @__PURE__ */
|
|
910
|
-
},
|
|
911
|
-
get: /* @__PURE__ */
|
|
908
|
+
const Zt = {
|
|
909
|
+
get: /* @__PURE__ */ Xe(!1, !1)
|
|
910
|
+
}, en = {
|
|
911
|
+
get: /* @__PURE__ */ Xe(!0, !1)
|
|
912
912
|
};
|
|
913
|
-
function
|
|
913
|
+
function Fe(e, t, n) {
|
|
914
914
|
const s = /* @__PURE__ */ h(n);
|
|
915
915
|
if (s !== n && t.call(e, s)) {
|
|
916
916
|
const r = qe(e);
|
|
917
|
-
|
|
917
|
+
j(
|
|
918
918
|
`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
919
919
|
);
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
const
|
|
923
|
-
function
|
|
922
|
+
const Ze = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap();
|
|
923
|
+
function rn(e) {
|
|
924
924
|
switch (e) {
|
|
925
925
|
case "Object":
|
|
926
926
|
case "Array":
|
|
@@ -935,28 +935,28 @@ function tn(e) {
|
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
// @__NO_SIDE_EFFECTS__
|
|
938
|
-
function
|
|
939
|
-
return /* @__PURE__ */
|
|
938
|
+
function tt(e) {
|
|
939
|
+
return /* @__PURE__ */ v(e) ? e : nt(
|
|
940
940
|
e,
|
|
941
941
|
!1,
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
942
|
+
Yt,
|
|
943
|
+
Zt,
|
|
944
|
+
Ze
|
|
945
945
|
);
|
|
946
946
|
}
|
|
947
947
|
// @__NO_SIDE_EFFECTS__
|
|
948
948
|
function we(e) {
|
|
949
|
-
return
|
|
949
|
+
return nt(
|
|
950
950
|
e,
|
|
951
951
|
!0,
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
Gt,
|
|
953
|
+
en,
|
|
954
|
+
et
|
|
955
955
|
);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function nt(e, t, n, s, r) {
|
|
958
958
|
if (!g(e))
|
|
959
|
-
return process.env.NODE_ENV !== "production" &&
|
|
959
|
+
return process.env.NODE_ENV !== "production" && j(
|
|
960
960
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
961
961
|
e
|
|
962
962
|
)}`
|
|
@@ -966,7 +966,7 @@ function tt(e, t, n, s, r) {
|
|
|
966
966
|
const i = r.get(e);
|
|
967
967
|
if (i)
|
|
968
968
|
return i;
|
|
969
|
-
const o =
|
|
969
|
+
const o = rn(qe(e));
|
|
970
970
|
if (o === 0)
|
|
971
971
|
return e;
|
|
972
972
|
const c = new Proxy(
|
|
@@ -977,10 +977,10 @@ function tt(e, t, n, s, r) {
|
|
|
977
977
|
}
|
|
978
978
|
// @__NO_SIDE_EFFECTS__
|
|
979
979
|
function Ie(e) {
|
|
980
|
-
return /* @__PURE__ */
|
|
980
|
+
return /* @__PURE__ */ v(e) ? /* @__PURE__ */ Ie(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
981
981
|
}
|
|
982
982
|
// @__NO_SIDE_EFFECTS__
|
|
983
|
-
function
|
|
983
|
+
function v(e) {
|
|
984
984
|
return !!(e && e.__v_isReadonly);
|
|
985
985
|
}
|
|
986
986
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -988,7 +988,7 @@ function y(e) {
|
|
|
988
988
|
return !!(e && e.__v_isShallow);
|
|
989
989
|
}
|
|
990
990
|
// @__NO_SIDE_EFFECTS__
|
|
991
|
-
function
|
|
991
|
+
function q(e) {
|
|
992
992
|
return e ? !!e.__v_raw : !1;
|
|
993
993
|
}
|
|
994
994
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -996,21 +996,21 @@ function h(e) {
|
|
|
996
996
|
const t = e && e.__v_raw;
|
|
997
997
|
return t ? /* @__PURE__ */ h(t) : e;
|
|
998
998
|
}
|
|
999
|
-
const x = (e) => g(e) ? /* @__PURE__ */
|
|
999
|
+
const x = (e) => g(e) ? /* @__PURE__ */ tt(e) : e, B = (e) => g(e) ? /* @__PURE__ */ we(e) : e;
|
|
1000
1000
|
// @__NO_SIDE_EFFECTS__
|
|
1001
1001
|
function b(e) {
|
|
1002
1002
|
return e ? e.__v_isRef === !0 : !1;
|
|
1003
1003
|
}
|
|
1004
1004
|
// @__NO_SIDE_EFFECTS__
|
|
1005
|
-
function
|
|
1006
|
-
return
|
|
1005
|
+
function rt(e) {
|
|
1006
|
+
return sn(e, !1);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return /* @__PURE__ */ b(e) ? e : new
|
|
1008
|
+
function sn(e, t) {
|
|
1009
|
+
return /* @__PURE__ */ b(e) ? e : new on(e, t);
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class on {
|
|
1012
1012
|
constructor(t, n) {
|
|
1013
|
-
this.dep = new
|
|
1013
|
+
this.dep = new Ye(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : /* @__PURE__ */ h(t), this._value = n ? t : x(t), this.__v_isShallow = n;
|
|
1014
1014
|
}
|
|
1015
1015
|
get value() {
|
|
1016
1016
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -1020,8 +1020,8 @@ class rn {
|
|
|
1020
1020
|
}) : this.dep.track(), this._value;
|
|
1021
1021
|
}
|
|
1022
1022
|
set value(t) {
|
|
1023
|
-
const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ y(t) || /* @__PURE__ */
|
|
1024
|
-
t = s ? t : /* @__PURE__ */ h(t),
|
|
1023
|
+
const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ y(t) || /* @__PURE__ */ v(t);
|
|
1024
|
+
t = s ? t : /* @__PURE__ */ h(t), $(t, n) && (this._rawValue = t, this._value = s ? t : x(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
1025
1025
|
target: this,
|
|
1026
1026
|
type: "set",
|
|
1027
1027
|
key: "value",
|
|
@@ -1030,22 +1030,22 @@ class rn {
|
|
|
1030
1030
|
}) : this.dep.trigger());
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function cn(e) {
|
|
1034
1034
|
return /* @__PURE__ */ b(e) ? e.value : e;
|
|
1035
1035
|
}
|
|
1036
|
-
class
|
|
1036
|
+
class un {
|
|
1037
1037
|
constructor(t, n, s) {
|
|
1038
|
-
this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key =
|
|
1038
|
+
this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key = P(n) ? n : String(n), this._raw = /* @__PURE__ */ h(t);
|
|
1039
1039
|
let r = !0, i = t;
|
|
1040
|
-
if (!p(t) ||
|
|
1040
|
+
if (!p(t) || P(this._key) || !ce(this._key))
|
|
1041
1041
|
do
|
|
1042
|
-
r = !/* @__PURE__ */
|
|
1042
|
+
r = !/* @__PURE__ */ q(i) || /* @__PURE__ */ y(i);
|
|
1043
1043
|
while (r && (i = i.__v_raw));
|
|
1044
1044
|
this._shallow = r;
|
|
1045
1045
|
}
|
|
1046
1046
|
get value() {
|
|
1047
1047
|
let t = this._object[this._key];
|
|
1048
|
-
return this._shallow && (t =
|
|
1048
|
+
return this._shallow && (t = cn(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
1049
1049
|
}
|
|
1050
1050
|
set value(t) {
|
|
1051
1051
|
if (this._shallow && /* @__PURE__ */ b(this._raw[this._key])) {
|
|
@@ -1058,10 +1058,10 @@ class on {
|
|
|
1058
1058
|
this._object[this._key] = t;
|
|
1059
1059
|
}
|
|
1060
1060
|
get dep() {
|
|
1061
|
-
return
|
|
1061
|
+
return Lt(this._raw, this._key);
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
class
|
|
1064
|
+
class ln {
|
|
1065
1065
|
constructor(t) {
|
|
1066
1066
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
1067
1067
|
}
|
|
@@ -1070,24 +1070,24 @@ class cn {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
// @__NO_SIDE_EFFECTS__
|
|
1073
|
-
function un(e, t, n) {
|
|
1074
|
-
return /* @__PURE__ */ b(e) ? e : I(e) ? new cn(e) : g(e) && arguments.length > 1 ? an(e, t, n) : /* @__PURE__ */ nt(e);
|
|
1075
|
-
}
|
|
1076
1073
|
function an(e, t, n) {
|
|
1077
|
-
return new
|
|
1074
|
+
return /* @__PURE__ */ b(e) ? e : R(e) ? new ln(e) : g(e) && arguments.length > 1 ? fn(e, t, n) : /* @__PURE__ */ rt(e);
|
|
1075
|
+
}
|
|
1076
|
+
function fn(e, t, n) {
|
|
1077
|
+
return new un(e, t, n);
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1080
|
-
function
|
|
1081
|
-
|
|
1079
|
+
const T = [];
|
|
1080
|
+
function hn(e) {
|
|
1081
|
+
T.push(e);
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1083
|
+
function dn() {
|
|
1084
|
+
T.pop();
|
|
1085
1085
|
}
|
|
1086
1086
|
let pe = !1;
|
|
1087
|
-
function
|
|
1087
|
+
function D(e, ...t) {
|
|
1088
1088
|
if (pe) return;
|
|
1089
|
-
pe = !0,
|
|
1090
|
-
const n =
|
|
1089
|
+
pe = !0, le();
|
|
1090
|
+
const n = T.length ? T[T.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = pn();
|
|
1091
1091
|
if (s)
|
|
1092
1092
|
De(
|
|
1093
1093
|
s,
|
|
@@ -1101,7 +1101,7 @@ function j(e, ...t) {
|
|
|
1101
1101
|
}).join(""),
|
|
1102
1102
|
n && n.proxy,
|
|
1103
1103
|
r.map(
|
|
1104
|
-
({ vnode: i }) => `at <${
|
|
1104
|
+
({ vnode: i }) => `at <${St(n, i.type)}>`
|
|
1105
1105
|
).join(`
|
|
1106
1106
|
`),
|
|
1107
1107
|
r
|
|
@@ -1110,12 +1110,12 @@ function j(e, ...t) {
|
|
|
1110
1110
|
else {
|
|
1111
1111
|
const i = [`[Vue warn]: ${e}`, ...t];
|
|
1112
1112
|
r.length && i.push(`
|
|
1113
|
-
`, ...
|
|
1113
|
+
`, ..._n(r)), console.warn(...i);
|
|
1114
1114
|
}
|
|
1115
|
-
|
|
1115
|
+
ae(), pe = !1;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
let e =
|
|
1117
|
+
function pn() {
|
|
1118
|
+
let e = T[T.length - 1];
|
|
1119
1119
|
if (!e)
|
|
1120
1120
|
return [];
|
|
1121
1121
|
const t = [];
|
|
@@ -1130,31 +1130,31 @@ function hn() {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return t;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function _n(e) {
|
|
1134
1134
|
const t = [];
|
|
1135
1135
|
return e.forEach((n, s) => {
|
|
1136
1136
|
t.push(...s === 0 ? [] : [`
|
|
1137
|
-
`], ...
|
|
1137
|
+
`], ...gn(n));
|
|
1138
1138
|
}), t;
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${
|
|
1140
|
+
function gn({ vnode: e, recurseCount: t }) {
|
|
1141
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${St(
|
|
1142
1142
|
e.component,
|
|
1143
1143
|
e.type,
|
|
1144
1144
|
s
|
|
1145
1145
|
)}`, i = ">" + n;
|
|
1146
|
-
return e.props ? [r, ...
|
|
1146
|
+
return e.props ? [r, ...bn(e.props), i] : [r + i];
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function bn(e) {
|
|
1149
1149
|
const t = [], n = Object.keys(e);
|
|
1150
1150
|
return n.slice(0, 3).forEach((s) => {
|
|
1151
|
-
t.push(...
|
|
1151
|
+
t.push(...st(s, e[s]));
|
|
1152
1152
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return
|
|
1154
|
+
function st(e, t, n) {
|
|
1155
|
+
return O(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ b(t) ? (t = st(e, /* @__PURE__ */ h(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : R(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ h(t), n ? t : [`${e}=`, t]);
|
|
1156
1156
|
}
|
|
1157
|
-
const
|
|
1157
|
+
const it = {
|
|
1158
1158
|
sp: "serverPrefetch hook",
|
|
1159
1159
|
bc: "beforeCreate hook",
|
|
1160
1160
|
c: "created hook",
|
|
@@ -1191,38 +1191,38 @@ function De(e, t, n, s) {
|
|
|
1191
1191
|
try {
|
|
1192
1192
|
return s ? e(...s) : e();
|
|
1193
1193
|
} catch (r) {
|
|
1194
|
-
|
|
1194
|
+
ot(r, t, n);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
const r = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = t && t.appContext.config ||
|
|
1197
|
+
function ot(e, t, n, s = !0) {
|
|
1198
|
+
const r = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = t && t.appContext.config || me;
|
|
1199
1199
|
if (t) {
|
|
1200
1200
|
let c = t.parent;
|
|
1201
|
-
const
|
|
1201
|
+
const l = t.proxy, a = process.env.NODE_ENV !== "production" ? it[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1202
1202
|
for (; c; ) {
|
|
1203
1203
|
const d = c.ec;
|
|
1204
1204
|
if (d) {
|
|
1205
1205
|
for (let u = 0; u < d.length; u++)
|
|
1206
|
-
if (d[u](e,
|
|
1206
|
+
if (d[u](e, l, a) === !1)
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
1209
1209
|
c = c.parent;
|
|
1210
1210
|
}
|
|
1211
1211
|
if (i) {
|
|
1212
|
-
|
|
1212
|
+
le(), De(i, null, 10, [
|
|
1213
1213
|
e,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
]),
|
|
1214
|
+
l,
|
|
1215
|
+
a
|
|
1216
|
+
]), ae();
|
|
1217
1217
|
return;
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
|
|
1220
|
+
mn(e, n, r, s, o);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function mn(e, t, n, s = !0, r = !1) {
|
|
1223
1223
|
if (process.env.NODE_ENV !== "production") {
|
|
1224
|
-
const i =
|
|
1225
|
-
if (n &&
|
|
1224
|
+
const i = it[t];
|
|
1225
|
+
if (n && hn(n), D(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && dn(), s)
|
|
1226
1226
|
throw e;
|
|
1227
1227
|
console.error(e);
|
|
1228
1228
|
} else {
|
|
@@ -1231,57 +1231,63 @@ function gn(e, t, n, s = !0, r = !1) {
|
|
|
1231
1231
|
console.error(e);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
let
|
|
1236
|
-
const
|
|
1237
|
-
let
|
|
1238
|
-
const
|
|
1234
|
+
const S = [];
|
|
1235
|
+
let C = -1;
|
|
1236
|
+
const H = [];
|
|
1237
|
+
let A = null, k = 0;
|
|
1238
|
+
const Sn = /* @__PURE__ */ Promise.resolve();
|
|
1239
1239
|
let Oe = null;
|
|
1240
|
-
const
|
|
1241
|
-
function
|
|
1242
|
-
let t =
|
|
1240
|
+
const yn = 100;
|
|
1241
|
+
function En(e) {
|
|
1242
|
+
let t = C + 1, n = S.length;
|
|
1243
1243
|
for (; t < n; ) {
|
|
1244
|
-
const s = t + n >>> 1, r =
|
|
1244
|
+
const s = t + n >>> 1, r = S[s], i = J(r);
|
|
1245
1245
|
i < e || i === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1246
1246
|
}
|
|
1247
1247
|
return t;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function wn(e) {
|
|
1250
1250
|
if (!(e.flags & 1)) {
|
|
1251
|
-
const t = J(e), n =
|
|
1251
|
+
const t = J(e), n = S[S.length - 1];
|
|
1252
1252
|
!n || // fast path when the job id is larger than the tail
|
|
1253
|
-
!(e.flags & 2) && t >= J(n) ?
|
|
1253
|
+
!(e.flags & 2) && t >= J(n) ? S.push(e) : S.splice(En(t), 0, e), e.flags |= 1, ct();
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
Oe || (Oe =
|
|
1256
|
+
function ct() {
|
|
1257
|
+
Oe || (Oe = Sn.then(ut));
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1259
|
+
function On(e) {
|
|
1260
|
+
if (!p(e))
|
|
1261
|
+
A && e.id === -1 ? A.splice(k + 1, 0, e) : e.flags & 1 || (H.push(e), e.flags |= 1);
|
|
1262
|
+
else
|
|
1263
|
+
for (let t = 0; t < e.length; t++)
|
|
1264
|
+
H.push(e[t]);
|
|
1265
|
+
ct();
|
|
1261
1266
|
}
|
|
1262
|
-
function
|
|
1263
|
-
if (
|
|
1264
|
-
const t = [...new Set(
|
|
1267
|
+
function vn(e) {
|
|
1268
|
+
if (H.length) {
|
|
1269
|
+
const t = [...new Set(H)].sort(
|
|
1265
1270
|
(n, s) => J(n) - J(s)
|
|
1266
1271
|
);
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1272
|
+
if (H.length = 0, A) {
|
|
1273
|
+
for (let n = 0; n < t.length; n++)
|
|
1274
|
+
A.push(t[n]);
|
|
1269
1275
|
return;
|
|
1270
1276
|
}
|
|
1271
|
-
for (
|
|
1272
|
-
const n =
|
|
1273
|
-
process.env.NODE_ENV !== "production" &&
|
|
1277
|
+
for (A = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), k = 0; k < A.length; k++) {
|
|
1278
|
+
const n = A[k];
|
|
1279
|
+
process.env.NODE_ENV !== "production" && lt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1274
1280
|
}
|
|
1275
|
-
|
|
1281
|
+
A = null, k = 0;
|
|
1276
1282
|
}
|
|
1277
1283
|
}
|
|
1278
1284
|
const J = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1279
|
-
function
|
|
1285
|
+
function ut(e) {
|
|
1280
1286
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1281
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1287
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => lt(e, n) : ze;
|
|
1282
1288
|
try {
|
|
1283
|
-
for (
|
|
1284
|
-
const n =
|
|
1289
|
+
for (C = 0; C < S.length; C++) {
|
|
1290
|
+
const n = S[C];
|
|
1285
1291
|
if (n && !(n.flags & 8)) {
|
|
1286
1292
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1287
1293
|
continue;
|
|
@@ -1293,18 +1299,18 @@ function ct(e) {
|
|
|
1293
1299
|
}
|
|
1294
1300
|
}
|
|
1295
1301
|
} finally {
|
|
1296
|
-
for (;
|
|
1297
|
-
const n =
|
|
1302
|
+
for (; C < S.length; C++) {
|
|
1303
|
+
const n = S[C];
|
|
1298
1304
|
n && (n.flags &= -2);
|
|
1299
1305
|
}
|
|
1300
|
-
|
|
1306
|
+
C = -1, S.length = 0, vn(e), Oe = null, (S.length || H.length) && ut(e);
|
|
1301
1307
|
}
|
|
1302
1308
|
}
|
|
1303
|
-
function
|
|
1309
|
+
function lt(e, t) {
|
|
1304
1310
|
const n = e.get(t) || 0;
|
|
1305
|
-
if (n >
|
|
1306
|
-
const s = t.i, r = s &&
|
|
1307
|
-
return
|
|
1311
|
+
if (n > yn) {
|
|
1312
|
+
const s = t.i, r = s && mt(s.type);
|
|
1313
|
+
return ot(
|
|
1308
1314
|
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1309
1315
|
null,
|
|
1310
1316
|
10
|
|
@@ -1314,46 +1320,46 @@ function ut(e, t) {
|
|
|
1314
1320
|
}
|
|
1315
1321
|
const _e = /* @__PURE__ */ new Map();
|
|
1316
1322
|
process.env.NODE_ENV !== "production" && (ue().__VUE_HMR_RUNTIME__ = {
|
|
1317
|
-
createRecord: ge(
|
|
1318
|
-
rerender: ge(
|
|
1319
|
-
reload: ge(
|
|
1323
|
+
createRecord: ge(Nn),
|
|
1324
|
+
rerender: ge(Cn),
|
|
1325
|
+
reload: ge(xn)
|
|
1320
1326
|
});
|
|
1321
1327
|
const ne = /* @__PURE__ */ new Map();
|
|
1322
|
-
function
|
|
1328
|
+
function Nn(e, t) {
|
|
1323
1329
|
return ne.has(e) ? !1 : (ne.set(e, {
|
|
1324
1330
|
initialDef: re(t),
|
|
1325
1331
|
instances: /* @__PURE__ */ new Set()
|
|
1326
1332
|
}), !0);
|
|
1327
1333
|
}
|
|
1328
1334
|
function re(e) {
|
|
1329
|
-
return
|
|
1335
|
+
return yt(e) ? e.__vccOpts : e;
|
|
1330
1336
|
}
|
|
1331
|
-
function
|
|
1337
|
+
function Cn(e, t) {
|
|
1332
1338
|
const n = ne.get(e);
|
|
1333
1339
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1334
1340
|
t && (s.render = t, re(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1335
1341
|
}));
|
|
1336
1342
|
}
|
|
1337
|
-
function
|
|
1343
|
+
function xn(e, t) {
|
|
1338
1344
|
const n = ne.get(e);
|
|
1339
1345
|
if (!n) return;
|
|
1340
|
-
t = re(t),
|
|
1346
|
+
t = re(t), ke(n.initialDef, t);
|
|
1341
1347
|
const s = [...n.instances];
|
|
1342
1348
|
for (let r = 0; r < s.length; r++) {
|
|
1343
1349
|
const i = s[r], o = re(i.type);
|
|
1344
1350
|
let c = _e.get(o);
|
|
1345
|
-
c || (o !== n.initialDef &&
|
|
1351
|
+
c || (o !== n.initialDef && ke(o, t), _e.set(o, c = /* @__PURE__ */ new Set())), c.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (c.add(i), i.ceReload(t.styles), c.delete(i)) : i.parent ? wn(() => {
|
|
1346
1352
|
i.job.flags & 8 || (i.parent.update(), c.delete(i));
|
|
1347
1353
|
}) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1348
1354
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1349
1355
|
), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(o);
|
|
1350
1356
|
}
|
|
1351
|
-
|
|
1357
|
+
On(() => {
|
|
1352
1358
|
_e.clear();
|
|
1353
1359
|
});
|
|
1354
1360
|
}
|
|
1355
|
-
function
|
|
1356
|
-
|
|
1361
|
+
function ke(e, t) {
|
|
1362
|
+
M(e, t);
|
|
1357
1363
|
for (const n in e)
|
|
1358
1364
|
n !== "__file" && !(n in t) && delete e[n];
|
|
1359
1365
|
}
|
|
@@ -1368,49 +1374,86 @@ function ge(e) {
|
|
|
1368
1374
|
}
|
|
1369
1375
|
};
|
|
1370
1376
|
}
|
|
1371
|
-
let
|
|
1377
|
+
let K, X = [];
|
|
1372
1378
|
function at(e, t) {
|
|
1373
1379
|
var n, s;
|
|
1374
|
-
|
|
1380
|
+
K = e, K ? (K.enabled = !0, X.forEach(({ event: r, args: i }) => K.emit(r, ...i)), X = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1375
1381
|
window.HTMLElement && // also exclude jsdom
|
|
1376
1382
|
// eslint-disable-next-line no-restricted-syntax
|
|
1377
1383
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => {
|
|
1378
1384
|
at(i, t);
|
|
1379
1385
|
}), setTimeout(() => {
|
|
1380
|
-
|
|
1386
|
+
K || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, X = []);
|
|
1381
1387
|
}, 3e3)) : X = [];
|
|
1382
1388
|
}
|
|
1383
|
-
let se = null,
|
|
1384
|
-
const
|
|
1385
|
-
function
|
|
1386
|
-
|
|
1389
|
+
let se = null, Rn = null;
|
|
1390
|
+
const $e = (e) => e.__isTeleport;
|
|
1391
|
+
function An(e) {
|
|
1392
|
+
let t = e[0];
|
|
1393
|
+
if (e.length > 1) {
|
|
1394
|
+
let n = !1;
|
|
1395
|
+
for (const s of e)
|
|
1396
|
+
if (s.type !== pt) {
|
|
1397
|
+
if (process.env.NODE_ENV !== "production" && n) {
|
|
1398
|
+
D(
|
|
1399
|
+
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
1400
|
+
);
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
if (t = s, n = !0, process.env.NODE_ENV === "production") break;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
return t;
|
|
1407
|
+
}
|
|
1408
|
+
function In(e) {
|
|
1409
|
+
if (!Dn(e))
|
|
1410
|
+
return $e(e.type) && e.children ? An(e.children) : e;
|
|
1411
|
+
if (e.component)
|
|
1412
|
+
return e.component.subTree;
|
|
1413
|
+
const { shapeFlag: t, children: n } = e;
|
|
1414
|
+
if (n) {
|
|
1415
|
+
if (t & 16)
|
|
1416
|
+
return n[0];
|
|
1417
|
+
if (t & 32 && R(n.default))
|
|
1418
|
+
return n.default();
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
function ft(e, t) {
|
|
1422
|
+
if (e.shapeFlag & 6 && e.component) {
|
|
1423
|
+
e.transition = t;
|
|
1424
|
+
const n = e.component.subTree;
|
|
1425
|
+
ft(
|
|
1426
|
+
$e(n.type) && In(n) || n,
|
|
1427
|
+
t
|
|
1428
|
+
);
|
|
1429
|
+
} else e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1387
1430
|
}
|
|
1388
1431
|
ue().requestIdleCallback;
|
|
1389
1432
|
ue().cancelIdleCallback;
|
|
1390
|
-
const
|
|
1391
|
-
process.env.NODE_ENV !== "production" && (
|
|
1433
|
+
const Dn = (e) => e.type.__isKeepAlive, $n = /* @__PURE__ */ Symbol.for("v-ndc"), Vn = {};
|
|
1434
|
+
process.env.NODE_ENV !== "production" && (Vn.ownKeys = (e) => (D(
|
|
1392
1435
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1393
1436
|
), Reflect.ownKeys(e)));
|
|
1394
|
-
const
|
|
1395
|
-
function
|
|
1437
|
+
const Tn = {}, ht = (e) => Object.getPrototypeOf(e) === Tn, Pn = (e) => e.__isSuspense, dt = /* @__PURE__ */ Symbol.for("v-fgt"), Mn = /* @__PURE__ */ Symbol.for("v-txt"), pt = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1438
|
+
function Fn(e) {
|
|
1396
1439
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1397
1440
|
}
|
|
1398
|
-
const
|
|
1441
|
+
const kn = (...e) => gt(
|
|
1399
1442
|
...e
|
|
1400
|
-
),
|
|
1443
|
+
), _t = ({ key: e }) => e ?? null, Z = ({
|
|
1401
1444
|
ref: e,
|
|
1402
1445
|
ref_key: t,
|
|
1403
1446
|
ref_for: n
|
|
1404
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1405
|
-
function
|
|
1406
|
-
const
|
|
1447
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? O(e) || /* @__PURE__ */ b(e) || R(e) ? { i: se, r: e, k: t, f: !!n } : e : null);
|
|
1448
|
+
function Kn(e, t = null, n = null, s = 0, r = null, i = e === dt ? 0 : 1, o = !1, c = !1) {
|
|
1449
|
+
const l = {
|
|
1407
1450
|
__v_isVNode: !0,
|
|
1408
1451
|
__v_skip: !0,
|
|
1409
1452
|
type: e,
|
|
1410
1453
|
props: t,
|
|
1411
|
-
key: t &&
|
|
1454
|
+
key: t && _t(t),
|
|
1412
1455
|
ref: t && Z(t),
|
|
1413
|
-
scopeId:
|
|
1456
|
+
scopeId: Rn,
|
|
1414
1457
|
slotScopeIds: null,
|
|
1415
1458
|
children: n,
|
|
1416
1459
|
component: null,
|
|
@@ -1432,11 +1475,20 @@ function Mn(e, t = null, n = null, s = 0, r = null, i = e === ht ? 0 : 1, o = !1
|
|
|
1432
1475
|
appContext: null,
|
|
1433
1476
|
ctx: se
|
|
1434
1477
|
};
|
|
1435
|
-
|
|
1478
|
+
if (c ? (oe(l, n), i & 128 && e.normalize(l)) : n && (l.shapeFlag |= O(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && D("VNode created with invalid key (NaN). VNode type:", l.type), process.env.NODE_ENV !== "production" && t && l.shapeFlag & 1) {
|
|
1479
|
+
const a = t.innerHTML != null ? "innerHTML" : t.textContent != null ? "textContent" : null;
|
|
1480
|
+
a && Hn(l.children) && D(
|
|
1481
|
+
`The \`${a}\` prop on <${l.type}> will override its children. Remove either the \`${a}\` prop or the children.`
|
|
1482
|
+
);
|
|
1483
|
+
}
|
|
1484
|
+
return l;
|
|
1485
|
+
}
|
|
1486
|
+
function Hn(e) {
|
|
1487
|
+
return O(e) ? e !== "" : p(e) ? e.length > 0 : !1;
|
|
1436
1488
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1439
|
-
if ((!e || e ===
|
|
1489
|
+
const jn = process.env.NODE_ENV !== "production" ? kn : gt;
|
|
1490
|
+
function gt(e, t = null, n = null, s = 0, r = null, i = !1) {
|
|
1491
|
+
if ((!e || e === $n) && (process.env.NODE_ENV !== "production" && !e && D(`Invalid vnode type when creating vnode: ${e}.`), e = pt), Fn(e)) {
|
|
1440
1492
|
const c = ie(
|
|
1441
1493
|
e,
|
|
1442
1494
|
t,
|
|
@@ -1445,18 +1497,18 @@ function pt(e, t = null, n = null, s = 0, r = null, i = !1) {
|
|
|
1445
1497
|
);
|
|
1446
1498
|
return n && oe(c, n), c.patchFlag = -2, c;
|
|
1447
1499
|
}
|
|
1448
|
-
if (
|
|
1449
|
-
t =
|
|
1450
|
-
let { class: c, style:
|
|
1451
|
-
c && !
|
|
1500
|
+
if (yt(e) && (e = e.__vccOpts), t) {
|
|
1501
|
+
t = Ln(t);
|
|
1502
|
+
let { class: c, style: l } = t;
|
|
1503
|
+
c && !O(c) && (t.class = Ce(c)), g(l) && (/* @__PURE__ */ q(l) && !p(l) && (l = M({}, l)), t.style = Ne(l));
|
|
1452
1504
|
}
|
|
1453
|
-
const o =
|
|
1454
|
-
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */
|
|
1505
|
+
const o = O(e) ? 1 : Pn(e) ? 128 : $e(e) ? 64 : g(e) ? 4 : R(e) ? 2 : 0;
|
|
1506
|
+
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ q(e) && (e = /* @__PURE__ */ h(e), D(
|
|
1455
1507
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1456
1508
|
`
|
|
1457
1509
|
Component that was made reactive: `,
|
|
1458
1510
|
e
|
|
1459
|
-
)),
|
|
1511
|
+
)), Kn(
|
|
1460
1512
|
e,
|
|
1461
1513
|
t,
|
|
1462
1514
|
n,
|
|
@@ -1467,16 +1519,16 @@ Component that was made reactive: `,
|
|
|
1467
1519
|
!0
|
|
1468
1520
|
);
|
|
1469
1521
|
}
|
|
1470
|
-
function
|
|
1471
|
-
return e ? /* @__PURE__ */
|
|
1522
|
+
function Ln(e) {
|
|
1523
|
+
return e ? /* @__PURE__ */ q(e) || ht(e) ? M({}, e) : e : null;
|
|
1472
1524
|
}
|
|
1473
1525
|
function ie(e, t, n = !1, s = !1) {
|
|
1474
|
-
const { props: r, ref: i, patchFlag: o, children: c, transition:
|
|
1526
|
+
const { props: r, ref: i, patchFlag: o, children: c, transition: l } = e, a = t ? zn(r || {}, t) : r, d = {
|
|
1475
1527
|
__v_isVNode: !0,
|
|
1476
1528
|
__v_skip: !0,
|
|
1477
1529
|
type: e.type,
|
|
1478
|
-
props:
|
|
1479
|
-
key:
|
|
1530
|
+
props: a,
|
|
1531
|
+
key: a && _t(a),
|
|
1480
1532
|
ref: t && t.ref ? (
|
|
1481
1533
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1482
1534
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1485,7 +1537,7 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1485
1537
|
) : i,
|
|
1486
1538
|
scopeId: e.scopeId,
|
|
1487
1539
|
slotScopeIds: e.slotScopeIds,
|
|
1488
|
-
children: process.env.NODE_ENV !== "production" && o === -1 && p(c) ? c.map(
|
|
1540
|
+
children: process.env.NODE_ENV !== "production" && o === -1 && p(c) ? c.map(bt) : c,
|
|
1489
1541
|
target: e.target,
|
|
1490
1542
|
targetStart: e.targetStart,
|
|
1491
1543
|
targetAnchor: e.targetAnchor,
|
|
@@ -1495,12 +1547,12 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1495
1547
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1496
1548
|
// note: preserve flag for fragments since they use the flag for children
|
|
1497
1549
|
// fast paths only.
|
|
1498
|
-
patchFlag: t && e.type !==
|
|
1550
|
+
patchFlag: t && e.type !== dt ? o === -1 ? 16 : o | 16 : o,
|
|
1499
1551
|
dynamicProps: e.dynamicProps,
|
|
1500
1552
|
dynamicChildren: e.dynamicChildren,
|
|
1501
1553
|
appContext: e.appContext,
|
|
1502
1554
|
dirs: e.dirs,
|
|
1503
|
-
transition:
|
|
1555
|
+
transition: l,
|
|
1504
1556
|
// These should technically only be non-null on mounted VNodes. However,
|
|
1505
1557
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1506
1558
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -1515,17 +1567,17 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1515
1567
|
ctx: e.ctx,
|
|
1516
1568
|
ce: e.ce
|
|
1517
1569
|
};
|
|
1518
|
-
return
|
|
1570
|
+
return l && s && ft(
|
|
1519
1571
|
d,
|
|
1520
|
-
|
|
1572
|
+
l.clone(d)
|
|
1521
1573
|
), d;
|
|
1522
1574
|
}
|
|
1523
|
-
function
|
|
1575
|
+
function bt(e) {
|
|
1524
1576
|
const t = ie(e);
|
|
1525
|
-
return p(e.children) && (t.children = e.children.map(
|
|
1577
|
+
return p(e.children) && (t.children = e.children.map(bt)), t;
|
|
1526
1578
|
}
|
|
1527
|
-
function
|
|
1528
|
-
return
|
|
1579
|
+
function Wn(e = " ", t = 0) {
|
|
1580
|
+
return jn(Mn, null, e, t);
|
|
1529
1581
|
}
|
|
1530
1582
|
function oe(e, t) {
|
|
1531
1583
|
let n = 0;
|
|
@@ -1540,18 +1592,18 @@ function oe(e, t) {
|
|
|
1540
1592
|
r && (r._c && (r._d = !1), oe(e, r()), r._c && (r._d = !0));
|
|
1541
1593
|
return;
|
|
1542
1594
|
} else
|
|
1543
|
-
n = 32, !t._ && !
|
|
1544
|
-
else if (
|
|
1595
|
+
n = 32, !t._ && !ht(t) && (t._ctx = se);
|
|
1596
|
+
else if (R(t)) {
|
|
1545
1597
|
if (s & 65) {
|
|
1546
1598
|
oe(e, { default: t });
|
|
1547
1599
|
return;
|
|
1548
1600
|
}
|
|
1549
1601
|
t = { default: t, _ctx: se }, n = 32;
|
|
1550
1602
|
} else
|
|
1551
|
-
t = String(t), s & 64 ? (n = 16, t = [
|
|
1603
|
+
t = String(t), s & 64 ? (n = 16, t = [Wn(t)]) : n = 8;
|
|
1552
1604
|
e.children = t, e.shapeFlag |= n;
|
|
1553
1605
|
}
|
|
1554
|
-
function
|
|
1606
|
+
function zn(...e) {
|
|
1555
1607
|
const t = {};
|
|
1556
1608
|
for (let n = 0; n < e.length; n++) {
|
|
1557
1609
|
const s = e[n];
|
|
@@ -1560,11 +1612,11 @@ function Hn(...e) {
|
|
|
1560
1612
|
t.class !== s.class && (t.class = Ce([t.class, s.class]));
|
|
1561
1613
|
else if (r === "style")
|
|
1562
1614
|
t.style = Ne([t.style, s.style]);
|
|
1563
|
-
else if (
|
|
1615
|
+
else if (Dt(r)) {
|
|
1564
1616
|
const i = t[r], o = s[r];
|
|
1565
1617
|
o && i !== o && !(p(i) && i.includes(o)) ? t[r] = i ? [].concat(i, o) : o : o == null && i == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1566
1618
|
// the model listener.
|
|
1567
|
-
|
|
1619
|
+
!$t(r) && (t[r] = o);
|
|
1568
1620
|
} else r !== "" && (t[r] = s[r]);
|
|
1569
1621
|
}
|
|
1570
1622
|
return t;
|
|
@@ -1585,12 +1637,12 @@ function Hn(...e) {
|
|
|
1585
1637
|
);
|
|
1586
1638
|
}
|
|
1587
1639
|
process.env.NODE_ENV;
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1590
|
-
return
|
|
1640
|
+
const Un = /(?:^|[-_])\w/g, qn = (e) => e.replace(Un, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1641
|
+
function mt(e, t = !0) {
|
|
1642
|
+
return R(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1591
1643
|
}
|
|
1592
|
-
function
|
|
1593
|
-
let s =
|
|
1644
|
+
function St(e, t, n = !1) {
|
|
1645
|
+
let s = mt(t);
|
|
1594
1646
|
if (!s && t.__file) {
|
|
1595
1647
|
const r = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1596
1648
|
r && (s = r[1]);
|
|
@@ -1605,12 +1657,12 @@ function bt(e, t, n = !1) {
|
|
|
1605
1657
|
e.parent.type.components
|
|
1606
1658
|
) || r(e.appContext.components);
|
|
1607
1659
|
}
|
|
1608
|
-
return s ?
|
|
1660
|
+
return s ? qn(s) : n ? "App" : "Anonymous";
|
|
1609
1661
|
}
|
|
1610
|
-
function
|
|
1611
|
-
return
|
|
1662
|
+
function yt(e) {
|
|
1663
|
+
return R(e) && "__vccOpts" in e;
|
|
1612
1664
|
}
|
|
1613
|
-
function
|
|
1665
|
+
function Bn() {
|
|
1614
1666
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1615
1667
|
return;
|
|
1616
1668
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1621,9 +1673,9 @@ function Wn() {
|
|
|
1621
1673
|
if (u.__isVue)
|
|
1622
1674
|
return ["div", e, "VueInstance"];
|
|
1623
1675
|
if (/* @__PURE__ */ b(u)) {
|
|
1624
|
-
|
|
1676
|
+
le();
|
|
1625
1677
|
const f = u.value;
|
|
1626
|
-
return
|
|
1678
|
+
return ae(), [
|
|
1627
1679
|
"div",
|
|
1628
1680
|
{},
|
|
1629
1681
|
["span", e, d(u)],
|
|
@@ -1639,9 +1691,9 @@ function Wn() {
|
|
|
1639
1691
|
["span", e, /* @__PURE__ */ y(u) ? "ShallowReactive" : "Reactive"],
|
|
1640
1692
|
"<",
|
|
1641
1693
|
c(u),
|
|
1642
|
-
`>${/* @__PURE__ */
|
|
1694
|
+
`>${/* @__PURE__ */ v(u) ? " (readonly)" : ""}`
|
|
1643
1695
|
];
|
|
1644
|
-
if (/* @__PURE__ */
|
|
1696
|
+
if (/* @__PURE__ */ v(u))
|
|
1645
1697
|
return [
|
|
1646
1698
|
"div",
|
|
1647
1699
|
{},
|
|
@@ -1667,10 +1719,10 @@ function Wn() {
|
|
|
1667
1719
|
};
|
|
1668
1720
|
function i(u) {
|
|
1669
1721
|
const f = [];
|
|
1670
|
-
u.type.props && u.props && f.push(o("props", /* @__PURE__ */ h(u.props))), u.setupState !==
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
const E =
|
|
1722
|
+
u.type.props && u.props && f.push(o("props", /* @__PURE__ */ h(u.props))), u.setupState !== me && f.push(o("setup", u.setupState)), u.data !== me && f.push(o("data", /* @__PURE__ */ h(u.data)));
|
|
1723
|
+
const m = l(u, "computed");
|
|
1724
|
+
m && f.push(o("computed", m));
|
|
1725
|
+
const E = l(u, "inject");
|
|
1674
1726
|
return E && f.push(o("injected", E)), f.push([
|
|
1675
1727
|
"div",
|
|
1676
1728
|
{},
|
|
@@ -1685,7 +1737,7 @@ function Wn() {
|
|
|
1685
1737
|
]), f;
|
|
1686
1738
|
}
|
|
1687
1739
|
function o(u, f) {
|
|
1688
|
-
return f =
|
|
1740
|
+
return f = M({}, f), Object.keys(f).length ? [
|
|
1689
1741
|
"div",
|
|
1690
1742
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1691
1743
|
[
|
|
@@ -1700,11 +1752,11 @@ function Wn() {
|
|
|
1700
1752
|
{
|
|
1701
1753
|
style: "padding-left:1.25em"
|
|
1702
1754
|
},
|
|
1703
|
-
...Object.keys(f).map((
|
|
1755
|
+
...Object.keys(f).map((m) => [
|
|
1704
1756
|
"div",
|
|
1705
1757
|
{},
|
|
1706
|
-
["span", s,
|
|
1707
|
-
c(f[
|
|
1758
|
+
["span", s, m + ": "],
|
|
1759
|
+
c(f[m], !1)
|
|
1708
1760
|
])
|
|
1709
1761
|
]
|
|
1710
1762
|
] : ["span", {}];
|
|
@@ -1712,18 +1764,18 @@ function Wn() {
|
|
|
1712
1764
|
function c(u, f = !0) {
|
|
1713
1765
|
return typeof u == "number" ? ["span", t, u] : typeof u == "string" ? ["span", n, JSON.stringify(u)] : typeof u == "boolean" ? ["span", s, u] : g(u) ? ["object", { object: f ? /* @__PURE__ */ h(u) : u }] : ["span", n, String(u)];
|
|
1714
1766
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const
|
|
1717
|
-
if (
|
|
1767
|
+
function l(u, f) {
|
|
1768
|
+
const m = u.type;
|
|
1769
|
+
if (R(m))
|
|
1718
1770
|
return;
|
|
1719
1771
|
const E = {};
|
|
1720
1772
|
for (const L in u.ctx)
|
|
1721
|
-
|
|
1773
|
+
a(m, L, f) && (E[L] = u.ctx[L]);
|
|
1722
1774
|
return E;
|
|
1723
1775
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const E = u[
|
|
1726
|
-
if (p(E) && E.includes(f) || g(E) && f in E || u.extends &&
|
|
1776
|
+
function a(u, f, m) {
|
|
1777
|
+
const E = u[m];
|
|
1778
|
+
if (p(E) && E.includes(f) || g(E) && f in E || u.extends && a(u.extends, f, m) || u.mixins && u.mixins.some((L) => a(L, f, m)))
|
|
1727
1779
|
return !0;
|
|
1728
1780
|
}
|
|
1729
1781
|
function d(u) {
|
|
@@ -1734,80 +1786,80 @@ function Wn() {
|
|
|
1734
1786
|
process.env.NODE_ENV;
|
|
1735
1787
|
process.env.NODE_ENV;
|
|
1736
1788
|
process.env.NODE_ENV;
|
|
1737
|
-
function
|
|
1738
|
-
|
|
1789
|
+
function Jn() {
|
|
1790
|
+
Bn();
|
|
1739
1791
|
}
|
|
1740
|
-
process.env.NODE_ENV !== "production" &&
|
|
1741
|
-
const
|
|
1742
|
-
function
|
|
1792
|
+
process.env.NODE_ENV !== "production" && Jn();
|
|
1793
|
+
const Ve = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new WeakSet(), Yn = 50;
|
|
1794
|
+
function Gn(e) {
|
|
1743
1795
|
return e?.storeOptions?.debug === !0;
|
|
1744
1796
|
}
|
|
1745
1797
|
function ve(e, t, n) {
|
|
1746
|
-
if (!
|
|
1798
|
+
if (!Gn(t))
|
|
1747
1799
|
return;
|
|
1748
1800
|
const s = Y.size;
|
|
1749
|
-
console.debug(`[defineAStoreSetup] ${e} - ${n} (contextsById=${s})`), s >=
|
|
1801
|
+
console.debug(`[defineAStoreSetup] ${e} - ${n} (contextsById=${s})`), s >= Yn && console.warn(`[defineAStoreSetup] contextsById reached ${s} entries`);
|
|
1750
1802
|
}
|
|
1751
|
-
function
|
|
1752
|
-
if (
|
|
1803
|
+
function Qn(e, t, n) {
|
|
1804
|
+
if (Ke.has(e) || typeof e.$dispose != "function")
|
|
1753
1805
|
return;
|
|
1754
1806
|
const s = e.$dispose;
|
|
1755
|
-
e.$dispose = (...r) => (
|
|
1807
|
+
e.$dispose = (...r) => (Ve.delete(e), Y.delete(t), ve(t, n, "dispose cleanup"), s.apply(e, r)), Ke.add(e);
|
|
1756
1808
|
}
|
|
1757
|
-
function
|
|
1809
|
+
function or(e, t, n) {
|
|
1758
1810
|
const s = n ? { storeOptions: n } : {};
|
|
1759
|
-
return typeof t == "function" ?
|
|
1811
|
+
return typeof t == "function" ? Et(
|
|
1760
1812
|
e,
|
|
1761
1813
|
t,
|
|
1762
1814
|
s
|
|
1763
|
-
) :
|
|
1815
|
+
) : Xn(
|
|
1764
1816
|
e,
|
|
1765
1817
|
t,
|
|
1766
1818
|
s
|
|
1767
1819
|
);
|
|
1768
1820
|
}
|
|
1769
|
-
function
|
|
1821
|
+
function cr(e, t, n) {
|
|
1770
1822
|
const s = n ? { storeOptions: { ...n, enhancedStore: !0 } } : { storeOptions: { enhancedStore: !0 } };
|
|
1771
|
-
return
|
|
1823
|
+
return Et(
|
|
1772
1824
|
e,
|
|
1773
1825
|
t,
|
|
1774
1826
|
s
|
|
1775
1827
|
);
|
|
1776
1828
|
}
|
|
1777
|
-
function
|
|
1829
|
+
function Et(e, t, n) {
|
|
1778
1830
|
const s = {
|
|
1779
1831
|
id: e,
|
|
1780
1832
|
extensions: {}
|
|
1781
|
-
}, r = n?.storeOptions?.enhancedStore === !0, i =
|
|
1833
|
+
}, r = n?.storeOptions?.enhancedStore === !0, i = He(e, () => t(s), n);
|
|
1782
1834
|
return Object.assign(((...o) => {
|
|
1783
1835
|
r && (Y.set(e, s), ve(e, n, "registered context by id"));
|
|
1784
1836
|
const c = i(...o);
|
|
1785
|
-
return r && (
|
|
1837
|
+
return r && (Ve.set(c, s), Y.delete(e), ve(e, n, "moved context to weak map"), Qn(c, e, n)), c;
|
|
1786
1838
|
}), i);
|
|
1787
1839
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return n && (t = { ...t, ...n ?? {} }),
|
|
1840
|
+
function Xn(e, t, n) {
|
|
1841
|
+
return n && (t = { ...t, ...n ?? {} }), He(e, t);
|
|
1790
1842
|
}
|
|
1791
|
-
const
|
|
1792
|
-
function
|
|
1793
|
-
return
|
|
1843
|
+
const Zn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1844
|
+
function er(e) {
|
|
1845
|
+
return Zn.has(e[0]);
|
|
1794
1846
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return
|
|
1847
|
+
function tr(e) {
|
|
1848
|
+
return Ve.get(e) ?? (typeof e?.$id == "string" ? Y.get(e.$id) : void 0);
|
|
1797
1849
|
}
|
|
1798
|
-
function
|
|
1850
|
+
function nr(e) {
|
|
1799
1851
|
const t = e.extensions.enhancedStore ?? e.extensions.extending;
|
|
1800
1852
|
if (!t)
|
|
1801
1853
|
throw new Error(`${e.id}Store - getEnhancedStore - Error: enhanced store is required`);
|
|
1802
1854
|
return t;
|
|
1803
1855
|
}
|
|
1804
|
-
function
|
|
1856
|
+
function rr(e, t) {
|
|
1805
1857
|
e.extensions.enhancedStore = t, e.extensions.extending = t;
|
|
1806
1858
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return
|
|
1859
|
+
function ur(e) {
|
|
1860
|
+
return nr(e);
|
|
1809
1861
|
}
|
|
1810
|
-
class
|
|
1862
|
+
class lr extends je {
|
|
1811
1863
|
_className = "Store";
|
|
1812
1864
|
_onAction;
|
|
1813
1865
|
_options;
|
|
@@ -1853,8 +1905,8 @@ class ir extends He {
|
|
|
1853
1905
|
}
|
|
1854
1906
|
constructor(t, n, s = !1, r) {
|
|
1855
1907
|
if (super(s, r), this._options = n.storeOptions, this._store = t, this._options?.enhancedStore) {
|
|
1856
|
-
const i =
|
|
1857
|
-
i &&
|
|
1908
|
+
const i = tr(this.store);
|
|
1909
|
+
i && rr(i, this.store);
|
|
1858
1910
|
}
|
|
1859
1911
|
}
|
|
1860
1912
|
/**
|
|
@@ -1863,7 +1915,7 @@ class ir extends He {
|
|
|
1863
1915
|
* @param value
|
|
1864
1916
|
*/
|
|
1865
1917
|
addToState(t, n) {
|
|
1866
|
-
this.isOptionApi() || n?.value || (n = /* @__PURE__ */
|
|
1918
|
+
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ rt(n)), this.state[t] = n, this.store[t] = /* @__PURE__ */ an(this.state, t);
|
|
1867
1919
|
}
|
|
1868
1920
|
addSubscription(t, n, s) {
|
|
1869
1921
|
this._subscriptions[t] = { subscription: n, ...s ?? {} };
|
|
@@ -1880,7 +1932,7 @@ class ir extends He {
|
|
|
1880
1932
|
return new this(t, n, s, r);
|
|
1881
1933
|
}
|
|
1882
1934
|
hasDeniedFirstChar(t) {
|
|
1883
|
-
return
|
|
1935
|
+
return er(t[0]);
|
|
1884
1936
|
}
|
|
1885
1937
|
static hasRequiredKeys(t) {
|
|
1886
1938
|
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
|
|
@@ -1908,12 +1960,12 @@ class ir extends He {
|
|
|
1908
1960
|
return this.store.hasOwnProperty(t);
|
|
1909
1961
|
}
|
|
1910
1962
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const n = new
|
|
1963
|
+
function ar(e, t) {
|
|
1964
|
+
const n = new We(e, t);
|
|
1913
1965
|
return n.plugin.bind(n);
|
|
1914
1966
|
}
|
|
1915
|
-
function
|
|
1916
|
-
const n = new
|
|
1967
|
+
function fr(e, t) {
|
|
1968
|
+
const n = new We(e, t?.debug, {
|
|
1917
1969
|
execution: t?.execution,
|
|
1918
1970
|
hydrationScheduler: t?.hydrationScheduler,
|
|
1919
1971
|
runtimeEnvironment: t?.runtimeEnvironment,
|
|
@@ -1922,18 +1974,18 @@ function cr(e, t) {
|
|
|
1922
1974
|
return n.plugin.bind(n);
|
|
1923
1975
|
}
|
|
1924
1976
|
export {
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1977
|
+
vt as CustomConsole,
|
|
1978
|
+
Le as PLUGIN_NAME,
|
|
1979
|
+
ir as PluginSubscriber,
|
|
1980
|
+
We as PluginSubscription,
|
|
1981
|
+
lr as Store,
|
|
1982
|
+
fr as createHydrationPlugin,
|
|
1983
|
+
ar as createPlugin,
|
|
1984
|
+
or as defineAStore,
|
|
1985
|
+
cr as defineAStoreCtx,
|
|
1986
|
+
tr as getDefineAStoreSetupContext,
|
|
1987
|
+
nr as getEnhancedStore,
|
|
1988
|
+
ur as getExtendingStore,
|
|
1937
1989
|
be as isEmpty,
|
|
1938
|
-
|
|
1990
|
+
rr as setEnhancedStore
|
|
1939
1991
|
};
|