pinia-plugin-subscription 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineStore as It } from "pinia";
2
- class Fn {
1
+ import { defineStore as $t } from "pinia";
2
+ class Pn {
3
3
  _console;
4
4
  _createInstance;
5
5
  _name;
@@ -44,8 +44,7 @@ class Fn {
44
44
  return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, r, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
45
45
  }
46
46
  }
47
- class $t {
48
- _className;
47
+ class Vt {
49
48
  _console;
50
49
  _debug = !1;
51
50
  get console() {
@@ -70,8 +69,8 @@ class $t {
70
69
  this.console.error(...e);
71
70
  }
72
71
  }
73
- const Vt = "pinia-plugin-subscription", ce = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
74
- function le(t, e) {
72
+ const Dt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
+ function ae(t, e) {
75
74
  if (!t)
76
75
  throw new Error("Style instructions are required");
77
76
  console.log(
@@ -81,7 +80,7 @@ function le(t, e) {
81
80
  ...e
82
81
  );
83
82
  }
84
- class ae {
83
+ class ue {
85
84
  _bgColor = "#ffec73";
86
85
  _color = "green";
87
86
  _icon = "🍍⚡";
@@ -93,10 +92,10 @@ class ae {
93
92
  info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
94
93
  };
95
94
  formatMessage(e, n) {
96
- return ` [${n} ${Vt}] - ${e} `;
95
+ return ` [${n} ${Dt}] - ${e} `;
97
96
  }
98
97
  generateStyle(e) {
99
- return ce(e.bgColor, e.color);
98
+ return le(e.bgColor, e.color);
100
99
  }
101
100
  getStyleDefinition(e) {
102
101
  return this._styles[e ?? "info"];
@@ -120,21 +119,22 @@ class ae {
120
119
  return [this.formatMessage(e.shift(), n), ...e ?? []];
121
120
  }
122
121
  useLog(e, n) {
123
- le(
122
+ ae(
124
123
  this.generateStyle(e),
125
124
  this.rebuildArgs(n, e.icon)
126
125
  );
127
126
  }
128
127
  }
129
- class ue extends ae {
130
- _pluginName = Vt;
128
+ class fe extends ue {
129
+ _pluginName = Dt;
131
130
  }
132
- const fe = new ue();
133
- function at(t) {
131
+ const he = new fe();
132
+ function ut(t) {
134
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");
135
134
  }
136
- const he = "PluginSubscription";
137
- class pe extends $t {
135
+ const wt = "PluginSubscription";
136
+ class pe extends Vt {
137
+ _className = wt;
138
138
  _pluginDebug;
139
139
  _resetStoreCallback = [];
140
140
  _subscribers = [];
@@ -145,11 +145,11 @@ class pe extends $t {
145
145
  this._subscribers = e;
146
146
  }
147
147
  get subscriptions() {
148
- if (!at(this._subscriptions))
148
+ if (!ut(this._subscriptions))
149
149
  return this._subscriptions;
150
150
  }
151
151
  constructor(e, n) {
152
- super(Array.isArray(n) && !!n?.includes(he), fe), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
152
+ super(Array.isArray(n) && !!n?.includes(wt), he), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
153
153
  }
154
154
  addResetStoreCallback(e) {
155
155
  this._resetStoreCallback.push(e);
@@ -223,7 +223,7 @@ class pe extends $t {
223
223
  i.invoke(
224
224
  { store: e, options: { ...n, ...u } },
225
225
  this.debug
226
- ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), at(a) || a?.forEach(
226
+ ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), ut(a) || a?.forEach(
227
227
  (f) => i.invoke(
228
228
  {
229
229
  store: f,
@@ -248,21 +248,21 @@ function de(t) {
248
248
  for (const n of t.split(",")) e[n] = 1;
249
249
  return (n) => n in e;
250
250
  }
251
- const ut = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
251
+ const ft = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
252
252
  process.env.NODE_ENV !== "production" && Object.freeze([]);
253
- const Dt = () => {
253
+ const xt = () => {
254
254
  }, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ge = (t) => t.startsWith("onUpdate:"), D = Object.assign, be = Object.prototype.hasOwnProperty, ft = (t, e) => be.call(t, e), d = Array.isArray, H = (t) => xt(t) === "[object Map]", I = (t) => typeof t == "function", v = (t) => typeof t == "string", V = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", me = Object.prototype.toString, xt = (t) => me.call(t), Tt = (t) => xt(t).slice(8, -1), tt = (t) => v(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ye = (t) => {
255
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ge = (t) => t.startsWith("onUpdate:"), D = Object.assign, be = Object.prototype.hasOwnProperty, ht = (t, e) => be.call(t, e), d = Array.isArray, H = (t) => Tt(t) === "[object Map]", I = (t) => typeof t == "function", v = (t) => typeof t == "string", V = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", me = Object.prototype.toString, Tt = (t) => me.call(t), Mt = (t) => Tt(t).slice(8, -1), et = (t) => v(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ye = (t) => {
256
256
  const e = /* @__PURE__ */ Object.create(null);
257
257
  return ((n) => e[n] || (e[n] = t(n)));
258
258
  }, Se = ye((t) => t.charAt(0).toUpperCase() + t.slice(1)), L = (t, e) => !Object.is(t, e);
259
- let wt;
260
- const et = () => wt || (wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
- function _t(t) {
259
+ let Nt;
260
+ const nt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
+ function gt(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 = v(r) ? Ne(r) : _t(r);
265
+ const r = t[n], s = v(r) ? Ne(r) : gt(r);
266
266
  if (s)
267
267
  for (const o in s)
268
268
  e[o] = s[o];
@@ -281,13 +281,13 @@ function Ne(t) {
281
281
  }
282
282
  }), e;
283
283
  }
284
- function gt(t) {
284
+ function bt(t) {
285
285
  let e = "";
286
286
  if (v(t))
287
287
  e = t;
288
288
  else if (d(t))
289
289
  for (let n = 0; n < t.length; n++) {
290
- const r = gt(t[n]);
290
+ const r = bt(t[n]);
291
291
  r && (e += r + " ");
292
292
  }
293
293
  else if (_(t))
@@ -298,17 +298,17 @@ function gt(t) {
298
298
  function F(t, ...e) {
299
299
  console.warn(`[Vue warn] ${t}`, ...e);
300
300
  }
301
- let Mt = 0, nt;
302
- function bt() {
303
- Mt++;
304
- }
301
+ let Pt = 0, st;
305
302
  function mt() {
306
- if (--Mt > 0)
303
+ Pt++;
304
+ }
305
+ function yt() {
306
+ if (--Pt > 0)
307
307
  return;
308
308
  let t;
309
- for (; nt; ) {
310
- let e = nt;
311
- for (nt = void 0; e; ) {
309
+ for (; st; ) {
310
+ let e = st;
311
+ for (st = void 0; e; ) {
312
312
  const n = e.next;
313
313
  if (e.next = void 0, e.flags &= -9, e.flags & 1)
314
314
  try {
@@ -332,7 +332,7 @@ class ve {
332
332
  this.version++, this.notify(e);
333
333
  }
334
334
  notify(e) {
335
- bt();
335
+ mt();
336
336
  try {
337
337
  if (process.env.NODE_ENV !== "production")
338
338
  for (let n = this.subsHead; n; n = n.nextSub)
@@ -347,19 +347,19 @@ class ve {
347
347
  for (let n = this.subs; n; n = n.prevSub)
348
348
  n.sub.notify() && n.sub.dep.notify();
349
349
  } finally {
350
- mt();
350
+ yt();
351
351
  }
352
352
  }
353
353
  }
354
- const Pt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ Symbol(
354
+ const Ft = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ Symbol(
355
355
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
356
- ), Nt = /* @__PURE__ */ Symbol(
357
- process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
358
356
  ), vt = /* @__PURE__ */ Symbol(
357
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
358
+ ), Rt = /* @__PURE__ */ Symbol(
359
359
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
360
360
  );
361
361
  function A(t, e, n, r, s, o) {
362
- const i = Pt.get(t);
362
+ const i = Ft.get(t);
363
363
  if (!i)
364
364
  return;
365
365
  const c = (a) => {
@@ -372,48 +372,48 @@ function A(t, e, n, r, s, o) {
372
372
  oldTarget: o
373
373
  }) : a.trigger());
374
374
  };
375
- if (bt(), e === "clear")
375
+ if (mt(), e === "clear")
376
376
  i.forEach(c);
377
377
  else {
378
- const a = d(t), u = a && tt(n);
378
+ const a = d(t), u = a && et(n);
379
379
  if (a && n === "length") {
380
380
  const f = Number(r);
381
381
  i.forEach((l, h) => {
382
- (h === "length" || h === vt || !V(h) && h >= f) && c(l);
382
+ (h === "length" || h === Rt || !V(h) && h >= f) && c(l);
383
383
  });
384
384
  } else
385
- switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(vt)), e) {
385
+ switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(Rt)), e) {
386
386
  case "add":
387
- a ? u && c(i.get("length")) : (c(i.get(st)), H(t) && c(i.get(Nt)));
387
+ a ? u && c(i.get("length")) : (c(i.get(rt)), H(t) && c(i.get(vt)));
388
388
  break;
389
389
  case "delete":
390
- a || (c(i.get(st)), H(t) && c(i.get(Nt)));
390
+ a || (c(i.get(rt)), H(t) && c(i.get(vt)));
391
391
  break;
392
392
  case "set":
393
- H(t) && c(i.get(st));
393
+ H(t) && c(i.get(rt));
394
394
  break;
395
395
  }
396
396
  }
397
- mt();
397
+ yt();
398
398
  }
399
399
  function Re(t, e) {
400
- const n = Pt.get(t);
400
+ const n = Ft.get(t);
401
401
  return n && n.get(e);
402
402
  }
403
403
  function x(t) {
404
404
  const e = /* @__PURE__ */ p(t);
405
405
  return e === t || /* @__PURE__ */ y(t) ? e : e.map(R);
406
406
  }
407
- function yt(t) {
407
+ function St(t) {
408
408
  return t = /* @__PURE__ */ p(t), t;
409
409
  }
410
410
  function O(t, e) {
411
- return /* @__PURE__ */ E(t) ? z(/* @__PURE__ */ St(t) ? R(e) : e) : R(e);
411
+ return /* @__PURE__ */ E(t) ? z(/* @__PURE__ */ Ot(t) ? R(e) : e) : R(e);
412
412
  }
413
413
  const Ce = {
414
414
  __proto__: null,
415
415
  [Symbol.iterator]() {
416
- return rt(this, Symbol.iterator, (t) => O(this, t));
416
+ return ot(this, Symbol.iterator, (t) => O(this, t));
417
417
  },
418
418
  concat(...t) {
419
419
  return x(this).concat(
@@ -421,7 +421,7 @@ const Ce = {
421
421
  );
422
422
  },
423
423
  entries() {
424
- return rt(this, "entries", (t) => (t[1] = O(this, t[1]), t));
424
+ return ot(this, "entries", (t) => (t[1] = O(this, t[1]), t));
425
425
  },
426
426
  every(t, e) {
427
427
  return w(this, "every", t, e, void 0, arguments);
@@ -467,17 +467,17 @@ const Ce = {
467
467
  return w(this, "forEach", t, e, void 0, arguments);
468
468
  },
469
469
  includes(...t) {
470
- return ot(this, "includes", t);
470
+ return it(this, "includes", t);
471
471
  },
472
472
  indexOf(...t) {
473
- return ot(this, "indexOf", t);
473
+ return it(this, "indexOf", t);
474
474
  },
475
475
  join(t) {
476
476
  return x(this).join(t);
477
477
  },
478
478
  // keys() iterator only reads `length`, no optimization required
479
479
  lastIndexOf(...t) {
480
- return ot(this, "lastIndexOf", t);
480
+ return it(this, "lastIndexOf", t);
481
481
  },
482
482
  map(t, e) {
483
483
  return w(this, "map", t, e, void 0, arguments);
@@ -489,10 +489,10 @@ const Ce = {
489
489
  return K(this, "push", t);
490
490
  },
491
491
  reduce(t, ...e) {
492
- return Rt(this, "reduce", t, e);
492
+ return Ct(this, "reduce", t, e);
493
493
  },
494
494
  reduceRight(t, ...e) {
495
- return Rt(this, "reduceRight", t, e);
495
+ return Ct(this, "reduceRight", t, e);
496
496
  },
497
497
  shift() {
498
498
  return K(this, "shift");
@@ -517,11 +517,11 @@ const Ce = {
517
517
  return K(this, "unshift", t);
518
518
  },
519
519
  values() {
520
- return rt(this, "values", (t) => O(this, t));
520
+ return ot(this, "values", (t) => O(this, t));
521
521
  }
522
522
  };
523
- function rt(t, e, n) {
524
- const r = yt(t), s = r[e]();
523
+ function ot(t, e, n) {
524
+ const r = St(t), s = r[e]();
525
525
  return r !== t && !/* @__PURE__ */ y(t) && (s._next = s.next, s.next = () => {
526
526
  const o = s._next();
527
527
  return o.done || (o.value = n(o.value)), o;
@@ -529,7 +529,7 @@ function rt(t, e, n) {
529
529
  }
530
530
  const Ae = Array.prototype;
531
531
  function w(t, e, n, r, s, o) {
532
- const i = yt(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
532
+ const i = St(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
533
533
  if (a !== Ae[e]) {
534
534
  const l = a.apply(t, o);
535
535
  return c ? R(l) : l;
@@ -543,8 +543,8 @@ function w(t, e, n, r, s, o) {
543
543
  const f = a.call(i, u, r);
544
544
  return c && s ? s(f) : f;
545
545
  }
546
- function Rt(t, e, n, r) {
547
- const s = yt(t), o = s !== t && !/* @__PURE__ */ y(t);
546
+ function Ct(t, e, n, r) {
547
+ const s = St(t), o = s !== t && !/* @__PURE__ */ y(t);
548
548
  let i = n, c = !1;
549
549
  s !== t && (o ? (c = r.length === 0, i = function(u, f, l) {
550
550
  return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, f), l, t);
@@ -554,22 +554,22 @@ function Rt(t, e, n, r) {
554
554
  const a = s[e](i, ...r);
555
555
  return c ? O(t, a) : a;
556
556
  }
557
- function ot(t, e, n) {
557
+ function it(t, e, n) {
558
558
  const r = /* @__PURE__ */ p(t), s = r[e](...n);
559
559
  return (s === -1 || s === !1) && /* @__PURE__ */ W(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
560
560
  }
561
561
  function K(t, e, n = []) {
562
- bt();
562
+ mt();
563
563
  const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
564
- return mt(), r;
564
+ return yt(), r;
565
565
  }
566
- const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), Ft = new Set(
566
+ const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), kt = new Set(
567
567
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(V)
568
568
  );
569
569
  function $e(t) {
570
570
  return V(t) || (t = String(t)), (/* @__PURE__ */ p(this)).hasOwnProperty(t);
571
571
  }
572
- class kt {
572
+ class jt {
573
573
  constructor(e = !1, n = !1) {
574
574
  this._isReadonly = e, this._isShallow = n;
575
575
  }
@@ -583,7 +583,7 @@ class kt {
583
583
  if (n === "__v_isShallow")
584
584
  return o;
585
585
  if (n === "__v_raw")
586
- return r === (s ? o ? Ke : Ht : o ? je : Kt).get(e) || // receiver is not the reactive proxy, but has the same prototype
586
+ return r === (s ? o ? Ke : Lt : o ? je : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
587
587
  // this means the receiver is a user proxy of the reactive proxy
588
588
  Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
589
589
  const i = d(e);
@@ -602,22 +602,22 @@ class kt {
602
602
  // its class methods
603
603
  /* @__PURE__ */ g(e) ? e : r
604
604
  );
605
- if ((V(n) ? Ft.has(n) : Ie(n)) || o)
605
+ if ((V(n) ? kt.has(n) : Ie(n)) || o)
606
606
  return c;
607
607
  if (/* @__PURE__ */ g(c)) {
608
- const a = i && tt(n) ? c : c.value;
609
- return s && _(a) ? /* @__PURE__ */ pt(a) : a;
608
+ const a = i && et(n) ? c : c.value;
609
+ return s && _(a) ? /* @__PURE__ */ dt(a) : a;
610
610
  }
611
- return _(c) ? s ? /* @__PURE__ */ pt(c) : /* @__PURE__ */ Lt(c) : c;
611
+ return _(c) ? s ? /* @__PURE__ */ dt(c) : /* @__PURE__ */ Wt(c) : c;
612
612
  }
613
613
  }
614
- class Ve extends kt {
614
+ class Ve extends jt {
615
615
  constructor(e = !1) {
616
616
  super(!1, e);
617
617
  }
618
618
  set(e, n, r, s) {
619
619
  let o = e[n];
620
- const i = d(e) && tt(n);
620
+ const i = d(e) && et(n);
621
621
  if (!this._isShallow) {
622
622
  const u = /* @__PURE__ */ E(o);
623
623
  if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ g(o) && !/* @__PURE__ */ g(r))
@@ -626,27 +626,27 @@ class Ve extends kt {
626
626
  e[n]
627
627
  ), !0) : (o.value = r, !0);
628
628
  }
629
- const c = i ? Number(n) < e.length : ft(e, n), a = Reflect.set(
629
+ const c = i ? Number(n) < e.length : ht(e, n), a = Reflect.set(
630
630
  e,
631
631
  n,
632
632
  r,
633
633
  /* @__PURE__ */ g(e) ? e : s
634
634
  );
635
- return e === /* @__PURE__ */ p(s) && (c ? L(r, o) && A(e, "set", n, r, o) : A(e, "add", n, r)), a;
635
+ return e === /* @__PURE__ */ p(s) && a && (c ? L(r, o) && A(e, "set", n, r, o) : A(e, "add", n, r)), a;
636
636
  }
637
637
  deleteProperty(e, n) {
638
- const r = ft(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
638
+ const r = ht(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
639
639
  return o && r && A(e, "delete", n, void 0, s), o;
640
640
  }
641
641
  has(e, n) {
642
642
  const r = Reflect.has(e, n);
643
- return !V(n) || Ft.has(n), r;
643
+ return !V(n) || kt.has(n), r;
644
644
  }
645
645
  ownKeys(e) {
646
646
  return Reflect.ownKeys(e);
647
647
  }
648
648
  }
649
- class De extends kt {
649
+ class De extends jt {
650
650
  constructor(e = !1) {
651
651
  super(!0, e);
652
652
  }
@@ -663,10 +663,10 @@ class De extends kt {
663
663
  ), !0;
664
664
  }
665
665
  }
666
- const xe = /* @__PURE__ */ new Ve(), Te = /* @__PURE__ */ new De(), ht = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
666
+ const xe = /* @__PURE__ */ new Ve(), Te = /* @__PURE__ */ new De(), pt = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
667
667
  function Me(t, e, n) {
668
668
  return function(...r) {
669
- const s = this.__v_raw, i = H(/* @__PURE__ */ p(s)), c = t === "entries" || t === Symbol.iterator && i, a = s[t](...r), u = n ? ht : e ? z : R;
669
+ const s = this.__v_raw, i = H(/* @__PURE__ */ p(s)), c = t === "entries" || t === Symbol.iterator && i, a = s[t](...r), u = n ? pt : e ? z : R;
670
670
  return D(
671
671
  // inheriting all iterator properties
672
672
  Object.create(a),
@@ -698,7 +698,7 @@ function J(t) {
698
698
  function Pe(t, e) {
699
699
  const n = {
700
700
  get(s) {
701
- const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s), { has: a } = q(i), u = e ? ht : t ? z : R;
701
+ const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s), { has: a } = q(i), u = e ? pt : t ? z : R;
702
702
  if (a.call(i, s))
703
703
  return u(o.get(s));
704
704
  if (a.call(i, c))
@@ -713,7 +713,7 @@ function Pe(t, e) {
713
713
  return s === i ? o.has(s) : o.has(s) || o.has(i);
714
714
  },
715
715
  forEach(s, o) {
716
- const i = this, c = i.__v_raw, a = e ? ht : t ? z : R;
716
+ const i = this, c = i.__v_raw, a = e ? pt : t ? z : R;
717
717
  return c.forEach((u, f) => s.call(o, a(u), a(f), i));
718
718
  }
719
719
  };
@@ -733,14 +733,14 @@ function Pe(t, e) {
733
733
  !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
734
734
  const i = /* @__PURE__ */ p(this), { has: c, get: a } = q(i);
735
735
  let u = c.call(i, s);
736
- u ? process.env.NODE_ENV !== "production" && Ct(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
736
+ u ? process.env.NODE_ENV !== "production" && At(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
737
737
  const f = a.call(i, s);
738
738
  return i.set(s, o), u ? L(o, f) && A(i, "set", s, o, f) : A(i, "add", s, o), this;
739
739
  },
740
740
  delete(s) {
741
741
  const o = /* @__PURE__ */ p(this), { has: i, get: c } = q(o);
742
742
  let a = i.call(o, s);
743
- a ? process.env.NODE_ENV !== "production" && Ct(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
743
+ a ? process.env.NODE_ENV !== "production" && At(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
744
744
  const u = c ? c.call(o, s) : void 0, f = o.delete(s);
745
745
  return a && A(o, "delete", s, void 0, u), f;
746
746
  },
@@ -764,29 +764,29 @@ function Pe(t, e) {
764
764
  n[s] = Me(s, t, e);
765
765
  }), n;
766
766
  }
767
- function jt(t, e) {
767
+ function Kt(t, e) {
768
768
  const n = Pe(t, e);
769
769
  return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
770
- ft(n, s) && s in r ? n : r,
770
+ ht(n, s) && s in r ? n : r,
771
771
  s,
772
772
  o
773
773
  );
774
774
  }
775
775
  const Fe = {
776
- get: /* @__PURE__ */ jt(!1, !1)
776
+ get: /* @__PURE__ */ Kt(!1, !1)
777
777
  }, ke = {
778
- get: /* @__PURE__ */ jt(!0, !1)
778
+ get: /* @__PURE__ */ Kt(!0, !1)
779
779
  };
780
- function Ct(t, e, n) {
780
+ function At(t, e, n) {
781
781
  const r = /* @__PURE__ */ p(n);
782
782
  if (r !== n && e.call(t, r)) {
783
- const s = Tt(t);
783
+ const s = Mt(t);
784
784
  F(
785
785
  `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
786
786
  );
787
787
  }
788
788
  }
789
- const Kt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap();
789
+ const Ht = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap();
790
790
  function He(t) {
791
791
  switch (t) {
792
792
  case "Object":
@@ -801,53 +801,50 @@ function He(t) {
801
801
  return 0;
802
802
  }
803
803
  }
804
- function Le(t) {
805
- return t.__v_skip || !Object.isExtensible(t) ? 0 : He(Tt(t));
806
- }
807
804
  // @__NO_SIDE_EFFECTS__
808
- function Lt(t) {
809
- return /* @__PURE__ */ E(t) ? t : Wt(
805
+ function Wt(t) {
806
+ return /* @__PURE__ */ E(t) ? t : zt(
810
807
  t,
811
808
  !1,
812
809
  xe,
813
810
  Fe,
814
- Kt
811
+ Ht
815
812
  );
816
813
  }
817
814
  // @__NO_SIDE_EFFECTS__
818
- function pt(t) {
819
- return Wt(
815
+ function dt(t) {
816
+ return zt(
820
817
  t,
821
818
  !0,
822
819
  Te,
823
820
  ke,
824
- Ht
821
+ Lt
825
822
  );
826
823
  }
827
- function Wt(t, e, n, r, s) {
824
+ function zt(t, e, n, r, s) {
828
825
  if (!_(t))
829
826
  return process.env.NODE_ENV !== "production" && F(
830
827
  `value cannot be made ${e ? "readonly" : "reactive"}: ${String(
831
828
  t
832
829
  )}`
833
830
  ), t;
834
- if (t.__v_raw && !(e && t.__v_isReactive))
831
+ if (t.__v_raw && !(e && t.__v_isReactive) || t.__v_skip || !Object.isExtensible(t))
835
832
  return t;
836
- const o = Le(t);
837
- if (o === 0)
833
+ const o = s.get(t);
834
+ if (o)
835
+ return o;
836
+ const i = He(Mt(t));
837
+ if (i === 0)
838
838
  return t;
839
- const i = s.get(t);
840
- if (i)
841
- return i;
842
839
  const c = new Proxy(
843
840
  t,
844
- o === 2 ? r : n
841
+ i === 2 ? r : n
845
842
  );
846
843
  return s.set(t, c), c;
847
844
  }
848
845
  // @__NO_SIDE_EFFECTS__
849
- function St(t) {
850
- return /* @__PURE__ */ E(t) ? /* @__PURE__ */ St(t.__v_raw) : !!(t && t.__v_isReactive);
846
+ function Ot(t) {
847
+ return /* @__PURE__ */ E(t) ? /* @__PURE__ */ Ot(t.__v_raw) : !!(t && t.__v_isReactive);
851
848
  }
852
849
  // @__NO_SIDE_EFFECTS__
853
850
  function E(t) {
@@ -866,19 +863,19 @@ function p(t) {
866
863
  const e = t && t.__v_raw;
867
864
  return e ? /* @__PURE__ */ p(e) : t;
868
865
  }
869
- const R = (t) => _(t) ? /* @__PURE__ */ Lt(t) : t, z = (t) => _(t) ? /* @__PURE__ */ pt(t) : t;
866
+ const R = (t) => _(t) ? /* @__PURE__ */ Wt(t) : t, z = (t) => _(t) ? /* @__PURE__ */ dt(t) : t;
870
867
  // @__NO_SIDE_EFFECTS__
871
868
  function g(t) {
872
869
  return t ? t.__v_isRef === !0 : !1;
873
870
  }
874
871
  // @__NO_SIDE_EFFECTS__
875
- function zt(t) {
876
- return We(t, !1);
872
+ function Ut(t) {
873
+ return Le(t, !1);
877
874
  }
878
- function We(t, e) {
879
- return /* @__PURE__ */ g(t) ? t : new ze(t, e);
875
+ function Le(t, e) {
876
+ return /* @__PURE__ */ g(t) ? t : new We(t, e);
880
877
  }
881
- class ze {
878
+ class We {
882
879
  constructor(e, n) {
883
880
  this.dep = new ve(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : R(e), this.__v_isShallow = n;
884
881
  }
@@ -900,14 +897,14 @@ class ze {
900
897
  }) : this.dep.trigger());
901
898
  }
902
899
  }
903
- function Ue(t) {
900
+ function ze(t) {
904
901
  return /* @__PURE__ */ g(t) ? t.value : t;
905
902
  }
906
- class qe {
903
+ class Ue {
907
904
  constructor(e, n, r) {
908
905
  this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = V(n) ? n : String(n), this._raw = /* @__PURE__ */ p(e);
909
906
  let s = !0, o = e;
910
- if (!d(e) || V(this._key) || !tt(this._key))
907
+ if (!d(e) || V(this._key) || !et(this._key))
911
908
  do
912
909
  s = !/* @__PURE__ */ W(o) || /* @__PURE__ */ y(o);
913
910
  while (s && (o = o.__v_raw));
@@ -915,7 +912,7 @@ class qe {
915
912
  }
916
913
  get value() {
917
914
  let e = this._object[this._key];
918
- return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
915
+ return this._shallow && (e = ze(e)), this._value = e === void 0 ? this._defaultValue : e;
919
916
  }
920
917
  set value(e) {
921
918
  if (this._shallow && /* @__PURE__ */ g(this._raw[this._key])) {
@@ -931,7 +928,7 @@ class qe {
931
928
  return Re(this._raw, this._key);
932
929
  }
933
930
  }
934
- class Je {
931
+ class qe {
935
932
  constructor(e) {
936
933
  this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
937
934
  }
@@ -940,26 +937,26 @@ class Je {
940
937
  }
941
938
  }
942
939
  // @__NO_SIDE_EFFECTS__
943
- function Be(t, e, n) {
944
- return /* @__PURE__ */ g(t) ? t : I(t) ? new Je(t) : _(t) && arguments.length > 1 ? Ye(t, e, n) : /* @__PURE__ */ zt(t);
940
+ function Je(t, e, n) {
941
+ return /* @__PURE__ */ g(t) ? t : I(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : /* @__PURE__ */ Ut(t);
945
942
  }
946
- function Ye(t, e, n) {
947
- return new qe(t, e, n);
943
+ function Be(t, e, n) {
944
+ return new Ue(t, e, n);
948
945
  }
949
946
  const $ = [];
950
- function Ge(t) {
947
+ function Ye(t) {
951
948
  $.push(t);
952
949
  }
953
- function Qe() {
950
+ function Ge() {
954
951
  $.pop();
955
952
  }
956
- let it = !1;
953
+ let ct = !1;
957
954
  function k(t, ...e) {
958
- if (it) return;
959
- it = !0;
960
- const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Xe();
955
+ if (ct) return;
956
+ ct = !0;
957
+ const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Qe();
961
958
  if (r)
962
- Ot(
959
+ Et(
963
960
  r,
964
961
  n,
965
962
  11,
@@ -971,7 +968,7 @@ function k(t, ...e) {
971
968
  }).join(""),
972
969
  n && n.proxy,
973
970
  s.map(
974
- ({ vnode: o }) => `at <${oe(n, o.type)}>`
971
+ ({ vnode: o }) => `at <${ie(n, o.type)}>`
975
972
  ).join(`
976
973
  `),
977
974
  s
@@ -980,11 +977,11 @@ function k(t, ...e) {
980
977
  else {
981
978
  const o = [`[Vue warn]: ${t}`, ...e];
982
979
  s.length && o.push(`
983
- `, ...Ze(s)), console.warn(...o);
980
+ `, ...Xe(s)), console.warn(...o);
984
981
  }
985
- it = !1;
982
+ ct = !1;
986
983
  }
987
- function Xe() {
984
+ function Qe() {
988
985
  let t = $[$.length - 1];
989
986
  if (!t)
990
987
  return [];
@@ -1000,31 +997,31 @@ function Xe() {
1000
997
  }
1001
998
  return e;
1002
999
  }
1003
- function Ze(t) {
1000
+ function Xe(t) {
1004
1001
  const e = [];
1005
1002
  return t.forEach((n, r) => {
1006
1003
  e.push(...r === 0 ? [] : [`
1007
- `], ...tn(n));
1004
+ `], ...Ze(n));
1008
1005
  }), e;
1009
1006
  }
1010
- function tn({ vnode: t, recurseCount: e }) {
1011
- const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${oe(
1007
+ function Ze({ vnode: t, recurseCount: e }) {
1008
+ const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${ie(
1012
1009
  t.component,
1013
1010
  t.type,
1014
1011
  r
1015
1012
  )}`, o = ">" + n;
1016
- return t.props ? [s, ...en(t.props), o] : [s + o];
1013
+ return t.props ? [s, ...tn(t.props), o] : [s + o];
1017
1014
  }
1018
- function en(t) {
1015
+ function tn(t) {
1019
1016
  const e = [], n = Object.keys(t);
1020
1017
  return n.slice(0, 3).forEach((r) => {
1021
- e.push(...Ut(r, t[r]));
1018
+ e.push(...qt(r, t[r]));
1022
1019
  }), n.length > 3 && e.push(" ..."), e;
1023
1020
  }
1024
- function Ut(t, e, n) {
1025
- return v(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ g(e) ? (e = Ut(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1021
+ function qt(t, e, n) {
1022
+ return v(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ g(e) ? (e = qt(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1026
1023
  }
1027
- const qt = {
1024
+ const Jt = {
1028
1025
  sp: "serverPrefetch hook",
1029
1026
  bc: "beforeCreate hook",
1030
1027
  c: "created hook",
@@ -1057,18 +1054,18 @@ const qt = {
1057
1054
  15: "component update",
1058
1055
  16: "app unmount cleanup function"
1059
1056
  };
1060
- function Ot(t, e, n, r) {
1057
+ function Et(t, e, n, r) {
1061
1058
  try {
1062
1059
  return r ? t(...r) : t();
1063
1060
  } catch (s) {
1064
- Jt(s, e, n);
1061
+ Bt(s, e, n);
1065
1062
  }
1066
1063
  }
1067
- function Jt(t, e, n, r = !0) {
1068
- const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ut;
1064
+ function Bt(t, e, n, r = !0) {
1065
+ const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ft;
1069
1066
  if (e) {
1070
1067
  let c = e.parent;
1071
- const a = e.proxy, u = process.env.NODE_ENV !== "production" ? qt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1068
+ const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Jt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1072
1069
  for (; c; ) {
1073
1070
  const f = c.ec;
1074
1071
  if (f) {
@@ -1079,7 +1076,7 @@ function Jt(t, e, n, r = !0) {
1079
1076
  c = c.parent;
1080
1077
  }
1081
1078
  if (o) {
1082
- Ot(o, null, 10, [
1079
+ Et(o, null, 10, [
1083
1080
  t,
1084
1081
  a,
1085
1082
  u
@@ -1087,12 +1084,12 @@ function Jt(t, e, n, r = !0) {
1087
1084
  return;
1088
1085
  }
1089
1086
  }
1090
- nn(t, n, s, r, i);
1087
+ en(t, n, s, r, i);
1091
1088
  }
1092
- function nn(t, e, n, r = !0, s = !1) {
1089
+ function en(t, e, n, r = !0, s = !1) {
1093
1090
  if (process.env.NODE_ENV !== "production") {
1094
- const o = qt[e];
1095
- if (n && Ge(n), k(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Qe(), r)
1091
+ const o = Jt[e];
1092
+ if (n && Ye(n), k(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ge(), r)
1096
1093
  throw t;
1097
1094
  console.error(t);
1098
1095
  } else {
@@ -1105,10 +1102,10 @@ const m = [];
1105
1102
  let N = -1;
1106
1103
  const P = [];
1107
1104
  let C = null, T = 0;
1108
- const sn = /* @__PURE__ */ Promise.resolve();
1109
- let dt = null;
1110
- const rn = 100;
1111
- function on(t) {
1105
+ const nn = /* @__PURE__ */ Promise.resolve();
1106
+ let _t = null;
1107
+ const sn = 100;
1108
+ function rn(t) {
1112
1109
  let e = N + 1, n = m.length;
1113
1110
  for (; e < n; ) {
1114
1111
  const r = e + n >>> 1, s = m[r], o = U(s);
@@ -1116,20 +1113,20 @@ function on(t) {
1116
1113
  }
1117
1114
  return e;
1118
1115
  }
1119
- function cn(t) {
1116
+ function on(t) {
1120
1117
  if (!(t.flags & 1)) {
1121
1118
  const e = U(t), n = m[m.length - 1];
1122
1119
  !n || // fast path when the job id is larger than the tail
1123
- !(t.flags & 2) && e >= U(n) ? m.push(t) : m.splice(on(e), 0, t), t.flags |= 1, Bt();
1120
+ !(t.flags & 2) && e >= U(n) ? m.push(t) : m.splice(rn(e), 0, t), t.flags |= 1, Yt();
1124
1121
  }
1125
1122
  }
1126
- function Bt() {
1127
- dt || (dt = sn.then(Yt));
1123
+ function Yt() {
1124
+ _t || (_t = nn.then(Gt));
1128
1125
  }
1129
- function ln(t) {
1130
- d(t) ? P.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), Bt();
1126
+ function cn(t) {
1127
+ d(t) ? P.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), Yt();
1131
1128
  }
1132
- function an(t) {
1129
+ function ln(t) {
1133
1130
  if (P.length) {
1134
1131
  const e = [...new Set(P)].sort(
1135
1132
  (n, r) => U(n) - U(r)
@@ -1140,22 +1137,22 @@ function an(t) {
1140
1137
  }
1141
1138
  for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), T = 0; T < C.length; T++) {
1142
1139
  const n = C[T];
1143
- process.env.NODE_ENV !== "production" && Gt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1140
+ process.env.NODE_ENV !== "production" && Qt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1144
1141
  }
1145
1142
  C = null, T = 0;
1146
1143
  }
1147
1144
  }
1148
1145
  const U = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1149
- function Yt(t) {
1146
+ function Gt(t) {
1150
1147
  process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1151
- const e = process.env.NODE_ENV !== "production" ? (n) => Gt(t, n) : Dt;
1148
+ const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) : xt;
1152
1149
  try {
1153
1150
  for (N = 0; N < m.length; N++) {
1154
1151
  const n = m[N];
1155
1152
  if (n && !(n.flags & 8)) {
1156
1153
  if (process.env.NODE_ENV !== "production" && e(n))
1157
1154
  continue;
1158
- n.flags & 4 && (n.flags &= -2), Ot(
1155
+ n.flags & 4 && (n.flags &= -2), Et(
1159
1156
  n,
1160
1157
  n.i,
1161
1158
  n.i ? 15 : 14
@@ -1167,14 +1164,14 @@ function Yt(t) {
1167
1164
  const n = m[N];
1168
1165
  n && (n.flags &= -2);
1169
1166
  }
1170
- N = -1, m.length = 0, an(t), dt = null, (m.length || P.length) && Yt(t);
1167
+ N = -1, m.length = 0, ln(t), _t = null, (m.length || P.length) && Gt(t);
1171
1168
  }
1172
1169
  }
1173
- function Gt(t, e) {
1170
+ function Qt(t, e) {
1174
1171
  const n = t.get(e) || 0;
1175
- if (n > rn) {
1176
- const r = e.i, s = r && re(r.type);
1177
- return Jt(
1172
+ if (n > sn) {
1173
+ const r = e.i, s = r && oe(r.type);
1174
+ return Bt(
1178
1175
  `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.`,
1179
1176
  null,
1180
1177
  10
@@ -1182,52 +1179,52 @@ function Gt(t, e) {
1182
1179
  }
1183
1180
  return t.set(e, n + 1), !1;
1184
1181
  }
1185
- const ct = /* @__PURE__ */ new Map();
1186
- process.env.NODE_ENV !== "production" && (et().__VUE_HMR_RUNTIME__ = {
1187
- createRecord: lt(un),
1188
- rerender: lt(fn),
1189
- reload: lt(hn)
1182
+ const lt = /* @__PURE__ */ new Map();
1183
+ process.env.NODE_ENV !== "production" && (nt().__VUE_HMR_RUNTIME__ = {
1184
+ createRecord: at(an),
1185
+ rerender: at(un),
1186
+ reload: at(fn)
1190
1187
  });
1191
1188
  const G = /* @__PURE__ */ new Map();
1192
- function un(t, e) {
1189
+ function an(t, e) {
1193
1190
  return G.has(t) ? !1 : (G.set(t, {
1194
1191
  initialDef: Q(e),
1195
1192
  instances: /* @__PURE__ */ new Set()
1196
1193
  }), !0);
1197
1194
  }
1198
1195
  function Q(t) {
1199
- return ie(t) ? t.__vccOpts : t;
1196
+ return ce(t) ? t.__vccOpts : t;
1200
1197
  }
1201
- function fn(t, e) {
1198
+ function un(t, e) {
1202
1199
  const n = G.get(t);
1203
1200
  n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
1204
1201
  e && (r.render = e, Q(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
1205
1202
  }));
1206
1203
  }
1207
- function hn(t, e) {
1204
+ function fn(t, e) {
1208
1205
  const n = G.get(t);
1209
1206
  if (!n) return;
1210
- e = Q(e), At(n.initialDef, e);
1207
+ e = Q(e), It(n.initialDef, e);
1211
1208
  const r = [...n.instances];
1212
1209
  for (let s = 0; s < r.length; s++) {
1213
1210
  const o = r[s], i = Q(o.type);
1214
- let c = ct.get(i);
1215
- c || (i !== n.initialDef && At(i, e), ct.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 ? cn(() => {
1211
+ let c = lt.get(i);
1212
+ c || (i !== n.initialDef && It(i, e), lt.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(() => {
1216
1213
  o.job.flags & 8 || (o.parent.update(), c.delete(o));
1217
1214
  }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1218
1215
  "[HMR] Root or manually mounted instance modified. Full reload required."
1219
1216
  ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1220
1217
  }
1221
- ln(() => {
1222
- ct.clear();
1218
+ cn(() => {
1219
+ lt.clear();
1223
1220
  });
1224
1221
  }
1225
- function At(t, e) {
1222
+ function It(t, e) {
1226
1223
  D(t, e);
1227
1224
  for (const n in t)
1228
1225
  n !== "__file" && !(n in e) && delete t[n];
1229
1226
  }
1230
- function lt(t) {
1227
+ function at(t) {
1231
1228
  return (e, n) => {
1232
1229
  try {
1233
1230
  return t(e, n);
@@ -1239,48 +1236,48 @@ function lt(t) {
1239
1236
  };
1240
1237
  }
1241
1238
  let M, B = [];
1242
- function Qt(t, e) {
1239
+ function Xt(t, e) {
1243
1240
  var n, r;
1244
1241
  M = t, M ? (M.enabled = !0, B.forEach(({ event: s, args: o }) => M.emit(s, ...o)), B = []) : /* 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
1245
1242
  window.HTMLElement && // also exclude jsdom
1246
1243
  // eslint-disable-next-line no-restricted-syntax
1247
1244
  !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1248
- Qt(o, e);
1245
+ Xt(o, e);
1249
1246
  }), setTimeout(() => {
1250
1247
  M || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, B = []);
1251
1248
  }, 3e3)) : B = [];
1252
1249
  }
1253
- let X = null, pn = null;
1254
- const dn = (t) => t.__isTeleport;
1255
- function Xt(t, e) {
1256
- t.shapeFlag & 6 && t.component ? (t.transition = e, Xt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1250
+ let X = null, hn = null;
1251
+ const pn = (t) => t.__isTeleport;
1252
+ function Zt(t, e) {
1253
+ 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;
1257
1254
  }
1258
- et().requestIdleCallback;
1259
- et().cancelIdleCallback;
1260
- const _n = /* @__PURE__ */ Symbol.for("v-ndc"), gn = {};
1261
- process.env.NODE_ENV !== "production" && (gn.ownKeys = (t) => (k(
1255
+ nt().requestIdleCallback;
1256
+ nt().cancelIdleCallback;
1257
+ const dn = /* @__PURE__ */ Symbol.for("v-ndc"), _n = {};
1258
+ process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (k(
1262
1259
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1263
1260
  ), Reflect.ownKeys(t)));
1264
- const bn = {}, Zt = (t) => Object.getPrototypeOf(t) === bn, mn = (t) => t.__isSuspense, te = /* @__PURE__ */ Symbol.for("v-fgt"), yn = /* @__PURE__ */ Symbol.for("v-txt"), Sn = /* @__PURE__ */ Symbol.for("v-cmt");
1265
- function On(t) {
1261
+ const gn = {}, te = (t) => Object.getPrototypeOf(t) === gn, bn = (t) => t.__isSuspense, ee = /* @__PURE__ */ Symbol.for("v-fgt"), mn = /* @__PURE__ */ Symbol.for("v-txt"), yn = /* @__PURE__ */ Symbol.for("v-cmt");
1262
+ function Sn(t) {
1266
1263
  return t ? t.__v_isVNode === !0 : !1;
1267
1264
  }
1268
- const En = (...t) => ne(
1265
+ const On = (...t) => se(
1269
1266
  ...t
1270
- ), ee = ({ key: t }) => t ?? null, Y = ({
1267
+ ), ne = ({ key: t }) => t ?? null, Y = ({
1271
1268
  ref: t,
1272
1269
  ref_key: e,
1273
1270
  ref_for: n
1274
1271
  }) => (typeof t == "number" && (t = "" + t), t != null ? v(t) || /* @__PURE__ */ g(t) || I(t) ? { i: X, r: t, k: e, f: !!n } : t : null);
1275
- function wn(t, e = null, n = null, r = 0, s = null, o = t === te ? 0 : 1, i = !1, c = !1) {
1272
+ function En(t, e = null, n = null, r = 0, s = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
1276
1273
  const a = {
1277
1274
  __v_isVNode: !0,
1278
1275
  __v_skip: !0,
1279
1276
  type: t,
1280
1277
  props: e,
1281
- key: e && ee(e),
1278
+ key: e && ne(e),
1282
1279
  ref: e && Y(e),
1283
- scopeId: pn,
1280
+ scopeId: hn,
1284
1281
  slotScopeIds: null,
1285
1282
  children: n,
1286
1283
  component: null,
@@ -1302,31 +1299,31 @@ function wn(t, e = null, n = null, r = 0, s = null, o = t === te ? 0 : 1, i = !1
1302
1299
  appContext: null,
1303
1300
  ctx: X
1304
1301
  };
1305
- return c ? (Et(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && k("VNode created with invalid key (NaN). VNode type:", a.type), a;
1302
+ return c ? (tt(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && k("VNode created with invalid key (NaN). VNode type:", a.type), a;
1306
1303
  }
1307
- const Nn = process.env.NODE_ENV !== "production" ? En : ne;
1308
- function ne(t, e = null, n = null, r = 0, s = null, o = !1) {
1309
- if ((!t || t === _n) && (process.env.NODE_ENV !== "production" && !t && k(`Invalid vnode type when creating vnode: ${t}.`), t = Sn), On(t)) {
1304
+ const wn = process.env.NODE_ENV !== "production" ? On : se;
1305
+ function se(t, e = null, n = null, r = 0, s = null, o = !1) {
1306
+ if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && k(`Invalid vnode type when creating vnode: ${t}.`), t = yn), Sn(t)) {
1310
1307
  const c = Z(
1311
1308
  t,
1312
1309
  e,
1313
1310
  !0
1314
1311
  /* mergeRef: true */
1315
1312
  );
1316
- return n && Et(c, n), c.patchFlag = -2, c;
1313
+ return n && tt(c, n), c.patchFlag = -2, c;
1317
1314
  }
1318
- if (ie(t) && (t = t.__vccOpts), e) {
1319
- e = vn(e);
1315
+ if (ce(t) && (t = t.__vccOpts), e) {
1316
+ e = Nn(e);
1320
1317
  let { class: c, style: a } = e;
1321
- c && !v(c) && (e.class = gt(c)), _(a) && (/* @__PURE__ */ W(a) && !d(a) && (a = D({}, a)), e.style = _t(a));
1318
+ c && !v(c) && (e.class = bt(c)), _(a) && (/* @__PURE__ */ W(a) && !d(a) && (a = D({}, a)), e.style = gt(a));
1322
1319
  }
1323
- const i = v(t) ? 1 : mn(t) ? 128 : dn(t) ? 64 : _(t) ? 4 : I(t) ? 2 : 0;
1320
+ const i = v(t) ? 1 : bn(t) ? 128 : pn(t) ? 64 : _(t) ? 4 : I(t) ? 2 : 0;
1324
1321
  return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ W(t) && (t = /* @__PURE__ */ p(t), k(
1325
1322
  "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`.",
1326
1323
  `
1327
1324
  Component that was made reactive: `,
1328
1325
  t
1329
- )), wn(
1326
+ )), En(
1330
1327
  t,
1331
1328
  e,
1332
1329
  n,
@@ -1337,16 +1334,16 @@ Component that was made reactive: `,
1337
1334
  !0
1338
1335
  );
1339
1336
  }
1340
- function vn(t) {
1341
- return t ? /* @__PURE__ */ W(t) || Zt(t) ? D({}, t) : t : null;
1337
+ function Nn(t) {
1338
+ return t ? /* @__PURE__ */ W(t) || te(t) ? D({}, t) : t : null;
1342
1339
  }
1343
1340
  function Z(t, e, n = !1, r = !1) {
1344
- const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Cn(s || {}, e) : s, f = {
1341
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Rn(s || {}, e) : s, f = {
1345
1342
  __v_isVNode: !0,
1346
1343
  __v_skip: !0,
1347
1344
  type: t.type,
1348
1345
  props: u,
1349
- key: u && ee(u),
1346
+ key: u && ne(u),
1350
1347
  ref: e && e.ref ? (
1351
1348
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1352
1349
  // if the vnode itself already has a ref, cloneVNode will need to merge
@@ -1355,7 +1352,7 @@ function Z(t, e, n = !1, r = !1) {
1355
1352
  ) : o,
1356
1353
  scopeId: t.scopeId,
1357
1354
  slotScopeIds: t.slotScopeIds,
1358
- children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(se) : c,
1355
+ children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(re) : c,
1359
1356
  target: t.target,
1360
1357
  targetStart: t.targetStart,
1361
1358
  targetAnchor: t.targetAnchor,
@@ -1365,7 +1362,7 @@ function Z(t, e, n = !1, r = !1) {
1365
1362
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1366
1363
  // note: preserve flag for fragments since they use the flag for children
1367
1364
  // fast paths only.
1368
- patchFlag: e && t.type !== te ? i === -1 ? 16 : i | 16 : i,
1365
+ patchFlag: e && t.type !== ee ? i === -1 ? 16 : i | 16 : i,
1369
1366
  dynamicProps: t.dynamicProps,
1370
1367
  dynamicChildren: t.dynamicChildren,
1371
1368
  appContext: t.appContext,
@@ -1385,19 +1382,19 @@ function Z(t, e, n = !1, r = !1) {
1385
1382
  ctx: t.ctx,
1386
1383
  ce: t.ce
1387
1384
  };
1388
- return a && r && Xt(
1385
+ return a && r && Zt(
1389
1386
  f,
1390
1387
  a.clone(f)
1391
1388
  ), f;
1392
1389
  }
1393
- function se(t) {
1390
+ function re(t) {
1394
1391
  const e = Z(t);
1395
- return d(t.children) && (e.children = t.children.map(se)), e;
1392
+ return d(t.children) && (e.children = t.children.map(re)), e;
1396
1393
  }
1397
- function Rn(t = " ", e = 0) {
1398
- return Nn(yn, null, t, e);
1394
+ function vn(t = " ", e = 0) {
1395
+ return wn(mn, null, t, e);
1399
1396
  }
1400
- function Et(t, e) {
1397
+ function tt(t, e) {
1401
1398
  let n = 0;
1402
1399
  const { shapeFlag: r } = t;
1403
1400
  if (e == null)
@@ -1407,22 +1404,29 @@ function Et(t, e) {
1407
1404
  else if (typeof e == "object")
1408
1405
  if (r & 65) {
1409
1406
  const s = e.default;
1410
- s && (s._c && (s._d = !1), Et(t, s()), s._c && (s._d = !0));
1407
+ s && (s._c && (s._d = !1), tt(t, s()), s._c && (s._d = !0));
1411
1408
  return;
1412
1409
  } else
1413
- n = 32, !e._ && !Zt(e) && (e._ctx = X);
1414
- else I(e) ? (e = { default: e, _ctx: X }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [Rn(e)]) : n = 8);
1410
+ n = 32, !e._ && !te(e) && (e._ctx = X);
1411
+ else if (I(e)) {
1412
+ if (r & 65) {
1413
+ tt(t, { default: e });
1414
+ return;
1415
+ }
1416
+ e = { default: e, _ctx: X }, n = 32;
1417
+ } else
1418
+ e = String(e), r & 64 ? (n = 16, e = [vn(e)]) : n = 8;
1415
1419
  t.children = e, t.shapeFlag |= n;
1416
1420
  }
1417
- function Cn(...t) {
1421
+ function Rn(...t) {
1418
1422
  const e = {};
1419
1423
  for (let n = 0; n < t.length; n++) {
1420
1424
  const r = t[n];
1421
1425
  for (const s in r)
1422
1426
  if (s === "class")
1423
- e.class !== r.class && (e.class = gt([e.class, r.class]));
1427
+ e.class !== r.class && (e.class = bt([e.class, r.class]));
1424
1428
  else if (s === "style")
1425
- e.style = _t([e.style, r.style]);
1429
+ e.style = gt([e.style, r.style]);
1426
1430
  else if (_e(s)) {
1427
1431
  const o = e[s], i = r[s];
1428
1432
  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
@@ -1433,7 +1437,7 @@ function Cn(...t) {
1433
1437
  return e;
1434
1438
  }
1435
1439
  {
1436
- const t = et(), e = (n, r) => {
1440
+ const t = nt(), e = (n, r) => {
1437
1441
  let s;
1438
1442
  return (s = t[n]) || (s = t[n] = []), s.push(r), (o) => {
1439
1443
  s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
@@ -1448,12 +1452,12 @@ function Cn(...t) {
1448
1452
  );
1449
1453
  }
1450
1454
  process.env.NODE_ENV;
1451
- const An = /(?:^|[-_])\w/g, In = (t) => t.replace(An, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1452
- function re(t, e = !0) {
1455
+ const Cn = /(?:^|[-_])\w/g, An = (t) => t.replace(Cn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1456
+ function oe(t, e = !0) {
1453
1457
  return I(t) ? t.displayName || t.name : t.name || e && t.__name;
1454
1458
  }
1455
- function oe(t, e, n = !1) {
1456
- let r = re(e);
1459
+ function ie(t, e, n = !1) {
1460
+ let r = oe(e);
1457
1461
  if (!r && e.__file) {
1458
1462
  const s = e.__file.match(/([^/\\]+)\.\w+$/);
1459
1463
  s && (r = s[1]);
@@ -1468,12 +1472,12 @@ function oe(t, e, n = !1) {
1468
1472
  t.parent.type.components
1469
1473
  ) || s(t.appContext.components);
1470
1474
  }
1471
- return r ? In(r) : n ? "App" : "Anonymous";
1475
+ return r ? An(r) : n ? "App" : "Anonymous";
1472
1476
  }
1473
- function ie(t) {
1477
+ function ce(t) {
1474
1478
  return I(t) && "__vccOpts" in t;
1475
1479
  }
1476
- function $n() {
1480
+ function In() {
1477
1481
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1478
1482
  return;
1479
1483
  const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
@@ -1494,7 +1498,7 @@ function $n() {
1494
1498
  ">"
1495
1499
  ];
1496
1500
  } else {
1497
- if (/* @__PURE__ */ St(l))
1501
+ if (/* @__PURE__ */ Ot(l))
1498
1502
  return [
1499
1503
  "div",
1500
1504
  {},
@@ -1529,7 +1533,7 @@ function $n() {
1529
1533
  };
1530
1534
  function o(l) {
1531
1535
  const h = [];
1532
- l.type.props && l.props && h.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== ut && h.push(i("setup", l.setupState)), l.data !== ut && h.push(i("data", /* @__PURE__ */ p(l.data)));
1536
+ l.type.props && l.props && h.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== ft && h.push(i("setup", l.setupState)), l.data !== ft && h.push(i("data", /* @__PURE__ */ p(l.data)));
1533
1537
  const b = a(l, "computed");
1534
1538
  b && h.push(i("computed", b));
1535
1539
  const S = a(l, "inject");
@@ -1596,33 +1600,34 @@ function $n() {
1596
1600
  process.env.NODE_ENV;
1597
1601
  process.env.NODE_ENV;
1598
1602
  process.env.NODE_ENV;
1599
- function Vn() {
1600
- $n();
1603
+ function $n() {
1604
+ In();
1601
1605
  }
1602
- process.env.NODE_ENV !== "production" && Vn();
1603
- function kn(t, e, n) {
1606
+ process.env.NODE_ENV !== "production" && $n();
1607
+ function Fn(t, e, n) {
1604
1608
  const r = n ? { storeOptions: n } : {};
1605
- return typeof e == "function" ? Dn(
1609
+ return typeof e == "function" ? Vn(
1606
1610
  t,
1607
1611
  e,
1608
1612
  r
1609
- ) : xn(
1613
+ ) : Dn(
1610
1614
  t,
1611
1615
  e,
1612
1616
  r
1613
1617
  );
1614
1618
  }
1615
- function Dn(t, e, n) {
1616
- return It(t, e, n);
1619
+ function Vn(t, e, n) {
1620
+ return $t(t, e, n);
1617
1621
  }
1618
- function xn(t, e, n) {
1619
- return n && (e = { ...e, ...n ?? {} }), It(t, e);
1622
+ function Dn(t, e, n) {
1623
+ return n && (e = { ...e, ...n ?? {} }), $t(t, e);
1620
1624
  }
1621
- const Tn = /* @__PURE__ */ new Set(["_", "$"]);
1622
- function Mn(t) {
1623
- return Tn.has(t[0]);
1625
+ const xn = /* @__PURE__ */ new Set(["_", "$"]);
1626
+ function Tn(t) {
1627
+ return xn.has(t[0]);
1624
1628
  }
1625
- class jn extends $t {
1629
+ class kn extends Vt {
1630
+ _className = "Store";
1626
1631
  _onAction;
1627
1632
  _options;
1628
1633
  _store;
@@ -1670,7 +1675,7 @@ class jn extends $t {
1670
1675
  * @param value
1671
1676
  */
1672
1677
  addToState(e, n) {
1673
- this.isOptionApi() || n?.value || (n = /* @__PURE__ */ zt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Be(this.state, e);
1678
+ this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Ut(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Je(this.state, e);
1674
1679
  }
1675
1680
  addSubscription(e, n, r) {
1676
1681
  this._subscriptions[e] = { subscription: n, ...r ?? {} };
@@ -1687,7 +1692,7 @@ class jn extends $t {
1687
1692
  return new this(e, n, r, s);
1688
1693
  }
1689
1694
  hasDeniedFirstChar(e) {
1690
- return Mn(e[0]);
1695
+ return Tn(e[0]);
1691
1696
  }
1692
1697
  static hasRequiredKeys(e) {
1693
1698
  return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
@@ -1699,7 +1704,7 @@ class jn extends $t {
1699
1704
  return this.getValue(this.state[e]);
1700
1705
  }
1701
1706
  getSubscriptions() {
1702
- if (!at(this._subscriptions))
1707
+ if (!ut(this._subscriptions))
1703
1708
  return this._subscriptions;
1704
1709
  }
1705
1710
  getValue(e) {
@@ -1715,17 +1720,17 @@ class jn extends $t {
1715
1720
  return this.store.hasOwnProperty(e);
1716
1721
  }
1717
1722
  }
1718
- function Kn(t, e) {
1723
+ function jn(t, e) {
1719
1724
  const n = new pe(t, e);
1720
1725
  return n.plugin.bind(n);
1721
1726
  }
1722
1727
  export {
1723
- ae as CustomConsole,
1724
- Vt as PLUGIN_NAME,
1725
- Fn as PluginSubscriber,
1728
+ ue as CustomConsole,
1729
+ Dt as PLUGIN_NAME,
1730
+ Pn as PluginSubscriber,
1726
1731
  pe as PluginSubscription,
1727
- jn as Store,
1728
- Kn as createPlugin,
1729
- kn as defineAStore,
1730
- at as isEmpty
1732
+ kn as Store,
1733
+ jn as createPlugin,
1734
+ Fn as defineAStore,
1735
+ ut as isEmpty
1731
1736
  };