pinia-plugin-persist-state 0.0.1 → 0.0.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1608 +1,37 @@
1
- import "pinia";
2
- class ln {
1
+ import { CustomConsole as Ie, Store as Ce, isEmpty as R, PluginSubscriber as Ve } from "pinia-plugin-subscription";
2
+ class Te {
3
3
  _storage;
4
- constructor(t) {
5
- this._storage = t === "localStorage" ? localStorage : sessionStorage;
4
+ constructor(e) {
5
+ this._storage = e === "localStorage" ? localStorage : sessionStorage;
6
6
  }
7
7
  clear() {
8
8
  this._storage.clear();
9
9
  }
10
- async getItem(t) {
11
- return new Promise((n, s) => {
12
- const r = this._storage.getItem(t.toString());
13
- n(r ? JSON.parse(r) : void 0);
10
+ async getItem(e) {
11
+ return new Promise((s, r) => {
12
+ const o = this._storage.getItem(e.toString());
13
+ s(o ? JSON.parse(o) : void 0);
14
14
  });
15
15
  }
16
- removeItem(t) {
17
- this._storage.removeItem(t.toString());
16
+ removeItem(e) {
17
+ this._storage.removeItem(e.toString());
18
18
  }
19
- removeItems(t) {
20
- for (let n = 0; n < this._storage.length; n++) {
21
- const s = this._storage.key(n);
22
- s && (!t || !t.includes(s)) && this._storage.removeItem(s);
19
+ removeItems(e) {
20
+ for (let s = 0; s < this._storage.length; s++) {
21
+ const r = this._storage.key(s);
22
+ r && (!e || !e.includes(r)) && this._storage.removeItem(r);
23
23
  }
24
24
  }
25
- setItem(t, n) {
26
- this._storage.setItem(n, JSON.stringify(t));
25
+ setItem(e, s) {
26
+ this._storage.setItem(s, JSON.stringify(e));
27
27
  }
28
28
  }
29
- class un {
30
- _console;
31
- _createInstance;
32
- _name;
33
- _pluginOptions;
34
- _storeInstance;
35
- _resetStoreCallback;
36
- _storeOnActionSubscription;
37
- _storeMutationSubscription;
38
- _subscriptions;
39
- pluginCreated;
40
- get console() {
41
- return this._console ?? console;
42
- }
43
- get name() {
44
- return this._name;
45
- }
46
- get pluginOptions() {
47
- return this._pluginOptions ?? {};
48
- }
49
- set pluginOptions(t) {
50
- this._pluginOptions = t;
51
- }
52
- get resetStoreCallback() {
53
- return this._resetStoreCallback;
54
- }
55
- get storeOnActionSubscription() {
56
- return this._storeOnActionSubscription;
57
- }
58
- get storeMutationSubscription() {
59
- return this._storeMutationSubscription;
60
- }
61
- get subscriptions() {
62
- return this._subscriptions;
63
- }
64
- set subscriptions(t) {
65
- this._subscriptions = t;
66
- }
67
- constructor(t, n, s) {
68
- this._name = t, this._createInstance = n, s && (this._console = s);
69
- }
70
- invoke({ store: t, options: n }, s) {
71
- return this._storeInstance = this._createInstance(t, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(t), !0) : !1;
72
- }
73
- }
74
- class fn {
75
- _className;
76
- _console;
77
- _debug = !1;
78
- get console() {
79
- return this._console ?? console;
80
- }
81
- set console(t) {
82
- this._console = t;
83
- }
84
- get debug() {
85
- return this._debug;
86
- }
87
- set debug(t) {
88
- this._debug = t;
89
- }
90
- constructor(t, n) {
91
- this._debug = t, this._className = this.constructor.name, n && (this._console = n);
92
- }
93
- debugLog(...t) {
94
- this._debug && (Array.isArray(t) && (t[0] = `${this._className} - ${t[0]}`), this.console.log(...t));
95
- }
96
- logError(...t) {
97
- this.console.error(...t);
98
- }
99
- }
100
- const pn = "pinia-plugin-subscription", hn = (e, t = "white") => `background-color: ${e}; color: ${t}; padding: 1px; margin-right: 5px; font-size: 12px`;
101
- function dn(e, t) {
102
- if (!e)
103
- throw new Error("Style instructions are required");
104
- console.log(
105
- "%c%s",
106
- e,
107
- t.shift(),
108
- ...t
109
- );
110
- }
111
- class _n {
112
- _bgColor = "#ffec73";
113
- _color = "green";
114
- _icon = "🍍⚡";
115
- _errorBgColor = "#d24545";
116
- _errorColor = "white";
117
- _errorIcon = "🍍⚠️";
118
- _styles = {
119
- error: { bgColor: this._errorBgColor, color: this._errorColor, icon: this._errorIcon },
120
- info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
121
- };
122
- formatMessage(t, n) {
123
- return ` [${n} ${pn}] - ${t} `;
124
- }
125
- generateStyle(t) {
126
- return hn(t.bgColor, t.color);
127
- }
128
- getStyleDefinition(t) {
129
- return this._styles[t ?? "info"];
130
- }
131
- log(...t) {
132
- this.useLog(
133
- this.getStyleDefinition(),
134
- t
135
- );
136
- }
137
- error(...t) {
138
- this.useLog(
139
- this.getStyleDefinition("error"),
140
- t
141
- );
142
- }
143
- rebuildArgs(t, n) {
144
- if (typeof t == "string")
145
- return [this.formatMessage(t, n)];
146
- if (Array.isArray(t))
147
- return [this.formatMessage(t.shift(), n), ...t ?? []];
148
- }
149
- useLog(t, n) {
150
- dn(
151
- this.generateStyle(t),
152
- this.rebuildArgs(n, t.icon)
153
- );
154
- }
155
- }
156
- function Y(e) {
157
- return e ? Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : typeof e == "string" ? e.trim() === "" : !1 : !(typeof e == "boolean" || typeof e == "number");
158
- }
159
- // @__NO_SIDE_EFFECTS__
160
- function gn(e) {
161
- const t = /* @__PURE__ */ Object.create(null);
162
- for (const n of e.split(",")) t[n] = 1;
163
- return (n) => n in t;
164
- }
165
- const Me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
166
- process.env.NODE_ENV !== "production" && Object.freeze([]);
167
- const yn = () => {
168
- }, mn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
169
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), bn = (e) => e.startsWith("onUpdate:"), q = Object.assign, Sn = Object.prototype.hasOwnProperty, Fe = (e, t) => Sn.call(e, t), g = Array.isArray, te = (e) => gt(e) === "[object Map]", T = (e) => typeof e == "function", R = (e) => typeof e == "string", H = (e) => typeof e == "symbol", y = (e) => e !== null && typeof e == "object", vn = Object.prototype.toString, gt = (e) => vn.call(e), yt = (e) => gt(e).slice(8, -1), Ee = (e) => R(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wn = (e) => {
170
- const t = /* @__PURE__ */ Object.create(null);
171
- return ((n) => t[n] || (t[n] = e(n)));
172
- }, En = wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), ne = (e, t) => !Object.is(e, t);
173
- let it;
174
- const Ne = () => it || (it = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
175
- function ze(e) {
176
- if (g(e)) {
177
- const t = {};
178
- for (let n = 0; n < e.length; n++) {
179
- const s = e[n], r = R(s) ? Vn(s) : ze(s);
180
- if (r)
181
- for (const o in r)
182
- t[o] = r[o];
183
- }
184
- return t;
185
- } else if (R(e) || y(e))
186
- return e;
187
- }
188
- const Nn = /;(?![^(]*\))/g, On = /:([^]+)/, kn = /\/\*[^]*?\*\//g;
189
- function Vn(e) {
190
- const t = {};
191
- return e.replace(kn, "").split(Nn).forEach((n) => {
192
- if (n) {
193
- const s = n.split(On);
194
- s.length > 1 && (t[s[0].trim()] = s[1].trim());
195
- }
196
- }), t;
197
- }
198
- function Be(e) {
199
- let t = "";
200
- if (R(e))
201
- t = e;
202
- else if (g(e))
203
- for (let n = 0; n < e.length; n++) {
204
- const s = Be(e[n]);
205
- s && (t += s + " ");
206
- }
207
- else if (y(e))
208
- for (const n in e)
209
- e[n] && (t += n + " ");
210
- return t.trim();
211
- }
212
- function Z(e, ...t) {
213
- console.warn(`[Vue warn] ${e}`, ...t);
214
- }
215
- let mt = 0, Ve;
216
- function Je() {
217
- mt++;
218
- }
219
- function Ye() {
220
- if (--mt > 0)
221
- return;
222
- let e;
223
- for (; Ve; ) {
224
- let t = Ve;
225
- for (Ve = void 0; t; ) {
226
- const n = t.next;
227
- if (t.next = void 0, t.flags &= -9, t.flags & 1)
228
- try {
229
- t.trigger();
230
- } catch (s) {
231
- e || (e = s);
232
- }
233
- t = n;
234
- }
235
- }
236
- if (e) throw e;
237
- }
238
- class Cn {
239
- // TODO isolatedDeclarations "__v_skip"
240
- constructor(t) {
241
- this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
242
- }
243
- track(t) {
244
- }
245
- trigger(t) {
246
- this.version++, this.notify(t);
247
- }
248
- notify(t) {
249
- Je();
250
- try {
251
- if (process.env.NODE_ENV !== "production")
252
- for (let n = this.subsHead; n; n = n.nextSub)
253
- n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
254
- q(
255
- {
256
- effect: n.sub
257
- },
258
- t
259
- )
260
- );
261
- for (let n = this.subs; n; n = n.prevSub)
262
- n.sub.notify() && n.sub.dep.notify();
263
- } finally {
264
- Ye();
265
- }
266
- }
267
- }
268
- const bt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ Symbol(
269
- process.env.NODE_ENV !== "production" ? "Object iterate" : ""
270
- ), ct = /* @__PURE__ */ Symbol(
271
- process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
272
- ), at = /* @__PURE__ */ Symbol(
273
- process.env.NODE_ENV !== "production" ? "Array iterate" : ""
274
- );
275
- function P(e, t, n, s, r, o) {
276
- const i = bt.get(e);
277
- if (!i)
278
- return;
279
- const c = (l) => {
280
- l && (process.env.NODE_ENV !== "production" ? l.trigger({
281
- target: e,
282
- type: t,
283
- key: n,
284
- newValue: s,
285
- oldValue: r,
286
- oldTarget: o
287
- }) : l.trigger());
288
- };
289
- if (Je(), t === "clear")
290
- i.forEach(c);
291
- else {
292
- const l = g(e), f = l && Ee(n);
293
- if (l && n === "length") {
294
- const h = Number(s);
295
- i.forEach((a, u) => {
296
- (u === "length" || u === at || !H(u) && u >= h) && c(a);
297
- });
298
- } else
299
- switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(at)), t) {
300
- case "add":
301
- l ? f && c(i.get("length")) : (c(i.get(Ce)), te(e) && c(i.get(ct)));
302
- break;
303
- case "delete":
304
- l || (c(i.get(Ce)), te(e) && c(i.get(ct)));
305
- break;
306
- case "set":
307
- te(e) && c(i.get(Ce));
308
- break;
309
- }
310
- }
311
- Ye();
312
- }
313
- function Rn(e, t) {
314
- const n = bt.get(e);
315
- return n && n.get(t);
316
- }
317
- function L(e) {
318
- const t = /* @__PURE__ */ p(e);
319
- return t === e || /* @__PURE__ */ v(e) ? t : t.map(x);
320
- }
321
- function Ge(e) {
322
- return e = /* @__PURE__ */ p(e), e;
323
- }
324
- function E(e, t) {
325
- return /* @__PURE__ */ N(e) ? he(/* @__PURE__ */ Xe(e) ? x(t) : t) : x(t);
326
- }
327
- const xn = {
328
- __proto__: null,
329
- [Symbol.iterator]() {
330
- return Re(this, Symbol.iterator, (e) => E(this, e));
331
- },
332
- concat(...e) {
333
- return L(this).concat(
334
- ...e.map((t) => g(t) ? L(t) : t)
335
- );
336
- },
337
- entries() {
338
- return Re(this, "entries", (e) => (e[1] = E(this, e[1]), e));
339
- },
340
- every(e, t) {
341
- return k(this, "every", e, t, void 0, arguments);
342
- },
343
- filter(e, t) {
344
- return k(
345
- this,
346
- "filter",
347
- e,
348
- t,
349
- (n) => n.map((s) => E(this, s)),
350
- arguments
351
- );
352
- },
353
- find(e, t) {
354
- return k(
355
- this,
356
- "find",
357
- e,
358
- t,
359
- (n) => E(this, n),
360
- arguments
361
- );
362
- },
363
- findIndex(e, t) {
364
- return k(this, "findIndex", e, t, void 0, arguments);
365
- },
366
- findLast(e, t) {
367
- return k(
368
- this,
369
- "findLast",
370
- e,
371
- t,
372
- (n) => E(this, n),
373
- arguments
374
- );
375
- },
376
- findLastIndex(e, t) {
377
- return k(this, "findLastIndex", e, t, void 0, arguments);
378
- },
379
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
380
- forEach(e, t) {
381
- return k(this, "forEach", e, t, void 0, arguments);
382
- },
383
- includes(...e) {
384
- return xe(this, "includes", e);
385
- },
386
- indexOf(...e) {
387
- return xe(this, "indexOf", e);
388
- },
389
- join(e) {
390
- return L(this).join(e);
391
- },
392
- // keys() iterator only reads `length`, no optimization required
393
- lastIndexOf(...e) {
394
- return xe(this, "lastIndexOf", e);
395
- },
396
- map(e, t) {
397
- return k(this, "map", e, t, void 0, arguments);
398
- },
399
- pop() {
400
- return ee(this, "pop");
401
- },
402
- push(...e) {
403
- return ee(this, "push", e);
404
- },
405
- reduce(e, ...t) {
406
- return lt(this, "reduce", e, t);
407
- },
408
- reduceRight(e, ...t) {
409
- return lt(this, "reduceRight", e, t);
410
- },
411
- shift() {
412
- return ee(this, "shift");
413
- },
414
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
415
- some(e, t) {
416
- return k(this, "some", e, t, void 0, arguments);
417
- },
418
- splice(...e) {
419
- return ee(this, "splice", e);
420
- },
421
- toReversed() {
422
- return L(this).toReversed();
423
- },
424
- toSorted(e) {
425
- return L(this).toSorted(e);
426
- },
427
- toSpliced(...e) {
428
- return L(this).toSpliced(...e);
429
- },
430
- unshift(...e) {
431
- return ee(this, "unshift", e);
432
- },
433
- values() {
434
- return Re(this, "values", (e) => E(this, e));
435
- }
436
- };
437
- function Re(e, t, n) {
438
- const s = Ge(e), r = s[t]();
439
- return s !== e && !/* @__PURE__ */ v(e) && (r._next = r.next, r.next = () => {
440
- const o = r._next();
441
- return o.done || (o.value = n(o.value)), o;
442
- }), r;
443
- }
444
- const In = Array.prototype;
445
- function k(e, t, n, s, r, o) {
446
- const i = Ge(e), c = i !== e && !/* @__PURE__ */ v(e), l = i[t];
447
- if (l !== In[t]) {
448
- const a = l.apply(e, o);
449
- return c ? x(a) : a;
450
- }
451
- let f = n;
452
- i !== e && (c ? f = function(a, u) {
453
- return n.call(this, E(e, a), u, e);
454
- } : n.length > 2 && (f = function(a, u) {
455
- return n.call(this, a, u, e);
456
- }));
457
- const h = l.call(i, f, s);
458
- return c && r ? r(h) : h;
459
- }
460
- function lt(e, t, n, s) {
461
- const r = Ge(e), o = r !== e && !/* @__PURE__ */ v(e);
462
- let i = n, c = !1;
463
- r !== e && (o ? (c = s.length === 0, i = function(f, h, a) {
464
- return c && (c = !1, f = E(e, f)), n.call(this, f, E(e, h), a, e);
465
- }) : n.length > 3 && (i = function(f, h, a) {
466
- return n.call(this, f, h, a, e);
467
- }));
468
- const l = r[t](i, ...s);
469
- return c ? E(e, l) : l;
470
- }
471
- function xe(e, t, n) {
472
- const s = /* @__PURE__ */ p(e), r = s[t](...n);
473
- return (r === -1 || r === !1) && /* @__PURE__ */ se(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), s[t](...n)) : r;
474
- }
475
- function ee(e, t, n = []) {
476
- Je();
477
- const s = (/* @__PURE__ */ p(e))[t].apply(e, n);
478
- return Ye(), s;
479
- }
480
- const Dn = /* @__PURE__ */ gn("__proto__,__v_isRef,__isVue"), St = new Set(
481
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(H)
482
- );
483
- function Pn(e) {
484
- return H(e) || (e = String(e)), (/* @__PURE__ */ p(this)).hasOwnProperty(e);
485
- }
486
- class vt {
487
- constructor(t = !1, n = !1) {
488
- this._isReadonly = t, this._isShallow = n;
489
- }
490
- get(t, n, s) {
491
- if (n === "__v_skip") return t.__v_skip;
492
- const r = this._isReadonly, o = this._isShallow;
493
- if (n === "__v_isReactive")
494
- return !r;
495
- if (n === "__v_isReadonly")
496
- return r;
497
- if (n === "__v_isShallow")
498
- return o;
499
- if (n === "__v_raw")
500
- return s === (r ? o ? Un : Nt : o ? qn : Et).get(t) || // receiver is not the reactive proxy, but has the same prototype
501
- // this means the receiver is a user proxy of the reactive proxy
502
- Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
503
- const i = g(t);
504
- if (!r) {
505
- let l;
506
- if (i && (l = xn[n]))
507
- return l;
508
- if (n === "hasOwnProperty")
509
- return Pn;
510
- }
511
- const c = Reflect.get(
512
- t,
513
- n,
514
- // if this is a proxy wrapping a ref, return methods using the raw ref
515
- // as receiver so that we don't have to call `toRaw` on the ref in all
516
- // its class methods
517
- /* @__PURE__ */ m(t) ? t : s
518
- );
519
- if ((H(n) ? St.has(n) : Dn(n)) || o)
520
- return c;
521
- if (/* @__PURE__ */ m(c)) {
522
- const l = i && Ee(n) ? c : c.value;
523
- return r && y(l) ? /* @__PURE__ */ Ke(l) : l;
524
- }
525
- return y(c) ? r ? /* @__PURE__ */ Ke(c) : /* @__PURE__ */ Ot(c) : c;
526
- }
527
- }
528
- class jn extends vt {
529
- constructor(t = !1) {
530
- super(!1, t);
531
- }
532
- set(t, n, s, r) {
533
- let o = t[n];
534
- const i = g(t) && Ee(n);
535
- if (!this._isShallow) {
536
- const f = /* @__PURE__ */ N(o);
537
- if (!/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) && (o = /* @__PURE__ */ p(o), s = /* @__PURE__ */ p(s)), !i && /* @__PURE__ */ m(o) && !/* @__PURE__ */ m(s))
538
- return f ? (process.env.NODE_ENV !== "production" && Z(
539
- `Set operation on key "${String(n)}" failed: target is readonly.`,
540
- t[n]
541
- ), !0) : (o.value = s, !0);
542
- }
543
- const c = i ? Number(n) < t.length : Fe(t, n), l = Reflect.set(
544
- t,
545
- n,
546
- s,
547
- /* @__PURE__ */ m(t) ? t : r
548
- );
549
- return t === /* @__PURE__ */ p(r) && (c ? ne(s, o) && P(t, "set", n, s, o) : P(t, "add", n, s)), l;
550
- }
551
- deleteProperty(t, n) {
552
- const s = Fe(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
553
- return o && s && P(t, "delete", n, void 0, r), o;
554
- }
555
- has(t, n) {
556
- const s = Reflect.has(t, n);
557
- return !H(n) || St.has(n), s;
558
- }
559
- ownKeys(t) {
560
- return Reflect.ownKeys(t);
561
- }
562
- }
563
- class $n extends vt {
564
- constructor(t = !1) {
565
- super(!0, t);
566
- }
567
- set(t, n) {
568
- return process.env.NODE_ENV !== "production" && Z(
569
- `Set operation on key "${String(n)}" failed: target is readonly.`,
570
- t
571
- ), !0;
572
- }
573
- deleteProperty(t, n) {
574
- return process.env.NODE_ENV !== "production" && Z(
575
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
576
- t
577
- ), !0;
578
- }
579
- }
580
- const Tn = /* @__PURE__ */ new jn(), An = /* @__PURE__ */ new $n(), ae = (e) => Reflect.getPrototypeOf(e);
581
- function Mn(e, t, n) {
582
- return function(...s) {
583
- const r = this.__v_raw, o = te(/* @__PURE__ */ p(r)), i = e === "entries" || e === Symbol.iterator && o, c = r[e](...s), l = t ? he : x;
584
- return q(
585
- // inheriting all iterator properties
586
- Object.create(c),
587
- {
588
- // iterator protocol
589
- next() {
590
- const { value: f, done: h } = c.next();
591
- return h ? { value: f, done: h } : {
592
- value: i ? [l(f[0]), l(f[1])] : l(f),
593
- done: h
594
- };
595
- }
596
- }
597
- );
598
- };
599
- }
600
- function le(e) {
601
- return function(...t) {
602
- if (process.env.NODE_ENV !== "production") {
603
- const n = t[0] ? `on key "${t[0]}" ` : "";
604
- Z(
605
- `${En(e)} operation ${n}failed: target is readonly.`,
606
- /* @__PURE__ */ p(this)
607
- );
608
- }
609
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
610
- };
611
- }
612
- function Fn(e, t) {
613
- const n = {
614
- get(s) {
615
- const r = this.__v_raw, o = /* @__PURE__ */ p(r), i = /* @__PURE__ */ p(s), { has: c } = ae(o), l = e ? he : x;
616
- if (c.call(o, s))
617
- return l(r.get(s));
618
- if (c.call(o, i))
619
- return l(r.get(i));
620
- r !== o && r.get(s);
621
- },
622
- get size() {
623
- return this.__v_raw.size;
624
- },
625
- has(s) {
626
- const r = this.__v_raw, o = /* @__PURE__ */ p(s);
627
- return s === o ? r.has(s) : r.has(s) || r.has(o);
628
- },
629
- forEach(s, r) {
630
- const o = this, i = o.__v_raw, c = e ? he : x;
631
- return i.forEach((l, f) => s.call(r, c(l), c(f), o));
632
- }
633
- };
634
- return q(
635
- n,
636
- e ? {
637
- add: le("add"),
638
- set: le("set"),
639
- delete: le("delete"),
640
- clear: le("clear")
641
- } : {
642
- add(s) {
643
- const r = /* @__PURE__ */ p(this), o = ae(r), i = /* @__PURE__ */ p(s), c = !/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) ? i : s;
644
- return o.has.call(r, c) || ne(s, c) && o.has.call(r, s) || ne(i, c) && o.has.call(r, i) || (r.add(c), P(r, "add", c, c)), this;
645
- },
646
- set(s, r) {
647
- !/* @__PURE__ */ v(r) && !/* @__PURE__ */ N(r) && (r = /* @__PURE__ */ p(r));
648
- const o = /* @__PURE__ */ p(this), { has: i, get: c } = ae(o);
649
- let l = i.call(o, s);
650
- l ? process.env.NODE_ENV !== "production" && ut(o, i, s) : (s = /* @__PURE__ */ p(s), l = i.call(o, s));
651
- const f = c.call(o, s);
652
- return o.set(s, r), l ? ne(r, f) && P(o, "set", s, r, f) : P(o, "add", s, r), this;
653
- },
654
- delete(s) {
655
- const r = /* @__PURE__ */ p(this), { has: o, get: i } = ae(r);
656
- let c = o.call(r, s);
657
- c ? process.env.NODE_ENV !== "production" && ut(r, o, s) : (s = /* @__PURE__ */ p(s), c = o.call(r, s));
658
- const l = i ? i.call(r, s) : void 0, f = r.delete(s);
659
- return c && P(r, "delete", s, void 0, l), f;
660
- },
661
- clear() {
662
- const s = /* @__PURE__ */ p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ? te(s) ? new Map(s) : new Set(s) : void 0, i = s.clear();
663
- return r && P(
664
- s,
665
- "clear",
666
- void 0,
667
- void 0,
668
- o
669
- ), i;
670
- }
671
- }
672
- ), [
673
- "keys",
674
- "values",
675
- "entries",
676
- Symbol.iterator
677
- ].forEach((s) => {
678
- n[s] = Mn(s, e);
679
- }), n;
680
- }
681
- function wt(e, t) {
682
- const n = Fn(e);
683
- return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
684
- Fe(n, r) && r in s ? n : s,
685
- r,
686
- o
687
- );
688
- }
689
- const Kn = {
690
- get: /* @__PURE__ */ wt(!1)
691
- }, Hn = {
692
- get: /* @__PURE__ */ wt(!0)
693
- };
694
- function ut(e, t, n) {
695
- const s = /* @__PURE__ */ p(n);
696
- if (s !== n && t.call(e, s)) {
697
- const r = yt(e);
698
- Z(
699
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
700
- );
701
- }
702
- }
703
- const Et = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
704
- function Ln(e) {
705
- switch (e) {
706
- case "Object":
707
- case "Array":
708
- return 1;
709
- case "Map":
710
- case "Set":
711
- case "WeakMap":
712
- case "WeakSet":
713
- return 2;
714
- default:
715
- return 0;
716
- }
717
- }
718
- function Wn(e) {
719
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Ln(yt(e));
720
- }
721
- // @__NO_SIDE_EFFECTS__
722
- function Ot(e) {
723
- return /* @__PURE__ */ N(e) ? e : kt(
724
- e,
725
- !1,
726
- Tn,
727
- Kn,
728
- Et
729
- );
730
- }
731
- // @__NO_SIDE_EFFECTS__
732
- function Ke(e) {
733
- return kt(
734
- e,
735
- !0,
736
- An,
737
- Hn,
738
- Nt
739
- );
740
- }
741
- function kt(e, t, n, s, r) {
742
- if (!y(e))
743
- return process.env.NODE_ENV !== "production" && Z(
744
- `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
745
- e
746
- )}`
747
- ), e;
748
- if (e.__v_raw && !(t && e.__v_isReactive))
749
- return e;
750
- const o = Wn(e);
751
- if (o === 0)
752
- return e;
753
- const i = r.get(e);
754
- if (i)
755
- return i;
756
- const c = new Proxy(
757
- e,
758
- o === 2 ? s : n
759
- );
760
- return r.set(e, c), c;
761
- }
762
- // @__NO_SIDE_EFFECTS__
763
- function Xe(e) {
764
- return /* @__PURE__ */ N(e) ? /* @__PURE__ */ Xe(e.__v_raw) : !!(e && e.__v_isReactive);
765
- }
766
- // @__NO_SIDE_EFFECTS__
767
- function N(e) {
768
- return !!(e && e.__v_isReadonly);
769
- }
770
- // @__NO_SIDE_EFFECTS__
771
- function v(e) {
772
- return !!(e && e.__v_isShallow);
773
- }
774
- // @__NO_SIDE_EFFECTS__
775
- function se(e) {
776
- return e ? !!e.__v_raw : !1;
777
- }
778
- // @__NO_SIDE_EFFECTS__
779
- function p(e) {
780
- const t = e && e.__v_raw;
781
- return t ? /* @__PURE__ */ p(t) : e;
782
- }
783
- const x = (e) => y(e) ? /* @__PURE__ */ Ot(e) : e, he = (e) => y(e) ? /* @__PURE__ */ Ke(e) : e;
784
- // @__NO_SIDE_EFFECTS__
785
- function m(e) {
786
- return e ? e.__v_isRef === !0 : !1;
787
- }
788
- // @__NO_SIDE_EFFECTS__
789
- function Vt(e) {
790
- return zn(e, !1);
791
- }
792
- function zn(e, t) {
793
- return /* @__PURE__ */ m(e) ? e : new Bn(e, t);
794
- }
795
- class Bn {
796
- constructor(t, n) {
797
- this.dep = new Cn(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : /* @__PURE__ */ p(t), this._value = n ? t : x(t), this.__v_isShallow = n;
798
- }
799
- get value() {
800
- return process.env.NODE_ENV !== "production" ? this.dep.track({
801
- target: this,
802
- type: "get",
803
- key: "value"
804
- }) : this.dep.track(), this._value;
805
- }
806
- set value(t) {
807
- const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ v(t) || /* @__PURE__ */ N(t);
808
- t = s ? t : /* @__PURE__ */ p(t), ne(t, n) && (this._rawValue = t, this._value = s ? t : x(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
809
- target: this,
810
- type: "set",
811
- key: "value",
812
- newValue: t,
813
- oldValue: n
814
- }) : this.dep.trigger());
815
- }
816
- }
817
- function Jn(e) {
818
- return /* @__PURE__ */ m(e) ? e.value : e;
819
- }
820
- class Yn {
821
- constructor(t, n, s) {
822
- this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key = H(n) ? n : String(n), this._raw = /* @__PURE__ */ p(t);
823
- let r = !0, o = t;
824
- if (!g(t) || H(this._key) || !Ee(this._key))
825
- do
826
- r = !/* @__PURE__ */ se(o) || /* @__PURE__ */ v(o);
827
- while (r && (o = o.__v_raw));
828
- this._shallow = r;
829
- }
830
- get value() {
831
- let t = this._object[this._key];
832
- return this._shallow && (t = Jn(t)), this._value = t === void 0 ? this._defaultValue : t;
833
- }
834
- set value(t) {
835
- if (this._shallow && /* @__PURE__ */ m(this._raw[this._key])) {
836
- const n = this._object[this._key];
837
- if (/* @__PURE__ */ m(n)) {
838
- n.value = t;
839
- return;
840
- }
841
- }
842
- this._object[this._key] = t;
843
- }
844
- get dep() {
845
- return Rn(this._raw, this._key);
846
- }
847
- }
848
- class Gn {
849
- constructor(t) {
850
- this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
851
- }
852
- get value() {
853
- return this._value = this._getter();
854
- }
855
- }
856
- // @__NO_SIDE_EFFECTS__
857
- function Xn(e, t, n) {
858
- return /* @__PURE__ */ m(e) ? e : T(e) ? new Gn(e) : y(e) && arguments.length > 1 ? Zn(e, t, n) : /* @__PURE__ */ Vt(e);
859
- }
860
- function Zn(e, t, n) {
861
- return new Yn(e, t, n);
862
- }
863
- const M = [];
864
- function Qn(e) {
865
- M.push(e);
866
- }
867
- function es() {
868
- M.pop();
869
- }
870
- let Ie = !1;
871
- function re(e, ...t) {
872
- if (Ie) return;
873
- Ie = !0;
874
- const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ts();
875
- if (s)
876
- Ze(
877
- s,
878
- n,
879
- 11,
880
- [
881
- // eslint-disable-next-line no-restricted-syntax
882
- e + t.map((o) => {
883
- var i, c;
884
- return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
885
- }).join(""),
886
- n && n.proxy,
887
- r.map(
888
- ({ vnode: o }) => `at <${Ht(n, o.type)}>`
889
- ).join(`
890
- `),
891
- r
892
- ]
893
- );
894
- else {
895
- const o = [`[Vue warn]: ${e}`, ...t];
896
- r.length && o.push(`
897
- `, ...ns(r)), console.warn(...o);
898
- }
899
- Ie = !1;
900
- }
901
- function ts() {
902
- let e = M[M.length - 1];
903
- if (!e)
904
- return [];
905
- const t = [];
906
- for (; e; ) {
907
- const n = t[0];
908
- n && n.vnode === e ? n.recurseCount++ : t.push({
909
- vnode: e,
910
- recurseCount: 0
911
- });
912
- const s = e.component && e.component.parent;
913
- e = s && s.vnode;
914
- }
915
- return t;
916
- }
917
- function ns(e) {
918
- const t = [];
919
- return e.forEach((n, s) => {
920
- t.push(...s === 0 ? [] : [`
921
- `], ...ss(n));
922
- }), t;
923
- }
924
- function ss({ vnode: e, recurseCount: t }) {
925
- const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Ht(
926
- e.component,
927
- e.type,
928
- s
929
- )}`, o = ">" + n;
930
- return e.props ? [r, ...rs(e.props), o] : [r + o];
931
- }
932
- function rs(e) {
933
- const t = [], n = Object.keys(e);
934
- return n.slice(0, 3).forEach((s) => {
935
- t.push(...Ct(s, e[s]));
936
- }), n.length > 3 && t.push(" ..."), t;
937
- }
938
- function Ct(e, t, n) {
939
- return R(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ m(t) ? (t = Ct(e, /* @__PURE__ */ p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : T(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ p(t), n ? t : [`${e}=`, t]);
940
- }
941
- const Rt = {
942
- sp: "serverPrefetch hook",
943
- bc: "beforeCreate hook",
944
- c: "created hook",
945
- bm: "beforeMount hook",
946
- m: "mounted hook",
947
- bu: "beforeUpdate hook",
948
- u: "updated",
949
- bum: "beforeUnmount hook",
950
- um: "unmounted hook",
951
- a: "activated hook",
952
- da: "deactivated hook",
953
- ec: "errorCaptured hook",
954
- rtc: "renderTracked hook",
955
- rtg: "renderTriggered hook",
956
- 0: "setup function",
957
- 1: "render function",
958
- 2: "watcher getter",
959
- 3: "watcher callback",
960
- 4: "watcher cleanup function",
961
- 5: "native event handler",
962
- 6: "component event handler",
963
- 7: "vnode hook",
964
- 8: "directive hook",
965
- 9: "transition hook",
966
- 10: "app errorHandler",
967
- 11: "app warnHandler",
968
- 12: "ref function",
969
- 13: "async component loader",
970
- 14: "scheduler flush",
971
- 15: "component update",
972
- 16: "app unmount cleanup function"
973
- };
974
- function Ze(e, t, n, s) {
975
- try {
976
- return s ? e(...s) : e();
977
- } catch (r) {
978
- xt(r, t, n);
979
- }
980
- }
981
- function xt(e, t, n, s = !0) {
982
- const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Me;
983
- if (t) {
984
- let c = t.parent;
985
- const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Rt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
986
- for (; c; ) {
987
- const h = c.ec;
988
- if (h) {
989
- for (let a = 0; a < h.length; a++)
990
- if (h[a](e, l, f) === !1)
991
- return;
992
- }
993
- c = c.parent;
994
- }
995
- if (o) {
996
- Ze(o, null, 10, [
997
- e,
998
- l,
999
- f
1000
- ]);
1001
- return;
1002
- }
1003
- }
1004
- os(e, n, r, s, i);
1005
- }
1006
- function os(e, t, n, s = !0, r = !1) {
1007
- if (process.env.NODE_ENV !== "production") {
1008
- const o = Rt[t];
1009
- if (n && Qn(n), re(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && es(), s)
1010
- throw e;
1011
- console.error(e);
1012
- } else {
1013
- if (r)
1014
- throw e;
1015
- console.error(e);
1016
- }
1017
- }
1018
- const b = [];
1019
- let V = -1;
1020
- const G = [];
1021
- let I = null, z = 0;
1022
- const is = /* @__PURE__ */ Promise.resolve();
1023
- let He = null;
1024
- const cs = 100;
1025
- function as(e) {
1026
- let t = V + 1, n = b.length;
1027
- for (; t < n; ) {
1028
- const s = t + n >>> 1, r = b[s], o = oe(r);
1029
- o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
1030
- }
1031
- return t;
1032
- }
1033
- function ls(e) {
1034
- if (!(e.flags & 1)) {
1035
- const t = oe(e), n = b[b.length - 1];
1036
- !n || // fast path when the job id is larger than the tail
1037
- !(e.flags & 2) && t >= oe(n) ? b.push(e) : b.splice(as(t), 0, e), e.flags |= 1, It();
1038
- }
1039
- }
1040
- function It() {
1041
- He || (He = is.then(Dt));
1042
- }
1043
- function us(e) {
1044
- g(e) ? G.push(...e) : I && e.id === -1 ? I.splice(z + 1, 0, e) : e.flags & 1 || (G.push(e), e.flags |= 1), It();
1045
- }
1046
- function fs(e) {
1047
- if (G.length) {
1048
- const t = [...new Set(G)].sort(
1049
- (n, s) => oe(n) - oe(s)
1050
- );
1051
- if (G.length = 0, I) {
1052
- I.push(...t);
1053
- return;
1054
- }
1055
- for (I = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), z = 0; z < I.length; z++) {
1056
- const n = I[z];
1057
- process.env.NODE_ENV !== "production" && Pt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1058
- }
1059
- I = null, z = 0;
1060
- }
1061
- }
1062
- const oe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1063
- function Dt(e) {
1064
- process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1065
- const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) : yn;
1066
- try {
1067
- for (V = 0; V < b.length; V++) {
1068
- const n = b[V];
1069
- if (n && !(n.flags & 8)) {
1070
- if (process.env.NODE_ENV !== "production" && t(n))
1071
- continue;
1072
- n.flags & 4 && (n.flags &= -2), Ze(
1073
- n,
1074
- n.i,
1075
- n.i ? 15 : 14
1076
- ), n.flags & 4 || (n.flags &= -2);
1077
- }
1078
- }
1079
- } finally {
1080
- for (; V < b.length; V++) {
1081
- const n = b[V];
1082
- n && (n.flags &= -2);
1083
- }
1084
- V = -1, b.length = 0, fs(e), He = null, (b.length || G.length) && Dt(e);
1085
- }
1086
- }
1087
- function Pt(e, t) {
1088
- const n = e.get(t) || 0;
1089
- if (n > cs) {
1090
- const s = t.i, r = s && Kt(s.type);
1091
- return xt(
1092
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1093
- null,
1094
- 10
1095
- ), !0;
1096
- }
1097
- return e.set(t, n + 1), !1;
1098
- }
1099
- const De = /* @__PURE__ */ new Map();
1100
- process.env.NODE_ENV !== "production" && (Ne().__VUE_HMR_RUNTIME__ = {
1101
- createRecord: Pe(ps),
1102
- rerender: Pe(hs),
1103
- reload: Pe(ds)
1104
- });
1105
- const de = /* @__PURE__ */ new Map();
1106
- function ps(e, t) {
1107
- return de.has(e) ? !1 : (de.set(e, {
1108
- initialDef: _e(t),
1109
- instances: /* @__PURE__ */ new Set()
1110
- }), !0);
1111
- }
1112
- function _e(e) {
1113
- return qt(e) ? e.__vccOpts : e;
1114
- }
1115
- function hs(e, t) {
1116
- const n = de.get(e);
1117
- n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
1118
- t && (s.render = t, _e(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
1119
- }));
1120
- }
1121
- function ds(e, t) {
1122
- const n = de.get(e);
1123
- if (!n) return;
1124
- t = _e(t), ft(n.initialDef, t);
1125
- const s = [...n.instances];
1126
- for (let r = 0; r < s.length; r++) {
1127
- const o = s[r], i = _e(o.type);
1128
- let c = De.get(i);
1129
- c || (i !== n.initialDef && ft(i, t), De.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(t.styles), c.delete(o)) : o.parent ? ls(() => {
1130
- o.job.flags & 8 || (o.parent.update(), c.delete(o));
1131
- }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1132
- "[HMR] Root or manually mounted instance modified. Full reload required."
1133
- ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1134
- }
1135
- us(() => {
1136
- De.clear();
1137
- });
1138
- }
1139
- function ft(e, t) {
1140
- q(e, t);
1141
- for (const n in e)
1142
- n !== "__file" && !(n in t) && delete e[n];
1143
- }
1144
- function Pe(e) {
1145
- return (t, n) => {
1146
- try {
1147
- return e(t, n);
1148
- } catch (s) {
1149
- console.error(s), console.warn(
1150
- "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1151
- );
1152
- }
1153
- };
1154
- }
1155
- let ge = null, _s = null;
1156
- const gs = (e) => e.__isTeleport;
1157
- function jt(e, t) {
1158
- e.shapeFlag & 6 && e.component ? (e.transition = t, jt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1159
- }
1160
- Ne().requestIdleCallback;
1161
- Ne().cancelIdleCallback;
1162
- const ys = /* @__PURE__ */ Symbol.for("v-ndc");
1163
- process.env.NODE_ENV;
1164
- const ms = {}, $t = (e) => Object.getPrototypeOf(e) === ms, bs = (e) => e.__isSuspense, Tt = /* @__PURE__ */ Symbol.for("v-fgt"), Ss = /* @__PURE__ */ Symbol.for("v-txt"), vs = /* @__PURE__ */ Symbol.for("v-cmt");
1165
- function ws(e) {
1166
- return e ? e.__v_isVNode === !0 : !1;
1167
- }
1168
- const Es = (...e) => Mt(
1169
- ...e
1170
- ), At = ({ key: e }) => e ?? null, fe = ({
1171
- ref: e,
1172
- ref_key: t,
1173
- ref_for: n
1174
- }) => (typeof e == "number" && (e = "" + e), e != null ? R(e) || /* @__PURE__ */ m(e) || T(e) ? { i: ge, r: e, k: t, f: !!n } : e : null);
1175
- function Ns(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1, c = !1) {
1176
- const l = {
1177
- __v_isVNode: !0,
1178
- __v_skip: !0,
1179
- type: e,
1180
- props: t,
1181
- key: t && At(t),
1182
- ref: t && fe(t),
1183
- scopeId: _s,
1184
- slotScopeIds: null,
1185
- children: n,
1186
- component: null,
1187
- suspense: null,
1188
- ssContent: null,
1189
- ssFallback: null,
1190
- dirs: null,
1191
- transition: null,
1192
- el: null,
1193
- anchor: null,
1194
- target: null,
1195
- targetStart: null,
1196
- targetAnchor: null,
1197
- staticCount: 0,
1198
- shapeFlag: o,
1199
- patchFlag: s,
1200
- dynamicProps: r,
1201
- dynamicChildren: null,
1202
- appContext: null,
1203
- ctx: ge
1204
- };
1205
- return c ? (Qe(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && re("VNode created with invalid key (NaN). VNode type:", l.type), l;
1206
- }
1207
- const Os = process.env.NODE_ENV !== "production" ? Es : Mt;
1208
- function Mt(e, t = null, n = null, s = 0, r = null, o = !1) {
1209
- if ((!e || e === ys) && (process.env.NODE_ENV !== "production" && !e && re(`Invalid vnode type when creating vnode: ${e}.`), e = vs), ws(e)) {
1210
- const c = ye(
1211
- e,
1212
- t,
1213
- !0
1214
- /* mergeRef: true */
1215
- );
1216
- return n && Qe(c, n), c.patchFlag = -2, c;
1217
- }
1218
- if (qt(e) && (e = e.__vccOpts), t) {
1219
- t = ks(t);
1220
- let { class: c, style: l } = t;
1221
- c && !R(c) && (t.class = Be(c)), y(l) && (/* @__PURE__ */ se(l) && !g(l) && (l = q({}, l)), t.style = ze(l));
1222
- }
1223
- const i = R(e) ? 1 : bs(e) ? 128 : gs(e) ? 64 : y(e) ? 4 : T(e) ? 2 : 0;
1224
- return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ se(e) && (e = /* @__PURE__ */ p(e), re(
1225
- "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`.",
1226
- `
1227
- Component that was made reactive: `,
1228
- e
1229
- )), Ns(
1230
- e,
1231
- t,
1232
- n,
1233
- s,
1234
- r,
1235
- i,
1236
- o,
1237
- !0
1238
- );
1239
- }
1240
- function ks(e) {
1241
- return e ? /* @__PURE__ */ se(e) || $t(e) ? q({}, e) : e : null;
1242
- }
1243
- function ye(e, t, n = !1, s = !1) {
1244
- const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Cs(r || {}, t) : r, h = {
1245
- __v_isVNode: !0,
1246
- __v_skip: !0,
1247
- type: e.type,
1248
- props: f,
1249
- key: f && At(f),
1250
- ref: t && t.ref ? (
1251
- // #2078 in the case of <component :is="vnode" ref="extra"/>
1252
- // if the vnode itself already has a ref, cloneVNode will need to merge
1253
- // the refs so the single vnode can be set on multiple refs
1254
- n && o ? g(o) ? o.concat(fe(t)) : [o, fe(t)] : fe(t)
1255
- ) : o,
1256
- scopeId: e.scopeId,
1257
- slotScopeIds: e.slotScopeIds,
1258
- children: process.env.NODE_ENV !== "production" && i === -1 && g(c) ? c.map(Ft) : c,
1259
- target: e.target,
1260
- targetStart: e.targetStart,
1261
- targetAnchor: e.targetAnchor,
1262
- staticCount: e.staticCount,
1263
- shapeFlag: e.shapeFlag,
1264
- // if the vnode is cloned with extra props, we can no longer assume its
1265
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1266
- // note: preserve flag for fragments since they use the flag for children
1267
- // fast paths only.
1268
- patchFlag: t && e.type !== Tt ? i === -1 ? 16 : i | 16 : i,
1269
- dynamicProps: e.dynamicProps,
1270
- dynamicChildren: e.dynamicChildren,
1271
- appContext: e.appContext,
1272
- dirs: e.dirs,
1273
- transition: l,
1274
- // These should technically only be non-null on mounted VNodes. However,
1275
- // they *should* be copied for kept-alive vnodes. So we just always copy
1276
- // them since them being non-null during a mount doesn't affect the logic as
1277
- // they will simply be overwritten.
1278
- component: e.component,
1279
- suspense: e.suspense,
1280
- ssContent: e.ssContent && ye(e.ssContent),
1281
- ssFallback: e.ssFallback && ye(e.ssFallback),
1282
- placeholder: e.placeholder,
1283
- el: e.el,
1284
- anchor: e.anchor,
1285
- ctx: e.ctx,
1286
- ce: e.ce
1287
- };
1288
- return l && s && jt(
1289
- h,
1290
- l.clone(h)
1291
- ), h;
1292
- }
1293
- function Ft(e) {
1294
- const t = ye(e);
1295
- return g(e.children) && (t.children = e.children.map(Ft)), t;
1296
- }
1297
- function Vs(e = " ", t = 0) {
1298
- return Os(Ss, null, e, t);
1299
- }
1300
- function Qe(e, t) {
1301
- let n = 0;
1302
- const { shapeFlag: s } = e;
1303
- if (t == null)
1304
- t = null;
1305
- else if (g(t))
1306
- n = 16;
1307
- else if (typeof t == "object")
1308
- if (s & 65) {
1309
- const r = t.default;
1310
- r && (r._c && (r._d = !1), Qe(e, r()), r._c && (r._d = !0));
1311
- return;
1312
- } else
1313
- n = 32, !t._ && !$t(t) && (t._ctx = ge);
1314
- else T(t) ? (t = { default: t, _ctx: ge }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Vs(t)]) : n = 8);
1315
- e.children = t, e.shapeFlag |= n;
1316
- }
1317
- function Cs(...e) {
1318
- const t = {};
1319
- for (let n = 0; n < e.length; n++) {
1320
- const s = e[n];
1321
- for (const r in s)
1322
- if (r === "class")
1323
- t.class !== s.class && (t.class = Be([t.class, s.class]));
1324
- else if (r === "style")
1325
- t.style = ze([t.style, s.style]);
1326
- else if (mn(r)) {
1327
- const o = t[r], i = s[r];
1328
- i && o !== i && !(g(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
1329
- // the model listener.
1330
- !bn(r) && (t[r] = i);
1331
- } else r !== "" && (t[r] = s[r]);
1332
- }
1333
- return t;
1334
- }
1335
- {
1336
- const e = Ne(), t = (n, s) => {
1337
- let r;
1338
- return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
1339
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
1340
- };
1341
- };
1342
- t(
1343
- "__VUE_INSTANCE_SETTERS__",
1344
- (n) => n
1345
- ), t(
1346
- "__VUE_SSR_SETTERS__",
1347
- (n) => n
1348
- );
1349
- }
1350
- process.env.NODE_ENV;
1351
- const Rs = /(?:^|[-_])\w/g, xs = (e) => e.replace(Rs, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1352
- function Kt(e, t = !0) {
1353
- return T(e) ? e.displayName || e.name : e.name || t && e.__name;
1354
- }
1355
- function Ht(e, t, n = !1) {
1356
- let s = Kt(t);
1357
- if (!s && t.__file) {
1358
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
1359
- r && (s = r[1]);
1360
- }
1361
- if (!s && e) {
1362
- const r = (o) => {
1363
- for (const i in o)
1364
- if (o[i] === t)
1365
- return i;
1366
- };
1367
- s = r(e.components) || e.parent && r(
1368
- e.parent.type.components
1369
- ) || r(e.appContext.components);
1370
- }
1371
- return s ? xs(s) : n ? "App" : "Anonymous";
1372
- }
1373
- function qt(e) {
1374
- return T(e) && "__vccOpts" in e;
1375
- }
1376
- function Is() {
1377
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1378
- return;
1379
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1380
- __vue_custom_formatter: !0,
1381
- header(a) {
1382
- if (!y(a))
1383
- return null;
1384
- if (a.__isVue)
1385
- return ["div", e, "VueInstance"];
1386
- if (/* @__PURE__ */ m(a)) {
1387
- const u = a.value;
1388
- return [
1389
- "div",
1390
- {},
1391
- ["span", e, h(a)],
1392
- "<",
1393
- c(u),
1394
- ">"
1395
- ];
1396
- } else {
1397
- if (/* @__PURE__ */ Xe(a))
1398
- return [
1399
- "div",
1400
- {},
1401
- ["span", e, /* @__PURE__ */ v(a) ? "ShallowReactive" : "Reactive"],
1402
- "<",
1403
- c(a),
1404
- `>${/* @__PURE__ */ N(a) ? " (readonly)" : ""}`
1405
- ];
1406
- if (/* @__PURE__ */ N(a))
1407
- return [
1408
- "div",
1409
- {},
1410
- ["span", e, /* @__PURE__ */ v(a) ? "ShallowReadonly" : "Readonly"],
1411
- "<",
1412
- c(a),
1413
- ">"
1414
- ];
1415
- }
1416
- return null;
1417
- },
1418
- hasBody(a) {
1419
- return a && a.__isVue;
1420
- },
1421
- body(a) {
1422
- if (a && a.__isVue)
1423
- return [
1424
- "div",
1425
- {},
1426
- ...o(a.$)
1427
- ];
1428
- }
1429
- };
1430
- function o(a) {
1431
- const u = [];
1432
- a.type.props && a.props && u.push(i("props", /* @__PURE__ */ p(a.props))), a.setupState !== Me && u.push(i("setup", a.setupState)), a.data !== Me && u.push(i("data", /* @__PURE__ */ p(a.data)));
1433
- const d = l(a, "computed");
1434
- d && u.push(i("computed", d));
1435
- const _ = l(a, "inject");
1436
- return _ && u.push(i("injected", _)), u.push([
1437
- "div",
1438
- {},
1439
- [
1440
- "span",
1441
- {
1442
- style: s.style + ";opacity:0.66"
1443
- },
1444
- "$ (internal): "
1445
- ],
1446
- ["object", { object: a }]
1447
- ]), u;
1448
- }
1449
- function i(a, u) {
1450
- return u = q({}, u), Object.keys(u).length ? [
1451
- "div",
1452
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1453
- [
1454
- "div",
1455
- {
1456
- style: "color:#476582"
1457
- },
1458
- a
1459
- ],
1460
- [
1461
- "div",
1462
- {
1463
- style: "padding-left:1.25em"
1464
- },
1465
- ...Object.keys(u).map((d) => [
1466
- "div",
1467
- {},
1468
- ["span", s, d + ": "],
1469
- c(u[d], !1)
1470
- ])
1471
- ]
1472
- ] : ["span", {}];
1473
- }
1474
- function c(a, u = !0) {
1475
- return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : y(a) ? ["object", { object: u ? /* @__PURE__ */ p(a) : a }] : ["span", n, String(a)];
1476
- }
1477
- function l(a, u) {
1478
- const d = a.type;
1479
- if (T(d))
1480
- return;
1481
- const _ = {};
1482
- for (const w in a.ctx)
1483
- f(d, w, u) && (_[w] = a.ctx[w]);
1484
- return _;
1485
- }
1486
- function f(a, u, d) {
1487
- const _ = a[d];
1488
- if (g(_) && _.includes(u) || y(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
1489
- return !0;
1490
- }
1491
- function h(a) {
1492
- return /* @__PURE__ */ v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1493
- }
1494
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1495
- }
1496
- process.env.NODE_ENV;
1497
- process.env.NODE_ENV;
1498
- process.env.NODE_ENV;
1499
- function Ds() {
1500
- Is();
1501
- }
1502
- process.env.NODE_ENV !== "production" && Ds();
1503
- const Ps = /* @__PURE__ */ new Set(["_", "$"]);
1504
- function js(e) {
1505
- return Ps.has(e[0]);
1506
- }
1507
- class $s extends fn {
1508
- _onAction;
1509
- _options;
1510
- _store;
1511
- _subscriptions = {};
1512
- _storeSubscribe;
1513
- static _requiredKeys;
1514
- get onAction() {
1515
- if (this._onAction)
1516
- return () => ({
1517
- store: this.store,
1518
- callback: this._onAction
1519
- });
1520
- }
1521
- set onAction(t) {
1522
- this._onAction = t;
1523
- }
1524
- get options() {
1525
- return this._options;
1526
- }
1527
- get state() {
1528
- return this._store.$state;
1529
- }
1530
- set state(t) {
1531
- this._store.$state = t;
1532
- }
1533
- get store() {
1534
- return this._store;
1535
- }
1536
- get storeSubscribe() {
1537
- if (this._storeSubscribe)
1538
- return () => ({
1539
- store: this.store,
1540
- callback: this._storeSubscribe
1541
- });
1542
- }
1543
- set storeSubscribe(t) {
1544
- this._storeSubscribe = t;
1545
- }
1546
- constructor(t, n, s = !1, r) {
1547
- super(s, r), this._options = n.storeOptions, this._store = t;
1548
- }
1549
- /**
1550
- * Add property to state
1551
- * @param name
1552
- * @param value
1553
- */
1554
- addToState(t, n) {
1555
- this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Vt(n)), this.state[t] = n, this.store[t] = /* @__PURE__ */ Xn(this.state, t);
1556
- }
1557
- addSubscription(t, n, s) {
1558
- this._subscriptions[t] = { subscription: n, ...s ?? {} };
1559
- }
1560
- /**
1561
- * Create and return a class instance
1562
- * @param store
1563
- * @param options
1564
- * @param debug
1565
- * @returns
1566
- */
1567
- static customizeStore(t, n, s = !1, r) {
1568
- if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
1569
- return new this(t, n, s, r);
1570
- }
1571
- hasDeniedFirstChar(t) {
1572
- return js(t[0]);
1573
- }
1574
- static hasRequiredKeys(t) {
1575
- return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
1576
- }
1577
- getOption(t) {
1578
- return this.options && this.options[t];
1579
- }
1580
- getStatePropertyValue(t) {
1581
- return this.getValue(this.state[t]);
1582
- }
1583
- getSubscriptions() {
1584
- if (!Y(this._subscriptions))
1585
- return this._subscriptions;
1586
- }
1587
- getValue(t) {
1588
- return t?.__v_isRef ? t.value : t;
1589
- }
1590
- isOptionApi() {
1591
- return this.store._isOptionsAPI;
1592
- }
1593
- stateHas(t) {
1594
- return this.state.hasOwnProperty(t);
1595
- }
1596
- storeHas(t) {
1597
- return this.store.hasOwnProperty(t);
1598
- }
1599
- }
1600
- const Ut = "pinia-plugin-persist-state";
1601
- class Ts extends _n {
1602
- _pluginName = Ut;
29
+ const ce = "pinia-plugin-persist-state";
30
+ class De extends Ie {
31
+ _pluginName = ce;
1603
32
  }
1604
- const A = new Ts();
1605
- let pt = class {
33
+ const E = new De();
34
+ let re = class {
1606
35
  _db;
1607
36
  _localStorageVersionKey = "IDBVersion";
1608
37
  _name = "persistStore";
@@ -1611,257 +40,257 @@ let pt = class {
1611
40
  _objectStoreName;
1612
41
  _transactionMode = "readwrite";
1613
42
  _version;
1614
- constructor(t, n, s) {
1615
- this._objectStoreName = t, this._version = this.getStoredVersionNumber(), n && (this._objectStoreOptions = n), s && (this._transactionMode = s);
43
+ constructor(e, s, r) {
44
+ this._objectStoreName = e, this._version = this.getStoredVersionNumber(), s && (this._objectStoreOptions = s), r && (this._transactionMode = r);
1616
45
  }
1617
46
  clear() {
1618
- const t = () => {
47
+ const e = () => {
1619
48
  if (this._objectStore) {
1620
- const n = this._objectStore.clear();
1621
- this.requestEventsHandler(n, {
1622
- error: () => this.onError(n.error)
49
+ const s = this._objectStore.clear();
50
+ this.requestEventsHandler(s, {
51
+ error: () => this.onError(s.error)
1623
52
  });
1624
53
  }
1625
54
  };
1626
- this.open({ success: t });
55
+ this.open({ success: e });
1627
56
  }
1628
57
  createObjectStore() {
1629
58
  this._db && !this._db.objectStoreNames.contains(this._objectStoreName) && this._db.createObjectStore(this._objectStoreName, this._objectStoreOptions);
1630
59
  }
1631
60
  deleteObjectStore() {
1632
- const t = () => {
61
+ const e = () => {
1633
62
  this._db?.deleteObjectStore(this._objectStoreName);
1634
63
  };
1635
- this.open({ success: t });
64
+ this.open({ success: e });
1636
65
  }
1637
- async getItem(t) {
1638
- return new Promise((n) => {
1639
- const s = () => {
66
+ async getItem(e) {
67
+ return new Promise((s) => {
68
+ const r = () => {
1640
69
  if (this._objectStore) {
1641
- const r = this._objectStore.get(t);
1642
- this.requestEventsHandler(r, {
70
+ const o = this._objectStore.get(e);
71
+ this.requestEventsHandler(o, {
1643
72
  error: () => this.onError(
1644
- r.error,
1645
- () => n(void 0)
73
+ o.error,
74
+ () => s(void 0)
1646
75
  ),
1647
- success: () => n(r.result)
76
+ success: () => s(o.result)
1648
77
  });
1649
78
  }
1650
79
  };
1651
- this.open({ success: s });
80
+ this.open({ success: r });
1652
81
  });
1653
82
  }
1654
- async getObjectStoreItem(t, n) {
1655
- return new Promise((s) => {
1656
- const r = () => {
83
+ async getObjectStoreItem(e, s) {
84
+ return new Promise((r) => {
85
+ const o = () => {
1657
86
  if (this._objectStore) {
1658
- const i = this._objectStore.index(t).get(n);
87
+ const i = this._objectStore.index(e).get(s);
1659
88
  this.requestEventsHandler(i, {
1660
- error: () => s(void 0),
1661
- success: () => s(i.result)
89
+ error: () => r(void 0),
90
+ success: () => r(i.result)
1662
91
  });
1663
92
  }
1664
93
  };
1665
- this.open({ success: r });
94
+ this.open({ success: o });
1666
95
  });
1667
96
  }
1668
97
  getStoredVersionNumber() {
1669
98
  if (!localStorage)
1670
99
  return 1;
1671
- const t = localStorage.getItem(this._localStorageVersionKey);
1672
- return t ? parseInt(t) : 1;
100
+ const e = localStorage.getItem(this._localStorageVersionKey);
101
+ return e ? parseInt(e) : 1;
1673
102
  }
1674
- handleDeleteRequest(t, n) {
1675
- t.onerror = () => A.error(`IndexedDB - Item "${n}" remove`, t.error);
103
+ handleDeleteRequest(e, s) {
104
+ e.onerror = () => E.error(`IndexedDB - Item "${s}" remove`, e.error);
1676
105
  }
1677
- onError(t, n) {
1678
- n && n(t);
106
+ onError(e, s) {
107
+ s && s(e);
1679
108
  }
1680
- open(t) {
1681
- const n = indexedDB.open(this._name, this._version), s = () => {
1682
- this._db = n.result;
1683
- }, r = (i) => {
109
+ open(e) {
110
+ const s = indexedDB.open(this._name, this._version), r = () => {
111
+ this._db = s.result;
112
+ }, o = (i) => {
1684
113
  try {
1685
- if (s(), !this._db) return;
114
+ if (r(), !this._db) return;
1686
115
  const c = this._db.transaction(this._objectStoreName, this._transactionMode);
1687
116
  c.onerror = () => this.onError(c.error), this._objectStore = c.objectStore(this._objectStoreName), this._objectStore && i();
1688
117
  } catch (c) {
1689
- A.error("indexedDB - transaction error", [c]);
118
+ E.error("indexedDB - transaction error", [c]);
1690
119
  }
1691
120
  };
1692
- if (t?.success) {
1693
- const i = t.success;
1694
- t.success = () => r(i);
121
+ if (e?.success) {
122
+ const i = e.success;
123
+ e.success = () => o(i);
1695
124
  }
1696
- if (t?.upgrade) {
1697
- const i = t.upgrade.bind(this);
1698
- t.upgrade = () => {
1699
- s(), i();
125
+ if (e?.upgrade) {
126
+ const i = e.upgrade.bind(this);
127
+ e.upgrade = () => {
128
+ r(), i();
1700
129
  };
1701
130
  }
1702
- const o = () => {
131
+ const n = () => {
1703
132
  const i = (c) => {
1704
133
  if (c?.name === "VersionError") {
1705
- this._version++, this.saveVersion(), this.open(t);
134
+ this._version++, this.saveVersion(), this.open(e);
1706
135
  return;
1707
136
  }
1708
- t?.error && t.error(c);
137
+ e?.error && e.error(c);
1709
138
  };
1710
- this.onError(n.error, i);
139
+ this.onError(s.error, i);
1711
140
  };
1712
- return t && this.openRequestEventsHandler(n, { ...t, error: o }), n;
141
+ return e && this.openRequestEventsHandler(s, { ...e, error: n }), s;
1713
142
  }
1714
- openRequestEventsHandler(t, n) {
1715
- this.requestEventsHandler(t, n), n.upgrade && (t.onupgradeneeded = n.upgrade);
143
+ openRequestEventsHandler(e, s) {
144
+ this.requestEventsHandler(e, s), s.upgrade && (e.onupgradeneeded = s.upgrade);
1716
145
  }
1717
- removeItem(t) {
1718
- const n = () => {
146
+ removeItem(e) {
147
+ const s = () => {
1719
148
  if (this._objectStore) {
1720
- const s = this._objectStore.delete(t);
1721
- this.handleDeleteRequest(s, t);
149
+ const r = this._objectStore.delete(e);
150
+ this.handleDeleteRequest(r, e);
1722
151
  }
1723
152
  };
1724
- this.open({ success: n });
153
+ this.open({ success: s });
1725
154
  }
1726
- removeItems(t) {
1727
- const n = () => {
155
+ removeItems(e) {
156
+ const s = () => {
1728
157
  if (this._objectStore) {
1729
- const s = this._objectStore.getAllKeys(), r = () => {
1730
- s.result.forEach((c) => {
1731
- if (this._objectStore && (!t || !t.includes(c))) {
158
+ const r = this._objectStore.getAllKeys(), o = () => {
159
+ r.result.forEach((c) => {
160
+ if (this._objectStore && (!e || !e.includes(c))) {
1732
161
  const l = this._objectStore.delete(c);
1733
162
  this.handleDeleteRequest(l, c);
1734
163
  }
1735
164
  });
1736
- }, o = () => A.error("IndexedDB - removeItems", [s.error]);
1737
- this.requestEventsHandler(s, { error: o, success: r });
165
+ }, n = () => E.error("IndexedDB - removeItems", [r.error]);
166
+ this.requestEventsHandler(r, { error: n, success: o });
1738
167
  }
1739
168
  };
1740
- this.open({ success: n });
169
+ this.open({ success: s });
1741
170
  }
1742
- requestEventsHandler(t, n) {
1743
- const { error: s, success: r } = n;
1744
- s && (t.onerror = s), r && (t.onsuccess = r);
171
+ requestEventsHandler(e, s) {
172
+ const { error: r, success: o } = s;
173
+ r && (e.onerror = r), o && (e.onsuccess = o);
1745
174
  }
1746
175
  saveVersion() {
1747
176
  localStorage && localStorage.setItem(this._localStorageVersionKey, this._version.toString());
1748
177
  }
1749
- setItem(t, n) {
1750
- const s = () => {
178
+ setItem(e, s) {
179
+ const r = () => {
1751
180
  if (this._objectStore) {
1752
- const o = this._objectStore.add(t);
1753
- if (n) {
181
+ const n = this._objectStore.add(e);
182
+ if (s) {
1754
183
  const i = () => {
1755
- n.forEach((l) => {
1756
- this._objectStore?.createIndex(l, l, { unique: !0 }), A.log(`"${l}" index created`);
184
+ s.forEach((l) => {
185
+ this._objectStore?.createIndex(l, l, { unique: !0 }), E.log(`"${l}" index created`);
1757
186
  });
1758
- }, c = () => this.onError(o.error);
1759
- this.requestEventsHandler(o, { error: c, success: i });
187
+ }, c = () => this.onError(n.error);
188
+ this.requestEventsHandler(n, { error: c, success: i });
1760
189
  }
1761
190
  }
1762
- }, r = this.createObjectStore;
1763
- this.open({ success: s, upgrade: r });
191
+ }, o = this.createObjectStore;
192
+ this.open({ success: r, upgrade: o });
1764
193
  }
1765
- updateItem(t) {
1766
- const n = () => {
194
+ updateItem(e) {
195
+ const s = () => {
1767
196
  if (this._objectStore) {
1768
- const s = this._objectStore.put(t);
1769
- s.onerror = () => A.error("update item", [s.error, t]);
197
+ const r = this._objectStore.put(e);
198
+ r.onerror = () => E.error("update item", [r.error, e]);
1770
199
  }
1771
200
  };
1772
- this.open({ success: n });
201
+ this.open({ success: s });
1773
202
  }
1774
203
  };
1775
- class et {
204
+ class X {
1776
205
  _db;
1777
206
  _db_options;
1778
207
  get dbName() {
1779
208
  return this._db_options.name;
1780
209
  }
1781
- constructor(t) {
1782
- if (!t)
210
+ constructor(e) {
211
+ if (!e)
1783
212
  throw new Error("DbOptions is required");
1784
- this._db_options = t, this._db = this.defineDb();
213
+ this._db_options = e, this._db = this.defineDb();
1785
214
  }
1786
215
  defineDb() {
1787
- const { keyPath: t, name: n } = this._db_options;
1788
- return n === "localStorage" || n === "sessionStorage" ? new ln(n) : new pt(n, { keyPath: t });
216
+ const { keyPath: e, name: s } = this._db_options;
217
+ return s === "localStorage" || s === "sessionStorage" ? new Te(s) : new re(s, { keyPath: e });
1789
218
  }
1790
- getItem(t) {
1791
- return new Promise((n, s) => {
219
+ getItem(e) {
220
+ return new Promise((s, r) => {
1792
221
  try {
1793
- return this._db.getItem(t).then((r) => n(r));
1794
- } catch (r) {
1795
- s(r);
222
+ return this._db.getItem(e).then((o) => s(o));
223
+ } catch (o) {
224
+ r(o);
1796
225
  }
1797
226
  });
1798
227
  }
1799
- removeItem(t) {
1800
- this._db.removeItem(t);
228
+ removeItem(e) {
229
+ this._db.removeItem(e);
1801
230
  }
1802
- setItem(t, n) {
1803
- if (this._db instanceof pt)
231
+ setItem(e, s) {
232
+ if (this._db instanceof re)
1804
233
  try {
1805
- this._db.getItem(t).then((s) => {
1806
- s ? this._db.updateItem(s) : this._db.setItem({ storeName: t, ...n });
234
+ this._db.getItem(e).then((r) => {
235
+ r ? this._db.updateItem(r) : this._db.setItem({ storeName: e, ...s });
1807
236
  });
1808
- } catch (s) {
1809
- A.error("Persister - setItem Error", s), this._db.setItem({ storename: t, ...n });
237
+ } catch (r) {
238
+ E.error("Persister - setItem Error", r), this._db.setItem({ storename: e, ...s });
1810
239
  }
1811
240
  else
1812
- this._db.setItem(n, t);
241
+ this._db.setItem(s, e);
1813
242
  }
1814
243
  }
1815
- class As {
244
+ class Re {
1816
245
  _store = /* @__PURE__ */ new Map();
1817
246
  clear() {
1818
247
  this._store.clear();
1819
248
  }
1820
- keyToString(t) {
1821
- return typeof t == "number" ? t.toString() : t;
249
+ keyToString(e) {
250
+ return typeof e == "number" ? e.toString() : e;
1822
251
  }
1823
- async getItem(t) {
1824
- return this._store.get(this.keyToString(t));
252
+ async getItem(e) {
253
+ return this._store.get(this.keyToString(e));
1825
254
  }
1826
- removeItem(t) {
1827
- this._store.delete(this.keyToString(t));
255
+ removeItem(e) {
256
+ this._store.delete(this.keyToString(e));
1828
257
  }
1829
- removeItems(t) {
1830
- if (t)
1831
- for (const n of this._store.keys())
1832
- t.includes(n) || this._store.delete(n);
258
+ removeItems(e) {
259
+ if (e)
260
+ for (const s of this._store.keys())
261
+ e.includes(s) || this._store.delete(s);
1833
262
  else
1834
263
  this._store.clear();
1835
264
  }
1836
- setItem(t, n) {
1837
- this._store.set(n, t);
265
+ setItem(e, s) {
266
+ this._store.set(s, e);
1838
267
  }
1839
268
  }
1840
- let W = {};
1841
- const Ms = {
1842
- clear: () => W = {},
1843
- getItem: async (e) => new Promise((t) => t(W[e])),
1844
- removeItem: (e) => delete W[e],
1845
- removeItems: (e) => e ? e.forEach((t) => delete W[t]) : W = {},
1846
- setItem: (e, t) => {
1847
- W[t] = e;
269
+ let O = {};
270
+ const xe = {
271
+ clear: () => O = {},
272
+ getItem: async (t) => new Promise((e) => e(O[t])),
273
+ removeItem: (t) => delete O[t],
274
+ removeItems: (t) => t ? t.forEach((e) => delete O[e]) : O = {},
275
+ setItem: (t, e) => {
276
+ O[e] = t;
1848
277
  }
1849
278
  };
1850
- class Fs extends et {
279
+ class je extends X {
1851
280
  defineDb() {
1852
- return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? Ms : new As();
281
+ return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? xe : new Re();
1853
282
  }
1854
283
  }
1855
- class ie {
284
+ class x {
1856
285
  _encoder = new TextEncoder();
1857
286
  _key;
1858
287
  _materialKey;
1859
288
  static DECRYPT = "decrypt";
1860
289
  static ENCRYPT = "encrypt";
1861
- constructor(t) {
1862
- this._key = t;
290
+ constructor(e) {
291
+ this._key = e;
1863
292
  }
1864
- async getKey(t) {
293
+ async getKey(e) {
1865
294
  return await crypto.subtle.deriveKey(
1866
295
  {
1867
296
  name: "PBKDF2",
@@ -1872,13 +301,13 @@ class ie {
1872
301
  this._materialKey,
1873
302
  { name: "AES-GCM", length: 256 },
1874
303
  !1,
1875
- [t]
304
+ [e]
1876
305
  );
1877
306
  }
1878
- async setKeyMaterial(t) {
307
+ async setKeyMaterial(e) {
1879
308
  this._materialKey = await crypto.subtle.importKey(
1880
309
  "raw",
1881
- this._encoder.encode(t),
310
+ this._encoder.encode(e),
1882
311
  { name: "PBKDF2" },
1883
312
  !1,
1884
313
  ["deriveKey"]
@@ -1889,191 +318,191 @@ class ie {
1889
318
  * @param {string} item - encrypted string
1890
319
  * @returns {string} decrypted item
1891
320
  */
1892
- async decrypt(t) {
1893
- const [n, s] = t.split(":"), r = await crypto.subtle.decrypt(
321
+ async decrypt(e) {
322
+ const [s, r] = e.split(":"), o = await crypto.subtle.decrypt(
1894
323
  {
1895
324
  name: "AES-GCM",
1896
- iv: Uint8Array.from(atob(n), (o) => o.charCodeAt(0))
325
+ iv: Uint8Array.from(atob(s), (n) => n.charCodeAt(0))
1897
326
  },
1898
- await this.getKey(ie.DECRYPT),
1899
- Uint8Array.from(atob(s), (o) => o.charCodeAt(0))
327
+ await this.getKey(x.DECRYPT),
328
+ Uint8Array.from(atob(r), (n) => n.charCodeAt(0))
1900
329
  );
1901
- return new TextDecoder().decode(r);
330
+ return new TextDecoder().decode(o);
1902
331
  }
1903
332
  /**
1904
333
  * Encrypt string passed in parameter
1905
334
  * @param {string} item
1906
335
  * @returns {Promise<string>} encrypted item
1907
336
  */
1908
- async encrypt(t) {
1909
- const n = crypto.getRandomValues(new Uint8Array(12)), s = await crypto.subtle.encrypt(
337
+ async encrypt(e) {
338
+ const s = crypto.getRandomValues(new Uint8Array(12)), r = await crypto.subtle.encrypt(
1910
339
  {
1911
340
  name: "AES-GCM",
1912
- iv: n
341
+ iv: s
1913
342
  },
1914
- await this.getKey(ie.ENCRYPT),
1915
- this._encoder.encode(t)
343
+ await this.getKey(x.ENCRYPT),
344
+ this._encoder.encode(e)
1916
345
  );
1917
- return btoa(String.fromCharCode(...new Uint8Array(n))) + ":" + btoa(String.fromCharCode(...new Uint8Array(s)));
346
+ return btoa(String.fromCharCode(...new Uint8Array(s))) + ":" + btoa(String.fromCharCode(...new Uint8Array(r)));
1918
347
  }
1919
348
  async init() {
1920
349
  this._materialKey || await this.setKeyMaterial(this._key);
1921
350
  }
1922
351
  }
1923
- const qe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
352
+ const J = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1924
353
  process.env.NODE_ENV !== "production" && Object.freeze([]);
1925
- const Lt = () => {
1926
- }, Ks = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
1927
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Hs = (e) => e.startsWith("onUpdate:"), Oe = Object.assign, O = Array.isArray, U = (e) => typeof e == "function", $ = (e) => typeof e == "string", qs = (e) => typeof e == "symbol", F = (e) => e !== null && typeof e == "object";
1928
- let ht;
1929
- const ke = () => ht || (ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1930
- function tt(e) {
1931
- if (O(e)) {
1932
- const t = {};
1933
- for (let n = 0; n < e.length; n++) {
1934
- const s = e[n], r = $(s) ? zs(s) : tt(s);
1935
- if (r)
1936
- for (const o in r)
1937
- t[o] = r[o];
354
+ const ae = () => {
355
+ }, ve = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
356
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ke = (t) => t.startsWith("onUpdate:"), H = Object.assign, m = Array.isArray, P = (t) => typeof t == "function", b = (t) => typeof t == "string", $e = (t) => typeof t == "symbol", w = (t) => t !== null && typeof t == "object";
357
+ let oe;
358
+ const L = () => oe || (oe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
359
+ function Z(t) {
360
+ if (m(t)) {
361
+ const e = {};
362
+ for (let s = 0; s < t.length; s++) {
363
+ const r = t[s], o = b(r) ? Ke(r) : Z(r);
364
+ if (o)
365
+ for (const n in o)
366
+ e[n] = o[n];
1938
367
  }
1939
- return t;
1940
- } else if ($(e) || F(e))
1941
368
  return e;
369
+ } else if (b(t) || w(t))
370
+ return t;
1942
371
  }
1943
- const Us = /;(?![^(]*\))/g, Ls = /:([^]+)/, Ws = /\/\*[^]*?\*\//g;
1944
- function zs(e) {
1945
- const t = {};
1946
- return e.replace(Ws, "").split(Us).forEach((n) => {
1947
- if (n) {
1948
- const s = n.split(Ls);
1949
- s.length > 1 && (t[s[0].trim()] = s[1].trim());
372
+ const Me = /;(?![^(]*\))/g, Ae = /:([^]+)/, Fe = /\/\*[^]*?\*\//g;
373
+ function Ke(t) {
374
+ const e = {};
375
+ return t.replace(Fe, "").split(Me).forEach((s) => {
376
+ if (s) {
377
+ const r = s.split(Ae);
378
+ r.length > 1 && (e[r[0].trim()] = r[1].trim());
1950
379
  }
1951
- }), t;
1952
- }
1953
- function nt(e) {
1954
- let t = "";
1955
- if ($(e))
1956
- t = e;
1957
- else if (O(e))
1958
- for (let n = 0; n < e.length; n++) {
1959
- const s = nt(e[n]);
1960
- s && (t += s + " ");
380
+ }), e;
381
+ }
382
+ function ee(t) {
383
+ let e = "";
384
+ if (b(t))
385
+ e = t;
386
+ else if (m(t))
387
+ for (let s = 0; s < t.length; s++) {
388
+ const r = ee(t[s]);
389
+ r && (e += r + " ");
1961
390
  }
1962
- else if (F(e))
1963
- for (const n in e)
1964
- e[n] && (t += n + " ");
1965
- return t.trim();
391
+ else if (w(t))
392
+ for (const s in t)
393
+ t[s] && (e += s + " ");
394
+ return e.trim();
1966
395
  }
1967
396
  process.env.NODE_ENV;
1968
397
  process.env.NODE_ENV;
1969
398
  process.env.NODE_ENV;
1970
399
  new Set(
1971
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(qs)
400
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter($e)
1972
401
  );
1973
402
  // @__NO_SIDE_EFFECTS__
1974
- function Wt(e) {
1975
- return /* @__PURE__ */ Ue(e) ? /* @__PURE__ */ Wt(e.__v_raw) : !!(e && e.__v_isReactive);
403
+ function le(t) {
404
+ return /* @__PURE__ */ Y(t) ? /* @__PURE__ */ le(t.__v_raw) : !!(t && t.__v_isReactive);
1976
405
  }
1977
406
  // @__NO_SIDE_EFFECTS__
1978
- function Ue(e) {
1979
- return !!(e && e.__v_isReadonly);
407
+ function Y(t) {
408
+ return !!(t && t.__v_isReadonly);
1980
409
  }
1981
410
  // @__NO_SIDE_EFFECTS__
1982
- function je(e) {
1983
- return !!(e && e.__v_isShallow);
411
+ function B(t) {
412
+ return !!(t && t.__v_isShallow);
1984
413
  }
1985
414
  // @__NO_SIDE_EFFECTS__
1986
- function Le(e) {
1987
- return e ? !!e.__v_raw : !1;
415
+ function G(t) {
416
+ return t ? !!t.__v_raw : !1;
1988
417
  }
1989
418
  // @__NO_SIDE_EFFECTS__
1990
- function j(e) {
1991
- const t = e && e.__v_raw;
1992
- return t ? /* @__PURE__ */ j(t) : e;
419
+ function S(t) {
420
+ const e = t && t.__v_raw;
421
+ return e ? /* @__PURE__ */ S(e) : t;
1993
422
  }
1994
423
  // @__NO_SIDE_EFFECTS__
1995
- function st(e) {
1996
- return e ? e.__v_isRef === !0 : !1;
1997
- }
1998
- const K = [];
1999
- function Bs(e) {
2000
- K.push(e);
2001
- }
2002
- function Js() {
2003
- K.pop();
2004
- }
2005
- let $e = !1;
2006
- function Q(e, ...t) {
2007
- if ($e) return;
2008
- $e = !0;
2009
- const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ys();
2010
- if (s)
2011
- rt(
424
+ function te(t) {
425
+ return t ? t.__v_isRef === !0 : !1;
426
+ }
427
+ const N = [];
428
+ function qe(t) {
429
+ N.push(t);
430
+ }
431
+ function He() {
432
+ N.pop();
433
+ }
434
+ let U = !1;
435
+ function T(t, ...e) {
436
+ if (U) return;
437
+ U = !0;
438
+ const s = N.length ? N[N.length - 1].component : null, r = s && s.appContext.config.warnHandler, o = Le();
439
+ if (r)
440
+ se(
441
+ r,
2012
442
  s,
2013
- n,
2014
443
  11,
2015
444
  [
2016
445
  // eslint-disable-next-line no-restricted-syntax
2017
- e + t.map((o) => {
446
+ t + e.map((n) => {
2018
447
  var i, c;
2019
- return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
448
+ return (c = (i = n.toString) == null ? void 0 : i.call(n)) != null ? c : JSON.stringify(n);
2020
449
  }).join(""),
2021
- n && n.proxy,
2022
- r.map(
2023
- ({ vnode: o }) => `at <${cn(n, o.type)}>`
450
+ s && s.proxy,
451
+ o.map(
452
+ ({ vnode: n }) => `at <${Pe(s, n.type)}>`
2024
453
  ).join(`
2025
454
  `),
2026
- r
455
+ o
2027
456
  ]
2028
457
  );
2029
458
  else {
2030
- const o = [`[Vue warn]: ${e}`, ...t];
2031
- r.length && o.push(`
2032
- `, ...Gs(r)), console.warn(...o);
459
+ const n = [`[Vue warn]: ${t}`, ...e];
460
+ o.length && n.push(`
461
+ `, ...Be(o)), console.warn(...n);
2033
462
  }
2034
- $e = !1;
463
+ U = !1;
2035
464
  }
2036
- function Ys() {
2037
- let e = K[K.length - 1];
2038
- if (!e)
465
+ function Le() {
466
+ let t = N[N.length - 1];
467
+ if (!t)
2039
468
  return [];
2040
- const t = [];
2041
- for (; e; ) {
2042
- const n = t[0];
2043
- n && n.vnode === e ? n.recurseCount++ : t.push({
2044
- vnode: e,
469
+ const e = [];
470
+ for (; t; ) {
471
+ const s = e[0];
472
+ s && s.vnode === t ? s.recurseCount++ : e.push({
473
+ vnode: t,
2045
474
  recurseCount: 0
2046
475
  });
2047
- const s = e.component && e.component.parent;
2048
- e = s && s.vnode;
2049
- }
2050
- return t;
2051
- }
2052
- function Gs(e) {
2053
- const t = [];
2054
- return e.forEach((n, s) => {
2055
- t.push(...s === 0 ? [] : [`
2056
- `], ...Xs(n));
2057
- }), t;
2058
- }
2059
- function Xs({ vnode: e, recurseCount: t }) {
2060
- const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${cn(
2061
- e.component,
2062
- e.type,
2063
- s
2064
- )}`, o = ">" + n;
2065
- return e.props ? [r, ...Zs(e.props), o] : [r + o];
2066
- }
2067
- function Zs(e) {
2068
- const t = [], n = Object.keys(e);
2069
- return n.slice(0, 3).forEach((s) => {
2070
- t.push(...zt(s, e[s]));
2071
- }), n.length > 3 && t.push(" ..."), t;
2072
- }
2073
- function zt(e, t, n) {
2074
- return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ st(t) ? (t = zt(e, /* @__PURE__ */ j(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : U(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ j(t), n ? t : [`${e}=`, t]);
2075
- }
2076
- const Bt = {
476
+ const r = t.component && t.component.parent;
477
+ t = r && r.vnode;
478
+ }
479
+ return e;
480
+ }
481
+ function Be(t) {
482
+ const e = [];
483
+ return t.forEach((s, r) => {
484
+ e.push(...r === 0 ? [] : [`
485
+ `], ...Ue(s));
486
+ }), e;
487
+ }
488
+ function Ue({ vnode: t, recurseCount: e }) {
489
+ const s = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, o = ` at <${Pe(
490
+ t.component,
491
+ t.type,
492
+ r
493
+ )}`, n = ">" + s;
494
+ return t.props ? [o, ...We(t.props), n] : [o + n];
495
+ }
496
+ function We(t) {
497
+ const e = [], s = Object.keys(t);
498
+ return s.slice(0, 3).forEach((r) => {
499
+ e.push(...ue(r, t[r]));
500
+ }), s.length > 3 && e.push(" ..."), e;
501
+ }
502
+ function ue(t, e, s) {
503
+ return b(e) ? (e = JSON.stringify(e), s ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? s ? e : [`${t}=${e}`] : /* @__PURE__ */ te(e) ? (e = ue(t, /* @__PURE__ */ S(e.value), !0), s ? e : [`${t}=Ref<`, e, ">"]) : P(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ S(e), s ? e : [`${t}=`, e]);
504
+ }
505
+ const fe = {
2077
506
  sp: "serverPrefetch hook",
2078
507
  bc: "beforeCreate hook",
2079
508
  c: "created hook",
@@ -2106,232 +535,232 @@ const Bt = {
2106
535
  15: "component update",
2107
536
  16: "app unmount cleanup function"
2108
537
  };
2109
- function rt(e, t, n, s) {
538
+ function se(t, e, s, r) {
2110
539
  try {
2111
- return s ? e(...s) : e();
2112
- } catch (r) {
2113
- Jt(r, t, n);
540
+ return r ? t(...r) : t();
541
+ } catch (o) {
542
+ de(o, e, s);
2114
543
  }
2115
544
  }
2116
- function Jt(e, t, n, s = !0) {
2117
- const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || qe;
2118
- if (t) {
2119
- let c = t.parent;
2120
- const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Bt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
545
+ function de(t, e, s, r = !0) {
546
+ const o = e ? e.vnode : null, { errorHandler: n, throwUnhandledErrorInProduction: i } = e && e.appContext.config || J;
547
+ if (e) {
548
+ let c = e.parent;
549
+ const l = e.proxy, f = process.env.NODE_ENV !== "production" ? fe[s] : `https://vuejs.org/error-reference/#runtime-${s}`;
2121
550
  for (; c; ) {
2122
- const h = c.ec;
2123
- if (h) {
2124
- for (let a = 0; a < h.length; a++)
2125
- if (h[a](e, l, f) === !1)
551
+ const _ = c.ec;
552
+ if (_) {
553
+ for (let a = 0; a < _.length; a++)
554
+ if (_[a](t, l, f) === !1)
2126
555
  return;
2127
556
  }
2128
557
  c = c.parent;
2129
558
  }
2130
- if (o) {
2131
- rt(o, null, 10, [
2132
- e,
559
+ if (n) {
560
+ se(n, null, 10, [
561
+ t,
2133
562
  l,
2134
563
  f
2135
564
  ]);
2136
565
  return;
2137
566
  }
2138
567
  }
2139
- Qs(e, n, r, s, i);
568
+ ze(t, s, o, r, i);
2140
569
  }
2141
- function Qs(e, t, n, s = !0, r = !1) {
570
+ function ze(t, e, s, r = !0, o = !1) {
2142
571
  if (process.env.NODE_ENV !== "production") {
2143
- const o = Bt[t];
2144
- if (n && Bs(n), Q(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Js(), s)
2145
- throw e;
2146
- console.error(e);
572
+ const n = fe[e];
573
+ if (s && qe(s), T(`Unhandled error${n ? ` during execution of ${n}` : ""}`), s && He(), r)
574
+ throw t;
575
+ console.error(t);
2147
576
  } else {
2148
- if (r)
2149
- throw e;
2150
- console.error(e);
2151
- }
2152
- }
2153
- const S = [];
2154
- let C = -1;
2155
- const X = [];
2156
- let D = null, B = 0;
2157
- const er = /* @__PURE__ */ Promise.resolve();
2158
- let We = null;
2159
- const tr = 100;
2160
- function nr(e) {
2161
- let t = C + 1, n = S.length;
2162
- for (; t < n; ) {
2163
- const s = t + n >>> 1, r = S[s], o = ce(r);
2164
- o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
2165
- }
2166
- return t;
2167
- }
2168
- function sr(e) {
2169
- if (!(e.flags & 1)) {
2170
- const t = ce(e), n = S[S.length - 1];
2171
- !n || // fast path when the job id is larger than the tail
2172
- !(e.flags & 2) && t >= ce(n) ? S.push(e) : S.splice(nr(t), 0, e), e.flags |= 1, Yt();
2173
- }
2174
- }
2175
- function Yt() {
2176
- We || (We = er.then(Gt));
2177
- }
2178
- function rr(e) {
2179
- O(e) ? X.push(...e) : D && e.id === -1 ? D.splice(B + 1, 0, e) : e.flags & 1 || (X.push(e), e.flags |= 1), Yt();
2180
- }
2181
- function or(e) {
2182
- if (X.length) {
2183
- const t = [...new Set(X)].sort(
2184
- (n, s) => ce(n) - ce(s)
577
+ if (o)
578
+ throw t;
579
+ console.error(t);
580
+ }
581
+ }
582
+ const h = [];
583
+ let g = -1;
584
+ const V = [];
585
+ let y = null, I = 0;
586
+ const Je = /* @__PURE__ */ Promise.resolve();
587
+ let Q = null;
588
+ const Ye = 100;
589
+ function Ge(t) {
590
+ let e = g + 1, s = h.length;
591
+ for (; e < s; ) {
592
+ const r = e + s >>> 1, o = h[r], n = j(o);
593
+ n < t || n === t && o.flags & 2 ? e = r + 1 : s = r;
594
+ }
595
+ return e;
596
+ }
597
+ function Qe(t) {
598
+ if (!(t.flags & 1)) {
599
+ const e = j(t), s = h[h.length - 1];
600
+ !s || // fast path when the job id is larger than the tail
601
+ !(t.flags & 2) && e >= j(s) ? h.push(t) : h.splice(Ge(e), 0, t), t.flags |= 1, he();
602
+ }
603
+ }
604
+ function he() {
605
+ Q || (Q = Je.then(pe));
606
+ }
607
+ function Xe(t) {
608
+ m(t) ? V.push(...t) : y && t.id === -1 ? y.splice(I + 1, 0, t) : t.flags & 1 || (V.push(t), t.flags |= 1), he();
609
+ }
610
+ function Ze(t) {
611
+ if (V.length) {
612
+ const e = [...new Set(V)].sort(
613
+ (s, r) => j(s) - j(r)
2185
614
  );
2186
- if (X.length = 0, D) {
2187
- D.push(...t);
615
+ if (V.length = 0, y) {
616
+ y.push(...e);
2188
617
  return;
2189
618
  }
2190
- for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < D.length; B++) {
2191
- const n = D[B];
2192
- process.env.NODE_ENV !== "production" && Xt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
619
+ for (y = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), I = 0; I < y.length; I++) {
620
+ const s = y[I];
621
+ process.env.NODE_ENV !== "production" && me(t, s) || (s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2);
2193
622
  }
2194
- D = null, B = 0;
623
+ y = null, I = 0;
2195
624
  }
2196
625
  }
2197
- const ce = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
2198
- function Gt(e) {
2199
- process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
2200
- const t = process.env.NODE_ENV !== "production" ? (n) => Xt(e, n) : Lt;
626
+ const j = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
627
+ function pe(t) {
628
+ process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
629
+ const e = process.env.NODE_ENV !== "production" ? (s) => me(t, s) : ae;
2201
630
  try {
2202
- for (C = 0; C < S.length; C++) {
2203
- const n = S[C];
2204
- if (n && !(n.flags & 8)) {
2205
- if (process.env.NODE_ENV !== "production" && t(n))
631
+ for (g = 0; g < h.length; g++) {
632
+ const s = h[g];
633
+ if (s && !(s.flags & 8)) {
634
+ if (process.env.NODE_ENV !== "production" && e(s))
2206
635
  continue;
2207
- n.flags & 4 && (n.flags &= -2), rt(
2208
- n,
2209
- n.i,
2210
- n.i ? 15 : 14
2211
- ), n.flags & 4 || (n.flags &= -2);
636
+ s.flags & 4 && (s.flags &= -2), se(
637
+ s,
638
+ s.i,
639
+ s.i ? 15 : 14
640
+ ), s.flags & 4 || (s.flags &= -2);
2212
641
  }
2213
642
  }
2214
643
  } finally {
2215
- for (; C < S.length; C++) {
2216
- const n = S[C];
2217
- n && (n.flags &= -2);
644
+ for (; g < h.length; g++) {
645
+ const s = h[g];
646
+ s && (s.flags &= -2);
2218
647
  }
2219
- C = -1, S.length = 0, or(e), We = null, (S.length || X.length) && Gt(e);
648
+ g = -1, h.length = 0, Ze(t), Q = null, (h.length || V.length) && pe(t);
2220
649
  }
2221
650
  }
2222
- function Xt(e, t) {
2223
- const n = e.get(t) || 0;
2224
- if (n > tr) {
2225
- const s = t.i, r = s && on(s.type);
2226
- return Jt(
2227
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
651
+ function me(t, e) {
652
+ const s = t.get(e) || 0;
653
+ if (s > Ye) {
654
+ const r = e.i, o = r && Ne(r.type);
655
+ return de(
656
+ `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. 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.`,
2228
657
  null,
2229
658
  10
2230
659
  ), !0;
2231
660
  }
2232
- return e.set(t, n + 1), !1;
661
+ return t.set(e, s + 1), !1;
2233
662
  }
2234
- const Te = /* @__PURE__ */ new Map();
2235
- process.env.NODE_ENV !== "production" && (ke().__VUE_HMR_RUNTIME__ = {
2236
- createRecord: Ae(ir),
2237
- rerender: Ae(cr),
2238
- reload: Ae(ar)
663
+ const W = /* @__PURE__ */ new Map();
664
+ process.env.NODE_ENV !== "production" && (L().__VUE_HMR_RUNTIME__ = {
665
+ createRecord: z(et),
666
+ rerender: z(tt),
667
+ reload: z(st)
2239
668
  });
2240
- const me = /* @__PURE__ */ new Map();
2241
- function ir(e, t) {
2242
- return me.has(e) ? !1 : (me.set(e, {
2243
- initialDef: be(t),
669
+ const $ = /* @__PURE__ */ new Map();
670
+ function et(t, e) {
671
+ return $.has(t) ? !1 : ($.set(t, {
672
+ initialDef: M(e),
2244
673
  instances: /* @__PURE__ */ new Set()
2245
674
  }), !0);
2246
675
  }
2247
- function be(e) {
2248
- return an(e) ? e.__vccOpts : e;
676
+ function M(t) {
677
+ return Oe(t) ? t.__vccOpts : t;
2249
678
  }
2250
- function cr(e, t) {
2251
- const n = me.get(e);
2252
- n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
2253
- t && (s.render = t, be(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
679
+ function tt(t, e) {
680
+ const s = $.get(t);
681
+ s && (s.initialDef.render = e, [...s.instances].forEach((r) => {
682
+ e && (r.render = e, M(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
2254
683
  }));
2255
684
  }
2256
- function ar(e, t) {
2257
- const n = me.get(e);
2258
- if (!n) return;
2259
- t = be(t), dt(n.initialDef, t);
2260
- const s = [...n.instances];
2261
- for (let r = 0; r < s.length; r++) {
2262
- const o = s[r], i = be(o.type);
2263
- let c = Te.get(i);
2264
- c || (i !== n.initialDef && dt(i, t), Te.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(t.styles), c.delete(o)) : o.parent ? sr(() => {
2265
- o.job.flags & 8 || (o.parent.update(), c.delete(o));
2266
- }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
685
+ function st(t, e) {
686
+ const s = $.get(t);
687
+ if (!s) return;
688
+ e = M(e), ne(s.initialDef, e);
689
+ const r = [...s.instances];
690
+ for (let o = 0; o < r.length; o++) {
691
+ const n = r[o], i = M(n.type);
692
+ let c = W.get(i);
693
+ c || (i !== s.initialDef && ne(i, e), W.set(i, c = /* @__PURE__ */ new Set())), c.add(n), n.appContext.propsCache.delete(n.type), n.appContext.emitsCache.delete(n.type), n.appContext.optionsCache.delete(n.type), n.ceReload ? (c.add(n), n.ceReload(e.styles), c.delete(n)) : n.parent ? Qe(() => {
694
+ n.job.flags & 8 || (n.parent.update(), c.delete(n));
695
+ }) : n.appContext.reload ? n.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
2267
696
  "[HMR] Root or manually mounted instance modified. Full reload required."
2268
- ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
697
+ ), n.root.ce && n !== n.root && n.root.ce._removeChildStyle(i);
2269
698
  }
2270
- rr(() => {
2271
- Te.clear();
699
+ Xe(() => {
700
+ W.clear();
2272
701
  });
2273
702
  }
2274
- function dt(e, t) {
2275
- Oe(e, t);
2276
- for (const n in e)
2277
- n !== "__file" && !(n in t) && delete e[n];
703
+ function ne(t, e) {
704
+ H(t, e);
705
+ for (const s in t)
706
+ s !== "__file" && !(s in e) && delete t[s];
2278
707
  }
2279
- function Ae(e) {
2280
- return (t, n) => {
708
+ function z(t) {
709
+ return (e, s) => {
2281
710
  try {
2282
- return e(t, n);
2283
- } catch (s) {
2284
- console.error(s), console.warn(
711
+ return t(e, s);
712
+ } catch (r) {
713
+ console.error(r), console.warn(
2285
714
  "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
2286
715
  );
2287
716
  }
2288
717
  };
2289
718
  }
2290
- let J, ue = [];
2291
- function Zt(e, t) {
2292
- var n, s;
2293
- J = e, J ? (J.enabled = !0, ue.forEach(({ event: r, args: o }) => J.emit(r, ...o)), ue = []) : /* 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
719
+ let C, v = [];
720
+ function _e(t, e) {
721
+ var s, r;
722
+ C = t, C ? (C.enabled = !0, v.forEach(({ event: o, args: n }) => C.emit(o, ...n)), v = []) : /* 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
2294
723
  window.HTMLElement && // also exclude jsdom
2295
724
  // eslint-disable-next-line no-restricted-syntax
2296
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
2297
- Zt(o, t);
725
+ !((r = (s = window.navigator) == null ? void 0 : s.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((n) => {
726
+ _e(n, e);
2298
727
  }), setTimeout(() => {
2299
- J || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, ue = []);
2300
- }, 3e3)) : ue = [];
2301
- }
2302
- let Se = null, lr = null;
2303
- const ur = (e) => e.__isTeleport;
2304
- function Qt(e, t) {
2305
- e.shapeFlag & 6 && e.component ? (e.transition = t, Qt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
2306
- }
2307
- ke().requestIdleCallback;
2308
- ke().cancelIdleCallback;
2309
- const fr = /* @__PURE__ */ Symbol.for("v-ndc"), pr = {};
2310
- process.env.NODE_ENV !== "production" && (pr.ownKeys = (e) => (Q(
728
+ C || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, v = []);
729
+ }, 3e3)) : v = [];
730
+ }
731
+ let A = null, rt = null;
732
+ const ot = (t) => t.__isTeleport;
733
+ function ge(t, e) {
734
+ t.shapeFlag & 6 && t.component ? (t.transition = e, ge(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
735
+ }
736
+ L().requestIdleCallback;
737
+ L().cancelIdleCallback;
738
+ const nt = /* @__PURE__ */ Symbol.for("v-ndc"), it = {};
739
+ process.env.NODE_ENV !== "production" && (it.ownKeys = (t) => (T(
2311
740
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
2312
- ), Reflect.ownKeys(e)));
2313
- const hr = {}, en = (e) => Object.getPrototypeOf(e) === hr, dr = (e) => e.__isSuspense, tn = /* @__PURE__ */ Symbol.for("v-fgt"), _r = /* @__PURE__ */ Symbol.for("v-txt"), gr = /* @__PURE__ */ Symbol.for("v-cmt");
2314
- function yr(e) {
2315
- return e ? e.__v_isVNode === !0 : !1;
2316
- }
2317
- const mr = (...e) => sn(
2318
- ...e
2319
- ), nn = ({ key: e }) => e ?? null, pe = ({
2320
- ref: e,
2321
- ref_key: t,
2322
- ref_for: n
2323
- }) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || /* @__PURE__ */ st(e) || U(e) ? { i: Se, r: e, k: t, f: !!n } : e : null);
2324
- function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1, c = !1) {
741
+ ), Reflect.ownKeys(t)));
742
+ const ct = {}, ye = (t) => Object.getPrototypeOf(t) === ct, at = (t) => t.__isSuspense, Se = /* @__PURE__ */ Symbol.for("v-fgt"), lt = /* @__PURE__ */ Symbol.for("v-txt"), ut = /* @__PURE__ */ Symbol.for("v-cmt");
743
+ function ft(t) {
744
+ return t ? t.__v_isVNode === !0 : !1;
745
+ }
746
+ const dt = (...t) => Ee(
747
+ ...t
748
+ ), be = ({ key: t }) => t ?? null, k = ({
749
+ ref: t,
750
+ ref_key: e,
751
+ ref_for: s
752
+ }) => (typeof t == "number" && (t = "" + t), t != null ? b(t) || /* @__PURE__ */ te(t) || P(t) ? { i: A, r: t, k: e, f: !!s } : t : null);
753
+ function ht(t, e = null, s = null, r = 0, o = null, n = t === Se ? 0 : 1, i = !1, c = !1) {
2325
754
  const l = {
2326
755
  __v_isVNode: !0,
2327
756
  __v_skip: !0,
2328
- type: e,
2329
- props: t,
2330
- key: t && nn(t),
2331
- ref: t && pe(t),
2332
- scopeId: lr,
757
+ type: t,
758
+ props: e,
759
+ key: e && be(e),
760
+ ref: e && k(e),
761
+ scopeId: rt,
2333
762
  slotScopeIds: null,
2334
- children: n,
763
+ children: s,
2335
764
  component: null,
2336
765
  suspense: null,
2337
766
  ssContent: null,
@@ -2344,219 +773,226 @@ function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
2344
773
  targetStart: null,
2345
774
  targetAnchor: null,
2346
775
  staticCount: 0,
2347
- shapeFlag: o,
2348
- patchFlag: s,
2349
- dynamicProps: r,
776
+ shapeFlag: n,
777
+ patchFlag: r,
778
+ dynamicProps: o,
2350
779
  dynamicChildren: null,
2351
780
  appContext: null,
2352
- ctx: Se
781
+ ctx: A
2353
782
  };
2354
- return c ? (ot(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= $(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && Q("VNode created with invalid key (NaN). VNode type:", l.type), l;
783
+ return c ? (K(l, s), n & 128 && t.normalize(l)) : s && (l.shapeFlag |= b(s) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && T("VNode created with invalid key (NaN). VNode type:", l.type), l;
2355
784
  }
2356
- const Sr = process.env.NODE_ENV !== "production" ? mr : sn;
2357
- function sn(e, t = null, n = null, s = 0, r = null, o = !1) {
2358
- if ((!e || e === fr) && (process.env.NODE_ENV !== "production" && !e && Q(`Invalid vnode type when creating vnode: ${e}.`), e = gr), yr(e)) {
2359
- const c = ve(
2360
- e,
785
+ const pt = process.env.NODE_ENV !== "production" ? dt : Ee;
786
+ function Ee(t, e = null, s = null, r = 0, o = null, n = !1) {
787
+ if ((!t || t === nt) && (process.env.NODE_ENV !== "production" && !t && T(`Invalid vnode type when creating vnode: ${t}.`), t = ut), ft(t)) {
788
+ const c = F(
2361
789
  t,
790
+ e,
2362
791
  !0
2363
792
  /* mergeRef: true */
2364
793
  );
2365
- return n && ot(c, n), c.patchFlag = -2, c;
794
+ return s && K(c, s), c.patchFlag = -2, c;
2366
795
  }
2367
- if (an(e) && (e = e.__vccOpts), t) {
2368
- t = vr(t);
2369
- let { class: c, style: l } = t;
2370
- c && !$(c) && (t.class = nt(c)), F(l) && (/* @__PURE__ */ Le(l) && !O(l) && (l = Oe({}, l)), t.style = tt(l));
796
+ if (Oe(t) && (t = t.__vccOpts), e) {
797
+ e = mt(e);
798
+ let { class: c, style: l } = e;
799
+ c && !b(c) && (e.class = ee(c)), w(l) && (/* @__PURE__ */ G(l) && !m(l) && (l = H({}, l)), e.style = Z(l));
2371
800
  }
2372
- const i = $(e) ? 1 : dr(e) ? 128 : ur(e) ? 64 : F(e) ? 4 : U(e) ? 2 : 0;
2373
- return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ Le(e) && (e = /* @__PURE__ */ j(e), Q(
801
+ const i = b(t) ? 1 : at(t) ? 128 : ot(t) ? 64 : w(t) ? 4 : P(t) ? 2 : 0;
802
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ G(t) && (t = /* @__PURE__ */ S(t), T(
2374
803
  "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`.",
2375
804
  `
2376
805
  Component that was made reactive: `,
2377
- e
2378
- )), br(
2379
- e,
806
+ t
807
+ )), ht(
2380
808
  t,
2381
- n,
809
+ e,
2382
810
  s,
2383
811
  r,
2384
- i,
2385
812
  o,
813
+ i,
814
+ n,
2386
815
  !0
2387
816
  );
2388
817
  }
2389
- function vr(e) {
2390
- return e ? /* @__PURE__ */ Le(e) || en(e) ? Oe({}, e) : e : null;
818
+ function mt(t) {
819
+ return t ? /* @__PURE__ */ G(t) || ye(t) ? H({}, t) : t : null;
2391
820
  }
2392
- function ve(e, t, n = !1, s = !1) {
2393
- const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Er(r || {}, t) : r, h = {
821
+ function F(t, e, s = !1, r = !1) {
822
+ const { props: o, ref: n, patchFlag: i, children: c, transition: l } = t, f = e ? gt(o || {}, e) : o, _ = {
2394
823
  __v_isVNode: !0,
2395
824
  __v_skip: !0,
2396
- type: e.type,
825
+ type: t.type,
2397
826
  props: f,
2398
- key: f && nn(f),
2399
- ref: t && t.ref ? (
827
+ key: f && be(f),
828
+ ref: e && e.ref ? (
2400
829
  // #2078 in the case of <component :is="vnode" ref="extra"/>
2401
830
  // if the vnode itself already has a ref, cloneVNode will need to merge
2402
831
  // the refs so the single vnode can be set on multiple refs
2403
- n && o ? O(o) ? o.concat(pe(t)) : [o, pe(t)] : pe(t)
2404
- ) : o,
2405
- scopeId: e.scopeId,
2406
- slotScopeIds: e.slotScopeIds,
2407
- children: process.env.NODE_ENV !== "production" && i === -1 && O(c) ? c.map(rn) : c,
2408
- target: e.target,
2409
- targetStart: e.targetStart,
2410
- targetAnchor: e.targetAnchor,
2411
- staticCount: e.staticCount,
2412
- shapeFlag: e.shapeFlag,
832
+ s && n ? m(n) ? n.concat(k(e)) : [n, k(e)] : k(e)
833
+ ) : n,
834
+ scopeId: t.scopeId,
835
+ slotScopeIds: t.slotScopeIds,
836
+ children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(we) : c,
837
+ target: t.target,
838
+ targetStart: t.targetStart,
839
+ targetAnchor: t.targetAnchor,
840
+ staticCount: t.staticCount,
841
+ shapeFlag: t.shapeFlag,
2413
842
  // if the vnode is cloned with extra props, we can no longer assume its
2414
843
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2415
844
  // note: preserve flag for fragments since they use the flag for children
2416
845
  // fast paths only.
2417
- patchFlag: t && e.type !== tn ? i === -1 ? 16 : i | 16 : i,
2418
- dynamicProps: e.dynamicProps,
2419
- dynamicChildren: e.dynamicChildren,
2420
- appContext: e.appContext,
2421
- dirs: e.dirs,
846
+ patchFlag: e && t.type !== Se ? i === -1 ? 16 : i | 16 : i,
847
+ dynamicProps: t.dynamicProps,
848
+ dynamicChildren: t.dynamicChildren,
849
+ appContext: t.appContext,
850
+ dirs: t.dirs,
2422
851
  transition: l,
2423
852
  // These should technically only be non-null on mounted VNodes. However,
2424
853
  // they *should* be copied for kept-alive vnodes. So we just always copy
2425
854
  // them since them being non-null during a mount doesn't affect the logic as
2426
855
  // they will simply be overwritten.
2427
- component: e.component,
2428
- suspense: e.suspense,
2429
- ssContent: e.ssContent && ve(e.ssContent),
2430
- ssFallback: e.ssFallback && ve(e.ssFallback),
2431
- placeholder: e.placeholder,
2432
- el: e.el,
2433
- anchor: e.anchor,
2434
- ctx: e.ctx,
2435
- ce: e.ce
856
+ component: t.component,
857
+ suspense: t.suspense,
858
+ ssContent: t.ssContent && F(t.ssContent),
859
+ ssFallback: t.ssFallback && F(t.ssFallback),
860
+ placeholder: t.placeholder,
861
+ el: t.el,
862
+ anchor: t.anchor,
863
+ ctx: t.ctx,
864
+ ce: t.ce
2436
865
  };
2437
- return l && s && Qt(
2438
- h,
2439
- l.clone(h)
2440
- ), h;
2441
- }
2442
- function rn(e) {
2443
- const t = ve(e);
2444
- return O(e.children) && (t.children = e.children.map(rn)), t;
2445
- }
2446
- function wr(e = " ", t = 0) {
2447
- return Sr(_r, null, e, t);
2448
- }
2449
- function ot(e, t) {
2450
- let n = 0;
2451
- const { shapeFlag: s } = e;
2452
- if (t == null)
2453
- t = null;
2454
- else if (O(t))
2455
- n = 16;
2456
- else if (typeof t == "object")
2457
- if (s & 65) {
2458
- const r = t.default;
2459
- r && (r._c && (r._d = !1), ot(e, r()), r._c && (r._d = !0));
866
+ return l && r && ge(
867
+ _,
868
+ l.clone(_)
869
+ ), _;
870
+ }
871
+ function we(t) {
872
+ const e = F(t);
873
+ return m(t.children) && (e.children = t.children.map(we)), e;
874
+ }
875
+ function _t(t = " ", e = 0) {
876
+ return pt(lt, null, t, e);
877
+ }
878
+ function K(t, e) {
879
+ let s = 0;
880
+ const { shapeFlag: r } = t;
881
+ if (e == null)
882
+ e = null;
883
+ else if (m(e))
884
+ s = 16;
885
+ else if (typeof e == "object")
886
+ if (r & 65) {
887
+ const o = e.default;
888
+ o && (o._c && (o._d = !1), K(t, o()), o._c && (o._d = !0));
2460
889
  return;
2461
890
  } else
2462
- n = 32, !t._ && !en(t) && (t._ctx = Se);
2463
- else U(t) ? (t = { default: t, _ctx: Se }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [wr(t)]) : n = 8);
2464
- e.children = t, e.shapeFlag |= n;
2465
- }
2466
- function Er(...e) {
2467
- const t = {};
2468
- for (let n = 0; n < e.length; n++) {
2469
- const s = e[n];
2470
- for (const r in s)
2471
- if (r === "class")
2472
- t.class !== s.class && (t.class = nt([t.class, s.class]));
2473
- else if (r === "style")
2474
- t.style = tt([t.style, s.style]);
2475
- else if (Ks(r)) {
2476
- const o = t[r], i = s[r];
2477
- i && o !== i && !(O(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
891
+ s = 32, !e._ && !ye(e) && (e._ctx = A);
892
+ else if (P(e)) {
893
+ if (r & 65) {
894
+ K(t, { default: e });
895
+ return;
896
+ }
897
+ e = { default: e, _ctx: A }, s = 32;
898
+ } else
899
+ e = String(e), r & 64 ? (s = 16, e = [_t(e)]) : s = 8;
900
+ t.children = e, t.shapeFlag |= s;
901
+ }
902
+ function gt(...t) {
903
+ const e = {};
904
+ for (let s = 0; s < t.length; s++) {
905
+ const r = t[s];
906
+ for (const o in r)
907
+ if (o === "class")
908
+ e.class !== r.class && (e.class = ee([e.class, r.class]));
909
+ else if (o === "style")
910
+ e.style = Z([e.style, r.style]);
911
+ else if (ve(o)) {
912
+ const n = e[o], i = r[o];
913
+ i && n !== i && !(m(n) && n.includes(i)) ? e[o] = n ? [].concat(n, i) : i : i == null && n == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
2478
914
  // the model listener.
2479
- !Hs(r) && (t[r] = i);
2480
- } else r !== "" && (t[r] = s[r]);
915
+ !ke(o) && (e[o] = i);
916
+ } else o !== "" && (e[o] = r[o]);
2481
917
  }
2482
- return t;
918
+ return e;
2483
919
  }
2484
920
  {
2485
- const e = ke(), t = (n, s) => {
2486
- let r;
2487
- return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
2488
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
921
+ const t = L(), e = (s, r) => {
922
+ let o;
923
+ return (o = t[s]) || (o = t[s] = []), o.push(r), (n) => {
924
+ o.length > 1 ? o.forEach((i) => i(n)) : o[0](n);
2489
925
  };
2490
926
  };
2491
- t(
927
+ e(
2492
928
  "__VUE_INSTANCE_SETTERS__",
2493
- (n) => n
2494
- ), t(
929
+ (s) => s
930
+ ), e(
2495
931
  "__VUE_SSR_SETTERS__",
2496
- (n) => n
932
+ (s) => s
2497
933
  );
2498
934
  }
2499
935
  process.env.NODE_ENV;
2500
- const Nr = /(?:^|[-_])\w/g, Or = (e) => e.replace(Nr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2501
- function on(e, t = !0) {
2502
- return U(e) ? e.displayName || e.name : e.name || t && e.__name;
2503
- }
2504
- function cn(e, t, n = !1) {
2505
- let s = on(t);
2506
- if (!s && t.__file) {
2507
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
2508
- r && (s = r[1]);
2509
- }
2510
- if (!s && e) {
2511
- const r = (o) => {
2512
- for (const i in o)
2513
- if (o[i] === t)
936
+ const yt = /(?:^|[-_])\w/g, St = (t) => t.replace(yt, (e) => e.toUpperCase()).replace(/[-_]/g, "");
937
+ function Ne(t, e = !0) {
938
+ return P(t) ? t.displayName || t.name : t.name || e && t.__name;
939
+ }
940
+ function Pe(t, e, s = !1) {
941
+ let r = Ne(e);
942
+ if (!r && e.__file) {
943
+ const o = e.__file.match(/([^/\\]+)\.\w+$/);
944
+ o && (r = o[1]);
945
+ }
946
+ if (!r && t) {
947
+ const o = (n) => {
948
+ for (const i in n)
949
+ if (n[i] === e)
2514
950
  return i;
2515
951
  };
2516
- s = r(e.components) || e.parent && r(
2517
- e.parent.type.components
2518
- ) || r(e.appContext.components);
952
+ r = o(t.components) || t.parent && o(
953
+ t.parent.type.components
954
+ ) || o(t.appContext.components);
2519
955
  }
2520
- return s ? Or(s) : n ? "App" : "Anonymous";
956
+ return r ? St(r) : s ? "App" : "Anonymous";
2521
957
  }
2522
- function an(e) {
2523
- return U(e) && "__vccOpts" in e;
958
+ function Oe(t) {
959
+ return P(t) && "__vccOpts" in t;
2524
960
  }
2525
- function kr() {
961
+ function bt() {
2526
962
  if (process.env.NODE_ENV === "production" || typeof window > "u")
2527
963
  return;
2528
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
964
+ const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, s = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
2529
965
  __vue_custom_formatter: !0,
2530
966
  header(a) {
2531
- if (!F(a))
967
+ if (!w(a))
2532
968
  return null;
2533
969
  if (a.__isVue)
2534
- return ["div", e, "VueInstance"];
2535
- if (/* @__PURE__ */ st(a)) {
970
+ return ["div", t, "VueInstance"];
971
+ if (/* @__PURE__ */ te(a)) {
2536
972
  const u = a.value;
2537
973
  return [
2538
974
  "div",
2539
975
  {},
2540
- ["span", e, h(a)],
976
+ ["span", t, _(a)],
2541
977
  "<",
2542
978
  c(u),
2543
979
  ">"
2544
980
  ];
2545
981
  } else {
2546
- if (/* @__PURE__ */ Wt(a))
982
+ if (/* @__PURE__ */ le(a))
2547
983
  return [
2548
984
  "div",
2549
985
  {},
2550
- ["span", e, /* @__PURE__ */ je(a) ? "ShallowReactive" : "Reactive"],
986
+ ["span", t, /* @__PURE__ */ B(a) ? "ShallowReactive" : "Reactive"],
2551
987
  "<",
2552
988
  c(a),
2553
- `>${/* @__PURE__ */ Ue(a) ? " (readonly)" : ""}`
989
+ `>${/* @__PURE__ */ Y(a) ? " (readonly)" : ""}`
2554
990
  ];
2555
- if (/* @__PURE__ */ Ue(a))
991
+ if (/* @__PURE__ */ Y(a))
2556
992
  return [
2557
993
  "div",
2558
994
  {},
2559
- ["span", e, /* @__PURE__ */ je(a) ? "ShallowReadonly" : "Readonly"],
995
+ ["span", t, /* @__PURE__ */ B(a) ? "ShallowReadonly" : "Readonly"],
2560
996
  "<",
2561
997
  c(a),
2562
998
  ">"
@@ -2572,23 +1008,23 @@ function kr() {
2572
1008
  return [
2573
1009
  "div",
2574
1010
  {},
2575
- ...o(a.$)
1011
+ ...n(a.$)
2576
1012
  ];
2577
1013
  }
2578
1014
  };
2579
- function o(a) {
1015
+ function n(a) {
2580
1016
  const u = [];
2581
- a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !== qe && u.push(i("setup", a.setupState)), a.data !== qe && u.push(i("data", /* @__PURE__ */ j(a.data)));
1017
+ a.type.props && a.props && u.push(i("props", /* @__PURE__ */ S(a.props))), a.setupState !== J && u.push(i("setup", a.setupState)), a.data !== J && u.push(i("data", /* @__PURE__ */ S(a.data)));
2582
1018
  const d = l(a, "computed");
2583
1019
  d && u.push(i("computed", d));
2584
- const _ = l(a, "inject");
2585
- return _ && u.push(i("injected", _)), u.push([
1020
+ const p = l(a, "inject");
1021
+ return p && u.push(i("injected", p)), u.push([
2586
1022
  "div",
2587
1023
  {},
2588
1024
  [
2589
1025
  "span",
2590
1026
  {
2591
- style: s.style + ";opacity:0.66"
1027
+ style: r.style + ";opacity:0.66"
2592
1028
  },
2593
1029
  "$ (internal): "
2594
1030
  ],
@@ -2596,7 +1032,7 @@ function kr() {
2596
1032
  ]), u;
2597
1033
  }
2598
1034
  function i(a, u) {
2599
- return u = Oe({}, u), Object.keys(u).length ? [
1035
+ return u = H({}, u), Object.keys(u).length ? [
2600
1036
  "div",
2601
1037
  { style: "line-height:1.25em;margin-bottom:0.6em" },
2602
1038
  [
@@ -2614,42 +1050,42 @@ function kr() {
2614
1050
  ...Object.keys(u).map((d) => [
2615
1051
  "div",
2616
1052
  {},
2617
- ["span", s, d + ": "],
1053
+ ["span", r, d + ": "],
2618
1054
  c(u[d], !1)
2619
1055
  ])
2620
1056
  ]
2621
1057
  ] : ["span", {}];
2622
1058
  }
2623
1059
  function c(a, u = !0) {
2624
- return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : F(a) ? ["object", { object: u ? /* @__PURE__ */ j(a) : a }] : ["span", n, String(a)];
1060
+ return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", s, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : w(a) ? ["object", { object: u ? /* @__PURE__ */ S(a) : a }] : ["span", s, String(a)];
2625
1061
  }
2626
1062
  function l(a, u) {
2627
1063
  const d = a.type;
2628
- if (U(d))
1064
+ if (P(d))
2629
1065
  return;
2630
- const _ = {};
2631
- for (const w in a.ctx)
2632
- f(d, w, u) && (_[w] = a.ctx[w]);
2633
- return _;
1066
+ const p = {};
1067
+ for (const D in a.ctx)
1068
+ f(d, D, u) && (p[D] = a.ctx[D]);
1069
+ return p;
2634
1070
  }
2635
1071
  function f(a, u, d) {
2636
- const _ = a[d];
2637
- if (O(_) && _.includes(u) || F(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
1072
+ const p = a[d];
1073
+ if (m(p) && p.includes(u) || w(p) && u in p || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((D) => f(D, u, d)))
2638
1074
  return !0;
2639
1075
  }
2640
- function h(a) {
2641
- return /* @__PURE__ */ je(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1076
+ function _(a) {
1077
+ return /* @__PURE__ */ B(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
2642
1078
  }
2643
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1079
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
2644
1080
  }
2645
1081
  process.env.NODE_ENV;
2646
1082
  process.env.NODE_ENV;
2647
1083
  process.env.NODE_ENV;
2648
- function Vr() {
2649
- kr();
1084
+ function Et() {
1085
+ bt();
2650
1086
  }
2651
- process.env.NODE_ENV !== "production" && Vr();
2652
- const Cr = [
1087
+ process.env.NODE_ENV !== "production" && Et();
1088
+ const wt = [
2653
1089
  "@context",
2654
1090
  "activeLink",
2655
1091
  "computed",
@@ -2661,53 +1097,54 @@ const Cr = [
2661
1097
  "subs",
2662
1098
  "version"
2663
1099
  ];
2664
- class _t extends $s {
1100
+ class ie extends Ce {
1101
+ _className = "StorePersister";
2665
1102
  _crypt;
2666
1103
  _excludedKeys;
2667
1104
  _persister;
2668
1105
  _propertiesToEncrypt;
2669
1106
  _watchedStore;
2670
- constructor(t, n, s, r) {
2671
- super(t, n, s, r);
2672
- const { crypt: o, persister: i, watchedStore: c } = n;
2673
- this._excludedKeys = this.initExcludedKeys(), this.definePersister(i), this._propertiesToEncrypt = new Set(this.getPropertiesToEncrypt()), this._watchedStore = c, o && (this._crypt = o, this.options && (this.options.isEncrypted = !1)), this.augmentStore(), this.remember(), this.debugLog("StorePersister constructor", {
1107
+ constructor(e, s, r, o) {
1108
+ super(e, s, r, o);
1109
+ const { crypt: n, persister: i, watchedStore: c } = s;
1110
+ this._excludedKeys = this.initExcludedKeys(), this.definePersister(i), this._propertiesToEncrypt = new Set(this.getPropertiesToEncrypt()), this._watchedStore = c, n && (this._crypt = n, this.options && (this.options.isEncrypted = !1)), this.augmentStore(), this.remember(), this.debugLog("StorePersister constructor", {
2674
1111
  toBeWatched: this.toBeWatched(),
2675
1112
  watchedStore: c,
2676
1113
  persister: i,
2677
- store: t,
2678
- options: n
1114
+ store: e,
1115
+ options: s
2679
1116
  }), this.toBeWatched() && (this._watchedStore.add(this.store.$id), this.storeSubscribe = this.storeSubscription.bind(this));
2680
1117
  }
2681
1118
  augmentStore() {
2682
- const { isEncrypted: t, persistedPropertiesToEncrypt: n, watchMutation: s } = this.options;
2683
- t === void 0 && (this.options.isEncrypted = !1), n === void 0 && (this.options.persistedPropertiesToEncrypt = []), s === void 0 && (this.options.watchMutation = !1), this.stateHas("isLoading") || this.addToState("isLoading", !1), this.store.persistState = async () => await this.persist(), this.store.remember = async () => await this.remember(), this.store.removePersistedState = this.removePersistedState.bind(this), this.store.watch = this.watch, this.store.stopWatch = this.stopWatch;
2684
- }
2685
- async cryptProperty(t, n, s = !1) {
2686
- return s ? await t.decrypt(n) : await t.encrypt(n);
2687
- }
2688
- async cryptState(t, n = !1) {
2689
- return await new Promise(async (s) => {
2690
- const r = this._crypt, o = this.getPropertiesToEncrypt(), i = this.isEncrypted();
2691
- if (this.debugLog(`cryptState - ${this.store.$id} ${n ? "decrypt" : "crypt"}`, {
2692
- can: this._propertiesToEncrypt.size > 0 && i === n && !!r,
2693
- Crypt: r,
2694
- state: t
2695
- }), this._propertiesToEncrypt.size > 0 && r) {
1119
+ const { isEncrypted: e, persistedPropertiesToEncrypt: s, watchMutation: r } = this.options;
1120
+ e === void 0 && (this.options.isEncrypted = !1), s === void 0 && (this.options.persistedPropertiesToEncrypt = []), r === void 0 && (this.options.watchMutation = !1), this.stateHas("isLoading") || this.addToState("isLoading", !1), this.store.persistState = async () => await this.persist(), this.store.remember = async () => await this.remember(), this.store.removePersistedState = this.removePersistedState.bind(this), this.store.watch = this.watch, this.store.stopWatch = this.stopWatch;
1121
+ }
1122
+ async cryptProperty(e, s, r = !1) {
1123
+ return r ? await e.decrypt(s) : await e.encrypt(s);
1124
+ }
1125
+ async cryptState(e, s = !1) {
1126
+ return await new Promise(async (r) => {
1127
+ const o = this._crypt, n = this.getPropertiesToEncrypt(), i = this.isEncrypted();
1128
+ if (this.debugLog(`cryptState - ${this.store.$id} ${s ? "decrypt" : "crypt"}`, {
1129
+ can: this._propertiesToEncrypt.size > 0 && i === s && !!o,
1130
+ Crypt: o,
1131
+ state: e
1132
+ }), this._propertiesToEncrypt.size > 0 && o) {
2696
1133
  const c = {};
2697
- for (const l of o) {
2698
- const f = this.getValue(t[l]);
2699
- f && (c[l] = await this.cryptProperty(r, f, n));
1134
+ for (const l of n) {
1135
+ const f = this.getValue(e[l]);
1136
+ f && (c[l] = await this.cryptProperty(o, f, s));
2700
1137
  }
2701
- this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), Y(c) || (t = { ...t, ...c }, this.options && (this.options.isEncrypted = !n));
1138
+ this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), R(c) || (e = { ...e, ...c }, this.options && (this.options.isEncrypted = !s));
2702
1139
  }
2703
- s(t);
1140
+ r(e);
2704
1141
  });
2705
1142
  }
2706
- static customizeStore(t, n, s, r) {
2707
- return !n.storeOptions?.persist && n.storeOptions?.watchMutation && (n.storeOptions.persist = !0), super.customizeStore(t, n, s, r);
1143
+ static customizeStore(e, s, r, o) {
1144
+ return !s.storeOptions?.persist && s.storeOptions?.watchMutation && (s.storeOptions.persist = !0), super.customizeStore(e, s, r, o);
2708
1145
  }
2709
- definePersister(t) {
2710
- this._persister = this.options.dbName ? new et({ name: this.options.dbName, keyPath: "storeName" }) : t;
1146
+ definePersister(e) {
1147
+ this._persister = this.options.dbName ? new X({ name: this.options.dbName, keyPath: "storeName" }) : e;
2711
1148
  }
2712
1149
  isEncrypted() {
2713
1150
  return this.options.isEncrypted;
@@ -2715,49 +1152,49 @@ class _t extends $s {
2715
1152
  getPropertiesToEncrypt() {
2716
1153
  return this.options?.persistedPropertiesToEncrypt ?? [];
2717
1154
  }
2718
- async getPersistedState(t = !0) {
2719
- const n = this.store.$id;
1155
+ async getPersistedState(e = !0) {
1156
+ const s = this.store.$id;
2720
1157
  try {
2721
- let s = await this._persister.getItem(n);
2722
- return t && this.toBeCrypted() && s && (await this._crypt?.init(), s = await this.cryptState(s, !0)), this.debugLog(`getPersistedState ${n}`, { persistedState: s, state: this.state }), s;
2723
- } catch (s) {
2724
- this.logError("getPersistedState()", { storeName: n, e: s });
1158
+ let r = await this._persister.getItem(s);
1159
+ return e && this.toBeCrypted() && r && (await this._crypt?.init(), r = await this.cryptState(r, !0)), this.debugLog(`getPersistedState ${s}`, { persistedState: r, state: this.state }), r;
1160
+ } catch (r) {
1161
+ this.logError("getPersistedState()", { storeName: s, e: r });
2725
1162
  }
2726
1163
  }
2727
1164
  async getStateToPersist() {
2728
- const t = this._excludedKeys, n = this.state, s = this._propertiesToEncrypt.size > 0, r = this._crypt;
2729
- s && await r.init();
2730
- const o = {};
2731
- for (const i of Object.keys(n))
2732
- if (!this.hasDeniedFirstChar(i[0]) && !t.has(i)) {
2733
- const c = n[i];
2734
- Y(c) || (s && this._propertiesToEncrypt.has(i) ? o[i] = await this.cryptProperty(r, c, !1) : o[i] = /* @__PURE__ */ j(c));
1165
+ const e = this._excludedKeys, s = this.state, r = this._propertiesToEncrypt.size > 0, o = this._crypt;
1166
+ r && await o.init();
1167
+ const n = {};
1168
+ for (const i of Object.keys(s))
1169
+ if (!this.hasDeniedFirstChar(i[0]) && !e.has(i)) {
1170
+ const c = s[i];
1171
+ R(c) || (r && this._propertiesToEncrypt.has(i) ? n[i] = await this.cryptProperty(o, c, !1) : n[i] = /* @__PURE__ */ S(c));
2735
1172
  }
2736
- return o;
1173
+ return n;
2737
1174
  }
2738
1175
  getWatchMutation() {
2739
1176
  return this.options.watchMutation;
2740
1177
  }
2741
- static hasRequiredKeys(t) {
2742
- return !!t?.persist || !!t?.watchMutation;
1178
+ static hasRequiredKeys(e) {
1179
+ return !!e?.persist || !!e?.watchMutation;
2743
1180
  }
2744
1181
  initExcludedKeys() {
2745
1182
  return /* @__PURE__ */ new Set([
2746
- ...Cr,
1183
+ ...wt,
2747
1184
  ...this.options.excludedKeys ?? []
2748
1185
  ]);
2749
1186
  }
2750
1187
  async persist() {
2751
- const t = await this.getStateToPersist();
2752
- this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }), Y(t) || this._persister.setItem(this.store.$id, t);
1188
+ const e = await this.getStateToPersist();
1189
+ this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: e }), R(e) || this._persister.setItem(this.store.$id, e);
2753
1190
  }
2754
- propertyShouldBePersisted(t) {
2755
- return !this._excludedKeys.has(t);
1191
+ propertyShouldBePersisted(e) {
1192
+ return !this._excludedKeys.has(e);
2756
1193
  }
2757
1194
  async remember() {
2758
- return this.state.isLoading = !0, new Promise(async (t) => {
2759
- let n = await this.getPersistedState();
2760
- return n && !Y(n) && this.store.$patch(n), this.state.isLoading = !1, t(!0);
1195
+ return this.state.isLoading = !0, new Promise(async (e) => {
1196
+ let s = await this.getPersistedState();
1197
+ return s && !R(s) && this.store.$patch(s), this.state.isLoading = !1, e(!0);
2761
1198
  });
2762
1199
  }
2763
1200
  removePersistedState() {
@@ -2766,20 +1203,20 @@ class _t extends $s {
2766
1203
  stopWatch() {
2767
1204
  this.options?.watchMutation && (this.options && (this.options.watchMutation = !1), this._watchedStore.delete(this.store.$id));
2768
1205
  }
2769
- storeSubscription(t) {
1206
+ storeSubscription(e) {
2770
1207
  this.debugLog(`store.storeSubscription() ${this.store.$id}`, [
2771
1208
  "mutation type !== patch object: ",
2772
- t.type !== "patch object",
1209
+ e.type !== "patch object",
2773
1210
  "watchMutation: ",
2774
1211
  this.getWatchMutation(),
2775
1212
  "mutation:",
2776
- t,
1213
+ e,
2777
1214
  "state:",
2778
1215
  this.state,
2779
1216
  "store:",
2780
1217
  this.store
2781
- ]), t.type !== "patch object" && this.getWatchMutation() && this.persist().then(() => {
2782
- this.store.mutationCallback && this.store.mutationCallback(this.state, t);
1218
+ ]), e.type !== "patch object" && this.getWatchMutation() && this.persist().then(() => {
1219
+ this.store.mutationCallback && this.store.mutationCallback(this.state, e);
2783
1220
  });
2784
1221
  }
2785
1222
  toBeCrypted() {
@@ -2792,44 +1229,44 @@ class _t extends $s {
2792
1229
  this.toBeWatched() && (this.options && (this.options.watchMutation = !0), this.storeSubscribe = this.storeSubscription.bind(this));
2793
1230
  }
2794
1231
  }
2795
- class Rr extends un {
2796
- _resetStoreCallback = (t) => {
2797
- const { removePersistedState: n } = t;
2798
- typeof n == "function" && n();
1232
+ class Nt extends Ve {
1233
+ _resetStoreCallback = (e) => {
1234
+ const { removePersistedState: s } = e;
1235
+ typeof s == "function" && s();
2799
1236
  };
2800
1237
  constructor() {
2801
1238
  super(
2802
- Ut,
2803
- _t.customizeStore.bind(_t),
2804
- A
1239
+ ce,
1240
+ ie.customizeStore.bind(ie),
1241
+ E
2805
1242
  );
2806
1243
  }
2807
1244
  }
2808
- const we = new Rr();
2809
- function Pr(e, t) {
2810
- return we.pluginOptions = xr(e, t), we;
1245
+ const q = new Nt();
1246
+ function Ct(t, e) {
1247
+ return q.pluginOptions = Pt(t, e), q;
2811
1248
  }
2812
- function xr(e, t) {
2813
- let n, s;
2814
- const r = /* @__PURE__ */ new Set();
1249
+ function Pt(t, e) {
1250
+ let s, r;
1251
+ const o = /* @__PURE__ */ new Set();
2815
1252
  try {
2816
1253
  if (window)
2817
- return !Y(e) && e && (n = new et({ name: e, keyPath: "storeName" })), t && (s = new ie(t)), { persister: n, crypt: s, watchedStore: r };
1254
+ return !R(t) && t && (s = new X({ name: t, keyPath: "storeName" })), e && (r = new x(e)), { persister: s, crypt: r, watchedStore: o };
2818
1255
  } catch {
2819
1256
  }
2820
- return { persister: n, crypt: s, watchedStore: r };
1257
+ return { persister: s, crypt: r, watchedStore: o };
2821
1258
  }
2822
- function jr(e, t) {
2823
- let n;
2824
- return t && (n = new ie(t)), we.pluginOptions = {
2825
- persister: new Fs({ name: e }),
2826
- crypt: n,
1259
+ function Vt(t, e) {
1260
+ let s;
1261
+ return e && (s = new x(e)), q.pluginOptions = {
1262
+ persister: new je({ name: t }),
1263
+ crypt: s,
2827
1264
  watchedStore: /* @__PURE__ */ new Set()
2828
- }, we;
1265
+ }, q;
2829
1266
  }
2830
1267
  export {
2831
- Ut as PLUGIN_NAME,
2832
- Fs as PersisterMock,
2833
- Pr as createPersistStatePlugin,
2834
- jr as createPluginMock
1268
+ ce as PLUGIN_NAME,
1269
+ je as PersisterMock,
1270
+ Ct as createPersistStatePlugin,
1271
+ Vt as createPluginMock
2835
1272
  };