pinia-plugin-subscription 0.0.0-beta.4 → 0.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as At } from "pinia";
|
|
2
|
+
class $n {
|
|
3
3
|
_createInstance;
|
|
4
4
|
_name;
|
|
5
5
|
_storeInstance;
|
|
@@ -33,27 +33,65 @@ class Dn {
|
|
|
33
33
|
this._storeInstance = this._createInstance(e, n, s), this._storeInstance && (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function ue(t, e
|
|
38
|
-
if (!
|
|
36
|
+
const xt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
37
|
+
function ue(t, e) {
|
|
38
|
+
if (!t)
|
|
39
39
|
throw new Error("Style instructions are required");
|
|
40
40
|
console.log(
|
|
41
41
|
"%c%s",
|
|
42
|
-
e,
|
|
43
42
|
t,
|
|
44
|
-
|
|
43
|
+
e.shift(),
|
|
44
|
+
...e
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
class fe {
|
|
48
|
+
static _bgColor = "#ffec73";
|
|
49
|
+
static _color = "green";
|
|
50
|
+
static _icon = "🍍⚡";
|
|
51
|
+
static _errorBgColor = "#d24545";
|
|
52
|
+
static _errorColor = "white";
|
|
53
|
+
static _errorIcon = "🍍⚠️";
|
|
54
|
+
static _pluginName;
|
|
55
|
+
static _styles = {
|
|
56
|
+
error: { bgColor: this._bgColor, color: this._color, icon: this._icon },
|
|
57
|
+
info: { bgColor: this._errorBgColor, color: this._errorColor, icon: this._errorIcon }
|
|
58
|
+
};
|
|
59
|
+
static formatMessage(e, n) {
|
|
60
|
+
return ` [${n} ${xt}] - ${e} `;
|
|
61
|
+
}
|
|
62
|
+
static generateStyle(e) {
|
|
63
|
+
return le(e.bgColor, e.color);
|
|
64
|
+
}
|
|
65
|
+
static getStyleDefinition(e) {
|
|
66
|
+
return this._styles[e ?? "info"];
|
|
67
|
+
}
|
|
68
|
+
static log(...e) {
|
|
69
|
+
this.useLog(
|
|
70
|
+
this.getStyleDefinition(),
|
|
71
|
+
e
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
static logError(...e) {
|
|
75
|
+
this.useLog(
|
|
76
|
+
this.getStyleDefinition("error"),
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
static rebuildArgs(e, n) {
|
|
81
|
+
if (typeof e == "string")
|
|
82
|
+
return [this.formatMessage(e, n)];
|
|
83
|
+
if (Array.isArray(e))
|
|
84
|
+
return [this.formatMessage(e.shift(), n), ...e ?? []];
|
|
85
|
+
}
|
|
86
|
+
static useLog(e, n) {
|
|
87
|
+
ue(
|
|
88
|
+
this.generateStyle(e),
|
|
89
|
+
this.rebuildArgs(n, e.icon)
|
|
90
|
+
);
|
|
91
|
+
}
|
|
54
92
|
}
|
|
55
|
-
|
|
56
|
-
|
|
93
|
+
class K extends fe {
|
|
94
|
+
static _pluginName = xt;
|
|
57
95
|
}
|
|
58
96
|
function Mn(t, e, n) {
|
|
59
97
|
const s = n ? { storeOptions: n } : {};
|
|
@@ -68,16 +106,16 @@ function Mn(t, e, n) {
|
|
|
68
106
|
);
|
|
69
107
|
}
|
|
70
108
|
function pe(t, e, n) {
|
|
71
|
-
return
|
|
109
|
+
return At(t, e, n);
|
|
72
110
|
}
|
|
73
111
|
function he(t, e, n) {
|
|
74
|
-
return n && (e = { ...e, ...n ?? {} }),
|
|
112
|
+
return n && (e = { ...e, ...n ?? {} }), At(t, e);
|
|
75
113
|
}
|
|
76
114
|
const de = /* @__PURE__ */ new Set(["_", "$"]);
|
|
77
|
-
function
|
|
115
|
+
function Tt(t) {
|
|
78
116
|
return de.has(t[0]);
|
|
79
117
|
}
|
|
80
|
-
function
|
|
118
|
+
function Dt(t) {
|
|
81
119
|
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");
|
|
82
120
|
}
|
|
83
121
|
class _e {
|
|
@@ -92,94 +130,79 @@ class _e {
|
|
|
92
130
|
this._subscribers = e;
|
|
93
131
|
}
|
|
94
132
|
get subscriptions() {
|
|
95
|
-
if (!
|
|
133
|
+
if (!Dt(this._subscriptions))
|
|
96
134
|
return this._subscriptions;
|
|
97
135
|
}
|
|
98
136
|
addResetStoreCallback(e) {
|
|
99
137
|
this._resetStoreCallback.push(e);
|
|
100
138
|
}
|
|
101
|
-
addSubscriber(e) {
|
|
102
|
-
this._subscribers.push(e);
|
|
103
|
-
}
|
|
104
|
-
addSubscriptions(e) {
|
|
105
|
-
e && (this._subscriptions = [...this._subscriptions, e]);
|
|
106
|
-
}
|
|
107
139
|
executeResetStoreCallbacks(e) {
|
|
108
140
|
this._resetStoreCallback.forEach((n) => n(e));
|
|
109
141
|
}
|
|
110
|
-
findPluginSubscriptions(e) {
|
|
111
|
-
return this._subscriptions.filter(
|
|
112
|
-
(n) => n && n[e]
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
142
|
plugin({ store: e, options: n }) {
|
|
116
143
|
if (this._subscribers.length)
|
|
117
144
|
try {
|
|
118
145
|
this._subscribers.forEach(
|
|
119
146
|
(s) => {
|
|
120
|
-
s.invoke({ store: e, options: n }, this._debug), this.
|
|
147
|
+
s.invoke({ store: e, options: n }, this._debug), s.subscriptions && this.subscriptionDelivery({ store: e, options: n }, s.subscriptions), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription), s.resetStoreCallback && this.addResetStoreCallback(s.resetStoreCallback);
|
|
121
148
|
}
|
|
122
|
-
), this.
|
|
149
|
+
), this.rewriteResetStore({ store: e }, Object.assign({}, e.$state), Object.assign({}, e));
|
|
123
150
|
} catch (s) {
|
|
124
|
-
|
|
151
|
+
K.logError("PluginSubscription.plugin()", s, e, n);
|
|
125
152
|
}
|
|
126
153
|
}
|
|
127
154
|
rewriteResetStore({ store: e }, n, s) {
|
|
128
155
|
e.$reset = () => {
|
|
129
156
|
this.executeResetStoreCallbacks(e), Object.keys(s).forEach((r) => {
|
|
130
|
-
|
|
157
|
+
Tt(r) || (e[r] = n[r] ?? s[r]);
|
|
131
158
|
}), e.$patch(JSON.parse(JSON.stringify(n)));
|
|
132
159
|
};
|
|
133
160
|
}
|
|
134
161
|
storeOnActionSubscription(e) {
|
|
135
162
|
const { store: n, callback: s } = e();
|
|
136
163
|
n.$onAction(({ after: r, args: o, name: i }) => {
|
|
137
|
-
this._debug &&
|
|
164
|
+
this._debug && K.log(`store.$subscribe ${n.$id}`, [r, o, i, n]), s({ after: r, args: o, name: i });
|
|
138
165
|
});
|
|
139
166
|
}
|
|
140
167
|
storeMutationSubscription(e) {
|
|
141
168
|
const { store: n, callback: s } = e();
|
|
142
169
|
n.$subscribe((r) => {
|
|
143
|
-
this._debug &&
|
|
170
|
+
this._debug && K.log(`store.$subscribe ${n.$id}`, [r, n]), s(r);
|
|
144
171
|
});
|
|
145
172
|
}
|
|
146
|
-
subscriptionDelivery({ store: e, options: n }) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
s.invoke({ store: c, options: n }, this._debug);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription);
|
|
173
|
+
subscriptionDelivery({ store: e, options: n }, s) {
|
|
174
|
+
Object.entries(s).forEach(([r, o]) => {
|
|
175
|
+
try {
|
|
176
|
+
const { subscription: i, subscriptionOptions: c } = o;
|
|
177
|
+
i.invoke({ store: e, options: { ...n, ...c } }, this._debug);
|
|
178
|
+
} catch (i) {
|
|
179
|
+
K.logError(`PluginSubscription.subscriptionDelivery() - ${r}`, i, e, n);
|
|
157
180
|
}
|
|
158
|
-
);
|
|
181
|
+
});
|
|
159
182
|
}
|
|
160
183
|
}
|
|
161
|
-
const
|
|
184
|
+
const q = new _e();
|
|
162
185
|
// @__NO_SIDE_EFFECTS__
|
|
163
186
|
function ge(t) {
|
|
164
187
|
const e = /* @__PURE__ */ Object.create(null);
|
|
165
188
|
for (const n of t.split(",")) e[n] = 1;
|
|
166
189
|
return (n) => n in e;
|
|
167
190
|
}
|
|
168
|
-
const
|
|
191
|
+
const ut = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
169
192
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
170
|
-
const
|
|
193
|
+
const $t = () => {
|
|
171
194
|
}, be = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
172
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, me = Object.prototype.hasOwnProperty,
|
|
195
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, me = Object.prototype.hasOwnProperty, ft = (t, e) => me.call(t, e), d = Array.isArray, H = (t) => Mt(t) === "[object Map]", V = (t) => typeof t == "function", N = (t) => typeof t == "string", U = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", ye = Object.prototype.toString, Mt = (t) => ye.call(t), Pt = (t) => Mt(t).slice(8, -1), et = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Se = (t) => {
|
|
173
196
|
const e = /* @__PURE__ */ Object.create(null);
|
|
174
197
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
175
|
-
}, Ee =
|
|
176
|
-
let
|
|
177
|
-
const nt = () =>
|
|
178
|
-
function
|
|
198
|
+
}, Ee = Se((t) => t.charAt(0).toUpperCase() + t.slice(1)), _t = (t, e) => !Object.is(t, e);
|
|
199
|
+
let Nt;
|
|
200
|
+
const nt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
201
|
+
function gt(t) {
|
|
179
202
|
if (d(t)) {
|
|
180
203
|
const e = {};
|
|
181
204
|
for (let n = 0; n < t.length; n++) {
|
|
182
|
-
const s = t[n], r = N(s) ?
|
|
205
|
+
const s = t[n], r = N(s) ? ve(s) : gt(s);
|
|
183
206
|
if (r)
|
|
184
207
|
for (const o in r)
|
|
185
208
|
e[o] = r[o];
|
|
@@ -189,7 +212,7 @@ function bt(t) {
|
|
|
189
212
|
return t;
|
|
190
213
|
}
|
|
191
214
|
const we = /;(?![^(]*\))/g, Oe = /:([^]+)/, Ne = /\/\*[^]*?\*\//g;
|
|
192
|
-
function
|
|
215
|
+
function ve(t) {
|
|
193
216
|
const e = {};
|
|
194
217
|
return t.replace(Ne, "").split(we).forEach((n) => {
|
|
195
218
|
if (n) {
|
|
@@ -198,13 +221,13 @@ function Re(t) {
|
|
|
198
221
|
}
|
|
199
222
|
}), e;
|
|
200
223
|
}
|
|
201
|
-
function
|
|
224
|
+
function bt(t) {
|
|
202
225
|
let e = "";
|
|
203
226
|
if (N(t))
|
|
204
227
|
e = t;
|
|
205
228
|
else if (d(t))
|
|
206
229
|
for (let n = 0; n < t.length; n++) {
|
|
207
|
-
const s =
|
|
230
|
+
const s = bt(t[n]);
|
|
208
231
|
s && (e += s + " ");
|
|
209
232
|
}
|
|
210
233
|
else if (_(t))
|
|
@@ -216,7 +239,7 @@ function M(t, ...e) {
|
|
|
216
239
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
217
240
|
}
|
|
218
241
|
let Ft = 0, rt;
|
|
219
|
-
function
|
|
242
|
+
function mt() {
|
|
220
243
|
Ft++;
|
|
221
244
|
}
|
|
222
245
|
function yt() {
|
|
@@ -238,7 +261,7 @@ function yt() {
|
|
|
238
261
|
}
|
|
239
262
|
if (t) throw t;
|
|
240
263
|
}
|
|
241
|
-
class
|
|
264
|
+
class Re {
|
|
242
265
|
// TODO isolatedDeclarations "__v_skip"
|
|
243
266
|
constructor(e) {
|
|
244
267
|
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);
|
|
@@ -249,7 +272,7 @@ class ve {
|
|
|
249
272
|
this.version++, this.notify(e);
|
|
250
273
|
}
|
|
251
274
|
notify(e) {
|
|
252
|
-
|
|
275
|
+
mt();
|
|
253
276
|
try {
|
|
254
277
|
if (process.env.NODE_ENV !== "production")
|
|
255
278
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
@@ -270,9 +293,9 @@ class ve {
|
|
|
270
293
|
}
|
|
271
294
|
const jt = /* @__PURE__ */ new WeakMap(), st = Symbol(
|
|
272
295
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
273
|
-
),
|
|
296
|
+
), vt = Symbol(
|
|
274
297
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
275
|
-
),
|
|
298
|
+
), Rt = Symbol(
|
|
276
299
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
277
300
|
);
|
|
278
301
|
function I(t, e, n, s, r, o) {
|
|
@@ -289,22 +312,22 @@ function I(t, e, n, s, r, o) {
|
|
|
289
312
|
oldTarget: o
|
|
290
313
|
}) : l.trigger());
|
|
291
314
|
};
|
|
292
|
-
if (
|
|
315
|
+
if (mt(), e === "clear")
|
|
293
316
|
i.forEach(c);
|
|
294
317
|
else {
|
|
295
318
|
const l = d(t), f = l && et(n);
|
|
296
319
|
if (l && n === "length") {
|
|
297
320
|
const h = Number(s);
|
|
298
321
|
i.forEach((a, p) => {
|
|
299
|
-
(p === "length" || p ===
|
|
322
|
+
(p === "length" || p === Rt || !U(p) && p >= h) && c(a);
|
|
300
323
|
});
|
|
301
324
|
} else
|
|
302
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(
|
|
325
|
+
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(Rt)), e) {
|
|
303
326
|
case "add":
|
|
304
|
-
l ? f && c(i.get("length")) : (c(i.get(st)), H(t) && c(i.get(
|
|
327
|
+
l ? f && c(i.get("length")) : (c(i.get(st)), H(t) && c(i.get(vt)));
|
|
305
328
|
break;
|
|
306
329
|
case "delete":
|
|
307
|
-
l || (c(i.get(st)), H(t) && c(i.get(
|
|
330
|
+
l || (c(i.get(st)), H(t) && c(i.get(vt)));
|
|
308
331
|
break;
|
|
309
332
|
case "set":
|
|
310
333
|
H(t) && c(i.get(st));
|
|
@@ -317,28 +340,28 @@ function Ce(t, e) {
|
|
|
317
340
|
const n = jt.get(t);
|
|
318
341
|
return n && n.get(e);
|
|
319
342
|
}
|
|
320
|
-
function
|
|
343
|
+
function x(t) {
|
|
321
344
|
const e = u(t);
|
|
322
|
-
return e === t ||
|
|
345
|
+
return e === t || y(t) ? e : e.map(v);
|
|
323
346
|
}
|
|
324
|
-
function
|
|
347
|
+
function St(t) {
|
|
325
348
|
return t = u(t), t;
|
|
326
349
|
}
|
|
327
|
-
function
|
|
328
|
-
return E(t) ?
|
|
350
|
+
function R(t, e) {
|
|
351
|
+
return E(t) ? Et(t) ? z(v(e)) : z(e) : v(e);
|
|
329
352
|
}
|
|
330
353
|
const Ie = {
|
|
331
354
|
__proto__: null,
|
|
332
355
|
[Symbol.iterator]() {
|
|
333
|
-
return ot(this, Symbol.iterator, (t) =>
|
|
356
|
+
return ot(this, Symbol.iterator, (t) => R(this, t));
|
|
334
357
|
},
|
|
335
358
|
concat(...t) {
|
|
336
|
-
return
|
|
337
|
-
...t.map((e) => d(e) ?
|
|
359
|
+
return x(this).concat(
|
|
360
|
+
...t.map((e) => d(e) ? x(e) : e)
|
|
338
361
|
);
|
|
339
362
|
},
|
|
340
363
|
entries() {
|
|
341
|
-
return ot(this, "entries", (t) => (t[1] =
|
|
364
|
+
return ot(this, "entries", (t) => (t[1] = R(this, t[1]), t));
|
|
342
365
|
},
|
|
343
366
|
every(t, e) {
|
|
344
367
|
return w(this, "every", t, e, void 0, arguments);
|
|
@@ -349,7 +372,7 @@ const Ie = {
|
|
|
349
372
|
"filter",
|
|
350
373
|
t,
|
|
351
374
|
e,
|
|
352
|
-
(n) => n.map((s) =>
|
|
375
|
+
(n) => n.map((s) => R(this, s)),
|
|
353
376
|
arguments
|
|
354
377
|
);
|
|
355
378
|
},
|
|
@@ -359,7 +382,7 @@ const Ie = {
|
|
|
359
382
|
"find",
|
|
360
383
|
t,
|
|
361
384
|
e,
|
|
362
|
-
(n) =>
|
|
385
|
+
(n) => R(this, n),
|
|
363
386
|
arguments
|
|
364
387
|
);
|
|
365
388
|
},
|
|
@@ -372,7 +395,7 @@ const Ie = {
|
|
|
372
395
|
"findLast",
|
|
373
396
|
t,
|
|
374
397
|
e,
|
|
375
|
-
(n) =>
|
|
398
|
+
(n) => R(this, n),
|
|
376
399
|
arguments
|
|
377
400
|
);
|
|
378
401
|
},
|
|
@@ -390,7 +413,7 @@ const Ie = {
|
|
|
390
413
|
return it(this, "indexOf", t);
|
|
391
414
|
},
|
|
392
415
|
join(t) {
|
|
393
|
-
return
|
|
416
|
+
return x(this).join(t);
|
|
394
417
|
},
|
|
395
418
|
// keys() iterator only reads `length`, no optimization required
|
|
396
419
|
lastIndexOf(...t) {
|
|
@@ -406,10 +429,10 @@ const Ie = {
|
|
|
406
429
|
return k(this, "push", t);
|
|
407
430
|
},
|
|
408
431
|
reduce(t, ...e) {
|
|
409
|
-
return
|
|
432
|
+
return Ct(this, "reduce", t, e);
|
|
410
433
|
},
|
|
411
434
|
reduceRight(t, ...e) {
|
|
412
|
-
return
|
|
435
|
+
return Ct(this, "reduceRight", t, e);
|
|
413
436
|
},
|
|
414
437
|
shift() {
|
|
415
438
|
return k(this, "shift");
|
|
@@ -422,69 +445,69 @@ const Ie = {
|
|
|
422
445
|
return k(this, "splice", t);
|
|
423
446
|
},
|
|
424
447
|
toReversed() {
|
|
425
|
-
return
|
|
448
|
+
return x(this).toReversed();
|
|
426
449
|
},
|
|
427
450
|
toSorted(t) {
|
|
428
|
-
return
|
|
451
|
+
return x(this).toSorted(t);
|
|
429
452
|
},
|
|
430
453
|
toSpliced(...t) {
|
|
431
|
-
return
|
|
454
|
+
return x(this).toSpliced(...t);
|
|
432
455
|
},
|
|
433
456
|
unshift(...t) {
|
|
434
457
|
return k(this, "unshift", t);
|
|
435
458
|
},
|
|
436
459
|
values() {
|
|
437
|
-
return ot(this, "values", (t) =>
|
|
460
|
+
return ot(this, "values", (t) => R(this, t));
|
|
438
461
|
}
|
|
439
462
|
};
|
|
440
463
|
function ot(t, e, n) {
|
|
441
|
-
const s =
|
|
442
|
-
return s !== t && !
|
|
464
|
+
const s = St(t), r = s[e]();
|
|
465
|
+
return s !== t && !y(t) && (r._next = r.next, r.next = () => {
|
|
443
466
|
const o = r._next();
|
|
444
467
|
return o.done || (o.value = n(o.value)), o;
|
|
445
468
|
}), r;
|
|
446
469
|
}
|
|
447
470
|
const Ve = Array.prototype;
|
|
448
471
|
function w(t, e, n, s, r, o) {
|
|
449
|
-
const i =
|
|
472
|
+
const i = St(t), c = i !== t && !y(t), l = i[e];
|
|
450
473
|
if (l !== Ve[e]) {
|
|
451
474
|
const a = l.apply(t, o);
|
|
452
|
-
return c ?
|
|
475
|
+
return c ? v(a) : a;
|
|
453
476
|
}
|
|
454
477
|
let f = n;
|
|
455
478
|
i !== t && (c ? f = function(a, p) {
|
|
456
|
-
return n.call(this,
|
|
479
|
+
return n.call(this, R(t, a), p, t);
|
|
457
480
|
} : n.length > 2 && (f = function(a, p) {
|
|
458
481
|
return n.call(this, a, p, t);
|
|
459
482
|
}));
|
|
460
483
|
const h = l.call(i, f, s);
|
|
461
484
|
return c && r ? r(h) : h;
|
|
462
485
|
}
|
|
463
|
-
function
|
|
464
|
-
const r =
|
|
486
|
+
function Ct(t, e, n, s) {
|
|
487
|
+
const r = St(t);
|
|
465
488
|
let o = n;
|
|
466
|
-
return r !== t && (
|
|
489
|
+
return r !== t && (y(t) ? n.length > 3 && (o = function(i, c, l) {
|
|
467
490
|
return n.call(this, i, c, l, t);
|
|
468
491
|
}) : o = function(i, c, l) {
|
|
469
|
-
return n.call(this, i,
|
|
492
|
+
return n.call(this, i, R(t, c), l, t);
|
|
470
493
|
}), r[e](o, ...s);
|
|
471
494
|
}
|
|
472
495
|
function it(t, e, n) {
|
|
473
496
|
const s = u(t), r = s[e](...n);
|
|
474
|
-
return (r === -1 || r === !1) &&
|
|
497
|
+
return (r === -1 || r === !1) && L(n[0]) ? (n[0] = u(n[0]), s[e](...n)) : r;
|
|
475
498
|
}
|
|
476
499
|
function k(t, e, n = []) {
|
|
477
|
-
|
|
500
|
+
mt();
|
|
478
501
|
const s = u(t)[e].apply(t, n);
|
|
479
502
|
return yt(), s;
|
|
480
503
|
}
|
|
481
|
-
const
|
|
482
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(
|
|
504
|
+
const Ae = /* @__PURE__ */ ge("__proto__,__v_isRef,__isVue"), kt = new Set(
|
|
505
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(U)
|
|
483
506
|
);
|
|
484
|
-
function
|
|
485
|
-
return
|
|
507
|
+
function xe(t) {
|
|
508
|
+
return U(t) || (t = String(t)), u(this).hasOwnProperty(t);
|
|
486
509
|
}
|
|
487
|
-
class
|
|
510
|
+
class Kt {
|
|
488
511
|
constructor(e = !1, n = !1) {
|
|
489
512
|
this._isReadonly = e, this._isShallow = n;
|
|
490
513
|
}
|
|
@@ -498,7 +521,7 @@ class Ht {
|
|
|
498
521
|
if (n === "__v_isShallow")
|
|
499
522
|
return o;
|
|
500
523
|
if (n === "__v_raw")
|
|
501
|
-
return s === (r ? o ?
|
|
524
|
+
return s === (r ? o ? He : zt : o ? Ke : Lt).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
502
525
|
// this means the receiver is a user proxy of the reactive proxy
|
|
503
526
|
Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
|
|
504
527
|
const i = d(e);
|
|
@@ -507,7 +530,7 @@ class Ht {
|
|
|
507
530
|
if (i && (l = Ie[n]))
|
|
508
531
|
return l;
|
|
509
532
|
if (n === "hasOwnProperty")
|
|
510
|
-
return
|
|
533
|
+
return xe;
|
|
511
534
|
}
|
|
512
535
|
const c = Reflect.get(
|
|
513
536
|
e,
|
|
@@ -517,16 +540,16 @@ class Ht {
|
|
|
517
540
|
// its class methods
|
|
518
541
|
g(e) ? e : s
|
|
519
542
|
);
|
|
520
|
-
if ((
|
|
543
|
+
if ((U(n) ? kt.has(n) : Ae(n)) || o)
|
|
521
544
|
return c;
|
|
522
545
|
if (g(c)) {
|
|
523
546
|
const l = i && et(n) ? c : c.value;
|
|
524
|
-
return r && _(l) ?
|
|
547
|
+
return r && _(l) ? ht(l) : l;
|
|
525
548
|
}
|
|
526
|
-
return _(c) ? r ?
|
|
549
|
+
return _(c) ? r ? ht(c) : Wt(c) : c;
|
|
527
550
|
}
|
|
528
551
|
}
|
|
529
|
-
class Te extends
|
|
552
|
+
class Te extends Kt {
|
|
530
553
|
constructor(e = !1) {
|
|
531
554
|
super(!1, e);
|
|
532
555
|
}
|
|
@@ -535,33 +558,33 @@ class Te extends Ht {
|
|
|
535
558
|
const i = d(e) && et(n);
|
|
536
559
|
if (!this._isShallow) {
|
|
537
560
|
const f = E(o);
|
|
538
|
-
if (!
|
|
561
|
+
if (!y(s) && !E(s) && (o = u(o), s = u(s)), !i && g(o) && !g(s))
|
|
539
562
|
return f ? (process.env.NODE_ENV !== "production" && M(
|
|
540
563
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
541
564
|
e[n]
|
|
542
565
|
), !0) : (o.value = s, !0);
|
|
543
566
|
}
|
|
544
|
-
const c = i ? Number(n) < e.length :
|
|
567
|
+
const c = i ? Number(n) < e.length : ft(e, n), l = Reflect.set(
|
|
545
568
|
e,
|
|
546
569
|
n,
|
|
547
570
|
s,
|
|
548
571
|
g(e) ? e : r
|
|
549
572
|
);
|
|
550
|
-
return e === u(r) && (c ?
|
|
573
|
+
return e === u(r) && (c ? _t(s, o) && I(e, "set", n, s, o) : I(e, "add", n, s)), l;
|
|
551
574
|
}
|
|
552
575
|
deleteProperty(e, n) {
|
|
553
|
-
const s =
|
|
576
|
+
const s = ft(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
|
|
554
577
|
return o && s && I(e, "delete", n, void 0, r), o;
|
|
555
578
|
}
|
|
556
579
|
has(e, n) {
|
|
557
580
|
const s = Reflect.has(e, n);
|
|
558
|
-
return !
|
|
581
|
+
return !U(n) || kt.has(n), s;
|
|
559
582
|
}
|
|
560
583
|
ownKeys(e) {
|
|
561
584
|
return Reflect.ownKeys(e);
|
|
562
585
|
}
|
|
563
586
|
}
|
|
564
|
-
class
|
|
587
|
+
class De extends Kt {
|
|
565
588
|
constructor(e = !1) {
|
|
566
589
|
super(!0, e);
|
|
567
590
|
}
|
|
@@ -578,10 +601,10 @@ class $e extends Ht {
|
|
|
578
601
|
), !0;
|
|
579
602
|
}
|
|
580
603
|
}
|
|
581
|
-
const
|
|
604
|
+
const $e = /* @__PURE__ */ new Te(), Me = /* @__PURE__ */ new De(), pt = (t) => t, J = (t) => Reflect.getPrototypeOf(t);
|
|
582
605
|
function Pe(t, e, n) {
|
|
583
606
|
return function(...s) {
|
|
584
|
-
const r = this.__v_raw, o = u(r), i = H(o), c = t === "entries" || t === Symbol.iterator && i, l = r[t](...s), f = n ?
|
|
607
|
+
const r = this.__v_raw, o = u(r), i = H(o), c = t === "entries" || t === Symbol.iterator && i, l = r[t](...s), f = n ? pt : e ? z : v;
|
|
585
608
|
return {
|
|
586
609
|
// iterator protocol
|
|
587
610
|
next() {
|
|
@@ -598,7 +621,7 @@ function Pe(t, e, n) {
|
|
|
598
621
|
};
|
|
599
622
|
};
|
|
600
623
|
}
|
|
601
|
-
function
|
|
624
|
+
function B(t) {
|
|
602
625
|
return function(...e) {
|
|
603
626
|
if (process.env.NODE_ENV !== "production") {
|
|
604
627
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
@@ -613,7 +636,7 @@ function Y(t) {
|
|
|
613
636
|
function Fe(t, e) {
|
|
614
637
|
const n = {
|
|
615
638
|
get(r) {
|
|
616
|
-
const o = this.__v_raw, i = u(o), c = u(r), { has: l } = J(i), f = e ?
|
|
639
|
+
const o = this.__v_raw, i = u(o), c = u(r), { has: l } = J(i), f = e ? pt : t ? z : v;
|
|
617
640
|
if (l.call(i, r))
|
|
618
641
|
return f(o.get(r));
|
|
619
642
|
if (l.call(i, c))
|
|
@@ -633,35 +656,35 @@ function Fe(t, e) {
|
|
|
633
656
|
forEach(r, o) {
|
|
634
657
|
const i = this, c = i.__v_raw;
|
|
635
658
|
u(c);
|
|
636
|
-
const l = e ?
|
|
659
|
+
const l = e ? pt : t ? z : v;
|
|
637
660
|
return c.forEach((f, h) => r.call(o, l(f), l(h), i));
|
|
638
661
|
}
|
|
639
662
|
};
|
|
640
663
|
return F(
|
|
641
664
|
n,
|
|
642
665
|
t ? {
|
|
643
|
-
add:
|
|
644
|
-
set:
|
|
645
|
-
delete:
|
|
646
|
-
clear:
|
|
666
|
+
add: B("add"),
|
|
667
|
+
set: B("set"),
|
|
668
|
+
delete: B("delete"),
|
|
669
|
+
clear: B("clear")
|
|
647
670
|
} : {
|
|
648
671
|
add(r) {
|
|
649
|
-
!e && !
|
|
672
|
+
!e && !y(r) && !E(r) && (r = u(r));
|
|
650
673
|
const o = u(this);
|
|
651
674
|
return J(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
|
|
652
675
|
},
|
|
653
676
|
set(r, o) {
|
|
654
|
-
!e && !
|
|
677
|
+
!e && !y(o) && !E(o) && (o = u(o));
|
|
655
678
|
const i = u(this), { has: c, get: l } = J(i);
|
|
656
679
|
let f = c.call(i, r);
|
|
657
|
-
f ? process.env.NODE_ENV !== "production" &&
|
|
680
|
+
f ? process.env.NODE_ENV !== "production" && It(i, c, r) : (r = u(r), f = c.call(i, r));
|
|
658
681
|
const h = l.call(i, r);
|
|
659
|
-
return i.set(r, o), f ?
|
|
682
|
+
return i.set(r, o), f ? _t(o, h) && I(i, "set", r, o, h) : I(i, "add", r, o), this;
|
|
660
683
|
},
|
|
661
684
|
delete(r) {
|
|
662
685
|
const o = u(this), { has: i, get: c } = J(o);
|
|
663
686
|
let l = i.call(o, r);
|
|
664
|
-
l ? process.env.NODE_ENV !== "production" &&
|
|
687
|
+
l ? process.env.NODE_ENV !== "production" && It(o, i, r) : (r = u(r), l = i.call(o, r));
|
|
665
688
|
const f = c ? c.call(o, r) : void 0, h = o.delete(r);
|
|
666
689
|
return l && I(o, "delete", r, void 0, f), h;
|
|
667
690
|
},
|
|
@@ -685,20 +708,20 @@ function Fe(t, e) {
|
|
|
685
708
|
n[r] = Pe(r, t, e);
|
|
686
709
|
}), n;
|
|
687
710
|
}
|
|
688
|
-
function
|
|
711
|
+
function Ht(t, e) {
|
|
689
712
|
const n = Fe(t, e);
|
|
690
713
|
return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
|
|
691
|
-
|
|
714
|
+
ft(n, r) && r in s ? n : s,
|
|
692
715
|
r,
|
|
693
716
|
o
|
|
694
717
|
);
|
|
695
718
|
}
|
|
696
719
|
const je = {
|
|
697
|
-
get: /* @__PURE__ */
|
|
720
|
+
get: /* @__PURE__ */ Ht(!1, !1)
|
|
698
721
|
}, ke = {
|
|
699
|
-
get: /* @__PURE__ */
|
|
722
|
+
get: /* @__PURE__ */ Ht(!0, !1)
|
|
700
723
|
};
|
|
701
|
-
function
|
|
724
|
+
function It(t, e, n) {
|
|
702
725
|
const s = u(n);
|
|
703
726
|
if (s !== n && e.call(t, s)) {
|
|
704
727
|
const r = Pt(t);
|
|
@@ -707,7 +730,7 @@ function xt(t, e, n) {
|
|
|
707
730
|
);
|
|
708
731
|
}
|
|
709
732
|
}
|
|
710
|
-
const Lt = /* @__PURE__ */ new WeakMap(),
|
|
733
|
+
const Lt = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap();
|
|
711
734
|
function Le(t) {
|
|
712
735
|
switch (t) {
|
|
713
736
|
case "Object":
|
|
@@ -729,12 +752,12 @@ function Wt(t) {
|
|
|
729
752
|
return E(t) ? t : Ut(
|
|
730
753
|
t,
|
|
731
754
|
!1,
|
|
732
|
-
|
|
755
|
+
$e,
|
|
733
756
|
je,
|
|
734
757
|
Lt
|
|
735
758
|
);
|
|
736
759
|
}
|
|
737
|
-
function
|
|
760
|
+
function ht(t) {
|
|
738
761
|
return Ut(
|
|
739
762
|
t,
|
|
740
763
|
!0,
|
|
@@ -764,27 +787,27 @@ function Ut(t, e, n, s, r) {
|
|
|
764
787
|
);
|
|
765
788
|
return r.set(t, c), c;
|
|
766
789
|
}
|
|
767
|
-
function
|
|
768
|
-
return E(t) ?
|
|
790
|
+
function Et(t) {
|
|
791
|
+
return E(t) ? Et(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
769
792
|
}
|
|
770
793
|
function E(t) {
|
|
771
794
|
return !!(t && t.__v_isReadonly);
|
|
772
795
|
}
|
|
773
|
-
function
|
|
796
|
+
function y(t) {
|
|
774
797
|
return !!(t && t.__v_isShallow);
|
|
775
798
|
}
|
|
776
|
-
function
|
|
799
|
+
function L(t) {
|
|
777
800
|
return t ? !!t.__v_raw : !1;
|
|
778
801
|
}
|
|
779
802
|
function u(t) {
|
|
780
803
|
const e = t && t.__v_raw;
|
|
781
804
|
return e ? u(e) : t;
|
|
782
805
|
}
|
|
783
|
-
const
|
|
806
|
+
const v = (t) => _(t) ? Wt(t) : t, z = (t) => _(t) ? ht(t) : t;
|
|
784
807
|
function g(t) {
|
|
785
808
|
return t ? t.__v_isRef === !0 : !1;
|
|
786
809
|
}
|
|
787
|
-
function
|
|
810
|
+
function qt(t) {
|
|
788
811
|
return We(t, !1);
|
|
789
812
|
}
|
|
790
813
|
function We(t, e) {
|
|
@@ -792,7 +815,7 @@ function We(t, e) {
|
|
|
792
815
|
}
|
|
793
816
|
class Ue {
|
|
794
817
|
constructor(e, n) {
|
|
795
|
-
this.dep = new
|
|
818
|
+
this.dep = new Re(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : u(e), this._value = n ? e : v(e), this.__v_isShallow = n;
|
|
796
819
|
}
|
|
797
820
|
get value() {
|
|
798
821
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -802,8 +825,8 @@ class Ue {
|
|
|
802
825
|
}) : this.dep.track(), this._value;
|
|
803
826
|
}
|
|
804
827
|
set value(e) {
|
|
805
|
-
const n = this._rawValue, s = this.__v_isShallow ||
|
|
806
|
-
e = s ? e : u(e),
|
|
828
|
+
const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
|
|
829
|
+
e = s ? e : u(e), _t(e, n) && (this._rawValue = e, this._value = s ? e : v(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
807
830
|
target: this,
|
|
808
831
|
type: "set",
|
|
809
832
|
key: "value",
|
|
@@ -812,22 +835,22 @@ class Ue {
|
|
|
812
835
|
}) : this.dep.trigger());
|
|
813
836
|
}
|
|
814
837
|
}
|
|
815
|
-
function
|
|
838
|
+
function qe(t) {
|
|
816
839
|
return g(t) ? t.value : t;
|
|
817
840
|
}
|
|
818
|
-
class
|
|
841
|
+
class Je {
|
|
819
842
|
constructor(e, n, s) {
|
|
820
843
|
this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = u(e);
|
|
821
844
|
let r = !0, o = e;
|
|
822
845
|
if (!d(e) || !et(String(n)))
|
|
823
846
|
do
|
|
824
|
-
r = !
|
|
847
|
+
r = !L(o) || y(o);
|
|
825
848
|
while (r && (o = o.__v_raw));
|
|
826
849
|
this._shallow = r;
|
|
827
850
|
}
|
|
828
851
|
get value() {
|
|
829
852
|
let e = this._object[this._key];
|
|
830
|
-
return this._shallow && (e =
|
|
853
|
+
return this._shallow && (e = qe(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
831
854
|
}
|
|
832
855
|
set value(e) {
|
|
833
856
|
if (this._shallow && g(this._raw[this._key])) {
|
|
@@ -843,7 +866,7 @@ class Ye {
|
|
|
843
866
|
return Ce(this._raw, this._key);
|
|
844
867
|
}
|
|
845
868
|
}
|
|
846
|
-
class
|
|
869
|
+
class Be {
|
|
847
870
|
constructor(e) {
|
|
848
871
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
849
872
|
}
|
|
@@ -851,26 +874,26 @@ class qe {
|
|
|
851
874
|
return this._value = this._getter();
|
|
852
875
|
}
|
|
853
876
|
}
|
|
854
|
-
function
|
|
855
|
-
return g(t) ? t : V(t) ? new
|
|
877
|
+
function Ye(t, e, n) {
|
|
878
|
+
return g(t) ? t : V(t) ? new Be(t) : _(t) && arguments.length > 1 ? Ge(t, e, n) : qt(t);
|
|
856
879
|
}
|
|
857
880
|
function Ge(t, e, n) {
|
|
858
|
-
return new
|
|
881
|
+
return new Je(t, e, n);
|
|
859
882
|
}
|
|
860
|
-
const
|
|
883
|
+
const A = [];
|
|
861
884
|
function Qe(t) {
|
|
862
|
-
|
|
885
|
+
A.push(t);
|
|
863
886
|
}
|
|
864
887
|
function Xe() {
|
|
865
|
-
|
|
888
|
+
A.pop();
|
|
866
889
|
}
|
|
867
890
|
let ct = !1;
|
|
868
891
|
function P(t, ...e) {
|
|
869
892
|
if (ct) return;
|
|
870
893
|
ct = !0;
|
|
871
|
-
const n =
|
|
894
|
+
const n = A.length ? A[A.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ze();
|
|
872
895
|
if (s)
|
|
873
|
-
|
|
896
|
+
wt(
|
|
874
897
|
s,
|
|
875
898
|
n,
|
|
876
899
|
11,
|
|
@@ -896,7 +919,7 @@ function P(t, ...e) {
|
|
|
896
919
|
ct = !1;
|
|
897
920
|
}
|
|
898
921
|
function Ze() {
|
|
899
|
-
let t =
|
|
922
|
+
let t = A[A.length - 1];
|
|
900
923
|
if (!t)
|
|
901
924
|
return [];
|
|
902
925
|
const e = [];
|
|
@@ -929,13 +952,13 @@ function en({ vnode: t, recurseCount: e }) {
|
|
|
929
952
|
function nn(t) {
|
|
930
953
|
const e = [], n = Object.keys(t);
|
|
931
954
|
return n.slice(0, 3).forEach((s) => {
|
|
932
|
-
e.push(...
|
|
955
|
+
e.push(...Jt(s, t[s]));
|
|
933
956
|
}), n.length > 3 && e.push(" ..."), e;
|
|
934
957
|
}
|
|
935
|
-
function
|
|
936
|
-
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e =
|
|
958
|
+
function Jt(t, e, n) {
|
|
959
|
+
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = Jt(t, u(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : V(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = u(e), n ? e : [`${t}=`, e]);
|
|
937
960
|
}
|
|
938
|
-
const
|
|
961
|
+
const Bt = {
|
|
939
962
|
sp: "serverPrefetch hook",
|
|
940
963
|
bc: "beforeCreate hook",
|
|
941
964
|
c: "created hook",
|
|
@@ -968,18 +991,18 @@ const qt = {
|
|
|
968
991
|
15: "component update",
|
|
969
992
|
16: "app unmount cleanup function"
|
|
970
993
|
};
|
|
971
|
-
function
|
|
994
|
+
function wt(t, e, n, s) {
|
|
972
995
|
try {
|
|
973
996
|
return s ? t(...s) : t();
|
|
974
997
|
} catch (r) {
|
|
975
|
-
|
|
998
|
+
Yt(r, e, n);
|
|
976
999
|
}
|
|
977
1000
|
}
|
|
978
|
-
function
|
|
979
|
-
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config ||
|
|
1001
|
+
function Yt(t, e, n, s = !0) {
|
|
1002
|
+
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ut;
|
|
980
1003
|
if (e) {
|
|
981
1004
|
let c = e.parent;
|
|
982
|
-
const l = e.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
1005
|
+
const l = e.proxy, f = process.env.NODE_ENV !== "production" ? Bt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
983
1006
|
for (; c; ) {
|
|
984
1007
|
const h = c.ec;
|
|
985
1008
|
if (h) {
|
|
@@ -990,7 +1013,7 @@ function Bt(t, e, n, s = !0) {
|
|
|
990
1013
|
c = c.parent;
|
|
991
1014
|
}
|
|
992
1015
|
if (o) {
|
|
993
|
-
|
|
1016
|
+
wt(o, null, 10, [
|
|
994
1017
|
t,
|
|
995
1018
|
l,
|
|
996
1019
|
f
|
|
@@ -1002,7 +1025,7 @@ function Bt(t, e, n, s = !0) {
|
|
|
1002
1025
|
}
|
|
1003
1026
|
function rn(t, e, n, s = !0, r = !1) {
|
|
1004
1027
|
if (process.env.NODE_ENV !== "production") {
|
|
1005
|
-
const o =
|
|
1028
|
+
const o = Bt[e];
|
|
1006
1029
|
if (n && Qe(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Xe(), s)
|
|
1007
1030
|
throw t;
|
|
1008
1031
|
console.error(t);
|
|
@@ -1014,38 +1037,38 @@ function rn(t, e, n, s = !0, r = !1) {
|
|
|
1014
1037
|
}
|
|
1015
1038
|
const m = [];
|
|
1016
1039
|
let O = -1;
|
|
1017
|
-
const
|
|
1040
|
+
const $ = [];
|
|
1018
1041
|
let C = null, T = 0;
|
|
1019
1042
|
const sn = /* @__PURE__ */ Promise.resolve();
|
|
1020
|
-
let
|
|
1043
|
+
let dt = null;
|
|
1021
1044
|
const on = 100;
|
|
1022
1045
|
function cn(t) {
|
|
1023
1046
|
let e = O + 1, n = m.length;
|
|
1024
1047
|
for (; e < n; ) {
|
|
1025
|
-
const s = e + n >>> 1, r = m[s], o =
|
|
1048
|
+
const s = e + n >>> 1, r = m[s], o = W(r);
|
|
1026
1049
|
o < t || o === t && r.flags & 2 ? e = s + 1 : n = s;
|
|
1027
1050
|
}
|
|
1028
1051
|
return e;
|
|
1029
1052
|
}
|
|
1030
1053
|
function an(t) {
|
|
1031
1054
|
if (!(t.flags & 1)) {
|
|
1032
|
-
const e =
|
|
1055
|
+
const e = W(t), n = m[m.length - 1];
|
|
1033
1056
|
!n || // fast path when the job id is larger than the tail
|
|
1034
|
-
!(t.flags & 2) && e >=
|
|
1057
|
+
!(t.flags & 2) && e >= W(n) ? m.push(t) : m.splice(cn(e), 0, t), t.flags |= 1, Gt();
|
|
1035
1058
|
}
|
|
1036
1059
|
}
|
|
1037
1060
|
function Gt() {
|
|
1038
|
-
|
|
1061
|
+
dt || (dt = sn.then(Qt));
|
|
1039
1062
|
}
|
|
1040
1063
|
function ln(t) {
|
|
1041
|
-
d(t) ?
|
|
1064
|
+
d(t) ? $.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || ($.push(t), t.flags |= 1), Gt();
|
|
1042
1065
|
}
|
|
1043
1066
|
function un(t) {
|
|
1044
|
-
if (
|
|
1045
|
-
const e = [...new Set(
|
|
1046
|
-
(n, s) =>
|
|
1067
|
+
if ($.length) {
|
|
1068
|
+
const e = [...new Set($)].sort(
|
|
1069
|
+
(n, s) => W(n) - W(s)
|
|
1047
1070
|
);
|
|
1048
|
-
if (
|
|
1071
|
+
if ($.length = 0, C) {
|
|
1049
1072
|
C.push(...e);
|
|
1050
1073
|
return;
|
|
1051
1074
|
}
|
|
@@ -1056,17 +1079,17 @@ function un(t) {
|
|
|
1056
1079
|
C = null, T = 0;
|
|
1057
1080
|
}
|
|
1058
1081
|
}
|
|
1059
|
-
const
|
|
1082
|
+
const W = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1060
1083
|
function Qt(t) {
|
|
1061
1084
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1062
|
-
const e = process.env.NODE_ENV !== "production" ? (n) => Xt(t, n) :
|
|
1085
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => Xt(t, n) : $t;
|
|
1063
1086
|
try {
|
|
1064
1087
|
for (O = 0; O < m.length; O++) {
|
|
1065
1088
|
const n = m[O];
|
|
1066
1089
|
if (n && !(n.flags & 8)) {
|
|
1067
1090
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1068
1091
|
continue;
|
|
1069
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1092
|
+
n.flags & 4 && (n.flags &= -2), wt(
|
|
1070
1093
|
n,
|
|
1071
1094
|
n.i,
|
|
1072
1095
|
n.i ? 15 : 14
|
|
@@ -1078,14 +1101,14 @@ function Qt(t) {
|
|
|
1078
1101
|
const n = m[O];
|
|
1079
1102
|
n && (n.flags &= -2);
|
|
1080
1103
|
}
|
|
1081
|
-
O = -1, m.length = 0, un(t),
|
|
1104
|
+
O = -1, m.length = 0, un(t), dt = null, (m.length || $.length) && Qt(t);
|
|
1082
1105
|
}
|
|
1083
1106
|
}
|
|
1084
1107
|
function Xt(t, e) {
|
|
1085
1108
|
const n = t.get(e) || 0;
|
|
1086
1109
|
if (n > on) {
|
|
1087
1110
|
const s = e.i, r = s && ie(s.type);
|
|
1088
|
-
return
|
|
1111
|
+
return Yt(
|
|
1089
1112
|
`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.`,
|
|
1090
1113
|
null,
|
|
1091
1114
|
10
|
|
@@ -1118,12 +1141,12 @@ function pn(t, e) {
|
|
|
1118
1141
|
function hn(t, e) {
|
|
1119
1142
|
const n = Q.get(t);
|
|
1120
1143
|
if (!n) return;
|
|
1121
|
-
e = X(e),
|
|
1144
|
+
e = X(e), Vt(n.initialDef, e);
|
|
1122
1145
|
const s = [...n.instances];
|
|
1123
1146
|
for (let r = 0; r < s.length; r++) {
|
|
1124
1147
|
const o = s[r], i = X(o.type);
|
|
1125
1148
|
let c = at.get(i);
|
|
1126
|
-
c || (i !== n.initialDef &&
|
|
1149
|
+
c || (i !== n.initialDef && Vt(i, e), at.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 ? an(() => {
|
|
1127
1150
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1128
1151
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1129
1152
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
@@ -1133,7 +1156,7 @@ function hn(t, e) {
|
|
|
1133
1156
|
at.clear();
|
|
1134
1157
|
});
|
|
1135
1158
|
}
|
|
1136
|
-
function
|
|
1159
|
+
function Vt(t, e) {
|
|
1137
1160
|
F(t, e);
|
|
1138
1161
|
for (const n in t)
|
|
1139
1162
|
n !== "__file" && !(n in e) && delete t[n];
|
|
@@ -1149,17 +1172,17 @@ function lt(t) {
|
|
|
1149
1172
|
}
|
|
1150
1173
|
};
|
|
1151
1174
|
}
|
|
1152
|
-
let
|
|
1175
|
+
let D, Y = [];
|
|
1153
1176
|
function Zt(t, e) {
|
|
1154
1177
|
var n, s;
|
|
1155
|
-
|
|
1178
|
+
D = t, D ? (D.enabled = !0, Y.forEach(({ event: r, args: o }) => D.emit(r, ...o)), Y = []) : /* 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
|
|
1156
1179
|
window.HTMLElement && // also exclude jsdom
|
|
1157
1180
|
// eslint-disable-next-line no-restricted-syntax
|
|
1158
1181
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1159
1182
|
Zt(o, e);
|
|
1160
1183
|
}), setTimeout(() => {
|
|
1161
|
-
|
|
1162
|
-
}, 3e3)) :
|
|
1184
|
+
D || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Y = []);
|
|
1185
|
+
}, 3e3)) : Y = [];
|
|
1163
1186
|
}
|
|
1164
1187
|
let Z = null, dn = null;
|
|
1165
1188
|
const _n = (t) => t.__isTeleport;
|
|
@@ -1172,13 +1195,13 @@ const gn = Symbol.for("v-ndc"), bn = {};
|
|
|
1172
1195
|
process.env.NODE_ENV !== "production" && (bn.ownKeys = (t) => (P(
|
|
1173
1196
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1174
1197
|
), Reflect.ownKeys(t)));
|
|
1175
|
-
const mn = {}, ee = (t) => Object.getPrototypeOf(t) === mn,
|
|
1198
|
+
const mn = {}, ee = (t) => Object.getPrototypeOf(t) === mn, yn = (t) => t.__isSuspense, ne = Symbol.for("v-fgt"), Sn = Symbol.for("v-txt"), En = Symbol.for("v-cmt");
|
|
1176
1199
|
function wn(t) {
|
|
1177
1200
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1178
1201
|
}
|
|
1179
1202
|
const On = (...t) => se(
|
|
1180
1203
|
...t
|
|
1181
|
-
), re = ({ key: t }) => t ?? null,
|
|
1204
|
+
), re = ({ key: t }) => t ?? null, G = ({
|
|
1182
1205
|
ref: t,
|
|
1183
1206
|
ref_key: e,
|
|
1184
1207
|
ref_for: n
|
|
@@ -1190,7 +1213,7 @@ function Nn(t, e = null, n = null, s = 0, r = null, o = t === ne ? 0 : 1, i = !1
|
|
|
1190
1213
|
type: t,
|
|
1191
1214
|
props: e,
|
|
1192
1215
|
key: e && re(e),
|
|
1193
|
-
ref: e &&
|
|
1216
|
+
ref: e && G(e),
|
|
1194
1217
|
scopeId: dn,
|
|
1195
1218
|
slotScopeIds: null,
|
|
1196
1219
|
children: n,
|
|
@@ -1213,9 +1236,9 @@ function Nn(t, e = null, n = null, s = 0, r = null, o = t === ne ? 0 : 1, i = !1
|
|
|
1213
1236
|
appContext: null,
|
|
1214
1237
|
ctx: Z
|
|
1215
1238
|
};
|
|
1216
|
-
return c ? (
|
|
1239
|
+
return c ? (Ot(l, n), o & 128 && t.normalize(l)) : n && (l.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && P("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
1217
1240
|
}
|
|
1218
|
-
const
|
|
1241
|
+
const vn = process.env.NODE_ENV !== "production" ? On : se;
|
|
1219
1242
|
function se(t, e = null, n = null, s = 0, r = null, o = !1) {
|
|
1220
1243
|
if ((!t || t === gn) && (process.env.NODE_ENV !== "production" && !t && P(`Invalid vnode type when creating vnode: ${t}.`), t = En), wn(t)) {
|
|
1221
1244
|
const c = tt(
|
|
@@ -1224,15 +1247,15 @@ function se(t, e = null, n = null, s = 0, r = null, o = !1) {
|
|
|
1224
1247
|
!0
|
|
1225
1248
|
/* mergeRef: true */
|
|
1226
1249
|
);
|
|
1227
|
-
return n &&
|
|
1250
|
+
return n && Ot(c, n), c.patchFlag = -2, c;
|
|
1228
1251
|
}
|
|
1229
1252
|
if (ae(t) && (t = t.__vccOpts), e) {
|
|
1230
|
-
e =
|
|
1253
|
+
e = Rn(e);
|
|
1231
1254
|
let { class: c, style: l } = e;
|
|
1232
|
-
c && !N(c) && (e.class =
|
|
1255
|
+
c && !N(c) && (e.class = bt(c)), _(l) && (L(l) && !d(l) && (l = F({}, l)), e.style = gt(l));
|
|
1233
1256
|
}
|
|
1234
|
-
const i = N(t) ? 1 :
|
|
1235
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1257
|
+
const i = N(t) ? 1 : yn(t) ? 128 : _n(t) ? 64 : _(t) ? 4 : V(t) ? 2 : 0;
|
|
1258
|
+
return process.env.NODE_ENV !== "production" && i & 4 && L(t) && (t = u(t), P(
|
|
1236
1259
|
"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`.",
|
|
1237
1260
|
`
|
|
1238
1261
|
Component that was made reactive: `,
|
|
@@ -1248,8 +1271,8 @@ Component that was made reactive: `,
|
|
|
1248
1271
|
!0
|
|
1249
1272
|
);
|
|
1250
1273
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return t ?
|
|
1274
|
+
function Rn(t) {
|
|
1275
|
+
return t ? L(t) || ee(t) ? F({}, t) : t : null;
|
|
1253
1276
|
}
|
|
1254
1277
|
function tt(t, e, n = !1, s = !1) {
|
|
1255
1278
|
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = t, f = e ? In(r || {}, e) : r, h = {
|
|
@@ -1262,7 +1285,7 @@ function tt(t, e, n = !1, s = !1) {
|
|
|
1262
1285
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1263
1286
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1264
1287
|
// the refs so the single vnode can be set on multiple refs
|
|
1265
|
-
n && o ? d(o) ? o.concat(
|
|
1288
|
+
n && o ? d(o) ? o.concat(G(e)) : [o, G(e)] : G(e)
|
|
1266
1289
|
) : o,
|
|
1267
1290
|
scopeId: t.scopeId,
|
|
1268
1291
|
slotScopeIds: t.slotScopeIds,
|
|
@@ -1306,9 +1329,9 @@ function oe(t) {
|
|
|
1306
1329
|
return d(t.children) && (e.children = t.children.map(oe)), e;
|
|
1307
1330
|
}
|
|
1308
1331
|
function Cn(t = " ", e = 0) {
|
|
1309
|
-
return
|
|
1332
|
+
return vn(Sn, null, t, e);
|
|
1310
1333
|
}
|
|
1311
|
-
function
|
|
1334
|
+
function Ot(t, e) {
|
|
1312
1335
|
let n = 0;
|
|
1313
1336
|
const { shapeFlag: s } = t;
|
|
1314
1337
|
if (e == null)
|
|
@@ -1318,7 +1341,7 @@ function Nt(t, e) {
|
|
|
1318
1341
|
else if (typeof e == "object")
|
|
1319
1342
|
if (s & 65) {
|
|
1320
1343
|
const r = e.default;
|
|
1321
|
-
r && (r._c && (r._d = !1),
|
|
1344
|
+
r && (r._c && (r._d = !1), Ot(t, r()), r._c && (r._d = !0));
|
|
1322
1345
|
return;
|
|
1323
1346
|
} else
|
|
1324
1347
|
n = 32, !e._ && !ee(e) && (e._ctx = Z);
|
|
@@ -1331,9 +1354,9 @@ function In(...t) {
|
|
|
1331
1354
|
const s = t[n];
|
|
1332
1355
|
for (const r in s)
|
|
1333
1356
|
if (r === "class")
|
|
1334
|
-
e.class !== s.class && (e.class =
|
|
1357
|
+
e.class !== s.class && (e.class = bt([e.class, s.class]));
|
|
1335
1358
|
else if (r === "style")
|
|
1336
|
-
e.style =
|
|
1359
|
+
e.style = gt([e.style, s.style]);
|
|
1337
1360
|
else if (be(r)) {
|
|
1338
1361
|
const o = e[r], i = s[r];
|
|
1339
1362
|
i && o !== i && !(d(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
|
|
@@ -1357,7 +1380,7 @@ function In(...t) {
|
|
|
1357
1380
|
);
|
|
1358
1381
|
}
|
|
1359
1382
|
process.env.NODE_ENV;
|
|
1360
|
-
const Vn = /(?:^|[-_])\w/g,
|
|
1383
|
+
const Vn = /(?:^|[-_])\w/g, An = (t) => t.replace(Vn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1361
1384
|
function ie(t, e = !0) {
|
|
1362
1385
|
return V(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1363
1386
|
}
|
|
@@ -1377,12 +1400,12 @@ function ce(t, e, n = !1) {
|
|
|
1377
1400
|
t.parent.type.components
|
|
1378
1401
|
) || r(t.appContext.components);
|
|
1379
1402
|
}
|
|
1380
|
-
return s ?
|
|
1403
|
+
return s ? An(s) : n ? "App" : "Anonymous";
|
|
1381
1404
|
}
|
|
1382
1405
|
function ae(t) {
|
|
1383
1406
|
return V(t) && "__vccOpts" in t;
|
|
1384
1407
|
}
|
|
1385
|
-
function
|
|
1408
|
+
function xn() {
|
|
1386
1409
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1387
1410
|
return;
|
|
1388
1411
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1403,11 +1426,11 @@ function An() {
|
|
|
1403
1426
|
">"
|
|
1404
1427
|
];
|
|
1405
1428
|
} else {
|
|
1406
|
-
if (
|
|
1429
|
+
if (Et(a))
|
|
1407
1430
|
return [
|
|
1408
1431
|
"div",
|
|
1409
1432
|
{},
|
|
1410
|
-
["span", t,
|
|
1433
|
+
["span", t, y(a) ? "ShallowReactive" : "Reactive"],
|
|
1411
1434
|
"<",
|
|
1412
1435
|
c(a),
|
|
1413
1436
|
`>${E(a) ? " (readonly)" : ""}`
|
|
@@ -1416,7 +1439,7 @@ function An() {
|
|
|
1416
1439
|
return [
|
|
1417
1440
|
"div",
|
|
1418
1441
|
{},
|
|
1419
|
-
["span", t,
|
|
1442
|
+
["span", t, y(a) ? "ShallowReadonly" : "Readonly"],
|
|
1420
1443
|
"<",
|
|
1421
1444
|
c(a),
|
|
1422
1445
|
">"
|
|
@@ -1438,11 +1461,11 @@ function An() {
|
|
|
1438
1461
|
};
|
|
1439
1462
|
function o(a) {
|
|
1440
1463
|
const p = [];
|
|
1441
|
-
a.type.props && a.props && p.push(i("props", u(a.props))), a.setupState !==
|
|
1464
|
+
a.type.props && a.props && p.push(i("props", u(a.props))), a.setupState !== ut && p.push(i("setup", a.setupState)), a.data !== ut && p.push(i("data", u(a.data)));
|
|
1442
1465
|
const b = l(a, "computed");
|
|
1443
1466
|
b && p.push(i("computed", b));
|
|
1444
|
-
const
|
|
1445
|
-
return
|
|
1467
|
+
const S = l(a, "inject");
|
|
1468
|
+
return S && p.push(i("injected", S)), p.push([
|
|
1446
1469
|
"div",
|
|
1447
1470
|
{},
|
|
1448
1471
|
[
|
|
@@ -1487,18 +1510,18 @@ function An() {
|
|
|
1487
1510
|
const b = a.type;
|
|
1488
1511
|
if (V(b))
|
|
1489
1512
|
return;
|
|
1490
|
-
const
|
|
1513
|
+
const S = {};
|
|
1491
1514
|
for (const j in a.ctx)
|
|
1492
|
-
f(b, j, p) && (
|
|
1493
|
-
return
|
|
1515
|
+
f(b, j, p) && (S[j] = a.ctx[j]);
|
|
1516
|
+
return S;
|
|
1494
1517
|
}
|
|
1495
1518
|
function f(a, p, b) {
|
|
1496
|
-
const
|
|
1497
|
-
if (d(
|
|
1519
|
+
const S = a[b];
|
|
1520
|
+
if (d(S) && S.includes(p) || _(S) && p in S || a.extends && f(a.extends, p, b) || a.mixins && a.mixins.some((j) => f(j, p, b)))
|
|
1498
1521
|
return !0;
|
|
1499
1522
|
}
|
|
1500
1523
|
function h(a) {
|
|
1501
|
-
return
|
|
1524
|
+
return y(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1502
1525
|
}
|
|
1503
1526
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1504
1527
|
}
|
|
@@ -1506,7 +1529,7 @@ process.env.NODE_ENV;
|
|
|
1506
1529
|
process.env.NODE_ENV;
|
|
1507
1530
|
process.env.NODE_ENV;
|
|
1508
1531
|
function Tn() {
|
|
1509
|
-
|
|
1532
|
+
xn();
|
|
1510
1533
|
}
|
|
1511
1534
|
process.env.NODE_ENV !== "production" && Tn();
|
|
1512
1535
|
class Pn {
|
|
@@ -1516,6 +1539,7 @@ class Pn {
|
|
|
1516
1539
|
_store;
|
|
1517
1540
|
_subscriptions = {};
|
|
1518
1541
|
_storeSubscribe;
|
|
1542
|
+
static _requiredKeys;
|
|
1519
1543
|
get debug() {
|
|
1520
1544
|
return this._debug;
|
|
1521
1545
|
}
|
|
@@ -1563,10 +1587,10 @@ class Pn {
|
|
|
1563
1587
|
* @param value
|
|
1564
1588
|
*/
|
|
1565
1589
|
addToState(e, n) {
|
|
1566
|
-
this.isOptionApi() || n?.value || (n =
|
|
1590
|
+
this.isOptionApi() || n?.value || (n = qt(n)), this.state[e] = n, this.store[e] = Ye(this.state, e);
|
|
1567
1591
|
}
|
|
1568
|
-
addSubscription(e, n) {
|
|
1569
|
-
this._subscriptions[e] = n;
|
|
1592
|
+
addSubscription(e, n, s) {
|
|
1593
|
+
this._subscriptions[e] = { subscription: n, subscriptionOptions: s };
|
|
1570
1594
|
}
|
|
1571
1595
|
/**
|
|
1572
1596
|
* Create and return a class instance
|
|
@@ -1576,14 +1600,17 @@ class Pn {
|
|
|
1576
1600
|
* @returns
|
|
1577
1601
|
*/
|
|
1578
1602
|
static customizeStore(e, n, s = !1) {
|
|
1579
|
-
if (n.storeOptions)
|
|
1603
|
+
if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
|
|
1580
1604
|
return new this(e, n, s);
|
|
1581
1605
|
}
|
|
1582
1606
|
debugLog(e, n) {
|
|
1583
|
-
this._debug &&
|
|
1607
|
+
this._debug && K.log(e, n);
|
|
1584
1608
|
}
|
|
1585
1609
|
hasDeniedFirstChar(e) {
|
|
1586
|
-
return
|
|
1610
|
+
return Tt(e[0]);
|
|
1611
|
+
}
|
|
1612
|
+
static hasRequiredKeys(e) {
|
|
1613
|
+
return this._requiredKeys === void 0 || this._requiredKeys?.every((n) => !!e[n]);
|
|
1587
1614
|
}
|
|
1588
1615
|
getOption(e) {
|
|
1589
1616
|
return this.options && this.options[e];
|
|
@@ -1592,7 +1619,7 @@ class Pn {
|
|
|
1592
1619
|
return this.getValue(this.state[e]);
|
|
1593
1620
|
}
|
|
1594
1621
|
getSubscriptions() {
|
|
1595
|
-
if (!
|
|
1622
|
+
if (!Dt(this._subscriptions))
|
|
1596
1623
|
return this._subscriptions;
|
|
1597
1624
|
}
|
|
1598
1625
|
getValue(e) {
|
|
@@ -1609,15 +1636,14 @@ class Pn {
|
|
|
1609
1636
|
}
|
|
1610
1637
|
}
|
|
1611
1638
|
function Fn(t, e = !1) {
|
|
1612
|
-
return typeof e != "boolean" && (e = !1),
|
|
1639
|
+
return typeof e != "boolean" && (e = !1), q.debug = e, q.subscribers = t, q.plugin.bind(q);
|
|
1613
1640
|
}
|
|
1614
1641
|
export {
|
|
1615
|
-
|
|
1616
|
-
|
|
1642
|
+
fe as CustomConsole,
|
|
1643
|
+
$n as PluginSubscriber,
|
|
1644
|
+
q as PluginSubscription,
|
|
1617
1645
|
Pn as Store,
|
|
1618
1646
|
Fn as createPlugin,
|
|
1619
1647
|
Mn as defineAStore,
|
|
1620
|
-
|
|
1621
|
-
fe as eppsLogError,
|
|
1622
|
-
ut as isEmpty
|
|
1648
|
+
Dt as isEmpty
|
|
1623
1649
|
};
|