pinia-plugin-subscription 0.1.6-beta.0 → 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.
- package/CHANGELOG.md +3 -0
- package/README.md +14 -0
- package/dist/pinia-plugin-subscription.js +448 -379
- package/dist/pinia-plugin-subscription.umd.cjs +4 -4
- package/dist/types/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -18,6 +18,9 @@ class tr {
|
|
|
18
18
|
get name() {
|
|
19
19
|
return this._name;
|
|
20
20
|
}
|
|
21
|
+
get storeInstance() {
|
|
22
|
+
return this._storeInstance;
|
|
23
|
+
}
|
|
21
24
|
get pluginOptions() {
|
|
22
25
|
return this._pluginOptions ?? {};
|
|
23
26
|
}
|
|
@@ -42,6 +45,10 @@ class tr {
|
|
|
42
45
|
constructor(t, n, s) {
|
|
43
46
|
this._name = t, this._createInstance = n, s && (this._console = s);
|
|
44
47
|
}
|
|
48
|
+
hydrate(t, n) {
|
|
49
|
+
}
|
|
50
|
+
afterHydration(t, n) {
|
|
51
|
+
}
|
|
45
52
|
invoke({ store: t, options: n }, s) {
|
|
46
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;
|
|
47
54
|
}
|
|
@@ -71,8 +78,8 @@ class je {
|
|
|
71
78
|
this.console.error(...t);
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
|
-
const
|
|
75
|
-
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) {
|
|
76
83
|
if (!e)
|
|
77
84
|
throw new Error("Style instructions are required");
|
|
78
85
|
console.log(
|
|
@@ -82,7 +89,7 @@ function Et(e, t) {
|
|
|
82
89
|
...t
|
|
83
90
|
);
|
|
84
91
|
}
|
|
85
|
-
class
|
|
92
|
+
class vt {
|
|
86
93
|
_bgColor = "#ffec73";
|
|
87
94
|
_color = "green";
|
|
88
95
|
_icon = "🍍⚡";
|
|
@@ -94,10 +101,10 @@ class wt {
|
|
|
94
101
|
info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
|
|
95
102
|
};
|
|
96
103
|
formatMessage(t, n) {
|
|
97
|
-
return ` [${n} ${
|
|
104
|
+
return ` [${n} ${Le}] - ${t} `;
|
|
98
105
|
}
|
|
99
106
|
generateStyle(t) {
|
|
100
|
-
return
|
|
107
|
+
return wt(t.bgColor, t.color);
|
|
101
108
|
}
|
|
102
109
|
getStyleDefinition(t) {
|
|
103
110
|
return this._styles[t ?? "info"];
|
|
@@ -121,35 +128,35 @@ class wt {
|
|
|
121
128
|
return [this.formatMessage(t.shift(), n), ...t ?? []];
|
|
122
129
|
}
|
|
123
130
|
useLog(t, n) {
|
|
124
|
-
|
|
131
|
+
Ot(
|
|
125
132
|
this.generateStyle(t),
|
|
126
133
|
this.rebuildArgs(n, t.icon)
|
|
127
134
|
);
|
|
128
135
|
}
|
|
129
136
|
}
|
|
130
|
-
class
|
|
131
|
-
_pluginName =
|
|
137
|
+
class Nt extends vt {
|
|
138
|
+
_pluginName = Le;
|
|
132
139
|
}
|
|
133
|
-
const
|
|
140
|
+
const Ct = new Nt();
|
|
134
141
|
function be(e) {
|
|
135
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");
|
|
136
143
|
}
|
|
137
|
-
const
|
|
144
|
+
const Te = "PluginSubscription", xt = {
|
|
138
145
|
environment: "both",
|
|
139
146
|
hydration: "immediate"
|
|
140
147
|
};
|
|
141
|
-
function
|
|
148
|
+
function Rt(e) {
|
|
142
149
|
if (typeof window < "u" && typeof window.requestAnimationFrame == "function") {
|
|
143
150
|
window.requestAnimationFrame(() => globalThis.setTimeout(e, 0));
|
|
144
151
|
return;
|
|
145
152
|
}
|
|
146
153
|
globalThis.setTimeout(e, 0);
|
|
147
154
|
}
|
|
148
|
-
function
|
|
155
|
+
function At(e) {
|
|
149
156
|
return e !== void 0 && !Array.isArray(e);
|
|
150
157
|
}
|
|
151
|
-
class
|
|
152
|
-
_className =
|
|
158
|
+
class We extends je {
|
|
159
|
+
_className = Te;
|
|
153
160
|
_hydrationScheduler;
|
|
154
161
|
_options;
|
|
155
162
|
_pluginDebug;
|
|
@@ -168,8 +175,8 @@ class Le extends je {
|
|
|
168
175
|
return this._subscriptions;
|
|
169
176
|
}
|
|
170
177
|
constructor(t, n, s) {
|
|
171
|
-
const r = Array.isArray(n) ? n : void 0, i =
|
|
172
|
-
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;
|
|
173
180
|
}
|
|
174
181
|
addResetStoreCallback(t) {
|
|
175
182
|
this._resetStoreCallback.push(t);
|
|
@@ -182,7 +189,7 @@ class Le extends je {
|
|
|
182
189
|
}
|
|
183
190
|
definePluginExecution(t) {
|
|
184
191
|
return {
|
|
185
|
-
...
|
|
192
|
+
...xt,
|
|
186
193
|
...this._options?.execution ?? {},
|
|
187
194
|
...t.execution ?? {},
|
|
188
195
|
...this._options?.subscriberExecution?.[t.name] ?? {}
|
|
@@ -201,11 +208,17 @@ class Le extends je {
|
|
|
201
208
|
this._resetStoreCallback.forEach((n) => n(t));
|
|
202
209
|
}
|
|
203
210
|
executeSubscriber(t, n) {
|
|
204
|
-
const s = this.defineSubscriberKey(n, t.store);
|
|
205
|
-
this._subscribersDelivered.has(s) || n.invoke(
|
|
211
|
+
const s = this.defineSubscriberKey(n, t.store), r = this.definePluginDebug(n);
|
|
212
|
+
if (this._subscribersDelivered.has(s) || !n.invoke(
|
|
206
213
|
t,
|
|
207
|
-
|
|
208
|
-
)
|
|
214
|
+
r
|
|
215
|
+
))
|
|
216
|
+
return;
|
|
217
|
+
this._subscribersDelivered.add(s);
|
|
218
|
+
const i = n.hydrate?.(t, r);
|
|
219
|
+
i && typeof i.then == "function" && i.catch((c) => this.logError(c, t.store, t.options));
|
|
220
|
+
const o = n.afterHydration?.(t, r);
|
|
221
|
+
o && typeof o.then == "function" && o.catch((c) => this.logError(c, t.store, t.options)), n.subscriptions && this.subscriptionDelivery(t, n.subscriptions), n.storeMutationSubscription && this.storeMutationSubscription(n.storeMutationSubscription), n.storeOnActionSubscription && this.storeOnActionSubscription(n.storeOnActionSubscription), n.resetStoreCallback && this.addResetStoreCallback(n.resetStoreCallback);
|
|
209
222
|
}
|
|
210
223
|
executeSubscriberSafely(t, n) {
|
|
211
224
|
try {
|
|
@@ -327,51 +340,51 @@ class Le extends je {
|
|
|
327
340
|
}
|
|
328
341
|
}
|
|
329
342
|
// @__NO_SIDE_EFFECTS__
|
|
330
|
-
function
|
|
343
|
+
function It(e) {
|
|
331
344
|
const t = /* @__PURE__ */ Object.create(null);
|
|
332
345
|
for (const n of e.split(",")) t[n] = 1;
|
|
333
346
|
return (n) => n in t;
|
|
334
347
|
}
|
|
335
|
-
const
|
|
348
|
+
const me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
336
349
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
337
|
-
const
|
|
338
|
-
},
|
|
339
|
-
(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) => {
|
|
340
353
|
const t = /* @__PURE__ */ Object.create(null);
|
|
341
354
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
342
|
-
},
|
|
343
|
-
let
|
|
344
|
-
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 : {});
|
|
345
358
|
function Ne(e) {
|
|
346
359
|
if (p(e)) {
|
|
347
360
|
const t = {};
|
|
348
361
|
for (let n = 0; n < e.length; n++) {
|
|
349
|
-
const s = e[n], r =
|
|
362
|
+
const s = e[n], r = O(s) ? Ht(s) : Ne(s);
|
|
350
363
|
if (r)
|
|
351
364
|
for (const i in r)
|
|
352
365
|
t[i] = r[i];
|
|
353
366
|
}
|
|
354
367
|
return t;
|
|
355
|
-
} else if (
|
|
368
|
+
} else if (O(e) || g(e))
|
|
356
369
|
return e;
|
|
357
370
|
}
|
|
358
|
-
const
|
|
359
|
-
function
|
|
371
|
+
const Ft = /;(?![^(]*\))/g, kt = /:([^]+)/, Kt = /\/\*[^]*?\*\//g;
|
|
372
|
+
function Ht(e) {
|
|
360
373
|
const t = {};
|
|
361
|
-
return e.replace(
|
|
374
|
+
return e.replace(Kt, "").split(Ft).forEach((n) => {
|
|
362
375
|
if (n) {
|
|
363
|
-
const s = n.split(
|
|
376
|
+
const s = n.split(kt);
|
|
364
377
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
365
378
|
}
|
|
366
379
|
}), t;
|
|
367
380
|
}
|
|
368
|
-
function
|
|
381
|
+
function Ce(e) {
|
|
369
382
|
let t = "";
|
|
370
|
-
if (
|
|
383
|
+
if (O(e))
|
|
371
384
|
t = e;
|
|
372
385
|
else if (p(e))
|
|
373
386
|
for (let n = 0; n < e.length; n++) {
|
|
374
|
-
const s =
|
|
387
|
+
const s = Ce(e[n]);
|
|
375
388
|
s && (t += s + " ");
|
|
376
389
|
}
|
|
377
390
|
else if (g(e))
|
|
@@ -382,12 +395,12 @@ function xe(e) {
|
|
|
382
395
|
function j(e, ...t) {
|
|
383
396
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
384
397
|
}
|
|
385
|
-
let
|
|
386
|
-
function
|
|
387
|
-
|
|
398
|
+
let jt, Be = 0, fe;
|
|
399
|
+
function xe() {
|
|
400
|
+
Be++;
|
|
388
401
|
}
|
|
389
402
|
function Re() {
|
|
390
|
-
if (--
|
|
403
|
+
if (--Be > 0)
|
|
391
404
|
return;
|
|
392
405
|
let e;
|
|
393
406
|
for (; fe; ) {
|
|
@@ -406,15 +419,15 @@ function Re() {
|
|
|
406
419
|
if (e) throw e;
|
|
407
420
|
}
|
|
408
421
|
let ee = !0;
|
|
409
|
-
const
|
|
422
|
+
const Je = [];
|
|
410
423
|
function le() {
|
|
411
|
-
|
|
424
|
+
Je.push(ee), ee = !1;
|
|
412
425
|
}
|
|
413
426
|
function ae() {
|
|
414
|
-
const e =
|
|
427
|
+
const e = Je.pop();
|
|
415
428
|
ee = e === void 0 ? !0 : e;
|
|
416
429
|
}
|
|
417
|
-
class
|
|
430
|
+
class Ye {
|
|
418
431
|
// TODO isolatedDeclarations "__v_skip"
|
|
419
432
|
constructor(t) {
|
|
420
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);
|
|
@@ -425,12 +438,12 @@ class Je {
|
|
|
425
438
|
this.version++, this.notify(t);
|
|
426
439
|
}
|
|
427
440
|
notify(t) {
|
|
428
|
-
|
|
441
|
+
xe();
|
|
429
442
|
try {
|
|
430
443
|
if (process.env.NODE_ENV !== "production")
|
|
431
444
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
432
445
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
433
|
-
|
|
446
|
+
M(
|
|
434
447
|
{
|
|
435
448
|
effect: n.sub
|
|
436
449
|
},
|
|
@@ -444,26 +457,26 @@ class Je {
|
|
|
444
457
|
}
|
|
445
458
|
}
|
|
446
459
|
}
|
|
447
|
-
const te = /* @__PURE__ */ new WeakMap(),
|
|
460
|
+
const te = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ Symbol(
|
|
448
461
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
449
462
|
), ye = /* @__PURE__ */ Symbol(
|
|
450
463
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
451
|
-
),
|
|
464
|
+
), U = /* @__PURE__ */ Symbol(
|
|
452
465
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
453
466
|
);
|
|
454
467
|
function _(e, t, n) {
|
|
455
|
-
if (ee &&
|
|
468
|
+
if (ee && jt) {
|
|
456
469
|
let s = te.get(e);
|
|
457
470
|
s || te.set(e, s = /* @__PURE__ */ new Map());
|
|
458
471
|
let r = s.get(n);
|
|
459
|
-
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({
|
|
460
473
|
target: e,
|
|
461
474
|
type: t,
|
|
462
475
|
key: n
|
|
463
476
|
}) : r.track();
|
|
464
477
|
}
|
|
465
478
|
}
|
|
466
|
-
function
|
|
479
|
+
function I(e, t, n, s, r, i) {
|
|
467
480
|
const o = te.get(e);
|
|
468
481
|
if (!o)
|
|
469
482
|
return;
|
|
@@ -477,62 +490,62 @@ function A(e, t, n, s, r, i) {
|
|
|
477
490
|
oldTarget: i
|
|
478
491
|
}) : l.trigger());
|
|
479
492
|
};
|
|
480
|
-
if (
|
|
493
|
+
if (xe(), t === "clear")
|
|
481
494
|
o.forEach(c);
|
|
482
495
|
else {
|
|
483
496
|
const l = p(e), a = l && ce(n);
|
|
484
497
|
if (l && n === "length") {
|
|
485
498
|
const d = Number(s);
|
|
486
499
|
o.forEach((u, f) => {
|
|
487
|
-
(f === "length" || f ===
|
|
500
|
+
(f === "length" || f === U || !P(f) && f >= d) && c(u);
|
|
488
501
|
});
|
|
489
502
|
} else
|
|
490
|
-
switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)), a && c(o.get(
|
|
503
|
+
switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)), a && c(o.get(U)), t) {
|
|
491
504
|
case "add":
|
|
492
|
-
l ? a && c(o.get("length")) : (c(o.get(
|
|
505
|
+
l ? a && c(o.get("length")) : (c(o.get(V)), z(e) && c(o.get(ye)));
|
|
493
506
|
break;
|
|
494
507
|
case "delete":
|
|
495
|
-
l || (c(o.get(
|
|
508
|
+
l || (c(o.get(V)), z(e) && c(o.get(ye)));
|
|
496
509
|
break;
|
|
497
510
|
case "set":
|
|
498
|
-
z(e) && c(o.get(
|
|
511
|
+
z(e) && c(o.get(V));
|
|
499
512
|
break;
|
|
500
513
|
}
|
|
501
514
|
}
|
|
502
515
|
Re();
|
|
503
516
|
}
|
|
504
|
-
function
|
|
517
|
+
function Lt(e, t) {
|
|
505
518
|
const n = te.get(e);
|
|
506
519
|
return n && n.get(t);
|
|
507
520
|
}
|
|
508
|
-
function
|
|
521
|
+
function F(e) {
|
|
509
522
|
const t = /* @__PURE__ */ h(e);
|
|
510
|
-
return t === e ? t : (_(t, "iterate",
|
|
523
|
+
return t === e ? t : (_(t, "iterate", U), /* @__PURE__ */ y(e) ? t : t.map(x));
|
|
511
524
|
}
|
|
512
525
|
function Ae(e) {
|
|
513
|
-
return _(e = /* @__PURE__ */ h(e), "iterate",
|
|
526
|
+
return _(e = /* @__PURE__ */ h(e), "iterate", U), e;
|
|
514
527
|
}
|
|
515
528
|
function w(e, t) {
|
|
516
|
-
return /* @__PURE__ */
|
|
529
|
+
return /* @__PURE__ */ v(e) ? B(/* @__PURE__ */ Ie(e) ? x(t) : t) : x(t);
|
|
517
530
|
}
|
|
518
|
-
const
|
|
531
|
+
const Wt = {
|
|
519
532
|
__proto__: null,
|
|
520
533
|
[Symbol.iterator]() {
|
|
521
534
|
return he(this, Symbol.iterator, (e) => w(this, e));
|
|
522
535
|
},
|
|
523
536
|
concat(...e) {
|
|
524
|
-
return
|
|
525
|
-
...e.map((t) => p(t) ?
|
|
537
|
+
return F(this).concat(
|
|
538
|
+
...e.map((t) => p(t) ? F(t) : t)
|
|
526
539
|
);
|
|
527
540
|
},
|
|
528
541
|
entries() {
|
|
529
542
|
return he(this, "entries", (e) => (e[1] = w(this, e[1]), e));
|
|
530
543
|
},
|
|
531
544
|
every(e, t) {
|
|
532
|
-
return
|
|
545
|
+
return N(this, "every", e, t, void 0, arguments);
|
|
533
546
|
},
|
|
534
547
|
filter(e, t) {
|
|
535
|
-
return
|
|
548
|
+
return N(
|
|
536
549
|
this,
|
|
537
550
|
"filter",
|
|
538
551
|
e,
|
|
@@ -542,7 +555,7 @@ const Ht = {
|
|
|
542
555
|
);
|
|
543
556
|
},
|
|
544
557
|
find(e, t) {
|
|
545
|
-
return
|
|
558
|
+
return N(
|
|
546
559
|
this,
|
|
547
560
|
"find",
|
|
548
561
|
e,
|
|
@@ -552,10 +565,10 @@ const Ht = {
|
|
|
552
565
|
);
|
|
553
566
|
},
|
|
554
567
|
findIndex(e, t) {
|
|
555
|
-
return
|
|
568
|
+
return N(this, "findIndex", e, t, void 0, arguments);
|
|
556
569
|
},
|
|
557
570
|
findLast(e, t) {
|
|
558
|
-
return
|
|
571
|
+
return N(
|
|
559
572
|
this,
|
|
560
573
|
"findLast",
|
|
561
574
|
e,
|
|
@@ -565,11 +578,11 @@ const Ht = {
|
|
|
565
578
|
);
|
|
566
579
|
},
|
|
567
580
|
findLastIndex(e, t) {
|
|
568
|
-
return
|
|
581
|
+
return N(this, "findLastIndex", e, t, void 0, arguments);
|
|
569
582
|
},
|
|
570
583
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
571
584
|
forEach(e, t) {
|
|
572
|
-
return
|
|
585
|
+
return N(this, "forEach", e, t, void 0, arguments);
|
|
573
586
|
},
|
|
574
587
|
includes(...e) {
|
|
575
588
|
return de(this, "includes", e);
|
|
@@ -578,14 +591,14 @@ const Ht = {
|
|
|
578
591
|
return de(this, "indexOf", e);
|
|
579
592
|
},
|
|
580
593
|
join(e) {
|
|
581
|
-
return
|
|
594
|
+
return F(this).join(e);
|
|
582
595
|
},
|
|
583
596
|
// keys() iterator only reads `length`, no optimization required
|
|
584
597
|
lastIndexOf(...e) {
|
|
585
598
|
return de(this, "lastIndexOf", e);
|
|
586
599
|
},
|
|
587
600
|
map(e, t) {
|
|
588
|
-
return
|
|
601
|
+
return N(this, "map", e, t, void 0, arguments);
|
|
589
602
|
},
|
|
590
603
|
pop() {
|
|
591
604
|
return W(this, "pop");
|
|
@@ -594,29 +607,29 @@ const Ht = {
|
|
|
594
607
|
return W(this, "push", e);
|
|
595
608
|
},
|
|
596
609
|
reduce(e, ...t) {
|
|
597
|
-
return
|
|
610
|
+
return Me(this, "reduce", e, t);
|
|
598
611
|
},
|
|
599
612
|
reduceRight(e, ...t) {
|
|
600
|
-
return
|
|
613
|
+
return Me(this, "reduceRight", e, t);
|
|
601
614
|
},
|
|
602
615
|
shift() {
|
|
603
616
|
return W(this, "shift");
|
|
604
617
|
},
|
|
605
618
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
606
619
|
some(e, t) {
|
|
607
|
-
return
|
|
620
|
+
return N(this, "some", e, t, void 0, arguments);
|
|
608
621
|
},
|
|
609
622
|
splice(...e) {
|
|
610
623
|
return W(this, "splice", e);
|
|
611
624
|
},
|
|
612
625
|
toReversed() {
|
|
613
|
-
return
|
|
626
|
+
return F(this).toReversed();
|
|
614
627
|
},
|
|
615
628
|
toSorted(e) {
|
|
616
|
-
return
|
|
629
|
+
return F(this).toSorted(e);
|
|
617
630
|
},
|
|
618
631
|
toSpliced(...e) {
|
|
619
|
-
return
|
|
632
|
+
return F(this).toSpliced(...e);
|
|
620
633
|
},
|
|
621
634
|
unshift(...e) {
|
|
622
635
|
return W(this, "unshift", e);
|
|
@@ -632,12 +645,12 @@ function he(e, t, n) {
|
|
|
632
645
|
return i.done || (i.value = n(i.value)), i;
|
|
633
646
|
}), r;
|
|
634
647
|
}
|
|
635
|
-
const
|
|
636
|
-
function
|
|
648
|
+
const zt = Array.prototype;
|
|
649
|
+
function N(e, t, n, s, r, i) {
|
|
637
650
|
const o = Ae(e), c = o !== e && !/* @__PURE__ */ y(e), l = o[t];
|
|
638
|
-
if (l !==
|
|
651
|
+
if (l !== zt[t]) {
|
|
639
652
|
const u = l.apply(e, i);
|
|
640
|
-
return c ?
|
|
653
|
+
return c ? x(u) : u;
|
|
641
654
|
}
|
|
642
655
|
let a = n;
|
|
643
656
|
o !== e && (c ? a = function(u, f) {
|
|
@@ -648,7 +661,7 @@ function v(e, t, n, s, r, i) {
|
|
|
648
661
|
const d = l.call(o, a, s);
|
|
649
662
|
return c && r ? r(d) : d;
|
|
650
663
|
}
|
|
651
|
-
function
|
|
664
|
+
function Me(e, t, n, s) {
|
|
652
665
|
const r = Ae(e), i = r !== e && !/* @__PURE__ */ y(e);
|
|
653
666
|
let o = n, c = !1;
|
|
654
667
|
r !== e && (i ? (c = s.length === 0, o = function(a, d, u) {
|
|
@@ -661,24 +674,24 @@ function Pe(e, t, n, s) {
|
|
|
661
674
|
}
|
|
662
675
|
function de(e, t, n) {
|
|
663
676
|
const s = /* @__PURE__ */ h(e);
|
|
664
|
-
_(s, "iterate",
|
|
677
|
+
_(s, "iterate", U);
|
|
665
678
|
const r = s[t](...n);
|
|
666
|
-
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;
|
|
667
680
|
}
|
|
668
681
|
function W(e, t, n = []) {
|
|
669
|
-
le(),
|
|
682
|
+
le(), xe();
|
|
670
683
|
const s = (/* @__PURE__ */ h(e))[t].apply(e, n);
|
|
671
684
|
return Re(), ae(), s;
|
|
672
685
|
}
|
|
673
|
-
const
|
|
674
|
-
/* @__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)
|
|
675
688
|
);
|
|
676
|
-
function
|
|
677
|
-
|
|
689
|
+
function qt(e) {
|
|
690
|
+
P(e) || (e = String(e));
|
|
678
691
|
const t = /* @__PURE__ */ h(this);
|
|
679
692
|
return _(t, "has", e), t.hasOwnProperty(e);
|
|
680
693
|
}
|
|
681
|
-
class
|
|
694
|
+
class Qe {
|
|
682
695
|
constructor(t = !1, n = !1) {
|
|
683
696
|
this._isReadonly = t, this._isShallow = n;
|
|
684
697
|
}
|
|
@@ -692,16 +705,16 @@ class Ge {
|
|
|
692
705
|
if (n === "__v_isShallow")
|
|
693
706
|
return i;
|
|
694
707
|
if (n === "__v_raw")
|
|
695
|
-
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
|
|
696
709
|
// this means the receiver is a user proxy of the reactive proxy
|
|
697
710
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
698
711
|
const o = p(t);
|
|
699
712
|
if (!r) {
|
|
700
713
|
let l;
|
|
701
|
-
if (o && (l =
|
|
714
|
+
if (o && (l = Wt[n]))
|
|
702
715
|
return l;
|
|
703
716
|
if (n === "hasOwnProperty")
|
|
704
|
-
return
|
|
717
|
+
return qt;
|
|
705
718
|
}
|
|
706
719
|
const c = Reflect.get(
|
|
707
720
|
t,
|
|
@@ -711,16 +724,16 @@ class Ge {
|
|
|
711
724
|
// its class methods
|
|
712
725
|
/* @__PURE__ */ b(t) ? t : s
|
|
713
726
|
);
|
|
714
|
-
if ((
|
|
727
|
+
if ((P(n) ? Ge.has(n) : Ut(n)) || (r || _(t, "get", n), i))
|
|
715
728
|
return c;
|
|
716
729
|
if (/* @__PURE__ */ b(c)) {
|
|
717
730
|
const l = o && ce(n) ? c : c.value;
|
|
718
731
|
return r && g(l) ? /* @__PURE__ */ we(l) : l;
|
|
719
732
|
}
|
|
720
|
-
return g(c) ? r ? /* @__PURE__ */ we(c) : /* @__PURE__ */
|
|
733
|
+
return g(c) ? r ? /* @__PURE__ */ we(c) : /* @__PURE__ */ tt(c) : c;
|
|
721
734
|
}
|
|
722
735
|
}
|
|
723
|
-
class
|
|
736
|
+
class Bt extends Qe {
|
|
724
737
|
constructor(t = !1) {
|
|
725
738
|
super(!1, t);
|
|
726
739
|
}
|
|
@@ -728,38 +741,38 @@ class qt extends Ge {
|
|
|
728
741
|
let i = t[n];
|
|
729
742
|
const o = p(t) && ce(n);
|
|
730
743
|
if (!this._isShallow) {
|
|
731
|
-
const a = /* @__PURE__ */
|
|
732
|
-
if (!/* @__PURE__ */ y(s) && !/* @__PURE__ */
|
|
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))
|
|
733
746
|
return a ? (process.env.NODE_ENV !== "production" && j(
|
|
734
747
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
735
748
|
t[n]
|
|
736
749
|
), !0) : (i.value = s, !0);
|
|
737
750
|
}
|
|
738
|
-
const c = o ? Number(n) < t.length :
|
|
751
|
+
const c = o ? Number(n) < t.length : Se(t, n), l = Reflect.set(
|
|
739
752
|
t,
|
|
740
753
|
n,
|
|
741
754
|
s,
|
|
742
755
|
/* @__PURE__ */ b(t) ? t : r
|
|
743
756
|
);
|
|
744
|
-
return t === /* @__PURE__ */ h(r) && l && (c ?
|
|
757
|
+
return t === /* @__PURE__ */ h(r) && l && (c ? $(s, i) && I(t, "set", n, s, i) : I(t, "add", n, s)), l;
|
|
745
758
|
}
|
|
746
759
|
deleteProperty(t, n) {
|
|
747
|
-
const s =
|
|
748
|
-
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;
|
|
749
762
|
}
|
|
750
763
|
has(t, n) {
|
|
751
764
|
const s = Reflect.has(t, n);
|
|
752
|
-
return (!
|
|
765
|
+
return (!P(n) || !Ge.has(n)) && _(t, "has", n), s;
|
|
753
766
|
}
|
|
754
767
|
ownKeys(t) {
|
|
755
768
|
return _(
|
|
756
769
|
t,
|
|
757
770
|
"iterate",
|
|
758
|
-
p(t) ? "length" :
|
|
771
|
+
p(t) ? "length" : V
|
|
759
772
|
), Reflect.ownKeys(t);
|
|
760
773
|
}
|
|
761
774
|
}
|
|
762
|
-
class
|
|
775
|
+
class Jt extends Qe {
|
|
763
776
|
constructor(t = !1) {
|
|
764
777
|
super(!0, t);
|
|
765
778
|
}
|
|
@@ -776,15 +789,15 @@ class Ut extends Ge {
|
|
|
776
789
|
), !0;
|
|
777
790
|
}
|
|
778
791
|
}
|
|
779
|
-
const
|
|
780
|
-
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) {
|
|
781
794
|
return function(...s) {
|
|
782
|
-
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 :
|
|
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;
|
|
783
796
|
return !t && _(
|
|
784
797
|
i,
|
|
785
798
|
"iterate",
|
|
786
|
-
l ? ye :
|
|
787
|
-
),
|
|
799
|
+
l ? ye : V
|
|
800
|
+
), M(
|
|
788
801
|
// inheriting all iterator properties
|
|
789
802
|
Object.create(a),
|
|
790
803
|
{
|
|
@@ -805,19 +818,19 @@ function Q(e) {
|
|
|
805
818
|
if (process.env.NODE_ENV !== "production") {
|
|
806
819
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
807
820
|
j(
|
|
808
|
-
`${
|
|
821
|
+
`${Mt(e)} operation ${n}failed: target is readonly.`,
|
|
809
822
|
/* @__PURE__ */ h(this)
|
|
810
823
|
);
|
|
811
824
|
}
|
|
812
825
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
813
826
|
};
|
|
814
827
|
}
|
|
815
|
-
function
|
|
828
|
+
function Xt(e, t) {
|
|
816
829
|
const n = {
|
|
817
830
|
get(r) {
|
|
818
831
|
const i = this.__v_raw, o = /* @__PURE__ */ h(i), c = /* @__PURE__ */ h(r);
|
|
819
|
-
e || (
|
|
820
|
-
const { has: l } = G(o), a = t ? Ee : e ? B :
|
|
832
|
+
e || ($(r, c) && _(o, "get", r), _(o, "get", c));
|
|
833
|
+
const { has: l } = G(o), a = t ? Ee : e ? B : x;
|
|
821
834
|
if (l.call(o, r))
|
|
822
835
|
return a(i.get(r));
|
|
823
836
|
if (l.call(o, c))
|
|
@@ -826,18 +839,18 @@ function Gt(e, t) {
|
|
|
826
839
|
},
|
|
827
840
|
get size() {
|
|
828
841
|
const r = this.__v_raw;
|
|
829
|
-
return !e && _(/* @__PURE__ */ h(r), "iterate",
|
|
842
|
+
return !e && _(/* @__PURE__ */ h(r), "iterate", V), r.size;
|
|
830
843
|
},
|
|
831
844
|
has(r) {
|
|
832
845
|
const i = this.__v_raw, o = /* @__PURE__ */ h(i), c = /* @__PURE__ */ h(r);
|
|
833
|
-
return e || (
|
|
846
|
+
return e || ($(r, c) && _(o, "has", r), _(o, "has", c)), r === c ? i.has(r) : i.has(r) || i.has(c);
|
|
834
847
|
},
|
|
835
848
|
forEach(r, i) {
|
|
836
|
-
const o = this, c = o.__v_raw, l = /* @__PURE__ */ h(c), a = t ? Ee : e ? B :
|
|
837
|
-
return !e && _(l, "iterate",
|
|
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));
|
|
838
851
|
}
|
|
839
852
|
};
|
|
840
|
-
return
|
|
853
|
+
return M(
|
|
841
854
|
n,
|
|
842
855
|
e ? {
|
|
843
856
|
add: Q("add"),
|
|
@@ -846,27 +859,27 @@ function Gt(e, t) {
|
|
|
846
859
|
clear: Q("clear")
|
|
847
860
|
} : {
|
|
848
861
|
add(r) {
|
|
849
|
-
const i = /* @__PURE__ */ h(this), o = G(i), c = /* @__PURE__ */ h(r), l = !t && !/* @__PURE__ */ y(r) && !/* @__PURE__ */
|
|
850
|
-
return o.has.call(i, l) ||
|
|
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;
|
|
851
864
|
},
|
|
852
865
|
set(r, i) {
|
|
853
|
-
!t && !/* @__PURE__ */ y(i) && !/* @__PURE__ */
|
|
866
|
+
!t && !/* @__PURE__ */ y(i) && !/* @__PURE__ */ v(i) && (i = /* @__PURE__ */ h(i));
|
|
854
867
|
const o = /* @__PURE__ */ h(this), { has: c, get: l } = G(o);
|
|
855
868
|
let a = c.call(o, r);
|
|
856
|
-
a ? process.env.NODE_ENV !== "production" &&
|
|
869
|
+
a ? process.env.NODE_ENV !== "production" && Fe(o, c, r) : (r = /* @__PURE__ */ h(r), a = c.call(o, r));
|
|
857
870
|
const d = l.call(o, r);
|
|
858
|
-
return o.set(r, i), a ?
|
|
871
|
+
return o.set(r, i), a ? $(i, d) && I(o, "set", r, i, d) : I(o, "add", r, i), this;
|
|
859
872
|
},
|
|
860
873
|
delete(r) {
|
|
861
874
|
const i = /* @__PURE__ */ h(this), { has: o, get: c } = G(i);
|
|
862
875
|
let l = o.call(i, r);
|
|
863
|
-
l ? process.env.NODE_ENV !== "production" &&
|
|
876
|
+
l ? process.env.NODE_ENV !== "production" && Fe(i, o, r) : (r = /* @__PURE__ */ h(r), l = o.call(i, r));
|
|
864
877
|
const a = c ? c.call(i, r) : void 0, d = i.delete(r);
|
|
865
|
-
return l &&
|
|
878
|
+
return l && I(i, "delete", r, void 0, a), d;
|
|
866
879
|
},
|
|
867
880
|
clear() {
|
|
868
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();
|
|
869
|
-
return i &&
|
|
882
|
+
return i && I(
|
|
870
883
|
r,
|
|
871
884
|
"clear",
|
|
872
885
|
void 0,
|
|
@@ -881,23 +894,23 @@ function Gt(e, t) {
|
|
|
881
894
|
"entries",
|
|
882
895
|
Symbol.iterator
|
|
883
896
|
].forEach((r) => {
|
|
884
|
-
n[r] =
|
|
897
|
+
n[r] = Qt(r, e, t);
|
|
885
898
|
}), n;
|
|
886
899
|
}
|
|
887
|
-
function
|
|
888
|
-
const n =
|
|
900
|
+
function Xe(e, t) {
|
|
901
|
+
const n = Xt(e, t);
|
|
889
902
|
return (s, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
890
|
-
|
|
903
|
+
Se(n, r) && r in s ? n : s,
|
|
891
904
|
r,
|
|
892
905
|
i
|
|
893
906
|
);
|
|
894
907
|
}
|
|
895
|
-
const
|
|
896
|
-
get: /* @__PURE__ */
|
|
897
|
-
},
|
|
898
|
-
get: /* @__PURE__ */
|
|
908
|
+
const Zt = {
|
|
909
|
+
get: /* @__PURE__ */ Xe(!1, !1)
|
|
910
|
+
}, en = {
|
|
911
|
+
get: /* @__PURE__ */ Xe(!0, !1)
|
|
899
912
|
};
|
|
900
|
-
function
|
|
913
|
+
function Fe(e, t, n) {
|
|
901
914
|
const s = /* @__PURE__ */ h(n);
|
|
902
915
|
if (s !== n && t.call(e, s)) {
|
|
903
916
|
const r = qe(e);
|
|
@@ -906,8 +919,8 @@ function Me(e, t, n) {
|
|
|
906
919
|
);
|
|
907
920
|
}
|
|
908
921
|
}
|
|
909
|
-
const
|
|
910
|
-
function
|
|
922
|
+
const Ze = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap();
|
|
923
|
+
function rn(e) {
|
|
911
924
|
switch (e) {
|
|
912
925
|
case "Object":
|
|
913
926
|
case "Array":
|
|
@@ -922,26 +935,26 @@ function tn(e) {
|
|
|
922
935
|
}
|
|
923
936
|
}
|
|
924
937
|
// @__NO_SIDE_EFFECTS__
|
|
925
|
-
function
|
|
926
|
-
return /* @__PURE__ */
|
|
938
|
+
function tt(e) {
|
|
939
|
+
return /* @__PURE__ */ v(e) ? e : nt(
|
|
927
940
|
e,
|
|
928
941
|
!1,
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
942
|
+
Yt,
|
|
943
|
+
Zt,
|
|
944
|
+
Ze
|
|
932
945
|
);
|
|
933
946
|
}
|
|
934
947
|
// @__NO_SIDE_EFFECTS__
|
|
935
948
|
function we(e) {
|
|
936
|
-
return
|
|
949
|
+
return nt(
|
|
937
950
|
e,
|
|
938
951
|
!0,
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
952
|
+
Gt,
|
|
953
|
+
en,
|
|
954
|
+
et
|
|
942
955
|
);
|
|
943
956
|
}
|
|
944
|
-
function
|
|
957
|
+
function nt(e, t, n, s, r) {
|
|
945
958
|
if (!g(e))
|
|
946
959
|
return process.env.NODE_ENV !== "production" && j(
|
|
947
960
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
@@ -953,7 +966,7 @@ function tt(e, t, n, s, r) {
|
|
|
953
966
|
const i = r.get(e);
|
|
954
967
|
if (i)
|
|
955
968
|
return i;
|
|
956
|
-
const o =
|
|
969
|
+
const o = rn(qe(e));
|
|
957
970
|
if (o === 0)
|
|
958
971
|
return e;
|
|
959
972
|
const c = new Proxy(
|
|
@@ -964,10 +977,10 @@ function tt(e, t, n, s, r) {
|
|
|
964
977
|
}
|
|
965
978
|
// @__NO_SIDE_EFFECTS__
|
|
966
979
|
function Ie(e) {
|
|
967
|
-
return /* @__PURE__ */
|
|
980
|
+
return /* @__PURE__ */ v(e) ? /* @__PURE__ */ Ie(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
968
981
|
}
|
|
969
982
|
// @__NO_SIDE_EFFECTS__
|
|
970
|
-
function
|
|
983
|
+
function v(e) {
|
|
971
984
|
return !!(e && e.__v_isReadonly);
|
|
972
985
|
}
|
|
973
986
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -975,7 +988,7 @@ function y(e) {
|
|
|
975
988
|
return !!(e && e.__v_isShallow);
|
|
976
989
|
}
|
|
977
990
|
// @__NO_SIDE_EFFECTS__
|
|
978
|
-
function
|
|
991
|
+
function q(e) {
|
|
979
992
|
return e ? !!e.__v_raw : !1;
|
|
980
993
|
}
|
|
981
994
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -983,21 +996,21 @@ function h(e) {
|
|
|
983
996
|
const t = e && e.__v_raw;
|
|
984
997
|
return t ? /* @__PURE__ */ h(t) : e;
|
|
985
998
|
}
|
|
986
|
-
const
|
|
999
|
+
const x = (e) => g(e) ? /* @__PURE__ */ tt(e) : e, B = (e) => g(e) ? /* @__PURE__ */ we(e) : e;
|
|
987
1000
|
// @__NO_SIDE_EFFECTS__
|
|
988
1001
|
function b(e) {
|
|
989
1002
|
return e ? e.__v_isRef === !0 : !1;
|
|
990
1003
|
}
|
|
991
1004
|
// @__NO_SIDE_EFFECTS__
|
|
992
|
-
function
|
|
993
|
-
return
|
|
1005
|
+
function rt(e) {
|
|
1006
|
+
return sn(e, !1);
|
|
994
1007
|
}
|
|
995
|
-
function
|
|
996
|
-
return /* @__PURE__ */ b(e) ? e : new
|
|
1008
|
+
function sn(e, t) {
|
|
1009
|
+
return /* @__PURE__ */ b(e) ? e : new on(e, t);
|
|
997
1010
|
}
|
|
998
|
-
class
|
|
1011
|
+
class on {
|
|
999
1012
|
constructor(t, n) {
|
|
1000
|
-
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;
|
|
1001
1014
|
}
|
|
1002
1015
|
get value() {
|
|
1003
1016
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -1007,8 +1020,8 @@ class rn {
|
|
|
1007
1020
|
}) : this.dep.track(), this._value;
|
|
1008
1021
|
}
|
|
1009
1022
|
set value(t) {
|
|
1010
|
-
const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ y(t) || /* @__PURE__ */
|
|
1011
|
-
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({
|
|
1012
1025
|
target: this,
|
|
1013
1026
|
type: "set",
|
|
1014
1027
|
key: "value",
|
|
@@ -1017,22 +1030,22 @@ class rn {
|
|
|
1017
1030
|
}) : this.dep.trigger());
|
|
1018
1031
|
}
|
|
1019
1032
|
}
|
|
1020
|
-
function
|
|
1033
|
+
function cn(e) {
|
|
1021
1034
|
return /* @__PURE__ */ b(e) ? e.value : e;
|
|
1022
1035
|
}
|
|
1023
|
-
class
|
|
1036
|
+
class un {
|
|
1024
1037
|
constructor(t, n, s) {
|
|
1025
|
-
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);
|
|
1026
1039
|
let r = !0, i = t;
|
|
1027
|
-
if (!p(t) ||
|
|
1040
|
+
if (!p(t) || P(this._key) || !ce(this._key))
|
|
1028
1041
|
do
|
|
1029
|
-
r = !/* @__PURE__ */
|
|
1042
|
+
r = !/* @__PURE__ */ q(i) || /* @__PURE__ */ y(i);
|
|
1030
1043
|
while (r && (i = i.__v_raw));
|
|
1031
1044
|
this._shallow = r;
|
|
1032
1045
|
}
|
|
1033
1046
|
get value() {
|
|
1034
1047
|
let t = this._object[this._key];
|
|
1035
|
-
return this._shallow && (t =
|
|
1048
|
+
return this._shallow && (t = cn(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
1036
1049
|
}
|
|
1037
1050
|
set value(t) {
|
|
1038
1051
|
if (this._shallow && /* @__PURE__ */ b(this._raw[this._key])) {
|
|
@@ -1045,10 +1058,10 @@ class on {
|
|
|
1045
1058
|
this._object[this._key] = t;
|
|
1046
1059
|
}
|
|
1047
1060
|
get dep() {
|
|
1048
|
-
return
|
|
1061
|
+
return Lt(this._raw, this._key);
|
|
1049
1062
|
}
|
|
1050
1063
|
}
|
|
1051
|
-
class
|
|
1064
|
+
class ln {
|
|
1052
1065
|
constructor(t) {
|
|
1053
1066
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
1054
1067
|
}
|
|
@@ -1057,24 +1070,24 @@ class cn {
|
|
|
1057
1070
|
}
|
|
1058
1071
|
}
|
|
1059
1072
|
// @__NO_SIDE_EFFECTS__
|
|
1060
|
-
function
|
|
1061
|
-
return /* @__PURE__ */ b(e) ? e :
|
|
1073
|
+
function an(e, t, n) {
|
|
1074
|
+
return /* @__PURE__ */ b(e) ? e : R(e) ? new ln(e) : g(e) && arguments.length > 1 ? fn(e, t, n) : /* @__PURE__ */ rt(e);
|
|
1062
1075
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return new
|
|
1076
|
+
function fn(e, t, n) {
|
|
1077
|
+
return new un(e, t, n);
|
|
1065
1078
|
}
|
|
1066
|
-
const
|
|
1067
|
-
function
|
|
1068
|
-
|
|
1079
|
+
const T = [];
|
|
1080
|
+
function hn(e) {
|
|
1081
|
+
T.push(e);
|
|
1069
1082
|
}
|
|
1070
|
-
function
|
|
1071
|
-
|
|
1083
|
+
function dn() {
|
|
1084
|
+
T.pop();
|
|
1072
1085
|
}
|
|
1073
1086
|
let pe = !1;
|
|
1074
|
-
function
|
|
1087
|
+
function D(e, ...t) {
|
|
1075
1088
|
if (pe) return;
|
|
1076
1089
|
pe = !0, le();
|
|
1077
|
-
const n =
|
|
1090
|
+
const n = T.length ? T[T.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = pn();
|
|
1078
1091
|
if (s)
|
|
1079
1092
|
De(
|
|
1080
1093
|
s,
|
|
@@ -1088,7 +1101,7 @@ function H(e, ...t) {
|
|
|
1088
1101
|
}).join(""),
|
|
1089
1102
|
n && n.proxy,
|
|
1090
1103
|
r.map(
|
|
1091
|
-
({ vnode: i }) => `at <${
|
|
1104
|
+
({ vnode: i }) => `at <${St(n, i.type)}>`
|
|
1092
1105
|
).join(`
|
|
1093
1106
|
`),
|
|
1094
1107
|
r
|
|
@@ -1097,12 +1110,12 @@ function H(e, ...t) {
|
|
|
1097
1110
|
else {
|
|
1098
1111
|
const i = [`[Vue warn]: ${e}`, ...t];
|
|
1099
1112
|
r.length && i.push(`
|
|
1100
|
-
`, ...
|
|
1113
|
+
`, ..._n(r)), console.warn(...i);
|
|
1101
1114
|
}
|
|
1102
1115
|
ae(), pe = !1;
|
|
1103
1116
|
}
|
|
1104
|
-
function
|
|
1105
|
-
let e =
|
|
1117
|
+
function pn() {
|
|
1118
|
+
let e = T[T.length - 1];
|
|
1106
1119
|
if (!e)
|
|
1107
1120
|
return [];
|
|
1108
1121
|
const t = [];
|
|
@@ -1117,31 +1130,31 @@ function hn() {
|
|
|
1117
1130
|
}
|
|
1118
1131
|
return t;
|
|
1119
1132
|
}
|
|
1120
|
-
function
|
|
1133
|
+
function _n(e) {
|
|
1121
1134
|
const t = [];
|
|
1122
1135
|
return e.forEach((n, s) => {
|
|
1123
1136
|
t.push(...s === 0 ? [] : [`
|
|
1124
|
-
`], ...
|
|
1137
|
+
`], ...gn(n));
|
|
1125
1138
|
}), t;
|
|
1126
1139
|
}
|
|
1127
|
-
function
|
|
1128
|
-
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(
|
|
1129
1142
|
e.component,
|
|
1130
1143
|
e.type,
|
|
1131
1144
|
s
|
|
1132
1145
|
)}`, i = ">" + n;
|
|
1133
|
-
return e.props ? [r, ...
|
|
1146
|
+
return e.props ? [r, ...bn(e.props), i] : [r + i];
|
|
1134
1147
|
}
|
|
1135
|
-
function
|
|
1148
|
+
function bn(e) {
|
|
1136
1149
|
const t = [], n = Object.keys(e);
|
|
1137
1150
|
return n.slice(0, 3).forEach((s) => {
|
|
1138
|
-
t.push(...
|
|
1151
|
+
t.push(...st(s, e[s]));
|
|
1139
1152
|
}), n.length > 3 && t.push(" ..."), t;
|
|
1140
1153
|
}
|
|
1141
|
-
function
|
|
1142
|
-
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]);
|
|
1143
1156
|
}
|
|
1144
|
-
const
|
|
1157
|
+
const it = {
|
|
1145
1158
|
sp: "serverPrefetch hook",
|
|
1146
1159
|
bc: "beforeCreate hook",
|
|
1147
1160
|
c: "created hook",
|
|
@@ -1178,14 +1191,14 @@ function De(e, t, n, s) {
|
|
|
1178
1191
|
try {
|
|
1179
1192
|
return s ? e(...s) : e();
|
|
1180
1193
|
} catch (r) {
|
|
1181
|
-
|
|
1194
|
+
ot(r, t, n);
|
|
1182
1195
|
}
|
|
1183
1196
|
}
|
|
1184
|
-
function
|
|
1185
|
-
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;
|
|
1186
1199
|
if (t) {
|
|
1187
1200
|
let c = t.parent;
|
|
1188
|
-
const l = t.proxy, a = process.env.NODE_ENV !== "production" ?
|
|
1201
|
+
const l = t.proxy, a = process.env.NODE_ENV !== "production" ? it[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1189
1202
|
for (; c; ) {
|
|
1190
1203
|
const d = c.ec;
|
|
1191
1204
|
if (d) {
|
|
@@ -1204,12 +1217,12 @@ function it(e, t, n, s = !0) {
|
|
|
1204
1217
|
return;
|
|
1205
1218
|
}
|
|
1206
1219
|
}
|
|
1207
|
-
|
|
1220
|
+
mn(e, n, r, s, o);
|
|
1208
1221
|
}
|
|
1209
|
-
function
|
|
1222
|
+
function mn(e, t, n, s = !0, r = !1) {
|
|
1210
1223
|
if (process.env.NODE_ENV !== "production") {
|
|
1211
|
-
const i =
|
|
1212
|
-
if (n &&
|
|
1224
|
+
const i = it[t];
|
|
1225
|
+
if (n && hn(n), D(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && dn(), s)
|
|
1213
1226
|
throw e;
|
|
1214
1227
|
console.error(e);
|
|
1215
1228
|
} else {
|
|
@@ -1218,57 +1231,63 @@ function gn(e, t, n, s = !0, r = !1) {
|
|
|
1218
1231
|
console.error(e);
|
|
1219
1232
|
}
|
|
1220
1233
|
}
|
|
1221
|
-
const
|
|
1222
|
-
let
|
|
1223
|
-
const
|
|
1224
|
-
let
|
|
1225
|
-
const
|
|
1234
|
+
const S = [];
|
|
1235
|
+
let C = -1;
|
|
1236
|
+
const H = [];
|
|
1237
|
+
let A = null, k = 0;
|
|
1238
|
+
const Sn = /* @__PURE__ */ Promise.resolve();
|
|
1226
1239
|
let Oe = null;
|
|
1227
|
-
const
|
|
1228
|
-
function
|
|
1229
|
-
let t =
|
|
1240
|
+
const yn = 100;
|
|
1241
|
+
function En(e) {
|
|
1242
|
+
let t = C + 1, n = S.length;
|
|
1230
1243
|
for (; t < n; ) {
|
|
1231
|
-
const s = t + n >>> 1, r =
|
|
1244
|
+
const s = t + n >>> 1, r = S[s], i = J(r);
|
|
1232
1245
|
i < e || i === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1233
1246
|
}
|
|
1234
1247
|
return t;
|
|
1235
1248
|
}
|
|
1236
|
-
function
|
|
1249
|
+
function wn(e) {
|
|
1237
1250
|
if (!(e.flags & 1)) {
|
|
1238
|
-
const t = J(e), n =
|
|
1251
|
+
const t = J(e), n = S[S.length - 1];
|
|
1239
1252
|
!n || // fast path when the job id is larger than the tail
|
|
1240
|
-
!(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();
|
|
1241
1254
|
}
|
|
1242
1255
|
}
|
|
1243
|
-
function
|
|
1244
|
-
Oe || (Oe =
|
|
1256
|
+
function ct() {
|
|
1257
|
+
Oe || (Oe = Sn.then(ut));
|
|
1245
1258
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
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();
|
|
1248
1266
|
}
|
|
1249
|
-
function
|
|
1250
|
-
if (
|
|
1251
|
-
const t = [...new Set(
|
|
1267
|
+
function vn(e) {
|
|
1268
|
+
if (H.length) {
|
|
1269
|
+
const t = [...new Set(H)].sort(
|
|
1252
1270
|
(n, s) => J(n) - J(s)
|
|
1253
1271
|
);
|
|
1254
|
-
if (
|
|
1255
|
-
|
|
1272
|
+
if (H.length = 0, A) {
|
|
1273
|
+
for (let n = 0; n < t.length; n++)
|
|
1274
|
+
A.push(t[n]);
|
|
1256
1275
|
return;
|
|
1257
1276
|
}
|
|
1258
|
-
for (
|
|
1259
|
-
const n =
|
|
1260
|
-
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);
|
|
1261
1280
|
}
|
|
1262
|
-
|
|
1281
|
+
A = null, k = 0;
|
|
1263
1282
|
}
|
|
1264
1283
|
}
|
|
1265
1284
|
const J = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1266
|
-
function
|
|
1285
|
+
function ut(e) {
|
|
1267
1286
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1268
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1287
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => lt(e, n) : ze;
|
|
1269
1288
|
try {
|
|
1270
|
-
for (
|
|
1271
|
-
const n =
|
|
1289
|
+
for (C = 0; C < S.length; C++) {
|
|
1290
|
+
const n = S[C];
|
|
1272
1291
|
if (n && !(n.flags & 8)) {
|
|
1273
1292
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1274
1293
|
continue;
|
|
@@ -1280,18 +1299,18 @@ function ct(e) {
|
|
|
1280
1299
|
}
|
|
1281
1300
|
}
|
|
1282
1301
|
} finally {
|
|
1283
|
-
for (;
|
|
1284
|
-
const n =
|
|
1302
|
+
for (; C < S.length; C++) {
|
|
1303
|
+
const n = S[C];
|
|
1285
1304
|
n && (n.flags &= -2);
|
|
1286
1305
|
}
|
|
1287
|
-
|
|
1306
|
+
C = -1, S.length = 0, vn(e), Oe = null, (S.length || H.length) && ut(e);
|
|
1288
1307
|
}
|
|
1289
1308
|
}
|
|
1290
|
-
function
|
|
1309
|
+
function lt(e, t) {
|
|
1291
1310
|
const n = e.get(t) || 0;
|
|
1292
|
-
if (n >
|
|
1293
|
-
const s = t.i, r = s &&
|
|
1294
|
-
return
|
|
1311
|
+
if (n > yn) {
|
|
1312
|
+
const s = t.i, r = s && mt(s.type);
|
|
1313
|
+
return ot(
|
|
1295
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.`,
|
|
1296
1315
|
null,
|
|
1297
1316
|
10
|
|
@@ -1301,46 +1320,46 @@ function ut(e, t) {
|
|
|
1301
1320
|
}
|
|
1302
1321
|
const _e = /* @__PURE__ */ new Map();
|
|
1303
1322
|
process.env.NODE_ENV !== "production" && (ue().__VUE_HMR_RUNTIME__ = {
|
|
1304
|
-
createRecord: ge(
|
|
1305
|
-
rerender: ge(
|
|
1306
|
-
reload: ge(
|
|
1323
|
+
createRecord: ge(Nn),
|
|
1324
|
+
rerender: ge(Cn),
|
|
1325
|
+
reload: ge(xn)
|
|
1307
1326
|
});
|
|
1308
1327
|
const ne = /* @__PURE__ */ new Map();
|
|
1309
|
-
function
|
|
1328
|
+
function Nn(e, t) {
|
|
1310
1329
|
return ne.has(e) ? !1 : (ne.set(e, {
|
|
1311
1330
|
initialDef: re(t),
|
|
1312
1331
|
instances: /* @__PURE__ */ new Set()
|
|
1313
1332
|
}), !0);
|
|
1314
1333
|
}
|
|
1315
1334
|
function re(e) {
|
|
1316
|
-
return
|
|
1335
|
+
return yt(e) ? e.__vccOpts : e;
|
|
1317
1336
|
}
|
|
1318
|
-
function
|
|
1337
|
+
function Cn(e, t) {
|
|
1319
1338
|
const n = ne.get(e);
|
|
1320
1339
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1321
1340
|
t && (s.render = t, re(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1322
1341
|
}));
|
|
1323
1342
|
}
|
|
1324
|
-
function
|
|
1343
|
+
function xn(e, t) {
|
|
1325
1344
|
const n = ne.get(e);
|
|
1326
1345
|
if (!n) return;
|
|
1327
|
-
t = re(t),
|
|
1346
|
+
t = re(t), ke(n.initialDef, t);
|
|
1328
1347
|
const s = [...n.instances];
|
|
1329
1348
|
for (let r = 0; r < s.length; r++) {
|
|
1330
1349
|
const i = s[r], o = re(i.type);
|
|
1331
1350
|
let c = _e.get(o);
|
|
1332
|
-
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(() => {
|
|
1333
1352
|
i.job.flags & 8 || (i.parent.update(), c.delete(i));
|
|
1334
1353
|
}) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1335
1354
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1336
1355
|
), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(o);
|
|
1337
1356
|
}
|
|
1338
|
-
|
|
1357
|
+
On(() => {
|
|
1339
1358
|
_e.clear();
|
|
1340
1359
|
});
|
|
1341
1360
|
}
|
|
1342
|
-
function
|
|
1343
|
-
|
|
1361
|
+
function ke(e, t) {
|
|
1362
|
+
M(e, t);
|
|
1344
1363
|
for (const n in e)
|
|
1345
1364
|
n !== "__file" && !(n in t) && delete e[n];
|
|
1346
1365
|
}
|
|
@@ -1355,49 +1374,86 @@ function ge(e) {
|
|
|
1355
1374
|
}
|
|
1356
1375
|
};
|
|
1357
1376
|
}
|
|
1358
|
-
let
|
|
1359
|
-
function
|
|
1377
|
+
let K, X = [];
|
|
1378
|
+
function at(e, t) {
|
|
1360
1379
|
var n, s;
|
|
1361
|
-
|
|
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
|
|
1362
1381
|
window.HTMLElement && // also exclude jsdom
|
|
1363
1382
|
// eslint-disable-next-line no-restricted-syntax
|
|
1364
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) => {
|
|
1365
|
-
|
|
1384
|
+
at(i, t);
|
|
1366
1385
|
}), setTimeout(() => {
|
|
1367
|
-
|
|
1386
|
+
K || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, X = []);
|
|
1368
1387
|
}, 3e3)) : X = [];
|
|
1369
1388
|
}
|
|
1370
|
-
let se = null,
|
|
1371
|
-
const
|
|
1372
|
-
function
|
|
1373
|
-
|
|
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;
|
|
1374
1430
|
}
|
|
1375
1431
|
ue().requestIdleCallback;
|
|
1376
1432
|
ue().cancelIdleCallback;
|
|
1377
|
-
const
|
|
1378
|
-
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(
|
|
1379
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."
|
|
1380
1436
|
), Reflect.ownKeys(e)));
|
|
1381
|
-
const
|
|
1382
|
-
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) {
|
|
1383
1439
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1384
1440
|
}
|
|
1385
|
-
const
|
|
1441
|
+
const kn = (...e) => gt(
|
|
1386
1442
|
...e
|
|
1387
|
-
),
|
|
1443
|
+
), _t = ({ key: e }) => e ?? null, Z = ({
|
|
1388
1444
|
ref: e,
|
|
1389
1445
|
ref_key: t,
|
|
1390
1446
|
ref_for: n
|
|
1391
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1392
|
-
function
|
|
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) {
|
|
1393
1449
|
const l = {
|
|
1394
1450
|
__v_isVNode: !0,
|
|
1395
1451
|
__v_skip: !0,
|
|
1396
1452
|
type: e,
|
|
1397
1453
|
props: t,
|
|
1398
|
-
key: t &&
|
|
1454
|
+
key: t && _t(t),
|
|
1399
1455
|
ref: t && Z(t),
|
|
1400
|
-
scopeId:
|
|
1456
|
+
scopeId: Rn,
|
|
1401
1457
|
slotScopeIds: null,
|
|
1402
1458
|
children: n,
|
|
1403
1459
|
component: null,
|
|
@@ -1419,11 +1475,20 @@ function Mn(e, t = null, n = null, s = 0, r = null, i = e === ht ? 0 : 1, o = !1
|
|
|
1419
1475
|
appContext: null,
|
|
1420
1476
|
ctx: se
|
|
1421
1477
|
};
|
|
1422
|
-
|
|
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;
|
|
1423
1488
|
}
|
|
1424
|
-
const
|
|
1425
|
-
function
|
|
1426
|
-
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)) {
|
|
1427
1492
|
const c = ie(
|
|
1428
1493
|
e,
|
|
1429
1494
|
t,
|
|
@@ -1432,18 +1497,18 @@ function pt(e, t = null, n = null, s = 0, r = null, i = !1) {
|
|
|
1432
1497
|
);
|
|
1433
1498
|
return n && oe(c, n), c.patchFlag = -2, c;
|
|
1434
1499
|
}
|
|
1435
|
-
if (
|
|
1436
|
-
t =
|
|
1500
|
+
if (yt(e) && (e = e.__vccOpts), t) {
|
|
1501
|
+
t = Ln(t);
|
|
1437
1502
|
let { class: c, style: l } = t;
|
|
1438
|
-
c && !
|
|
1503
|
+
c && !O(c) && (t.class = Ce(c)), g(l) && (/* @__PURE__ */ q(l) && !p(l) && (l = M({}, l)), t.style = Ne(l));
|
|
1439
1504
|
}
|
|
1440
|
-
const o =
|
|
1441
|
-
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(
|
|
1442
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`.",
|
|
1443
1508
|
`
|
|
1444
1509
|
Component that was made reactive: `,
|
|
1445
1510
|
e
|
|
1446
|
-
)),
|
|
1511
|
+
)), Kn(
|
|
1447
1512
|
e,
|
|
1448
1513
|
t,
|
|
1449
1514
|
n,
|
|
@@ -1454,16 +1519,16 @@ Component that was made reactive: `,
|
|
|
1454
1519
|
!0
|
|
1455
1520
|
);
|
|
1456
1521
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return e ? /* @__PURE__ */
|
|
1522
|
+
function Ln(e) {
|
|
1523
|
+
return e ? /* @__PURE__ */ q(e) || ht(e) ? M({}, e) : e : null;
|
|
1459
1524
|
}
|
|
1460
1525
|
function ie(e, t, n = !1, s = !1) {
|
|
1461
|
-
const { props: r, ref: i, patchFlag: o, children: c, transition: l } = e, a = t ?
|
|
1526
|
+
const { props: r, ref: i, patchFlag: o, children: c, transition: l } = e, a = t ? zn(r || {}, t) : r, d = {
|
|
1462
1527
|
__v_isVNode: !0,
|
|
1463
1528
|
__v_skip: !0,
|
|
1464
1529
|
type: e.type,
|
|
1465
1530
|
props: a,
|
|
1466
|
-
key: a &&
|
|
1531
|
+
key: a && _t(a),
|
|
1467
1532
|
ref: t && t.ref ? (
|
|
1468
1533
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1469
1534
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1472,7 +1537,7 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1472
1537
|
) : i,
|
|
1473
1538
|
scopeId: e.scopeId,
|
|
1474
1539
|
slotScopeIds: e.slotScopeIds,
|
|
1475
|
-
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,
|
|
1476
1541
|
target: e.target,
|
|
1477
1542
|
targetStart: e.targetStart,
|
|
1478
1543
|
targetAnchor: e.targetAnchor,
|
|
@@ -1482,7 +1547,7 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1482
1547
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1483
1548
|
// note: preserve flag for fragments since they use the flag for children
|
|
1484
1549
|
// fast paths only.
|
|
1485
|
-
patchFlag: t && e.type !==
|
|
1550
|
+
patchFlag: t && e.type !== dt ? o === -1 ? 16 : o | 16 : o,
|
|
1486
1551
|
dynamicProps: e.dynamicProps,
|
|
1487
1552
|
dynamicChildren: e.dynamicChildren,
|
|
1488
1553
|
appContext: e.appContext,
|
|
@@ -1502,17 +1567,17 @@ function ie(e, t, n = !1, s = !1) {
|
|
|
1502
1567
|
ctx: e.ctx,
|
|
1503
1568
|
ce: e.ce
|
|
1504
1569
|
};
|
|
1505
|
-
return l && s &&
|
|
1570
|
+
return l && s && ft(
|
|
1506
1571
|
d,
|
|
1507
1572
|
l.clone(d)
|
|
1508
1573
|
), d;
|
|
1509
1574
|
}
|
|
1510
|
-
function
|
|
1575
|
+
function bt(e) {
|
|
1511
1576
|
const t = ie(e);
|
|
1512
|
-
return p(e.children) && (t.children = e.children.map(
|
|
1577
|
+
return p(e.children) && (t.children = e.children.map(bt)), t;
|
|
1513
1578
|
}
|
|
1514
|
-
function
|
|
1515
|
-
return
|
|
1579
|
+
function Wn(e = " ", t = 0) {
|
|
1580
|
+
return jn(Mn, null, e, t);
|
|
1516
1581
|
}
|
|
1517
1582
|
function oe(e, t) {
|
|
1518
1583
|
let n = 0;
|
|
@@ -1527,31 +1592,31 @@ function oe(e, t) {
|
|
|
1527
1592
|
r && (r._c && (r._d = !1), oe(e, r()), r._c && (r._d = !0));
|
|
1528
1593
|
return;
|
|
1529
1594
|
} else
|
|
1530
|
-
n = 32, !t._ && !
|
|
1531
|
-
else if (
|
|
1595
|
+
n = 32, !t._ && !ht(t) && (t._ctx = se);
|
|
1596
|
+
else if (R(t)) {
|
|
1532
1597
|
if (s & 65) {
|
|
1533
1598
|
oe(e, { default: t });
|
|
1534
1599
|
return;
|
|
1535
1600
|
}
|
|
1536
1601
|
t = { default: t, _ctx: se }, n = 32;
|
|
1537
1602
|
} else
|
|
1538
|
-
t = String(t), s & 64 ? (n = 16, t = [
|
|
1603
|
+
t = String(t), s & 64 ? (n = 16, t = [Wn(t)]) : n = 8;
|
|
1539
1604
|
e.children = t, e.shapeFlag |= n;
|
|
1540
1605
|
}
|
|
1541
|
-
function
|
|
1606
|
+
function zn(...e) {
|
|
1542
1607
|
const t = {};
|
|
1543
1608
|
for (let n = 0; n < e.length; n++) {
|
|
1544
1609
|
const s = e[n];
|
|
1545
1610
|
for (const r in s)
|
|
1546
1611
|
if (r === "class")
|
|
1547
|
-
t.class !== s.class && (t.class =
|
|
1612
|
+
t.class !== s.class && (t.class = Ce([t.class, s.class]));
|
|
1548
1613
|
else if (r === "style")
|
|
1549
1614
|
t.style = Ne([t.style, s.style]);
|
|
1550
|
-
else if (
|
|
1615
|
+
else if (Dt(r)) {
|
|
1551
1616
|
const i = t[r], o = s[r];
|
|
1552
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
|
|
1553
1618
|
// the model listener.
|
|
1554
|
-
|
|
1619
|
+
!$t(r) && (t[r] = o);
|
|
1555
1620
|
} else r !== "" && (t[r] = s[r]);
|
|
1556
1621
|
}
|
|
1557
1622
|
return t;
|
|
@@ -1572,12 +1637,12 @@ function jn(...e) {
|
|
|
1572
1637
|
);
|
|
1573
1638
|
}
|
|
1574
1639
|
process.env.NODE_ENV;
|
|
1575
|
-
const
|
|
1576
|
-
function
|
|
1577
|
-
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;
|
|
1578
1643
|
}
|
|
1579
|
-
function
|
|
1580
|
-
let s =
|
|
1644
|
+
function St(e, t, n = !1) {
|
|
1645
|
+
let s = mt(t);
|
|
1581
1646
|
if (!s && t.__file) {
|
|
1582
1647
|
const r = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1583
1648
|
r && (s = r[1]);
|
|
@@ -1592,12 +1657,12 @@ function bt(e, t, n = !1) {
|
|
|
1592
1657
|
e.parent.type.components
|
|
1593
1658
|
) || r(e.appContext.components);
|
|
1594
1659
|
}
|
|
1595
|
-
return s ?
|
|
1660
|
+
return s ? qn(s) : n ? "App" : "Anonymous";
|
|
1596
1661
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return
|
|
1662
|
+
function yt(e) {
|
|
1663
|
+
return R(e) && "__vccOpts" in e;
|
|
1599
1664
|
}
|
|
1600
|
-
function
|
|
1665
|
+
function Bn() {
|
|
1601
1666
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1602
1667
|
return;
|
|
1603
1668
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1626,9 +1691,9 @@ function Wn() {
|
|
|
1626
1691
|
["span", e, /* @__PURE__ */ y(u) ? "ShallowReactive" : "Reactive"],
|
|
1627
1692
|
"<",
|
|
1628
1693
|
c(u),
|
|
1629
|
-
`>${/* @__PURE__ */
|
|
1694
|
+
`>${/* @__PURE__ */ v(u) ? " (readonly)" : ""}`
|
|
1630
1695
|
];
|
|
1631
|
-
if (/* @__PURE__ */
|
|
1696
|
+
if (/* @__PURE__ */ v(u))
|
|
1632
1697
|
return [
|
|
1633
1698
|
"div",
|
|
1634
1699
|
{},
|
|
@@ -1654,9 +1719,9 @@ function Wn() {
|
|
|
1654
1719
|
};
|
|
1655
1720
|
function i(u) {
|
|
1656
1721
|
const f = [];
|
|
1657
|
-
u.type.props && u.props && f.push(o("props", /* @__PURE__ */ h(u.props))), u.setupState !==
|
|
1658
|
-
const
|
|
1659
|
-
|
|
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));
|
|
1660
1725
|
const E = l(u, "inject");
|
|
1661
1726
|
return E && f.push(o("injected", E)), f.push([
|
|
1662
1727
|
"div",
|
|
@@ -1672,7 +1737,7 @@ function Wn() {
|
|
|
1672
1737
|
]), f;
|
|
1673
1738
|
}
|
|
1674
1739
|
function o(u, f) {
|
|
1675
|
-
return f =
|
|
1740
|
+
return f = M({}, f), Object.keys(f).length ? [
|
|
1676
1741
|
"div",
|
|
1677
1742
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1678
1743
|
[
|
|
@@ -1687,11 +1752,11 @@ function Wn() {
|
|
|
1687
1752
|
{
|
|
1688
1753
|
style: "padding-left:1.25em"
|
|
1689
1754
|
},
|
|
1690
|
-
...Object.keys(f).map((
|
|
1755
|
+
...Object.keys(f).map((m) => [
|
|
1691
1756
|
"div",
|
|
1692
1757
|
{},
|
|
1693
|
-
["span", s,
|
|
1694
|
-
c(f[
|
|
1758
|
+
["span", s, m + ": "],
|
|
1759
|
+
c(f[m], !1)
|
|
1695
1760
|
])
|
|
1696
1761
|
]
|
|
1697
1762
|
] : ["span", {}];
|
|
@@ -1700,17 +1765,17 @@ function Wn() {
|
|
|
1700
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)];
|
|
1701
1766
|
}
|
|
1702
1767
|
function l(u, f) {
|
|
1703
|
-
const
|
|
1704
|
-
if (
|
|
1768
|
+
const m = u.type;
|
|
1769
|
+
if (R(m))
|
|
1705
1770
|
return;
|
|
1706
1771
|
const E = {};
|
|
1707
1772
|
for (const L in u.ctx)
|
|
1708
|
-
a(
|
|
1773
|
+
a(m, L, f) && (E[L] = u.ctx[L]);
|
|
1709
1774
|
return E;
|
|
1710
1775
|
}
|
|
1711
|
-
function a(u, f,
|
|
1712
|
-
const E = u[
|
|
1713
|
-
if (p(E) && E.includes(f) || g(E) && f in E || u.extends && a(u.extends, f,
|
|
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)))
|
|
1714
1779
|
return !0;
|
|
1715
1780
|
}
|
|
1716
1781
|
function d(u) {
|
|
@@ -1721,80 +1786,80 @@ function Wn() {
|
|
|
1721
1786
|
process.env.NODE_ENV;
|
|
1722
1787
|
process.env.NODE_ENV;
|
|
1723
1788
|
process.env.NODE_ENV;
|
|
1724
|
-
function
|
|
1725
|
-
|
|
1789
|
+
function Jn() {
|
|
1790
|
+
Bn();
|
|
1726
1791
|
}
|
|
1727
|
-
process.env.NODE_ENV !== "production" &&
|
|
1728
|
-
const
|
|
1729
|
-
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) {
|
|
1730
1795
|
return e?.storeOptions?.debug === !0;
|
|
1731
1796
|
}
|
|
1732
1797
|
function ve(e, t, n) {
|
|
1733
|
-
if (!
|
|
1798
|
+
if (!Gn(t))
|
|
1734
1799
|
return;
|
|
1735
1800
|
const s = Y.size;
|
|
1736
|
-
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`);
|
|
1737
1802
|
}
|
|
1738
|
-
function
|
|
1739
|
-
if (
|
|
1803
|
+
function Qn(e, t, n) {
|
|
1804
|
+
if (Ke.has(e) || typeof e.$dispose != "function")
|
|
1740
1805
|
return;
|
|
1741
1806
|
const s = e.$dispose;
|
|
1742
|
-
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);
|
|
1743
1808
|
}
|
|
1744
|
-
function
|
|
1809
|
+
function or(e, t, n) {
|
|
1745
1810
|
const s = n ? { storeOptions: n } : {};
|
|
1746
|
-
return typeof t == "function" ?
|
|
1811
|
+
return typeof t == "function" ? Et(
|
|
1747
1812
|
e,
|
|
1748
1813
|
t,
|
|
1749
1814
|
s
|
|
1750
|
-
) :
|
|
1815
|
+
) : Xn(
|
|
1751
1816
|
e,
|
|
1752
1817
|
t,
|
|
1753
1818
|
s
|
|
1754
1819
|
);
|
|
1755
1820
|
}
|
|
1756
|
-
function
|
|
1821
|
+
function cr(e, t, n) {
|
|
1757
1822
|
const s = n ? { storeOptions: { ...n, enhancedStore: !0 } } : { storeOptions: { enhancedStore: !0 } };
|
|
1758
|
-
return
|
|
1823
|
+
return Et(
|
|
1759
1824
|
e,
|
|
1760
1825
|
t,
|
|
1761
1826
|
s
|
|
1762
1827
|
);
|
|
1763
1828
|
}
|
|
1764
|
-
function
|
|
1829
|
+
function Et(e, t, n) {
|
|
1765
1830
|
const s = {
|
|
1766
1831
|
id: e,
|
|
1767
1832
|
extensions: {}
|
|
1768
|
-
}, r = n?.storeOptions?.enhancedStore === !0, i =
|
|
1833
|
+
}, r = n?.storeOptions?.enhancedStore === !0, i = He(e, () => t(s), n);
|
|
1769
1834
|
return Object.assign(((...o) => {
|
|
1770
1835
|
r && (Y.set(e, s), ve(e, n, "registered context by id"));
|
|
1771
1836
|
const c = i(...o);
|
|
1772
|
-
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;
|
|
1773
1838
|
}), i);
|
|
1774
1839
|
}
|
|
1775
|
-
function
|
|
1776
|
-
return n && (t = { ...t, ...n ?? {} }),
|
|
1840
|
+
function Xn(e, t, n) {
|
|
1841
|
+
return n && (t = { ...t, ...n ?? {} }), He(e, t);
|
|
1777
1842
|
}
|
|
1778
|
-
const
|
|
1779
|
-
function
|
|
1780
|
-
return
|
|
1843
|
+
const Zn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1844
|
+
function er(e) {
|
|
1845
|
+
return Zn.has(e[0]);
|
|
1781
1846
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1847
|
+
function tr(e) {
|
|
1848
|
+
return Ve.get(e) ?? (typeof e?.$id == "string" ? Y.get(e.$id) : void 0);
|
|
1784
1849
|
}
|
|
1785
|
-
function
|
|
1850
|
+
function nr(e) {
|
|
1786
1851
|
const t = e.extensions.enhancedStore ?? e.extensions.extending;
|
|
1787
1852
|
if (!t)
|
|
1788
1853
|
throw new Error(`${e.id}Store - getEnhancedStore - Error: enhanced store is required`);
|
|
1789
1854
|
return t;
|
|
1790
1855
|
}
|
|
1791
|
-
function
|
|
1856
|
+
function rr(e, t) {
|
|
1792
1857
|
e.extensions.enhancedStore = t, e.extensions.extending = t;
|
|
1793
1858
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return
|
|
1859
|
+
function ur(e) {
|
|
1860
|
+
return nr(e);
|
|
1796
1861
|
}
|
|
1797
|
-
class
|
|
1862
|
+
class lr extends je {
|
|
1798
1863
|
_className = "Store";
|
|
1799
1864
|
_onAction;
|
|
1800
1865
|
_options;
|
|
@@ -1824,6 +1889,10 @@ class ir extends je {
|
|
|
1824
1889
|
get store() {
|
|
1825
1890
|
return this._store;
|
|
1826
1891
|
}
|
|
1892
|
+
hydrate() {
|
|
1893
|
+
}
|
|
1894
|
+
afterHydration() {
|
|
1895
|
+
}
|
|
1827
1896
|
get storeSubscribe() {
|
|
1828
1897
|
if (this._storeSubscribe)
|
|
1829
1898
|
return () => ({
|
|
@@ -1836,8 +1905,8 @@ class ir extends je {
|
|
|
1836
1905
|
}
|
|
1837
1906
|
constructor(t, n, s = !1, r) {
|
|
1838
1907
|
if (super(s, r), this._options = n.storeOptions, this._store = t, this._options?.enhancedStore) {
|
|
1839
|
-
const i =
|
|
1840
|
-
i &&
|
|
1908
|
+
const i = tr(this.store);
|
|
1909
|
+
i && rr(i, this.store);
|
|
1841
1910
|
}
|
|
1842
1911
|
}
|
|
1843
1912
|
/**
|
|
@@ -1846,7 +1915,7 @@ class ir extends je {
|
|
|
1846
1915
|
* @param value
|
|
1847
1916
|
*/
|
|
1848
1917
|
addToState(t, n) {
|
|
1849
|
-
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);
|
|
1850
1919
|
}
|
|
1851
1920
|
addSubscription(t, n, s) {
|
|
1852
1921
|
this._subscriptions[t] = { subscription: n, ...s ?? {} };
|
|
@@ -1863,7 +1932,7 @@ class ir extends je {
|
|
|
1863
1932
|
return new this(t, n, s, r);
|
|
1864
1933
|
}
|
|
1865
1934
|
hasDeniedFirstChar(t) {
|
|
1866
|
-
return
|
|
1935
|
+
return er(t[0]);
|
|
1867
1936
|
}
|
|
1868
1937
|
static hasRequiredKeys(t) {
|
|
1869
1938
|
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
|
|
@@ -1891,12 +1960,12 @@ class ir extends je {
|
|
|
1891
1960
|
return this.store.hasOwnProperty(t);
|
|
1892
1961
|
}
|
|
1893
1962
|
}
|
|
1894
|
-
function
|
|
1895
|
-
const n = new
|
|
1963
|
+
function ar(e, t) {
|
|
1964
|
+
const n = new We(e, t);
|
|
1896
1965
|
return n.plugin.bind(n);
|
|
1897
1966
|
}
|
|
1898
|
-
function
|
|
1899
|
-
const n = new
|
|
1967
|
+
function fr(e, t) {
|
|
1968
|
+
const n = new We(e, t?.debug, {
|
|
1900
1969
|
execution: t?.execution,
|
|
1901
1970
|
hydrationScheduler: t?.hydrationScheduler,
|
|
1902
1971
|
runtimeEnvironment: t?.runtimeEnvironment,
|
|
@@ -1905,18 +1974,18 @@ function cr(e, t) {
|
|
|
1905
1974
|
return n.plugin.bind(n);
|
|
1906
1975
|
}
|
|
1907
1976
|
export {
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
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,
|
|
1920
1989
|
be as isEmpty,
|
|
1921
|
-
|
|
1990
|
+
rr as setEnhancedStore
|
|
1922
1991
|
};
|