pinia-plugin-subscription 0.0.3 → 0.1.1

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