pinia-plugin-subscription 0.1.0 → 0.1.2
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 +62 -0
- package/CONTRIBUTING.md +142 -0
- package/LICENSE +21 -21
- package/README.md +5 -1
- package/SECURITY.md +75 -0
- package/dist/pinia-plugin-subscription.js +549 -512
- package/dist/pinia-plugin-subscription.umd.cjs +4 -4
- package/dist/types/index.d.ts +121 -129
- package/package.json +73 -61
- package/dist/types/log.d.ts +0 -8
- package/dist/types/plugin.d.ts +0 -34
- package/dist/types/resourceId.d.ts +0 -4
- package/dist/types/store.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as Mt } from "pinia";
|
|
2
|
+
class Ln {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
5
5
|
_name;
|
|
@@ -44,7 +44,7 @@ class Pn {
|
|
|
44
44
|
return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, r, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class Pt {
|
|
48
48
|
_console;
|
|
49
49
|
_debug = !1;
|
|
50
50
|
get console() {
|
|
@@ -60,7 +60,7 @@ class Vt {
|
|
|
60
60
|
this._debug = e;
|
|
61
61
|
}
|
|
62
62
|
constructor(e, n) {
|
|
63
|
-
this._debug = e,
|
|
63
|
+
this._debug = e, n && (this._console = n);
|
|
64
64
|
}
|
|
65
65
|
debugLog(...e) {
|
|
66
66
|
this._debug && (Array.isArray(e) && (e[0] = `${this._className} - ${e[0]}`), this.console.log(...e));
|
|
@@ -69,8 +69,8 @@ class Vt {
|
|
|
69
69
|
this.console.error(...e);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
function
|
|
72
|
+
const Ft = "pinia-plugin-subscription", de = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
73
|
+
function _e(t, e) {
|
|
74
74
|
if (!t)
|
|
75
75
|
throw new Error("Style instructions are required");
|
|
76
76
|
console.log(
|
|
@@ -80,7 +80,7 @@ function ae(t, e) {
|
|
|
80
80
|
...e
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class ge {
|
|
84
84
|
_bgColor = "#ffec73";
|
|
85
85
|
_color = "green";
|
|
86
86
|
_icon = "🍍⚡";
|
|
@@ -92,10 +92,10 @@ class ue {
|
|
|
92
92
|
info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
|
|
93
93
|
};
|
|
94
94
|
formatMessage(e, n) {
|
|
95
|
-
return ` [${n} ${
|
|
95
|
+
return ` [${n} ${Ft}] - ${e} `;
|
|
96
96
|
}
|
|
97
97
|
generateStyle(e) {
|
|
98
|
-
return
|
|
98
|
+
return de(e.bgColor, e.color);
|
|
99
99
|
}
|
|
100
100
|
getStyleDefinition(e) {
|
|
101
101
|
return this._styles[e ?? "info"];
|
|
@@ -119,22 +119,22 @@ class ue {
|
|
|
119
119
|
return [this.formatMessage(e.shift(), n), ...e ?? []];
|
|
120
120
|
}
|
|
121
121
|
useLog(e, n) {
|
|
122
|
-
|
|
122
|
+
_e(
|
|
123
123
|
this.generateStyle(e),
|
|
124
124
|
this.rebuildArgs(n, e.icon)
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
class
|
|
129
|
-
_pluginName =
|
|
128
|
+
class be extends ge {
|
|
129
|
+
_pluginName = Ft;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
131
|
+
const me = new be();
|
|
132
|
+
function gt(t) {
|
|
133
133
|
return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
class
|
|
137
|
-
_className =
|
|
135
|
+
const $t = "PluginSubscription";
|
|
136
|
+
class ye extends Pt {
|
|
137
|
+
_className = $t;
|
|
138
138
|
_pluginDebug;
|
|
139
139
|
_resetStoreCallback = [];
|
|
140
140
|
_subscribers = [];
|
|
@@ -145,11 +145,11 @@ class pe extends Vt {
|
|
|
145
145
|
this._subscribers = e;
|
|
146
146
|
}
|
|
147
147
|
get subscriptions() {
|
|
148
|
-
if (!
|
|
148
|
+
if (!gt(this._subscriptions))
|
|
149
149
|
return this._subscriptions;
|
|
150
150
|
}
|
|
151
151
|
constructor(e, n) {
|
|
152
|
-
super(Array.isArray(n) && !!n?.includes(
|
|
152
|
+
super(Array.isArray(n) && !!n?.includes($t), me), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
153
153
|
}
|
|
154
154
|
addResetStoreCallback(e) {
|
|
155
155
|
this._resetStoreCallback.push(e);
|
|
@@ -223,14 +223,14 @@ class pe extends Vt {
|
|
|
223
223
|
i.invoke(
|
|
224
224
|
{ store: e, options: { ...n, ...u } },
|
|
225
225
|
this.debug
|
|
226
|
-
), this._subscriptionsDelivered.add(`${s}-${e.$id}`),
|
|
227
|
-
(
|
|
226
|
+
), this._subscriptionsDelivered.add(`${s}-${e.$id}`), gt(a) || a?.forEach(
|
|
227
|
+
(p) => i.invoke(
|
|
228
228
|
{
|
|
229
|
-
store:
|
|
229
|
+
store: p,
|
|
230
230
|
options: {
|
|
231
231
|
...n,
|
|
232
232
|
...u,
|
|
233
|
-
...
|
|
233
|
+
...p?.storeOptions ?? {}
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
this.debug
|
|
@@ -243,72 +243,72 @@ class pe extends Vt {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
246
|
+
function Se(t) {
|
|
247
247
|
const e = /* @__PURE__ */ Object.create(null);
|
|
248
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
249
249
|
return (n) => n in e;
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const bt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
252
252
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
253
|
-
const
|
|
254
|
-
},
|
|
255
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97),
|
|
253
|
+
const kt = () => {
|
|
254
|
+
}, Oe = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
255
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), we = (t) => t.startsWith("onUpdate:"), M = Object.assign, Ee = Object.prototype.hasOwnProperty, mt = (t, e) => Ee.call(t, e), d = Array.isArray, z = (t) => jt(t) === "[object Map]", $ = (t) => typeof t == "function", R = (t) => typeof t == "string", T = (t) => typeof t == "symbol", g = (t) => t !== null && typeof t == "object", Ne = Object.prototype.toString, jt = (t) => Ne.call(t), Kt = (t) => jt(t).slice(8, -1), it = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ve = (t) => {
|
|
256
256
|
const e = /* @__PURE__ */ Object.create(null);
|
|
257
257
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
258
|
-
},
|
|
259
|
-
let
|
|
260
|
-
const
|
|
261
|
-
function
|
|
258
|
+
}, Re = ve((t) => t.charAt(0).toUpperCase() + t.slice(1)), V = (t, e) => !Object.is(t, e);
|
|
259
|
+
let Vt;
|
|
260
|
+
const ct = () => Vt || (Vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
261
|
+
function Et(t) {
|
|
262
262
|
if (d(t)) {
|
|
263
263
|
const e = {};
|
|
264
264
|
for (let n = 0; n < t.length; n++) {
|
|
265
|
-
const r = t[n], s =
|
|
265
|
+
const r = t[n], s = R(r) ? $e(r) : Et(r);
|
|
266
266
|
if (s)
|
|
267
267
|
for (const o in s)
|
|
268
268
|
e[o] = s[o];
|
|
269
269
|
}
|
|
270
270
|
return e;
|
|
271
|
-
} else if (
|
|
271
|
+
} else if (R(t) || g(t))
|
|
272
272
|
return t;
|
|
273
273
|
}
|
|
274
|
-
const
|
|
275
|
-
function
|
|
274
|
+
const Ce = /;(?![^(]*\))/g, Ae = /:([^]+)/, Ie = /\/\*[^]*?\*\//g;
|
|
275
|
+
function $e(t) {
|
|
276
276
|
const e = {};
|
|
277
|
-
return t.replace(
|
|
277
|
+
return t.replace(Ie, "").split(Ce).forEach((n) => {
|
|
278
278
|
if (n) {
|
|
279
|
-
const r = n.split(
|
|
279
|
+
const r = n.split(Ae);
|
|
280
280
|
r.length > 1 && (e[r[0].trim()] = r[1].trim());
|
|
281
281
|
}
|
|
282
282
|
}), e;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Nt(t) {
|
|
285
285
|
let e = "";
|
|
286
|
-
if (
|
|
286
|
+
if (R(t))
|
|
287
287
|
e = t;
|
|
288
288
|
else if (d(t))
|
|
289
289
|
for (let n = 0; n < t.length; n++) {
|
|
290
|
-
const r =
|
|
290
|
+
const r = Nt(t[n]);
|
|
291
291
|
r && (e += r + " ");
|
|
292
292
|
}
|
|
293
|
-
else if (
|
|
293
|
+
else if (g(t))
|
|
294
294
|
for (const n in t)
|
|
295
295
|
t[n] && (e += n + " ");
|
|
296
296
|
return e.trim();
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function K(t, ...e) {
|
|
299
299
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
300
300
|
}
|
|
301
|
-
let
|
|
302
|
-
function
|
|
303
|
-
|
|
301
|
+
let Ve, Ht = 0, ut;
|
|
302
|
+
function vt() {
|
|
303
|
+
Ht++;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
if (--
|
|
305
|
+
function Rt() {
|
|
306
|
+
if (--Ht > 0)
|
|
307
307
|
return;
|
|
308
308
|
let t;
|
|
309
|
-
for (;
|
|
310
|
-
let e =
|
|
311
|
-
for (
|
|
309
|
+
for (; ut; ) {
|
|
310
|
+
let e = ut;
|
|
311
|
+
for (ut = void 0; e; ) {
|
|
312
312
|
const n = e.next;
|
|
313
313
|
if (e.next = void 0, e.flags &= -9, e.flags & 1)
|
|
314
314
|
try {
|
|
@@ -321,7 +321,16 @@ function yt() {
|
|
|
321
321
|
}
|
|
322
322
|
if (t) throw t;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
let Z = !0;
|
|
325
|
+
const Lt = [];
|
|
326
|
+
function lt() {
|
|
327
|
+
Lt.push(Z), Z = !1;
|
|
328
|
+
}
|
|
329
|
+
function at() {
|
|
330
|
+
const t = Lt.pop();
|
|
331
|
+
Z = t === void 0 ? !0 : t;
|
|
332
|
+
}
|
|
333
|
+
class Wt {
|
|
325
334
|
// TODO isolatedDeclarations "__v_skip"
|
|
326
335
|
constructor(e) {
|
|
327
336
|
this.computed = e, 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);
|
|
@@ -332,12 +341,12 @@ class ve {
|
|
|
332
341
|
this.version++, this.notify(e);
|
|
333
342
|
}
|
|
334
343
|
notify(e) {
|
|
335
|
-
|
|
344
|
+
vt();
|
|
336
345
|
try {
|
|
337
346
|
if (process.env.NODE_ENV !== "production")
|
|
338
347
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
339
348
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
340
|
-
|
|
349
|
+
M(
|
|
341
350
|
{
|
|
342
351
|
effect: n.sub
|
|
343
352
|
},
|
|
@@ -347,19 +356,31 @@ class ve {
|
|
|
347
356
|
for (let n = this.subs; n; n = n.prevSub)
|
|
348
357
|
n.sub.notify() && n.sub.dep.notify();
|
|
349
358
|
} finally {
|
|
350
|
-
|
|
359
|
+
Rt();
|
|
351
360
|
}
|
|
352
361
|
}
|
|
353
362
|
}
|
|
354
|
-
const
|
|
363
|
+
const tt = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ Symbol(
|
|
355
364
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
356
|
-
),
|
|
365
|
+
), yt = /* @__PURE__ */ Symbol(
|
|
357
366
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
358
|
-
),
|
|
367
|
+
), U = /* @__PURE__ */ Symbol(
|
|
359
368
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
360
369
|
);
|
|
361
|
-
function
|
|
362
|
-
|
|
370
|
+
function _(t, e, n) {
|
|
371
|
+
if (Z && Ve) {
|
|
372
|
+
let r = tt.get(t);
|
|
373
|
+
r || tt.set(t, r = /* @__PURE__ */ new Map());
|
|
374
|
+
let s = r.get(n);
|
|
375
|
+
s || (r.set(n, s = new Wt()), s.map = r, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
|
|
376
|
+
target: t,
|
|
377
|
+
type: e,
|
|
378
|
+
key: n
|
|
379
|
+
}) : s.track();
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
function I(t, e, n, r, s, o) {
|
|
383
|
+
const i = tt.get(t);
|
|
363
384
|
if (!i)
|
|
364
385
|
return;
|
|
365
386
|
const c = (a) => {
|
|
@@ -372,204 +393,208 @@ function A(t, e, n, r, s, o) {
|
|
|
372
393
|
oldTarget: o
|
|
373
394
|
}) : a.trigger());
|
|
374
395
|
};
|
|
375
|
-
if (
|
|
396
|
+
if (vt(), e === "clear")
|
|
376
397
|
i.forEach(c);
|
|
377
398
|
else {
|
|
378
|
-
const a = d(t), u = a &&
|
|
399
|
+
const a = d(t), u = a && it(n);
|
|
379
400
|
if (a && n === "length") {
|
|
380
|
-
const
|
|
381
|
-
i.forEach((l,
|
|
382
|
-
(
|
|
401
|
+
const p = Number(r);
|
|
402
|
+
i.forEach((l, f) => {
|
|
403
|
+
(f === "length" || f === U || !T(f) && f >= p) && c(l);
|
|
383
404
|
});
|
|
384
405
|
} else
|
|
385
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(
|
|
406
|
+
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(U)), e) {
|
|
386
407
|
case "add":
|
|
387
|
-
a ? u && c(i.get("length")) : (c(i.get(
|
|
408
|
+
a ? u && c(i.get("length")) : (c(i.get(D)), z(t) && c(i.get(yt)));
|
|
388
409
|
break;
|
|
389
410
|
case "delete":
|
|
390
|
-
a || (c(i.get(
|
|
411
|
+
a || (c(i.get(D)), z(t) && c(i.get(yt)));
|
|
391
412
|
break;
|
|
392
413
|
case "set":
|
|
393
|
-
|
|
414
|
+
z(t) && c(i.get(D));
|
|
394
415
|
break;
|
|
395
416
|
}
|
|
396
417
|
}
|
|
397
|
-
|
|
418
|
+
Rt();
|
|
398
419
|
}
|
|
399
|
-
function
|
|
400
|
-
const n =
|
|
420
|
+
function De(t, e) {
|
|
421
|
+
const n = tt.get(t);
|
|
401
422
|
return n && n.get(e);
|
|
402
423
|
}
|
|
403
|
-
function
|
|
404
|
-
const e = /* @__PURE__ */
|
|
405
|
-
return e === t
|
|
424
|
+
function P(t) {
|
|
425
|
+
const e = /* @__PURE__ */ h(t);
|
|
426
|
+
return e === t ? e : (_(e, "iterate", U), /* @__PURE__ */ S(t) ? e : e.map(C));
|
|
406
427
|
}
|
|
407
|
-
function
|
|
408
|
-
return t = /* @__PURE__ */
|
|
428
|
+
function Ct(t) {
|
|
429
|
+
return _(t = /* @__PURE__ */ h(t), "iterate", U), t;
|
|
409
430
|
}
|
|
410
|
-
function
|
|
411
|
-
return /* @__PURE__ */ E(t) ?
|
|
431
|
+
function w(t, e) {
|
|
432
|
+
return /* @__PURE__ */ E(t) ? J(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
|
|
412
433
|
}
|
|
413
|
-
const
|
|
434
|
+
const xe = {
|
|
414
435
|
__proto__: null,
|
|
415
436
|
[Symbol.iterator]() {
|
|
416
|
-
return
|
|
437
|
+
return ft(this, Symbol.iterator, (t) => w(this, t));
|
|
417
438
|
},
|
|
418
439
|
concat(...t) {
|
|
419
|
-
return
|
|
420
|
-
...t.map((e) => d(e) ?
|
|
440
|
+
return P(this).concat(
|
|
441
|
+
...t.map((e) => d(e) ? P(e) : e)
|
|
421
442
|
);
|
|
422
443
|
},
|
|
423
444
|
entries() {
|
|
424
|
-
return
|
|
445
|
+
return ft(this, "entries", (t) => (t[1] = w(this, t[1]), t));
|
|
425
446
|
},
|
|
426
447
|
every(t, e) {
|
|
427
|
-
return
|
|
448
|
+
return N(this, "every", t, e, void 0, arguments);
|
|
428
449
|
},
|
|
429
450
|
filter(t, e) {
|
|
430
|
-
return
|
|
451
|
+
return N(
|
|
431
452
|
this,
|
|
432
453
|
"filter",
|
|
433
454
|
t,
|
|
434
455
|
e,
|
|
435
|
-
(n) => n.map((r) =>
|
|
456
|
+
(n) => n.map((r) => w(this, r)),
|
|
436
457
|
arguments
|
|
437
458
|
);
|
|
438
459
|
},
|
|
439
460
|
find(t, e) {
|
|
440
|
-
return
|
|
461
|
+
return N(
|
|
441
462
|
this,
|
|
442
463
|
"find",
|
|
443
464
|
t,
|
|
444
465
|
e,
|
|
445
|
-
(n) =>
|
|
466
|
+
(n) => w(this, n),
|
|
446
467
|
arguments
|
|
447
468
|
);
|
|
448
469
|
},
|
|
449
470
|
findIndex(t, e) {
|
|
450
|
-
return
|
|
471
|
+
return N(this, "findIndex", t, e, void 0, arguments);
|
|
451
472
|
},
|
|
452
473
|
findLast(t, e) {
|
|
453
|
-
return
|
|
474
|
+
return N(
|
|
454
475
|
this,
|
|
455
476
|
"findLast",
|
|
456
477
|
t,
|
|
457
478
|
e,
|
|
458
|
-
(n) =>
|
|
479
|
+
(n) => w(this, n),
|
|
459
480
|
arguments
|
|
460
481
|
);
|
|
461
482
|
},
|
|
462
483
|
findLastIndex(t, e) {
|
|
463
|
-
return
|
|
484
|
+
return N(this, "findLastIndex", t, e, void 0, arguments);
|
|
464
485
|
},
|
|
465
486
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
466
487
|
forEach(t, e) {
|
|
467
|
-
return
|
|
488
|
+
return N(this, "forEach", t, e, void 0, arguments);
|
|
468
489
|
},
|
|
469
490
|
includes(...t) {
|
|
470
|
-
return
|
|
491
|
+
return ht(this, "includes", t);
|
|
471
492
|
},
|
|
472
493
|
indexOf(...t) {
|
|
473
|
-
return
|
|
494
|
+
return ht(this, "indexOf", t);
|
|
474
495
|
},
|
|
475
496
|
join(t) {
|
|
476
|
-
return
|
|
497
|
+
return P(this).join(t);
|
|
477
498
|
},
|
|
478
499
|
// keys() iterator only reads `length`, no optimization required
|
|
479
500
|
lastIndexOf(...t) {
|
|
480
|
-
return
|
|
501
|
+
return ht(this, "lastIndexOf", t);
|
|
481
502
|
},
|
|
482
503
|
map(t, e) {
|
|
483
|
-
return
|
|
504
|
+
return N(this, "map", t, e, void 0, arguments);
|
|
484
505
|
},
|
|
485
506
|
pop() {
|
|
486
|
-
return
|
|
507
|
+
return W(this, "pop");
|
|
487
508
|
},
|
|
488
509
|
push(...t) {
|
|
489
|
-
return
|
|
510
|
+
return W(this, "push", t);
|
|
490
511
|
},
|
|
491
512
|
reduce(t, ...e) {
|
|
492
|
-
return
|
|
513
|
+
return Dt(this, "reduce", t, e);
|
|
493
514
|
},
|
|
494
515
|
reduceRight(t, ...e) {
|
|
495
|
-
return
|
|
516
|
+
return Dt(this, "reduceRight", t, e);
|
|
496
517
|
},
|
|
497
518
|
shift() {
|
|
498
|
-
return
|
|
519
|
+
return W(this, "shift");
|
|
499
520
|
},
|
|
500
521
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
501
522
|
some(t, e) {
|
|
502
|
-
return
|
|
523
|
+
return N(this, "some", t, e, void 0, arguments);
|
|
503
524
|
},
|
|
504
525
|
splice(...t) {
|
|
505
|
-
return
|
|
526
|
+
return W(this, "splice", t);
|
|
506
527
|
},
|
|
507
528
|
toReversed() {
|
|
508
|
-
return
|
|
529
|
+
return P(this).toReversed();
|
|
509
530
|
},
|
|
510
531
|
toSorted(t) {
|
|
511
|
-
return
|
|
532
|
+
return P(this).toSorted(t);
|
|
512
533
|
},
|
|
513
534
|
toSpliced(...t) {
|
|
514
|
-
return
|
|
535
|
+
return P(this).toSpliced(...t);
|
|
515
536
|
},
|
|
516
537
|
unshift(...t) {
|
|
517
|
-
return
|
|
538
|
+
return W(this, "unshift", t);
|
|
518
539
|
},
|
|
519
540
|
values() {
|
|
520
|
-
return
|
|
541
|
+
return ft(this, "values", (t) => w(this, t));
|
|
521
542
|
}
|
|
522
543
|
};
|
|
523
|
-
function
|
|
524
|
-
const r =
|
|
525
|
-
return r !== t && !/* @__PURE__ */
|
|
544
|
+
function ft(t, e, n) {
|
|
545
|
+
const r = Ct(t), s = r[e]();
|
|
546
|
+
return r !== t && !/* @__PURE__ */ S(t) && (s._next = s.next, s.next = () => {
|
|
526
547
|
const o = s._next();
|
|
527
548
|
return o.done || (o.value = n(o.value)), o;
|
|
528
549
|
}), s;
|
|
529
550
|
}
|
|
530
|
-
const
|
|
531
|
-
function
|
|
532
|
-
const i =
|
|
533
|
-
if (a !==
|
|
551
|
+
const Te = Array.prototype;
|
|
552
|
+
function N(t, e, n, r, s, o) {
|
|
553
|
+
const i = Ct(t), c = i !== t && !/* @__PURE__ */ S(t), a = i[e];
|
|
554
|
+
if (a !== Te[e]) {
|
|
534
555
|
const l = a.apply(t, o);
|
|
535
|
-
return c ?
|
|
556
|
+
return c ? C(l) : l;
|
|
536
557
|
}
|
|
537
558
|
let u = n;
|
|
538
|
-
i !== t && (c ? u = function(l,
|
|
539
|
-
return n.call(this,
|
|
540
|
-
} : n.length > 2 && (u = function(l,
|
|
541
|
-
return n.call(this, l,
|
|
559
|
+
i !== t && (c ? u = function(l, f) {
|
|
560
|
+
return n.call(this, w(t, l), f, t);
|
|
561
|
+
} : n.length > 2 && (u = function(l, f) {
|
|
562
|
+
return n.call(this, l, f, t);
|
|
542
563
|
}));
|
|
543
|
-
const
|
|
544
|
-
return c && s ? s(
|
|
564
|
+
const p = a.call(i, u, r);
|
|
565
|
+
return c && s ? s(p) : p;
|
|
545
566
|
}
|
|
546
|
-
function
|
|
547
|
-
const s =
|
|
567
|
+
function Dt(t, e, n, r) {
|
|
568
|
+
const s = Ct(t), o = s !== t && !/* @__PURE__ */ S(t);
|
|
548
569
|
let i = n, c = !1;
|
|
549
|
-
s !== t && (o ? (c = r.length === 0, i = function(u,
|
|
550
|
-
return c && (c = !1, u =
|
|
551
|
-
}) : n.length > 3 && (i = function(u,
|
|
552
|
-
return n.call(this, u,
|
|
570
|
+
s !== t && (o ? (c = r.length === 0, i = function(u, p, l) {
|
|
571
|
+
return c && (c = !1, u = w(t, u)), n.call(this, u, w(t, p), l, t);
|
|
572
|
+
}) : n.length > 3 && (i = function(u, p, l) {
|
|
573
|
+
return n.call(this, u, p, l, t);
|
|
553
574
|
}));
|
|
554
575
|
const a = s[e](i, ...r);
|
|
555
|
-
return c ?
|
|
576
|
+
return c ? w(t, a) : a;
|
|
556
577
|
}
|
|
557
|
-
function
|
|
558
|
-
const r = /* @__PURE__ */
|
|
559
|
-
|
|
578
|
+
function ht(t, e, n) {
|
|
579
|
+
const r = /* @__PURE__ */ h(t);
|
|
580
|
+
_(r, "iterate", U);
|
|
581
|
+
const s = r[e](...n);
|
|
582
|
+
return (s === -1 || s === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */ h(n[0]), r[e](...n)) : s;
|
|
560
583
|
}
|
|
561
|
-
function
|
|
562
|
-
|
|
563
|
-
const r = (/* @__PURE__ */
|
|
564
|
-
return
|
|
584
|
+
function W(t, e, n = []) {
|
|
585
|
+
lt(), vt();
|
|
586
|
+
const r = (/* @__PURE__ */ h(t))[e].apply(t, n);
|
|
587
|
+
return Rt(), at(), r;
|
|
565
588
|
}
|
|
566
|
-
const
|
|
567
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(
|
|
589
|
+
const Me = /* @__PURE__ */ Se("__proto__,__v_isRef,__isVue"), zt = new Set(
|
|
590
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(T)
|
|
568
591
|
);
|
|
569
|
-
function
|
|
570
|
-
|
|
592
|
+
function Pe(t) {
|
|
593
|
+
T(t) || (t = String(t));
|
|
594
|
+
const e = /* @__PURE__ */ h(this);
|
|
595
|
+
return _(e, "has", t), e.hasOwnProperty(t);
|
|
571
596
|
}
|
|
572
|
-
class
|
|
597
|
+
class Ut {
|
|
573
598
|
constructor(e = !1, n = !1) {
|
|
574
599
|
this._isReadonly = e, this._isShallow = n;
|
|
575
600
|
}
|
|
@@ -583,16 +608,16 @@ class jt {
|
|
|
583
608
|
if (n === "__v_isShallow")
|
|
584
609
|
return o;
|
|
585
610
|
if (n === "__v_raw")
|
|
586
|
-
return r === (s ? o ?
|
|
611
|
+
return r === (s ? o ? qe : Bt : o ? Ue : Jt).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
587
612
|
// this means the receiver is a user proxy of the reactive proxy
|
|
588
613
|
Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
|
|
589
614
|
const i = d(e);
|
|
590
615
|
if (!s) {
|
|
591
616
|
let a;
|
|
592
|
-
if (i && (a =
|
|
617
|
+
if (i && (a = xe[n]))
|
|
593
618
|
return a;
|
|
594
619
|
if (n === "hasOwnProperty")
|
|
595
|
-
return
|
|
620
|
+
return Pe;
|
|
596
621
|
}
|
|
597
622
|
const c = Reflect.get(
|
|
598
623
|
e,
|
|
@@ -600,105 +625,115 @@ class jt {
|
|
|
600
625
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
601
626
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
602
627
|
// its class methods
|
|
603
|
-
/* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ b(e) ? e : r
|
|
604
629
|
);
|
|
605
|
-
if ((
|
|
630
|
+
if ((T(n) ? zt.has(n) : Me(n)) || (s || _(e, "get", n), o))
|
|
606
631
|
return c;
|
|
607
|
-
if (/* @__PURE__ */
|
|
608
|
-
const a = i &&
|
|
609
|
-
return s &&
|
|
632
|
+
if (/* @__PURE__ */ b(c)) {
|
|
633
|
+
const a = i && it(n) ? c : c.value;
|
|
634
|
+
return s && g(a) ? /* @__PURE__ */ Ot(a) : a;
|
|
610
635
|
}
|
|
611
|
-
return
|
|
636
|
+
return g(c) ? s ? /* @__PURE__ */ Ot(c) : /* @__PURE__ */ Yt(c) : c;
|
|
612
637
|
}
|
|
613
638
|
}
|
|
614
|
-
class
|
|
639
|
+
class Fe extends Ut {
|
|
615
640
|
constructor(e = !1) {
|
|
616
641
|
super(!1, e);
|
|
617
642
|
}
|
|
618
643
|
set(e, n, r, s) {
|
|
619
644
|
let o = e[n];
|
|
620
|
-
const i = d(e) &&
|
|
645
|
+
const i = d(e) && it(n);
|
|
621
646
|
if (!this._isShallow) {
|
|
622
647
|
const u = /* @__PURE__ */ E(o);
|
|
623
|
-
if (!/* @__PURE__ */
|
|
624
|
-
return u ? (process.env.NODE_ENV !== "production" &&
|
|
648
|
+
if (!/* @__PURE__ */ S(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ h(o), r = /* @__PURE__ */ h(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
|
|
649
|
+
return u ? (process.env.NODE_ENV !== "production" && K(
|
|
625
650
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
626
651
|
e[n]
|
|
627
652
|
), !0) : (o.value = r, !0);
|
|
628
653
|
}
|
|
629
|
-
const c = i ? Number(n) < e.length :
|
|
654
|
+
const c = i ? Number(n) < e.length : mt(e, n), a = Reflect.set(
|
|
630
655
|
e,
|
|
631
656
|
n,
|
|
632
657
|
r,
|
|
633
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ b(e) ? e : s
|
|
634
659
|
);
|
|
635
|
-
return e === /* @__PURE__ */
|
|
660
|
+
return e === /* @__PURE__ */ h(s) && a && (c ? V(r, o) && I(e, "set", n, r, o) : I(e, "add", n, r)), a;
|
|
636
661
|
}
|
|
637
662
|
deleteProperty(e, n) {
|
|
638
|
-
const r =
|
|
639
|
-
return o && r &&
|
|
663
|
+
const r = mt(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
|
|
664
|
+
return o && r && I(e, "delete", n, void 0, s), o;
|
|
640
665
|
}
|
|
641
666
|
has(e, n) {
|
|
642
667
|
const r = Reflect.has(e, n);
|
|
643
|
-
return !
|
|
668
|
+
return (!T(n) || !zt.has(n)) && _(e, "has", n), r;
|
|
644
669
|
}
|
|
645
670
|
ownKeys(e) {
|
|
646
|
-
return
|
|
671
|
+
return _(
|
|
672
|
+
e,
|
|
673
|
+
"iterate",
|
|
674
|
+
d(e) ? "length" : D
|
|
675
|
+
), Reflect.ownKeys(e);
|
|
647
676
|
}
|
|
648
677
|
}
|
|
649
|
-
class
|
|
678
|
+
class ke extends Ut {
|
|
650
679
|
constructor(e = !1) {
|
|
651
680
|
super(!0, e);
|
|
652
681
|
}
|
|
653
682
|
set(e, n) {
|
|
654
|
-
return process.env.NODE_ENV !== "production" &&
|
|
683
|
+
return process.env.NODE_ENV !== "production" && K(
|
|
655
684
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
656
685
|
e
|
|
657
686
|
), !0;
|
|
658
687
|
}
|
|
659
688
|
deleteProperty(e, n) {
|
|
660
|
-
return process.env.NODE_ENV !== "production" &&
|
|
689
|
+
return process.env.NODE_ENV !== "production" && K(
|
|
661
690
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
662
691
|
e
|
|
663
692
|
), !0;
|
|
664
693
|
}
|
|
665
694
|
}
|
|
666
|
-
const
|
|
667
|
-
function
|
|
695
|
+
const je = /* @__PURE__ */ new Fe(), Ke = /* @__PURE__ */ new ke(), St = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
|
|
696
|
+
function He(t, e, n) {
|
|
668
697
|
return function(...r) {
|
|
669
|
-
const s = this.__v_raw,
|
|
670
|
-
return
|
|
698
|
+
const s = this.__v_raw, o = /* @__PURE__ */ h(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, a = t === "keys" && i, u = s[t](...r), p = n ? St : e ? J : C;
|
|
699
|
+
return !e && _(
|
|
700
|
+
o,
|
|
701
|
+
"iterate",
|
|
702
|
+
a ? yt : D
|
|
703
|
+
), M(
|
|
671
704
|
// inheriting all iterator properties
|
|
672
|
-
Object.create(
|
|
705
|
+
Object.create(u),
|
|
673
706
|
{
|
|
674
707
|
// iterator protocol
|
|
675
708
|
next() {
|
|
676
|
-
const { value:
|
|
677
|
-
return
|
|
678
|
-
value: c ? [
|
|
679
|
-
done:
|
|
709
|
+
const { value: l, done: f } = u.next();
|
|
710
|
+
return f ? { value: l, done: f } : {
|
|
711
|
+
value: c ? [p(l[0]), p(l[1])] : p(l),
|
|
712
|
+
done: f
|
|
680
713
|
};
|
|
681
714
|
}
|
|
682
715
|
}
|
|
683
716
|
);
|
|
684
717
|
};
|
|
685
718
|
}
|
|
686
|
-
function
|
|
719
|
+
function G(t) {
|
|
687
720
|
return function(...e) {
|
|
688
721
|
if (process.env.NODE_ENV !== "production") {
|
|
689
722
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
690
|
-
|
|
691
|
-
`${
|
|
692
|
-
/* @__PURE__ */
|
|
723
|
+
K(
|
|
724
|
+
`${Re(t)} operation ${n}failed: target is readonly.`,
|
|
725
|
+
/* @__PURE__ */ h(this)
|
|
693
726
|
);
|
|
694
727
|
}
|
|
695
728
|
return t === "delete" ? !1 : t === "clear" ? void 0 : this;
|
|
696
729
|
};
|
|
697
730
|
}
|
|
698
|
-
function
|
|
731
|
+
function Le(t, e) {
|
|
699
732
|
const n = {
|
|
700
733
|
get(s) {
|
|
701
|
-
const o = this.__v_raw, i = /* @__PURE__ */
|
|
734
|
+
const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
|
|
735
|
+
t || (V(s, c) && _(i, "get", s), _(i, "get", c));
|
|
736
|
+
const { has: a } = Y(i), u = e ? St : t ? J : C;
|
|
702
737
|
if (a.call(i, s))
|
|
703
738
|
return u(o.get(s));
|
|
704
739
|
if (a.call(i, c))
|
|
@@ -706,47 +741,48 @@ function Pe(t, e) {
|
|
|
706
741
|
o !== i && o.get(s);
|
|
707
742
|
},
|
|
708
743
|
get size() {
|
|
709
|
-
|
|
744
|
+
const s = this.__v_raw;
|
|
745
|
+
return !t && _(/* @__PURE__ */ h(s), "iterate", D), s.size;
|
|
710
746
|
},
|
|
711
747
|
has(s) {
|
|
712
|
-
const o = this.__v_raw, i = /* @__PURE__ */
|
|
713
|
-
return s
|
|
748
|
+
const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
|
|
749
|
+
return t || (V(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
|
|
714
750
|
},
|
|
715
751
|
forEach(s, o) {
|
|
716
|
-
const i = this, c = i.__v_raw, a = e ?
|
|
717
|
-
return c.forEach((
|
|
752
|
+
const i = this, c = i.__v_raw, a = /* @__PURE__ */ h(c), u = e ? St : t ? J : C;
|
|
753
|
+
return !t && _(a, "iterate", D), c.forEach((p, l) => s.call(o, u(p), u(l), i));
|
|
718
754
|
}
|
|
719
755
|
};
|
|
720
|
-
return
|
|
756
|
+
return M(
|
|
721
757
|
n,
|
|
722
758
|
t ? {
|
|
723
|
-
add:
|
|
724
|
-
set:
|
|
725
|
-
delete:
|
|
726
|
-
clear:
|
|
759
|
+
add: G("add"),
|
|
760
|
+
set: G("set"),
|
|
761
|
+
delete: G("delete"),
|
|
762
|
+
clear: G("clear")
|
|
727
763
|
} : {
|
|
728
764
|
add(s) {
|
|
729
|
-
const o = /* @__PURE__ */
|
|
730
|
-
return i.has.call(o, a) ||
|
|
765
|
+
const o = /* @__PURE__ */ h(this), i = Y(o), c = /* @__PURE__ */ h(s), a = !e && !/* @__PURE__ */ S(s) && !/* @__PURE__ */ E(s) ? c : s;
|
|
766
|
+
return i.has.call(o, a) || V(s, a) && i.has.call(o, s) || V(c, a) && i.has.call(o, c) || (o.add(a), I(o, "add", a, a)), this;
|
|
731
767
|
},
|
|
732
768
|
set(s, o) {
|
|
733
|
-
!e && !/* @__PURE__ */
|
|
734
|
-
const i = /* @__PURE__ */
|
|
769
|
+
!e && !/* @__PURE__ */ S(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ h(o));
|
|
770
|
+
const i = /* @__PURE__ */ h(this), { has: c, get: a } = Y(i);
|
|
735
771
|
let u = c.call(i, s);
|
|
736
|
-
u ? process.env.NODE_ENV !== "production" &&
|
|
737
|
-
const
|
|
738
|
-
return i.set(s, o), u ?
|
|
772
|
+
u ? process.env.NODE_ENV !== "production" && xt(i, c, s) : (s = /* @__PURE__ */ h(s), u = c.call(i, s));
|
|
773
|
+
const p = a.call(i, s);
|
|
774
|
+
return i.set(s, o), u ? V(o, p) && I(i, "set", s, o, p) : I(i, "add", s, o), this;
|
|
739
775
|
},
|
|
740
776
|
delete(s) {
|
|
741
|
-
const o = /* @__PURE__ */
|
|
777
|
+
const o = /* @__PURE__ */ h(this), { has: i, get: c } = Y(o);
|
|
742
778
|
let a = i.call(o, s);
|
|
743
|
-
a ? process.env.NODE_ENV !== "production" &&
|
|
744
|
-
const u = c ? c.call(o, s) : void 0,
|
|
745
|
-
return a &&
|
|
779
|
+
a ? process.env.NODE_ENV !== "production" && xt(o, i, s) : (s = /* @__PURE__ */ h(s), a = i.call(o, s));
|
|
780
|
+
const u = c ? c.call(o, s) : void 0, p = o.delete(s);
|
|
781
|
+
return a && I(o, "delete", s, void 0, u), p;
|
|
746
782
|
},
|
|
747
783
|
clear() {
|
|
748
|
-
const s = /* @__PURE__ */
|
|
749
|
-
return o &&
|
|
784
|
+
const s = /* @__PURE__ */ h(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? z(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
|
|
785
|
+
return o && I(
|
|
750
786
|
s,
|
|
751
787
|
"clear",
|
|
752
788
|
void 0,
|
|
@@ -761,33 +797,33 @@ function Pe(t, e) {
|
|
|
761
797
|
"entries",
|
|
762
798
|
Symbol.iterator
|
|
763
799
|
].forEach((s) => {
|
|
764
|
-
n[s] =
|
|
800
|
+
n[s] = He(s, t, e);
|
|
765
801
|
}), n;
|
|
766
802
|
}
|
|
767
|
-
function
|
|
768
|
-
const n =
|
|
803
|
+
function qt(t, e) {
|
|
804
|
+
const n = Le(t, e);
|
|
769
805
|
return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
|
|
770
|
-
|
|
806
|
+
mt(n, s) && s in r ? n : r,
|
|
771
807
|
s,
|
|
772
808
|
o
|
|
773
809
|
);
|
|
774
810
|
}
|
|
775
|
-
const
|
|
776
|
-
get: /* @__PURE__ */
|
|
777
|
-
},
|
|
778
|
-
get: /* @__PURE__ */
|
|
811
|
+
const We = {
|
|
812
|
+
get: /* @__PURE__ */ qt(!1, !1)
|
|
813
|
+
}, ze = {
|
|
814
|
+
get: /* @__PURE__ */ qt(!0, !1)
|
|
779
815
|
};
|
|
780
|
-
function
|
|
781
|
-
const r = /* @__PURE__ */
|
|
816
|
+
function xt(t, e, n) {
|
|
817
|
+
const r = /* @__PURE__ */ h(n);
|
|
782
818
|
if (r !== n && e.call(t, r)) {
|
|
783
|
-
const s =
|
|
784
|
-
|
|
819
|
+
const s = Kt(t);
|
|
820
|
+
K(
|
|
785
821
|
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "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.`
|
|
786
822
|
);
|
|
787
823
|
}
|
|
788
824
|
}
|
|
789
|
-
const
|
|
790
|
-
function
|
|
825
|
+
const Jt = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap();
|
|
826
|
+
function Je(t) {
|
|
791
827
|
switch (t) {
|
|
792
828
|
case "Object":
|
|
793
829
|
case "Array":
|
|
@@ -802,28 +838,28 @@ function He(t) {
|
|
|
802
838
|
}
|
|
803
839
|
}
|
|
804
840
|
// @__NO_SIDE_EFFECTS__
|
|
805
|
-
function
|
|
806
|
-
return /* @__PURE__ */ E(t) ? t :
|
|
841
|
+
function Yt(t) {
|
|
842
|
+
return /* @__PURE__ */ E(t) ? t : Gt(
|
|
807
843
|
t,
|
|
808
844
|
!1,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
845
|
+
je,
|
|
846
|
+
We,
|
|
847
|
+
Jt
|
|
812
848
|
);
|
|
813
849
|
}
|
|
814
850
|
// @__NO_SIDE_EFFECTS__
|
|
815
|
-
function
|
|
816
|
-
return
|
|
851
|
+
function Ot(t) {
|
|
852
|
+
return Gt(
|
|
817
853
|
t,
|
|
818
854
|
!0,
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
855
|
+
Ke,
|
|
856
|
+
ze,
|
|
857
|
+
Bt
|
|
822
858
|
);
|
|
823
859
|
}
|
|
824
|
-
function
|
|
825
|
-
if (!
|
|
826
|
-
return process.env.NODE_ENV !== "production" &&
|
|
860
|
+
function Gt(t, e, n, r, s) {
|
|
861
|
+
if (!g(t))
|
|
862
|
+
return process.env.NODE_ENV !== "production" && K(
|
|
827
863
|
`value cannot be made ${e ? "readonly" : "reactive"}: ${String(
|
|
828
864
|
t
|
|
829
865
|
)}`
|
|
@@ -833,7 +869,7 @@ function zt(t, e, n, r, s) {
|
|
|
833
869
|
const o = s.get(t);
|
|
834
870
|
if (o)
|
|
835
871
|
return o;
|
|
836
|
-
const i =
|
|
872
|
+
const i = Je(Kt(t));
|
|
837
873
|
if (i === 0)
|
|
838
874
|
return t;
|
|
839
875
|
const c = new Proxy(
|
|
@@ -843,41 +879,41 @@ function zt(t, e, n, r, s) {
|
|
|
843
879
|
return s.set(t, c), c;
|
|
844
880
|
}
|
|
845
881
|
// @__NO_SIDE_EFFECTS__
|
|
846
|
-
function
|
|
847
|
-
return /* @__PURE__ */ E(t) ? /* @__PURE__ */
|
|
882
|
+
function At(t) {
|
|
883
|
+
return /* @__PURE__ */ E(t) ? /* @__PURE__ */ At(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
848
884
|
}
|
|
849
885
|
// @__NO_SIDE_EFFECTS__
|
|
850
886
|
function E(t) {
|
|
851
887
|
return !!(t && t.__v_isReadonly);
|
|
852
888
|
}
|
|
853
889
|
// @__NO_SIDE_EFFECTS__
|
|
854
|
-
function
|
|
890
|
+
function S(t) {
|
|
855
891
|
return !!(t && t.__v_isShallow);
|
|
856
892
|
}
|
|
857
893
|
// @__NO_SIDE_EFFECTS__
|
|
858
|
-
function
|
|
894
|
+
function q(t) {
|
|
859
895
|
return t ? !!t.__v_raw : !1;
|
|
860
896
|
}
|
|
861
897
|
// @__NO_SIDE_EFFECTS__
|
|
862
|
-
function
|
|
898
|
+
function h(t) {
|
|
863
899
|
const e = t && t.__v_raw;
|
|
864
|
-
return e ? /* @__PURE__ */
|
|
900
|
+
return e ? /* @__PURE__ */ h(e) : t;
|
|
865
901
|
}
|
|
866
|
-
const
|
|
902
|
+
const C = (t) => g(t) ? /* @__PURE__ */ Yt(t) : t, J = (t) => g(t) ? /* @__PURE__ */ Ot(t) : t;
|
|
867
903
|
// @__NO_SIDE_EFFECTS__
|
|
868
|
-
function
|
|
904
|
+
function b(t) {
|
|
869
905
|
return t ? t.__v_isRef === !0 : !1;
|
|
870
906
|
}
|
|
871
907
|
// @__NO_SIDE_EFFECTS__
|
|
872
|
-
function
|
|
873
|
-
return
|
|
908
|
+
function Qt(t) {
|
|
909
|
+
return Be(t, !1);
|
|
874
910
|
}
|
|
875
|
-
function
|
|
876
|
-
return /* @__PURE__ */
|
|
911
|
+
function Be(t, e) {
|
|
912
|
+
return /* @__PURE__ */ b(t) ? t : new Ye(t, e);
|
|
877
913
|
}
|
|
878
|
-
class
|
|
914
|
+
class Ye {
|
|
879
915
|
constructor(e, n) {
|
|
880
|
-
this.dep = new
|
|
916
|
+
this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ h(e), this._value = n ? e : C(e), this.__v_isShallow = n;
|
|
881
917
|
}
|
|
882
918
|
get value() {
|
|
883
919
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -887,8 +923,8 @@ class We {
|
|
|
887
923
|
}) : this.dep.track(), this._value;
|
|
888
924
|
}
|
|
889
925
|
set value(e) {
|
|
890
|
-
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */
|
|
891
|
-
e = r ? e : /* @__PURE__ */
|
|
926
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ S(e) || /* @__PURE__ */ E(e);
|
|
927
|
+
e = r ? e : /* @__PURE__ */ h(e), V(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
892
928
|
target: this,
|
|
893
929
|
type: "set",
|
|
894
930
|
key: "value",
|
|
@@ -897,27 +933,27 @@ class We {
|
|
|
897
933
|
}) : this.dep.trigger());
|
|
898
934
|
}
|
|
899
935
|
}
|
|
900
|
-
function
|
|
901
|
-
return /* @__PURE__ */
|
|
936
|
+
function Ge(t) {
|
|
937
|
+
return /* @__PURE__ */ b(t) ? t.value : t;
|
|
902
938
|
}
|
|
903
|
-
class
|
|
939
|
+
class Qe {
|
|
904
940
|
constructor(e, n, r) {
|
|
905
|
-
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key =
|
|
941
|
+
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = T(n) ? n : String(n), this._raw = /* @__PURE__ */ h(e);
|
|
906
942
|
let s = !0, o = e;
|
|
907
|
-
if (!d(e) ||
|
|
943
|
+
if (!d(e) || T(this._key) || !it(this._key))
|
|
908
944
|
do
|
|
909
|
-
s = !/* @__PURE__ */
|
|
945
|
+
s = !/* @__PURE__ */ q(o) || /* @__PURE__ */ S(o);
|
|
910
946
|
while (s && (o = o.__v_raw));
|
|
911
947
|
this._shallow = s;
|
|
912
948
|
}
|
|
913
949
|
get value() {
|
|
914
950
|
let e = this._object[this._key];
|
|
915
|
-
return this._shallow && (e =
|
|
951
|
+
return this._shallow && (e = Ge(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
916
952
|
}
|
|
917
953
|
set value(e) {
|
|
918
|
-
if (this._shallow && /* @__PURE__ */
|
|
954
|
+
if (this._shallow && /* @__PURE__ */ b(this._raw[this._key])) {
|
|
919
955
|
const n = this._object[this._key];
|
|
920
|
-
if (/* @__PURE__ */
|
|
956
|
+
if (/* @__PURE__ */ b(n)) {
|
|
921
957
|
n.value = e;
|
|
922
958
|
return;
|
|
923
959
|
}
|
|
@@ -925,10 +961,10 @@ class Ue {
|
|
|
925
961
|
this._object[this._key] = e;
|
|
926
962
|
}
|
|
927
963
|
get dep() {
|
|
928
|
-
return
|
|
964
|
+
return De(this._raw, this._key);
|
|
929
965
|
}
|
|
930
966
|
}
|
|
931
|
-
class
|
|
967
|
+
class Xe {
|
|
932
968
|
constructor(e) {
|
|
933
969
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
934
970
|
}
|
|
@@ -937,26 +973,26 @@ class qe {
|
|
|
937
973
|
}
|
|
938
974
|
}
|
|
939
975
|
// @__NO_SIDE_EFFECTS__
|
|
940
|
-
function
|
|
941
|
-
return /* @__PURE__ */
|
|
976
|
+
function Ze(t, e, n) {
|
|
977
|
+
return /* @__PURE__ */ b(t) ? t : $(t) ? new Xe(t) : g(t) && arguments.length > 1 ? tn(t, e, n) : /* @__PURE__ */ Qt(t);
|
|
942
978
|
}
|
|
943
|
-
function
|
|
944
|
-
return new
|
|
979
|
+
function tn(t, e, n) {
|
|
980
|
+
return new Qe(t, e, n);
|
|
945
981
|
}
|
|
946
|
-
const
|
|
947
|
-
function
|
|
948
|
-
|
|
982
|
+
const x = [];
|
|
983
|
+
function en(t) {
|
|
984
|
+
x.push(t);
|
|
949
985
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
986
|
+
function nn() {
|
|
987
|
+
x.pop();
|
|
952
988
|
}
|
|
953
|
-
let
|
|
954
|
-
function
|
|
955
|
-
if (
|
|
956
|
-
|
|
957
|
-
const n =
|
|
989
|
+
let pt = !1;
|
|
990
|
+
function H(t, ...e) {
|
|
991
|
+
if (pt) return;
|
|
992
|
+
pt = !0, lt();
|
|
993
|
+
const n = x.length ? x[x.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = sn();
|
|
958
994
|
if (r)
|
|
959
|
-
|
|
995
|
+
It(
|
|
960
996
|
r,
|
|
961
997
|
n,
|
|
962
998
|
11,
|
|
@@ -968,7 +1004,7 @@ function k(t, ...e) {
|
|
|
968
1004
|
}).join(""),
|
|
969
1005
|
n && n.proxy,
|
|
970
1006
|
s.map(
|
|
971
|
-
({ vnode: o }) => `at <${
|
|
1007
|
+
({ vnode: o }) => `at <${he(n, o.type)}>`
|
|
972
1008
|
).join(`
|
|
973
1009
|
`),
|
|
974
1010
|
s
|
|
@@ -977,12 +1013,12 @@ function k(t, ...e) {
|
|
|
977
1013
|
else {
|
|
978
1014
|
const o = [`[Vue warn]: ${t}`, ...e];
|
|
979
1015
|
s.length && o.push(`
|
|
980
|
-
`, ...
|
|
1016
|
+
`, ...rn(s)), console.warn(...o);
|
|
981
1017
|
}
|
|
982
|
-
|
|
1018
|
+
at(), pt = !1;
|
|
983
1019
|
}
|
|
984
|
-
function
|
|
985
|
-
let t =
|
|
1020
|
+
function sn() {
|
|
1021
|
+
let t = x[x.length - 1];
|
|
986
1022
|
if (!t)
|
|
987
1023
|
return [];
|
|
988
1024
|
const e = [];
|
|
@@ -997,31 +1033,31 @@ function Qe() {
|
|
|
997
1033
|
}
|
|
998
1034
|
return e;
|
|
999
1035
|
}
|
|
1000
|
-
function
|
|
1036
|
+
function rn(t) {
|
|
1001
1037
|
const e = [];
|
|
1002
1038
|
return t.forEach((n, r) => {
|
|
1003
1039
|
e.push(...r === 0 ? [] : [`
|
|
1004
|
-
`], ...
|
|
1040
|
+
`], ...on(n));
|
|
1005
1041
|
}), e;
|
|
1006
1042
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${
|
|
1043
|
+
function on({ vnode: t, recurseCount: e }) {
|
|
1044
|
+
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${he(
|
|
1009
1045
|
t.component,
|
|
1010
1046
|
t.type,
|
|
1011
1047
|
r
|
|
1012
1048
|
)}`, o = ">" + n;
|
|
1013
|
-
return t.props ? [s, ...
|
|
1049
|
+
return t.props ? [s, ...cn(t.props), o] : [s + o];
|
|
1014
1050
|
}
|
|
1015
|
-
function
|
|
1051
|
+
function cn(t) {
|
|
1016
1052
|
const e = [], n = Object.keys(t);
|
|
1017
1053
|
return n.slice(0, 3).forEach((r) => {
|
|
1018
|
-
e.push(...
|
|
1054
|
+
e.push(...Xt(r, t[r]));
|
|
1019
1055
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1020
1056
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
1057
|
+
function Xt(t, e, n) {
|
|
1058
|
+
return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ b(e) ? (e = Xt(t, /* @__PURE__ */ h(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : $(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ h(e), n ? e : [`${t}=`, e]);
|
|
1023
1059
|
}
|
|
1024
|
-
const
|
|
1060
|
+
const Zt = {
|
|
1025
1061
|
sp: "serverPrefetch hook",
|
|
1026
1062
|
bc: "beforeCreate hook",
|
|
1027
1063
|
c: "created hook",
|
|
@@ -1054,42 +1090,42 @@ const Jt = {
|
|
|
1054
1090
|
15: "component update",
|
|
1055
1091
|
16: "app unmount cleanup function"
|
|
1056
1092
|
};
|
|
1057
|
-
function
|
|
1093
|
+
function It(t, e, n, r) {
|
|
1058
1094
|
try {
|
|
1059
1095
|
return r ? t(...r) : t();
|
|
1060
1096
|
} catch (s) {
|
|
1061
|
-
|
|
1097
|
+
te(s, e, n);
|
|
1062
1098
|
}
|
|
1063
1099
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config ||
|
|
1100
|
+
function te(t, e, n, r = !0) {
|
|
1101
|
+
const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || bt;
|
|
1066
1102
|
if (e) {
|
|
1067
1103
|
let c = e.parent;
|
|
1068
|
-
const a = e.proxy, u = process.env.NODE_ENV !== "production" ?
|
|
1104
|
+
const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Zt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1069
1105
|
for (; c; ) {
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1072
|
-
for (let l = 0; l <
|
|
1073
|
-
if (
|
|
1106
|
+
const p = c.ec;
|
|
1107
|
+
if (p) {
|
|
1108
|
+
for (let l = 0; l < p.length; l++)
|
|
1109
|
+
if (p[l](t, a, u) === !1)
|
|
1074
1110
|
return;
|
|
1075
1111
|
}
|
|
1076
1112
|
c = c.parent;
|
|
1077
1113
|
}
|
|
1078
1114
|
if (o) {
|
|
1079
|
-
|
|
1115
|
+
lt(), It(o, null, 10, [
|
|
1080
1116
|
t,
|
|
1081
1117
|
a,
|
|
1082
1118
|
u
|
|
1083
|
-
]);
|
|
1119
|
+
]), at();
|
|
1084
1120
|
return;
|
|
1085
1121
|
}
|
|
1086
1122
|
}
|
|
1087
|
-
|
|
1123
|
+
ln(t, n, s, r, i);
|
|
1088
1124
|
}
|
|
1089
|
-
function
|
|
1125
|
+
function ln(t, e, n, r = !0, s = !1) {
|
|
1090
1126
|
if (process.env.NODE_ENV !== "production") {
|
|
1091
|
-
const o =
|
|
1092
|
-
if (n &&
|
|
1127
|
+
const o = Zt[e];
|
|
1128
|
+
if (n && en(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && nn(), r)
|
|
1093
1129
|
throw t;
|
|
1094
1130
|
console.error(t);
|
|
1095
1131
|
} else {
|
|
@@ -1098,61 +1134,61 @@ function en(t, e, n, r = !0, s = !1) {
|
|
|
1098
1134
|
console.error(t);
|
|
1099
1135
|
}
|
|
1100
1136
|
}
|
|
1101
|
-
const
|
|
1102
|
-
let
|
|
1103
|
-
const
|
|
1104
|
-
let
|
|
1105
|
-
const
|
|
1106
|
-
let
|
|
1107
|
-
const
|
|
1108
|
-
function
|
|
1109
|
-
let e =
|
|
1137
|
+
const y = [];
|
|
1138
|
+
let v = -1;
|
|
1139
|
+
const j = [];
|
|
1140
|
+
let A = null, F = 0;
|
|
1141
|
+
const an = /* @__PURE__ */ Promise.resolve();
|
|
1142
|
+
let wt = null;
|
|
1143
|
+
const un = 100;
|
|
1144
|
+
function fn(t) {
|
|
1145
|
+
let e = v + 1, n = y.length;
|
|
1110
1146
|
for (; e < n; ) {
|
|
1111
|
-
const r = e + n >>> 1, s =
|
|
1147
|
+
const r = e + n >>> 1, s = y[r], o = B(s);
|
|
1112
1148
|
o < t || o === t && s.flags & 2 ? e = r + 1 : n = r;
|
|
1113
1149
|
}
|
|
1114
1150
|
return e;
|
|
1115
1151
|
}
|
|
1116
|
-
function
|
|
1152
|
+
function hn(t) {
|
|
1117
1153
|
if (!(t.flags & 1)) {
|
|
1118
|
-
const e =
|
|
1154
|
+
const e = B(t), n = y[y.length - 1];
|
|
1119
1155
|
!n || // fast path when the job id is larger than the tail
|
|
1120
|
-
!(t.flags & 2) && e >=
|
|
1156
|
+
!(t.flags & 2) && e >= B(n) ? y.push(t) : y.splice(fn(e), 0, t), t.flags |= 1, ee();
|
|
1121
1157
|
}
|
|
1122
1158
|
}
|
|
1123
|
-
function
|
|
1124
|
-
|
|
1159
|
+
function ee() {
|
|
1160
|
+
wt || (wt = an.then(ne));
|
|
1125
1161
|
}
|
|
1126
|
-
function
|
|
1127
|
-
d(t) ?
|
|
1162
|
+
function pn(t) {
|
|
1163
|
+
d(t) ? j.push(...t) : A && t.id === -1 ? A.splice(F + 1, 0, t) : t.flags & 1 || (j.push(t), t.flags |= 1), ee();
|
|
1128
1164
|
}
|
|
1129
|
-
function
|
|
1130
|
-
if (
|
|
1131
|
-
const e = [...new Set(
|
|
1132
|
-
(n, r) =>
|
|
1165
|
+
function dn(t) {
|
|
1166
|
+
if (j.length) {
|
|
1167
|
+
const e = [...new Set(j)].sort(
|
|
1168
|
+
(n, r) => B(n) - B(r)
|
|
1133
1169
|
);
|
|
1134
|
-
if (
|
|
1135
|
-
|
|
1170
|
+
if (j.length = 0, A) {
|
|
1171
|
+
A.push(...e);
|
|
1136
1172
|
return;
|
|
1137
1173
|
}
|
|
1138
|
-
for (
|
|
1139
|
-
const n =
|
|
1140
|
-
process.env.NODE_ENV !== "production" &&
|
|
1174
|
+
for (A = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), F = 0; F < A.length; F++) {
|
|
1175
|
+
const n = A[F];
|
|
1176
|
+
process.env.NODE_ENV !== "production" && se(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1141
1177
|
}
|
|
1142
|
-
|
|
1178
|
+
A = null, F = 0;
|
|
1143
1179
|
}
|
|
1144
1180
|
}
|
|
1145
|
-
const
|
|
1146
|
-
function
|
|
1181
|
+
const B = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1182
|
+
function ne(t) {
|
|
1147
1183
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1148
|
-
const e = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1184
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => se(t, n) : kt;
|
|
1149
1185
|
try {
|
|
1150
|
-
for (
|
|
1151
|
-
const n =
|
|
1186
|
+
for (v = 0; v < y.length; v++) {
|
|
1187
|
+
const n = y[v];
|
|
1152
1188
|
if (n && !(n.flags & 8)) {
|
|
1153
1189
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1154
1190
|
continue;
|
|
1155
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1191
|
+
n.flags & 4 && (n.flags &= -2), It(
|
|
1156
1192
|
n,
|
|
1157
1193
|
n.i,
|
|
1158
1194
|
n.i ? 15 : 14
|
|
@@ -1160,18 +1196,18 @@ function Gt(t) {
|
|
|
1160
1196
|
}
|
|
1161
1197
|
}
|
|
1162
1198
|
} finally {
|
|
1163
|
-
for (;
|
|
1164
|
-
const n =
|
|
1199
|
+
for (; v < y.length; v++) {
|
|
1200
|
+
const n = y[v];
|
|
1165
1201
|
n && (n.flags &= -2);
|
|
1166
1202
|
}
|
|
1167
|
-
|
|
1203
|
+
v = -1, y.length = 0, dn(t), wt = null, (y.length || j.length) && ne(t);
|
|
1168
1204
|
}
|
|
1169
1205
|
}
|
|
1170
|
-
function
|
|
1206
|
+
function se(t, e) {
|
|
1171
1207
|
const n = t.get(e) || 0;
|
|
1172
|
-
if (n >
|
|
1173
|
-
const r = e.i, s = r &&
|
|
1174
|
-
return
|
|
1208
|
+
if (n > un) {
|
|
1209
|
+
const r = e.i, s = r && fe(r.type);
|
|
1210
|
+
return te(
|
|
1175
1211
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. 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.`,
|
|
1176
1212
|
null,
|
|
1177
1213
|
10
|
|
@@ -1179,52 +1215,52 @@ function Qt(t, e) {
|
|
|
1179
1215
|
}
|
|
1180
1216
|
return t.set(e, n + 1), !1;
|
|
1181
1217
|
}
|
|
1182
|
-
const
|
|
1183
|
-
process.env.NODE_ENV !== "production" && (
|
|
1184
|
-
createRecord:
|
|
1185
|
-
rerender:
|
|
1186
|
-
reload:
|
|
1218
|
+
const dt = /* @__PURE__ */ new Map();
|
|
1219
|
+
process.env.NODE_ENV !== "production" && (ct().__VUE_HMR_RUNTIME__ = {
|
|
1220
|
+
createRecord: _t(_n),
|
|
1221
|
+
rerender: _t(gn),
|
|
1222
|
+
reload: _t(bn)
|
|
1187
1223
|
});
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1191
|
-
initialDef:
|
|
1224
|
+
const et = /* @__PURE__ */ new Map();
|
|
1225
|
+
function _n(t, e) {
|
|
1226
|
+
return et.has(t) ? !1 : (et.set(t, {
|
|
1227
|
+
initialDef: nt(e),
|
|
1192
1228
|
instances: /* @__PURE__ */ new Set()
|
|
1193
1229
|
}), !0);
|
|
1194
1230
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
1231
|
+
function nt(t) {
|
|
1232
|
+
return pe(t) ? t.__vccOpts : t;
|
|
1197
1233
|
}
|
|
1198
|
-
function
|
|
1199
|
-
const n =
|
|
1234
|
+
function gn(t, e) {
|
|
1235
|
+
const n = et.get(t);
|
|
1200
1236
|
n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
|
|
1201
|
-
e && (r.render = e,
|
|
1237
|
+
e && (r.render = e, nt(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
|
|
1202
1238
|
}));
|
|
1203
1239
|
}
|
|
1204
|
-
function
|
|
1205
|
-
const n =
|
|
1240
|
+
function bn(t, e) {
|
|
1241
|
+
const n = et.get(t);
|
|
1206
1242
|
if (!n) return;
|
|
1207
|
-
e =
|
|
1243
|
+
e = nt(e), Tt(n.initialDef, e);
|
|
1208
1244
|
const r = [...n.instances];
|
|
1209
1245
|
for (let s = 0; s < r.length; s++) {
|
|
1210
|
-
const o = r[s], i =
|
|
1211
|
-
let c =
|
|
1212
|
-
c || (i !== n.initialDef &&
|
|
1246
|
+
const o = r[s], i = nt(o.type);
|
|
1247
|
+
let c = dt.get(i);
|
|
1248
|
+
c || (i !== n.initialDef && Tt(i, e), dt.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? hn(() => {
|
|
1213
1249
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1214
1250
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1215
1251
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1216
1252
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1217
1253
|
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1254
|
+
pn(() => {
|
|
1255
|
+
dt.clear();
|
|
1220
1256
|
});
|
|
1221
1257
|
}
|
|
1222
|
-
function
|
|
1223
|
-
|
|
1258
|
+
function Tt(t, e) {
|
|
1259
|
+
M(t, e);
|
|
1224
1260
|
for (const n in t)
|
|
1225
1261
|
n !== "__file" && !(n in e) && delete t[n];
|
|
1226
1262
|
}
|
|
1227
|
-
function
|
|
1263
|
+
function _t(t) {
|
|
1228
1264
|
return (e, n) => {
|
|
1229
1265
|
try {
|
|
1230
1266
|
return t(e, n);
|
|
@@ -1235,49 +1271,49 @@ function at(t) {
|
|
|
1235
1271
|
}
|
|
1236
1272
|
};
|
|
1237
1273
|
}
|
|
1238
|
-
let
|
|
1239
|
-
function
|
|
1274
|
+
let k, Q = [];
|
|
1275
|
+
function re(t, e) {
|
|
1240
1276
|
var n, r;
|
|
1241
|
-
|
|
1277
|
+
k = t, k ? (k.enabled = !0, Q.forEach(({ event: s, args: o }) => k.emit(s, ...o)), Q = []) : /* 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
|
|
1242
1278
|
window.HTMLElement && // also exclude jsdom
|
|
1243
1279
|
// eslint-disable-next-line no-restricted-syntax
|
|
1244
1280
|
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1245
|
-
|
|
1281
|
+
re(o, e);
|
|
1246
1282
|
}), setTimeout(() => {
|
|
1247
|
-
|
|
1248
|
-
}, 3e3)) :
|
|
1249
|
-
}
|
|
1250
|
-
let
|
|
1251
|
-
const
|
|
1252
|
-
function
|
|
1253
|
-
t.shapeFlag & 6 && t.component ? (t.transition = e,
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
const
|
|
1258
|
-
process.env.NODE_ENV !== "production" && (
|
|
1283
|
+
k || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Q = []);
|
|
1284
|
+
}, 3e3)) : Q = [];
|
|
1285
|
+
}
|
|
1286
|
+
let st = null, mn = null;
|
|
1287
|
+
const yn = (t) => t.__isTeleport;
|
|
1288
|
+
function oe(t, e) {
|
|
1289
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, oe(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1290
|
+
}
|
|
1291
|
+
ct().requestIdleCallback;
|
|
1292
|
+
ct().cancelIdleCallback;
|
|
1293
|
+
const Sn = /* @__PURE__ */ Symbol.for("v-ndc"), On = {};
|
|
1294
|
+
process.env.NODE_ENV !== "production" && (On.ownKeys = (t) => (H(
|
|
1259
1295
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1260
1296
|
), Reflect.ownKeys(t)));
|
|
1261
|
-
const
|
|
1262
|
-
function
|
|
1297
|
+
const wn = {}, ie = (t) => Object.getPrototypeOf(t) === wn, En = (t) => t.__isSuspense, ce = /* @__PURE__ */ Symbol.for("v-fgt"), Nn = /* @__PURE__ */ Symbol.for("v-txt"), vn = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1298
|
+
function Rn(t) {
|
|
1263
1299
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1264
1300
|
}
|
|
1265
|
-
const
|
|
1301
|
+
const Cn = (...t) => ae(
|
|
1266
1302
|
...t
|
|
1267
|
-
),
|
|
1303
|
+
), le = ({ key: t }) => t ?? null, X = ({
|
|
1268
1304
|
ref: t,
|
|
1269
1305
|
ref_key: e,
|
|
1270
1306
|
ref_for: n
|
|
1271
|
-
}) => (typeof t == "number" && (t = "" + t), t != null ?
|
|
1272
|
-
function
|
|
1307
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? R(t) || /* @__PURE__ */ b(t) || $(t) ? { i: st, r: t, k: e, f: !!n } : t : null);
|
|
1308
|
+
function An(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1, c = !1) {
|
|
1273
1309
|
const a = {
|
|
1274
1310
|
__v_isVNode: !0,
|
|
1275
1311
|
__v_skip: !0,
|
|
1276
1312
|
type: t,
|
|
1277
1313
|
props: e,
|
|
1278
|
-
key: e &&
|
|
1279
|
-
ref: e &&
|
|
1280
|
-
scopeId:
|
|
1314
|
+
key: e && le(e),
|
|
1315
|
+
ref: e && X(e),
|
|
1316
|
+
scopeId: mn,
|
|
1281
1317
|
slotScopeIds: null,
|
|
1282
1318
|
children: n,
|
|
1283
1319
|
component: null,
|
|
@@ -1297,33 +1333,33 @@ function En(t, e = null, n = null, r = 0, s = null, o = t === ee ? 0 : 1, i = !1
|
|
|
1297
1333
|
dynamicProps: s,
|
|
1298
1334
|
dynamicChildren: null,
|
|
1299
1335
|
appContext: null,
|
|
1300
|
-
ctx:
|
|
1336
|
+
ctx: st
|
|
1301
1337
|
};
|
|
1302
|
-
return c ? (
|
|
1338
|
+
return c ? (ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && H("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
1303
1339
|
}
|
|
1304
|
-
const
|
|
1305
|
-
function
|
|
1306
|
-
if ((!t || t ===
|
|
1307
|
-
const c =
|
|
1340
|
+
const In = process.env.NODE_ENV !== "production" ? Cn : ae;
|
|
1341
|
+
function ae(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
1342
|
+
if ((!t || t === Sn) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = vn), Rn(t)) {
|
|
1343
|
+
const c = rt(
|
|
1308
1344
|
t,
|
|
1309
1345
|
e,
|
|
1310
1346
|
!0
|
|
1311
1347
|
/* mergeRef: true */
|
|
1312
1348
|
);
|
|
1313
|
-
return n &&
|
|
1349
|
+
return n && ot(c, n), c.patchFlag = -2, c;
|
|
1314
1350
|
}
|
|
1315
|
-
if (
|
|
1316
|
-
e =
|
|
1351
|
+
if (pe(t) && (t = t.__vccOpts), e) {
|
|
1352
|
+
e = $n(e);
|
|
1317
1353
|
let { class: c, style: a } = e;
|
|
1318
|
-
c && !
|
|
1354
|
+
c && !R(c) && (e.class = Nt(c)), g(a) && (/* @__PURE__ */ q(a) && !d(a) && (a = M({}, a)), e.style = Et(a));
|
|
1319
1355
|
}
|
|
1320
|
-
const i =
|
|
1321
|
-
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */
|
|
1356
|
+
const i = R(t) ? 1 : En(t) ? 128 : yn(t) ? 64 : g(t) ? 4 : $(t) ? 2 : 0;
|
|
1357
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ h(t), H(
|
|
1322
1358
|
"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`.",
|
|
1323
1359
|
`
|
|
1324
1360
|
Component that was made reactive: `,
|
|
1325
1361
|
t
|
|
1326
|
-
)),
|
|
1362
|
+
)), An(
|
|
1327
1363
|
t,
|
|
1328
1364
|
e,
|
|
1329
1365
|
n,
|
|
@@ -1334,25 +1370,25 @@ Component that was made reactive: `,
|
|
|
1334
1370
|
!0
|
|
1335
1371
|
);
|
|
1336
1372
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return t ? /* @__PURE__ */
|
|
1373
|
+
function $n(t) {
|
|
1374
|
+
return t ? /* @__PURE__ */ q(t) || ie(t) ? M({}, t) : t : null;
|
|
1339
1375
|
}
|
|
1340
|
-
function
|
|
1341
|
-
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ?
|
|
1376
|
+
function rt(t, e, n = !1, r = !1) {
|
|
1377
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Dn(s || {}, e) : s, p = {
|
|
1342
1378
|
__v_isVNode: !0,
|
|
1343
1379
|
__v_skip: !0,
|
|
1344
1380
|
type: t.type,
|
|
1345
1381
|
props: u,
|
|
1346
|
-
key: u &&
|
|
1382
|
+
key: u && le(u),
|
|
1347
1383
|
ref: e && e.ref ? (
|
|
1348
1384
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1349
1385
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1350
1386
|
// the refs so the single vnode can be set on multiple refs
|
|
1351
|
-
n && o ? d(o) ? o.concat(
|
|
1387
|
+
n && o ? d(o) ? o.concat(X(e)) : [o, X(e)] : X(e)
|
|
1352
1388
|
) : o,
|
|
1353
1389
|
scopeId: t.scopeId,
|
|
1354
1390
|
slotScopeIds: t.slotScopeIds,
|
|
1355
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(
|
|
1391
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(ue) : c,
|
|
1356
1392
|
target: t.target,
|
|
1357
1393
|
targetStart: t.targetStart,
|
|
1358
1394
|
targetAnchor: t.targetAnchor,
|
|
@@ -1362,7 +1398,7 @@ function Z(t, e, n = !1, r = !1) {
|
|
|
1362
1398
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1363
1399
|
// note: preserve flag for fragments since they use the flag for children
|
|
1364
1400
|
// fast paths only.
|
|
1365
|
-
patchFlag: e && t.type !==
|
|
1401
|
+
patchFlag: e && t.type !== ce ? i === -1 ? 16 : i | 16 : i,
|
|
1366
1402
|
dynamicProps: t.dynamicProps,
|
|
1367
1403
|
dynamicChildren: t.dynamicChildren,
|
|
1368
1404
|
appContext: t.appContext,
|
|
@@ -1374,27 +1410,27 @@ function Z(t, e, n = !1, r = !1) {
|
|
|
1374
1410
|
// they will simply be overwritten.
|
|
1375
1411
|
component: t.component,
|
|
1376
1412
|
suspense: t.suspense,
|
|
1377
|
-
ssContent: t.ssContent &&
|
|
1378
|
-
ssFallback: t.ssFallback &&
|
|
1413
|
+
ssContent: t.ssContent && rt(t.ssContent),
|
|
1414
|
+
ssFallback: t.ssFallback && rt(t.ssFallback),
|
|
1379
1415
|
placeholder: t.placeholder,
|
|
1380
1416
|
el: t.el,
|
|
1381
1417
|
anchor: t.anchor,
|
|
1382
1418
|
ctx: t.ctx,
|
|
1383
1419
|
ce: t.ce
|
|
1384
1420
|
};
|
|
1385
|
-
return a && r &&
|
|
1386
|
-
|
|
1387
|
-
a.clone(
|
|
1388
|
-
),
|
|
1421
|
+
return a && r && oe(
|
|
1422
|
+
p,
|
|
1423
|
+
a.clone(p)
|
|
1424
|
+
), p;
|
|
1389
1425
|
}
|
|
1390
|
-
function
|
|
1391
|
-
const e =
|
|
1392
|
-
return d(t.children) && (e.children = t.children.map(
|
|
1426
|
+
function ue(t) {
|
|
1427
|
+
const e = rt(t);
|
|
1428
|
+
return d(t.children) && (e.children = t.children.map(ue)), e;
|
|
1393
1429
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
1430
|
+
function Vn(t = " ", e = 0) {
|
|
1431
|
+
return In(Nn, null, t, e);
|
|
1396
1432
|
}
|
|
1397
|
-
function
|
|
1433
|
+
function ot(t, e) {
|
|
1398
1434
|
let n = 0;
|
|
1399
1435
|
const { shapeFlag: r } = t;
|
|
1400
1436
|
if (e == null)
|
|
@@ -1404,40 +1440,40 @@ function tt(t, e) {
|
|
|
1404
1440
|
else if (typeof e == "object")
|
|
1405
1441
|
if (r & 65) {
|
|
1406
1442
|
const s = e.default;
|
|
1407
|
-
s && (s._c && (s._d = !1),
|
|
1443
|
+
s && (s._c && (s._d = !1), ot(t, s()), s._c && (s._d = !0));
|
|
1408
1444
|
return;
|
|
1409
1445
|
} else
|
|
1410
|
-
n = 32, !e._ && !
|
|
1411
|
-
else if (
|
|
1446
|
+
n = 32, !e._ && !ie(e) && (e._ctx = st);
|
|
1447
|
+
else if ($(e)) {
|
|
1412
1448
|
if (r & 65) {
|
|
1413
|
-
|
|
1449
|
+
ot(t, { default: e });
|
|
1414
1450
|
return;
|
|
1415
1451
|
}
|
|
1416
|
-
e = { default: e, _ctx:
|
|
1452
|
+
e = { default: e, _ctx: st }, n = 32;
|
|
1417
1453
|
} else
|
|
1418
|
-
e = String(e), r & 64 ? (n = 16, e = [
|
|
1454
|
+
e = String(e), r & 64 ? (n = 16, e = [Vn(e)]) : n = 8;
|
|
1419
1455
|
t.children = e, t.shapeFlag |= n;
|
|
1420
1456
|
}
|
|
1421
|
-
function
|
|
1457
|
+
function Dn(...t) {
|
|
1422
1458
|
const e = {};
|
|
1423
1459
|
for (let n = 0; n < t.length; n++) {
|
|
1424
1460
|
const r = t[n];
|
|
1425
1461
|
for (const s in r)
|
|
1426
1462
|
if (s === "class")
|
|
1427
|
-
e.class !== r.class && (e.class =
|
|
1463
|
+
e.class !== r.class && (e.class = Nt([e.class, r.class]));
|
|
1428
1464
|
else if (s === "style")
|
|
1429
|
-
e.style =
|
|
1430
|
-
else if (
|
|
1465
|
+
e.style = Et([e.style, r.style]);
|
|
1466
|
+
else if (Oe(s)) {
|
|
1431
1467
|
const o = e[s], i = r[s];
|
|
1432
1468
|
i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1433
1469
|
// the model listener.
|
|
1434
|
-
!
|
|
1470
|
+
!we(s) && (e[s] = i);
|
|
1435
1471
|
} else s !== "" && (e[s] = r[s]);
|
|
1436
1472
|
}
|
|
1437
1473
|
return e;
|
|
1438
1474
|
}
|
|
1439
1475
|
{
|
|
1440
|
-
const t =
|
|
1476
|
+
const t = ct(), e = (n, r) => {
|
|
1441
1477
|
let s;
|
|
1442
1478
|
return (s = t[n]) || (s = t[n] = []), s.push(r), (o) => {
|
|
1443
1479
|
s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
|
|
@@ -1452,12 +1488,12 @@ function Rn(...t) {
|
|
|
1452
1488
|
);
|
|
1453
1489
|
}
|
|
1454
1490
|
process.env.NODE_ENV;
|
|
1455
|
-
const
|
|
1456
|
-
function
|
|
1457
|
-
return
|
|
1491
|
+
const xn = /(?:^|[-_])\w/g, Tn = (t) => t.replace(xn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1492
|
+
function fe(t, e = !0) {
|
|
1493
|
+
return $(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1458
1494
|
}
|
|
1459
|
-
function
|
|
1460
|
-
let r =
|
|
1495
|
+
function he(t, e, n = !1) {
|
|
1496
|
+
let r = fe(e);
|
|
1461
1497
|
if (!r && e.__file) {
|
|
1462
1498
|
const s = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
1463
1499
|
s && (r = s[1]);
|
|
@@ -1472,37 +1508,38 @@ function ie(t, e, n = !1) {
|
|
|
1472
1508
|
t.parent.type.components
|
|
1473
1509
|
) || s(t.appContext.components);
|
|
1474
1510
|
}
|
|
1475
|
-
return r ?
|
|
1511
|
+
return r ? Tn(r) : n ? "App" : "Anonymous";
|
|
1476
1512
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return
|
|
1513
|
+
function pe(t) {
|
|
1514
|
+
return $(t) && "__vccOpts" in t;
|
|
1479
1515
|
}
|
|
1480
|
-
function
|
|
1516
|
+
function Mn() {
|
|
1481
1517
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1482
1518
|
return;
|
|
1483
1519
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
|
|
1484
1520
|
__vue_custom_formatter: !0,
|
|
1485
1521
|
header(l) {
|
|
1486
|
-
if (!
|
|
1522
|
+
if (!g(l))
|
|
1487
1523
|
return null;
|
|
1488
1524
|
if (l.__isVue)
|
|
1489
1525
|
return ["div", t, "VueInstance"];
|
|
1490
|
-
if (/* @__PURE__ */
|
|
1491
|
-
|
|
1492
|
-
|
|
1526
|
+
if (/* @__PURE__ */ b(l)) {
|
|
1527
|
+
lt();
|
|
1528
|
+
const f = l.value;
|
|
1529
|
+
return at(), [
|
|
1493
1530
|
"div",
|
|
1494
1531
|
{},
|
|
1495
|
-
["span", t,
|
|
1532
|
+
["span", t, p(l)],
|
|
1496
1533
|
"<",
|
|
1497
|
-
c(
|
|
1534
|
+
c(f),
|
|
1498
1535
|
">"
|
|
1499
1536
|
];
|
|
1500
1537
|
} else {
|
|
1501
|
-
if (/* @__PURE__ */
|
|
1538
|
+
if (/* @__PURE__ */ At(l))
|
|
1502
1539
|
return [
|
|
1503
1540
|
"div",
|
|
1504
1541
|
{},
|
|
1505
|
-
["span", t, /* @__PURE__ */
|
|
1542
|
+
["span", t, /* @__PURE__ */ S(l) ? "ShallowReactive" : "Reactive"],
|
|
1506
1543
|
"<",
|
|
1507
1544
|
c(l),
|
|
1508
1545
|
`>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
|
|
@@ -1511,7 +1548,7 @@ function In() {
|
|
|
1511
1548
|
return [
|
|
1512
1549
|
"div",
|
|
1513
1550
|
{},
|
|
1514
|
-
["span", t, /* @__PURE__ */
|
|
1551
|
+
["span", t, /* @__PURE__ */ S(l) ? "ShallowReadonly" : "Readonly"],
|
|
1515
1552
|
"<",
|
|
1516
1553
|
c(l),
|
|
1517
1554
|
">"
|
|
@@ -1532,12 +1569,12 @@ function In() {
|
|
|
1532
1569
|
}
|
|
1533
1570
|
};
|
|
1534
1571
|
function o(l) {
|
|
1535
|
-
const
|
|
1536
|
-
l.type.props && l.props &&
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
const
|
|
1540
|
-
return
|
|
1572
|
+
const f = [];
|
|
1573
|
+
l.type.props && l.props && f.push(i("props", /* @__PURE__ */ h(l.props))), l.setupState !== bt && f.push(i("setup", l.setupState)), l.data !== bt && f.push(i("data", /* @__PURE__ */ h(l.data)));
|
|
1574
|
+
const m = a(l, "computed");
|
|
1575
|
+
m && f.push(i("computed", m));
|
|
1576
|
+
const O = a(l, "inject");
|
|
1577
|
+
return O && f.push(i("injected", O)), f.push([
|
|
1541
1578
|
"div",
|
|
1542
1579
|
{},
|
|
1543
1580
|
[
|
|
@@ -1548,10 +1585,10 @@ function In() {
|
|
|
1548
1585
|
"$ (internal): "
|
|
1549
1586
|
],
|
|
1550
1587
|
["object", { object: l }]
|
|
1551
|
-
]),
|
|
1588
|
+
]), f;
|
|
1552
1589
|
}
|
|
1553
|
-
function i(l,
|
|
1554
|
-
return
|
|
1590
|
+
function i(l, f) {
|
|
1591
|
+
return f = M({}, f), Object.keys(f).length ? [
|
|
1555
1592
|
"div",
|
|
1556
1593
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1557
1594
|
[
|
|
@@ -1566,67 +1603,67 @@ function In() {
|
|
|
1566
1603
|
{
|
|
1567
1604
|
style: "padding-left:1.25em"
|
|
1568
1605
|
},
|
|
1569
|
-
...Object.keys(
|
|
1606
|
+
...Object.keys(f).map((m) => [
|
|
1570
1607
|
"div",
|
|
1571
1608
|
{},
|
|
1572
|
-
["span", r,
|
|
1573
|
-
c(
|
|
1609
|
+
["span", r, m + ": "],
|
|
1610
|
+
c(f[m], !1)
|
|
1574
1611
|
])
|
|
1575
1612
|
]
|
|
1576
1613
|
] : ["span", {}];
|
|
1577
1614
|
}
|
|
1578
|
-
function c(l,
|
|
1579
|
-
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] :
|
|
1615
|
+
function c(l, f = !0) {
|
|
1616
|
+
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : g(l) ? ["object", { object: f ? /* @__PURE__ */ h(l) : l }] : ["span", n, String(l)];
|
|
1580
1617
|
}
|
|
1581
|
-
function a(l,
|
|
1582
|
-
const
|
|
1583
|
-
if (
|
|
1618
|
+
function a(l, f) {
|
|
1619
|
+
const m = l.type;
|
|
1620
|
+
if ($(m))
|
|
1584
1621
|
return;
|
|
1585
|
-
const
|
|
1586
|
-
for (const
|
|
1587
|
-
u(
|
|
1588
|
-
return
|
|
1589
|
-
}
|
|
1590
|
-
function u(l,
|
|
1591
|
-
const
|
|
1592
|
-
if (d(
|
|
1622
|
+
const O = {};
|
|
1623
|
+
for (const L in l.ctx)
|
|
1624
|
+
u(m, L, f) && (O[L] = l.ctx[L]);
|
|
1625
|
+
return O;
|
|
1626
|
+
}
|
|
1627
|
+
function u(l, f, m) {
|
|
1628
|
+
const O = l[m];
|
|
1629
|
+
if (d(O) && O.includes(f) || g(O) && f in O || l.extends && u(l.extends, f, m) || l.mixins && l.mixins.some((L) => u(L, f, m)))
|
|
1593
1630
|
return !0;
|
|
1594
1631
|
}
|
|
1595
|
-
function
|
|
1596
|
-
return /* @__PURE__ */
|
|
1632
|
+
function p(l) {
|
|
1633
|
+
return /* @__PURE__ */ S(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1597
1634
|
}
|
|
1598
1635
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1599
1636
|
}
|
|
1600
1637
|
process.env.NODE_ENV;
|
|
1601
1638
|
process.env.NODE_ENV;
|
|
1602
1639
|
process.env.NODE_ENV;
|
|
1603
|
-
function
|
|
1604
|
-
|
|
1640
|
+
function Pn() {
|
|
1641
|
+
Mn();
|
|
1605
1642
|
}
|
|
1606
|
-
process.env.NODE_ENV !== "production" &&
|
|
1607
|
-
function
|
|
1643
|
+
process.env.NODE_ENV !== "production" && Pn();
|
|
1644
|
+
function Wn(t, e, n) {
|
|
1608
1645
|
const r = n ? { storeOptions: n } : {};
|
|
1609
|
-
return typeof e == "function" ?
|
|
1646
|
+
return typeof e == "function" ? Fn(
|
|
1610
1647
|
t,
|
|
1611
1648
|
e,
|
|
1612
1649
|
r
|
|
1613
|
-
) :
|
|
1650
|
+
) : kn(
|
|
1614
1651
|
t,
|
|
1615
1652
|
e,
|
|
1616
1653
|
r
|
|
1617
1654
|
);
|
|
1618
1655
|
}
|
|
1619
|
-
function
|
|
1620
|
-
return
|
|
1656
|
+
function Fn(t, e, n) {
|
|
1657
|
+
return Mt(t, e, n);
|
|
1621
1658
|
}
|
|
1622
|
-
function
|
|
1623
|
-
return n && (e = { ...e, ...n ?? {} }),
|
|
1659
|
+
function kn(t, e, n) {
|
|
1660
|
+
return n && (e = { ...e, ...n ?? {} }), Mt(t, e);
|
|
1624
1661
|
}
|
|
1625
|
-
const
|
|
1626
|
-
function
|
|
1627
|
-
return
|
|
1662
|
+
const jn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1663
|
+
function Kn(t) {
|
|
1664
|
+
return jn.has(t[0]);
|
|
1628
1665
|
}
|
|
1629
|
-
class
|
|
1666
|
+
class zn extends Pt {
|
|
1630
1667
|
_className = "Store";
|
|
1631
1668
|
_onAction;
|
|
1632
1669
|
_options;
|
|
@@ -1675,7 +1712,7 @@ class kn extends Vt {
|
|
|
1675
1712
|
* @param value
|
|
1676
1713
|
*/
|
|
1677
1714
|
addToState(e, n) {
|
|
1678
|
-
this.isOptionApi() || n?.value || (n = /* @__PURE__ */
|
|
1715
|
+
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Qt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Ze(this.state, e);
|
|
1679
1716
|
}
|
|
1680
1717
|
addSubscription(e, n, r) {
|
|
1681
1718
|
this._subscriptions[e] = { subscription: n, ...r ?? {} };
|
|
@@ -1692,7 +1729,7 @@ class kn extends Vt {
|
|
|
1692
1729
|
return new this(e, n, r, s);
|
|
1693
1730
|
}
|
|
1694
1731
|
hasDeniedFirstChar(e) {
|
|
1695
|
-
return
|
|
1732
|
+
return Kn(e[0]);
|
|
1696
1733
|
}
|
|
1697
1734
|
static hasRequiredKeys(e) {
|
|
1698
1735
|
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
|
|
@@ -1704,7 +1741,7 @@ class kn extends Vt {
|
|
|
1704
1741
|
return this.getValue(this.state[e]);
|
|
1705
1742
|
}
|
|
1706
1743
|
getSubscriptions() {
|
|
1707
|
-
if (!
|
|
1744
|
+
if (!gt(this._subscriptions))
|
|
1708
1745
|
return this._subscriptions;
|
|
1709
1746
|
}
|
|
1710
1747
|
getValue(e) {
|
|
@@ -1720,17 +1757,17 @@ class kn extends Vt {
|
|
|
1720
1757
|
return this.store.hasOwnProperty(e);
|
|
1721
1758
|
}
|
|
1722
1759
|
}
|
|
1723
|
-
function
|
|
1724
|
-
const n = new
|
|
1760
|
+
function Un(t, e) {
|
|
1761
|
+
const n = new ye(t, e);
|
|
1725
1762
|
return n.plugin.bind(n);
|
|
1726
1763
|
}
|
|
1727
1764
|
export {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1765
|
+
ge as CustomConsole,
|
|
1766
|
+
Ft as PLUGIN_NAME,
|
|
1767
|
+
Ln as PluginSubscriber,
|
|
1768
|
+
ye as PluginSubscription,
|
|
1769
|
+
zn as Store,
|
|
1770
|
+
Un as createPlugin,
|
|
1771
|
+
Wn as defineAStore,
|
|
1772
|
+
gt as isEmpty
|
|
1736
1773
|
};
|