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