pinia-plugin-persist-state 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1608 +1,37 @@
1
- import "pinia";
2
- class ln {
1
+ import { CustomConsole as Te, Store as Ve, isEmpty as x, PluginSubscriber as De } from "pinia-plugin-subscription";
2
+ class xe {
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 Fe = 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, Ke = (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), Ne = (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 Oe = () => it || (it = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
175
- function Be(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) : Be(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 Je(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 = Je(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, Ce;
216
- function Ye() {
217
- mt++;
218
- }
219
- function Ge() {
220
- if (--mt > 0)
221
- return;
222
- let e;
223
- for (; Ce; ) {
224
- let t = Ce;
225
- for (Ce = 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
- Ye();
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
- Ge();
265
- }
266
- }
267
- }
268
- const bt = /* @__PURE__ */ new WeakMap(), Re = /* @__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 (Ye(), t === "clear")
290
- i.forEach(c);
291
- else {
292
- const l = g(e), f = l && Ne(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(Re)), te(e) && c(i.get(ct)));
302
- break;
303
- case "delete":
304
- l || (c(i.get(Re)), te(e) && c(i.get(ct)));
305
- break;
306
- case "set":
307
- te(e) && c(i.get(Re));
308
- break;
309
- }
310
- }
311
- Ge();
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 Xe(e) {
322
- return e = /* @__PURE__ */ p(e), e;
323
- }
324
- function E(e, t) {
325
- return /* @__PURE__ */ N(e) ? he(/* @__PURE__ */ Ze(e) ? x(t) : t) : x(t);
326
- }
327
- const xn = {
328
- __proto__: null,
329
- [Symbol.iterator]() {
330
- return xe(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 xe(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 Ie(this, "includes", e);
385
- },
386
- indexOf(...e) {
387
- return Ie(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 Ie(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 xe(this, "values", (e) => E(this, e));
435
- }
436
- };
437
- function xe(e, t, n) {
438
- const s = Xe(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 = Xe(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 = Xe(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 Ie(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
- Ye();
477
- const s = (/* @__PURE__ */ p(e))[t].apply(e, n);
478
- return Ge(), 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 && Ne(n) ? c : c.value;
523
- return r && y(l) ? /* @__PURE__ */ He(l) : l;
524
- }
525
- return y(c) ? r ? /* @__PURE__ */ He(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) && Ne(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 : Ke(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 = Ke(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
- Ke(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 He(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 Ze(e) {
764
- return /* @__PURE__ */ N(e) ? /* @__PURE__ */ Ze(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__ */ He(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) || !Ne(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 De = !1;
871
- function re(e, ...t) {
872
- if (De) return;
873
- De = !0;
874
- const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ts();
875
- if (s)
876
- Qe(
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
- De = !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 Qe(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 || Fe;
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
- Qe(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 qe = 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
- qe || (qe = 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), Qe(
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), qe = 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 Pe = /* @__PURE__ */ new Map();
1100
- process.env.NODE_ENV !== "production" && (Oe().__VUE_HMR_RUNTIME__ = {
1101
- createRecord: je(ps),
1102
- rerender: je(hs),
1103
- reload: je(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 = Pe.get(i);
1129
- c || (i !== n.initialDef && ft(i, t), Pe.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
- Pe.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 je(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
- Oe().requestIdleCallback;
1161
- Oe().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 ? (et(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 && et(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 = Je(c)), y(l) && (/* @__PURE__ */ se(l) && !g(l) && (l = q({}, l)), t.style = Be(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 et(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), et(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 = Je([t.class, s.class]));
1324
- else if (r === "style")
1325
- t.style = Be([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 = Oe(), 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__ */ Ze(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 !== Fe && u.push(i("setup", a.setupState)), a.data !== Fe && 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 ae = "pinia-plugin-persist-state";
30
+ class Re extends Te {
31
+ _pluginName = ae;
1603
32
  }
1604
- const A = new Ts();
1605
- let pt = class {
33
+ const N = new Re();
34
+ let oe = 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 = () => N.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
+ N.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 = () => N.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 }), N.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 = () => N.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 tt {
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 xe(s) : new oe(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 oe)
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
+ N.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 je {
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 I = {};
270
+ const ve = {
271
+ clear: () => I = {},
272
+ getItem: async (t) => new Promise((e) => e(I[t])),
273
+ removeItem: (t) => delete I[t],
274
+ removeItems: (t) => t ? t.forEach((e) => delete I[e]) : I = {},
275
+ setItem: (t, e) => {
276
+ I[e] = t;
1848
277
  }
1849
278
  };
1850
- class Fs extends tt {
279
+ class $e extends X {
1851
280
  defineDb() {
1852
- return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? Ms : new As();
281
+ return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? ve : new je();
1853
282
  }
1854
283
  }
1855
- class ie {
284
+ class R {
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(R.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(R.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 Ue = 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:"), ke = 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 Ve = () => ht || (ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1930
- function nt(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) : nt(s);
1935
- if (r)
1936
- for (const o in r)
1937
- t[o] = r[o];
354
+ const le = () => {
355
+ }, ke = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
356
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Me = (t) => t.startsWith("onUpdate:"), q = Object.assign, p = Array.isArray, w = (t) => typeof t == "function", y = (t) => typeof t == "string", Fe = (t) => typeof t == "symbol", O = (t) => t !== null && typeof t == "object";
357
+ let ne;
358
+ const L = () => ne || (ne = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
359
+ function Z(t) {
360
+ if (p(t)) {
361
+ const e = {};
362
+ for (let s = 0; s < t.length; s++) {
363
+ const r = t[s], o = y(r) ? qe(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 (y(t) || O(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 Ae = /;(?![^(]*\))/g, Ke = /:([^]+)/, He = /\/\*[^]*?\*\//g;
373
+ function qe(t) {
374
+ const e = {};
375
+ return t.replace(He, "").split(Ae).forEach((s) => {
376
+ if (s) {
377
+ const r = s.split(Ke);
378
+ r.length > 1 && (e[r[0].trim()] = r[1].trim());
1950
379
  }
1951
- }), t;
1952
- }
1953
- function st(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 = st(e[n]);
1960
- s && (t += s + " ");
380
+ }), e;
381
+ }
382
+ function ee(t) {
383
+ let e = "";
384
+ if (y(t))
385
+ e = t;
386
+ else if (p(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 (O(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(Fe)
1972
401
  );
1973
402
  // @__NO_SIDE_EFFECTS__
1974
- function Wt(e) {
1975
- return /* @__PURE__ */ Le(e) ? /* @__PURE__ */ Wt(e.__v_raw) : !!(e && e.__v_isReactive);
403
+ function ue(t) {
404
+ return /* @__PURE__ */ Y(t) ? /* @__PURE__ */ ue(t.__v_raw) : !!(t && t.__v_isReactive);
1976
405
  }
1977
406
  // @__NO_SIDE_EFFECTS__
1978
- function Le(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 $e(e) {
1983
- return !!(e && e.__v_isShallow);
411
+ function U(t) {
412
+ return !!(t && t.__v_isShallow);
1984
413
  }
1985
414
  // @__NO_SIDE_EFFECTS__
1986
- function We(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 b(t) {
420
+ const e = t && t.__v_raw;
421
+ return e ? /* @__PURE__ */ b(e) : t;
1993
422
  }
1994
423
  // @__NO_SIDE_EFFECTS__
1995
- function rt(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 Te = !1;
2006
- function Q(e, ...t) {
2007
- if (Te) return;
2008
- Te = !0;
2009
- const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ys();
2010
- if (s)
2011
- ot(
424
+ function te(t) {
425
+ return t ? t.__v_isRef === !0 : !1;
426
+ }
427
+ const P = [];
428
+ function Le(t) {
429
+ P.push(t);
430
+ }
431
+ function Ue() {
432
+ P.pop();
433
+ }
434
+ let B = !1;
435
+ function E(t, ...e) {
436
+ if (B) return;
437
+ B = !0;
438
+ const s = P.length ? P[P.length - 1].component : null, r = s && s.appContext.config.warnHandler, o = Be();
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 <${Ie(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
+ `, ...We(o)), console.warn(...n);
2033
462
  }
2034
- Te = !1;
463
+ B = !1;
2035
464
  }
2036
- function Ys() {
2037
- let e = K[K.length - 1];
2038
- if (!e)
465
+ function Be() {
466
+ let t = P[P.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__ */ rt(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 We(t) {
482
+ const e = [];
483
+ return t.forEach((s, r) => {
484
+ e.push(...r === 0 ? [] : [`
485
+ `], ...ze(s));
486
+ }), e;
487
+ }
488
+ function ze({ vnode: t, recurseCount: e }) {
489
+ const s = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, o = ` at <${Ie(
490
+ t.component,
491
+ t.type,
492
+ r
493
+ )}`, n = ">" + s;
494
+ return t.props ? [o, ...Je(t.props), n] : [o + n];
495
+ }
496
+ function Je(t) {
497
+ const e = [], s = Object.keys(t);
498
+ return s.slice(0, 3).forEach((r) => {
499
+ e.push(...fe(r, t[r]));
500
+ }), s.length > 3 && e.push(" ..."), e;
501
+ }
502
+ function fe(t, e, s) {
503
+ return y(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 = fe(t, /* @__PURE__ */ b(e.value), !0), s ? e : [`${t}=Ref<`, e, ">"]) : w(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ b(e), s ? e : [`${t}=`, e]);
504
+ }
505
+ const de = {
2077
506
  sp: "serverPrefetch hook",
2078
507
  bc: "beforeCreate hook",
2079
508
  c: "created hook",
@@ -2106,232 +535,275 @@ const Bt = {
2106
535
  15: "component update",
2107
536
  16: "app unmount cleanup function"
2108
537
  };
2109
- function ot(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
+ he(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 || Ue;
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 he(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" ? de[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
- ot(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
+ Ye(t, s, o, r, i);
2140
569
  }
2141
- function Qs(e, t, n, s = !0, r = !1) {
570
+ function Ye(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 = de[e];
573
+ if (s && Le(s), E(`Unhandled error${n ? ` during execution of ${n}` : ""}`), s && Ue(), 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 ze = 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
- ze || (ze = 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 S = null, C = 0;
586
+ const Ge = /* @__PURE__ */ Promise.resolve();
587
+ let Q = null;
588
+ const Qe = 100;
589
+ function Xe(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 Ze(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(Xe(e), 0, t), t.flags |= 1, pe();
602
+ }
603
+ }
604
+ function pe() {
605
+ Q || (Q = Ge.then(me));
606
+ }
607
+ function et(t) {
608
+ if (!p(t))
609
+ S && t.id === -1 ? S.splice(C + 1, 0, t) : t.flags & 1 || (V.push(t), t.flags |= 1);
610
+ else
611
+ for (let e = 0; e < t.length; e++)
612
+ V.push(t[e]);
613
+ pe();
614
+ }
615
+ function tt(t) {
616
+ if (V.length) {
617
+ const e = [...new Set(V)].sort(
618
+ (s, r) => j(s) - j(r)
2185
619
  );
2186
- if (X.length = 0, D) {
2187
- D.push(...t);
620
+ if (V.length = 0, S) {
621
+ for (let s = 0; s < e.length; s++)
622
+ S.push(e[s]);
2188
623
  return;
2189
624
  }
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);
625
+ for (S = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), C = 0; C < S.length; C++) {
626
+ const s = S[C];
627
+ process.env.NODE_ENV !== "production" && _e(t, s) || (s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2);
2193
628
  }
2194
- D = null, B = 0;
629
+ S = null, C = 0;
2195
630
  }
2196
631
  }
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;
632
+ const j = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
633
+ function me(t) {
634
+ process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
635
+ const e = process.env.NODE_ENV !== "production" ? (s) => _e(t, s) : le;
2201
636
  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))
637
+ for (g = 0; g < h.length; g++) {
638
+ const s = h[g];
639
+ if (s && !(s.flags & 8)) {
640
+ if (process.env.NODE_ENV !== "production" && e(s))
2206
641
  continue;
2207
- n.flags & 4 && (n.flags &= -2), ot(
2208
- n,
2209
- n.i,
2210
- n.i ? 15 : 14
2211
- ), n.flags & 4 || (n.flags &= -2);
642
+ s.flags & 4 && (s.flags &= -2), se(
643
+ s,
644
+ s.i,
645
+ s.i ? 15 : 14
646
+ ), s.flags & 4 || (s.flags &= -2);
2212
647
  }
2213
648
  }
2214
649
  } finally {
2215
- for (; C < S.length; C++) {
2216
- const n = S[C];
2217
- n && (n.flags &= -2);
650
+ for (; g < h.length; g++) {
651
+ const s = h[g];
652
+ s && (s.flags &= -2);
2218
653
  }
2219
- C = -1, S.length = 0, or(e), ze = null, (S.length || X.length) && Gt(e);
654
+ g = -1, h.length = 0, tt(t), Q = null, (h.length || V.length) && me(t);
2220
655
  }
2221
656
  }
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.`,
657
+ function _e(t, e) {
658
+ const s = t.get(e) || 0;
659
+ if (s > Qe) {
660
+ const r = e.i, o = r && Pe(r.type);
661
+ return he(
662
+ `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
663
  null,
2229
664
  10
2230
665
  ), !0;
2231
666
  }
2232
- return e.set(t, n + 1), !1;
667
+ return t.set(e, s + 1), !1;
2233
668
  }
2234
- const Ae = /* @__PURE__ */ new Map();
2235
- process.env.NODE_ENV !== "production" && (Ve().__VUE_HMR_RUNTIME__ = {
2236
- createRecord: Me(ir),
2237
- rerender: Me(cr),
2238
- reload: Me(ar)
669
+ const W = /* @__PURE__ */ new Map();
670
+ process.env.NODE_ENV !== "production" && (L().__VUE_HMR_RUNTIME__ = {
671
+ createRecord: z(st),
672
+ rerender: z(rt),
673
+ reload: z(ot)
2239
674
  });
2240
- const me = /* @__PURE__ */ new Map();
2241
- function ir(e, t) {
2242
- return me.has(e) ? !1 : (me.set(e, {
2243
- initialDef: be(t),
675
+ const k = /* @__PURE__ */ new Map();
676
+ function st(t, e) {
677
+ return k.has(t) ? !1 : (k.set(t, {
678
+ initialDef: M(e),
2244
679
  instances: /* @__PURE__ */ new Set()
2245
680
  }), !0);
2246
681
  }
2247
- function be(e) {
2248
- return an(e) ? e.__vccOpts : e;
682
+ function M(t) {
683
+ return Ce(t) ? t.__vccOpts : t;
2249
684
  }
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();
685
+ function rt(t, e) {
686
+ const s = k.get(t);
687
+ s && (s.initialDef.render = e, [...s.instances].forEach((r) => {
688
+ e && (r.render = e, M(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
2254
689
  }));
2255
690
  }
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 = Ae.get(i);
2264
- c || (i !== n.initialDef && dt(i, t), Ae.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(
691
+ function ot(t, e) {
692
+ const s = k.get(t);
693
+ if (!s) return;
694
+ e = M(e), ie(s.initialDef, e);
695
+ const r = [...s.instances];
696
+ for (let o = 0; o < r.length; o++) {
697
+ const n = r[o], i = M(n.type);
698
+ let c = W.get(i);
699
+ c || (i !== s.initialDef && ie(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 ? Ze(() => {
700
+ n.job.flags & 8 || (n.parent.update(), c.delete(n));
701
+ }) : n.appContext.reload ? n.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
2267
702
  "[HMR] Root or manually mounted instance modified. Full reload required."
2268
- ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
703
+ ), n.root.ce && n !== n.root && n.root.ce._removeChildStyle(i);
2269
704
  }
2270
- rr(() => {
2271
- Ae.clear();
705
+ et(() => {
706
+ W.clear();
2272
707
  });
2273
708
  }
2274
- function dt(e, t) {
2275
- ke(e, t);
2276
- for (const n in e)
2277
- n !== "__file" && !(n in t) && delete e[n];
709
+ function ie(t, e) {
710
+ q(t, e);
711
+ for (const s in t)
712
+ s !== "__file" && !(s in e) && delete t[s];
2278
713
  }
2279
- function Me(e) {
2280
- return (t, n) => {
714
+ function z(t) {
715
+ return (e, s) => {
2281
716
  try {
2282
- return e(t, n);
2283
- } catch (s) {
2284
- console.error(s), console.warn(
717
+ return t(e, s);
718
+ } catch (r) {
719
+ console.error(r), console.warn(
2285
720
  "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
2286
721
  );
2287
722
  }
2288
723
  };
2289
724
  }
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
725
+ let T, v = [];
726
+ function ge(t, e) {
727
+ var s, r;
728
+ T = t, T ? (T.enabled = !0, v.forEach(({ event: o, args: n }) => T.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
729
  window.HTMLElement && // also exclude jsdom
2295
730
  // 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);
731
+ !((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) => {
732
+ ge(n, e);
2298
733
  }), 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
- Ve().requestIdleCallback;
2308
- Ve().cancelIdleCallback;
2309
- const fr = /* @__PURE__ */ Symbol.for("v-ndc"), pr = {};
2310
- process.env.NODE_ENV !== "production" && (pr.ownKeys = (e) => (Q(
734
+ T || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, v = []);
735
+ }, 3e3)) : v = [];
736
+ }
737
+ let F = null, nt = null;
738
+ const re = (t) => t.__isTeleport;
739
+ function it(t) {
740
+ let e = t[0];
741
+ if (t.length > 1) {
742
+ let s = !1;
743
+ for (const r of t)
744
+ if (r.type !== Ee) {
745
+ if (process.env.NODE_ENV !== "production" && s) {
746
+ E(
747
+ "<transition> can only be used on a single element or component. Use <transition-group> for lists."
748
+ );
749
+ break;
750
+ }
751
+ if (e = r, s = !0, process.env.NODE_ENV === "production") break;
752
+ }
753
+ }
754
+ return e;
755
+ }
756
+ function ct(t) {
757
+ if (!at(t))
758
+ return re(t.type) && t.children ? it(t.children) : t;
759
+ if (t.component)
760
+ return t.component.subTree;
761
+ const { shapeFlag: e, children: s } = t;
762
+ if (s) {
763
+ if (e & 16)
764
+ return s[0];
765
+ if (e & 32 && w(s.default))
766
+ return s.default();
767
+ }
768
+ }
769
+ function ye(t, e) {
770
+ if (t.shapeFlag & 6 && t.component) {
771
+ t.transition = e;
772
+ const s = t.component.subTree;
773
+ ye(
774
+ re(s.type) && ct(s) || s,
775
+ e
776
+ );
777
+ } else t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
778
+ }
779
+ L().requestIdleCallback;
780
+ L().cancelIdleCallback;
781
+ const at = (t) => t.type.__isKeepAlive, lt = /* @__PURE__ */ Symbol.for("v-ndc"), ut = {};
782
+ process.env.NODE_ENV !== "production" && (ut.ownKeys = (t) => (E(
2311
783
  "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__ */ rt(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) {
784
+ ), Reflect.ownKeys(t)));
785
+ const ft = {}, Se = (t) => Object.getPrototypeOf(t) === ft, dt = (t) => t.__isSuspense, be = /* @__PURE__ */ Symbol.for("v-fgt"), ht = /* @__PURE__ */ Symbol.for("v-txt"), Ee = /* @__PURE__ */ Symbol.for("v-cmt");
786
+ function pt(t) {
787
+ return t ? t.__v_isVNode === !0 : !1;
788
+ }
789
+ const mt = (...t) => Ne(
790
+ ...t
791
+ ), we = ({ key: t }) => t ?? null, $ = ({
792
+ ref: t,
793
+ ref_key: e,
794
+ ref_for: s
795
+ }) => (typeof t == "number" && (t = "" + t), t != null ? y(t) || /* @__PURE__ */ te(t) || w(t) ? { i: F, r: t, k: e, f: !!s } : t : null);
796
+ function _t(t, e = null, s = null, r = 0, o = null, n = t === be ? 0 : 1, i = !1, c = !1) {
2325
797
  const l = {
2326
798
  __v_isVNode: !0,
2327
799
  __v_skip: !0,
2328
- type: e,
2329
- props: t,
2330
- key: t && nn(t),
2331
- ref: t && pe(t),
2332
- scopeId: lr,
800
+ type: t,
801
+ props: e,
802
+ key: e && we(e),
803
+ ref: e && $(e),
804
+ scopeId: nt,
2333
805
  slotScopeIds: null,
2334
- children: n,
806
+ children: s,
2335
807
  component: null,
2336
808
  suspense: null,
2337
809
  ssContent: null,
@@ -2344,226 +816,235 @@ function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
2344
816
  targetStart: null,
2345
817
  targetAnchor: null,
2346
818
  staticCount: 0,
2347
- shapeFlag: o,
2348
- patchFlag: s,
2349
- dynamicProps: r,
819
+ shapeFlag: n,
820
+ patchFlag: r,
821
+ dynamicProps: o,
2350
822
  dynamicChildren: null,
2351
823
  appContext: null,
2352
- ctx: Se
824
+ ctx: F
2353
825
  };
2354
- return c ? (we(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;
826
+ if (c ? (K(l, s), n & 128 && t.normalize(l)) : s && (l.shapeFlag |= y(s) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && E("VNode created with invalid key (NaN). VNode type:", l.type), process.env.NODE_ENV !== "production" && e && l.shapeFlag & 1) {
827
+ const f = e.innerHTML != null ? "innerHTML" : e.textContent != null ? "textContent" : null;
828
+ f && gt(l.children) && E(
829
+ `The \`${f}\` prop on <${l.type}> will override its children. Remove either the \`${f}\` prop or the children.`
830
+ );
831
+ }
832
+ return l;
2355
833
  }
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,
834
+ function gt(t) {
835
+ return y(t) ? t !== "" : p(t) ? t.length > 0 : !1;
836
+ }
837
+ const yt = process.env.NODE_ENV !== "production" ? mt : Ne;
838
+ function Ne(t, e = null, s = null, r = 0, o = null, n = !1) {
839
+ if ((!t || t === lt) && (process.env.NODE_ENV !== "production" && !t && E(`Invalid vnode type when creating vnode: ${t}.`), t = Ee), pt(t)) {
840
+ const c = A(
2361
841
  t,
842
+ e,
2362
843
  !0
2363
844
  /* mergeRef: true */
2364
845
  );
2365
- return n && we(c, n), c.patchFlag = -2, c;
846
+ return s && K(c, s), c.patchFlag = -2, c;
2366
847
  }
2367
- if (an(e) && (e = e.__vccOpts), t) {
2368
- t = vr(t);
2369
- let { class: c, style: l } = t;
2370
- c && !$(c) && (t.class = st(c)), F(l) && (/* @__PURE__ */ We(l) && !O(l) && (l = ke({}, l)), t.style = nt(l));
848
+ if (Ce(t) && (t = t.__vccOpts), e) {
849
+ e = St(e);
850
+ let { class: c, style: l } = e;
851
+ c && !y(c) && (e.class = ee(c)), O(l) && (/* @__PURE__ */ G(l) && !p(l) && (l = q({}, l)), e.style = Z(l));
2371
852
  }
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__ */ We(e) && (e = /* @__PURE__ */ j(e), Q(
853
+ const i = y(t) ? 1 : dt(t) ? 128 : re(t) ? 64 : O(t) ? 4 : w(t) ? 2 : 0;
854
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ G(t) && (t = /* @__PURE__ */ b(t), E(
2374
855
  "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
856
  `
2376
857
  Component that was made reactive: `,
2377
- e
2378
- )), br(
2379
- e,
858
+ t
859
+ )), _t(
2380
860
  t,
2381
- n,
861
+ e,
2382
862
  s,
2383
863
  r,
2384
- i,
2385
864
  o,
865
+ i,
866
+ n,
2386
867
  !0
2387
868
  );
2388
869
  }
2389
- function vr(e) {
2390
- return e ? /* @__PURE__ */ We(e) || en(e) ? ke({}, e) : e : null;
870
+ function St(t) {
871
+ return t ? /* @__PURE__ */ G(t) || Se(t) ? q({}, t) : t : null;
2391
872
  }
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 = {
873
+ function A(t, e, s = !1, r = !1) {
874
+ const { props: o, ref: n, patchFlag: i, children: c, transition: l } = t, f = e ? Et(o || {}, e) : o, _ = {
2394
875
  __v_isVNode: !0,
2395
876
  __v_skip: !0,
2396
- type: e.type,
877
+ type: t.type,
2397
878
  props: f,
2398
- key: f && nn(f),
2399
- ref: t && t.ref ? (
879
+ key: f && we(f),
880
+ ref: e && e.ref ? (
2400
881
  // #2078 in the case of <component :is="vnode" ref="extra"/>
2401
882
  // if the vnode itself already has a ref, cloneVNode will need to merge
2402
883
  // 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,
884
+ s && n ? p(n) ? n.concat($(e)) : [n, $(e)] : $(e)
885
+ ) : n,
886
+ scopeId: t.scopeId,
887
+ slotScopeIds: t.slotScopeIds,
888
+ children: process.env.NODE_ENV !== "production" && i === -1 && p(c) ? c.map(Oe) : c,
889
+ target: t.target,
890
+ targetStart: t.targetStart,
891
+ targetAnchor: t.targetAnchor,
892
+ staticCount: t.staticCount,
893
+ shapeFlag: t.shapeFlag,
2413
894
  // if the vnode is cloned with extra props, we can no longer assume its
2414
895
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2415
896
  // note: preserve flag for fragments since they use the flag for children
2416
897
  // 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,
898
+ patchFlag: e && t.type !== be ? i === -1 ? 16 : i | 16 : i,
899
+ dynamicProps: t.dynamicProps,
900
+ dynamicChildren: t.dynamicChildren,
901
+ appContext: t.appContext,
902
+ dirs: t.dirs,
2422
903
  transition: l,
2423
904
  // These should technically only be non-null on mounted VNodes. However,
2424
905
  // they *should* be copied for kept-alive vnodes. So we just always copy
2425
906
  // them since them being non-null during a mount doesn't affect the logic as
2426
907
  // 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
908
+ component: t.component,
909
+ suspense: t.suspense,
910
+ ssContent: t.ssContent && A(t.ssContent),
911
+ ssFallback: t.ssFallback && A(t.ssFallback),
912
+ placeholder: t.placeholder,
913
+ el: t.el,
914
+ anchor: t.anchor,
915
+ ctx: t.ctx,
916
+ ce: t.ce
2436
917
  };
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 we(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), we(e, r()), r._c && (r._d = !0));
918
+ return l && r && ye(
919
+ _,
920
+ l.clone(_)
921
+ ), _;
922
+ }
923
+ function Oe(t) {
924
+ const e = A(t);
925
+ return p(t.children) && (e.children = t.children.map(Oe)), e;
926
+ }
927
+ function bt(t = " ", e = 0) {
928
+ return yt(ht, null, t, e);
929
+ }
930
+ function K(t, e) {
931
+ let s = 0;
932
+ const { shapeFlag: r } = t;
933
+ if (e == null)
934
+ e = null;
935
+ else if (p(e))
936
+ s = 16;
937
+ else if (typeof e == "object")
938
+ if (r & 65) {
939
+ const o = e.default;
940
+ o && (o._c && (o._d = !1), K(t, o()), o._c && (o._d = !0));
2460
941
  return;
2461
942
  } else
2462
- n = 32, !t._ && !en(t) && (t._ctx = Se);
2463
- else if (U(t)) {
2464
- if (s & 65) {
2465
- we(e, { default: t });
943
+ s = 32, !e._ && !Se(e) && (e._ctx = F);
944
+ else if (w(e)) {
945
+ if (r & 65) {
946
+ K(t, { default: e });
2466
947
  return;
2467
948
  }
2468
- t = { default: t, _ctx: Se }, n = 32;
949
+ e = { default: e, _ctx: F }, s = 32;
2469
950
  } else
2470
- t = String(t), s & 64 ? (n = 16, t = [wr(t)]) : n = 8;
2471
- e.children = t, e.shapeFlag |= n;
2472
- }
2473
- function Er(...e) {
2474
- const t = {};
2475
- for (let n = 0; n < e.length; n++) {
2476
- const s = e[n];
2477
- for (const r in s)
2478
- if (r === "class")
2479
- t.class !== s.class && (t.class = st([t.class, s.class]));
2480
- else if (r === "style")
2481
- t.style = nt([t.style, s.style]);
2482
- else if (Ks(r)) {
2483
- const o = t[r], i = s[r];
2484
- 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
951
+ e = String(e), r & 64 ? (s = 16, e = [bt(e)]) : s = 8;
952
+ t.children = e, t.shapeFlag |= s;
953
+ }
954
+ function Et(...t) {
955
+ const e = {};
956
+ for (let s = 0; s < t.length; s++) {
957
+ const r = t[s];
958
+ for (const o in r)
959
+ if (o === "class")
960
+ e.class !== r.class && (e.class = ee([e.class, r.class]));
961
+ else if (o === "style")
962
+ e.style = Z([e.style, r.style]);
963
+ else if (ke(o)) {
964
+ const n = e[o], i = r[o];
965
+ i && n !== i && !(p(n) && n.includes(i)) ? e[o] = n ? [].concat(n, i) : i : i == null && n == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
2485
966
  // the model listener.
2486
- !Hs(r) && (t[r] = i);
2487
- } else r !== "" && (t[r] = s[r]);
967
+ !Me(o) && (e[o] = i);
968
+ } else o !== "" && (e[o] = r[o]);
2488
969
  }
2489
- return t;
970
+ return e;
2490
971
  }
2491
972
  {
2492
- const e = Ve(), t = (n, s) => {
2493
- let r;
2494
- return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
2495
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
973
+ const t = L(), e = (s, r) => {
974
+ let o;
975
+ return (o = t[s]) || (o = t[s] = []), o.push(r), (n) => {
976
+ o.length > 1 ? o.forEach((i) => i(n)) : o[0](n);
2496
977
  };
2497
978
  };
2498
- t(
979
+ e(
2499
980
  "__VUE_INSTANCE_SETTERS__",
2500
- (n) => n
2501
- ), t(
981
+ (s) => s
982
+ ), e(
2502
983
  "__VUE_SSR_SETTERS__",
2503
- (n) => n
984
+ (s) => s
2504
985
  );
2505
986
  }
2506
987
  process.env.NODE_ENV;
2507
- const Nr = /(?:^|[-_])\w/g, Or = (e) => e.replace(Nr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2508
- function on(e, t = !0) {
2509
- return U(e) ? e.displayName || e.name : e.name || t && e.__name;
2510
- }
2511
- function cn(e, t, n = !1) {
2512
- let s = on(t);
2513
- if (!s && t.__file) {
2514
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
2515
- r && (s = r[1]);
2516
- }
2517
- if (!s && e) {
2518
- const r = (o) => {
2519
- for (const i in o)
2520
- if (o[i] === t)
988
+ const wt = /(?:^|[-_])\w/g, Nt = (t) => t.replace(wt, (e) => e.toUpperCase()).replace(/[-_]/g, "");
989
+ function Pe(t, e = !0) {
990
+ return w(t) ? t.displayName || t.name : t.name || e && t.__name;
991
+ }
992
+ function Ie(t, e, s = !1) {
993
+ let r = Pe(e);
994
+ if (!r && e.__file) {
995
+ const o = e.__file.match(/([^/\\]+)\.\w+$/);
996
+ o && (r = o[1]);
997
+ }
998
+ if (!r && t) {
999
+ const o = (n) => {
1000
+ for (const i in n)
1001
+ if (n[i] === e)
2521
1002
  return i;
2522
1003
  };
2523
- s = r(e.components) || e.parent && r(
2524
- e.parent.type.components
2525
- ) || r(e.appContext.components);
1004
+ r = o(t.components) || t.parent && o(
1005
+ t.parent.type.components
1006
+ ) || o(t.appContext.components);
2526
1007
  }
2527
- return s ? Or(s) : n ? "App" : "Anonymous";
1008
+ return r ? Nt(r) : s ? "App" : "Anonymous";
2528
1009
  }
2529
- function an(e) {
2530
- return U(e) && "__vccOpts" in e;
1010
+ function Ce(t) {
1011
+ return w(t) && "__vccOpts" in t;
2531
1012
  }
2532
- function kr() {
1013
+ function Ot() {
2533
1014
  if (process.env.NODE_ENV === "production" || typeof window > "u")
2534
1015
  return;
2535
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1016
+ const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, s = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
2536
1017
  __vue_custom_formatter: !0,
2537
1018
  header(a) {
2538
- if (!F(a))
1019
+ if (!O(a))
2539
1020
  return null;
2540
1021
  if (a.__isVue)
2541
- return ["div", e, "VueInstance"];
2542
- if (/* @__PURE__ */ rt(a)) {
1022
+ return ["div", t, "VueInstance"];
1023
+ if (/* @__PURE__ */ te(a)) {
2543
1024
  const u = a.value;
2544
1025
  return [
2545
1026
  "div",
2546
1027
  {},
2547
- ["span", e, h(a)],
1028
+ ["span", t, _(a)],
2548
1029
  "<",
2549
1030
  c(u),
2550
1031
  ">"
2551
1032
  ];
2552
1033
  } else {
2553
- if (/* @__PURE__ */ Wt(a))
1034
+ if (/* @__PURE__ */ ue(a))
2554
1035
  return [
2555
1036
  "div",
2556
1037
  {},
2557
- ["span", e, /* @__PURE__ */ $e(a) ? "ShallowReactive" : "Reactive"],
1038
+ ["span", t, /* @__PURE__ */ U(a) ? "ShallowReactive" : "Reactive"],
2558
1039
  "<",
2559
1040
  c(a),
2560
- `>${/* @__PURE__ */ Le(a) ? " (readonly)" : ""}`
1041
+ `>${/* @__PURE__ */ Y(a) ? " (readonly)" : ""}`
2561
1042
  ];
2562
- if (/* @__PURE__ */ Le(a))
1043
+ if (/* @__PURE__ */ Y(a))
2563
1044
  return [
2564
1045
  "div",
2565
1046
  {},
2566
- ["span", e, /* @__PURE__ */ $e(a) ? "ShallowReadonly" : "Readonly"],
1047
+ ["span", t, /* @__PURE__ */ U(a) ? "ShallowReadonly" : "Readonly"],
2567
1048
  "<",
2568
1049
  c(a),
2569
1050
  ">"
@@ -2579,23 +1060,23 @@ function kr() {
2579
1060
  return [
2580
1061
  "div",
2581
1062
  {},
2582
- ...o(a.$)
1063
+ ...n(a.$)
2583
1064
  ];
2584
1065
  }
2585
1066
  };
2586
- function o(a) {
1067
+ function n(a) {
2587
1068
  const u = [];
2588
- a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !== Ue && u.push(i("setup", a.setupState)), a.data !== Ue && u.push(i("data", /* @__PURE__ */ j(a.data)));
1069
+ a.type.props && a.props && u.push(i("props", /* @__PURE__ */ b(a.props))), a.setupState !== J && u.push(i("setup", a.setupState)), a.data !== J && u.push(i("data", /* @__PURE__ */ b(a.data)));
2589
1070
  const d = l(a, "computed");
2590
1071
  d && u.push(i("computed", d));
2591
- const _ = l(a, "inject");
2592
- return _ && u.push(i("injected", _)), u.push([
1072
+ const m = l(a, "inject");
1073
+ return m && u.push(i("injected", m)), u.push([
2593
1074
  "div",
2594
1075
  {},
2595
1076
  [
2596
1077
  "span",
2597
1078
  {
2598
- style: s.style + ";opacity:0.66"
1079
+ style: r.style + ";opacity:0.66"
2599
1080
  },
2600
1081
  "$ (internal): "
2601
1082
  ],
@@ -2603,7 +1084,7 @@ function kr() {
2603
1084
  ]), u;
2604
1085
  }
2605
1086
  function i(a, u) {
2606
- return u = ke({}, u), Object.keys(u).length ? [
1087
+ return u = q({}, u), Object.keys(u).length ? [
2607
1088
  "div",
2608
1089
  { style: "line-height:1.25em;margin-bottom:0.6em" },
2609
1090
  [
@@ -2621,42 +1102,42 @@ function kr() {
2621
1102
  ...Object.keys(u).map((d) => [
2622
1103
  "div",
2623
1104
  {},
2624
- ["span", s, d + ": "],
1105
+ ["span", r, d + ": "],
2625
1106
  c(u[d], !1)
2626
1107
  ])
2627
1108
  ]
2628
1109
  ] : ["span", {}];
2629
1110
  }
2630
1111
  function c(a, u = !0) {
2631
- 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)];
1112
+ return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", s, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : O(a) ? ["object", { object: u ? /* @__PURE__ */ b(a) : a }] : ["span", s, String(a)];
2632
1113
  }
2633
1114
  function l(a, u) {
2634
1115
  const d = a.type;
2635
- if (U(d))
1116
+ if (w(d))
2636
1117
  return;
2637
- const _ = {};
2638
- for (const w in a.ctx)
2639
- f(d, w, u) && (_[w] = a.ctx[w]);
2640
- return _;
1118
+ const m = {};
1119
+ for (const D in a.ctx)
1120
+ f(d, D, u) && (m[D] = a.ctx[D]);
1121
+ return m;
2641
1122
  }
2642
1123
  function f(a, u, d) {
2643
- const _ = a[d];
2644
- if (O(_) && _.includes(u) || F(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
1124
+ const m = a[d];
1125
+ if (p(m) && m.includes(u) || O(m) && u in m || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((D) => f(D, u, d)))
2645
1126
  return !0;
2646
1127
  }
2647
- function h(a) {
2648
- return /* @__PURE__ */ $e(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1128
+ function _(a) {
1129
+ return /* @__PURE__ */ U(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
2649
1130
  }
2650
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1131
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
2651
1132
  }
2652
1133
  process.env.NODE_ENV;
2653
1134
  process.env.NODE_ENV;
2654
1135
  process.env.NODE_ENV;
2655
- function Vr() {
2656
- kr();
1136
+ function Pt() {
1137
+ Ot();
2657
1138
  }
2658
- process.env.NODE_ENV !== "production" && Vr();
2659
- const Cr = [
1139
+ process.env.NODE_ENV !== "production" && Pt();
1140
+ const It = [
2660
1141
  "@context",
2661
1142
  "activeLink",
2662
1143
  "computed",
@@ -2668,54 +1149,54 @@ const Cr = [
2668
1149
  "subs",
2669
1150
  "version"
2670
1151
  ];
2671
- class _t extends $s {
1152
+ class ce extends Ve {
2672
1153
  _className = "StorePersister";
2673
1154
  _crypt;
2674
1155
  _excludedKeys;
2675
1156
  _persister;
2676
1157
  _propertiesToEncrypt;
2677
1158
  _watchedStore;
2678
- constructor(t, n, s, r) {
2679
- super(t, n, s, r);
2680
- const { crypt: o, persister: i, watchedStore: c } = n;
2681
- 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", {
1159
+ constructor(e, s, r, o) {
1160
+ super(e, s, r, o);
1161
+ const { crypt: n, persister: i, watchedStore: c } = s;
1162
+ 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", {
2682
1163
  toBeWatched: this.toBeWatched(),
2683
1164
  watchedStore: c,
2684
1165
  persister: i,
2685
- store: t,
2686
- options: n
1166
+ store: e,
1167
+ options: s
2687
1168
  }), this.toBeWatched() && (this._watchedStore.add(this.store.$id), this.storeSubscribe = this.storeSubscription.bind(this));
2688
1169
  }
2689
1170
  augmentStore() {
2690
- const { isEncrypted: t, persistedPropertiesToEncrypt: n, watchMutation: s } = this.options;
2691
- 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;
2692
- }
2693
- async cryptProperty(t, n, s = !1) {
2694
- return s ? await t.decrypt(n) : await t.encrypt(n);
2695
- }
2696
- async cryptState(t, n = !1) {
2697
- return await new Promise(async (s) => {
2698
- const r = this._crypt, o = this.getPropertiesToEncrypt(), i = this.isEncrypted();
2699
- if (this.debugLog(`cryptState - ${this.store.$id} ${n ? "decrypt" : "crypt"}`, {
2700
- can: this._propertiesToEncrypt.size > 0 && i === n && !!r,
2701
- Crypt: r,
2702
- state: t
2703
- }), this._propertiesToEncrypt.size > 0 && r) {
1171
+ const { isEncrypted: e, persistedPropertiesToEncrypt: s, watchMutation: r } = this.options;
1172
+ 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;
1173
+ }
1174
+ async cryptProperty(e, s, r = !1) {
1175
+ return r ? await e.decrypt(s) : await e.encrypt(s);
1176
+ }
1177
+ async cryptState(e, s = !1) {
1178
+ return await new Promise(async (r) => {
1179
+ const o = this._crypt, n = this.getPropertiesToEncrypt(), i = this.isEncrypted();
1180
+ if (this.debugLog(`cryptState - ${this.store.$id} ${s ? "decrypt" : "crypt"}`, {
1181
+ can: this._propertiesToEncrypt.size > 0 && i === s && !!o,
1182
+ Crypt: o,
1183
+ state: e
1184
+ }), this._propertiesToEncrypt.size > 0 && o) {
2704
1185
  const c = {};
2705
- for (const l of o) {
2706
- const f = this.getValue(t[l]);
2707
- f && (c[l] = await this.cryptProperty(r, f, n));
1186
+ for (const l of n) {
1187
+ const f = this.getValue(e[l]);
1188
+ f && (c[l] = await this.cryptProperty(o, f, s));
2708
1189
  }
2709
- this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), Y(c) || (t = { ...t, ...c }, this.options && (this.options.isEncrypted = !n));
1190
+ this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), x(c) || (e = { ...e, ...c }, this.options && (this.options.isEncrypted = !s));
2710
1191
  }
2711
- s(t);
1192
+ r(e);
2712
1193
  });
2713
1194
  }
2714
- static customizeStore(t, n, s, r) {
2715
- return !n.storeOptions?.persist && n.storeOptions?.watchMutation && (n.storeOptions.persist = !0), super.customizeStore(t, n, s, r);
1195
+ static customizeStore(e, s, r, o) {
1196
+ return !s.storeOptions?.persist && s.storeOptions?.watchMutation && (s.storeOptions.persist = !0), super.customizeStore(e, s, r, o);
2716
1197
  }
2717
- definePersister(t) {
2718
- this._persister = this.options.dbName ? new tt({ name: this.options.dbName, keyPath: "storeName" }) : t;
1198
+ definePersister(e) {
1199
+ this._persister = this.options.dbName ? new X({ name: this.options.dbName, keyPath: "storeName" }) : e;
2719
1200
  }
2720
1201
  isEncrypted() {
2721
1202
  return this.options.isEncrypted;
@@ -2723,49 +1204,49 @@ class _t extends $s {
2723
1204
  getPropertiesToEncrypt() {
2724
1205
  return this.options?.persistedPropertiesToEncrypt ?? [];
2725
1206
  }
2726
- async getPersistedState(t = !0) {
2727
- const n = this.store.$id;
1207
+ async getPersistedState(e = !0) {
1208
+ const s = this.store.$id;
2728
1209
  try {
2729
- let s = await this._persister.getItem(n);
2730
- 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;
2731
- } catch (s) {
2732
- this.logError("getPersistedState()", { storeName: n, e: s });
1210
+ let r = await this._persister.getItem(s);
1211
+ 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;
1212
+ } catch (r) {
1213
+ this.logError("getPersistedState()", { storeName: s, e: r });
2733
1214
  }
2734
1215
  }
2735
1216
  async getStateToPersist() {
2736
- const t = this._excludedKeys, n = this.state, s = this._propertiesToEncrypt.size > 0, r = this._crypt;
2737
- s && await r.init();
2738
- const o = {};
2739
- for (const i of Object.keys(n))
2740
- if (!this.hasDeniedFirstChar(i[0]) && !t.has(i)) {
2741
- const c = n[i];
2742
- Y(c) || (s && this._propertiesToEncrypt.has(i) ? o[i] = await this.cryptProperty(r, c, !1) : o[i] = /* @__PURE__ */ j(c));
1217
+ const e = this._excludedKeys, s = this.state, r = this._propertiesToEncrypt.size > 0, o = this._crypt;
1218
+ r && await o.init();
1219
+ const n = {};
1220
+ for (const i of Object.keys(s))
1221
+ if (!this.hasDeniedFirstChar(i[0]) && !e.has(i)) {
1222
+ const c = s[i];
1223
+ x(c) || (r && this._propertiesToEncrypt.has(i) ? n[i] = await this.cryptProperty(o, c, !1) : n[i] = /* @__PURE__ */ b(c));
2743
1224
  }
2744
- return o;
1225
+ return n;
2745
1226
  }
2746
1227
  getWatchMutation() {
2747
1228
  return this.options.watchMutation;
2748
1229
  }
2749
- static hasRequiredKeys(t) {
2750
- return !!t?.persist || !!t?.watchMutation;
1230
+ static hasRequiredKeys(e) {
1231
+ return !!e?.persist || !!e?.watchMutation;
2751
1232
  }
2752
1233
  initExcludedKeys() {
2753
1234
  return /* @__PURE__ */ new Set([
2754
- ...Cr,
1235
+ ...It,
2755
1236
  ...this.options.excludedKeys ?? []
2756
1237
  ]);
2757
1238
  }
2758
1239
  async persist() {
2759
- const t = await this.getStateToPersist();
2760
- this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }), Y(t) || this._persister.setItem(this.store.$id, t);
1240
+ const e = await this.getStateToPersist();
1241
+ this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: e }), x(e) || this._persister.setItem(this.store.$id, e);
2761
1242
  }
2762
- propertyShouldBePersisted(t) {
2763
- return !this._excludedKeys.has(t);
1243
+ propertyShouldBePersisted(e) {
1244
+ return !this._excludedKeys.has(e);
2764
1245
  }
2765
1246
  async remember() {
2766
- return this.state.isLoading = !0, new Promise(async (t) => {
2767
- let n = await this.getPersistedState();
2768
- return n && !Y(n) && this.store.$patch(n), this.state.isLoading = !1, t(!0);
1247
+ return this.state.isLoading = !0, new Promise(async (e) => {
1248
+ let s = await this.getPersistedState();
1249
+ return s && !x(s) && this.store.$patch(s), this.state.isLoading = !1, e(!0);
2769
1250
  });
2770
1251
  }
2771
1252
  removePersistedState() {
@@ -2774,20 +1255,20 @@ class _t extends $s {
2774
1255
  stopWatch() {
2775
1256
  this.options?.watchMutation && (this.options && (this.options.watchMutation = !1), this._watchedStore.delete(this.store.$id));
2776
1257
  }
2777
- storeSubscription(t) {
1258
+ storeSubscription(e) {
2778
1259
  this.debugLog(`store.storeSubscription() ${this.store.$id}`, [
2779
1260
  "mutation type !== patch object: ",
2780
- t.type !== "patch object",
1261
+ e.type !== "patch object",
2781
1262
  "watchMutation: ",
2782
1263
  this.getWatchMutation(),
2783
1264
  "mutation:",
2784
- t,
1265
+ e,
2785
1266
  "state:",
2786
1267
  this.state,
2787
1268
  "store:",
2788
1269
  this.store
2789
- ]), t.type !== "patch object" && this.getWatchMutation() && this.persist().then(() => {
2790
- this.store.mutationCallback && this.store.mutationCallback(this.state, t);
1270
+ ]), e.type !== "patch object" && this.getWatchMutation() && this.persist().then(() => {
1271
+ this.store.mutationCallback && this.store.mutationCallback(this.state, e);
2791
1272
  });
2792
1273
  }
2793
1274
  toBeCrypted() {
@@ -2800,44 +1281,44 @@ class _t extends $s {
2800
1281
  this.toBeWatched() && (this.options && (this.options.watchMutation = !0), this.storeSubscribe = this.storeSubscription.bind(this));
2801
1282
  }
2802
1283
  }
2803
- class Rr extends un {
2804
- _resetStoreCallback = (t) => {
2805
- const { removePersistedState: n } = t;
2806
- typeof n == "function" && n();
1284
+ class Ct extends De {
1285
+ _resetStoreCallback = (e) => {
1286
+ const { removePersistedState: s } = e;
1287
+ typeof s == "function" && s();
2807
1288
  };
2808
1289
  constructor() {
2809
1290
  super(
2810
- Ut,
2811
- _t.customizeStore.bind(_t),
2812
- A
1291
+ ae,
1292
+ ce.customizeStore.bind(ce),
1293
+ N
2813
1294
  );
2814
1295
  }
2815
1296
  }
2816
- const Ee = new Rr();
2817
- function Pr(e, t) {
2818
- return Ee.pluginOptions = xr(e, t), Ee;
1297
+ const H = new Ct();
1298
+ function xt(t, e) {
1299
+ return H.pluginOptions = Tt(t, e), H;
2819
1300
  }
2820
- function xr(e, t) {
2821
- let n, s;
2822
- const r = /* @__PURE__ */ new Set();
1301
+ function Tt(t, e) {
1302
+ let s, r;
1303
+ const o = /* @__PURE__ */ new Set();
2823
1304
  try {
2824
1305
  if (window)
2825
- return !Y(e) && e && (n = new tt({ name: e, keyPath: "storeName" })), t && (s = new ie(t)), { persister: n, crypt: s, watchedStore: r };
1306
+ return !x(t) && t && (s = new X({ name: t, keyPath: "storeName" })), e && (r = new R(e)), { persister: s, crypt: r, watchedStore: o };
2826
1307
  } catch {
2827
1308
  }
2828
- return { persister: n, crypt: s, watchedStore: r };
1309
+ return { persister: s, crypt: r, watchedStore: o };
2829
1310
  }
2830
- function jr(e, t) {
2831
- let n;
2832
- return t && (n = new ie(t)), Ee.pluginOptions = {
2833
- persister: new Fs({ name: e }),
2834
- crypt: n,
1311
+ function Rt(t, e) {
1312
+ let s;
1313
+ return e && (s = new R(e)), H.pluginOptions = {
1314
+ persister: new $e({ name: t }),
1315
+ crypt: s,
2835
1316
  watchedStore: /* @__PURE__ */ new Set()
2836
- }, Ee;
1317
+ }, H;
2837
1318
  }
2838
1319
  export {
2839
- Ut as PLUGIN_NAME,
2840
- Fs as PersisterMock,
2841
- Pr as createPersistStatePlugin,
2842
- jr as createPluginMock
1320
+ ae as PLUGIN_NAME,
1321
+ $e as PersisterMock,
1322
+ xt as createPersistStatePlugin,
1323
+ Rt as createPluginMock
2843
1324
  };