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