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