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