pinia-plugin-subscription 0.1.2 → 0.1.3-beta.0

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
1
  import { defineStore as Mt } from "pinia";
2
- class Ln {
2
+ class Wn {
3
3
  _console;
4
4
  _createInstance;
5
5
  _name;
@@ -69,8 +69,8 @@ class Pt {
69
69
  this.console.error(...e);
70
70
  }
71
71
  }
72
- const Ft = "pinia-plugin-subscription", de = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
- function _e(t, e) {
72
+ const Ft = "pinia-plugin-subscription", _e = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
+ function ge(t, e) {
74
74
  if (!t)
75
75
  throw new Error("Style instructions are required");
76
76
  console.log(
@@ -80,7 +80,7 @@ function _e(t, e) {
80
80
  ...e
81
81
  );
82
82
  }
83
- class ge {
83
+ class be {
84
84
  _bgColor = "#ffec73";
85
85
  _color = "green";
86
86
  _icon = "🍍⚡";
@@ -95,7 +95,7 @@ class ge {
95
95
  return ` [${n} ${Ft}] - ${e} `;
96
96
  }
97
97
  generateStyle(e) {
98
- return de(e.bgColor, e.color);
98
+ return _e(e.bgColor, e.color);
99
99
  }
100
100
  getStyleDefinition(e) {
101
101
  return this._styles[e ?? "info"];
@@ -119,16 +119,16 @@ class ge {
119
119
  return [this.formatMessage(e.shift(), n), ...e ?? []];
120
120
  }
121
121
  useLog(e, n) {
122
- _e(
122
+ ge(
123
123
  this.generateStyle(e),
124
124
  this.rebuildArgs(n, e.icon)
125
125
  );
126
126
  }
127
127
  }
128
- class be extends ge {
128
+ class me extends be {
129
129
  _pluginName = Ft;
130
130
  }
131
- const me = new be();
131
+ const Se = new me();
132
132
  function gt(t) {
133
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");
134
134
  }
@@ -149,7 +149,7 @@ class ye extends Pt {
149
149
  return this._subscriptions;
150
150
  }
151
151
  constructor(e, n) {
152
- super(Array.isArray(n) && !!n?.includes($t), me), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
152
+ super(Array.isArray(n) && !!n?.includes($t), Se), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
153
153
  }
154
154
  addResetStoreCallback(e) {
155
155
  this._resetStoreCallback.push(e);
@@ -224,13 +224,13 @@ class ye extends Pt {
224
224
  { store: e, options: { ...n, ...u } },
225
225
  this.debug
226
226
  ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), gt(a) || a?.forEach(
227
- (p) => i.invoke(
227
+ (h) => i.invoke(
228
228
  {
229
- store: p,
229
+ store: h,
230
230
  options: {
231
231
  ...n,
232
232
  ...u,
233
- ...p?.storeOptions ?? {}
233
+ ...h?.storeOptions ?? {}
234
234
  }
235
235
  },
236
236
  this.debug
@@ -243,7 +243,7 @@ class ye extends Pt {
243
243
  }
244
244
  }
245
245
  // @__NO_SIDE_EFFECTS__
246
- function Se(t) {
246
+ function Oe(t) {
247
247
  const e = /* @__PURE__ */ Object.create(null);
248
248
  for (const n of t.split(",")) e[n] = 1;
249
249
  return (n) => n in e;
@@ -251,18 +251,18 @@ function Se(t) {
251
251
  const bt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
252
252
  process.env.NODE_ENV !== "production" && Object.freeze([]);
253
253
  const kt = () => {
254
- }, Oe = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), we = (t) => t.startsWith("onUpdate:"), M = Object.assign, Ee = Object.prototype.hasOwnProperty, mt = (t, e) => Ee.call(t, e), d = Array.isArray, z = (t) => jt(t) === "[object Map]", $ = (t) => typeof t == "function", R = (t) => typeof t == "string", T = (t) => typeof t == "symbol", g = (t) => t !== null && typeof t == "object", Ne = Object.prototype.toString, jt = (t) => Ne.call(t), Kt = (t) => jt(t).slice(8, -1), it = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ve = (t) => {
254
+ }, we = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Ee = (t) => t.startsWith("onUpdate:"), M = Object.assign, Ne = Object.prototype.hasOwnProperty, mt = (t, e) => Ne.call(t, e), d = Array.isArray, z = (t) => jt(t) === "[object Map]", $ = (t) => typeof t == "function", R = (t) => typeof t == "string", T = (t) => typeof t == "symbol", g = (t) => t !== null && typeof t == "object", ve = Object.prototype.toString, jt = (t) => ve.call(t), Kt = (t) => jt(t).slice(8, -1), it = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Re = (t) => {
256
256
  const e = /* @__PURE__ */ Object.create(null);
257
257
  return ((n) => e[n] || (e[n] = t(n)));
258
- }, Re = ve((t) => t.charAt(0).toUpperCase() + t.slice(1)), V = (t, e) => !Object.is(t, e);
259
- let Vt;
260
- const ct = () => Vt || (Vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
258
+ }, Ce = Re((t) => t.charAt(0).toUpperCase() + t.slice(1)), D = (t, e) => !Object.is(t, e);
259
+ let Dt;
260
+ const ct = () => Dt || (Dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
261
  function Et(t) {
262
262
  if (d(t)) {
263
263
  const e = {};
264
264
  for (let n = 0; n < t.length; n++) {
265
- const r = t[n], s = R(r) ? $e(r) : Et(r);
265
+ const r = t[n], s = R(r) ? De(r) : Et(r);
266
266
  if (s)
267
267
  for (const o in s)
268
268
  e[o] = s[o];
@@ -271,12 +271,12 @@ function Et(t) {
271
271
  } else if (R(t) || g(t))
272
272
  return t;
273
273
  }
274
- const Ce = /;(?![^(]*\))/g, Ae = /:([^]+)/, Ie = /\/\*[^]*?\*\//g;
275
- function $e(t) {
274
+ const Ae = /;(?![^(]*\))/g, Ie = /:([^]+)/, $e = /\/\*[^]*?\*\//g;
275
+ function De(t) {
276
276
  const e = {};
277
- return t.replace(Ie, "").split(Ce).forEach((n) => {
277
+ return t.replace($e, "").split(Ae).forEach((n) => {
278
278
  if (n) {
279
- const r = n.split(Ae);
279
+ const r = n.split(Ie);
280
280
  r.length > 1 && (e[r[0].trim()] = r[1].trim());
281
281
  }
282
282
  }), e;
@@ -360,9 +360,9 @@ class Wt {
360
360
  }
361
361
  }
362
362
  }
363
- const tt = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ Symbol(
363
+ const tt = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ Symbol(
364
364
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
365
- ), yt = /* @__PURE__ */ Symbol(
365
+ ), St = /* @__PURE__ */ Symbol(
366
366
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
367
367
  ), U = /* @__PURE__ */ Symbol(
368
368
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
@@ -398,40 +398,40 @@ function I(t, e, n, r, s, o) {
398
398
  else {
399
399
  const a = d(t), u = a && it(n);
400
400
  if (a && n === "length") {
401
- const p = Number(r);
401
+ const h = Number(r);
402
402
  i.forEach((l, f) => {
403
- (f === "length" || f === U || !T(f) && f >= p) && c(l);
403
+ (f === "length" || f === U || !T(f) && f >= h) && c(l);
404
404
  });
405
405
  } else
406
406
  switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(U)), e) {
407
407
  case "add":
408
- a ? u && c(i.get("length")) : (c(i.get(D)), z(t) && c(i.get(yt)));
408
+ a ? u && c(i.get("length")) : (c(i.get(V)), z(t) && c(i.get(St)));
409
409
  break;
410
410
  case "delete":
411
- a || (c(i.get(D)), z(t) && c(i.get(yt)));
411
+ a || (c(i.get(V)), z(t) && c(i.get(St)));
412
412
  break;
413
413
  case "set":
414
- z(t) && c(i.get(D));
414
+ z(t) && c(i.get(V));
415
415
  break;
416
416
  }
417
417
  }
418
418
  Rt();
419
419
  }
420
- function De(t, e) {
420
+ function xe(t, e) {
421
421
  const n = tt.get(t);
422
422
  return n && n.get(e);
423
423
  }
424
424
  function P(t) {
425
- const e = /* @__PURE__ */ h(t);
426
- return e === t ? e : (_(e, "iterate", U), /* @__PURE__ */ S(t) ? e : e.map(C));
425
+ const e = /* @__PURE__ */ p(t);
426
+ return e === t ? e : (_(e, "iterate", U), /* @__PURE__ */ y(t) ? e : e.map(C));
427
427
  }
428
428
  function Ct(t) {
429
- return _(t = /* @__PURE__ */ h(t), "iterate", U), t;
429
+ return _(t = /* @__PURE__ */ p(t), "iterate", U), t;
430
430
  }
431
431
  function w(t, e) {
432
432
  return /* @__PURE__ */ E(t) ? J(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
433
433
  }
434
- const xe = {
434
+ const Te = {
435
435
  __proto__: null,
436
436
  [Symbol.iterator]() {
437
437
  return ft(this, Symbol.iterator, (t) => w(this, t));
@@ -488,17 +488,17 @@ const xe = {
488
488
  return N(this, "forEach", t, e, void 0, arguments);
489
489
  },
490
490
  includes(...t) {
491
- return ht(this, "includes", t);
491
+ return pt(this, "includes", t);
492
492
  },
493
493
  indexOf(...t) {
494
- return ht(this, "indexOf", t);
494
+ return pt(this, "indexOf", t);
495
495
  },
496
496
  join(t) {
497
497
  return P(this).join(t);
498
498
  },
499
499
  // keys() iterator only reads `length`, no optimization required
500
500
  lastIndexOf(...t) {
501
- return ht(this, "lastIndexOf", t);
501
+ return pt(this, "lastIndexOf", t);
502
502
  },
503
503
  map(t, e) {
504
504
  return N(this, "map", t, e, void 0, arguments);
@@ -510,10 +510,10 @@ const xe = {
510
510
  return W(this, "push", t);
511
511
  },
512
512
  reduce(t, ...e) {
513
- return Dt(this, "reduce", t, e);
513
+ return Vt(this, "reduce", t, e);
514
514
  },
515
515
  reduceRight(t, ...e) {
516
- return Dt(this, "reduceRight", t, e);
516
+ return Vt(this, "reduceRight", t, e);
517
517
  },
518
518
  shift() {
519
519
  return W(this, "shift");
@@ -543,15 +543,15 @@ const xe = {
543
543
  };
544
544
  function ft(t, e, n) {
545
545
  const r = Ct(t), s = r[e]();
546
- return r !== t && !/* @__PURE__ */ S(t) && (s._next = s.next, s.next = () => {
546
+ return r !== t && !/* @__PURE__ */ y(t) && (s._next = s.next, s.next = () => {
547
547
  const o = s._next();
548
548
  return o.done || (o.value = n(o.value)), o;
549
549
  }), s;
550
550
  }
551
- const Te = Array.prototype;
551
+ const Me = Array.prototype;
552
552
  function N(t, e, n, r, s, o) {
553
- const i = Ct(t), c = i !== t && !/* @__PURE__ */ S(t), a = i[e];
554
- if (a !== Te[e]) {
553
+ const i = Ct(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
554
+ if (a !== Me[e]) {
555
555
  const l = a.apply(t, o);
556
556
  return c ? C(l) : l;
557
557
  }
@@ -561,37 +561,37 @@ function N(t, e, n, r, s, o) {
561
561
  } : n.length > 2 && (u = function(l, f) {
562
562
  return n.call(this, l, f, t);
563
563
  }));
564
- const p = a.call(i, u, r);
565
- return c && s ? s(p) : p;
564
+ const h = a.call(i, u, r);
565
+ return c && s ? s(h) : h;
566
566
  }
567
- function Dt(t, e, n, r) {
568
- const s = Ct(t), o = s !== t && !/* @__PURE__ */ S(t);
567
+ function Vt(t, e, n, r) {
568
+ const s = Ct(t), o = s !== t && !/* @__PURE__ */ y(t);
569
569
  let i = n, c = !1;
570
- s !== t && (o ? (c = r.length === 0, i = function(u, p, l) {
571
- return c && (c = !1, u = w(t, u)), n.call(this, u, w(t, p), l, t);
572
- }) : n.length > 3 && (i = function(u, p, l) {
573
- return n.call(this, u, p, l, t);
570
+ s !== t && (o ? (c = r.length === 0, i = function(u, h, l) {
571
+ return c && (c = !1, u = w(t, u)), n.call(this, u, w(t, h), l, t);
572
+ }) : n.length > 3 && (i = function(u, h, l) {
573
+ return n.call(this, u, h, l, t);
574
574
  }));
575
575
  const a = s[e](i, ...r);
576
576
  return c ? w(t, a) : a;
577
577
  }
578
- function ht(t, e, n) {
579
- const r = /* @__PURE__ */ h(t);
578
+ function pt(t, e, n) {
579
+ const r = /* @__PURE__ */ p(t);
580
580
  _(r, "iterate", U);
581
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;
582
+ return (s === -1 || s === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
583
583
  }
584
584
  function W(t, e, n = []) {
585
585
  lt(), vt();
586
- const r = (/* @__PURE__ */ h(t))[e].apply(t, n);
586
+ const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
587
587
  return Rt(), at(), r;
588
588
  }
589
- const Me = /* @__PURE__ */ Se("__proto__,__v_isRef,__isVue"), zt = new Set(
589
+ const Pe = /* @__PURE__ */ Oe("__proto__,__v_isRef,__isVue"), zt = new Set(
590
590
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(T)
591
591
  );
592
- function Pe(t) {
592
+ function Fe(t) {
593
593
  T(t) || (t = String(t));
594
- const e = /* @__PURE__ */ h(this);
594
+ const e = /* @__PURE__ */ p(this);
595
595
  return _(e, "has", t), e.hasOwnProperty(t);
596
596
  }
597
597
  class Ut {
@@ -608,16 +608,16 @@ class Ut {
608
608
  if (n === "__v_isShallow")
609
609
  return o;
610
610
  if (n === "__v_raw")
611
- return r === (s ? o ? qe : Bt : o ? Ue : Jt).get(e) || // receiver is not the reactive proxy, but has the same prototype
611
+ return r === (s ? o ? Je : Bt : o ? qe : Jt).get(e) || // receiver is not the reactive proxy, but has the same prototype
612
612
  // this means the receiver is a user proxy of the reactive proxy
613
613
  Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
614
614
  const i = d(e);
615
615
  if (!s) {
616
616
  let a;
617
- if (i && (a = xe[n]))
617
+ if (i && (a = Te[n]))
618
618
  return a;
619
619
  if (n === "hasOwnProperty")
620
- return Pe;
620
+ return Fe;
621
621
  }
622
622
  const c = Reflect.get(
623
623
  e,
@@ -627,7 +627,7 @@ class Ut {
627
627
  // its class methods
628
628
  /* @__PURE__ */ b(e) ? e : r
629
629
  );
630
- if ((T(n) ? zt.has(n) : Me(n)) || (s || _(e, "get", n), o))
630
+ if ((T(n) ? zt.has(n) : Pe(n)) || (s || _(e, "get", n), o))
631
631
  return c;
632
632
  if (/* @__PURE__ */ b(c)) {
633
633
  const a = i && it(n) ? c : c.value;
@@ -636,7 +636,7 @@ class Ut {
636
636
  return g(c) ? s ? /* @__PURE__ */ Ot(c) : /* @__PURE__ */ Yt(c) : c;
637
637
  }
638
638
  }
639
- class Fe extends Ut {
639
+ class ke extends Ut {
640
640
  constructor(e = !1) {
641
641
  super(!1, e);
642
642
  }
@@ -645,7 +645,7 @@ class Fe extends Ut {
645
645
  const i = d(e) && it(n);
646
646
  if (!this._isShallow) {
647
647
  const u = /* @__PURE__ */ E(o);
648
- if (!/* @__PURE__ */ S(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ h(o), r = /* @__PURE__ */ h(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
648
+ if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
649
649
  return u ? (process.env.NODE_ENV !== "production" && K(
650
650
  `Set operation on key "${String(n)}" failed: target is readonly.`,
651
651
  e[n]
@@ -657,7 +657,7 @@ class Fe extends Ut {
657
657
  r,
658
658
  /* @__PURE__ */ b(e) ? e : s
659
659
  );
660
- return e === /* @__PURE__ */ h(s) && a && (c ? V(r, o) && I(e, "set", n, r, o) : I(e, "add", n, r)), a;
660
+ return e === /* @__PURE__ */ p(s) && a && (c ? D(r, o) && I(e, "set", n, r, o) : I(e, "add", n, r)), a;
661
661
  }
662
662
  deleteProperty(e, n) {
663
663
  const r = mt(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
@@ -671,11 +671,11 @@ class Fe extends Ut {
671
671
  return _(
672
672
  e,
673
673
  "iterate",
674
- d(e) ? "length" : D
674
+ d(e) ? "length" : V
675
675
  ), Reflect.ownKeys(e);
676
676
  }
677
677
  }
678
- class ke extends Ut {
678
+ class je extends Ut {
679
679
  constructor(e = !1) {
680
680
  super(!0, e);
681
681
  }
@@ -692,14 +692,14 @@ class ke extends Ut {
692
692
  ), !0;
693
693
  }
694
694
  }
695
- const je = /* @__PURE__ */ new Fe(), Ke = /* @__PURE__ */ new ke(), St = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
696
- function He(t, e, n) {
695
+ const Ke = /* @__PURE__ */ new ke(), He = /* @__PURE__ */ new je(), yt = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
696
+ function Le(t, e, n) {
697
697
  return function(...r) {
698
- const s = this.__v_raw, o = /* @__PURE__ */ h(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, a = t === "keys" && i, u = s[t](...r), p = n ? St : e ? J : C;
698
+ const s = this.__v_raw, o = /* @__PURE__ */ p(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, a = t === "keys" && i, u = s[t](...r), h = n ? yt : e ? J : C;
699
699
  return !e && _(
700
700
  o,
701
701
  "iterate",
702
- a ? yt : D
702
+ a ? St : V
703
703
  ), M(
704
704
  // inheriting all iterator properties
705
705
  Object.create(u),
@@ -708,7 +708,7 @@ function He(t, e, n) {
708
708
  next() {
709
709
  const { value: l, done: f } = u.next();
710
710
  return f ? { value: l, done: f } : {
711
- value: c ? [p(l[0]), p(l[1])] : p(l),
711
+ value: c ? [h(l[0]), h(l[1])] : h(l),
712
712
  done: f
713
713
  };
714
714
  }
@@ -721,19 +721,19 @@ function G(t) {
721
721
  if (process.env.NODE_ENV !== "production") {
722
722
  const n = e[0] ? `on key "${e[0]}" ` : "";
723
723
  K(
724
- `${Re(t)} operation ${n}failed: target is readonly.`,
725
- /* @__PURE__ */ h(this)
724
+ `${Ce(t)} operation ${n}failed: target is readonly.`,
725
+ /* @__PURE__ */ p(this)
726
726
  );
727
727
  }
728
728
  return t === "delete" ? !1 : t === "clear" ? void 0 : this;
729
729
  };
730
730
  }
731
- function Le(t, e) {
731
+ function We(t, e) {
732
732
  const n = {
733
733
  get(s) {
734
- const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
735
- t || (V(s, c) && _(i, "get", s), _(i, "get", c));
736
- const { has: a } = Y(i), u = e ? St : t ? J : C;
734
+ const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s);
735
+ t || (D(s, c) && _(i, "get", s), _(i, "get", c));
736
+ const { has: a } = Y(i), u = e ? yt : t ? J : C;
737
737
  if (a.call(i, s))
738
738
  return u(o.get(s));
739
739
  if (a.call(i, c))
@@ -742,15 +742,15 @@ function Le(t, e) {
742
742
  },
743
743
  get size() {
744
744
  const s = this.__v_raw;
745
- return !t && _(/* @__PURE__ */ h(s), "iterate", D), s.size;
745
+ return !t && _(/* @__PURE__ */ p(s), "iterate", V), s.size;
746
746
  },
747
747
  has(s) {
748
- const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(s);
749
- return t || (V(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
748
+ const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s);
749
+ return t || (D(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
750
750
  },
751
751
  forEach(s, o) {
752
- const i = this, c = i.__v_raw, a = /* @__PURE__ */ h(c), u = e ? St : t ? J : C;
753
- return !t && _(a, "iterate", D), c.forEach((p, l) => s.call(o, u(p), u(l), i));
752
+ const i = this, c = i.__v_raw, a = /* @__PURE__ */ p(c), u = e ? yt : t ? J : C;
753
+ return !t && _(a, "iterate", V), c.forEach((h, l) => s.call(o, u(h), u(l), i));
754
754
  }
755
755
  };
756
756
  return M(
@@ -762,26 +762,26 @@ function Le(t, e) {
762
762
  clear: G("clear")
763
763
  } : {
764
764
  add(s) {
765
- const o = /* @__PURE__ */ h(this), i = Y(o), c = /* @__PURE__ */ h(s), a = !e && !/* @__PURE__ */ S(s) && !/* @__PURE__ */ E(s) ? c : s;
766
- return i.has.call(o, a) || V(s, a) && i.has.call(o, s) || V(c, a) && i.has.call(o, c) || (o.add(a), I(o, "add", a, a)), this;
765
+ const o = /* @__PURE__ */ p(this), i = Y(o), c = /* @__PURE__ */ p(s), a = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ E(s) ? c : s;
766
+ return i.has.call(o, a) || D(s, a) && i.has.call(o, s) || D(c, a) && i.has.call(o, c) || (o.add(a), I(o, "add", a, a)), this;
767
767
  },
768
768
  set(s, o) {
769
- !e && !/* @__PURE__ */ S(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ h(o));
770
- const i = /* @__PURE__ */ h(this), { has: c, get: a } = Y(i);
769
+ !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
770
+ const i = /* @__PURE__ */ p(this), { has: c, get: a } = Y(i);
771
771
  let u = c.call(i, s);
772
- u ? process.env.NODE_ENV !== "production" && xt(i, c, s) : (s = /* @__PURE__ */ h(s), u = c.call(i, s));
773
- const p = a.call(i, s);
774
- return i.set(s, o), u ? V(o, p) && I(i, "set", s, o, p) : I(i, "add", s, o), this;
772
+ u ? process.env.NODE_ENV !== "production" && xt(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
773
+ const h = a.call(i, s);
774
+ return i.set(s, o), u ? D(o, h) && I(i, "set", s, o, h) : I(i, "add", s, o), this;
775
775
  },
776
776
  delete(s) {
777
- const o = /* @__PURE__ */ h(this), { has: i, get: c } = Y(o);
777
+ const o = /* @__PURE__ */ p(this), { has: i, get: c } = Y(o);
778
778
  let a = i.call(o, s);
779
- a ? process.env.NODE_ENV !== "production" && xt(o, i, s) : (s = /* @__PURE__ */ h(s), a = i.call(o, s));
780
- const u = c ? c.call(o, s) : void 0, p = o.delete(s);
781
- return a && I(o, "delete", s, void 0, u), p;
779
+ a ? process.env.NODE_ENV !== "production" && xt(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
780
+ const u = c ? c.call(o, s) : void 0, h = o.delete(s);
781
+ return a && I(o, "delete", s, void 0, u), h;
782
782
  },
783
783
  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();
784
+ const s = /* @__PURE__ */ p(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
785
  return o && I(
786
786
  s,
787
787
  "clear",
@@ -797,24 +797,24 @@ function Le(t, e) {
797
797
  "entries",
798
798
  Symbol.iterator
799
799
  ].forEach((s) => {
800
- n[s] = He(s, t, e);
800
+ n[s] = Le(s, t, e);
801
801
  }), n;
802
802
  }
803
803
  function qt(t, e) {
804
- const n = Le(t, e);
804
+ const n = We(t, e);
805
805
  return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
806
806
  mt(n, s) && s in r ? n : r,
807
807
  s,
808
808
  o
809
809
  );
810
810
  }
811
- const We = {
811
+ const ze = {
812
812
  get: /* @__PURE__ */ qt(!1, !1)
813
- }, ze = {
813
+ }, Ue = {
814
814
  get: /* @__PURE__ */ qt(!0, !1)
815
815
  };
816
816
  function xt(t, e, n) {
817
- const r = /* @__PURE__ */ h(n);
817
+ const r = /* @__PURE__ */ p(n);
818
818
  if (r !== n && e.call(t, r)) {
819
819
  const s = Kt(t);
820
820
  K(
@@ -822,8 +822,8 @@ function xt(t, e, n) {
822
822
  );
823
823
  }
824
824
  }
825
- const Jt = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap();
826
- function Je(t) {
825
+ const Jt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap();
826
+ function Be(t) {
827
827
  switch (t) {
828
828
  case "Object":
829
829
  case "Array":
@@ -842,8 +842,8 @@ function Yt(t) {
842
842
  return /* @__PURE__ */ E(t) ? t : Gt(
843
843
  t,
844
844
  !1,
845
- je,
846
- We,
845
+ Ke,
846
+ ze,
847
847
  Jt
848
848
  );
849
849
  }
@@ -852,8 +852,8 @@ function Ot(t) {
852
852
  return Gt(
853
853
  t,
854
854
  !0,
855
- Ke,
856
- ze,
855
+ He,
856
+ Ue,
857
857
  Bt
858
858
  );
859
859
  }
@@ -869,7 +869,7 @@ function Gt(t, e, n, r, s) {
869
869
  const o = s.get(t);
870
870
  if (o)
871
871
  return o;
872
- const i = Je(Kt(t));
872
+ const i = Be(Kt(t));
873
873
  if (i === 0)
874
874
  return t;
875
875
  const c = new Proxy(
@@ -887,7 +887,7 @@ function E(t) {
887
887
  return !!(t && t.__v_isReadonly);
888
888
  }
889
889
  // @__NO_SIDE_EFFECTS__
890
- function S(t) {
890
+ function y(t) {
891
891
  return !!(t && t.__v_isShallow);
892
892
  }
893
893
  // @__NO_SIDE_EFFECTS__
@@ -895,9 +895,9 @@ function q(t) {
895
895
  return t ? !!t.__v_raw : !1;
896
896
  }
897
897
  // @__NO_SIDE_EFFECTS__
898
- function h(t) {
898
+ function p(t) {
899
899
  const e = t && t.__v_raw;
900
- return e ? /* @__PURE__ */ h(e) : t;
900
+ return e ? /* @__PURE__ */ p(e) : t;
901
901
  }
902
902
  const C = (t) => g(t) ? /* @__PURE__ */ Yt(t) : t, J = (t) => g(t) ? /* @__PURE__ */ Ot(t) : t;
903
903
  // @__NO_SIDE_EFFECTS__
@@ -906,14 +906,14 @@ function b(t) {
906
906
  }
907
907
  // @__NO_SIDE_EFFECTS__
908
908
  function Qt(t) {
909
- return Be(t, !1);
909
+ return Ye(t, !1);
910
910
  }
911
- function Be(t, e) {
912
- return /* @__PURE__ */ b(t) ? t : new Ye(t, e);
911
+ function Ye(t, e) {
912
+ return /* @__PURE__ */ b(t) ? t : new Ge(t, e);
913
913
  }
914
- class Ye {
914
+ class Ge {
915
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;
916
+ this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : C(e), this.__v_isShallow = n;
917
917
  }
918
918
  get value() {
919
919
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -923,8 +923,8 @@ class Ye {
923
923
  }) : this.dep.track(), this._value;
924
924
  }
925
925
  set value(e) {
926
- const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ S(e) || /* @__PURE__ */ E(e);
927
- e = r ? e : /* @__PURE__ */ h(e), V(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
926
+ const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ E(e);
927
+ e = r ? e : /* @__PURE__ */ p(e), D(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
928
928
  target: this,
929
929
  type: "set",
930
930
  key: "value",
@@ -933,22 +933,22 @@ class Ye {
933
933
  }) : this.dep.trigger());
934
934
  }
935
935
  }
936
- function Ge(t) {
936
+ function Qe(t) {
937
937
  return /* @__PURE__ */ b(t) ? t.value : t;
938
938
  }
939
- class Qe {
939
+ class Xe {
940
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);
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__ */ p(e);
942
942
  let s = !0, o = e;
943
943
  if (!d(e) || T(this._key) || !it(this._key))
944
944
  do
945
- s = !/* @__PURE__ */ q(o) || /* @__PURE__ */ S(o);
945
+ s = !/* @__PURE__ */ q(o) || /* @__PURE__ */ y(o);
946
946
  while (s && (o = o.__v_raw));
947
947
  this._shallow = s;
948
948
  }
949
949
  get value() {
950
950
  let e = this._object[this._key];
951
- return this._shallow && (e = Ge(e)), this._value = e === void 0 ? this._defaultValue : e;
951
+ return this._shallow && (e = Qe(e)), this._value = e === void 0 ? this._defaultValue : e;
952
952
  }
953
953
  set value(e) {
954
954
  if (this._shallow && /* @__PURE__ */ b(this._raw[this._key])) {
@@ -961,10 +961,10 @@ class Qe {
961
961
  this._object[this._key] = e;
962
962
  }
963
963
  get dep() {
964
- return De(this._raw, this._key);
964
+ return xe(this._raw, this._key);
965
965
  }
966
966
  }
967
- class Xe {
967
+ class Ze {
968
968
  constructor(e) {
969
969
  this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
970
970
  }
@@ -973,24 +973,24 @@ class Xe {
973
973
  }
974
974
  }
975
975
  // @__NO_SIDE_EFFECTS__
976
- function Ze(t, e, n) {
977
- return /* @__PURE__ */ b(t) ? t : $(t) ? new Xe(t) : g(t) && arguments.length > 1 ? tn(t, e, n) : /* @__PURE__ */ Qt(t);
978
- }
979
976
  function tn(t, e, n) {
980
- return new Qe(t, e, n);
977
+ return /* @__PURE__ */ b(t) ? t : $(t) ? new Ze(t) : g(t) && arguments.length > 1 ? en(t, e, n) : /* @__PURE__ */ Qt(t);
978
+ }
979
+ function en(t, e, n) {
980
+ return new Xe(t, e, n);
981
981
  }
982
982
  const x = [];
983
- function en(t) {
983
+ function nn(t) {
984
984
  x.push(t);
985
985
  }
986
- function nn() {
986
+ function sn() {
987
987
  x.pop();
988
988
  }
989
- let pt = !1;
989
+ let ht = !1;
990
990
  function H(t, ...e) {
991
- if (pt) return;
992
- pt = !0, lt();
993
- const n = x.length ? x[x.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = sn();
991
+ if (ht) return;
992
+ ht = !0, lt();
993
+ const n = x.length ? x[x.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = rn();
994
994
  if (r)
995
995
  It(
996
996
  r,
@@ -1004,7 +1004,7 @@ function H(t, ...e) {
1004
1004
  }).join(""),
1005
1005
  n && n.proxy,
1006
1006
  s.map(
1007
- ({ vnode: o }) => `at <${he(n, o.type)}>`
1007
+ ({ vnode: o }) => `at <${pe(n, o.type)}>`
1008
1008
  ).join(`
1009
1009
  `),
1010
1010
  s
@@ -1013,11 +1013,11 @@ function H(t, ...e) {
1013
1013
  else {
1014
1014
  const o = [`[Vue warn]: ${t}`, ...e];
1015
1015
  s.length && o.push(`
1016
- `, ...rn(s)), console.warn(...o);
1016
+ `, ...on(s)), console.warn(...o);
1017
1017
  }
1018
- at(), pt = !1;
1018
+ at(), ht = !1;
1019
1019
  }
1020
- function sn() {
1020
+ function rn() {
1021
1021
  let t = x[x.length - 1];
1022
1022
  if (!t)
1023
1023
  return [];
@@ -1033,29 +1033,29 @@ function sn() {
1033
1033
  }
1034
1034
  return e;
1035
1035
  }
1036
- function rn(t) {
1036
+ function on(t) {
1037
1037
  const e = [];
1038
1038
  return t.forEach((n, r) => {
1039
1039
  e.push(...r === 0 ? [] : [`
1040
- `], ...on(n));
1040
+ `], ...cn(n));
1041
1041
  }), e;
1042
1042
  }
1043
- function on({ vnode: t, recurseCount: e }) {
1044
- const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${he(
1043
+ function cn({ vnode: t, recurseCount: e }) {
1044
+ const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${pe(
1045
1045
  t.component,
1046
1046
  t.type,
1047
1047
  r
1048
1048
  )}`, o = ">" + n;
1049
- return t.props ? [s, ...cn(t.props), o] : [s + o];
1049
+ return t.props ? [s, ...ln(t.props), o] : [s + o];
1050
1050
  }
1051
- function cn(t) {
1051
+ function ln(t) {
1052
1052
  const e = [], n = Object.keys(t);
1053
1053
  return n.slice(0, 3).forEach((r) => {
1054
1054
  e.push(...Xt(r, t[r]));
1055
1055
  }), n.length > 3 && e.push(" ..."), e;
1056
1056
  }
1057
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, ">"]) : $(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ h(e), n ? e : [`${t}=`, e]);
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__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : $(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1059
1059
  }
1060
1060
  const Zt = {
1061
1061
  sp: "serverPrefetch hook",
@@ -1103,10 +1103,10 @@ function te(t, e, n, r = !0) {
1103
1103
  let c = e.parent;
1104
1104
  const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Zt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1105
1105
  for (; c; ) {
1106
- const p = c.ec;
1107
- if (p) {
1108
- for (let l = 0; l < p.length; l++)
1109
- if (p[l](t, a, u) === !1)
1106
+ const h = c.ec;
1107
+ if (h) {
1108
+ for (let l = 0; l < h.length; l++)
1109
+ if (h[l](t, a, u) === !1)
1110
1110
  return;
1111
1111
  }
1112
1112
  c = c.parent;
@@ -1120,12 +1120,12 @@ function te(t, e, n, r = !0) {
1120
1120
  return;
1121
1121
  }
1122
1122
  }
1123
- ln(t, n, s, r, i);
1123
+ an(t, n, s, r, i);
1124
1124
  }
1125
- function ln(t, e, n, r = !0, s = !1) {
1125
+ function an(t, e, n, r = !0, s = !1) {
1126
1126
  if (process.env.NODE_ENV !== "production") {
1127
1127
  const o = Zt[e];
1128
- if (n && en(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && nn(), r)
1128
+ if (n && nn(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && sn(), r)
1129
1129
  throw t;
1130
1130
  console.error(t);
1131
1131
  } else {
@@ -1134,35 +1134,35 @@ function ln(t, e, n, r = !0, s = !1) {
1134
1134
  console.error(t);
1135
1135
  }
1136
1136
  }
1137
- const y = [];
1137
+ const S = [];
1138
1138
  let v = -1;
1139
1139
  const j = [];
1140
1140
  let A = null, F = 0;
1141
- const an = /* @__PURE__ */ Promise.resolve();
1141
+ const un = /* @__PURE__ */ Promise.resolve();
1142
1142
  let wt = null;
1143
- const un = 100;
1144
- function fn(t) {
1145
- let e = v + 1, n = y.length;
1143
+ const fn = 100;
1144
+ function pn(t) {
1145
+ let e = v + 1, n = S.length;
1146
1146
  for (; e < n; ) {
1147
- const r = e + n >>> 1, s = y[r], o = B(s);
1147
+ const r = e + n >>> 1, s = S[r], o = B(s);
1148
1148
  o < t || o === t && s.flags & 2 ? e = r + 1 : n = r;
1149
1149
  }
1150
1150
  return e;
1151
1151
  }
1152
1152
  function hn(t) {
1153
1153
  if (!(t.flags & 1)) {
1154
- const e = B(t), n = y[y.length - 1];
1154
+ const e = B(t), n = S[S.length - 1];
1155
1155
  !n || // fast path when the job id is larger than the tail
1156
- !(t.flags & 2) && e >= B(n) ? y.push(t) : y.splice(fn(e), 0, t), t.flags |= 1, ee();
1156
+ !(t.flags & 2) && e >= B(n) ? S.push(t) : S.splice(pn(e), 0, t), t.flags |= 1, ee();
1157
1157
  }
1158
1158
  }
1159
1159
  function ee() {
1160
- wt || (wt = an.then(ne));
1160
+ wt || (wt = un.then(ne));
1161
1161
  }
1162
- function pn(t) {
1162
+ function dn(t) {
1163
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();
1164
1164
  }
1165
- function dn(t) {
1165
+ function _n(t) {
1166
1166
  if (j.length) {
1167
1167
  const e = [...new Set(j)].sort(
1168
1168
  (n, r) => B(n) - B(r)
@@ -1183,8 +1183,8 @@ function ne(t) {
1183
1183
  process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1184
1184
  const e = process.env.NODE_ENV !== "production" ? (n) => se(t, n) : kt;
1185
1185
  try {
1186
- for (v = 0; v < y.length; v++) {
1187
- const n = y[v];
1186
+ for (v = 0; v < S.length; v++) {
1187
+ const n = S[v];
1188
1188
  if (n && !(n.flags & 8)) {
1189
1189
  if (process.env.NODE_ENV !== "production" && e(n))
1190
1190
  continue;
@@ -1196,16 +1196,16 @@ function ne(t) {
1196
1196
  }
1197
1197
  }
1198
1198
  } finally {
1199
- for (; v < y.length; v++) {
1200
- const n = y[v];
1199
+ for (; v < S.length; v++) {
1200
+ const n = S[v];
1201
1201
  n && (n.flags &= -2);
1202
1202
  }
1203
- v = -1, y.length = 0, dn(t), wt = null, (y.length || j.length) && ne(t);
1203
+ v = -1, S.length = 0, _n(t), wt = null, (S.length || j.length) && ne(t);
1204
1204
  }
1205
1205
  }
1206
1206
  function se(t, e) {
1207
1207
  const n = t.get(e) || 0;
1208
- if (n > un) {
1208
+ if (n > fn) {
1209
1209
  const r = e.i, s = r && fe(r.type);
1210
1210
  return te(
1211
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.`,
@@ -1217,27 +1217,27 @@ function se(t, e) {
1217
1217
  }
1218
1218
  const dt = /* @__PURE__ */ new Map();
1219
1219
  process.env.NODE_ENV !== "production" && (ct().__VUE_HMR_RUNTIME__ = {
1220
- createRecord: _t(_n),
1221
- rerender: _t(gn),
1222
- reload: _t(bn)
1220
+ createRecord: _t(gn),
1221
+ rerender: _t(bn),
1222
+ reload: _t(mn)
1223
1223
  });
1224
1224
  const et = /* @__PURE__ */ new Map();
1225
- function _n(t, e) {
1225
+ function gn(t, e) {
1226
1226
  return et.has(t) ? !1 : (et.set(t, {
1227
1227
  initialDef: nt(e),
1228
1228
  instances: /* @__PURE__ */ new Set()
1229
1229
  }), !0);
1230
1230
  }
1231
1231
  function nt(t) {
1232
- return pe(t) ? t.__vccOpts : t;
1232
+ return he(t) ? t.__vccOpts : t;
1233
1233
  }
1234
- function gn(t, e) {
1234
+ function bn(t, e) {
1235
1235
  const n = et.get(t);
1236
1236
  n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
1237
1237
  e && (r.render = e, nt(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
1238
1238
  }));
1239
1239
  }
1240
- function bn(t, e) {
1240
+ function mn(t, e) {
1241
1241
  const n = et.get(t);
1242
1242
  if (!n) return;
1243
1243
  e = nt(e), Tt(n.initialDef, e);
@@ -1251,7 +1251,7 @@ function bn(t, e) {
1251
1251
  "[HMR] Root or manually mounted instance modified. Full reload required."
1252
1252
  ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1253
1253
  }
1254
- pn(() => {
1254
+ dn(() => {
1255
1255
  dt.clear();
1256
1256
  });
1257
1257
  }
@@ -1283,29 +1283,29 @@ function re(t, e) {
1283
1283
  k || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Q = []);
1284
1284
  }, 3e3)) : Q = [];
1285
1285
  }
1286
- let st = null, mn = null;
1286
+ let st = null, Sn = null;
1287
1287
  const yn = (t) => t.__isTeleport;
1288
1288
  function oe(t, e) {
1289
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
1290
  }
1291
1291
  ct().requestIdleCallback;
1292
1292
  ct().cancelIdleCallback;
1293
- const Sn = /* @__PURE__ */ Symbol.for("v-ndc"), On = {};
1294
- process.env.NODE_ENV !== "production" && (On.ownKeys = (t) => (H(
1293
+ const On = /* @__PURE__ */ Symbol.for("v-ndc"), wn = {};
1294
+ process.env.NODE_ENV !== "production" && (wn.ownKeys = (t) => (H(
1295
1295
  "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
1296
  ), Reflect.ownKeys(t)));
1297
- const wn = {}, ie = (t) => Object.getPrototypeOf(t) === wn, En = (t) => t.__isSuspense, ce = /* @__PURE__ */ Symbol.for("v-fgt"), Nn = /* @__PURE__ */ Symbol.for("v-txt"), vn = /* @__PURE__ */ Symbol.for("v-cmt");
1298
- function Rn(t) {
1297
+ const En = {}, ie = (t) => Object.getPrototypeOf(t) === En, Nn = (t) => t.__isSuspense, ce = /* @__PURE__ */ Symbol.for("v-fgt"), vn = /* @__PURE__ */ Symbol.for("v-txt"), Rn = /* @__PURE__ */ Symbol.for("v-cmt");
1298
+ function Cn(t) {
1299
1299
  return t ? t.__v_isVNode === !0 : !1;
1300
1300
  }
1301
- const Cn = (...t) => ae(
1301
+ const An = (...t) => ae(
1302
1302
  ...t
1303
1303
  ), le = ({ key: t }) => t ?? null, X = ({
1304
1304
  ref: t,
1305
1305
  ref_key: e,
1306
1306
  ref_for: n
1307
1307
  }) => (typeof t == "number" && (t = "" + t), t != null ? R(t) || /* @__PURE__ */ b(t) || $(t) ? { i: st, r: t, k: e, f: !!n } : t : null);
1308
- function An(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1, c = !1) {
1308
+ function In(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1, c = !1) {
1309
1309
  const a = {
1310
1310
  __v_isVNode: !0,
1311
1311
  __v_skip: !0,
@@ -1313,7 +1313,7 @@ function An(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1
1313
1313
  props: e,
1314
1314
  key: e && le(e),
1315
1315
  ref: e && X(e),
1316
- scopeId: mn,
1316
+ scopeId: Sn,
1317
1317
  slotScopeIds: null,
1318
1318
  children: n,
1319
1319
  component: null,
@@ -1337,9 +1337,9 @@ function An(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1
1337
1337
  };
1338
1338
  return c ? (ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && H("VNode created with invalid key (NaN). VNode type:", a.type), a;
1339
1339
  }
1340
- const In = process.env.NODE_ENV !== "production" ? Cn : ae;
1340
+ const $n = process.env.NODE_ENV !== "production" ? An : ae;
1341
1341
  function ae(t, e = null, n = null, r = 0, s = null, o = !1) {
1342
- if ((!t || t === Sn) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = vn), Rn(t)) {
1342
+ if ((!t || t === On) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = Rn), Cn(t)) {
1343
1343
  const c = rt(
1344
1344
  t,
1345
1345
  e,
@@ -1348,18 +1348,18 @@ function ae(t, e = null, n = null, r = 0, s = null, o = !1) {
1348
1348
  );
1349
1349
  return n && ot(c, n), c.patchFlag = -2, c;
1350
1350
  }
1351
- if (pe(t) && (t = t.__vccOpts), e) {
1352
- e = $n(e);
1351
+ if (he(t) && (t = t.__vccOpts), e) {
1352
+ e = Dn(e);
1353
1353
  let { class: c, style: a } = e;
1354
1354
  c && !R(c) && (e.class = Nt(c)), g(a) && (/* @__PURE__ */ q(a) && !d(a) && (a = M({}, a)), e.style = Et(a));
1355
1355
  }
1356
- const i = R(t) ? 1 : En(t) ? 128 : yn(t) ? 64 : g(t) ? 4 : $(t) ? 2 : 0;
1357
- return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ h(t), H(
1356
+ const i = R(t) ? 1 : Nn(t) ? 128 : yn(t) ? 64 : g(t) ? 4 : $(t) ? 2 : 0;
1357
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ p(t), H(
1358
1358
  "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
1359
  `
1360
1360
  Component that was made reactive: `,
1361
1361
  t
1362
- )), An(
1362
+ )), In(
1363
1363
  t,
1364
1364
  e,
1365
1365
  n,
@@ -1370,11 +1370,11 @@ Component that was made reactive: `,
1370
1370
  !0
1371
1371
  );
1372
1372
  }
1373
- function $n(t) {
1373
+ function Dn(t) {
1374
1374
  return t ? /* @__PURE__ */ q(t) || ie(t) ? M({}, t) : t : null;
1375
1375
  }
1376
1376
  function rt(t, e, n = !1, r = !1) {
1377
- const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Dn(s || {}, e) : s, p = {
1377
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? xn(s || {}, e) : s, h = {
1378
1378
  __v_isVNode: !0,
1379
1379
  __v_skip: !0,
1380
1380
  type: t.type,
@@ -1419,16 +1419,16 @@ function rt(t, e, n = !1, r = !1) {
1419
1419
  ce: t.ce
1420
1420
  };
1421
1421
  return a && r && oe(
1422
- p,
1423
- a.clone(p)
1424
- ), p;
1422
+ h,
1423
+ a.clone(h)
1424
+ ), h;
1425
1425
  }
1426
1426
  function ue(t) {
1427
1427
  const e = rt(t);
1428
1428
  return d(t.children) && (e.children = t.children.map(ue)), e;
1429
1429
  }
1430
1430
  function Vn(t = " ", e = 0) {
1431
- return In(Nn, null, t, e);
1431
+ return $n(vn, null, t, e);
1432
1432
  }
1433
1433
  function ot(t, e) {
1434
1434
  let n = 0;
@@ -1454,7 +1454,7 @@ function ot(t, e) {
1454
1454
  e = String(e), r & 64 ? (n = 16, e = [Vn(e)]) : n = 8;
1455
1455
  t.children = e, t.shapeFlag |= n;
1456
1456
  }
1457
- function Dn(...t) {
1457
+ function xn(...t) {
1458
1458
  const e = {};
1459
1459
  for (let n = 0; n < t.length; n++) {
1460
1460
  const r = t[n];
@@ -1463,11 +1463,11 @@ function Dn(...t) {
1463
1463
  e.class !== r.class && (e.class = Nt([e.class, r.class]));
1464
1464
  else if (s === "style")
1465
1465
  e.style = Et([e.style, r.style]);
1466
- else if (Oe(s)) {
1466
+ else if (we(s)) {
1467
1467
  const o = e[s], i = r[s];
1468
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
1469
1469
  // the model listener.
1470
- !we(s) && (e[s] = i);
1470
+ !Ee(s) && (e[s] = i);
1471
1471
  } else s !== "" && (e[s] = r[s]);
1472
1472
  }
1473
1473
  return e;
@@ -1488,11 +1488,11 @@ function Dn(...t) {
1488
1488
  );
1489
1489
  }
1490
1490
  process.env.NODE_ENV;
1491
- const xn = /(?:^|[-_])\w/g, Tn = (t) => t.replace(xn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1491
+ const Tn = /(?:^|[-_])\w/g, Mn = (t) => t.replace(Tn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1492
1492
  function fe(t, e = !0) {
1493
1493
  return $(t) ? t.displayName || t.name : t.name || e && t.__name;
1494
1494
  }
1495
- function he(t, e, n = !1) {
1495
+ function pe(t, e, n = !1) {
1496
1496
  let r = fe(e);
1497
1497
  if (!r && e.__file) {
1498
1498
  const s = e.__file.match(/([^/\\]+)\.\w+$/);
@@ -1508,12 +1508,12 @@ function he(t, e, n = !1) {
1508
1508
  t.parent.type.components
1509
1509
  ) || s(t.appContext.components);
1510
1510
  }
1511
- return r ? Tn(r) : n ? "App" : "Anonymous";
1511
+ return r ? Mn(r) : n ? "App" : "Anonymous";
1512
1512
  }
1513
- function pe(t) {
1513
+ function he(t) {
1514
1514
  return $(t) && "__vccOpts" in t;
1515
1515
  }
1516
- function Mn() {
1516
+ function Pn() {
1517
1517
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1518
1518
  return;
1519
1519
  const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
@@ -1529,7 +1529,7 @@ function Mn() {
1529
1529
  return at(), [
1530
1530
  "div",
1531
1531
  {},
1532
- ["span", t, p(l)],
1532
+ ["span", t, h(l)],
1533
1533
  "<",
1534
1534
  c(f),
1535
1535
  ">"
@@ -1539,7 +1539,7 @@ function Mn() {
1539
1539
  return [
1540
1540
  "div",
1541
1541
  {},
1542
- ["span", t, /* @__PURE__ */ S(l) ? "ShallowReactive" : "Reactive"],
1542
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReactive" : "Reactive"],
1543
1543
  "<",
1544
1544
  c(l),
1545
1545
  `>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
@@ -1548,7 +1548,7 @@ function Mn() {
1548
1548
  return [
1549
1549
  "div",
1550
1550
  {},
1551
- ["span", t, /* @__PURE__ */ S(l) ? "ShallowReadonly" : "Readonly"],
1551
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReadonly" : "Readonly"],
1552
1552
  "<",
1553
1553
  c(l),
1554
1554
  ">"
@@ -1570,7 +1570,7 @@ function Mn() {
1570
1570
  };
1571
1571
  function o(l) {
1572
1572
  const f = [];
1573
- l.type.props && l.props && f.push(i("props", /* @__PURE__ */ h(l.props))), l.setupState !== bt && f.push(i("setup", l.setupState)), l.data !== bt && f.push(i("data", /* @__PURE__ */ h(l.data)));
1573
+ l.type.props && l.props && f.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== bt && f.push(i("setup", l.setupState)), l.data !== bt && f.push(i("data", /* @__PURE__ */ p(l.data)));
1574
1574
  const m = a(l, "computed");
1575
1575
  m && f.push(i("computed", m));
1576
1576
  const O = a(l, "inject");
@@ -1613,7 +1613,7 @@ function Mn() {
1613
1613
  ] : ["span", {}];
1614
1614
  }
1615
1615
  function c(l, f = !0) {
1616
- return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : g(l) ? ["object", { object: f ? /* @__PURE__ */ h(l) : l }] : ["span", n, String(l)];
1616
+ return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : g(l) ? ["object", { object: f ? /* @__PURE__ */ p(l) : l }] : ["span", n, String(l)];
1617
1617
  }
1618
1618
  function a(l, f) {
1619
1619
  const m = l.type;
@@ -1629,41 +1629,52 @@ function Mn() {
1629
1629
  if (d(O) && O.includes(f) || g(O) && f in O || l.extends && u(l.extends, f, m) || l.mixins && l.mixins.some((L) => u(L, f, m)))
1630
1630
  return !0;
1631
1631
  }
1632
- function p(l) {
1633
- return /* @__PURE__ */ S(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1632
+ function h(l) {
1633
+ return /* @__PURE__ */ y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1634
1634
  }
1635
1635
  window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1636
1636
  }
1637
1637
  process.env.NODE_ENV;
1638
1638
  process.env.NODE_ENV;
1639
1639
  process.env.NODE_ENV;
1640
- function Pn() {
1641
- Mn();
1640
+ function Fn() {
1641
+ Pn();
1642
1642
  }
1643
- process.env.NODE_ENV !== "production" && Pn();
1644
- function Wn(t, e, n) {
1643
+ process.env.NODE_ENV !== "production" && Fn();
1644
+ const de = /* @__PURE__ */ new WeakMap();
1645
+ function zn(t, e, n) {
1645
1646
  const r = n ? { storeOptions: n } : {};
1646
- return typeof e == "function" ? Fn(
1647
+ return typeof e == "function" ? kn(
1647
1648
  t,
1648
1649
  e,
1649
1650
  r
1650
- ) : kn(
1651
+ ) : jn(
1651
1652
  t,
1652
1653
  e,
1653
1654
  r
1654
1655
  );
1655
1656
  }
1656
- function Fn(t, e, n) {
1657
- return Mt(t, e, n);
1657
+ function Un(t) {
1658
+ return de.get(t);
1658
1659
  }
1659
1660
  function kn(t, e, n) {
1661
+ const r = {
1662
+ id: t,
1663
+ extensions: {}
1664
+ }, s = Mt(t, () => e(r), n);
1665
+ return Object.assign(((...o) => {
1666
+ const i = s(...o);
1667
+ return de.set(i, r), i;
1668
+ }), s);
1669
+ }
1670
+ function jn(t, e, n) {
1660
1671
  return n && (e = { ...e, ...n ?? {} }), Mt(t, e);
1661
1672
  }
1662
- const jn = /* @__PURE__ */ new Set(["_", "$"]);
1663
- function Kn(t) {
1664
- return jn.has(t[0]);
1673
+ const Kn = /* @__PURE__ */ new Set(["_", "$"]);
1674
+ function Hn(t) {
1675
+ return Kn.has(t[0]);
1665
1676
  }
1666
- class zn extends Pt {
1677
+ class qn extends Pt {
1667
1678
  _className = "Store";
1668
1679
  _onAction;
1669
1680
  _options;
@@ -1712,7 +1723,7 @@ class zn extends Pt {
1712
1723
  * @param value
1713
1724
  */
1714
1725
  addToState(e, n) {
1715
- this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Qt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Ze(this.state, e);
1726
+ this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Qt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ tn(this.state, e);
1716
1727
  }
1717
1728
  addSubscription(e, n, r) {
1718
1729
  this._subscriptions[e] = { subscription: n, ...r ?? {} };
@@ -1729,7 +1740,7 @@ class zn extends Pt {
1729
1740
  return new this(e, n, r, s);
1730
1741
  }
1731
1742
  hasDeniedFirstChar(e) {
1732
- return Kn(e[0]);
1743
+ return Hn(e[0]);
1733
1744
  }
1734
1745
  static hasRequiredKeys(e) {
1735
1746
  return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
@@ -1757,17 +1768,18 @@ class zn extends Pt {
1757
1768
  return this.store.hasOwnProperty(e);
1758
1769
  }
1759
1770
  }
1760
- function Un(t, e) {
1771
+ function Jn(t, e) {
1761
1772
  const n = new ye(t, e);
1762
1773
  return n.plugin.bind(n);
1763
1774
  }
1764
1775
  export {
1765
- ge as CustomConsole,
1776
+ be as CustomConsole,
1766
1777
  Ft as PLUGIN_NAME,
1767
- Ln as PluginSubscriber,
1778
+ Wn as PluginSubscriber,
1768
1779
  ye as PluginSubscription,
1769
- zn as Store,
1770
- Un as createPlugin,
1771
- Wn as defineAStore,
1780
+ qn as Store,
1781
+ Jn as createPlugin,
1782
+ zn as defineAStore,
1783
+ Un as getDefineAStoreSetupContext,
1772
1784
  gt as isEmpty
1773
1785
  };