pinia-plugin-subscription 0.1.5 → 0.1.6-beta.1

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