bt-core-app 1.4.13 → 1.4.14

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.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +1004 -988
  2. package/package.json +1 -1
@@ -6,15 +6,15 @@ function Bn(e, t) {
6
6
  o.value = !0, s();
7
7
  };
8
8
  Ae(e, A, { flush: "sync" });
9
- const S = typeof t == "function" ? t : t.get, N = typeof t == "function" ? void 0 : t.set, L = Cn((R, b) => (l = R, s = b, {
9
+ const E = typeof t == "function" ? t : t.get, x = typeof t == "function" ? void 0 : t.set, C = Cn((M, y) => (l = M, s = y, {
10
10
  get() {
11
- return o.value && (a = S(), o.value = !1), l(), a;
11
+ return o.value && (a = E(), o.value = !1), l(), a;
12
12
  },
13
13
  set(c) {
14
- N == null || N(c);
14
+ x == null || x(c);
15
15
  }
16
16
  }));
17
- return Object.isExtensible(L) && (L.trigger = A), L;
17
+ return Object.isExtensible(C) && (C.trigger = A), C;
18
18
  }
19
19
  function $n(e) {
20
20
  return Tt() ? (Ct(e), !0) : !1;
@@ -37,17 +37,17 @@ function Wn(e, t) {
37
37
  const Pt = (e) => e();
38
38
  function jn(e, t = {}) {
39
39
  let a, l, s = Pr;
40
- const o = (S) => {
41
- clearTimeout(S), s(), s = Pr;
40
+ const o = (E) => {
41
+ clearTimeout(E), s(), s = Pr;
42
42
  };
43
- return (S) => {
44
- const N = ae(e), L = ae(t.maxWait);
45
- return a && o(a), N <= 0 || L !== void 0 && L <= 0 ? (l && (o(l), l = null), Promise.resolve(S())) : new Promise((R, b) => {
46
- s = t.rejectOnCancel ? b : R, L && !l && (l = setTimeout(() => {
47
- a && o(a), l = null, R(S());
48
- }, L)), a = setTimeout(() => {
49
- l && o(l), l = null, R(S());
50
- }, N);
43
+ return (E) => {
44
+ const x = ae(e), C = ae(t.maxWait);
45
+ return a && o(a), x <= 0 || C !== void 0 && C <= 0 ? (l && (o(l), l = null), Promise.resolve(E())) : new Promise((M, y) => {
46
+ s = t.rejectOnCancel ? y : M, C && !l && (l = setTimeout(() => {
47
+ a && o(a), l = null, M(E());
48
+ }, C)), a = setTimeout(() => {
49
+ l && o(l), l = null, M(E());
50
+ }, x);
51
51
  });
52
52
  };
53
53
  }
@@ -85,7 +85,7 @@ function Hn(e, t, a = {}) {
85
85
  const {
86
86
  eventFilter: l,
87
87
  ...s
88
- } = a, { eventFilter: o, pause: A, resume: S, isActive: N } = Gn(l);
88
+ } = a, { eventFilter: o, pause: A, resume: E, isActive: x } = Gn(l);
89
89
  return { stop: Lt(
90
90
  e,
91
91
  t,
@@ -93,7 +93,7 @@ function Hn(e, t, a = {}) {
93
93
  ...s,
94
94
  eventFilter: o
95
95
  }
96
- ), pause: A, resume: S, isActive: N };
96
+ ), pause: A, resume: E, isActive: x };
97
97
  }
98
98
  function Jr(e, t = !0, a) {
99
99
  qn() ? Zr(e, a) : t ? e() : ur(e);
@@ -107,7 +107,7 @@ function st(...e) {
107
107
  let s = (t = e[2]) != null ? t : zn;
108
108
  if (typeof s == "string") {
109
109
  const o = s;
110
- s = (A, S) => A[o] === S[o];
110
+ s = (A, E) => A[o] === E[o];
111
111
  }
112
112
  return le(() => ae(a).filter((o) => ae(l).findIndex((A) => s(o, A)) === -1));
113
113
  }
@@ -126,18 +126,18 @@ function Jn(e, t) {
126
126
  function Mt(e, t, a) {
127
127
  let l = a != null && a.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : ae(e)];
128
128
  return Ae(e, (s, o, A) => {
129
- const S = Array.from({ length: l.length }), N = [];
130
- for (const R of s) {
131
- let b = !1;
129
+ const E = Array.from({ length: l.length }), x = [];
130
+ for (const M of s) {
131
+ let y = !1;
132
132
  for (let c = 0; c < l.length; c++)
133
- if (!S[c] && R === l[c]) {
134
- S[c] = !0, b = !0;
133
+ if (!E[c] && M === l[c]) {
134
+ E[c] = !0, y = !0;
135
135
  break;
136
136
  }
137
- b || N.push(R);
137
+ y || x.push(M);
138
138
  }
139
- const L = l.filter((R, b) => !S[b]);
140
- t(s, l, N, L, A), l = [...s];
139
+ const C = l.filter((M, y) => !E[y]);
140
+ t(s, l, x, C, A), l = [...s];
141
141
  }, a);
142
142
  }
143
143
  function Kn(e, t, a = {}) {
@@ -167,22 +167,22 @@ function he(...e) {
167
167
  return Pr;
168
168
  Array.isArray(a) || (a = [a]), Array.isArray(l) || (l = [l]);
169
169
  const o = [], A = () => {
170
- o.forEach((R) => R()), o.length = 0;
171
- }, S = (R, b, c, h) => (R.addEventListener(b, c, h), () => R.removeEventListener(b, c, h)), N = Ae(
170
+ o.forEach((M) => M()), o.length = 0;
171
+ }, E = (M, y, c, h) => (M.addEventListener(y, c, h), () => M.removeEventListener(y, c, h)), x = Ae(
172
172
  () => [Kr(t), ae(s)],
173
- ([R, b]) => {
174
- if (A(), !R)
173
+ ([M, y]) => {
174
+ if (A(), !M)
175
175
  return;
176
- const c = Vn(b) ? { ...b } : b;
176
+ const c = Vn(y) ? { ...y } : y;
177
177
  o.push(
178
- ...a.flatMap((h) => l.map((r) => S(R, h, r, c)))
178
+ ...a.flatMap((h) => l.map((r) => E(M, h, r, c)))
179
179
  );
180
180
  },
181
181
  { immediate: !0, flush: "post" }
182
- ), L = () => {
183
- N(), A();
182
+ ), C = () => {
183
+ x(), A();
184
184
  };
185
- return $n(L), L;
185
+ return $n(C), C;
186
186
  }
187
187
  const Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xe = "__vueuse_ssr_handlers__", Qn = /* @__PURE__ */ Xn();
188
188
  function Xn() {
@@ -233,17 +233,17 @@ function Mr(e, t, a, l = {}) {
233
233
  const {
234
234
  flush: o = "pre",
235
235
  deep: A = !0,
236
- listenToStorageChanges: S = !0,
237
- writeDefaults: N = !0,
238
- mergeDefaults: L = !1,
239
- shallow: R,
240
- window: b = Lr,
236
+ listenToStorageChanges: E = !0,
237
+ writeDefaults: x = !0,
238
+ mergeDefaults: C = !1,
239
+ shallow: M,
240
+ window: y = Lr,
241
241
  eventFilter: c,
242
242
  onError: h = (f) => {
243
243
  console.error(f);
244
244
  },
245
245
  initOnMounted: r
246
- } = l, x = (R ? Ne : Y)(typeof t == "function" ? t() : t);
246
+ } = l, N = (M ? Ne : Y)(typeof t == "function" ? t() : t);
247
247
  if (!a)
248
248
  try {
249
249
  a = On("getDefaultStorage", () => {
@@ -254,60 +254,60 @@ function Mr(e, t, a, l = {}) {
254
254
  h(f);
255
255
  }
256
256
  if (!a)
257
- return x;
258
- const E = ae(t), y = pn(E), I = (s = l.serializer) != null ? s : ea[y], { pause: B, resume: U } = Hn(
259
- x,
260
- () => P(x.value),
257
+ return N;
258
+ const S = ae(t), w = pn(S), I = (s = l.serializer) != null ? s : ea[w], { pause: B, resume: U } = Hn(
259
+ N,
260
+ () => L(N.value),
261
261
  { flush: o, deep: A, eventFilter: c }
262
262
  );
263
- b && S && Jr(() => {
264
- he(b, "storage", D), he(b, ot, g), r && D();
263
+ y && E && Jr(() => {
264
+ he(y, "storage", D), he(y, ot, g), r && D();
265
265
  }), r || D();
266
- function _(f, C) {
267
- b && b.dispatchEvent(new CustomEvent(ot, {
266
+ function _(f, P) {
267
+ y && y.dispatchEvent(new CustomEvent(ot, {
268
268
  detail: {
269
269
  key: e,
270
270
  oldValue: f,
271
- newValue: C,
271
+ newValue: P,
272
272
  storageArea: a
273
273
  }
274
274
  }));
275
275
  }
276
- function P(f) {
276
+ function L(f) {
277
277
  try {
278
- const C = a.getItem(e);
278
+ const P = a.getItem(e);
279
279
  if (f == null)
280
- _(C, null), a.removeItem(e);
280
+ _(P, null), a.removeItem(e);
281
281
  else {
282
282
  const G = I.write(f);
283
- C !== G && (a.setItem(e, G), _(C, G));
283
+ P !== G && (a.setItem(e, G), _(P, G));
284
284
  }
285
- } catch (C) {
286
- h(C);
285
+ } catch (P) {
286
+ h(P);
287
287
  }
288
288
  }
289
289
  function m(f) {
290
- const C = f ? f.newValue : a.getItem(e);
291
- if (C == null)
292
- return N && E != null && a.setItem(e, I.write(E)), E;
293
- if (!f && L) {
294
- const G = I.read(C);
295
- return typeof L == "function" ? L(G, E) : y === "object" && !Array.isArray(G) ? { ...E, ...G } : G;
290
+ const P = f ? f.newValue : a.getItem(e);
291
+ if (P == null)
292
+ return x && S != null && a.setItem(e, I.write(S)), S;
293
+ if (!f && C) {
294
+ const G = I.read(P);
295
+ return typeof C == "function" ? C(G, S) : w === "object" && !Array.isArray(G) ? { ...S, ...G } : G;
296
296
  } else
297
- return typeof C != "string" ? C : I.read(C);
297
+ return typeof P != "string" ? P : I.read(P);
298
298
  }
299
299
  function D(f) {
300
300
  if (!(f && f.storageArea !== a)) {
301
301
  if (f && f.key == null) {
302
- x.value = E;
302
+ N.value = S;
303
303
  return;
304
304
  }
305
305
  if (!(f && f.key !== e)) {
306
306
  B();
307
307
  try {
308
- (f == null ? void 0 : f.newValue) !== I.write(x.value) && (x.value = m(f));
309
- } catch (C) {
310
- h(C);
308
+ (f == null ? void 0 : f.newValue) !== I.write(N.value) && (N.value = m(f));
309
+ } catch (P) {
310
+ h(P);
311
311
  } finally {
312
312
  f ? ur(U) : U();
313
313
  }
@@ -317,7 +317,7 @@ function Mr(e, t, a, l = {}) {
317
317
  function g(f) {
318
318
  D(f.detail);
319
319
  }
320
- return x;
320
+ return N;
321
321
  }
322
322
  function ra(e) {
323
323
  const t = ir(), a = Bn(
@@ -342,57 +342,57 @@ function aa(e) {
342
342
  }
343
343
  function ua(e) {
344
344
  const t = Y([]), a = Ne(), l = Ne(), s = Ne(), o = le(() => a.value != null);
345
- function A(b) {
346
- t.value = t.value.filter((c) => c.id != b);
345
+ function A(y) {
346
+ t.value = t.value.filter((c) => c.id != y);
347
347
  }
348
- function S(b) {
348
+ function E(y) {
349
349
  const c = {
350
350
  id: na(),
351
- msg: b ?? "Loading"
351
+ msg: y ?? "Loading"
352
352
  };
353
353
  return t.value.push(c), c.id;
354
354
  }
355
- function N(b) {
356
- b != null && (l.value = b.toString());
355
+ function x(y) {
356
+ y != null && (l.value = y.toString());
357
357
  }
358
- function L() {
358
+ function C() {
359
359
  l.value = void 0;
360
360
  }
361
- async function R(b, c) {
361
+ async function M(y, c) {
362
362
  const h = { ...c };
363
363
  h.completionMsg ?? (h.completionMsg = e == null ? void 0 : e.completionMsg), h.confirmationMsg ?? (h.confirmationMsg = e == null ? void 0 : e.confirmationMsg), h.errorMsg ?? (h.errorMsg = e == null ? void 0 : e.errorMsg), h.loadingMsg ?? (h.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), h.requireConfirmation ?? (h.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
364
- const r = S(h.loadingMsg);
365
- let x = null;
364
+ const r = E(h.loadingMsg);
365
+ let N = null;
366
366
  try {
367
- return h.requireConfirmation || h.confirmationMsg, x = await b(), h.completionMsg != null && (s.value = h.completionMsg), x;
368
- } catch (E) {
367
+ return h.requireConfirmation || h.confirmationMsg, N = await y(), h.completionMsg != null && (s.value = h.completionMsg), N;
368
+ } catch (S) {
369
369
  if (h.throwError == !0)
370
- return x;
371
- N(h.errorMsg ?? E ?? "error");
370
+ return N;
371
+ x(h.errorMsg ?? S ?? "error");
372
372
  } finally {
373
373
  A(r);
374
374
  }
375
375
  }
376
- return Mt(t, (b) => {
377
- a.value = b.length > 0 ? b[0].msg : void 0;
376
+ return Mt(t, (y) => {
377
+ a.value = y.length > 0 ? y[0].msg : void 0;
378
378
  }, { deep: !0 }), {
379
379
  actionErrorMsg: l,
380
380
  actionLoadingMsg: a,
381
381
  actionCompleteMsg: s,
382
- clearErrors: L,
383
- doAction: R,
382
+ clearErrors: C,
383
+ doAction: M,
384
384
  isLoading: o,
385
- logError: N
385
+ logError: x
386
386
  };
387
387
  }
388
388
  function la(e) {
389
389
  const { actionErrorMsg: t, actionLoadingMsg: a, clearErrors: l, isLoading: s, doAction: o, logError: A } = ua(e);
390
- function S(r) {
390
+ function E(r) {
391
391
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
392
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
393
- return r.nav != null && x != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => x().deleteItem(r))), o(async () => {
394
- let E;
395
- r.onCanDeleteAsync != null && (E = await r.onCanDeleteAsync(r.data)), E == null && r.onDeleteAsync != null && (E = await r.onDeleteAsync(r.data)), E == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), A(E);
392
+ const N = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
393
+ return r.nav != null && N != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => N().deleteItem(r))), o(async () => {
394
+ let S;
395
+ r.onCanDeleteAsync != null && (S = await r.onCanDeleteAsync(r.data)), S == null && r.onDeleteAsync != null && (S = await r.onDeleteAsync(r.data)), S == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), A(S);
396
396
  }, {
397
397
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
398
398
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -402,12 +402,12 @@ function la(e) {
402
402
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
403
403
  });
404
404
  }
405
- function N(r) {
405
+ function x(r) {
406
406
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
407
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
408
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = async () => (await x().get(r)).data)), o(async () => {
409
- let E;
410
- return r.onGetAsync != null && (E = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (E = await r.onGetSuccessAsync(E, r)), E;
407
+ const N = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
408
+ return r.nav != null && N != null && (r.onGetAsync ?? (r.onGetAsync = async () => (await N().get(r)).data)), o(async () => {
409
+ let S;
410
+ return r.onGetAsync != null && (S = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (S = await r.onGetSuccessAsync(S, r)), S;
411
411
  }, {
412
412
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
413
413
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -417,12 +417,12 @@ function la(e) {
417
417
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
418
418
  });
419
419
  }
420
- function L(r) {
420
+ function C(r) {
421
421
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
422
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
423
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = () => x().getAll(r))), o(async () => {
424
- let E;
425
- return r.onGetAsync != null && (E = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (E = await r.onGetSuccessAsync(E, r)), E;
422
+ const N = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
423
+ return r.nav != null && N != null && (r.onGetAsync ?? (r.onGetAsync = () => N().getAll(r))), o(async () => {
424
+ let S;
425
+ return r.onGetAsync != null && (S = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (S = await r.onGetSuccessAsync(S, r)), S;
426
426
  }, {
427
427
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
428
428
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -432,12 +432,12 @@ function la(e) {
432
432
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
433
433
  });
434
434
  }
435
- function R(r) {
435
+ function M(r) {
436
436
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
437
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
438
- return r.nav != null && x != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => x().restore(r))), o(async () => {
439
- let E, y;
440
- return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (y = await r.onRestoreAsync(r.data)), y != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(y), A(E), y;
437
+ const N = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
438
+ return r.nav != null && N != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => N().restore(r))), o(async () => {
439
+ let S, w;
440
+ return r.onCanRestoreAsync != null && (S = await r.onCanRestoreAsync(r.data)), S == null && r.onRestoreAsync != null && (w = await r.onRestoreAsync(r.data)), w != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(w), A(S), w;
441
441
  }, {
442
442
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
443
443
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -447,20 +447,20 @@ function la(e) {
447
447
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
448
448
  });
449
449
  }
450
- function b(r) {
450
+ function y(r) {
451
451
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
452
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
453
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (E) => E), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), r.nav != null && x != null && (r.onSaveAsync ?? (r.onSaveAsync = async () => r.mode == "new" ? await x().post(r) : await x().patch(r))), o(async () => {
454
- let E;
455
- if (r.onGetSaveAsync != null && (E = await r.onGetSaveAsync(r.data)), E == null)
452
+ const N = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
453
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (S) => S), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), r.nav != null && N != null && (r.onSaveAsync ?? (r.onSaveAsync = async () => r.mode == "new" ? await N().post(r) : await N().patch(r))), o(async () => {
454
+ let S;
455
+ if (r.onGetSaveAsync != null && (S = await r.onGetSaveAsync(r.data)), S == null)
456
456
  return;
457
457
  if (r.onCanSaveAsync != null) {
458
- let I = await r.onCanSaveAsync(E);
458
+ let I = await r.onCanSaveAsync(S);
459
459
  if (A(I), I == null)
460
460
  return;
461
461
  }
462
- let y;
463
- return r.onSaveAsync != null && (y = await r.onSaveAsync(E), y = y.data), r.onSaveSuccessAsync != null && (y = await r.onSaveSuccessAsync(y)), y;
462
+ let w;
463
+ return r.onSaveAsync != null && (w = await r.onSaveAsync(S), w = w.data), r.onSaveSuccessAsync != null && (w = await r.onSaveSuccessAsync(w)), w;
464
464
  }, {
465
465
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
466
466
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -482,14 +482,14 @@ function la(e) {
482
482
  actionLoadingMsg: a,
483
483
  actionErrorMsg: t,
484
484
  clearErrors: l,
485
- deleteItem: S,
485
+ deleteItem: E,
486
486
  doAction: o,
487
- getAllItems: L,
488
- getItem: N,
487
+ getAllItems: C,
488
+ getItem: x,
489
489
  isLoading: s,
490
490
  logError: A,
491
- restoreItem: R,
492
- saveItem: b
491
+ restoreItem: M,
492
+ saveItem: y
493
493
  };
494
494
  }
495
495
  var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -506,28 +506,28 @@ var Ze = function() {
506
506
  function a(s, o) {
507
507
  if (o = typeof o == "object" ? o : { direction: o }, typeof s != "function") {
508
508
  var A = s;
509
- s = function(b) {
510
- return b[A] ? b[A] : "";
509
+ s = function(y) {
510
+ return y[A] ? y[A] : "";
511
511
  };
512
512
  }
513
513
  if (s.length === 1) {
514
- var S = s, N = o.ignoreCase ? t : e, L = o.cmp || function(b, c) {
515
- return b < c ? -1 : b > c ? 1 : 0;
514
+ var E = s, x = o.ignoreCase ? t : e, C = o.cmp || function(y, c) {
515
+ return y < c ? -1 : y > c ? 1 : 0;
516
516
  };
517
- s = function(b, c) {
518
- return L(N(S(b)), N(S(c)));
517
+ s = function(y, c) {
518
+ return C(x(E(y)), x(E(c)));
519
519
  };
520
520
  }
521
- const R = { "-1": "", desc: "" };
522
- return o.direction in R ? function(b, c) {
523
- return -s(b, c);
521
+ const M = { "-1": "", desc: "" };
522
+ return o.direction in M ? function(y, c) {
523
+ return -s(y, c);
524
524
  } : s;
525
525
  }
526
526
  function l(s, o) {
527
- var A = typeof this == "function" && !this.firstBy ? this : !1, S = a(s, o), N = A ? function(L, R) {
528
- return A(L, R) || S(L, R);
529
- } : S;
530
- return N.thenBy = l, N;
527
+ var A = typeof this == "function" && !this.firstBy ? this : !1, E = a(s, o), x = A ? function(C, M) {
528
+ return A(C, M) || E(C, M);
529
+ } : E;
530
+ return x.thenBy = l, x;
531
531
  }
532
532
  return l.firstBy = l, l;
533
533
  }();
@@ -661,7 +661,7 @@ function hu(e, t) {
661
661
  function du(e, t) {
662
662
  if (t == null || e == null)
663
663
  return e;
664
- let a = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((o) => Ye.find((A) => A.values.some((S) => S == o && S != l))).filter((o) => o != null).sort(Ze.firstBy((o) => (o == null ? void 0 : o.value) ?? 0)).map((o) => o == null ? void 0 : o.short))].toString();
664
+ let a = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(a.replaceAll(" ", "").toLowerCase().split(",").map((o) => Ye.find((A) => A.values.some((E) => E == o && E != l))).filter((o) => o != null).sort(Ze.firstBy((o) => (o == null ? void 0 : o.value) ?? 0)).map((o) => o == null ? void 0 : o.short))].toString();
665
665
  return s.length > 0 ? s : void 0;
666
666
  }
667
667
  function mu(e, t) {
@@ -803,71 +803,71 @@ function Ea(e) {
803
803
  return h == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (h = e.findPath(c.nav)), c.additionalUrl != null && (h == null ? h = c.additionalUrl : h = Ce(h, c.additionalUrl)), r != null && (h != null && h.includes("{id}") ? h = h.replaceAll("{id}", r) : h = Ce(h, r)), c.params != null && (h = `${h}?${a(c.params)}`), c.finalUrl = h, c.finalUrl ?? "";
804
804
  }
805
805
  function A(c) {
806
- var r, x;
806
+ var r, N;
807
807
  let h = { ...c.headers };
808
- return c.proxyID && (h.ManagedCompanyAccountID ?? (h.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (h.authorization ?? (h.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), h["Content-Type"] ?? (h["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), h;
808
+ return c.proxyID && (h.ManagedCompanyAccountID ?? (h.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (h.authorization ?? (h.authorization = `bearer ${(N = e == null ? void 0 : e.auth) == null ? void 0 : N.credentials.value.token}`)), h["Content-Type"] ?? (h["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), h;
809
809
  }
810
- async function S(c) {
811
- const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
812
- let E = c.finalUrl, y = c.headers;
813
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Get from ${E}`);
810
+ async function E(c) {
811
+ const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, N = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
812
+ let S = c.finalUrl, w = c.headers;
813
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Get from ${S}`);
814
814
  let I;
815
815
  try {
816
- if (I = await fetch(E, {
816
+ if (I = await fetch(S, {
817
817
  method: "GET",
818
818
  mode: "cors",
819
819
  cache: "no-cache",
820
- headers: y
820
+ headers: w
821
821
  }), !I.ok) {
822
822
  let B = await I.text();
823
823
  throw new Error(B ?? I.statusText ?? "Get error");
824
824
  }
825
- return x ? await I.text() : r ? await I.json() : I;
825
+ return N ? await I.text() : r ? await I.json() : I;
826
826
  } catch (B) {
827
827
  if (!h)
828
828
  return I;
829
829
  throw new Error(B);
830
830
  }
831
831
  }
832
- async function N(c) {
833
- const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
834
- let E = c.finalUrl, y = c.headers;
835
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Get all from ${E}`);
832
+ async function x(c) {
833
+ const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, N = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
834
+ let S = c.finalUrl, w = c.headers;
835
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Get all from ${S}`);
836
836
  let I;
837
837
  try {
838
- if (I = await fetch(E, {
838
+ if (I = await fetch(S, {
839
839
  method: "GET",
840
840
  mode: "cors",
841
841
  cache: "no-cache",
842
- headers: y
842
+ headers: w
843
843
  }), !I.ok) {
844
844
  let B = await I.text();
845
845
  throw new Error(B ?? I.statusText ?? "Get all error");
846
846
  }
847
- return x ? await I.text() : r ? await I.json() : I;
847
+ return N ? await I.text() : r ? await I.json() : I;
848
848
  } catch (B) {
849
849
  if (!h)
850
850
  return I;
851
851
  throw new Error(B);
852
852
  }
853
853
  }
854
- async function L(c) {
855
- const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
856
- let E = c.finalUrl, y = c.headers;
857
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Post to ${E}`);
854
+ async function C(c) {
855
+ const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, N = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
856
+ let S = c.finalUrl, w = c.headers;
857
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Post to ${S}`);
858
858
  let I;
859
859
  try {
860
- if (I = await fetch(E, {
860
+ if (I = await fetch(S, {
861
861
  method: "POST",
862
862
  mode: "cors",
863
863
  cache: "no-cache",
864
- headers: y,
864
+ headers: w,
865
865
  body: JSON.stringify(c.data)
866
866
  }), !I.ok) {
867
867
  let B = await I.text();
868
868
  throw new Error(B ?? I.statusText ?? "Post error!");
869
869
  }
870
- return x ? await I.text() : r ? await I.json() : I;
870
+ return N ? await I.text() : r ? await I.json() : I;
871
871
  } catch (B) {
872
872
  if (!h)
873
873
  return I;
@@ -876,23 +876,23 @@ function Ea(e) {
876
876
  throw new Error(B);
877
877
  }
878
878
  }
879
- async function R(c) {
880
- const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
881
- let E = c.finalUrl, y = c.headers;
882
- E == null && (E = l(c)), c.overrideHeaders !== !0 && (y = t(c)), console.log(`Patch to ${E}`);
879
+ async function M(c) {
880
+ const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, N = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
881
+ let S = c.finalUrl, w = c.headers;
882
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Patch to ${S}`);
883
883
  let I;
884
884
  try {
885
- if (I = await fetch(E, {
885
+ if (I = await fetch(S, {
886
886
  method: "PATCH",
887
887
  mode: "cors",
888
888
  cache: "no-cache",
889
- headers: y,
889
+ headers: w,
890
890
  body: JSON.stringify(c.data)
891
891
  }), !I.ok) {
892
892
  let B = await I.text();
893
893
  throw new Error(B ?? I.statusText ?? "Patch error!");
894
894
  }
895
- return x ? await I.text() : r ? await I.json() : I;
895
+ return N ? await I.text() : r ? await I.json() : I;
896
896
  } catch (B) {
897
897
  if (!h)
898
898
  return I;
@@ -901,34 +901,34 @@ function Ea(e) {
901
901
  throw new Error(B);
902
902
  }
903
903
  }
904
- async function b(c) {
904
+ async function y(c) {
905
905
  const h = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
906
- let r = c.finalUrl, x = c.headers;
907
- r == null && (r = l(c)), c.overrideHeaders !== !0 && (x = t(c)), console.log(`Delete ${r}`);
908
- let E;
906
+ let r = c.finalUrl, N = c.headers;
907
+ r == null && (r = l(c)), c.overrideHeaders !== !0 && (N = t(c)), console.log(`Delete ${r}`);
908
+ let S;
909
909
  try {
910
- return E = await fetch(r, {
910
+ return S = await fetch(r, {
911
911
  method: "DELETE",
912
912
  mode: "cors",
913
913
  cache: "no-cache",
914
- headers: x,
914
+ headers: N,
915
915
  body: JSON.stringify(c.data)
916
- }), E.status == 200 ? void 0 : E.statusText;
917
- } catch (y) {
916
+ }), S.status == 200 ? void 0 : S.statusText;
917
+ } catch (w) {
918
918
  if (!h)
919
- return E;
920
- throw new Error(y);
919
+ return S;
920
+ throw new Error(w);
921
921
  }
922
922
  }
923
923
  return Ur = {
924
924
  buildHeaders: t,
925
925
  buildQuery: a,
926
926
  buildUrl: l,
927
- deleteItem: b,
928
- get: S,
929
- getAll: N,
930
- patch: R,
931
- post: L
927
+ deleteItem: y,
928
+ get: E,
929
+ getAll: x,
930
+ patch: M,
931
+ post: C
932
932
  }, Ur;
933
933
  }
934
934
  /*!
@@ -1033,12 +1033,12 @@ function xa(e) {
1033
1033
  return !0;
1034
1034
  if (D.permissions != null) {
1035
1035
  for (var f = 0; f < D.permissions.length; f++)
1036
- if (!S(D.permissions[f]))
1036
+ if (!E(D.permissions[f]))
1037
1037
  return !1;
1038
1038
  }
1039
1039
  return !0;
1040
1040
  }
1041
- function S(m) {
1041
+ function E(m) {
1042
1042
  const D = K(l);
1043
1043
  if (D.userPermissions != null)
1044
1044
  for (var g = 0; g < D.userPermissions.length; g++) {
@@ -1048,29 +1048,29 @@ function xa(e) {
1048
1048
  }
1049
1049
  return !1;
1050
1050
  }
1051
- function N(m, D, g) {
1051
+ function x(m, D, g) {
1052
1052
  let f = !0;
1053
1053
  return K(l).isGlobalAdmin ? !0 : (D != null && D.length > 0 && D.forEach((G) => {
1054
- g == "edit" ? o(G) || (f = !1) : S(G) || (f = !1);
1054
+ g == "edit" ? o(G) || (f = !1) : E(G) || (f = !1);
1055
1055
  }), m != null && m.length > 0 && (m.some((G) => c(G)) || (f = !1)), f);
1056
1056
  }
1057
- function L(m, D = !1) {
1057
+ function C(m, D = !1) {
1058
1058
  var g = e.getAuthItem != null ? e.getAuthItem(m) : null;
1059
1059
  let f = !1;
1060
1060
  if (g == null)
1061
1061
  return !1;
1062
- let C = g.subscriptions ?? [], G = g.permissions ?? [], J = N(C, G, "view");
1062
+ let P = g.subscriptions ?? [], G = g.permissions ?? [], J = x(P, G, "view");
1063
1063
  return J || !D || !Fe(g.children) ? J : ((g == null ? void 0 : g.children) != null && g.children.forEach((ee) => {
1064
- L(ee, !0) && (f = !0);
1064
+ C(ee, !0) && (f = !0);
1065
1065
  }), f);
1066
1066
  }
1067
- function R(m) {
1067
+ function M(m) {
1068
1068
  return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, g) => {
1069
1069
  const f = Ce(vt(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${g}`);
1070
1070
  return D ? `${f}&redirect_path=${D}` : f;
1071
1071
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(m, a.value) ?? "" : "";
1072
1072
  }
1073
- function b(m) {
1073
+ function y(m) {
1074
1074
  var g;
1075
1075
  return m == null ? 0 : ((g = (e.subscriptionOptions ?? []).find((f) => f.code == m)) == null ? void 0 : g.value) ?? 0;
1076
1076
  }
@@ -1080,13 +1080,13 @@ function xa(e) {
1080
1080
  return !1;
1081
1081
  if (D.subscriptionCode == m)
1082
1082
  return !0;
1083
- const g = b(m), f = b(D.subscriptionCode);
1083
+ const g = y(m), f = y(D.subscriptionCode);
1084
1084
  return g <= f;
1085
1085
  }
1086
1086
  function h(m) {
1087
1087
  const g = m.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), f = decodeURIComponent(
1088
- atob(g).split("").map(function(C) {
1089
- return "%" + ("00" + C.charCodeAt(0).toString(16)).slice(-2);
1088
+ atob(g).split("").map(function(P) {
1089
+ return "%" + ("00" + P.charCodeAt(0).toString(16)).slice(-2);
1090
1090
  }).join("")
1091
1091
  );
1092
1092
  return JSON.parse(f);
@@ -1097,29 +1097,29 @@ function xa(e) {
1097
1097
  D.currentRoute.value.name != m && D.push({ name: m });
1098
1098
  }
1099
1099
  }
1100
- function x(m) {
1100
+ function N(m) {
1101
1101
  var g;
1102
- K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (r(), window.location.href = R(m)));
1102
+ K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), L() && (r(), window.location.href = M(m)));
1103
1103
  }
1104
- async function E(m, D) {
1104
+ async function S(m, D) {
1105
1105
  return e.getToken ?? (e.getToken = async () => {
1106
- let g = m, f = D, C = e.oauthGrantType ?? "authorization_token", G = e.oauthClientID ?? "";
1106
+ let g = m, f = D, P = e.oauthGrantType ?? "authorization_token", G = e.oauthClientID ?? "";
1107
1107
  if (g == null || f == null)
1108
1108
  throw new Error("Code and State required in OAuth token process");
1109
1109
  if (f != a.value)
1110
1110
  throw new Error("state does not match");
1111
1111
  let J = "";
1112
- e.getTokenUrl ?? (e.getTokenUrl = () => Ce(vt(), "token")), J = e.getTokenUrl(g, `${window.location.origin}/authentication`, C, G);
1112
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ce(vt(), "token")), J = e.getTokenUrl(g, `${window.location.origin}/authentication`, P, G);
1113
1113
  const ee = {};
1114
- ee.grant_type = C, ee.code = g, ee.redirect_uri = `${window.location.origin}/authentication`, ee.client_id = G;
1114
+ ee.grant_type = P, ee.code = g, ee.redirect_uri = `${window.location.origin}/authentication`, ee.client_id = G;
1115
1115
  const W = await ba().post({
1116
1116
  additionalUrl: J,
1117
1117
  data: ee
1118
1118
  });
1119
- y(W.access_token);
1119
+ w(W.access_token);
1120
1120
  }), await e.getToken(m, D);
1121
1121
  }
1122
- function y(m) {
1122
+ function w(m) {
1123
1123
  if (m != null && (e.demo == null || !e.demo.isDemoing.value)) {
1124
1124
  const D = h(m);
1125
1125
  I(D), e.processTokenPayload != null && e.processTokenPayload(l, D);
@@ -1139,9 +1139,9 @@ function xa(e) {
1139
1139
  }
1140
1140
  function _() {
1141
1141
  const m = K(l);
1142
- return m.isLoggedIn && P() && (r(), window.location.href = R()), m.isLoggedIn;
1142
+ return m.isLoggedIn && L() && (r(), window.location.href = M()), m.isLoggedIn;
1143
1143
  }
1144
- function P() {
1144
+ function L() {
1145
1145
  const m = K(l);
1146
1146
  if (m == null || m.expiresOn == null)
1147
1147
  return !0;
@@ -1153,17 +1153,17 @@ function xa(e) {
1153
1153
  canEdit: s,
1154
1154
  canEditPermit: o,
1155
1155
  canView: A,
1156
- canViewPermit: S,
1156
+ canViewPermit: E,
1157
1157
  credentials: l,
1158
- doShow: N,
1159
- doShowByNav: L,
1160
- getAuthorizeUrl: R,
1158
+ doShow: x,
1159
+ doShowByNav: C,
1160
+ getAuthorizeUrl: M,
1161
1161
  getTimeZone: U,
1162
- getToken: E,
1162
+ getToken: S,
1163
1163
  isLoggedIn: le(() => l.value.isLoggedIn === !0),
1164
- login: x,
1164
+ login: N,
1165
1165
  logout: r,
1166
- setAuth: y,
1166
+ setAuth: w,
1167
1167
  timeZone: le(() => l.value.timeZone ?? e.defaultTimeZone ?? pe),
1168
1168
  tryLogin: _
1169
1169
  }, Br;
@@ -1204,25 +1204,25 @@ function Au() {
1204
1204
  const e = Ca();
1205
1205
  function t() {
1206
1206
  e.global.name.value = ie.value.theme;
1207
- let N = e.themes.value.dark.colors, L = ie.value.dark;
1208
- Object.keys(L).forEach((r) => {
1209
- const x = r;
1210
- N[r] = L[x];
1207
+ let x = e.themes.value.dark.colors, C = ie.value.dark;
1208
+ Object.keys(C).forEach((r) => {
1209
+ const N = r;
1210
+ x[r] = C[N];
1211
1211
  });
1212
- let b = e.themes.value.light.colors, c = ie.value.light;
1212
+ let y = e.themes.value.light.colors, c = ie.value.light;
1213
1213
  Object.keys(c).forEach((r) => {
1214
- const x = r;
1215
- b[x] = c[x];
1214
+ const N = r;
1215
+ y[N] = c[N];
1216
1216
  });
1217
1217
  }
1218
- function a(N) {
1219
- e.global.name.value = ie.value.theme, e.global.name.value == "dark" ? (N && (ie.value.dark = { ...Ge.defaultDarkTheme ?? Fr }), e.themes.value.dark = {
1218
+ function a(x) {
1219
+ e.global.name.value = ie.value.theme, e.global.name.value == "dark" ? (x && (ie.value.dark = { ...Ge.defaultDarkTheme ?? Fr }), e.themes.value.dark = {
1220
1220
  ...e.themes.value.dark,
1221
1221
  colors: {
1222
1222
  ...e.themes.value.dark.colors,
1223
1223
  ...ie.value.dark
1224
1224
  }
1225
- }) : (N && (ie.value.light = { ...Ge.defaultLightTheme ?? $r }), e.themes.value.light = {
1225
+ }) : (x && (ie.value.light = { ...Ge.defaultLightTheme ?? $r }), e.themes.value.light = {
1226
1226
  ...e.themes.value.light,
1227
1227
  colors: {
1228
1228
  ...e.themes.value.light.colors,
@@ -1230,10 +1230,10 @@ function Au() {
1230
1230
  }
1231
1231
  });
1232
1232
  }
1233
- function l(N) {
1234
- var b;
1235
- const L = e.themes.value.dark, R = e.themes.value.light;
1236
- L.colors.primary = N, R.colors.primary = N, (b = document.querySelector('meta[name="theme-color"]')) == null || b.setAttribute("content", N);
1233
+ function l(x) {
1234
+ var y;
1235
+ const C = e.themes.value.dark, M = e.themes.value.light;
1236
+ C.colors.primary = x, M.colors.primary = x, (y = document.querySelector('meta[name="theme-color"]')) == null || y.setAttribute("content", x);
1237
1237
  }
1238
1238
  function s() {
1239
1239
  ie.value.drawer = !ie.value.drawer;
@@ -1244,10 +1244,10 @@ function Au() {
1244
1244
  function A() {
1245
1245
  ie.value.theme = ie.value.theme == "dark" ? "light" : "dark", e.global.name.value = ie.value.theme;
1246
1246
  }
1247
- function S() {
1248
- var R;
1249
- const N = e.themes.value.dark, L = e.themes.value.light;
1250
- N.colors.primary = (ie.value.dark ?? Ge.defaultDarkTheme ?? Fr).primary, L.colors.primary = (ie.value.light ?? Ge.defaultLightTheme ?? $r).primary, (R = document.querySelector('meta[name="theme-color"]')) == null || R.setAttribute("content", "");
1247
+ function E() {
1248
+ var M;
1249
+ const x = e.themes.value.dark, C = e.themes.value.light;
1250
+ x.colors.primary = (ie.value.dark ?? Ge.defaultDarkTheme ?? Fr).primary, C.colors.primary = (ie.value.light ?? Ge.defaultLightTheme ?? $r).primary, (M = document.querySelector('meta[name="theme-color"]')) == null || M.setAttribute("content", "");
1251
1251
  }
1252
1252
  return {
1253
1253
  state: ie,
@@ -1257,7 +1257,7 @@ function Au() {
1257
1257
  toggleDrawer: s,
1258
1258
  toggleDrawerStick: o,
1259
1259
  toggleLightDark: A,
1260
- undoTemporaryColor: S
1260
+ undoTemporaryColor: E
1261
1261
  };
1262
1262
  }
1263
1263
  function Pa(e) {
@@ -1284,31 +1284,31 @@ function La() {
1284
1284
  })) : s = Object.keys(t[0]).map((r) => ({ header: ia(r) ?? "", value: r })), s = s.filter((r) => r.header.length > 0);
1285
1285
  var o = [];
1286
1286
  for (let r = 0; r < t.length; r++) {
1287
- const x = t[r];
1288
- var A = {}, S = [];
1289
- for (let E = 0; E < s.length; E++) {
1290
- const y = s[E];
1291
- var N = null;
1292
- typeof y.value == "function" ? N = y.value(x) : typeof y.value == "string" && (N = Rr(x, y.value)), y.itemText != null ? A[y.header] = Rr(N, y.itemText) : A[y.header] = N;
1287
+ const N = t[r];
1288
+ var A = {}, E = [];
1289
+ for (let S = 0; S < s.length; S++) {
1290
+ const w = s[S];
1291
+ var x = null;
1292
+ typeof w.value == "function" ? x = w.value(N) : typeof w.value == "string" && (x = Rr(N, w.value)), w.itemText != null ? A[w.header] = Rr(x, w.itemText) : A[w.header] = x;
1293
1293
  }
1294
- o.push(A), Fe(S) && S.forEach((E) => {
1295
- o.push(E);
1296
- }), S = [];
1294
+ o.push(A), Fe(E) && E.forEach((S) => {
1295
+ o.push(S);
1296
+ }), E = [];
1297
1297
  }
1298
- var L = [];
1299
- L.push(s.map((r) => r.header)), o.forEach((r) => {
1300
- let x = [];
1301
- s.forEach(function(E) {
1302
- var y = r[E.header];
1303
- x.push(y ?? "");
1304
- }), L.push(x.join(","));
1298
+ var C = [];
1299
+ C.push(s.map((r) => r.header)), o.forEach((r) => {
1300
+ let N = [];
1301
+ s.forEach(function(S) {
1302
+ var w = r[S.header];
1303
+ N.push(w ?? "");
1304
+ }), C.push(N.join(","));
1305
1305
  });
1306
- var R = L.join(`
1307
- `), b = new Blob([R], { type: "text/plain;charset=utf-8" });
1306
+ var M = C.join(`
1307
+ `), y = new Blob([M], { type: "text/plain;charset=utf-8" });
1308
1308
  if (window.navigator.msSaveOrOpenBlob)
1309
- window.navigator.msSaveOrOpenBlob(b, l);
1309
+ window.navigator.msSaveOrOpenBlob(y, l);
1310
1310
  else {
1311
- var c = document.createElement("a"), h = URL.createObjectURL(b);
1311
+ var c = document.createElement("a"), h = URL.createObjectURL(y);
1312
1312
  c.href = h, c.download = l, document.body.appendChild(c), c.click(), setTimeout(function() {
1313
1313
  document.body.removeChild(c), window.URL.revokeObjectURL(h);
1314
1314
  }, 0);
@@ -1324,35 +1324,35 @@ function Iu() {
1324
1324
  }
1325
1325
  function Ma(e) {
1326
1326
  function t() {
1327
- var S;
1328
- return ((S = l()) == null ? void 0 : S.startOf("day").toUTC().toString()) ?? "";
1327
+ var E;
1328
+ return ((E = l()) == null ? void 0 : E.startOf("day").toUTC().toString()) ?? "";
1329
1329
  }
1330
1330
  function a() {
1331
- var S;
1332
- return ((S = l()) == null ? void 0 : S.endOf("day").toUTC().toString()) ?? "";
1331
+ var E;
1332
+ return ((E = l()) == null ? void 0 : E.endOf("day").toUTC().toString()) ?? "";
1333
1333
  }
1334
- function l(S, N) {
1335
- return S == null ? fe.utc().setZone(e.getTimeZone()) : N ? fe.fromFormat(S, N, { zone: e.getTimeZone() }) : fe.fromISO(S, { zone: e.getTimeZone() });
1334
+ function l(E, x) {
1335
+ return E == null ? fe.utc().setZone(e.getTimeZone()) : x ? fe.fromFormat(E, x, { zone: e.getTimeZone() }) : fe.fromISO(E, { zone: e.getTimeZone() });
1336
1336
  }
1337
- function s(S, N, L) {
1338
- if (S == null) {
1339
- const b = fe.utc().setZone(e.getTimeZone());
1340
- return N ? b.toFormat(N) : b.toString();
1337
+ function s(E, x, C) {
1338
+ if (E == null) {
1339
+ const y = fe.utc().setZone(e.getTimeZone());
1340
+ return x ? y.toFormat(x) : y.toString();
1341
1341
  }
1342
- if (S == "Invalid DateTime")
1342
+ if (E == "Invalid DateTime")
1343
1343
  return "";
1344
- const R = L ? fe.fromFormat(S, L, { zone: e.getTimeZone() }) : fe.fromISO(S, { zone: e.getTimeZone() });
1345
- return N ? R.toFormat(N) : R == null ? void 0 : R.toString();
1344
+ const M = C ? fe.fromFormat(E, C, { zone: e.getTimeZone() }) : fe.fromISO(E, { zone: e.getTimeZone() });
1345
+ return x ? M.toFormat(x) : M == null ? void 0 : M.toString();
1346
1346
  }
1347
- function o(S, N) {
1348
- return S == null ? fe.utc() : N ? fe.fromFormat(S, N) : fe.fromISO(S);
1347
+ function o(E, x) {
1348
+ return E == null ? fe.utc() : x ? fe.fromFormat(E, x) : fe.fromISO(E);
1349
1349
  }
1350
- function A(S, N, L) {
1351
- if (S == null)
1352
- return N ? fe.utc().toFormat(N) : fe.utc().toString();
1350
+ function A(E, x, C) {
1351
+ if (E == null)
1352
+ return x ? fe.utc().toFormat(x) : fe.utc().toString();
1353
1353
  {
1354
- const R = L ? fe.fromFormat(S, L) : fe.fromISO(S);
1355
- return N ? R.toFormat(N) : R.toString();
1354
+ const M = C ? fe.fromFormat(E, C) : fe.fromISO(E);
1355
+ return x ? M.toFormat(x) : M.toString();
1356
1356
  }
1357
1357
  }
1358
1358
  return kr = {
@@ -1403,7 +1403,7 @@ function Tu(e, t, a = {}) {
1403
1403
  stopPropagation: s = !1,
1404
1404
  axis: o = "both"
1405
1405
  } = a, A = { capture: a.capture ?? !0 };
1406
- let S = { x: 0, y: 0 }, N = { x: 0, y: 0 }, L = { x: 0, y: 0 }, R = [], b = [], c = Y(!1);
1406
+ let E = { x: 0, y: 0 }, x = { x: 0, y: 0 }, C = { x: 0, y: 0 }, M = [], y = [], c = Y(!1);
1407
1407
  function h(U) {
1408
1408
  K(l) && U.preventDefault(), K(s) && U.stopPropagation();
1409
1409
  }
@@ -1412,35 +1412,35 @@ function Tu(e, t, a = {}) {
1412
1412
  const _ = K(e);
1413
1413
  if (!_)
1414
1414
  return;
1415
- const P = _.$el, D = U.type === "touchstart" && U.touches.length > 0 ? U.touches[0] : U;
1416
- L = { x: D.clientX, y: D.clientY }, N = {
1417
- x: P.offsetLeft,
1418
- y: P.offsetTop
1419
- }, S = {
1420
- x: P.offsetLeft,
1421
- y: P.offsetTop
1422
- }, ((g = a.onStart) == null ? void 0 : g.call(a, L, U)) !== !1 && (b.push(he("mousemove", x)), b.push(he("touchmove", x)), b.push(he("mouseup", E)), b.push(he("touchend", E)), h(U));
1423
- }
1424
- function x(U) {
1415
+ const L = _.$el, D = U.type === "touchstart" && U.touches.length > 0 ? U.touches[0] : U;
1416
+ C = { x: D.clientX, y: D.clientY }, x = {
1417
+ x: L.offsetLeft,
1418
+ y: L.offsetTop
1419
+ }, E = {
1420
+ x: L.offsetLeft,
1421
+ y: L.offsetTop
1422
+ }, ((g = a.onStart) == null ? void 0 : g.call(a, C, U)) !== !1 && (y.push(he("mousemove", N)), y.push(he("touchmove", N)), y.push(he("mouseup", S)), y.push(he("touchend", S)), h(U));
1423
+ }
1424
+ function N(U) {
1425
1425
  var f;
1426
- if (!L || !K(e))
1426
+ if (!C || !K(e))
1427
1427
  return;
1428
1428
  const m = U.type === "touchmove" && U.touches.length > 0 ? U.touches[0] : U;
1429
- let D = m.clientX - L.x, g = m.clientY - L.y;
1430
- (o === "x" || o === "both") && (S.x = N.x + D), (o === "y" || o === "both") && (S.y = N.y + g), (f = a.onMove) == null || f.call(a, S, U), h(U), y(S);
1429
+ let D = m.clientX - C.x, g = m.clientY - C.y;
1430
+ (o === "x" || o === "both") && (E.x = x.x + D), (o === "y" || o === "both") && (E.y = x.y + g), (f = a.onMove) == null || f.call(a, E, U), h(U), w(E);
1431
1431
  }
1432
- function E(U) {
1432
+ function S(U) {
1433
1433
  var _;
1434
- document.documentElement.style.cursor = "", b.forEach((P) => {
1435
- P();
1436
- }), b.length = 0, (_ = a.onEnd) == null || _.call(a, S, U), h(U);
1434
+ document.documentElement.style.cursor = "", y.forEach((L) => {
1435
+ L();
1436
+ }), y.length = 0, (_ = a.onEnd) == null || _.call(a, E, U), h(U);
1437
1437
  }
1438
- function y(U) {
1438
+ function w(U) {
1439
1439
  const _ = K(e);
1440
1440
  if (!_)
1441
1441
  return;
1442
- const P = _.$el;
1443
- P.style.left = `${U.x}px`, P.style.top = `${U.y}px`;
1442
+ const L = _.$el;
1443
+ L.style.left = `${U.x}px`, L.style.top = `${U.y}px`;
1444
1444
  }
1445
1445
  function I() {
1446
1446
  if (K(c))
@@ -1449,7 +1449,7 @@ function Tu(e, t, a = {}) {
1449
1449
  if (!U)
1450
1450
  return;
1451
1451
  const _ = U.$el;
1452
- _.style.cursor = "move", R.push(he(_, "mousedown", r, A)), R.push(he(_, "touchstart", r, A)), c.value = !0;
1452
+ _.style.cursor = "move", M.push(he(_, "mousedown", r, A)), M.push(he(_, "touchstart", r, A)), c.value = !0;
1453
1453
  }
1454
1454
  function B() {
1455
1455
  if (!K(c))
@@ -1458,9 +1458,9 @@ function Tu(e, t, a = {}) {
1458
1458
  if (!U)
1459
1459
  return;
1460
1460
  const _ = U.$el;
1461
- _.style.cursor = "", R.forEach((P) => {
1462
- P();
1463
- }), R.length = 0, c.value = !1;
1461
+ _.style.cursor = "", M.forEach((L) => {
1462
+ L();
1463
+ }), M.length = 0, c.value = !1;
1464
1464
  }
1465
1465
  return {
1466
1466
  draggingIsOn: c,
@@ -1473,8 +1473,8 @@ function Cu() {
1473
1473
  return Wr;
1474
1474
  }
1475
1475
  function Ba(e) {
1476
- function t(g, f, C) {
1477
- return g ? sa(g) ? C ?? "" : e.dates.tzString(g, f) : C ?? g ?? "";
1476
+ function t(g, f, P) {
1477
+ return g ? sa(g) ? P ?? "" : e.dates.tzString(g, f) : P ?? g ?? "";
1478
1478
  }
1479
1479
  function a(g) {
1480
1480
  if (!g)
@@ -1503,19 +1503,19 @@ function Ba(e) {
1503
1503
  function A(g, f) {
1504
1504
  return t(g, "ccc", f);
1505
1505
  }
1506
- function S(g, f) {
1506
+ function E(g, f) {
1507
1507
  return t(g, "ccc dd LLL yyyy", f);
1508
1508
  }
1509
- function N(g, f) {
1509
+ function x(g, f) {
1510
1510
  return t(g, "ccc dd LLL @ hh:mm a", f);
1511
1511
  }
1512
- function L(g) {
1512
+ function C(g) {
1513
1513
  return new Intl.NumberFormat().format(g);
1514
1514
  }
1515
- function R(g) {
1515
+ function M(g) {
1516
1516
  return g == 0 ? "" : new Intl.NumberFormat().format(g);
1517
1517
  }
1518
- function b(g) {
1518
+ function y(g) {
1519
1519
  if (g == 0)
1520
1520
  return "";
1521
1521
  var f = new Intl.NumberFormat().format(g);
@@ -1535,13 +1535,13 @@ function Ba(e) {
1535
1535
  var f = "";
1536
1536
  return g.addressLineOne != null && (f = g.addressLineOne + " "), g.streetNumber != null && (f = f + g.streetNumber + " "), g.streetName != null && (f = f + g.streetName + " "), g.suburb != null && (f = f + g.suburb + " "), g.state != null && (f = f + g.state + " "), g.postcode != null && (f = f + g.postcode), f = f.replaceAll(",", " "), f;
1537
1537
  }
1538
- function x(g, f) {
1538
+ function N(g, f) {
1539
1539
  return t(g, "ddd DD MMM YYYY", f);
1540
1540
  }
1541
- function E(g, f) {
1541
+ function S(g, f) {
1542
1542
  return t(g, "ccc dd LLL yyyy hh:mm a", f);
1543
1543
  }
1544
- function y(g) {
1544
+ function w(g) {
1545
1545
  var f = new Intl.NumberFormat("en-US", {
1546
1546
  style: "percent",
1547
1547
  minimumFractionDigits: 2
@@ -1560,7 +1560,7 @@ function Ba(e) {
1560
1560
  function _(g, f) {
1561
1561
  return t(g, "hh:mm a", f);
1562
1562
  }
1563
- function P(g) {
1563
+ function L(g) {
1564
1564
  return g == null ? "" : typeof g == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: g }).toFormat("T") : typeof g == "string" ? e.dates.tzString(g, "t") : "unknown";
1565
1565
  }
1566
1566
  const m = {
@@ -1569,22 +1569,22 @@ function Ba(e) {
1569
1569
  toDayDate: s,
1570
1570
  toDayMonth: o,
1571
1571
  toDayOfWeek: A,
1572
- toDayShortDate: S,
1573
- toDayShortDateAndTime: N,
1574
- toDisplayNumber: L,
1575
- toDisplayNumberOver: R,
1576
- toDisplayNumberSigned: b,
1572
+ toDayShortDate: E,
1573
+ toDayShortDateAndTime: x,
1574
+ toDisplayNumber: C,
1575
+ toDisplayNumberOver: M,
1576
+ toDisplayNumberSigned: y,
1577
1577
  toFormat: c,
1578
1578
  toLocationLine: h,
1579
1579
  toLocationLineNoCommas: r,
1580
- toLongDate: x,
1581
- toLongDateAndTime: E,
1582
- toPercent: y,
1580
+ toLongDate: N,
1581
+ toLongDateAndTime: S,
1582
+ toPercent: w,
1583
1583
  toPrettyCSV: I,
1584
1584
  toShortDate: B,
1585
1585
  toShortDateAndTime: U,
1586
1586
  toTime: _,
1587
- toTimeOfDay: P
1587
+ toTimeOfDay: L
1588
1588
  };
1589
1589
  function D(g) {
1590
1590
  if (g != null) {
@@ -1614,208 +1614,208 @@ var Ft = { exports: {} };
1614
1614
  e.exports = a();
1615
1615
  })(function() {
1616
1616
  return function a(l, s, o) {
1617
- function A(L, R) {
1618
- if (!s[L]) {
1619
- if (!l[L]) {
1620
- var b = typeof er == "function" && er;
1621
- if (!R && b)
1622
- return b(L, !0);
1623
- if (S)
1624
- return S(L, !0);
1625
- var c = new Error("Cannot find module '" + L + "'");
1617
+ function A(C, M) {
1618
+ if (!s[C]) {
1619
+ if (!l[C]) {
1620
+ var y = typeof er == "function" && er;
1621
+ if (!M && y)
1622
+ return y(C, !0);
1623
+ if (E)
1624
+ return E(C, !0);
1625
+ var c = new Error("Cannot find module '" + C + "'");
1626
1626
  throw c.code = "MODULE_NOT_FOUND", c;
1627
1627
  }
1628
- var h = s[L] = { exports: {} };
1629
- l[L][0].call(h.exports, function(r) {
1630
- var x = l[L][1][r];
1631
- return A(x || r);
1628
+ var h = s[C] = { exports: {} };
1629
+ l[C][0].call(h.exports, function(r) {
1630
+ var N = l[C][1][r];
1631
+ return A(N || r);
1632
1632
  }, h, h.exports, a, l, s, o);
1633
1633
  }
1634
- return s[L].exports;
1634
+ return s[C].exports;
1635
1635
  }
1636
- for (var S = typeof er == "function" && er, N = 0; N < o.length; N++)
1637
- A(o[N]);
1636
+ for (var E = typeof er == "function" && er, x = 0; x < o.length; x++)
1637
+ A(o[x]);
1638
1638
  return A;
1639
1639
  }({ 1: [function(a, l, s) {
1640
1640
  (function(o) {
1641
- var A = o.MutationObserver || o.WebKitMutationObserver, S;
1641
+ var A = o.MutationObserver || o.WebKitMutationObserver, E;
1642
1642
  if (A) {
1643
- var N = 0, L = new A(r), R = o.document.createTextNode("");
1644
- L.observe(R, {
1643
+ var x = 0, C = new A(r), M = o.document.createTextNode("");
1644
+ C.observe(M, {
1645
1645
  characterData: !0
1646
- }), S = function() {
1647
- R.data = N = ++N % 2;
1646
+ }), E = function() {
1647
+ M.data = x = ++x % 2;
1648
1648
  };
1649
1649
  } else if (!o.setImmediate && typeof o.MessageChannel < "u") {
1650
- var b = new o.MessageChannel();
1651
- b.port1.onmessage = r, S = function() {
1652
- b.port2.postMessage(0);
1650
+ var y = new o.MessageChannel();
1651
+ y.port1.onmessage = r, E = function() {
1652
+ y.port2.postMessage(0);
1653
1653
  };
1654
1654
  } else
1655
- "document" in o && "onreadystatechange" in o.document.createElement("script") ? S = function() {
1656
- var E = o.document.createElement("script");
1657
- E.onreadystatechange = function() {
1658
- r(), E.onreadystatechange = null, E.parentNode.removeChild(E), E = null;
1659
- }, o.document.documentElement.appendChild(E);
1660
- } : S = function() {
1655
+ "document" in o && "onreadystatechange" in o.document.createElement("script") ? E = function() {
1656
+ var S = o.document.createElement("script");
1657
+ S.onreadystatechange = function() {
1658
+ r(), S.onreadystatechange = null, S.parentNode.removeChild(S), S = null;
1659
+ }, o.document.documentElement.appendChild(S);
1660
+ } : E = function() {
1661
1661
  setTimeout(r, 0);
1662
1662
  };
1663
1663
  var c, h = [];
1664
1664
  function r() {
1665
1665
  c = !0;
1666
- for (var E, y, I = h.length; I; ) {
1667
- for (y = h, h = [], E = -1; ++E < I; )
1668
- y[E]();
1666
+ for (var S, w, I = h.length; I; ) {
1667
+ for (w = h, h = [], S = -1; ++S < I; )
1668
+ w[S]();
1669
1669
  I = h.length;
1670
1670
  }
1671
1671
  c = !1;
1672
1672
  }
1673
- l.exports = x;
1674
- function x(E) {
1675
- h.push(E) === 1 && !c && S();
1673
+ l.exports = N;
1674
+ function N(S) {
1675
+ h.push(S) === 1 && !c && E();
1676
1676
  }
1677
1677
  }).call(this, typeof Oe < "u" ? Oe : typeof self < "u" ? self : typeof window < "u" ? window : {});
1678
1678
  }, {}], 2: [function(a, l, s) {
1679
1679
  var o = a(1);
1680
1680
  function A() {
1681
1681
  }
1682
- var S = {}, N = ["REJECTED"], L = ["FULFILLED"], R = ["PENDING"];
1683
- l.exports = b;
1684
- function b(_) {
1682
+ var E = {}, x = ["REJECTED"], C = ["FULFILLED"], M = ["PENDING"];
1683
+ l.exports = y;
1684
+ function y(_) {
1685
1685
  if (typeof _ != "function")
1686
1686
  throw new TypeError("resolver must be a function");
1687
- this.state = R, this.queue = [], this.outcome = void 0, _ !== A && x(this, _);
1687
+ this.state = M, this.queue = [], this.outcome = void 0, _ !== A && N(this, _);
1688
1688
  }
1689
- b.prototype.catch = function(_) {
1689
+ y.prototype.catch = function(_) {
1690
1690
  return this.then(null, _);
1691
- }, b.prototype.then = function(_, P) {
1692
- if (typeof _ != "function" && this.state === L || typeof P != "function" && this.state === N)
1691
+ }, y.prototype.then = function(_, L) {
1692
+ if (typeof _ != "function" && this.state === C || typeof L != "function" && this.state === x)
1693
1693
  return this;
1694
1694
  var m = new this.constructor(A);
1695
- if (this.state !== R) {
1696
- var D = this.state === L ? _ : P;
1695
+ if (this.state !== M) {
1696
+ var D = this.state === C ? _ : L;
1697
1697
  h(m, D, this.outcome);
1698
1698
  } else
1699
- this.queue.push(new c(m, _, P));
1699
+ this.queue.push(new c(m, _, L));
1700
1700
  return m;
1701
1701
  };
1702
- function c(_, P, m) {
1703
- this.promise = _, typeof P == "function" && (this.onFulfilled = P, this.callFulfilled = this.otherCallFulfilled), typeof m == "function" && (this.onRejected = m, this.callRejected = this.otherCallRejected);
1702
+ function c(_, L, m) {
1703
+ this.promise = _, typeof L == "function" && (this.onFulfilled = L, this.callFulfilled = this.otherCallFulfilled), typeof m == "function" && (this.onRejected = m, this.callRejected = this.otherCallRejected);
1704
1704
  }
1705
1705
  c.prototype.callFulfilled = function(_) {
1706
- S.resolve(this.promise, _);
1706
+ E.resolve(this.promise, _);
1707
1707
  }, c.prototype.otherCallFulfilled = function(_) {
1708
1708
  h(this.promise, this.onFulfilled, _);
1709
1709
  }, c.prototype.callRejected = function(_) {
1710
- S.reject(this.promise, _);
1710
+ E.reject(this.promise, _);
1711
1711
  }, c.prototype.otherCallRejected = function(_) {
1712
1712
  h(this.promise, this.onRejected, _);
1713
1713
  };
1714
- function h(_, P, m) {
1714
+ function h(_, L, m) {
1715
1715
  o(function() {
1716
1716
  var D;
1717
1717
  try {
1718
- D = P(m);
1718
+ D = L(m);
1719
1719
  } catch (g) {
1720
- return S.reject(_, g);
1720
+ return E.reject(_, g);
1721
1721
  }
1722
- D === _ ? S.reject(_, new TypeError("Cannot resolve promise with itself")) : S.resolve(_, D);
1722
+ D === _ ? E.reject(_, new TypeError("Cannot resolve promise with itself")) : E.resolve(_, D);
1723
1723
  });
1724
1724
  }
1725
- S.resolve = function(_, P) {
1726
- var m = E(r, P);
1725
+ E.resolve = function(_, L) {
1726
+ var m = S(r, L);
1727
1727
  if (m.status === "error")
1728
- return S.reject(_, m.value);
1728
+ return E.reject(_, m.value);
1729
1729
  var D = m.value;
1730
1730
  if (D)
1731
- x(_, D);
1731
+ N(_, D);
1732
1732
  else {
1733
- _.state = L, _.outcome = P;
1733
+ _.state = C, _.outcome = L;
1734
1734
  for (var g = -1, f = _.queue.length; ++g < f; )
1735
- _.queue[g].callFulfilled(P);
1735
+ _.queue[g].callFulfilled(L);
1736
1736
  }
1737
1737
  return _;
1738
- }, S.reject = function(_, P) {
1739
- _.state = N, _.outcome = P;
1738
+ }, E.reject = function(_, L) {
1739
+ _.state = x, _.outcome = L;
1740
1740
  for (var m = -1, D = _.queue.length; ++m < D; )
1741
- _.queue[m].callRejected(P);
1741
+ _.queue[m].callRejected(L);
1742
1742
  return _;
1743
1743
  };
1744
1744
  function r(_) {
1745
- var P = _ && _.then;
1746
- if (_ && (typeof _ == "object" || typeof _ == "function") && typeof P == "function")
1745
+ var L = _ && _.then;
1746
+ if (_ && (typeof _ == "object" || typeof _ == "function") && typeof L == "function")
1747
1747
  return function() {
1748
- P.apply(_, arguments);
1748
+ L.apply(_, arguments);
1749
1749
  };
1750
1750
  }
1751
- function x(_, P) {
1751
+ function N(_, L) {
1752
1752
  var m = !1;
1753
1753
  function D(G) {
1754
- m || (m = !0, S.reject(_, G));
1754
+ m || (m = !0, E.reject(_, G));
1755
1755
  }
1756
1756
  function g(G) {
1757
- m || (m = !0, S.resolve(_, G));
1757
+ m || (m = !0, E.resolve(_, G));
1758
1758
  }
1759
1759
  function f() {
1760
- P(g, D);
1760
+ L(g, D);
1761
1761
  }
1762
- var C = E(f);
1763
- C.status === "error" && D(C.value);
1762
+ var P = S(f);
1763
+ P.status === "error" && D(P.value);
1764
1764
  }
1765
- function E(_, P) {
1765
+ function S(_, L) {
1766
1766
  var m = {};
1767
1767
  try {
1768
- m.value = _(P), m.status = "success";
1768
+ m.value = _(L), m.status = "success";
1769
1769
  } catch (D) {
1770
1770
  m.status = "error", m.value = D;
1771
1771
  }
1772
1772
  return m;
1773
1773
  }
1774
- b.resolve = y;
1775
- function y(_) {
1776
- return _ instanceof this ? _ : S.resolve(new this(A), _);
1774
+ y.resolve = w;
1775
+ function w(_) {
1776
+ return _ instanceof this ? _ : E.resolve(new this(A), _);
1777
1777
  }
1778
- b.reject = I;
1778
+ y.reject = I;
1779
1779
  function I(_) {
1780
- var P = new this(A);
1781
- return S.reject(P, _);
1780
+ var L = new this(A);
1781
+ return E.reject(L, _);
1782
1782
  }
1783
- b.all = B;
1783
+ y.all = B;
1784
1784
  function B(_) {
1785
- var P = this;
1785
+ var L = this;
1786
1786
  if (Object.prototype.toString.call(_) !== "[object Array]")
1787
1787
  return this.reject(new TypeError("must be an array"));
1788
1788
  var m = _.length, D = !1;
1789
1789
  if (!m)
1790
1790
  return this.resolve([]);
1791
- for (var g = new Array(m), f = 0, C = -1, G = new this(A); ++C < m; )
1792
- J(_[C], C);
1791
+ for (var g = new Array(m), f = 0, P = -1, G = new this(A); ++P < m; )
1792
+ J(_[P], P);
1793
1793
  return G;
1794
1794
  function J(ee, we) {
1795
- P.resolve(ee).then(W, function(H) {
1796
- D || (D = !0, S.reject(G, H));
1795
+ L.resolve(ee).then(W, function(H) {
1796
+ D || (D = !0, E.reject(G, H));
1797
1797
  });
1798
1798
  function W(H) {
1799
- g[we] = H, ++f === m && !D && (D = !0, S.resolve(G, g));
1799
+ g[we] = H, ++f === m && !D && (D = !0, E.resolve(G, g));
1800
1800
  }
1801
1801
  }
1802
1802
  }
1803
- b.race = U;
1803
+ y.race = U;
1804
1804
  function U(_) {
1805
- var P = this;
1805
+ var L = this;
1806
1806
  if (Object.prototype.toString.call(_) !== "[object Array]")
1807
1807
  return this.reject(new TypeError("must be an array"));
1808
1808
  var m = _.length, D = !1;
1809
1809
  if (!m)
1810
1810
  return this.resolve([]);
1811
1811
  for (var g = -1, f = new this(A); ++g < m; )
1812
- C(_[g]);
1812
+ P(_[g]);
1813
1813
  return f;
1814
- function C(G) {
1815
- P.resolve(G).then(function(J) {
1816
- D || (D = !0, S.resolve(f, J));
1814
+ function P(G) {
1815
+ L.resolve(G).then(function(J) {
1816
+ D || (D = !0, E.resolve(f, J));
1817
1817
  }, function(J) {
1818
- D || (D = !0, S.reject(f, J));
1818
+ D || (D = !0, E.reject(f, J));
1819
1819
  });
1820
1820
  }
1821
1821
  }
@@ -1833,7 +1833,7 @@ var Ft = { exports: {} };
1833
1833
  if (!(n instanceof i))
1834
1834
  throw new TypeError("Cannot call a class as a function");
1835
1835
  }
1836
- function S() {
1836
+ function E() {
1837
1837
  try {
1838
1838
  if (typeof indexedDB < "u")
1839
1839
  return indexedDB;
@@ -1849,10 +1849,10 @@ var Ft = { exports: {} };
1849
1849
  return;
1850
1850
  }
1851
1851
  }
1852
- var N = S();
1853
- function L() {
1852
+ var x = E();
1853
+ function C() {
1854
1854
  try {
1855
- if (!N || !N.open)
1855
+ if (!x || !x.open)
1856
1856
  return !1;
1857
1857
  var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), i = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
1858
1858
  return (!n || i) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
@@ -1864,20 +1864,20 @@ var Ft = { exports: {} };
1864
1864
  return !1;
1865
1865
  }
1866
1866
  }
1867
- function R(n, i) {
1867
+ function M(n, i) {
1868
1868
  n = n || [], i = i || {};
1869
1869
  try {
1870
1870
  return new Blob(n, i);
1871
1871
  } catch (d) {
1872
1872
  if (d.name !== "TypeError")
1873
1873
  throw d;
1874
- for (var u = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, v = new u(), w = 0; w < n.length; w += 1)
1875
- v.append(n[w]);
1874
+ for (var u = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, v = new u(), b = 0; b < n.length; b += 1)
1875
+ v.append(n[b]);
1876
1876
  return v.getBlob(i.type);
1877
1877
  }
1878
1878
  }
1879
1879
  typeof Promise > "u" && a(3);
1880
- var b = Promise;
1880
+ var y = Promise;
1881
1881
  function c(n, i) {
1882
1882
  i && n.then(function(u) {
1883
1883
  i(null, u);
@@ -1891,38 +1891,38 @@ var Ft = { exports: {} };
1891
1891
  function r(n) {
1892
1892
  return typeof n != "string" && (console.warn(n + " used as a key, but it is not a string."), n = String(n)), n;
1893
1893
  }
1894
- function x() {
1894
+ function N() {
1895
1895
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
1896
1896
  return arguments[arguments.length - 1];
1897
1897
  }
1898
- var E = "local-forage-detect-blob-support", y = void 0, I = {}, B = Object.prototype.toString, U = "readonly", _ = "readwrite";
1899
- function P(n) {
1900
- for (var i = n.length, u = new ArrayBuffer(i), v = new Uint8Array(u), w = 0; w < i; w++)
1901
- v[w] = n.charCodeAt(w);
1898
+ var S = "local-forage-detect-blob-support", w = void 0, I = {}, B = Object.prototype.toString, U = "readonly", _ = "readwrite";
1899
+ function L(n) {
1900
+ for (var i = n.length, u = new ArrayBuffer(i), v = new Uint8Array(u), b = 0; b < i; b++)
1901
+ v[b] = n.charCodeAt(b);
1902
1902
  return u;
1903
1903
  }
1904
1904
  function m(n) {
1905
- return new b(function(i) {
1906
- var u = n.transaction(E, _), v = R([""]);
1907
- u.objectStore(E).put(v, "key"), u.onabort = function(w) {
1908
- w.preventDefault(), w.stopPropagation(), i(!1);
1905
+ return new y(function(i) {
1906
+ var u = n.transaction(S, _), v = M([""]);
1907
+ u.objectStore(S).put(v, "key"), u.onabort = function(b) {
1908
+ b.preventDefault(), b.stopPropagation(), i(!1);
1909
1909
  }, u.oncomplete = function() {
1910
- var w = navigator.userAgent.match(/Chrome\/(\d+)/), d = navigator.userAgent.match(/Edge\//);
1911
- i(d || !w || parseInt(w[1], 10) >= 43);
1910
+ var b = navigator.userAgent.match(/Chrome\/(\d+)/), d = navigator.userAgent.match(/Edge\//);
1911
+ i(d || !b || parseInt(b[1], 10) >= 43);
1912
1912
  };
1913
1913
  }).catch(function() {
1914
1914
  return !1;
1915
1915
  });
1916
1916
  }
1917
1917
  function D(n) {
1918
- return typeof y == "boolean" ? b.resolve(y) : m(n).then(function(i) {
1919
- return y = i, y;
1918
+ return typeof w == "boolean" ? y.resolve(w) : m(n).then(function(i) {
1919
+ return w = i, w;
1920
1920
  });
1921
1921
  }
1922
1922
  function g(n) {
1923
1923
  var i = I[n.name], u = {};
1924
- u.promise = new b(function(v, w) {
1925
- u.resolve = v, u.reject = w;
1924
+ u.promise = new y(function(v, b) {
1925
+ u.resolve = v, u.reject = b;
1926
1926
  }), i.deferredOperations.push(u), i.dbReady ? i.dbReady = i.dbReady.then(function() {
1927
1927
  return u.promise;
1928
1928
  }) : i.dbReady = u.promise;
@@ -1932,25 +1932,25 @@ var Ft = { exports: {} };
1932
1932
  if (u)
1933
1933
  return u.resolve(), u.promise;
1934
1934
  }
1935
- function C(n, i) {
1935
+ function P(n, i) {
1936
1936
  var u = I[n.name], v = u.deferredOperations.pop();
1937
1937
  if (v)
1938
1938
  return v.reject(i), v.promise;
1939
1939
  }
1940
1940
  function G(n, i) {
1941
- return new b(function(u, v) {
1941
+ return new y(function(u, v) {
1942
1942
  if (I[n.name] = I[n.name] || se(), n.db)
1943
1943
  if (i)
1944
1944
  g(n), n.db.close();
1945
1945
  else
1946
1946
  return u(n.db);
1947
- var w = [n.name];
1948
- i && w.push(n.version);
1949
- var d = N.open.apply(N, w);
1947
+ var b = [n.name];
1948
+ i && b.push(n.version);
1949
+ var d = x.open.apply(x, b);
1950
1950
  i && (d.onupgradeneeded = function(T) {
1951
- var M = d.result;
1951
+ var R = d.result;
1952
1952
  try {
1953
- M.createObjectStore(n.storeName), T.oldVersion <= 1 && M.createObjectStore(E);
1953
+ R.createObjectStore(n.storeName), T.oldVersion <= 1 && R.createObjectStore(S);
1954
1954
  } catch ($) {
1955
1955
  if ($.name === "ConstraintError")
1956
1956
  console.warn('The database "' + n.name + '" has been upgraded from version ' + T.oldVersion + " to version " + T.newVersion + ', but the storage "' + n.storeName + '" already exists.');
@@ -1961,8 +1961,8 @@ var Ft = { exports: {} };
1961
1961
  T.preventDefault(), v(d.error);
1962
1962
  }, d.onsuccess = function() {
1963
1963
  var T = d.result;
1964
- T.onversionchange = function(M) {
1965
- M.target.close();
1964
+ T.onversionchange = function(R) {
1965
+ R.target.close();
1966
1966
  }, u(T), f(n);
1967
1967
  };
1968
1968
  });
@@ -1976,8 +1976,8 @@ var Ft = { exports: {} };
1976
1976
  function we(n, i) {
1977
1977
  if (!n.db)
1978
1978
  return !0;
1979
- var u = !n.db.objectStoreNames.contains(n.storeName), v = n.version < n.db.version, w = n.version > n.db.version;
1980
- if (v && (n.version !== i && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), w || u) {
1979
+ var u = !n.db.objectStoreNames.contains(n.storeName), v = n.version < n.db.version, b = n.version > n.db.version;
1980
+ if (v && (n.version !== i && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), b || u) {
1981
1981
  if (u) {
1982
1982
  var d = n.db.version + 1;
1983
1983
  d > n.version && (n.version = d);
@@ -1987,10 +1987,10 @@ var Ft = { exports: {} };
1987
1987
  return !1;
1988
1988
  }
1989
1989
  function W(n) {
1990
- return new b(function(i, u) {
1990
+ return new y(function(i, u) {
1991
1991
  var v = new FileReader();
1992
- v.onerror = u, v.onloadend = function(w) {
1993
- var d = btoa(w.target.result || "");
1992
+ v.onerror = u, v.onloadend = function(b) {
1993
+ var d = btoa(b.target.result || "");
1994
1994
  i({
1995
1995
  __local_forage_encoded_blob: !0,
1996
1996
  data: d,
@@ -2000,8 +2000,8 @@ var Ft = { exports: {} };
2000
2000
  });
2001
2001
  }
2002
2002
  function H(n) {
2003
- var i = P(atob(n.data));
2004
- return R([i], { type: n.type });
2003
+ var i = L(atob(n.data));
2004
+ return M([i], { type: n.type });
2005
2005
  }
2006
2006
  function V(n) {
2007
2007
  return n && n.__local_forage_encoded_blob;
@@ -2017,8 +2017,8 @@ var Ft = { exports: {} };
2017
2017
  function Z(n) {
2018
2018
  g(n);
2019
2019
  for (var i = I[n.name], u = i.forages, v = 0; v < u.length; v++) {
2020
- var w = u[v];
2021
- w._dbInfo.db && (w._dbInfo.db.close(), w._dbInfo.db = null);
2020
+ var b = u[v];
2021
+ b._dbInfo.db && (b._dbInfo.db.close(), b._dbInfo.db = null);
2022
2022
  }
2023
2023
  return n.db = null, J(n).then(function(d) {
2024
2024
  return n.db = d, we(n) ? ee(n) : d;
@@ -2027,17 +2027,17 @@ var Ft = { exports: {} };
2027
2027
  for (var T = 0; T < u.length; T++)
2028
2028
  u[T]._dbInfo.db = d;
2029
2029
  }).catch(function(d) {
2030
- throw C(n, d), d;
2030
+ throw P(n, d), d;
2031
2031
  });
2032
2032
  }
2033
2033
  function re(n, i, u, v) {
2034
2034
  v === void 0 && (v = 1);
2035
2035
  try {
2036
- var w = n.db.transaction(n.storeName, i);
2037
- u(null, w);
2036
+ var b = n.db.transaction(n.storeName, i);
2037
+ u(null, b);
2038
2038
  } catch (d) {
2039
2039
  if (v > 0 && (!n.db || d.name === "InvalidStateError" || d.name === "NotFoundError"))
2040
- return b.resolve().then(function() {
2040
+ return y.resolve().then(function() {
2041
2041
  if (!n.db || d.name === "NotFoundError" && !n.db.objectStoreNames.contains(n.storeName) && n.version <= n.db.version)
2042
2042
  return n.db && (n.version = n.db.version + 1), ee(n);
2043
2043
  }).then(function() {
@@ -2067,23 +2067,23 @@ var Ft = { exports: {} };
2067
2067
  if (n)
2068
2068
  for (var v in n)
2069
2069
  u[v] = n[v];
2070
- var w = I[u.name];
2071
- w || (w = se(), I[u.name] = w), w.forages.push(i), i._initReady || (i._initReady = i.ready, i.ready = ce);
2070
+ var b = I[u.name];
2071
+ b || (b = se(), I[u.name] = b), b.forages.push(i), i._initReady || (i._initReady = i.ready, i.ready = ce);
2072
2072
  var d = [];
2073
2073
  function T() {
2074
- return b.resolve();
2074
+ return y.resolve();
2075
2075
  }
2076
- for (var M = 0; M < w.forages.length; M++) {
2077
- var $ = w.forages[M];
2076
+ for (var R = 0; R < b.forages.length; R++) {
2077
+ var $ = b.forages[R];
2078
2078
  $ !== i && d.push($._initReady().catch(T));
2079
2079
  }
2080
- var F = w.forages.slice(0);
2081
- return b.all(d).then(function() {
2082
- return u.db = w.db, J(u);
2080
+ var F = b.forages.slice(0);
2081
+ return y.all(d).then(function() {
2082
+ return u.db = b.db, J(u);
2083
2083
  }).then(function(k) {
2084
2084
  return u.db = k, we(u, i._defaultConfig.version) ? ee(u) : k;
2085
2085
  }).then(function(k) {
2086
- u.db = w.db = k, i._dbInfo = u;
2086
+ u.db = b.db = k, i._dbInfo = u;
2087
2087
  for (var q = 0; q < F.length; q++) {
2088
2088
  var z = F[q];
2089
2089
  z !== i && (z._dbInfo.db = u.db, z._dbInfo.version = u.version);
@@ -2093,16 +2093,16 @@ var Ft = { exports: {} };
2093
2093
  function be(n, i) {
2094
2094
  var u = this;
2095
2095
  n = r(n);
2096
- var v = new b(function(w, d) {
2096
+ var v = new y(function(b, d) {
2097
2097
  u.ready().then(function() {
2098
- re(u._dbInfo, U, function(T, M) {
2098
+ re(u._dbInfo, U, function(T, R) {
2099
2099
  if (T)
2100
2100
  return d(T);
2101
2101
  try {
2102
- var $ = M.objectStore(u._dbInfo.storeName), F = $.get(n);
2102
+ var $ = R.objectStore(u._dbInfo.storeName), F = $.get(n);
2103
2103
  F.onsuccess = function() {
2104
2104
  var k = F.result;
2105
- k === void 0 && (k = null), V(k) && (k = H(k)), w(k);
2105
+ k === void 0 && (k = null), V(k) && (k = H(k)), b(k);
2106
2106
  }, F.onerror = function() {
2107
2107
  d(F.error);
2108
2108
  };
@@ -2115,22 +2115,22 @@ var Ft = { exports: {} };
2115
2115
  return c(v, i), v;
2116
2116
  }
2117
2117
  function sr(n, i) {
2118
- var u = this, v = new b(function(w, d) {
2118
+ var u = this, v = new y(function(b, d) {
2119
2119
  u.ready().then(function() {
2120
- re(u._dbInfo, U, function(T, M) {
2120
+ re(u._dbInfo, U, function(T, R) {
2121
2121
  if (T)
2122
2122
  return d(T);
2123
2123
  try {
2124
- var $ = M.objectStore(u._dbInfo.storeName), F = $.openCursor(), k = 1;
2124
+ var $ = R.objectStore(u._dbInfo.storeName), F = $.openCursor(), k = 1;
2125
2125
  F.onsuccess = function() {
2126
2126
  var q = F.result;
2127
2127
  if (q) {
2128
2128
  var z = q.value;
2129
2129
  V(z) && (z = H(z));
2130
2130
  var X = n(z, q.key, k++);
2131
- X !== void 0 ? w(X) : q.continue();
2131
+ X !== void 0 ? b(X) : q.continue();
2132
2132
  } else
2133
- w();
2133
+ b();
2134
2134
  }, F.onerror = function() {
2135
2135
  d(F.error);
2136
2136
  };
@@ -2145,10 +2145,10 @@ var Ft = { exports: {} };
2145
2145
  function Le(n, i, u) {
2146
2146
  var v = this;
2147
2147
  n = r(n);
2148
- var w = new b(function(d, T) {
2149
- var M;
2148
+ var b = new y(function(d, T) {
2149
+ var R;
2150
2150
  v.ready().then(function() {
2151
- return M = v._dbInfo, B.call(i) === "[object Blob]" ? D(M.db).then(function($) {
2151
+ return R = v._dbInfo, B.call(i) === "[object Blob]" ? D(R.db).then(function($) {
2152
2152
  return $ ? i : W(i);
2153
2153
  }) : i;
2154
2154
  }).then(function($) {
@@ -2171,23 +2171,23 @@ var Ft = { exports: {} };
2171
2171
  });
2172
2172
  }).catch(T);
2173
2173
  });
2174
- return c(w, u), w;
2174
+ return c(b, u), b;
2175
2175
  }
2176
2176
  function or(n, i) {
2177
2177
  var u = this;
2178
2178
  n = r(n);
2179
- var v = new b(function(w, d) {
2179
+ var v = new y(function(b, d) {
2180
2180
  u.ready().then(function() {
2181
- re(u._dbInfo, _, function(T, M) {
2181
+ re(u._dbInfo, _, function(T, R) {
2182
2182
  if (T)
2183
2183
  return d(T);
2184
2184
  try {
2185
- var $ = M.objectStore(u._dbInfo.storeName), F = $.delete(n);
2186
- M.oncomplete = function() {
2187
- w();
2188
- }, M.onerror = function() {
2185
+ var $ = R.objectStore(u._dbInfo.storeName), F = $.delete(n);
2186
+ R.oncomplete = function() {
2187
+ b();
2188
+ }, R.onerror = function() {
2189
2189
  d(F.error);
2190
- }, M.onabort = function() {
2190
+ }, R.onabort = function() {
2191
2191
  var k = F.error ? F.error : F.transaction.error;
2192
2192
  d(k);
2193
2193
  };
@@ -2200,67 +2200,67 @@ var Ft = { exports: {} };
2200
2200
  return c(v, i), v;
2201
2201
  }
2202
2202
  function hr(n) {
2203
- var i = this, u = new b(function(v, w) {
2203
+ var i = this, u = new y(function(v, b) {
2204
2204
  i.ready().then(function() {
2205
2205
  re(i._dbInfo, _, function(d, T) {
2206
2206
  if (d)
2207
- return w(d);
2207
+ return b(d);
2208
2208
  try {
2209
- var M = T.objectStore(i._dbInfo.storeName), $ = M.clear();
2209
+ var R = T.objectStore(i._dbInfo.storeName), $ = R.clear();
2210
2210
  T.oncomplete = function() {
2211
2211
  v();
2212
2212
  }, T.onabort = T.onerror = function() {
2213
2213
  var F = $.error ? $.error : $.transaction.error;
2214
- w(F);
2214
+ b(F);
2215
2215
  };
2216
2216
  } catch (F) {
2217
- w(F);
2217
+ b(F);
2218
2218
  }
2219
2219
  });
2220
- }).catch(w);
2220
+ }).catch(b);
2221
2221
  });
2222
2222
  return c(u, n), u;
2223
2223
  }
2224
2224
  function dr(n) {
2225
- var i = this, u = new b(function(v, w) {
2225
+ var i = this, u = new y(function(v, b) {
2226
2226
  i.ready().then(function() {
2227
2227
  re(i._dbInfo, U, function(d, T) {
2228
2228
  if (d)
2229
- return w(d);
2229
+ return b(d);
2230
2230
  try {
2231
- var M = T.objectStore(i._dbInfo.storeName), $ = M.count();
2231
+ var R = T.objectStore(i._dbInfo.storeName), $ = R.count();
2232
2232
  $.onsuccess = function() {
2233
2233
  v($.result);
2234
2234
  }, $.onerror = function() {
2235
- w($.error);
2235
+ b($.error);
2236
2236
  };
2237
2237
  } catch (F) {
2238
- w(F);
2238
+ b(F);
2239
2239
  }
2240
2240
  });
2241
- }).catch(w);
2241
+ }).catch(b);
2242
2242
  });
2243
2243
  return c(u, n), u;
2244
2244
  }
2245
2245
  function mr(n, i) {
2246
- var u = this, v = new b(function(w, d) {
2246
+ var u = this, v = new y(function(b, d) {
2247
2247
  if (n < 0) {
2248
- w(null);
2248
+ b(null);
2249
2249
  return;
2250
2250
  }
2251
2251
  u.ready().then(function() {
2252
- re(u._dbInfo, U, function(T, M) {
2252
+ re(u._dbInfo, U, function(T, R) {
2253
2253
  if (T)
2254
2254
  return d(T);
2255
2255
  try {
2256
- var $ = M.objectStore(u._dbInfo.storeName), F = !1, k = $.openKeyCursor();
2256
+ var $ = R.objectStore(u._dbInfo.storeName), F = !1, k = $.openKeyCursor();
2257
2257
  k.onsuccess = function() {
2258
2258
  var q = k.result;
2259
2259
  if (!q) {
2260
- w(null);
2260
+ b(null);
2261
2261
  return;
2262
2262
  }
2263
- n === 0 || F ? w(q.key) : (F = !0, q.advance(n));
2263
+ n === 0 || F ? b(q.key) : (F = !0, q.advance(n));
2264
2264
  }, k.onerror = function() {
2265
2265
  d(k.error);
2266
2266
  };
@@ -2273,13 +2273,13 @@ var Ft = { exports: {} };
2273
2273
  return c(v, i), v;
2274
2274
  }
2275
2275
  function vr(n) {
2276
- var i = this, u = new b(function(v, w) {
2276
+ var i = this, u = new y(function(v, b) {
2277
2277
  i.ready().then(function() {
2278
2278
  re(i._dbInfo, U, function(d, T) {
2279
2279
  if (d)
2280
- return w(d);
2280
+ return b(d);
2281
2281
  try {
2282
- var M = T.objectStore(i._dbInfo.storeName), $ = M.openKeyCursor(), F = [];
2282
+ var R = T.objectStore(i._dbInfo.storeName), $ = R.openKeyCursor(), F = [];
2283
2283
  $.onsuccess = function() {
2284
2284
  var k = $.result;
2285
2285
  if (!k) {
@@ -2288,43 +2288,43 @@ var Ft = { exports: {} };
2288
2288
  }
2289
2289
  F.push(k.key), k.continue();
2290
2290
  }, $.onerror = function() {
2291
- w($.error);
2291
+ b($.error);
2292
2292
  };
2293
2293
  } catch (k) {
2294
- w(k);
2294
+ b(k);
2295
2295
  }
2296
2296
  });
2297
- }).catch(w);
2297
+ }).catch(b);
2298
2298
  });
2299
2299
  return c(u, n), u;
2300
2300
  }
2301
2301
  function gr(n, i) {
2302
- i = x.apply(this, arguments);
2302
+ i = N.apply(this, arguments);
2303
2303
  var u = this.config();
2304
2304
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || u.name, n.storeName = n.storeName || u.storeName);
2305
- var v = this, w;
2305
+ var v = this, b;
2306
2306
  if (!n.name)
2307
- w = b.reject("Invalid arguments");
2307
+ b = y.reject("Invalid arguments");
2308
2308
  else {
2309
- var d = n.name === u.name && v._dbInfo.db, T = d ? b.resolve(v._dbInfo.db) : J(n).then(function(M) {
2309
+ var d = n.name === u.name && v._dbInfo.db, T = d ? y.resolve(v._dbInfo.db) : J(n).then(function(R) {
2310
2310
  var $ = I[n.name], F = $.forages;
2311
- $.db = M;
2311
+ $.db = R;
2312
2312
  for (var k = 0; k < F.length; k++)
2313
- F[k]._dbInfo.db = M;
2314
- return M;
2313
+ F[k]._dbInfo.db = R;
2314
+ return R;
2315
2315
  });
2316
- n.storeName ? w = T.then(function(M) {
2317
- if (M.objectStoreNames.contains(n.storeName)) {
2318
- var $ = M.version + 1;
2316
+ n.storeName ? b = T.then(function(R) {
2317
+ if (R.objectStoreNames.contains(n.storeName)) {
2318
+ var $ = R.version + 1;
2319
2319
  g(n);
2320
2320
  var F = I[n.name], k = F.forages;
2321
- M.close();
2321
+ R.close();
2322
2322
  for (var q = 0; q < k.length; q++) {
2323
2323
  var z = k[q];
2324
2324
  z._dbInfo.db = null, z._dbInfo.version = $;
2325
2325
  }
2326
- var X = new b(function(O, ue) {
2327
- var ne = N.open(n.name, $);
2326
+ var X = new y(function(O, ue) {
2327
+ var ne = x.open(n.name, $);
2328
2328
  ne.onerror = function(ve) {
2329
2329
  var We = ne.result;
2330
2330
  We.close(), ue(ve);
@@ -2343,20 +2343,20 @@ var Ft = { exports: {} };
2343
2343
  ne._dbInfo.db = O, f(ne._dbInfo);
2344
2344
  }
2345
2345
  }).catch(function(O) {
2346
- throw (C(n, O) || b.resolve()).catch(function() {
2346
+ throw (P(n, O) || y.resolve()).catch(function() {
2347
2347
  }), O;
2348
2348
  });
2349
2349
  }
2350
- }) : w = T.then(function(M) {
2350
+ }) : b = T.then(function(R) {
2351
2351
  g(n);
2352
2352
  var $ = I[n.name], F = $.forages;
2353
- M.close();
2353
+ R.close();
2354
2354
  for (var k = 0; k < F.length; k++) {
2355
2355
  var q = F[k];
2356
2356
  q._dbInfo.db = null;
2357
2357
  }
2358
- var z = new b(function(X, O) {
2359
- var ue = N.deleteDatabase(n.name);
2358
+ var z = new y(function(X, O) {
2359
+ var ue = x.deleteDatabase(n.name);
2360
2360
  ue.onerror = function() {
2361
2361
  var ne = ue.result;
2362
2362
  ne && ne.close(), O(ue.error);
@@ -2374,17 +2374,17 @@ var Ft = { exports: {} };
2374
2374
  f(ue._dbInfo);
2375
2375
  }
2376
2376
  }).catch(function(X) {
2377
- throw (C(n, X) || b.resolve()).catch(function() {
2377
+ throw (P(n, X) || y.resolve()).catch(function() {
2378
2378
  }), X;
2379
2379
  });
2380
2380
  });
2381
2381
  }
2382
- return c(w, i), w;
2382
+ return c(b, i), b;
2383
2383
  }
2384
2384
  var yr = {
2385
2385
  _driver: "asyncStorage",
2386
2386
  _initStorage: me,
2387
- _support: L(),
2387
+ _support: C(),
2388
2388
  iterate: sr,
2389
2389
  getItem: be,
2390
2390
  setItem: Le,
@@ -2400,11 +2400,11 @@ var Ft = { exports: {} };
2400
2400
  }
2401
2401
  var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Te = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", Re = Me.length, j = "arbf", te = "blob", Q = "si08", p = "ui08", Ee = "uic8", De = "si16", Ue = "si32", _e = "ur16", oe = "ui32", Ie = "fl32", pr = "fl64", et = Re + j.length, rt = Object.prototype.toString;
2402
2402
  function tt(n) {
2403
- var i = n.length * 0.75, u = n.length, v, w = 0, d, T, M, $;
2403
+ var i = n.length * 0.75, u = n.length, v, b = 0, d, T, R, $;
2404
2404
  n[n.length - 1] === "=" && (i--, n[n.length - 2] === "=" && i--);
2405
2405
  var F = new ArrayBuffer(i), k = new Uint8Array(F);
2406
2406
  for (v = 0; v < u; v += 4)
2407
- d = Se.indexOf(n[v]), T = Se.indexOf(n[v + 1]), M = Se.indexOf(n[v + 2]), $ = Se.indexOf(n[v + 3]), k[w++] = d << 2 | T >> 4, k[w++] = (T & 15) << 4 | M >> 2, k[w++] = (M & 3) << 6 | $ & 63;
2407
+ d = Se.indexOf(n[v]), T = Se.indexOf(n[v + 1]), R = Se.indexOf(n[v + 2]), $ = Se.indexOf(n[v + 3]), k[b++] = d << 2 | T >> 4, k[b++] = (T & 15) << 4 | R >> 2, k[b++] = (R & 3) << 6 | $ & 63;
2408
2408
  return F;
2409
2409
  }
2410
2410
  function wr(n) {
@@ -2416,8 +2416,8 @@ var Ft = { exports: {} };
2416
2416
  function Gt(n, i) {
2417
2417
  var u = "";
2418
2418
  if (n && (u = rt.call(n)), n && (u === "[object ArrayBuffer]" || n.buffer && rt.call(n.buffer) === "[object ArrayBuffer]")) {
2419
- var v, w = Me;
2420
- n instanceof ArrayBuffer ? (v = n, w += j) : (v = n.buffer, u === "[object Int8Array]" ? w += Q : u === "[object Uint8Array]" ? w += p : u === "[object Uint8ClampedArray]" ? w += Ee : u === "[object Int16Array]" ? w += De : u === "[object Uint16Array]" ? w += _e : u === "[object Int32Array]" ? w += Ue : u === "[object Uint32Array]" ? w += oe : u === "[object Float32Array]" ? w += Ie : u === "[object Float64Array]" ? w += pr : i(new Error("Failed to get type for BinaryArray"))), i(w + wr(v));
2419
+ var v, b = Me;
2420
+ n instanceof ArrayBuffer ? (v = n, b += j) : (v = n.buffer, u === "[object Int8Array]" ? b += Q : u === "[object Uint8Array]" ? b += p : u === "[object Uint8ClampedArray]" ? b += Ee : u === "[object Int16Array]" ? b += De : u === "[object Uint16Array]" ? b += _e : u === "[object Int32Array]" ? b += Ue : u === "[object Uint32Array]" ? b += oe : u === "[object Float32Array]" ? b += Ie : u === "[object Float64Array]" ? b += pr : i(new Error("Failed to get type for BinaryArray"))), i(b + wr(v));
2421
2421
  } else if (u === "[object Blob]") {
2422
2422
  var d = new FileReader();
2423
2423
  d.onload = function() {
@@ -2436,15 +2436,15 @@ var Ft = { exports: {} };
2436
2436
  return JSON.parse(n);
2437
2437
  var i = n.substring(et), u = n.substring(Re, et), v;
2438
2438
  if (u === te && Je.test(i)) {
2439
- var w = i.match(Je);
2440
- v = w[1], i = i.substring(w[0].length);
2439
+ var b = i.match(Je);
2440
+ v = b[1], i = i.substring(b[0].length);
2441
2441
  }
2442
2442
  var d = tt(i);
2443
2443
  switch (u) {
2444
2444
  case j:
2445
2445
  return d;
2446
2446
  case te:
2447
- return R([d], { type: v });
2447
+ return M([d], { type: v });
2448
2448
  case Q:
2449
2449
  return new Int8Array(d);
2450
2450
  case p:
@@ -2483,41 +2483,41 @@ var Ft = { exports: {} };
2483
2483
  if (n)
2484
2484
  for (var v in n)
2485
2485
  u[v] = typeof n[v] != "string" ? n[v].toString() : n[v];
2486
- var w = new b(function(d, T) {
2486
+ var b = new y(function(d, T) {
2487
2487
  try {
2488
2488
  u.db = openDatabase(u.name, String(u.version), u.description, u.size);
2489
- } catch (M) {
2490
- return T(M);
2489
+ } catch (R) {
2490
+ return T(R);
2491
2491
  }
2492
- u.db.transaction(function(M) {
2493
- nt(M, u, function() {
2492
+ u.db.transaction(function(R) {
2493
+ nt(R, u, function() {
2494
2494
  i._dbInfo = u, d();
2495
2495
  }, function($, F) {
2496
2496
  T(F);
2497
2497
  });
2498
2498
  }, T);
2499
2499
  });
2500
- return u.serializer = br, w;
2500
+ return u.serializer = br, b;
2501
2501
  }
2502
- function xe(n, i, u, v, w, d) {
2503
- n.executeSql(u, v, w, function(T, M) {
2504
- M.code === M.SYNTAX_ERR ? T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function($, F) {
2505
- F.rows.length ? d($, M) : nt($, i, function() {
2506
- $.executeSql(u, v, w, d);
2502
+ function xe(n, i, u, v, b, d) {
2503
+ n.executeSql(u, v, b, function(T, R) {
2504
+ R.code === R.SYNTAX_ERR ? T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function($, F) {
2505
+ F.rows.length ? d($, R) : nt($, i, function() {
2506
+ $.executeSql(u, v, b, d);
2507
2507
  }, d);
2508
- }, d) : d(T, M);
2508
+ }, d) : d(T, R);
2509
2509
  }, d);
2510
2510
  }
2511
2511
  function zt(n, i) {
2512
2512
  var u = this;
2513
2513
  n = r(n);
2514
- var v = new b(function(w, d) {
2514
+ var v = new y(function(b, d) {
2515
2515
  u.ready().then(function() {
2516
2516
  var T = u._dbInfo;
2517
- T.db.transaction(function(M) {
2518
- xe(M, T, "SELECT * FROM " + T.storeName + " WHERE key = ? LIMIT 1", [n], function($, F) {
2517
+ T.db.transaction(function(R) {
2518
+ xe(R, T, "SELECT * FROM " + T.storeName + " WHERE key = ? LIMIT 1", [n], function($, F) {
2519
2519
  var k = F.rows.length ? F.rows.item(0).value : null;
2520
- k && (k = T.serializer.deserialize(k)), w(k);
2520
+ k && (k = T.serializer.deserialize(k)), b(k);
2521
2521
  }, function($, F) {
2522
2522
  d(F);
2523
2523
  });
@@ -2527,19 +2527,19 @@ var Ft = { exports: {} };
2527
2527
  return c(v, i), v;
2528
2528
  }
2529
2529
  function Zt(n, i) {
2530
- var u = this, v = new b(function(w, d) {
2530
+ var u = this, v = new y(function(b, d) {
2531
2531
  u.ready().then(function() {
2532
2532
  var T = u._dbInfo;
2533
- T.db.transaction(function(M) {
2534
- xe(M, T, "SELECT * FROM " + T.storeName, [], function($, F) {
2533
+ T.db.transaction(function(R) {
2534
+ xe(R, T, "SELECT * FROM " + T.storeName, [], function($, F) {
2535
2535
  for (var k = F.rows, q = k.length, z = 0; z < q; z++) {
2536
2536
  var X = k.item(z), O = X.value;
2537
2537
  if (O && (O = T.serializer.deserialize(O)), O = n(O, X.key, z + 1), O !== void 0) {
2538
- w(O);
2538
+ b(O);
2539
2539
  return;
2540
2540
  }
2541
2541
  }
2542
- w();
2542
+ b();
2543
2543
  }, function($, F) {
2544
2544
  d(F);
2545
2545
  });
@@ -2549,30 +2549,30 @@ var Ft = { exports: {} };
2549
2549
  return c(v, i), v;
2550
2550
  }
2551
2551
  function at(n, i, u, v) {
2552
- var w = this;
2552
+ var b = this;
2553
2553
  n = r(n);
2554
- var d = new b(function(T, M) {
2555
- w.ready().then(function() {
2554
+ var d = new y(function(T, R) {
2555
+ b.ready().then(function() {
2556
2556
  i === void 0 && (i = null);
2557
- var $ = i, F = w._dbInfo;
2557
+ var $ = i, F = b._dbInfo;
2558
2558
  F.serializer.serialize(i, function(k, q) {
2559
- q ? M(q) : F.db.transaction(function(z) {
2559
+ q ? R(q) : F.db.transaction(function(z) {
2560
2560
  xe(z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
2561
2561
  T($);
2562
2562
  }, function(X, O) {
2563
- M(O);
2563
+ R(O);
2564
2564
  });
2565
2565
  }, function(z) {
2566
2566
  if (z.code === z.QUOTA_ERR) {
2567
2567
  if (v > 0) {
2568
- T(at.apply(w, [n, $, u, v - 1]));
2568
+ T(at.apply(b, [n, $, u, v - 1]));
2569
2569
  return;
2570
2570
  }
2571
- M(z);
2571
+ R(z);
2572
2572
  }
2573
2573
  });
2574
2574
  });
2575
- }).catch(M);
2575
+ }).catch(R);
2576
2576
  });
2577
2577
  return c(d, u), d;
2578
2578
  }
@@ -2582,12 +2582,12 @@ var Ft = { exports: {} };
2582
2582
  function Jt(n, i) {
2583
2583
  var u = this;
2584
2584
  n = r(n);
2585
- var v = new b(function(w, d) {
2585
+ var v = new y(function(b, d) {
2586
2586
  u.ready().then(function() {
2587
2587
  var T = u._dbInfo;
2588
- T.db.transaction(function(M) {
2589
- xe(M, T, "DELETE FROM " + T.storeName + " WHERE key = ?", [n], function() {
2590
- w();
2588
+ T.db.transaction(function(R) {
2589
+ xe(R, T, "DELETE FROM " + T.storeName + " WHERE key = ?", [n], function() {
2590
+ b();
2591
2591
  }, function($, F) {
2592
2592
  d(F);
2593
2593
  });
@@ -2597,44 +2597,44 @@ var Ft = { exports: {} };
2597
2597
  return c(v, i), v;
2598
2598
  }
2599
2599
  function Kt(n) {
2600
- var i = this, u = new b(function(v, w) {
2600
+ var i = this, u = new y(function(v, b) {
2601
2601
  i.ready().then(function() {
2602
2602
  var d = i._dbInfo;
2603
2603
  d.db.transaction(function(T) {
2604
2604
  xe(T, d, "DELETE FROM " + d.storeName, [], function() {
2605
2605
  v();
2606
- }, function(M, $) {
2607
- w($);
2606
+ }, function(R, $) {
2607
+ b($);
2608
2608
  });
2609
2609
  });
2610
- }).catch(w);
2610
+ }).catch(b);
2611
2611
  });
2612
2612
  return c(u, n), u;
2613
2613
  }
2614
2614
  function Qt(n) {
2615
- var i = this, u = new b(function(v, w) {
2615
+ var i = this, u = new y(function(v, b) {
2616
2616
  i.ready().then(function() {
2617
2617
  var d = i._dbInfo;
2618
2618
  d.db.transaction(function(T) {
2619
- xe(T, d, "SELECT COUNT(key) as c FROM " + d.storeName, [], function(M, $) {
2619
+ xe(T, d, "SELECT COUNT(key) as c FROM " + d.storeName, [], function(R, $) {
2620
2620
  var F = $.rows.item(0).c;
2621
2621
  v(F);
2622
- }, function(M, $) {
2623
- w($);
2622
+ }, function(R, $) {
2623
+ b($);
2624
2624
  });
2625
2625
  });
2626
- }).catch(w);
2626
+ }).catch(b);
2627
2627
  });
2628
2628
  return c(u, n), u;
2629
2629
  }
2630
2630
  function Xt(n, i) {
2631
- var u = this, v = new b(function(w, d) {
2631
+ var u = this, v = new y(function(b, d) {
2632
2632
  u.ready().then(function() {
2633
2633
  var T = u._dbInfo;
2634
- T.db.transaction(function(M) {
2635
- xe(M, T, "SELECT key FROM " + T.storeName + " WHERE id = ? LIMIT 1", [n + 1], function($, F) {
2634
+ T.db.transaction(function(R) {
2635
+ xe(R, T, "SELECT key FROM " + T.storeName + " WHERE id = ? LIMIT 1", [n + 1], function($, F) {
2636
2636
  var k = F.rows.length ? F.rows.item(0).key : null;
2637
- w(k);
2637
+ b(k);
2638
2638
  }, function($, F) {
2639
2639
  d(F);
2640
2640
  });
@@ -2644,33 +2644,33 @@ var Ft = { exports: {} };
2644
2644
  return c(v, i), v;
2645
2645
  }
2646
2646
  function Ot(n) {
2647
- var i = this, u = new b(function(v, w) {
2647
+ var i = this, u = new y(function(v, b) {
2648
2648
  i.ready().then(function() {
2649
2649
  var d = i._dbInfo;
2650
2650
  d.db.transaction(function(T) {
2651
- xe(T, d, "SELECT key FROM " + d.storeName, [], function(M, $) {
2651
+ xe(T, d, "SELECT key FROM " + d.storeName, [], function(R, $) {
2652
2652
  for (var F = [], k = 0; k < $.rows.length; k++)
2653
2653
  F.push($.rows.item(k).key);
2654
2654
  v(F);
2655
- }, function(M, $) {
2656
- w($);
2655
+ }, function(R, $) {
2656
+ b($);
2657
2657
  });
2658
2658
  });
2659
- }).catch(w);
2659
+ }).catch(b);
2660
2660
  });
2661
2661
  return c(u, n), u;
2662
2662
  }
2663
2663
  function pt(n) {
2664
- return new b(function(i, u) {
2664
+ return new y(function(i, u) {
2665
2665
  n.transaction(function(v) {
2666
- v.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(w, d) {
2667
- for (var T = [], M = 0; M < d.rows.length; M++)
2668
- T.push(d.rows.item(M).name);
2666
+ v.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(b, d) {
2667
+ for (var T = [], R = 0; R < d.rows.length; R++)
2668
+ T.push(d.rows.item(R).name);
2669
2669
  i({
2670
2670
  db: n,
2671
2671
  storeNames: T
2672
2672
  });
2673
- }, function(w, d) {
2673
+ }, function(b, d) {
2674
2674
  u(d);
2675
2675
  });
2676
2676
  }, function(v) {
@@ -2679,21 +2679,21 @@ var Ft = { exports: {} };
2679
2679
  });
2680
2680
  }
2681
2681
  function en(n, i) {
2682
- i = x.apply(this, arguments);
2682
+ i = N.apply(this, arguments);
2683
2683
  var u = this.config();
2684
2684
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || u.name, n.storeName = n.storeName || u.storeName);
2685
- var v = this, w;
2686
- return n.name ? w = new b(function(d) {
2685
+ var v = this, b;
2686
+ return n.name ? b = new y(function(d) {
2687
2687
  var T;
2688
2688
  n.name === u.name ? T = v._dbInfo.db : T = openDatabase(n.name, "", "", 0), n.storeName ? d({
2689
2689
  db: T,
2690
2690
  storeNames: [n.storeName]
2691
2691
  }) : d(pt(T));
2692
2692
  }).then(function(d) {
2693
- return new b(function(T, M) {
2693
+ return new y(function(T, R) {
2694
2694
  d.db.transaction(function($) {
2695
2695
  function F(X) {
2696
- return new b(function(O, ue) {
2696
+ return new y(function(O, ue) {
2697
2697
  $.executeSql("DROP TABLE IF EXISTS " + X, [], function() {
2698
2698
  O();
2699
2699
  }, function(ne, ve) {
@@ -2703,16 +2703,16 @@ var Ft = { exports: {} };
2703
2703
  }
2704
2704
  for (var k = [], q = 0, z = d.storeNames.length; q < z; q++)
2705
2705
  k.push(F(d.storeNames[q]));
2706
- b.all(k).then(function() {
2706
+ y.all(k).then(function() {
2707
2707
  T();
2708
2708
  }).catch(function(X) {
2709
- M(X);
2709
+ R(X);
2710
2710
  });
2711
2711
  }, function($) {
2712
- M($);
2712
+ R($);
2713
2713
  });
2714
2714
  });
2715
- }) : w = b.reject("Invalid arguments"), c(w, i), w;
2715
+ }) : b = y.reject("Invalid arguments"), c(b, i), b;
2716
2716
  }
2717
2717
  var rn = {
2718
2718
  _driver: "webSQLStorage",
@@ -2756,12 +2756,12 @@ var Ft = { exports: {} };
2756
2756
  if (n)
2757
2757
  for (var v in n)
2758
2758
  u[v] = n[v];
2759
- return u.keyPrefix = ut(n, i._defaultConfig), an() ? (i._dbInfo = u, u.serializer = br, b.resolve()) : b.reject();
2759
+ return u.keyPrefix = ut(n, i._defaultConfig), an() ? (i._dbInfo = u, u.serializer = br, y.resolve()) : y.reject();
2760
2760
  }
2761
2761
  function ln(n) {
2762
2762
  var i = this, u = i.ready().then(function() {
2763
- for (var v = i._dbInfo.keyPrefix, w = localStorage.length - 1; w >= 0; w--) {
2764
- var d = localStorage.key(w);
2763
+ for (var v = i._dbInfo.keyPrefix, b = localStorage.length - 1; b >= 0; b--) {
2764
+ var d = localStorage.key(b);
2765
2765
  d.indexOf(v) === 0 && localStorage.removeItem(d);
2766
2766
  }
2767
2767
  });
@@ -2771,18 +2771,18 @@ var Ft = { exports: {} };
2771
2771
  var u = this;
2772
2772
  n = r(n);
2773
2773
  var v = u.ready().then(function() {
2774
- var w = u._dbInfo, d = localStorage.getItem(w.keyPrefix + n);
2775
- return d && (d = w.serializer.deserialize(d)), d;
2774
+ var b = u._dbInfo, d = localStorage.getItem(b.keyPrefix + n);
2775
+ return d && (d = b.serializer.deserialize(d)), d;
2776
2776
  });
2777
2777
  return c(v, i), v;
2778
2778
  }
2779
2779
  function fn(n, i) {
2780
2780
  var u = this, v = u.ready().then(function() {
2781
- for (var w = u._dbInfo, d = w.keyPrefix, T = d.length, M = localStorage.length, $ = 1, F = 0; F < M; F++) {
2781
+ for (var b = u._dbInfo, d = b.keyPrefix, T = d.length, R = localStorage.length, $ = 1, F = 0; F < R; F++) {
2782
2782
  var k = localStorage.key(F);
2783
2783
  if (k.indexOf(d) === 0) {
2784
2784
  var q = localStorage.getItem(k);
2785
- if (q && (q = w.serializer.deserialize(q)), q = n(q, k.substring(T), $++), q !== void 0)
2785
+ if (q && (q = b.serializer.deserialize(q)), q = n(q, k.substring(T), $++), q !== void 0)
2786
2786
  return q;
2787
2787
  }
2788
2788
  }
@@ -2791,21 +2791,21 @@ var Ft = { exports: {} };
2791
2791
  }
2792
2792
  function sn(n, i) {
2793
2793
  var u = this, v = u.ready().then(function() {
2794
- var w = u._dbInfo, d;
2794
+ var b = u._dbInfo, d;
2795
2795
  try {
2796
2796
  d = localStorage.key(n);
2797
2797
  } catch {
2798
2798
  d = null;
2799
2799
  }
2800
- return d && (d = d.substring(w.keyPrefix.length)), d;
2800
+ return d && (d = d.substring(b.keyPrefix.length)), d;
2801
2801
  });
2802
2802
  return c(v, i), v;
2803
2803
  }
2804
2804
  function on(n) {
2805
2805
  var i = this, u = i.ready().then(function() {
2806
- for (var v = i._dbInfo, w = localStorage.length, d = [], T = 0; T < w; T++) {
2807
- var M = localStorage.key(T);
2808
- M.indexOf(v.keyPrefix) === 0 && d.push(M.substring(v.keyPrefix.length));
2806
+ for (var v = i._dbInfo, b = localStorage.length, d = [], T = 0; T < b; T++) {
2807
+ var R = localStorage.key(T);
2808
+ R.indexOf(v.keyPrefix) === 0 && d.push(R.substring(v.keyPrefix.length));
2809
2809
  }
2810
2810
  return d;
2811
2811
  });
@@ -2821,47 +2821,47 @@ var Ft = { exports: {} };
2821
2821
  var u = this;
2822
2822
  n = r(n);
2823
2823
  var v = u.ready().then(function() {
2824
- var w = u._dbInfo;
2825
- localStorage.removeItem(w.keyPrefix + n);
2824
+ var b = u._dbInfo;
2825
+ localStorage.removeItem(b.keyPrefix + n);
2826
2826
  });
2827
2827
  return c(v, i), v;
2828
2828
  }
2829
2829
  function mn(n, i, u) {
2830
2830
  var v = this;
2831
2831
  n = r(n);
2832
- var w = v.ready().then(function() {
2832
+ var b = v.ready().then(function() {
2833
2833
  i === void 0 && (i = null);
2834
2834
  var d = i;
2835
- return new b(function(T, M) {
2835
+ return new y(function(T, R) {
2836
2836
  var $ = v._dbInfo;
2837
2837
  $.serializer.serialize(i, function(F, k) {
2838
2838
  if (k)
2839
- M(k);
2839
+ R(k);
2840
2840
  else
2841
2841
  try {
2842
2842
  localStorage.setItem($.keyPrefix + n, F), T(d);
2843
2843
  } catch (q) {
2844
- (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && M(q), M(q);
2844
+ (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(q), R(q);
2845
2845
  }
2846
2846
  });
2847
2847
  });
2848
2848
  });
2849
- return c(w, u), w;
2849
+ return c(b, u), b;
2850
2850
  }
2851
2851
  function vn(n, i) {
2852
- if (i = x.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
2852
+ if (i = N.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
2853
2853
  var u = this.config();
2854
2854
  n.name = n.name || u.name, n.storeName = n.storeName || u.storeName;
2855
2855
  }
2856
- var v = this, w;
2857
- return n.name ? w = new b(function(d) {
2856
+ var v = this, b;
2857
+ return n.name ? b = new y(function(d) {
2858
2858
  n.storeName ? d(ut(n, v._defaultConfig)) : d(n.name + "/");
2859
2859
  }).then(function(d) {
2860
2860
  for (var T = localStorage.length - 1; T >= 0; T--) {
2861
- var M = localStorage.key(T);
2862
- M.indexOf(d) === 0 && localStorage.removeItem(M);
2861
+ var R = localStorage.key(T);
2862
+ R.indexOf(d) === 0 && localStorage.removeItem(R);
2863
2863
  }
2864
- }) : w = b.reject("Invalid arguments"), c(w, i), w;
2864
+ }) : b = y.reject("Invalid arguments"), c(b, i), b;
2865
2865
  }
2866
2866
  var gn = {
2867
2867
  _driver: "localStorageWrapper",
@@ -2879,10 +2879,10 @@ var Ft = { exports: {} };
2879
2879
  }, yn = function(i, u) {
2880
2880
  return i === u || typeof i == "number" && typeof u == "number" && isNaN(i) && isNaN(u);
2881
2881
  }, wn = function(i, u) {
2882
- for (var v = i.length, w = 0; w < v; ) {
2883
- if (yn(i[w], u))
2882
+ for (var v = i.length, b = 0; b < v; ) {
2883
+ if (yn(i[b], u))
2884
2884
  return !0;
2885
- w++;
2885
+ b++;
2886
2886
  }
2887
2887
  return !1;
2888
2888
  }, lt = Array.isArray || function(n) {
@@ -2923,8 +2923,8 @@ var Ft = { exports: {} };
2923
2923
  A(this, n);
2924
2924
  for (var u in Be)
2925
2925
  if (Be.hasOwnProperty(u)) {
2926
- var v = Be[u], w = v._driver;
2927
- this[u] = w, Ve[w] || this.defineDriver(v);
2926
+ var v = Be[u], b = v._driver;
2927
+ this[u] = b, Ve[b] || this.defineDriver(v);
2928
2928
  }
2929
2929
  this._defaultConfig = Sr({}, En), this._config = Sr({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
2930
2930
  });
@@ -2941,25 +2941,25 @@ var Ft = { exports: {} };
2941
2941
  return "driver" in u && u.driver ? this.setDriver(this._config.driver) : !0;
2942
2942
  } else
2943
2943
  return typeof u == "string" ? this._config[u] : this._config;
2944
- }, n.prototype.defineDriver = function(u, v, w) {
2945
- var d = new b(function(T, M) {
2944
+ }, n.prototype.defineDriver = function(u, v, b) {
2945
+ var d = new y(function(T, R) {
2946
2946
  try {
2947
2947
  var $ = u._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2948
2948
  if (!u._driver) {
2949
- M(F);
2949
+ R(F);
2950
2950
  return;
2951
2951
  }
2952
2952
  for (var k = Er.concat("_initStorage"), q = 0, z = k.length; q < z; q++) {
2953
2953
  var X = k[q], O = !wn(Ke, X);
2954
2954
  if ((O || u[X]) && typeof u[X] != "function") {
2955
- M(F);
2955
+ R(F);
2956
2956
  return;
2957
2957
  }
2958
2958
  }
2959
2959
  var ue = function() {
2960
2960
  for (var We = function(In) {
2961
2961
  return function() {
2962
- var xn = new Error("Method " + In + " is not implemented by the current driver"), it = b.reject(xn);
2962
+ var xn = new Error("Method " + In + " is not implemented by the current driver"), it = y.reject(xn);
2963
2963
  return c(it, arguments[arguments.length - 1]), it;
2964
2964
  };
2965
2965
  }, _r = 0, Dn = Ke.length; _r < Dn; _r++) {
@@ -2971,34 +2971,34 @@ var Ft = { exports: {} };
2971
2971
  var ne = function(We) {
2972
2972
  Ve[$] && console.info("Redefining LocalForage driver: " + $), Ve[$] = u, ct[$] = We, T();
2973
2973
  };
2974
- "_support" in u ? u._support && typeof u._support == "function" ? u._support().then(ne, M) : ne(!!u._support) : ne(!0);
2974
+ "_support" in u ? u._support && typeof u._support == "function" ? u._support().then(ne, R) : ne(!!u._support) : ne(!0);
2975
2975
  } catch (ve) {
2976
- M(ve);
2976
+ R(ve);
2977
2977
  }
2978
2978
  });
2979
- return h(d, v, w), d;
2979
+ return h(d, v, b), d;
2980
2980
  }, n.prototype.driver = function() {
2981
2981
  return this._driver || null;
2982
- }, n.prototype.getDriver = function(u, v, w) {
2983
- var d = Ve[u] ? b.resolve(Ve[u]) : b.reject(new Error("Driver not found."));
2984
- return h(d, v, w), d;
2982
+ }, n.prototype.getDriver = function(u, v, b) {
2983
+ var d = Ve[u] ? y.resolve(Ve[u]) : y.reject(new Error("Driver not found."));
2984
+ return h(d, v, b), d;
2985
2985
  }, n.prototype.getSerializer = function(u) {
2986
- var v = b.resolve(br);
2986
+ var v = y.resolve(br);
2987
2987
  return h(v, u), v;
2988
2988
  }, n.prototype.ready = function(u) {
2989
- var v = this, w = v._driverSet.then(function() {
2989
+ var v = this, b = v._driverSet.then(function() {
2990
2990
  return v._ready === null && (v._ready = v._initDriver()), v._ready;
2991
2991
  });
2992
- return h(w, u, u), w;
2993
- }, n.prototype.setDriver = function(u, v, w) {
2992
+ return h(b, u, u), b;
2993
+ }, n.prototype.setDriver = function(u, v, b) {
2994
2994
  var d = this;
2995
2995
  lt(u) || (u = [u]);
2996
2996
  var T = this._getSupportedDrivers(u);
2997
- function M() {
2997
+ function R() {
2998
2998
  d._config.driver = d.driver();
2999
2999
  }
3000
3000
  function $(q) {
3001
- return d._extend(q), M(), d._ready = d._initStorage(d._config), d._ready;
3001
+ return d._extend(q), R(), d._ready = d._initStorage(d._config), d._ready;
3002
3002
  }
3003
3003
  function F(q) {
3004
3004
  return function() {
@@ -3008,33 +3008,33 @@ var Ft = { exports: {} };
3008
3008
  var O = q[z];
3009
3009
  return z++, d._dbInfo = null, d._ready = null, d.getDriver(O).then($).catch(X);
3010
3010
  }
3011
- M();
3011
+ R();
3012
3012
  var ue = new Error("No available storage method found.");
3013
- return d._driverSet = b.reject(ue), d._driverSet;
3013
+ return d._driverSet = y.reject(ue), d._driverSet;
3014
3014
  }
3015
3015
  return X();
3016
3016
  };
3017
3017
  }
3018
3018
  var k = this._driverSet !== null ? this._driverSet.catch(function() {
3019
- return b.resolve();
3020
- }) : b.resolve();
3019
+ return y.resolve();
3020
+ }) : y.resolve();
3021
3021
  return this._driverSet = k.then(function() {
3022
3022
  var q = T[0];
3023
3023
  return d._dbInfo = null, d._ready = null, d.getDriver(q).then(function(z) {
3024
- d._driver = z._driver, M(), d._wrapLibraryMethodsWithReady(), d._initDriver = F(T);
3024
+ d._driver = z._driver, R(), d._wrapLibraryMethodsWithReady(), d._initDriver = F(T);
3025
3025
  });
3026
3026
  }).catch(function() {
3027
- M();
3027
+ R();
3028
3028
  var q = new Error("No available storage method found.");
3029
- return d._driverSet = b.reject(q), d._driverSet;
3030
- }), h(this._driverSet, v, w), this._driverSet;
3029
+ return d._driverSet = y.reject(q), d._driverSet;
3030
+ }), h(this._driverSet, v, b), this._driverSet;
3031
3031
  }, n.prototype.supports = function(u) {
3032
3032
  return !!ct[u];
3033
3033
  }, n.prototype._extend = function(u) {
3034
3034
  Sr(this, u);
3035
3035
  }, n.prototype._getSupportedDrivers = function(u) {
3036
- for (var v = [], w = 0, d = u.length; w < d; w++) {
3037
- var T = u[w];
3036
+ for (var v = [], b = 0, d = u.length; b < d; b++) {
3037
+ var T = u[b];
3038
3038
  this.supports(T) && v.push(T);
3039
3039
  }
3040
3040
  return v;
@@ -3062,8 +3062,8 @@ function de() {
3062
3062
  function Pu() {
3063
3063
  async function e(s) {
3064
3064
  const o = de();
3065
- (await o.keys()).filter((N) => N.startsWith(s)).forEach((N) => {
3066
- o.removeItem(N);
3065
+ (await o.keys()).filter((x) => x.startsWith(s)).forEach((x) => {
3066
+ o.removeItem(x);
3067
3067
  });
3068
3068
  }
3069
3069
  async function t(s) {
@@ -3159,58 +3159,58 @@ function yt(e) {
3159
3159
  return !!(ze(e) && e.effect);
3160
3160
  }
3161
3161
  function wt(e, t, a, l) {
3162
- const { state: s, actions: o, getters: A } = t, S = a.state.value[e];
3163
- let N;
3164
- function L() {
3165
- !S && (process.env.NODE_ENV === "production" || !l) && (a.state.value[e] = s ? s() : {});
3166
- const R = process.env.NODE_ENV !== "production" && l ? (
3162
+ const { state: s, actions: o, getters: A } = t, E = a.state.value[e];
3163
+ let x;
3164
+ function C() {
3165
+ !E && (process.env.NODE_ENV === "production" || !l) && (a.state.value[e] = s ? s() : {});
3166
+ const M = process.env.NODE_ENV !== "production" && l ? (
3167
3167
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
3168
3168
  ft(Y(s ? s() : {}).value)
3169
3169
  ) : ft(a.state.value[e]);
3170
- return ge(R, o, Object.keys(A || {}).reduce((b, c) => (process.env.NODE_ENV !== "production" && c in R && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${c}" in store "${e}".`), b[c] = je(le(() => {
3170
+ return ge(M, o, Object.keys(A || {}).reduce((y, c) => (process.env.NODE_ENV !== "production" && c in M && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${c}" in store "${e}".`), y[c] = je(le(() => {
3171
3171
  lr(a);
3172
3172
  const h = a._s.get(e);
3173
3173
  return A[c].call(h, h);
3174
- })), b), {}));
3174
+ })), y), {}));
3175
3175
  }
3176
- return N = Gr(e, L, t, a, l, !0), N;
3176
+ return x = Gr(e, C, t, a, l, !0), x;
3177
3177
  }
3178
3178
  function Gr(e, t, a = {}, l, s, o) {
3179
3179
  let A;
3180
- const S = ge({ actions: {} }, a);
3180
+ const E = ge({ actions: {} }, a);
3181
3181
  if (process.env.NODE_ENV !== "production" && !l._e.active)
3182
3182
  throw new Error("Pinia destroyed");
3183
- const N = {
3183
+ const x = {
3184
3184
  deep: !0
3185
3185
  // flush: 'post',
3186
3186
  };
3187
- process.env.NODE_ENV !== "production" && !Fa && (N.onTrigger = (f) => {
3188
- L ? h = f : L == !1 && !m._hotUpdating && (Array.isArray(h) ? h.push(f) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3187
+ process.env.NODE_ENV !== "production" && !Fa && (x.onTrigger = (f) => {
3188
+ C ? h = f : C == !1 && !m._hotUpdating && (Array.isArray(h) ? h.push(f) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3189
3189
  });
3190
- let L, R, b = [], c = [], h;
3190
+ let C, M, y = [], c = [], h;
3191
3191
  const r = l.state.value[e];
3192
3192
  !o && !r && (process.env.NODE_ENV === "production" || !s) && (l.state.value[e] = {});
3193
- const x = Y({});
3194
- let E;
3195
- function y(f) {
3196
- let C;
3197
- L = R = !1, process.env.NODE_ENV !== "production" && (h = []), typeof f == "function" ? (f(l.state.value[e]), C = {
3193
+ const N = Y({});
3194
+ let S;
3195
+ function w(f) {
3196
+ let P;
3197
+ C = M = !1, process.env.NODE_ENV !== "production" && (h = []), typeof f == "function" ? (f(l.state.value[e]), P = {
3198
3198
  type: He.patchFunction,
3199
3199
  storeId: e,
3200
3200
  events: h
3201
- }) : (jr(l.state.value[e], f), C = {
3201
+ }) : (jr(l.state.value[e], f), P = {
3202
3202
  type: He.patchObject,
3203
3203
  payload: f,
3204
3204
  storeId: e,
3205
3205
  events: h
3206
3206
  });
3207
- const G = E = Symbol();
3207
+ const G = S = Symbol();
3208
3208
  ur().then(() => {
3209
- E === G && (L = !0);
3210
- }), R = !0, $e(b, C, l.state.value[e]);
3209
+ S === G && (C = !0);
3210
+ }), M = !0, $e(y, P, l.state.value[e]);
3211
3211
  }
3212
3212
  const I = o ? function() {
3213
- const { state: C } = a, G = C ? C() : {};
3213
+ const { state: P } = a, G = P ? P() : {};
3214
3214
  this.$patch((J) => {
3215
3215
  ge(J, G);
3216
3216
  });
@@ -3221,9 +3221,9 @@ function Gr(e, t, a = {}, l, s, o) {
3221
3221
  } : Wt
3222
3222
  );
3223
3223
  function B() {
3224
- A.stop(), b = [], c = [], l._s.delete(e);
3224
+ A.stop(), y = [], c = [], l._s.delete(e);
3225
3225
  }
3226
- function U(f, C) {
3226
+ function U(f, P) {
3227
3227
  return function() {
3228
3228
  lr(l);
3229
3229
  const G = Array.from(arguments), J = [], ee = [];
@@ -3242,7 +3242,7 @@ function Gr(e, t, a = {}, l, s, o) {
3242
3242
  });
3243
3243
  let H;
3244
3244
  try {
3245
- H = C.apply(this && this.$id === e ? this : m, G);
3245
+ H = P.apply(this && this.$id === e ? this : m, G);
3246
3246
  } catch (V) {
3247
3247
  throw $e(ee, V), V;
3248
3248
  }
@@ -3253,22 +3253,22 @@ function Gr(e, t, a = {}, l, s, o) {
3253
3253
  actions: {},
3254
3254
  getters: {},
3255
3255
  state: [],
3256
- hotState: x
3257
- }), P = {
3256
+ hotState: N
3257
+ }), L = {
3258
3258
  _p: l,
3259
3259
  // _s: scope,
3260
3260
  $id: e,
3261
3261
  $onAction: gt.bind(null, c),
3262
- $patch: y,
3262
+ $patch: w,
3263
3263
  $reset: I,
3264
- $subscribe(f, C = {}) {
3265
- const G = gt(b, f, C.detached, () => J()), J = A.run(() => Ae(() => l.state.value[e], (ee) => {
3266
- (C.flush === "sync" ? R : L) && f({
3264
+ $subscribe(f, P = {}) {
3265
+ const G = gt(y, f, P.detached, () => J()), J = A.run(() => Ae(() => l.state.value[e], (ee) => {
3266
+ (P.flush === "sync" ? M : C) && f({
3267
3267
  storeId: e,
3268
3268
  type: He.direct,
3269
3269
  events: h
3270
3270
  }, ee);
3271
- }, ge({}, N, C)));
3271
+ }, ge({}, x, P)));
3272
3272
  return G;
3273
3273
  },
3274
3274
  $dispose: B
@@ -3278,62 +3278,62 @@ function Gr(e, t, a = {}, l, s, o) {
3278
3278
  _customProperties: je(/* @__PURE__ */ new Set())
3279
3279
  // devtools custom properties
3280
3280
  },
3281
- P
3281
+ L
3282
3282
  // must be added later
3283
3283
  // setupStore
3284
- ) : P);
3284
+ ) : L);
3285
3285
  l._s.set(e, m);
3286
3286
  const g = (l._a && l._a.runWithContext || Va)(() => l._e.run(() => (A = Rn()).run(t)));
3287
3287
  for (const f in g) {
3288
- const C = g[f];
3289
- if (ze(C) && !yt(C) || Yr(C))
3290
- process.env.NODE_ENV !== "production" && s ? tr(x.value, f, ar(g, f)) : o || (r && ja(C) && (ze(C) ? C.value = r[f] : jr(C, r[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
3291
- else if (typeof C == "function") {
3292
- const G = process.env.NODE_ENV !== "production" && s ? C : U(f, C);
3293
- g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = C), S.actions[f] = C;
3288
+ const P = g[f];
3289
+ if (ze(P) && !yt(P) || Yr(P))
3290
+ process.env.NODE_ENV !== "production" && s ? tr(N.value, f, ar(g, f)) : o || (r && ja(P) && (ze(P) ? P.value = r[f] : jr(P, r[f])), l.state.value[e][f] = P), process.env.NODE_ENV !== "production" && _.state.push(f);
3291
+ else if (typeof P == "function") {
3292
+ const G = process.env.NODE_ENV !== "production" && s ? P : U(f, P);
3293
+ g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = P), E.actions[f] = P;
3294
3294
  } else
3295
- process.env.NODE_ENV !== "production" && yt(C) && (_.getters[f] = o ? (
3295
+ process.env.NODE_ENV !== "production" && yt(P) && (_.getters[f] = o ? (
3296
3296
  // @ts-expect-error
3297
3297
  a.getters[f]
3298
- ) : C, Or && (g._getters || // @ts-expect-error: same
3298
+ ) : P, Or && (g._getters || // @ts-expect-error: same
3299
3299
  (g._getters = je([]))).push(f));
3300
3300
  }
3301
3301
  if (ge(m, g), ge(Un(m), g), Object.defineProperty(m, "$state", {
3302
- get: () => process.env.NODE_ENV !== "production" && s ? x.value : l.state.value[e],
3302
+ get: () => process.env.NODE_ENV !== "production" && s ? N.value : l.state.value[e],
3303
3303
  set: (f) => {
3304
3304
  if (process.env.NODE_ENV !== "production" && s)
3305
3305
  throw new Error("cannot set hotState");
3306
- y((C) => {
3307
- ge(C, f);
3306
+ w((P) => {
3307
+ ge(P, f);
3308
3308
  });
3309
3309
  }
3310
3310
  }), process.env.NODE_ENV !== "production" && (m._hotUpdate = je((f) => {
3311
- m._hotUpdating = !0, f._hmrPayload.state.forEach((C) => {
3312
- if (C in m.$state) {
3313
- const G = f.$state[C], J = m.$state[C];
3314
- typeof G == "object" && Pe(G) && Pe(J) ? Vt(G, J) : f.$state[C] = J;
3311
+ m._hotUpdating = !0, f._hmrPayload.state.forEach((P) => {
3312
+ if (P in m.$state) {
3313
+ const G = f.$state[P], J = m.$state[P];
3314
+ typeof G == "object" && Pe(G) && Pe(J) ? Vt(G, J) : f.$state[P] = J;
3315
3315
  }
3316
- tr(m, C, ar(f.$state, C));
3317
- }), Object.keys(m.$state).forEach((C) => {
3318
- C in f.$state || Dr(m, C);
3319
- }), L = !1, R = !1, l.state.value[e] = ar(f._hmrPayload, "hotState"), R = !0, ur().then(() => {
3320
- L = !0;
3316
+ tr(m, P, ar(f.$state, P));
3317
+ }), Object.keys(m.$state).forEach((P) => {
3318
+ P in f.$state || Dr(m, P);
3319
+ }), C = !1, M = !1, l.state.value[e] = ar(f._hmrPayload, "hotState"), M = !0, ur().then(() => {
3320
+ C = !0;
3321
3321
  });
3322
- for (const C in f._hmrPayload.actions) {
3323
- const G = f[C];
3324
- tr(m, C, U(C, G));
3322
+ for (const P in f._hmrPayload.actions) {
3323
+ const G = f[P];
3324
+ tr(m, P, U(P, G));
3325
3325
  }
3326
- for (const C in f._hmrPayload.getters) {
3327
- const G = f._hmrPayload.getters[C], J = o ? (
3326
+ for (const P in f._hmrPayload.getters) {
3327
+ const G = f._hmrPayload.getters[P], J = o ? (
3328
3328
  // special handling of options api
3329
3329
  le(() => (lr(l), G.call(m, m)))
3330
3330
  ) : G;
3331
- tr(m, C, J);
3331
+ tr(m, P, J);
3332
3332
  }
3333
- Object.keys(m._hmrPayload.getters).forEach((C) => {
3334
- C in f._hmrPayload.getters || Dr(m, C);
3335
- }), Object.keys(m._hmrPayload.actions).forEach((C) => {
3336
- C in f._hmrPayload.actions || Dr(m, C);
3333
+ Object.keys(m._hmrPayload.getters).forEach((P) => {
3334
+ P in f._hmrPayload.getters || Dr(m, P);
3335
+ }), Object.keys(m._hmrPayload.actions).forEach((P) => {
3336
+ P in f._hmrPayload.actions || Dr(m, P);
3337
3337
  }), m._hmrPayload = f._hmrPayload, m._getters = f._getters, m._hotUpdating = !1;
3338
3338
  })), Ir) {
3339
3339
  const f = {
@@ -3342,29 +3342,29 @@ function Gr(e, t, a = {}, l, s, o) {
3342
3342
  // avoid warning on devtools trying to display this property
3343
3343
  enumerable: !1
3344
3344
  };
3345
- ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((C) => {
3346
- Object.defineProperty(m, C, ge({ value: m[C] }, f));
3345
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((P) => {
3346
+ Object.defineProperty(m, P, ge({ value: m[P] }, f));
3347
3347
  });
3348
3348
  }
3349
3349
  return l._p.forEach((f) => {
3350
3350
  if (Ir) {
3351
- const C = A.run(() => f({
3351
+ const P = A.run(() => f({
3352
3352
  store: m,
3353
3353
  app: l._a,
3354
3354
  pinia: l,
3355
- options: S
3355
+ options: E
3356
3356
  }));
3357
- Object.keys(C || {}).forEach((G) => m._customProperties.add(G)), ge(m, C);
3357
+ Object.keys(P || {}).forEach((G) => m._customProperties.add(G)), ge(m, P);
3358
3358
  } else
3359
3359
  ge(m, A.run(() => f({
3360
3360
  store: m,
3361
3361
  app: l._a,
3362
3362
  pinia: l,
3363
- options: S
3363
+ options: E
3364
3364
  })));
3365
3365
  }), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
3366
3366
  state: () => new MyClass()
3367
- Found in store "${m.$id}".`), r && o && a.hydrate && a.hydrate(m.$state, r), L = !0, R = !0, m;
3367
+ Found in store "${m.$id}".`), r && o && a.hydrate && a.hydrate(m.$state, r), C = !0, M = !0, m;
3368
3368
  }
3369
3369
  function jt(e, t, a) {
3370
3370
  let l, s;
@@ -3373,29 +3373,29 @@ function jt(e, t, a) {
3373
3373
  l = e, s = o ? a : t;
3374
3374
  else if (s = e, l = e.id, process.env.NODE_ENV !== "production" && typeof l != "string")
3375
3375
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
3376
- function A(S, N) {
3377
- const L = Ln();
3378
- if (S = // in test mode, ignore the argument provided as we can always retrieve a
3376
+ function A(E, x) {
3377
+ const C = Ln();
3378
+ if (E = // in test mode, ignore the argument provided as we can always retrieve a
3379
3379
  // pinia instance with getActivePinia()
3380
- (process.env.NODE_ENV === "test" && qe && qe._testing ? null : S) || (L ? fr(ka, null) : null), S && lr(S), process.env.NODE_ENV !== "production" && !qe)
3380
+ (process.env.NODE_ENV === "test" && qe && qe._testing ? null : E) || (C ? fr(ka, null) : null), E && lr(E), process.env.NODE_ENV !== "production" && !qe)
3381
3381
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
3382
3382
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
3383
3383
  This will fail in production.`);
3384
- S = qe, S._s.has(l) || (o ? Gr(l, t, s, S) : wt(l, s, S), process.env.NODE_ENV !== "production" && (A._pinia = S));
3385
- const R = S._s.get(l);
3386
- if (process.env.NODE_ENV !== "production" && N) {
3387
- const b = "__hot:" + l, c = o ? Gr(b, t, s, S, !0) : wt(b, ge({}, s), S, !0);
3388
- N._hotUpdate(c), delete S.state.value[b], S._s.delete(b);
3384
+ E = qe, E._s.has(l) || (o ? Gr(l, t, s, E) : wt(l, s, E), process.env.NODE_ENV !== "production" && (A._pinia = E));
3385
+ const M = E._s.get(l);
3386
+ if (process.env.NODE_ENV !== "production" && x) {
3387
+ const y = "__hot:" + l, c = o ? Gr(y, t, s, E, !0) : wt(y, ge({}, s), E, !0);
3388
+ x._hotUpdate(c), delete E.state.value[y], E._s.delete(y);
3389
3389
  }
3390
3390
  if (process.env.NODE_ENV !== "production" && Or) {
3391
- const b = ir();
3392
- if (b && b.proxy && // avoid adding stores that are just built for hot module replacement
3393
- !N) {
3394
- const c = b.proxy, h = "_pStores" in c ? c._pStores : c._pStores = {};
3395
- h[l] = R;
3391
+ const y = ir();
3392
+ if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
3393
+ !x) {
3394
+ const c = y.proxy, h = "_pStores" in c ? c._pStores : c._pStores = {};
3395
+ h[l] = M;
3396
3396
  }
3397
3397
  }
3398
- return R;
3398
+ return M;
3399
3399
  }
3400
3400
  return A.$id = l, A;
3401
3401
  }
@@ -3440,162 +3440,162 @@ function Za(e) {
3440
3440
  var h;
3441
3441
  const t = fe.utc().toSeconds() / 86400, a = Y({}), l = Y({}), s = e.storageMode == "local-cache", o = e.buildUrl ?? ((h = e.api) == null ? void 0 : h.buildUrl) ?? za;
3442
3442
  function A(r) {
3443
- var x, E;
3444
- return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}`;
3443
+ var N, S;
3444
+ return `${e.storeName}_${((N = e.auth) == null ? void 0 : N.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((S = r.data) == null ? void 0 : S.id) ?? "no-item-id"}`;
3445
3445
  }
3446
- async function S(r) {
3446
+ async function E(r) {
3447
3447
  var I;
3448
3448
  r.additionalUrl ?? (r.additionalUrl = "/getAll");
3449
- const x = o(r), E = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, y = r.refresh;
3450
- if (!y && a.value[E] !== void 0)
3451
- return a.value[E] ?? null;
3452
- if (!y && s == !0) {
3453
- const B = await de().getItem(E);
3449
+ const N = o(r), S = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${N}`, w = r.refresh;
3450
+ if (!w && a.value[S] !== void 0)
3451
+ return a.value[S] ?? null;
3452
+ if (!w && s == !0) {
3453
+ const B = await de().getItem(S);
3454
3454
  if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > t - 7))
3455
- return a.value[E] = B, B;
3455
+ return a.value[S] = B, B;
3456
3456
  }
3457
3457
  if (e.api == null)
3458
- return a.value[E];
3458
+ return a.value[S];
3459
3459
  try {
3460
- let B = l.value[E];
3461
- B == null && (B = new Promise(async (_, P) => {
3460
+ let B = l.value[S];
3461
+ B == null && (B = new Promise(async (_, L) => {
3462
3462
  var m;
3463
3463
  try {
3464
3464
  let D = await ((m = e.api) == null ? void 0 : m.getAll(r));
3465
- s == !0 && await de().setItem(E, {
3465
+ s == !0 && await de().setItem(S, {
3466
3466
  meta: { storedOn: t },
3467
3467
  ...D
3468
3468
  }), _(D);
3469
3469
  } catch (D) {
3470
- P(D);
3470
+ L(D);
3471
3471
  } finally {
3472
- delete l.value[E];
3472
+ delete l.value[S];
3473
3473
  }
3474
- }), l.value[E] = B);
3474
+ }), l.value[S] = B);
3475
3475
  const U = await B;
3476
- return a.value[E] = U, U;
3476
+ return a.value[S] = U, U;
3477
3477
  } catch (B) {
3478
3478
  let U = B;
3479
3479
  throw new Error(U.message ?? "Problem");
3480
3480
  }
3481
3481
  }
3482
- async function N(r) {
3482
+ async function x(r) {
3483
3483
  r.additionalUrl ?? (r.additionalUrl = "/get");
3484
- const x = A(r), E = r.refresh;
3485
- if (!E && a.value[x] !== void 0)
3486
- return a.value[x] ?? [];
3487
- if (!E && s == !0) {
3488
- const y = await de().getItem(x);
3489
- if (y != null && (e.api == null || parseFloat(y.meta.storedOn) > t - 7))
3490
- return a.value[x] = y, y;
3484
+ const N = A(r), S = r.refresh;
3485
+ if (!S && a.value[N] !== void 0)
3486
+ return a.value[N] ?? [];
3487
+ if (!S && s == !0) {
3488
+ const w = await de().getItem(N);
3489
+ if (w != null && (e.api == null || parseFloat(w.meta.storedOn) > t - 7))
3490
+ return a.value[N] = w, w;
3491
3491
  }
3492
3492
  if (e.api == null)
3493
- return a.value[x];
3493
+ return a.value[N];
3494
3494
  try {
3495
- let y = l.value[x];
3496
- y == null && (y = new Promise(async (B, U) => {
3495
+ let w = l.value[N];
3496
+ w == null && (w = new Promise(async (B, U) => {
3497
3497
  var _;
3498
3498
  try {
3499
- let P = await ((_ = e.api) == null ? void 0 : _.get(r));
3500
- s == !0 && await de().setItem(x, {
3499
+ let L = await ((_ = e.api) == null ? void 0 : _.get(r));
3500
+ s == !0 && await de().setItem(N, {
3501
3501
  meta: { storedOn: t },
3502
- ...P
3503
- }), B(P);
3504
- } catch (P) {
3505
- U(P);
3502
+ ...L
3503
+ }), B(L);
3504
+ } catch (L) {
3505
+ U(L);
3506
3506
  } finally {
3507
- delete l.value[x];
3507
+ delete l.value[N];
3508
3508
  }
3509
- }), l.value[x] = y);
3510
- const I = await y;
3511
- return a.value[x] = I, I;
3512
- } catch (y) {
3513
- let I = y;
3509
+ }), l.value[N] = w);
3510
+ const I = await w;
3511
+ return a.value[N] = I, I;
3512
+ } catch (w) {
3513
+ let I = w;
3514
3514
  throw new Error(I.message ?? "Problem");
3515
3515
  }
3516
3516
  }
3517
- async function L(r) {
3517
+ async function C(r) {
3518
3518
  r.additionalUrl ?? (r.additionalUrl = "/patch");
3519
- const x = A(r);
3520
- let E;
3519
+ const N = A(r);
3520
+ let S;
3521
3521
  if (e.api != null)
3522
3522
  try {
3523
- let y = await e.api.patch(r);
3524
- E = y == null ? void 0 : y.data;
3525
- } catch (y) {
3526
- let I = y;
3523
+ let w = await e.api.patch(r);
3524
+ S = w == null ? void 0 : w.data;
3525
+ } catch (w) {
3526
+ let I = w;
3527
3527
  throw new Error(I.message ?? "Patch Problem");
3528
3528
  }
3529
3529
  else
3530
- E = r.data;
3531
- if (E != null) {
3532
- const y = a.value[x];
3533
- y != null && (y.data = { ...y.data, ...E }, s == !0 && await de().setItem(x, {
3530
+ S = r.data;
3531
+ if (S != null) {
3532
+ const w = a.value[N];
3533
+ w != null && (w.data = { ...w.data, ...S }, s == !0 && await de().setItem(N, {
3534
3534
  meta: { storedOn: t },
3535
- ...y
3536
- })), E.id != null && E.rowVersion != null && Object.entries(a.value).forEach((B) => {
3535
+ ...w
3536
+ })), S.id != null && S.rowVersion != null && Object.entries(a.value).forEach((B) => {
3537
3537
  let U = B[1];
3538
3538
  if (U = U.data, U != null)
3539
3539
  if (Array.isArray(U))
3540
3540
  for (let _ = 0; _ < U.length; _++) {
3541
- const P = U[_];
3542
- P.id == E.id && U.splice(_, 1, { ...P, ...E });
3541
+ const L = U[_];
3542
+ L.id == S.id && U.splice(_, 1, { ...L, ...S });
3543
3543
  }
3544
3544
  else
3545
- U.id == E.id && (a.value[B[0]].data = { ...U, ...E });
3545
+ U.id == S.id && (a.value[B[0]].data = { ...U, ...S });
3546
3546
  });
3547
3547
  }
3548
- return E;
3548
+ return S;
3549
3549
  }
3550
- async function R(r) {
3550
+ async function M(r) {
3551
3551
  r.additionalUrl ?? (r.additionalUrl = "/post");
3552
- const x = A(r);
3553
- let E;
3552
+ const N = A(r);
3553
+ let S;
3554
3554
  if (e.api != null)
3555
3555
  try {
3556
- let y = await e.api.post(r);
3557
- E = y == null ? void 0 : y.data;
3558
- } catch (y) {
3559
- let I = y;
3556
+ let w = await e.api.post(r);
3557
+ S = w == null ? void 0 : w.data;
3558
+ } catch (w) {
3559
+ let I = w;
3560
3560
  throw new Error(I.message ?? "Patch Problem");
3561
3561
  }
3562
3562
  else
3563
- E = r.data;
3564
- return a.value[x] = {
3563
+ S = r.data;
3564
+ return a.value[N] = {
3565
3565
  meta: { storedOn: t },
3566
- data: E
3567
- }, s == !0 && await de().setItem(x, a.value[x]), E;
3566
+ data: S
3567
+ }, s == !0 && await de().setItem(N, a.value[N]), S;
3568
3568
  }
3569
- async function b(r) {
3569
+ async function y(r) {
3570
3570
  r.additionalUrl ?? (r.additionalUrl = "/delete");
3571
- const x = A(r);
3571
+ const N = A(r);
3572
3572
  if (e.api != null)
3573
3573
  try {
3574
- let E = await e.api.deleteItem(r);
3575
- if (E != null)
3576
- return E;
3577
- } catch (E) {
3578
- let y = E;
3579
- throw new Error(y.message ?? "Patch Problem");
3574
+ let S = await e.api.deleteItem(r);
3575
+ if (S != null)
3576
+ return S;
3577
+ } catch (S) {
3578
+ let w = S;
3579
+ throw new Error(w.message ?? "Patch Problem");
3580
3580
  }
3581
- delete a.value[x], s == !0 && await de().removeItem(x);
3581
+ delete a.value[N], s == !0 && await de().removeItem(N);
3582
3582
  }
3583
3583
  async function c(r) {
3584
3584
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), o(r), e.api != null)
3585
3585
  try {
3586
- let x = await e.api.patch(r);
3587
- return x == null ? void 0 : x.data;
3588
- } catch (x) {
3589
- let E = x;
3590
- throw new Error(E.message ?? "Patch Problem");
3586
+ let N = await e.api.patch(r);
3587
+ return N == null ? void 0 : N.data;
3588
+ } catch (N) {
3589
+ let S = N;
3590
+ throw new Error(S.message ?? "Patch Problem");
3591
3591
  }
3592
3592
  }
3593
3593
  return {
3594
- deleteItem: b,
3595
- get: N,
3596
- getAll: S,
3597
- patch: L,
3598
- post: R,
3594
+ deleteItem: y,
3595
+ get: x,
3596
+ getAll: E,
3597
+ patch: C,
3598
+ post: M,
3599
3599
  restore: c,
3600
3600
  searchMemory: a
3601
3601
  //mainly for testing
@@ -3604,39 +3604,39 @@ function Za(e) {
3604
3604
  }
3605
3605
  function bt(e) {
3606
3606
  return jt(e.storeName, () => {
3607
- const t = Y(), a = Y(0), l = fe.utc().toSeconds() / 3600, s = Y(), o = Y(), A = Y({}), S = e.storageMode == "local-cache";
3608
- function N() {
3609
- var y;
3610
- return `${e.storeName}_${((y = e.auth) == null ? void 0 : y.credentials.value.userID) ?? "no-user-id"}`;
3607
+ const t = Y(), a = Y(0), l = fe.utc().toSeconds() / 3600, s = Y(), o = Y(), A = Y({}), E = e.storageMode == "local-cache";
3608
+ function x() {
3609
+ var w;
3610
+ return `${e.storeName}_${((w = e.auth) == null ? void 0 : w.credentials.value.userID) ?? "no-user-id"}`;
3611
3611
  }
3612
- async function L() {
3613
- S == !0 && await de().setItem(N(), {
3612
+ async function C() {
3613
+ E == !0 && await de().setItem(x(), {
3614
3614
  meta: o.value,
3615
3615
  data: t.value,
3616
3616
  count: a.value,
3617
3617
  filters: []
3618
3618
  });
3619
3619
  }
3620
- function R(y) {
3621
- const I = N();
3620
+ function M(w) {
3621
+ const I = x();
3622
3622
  return A.value[I] || (A.value[I] = new Promise(async (B, U) => {
3623
- var _, P;
3623
+ var _, L;
3624
3624
  try {
3625
- let m = await ((P = e.api) == null ? void 0 : P.getAll({
3625
+ let m = await ((L = e.api) == null ? void 0 : L.getAll({
3626
3626
  additionalUrl: "/getAll",
3627
- nav: y.nav,
3627
+ nav: w.nav,
3628
3628
  params: {
3629
3629
  lastUpdate: ((_ = o.value) == null ? void 0 : _.lastUpdate) ?? oa()
3630
3630
  }
3631
3631
  }));
3632
3632
  m == null ? U(m) : (t.value ?? (t.value = []), m.data.forEach((D) => {
3633
- var f, C;
3633
+ var f, P;
3634
3634
  const g = t.value.findIndex((G) => G.id == D.id);
3635
- g >= 0 ? (f = t.value) == null || f.splice(g, 1, D) : (C = t.value) == null || C.push(D);
3635
+ g >= 0 ? (f = t.value) == null || f.splice(g, 1, D) : (P = t.value) == null || P.push(D);
3636
3636
  }), a.value = t.value.length, o.value = {
3637
3637
  lastUpdate: fe.utc().toString(),
3638
3638
  storedOn: l.toString()
3639
- }, await L(), B(m));
3639
+ }, await C(), B(m));
3640
3640
  } catch (m) {
3641
3641
  U(m);
3642
3642
  } finally {
@@ -3644,16 +3644,16 @@ function bt(e) {
3644
3644
  }
3645
3645
  })), A.value[I];
3646
3646
  }
3647
- async function b(y) {
3648
- var U, _, P;
3649
- const I = N(), B = y.refresh;
3650
- if (y.nav ?? (y.nav = e.storeName), !B && t.value != null)
3647
+ async function y(w) {
3648
+ var U, _, L;
3649
+ const I = x(), B = w.refresh;
3650
+ if (w.nav ?? (w.nav = e.storeName), !B && t.value != null)
3651
3651
  return {
3652
3652
  count: (U = t.value) == null ? void 0 : U.length,
3653
3653
  data: t.value,
3654
3654
  filters: []
3655
3655
  };
3656
- if (!B && S == !0) {
3656
+ if (!B && E == !0) {
3657
3657
  const m = await de().getItem(I);
3658
3658
  if (m != null && parseFloat(m.meta.storedOn) > l - 12)
3659
3659
  return t.value = m.data, a.value = m.data.length, s.value = m.filters ?? [], o.value = m.meta, {
@@ -3664,151 +3664,151 @@ function bt(e) {
3664
3664
  }
3665
3665
  if (e.api == null)
3666
3666
  return {
3667
- count: (P = t.value) == null ? void 0 : P.length,
3667
+ count: (L = t.value) == null ? void 0 : L.length,
3668
3668
  data: t.value ?? [],
3669
3669
  filters: s.value
3670
3670
  };
3671
3671
  t.value ?? (t.value = []);
3672
3672
  try {
3673
- return await R(y);
3673
+ return await M(w);
3674
3674
  } catch (m) {
3675
3675
  let D = m;
3676
3676
  throw new Error(D.message ?? "Problem");
3677
3677
  }
3678
3678
  }
3679
- async function c(y) {
3679
+ async function c(w) {
3680
3680
  var U, _;
3681
- const I = N(), B = y.refresh;
3682
- if (y.nav ?? (y.nav = e.storeName), !B && t.value != null)
3681
+ const I = x(), B = w.refresh;
3682
+ if (w.nav ?? (w.nav = e.storeName), !B && t.value != null)
3683
3683
  return {
3684
- data: t.value.find((P) => P.id == y.id)
3684
+ data: t.value.find((L) => L.id == w.id)
3685
3685
  };
3686
- if (!B && S == !0) {
3687
- const P = await de().getItem(I);
3688
- if (P != null && parseFloat(P.meta.storedOn) > l - 12) {
3689
- t.value = P.data, a.value = P.data.length, s.value = P.filters ?? [], o.value = P.meta;
3690
- let m = t.value.find((D) => D.id == y.id);
3686
+ if (!B && E == !0) {
3687
+ const L = await de().getItem(I);
3688
+ if (L != null && parseFloat(L.meta.storedOn) > l - 12) {
3689
+ t.value = L.data, a.value = L.data.length, s.value = L.filters ?? [], o.value = L.meta;
3690
+ let m = t.value.find((D) => D.id == w.id);
3691
3691
  if (m != null)
3692
3692
  return { data: m };
3693
3693
  }
3694
3694
  }
3695
3695
  if (e.api == null)
3696
3696
  return {
3697
- data: (U = t.value) == null ? void 0 : U.find((P) => P.id == y.id)
3697
+ data: (U = t.value) == null ? void 0 : U.find((L) => L.id == w.id)
3698
3698
  };
3699
3699
  t.value ?? (t.value = []);
3700
3700
  try {
3701
- return await R(y), { data: (_ = t.value) == null ? void 0 : _.find((P) => P.id == y.id) };
3702
- } catch (P) {
3703
- let m = P;
3701
+ return await M(w), { data: (_ = t.value) == null ? void 0 : _.find((L) => L.id == w.id) };
3702
+ } catch (L) {
3703
+ let m = L;
3704
3704
  throw new Error(m.message ?? "Problem");
3705
3705
  }
3706
3706
  }
3707
- async function h(y) {
3707
+ async function h(w) {
3708
3708
  var B, U, _;
3709
- y.additionalUrl ?? (y.additionalUrl = "/patch"), y.nav ?? (y.nav = e.storeName);
3709
+ w.additionalUrl ?? (w.additionalUrl = "/patch"), w.nav ?? (w.nav = e.storeName);
3710
3710
  let I;
3711
3711
  if (e.api != null)
3712
3712
  try {
3713
- let P = await e.api.patch(y);
3714
- I = { ...y.data, ...P == null ? void 0 : P.data };
3715
- } catch (P) {
3716
- let m = P;
3713
+ let L = await e.api.patch(w);
3714
+ I = { ...w.data, ...L == null ? void 0 : L.data };
3715
+ } catch (L) {
3716
+ let m = L;
3717
3717
  throw new Error(m.message ?? "Patch Problem");
3718
3718
  }
3719
3719
  else
3720
- I = y.data;
3720
+ I = w.data;
3721
3721
  if (I != null) {
3722
- let P = (B = t.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3723
- P != null && P >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(P, 1, I), await L());
3722
+ let L = (B = t.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3723
+ L != null && L >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(L, 1, I), await C());
3724
3724
  }
3725
- return (_ = t.value) == null ? void 0 : _.find((P) => P.id == (y.id ?? y.data.id));
3725
+ return (_ = t.value) == null ? void 0 : _.find((L) => L.id == (w.id ?? w.data.id));
3726
3726
  }
3727
- async function r(y) {
3727
+ async function r(w) {
3728
3728
  var B, U;
3729
- y.additionalUrl ?? (y.additionalUrl = "/post"), y.nav ?? (y.nav = e.storeName);
3729
+ w.additionalUrl ?? (w.additionalUrl = "/post"), w.nav ?? (w.nav = e.storeName);
3730
3730
  let I;
3731
3731
  if (e.api != null)
3732
3732
  try {
3733
- let _ = await e.api.post(y);
3733
+ let _ = await e.api.post(w);
3734
3734
  I = _ == null ? void 0 : _.data;
3735
3735
  } catch (_) {
3736
- let P = _;
3737
- throw new Error(P.message ?? "Patch Problem");
3736
+ let L = _;
3737
+ throw new Error(L.message ?? "Patch Problem");
3738
3738
  }
3739
3739
  else
3740
- I = y.data;
3741
- return I != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(I), a.value += 1, await L()), (U = t.value) == null ? void 0 : U.find((_) => _.id == (y.id ?? y.data.id));
3740
+ I = w.data;
3741
+ return I != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(I), a.value += 1, await C()), (U = t.value) == null ? void 0 : U.find((_) => _.id == (w.id ?? w.data.id));
3742
3742
  }
3743
- async function x(y) {
3743
+ async function N(w) {
3744
3744
  var B, U;
3745
- if (y.additionalUrl ?? (y.additionalUrl = "/delete"), y.nav ?? (y.nav = e.storeName), e.api != null)
3745
+ if (w.additionalUrl ?? (w.additionalUrl = "/delete"), w.nav ?? (w.nav = e.storeName), e.api != null)
3746
3746
  try {
3747
- let _ = await e.api.deleteItem(y);
3747
+ let _ = await e.api.deleteItem(w);
3748
3748
  if (_ != null)
3749
3749
  return _;
3750
3750
  } catch (_) {
3751
- let P = _;
3752
- throw new Error(P.message ?? "Patch Problem");
3751
+ let L = _;
3752
+ throw new Error(L.message ?? "Patch Problem");
3753
3753
  }
3754
- const I = y.id ?? y.data.id;
3754
+ const I = w.id ?? w.data.id;
3755
3755
  if (I != null) {
3756
- let _ = (B = t.value) == null ? void 0 : B.findIndex((P) => P.id == I);
3757
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(_, 1), await L());
3756
+ let _ = (B = t.value) == null ? void 0 : B.findIndex((L) => L.id == I);
3757
+ _ != null && _ >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(_, 1), await C());
3758
3758
  }
3759
3759
  }
3760
- async function E(y) {
3760
+ async function S(w) {
3761
3761
  var I;
3762
- if (y.additionalUrl ?? (y.additionalUrl = `/patch/restore?id=${y.data.id}`), y.nav ?? (y.nav = e.storeName), e.api != null)
3762
+ if (w.additionalUrl ?? (w.additionalUrl = `/patch/restore?id=${w.data.id}`), w.nav ?? (w.nav = e.storeName), e.api != null)
3763
3763
  try {
3764
- await e.api.patch(y);
3764
+ await e.api.patch(w);
3765
3765
  } catch (B) {
3766
3766
  let U = B;
3767
3767
  throw new Error(U.message ?? "Patch Problem");
3768
3768
  }
3769
3769
  try {
3770
- y.additionalUrl = "/getAll", await R(y);
3770
+ w.additionalUrl = "/getAll", await M(w);
3771
3771
  } catch (B) {
3772
3772
  let U = B;
3773
3773
  throw new Error(U.message ?? "Problem");
3774
3774
  }
3775
- return (I = t.value) == null ? void 0 : I.find((B) => B.id == (y.id ?? y.data.id));
3775
+ return (I = t.value) == null ? void 0 : I.find((B) => B.id == (w.id ?? w.data.id));
3776
3776
  }
3777
3777
  return {
3778
- deleteItem: x,
3778
+ deleteItem: N,
3779
3779
  get: c,
3780
- getAll: b,
3780
+ getAll: y,
3781
3781
  patch: h,
3782
3782
  post: r,
3783
- restore: E
3783
+ restore: S
3784
3784
  };
3785
3785
  });
3786
3786
  }
3787
3787
  function Mu(e, t, a) {
3788
3788
  var Re;
3789
- const l = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", s = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", o = e.nav ?? e.nav ?? "basic", A = La(), S = Bt(), N = Aa(), L = Y(1), R = K(e.customFilters) ?? [], b = Y([]);
3789
+ const l = e.storeMode ?? (a == null ? void 0 : a.storeMode) ?? "session", s = e.storageMode ?? (a == null ? void 0 : a.storageMode) ?? "local-cache", o = e.nav ?? e.nav ?? "basic", A = La(), E = Bt(), x = Aa(), C = Y(1), M = K(e.customFilters) ?? [], y = Y([]);
3790
3790
  let c = Y(new Array());
3791
3791
  const h = le(() => Jn([
3792
- ...R.filter((j) => j.name != null).map((j) => j.name),
3792
+ ...M.filter((j) => j.name != null).map((j) => j.name),
3793
3793
  ...e.defaultFilters ?? [],
3794
- ...b.value
3795
- ]).value), r = Y((e.defaultFilters ?? []).map((j) => h.value.indexOf(j))), x = le(() => st(c, r).value.length > 0 || st(r, c).value.length > 0), E = K(e.proxyQueryKey), y = le(() => {
3794
+ ...y.value
3795
+ ]).value), r = Y((e.defaultFilters ?? []).map((j) => h.value.indexOf(j))), N = le(() => st(c, r).value.length > 0 || st(r, c).value.length > 0), S = K(e.proxyQueryKey), w = le(() => {
3796
3796
  var j;
3797
- return K(e.proxyID) ?? (E != null ? (j = N.query) == null ? void 0 : j[E] : void 0);
3798
- }), I = K(e.searchQueryKey), B = Y(I != null ? (Re = N.query) == null ? void 0 : Re[I] : void 0), U = Y(K(e.startShowingInactive) ?? !1), _ = Y(K(e.sortOrder)), P = le(() => [
3797
+ return K(e.proxyID) ?? (S != null ? (j = x.query) == null ? void 0 : j[S] : void 0);
3798
+ }), I = K(e.searchQueryKey), B = Y(I != null ? (Re = x.query) == null ? void 0 : Re[I] : void 0), U = Y(K(e.startShowingInactive) ?? !1), _ = Y(K(e.sortOrder)), L = le(() => [
3799
3799
  ...e.searchProps ?? [],
3800
3800
  ...(e.headers ?? []).filter((j) => j.searchable != null && j.value != null).map((j) => j.value ?? "")
3801
3801
  ]), m = Y([]), D = Ne([]), g = Y([]);
3802
3802
  let f;
3803
- const { actionErrorMsg: C, actionLoadingMsg: G, deleteItem: J, doAction: ee, getItem: we, getAllItems: W, restoreItem: H } = la({
3803
+ const { actionErrorMsg: P, actionLoadingMsg: G, deleteItem: J, doAction: ee, getItem: we, getAllItems: W, restoreItem: H } = la({
3804
3804
  nav: e.nav ?? e.bladeName ?? e.itemBladeName,
3805
- proxyID: y.value,
3805
+ proxyID: w.value,
3806
3806
  store: Ga({
3807
3807
  storeMode: l,
3808
3808
  storageMode: s,
3809
3809
  storeName: o
3810
3810
  })
3811
- }), V = le(() => e.errorMsg ?? C.value), ce = le(() => e.loadingMsg ?? G.value), Z = le(() => ce.value != null), re = Ne(!1), se = Ne(e.showSearch ?? !1), me = Y(0), be = le(() => (j) => e.onCanDelete != null ? e.onCanDelete(j) : !(j != null && j.isInactive === !0)), sr = le(() => (j) => U.value ? e.onCanRestore != null ? e.onCanRestore(j) : (j == null ? void 0 : j.isInactive) === !0 : !1), Le = le(() => g.value.filter((j) => !j.hide)), or = le(() => {
3811
+ }), V = le(() => e.errorMsg ?? P.value), ce = le(() => e.loadingMsg ?? G.value), Z = le(() => ce.value != null), re = Ne(!1), se = Ne(e.showSearch ?? !1), me = Y(0), be = le(() => (j) => e.onCanDelete != null ? e.onCanDelete(j) : !(j != null && j.isInactive === !0)), sr = le(() => (j) => U.value ? e.onCanRestore != null ? e.onCanRestore(j) : (j == null ? void 0 : j.isInactive) === !0 : !1), Le = le(() => g.value.filter((j) => !j.hide)), or = le(() => {
3812
3812
  let j = new Array();
3813
3813
  return Le.value.filter((Q) => Q.sublevel != null).forEach((Q) => {
3814
3814
  let p = j.find((Ee) => Ee.position == Q.sublevel);
@@ -3828,7 +3828,7 @@ function Mu(e, t, a) {
3828
3828
  id: "new",
3829
3829
  nav: o
3830
3830
  };
3831
- j == "page" && S.push({
3831
+ j == "page" && E.push({
3832
3832
  name: te.bladeName,
3833
3833
  params: { id: "new" }
3834
3834
  });
@@ -3860,7 +3860,7 @@ function Mu(e, t, a) {
3860
3860
  onCanDeleteAsync: e.onCanDeleteAsync,
3861
3861
  onDeleteAsync: Q,
3862
3862
  onDeleteSuccessAsync: async () => (De(Ee), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(p) : Promise.resolve(void 0)),
3863
- proxyID: y.value,
3863
+ proxyID: w.value,
3864
3864
  // ...(useBladeSrc ? bladeData.value : {}),
3865
3865
  requireConfirmation: !0
3866
3866
  }), t && t("deleted", j);
@@ -3873,7 +3873,7 @@ function Mu(e, t, a) {
3873
3873
  onCanRestoreAsync: e.onCanRestoreAsync,
3874
3874
  onRestoreAsync: e.onRestoreAsync,
3875
3875
  onRestoreSuccessAsync: e.onRestoreSuccessAsync,
3876
- proxyID: y.value
3876
+ proxyID: w.value
3877
3877
  // ...(useBladeSrc ? bladeData.value : {})
3878
3878
  });
3879
3879
  }
@@ -3885,7 +3885,7 @@ function Mu(e, t, a) {
3885
3885
  function ke() {
3886
3886
  let j = K(m);
3887
3887
  if (j = e.onFilter ? e.onFilter(j) : j, B.value != null && B.value.length > 0) {
3888
- let te = [...P.value];
3888
+ let te = [...L.value];
3889
3889
  e.itemText && te.push(e.itemText), Fe(te) && (j = j.filter((Q) => ya(Q, B.value, te)));
3890
3890
  }
3891
3891
  D.value = j;
@@ -3903,7 +3903,7 @@ function Mu(e, t, a) {
3903
3903
  id: e.itemID,
3904
3904
  nav: e.nav,
3905
3905
  // params: params.getParamOptions(),
3906
- proxyID: y.value,
3906
+ proxyID: w.value,
3907
3907
  // ...(useBladeSrc ? bladeData.value : {}),
3908
3908
  // ...(props.useInterEvents ? eventData : {}),
3909
3909
  refresh: (j == null ? void 0 : j.deepRefresh) ?? !1,
@@ -3916,8 +3916,8 @@ function Mu(e, t, a) {
3916
3916
  let Q = await W({
3917
3917
  ...te,
3918
3918
  onGetSuccessAsync: async (p, Ee) => {
3919
- let De = p.data;
3920
- return b.value = p.filters ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (me.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (De = await e.onGetSuccessAsync(De, Ee)), De;
3919
+ let De = p == null ? void 0 : p.data;
3920
+ return y.value = (p == null ? void 0 : p.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && p.count && (me.value = Math.ceil(p.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (De = await e.onGetSuccessAsync(De, Ee)), De;
3921
3921
  }
3922
3922
  });
3923
3923
  m.value = Q;
@@ -3935,7 +3935,7 @@ function Mu(e, t, a) {
3935
3935
  id: Q.id,
3936
3936
  nav: e.nav
3937
3937
  };
3938
- te == "page" && S.push({
3938
+ te == "page" && E.push({
3939
3939
  name: p.bladeName,
3940
3940
  params: { id: p.id }
3941
3941
  });
@@ -3946,7 +3946,7 @@ function Mu(e, t, a) {
3946
3946
  }
3947
3947
  return Se(), Kn([B], () => {
3948
3948
  ke();
3949
- }, { debounce: 500, maxWait: 500 }), Ae([U, L], async () => {
3949
+ }, { debounce: 500, maxWait: 500 }), Ae([U, C], async () => {
3950
3950
  await Te();
3951
3951
  }), Ae([V, () => e.errorMsg], ([j, te]) => {
3952
3952
  re.value = j != null || te != null;
@@ -3956,18 +3956,18 @@ function Mu(e, t, a) {
3956
3956
  ke();
3957
3957
  }), Zr(async () => {
3958
3958
  var j;
3959
- e.eager == !0 && await Te({ deepRefresh: ((j = N.params) == null ? void 0 : j.refresh) == "true" });
3959
+ e.eager == !0 && await Te({ deepRefresh: ((j = x.params) == null ? void 0 : j.refresh) == "true" });
3960
3960
  }), {
3961
3961
  add: mr,
3962
3962
  asyncItems: m,
3963
- currentPage: L,
3963
+ currentPage: C,
3964
3964
  deleteItem: vr,
3965
3965
  displayHeaders: dr,
3966
3966
  errorMsg: V,
3967
3967
  exportToCSV: yr,
3968
3968
  filteredItems: D,
3969
3969
  filters: h,
3970
- filtersChanged: x,
3970
+ filtersChanged: N,
3971
3971
  headerOptions: g,
3972
3972
  isDeletable: be,
3973
3973
  isLoading: Z,
@@ -3978,7 +3978,7 @@ function Mu(e, t, a) {
3978
3978
  searchString: B,
3979
3979
  selectedFilters: r,
3980
3980
  selectItem: Je,
3981
- serverFilters: b,
3981
+ serverFilters: y,
3982
3982
  showError: re,
3983
3983
  showInactive: U,
3984
3984
  showSearch: se,
@@ -4009,49 +4009,49 @@ function Ya(e) {
4009
4009
  }));
4010
4010
  function l(c) {
4011
4011
  var h;
4012
- return (h = S(c)) == null ? void 0 : h.archiveName;
4012
+ return (h = E(c)) == null ? void 0 : h.archiveName;
4013
4013
  }
4014
4014
  function s(c) {
4015
4015
  var h;
4016
- return ((h = S(c)) == null ? void 0 : h.cacheExpiryHours) ?? t;
4016
+ return ((h = E(c)) == null ? void 0 : h.cacheExpiryHours) ?? t;
4017
4017
  }
4018
4018
  function o(c) {
4019
4019
  var h;
4020
- return (h = S(c)) == null ? void 0 : h.displayName;
4020
+ return (h = E(c)) == null ? void 0 : h.displayName;
4021
4021
  }
4022
4022
  function A(c) {
4023
4023
  var h;
4024
- return (h = S(c)) == null ? void 0 : h.icon;
4024
+ return (h = E(c)) == null ? void 0 : h.icon;
4025
4025
  }
4026
- function S(c) {
4026
+ function E(c) {
4027
4027
  return c == null ? null : typeof c != "string" ? c : Ut(a, (r) => r.children).find((r) => {
4028
- var x;
4029
- return r.name == c || r.singleName == c || ((x = r.aliases) == null ? void 0 : x.some((E) => E == c));
4028
+ var N;
4029
+ return r.name == c || r.singleName == c || ((N = r.aliases) == null ? void 0 : N.some((S) => S == c));
4030
4030
  }) ?? null;
4031
4031
  }
4032
- function N(c) {
4033
- const h = S(c);
4032
+ function x(c) {
4033
+ const h = E(c);
4034
4034
  if (h == null)
4035
4035
  return;
4036
4036
  let r = Da(h.microservice ?? "default") ?? "";
4037
4037
  return h.path != null && (r = Ce(r, h.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
4038
4038
  }
4039
- function L(c) {
4040
- const h = S(c);
4039
+ function C(c) {
4040
+ const h = E(c);
4041
4041
  if ((h == null ? void 0 : h.singleName) != null)
4042
4042
  return h.singleName;
4043
4043
  const r = h == null ? void 0 : h.displayName;
4044
4044
  if (r != null)
4045
4045
  return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
4046
4046
  }
4047
- function R(c) {
4048
- const h = S(c);
4047
+ function M(c) {
4048
+ const h = E(c);
4049
4049
  return (h == null ? void 0 : h.name) ?? (h == null ? void 0 : h.singleName) ?? "store";
4050
4050
  }
4051
- function b(c) {
4051
+ function y(c) {
4052
4052
  if (c == null)
4053
4053
  return;
4054
- const h = typeof c == "string" ? S(c) : c;
4054
+ const h = typeof c == "string" ? E(c) : c;
4055
4055
  _t.value = h == null ? void 0 : h.background, St.value = (h == null ? void 0 : h.hideNavigation) !== !0, Et.value = (h == null ? void 0 : h.hideAppBar) !== !0, Nr != null && Nr(), xr.value = (h == null ? void 0 : h.hesitate) === !0, xr.value && (Nr = window.addEventListener("beforeunload", (r) => {
4056
4056
  r.preventDefault();
4057
4057
  }));
@@ -4066,11 +4066,11 @@ function Ya(e) {
4066
4066
  findCacheHours: s,
4067
4067
  findDisplay: o,
4068
4068
  findIcon: A,
4069
- findItem: S,
4070
- findStoreName: R,
4071
- findPath: N,
4072
- findSingleDisplay: L,
4073
- updateNavigationProperties: b
4069
+ findItem: E,
4070
+ findStoreName: M,
4071
+ findPath: x,
4072
+ findSingleDisplay: C,
4073
+ updateNavigationProperties: y
4074
4074
  }, qr;
4075
4075
  }
4076
4076
  let Hr;
@@ -4126,23 +4126,23 @@ function Ka() {
4126
4126
  }
4127
4127
  const Qa = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
4128
4128
  function $u(e, t = {}) {
4129
- let a, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, o = t.minWidth ?? 0, A = t.maxWidth ?? Number.MAX_SAFE_INTEGER, S = t.minHeight ?? 0, N = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, R = t.stopPropagation ?? !1, b, c = [];
4129
+ let a, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, o = t.minWidth ?? 0, A = t.maxWidth ?? Number.MAX_SAFE_INTEGER, E = t.minHeight ?? 0, x = t.maxHeight ?? Number.MAX_SAFE_INTEGER, C = t.preventDefault ?? !1, M = t.stopPropagation ?? !1, y, c = [];
4130
4130
  const h = Y(!1);
4131
- let r = [], x = [];
4132
- const E = Y(!1), y = Y({ x: 0, y: 0 });
4131
+ let r = [], N = [];
4132
+ const S = Y(!1), w = Y({ x: 0, y: 0 });
4133
4133
  let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, B = {};
4134
4134
  function U(W) {
4135
- ae(L) && W.preventDefault(), ae(R) && W.stopPropagation();
4135
+ ae(C) && W.preventDefault(), ae(M) && W.stopPropagation();
4136
4136
  }
4137
4137
  function _(W, H) {
4138
4138
  c = H.map(m), c.forEach((V) => W.$el.appendChild(V));
4139
4139
  }
4140
- function P(W) {
4140
+ function L(W) {
4141
4141
  c.forEach((H) => W.$el.removeChild(H));
4142
4142
  }
4143
4143
  function m(W) {
4144
4144
  const H = l + "px", V = -l / 2 + "px", ce = s + 1, Z = document.createElement("div");
4145
- return Z.dataset.handle = W, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (W.length === 1 ? s : ce).toString(), Z.style.cursor = C(W), W.includes("t") && (Z.style.top = V, Z.style.height = H, W === "t" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("b") && (Z.style.bottom = V, Z.style.height = H, W === "b" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("r") && (Z.style.right = V, Z.style.width = H, W === "r" && (Z.style.top = "0", Z.style.height = "100%")), W.includes("l") && (Z.style.left = V, Z.style.width = H, W === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
4145
+ return Z.dataset.handle = W, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (W.length === 1 ? s : ce).toString(), Z.style.cursor = P(W), W.includes("t") && (Z.style.top = V, Z.style.height = H, W === "t" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("b") && (Z.style.bottom = V, Z.style.height = H, W === "b" && (Z.style.left = "0", Z.style.width = "100%")), W.includes("r") && (Z.style.right = V, Z.style.width = H, W === "r" && (Z.style.top = "0", Z.style.height = "100%")), W.includes("l") && (Z.style.left = V, Z.style.width = H, W === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
4146
4146
  }
4147
4147
  function D(W) {
4148
4148
  var se;
@@ -4152,47 +4152,47 @@ function $u(e, t = {}) {
4152
4152
  if (!H)
4153
4153
  return;
4154
4154
  const V = H.$el, Z = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
4155
- if (y.value.x = Z.clientX, y.value.y = Z.clientY, I = {
4155
+ if (w.value.x = Z.clientX, w.value.y = Z.clientY, I = {
4156
4156
  left: V.offsetLeft,
4157
4157
  top: V.offsetTop,
4158
4158
  height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
4159
4159
  width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
4160
- }, B = Qr(I), ((se = t.onStart) == null ? void 0 : se.call(t, y.value, W)) === !1)
4160
+ }, B = Qr(I), ((se = t.onStart) == null ? void 0 : se.call(t, w.value, W)) === !1)
4161
4161
  return;
4162
4162
  let re = W.target;
4163
- document.documentElement.style.cursor = C(re.dataset.handle), b = re.dataset.handle, x.push(he("mousemove", g)), x.push(he("mouseup", f)), x.push(he("touchmove", g)), x.push(he("touchend", f)), U(W);
4163
+ document.documentElement.style.cursor = P(re.dataset.handle), y = re.dataset.handle, N.push(he("mousemove", g)), N.push(he("mouseup", f)), N.push(he("touchmove", g)), N.push(he("touchend", f)), U(W);
4164
4164
  }
4165
4165
  function g(W) {
4166
4166
  const H = ae(e);
4167
4167
  if (!H)
4168
4168
  return;
4169
4169
  const V = H.$el, Z = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
4170
- let re = Z.clientX - y.value.x, se = Z.clientY - y.value.y;
4170
+ let re = Z.clientX - w.value.x, se = Z.clientY - w.value.y;
4171
4171
  const me = ae(I);
4172
- if (b.includes("t")) {
4173
- const be = Math.min(N, Math.max(S, (me.height ?? 0) - se));
4172
+ if (y.includes("t")) {
4173
+ const be = Math.min(x, Math.max(E, (me.height ?? 0) - se));
4174
4174
  B.height = be, B.top = (me.top ?? 0) + se;
4175
4175
  }
4176
- if (b.includes("b")) {
4177
- const be = Math.min(N, Math.max(S, (me.height ?? 0) + se));
4176
+ if (y.includes("b")) {
4177
+ const be = Math.min(x, Math.max(E, (me.height ?? 0) + se));
4178
4178
  B.height = be;
4179
4179
  }
4180
- if (b.includes("l")) {
4180
+ if (y.includes("l")) {
4181
4181
  const be = Math.min(A, Math.max(o, (me.width ?? 0) - re));
4182
4182
  B.width = be, B.left = (me.left ?? 0) + re;
4183
4183
  }
4184
- if (b.includes("r")) {
4184
+ if (y.includes("r")) {
4185
4185
  const be = Math.min(A, Math.max(o, (me.width ?? 0) + re));
4186
4186
  B.width = be;
4187
4187
  }
4188
4188
  V.dispatchEvent(new CustomEvent("resize")), U(W), J(B);
4189
4189
  }
4190
4190
  function f() {
4191
- document.documentElement.style.cursor = "", b = null, x.forEach((W) => {
4191
+ document.documentElement.style.cursor = "", y = null, N.forEach((W) => {
4192
4192
  W();
4193
- }), x.length = 0;
4193
+ }), N.length = 0;
4194
4194
  }
4195
- function C(W) {
4195
+ function P(W) {
4196
4196
  const H = {
4197
4197
  t: "n",
4198
4198
  r: "e",
@@ -4256,21 +4256,21 @@ function $u(e, t = {}) {
4256
4256
  W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
4257
4257
  }
4258
4258
  function ee(W, H) {
4259
- if (E.value)
4259
+ if (S.value)
4260
4260
  return;
4261
4261
  const V = ae(e);
4262
- V && (_(V, W ?? Qa), G(H), r.push(he(V.$el, "mousedown", D)), r.push(he(V.$el, "touchstart", D)), E.value = !0, a = H);
4262
+ V && (_(V, W ?? Qa), G(H), r.push(he(V.$el, "mousedown", D)), r.push(he(V.$el, "touchstart", D)), S.value = !0, a = H);
4263
4263
  }
4264
4264
  function we(W) {
4265
- if (!E.value)
4265
+ if (!S.value)
4266
4266
  return;
4267
4267
  const H = ae(e);
4268
- H && (P(H), G(W), r.forEach((V) => {
4268
+ H && (L(H), G(W), r.forEach((V) => {
4269
4269
  V();
4270
- }), r.length = 0, E.value = !1);
4270
+ }), r.length = 0, S.value = !1);
4271
4271
  }
4272
4272
  return {
4273
- resizingIsOn: E,
4273
+ resizingIsOn: S,
4274
4274
  turnResizingOn: ee,
4275
4275
  turnResizingOff: we
4276
4276
  };
@@ -4282,16 +4282,16 @@ function Fu(e) {
4282
4282
  function ku(e, t) {
4283
4283
  const a = Y(!1), l = ar(e);
4284
4284
  let s = o(K(e));
4285
- (t == null ? void 0 : t.useTracker) !== !1 && Ae(l, (S) => {
4286
- a.value = o(S) != s;
4285
+ (t == null ? void 0 : t.useTracker) !== !1 && Ae(l, (E) => {
4286
+ a.value = o(E) != s;
4287
4287
  }, { deep: !0 });
4288
- function o(S) {
4289
- const N = Qr(S);
4290
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
4291
- delete N[L];
4292
- }) : t.propsToTrack != null && Object.keys(S).forEach((R) => {
4293
- t.propsToTrack.some((b) => b == R) || delete N[R];
4294
- })), JSON.stringify(N);
4288
+ function o(E) {
4289
+ const x = Qr(E);
4290
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((C) => {
4291
+ delete x[C];
4292
+ }) : t.propsToTrack != null && Object.keys(E).forEach((M) => {
4293
+ t.propsToTrack.some((y) => y == M) || delete x[M];
4294
+ })), JSON.stringify(x);
4295
4295
  }
4296
4296
  function A() {
4297
4297
  s = o(K(l)), a.value = !1;
@@ -4305,23 +4305,39 @@ function ku(e, t) {
4305
4305
  function Vu(e) {
4306
4306
  return {
4307
4307
  install() {
4308
- var A;
4309
- Pa(e);
4310
- const t = Ra(), a = Ya(e);
4311
- Ja(e), (A = e.auth).demo ?? (A.demo = t), e.auth.getAuthItem = a.findItem;
4312
- const l = xa(e.auth), s = Ea({
4313
- auth: l,
4314
- findPath: a.findPath,
4308
+ var y;
4309
+ console.log("core installing");
4310
+ const t = Pa(e);
4311
+ console.log("cosmetics loaded"), console.log(t);
4312
+ const a = Ra();
4313
+ console.log("demo loaded"), console.log(a);
4314
+ const l = Ya(e);
4315
+ console.log("navigation loaded"), console.log(l);
4316
+ const s = Ja(e);
4317
+ console.log("presets loaded"), console.log(s), (y = e.auth).demo ?? (y.demo = a), e.auth.getAuthItem = l.findItem;
4318
+ const o = xa(e.auth);
4319
+ console.log("auth loaded"), console.log(o);
4320
+ const A = Ea({
4321
+ auth: o,
4322
+ findPath: l.findPath,
4315
4323
  useBearerToken: !0
4316
- }), o = Ma({
4317
- getTimeZone: l.getTimeZone
4318
4324
  });
4319
- Ba({
4320
- dates: o
4321
- }), Ka(), qa({
4322
- api: s,
4323
- auth: l
4324
- }), Ia(e.urls);
4325
+ console.log("api loaded"), console.log(A);
4326
+ const E = Ma({
4327
+ getTimeZone: o.getTimeZone
4328
+ });
4329
+ console.log("dates loaded"), console.log(E);
4330
+ const x = Ba({
4331
+ dates: E
4332
+ });
4333
+ console.log("filters loaded"), console.log(x), Ka();
4334
+ const C = qa({
4335
+ api: A,
4336
+ auth: o
4337
+ });
4338
+ console.log("store builder loaded"), console.log(C);
4339
+ const M = Ia(e.urls);
4340
+ console.log("urls loaded"), console.log(M);
4325
4341
  }
4326
4342
  };
4327
4343
  }