bt-core-app 1.4.98 → 1.4.100

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 +830 -821
  2. package/package.json +1 -1
@@ -11,7 +11,7 @@ function pt(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function en(e) {
14
- const t = z([]), l = Ne(), S = Ne(), s = Ne(), g = ee(() => l.value != null);
14
+ const t = z([]), l = Ne(), A = Ne(), s = Ne(), g = ee(() => l.value != null);
15
15
  function I(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
@@ -23,18 +23,18 @@ function en(e) {
23
23
  return t.value.push(h), h.id;
24
24
  }
25
25
  function _(d) {
26
- d != null && (S.value = d.toString());
26
+ d != null && (A.value = d.toString());
27
27
  }
28
- function L() {
29
- S.value = void 0;
28
+ function M() {
29
+ A.value = void 0;
30
30
  }
31
31
  async function $(d, h) {
32
32
  const u = { ...h };
33
33
  u.completionMsg ?? (u.completionMsg = e == null ? void 0 : e.completionMsg), u.confirmationMsg ?? (u.confirmationMsg = e == null ? void 0 : e.confirmationMsg), u.errorMsg ?? (u.errorMsg = e == null ? void 0 : e.errorMsg), u.loadingMsg ?? (u.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), u.requireConfirmation ?? (u.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
34
  const r = C(u.loadingMsg);
35
- let y = null;
35
+ let w = null;
36
36
  try {
37
- return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
37
+ return u.requireConfirmation || u.confirmationMsg, w = await d(), u.completionMsg != null && (s.value = u.completionMsg), w;
38
38
  } catch (D) {
39
39
  if ((e == null ? void 0 : e.onError) != null)
40
40
  e.onError(D);
@@ -50,10 +50,10 @@ function en(e) {
50
50
  return Or(t, (d) => {
51
51
  l.value = d.length > 0 ? d[0].msg : void 0;
52
52
  }, { deep: !0 }), {
53
- actionErrorMsg: S,
53
+ actionErrorMsg: A,
54
54
  actionLoadingMsg: l,
55
55
  actionCompleteMsg: s,
56
- clearErrors: L,
56
+ clearErrors: M,
57
57
  doAction: $,
58
58
  isLoading: g,
59
59
  logError: _
@@ -78,11 +78,11 @@ var Re = function() {
78
78
  };
79
79
  }
80
80
  if (s.length === 1) {
81
- var C = s, _ = g.ignoreCase ? t : e, L = g.cmp || function(d, h) {
81
+ var C = s, _ = g.ignoreCase ? t : e, M = g.cmp || function(d, h) {
82
82
  return d < h ? -1 : d > h ? 1 : 0;
83
83
  };
84
84
  s = function(d, h) {
85
- return L(_(C(d)), _(C(h)));
85
+ return M(_(C(d)), _(C(h)));
86
86
  };
87
87
  }
88
88
  const $ = { "-1": "", desc: "" };
@@ -90,25 +90,25 @@ var Re = function() {
90
90
  return -s(d, h);
91
91
  } : s;
92
92
  }
93
- function S(s, g) {
94
- var I = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), _ = I ? function(L, $) {
95
- return I(L, $) || C(L, $);
93
+ function A(s, g) {
94
+ var I = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), _ = I ? function(M, $) {
95
+ return I(M, $) || C(M, $);
96
96
  } : C;
97
- return _.thenBy = S, _;
97
+ return _.thenBy = A, _;
98
98
  }
99
- return S.firstBy = S, S;
99
+ return A.firstBy = A, A;
100
100
  }();
101
101
  function Ue(e, t) {
102
- let l = e ?? "", S = t ?? "";
102
+ let l = e ?? "", A = t ?? "";
103
103
  if (l.endsWith("/"))
104
104
  do
105
105
  l = l.slice(0, l.length - 1);
106
106
  while (l.endsWith("/"));
107
- if (S.startsWith("/"))
107
+ if (A.startsWith("/"))
108
108
  do
109
- S = S.slice(1, S.length);
110
- while (S.startsWith("/"));
111
- return `${l}/${S}`;
109
+ A = A.slice(1, A.length);
110
+ while (A.startsWith("/"));
111
+ return `${l}/${A}`;
112
112
  }
113
113
  function Zn(e) {
114
114
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
@@ -159,13 +159,13 @@ function rt(e, t = !1) {
159
159
  }
160
160
  function On(e, t, l) {
161
161
  if (e) {
162
- var S = new Image();
163
- S.onload = t, S.onerror = l, S.src = e;
162
+ var A = new Image();
163
+ A.onload = t, A.onerror = l, A.src = e;
164
164
  }
165
165
  }
166
166
  async function pn(e, t = !0) {
167
- return new Promise((l, S) => {
168
- e == null && S("no url given");
167
+ return new Promise((l, A) => {
168
+ e == null && A("no url given");
169
169
  var s = new Image();
170
170
  s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
171
171
  var g = document.createElement("canvas");
@@ -173,7 +173,7 @@ async function pn(e, t = !0) {
173
173
  var I = g.getContext("2d");
174
174
  I == null || I.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
175
175
  }, s.onerror = function() {
176
- console.log("errr"), t ? S("image could not be loaded for some reason") : l(null);
176
+ console.log("errr"), t ? A("image could not be loaded for some reason") : l(null);
177
177
  }, e != null && (s.src = e);
178
178
  });
179
179
  }
@@ -202,19 +202,19 @@ const Ze = [
202
202
  function ra(e) {
203
203
  if (e == null)
204
204
  return 0;
205
- const t = e.replaceAll(" ", "").split(",").map((S) => S.toLowerCase()), l = Ze.filter((S) => S.values.some((s) => t.some((g) => s == g))).map((S) => S.value);
205
+ const t = e.replaceAll(" ", "").split(",").map((A) => A.toLowerCase()), l = Ze.filter((A) => A.values.some((s) => t.some((g) => s == g))).map((A) => A.value);
206
206
  return l.length == 0 ? 8 : Math.min(...l);
207
207
  }
208
208
  function ta(e) {
209
209
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
210
- let l = Ze.find((S) => S.values.some((s) => s == t));
210
+ let l = Ze.find((A) => A.values.some((s) => s == t));
211
211
  return l != null ? l.short : "";
212
212
  }).filter((t) => t != null && t.length > 0).toString();
213
213
  }
214
214
  function na(e, t) {
215
215
  if (e == null || t == null)
216
216
  return !0;
217
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), S = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((I) => I == S));
217
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), A = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((I) => I == A));
218
218
  return s != null && l.some((g) => g == s.short || s.values.some((I) => I == g));
219
219
  }
220
220
  function aa(e, t) {
@@ -222,13 +222,13 @@ function aa(e, t) {
222
222
  return e;
223
223
  let l = e ?? "";
224
224
  l = `${l},${t}`;
225
- let S = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((I) => I == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
- return S.length > 0 ? S : void 0;
225
+ let A = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((I) => I == s))).filter((s) => s != null).sort(Re.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
226
+ return A.length > 0 ? A : void 0;
227
227
  }
228
228
  function la(e, t) {
229
229
  if (t == null || e == null)
230
230
  return e;
231
- let l = e ?? "", S = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((I) => I.values.some((C) => C == g && C != S))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
231
+ let l = e ?? "", A = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((I) => I.values.some((C) => C == g && C != A))).filter((g) => g != null).sort(Re.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
232
232
  return s.length > 0 ? s : void 0;
233
233
  }
234
234
  function ua(e, t) {
@@ -247,38 +247,38 @@ function ln() {
247
247
  return "0001-01-01T00:00:00Z";
248
248
  }
249
249
  function ca(e, t) {
250
- let l = "1", S = 0;
251
- if (S < t)
250
+ let l = "1", A = 0;
251
+ if (A < t)
252
252
  do
253
- l = l + "0", S += 1;
254
- while (S < t);
253
+ l = l + "0", A += 1;
254
+ while (A < t);
255
255
  let s = Number.parseInt(l);
256
256
  return Math.round(e * s) / s;
257
257
  }
258
258
  function fa(e, t) {
259
259
  let l = e ?? "";
260
- return t != null && (un(l, t) ? l = l.split(",").filter((S) => S != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
260
+ return t != null && (un(l, t) ? l = l.split(",").filter((A) => A != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
261
261
  }
262
262
  function un(e, t) {
263
263
  if (e == null || e.length == 0)
264
264
  return !1;
265
265
  if (!t)
266
266
  return !0;
267
- var l = e.split(","), S = t.split(",");
268
- return l.some((s) => S.some((g) => g == s));
267
+ var l = e.split(","), A = t.split(",");
268
+ return l.some((s) => A.some((g) => g == s));
269
269
  }
270
270
  function Nr(e) {
271
271
  if (!e)
272
272
  return e;
273
273
  let t, l = Array.isArray(e) ? [] : {};
274
- for (const S in e)
275
- t = e[S], l[S] = typeof t == "object" ? Nr(t) : t;
274
+ for (const A in e)
275
+ t = e[A], l[A] = typeof t == "object" ? Nr(t) : t;
276
276
  return l;
277
277
  }
278
278
  function cn(e) {
279
279
  return e && Object.keys(e).sort().reduce(function(t, l) {
280
- let S = e[l];
281
- return t[l] = typeof S == "object" && S !== null ? cn(S) : S, t;
280
+ let A = e[l];
281
+ return t[l] = typeof A == "object" && A !== null ? cn(A) : A, t;
282
282
  }, Array.isArray(e) ? [] : {});
283
283
  }
284
284
  function fn(e, t) {
@@ -288,17 +288,17 @@ function tt(e, t = (l) => l) {
288
288
  if (e == null)
289
289
  return [];
290
290
  const l = Array.isArray(e) ? e : t(e);
291
- return _e(l) ? [...l.reduce((S, s) => {
292
- S.push(s);
291
+ return _e(l) ? [...l.reduce((A, s) => {
292
+ A.push(s);
293
293
  const g = tt(s, t);
294
- return _e(g) && S.push(...g), S;
294
+ return _e(g) && A.push(...g), A;
295
295
  }, [])] : [];
296
296
  }
297
297
  function sa(e) {
298
- const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), S = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
298
+ const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), A = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
299
299
  for (let g = 0; g < l.length; g++)
300
300
  s[g] = l.charCodeAt(g);
301
- return new Blob([s], { type: S });
301
+ return new Blob([s], { type: A });
302
302
  }
303
303
  function sn(e) {
304
304
  var t = "";
@@ -324,8 +324,8 @@ function dn(e, t, l) {
324
324
  return !1;
325
325
  for (let s = 0; s < l.length; s++) {
326
326
  const g = l[s];
327
- var S = Sr(e, g);
328
- if (S != null && typeof S == "string" && fn(S, t))
327
+ var A = Sr(e, g);
328
+ if (A != null && typeof A == "string" && fn(A, t))
329
329
  return !0;
330
330
  }
331
331
  return !1;
@@ -342,8 +342,8 @@ function Sr(e, t) {
342
342
  if (e == null || e == null || !t)
343
343
  return null;
344
344
  var l = t.split(".");
345
- let S = l.length;
346
- for (var s = e, g = 0; g < S; g++)
345
+ let A = l.length;
346
+ for (var s = e, g = 0; g < A; g++)
347
347
  if (s = s[l[g]], s == null)
348
348
  return null;
349
349
  return s;
@@ -368,35 +368,35 @@ var nt = { exports: {} };
368
368
  (function(l) {
369
369
  e.exports = l();
370
370
  })(function() {
371
- return function l(S, s, g) {
372
- function I(L, $) {
373
- if (!s[L]) {
374
- if (!S[L]) {
371
+ return function l(A, s, g) {
372
+ function I(M, $) {
373
+ if (!s[M]) {
374
+ if (!A[M]) {
375
375
  var d = typeof Oe == "function" && Oe;
376
376
  if (!$ && d)
377
- return d(L, !0);
377
+ return d(M, !0);
378
378
  if (C)
379
- return C(L, !0);
380
- var h = new Error("Cannot find module '" + L + "'");
379
+ return C(M, !0);
380
+ var h = new Error("Cannot find module '" + M + "'");
381
381
  throw h.code = "MODULE_NOT_FOUND", h;
382
382
  }
383
- var u = s[L] = { exports: {} };
384
- S[L][0].call(u.exports, function(r) {
385
- var y = S[L][1][r];
386
- return I(y || r);
387
- }, u, u.exports, l, S, s, g);
383
+ var u = s[M] = { exports: {} };
384
+ A[M][0].call(u.exports, function(r) {
385
+ var w = A[M][1][r];
386
+ return I(w || r);
387
+ }, u, u.exports, l, A, s, g);
388
388
  }
389
- return s[L].exports;
389
+ return s[M].exports;
390
390
  }
391
391
  for (var C = typeof Oe == "function" && Oe, _ = 0; _ < g.length; _++)
392
392
  I(g[_]);
393
393
  return I;
394
- }({ 1: [function(l, S, s) {
394
+ }({ 1: [function(l, A, s) {
395
395
  (function(g) {
396
396
  var I = g.MutationObserver || g.WebKitMutationObserver, C;
397
397
  if (I) {
398
- var _ = 0, L = new I(r), $ = g.document.createTextNode("");
399
- L.observe($, {
398
+ var _ = 0, M = new I(r), $ = g.document.createTextNode("");
399
+ M.observe($, {
400
400
  characterData: !0
401
401
  }), C = function() {
402
402
  $.data = _ = ++_ % 2;
@@ -425,160 +425,160 @@ var nt = { exports: {} };
425
425
  }
426
426
  h = !1;
427
427
  }
428
- S.exports = y;
429
- function y(D) {
428
+ A.exports = w;
429
+ function w(D) {
430
430
  u.push(D) === 1 && !h && C();
431
431
  }
432
432
  }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
433
- }, {}], 2: [function(l, S, s) {
433
+ }, {}], 2: [function(l, A, s) {
434
434
  var g = l(1);
435
435
  function I() {
436
436
  }
437
- var C = {}, _ = ["REJECTED"], L = ["FULFILLED"], $ = ["PENDING"];
438
- S.exports = d;
439
- function d(b) {
440
- if (typeof b != "function")
437
+ var C = {}, _ = ["REJECTED"], M = ["FULFILLED"], $ = ["PENDING"];
438
+ A.exports = d;
439
+ function d(S) {
440
+ if (typeof S != "function")
441
441
  throw new TypeError("resolver must be a function");
442
- this.state = $, this.queue = [], this.outcome = void 0, b !== I && y(this, b);
442
+ this.state = $, this.queue = [], this.outcome = void 0, S !== I && w(this, S);
443
443
  }
444
- d.prototype.catch = function(b) {
445
- return this.then(null, b);
446
- }, d.prototype.then = function(b, T) {
447
- if (typeof b != "function" && this.state === L || typeof T != "function" && this.state === _)
444
+ d.prototype.catch = function(S) {
445
+ return this.then(null, S);
446
+ }, d.prototype.then = function(S, T) {
447
+ if (typeof S != "function" && this.state === M || typeof T != "function" && this.state === _)
448
448
  return this;
449
449
  var x = new this.constructor(I);
450
450
  if (this.state !== $) {
451
- var P = this.state === L ? b : T;
452
- u(x, P, this.outcome);
451
+ var L = this.state === M ? S : T;
452
+ u(x, L, this.outcome);
453
453
  } else
454
- this.queue.push(new h(x, b, T));
454
+ this.queue.push(new h(x, S, T));
455
455
  return x;
456
456
  };
457
- function h(b, T, x) {
458
- this.promise = b, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
457
+ function h(S, T, x) {
458
+ this.promise = S, typeof T == "function" && (this.onFulfilled = T, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
459
459
  }
460
- h.prototype.callFulfilled = function(b) {
461
- C.resolve(this.promise, b);
462
- }, h.prototype.otherCallFulfilled = function(b) {
463
- u(this.promise, this.onFulfilled, b);
464
- }, h.prototype.callRejected = function(b) {
465
- C.reject(this.promise, b);
466
- }, h.prototype.otherCallRejected = function(b) {
467
- u(this.promise, this.onRejected, b);
460
+ h.prototype.callFulfilled = function(S) {
461
+ C.resolve(this.promise, S);
462
+ }, h.prototype.otherCallFulfilled = function(S) {
463
+ u(this.promise, this.onFulfilled, S);
464
+ }, h.prototype.callRejected = function(S) {
465
+ C.reject(this.promise, S);
466
+ }, h.prototype.otherCallRejected = function(S) {
467
+ u(this.promise, this.onRejected, S);
468
468
  };
469
- function u(b, T, x) {
469
+ function u(S, T, x) {
470
470
  g(function() {
471
- var P;
471
+ var L;
472
472
  try {
473
- P = T(x);
473
+ L = T(x);
474
474
  } catch (f) {
475
- return C.reject(b, f);
475
+ return C.reject(S, f);
476
476
  }
477
- P === b ? C.reject(b, new TypeError("Cannot resolve promise with itself")) : C.resolve(b, P);
477
+ L === S ? C.reject(S, new TypeError("Cannot resolve promise with itself")) : C.resolve(S, L);
478
478
  });
479
479
  }
480
- C.resolve = function(b, T) {
480
+ C.resolve = function(S, T) {
481
481
  var x = D(r, T);
482
482
  if (x.status === "error")
483
- return C.reject(b, x.value);
484
- var P = x.value;
485
- if (P)
486
- y(b, P);
483
+ return C.reject(S, x.value);
484
+ var L = x.value;
485
+ if (L)
486
+ w(S, L);
487
487
  else {
488
- b.state = L, b.outcome = T;
489
- for (var f = -1, A = b.queue.length; ++f < A; )
490
- b.queue[f].callFulfilled(T);
488
+ S.state = M, S.outcome = T;
489
+ for (var f = -1, y = S.queue.length; ++f < y; )
490
+ S.queue[f].callFulfilled(T);
491
491
  }
492
- return b;
493
- }, C.reject = function(b, T) {
494
- b.state = _, b.outcome = T;
495
- for (var x = -1, P = b.queue.length; ++x < P; )
496
- b.queue[x].callRejected(T);
497
- return b;
492
+ return S;
493
+ }, C.reject = function(S, T) {
494
+ S.state = _, S.outcome = T;
495
+ for (var x = -1, L = S.queue.length; ++x < L; )
496
+ S.queue[x].callRejected(T);
497
+ return S;
498
498
  };
499
- function r(b) {
500
- var T = b && b.then;
501
- if (b && (typeof b == "object" || typeof b == "function") && typeof T == "function")
499
+ function r(S) {
500
+ var T = S && S.then;
501
+ if (S && (typeof S == "object" || typeof S == "function") && typeof T == "function")
502
502
  return function() {
503
- T.apply(b, arguments);
503
+ T.apply(S, arguments);
504
504
  };
505
505
  }
506
- function y(b, T) {
506
+ function w(S, T) {
507
507
  var x = !1;
508
- function P(X) {
509
- x || (x = !0, C.reject(b, X));
508
+ function L(X) {
509
+ x || (x = !0, C.reject(S, X));
510
510
  }
511
511
  function f(X) {
512
- x || (x = !0, C.resolve(b, X));
512
+ x || (x = !0, C.resolve(S, X));
513
513
  }
514
- function A() {
515
- T(f, P);
514
+ function y() {
515
+ T(f, L);
516
516
  }
517
- var j = D(A);
518
- j.status === "error" && P(j.value);
517
+ var J = D(y);
518
+ J.status === "error" && L(J.value);
519
519
  }
520
- function D(b, T) {
520
+ function D(S, T) {
521
521
  var x = {};
522
522
  try {
523
- x.value = b(T), x.status = "success";
524
- } catch (P) {
525
- x.status = "error", x.value = P;
523
+ x.value = S(T), x.status = "success";
524
+ } catch (L) {
525
+ x.status = "error", x.value = L;
526
526
  }
527
527
  return x;
528
528
  }
529
529
  d.resolve = i;
530
- function i(b) {
531
- return b instanceof this ? b : C.resolve(new this(I), b);
530
+ function i(S) {
531
+ return S instanceof this ? S : C.resolve(new this(I), S);
532
532
  }
533
533
  d.reject = E;
534
- function E(b) {
534
+ function E(S) {
535
535
  var T = new this(I);
536
- return C.reject(T, b);
536
+ return C.reject(T, S);
537
537
  }
538
- d.all = w;
539
- function w(b) {
538
+ d.all = b;
539
+ function b(S) {
540
540
  var T = this;
541
- if (Object.prototype.toString.call(b) !== "[object Array]")
541
+ if (Object.prototype.toString.call(S) !== "[object Array]")
542
542
  return this.reject(new TypeError("must be an array"));
543
- var x = b.length, P = !1;
543
+ var x = S.length, L = !1;
544
544
  if (!x)
545
545
  return this.resolve([]);
546
- for (var f = new Array(x), A = 0, j = -1, X = new this(I); ++j < x; )
547
- re(b[j], j);
546
+ for (var f = new Array(x), y = 0, J = -1, X = new this(I); ++J < x; )
547
+ re(S[J], J);
548
548
  return X;
549
549
  function re(ue, be) {
550
550
  T.resolve(ue).then(G, function(Y) {
551
- P || (P = !0, C.reject(X, Y));
551
+ L || (L = !0, C.reject(X, Y));
552
552
  });
553
553
  function G(Y) {
554
- f[be] = Y, ++A === x && !P && (P = !0, C.resolve(X, f));
554
+ f[be] = Y, ++y === x && !L && (L = !0, C.resolve(X, f));
555
555
  }
556
556
  }
557
557
  }
558
558
  d.race = N;
559
- function N(b) {
559
+ function N(S) {
560
560
  var T = this;
561
- if (Object.prototype.toString.call(b) !== "[object Array]")
561
+ if (Object.prototype.toString.call(S) !== "[object Array]")
562
562
  return this.reject(new TypeError("must be an array"));
563
- var x = b.length, P = !1;
563
+ var x = S.length, L = !1;
564
564
  if (!x)
565
565
  return this.resolve([]);
566
- for (var f = -1, A = new this(I); ++f < x; )
567
- j(b[f]);
568
- return A;
569
- function j(X) {
566
+ for (var f = -1, y = new this(I); ++f < x; )
567
+ J(S[f]);
568
+ return y;
569
+ function J(X) {
570
570
  T.resolve(X).then(function(re) {
571
- P || (P = !0, C.resolve(A, re));
571
+ L || (L = !0, C.resolve(y, re));
572
572
  }, function(re) {
573
- P || (P = !0, C.reject(A, re));
573
+ L || (L = !0, C.reject(y, re));
574
574
  });
575
575
  }
576
576
  }
577
- }, { 1: 1 }], 3: [function(l, S, s) {
577
+ }, { 1: 1 }], 3: [function(l, A, s) {
578
578
  (function(g) {
579
579
  typeof g.Promise != "function" && (g.Promise = l(2));
580
580
  }).call(this, typeof Xe < "u" ? Xe : typeof self < "u" ? self : typeof window < "u" ? window : {});
581
- }, { 2: 2 }], 4: [function(l, S, s) {
581
+ }, { 2: 2 }], 4: [function(l, A, s) {
582
582
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
583
583
  return typeof n;
584
584
  } : function(n) {
@@ -605,7 +605,7 @@ var nt = { exports: {} };
605
605
  }
606
606
  }
607
607
  var _ = C();
608
- function L() {
608
+ function M() {
609
609
  try {
610
610
  if (!_ || !_.open)
611
611
  return !1;
@@ -646,11 +646,11 @@ var nt = { exports: {} };
646
646
  function r(n) {
647
647
  return typeof n != "string" && (console.warn(n + " used as a key, but it is not a string."), n = String(n)), n;
648
648
  }
649
- function y() {
649
+ function w() {
650
650
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
651
651
  return arguments[arguments.length - 1];
652
652
  }
653
- var D = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, N = "readonly", b = "readwrite";
653
+ var D = "local-forage-detect-blob-support", i = void 0, E = {}, b = Object.prototype.toString, N = "readonly", S = "readwrite";
654
654
  function T(n) {
655
655
  for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
656
656
  m[v] = n.charCodeAt(v);
@@ -658,7 +658,7 @@ var nt = { exports: {} };
658
658
  }
659
659
  function x(n) {
660
660
  return new d(function(c) {
661
- var a = n.transaction(D, b), m = $([""]);
661
+ var a = n.transaction(D, S), m = $([""]);
662
662
  a.objectStore(D).put(m, "key"), a.onabort = function(v) {
663
663
  v.preventDefault(), v.stopPropagation(), c(!1);
664
664
  }, a.oncomplete = function() {
@@ -669,7 +669,7 @@ var nt = { exports: {} };
669
669
  return !1;
670
670
  });
671
671
  }
672
- function P(n) {
672
+ function L(n) {
673
673
  return typeof i == "boolean" ? d.resolve(i) : x(n).then(function(c) {
674
674
  return i = c, i;
675
675
  });
@@ -682,12 +682,12 @@ var nt = { exports: {} };
682
682
  return a.promise;
683
683
  }) : c.dbReady = a.promise;
684
684
  }
685
- function A(n) {
685
+ function y(n) {
686
686
  var c = E[n.name], a = c.deferredOperations.pop();
687
687
  if (a)
688
688
  return a.resolve(), a.promise;
689
689
  }
690
- function j(n, c) {
690
+ function J(n, c) {
691
691
  var a = E[n.name], m = a.deferredOperations.pop();
692
692
  if (m)
693
693
  return m.reject(c), m.promise;
@@ -702,23 +702,23 @@ var nt = { exports: {} };
702
702
  var v = [n.name];
703
703
  c && v.push(n.version);
704
704
  var o = _.open.apply(_, v);
705
- c && (o.onupgradeneeded = function(M) {
705
+ c && (o.onupgradeneeded = function(P) {
706
706
  var R = o.result;
707
707
  try {
708
- R.createObjectStore(n.storeName), M.oldVersion <= 1 && R.createObjectStore(D);
708
+ R.createObjectStore(n.storeName), P.oldVersion <= 1 && R.createObjectStore(D);
709
709
  } catch (B) {
710
710
  if (B.name === "ConstraintError")
711
- console.warn('The database "' + n.name + '" has been upgraded from version ' + M.oldVersion + " to version " + M.newVersion + ', but the storage "' + n.storeName + '" already exists.');
711
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + P.oldVersion + " to version " + P.newVersion + ', but the storage "' + n.storeName + '" already exists.');
712
712
  else
713
713
  throw B;
714
714
  }
715
- }), o.onerror = function(M) {
716
- M.preventDefault(), m(o.error);
715
+ }), o.onerror = function(P) {
716
+ P.preventDefault(), m(o.error);
717
717
  }, o.onsuccess = function() {
718
- var M = o.result;
719
- M.onversionchange = function(R) {
718
+ var P = o.result;
719
+ P.onversionchange = function(R) {
720
720
  R.target.close();
721
- }, a(M), A(n);
721
+ }, a(P), y(n);
722
722
  };
723
723
  });
724
724
  }
@@ -779,10 +779,10 @@ var nt = { exports: {} };
779
779
  return n.db = o, be(n) ? ue(n) : o;
780
780
  }).then(function(o) {
781
781
  n.db = c.db = o;
782
- for (var M = 0; M < a.length; M++)
783
- a[M]._dbInfo.db = o;
782
+ for (var P = 0; P < a.length; P++)
783
+ a[P]._dbInfo.db = o;
784
784
  }).catch(function(o) {
785
- throw j(n, o), o;
785
+ throw J(n, o), o;
786
786
  });
787
787
  }
788
788
  function W(n, c, a, m) {
@@ -825,12 +825,12 @@ var nt = { exports: {} };
825
825
  var v = E[a.name];
826
826
  v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ie);
827
827
  var o = [];
828
- function M() {
828
+ function P() {
829
829
  return d.resolve();
830
830
  }
831
831
  for (var R = 0; R < v.forages.length; R++) {
832
832
  var B = v.forages[R];
833
- B !== c && o.push(B._initReady().catch(M));
833
+ B !== c && o.push(B._initReady().catch(P));
834
834
  }
835
835
  var F = v.forages.slice(0);
836
836
  return d.all(o).then(function() {
@@ -840,8 +840,8 @@ var nt = { exports: {} };
840
840
  }).then(function(k) {
841
841
  a.db = v.db = k, c._dbInfo = a;
842
842
  for (var q = 0; q < F.length; q++) {
843
- var J = F[q];
844
- J !== c && (J._dbInfo.db = a.db, J._dbInfo.version = a.version);
843
+ var j = F[q];
844
+ j !== c && (j._dbInfo.db = a.db, j._dbInfo.version = a.version);
845
845
  }
846
846
  });
847
847
  }
@@ -850,9 +850,9 @@ var nt = { exports: {} };
850
850
  n = r(n);
851
851
  var m = new d(function(v, o) {
852
852
  a.ready().then(function() {
853
- W(a._dbInfo, N, function(M, R) {
854
- if (M)
855
- return o(M);
853
+ W(a._dbInfo, N, function(P, R) {
854
+ if (P)
855
+ return o(P);
856
856
  try {
857
857
  var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
858
858
  F.onsuccess = function() {
@@ -872,17 +872,17 @@ var nt = { exports: {} };
872
872
  function ge(n, c) {
873
873
  var a = this, m = new d(function(v, o) {
874
874
  a.ready().then(function() {
875
- W(a._dbInfo, N, function(M, R) {
876
- if (M)
877
- return o(M);
875
+ W(a._dbInfo, N, function(P, R) {
876
+ if (P)
877
+ return o(P);
878
878
  try {
879
879
  var B = R.objectStore(a._dbInfo.storeName), F = B.openCursor(), k = 1;
880
880
  F.onsuccess = function() {
881
881
  var q = F.result;
882
882
  if (q) {
883
- var J = q.value;
884
- H(J) && (J = Y(J));
885
- var p = n(J, q.key, k++);
883
+ var j = q.value;
884
+ H(j) && (j = Y(j));
885
+ var p = n(j, q.key, k++);
886
886
  p !== void 0 ? v(p) : q.continue();
887
887
  } else
888
888
  v();
@@ -900,31 +900,31 @@ var nt = { exports: {} };
900
900
  function Be(n, c, a) {
901
901
  var m = this;
902
902
  n = r(n);
903
- var v = new d(function(o, M) {
903
+ var v = new d(function(o, P) {
904
904
  var R;
905
905
  m.ready().then(function() {
906
- return R = m._dbInfo, w.call(c) === "[object Blob]" ? P(R.db).then(function(B) {
906
+ return R = m._dbInfo, b.call(c) === "[object Blob]" ? L(R.db).then(function(B) {
907
907
  return B ? c : G(c);
908
908
  }) : c;
909
909
  }).then(function(B) {
910
- W(m._dbInfo, b, function(F, k) {
910
+ W(m._dbInfo, S, function(F, k) {
911
911
  if (F)
912
- return M(F);
912
+ return P(F);
913
913
  try {
914
914
  var q = k.objectStore(m._dbInfo.storeName);
915
915
  B === null && (B = void 0);
916
- var J = q.put(B, n);
916
+ var j = q.put(B, n);
917
917
  k.oncomplete = function() {
918
918
  B === void 0 && (B = null), o(B);
919
919
  }, k.onabort = k.onerror = function() {
920
- var p = J.error ? J.error : J.transaction.error;
921
- M(p);
920
+ var p = j.error ? j.error : j.transaction.error;
921
+ P(p);
922
922
  };
923
923
  } catch (p) {
924
- M(p);
924
+ P(p);
925
925
  }
926
926
  });
927
- }).catch(M);
927
+ }).catch(P);
928
928
  });
929
929
  return h(v, a), v;
930
930
  }
@@ -933,9 +933,9 @@ var nt = { exports: {} };
933
933
  n = r(n);
934
934
  var m = new d(function(v, o) {
935
935
  a.ready().then(function() {
936
- W(a._dbInfo, b, function(M, R) {
937
- if (M)
938
- return o(M);
936
+ W(a._dbInfo, S, function(P, R) {
937
+ if (P)
938
+ return o(P);
939
939
  try {
940
940
  var B = R.objectStore(a._dbInfo.storeName), F = B.delete(n);
941
941
  R.oncomplete = function() {
@@ -957,14 +957,14 @@ var nt = { exports: {} };
957
957
  function Fe(n) {
958
958
  var c = this, a = new d(function(m, v) {
959
959
  c.ready().then(function() {
960
- W(c._dbInfo, b, function(o, M) {
960
+ W(c._dbInfo, S, function(o, P) {
961
961
  if (o)
962
962
  return v(o);
963
963
  try {
964
- var R = M.objectStore(c._dbInfo.storeName), B = R.clear();
965
- M.oncomplete = function() {
964
+ var R = P.objectStore(c._dbInfo.storeName), B = R.clear();
965
+ P.oncomplete = function() {
966
966
  m();
967
- }, M.onabort = M.onerror = function() {
967
+ }, P.onabort = P.onerror = function() {
968
968
  var F = B.error ? B.error : B.transaction.error;
969
969
  v(F);
970
970
  };
@@ -979,11 +979,11 @@ var nt = { exports: {} };
979
979
  function tr(n) {
980
980
  var c = this, a = new d(function(m, v) {
981
981
  c.ready().then(function() {
982
- W(c._dbInfo, N, function(o, M) {
982
+ W(c._dbInfo, N, function(o, P) {
983
983
  if (o)
984
984
  return v(o);
985
985
  try {
986
- var R = M.objectStore(c._dbInfo.storeName), B = R.count();
986
+ var R = P.objectStore(c._dbInfo.storeName), B = R.count();
987
987
  B.onsuccess = function() {
988
988
  m(B.result);
989
989
  }, B.onerror = function() {
@@ -1004,9 +1004,9 @@ var nt = { exports: {} };
1004
1004
  return;
1005
1005
  }
1006
1006
  a.ready().then(function() {
1007
- W(a._dbInfo, N, function(M, R) {
1008
- if (M)
1009
- return o(M);
1007
+ W(a._dbInfo, N, function(P, R) {
1008
+ if (P)
1009
+ return o(P);
1010
1010
  try {
1011
1011
  var B = R.objectStore(a._dbInfo.storeName), F = !1, k = B.openKeyCursor();
1012
1012
  k.onsuccess = function() {
@@ -1030,11 +1030,11 @@ var nt = { exports: {} };
1030
1030
  function Ce(n) {
1031
1031
  var c = this, a = new d(function(m, v) {
1032
1032
  c.ready().then(function() {
1033
- W(c._dbInfo, N, function(o, M) {
1033
+ W(c._dbInfo, N, function(o, P) {
1034
1034
  if (o)
1035
1035
  return v(o);
1036
1036
  try {
1037
- var R = M.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1037
+ var R = P.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1038
1038
  B.onsuccess = function() {
1039
1039
  var k = B.result;
1040
1040
  if (!k) {
@@ -1054,29 +1054,29 @@ var nt = { exports: {} };
1054
1054
  return h(a, n), a;
1055
1055
  }
1056
1056
  function ar(n, c) {
1057
- c = y.apply(this, arguments);
1057
+ c = w.apply(this, arguments);
1058
1058
  var a = this.config();
1059
1059
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1060
1060
  var m = this, v;
1061
1061
  if (!n.name)
1062
1062
  v = d.reject("Invalid arguments");
1063
1063
  else {
1064
- var o = n.name === a.name && m._dbInfo.db, M = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1064
+ var o = n.name === a.name && m._dbInfo.db, P = o ? d.resolve(m._dbInfo.db) : re(n).then(function(R) {
1065
1065
  var B = E[n.name], F = B.forages;
1066
1066
  B.db = R;
1067
1067
  for (var k = 0; k < F.length; k++)
1068
1068
  F[k]._dbInfo.db = R;
1069
1069
  return R;
1070
1070
  });
1071
- n.storeName ? v = M.then(function(R) {
1071
+ n.storeName ? v = P.then(function(R) {
1072
1072
  if (R.objectStoreNames.contains(n.storeName)) {
1073
1073
  var B = R.version + 1;
1074
1074
  f(n);
1075
1075
  var F = E[n.name], k = F.forages;
1076
1076
  R.close();
1077
1077
  for (var q = 0; q < k.length; q++) {
1078
- var J = k[q];
1079
- J._dbInfo.db = null, J._dbInfo.version = B;
1078
+ var j = k[q];
1079
+ j._dbInfo.db = null, j._dbInfo.version = B;
1080
1080
  }
1081
1081
  var p = new d(function(te, fe) {
1082
1082
  var ae = _.open(n.name, B);
@@ -1095,14 +1095,14 @@ var nt = { exports: {} };
1095
1095
  F.db = te;
1096
1096
  for (var fe = 0; fe < k.length; fe++) {
1097
1097
  var ae = k[fe];
1098
- ae._dbInfo.db = te, A(ae._dbInfo);
1098
+ ae._dbInfo.db = te, y(ae._dbInfo);
1099
1099
  }
1100
1100
  }).catch(function(te) {
1101
- throw (j(n, te) || d.resolve()).catch(function() {
1101
+ throw (J(n, te) || d.resolve()).catch(function() {
1102
1102
  }), te;
1103
1103
  });
1104
1104
  }
1105
- }) : v = M.then(function(R) {
1105
+ }) : v = P.then(function(R) {
1106
1106
  f(n);
1107
1107
  var B = E[n.name], F = B.forages;
1108
1108
  R.close();
@@ -1110,7 +1110,7 @@ var nt = { exports: {} };
1110
1110
  var q = F[k];
1111
1111
  q._dbInfo.db = null;
1112
1112
  }
1113
- var J = new d(function(p, te) {
1113
+ var j = new d(function(p, te) {
1114
1114
  var fe = _.deleteDatabase(n.name);
1115
1115
  fe.onerror = function() {
1116
1116
  var ae = fe.result;
@@ -1122,14 +1122,14 @@ var nt = { exports: {} };
1122
1122
  ae && ae.close(), p(ae);
1123
1123
  };
1124
1124
  });
1125
- return J.then(function(p) {
1125
+ return j.then(function(p) {
1126
1126
  B.db = p;
1127
1127
  for (var te = 0; te < F.length; te++) {
1128
1128
  var fe = F[te];
1129
- A(fe._dbInfo);
1129
+ y(fe._dbInfo);
1130
1130
  }
1131
1131
  }).catch(function(p) {
1132
- throw (j(n, p) || d.resolve()).catch(function() {
1132
+ throw (J(n, p) || d.resolve()).catch(function() {
1133
1133
  }), p;
1134
1134
  });
1135
1135
  });
@@ -1139,7 +1139,7 @@ var nt = { exports: {} };
1139
1139
  var lr = {
1140
1140
  _driver: "asyncStorage",
1141
1141
  _initStorage: ce,
1142
- _support: L(),
1142
+ _support: M(),
1143
1143
  iterate: ge,
1144
1144
  getItem: se,
1145
1145
  setItem: Be,
@@ -1155,11 +1155,11 @@ var nt = { exports: {} };
1155
1155
  }
1156
1156
  var Se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Je = /^~~local_forage_type~([^~]+)~/, ke = "__lfsc__:", Pe = ke.length, qe = "arbf", Ie = "blob", je = "si08", Ke = "ui08", He = "uic8", Ve = "si16", U = "si32", K = "ur16", V = "ui32", O = "fl32", de = "fl64", ye = Pe + qe.length, De = Object.prototype.toString;
1157
1157
  function Ae(n) {
1158
- var c = n.length * 0.75, a = n.length, m, v = 0, o, M, R, B;
1158
+ var c = n.length * 0.75, a = n.length, m, v = 0, o, P, R, B;
1159
1159
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
1160
1160
  var F = new ArrayBuffer(c), k = new Uint8Array(F);
1161
1161
  for (m = 0; m < a; m += 4)
1162
- o = Se.indexOf(n[m]), M = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | M >> 4, k[v++] = (M & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1162
+ o = Se.indexOf(n[m]), P = Se.indexOf(n[m + 1]), R = Se.indexOf(n[m + 2]), B = Se.indexOf(n[m + 3]), k[v++] = o << 2 | P >> 4, k[v++] = (P & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1163
1163
  return F;
1164
1164
  }
1165
1165
  function oe(n) {
@@ -1176,14 +1176,14 @@ var nt = { exports: {} };
1176
1176
  } else if (a === "[object Blob]") {
1177
1177
  var o = new FileReader();
1178
1178
  o.onload = function() {
1179
- var M = ir + n.type + "~" + oe(this.result);
1180
- c(ke + Ie + M);
1179
+ var P = ir + n.type + "~" + oe(this.result);
1180
+ c(ke + Ie + P);
1181
1181
  }, o.readAsArrayBuffer(n);
1182
1182
  } else
1183
1183
  try {
1184
1184
  c(JSON.stringify(n));
1185
- } catch (M) {
1186
- console.error("Couldn't convert value into a JSON string: ", n), c(null, M);
1185
+ } catch (P) {
1186
+ console.error("Couldn't convert value into a JSON string: ", n), c(null, P);
1187
1187
  }
1188
1188
  }
1189
1189
  function ct(n) {
@@ -1238,29 +1238,29 @@ var nt = { exports: {} };
1238
1238
  if (n)
1239
1239
  for (var m in n)
1240
1240
  a[m] = typeof n[m] != "string" ? n[m].toString() : n[m];
1241
- var v = new d(function(o, M) {
1241
+ var v = new d(function(o, P) {
1242
1242
  try {
1243
1243
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
1244
1244
  } catch (R) {
1245
- return M(R);
1245
+ return P(R);
1246
1246
  }
1247
1247
  a.db.transaction(function(R) {
1248
1248
  Rr(R, a, function() {
1249
1249
  c._dbInfo = a, o();
1250
1250
  }, function(B, F) {
1251
- M(F);
1251
+ P(F);
1252
1252
  });
1253
- }, M);
1253
+ }, P);
1254
1254
  });
1255
1255
  return a.serializer = cr, v;
1256
1256
  }
1257
1257
  function xe(n, c, a, m, v, o) {
1258
- n.executeSql(a, m, v, function(M, R) {
1259
- R.code === R.SYNTAX_ERR ? M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1258
+ n.executeSql(a, m, v, function(P, R) {
1259
+ R.code === R.SYNTAX_ERR ? P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1260
1260
  F.rows.length ? o(B, R) : Rr(B, c, function() {
1261
1261
  B.executeSql(a, m, v, o);
1262
1262
  }, o);
1263
- }, o) : o(M, R);
1263
+ }, o) : o(P, R);
1264
1264
  }, o);
1265
1265
  }
1266
1266
  function st(n, c) {
@@ -1268,11 +1268,11 @@ var nt = { exports: {} };
1268
1268
  n = r(n);
1269
1269
  var m = new d(function(v, o) {
1270
1270
  a.ready().then(function() {
1271
- var M = a._dbInfo;
1272
- M.db.transaction(function(R) {
1273
- xe(R, M, "SELECT * FROM " + M.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1271
+ var P = a._dbInfo;
1272
+ P.db.transaction(function(R) {
1273
+ xe(R, P, "SELECT * FROM " + P.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1274
1274
  var k = F.rows.length ? F.rows.item(0).value : null;
1275
- k && (k = M.serializer.deserialize(k)), v(k);
1275
+ k && (k = P.serializer.deserialize(k)), v(k);
1276
1276
  }, function(B, F) {
1277
1277
  o(F);
1278
1278
  });
@@ -1284,12 +1284,12 @@ var nt = { exports: {} };
1284
1284
  function ot(n, c) {
1285
1285
  var a = this, m = new d(function(v, o) {
1286
1286
  a.ready().then(function() {
1287
- var M = a._dbInfo;
1288
- M.db.transaction(function(R) {
1289
- xe(R, M, "SELECT * FROM " + M.storeName, [], function(B, F) {
1290
- for (var k = F.rows, q = k.length, J = 0; J < q; J++) {
1291
- var p = k.item(J), te = p.value;
1292
- if (te && (te = M.serializer.deserialize(te)), te = n(te, p.key, J + 1), te !== void 0) {
1287
+ var P = a._dbInfo;
1288
+ P.db.transaction(function(R) {
1289
+ xe(R, P, "SELECT * FROM " + P.storeName, [], function(B, F) {
1290
+ for (var k = F.rows, q = k.length, j = 0; j < q; j++) {
1291
+ var p = k.item(j), te = p.value;
1292
+ if (te && (te = P.serializer.deserialize(te)), te = n(te, p.key, j + 1), te !== void 0) {
1293
1293
  v(te);
1294
1294
  return;
1295
1295
  }
@@ -1306,24 +1306,24 @@ var nt = { exports: {} };
1306
1306
  function Ur(n, c, a, m) {
1307
1307
  var v = this;
1308
1308
  n = r(n);
1309
- var o = new d(function(M, R) {
1309
+ var o = new d(function(P, R) {
1310
1310
  v.ready().then(function() {
1311
1311
  c === void 0 && (c = null);
1312
1312
  var B = c, F = v._dbInfo;
1313
1313
  F.serializer.serialize(c, function(k, q) {
1314
- q ? R(q) : F.db.transaction(function(J) {
1315
- xe(J, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
- M(B);
1314
+ q ? R(q) : F.db.transaction(function(j) {
1315
+ xe(j, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1316
+ P(B);
1317
1317
  }, function(p, te) {
1318
1318
  R(te);
1319
1319
  });
1320
- }, function(J) {
1321
- if (J.code === J.QUOTA_ERR) {
1320
+ }, function(j) {
1321
+ if (j.code === j.QUOTA_ERR) {
1322
1322
  if (m > 0) {
1323
- M(Ur.apply(v, [n, B, a, m - 1]));
1323
+ P(Ur.apply(v, [n, B, a, m - 1]));
1324
1324
  return;
1325
1325
  }
1326
- R(J);
1326
+ R(j);
1327
1327
  }
1328
1328
  });
1329
1329
  });
@@ -1339,9 +1339,9 @@ var nt = { exports: {} };
1339
1339
  n = r(n);
1340
1340
  var m = new d(function(v, o) {
1341
1341
  a.ready().then(function() {
1342
- var M = a._dbInfo;
1343
- M.db.transaction(function(R) {
1344
- xe(R, M, "DELETE FROM " + M.storeName + " WHERE key = ?", [n], function() {
1342
+ var P = a._dbInfo;
1343
+ P.db.transaction(function(R) {
1344
+ xe(R, P, "DELETE FROM " + P.storeName + " WHERE key = ?", [n], function() {
1345
1345
  v();
1346
1346
  }, function(B, F) {
1347
1347
  o(F);
@@ -1355,8 +1355,8 @@ var nt = { exports: {} };
1355
1355
  var c = this, a = new d(function(m, v) {
1356
1356
  c.ready().then(function() {
1357
1357
  var o = c._dbInfo;
1358
- o.db.transaction(function(M) {
1359
- xe(M, o, "DELETE FROM " + o.storeName, [], function() {
1358
+ o.db.transaction(function(P) {
1359
+ xe(P, o, "DELETE FROM " + o.storeName, [], function() {
1360
1360
  m();
1361
1361
  }, function(R, B) {
1362
1362
  v(B);
@@ -1370,8 +1370,8 @@ var nt = { exports: {} };
1370
1370
  var c = this, a = new d(function(m, v) {
1371
1371
  c.ready().then(function() {
1372
1372
  var o = c._dbInfo;
1373
- o.db.transaction(function(M) {
1374
- xe(M, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1373
+ o.db.transaction(function(P) {
1374
+ xe(P, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1375
1375
  var F = B.rows.item(0).c;
1376
1376
  m(F);
1377
1377
  }, function(R, B) {
@@ -1385,9 +1385,9 @@ var nt = { exports: {} };
1385
1385
  function gt(n, c) {
1386
1386
  var a = this, m = new d(function(v, o) {
1387
1387
  a.ready().then(function() {
1388
- var M = a._dbInfo;
1389
- M.db.transaction(function(R) {
1390
- xe(R, M, "SELECT key FROM " + M.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1388
+ var P = a._dbInfo;
1389
+ P.db.transaction(function(R) {
1390
+ xe(R, P, "SELECT key FROM " + P.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1391
1391
  var k = F.rows.length ? F.rows.item(0).key : null;
1392
1392
  v(k);
1393
1393
  }, function(B, F) {
@@ -1402,8 +1402,8 @@ var nt = { exports: {} };
1402
1402
  var c = this, a = new d(function(m, v) {
1403
1403
  c.ready().then(function() {
1404
1404
  var o = c._dbInfo;
1405
- o.db.transaction(function(M) {
1406
- xe(M, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1405
+ o.db.transaction(function(P) {
1406
+ xe(P, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1407
1407
  for (var F = [], k = 0; k < B.rows.length; k++)
1408
1408
  F.push(B.rows.item(k).key);
1409
1409
  m(F);
@@ -1419,11 +1419,11 @@ var nt = { exports: {} };
1419
1419
  return new d(function(c, a) {
1420
1420
  n.transaction(function(m) {
1421
1421
  m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
1422
- for (var M = [], R = 0; R < o.rows.length; R++)
1423
- M.push(o.rows.item(R).name);
1422
+ for (var P = [], R = 0; R < o.rows.length; R++)
1423
+ P.push(o.rows.item(R).name);
1424
1424
  c({
1425
1425
  db: n,
1426
- storeNames: M
1426
+ storeNames: P
1427
1427
  });
1428
1428
  }, function(v, o) {
1429
1429
  a(o);
@@ -1434,18 +1434,18 @@ var nt = { exports: {} };
1434
1434
  });
1435
1435
  }
1436
1436
  function bt(n, c) {
1437
- c = y.apply(this, arguments);
1437
+ c = w.apply(this, arguments);
1438
1438
  var a = this.config();
1439
1439
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1440
1440
  var m = this, v;
1441
1441
  return n.name ? v = new d(function(o) {
1442
- var M;
1443
- n.name === a.name ? M = m._dbInfo.db : M = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
- db: M,
1442
+ var P;
1443
+ n.name === a.name ? P = m._dbInfo.db : P = openDatabase(n.name, "", "", 0), n.storeName ? o({
1444
+ db: P,
1445
1445
  storeNames: [n.storeName]
1446
- }) : o(wt(M));
1446
+ }) : o(wt(P));
1447
1447
  }).then(function(o) {
1448
- return new d(function(M, R) {
1448
+ return new d(function(P, R) {
1449
1449
  o.db.transaction(function(B) {
1450
1450
  function F(p) {
1451
1451
  return new d(function(te, fe) {
@@ -1456,10 +1456,10 @@ var nt = { exports: {} };
1456
1456
  });
1457
1457
  });
1458
1458
  }
1459
- for (var k = [], q = 0, J = o.storeNames.length; q < J; q++)
1459
+ for (var k = [], q = 0, j = o.storeNames.length; q < j; q++)
1460
1460
  k.push(F(o.storeNames[q]));
1461
1461
  d.all(k).then(function() {
1462
- M();
1462
+ P();
1463
1463
  }).catch(function(p) {
1464
1464
  R(p);
1465
1465
  });
@@ -1533,11 +1533,11 @@ var nt = { exports: {} };
1533
1533
  }
1534
1534
  function _t(n, c) {
1535
1535
  var a = this, m = a.ready().then(function() {
1536
- for (var v = a._dbInfo, o = v.keyPrefix, M = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1536
+ for (var v = a._dbInfo, o = v.keyPrefix, P = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1537
1537
  var k = localStorage.key(F);
1538
1538
  if (k.indexOf(o) === 0) {
1539
1539
  var q = localStorage.getItem(k);
1540
- if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(M), B++), q !== void 0)
1540
+ if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(P), B++), q !== void 0)
1541
1541
  return q;
1542
1542
  }
1543
1543
  }
@@ -1558,8 +1558,8 @@ var nt = { exports: {} };
1558
1558
  }
1559
1559
  function Pt(n) {
1560
1560
  var c = this, a = c.ready().then(function() {
1561
- for (var m = c._dbInfo, v = localStorage.length, o = [], M = 0; M < v; M++) {
1562
- var R = localStorage.key(M);
1561
+ for (var m = c._dbInfo, v = localStorage.length, o = [], P = 0; P < v; P++) {
1562
+ var R = localStorage.key(P);
1563
1563
  R.indexOf(m.keyPrefix) === 0 && o.push(R.substring(m.keyPrefix.length));
1564
1564
  }
1565
1565
  return o;
@@ -1587,14 +1587,14 @@ var nt = { exports: {} };
1587
1587
  var v = m.ready().then(function() {
1588
1588
  c === void 0 && (c = null);
1589
1589
  var o = c;
1590
- return new d(function(M, R) {
1590
+ return new d(function(P, R) {
1591
1591
  var B = m._dbInfo;
1592
1592
  B.serializer.serialize(c, function(F, k) {
1593
1593
  if (k)
1594
1594
  R(k);
1595
1595
  else
1596
1596
  try {
1597
- localStorage.setItem(B.keyPrefix + n, F), M(o);
1597
+ localStorage.setItem(B.keyPrefix + n, F), P(o);
1598
1598
  } catch (q) {
1599
1599
  (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(q), R(q);
1600
1600
  }
@@ -1604,7 +1604,7 @@ var nt = { exports: {} };
1604
1604
  return h(v, a), v;
1605
1605
  }
1606
1606
  function Rt(n, c) {
1607
- if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1607
+ if (c = w.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1608
1608
  var a = this.config();
1609
1609
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
1610
1610
  }
@@ -1612,8 +1612,8 @@ var nt = { exports: {} };
1612
1612
  return n.name ? v = new d(function(o) {
1613
1613
  n.storeName ? o(Br(n, m._defaultConfig)) : o(n.name + "/");
1614
1614
  }).then(function(o) {
1615
- for (var M = localStorage.length - 1; M >= 0; M--) {
1616
- var R = localStorage.key(M);
1615
+ for (var P = localStorage.length - 1; P >= 0; P--) {
1616
+ var R = localStorage.key(P);
1617
1617
  R.indexOf(o) === 0 && localStorage.removeItem(R);
1618
1618
  }
1619
1619
  }) : v = d.reject("Invalid arguments"), h(v, c), v;
@@ -1697,14 +1697,14 @@ var nt = { exports: {} };
1697
1697
  } else
1698
1698
  return typeof a == "string" ? this._config[a] : this._config;
1699
1699
  }, n.prototype.defineDriver = function(a, m, v) {
1700
- var o = new d(function(M, R) {
1700
+ var o = new d(function(P, R) {
1701
1701
  try {
1702
1702
  var B = a._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
1703
1703
  if (!a._driver) {
1704
1704
  R(F);
1705
1705
  return;
1706
1706
  }
1707
- for (var k = fr.concat("_initStorage"), q = 0, J = k.length; q < J; q++) {
1707
+ for (var k = fr.concat("_initStorage"), q = 0, j = k.length; q < j; q++) {
1708
1708
  var p = k[q], te = !$t(Qe, p);
1709
1709
  if ((te || a[p]) && typeof a[p] != "function") {
1710
1710
  R(F);
@@ -1724,7 +1724,7 @@ var nt = { exports: {} };
1724
1724
  };
1725
1725
  fe();
1726
1726
  var ae = function(Ye) {
1727
- ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, M();
1727
+ ze[B] && console.info("Redefining LocalForage driver: " + B), ze[B] = a, Fr[B] = Ye, P();
1728
1728
  };
1729
1729
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
1730
1730
  } catch (we) {
@@ -1748,7 +1748,7 @@ var nt = { exports: {} };
1748
1748
  }, n.prototype.setDriver = function(a, m, v) {
1749
1749
  var o = this;
1750
1750
  $r(a) || (a = [a]);
1751
- var M = this._getSupportedDrivers(a);
1751
+ var P = this._getSupportedDrivers(a);
1752
1752
  function R() {
1753
1753
  o._config.driver = o.driver();
1754
1754
  }
@@ -1757,11 +1757,11 @@ var nt = { exports: {} };
1757
1757
  }
1758
1758
  function F(q) {
1759
1759
  return function() {
1760
- var J = 0;
1760
+ var j = 0;
1761
1761
  function p() {
1762
- for (; J < q.length; ) {
1763
- var te = q[J];
1764
- return J++, o._dbInfo = null, o._ready = null, o.getDriver(te).then(B).catch(p);
1762
+ for (; j < q.length; ) {
1763
+ var te = q[j];
1764
+ return j++, o._dbInfo = null, o._ready = null, o.getDriver(te).then(B).catch(p);
1765
1765
  }
1766
1766
  R();
1767
1767
  var fe = new Error("No available storage method found.");
@@ -1774,9 +1774,9 @@ var nt = { exports: {} };
1774
1774
  return d.resolve();
1775
1775
  }) : d.resolve();
1776
1776
  return this._driverSet = k.then(function() {
1777
- var q = M[0];
1778
- return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(J) {
1779
- o._driver = J._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(M);
1777
+ var q = P[0];
1778
+ return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(j) {
1779
+ o._driver = j._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(P);
1780
1780
  });
1781
1781
  }).catch(function() {
1782
1782
  R();
@@ -1789,8 +1789,8 @@ var nt = { exports: {} };
1789
1789
  sr(this, a);
1790
1790
  }, n.prototype._getSupportedDrivers = function(a) {
1791
1791
  for (var m = [], v = 0, o = a.length; v < o; v++) {
1792
- var M = a[v];
1793
- this.supports(M) && m.push(M);
1792
+ var P = a[v];
1793
+ this.supports(P) && m.push(P);
1794
1794
  }
1795
1795
  return m;
1796
1796
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
@@ -1800,7 +1800,7 @@ var nt = { exports: {} };
1800
1800
  return new n(a);
1801
1801
  }, n;
1802
1802
  }(), qt = new Wt();
1803
- S.exports = qt;
1803
+ A.exports = qt;
1804
1804
  }, { 3: 3 }] }, {}, [4])(4);
1805
1805
  });
1806
1806
  })(nt);
@@ -1849,14 +1849,14 @@ function ma() {
1849
1849
  async function l(s) {
1850
1850
  return await ve().removeItem(s);
1851
1851
  }
1852
- async function S(s, g) {
1852
+ async function A(s, g) {
1853
1853
  await ve().setItem(g, s);
1854
1854
  }
1855
1855
  return {
1856
1856
  clearAsync: e,
1857
1857
  getAsync: t,
1858
1858
  removeAsync: l,
1859
- saveAsync: S
1859
+ saveAsync: A
1860
1860
  };
1861
1861
  }
1862
1862
  let rr;
@@ -1873,8 +1873,8 @@ function wn(e) {
1873
1873
  }), rr;
1874
1874
  }
1875
1875
  function bn(e) {
1876
- var l, S, s, g, I;
1877
- e.storeMode ?? (e.storeMode = ((S = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : S.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
1876
+ var l, A, s, g, I;
1877
+ e.storeMode ?? (e.storeMode = ((A = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : A.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
1878
1878
  const t = { ...e, storeName: e.storeName ?? "" };
1879
1879
  if (console.log("creating store def"), console.log(t), e.storeName == null)
1880
1880
  throw new Error("no store name provided");
@@ -1903,45 +1903,45 @@ const Sn = (e) => {
1903
1903
  function An(e) {
1904
1904
  return pr(e.storeName, () => {
1905
1905
  var u;
1906
- const t = he.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1906
+ const t = he.utc().toSeconds() / 86400, l = z({}), A = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? Sn;
1907
1907
  function I(r) {
1908
1908
  var i, E;
1909
- let y = "";
1909
+ let w = "";
1910
1910
  const D = r.params ?? {};
1911
- return D != null && (y = Object.entries(D).sort(Re.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1911
+ return D != null && (w = Object.entries(D).sort(Re.firstBy((b) => b[0])).map((b) => `${b[0]}=${JSON.stringify(b[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${w ?? "no-params"}`;
1912
1912
  }
1913
1913
  async function C(r) {
1914
1914
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1915
- const y = I(r), D = r.refresh;
1916
- if (!D && l.value[y] !== void 0)
1917
- return l.value[y];
1915
+ const w = I(r), D = r.refresh;
1916
+ if (!D && l.value[w] !== void 0)
1917
+ return l.value[w];
1918
1918
  if (!D && s == !0) {
1919
- const i = await ve().getItem(y);
1919
+ const i = await ve().getItem(w);
1920
1920
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1921
- return l.value[y] = i, i;
1921
+ return l.value[w] = i, i;
1922
1922
  }
1923
1923
  if (e.api == null)
1924
- return l.value[y];
1924
+ return l.value[w];
1925
1925
  try {
1926
- let i = S.value[y];
1927
- i == null && (i = new Promise(async (w, N) => {
1928
- var b;
1926
+ let i = A.value[w];
1927
+ i == null && (i = new Promise(async (b, N) => {
1928
+ var S;
1929
1929
  try {
1930
- const T = await ((b = e.api) == null ? void 0 : b.getAll(r)), x = {
1930
+ const T = await ((S = e.api) == null ? void 0 : S.getAll(r)), x = {
1931
1931
  meta: { storedOn: t.toString() },
1932
1932
  data: T == null ? void 0 : T.data,
1933
1933
  count: T == null ? void 0 : T.count,
1934
1934
  filters: (T == null ? void 0 : T.filters) ?? []
1935
1935
  };
1936
- s == !0 && await ve().setItem(y, x), w(x);
1936
+ s == !0 && await ve().setItem(w, x), b(x);
1937
1937
  } catch (T) {
1938
1938
  N(T);
1939
1939
  } finally {
1940
- delete S.value[y];
1940
+ delete A.value[w];
1941
1941
  }
1942
- }), S.value[y] = i);
1942
+ }), A.value[w] = i);
1943
1943
  const E = await i;
1944
- return l.value[y] = E, {
1944
+ return l.value[w] = E, {
1945
1945
  data: E == null ? void 0 : E.data,
1946
1946
  filters: E == null ? void 0 : E.filters,
1947
1947
  count: E == null ? void 0 : E.count
@@ -1952,43 +1952,43 @@ function An(e) {
1952
1952
  }
1953
1953
  async function _(r) {
1954
1954
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1955
- const y = I(r), D = r.refresh;
1956
- if (!D && l.value[y] !== void 0)
1957
- return l.value[y];
1955
+ const w = I(r), D = r.refresh;
1956
+ if (!D && l.value[w] !== void 0)
1957
+ return l.value[w];
1958
1958
  if (!D && s == !0) {
1959
- const i = await ve().getItem(y);
1959
+ const i = await ve().getItem(w);
1960
1960
  if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1961
- return l.value[y] = i, { data: i.data };
1961
+ return l.value[w] = i, { data: i.data };
1962
1962
  }
1963
1963
  if (e.api == null)
1964
- return l.value[y];
1964
+ return l.value[w];
1965
1965
  try {
1966
- let i = S.value[y];
1967
- i == null && (i = new Promise(async (w, N) => {
1968
- var b;
1966
+ let i = A.value[w];
1967
+ i == null && (i = new Promise(async (b, N) => {
1968
+ var S;
1969
1969
  try {
1970
- let T = await ((b = e.api) == null ? void 0 : b.get(r));
1970
+ let T = await ((S = e.api) == null ? void 0 : S.get(r));
1971
1971
  const x = {
1972
1972
  meta: { storedOn: t.toString() },
1973
1973
  data: T == null ? void 0 : T.data
1974
1974
  };
1975
- s == !0 && await ve().setItem(y, x), w(x);
1975
+ s == !0 && await ve().setItem(w, x), b(x);
1976
1976
  } catch (T) {
1977
1977
  N(T);
1978
1978
  } finally {
1979
- delete S.value[y];
1979
+ delete A.value[w];
1980
1980
  }
1981
- }), S.value[y] = i);
1981
+ }), A.value[w] = i);
1982
1982
  const E = await i;
1983
- return l.value[y] = E, { data: E.data };
1983
+ return l.value[w] = E, { data: E.data };
1984
1984
  } catch (i) {
1985
1985
  throw i;
1986
1986
  }
1987
1987
  }
1988
- async function L(r) {
1988
+ async function M(r) {
1989
1989
  var i;
1990
1990
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1991
- const y = I(r);
1991
+ const w = I(r);
1992
1992
  let D;
1993
1993
  if (e.api != null)
1994
1994
  try {
@@ -2002,23 +2002,23 @@ function An(e) {
2002
2002
  if (D != null) {
2003
2003
  let E = {
2004
2004
  meta: { storedOn: t.toString() },
2005
- data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...D }
2005
+ data: { ...(i = l.value[w]) == null ? void 0 : i.data, ...D }
2006
2006
  };
2007
- return l.value[y] = E, s == !0 && await ve().setItem(y, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((N) => {
2008
- const b = N[1].data;
2009
- if (b != null)
2010
- if (Array.isArray(b))
2011
- for (let T = 0; T < b.length; T++)
2012
- b[T].id == D.id && b.splice(T, 1, E.data);
2007
+ return l.value[w] = E, s == !0 && await ve().setItem(w, E), D.id != null && D.rowVersion != null && Object.entries(l.value).forEach((N) => {
2008
+ const S = N[1].data;
2009
+ if (S != null)
2010
+ if (Array.isArray(S))
2011
+ for (let T = 0; T < S.length; T++)
2012
+ S[T].id == D.id && S.splice(T, 1, E.data);
2013
2013
  else
2014
- b.id == D.id && (l.value[N[0]] = E);
2014
+ S.id == D.id && (l.value[N[0]] = E);
2015
2015
  }), E.data;
2016
2016
  }
2017
2017
  return D;
2018
2018
  }
2019
2019
  async function $(r) {
2020
2020
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2021
- const y = I(r);
2021
+ const w = I(r);
2022
2022
  let D;
2023
2023
  if (e.api != null)
2024
2024
  try {
@@ -2034,14 +2034,14 @@ function An(e) {
2034
2034
  meta: { storedOn: t.toString() },
2035
2035
  data: D
2036
2036
  };
2037
- return s == !0 && await ve().setItem(y, i), l.value[y] = i, i.data;
2037
+ return s == !0 && await ve().setItem(w, i), l.value[w] = i, i.data;
2038
2038
  }
2039
2039
  return D;
2040
2040
  }
2041
2041
  async function d(r) {
2042
2042
  var i;
2043
2043
  r.additionalUrl ?? (r.additionalUrl = "/delete"), g(r);
2044
- const y = I(r);
2044
+ const w = I(r);
2045
2045
  if (e.api != null)
2046
2046
  try {
2047
2047
  let E = await e.api.deleteItem(r);
@@ -2050,77 +2050,81 @@ function An(e) {
2050
2050
  } catch (E) {
2051
2051
  throw E;
2052
2052
  }
2053
- delete l.value[y];
2053
+ delete l.value[w];
2054
2054
  const D = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2055
- D != null && Object.entries(l.value).forEach((w) => {
2056
- const N = w[1].data;
2055
+ D != null && Object.entries(l.value).forEach((b) => {
2056
+ const N = b[1].data;
2057
2057
  if (N != null)
2058
2058
  if (Array.isArray(N))
2059
- for (let b = 0; b < N.length; b++)
2060
- N[b].id == D && N.splice(b, 1);
2059
+ for (let S = 0; S < N.length; S++)
2060
+ N[S].id == D && N.splice(S, 1);
2061
2061
  else
2062
- delete l.value[w[0]];
2063
- }), s == !0 && await ve().removeItem(y);
2062
+ delete l.value[b[0]];
2063
+ }), s == !0 && await ve().removeItem(w);
2064
2064
  }
2065
2065
  async function h(r) {
2066
2066
  if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), g(r), e.api != null)
2067
2067
  try {
2068
- let y = await e.api.patch(r);
2069
- return y == null ? void 0 : y.data;
2070
- } catch (y) {
2071
- throw y;
2068
+ let w = await e.api.patch(r);
2069
+ return w == null ? void 0 : w.data;
2070
+ } catch (w) {
2071
+ throw w;
2072
2072
  }
2073
2073
  }
2074
2074
  return {
2075
2075
  deleteItem: d,
2076
2076
  get: _,
2077
2077
  getAll: C,
2078
- patch: L,
2078
+ patch: M,
2079
2079
  post: $,
2080
2080
  restore: h,
2081
2081
  searchMemory: l,
2082
2082
  //mainly for testing
2083
2083
  currentTimeStampDays: t,
2084
- promiseMemory: S,
2084
+ promiseMemory: A,
2085
2085
  cacheLocally: s
2086
2086
  };
2087
2087
  });
2088
2088
  }
2089
2089
  function qr(e) {
2090
2090
  return pr(e.storeName, () => {
2091
- const t = z(), l = z(0), S = he.utc().toSeconds() / 3600, s = z(), g = z(), I = z({}), C = e.storageMode == "local-cache";
2091
+ const t = z(), l = z(0), A = he.utc().toSeconds() / 3600, s = z(), g = z(), I = z({}), C = e.storageMode == "local-cache";
2092
2092
  function _() {
2093
2093
  var i;
2094
2094
  return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2095
2095
  }
2096
- async function L() {
2097
- console.log("trying save"), C == !0 && (console.log("saving"), await ve().setItem(_(), {
2098
- meta: g.value,
2099
- data: t.value,
2100
- count: l.value,
2101
- filters: []
2102
- }));
2096
+ async function M() {
2097
+ if (console.log("trying save"), C == !0) {
2098
+ console.log("saving");
2099
+ var i = {
2100
+ meta: g.value,
2101
+ data: t.value,
2102
+ count: l.value,
2103
+ filters: []
2104
+ };
2105
+ console.log(i), await ve().setItem(_(), i);
2106
+ }
2103
2107
  }
2104
2108
  function $(i) {
2105
2109
  const E = _();
2106
- return I.value[E] || (I.value[E] = new Promise(async (w, N) => {
2107
- var b, T;
2110
+ return I.value[E] || (I.value[E] = new Promise(async (b, N) => {
2111
+ var S, T;
2108
2112
  try {
2109
2113
  let x = await ((T = e.api) == null ? void 0 : T.getAll({
2110
2114
  additionalUrl: "/getAll",
2111
2115
  nav: i.nav,
2112
2116
  params: {
2113
- lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? ln()
2117
+ lastUpdate: ((S = g.value) == null ? void 0 : S.lastUpdate) ?? ln()
2114
2118
  }
2115
2119
  }));
2116
- console.log("res"), console.log(x), x == null ? N(x) : (t.value ?? (t.value = []), x.data.forEach((P) => {
2117
- var A, j;
2118
- const f = t.value.findIndex((X) => X.id == P.id);
2119
- f >= 0 ? (A = t.value) == null || A.splice(f, 1, P) : (j = t.value) == null || j.push(P);
2120
+ console.log("res"), console.log(x), x == null ? N(x) : (t.value ?? (t.value = []), x.data.forEach((L) => {
2121
+ var y, J;
2122
+ const f = t.value.findIndex((X) => X.id == L.id);
2123
+ f >= 0 ? (y = t.value) == null || y.splice(f, 1, L) : (J = t.value) == null || J.push(L);
2120
2124
  }), l.value = t.value.length, g.value = {
2121
2125
  lastUpdate: he.utc().toString(),
2122
- storedOn: S.toString()
2123
- }, await L(), console.log("resolving"), console.log(x), w(x));
2126
+ storedOn: A.toString()
2127
+ }, await M(), b(x));
2124
2128
  } catch (x) {
2125
2129
  N(x);
2126
2130
  } finally {
@@ -2129,60 +2133,64 @@ function qr(e) {
2129
2133
  })), I.value[E];
2130
2134
  }
2131
2135
  async function d(i) {
2132
- var N, b, T, x;
2133
- const E = _(), w = i.refresh;
2134
- if (console.log("getting all from"), console.log(E), !w && t.value != null)
2136
+ var T, x, L, f;
2137
+ const E = _(), b = i.refresh;
2138
+ if (console.log("getting all from"), console.log(E), !b && t.value != null)
2135
2139
  return console.log("not refresh and ditems not null"), {
2136
- count: (N = t.value) == null ? void 0 : N.length,
2140
+ count: (T = t.value) == null ? void 0 : T.length,
2137
2141
  data: t.value,
2138
2142
  filters: []
2139
2143
  };
2140
- if (!w && C == !0) {
2144
+ if (!b && C == !0) {
2141
2145
  console.log("not refresh and caching locally");
2142
- const P = await ve().getItem(E);
2143
- if (console.log(P), P != null && parseFloat(P.meta.storedOn) > S - 7)
2144
- return t.value = P.data, l.value = P.data.length, s.value = P.filters ?? [], g.value = P.meta, {
2145
- count: (b = t.value) == null ? void 0 : b.length,
2146
+ const y = await ve().getItem(E);
2147
+ if (console.log(y), y != null && parseFloat(y.meta.storedOn) > A - 7)
2148
+ return t.value = y.data, l.value = y.data.length, s.value = y.filters ?? [], g.value = y.meta, {
2149
+ count: (x = t.value) == null ? void 0 : x.length,
2146
2150
  data: t.value ?? [],
2147
2151
  filters: []
2148
2152
  };
2149
2153
  }
2150
2154
  if (e.api == null)
2151
2155
  return console.log("no api"), {
2152
- count: (T = t.value) == null ? void 0 : T.length,
2156
+ count: (L = t.value) == null ? void 0 : L.length,
2153
2157
  data: t.value ?? [],
2154
2158
  filters: s.value
2155
2159
  };
2156
2160
  console.log("setting dataitems"), t.value ?? (t.value = []);
2157
2161
  try {
2158
- return console.log("create refresh promise"), await $(i), {
2159
- count: (x = t.value) == null ? void 0 : x.length,
2162
+ console.log("create refresh promise");
2163
+ var N = await $(i);
2164
+ console.log(N);
2165
+ var S = {
2166
+ count: (f = t.value) == null ? void 0 : f.length,
2160
2167
  data: t.value ?? [],
2161
2168
  filters: s.value
2162
2169
  };
2163
- } catch (P) {
2164
- let f = P;
2165
- throw new Error(f.message ?? "Problem");
2170
+ return console.log(S), S;
2171
+ } catch (y) {
2172
+ let J = y;
2173
+ throw new Error(J.message ?? "Problem");
2166
2174
  }
2167
2175
  }
2168
2176
  async function h(i) {
2169
- var b, T, x, P;
2170
- const E = _(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
2171
- if (w == null)
2177
+ var S, T, x, L;
2178
+ const E = _(), b = i.id ?? ((S = i.data) == null ? void 0 : S.id);
2179
+ if (b == null)
2172
2180
  throw new Error("no id provided");
2173
2181
  let N = i.refresh;
2174
2182
  if (!N && t.value != null) {
2175
- const f = t.value.find((A) => A.id == w);
2183
+ const f = t.value.find((y) => y.id == b);
2176
2184
  if (f != null)
2177
2185
  return { data: f };
2178
2186
  }
2179
2187
  if (!N && C == !0) {
2180
2188
  const f = await ve().getItem(E);
2181
- if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
2189
+ if (f != null && parseFloat(f.meta.storedOn) > A - 12) {
2182
2190
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2183
- let A = (T = t.value) == null ? void 0 : T.find((j) => j.id == i.id);
2184
- if (A != null)
2185
- return { data: A };
2191
+ let y = (T = t.value) == null ? void 0 : T.find((J) => J.id == i.id);
2192
+ if (y != null)
2193
+ return { data: y };
2186
2194
  }
2187
2195
  }
2188
2196
  if (e.api == null)
@@ -2191,14 +2199,14 @@ function qr(e) {
2191
2199
  };
2192
2200
  t.value ?? (t.value = []);
2193
2201
  try {
2194
- return await $(i), { data: (P = t.value) == null ? void 0 : P.find((f) => f.id == i.id) };
2202
+ return await $(i), { data: (L = t.value) == null ? void 0 : L.find((f) => f.id == i.id) };
2195
2203
  } catch (f) {
2196
- let A = f;
2197
- throw new Error(A.message ?? "Problem");
2204
+ let y = f;
2205
+ throw new Error(y.message ?? "Problem");
2198
2206
  }
2199
2207
  }
2200
2208
  async function u(i) {
2201
- var w, N, b;
2209
+ var b, N, S;
2202
2210
  i.additionalUrl ?? (i.additionalUrl = "/patch");
2203
2211
  let E;
2204
2212
  if (e.api != null)
@@ -2212,42 +2220,42 @@ function qr(e) {
2212
2220
  else
2213
2221
  E = i.data;
2214
2222
  if (E != null) {
2215
- let T = (w = t.value) == null ? void 0 : w.findIndex((x) => x.id == E.id);
2216
- T != null && T >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(T, 1, E), await L());
2223
+ let T = (b = t.value) == null ? void 0 : b.findIndex((x) => x.id == E.id);
2224
+ T != null && T >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(T, 1, E), await M());
2217
2225
  }
2218
- return (b = t.value) == null ? void 0 : b.find((T) => T.id == (i.id ?? i.data.id));
2226
+ return (S = t.value) == null ? void 0 : S.find((T) => T.id == (i.id ?? i.data.id));
2219
2227
  }
2220
2228
  async function r(i) {
2221
- var w, N;
2229
+ var b, N;
2222
2230
  i.additionalUrl ?? (i.additionalUrl = "/post");
2223
2231
  let E;
2224
2232
  if (e.api != null)
2225
2233
  try {
2226
- let b = await e.api.post(i);
2227
- E = b == null ? void 0 : b.data;
2228
- } catch (b) {
2229
- let T = b;
2234
+ let S = await e.api.post(i);
2235
+ E = S == null ? void 0 : S.data;
2236
+ } catch (S) {
2237
+ let T = S;
2230
2238
  throw new Error(T.message ?? "Patch Problem");
2231
2239
  }
2232
2240
  else
2233
2241
  E = i.data;
2234
- return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await L()), (N = t.value) == null ? void 0 : N.find((b) => b.id == (i.id ?? i.data.id));
2242
+ return E != null && (t.value ?? (t.value = []), (b = t.value) == null || b.unshift(E), l.value += 1, await M()), (N = t.value) == null ? void 0 : N.find((S) => S.id == (i.id ?? i.data.id));
2235
2243
  }
2236
- async function y(i) {
2237
- var w, N;
2244
+ async function w(i) {
2245
+ var b, N;
2238
2246
  if (i.additionalUrl ?? (i.additionalUrl = "/delete"), e.api != null)
2239
2247
  try {
2240
- let b = await e.api.deleteItem(i);
2241
- if (b != null)
2242
- return b;
2243
- } catch (b) {
2244
- let T = b;
2248
+ let S = await e.api.deleteItem(i);
2249
+ if (S != null)
2250
+ return S;
2251
+ } catch (S) {
2252
+ let T = S;
2245
2253
  throw new Error(T.message ?? "Patch Problem");
2246
2254
  }
2247
2255
  const E = i.id ?? i.data.id;
2248
2256
  if (E != null) {
2249
- let b = (w = t.value) == null ? void 0 : w.findIndex((T) => T.id == E);
2250
- b != null && b >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(b, 1), await L());
2257
+ let S = (b = t.value) == null ? void 0 : b.findIndex((T) => T.id == E);
2258
+ S != null && S >= 0 && (t.value ?? (t.value = []), (N = t.value) == null || N.splice(S, 1), await M());
2251
2259
  }
2252
2260
  }
2253
2261
  async function D(i) {
@@ -2255,20 +2263,20 @@ function qr(e) {
2255
2263
  if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
2256
2264
  try {
2257
2265
  await e.api.patch(i);
2258
- } catch (w) {
2259
- let N = w;
2266
+ } catch (b) {
2267
+ let N = b;
2260
2268
  throw new Error(N.message ?? "Patch Problem");
2261
2269
  }
2262
2270
  try {
2263
2271
  i.additionalUrl = "/getAll", await $(i);
2264
- } catch (w) {
2265
- let N = w;
2272
+ } catch (b) {
2273
+ let N = b;
2266
2274
  throw new Error(N.message ?? "Problem");
2267
2275
  }
2268
- return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
2276
+ return (E = t.value) == null ? void 0 : E.find((b) => b.id == (i.id ?? i.data.id));
2269
2277
  }
2270
2278
  return {
2271
- deleteItem: y,
2279
+ deleteItem: w,
2272
2280
  get: h,
2273
2281
  getAll: d,
2274
2282
  patch: u,
@@ -2277,7 +2285,7 @@ function qr(e) {
2277
2285
  //other stuff
2278
2286
  dataItems: t,
2279
2287
  count: l,
2280
- currentTimeStampHours: S,
2288
+ currentTimeStampHours: A,
2281
2289
  filters: s,
2282
2290
  meta: g,
2283
2291
  promiseMemory: I,
@@ -2290,175 +2298,175 @@ function Er() {
2290
2298
  return Ar;
2291
2299
  }
2292
2300
  function En(e) {
2293
- const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, S = (e == null ? void 0 : e.buildUrl) ?? I, s = e == null ? void 0 : e.demo;
2301
+ const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, A = (e == null ? void 0 : e.buildUrl) ?? I, s = e == null ? void 0 : e.demo;
2294
2302
  function g(u) {
2295
2303
  let r = new URLSearchParams();
2296
- return Object.entries(u).forEach((y) => {
2297
- y[1] != null && r.append(y[0], y[1]);
2298
- }), u.filterBy && r.set("filterBy", u.filterBy), u.includeCount && r.set("includeCount", u.includeCount.toString()), u.includeDetails != null && r.set("includeDetails", u.includeDetails.toString()), u.includeInactive && r.set("includeInactive", u.includeInactive.toString()), u.properties && r.set("properties", u.properties.toString()), u.query && r.set("query", u.query.toString()), u.searchString && r.set("searchString", u.searchString), u.sortOrder && r.set("sortOrder", u.sortOrder), u.sortBy && r.set("sortBy", u.sortBy), u.takeFrom && r.set("takeFrom", u.takeFrom.toString()), u.takeAmount && r.set("takeAmount", u.takeAmount.toString()), u.other && Object.entries(u.other).forEach((y) => {
2299
- y[1] != null && r.append(y[0], y[1].toString());
2304
+ return Object.entries(u).forEach((w) => {
2305
+ w[1] != null && r.append(w[0], w[1]);
2306
+ }), u.filterBy && r.set("filterBy", u.filterBy), u.includeCount && r.set("includeCount", u.includeCount.toString()), u.includeDetails != null && r.set("includeDetails", u.includeDetails.toString()), u.includeInactive && r.set("includeInactive", u.includeInactive.toString()), u.properties && r.set("properties", u.properties.toString()), u.query && r.set("query", u.query.toString()), u.searchString && r.set("searchString", u.searchString), u.sortOrder && r.set("sortOrder", u.sortOrder), u.sortBy && r.set("sortBy", u.sortBy), u.takeFrom && r.set("takeFrom", u.takeFrom.toString()), u.takeAmount && r.set("takeAmount", u.takeAmount.toString()), u.other && Object.entries(u.other).forEach((w) => {
2307
+ w[1] != null && r.append(w[0], w[1].toString());
2300
2308
  }), r.toString();
2301
2309
  }
2302
2310
  function I(u) {
2303
- let r = Q(u.url) ?? void 0, y = Q(u.id);
2304
- return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Ue(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2311
+ let r = Q(u.url) ?? void 0, w = Q(u.id);
2312
+ return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), w != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", w) : r = Ue(r, w)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2305
2313
  }
2306
2314
  function C(u) {
2307
- var y, D;
2315
+ var w, D;
2308
2316
  let r = { ...u.headers };
2309
- return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(D = e == null ? void 0 : e.auth) == null ? void 0 : D.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2317
+ return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((w = e == null ? void 0 : e.auth) == null ? void 0 : w.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(D = e == null ? void 0 : e.auth) == null ? void 0 : D.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2310
2318
  }
2311
2319
  async function _(u) {
2312
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2320
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2313
2321
  let i = u.finalUrl, E = u.headers;
2314
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2322
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2315
2323
  return console.log(`DEMO: Get from ${i}`), s.get(u);
2316
2324
  console.log(`Get from ${i}`);
2317
- let w;
2325
+ let b;
2318
2326
  try {
2319
- if (w = await fetch(i, {
2327
+ if (b = await fetch(i, {
2320
2328
  method: "GET",
2321
2329
  mode: "cors",
2322
2330
  cache: "no-cache",
2323
2331
  headers: E
2324
- }), !w.ok) {
2325
- if (w.status == 401)
2332
+ }), !b.ok) {
2333
+ if (b.status == 401)
2326
2334
  throw {
2327
- code: w.status,
2335
+ code: b.status,
2328
2336
  name: "Unauthorized",
2329
- message: w.statusText
2337
+ message: b.statusText
2330
2338
  };
2331
- let N = await w.text();
2332
- throw new Error(N ?? w.statusText ?? "Get error");
2339
+ let N = await b.text();
2340
+ throw new Error(N ?? b.statusText ?? "Get error");
2333
2341
  }
2334
2342
  if (D)
2335
- return await w.text();
2336
- if (y)
2337
- return await w.json();
2343
+ return await b.text();
2344
+ if (w)
2345
+ return await b.json();
2338
2346
  throw new Error();
2339
2347
  } catch (N) {
2340
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2348
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2341
2349
  if (!r)
2342
2350
  return;
2343
- throw N.code == 401 ? N : new Error(b);
2351
+ throw N.code == 401 ? N : new Error(S);
2344
2352
  }
2345
2353
  }
2346
- async function L(u) {
2347
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2354
+ async function M(u) {
2355
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2348
2356
  let i = u.finalUrl, E = u.headers;
2349
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2357
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2350
2358
  return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2351
2359
  console.log(`Get all from ${i}`);
2352
- let w;
2360
+ let b;
2353
2361
  try {
2354
- if (w = await fetch(i, {
2362
+ if (b = await fetch(i, {
2355
2363
  method: "GET",
2356
2364
  mode: "cors",
2357
2365
  cache: "no-cache",
2358
2366
  headers: E
2359
- }), !w.ok) {
2360
- if (w.status == 401)
2367
+ }), !b.ok) {
2368
+ if (b.status == 401)
2361
2369
  throw {
2362
- code: w.status,
2370
+ code: b.status,
2363
2371
  name: "Unauthorized",
2364
- message: w.statusText
2372
+ message: b.statusText
2365
2373
  };
2366
- let N = await w.text();
2367
- throw new Error(N ?? w.statusText ?? "Get all error");
2374
+ let N = await b.text();
2375
+ throw new Error(N ?? b.statusText ?? "Get all error");
2368
2376
  }
2369
2377
  if (D)
2370
- return await w.text();
2371
- if (y)
2372
- return await w.json();
2378
+ return await b.text();
2379
+ if (w)
2380
+ return await b.json();
2373
2381
  throw new Error();
2374
2382
  } catch (N) {
2375
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2383
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2376
2384
  if (!r)
2377
2385
  return;
2378
- throw N.code == 401 ? N : new Error(b);
2386
+ throw N.code == 401 ? N : new Error(S);
2379
2387
  }
2380
2388
  }
2381
2389
  async function $(u) {
2382
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2390
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2383
2391
  let i = u.finalUrl, E = u.headers;
2384
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2392
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2385
2393
  return console.log(`DEMO: Post to ${i}`), s.post(u);
2386
2394
  console.log(`Post to ${i}`);
2387
- let w;
2395
+ let b;
2388
2396
  try {
2389
- if (w = await fetch(i, {
2397
+ if (b = await fetch(i, {
2390
2398
  method: "POST",
2391
2399
  mode: "cors",
2392
2400
  cache: "no-cache",
2393
2401
  headers: E,
2394
2402
  body: JSON.stringify(u.data)
2395
- }), !w.ok) {
2396
- if (w.status == 401)
2403
+ }), !b.ok) {
2404
+ if (b.status == 401)
2397
2405
  throw {
2398
- code: w.status,
2406
+ code: b.status,
2399
2407
  name: "Unauthorized",
2400
- message: w.statusText
2408
+ message: b.statusText
2401
2409
  };
2402
- let N = await w.text();
2403
- throw new Error(N ?? w.statusText ?? "Post error!");
2410
+ let N = await b.text();
2411
+ throw new Error(N ?? b.statusText ?? "Post error!");
2404
2412
  }
2405
2413
  if (D)
2406
- return await w.text();
2407
- if (y)
2408
- return await w.json();
2414
+ return await b.text();
2415
+ if (w)
2416
+ return await b.json();
2409
2417
  throw new Error();
2410
2418
  } catch (N) {
2411
- if (w.status == 200 || !r)
2419
+ if (b.status == 200 || !r)
2412
2420
  return;
2413
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2414
- throw N.code == 401 ? N : new Error(b);
2421
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2422
+ throw N.code == 401 ? N : new Error(S);
2415
2423
  }
2416
2424
  }
2417
2425
  async function d(u) {
2418
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2426
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, w = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, D = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2419
2427
  let i = u.finalUrl, E = u.headers;
2420
- if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2428
+ if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2421
2429
  return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2422
2430
  console.log(`Patch to ${i}`);
2423
- let w;
2431
+ let b;
2424
2432
  try {
2425
- if (w = await fetch(i, {
2433
+ if (b = await fetch(i, {
2426
2434
  method: "PATCH",
2427
2435
  mode: "cors",
2428
2436
  cache: "no-cache",
2429
2437
  headers: E,
2430
2438
  body: JSON.stringify(u.data)
2431
- }), !w.ok) {
2432
- if (w.status == 401)
2439
+ }), !b.ok) {
2440
+ if (b.status == 401)
2433
2441
  throw {
2434
- code: w.status,
2442
+ code: b.status,
2435
2443
  name: "Unauthorized",
2436
- message: w.statusText
2444
+ message: b.statusText
2437
2445
  };
2438
- let N = await w.text();
2439
- throw new Error(N ?? w.statusText ?? "Patch error!");
2446
+ let N = await b.text();
2447
+ throw new Error(N ?? b.statusText ?? "Patch error!");
2440
2448
  }
2441
2449
  if (D)
2442
- return await w.text();
2443
- if (y)
2444
- return await w.json();
2450
+ return await b.text();
2451
+ if (w)
2452
+ return await b.json();
2445
2453
  throw new Error();
2446
2454
  } catch (N) {
2447
- if (w.status == 200 || !r)
2455
+ if (b.status == 200 || !r)
2448
2456
  return;
2449
- const b = `${(w == null ? void 0 : w.status) ?? ""} ${(w == null ? void 0 : w.statusText) ?? ""} ${N.message}`;
2450
- throw N.code == 401 ? N : new Error(b);
2457
+ const S = `${(b == null ? void 0 : b.status) ?? ""} ${(b == null ? void 0 : b.statusText) ?? ""} ${N.message}`;
2458
+ throw N.code == 401 ? N : new Error(S);
2451
2459
  }
2452
2460
  }
2453
2461
  async function h(u) {
2454
2462
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2455
- let y = u.finalUrl, D = u.headers;
2456
- if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (D = t(u)), s != null && s.isDemoing.value)
2457
- return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2458
- console.log(`Delete ${y}`);
2463
+ let w = u.finalUrl, D = u.headers;
2464
+ if (w == null && (w = A(u)), u.overrideHeaders !== !0 && (D = t(u)), s != null && s.isDemoing.value)
2465
+ return console.log(`DEMO: Delete ${w}`), s.deleteItem(u);
2466
+ console.log(`Delete ${w}`);
2459
2467
  let i;
2460
2468
  try {
2461
- if (i = await fetch(y, {
2469
+ if (i = await fetch(w, {
2462
2470
  method: "DELETE",
2463
2471
  mode: "cors",
2464
2472
  cache: "no-cache",
@@ -2472,32 +2480,32 @@ function En(e) {
2472
2480
  };
2473
2481
  return i.status == 200 ? void 0 : i.statusText;
2474
2482
  } catch (E) {
2475
- const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2483
+ const b = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
2476
2484
  if (!r)
2477
- return w;
2485
+ return b;
2478
2486
  throw E.code == 401 ? E : new Error(`${i.status} ${i.statusText} ${E.message}`);
2479
2487
  }
2480
2488
  }
2481
2489
  return Ar = {
2482
2490
  buildHeaders: t,
2483
2491
  buildQuery: l,
2484
- buildUrl: S,
2492
+ buildUrl: A,
2485
2493
  deleteItem: h,
2486
2494
  get: _,
2487
- getAll: L,
2495
+ getAll: M,
2488
2496
  patch: d,
2489
2497
  post: $
2490
2498
  }, Ar;
2491
2499
  }
2492
2500
  function ut(e) {
2493
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: S, isLoading: s, doAction: g, logError: I } = en(e);
2501
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: A, isLoading: s, doAction: g, logError: I } = en(e);
2494
2502
  function C(r) {
2495
2503
  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);
2496
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2504
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2497
2505
  const D = (e == null ? void 0 : e.items) ?? [];
2498
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2499
- var w;
2500
- const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
2506
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => w().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2507
+ var b;
2508
+ const i = r.id ?? ((b = r.data) == null ? void 0 : b.id);
2501
2509
  if (i == null)
2502
2510
  return Promise.resolve("No id found in delete action");
2503
2511
  const E = D.findIndex((N) => N.id == i);
@@ -2516,12 +2524,12 @@ function ut(e) {
2516
2524
  }
2517
2525
  function _(r) {
2518
2526
  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);
2519
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2527
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2520
2528
  const D = (e == null ? void 0 : e.items) ?? [];
2521
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2529
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await w().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2522
2530
  var E;
2523
2531
  const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2524
- return i == null ? Promise.resolve(void 0) : Promise.resolve(D.find((w) => w.id == i));
2532
+ return i == null ? Promise.resolve(void 0) : Promise.resolve(D.find((b) => b.id == i));
2525
2533
  }), g(async () => {
2526
2534
  let i;
2527
2535
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
@@ -2534,11 +2542,11 @@ function ut(e) {
2534
2542
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2535
2543
  });
2536
2544
  }
2537
- function L(r) {
2545
+ function M(r) {
2538
2546
  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);
2539
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2547
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2540
2548
  const D = (e == null ? void 0 : e.items) ?? [];
2541
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(D)), g(async () => {
2549
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onGetAsync ?? (r.onGetAsync = () => w().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(D)), g(async () => {
2542
2550
  let i;
2543
2551
  return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2544
2552
  }, {
@@ -2552,8 +2560,8 @@ function ut(e) {
2552
2560
  }
2553
2561
  function $(r) {
2554
2562
  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);
2555
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2556
- return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2563
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2564
+ return w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => w().restore(r))), g(async () => {
2557
2565
  let D, i;
2558
2566
  return r.onCanRestoreAsync != null && (D = await r.onCanRestoreAsync(r.data)), D == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), I(D), i;
2559
2567
  }, {
@@ -2567,21 +2575,21 @@ function ut(e) {
2567
2575
  }
2568
2576
  function d(r) {
2569
2577
  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);
2570
- let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2578
+ let w = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2571
2579
  const D = (e == null ? void 0 : e.items) ?? [];
2572
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2580
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), w == null && r.nav != null && (w = Le({ nav: r.nav })), w != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2573
2581
  var i;
2574
- return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2582
+ return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await w().post(r) : await w().patch(r);
2575
2583
  }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
2576
- const E = D.findIndex((w) => w.id == i.id);
2584
+ const E = D.findIndex((b) => b.id == i.id);
2577
2585
  return E >= 0 ? D.splice(E, 1, i) : D.push(i), Promise.resolve(i);
2578
2586
  }), g(async () => {
2579
2587
  let i;
2580
2588
  if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
2581
2589
  return;
2582
2590
  if (r.onCanSaveAsync != null) {
2583
- let w = await r.onCanSaveAsync(i);
2584
- if (I(w), w != null)
2591
+ let b = await r.onCanSaveAsync(i);
2592
+ if (I(b), b != null)
2585
2593
  return;
2586
2594
  }
2587
2595
  let E;
@@ -2606,10 +2614,10 @@ function ut(e) {
2606
2614
  actionErrorMsg: t,
2607
2615
  apiGet: h,
2608
2616
  apiPost: u,
2609
- clearErrors: S,
2617
+ clearErrors: A,
2610
2618
  deleteItem: C,
2611
2619
  doAction: g,
2612
- getAllItems: L,
2620
+ getAllItems: M,
2613
2621
  getItem: _,
2614
2622
  isLoading: s,
2615
2623
  logError: I,
@@ -2625,37 +2633,37 @@ function In() {
2625
2633
  function Dn(e) {
2626
2634
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2627
2635
  let l = z(localStorage.getItem(Hr) ?? "");
2628
- l.value.length == 0 && S();
2629
- function S() {
2636
+ l.value.length == 0 && A();
2637
+ function A() {
2630
2638
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2631
2639
  }
2632
2640
  const s = Zt("auth-credentials", {});
2633
2641
  function g(x) {
2634
2642
  if (x == null)
2635
2643
  return !0;
2636
- var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2637
- if (P == null)
2644
+ var L = e.getAuthItem != null ? e.getAuthItem(x) : null;
2645
+ if (L == null)
2638
2646
  return !1;
2639
- if (P.requiresAuth === !1)
2647
+ if (L.requiresAuth === !1)
2640
2648
  return !0;
2641
2649
  const f = Q(s);
2642
- if (f.isSuspended && P.ignoreSuspension !== !0)
2650
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2643
2651
  return !1;
2644
2652
  if (f.isGlobalAdmin)
2645
2653
  return !0;
2646
- if (P.permissions != null) {
2647
- for (var A = 0; A < P.permissions.length; A++)
2648
- if (!I(P.permissions[A]))
2654
+ if (L.permissions != null) {
2655
+ for (var y = 0; y < L.permissions.length; y++)
2656
+ if (!I(L.permissions[y]))
2649
2657
  return !1;
2650
2658
  }
2651
2659
  return !0;
2652
2660
  }
2653
2661
  function I(x) {
2654
- const P = Q(s);
2655
- if (P.userPermissions != null)
2656
- for (var f = 0; f < P.userPermissions.length; f++) {
2657
- var A = P.userPermissions[f].split(".");
2658
- if (P.userPermissions[f] == "everything.edit" || x == A[0] && A.length > 1 && A[1] == "edit")
2662
+ const L = Q(s);
2663
+ if (L.userPermissions != null)
2664
+ for (var f = 0; f < L.userPermissions.length; f++) {
2665
+ var y = L.userPermissions[f].split(".");
2666
+ if (L.userPermissions[f] == "everything.edit" || x == y[0] && y.length > 1 && y[1] == "edit")
2659
2667
  return !0;
2660
2668
  }
2661
2669
  return !1;
@@ -2663,126 +2671,126 @@ function Dn(e) {
2663
2671
  function C(x) {
2664
2672
  if (x == null)
2665
2673
  return !0;
2666
- var P = e.getAuthItem != null ? e.getAuthItem(x) : null;
2667
- if (P == null)
2674
+ var L = e.getAuthItem != null ? e.getAuthItem(x) : null;
2675
+ if (L == null)
2668
2676
  return !1;
2669
- if (P.requiresAuth === !1)
2677
+ if (L.requiresAuth === !1)
2670
2678
  return !0;
2671
2679
  const f = Q(s);
2672
- if (f.isSuspended && P.ignoreSuspension !== !0)
2680
+ if (f.isSuspended && L.ignoreSuspension !== !0)
2673
2681
  return !1;
2674
2682
  if (f.isGlobalAdmin)
2675
2683
  return !0;
2676
- if (P.permissions != null) {
2677
- for (var A = 0; A < P.permissions.length; A++)
2678
- if (!_(P.permissions[A]))
2684
+ if (L.permissions != null) {
2685
+ for (var y = 0; y < L.permissions.length; y++)
2686
+ if (!_(L.permissions[y]))
2679
2687
  return !1;
2680
2688
  }
2681
2689
  return !0;
2682
2690
  }
2683
2691
  function _(x) {
2684
- const P = Q(s);
2685
- if (P.userPermissions != null)
2686
- for (var f = 0; f < P.userPermissions.length; f++) {
2687
- var A = P.userPermissions[f].split(".");
2688
- if (x == A[0] || x == "everything" || P.userPermissions[f] == "everything.view" || P.userPermissions[f] == "everything.edit")
2692
+ const L = Q(s);
2693
+ if (L.userPermissions != null)
2694
+ for (var f = 0; f < L.userPermissions.length; f++) {
2695
+ var y = L.userPermissions[f].split(".");
2696
+ if (x == y[0] || x == "everything" || L.userPermissions[f] == "everything.view" || L.userPermissions[f] == "everything.edit")
2689
2697
  return !0;
2690
2698
  }
2691
2699
  return !1;
2692
2700
  }
2693
- function L(x, P, f) {
2694
- let A = !0;
2695
- return Q(s).isGlobalAdmin ? !0 : (P != null && P.length > 0 && P.forEach((X) => {
2696
- f == "edit" ? I(X) || (A = !1) : _(X) || (A = !1);
2697
- }), x != null && x.length > 0 && (x.some((X) => u(X)) || (A = !1)), A);
2701
+ function M(x, L, f) {
2702
+ let y = !0;
2703
+ return Q(s).isGlobalAdmin ? !0 : (L != null && L.length > 0 && L.forEach((X) => {
2704
+ f == "edit" ? I(X) || (y = !1) : _(X) || (y = !1);
2705
+ }), x != null && x.length > 0 && (x.some((X) => u(X)) || (y = !1)), y);
2698
2706
  }
2699
- function $(x, P = !1) {
2707
+ function $(x, L = !1) {
2700
2708
  var f = e.getAuthItem != null ? e.getAuthItem(x) : null;
2701
- let A = !1;
2709
+ let y = !1;
2702
2710
  if (f == null)
2703
2711
  return !1;
2704
- let j = f.subscriptions ?? [], X = f.permissions ?? [], re = L(j, X, "view");
2705
- return re || !P || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2706
- $(ue, !0) && (A = !0);
2707
- }), A);
2712
+ let J = f.subscriptions ?? [], X = f.permissions ?? [], re = M(J, X, "view");
2713
+ return re || !L || !_e(f.children) ? re : ((f == null ? void 0 : f.children) != null && f.children.forEach((ue) => {
2714
+ $(ue, !0) && (y = !0);
2715
+ }), y);
2708
2716
  }
2709
2717
  function d(x) {
2710
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (P, f) => {
2711
- const A = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2712
- return P ? `${A}&redirect_path=${P}` : A;
2718
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (L, f) => {
2719
+ const y = Ue(Wr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2720
+ return L ? `${y}&redirect_path=${L}` : y;
2713
2721
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(x, l.value) ?? "" : "";
2714
2722
  }
2715
2723
  function h(x) {
2716
2724
  var f;
2717
- return x == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == x)) == null ? void 0 : f.value) ?? 0;
2725
+ return x == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((y) => y.code == x)) == null ? void 0 : f.value) ?? 0;
2718
2726
  }
2719
2727
  function u(x) {
2720
- const P = Q(s);
2721
- if (P.subscriptionCode == null)
2728
+ const L = Q(s);
2729
+ if (L.subscriptionCode == null)
2722
2730
  return !1;
2723
- if (P.subscriptionCode == x)
2731
+ if (L.subscriptionCode == x)
2724
2732
  return !0;
2725
- const f = h(x), A = h(P.subscriptionCode);
2726
- return f <= A;
2733
+ const f = h(x), y = h(L.subscriptionCode);
2734
+ return f <= y;
2727
2735
  }
2728
2736
  function r(x) {
2729
- const f = x.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2730
- atob(f).split("").map(function(j) {
2731
- return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
2737
+ const f = x.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), y = decodeURIComponent(
2738
+ atob(f).split("").map(function(J) {
2739
+ return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2732
2740
  }).join("")
2733
2741
  );
2734
- return JSON.parse(A);
2742
+ return JSON.parse(y);
2735
2743
  }
2736
- function y(x, P) {
2737
- s.value = void 0, N(), x != null && P != null && P.currentRoute.value.path != x && P.push({ path: x });
2744
+ function w(x, L) {
2745
+ s.value = void 0, N(), x != null && L != null && L.currentRoute.value.path != x && L.push({ path: x });
2738
2746
  }
2739
2747
  function D(x) {
2740
2748
  var f;
2741
- Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (y(), window.location.href = d(x)));
2749
+ Q(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), T() && (w(), window.location.href = d(x)));
2742
2750
  }
2743
- async function i(x, P) {
2751
+ async function i(x, L) {
2744
2752
  return e.getToken ?? (e.getToken = async () => {
2745
- let f = x, A = P, j = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2746
- if (f == null || A == null)
2753
+ let f = x, y = L, J = e.oauthGrantType ?? "authorization_token", X = e.oauthClientID ?? "";
2754
+ if (f == null || y == null)
2747
2755
  throw new Error("Code and State required in OAuth token process");
2748
- if (A != l.value)
2756
+ if (y != l.value)
2749
2757
  throw new Error("state does not match");
2750
2758
  let re = "";
2751
- e.getTokenUrl ?? (e.getTokenUrl = () => Ue(Wr(), "token")), re = e.getTokenUrl(f, `${window.location.origin}/authentication`, j, X);
2759
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ue(Wr(), "token")), re = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, X);
2752
2760
  const ue = {};
2753
- ue.grant_type = j, ue.code = f, ue.redirect_uri = `${window.location.origin}/authentication`, ue.client_id = X;
2761
+ ue.grant_type = J, ue.code = f, ue.redirect_uri = `${window.location.origin}/authentication`, ue.client_id = X;
2754
2762
  const G = await Er().post({
2755
2763
  additionalUrl: re,
2756
2764
  data: ue
2757
2765
  });
2758
2766
  E(G.access_token);
2759
- }), await e.getToken(x, P);
2767
+ }), await e.getToken(x, L);
2760
2768
  }
2761
2769
  function E(x) {
2762
2770
  if (x != null && (e.demo == null || !e.demo.isDemoing.value)) {
2763
- const P = r(x);
2764
- w(P, x), e.processTokenPayload != null && e.processTokenPayload(s, P);
2771
+ const L = r(x);
2772
+ b(L, x), e.processTokenPayload != null && e.processTokenPayload(s, L);
2765
2773
  }
2766
2774
  }
2767
- function w(x, P) {
2768
- var A;
2775
+ function b(x, L) {
2776
+ var y;
2769
2777
  const f = s.value;
2770
- f.expiresOn = x.ExpiresOn, f.isGlobalAdmin = x.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = x.Permissions, f.subscriptionCode = x.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = P, f.userID = x.UserLoginID, f.userPermissions = ((A = x.Permissions) == null ? void 0 : A.split(",")) ?? [];
2778
+ f.expiresOn = x.ExpiresOn, f.isGlobalAdmin = x.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = x.Permissions, f.subscriptionCode = x.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = L, f.userID = x.UserLoginID, f.userPermissions = ((y = x.Permissions) == null ? void 0 : y.split(",")) ?? [];
2771
2779
  }
2772
2780
  function N() {
2773
2781
  var x;
2774
2782
  s.value ?? (s.value = {}), (x = s.value).timeZone ?? (x.timeZone = e.defaultTimeZone ?? hr);
2775
2783
  }
2776
- function b() {
2784
+ function S() {
2777
2785
  const x = Q(s);
2778
- return x.isLoggedIn && T() && (y(), window.location.href = d()), x.isLoggedIn;
2786
+ return x.isLoggedIn && T() && (w(), window.location.href = d()), x.isLoggedIn;
2779
2787
  }
2780
2788
  function T() {
2781
2789
  const x = Q(s);
2782
2790
  if (x == null || x.expiresOn == null)
2783
2791
  return !0;
2784
- const P = he.fromFormat(x.expiresOn, t), f = he.utc();
2785
- return P <= f;
2792
+ const L = he.fromFormat(x.expiresOn, t), f = he.utc();
2793
+ return L <= f;
2786
2794
  }
2787
2795
  return N(), Ir = {
2788
2796
  authState: l,
@@ -2791,62 +2799,62 @@ function Dn(e) {
2791
2799
  canView: C,
2792
2800
  canViewPermit: _,
2793
2801
  credentials: s,
2794
- doShow: L,
2802
+ doShow: M,
2795
2803
  doShowByNav: $,
2796
2804
  getAuthorizeUrl: d,
2797
2805
  getToken: i,
2798
2806
  isLoggedIn: ee(() => s.value.isLoggedIn === !0),
2799
2807
  login: D,
2800
- logout: y,
2801
- resetAuthState: S,
2808
+ logout: w,
2809
+ resetAuthState: A,
2802
2810
  setAuth: E,
2803
2811
  timeZone: ee(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2804
- tryLogin: b
2812
+ tryLogin: S
2805
2813
  }, Ir;
2806
2814
  }
2807
2815
  function xn(e, t, l = {}) {
2808
2816
  const {
2809
- preventDefault: S = !1,
2817
+ preventDefault: A = !1,
2810
2818
  stopPropagation: s = !1,
2811
2819
  axis: g = "both"
2812
2820
  } = l, I = { capture: l.capture ?? !0 };
2813
- let C = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, L = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2821
+ let C = { x: 0, y: 0 }, _ = { x: 0, y: 0 }, M = { x: 0, y: 0 }, $ = [], d = [], h = z(!1);
2814
2822
  function u(N) {
2815
- Q(S) && N.preventDefault(), Q(s) && N.stopPropagation();
2823
+ Q(A) && N.preventDefault(), Q(s) && N.stopPropagation();
2816
2824
  }
2817
2825
  function r(N) {
2818
2826
  var f;
2819
- const b = Q(e);
2820
- if (!b)
2827
+ const S = Q(e);
2828
+ if (!S)
2821
2829
  return;
2822
- const T = b.$el, P = N.type === "touchstart" && N.touches.length > 0 ? N.touches[0] : N;
2823
- L = { x: P.clientX, y: P.clientY }, _ = {
2830
+ const T = S.$el, L = N.type === "touchstart" && N.touches.length > 0 ? N.touches[0] : N;
2831
+ M = { x: L.clientX, y: L.clientY }, _ = {
2824
2832
  x: T.offsetLeft,
2825
2833
  y: T.offsetTop
2826
2834
  }, C = {
2827
2835
  x: T.offsetLeft,
2828
2836
  y: T.offsetTop
2829
- }, ((f = l.onStart) == null ? void 0 : f.call(l, L, N)) !== !1 && (d.push(me("mousemove", y)), d.push(me("touchmove", y)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(N));
2837
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, M, N)) !== !1 && (d.push(me("mousemove", w)), d.push(me("touchmove", w)), d.push(me("mouseup", D)), d.push(me("touchend", D)), u(N));
2830
2838
  }
2831
- function y(N) {
2832
- var A;
2833
- if (!L || !Q(e))
2839
+ function w(N) {
2840
+ var y;
2841
+ if (!M || !Q(e))
2834
2842
  return;
2835
2843
  const x = N.type === "touchmove" && N.touches.length > 0 ? N.touches[0] : N;
2836
- let P = x.clientX - L.x, f = x.clientY - L.y;
2837
- (g === "x" || g === "both") && (C.x = _.x + P), (g === "y" || g === "both") && (C.y = _.y + f), (A = l.onMove) == null || A.call(l, C, N), u(N), i(C);
2844
+ let L = x.clientX - M.x, f = x.clientY - M.y;
2845
+ (g === "x" || g === "both") && (C.x = _.x + L), (g === "y" || g === "both") && (C.y = _.y + f), (y = l.onMove) == null || y.call(l, C, N), u(N), i(C);
2838
2846
  }
2839
2847
  function D(N) {
2840
- var b;
2848
+ var S;
2841
2849
  document.documentElement.style.cursor = "", d.forEach((T) => {
2842
2850
  T();
2843
- }), d.length = 0, (b = l.onEnd) == null || b.call(l, C, N), u(N);
2851
+ }), d.length = 0, (S = l.onEnd) == null || S.call(l, C, N), u(N);
2844
2852
  }
2845
2853
  function i(N) {
2846
- const b = Q(e);
2847
- if (!b)
2854
+ const S = Q(e);
2855
+ if (!S)
2848
2856
  return;
2849
- const T = b.$el;
2857
+ const T = S.$el;
2850
2858
  T.style.left = `${N.x}px`, T.style.top = `${N.y}px`;
2851
2859
  }
2852
2860
  function E() {
@@ -2855,47 +2863,47 @@ function xn(e, t, l = {}) {
2855
2863
  const N = Q(t);
2856
2864
  if (!N)
2857
2865
  return;
2858
- const b = N.$el;
2859
- b.style.cursor = "move", $.push(me(b, "mousedown", r, I)), $.push(me(b, "touchstart", r, I)), h.value = !0;
2866
+ const S = N.$el;
2867
+ S.style.cursor = "move", $.push(me(S, "mousedown", r, I)), $.push(me(S, "touchstart", r, I)), h.value = !0;
2860
2868
  }
2861
- function w() {
2869
+ function b() {
2862
2870
  if (!Q(h))
2863
2871
  return;
2864
2872
  const N = Q(t);
2865
2873
  if (!N)
2866
2874
  return;
2867
- const b = N.$el;
2868
- b.style.cursor = "", $.forEach((T) => {
2875
+ const S = N.$el;
2876
+ S.style.cursor = "", $.forEach((T) => {
2869
2877
  T();
2870
2878
  }), $.length = 0, h.value = !1;
2871
2879
  }
2872
2880
  return {
2873
2881
  draggingIsOn: h,
2874
- turnDraggableOff: w,
2882
+ turnDraggableOff: b,
2875
2883
  turnDraggableOn: E
2876
2884
  };
2877
2885
  }
2878
2886
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2879
2887
  function _n(e, t = {}) {
2880
- let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, I = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2888
+ let l, A = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, I = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, _ = t.maxHeight ?? Number.MAX_SAFE_INTEGER, M = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2881
2889
  const u = z(!1);
2882
- let r = [], y = [];
2890
+ let r = [], w = [];
2883
2891
  const D = z(!1), i = z({ x: 0, y: 0 });
2884
- let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
2892
+ let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, b = {};
2885
2893
  function N(G) {
2886
- Ee(L) && G.preventDefault(), Ee($) && G.stopPropagation();
2894
+ Ee(M) && G.preventDefault(), Ee($) && G.stopPropagation();
2887
2895
  }
2888
- function b(G, Y) {
2896
+ function S(G, Y) {
2889
2897
  h = Y.map(x), h.forEach((H) => G.$el.appendChild(H));
2890
2898
  }
2891
2899
  function T(G) {
2892
2900
  h.forEach((Y) => G.$el.removeChild(Y));
2893
2901
  }
2894
2902
  function x(G) {
2895
- const Y = S + "px", H = -S / 2 + "px", ie = s + 1, Z = document.createElement("div");
2896
- return Z.dataset.handle = G, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (G.length === 1 ? s : ie).toString(), Z.style.cursor = j(G), G.includes("t") && (Z.style.top = H, Z.style.height = Y, G === "t" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("b") && (Z.style.bottom = H, Z.style.height = Y, G === "b" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("r") && (Z.style.right = H, Z.style.width = Y, G === "r" && (Z.style.top = "0", Z.style.height = "100%")), G.includes("l") && (Z.style.left = H, Z.style.width = Y, G === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
2903
+ const Y = A + "px", H = -A / 2 + "px", ie = s + 1, Z = document.createElement("div");
2904
+ return Z.dataset.handle = G, Z.style.position = "absolute", Z.style.touchAction = "none", Z.style.userSelect = "none", Z.style.zIndex = (G.length === 1 ? s : ie).toString(), Z.style.cursor = J(G), G.includes("t") && (Z.style.top = H, Z.style.height = Y, G === "t" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("b") && (Z.style.bottom = H, Z.style.height = Y, G === "b" && (Z.style.left = "0", Z.style.width = "100%")), G.includes("r") && (Z.style.right = H, Z.style.width = Y, G === "r" && (Z.style.top = "0", Z.style.height = "100%")), G.includes("l") && (Z.style.left = H, Z.style.width = Y, G === "l" && (Z.style.top = "0", Z.style.height = "100%")), Z;
2897
2905
  }
2898
- function P(G) {
2906
+ function L(G) {
2899
2907
  var ne;
2900
2908
  if (!h.some((ce) => ce == G.target))
2901
2909
  return;
@@ -2908,10 +2916,10 @@ function _n(e, t = {}) {
2908
2916
  top: H.offsetTop,
2909
2917
  height: parseInt(window.getComputedStyle(H).getPropertyValue("height")),
2910
2918
  width: parseInt(window.getComputedStyle(H).getPropertyValue("width"))
2911
- }, w = Nr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2919
+ }, b = Nr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, G)) === !1)
2912
2920
  return;
2913
2921
  let W = G.target;
2914
- document.documentElement.style.cursor = j(W.dataset.handle), d = W.dataset.handle, y.push(me("mousemove", f)), y.push(me("mouseup", A)), y.push(me("touchmove", f)), y.push(me("touchend", A)), N(G);
2922
+ document.documentElement.style.cursor = J(W.dataset.handle), d = W.dataset.handle, w.push(me("mousemove", f)), w.push(me("mouseup", y)), w.push(me("touchmove", f)), w.push(me("touchend", y)), N(G);
2915
2923
  }
2916
2924
  function f(G) {
2917
2925
  const Y = Ee(e);
@@ -2922,28 +2930,28 @@ function _n(e, t = {}) {
2922
2930
  const ce = Ee(E);
2923
2931
  if (d.includes("t")) {
2924
2932
  const se = Math.min(_, Math.max(C, (ce.height ?? 0) - ne));
2925
- w.height = se, w.top = (ce.top ?? 0) + ne;
2933
+ b.height = se, b.top = (ce.top ?? 0) + ne;
2926
2934
  }
2927
2935
  if (d.includes("b")) {
2928
2936
  const se = Math.min(_, Math.max(C, (ce.height ?? 0) + ne));
2929
- w.height = se;
2937
+ b.height = se;
2930
2938
  }
2931
2939
  if (d.includes("l")) {
2932
2940
  const se = Math.min(I, Math.max(g, (ce.width ?? 0) - W));
2933
- w.width = se, w.left = (ce.left ?? 0) + W;
2941
+ b.width = se, b.left = (ce.left ?? 0) + W;
2934
2942
  }
2935
2943
  if (d.includes("r")) {
2936
2944
  const se = Math.min(I, Math.max(g, (ce.width ?? 0) + W));
2937
- w.width = se;
2945
+ b.width = se;
2938
2946
  }
2939
- H.dispatchEvent(new CustomEvent("resize")), N(G), re(w);
2947
+ H.dispatchEvent(new CustomEvent("resize")), N(G), re(b);
2940
2948
  }
2941
- function A() {
2942
- document.documentElement.style.cursor = "", d = null, y.forEach((G) => {
2949
+ function y() {
2950
+ document.documentElement.style.cursor = "", d = null, w.forEach((G) => {
2943
2951
  G();
2944
- }), y.length = 0;
2952
+ }), w.length = 0;
2945
2953
  }
2946
- function j(G) {
2954
+ function J(G) {
2947
2955
  const Y = {
2948
2956
  t: "n",
2949
2957
  r: "e",
@@ -2982,19 +2990,19 @@ function _n(e, t = {}) {
2982
2990
  position: "absolute"
2983
2991
  }, re(E), H.offsetHeight;
2984
2992
  const ie = E;
2985
- G == "freestyle" ? w = {
2993
+ G == "freestyle" ? b = {
2986
2994
  height: ie.height,
2987
2995
  width: (ie.width ?? 100) / 2,
2988
2996
  top: (ie.top ?? 0) + 2,
2989
2997
  left: (ie.left ?? 0) + 2,
2990
2998
  position: "absolute"
2991
- } : G == "blade" && (w = {
2999
+ } : G == "blade" && (b = {
2992
3000
  height: ie.height,
2993
3001
  width: (ie.width ?? 100) / 2,
2994
3002
  top: (ie.top ?? 0) + 2,
2995
3003
  left: (ie.left ?? 0) + 2,
2996
3004
  position: "absolute"
2997
- }), re(w), me(H, "transitionend", () => {
3005
+ }), re(b), me(H, "transitionend", () => {
2998
3006
  H.style.transition = "", u.value = !1;
2999
3007
  }, { once: !0 });
3000
3008
  }
@@ -3010,7 +3018,7 @@ function _n(e, t = {}) {
3010
3018
  if (D.value)
3011
3019
  return;
3012
3020
  const H = Ee(e);
3013
- H && (b(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", P)), r.push(me(H.$el, "touchstart", P)), D.value = !0, l = Y);
3021
+ H && (S(H, G ?? Tn), X(Y), r.push(me(H.$el, "mousedown", L)), r.push(me(H.$el, "touchstart", L)), D.value = !0, l = Y);
3014
3022
  }
3015
3023
  function be(G) {
3016
3024
  if (!D.value)
@@ -3027,16 +3035,16 @@ function _n(e, t = {}) {
3027
3035
  };
3028
3036
  }
3029
3037
  function Cn(e) {
3030
- const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), S = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), I = z({}), { turnResizingOff: C, turnResizingOn: _ } = _n(t), { turnDraggableOff: L, turnDraggableOn: $ } = xn(t, l);
3038
+ const t = (e == null ? void 0 : e.blade) ?? z(null), l = (e == null ? void 0 : e.handle) ?? z(null), A = z(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = z((e == null ? void 0 : e.defaultVariant) ?? "page"), I = z({}), { turnResizingOff: C, turnResizingOn: _ } = _n(t), { turnDraggableOff: M, turnDraggableOn: $ } = xn(t, l);
3031
3039
  jt(t, (h) => {
3032
3040
  const u = h[0], { width: r } = u.contentRect;
3033
- S.value = r < s;
3041
+ A.value = r < s;
3034
3042
  });
3035
3043
  function d(h) {
3036
- L(), h == "page" ? C(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (C(), _(void 0, h), $()) : h == "inline" && C();
3044
+ M(), h == "page" ? C(h) : h == "blade" ? _(["l", "r"], h) : h == "freestyle" ? (C(), _(void 0, h), $()) : h == "inline" && C();
3037
3045
  }
3038
3046
  return d(g.value), Te(g, (h) => d(h)), {
3039
- isMobile: S,
3047
+ isMobile: A,
3040
3048
  variant: g,
3041
3049
  bladeData: I
3042
3050
  };
@@ -3080,7 +3088,7 @@ function ya(e) {
3080
3088
  function Pn(e) {
3081
3089
  const t = z({});
3082
3090
  let l = e.vuetifyInstance;
3083
- function S() {
3091
+ function A() {
3084
3092
  const d = localStorage.getItem("cosmetics");
3085
3093
  d != null && d.length > 0 ? t.value = JSON.parse(d) : t.value = {
3086
3094
  theme: e.defaultTheme ?? "light",
@@ -3121,7 +3129,7 @@ function Pn(e) {
3121
3129
  function _() {
3122
3130
  t.value.drawerStick = !t.value.drawerStick;
3123
3131
  }
3124
- function L() {
3132
+ function M() {
3125
3133
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", l != null && (l.global.name.value = t.value.theme);
3126
3134
  }
3127
3135
  function $() {
@@ -3131,7 +3139,7 @@ function Pn(e) {
3131
3139
  h.colors.primary = (t.value.dark ?? { ...vr, ...e.defaultDarkTheme }).primary, u.colors.primary = (t.value.light ?? { ...mr, ...e.defaultLightTheme }).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
3132
3140
  }
3133
3141
  }
3134
- return S(), Te(t, () => {
3142
+ return A(), Te(t, () => {
3135
3143
  s();
3136
3144
  }), Dr = {
3137
3145
  state: t,
@@ -3139,7 +3147,7 @@ function Pn(e) {
3139
3147
  setTemporaryColor: I,
3140
3148
  toggleDrawer: C,
3141
3149
  toggleDrawerStick: _,
3142
- toggleLightDark: L,
3150
+ toggleLightDark: M,
3143
3151
  undoTemporaryColor: $
3144
3152
  }, Dr;
3145
3153
  }
@@ -3150,14 +3158,14 @@ function Mn() {
3150
3158
  function e(t) {
3151
3159
  const {
3152
3160
  items: l,
3153
- headers: S,
3161
+ headers: A,
3154
3162
  fileName: s = "data.csv",
3155
3163
  format: g = "file"
3156
3164
  } = t;
3157
3165
  if (!_e(l))
3158
3166
  return;
3159
3167
  let I = [];
3160
- S != null ? I = S == null ? void 0 : S.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3168
+ A != null ? I = A == null ? void 0 : A.filter((D) => (D.csv ?? D.csvText ?? D.csvFilter ?? D.csvArray) != null).map((D) => ({
3161
3169
  header: D.title ?? D.value ?? "",
3162
3170
  itemText: D.itemText,
3163
3171
  value: D.value
@@ -3165,22 +3173,22 @@ function Mn() {
3165
3173
  var C = [];
3166
3174
  for (let D = 0; D < l.length; D++) {
3167
3175
  const i = l[D];
3168
- var _ = {}, L = [];
3176
+ var _ = {}, M = [];
3169
3177
  for (let E = 0; E < I.length; E++) {
3170
- const w = I[E];
3178
+ const b = I[E];
3171
3179
  var $ = null;
3172
- typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? _[w.header] = Sr($, w.itemText) : _[w.header] = $;
3180
+ typeof b.value == "function" ? $ = b.value(i) : typeof b.value == "string" && ($ = Sr(i, b.value)), b.itemText != null ? _[b.header] = Sr($, b.itemText) : _[b.header] = $;
3173
3181
  }
3174
- C.push(_), _e(L) && L.forEach((E) => {
3182
+ C.push(_), _e(M) && M.forEach((E) => {
3175
3183
  C.push(E);
3176
- }), L = [];
3184
+ }), M = [];
3177
3185
  }
3178
3186
  var d = [];
3179
3187
  if (d.push(I.map((D) => D.header).toString()), C.forEach((D) => {
3180
3188
  let i = [];
3181
3189
  I.forEach(function(E) {
3182
- var w = D[E.header];
3183
- i.push(w ?? "");
3190
+ var b = D[E.header];
3191
+ i.push(b ?? "");
3184
3192
  }), d.push(i.join(","));
3185
3193
  }), g == "array")
3186
3194
  return d;
@@ -3189,9 +3197,9 @@ function Mn() {
3189
3197
  if (window.navigator.msSaveOrOpenBlob)
3190
3198
  window.navigator.msSaveOrOpenBlob(u, s);
3191
3199
  else {
3192
- var r = document.createElement("a"), y = URL.createObjectURL(u);
3193
- r.href = y, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3194
- document.body.removeChild(r), window.URL.revokeObjectURL(y);
3200
+ var r = document.createElement("a"), w = URL.createObjectURL(u);
3201
+ r.href = w, r.download = s, document.body.appendChild(r), r.click(), setTimeout(function() {
3202
+ document.body.removeChild(r), window.URL.revokeObjectURL(w);
3195
3203
  }, 0);
3196
3204
  }
3197
3205
  }
@@ -3208,36 +3216,36 @@ function Ln(e) {
3208
3216
  function l() {
3209
3217
  return s().startOf("day").toUTC().toString() ?? "";
3210
3218
  }
3211
- function S() {
3219
+ function A() {
3212
3220
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3213
3221
  }
3214
- function s(_, L) {
3215
- return _ == null ? t().setZone(e.getTimeZone()) : L ? he.fromFormat(_, L, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3222
+ function s(_, M) {
3223
+ return _ == null ? t().setZone(e.getTimeZone()) : M ? he.fromFormat(_, M, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3216
3224
  }
3217
- function g(_, L, $) {
3225
+ function g(_, M, $) {
3218
3226
  if (_ == null) {
3219
3227
  const h = t().setZone(e.getTimeZone());
3220
- return L ? h.toFormat(L) : h.toString();
3228
+ return M ? h.toFormat(M) : h.toString();
3221
3229
  }
3222
3230
  if (_ == "Invalid DateTime")
3223
3231
  return "";
3224
3232
  const d = $ ? he.fromFormat(_, $, { zone: e.getTimeZone() }) : he.fromISO(_, { zone: e.getTimeZone() });
3225
- return L ? d.toFormat(L) : d == null ? void 0 : d.toString();
3233
+ return M ? d.toFormat(M) : d == null ? void 0 : d.toString();
3226
3234
  }
3227
- function I(_, L) {
3228
- return _ == null ? t() : L ? he.fromFormat(_, L) : he.fromISO(_);
3235
+ function I(_, M) {
3236
+ return _ == null ? t() : M ? he.fromFormat(_, M) : he.fromISO(_);
3229
3237
  }
3230
- function C(_, L, $) {
3238
+ function C(_, M, $) {
3231
3239
  if (_ == null)
3232
- return L ? t().toFormat(L) : t().toString();
3240
+ return M ? t().toFormat(M) : t().toString();
3233
3241
  {
3234
3242
  const d = $ ? he.fromFormat(_, $) : he.fromISO(_);
3235
- return L ? d.toFormat(L) : d.toString();
3243
+ return M ? d.toFormat(M) : d.toString();
3236
3244
  }
3237
3245
  }
3238
3246
  return xr = {
3239
3247
  getToday: l,
3240
- getTomorrow: S,
3248
+ getTomorrow: A,
3241
3249
  tzDate: s,
3242
3250
  tzString: g,
3243
3251
  utcDate: I,
@@ -3250,7 +3258,7 @@ function Sa() {
3250
3258
  }
3251
3259
  function Nn(e) {
3252
3260
  const t = z(!1), l = (e == null ? void 0 : e.apis) ?? [];
3253
- function S() {
3261
+ function A() {
3254
3262
  t.value = !0;
3255
3263
  }
3256
3264
  function s() {
@@ -3270,20 +3278,20 @@ function Nn(e) {
3270
3278
  return Promise.resolve("no demo data available for this api");
3271
3279
  const h = d.id ?? ((r = d.data) == null ? void 0 : r.id), u = g(d);
3272
3280
  if (h != null && (u == null ? void 0 : u.data) != null) {
3273
- const y = u.data.findIndex((D) => D.id == h);
3274
- y >= 0 && u.data.splice(y, 1);
3281
+ const w = u.data.findIndex((D) => D.id == h);
3282
+ w >= 0 && u.data.splice(w, 1);
3275
3283
  }
3276
- return new Promise(function(y) {
3284
+ return new Promise(function(w) {
3277
3285
  setTimeout(function() {
3278
- y(void 0);
3286
+ w(void 0);
3279
3287
  }, 200);
3280
3288
  });
3281
3289
  }
3282
3290
  function C(d) {
3283
- var y, D, i;
3291
+ var w, D, i;
3284
3292
  if (l == null)
3285
3293
  throw new Error("no demo data available for this api");
3286
- const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
3294
+ const h = d.id ?? ((w = d.data) == null ? void 0 : w.id), u = g(d);
3287
3295
  let r;
3288
3296
  return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (D = u.data) == null ? void 0 : D.find((E) => E.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((E) => {
3289
3297
  setTimeout(() => {
@@ -3308,13 +3316,13 @@ function Nn(e) {
3308
3316
  });
3309
3317
  });
3310
3318
  }
3311
- function L(d) {
3312
- var r, y;
3319
+ function M(d) {
3320
+ var r, w;
3313
3321
  if (l == null)
3314
3322
  throw new Error("no demo data available for this api");
3315
3323
  const h = g(d);
3316
3324
  let u;
3317
- return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((D) => {
3325
+ return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (w = h.data) == null || w.push(u))), u == null ? Promise.resolve(void 0) : new Promise((D) => {
3318
3326
  setTimeout(() => {
3319
3327
  D({
3320
3328
  data: u
@@ -3323,7 +3331,7 @@ function Nn(e) {
3323
3331
  });
3324
3332
  }
3325
3333
  function $(d) {
3326
- var r, y;
3334
+ var r, w;
3327
3335
  if (l == null)
3328
3336
  throw new Error("no demo data available for this api");
3329
3337
  const h = g(d);
@@ -3333,7 +3341,7 @@ function Nn(e) {
3333
3341
  u = h.patchAction(h.data, d.data);
3334
3342
  else if (d.data.id != null) {
3335
3343
  const D = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3336
- D != null && D > -1 && ((y = h.data) == null || y.splice(D, 1, d.data)), u = d.data;
3344
+ D != null && D > -1 && ((w = h.data) == null || w.splice(D, 1, d.data)), u = d.data;
3337
3345
  }
3338
3346
  }
3339
3347
  return u == null ? Promise.resolve(void 0) : new Promise((D) => {
@@ -3347,12 +3355,12 @@ function Nn(e) {
3347
3355
  return Tr = {
3348
3356
  endDemo: s,
3349
3357
  isDemoing: t,
3350
- startDemo: S,
3358
+ startDemo: A,
3351
3359
  data: l,
3352
3360
  deleteItem: I,
3353
3361
  get: C,
3354
3362
  getAll: _,
3355
- post: L,
3363
+ post: M,
3356
3364
  patch: $
3357
3365
  }, Tr;
3358
3366
  }
@@ -3360,9 +3368,9 @@ var Rn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3360
3368
  function Aa(e) {
3361
3369
  function t(l) {
3362
3370
  var s;
3363
- const S = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3364
- if (S)
3365
- document.title = S.meta.title;
3371
+ const A = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3372
+ if (A)
3373
+ document.title = A.meta.title;
3366
3374
  else {
3367
3375
  const g = Rn.VITE_NODE_ENV;
3368
3376
  let I = "";
@@ -3378,43 +3386,43 @@ function Ea() {
3378
3386
  return _r;
3379
3387
  }
3380
3388
  function Un(e) {
3381
- function t(f, A, j) {
3382
- return f ? an(f) ? j ?? "" : e.dates.tzString(f, A) : j ?? f ?? "";
3389
+ function t(f, y, J) {
3390
+ return f ? an(f) ? J ?? "" : e.dates.tzString(f, y) : J ?? f ?? "";
3383
3391
  }
3384
3392
  function l(f) {
3385
3393
  if (!f)
3386
3394
  return "";
3387
3395
  if (typeof f != "object")
3388
3396
  return f;
3389
- var A = "";
3390
- return f.companyAccount != null && (A = f.companyAccount.companyName + " | "), f.addressLineOne != null && (A = A + f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + ", "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A;
3397
+ var y = "";
3398
+ return f.companyAccount != null && (y = f.companyAccount.companyName + " | "), f.addressLineOne != null && (y = y + f.addressLineOne + " "), f.streetNumber != null && (y = y + f.streetNumber + " "), f.streetName != null && (y = y + f.streetName + ", "), f.suburb != null && (y = y + f.suburb + " "), f.state != null && (y = y + f.state + " "), f.postcode != null && (y = y + f.postcode), y;
3391
3399
  }
3392
- function S(f) {
3400
+ function A(f) {
3393
3401
  if (typeof f != "number")
3394
3402
  return f;
3395
- var A = new Intl.NumberFormat("en-US", {
3403
+ var y = new Intl.NumberFormat("en-US", {
3396
3404
  style: "currency",
3397
3405
  currency: "AUD",
3398
3406
  minimumFractionDigits: 2
3399
3407
  });
3400
- return A.format(f);
3408
+ return y.format(f);
3401
3409
  }
3402
- function s(f, A) {
3403
- return t(f, "ccc | d LLL", A);
3410
+ function s(f, y) {
3411
+ return t(f, "ccc | d LLL", y);
3404
3412
  }
3405
- function g(f, A) {
3406
- return t(f, "d LLL", A);
3413
+ function g(f, y) {
3414
+ return t(f, "d LLL", y);
3407
3415
  }
3408
- function I(f, A) {
3409
- return t(f, "ccc", A);
3416
+ function I(f, y) {
3417
+ return t(f, "ccc", y);
3410
3418
  }
3411
- function C(f, A) {
3412
- return t(f, "ccc dd LLL yyyy", A);
3419
+ function C(f, y) {
3420
+ return t(f, "ccc dd LLL yyyy", y);
3413
3421
  }
3414
- function _(f, A) {
3415
- return t(f, "ccc dd LLL @ hh:mm a", A);
3422
+ function _(f, y) {
3423
+ return t(f, "ccc dd LLL @ hh:mm a", y);
3416
3424
  }
3417
- function L(f) {
3425
+ function M(f) {
3418
3426
  return new Intl.NumberFormat().format(f);
3419
3427
  }
3420
3428
  function $(f) {
@@ -3423,11 +3431,11 @@ function Un(e) {
3423
3431
  function d(f) {
3424
3432
  if (f == 0)
3425
3433
  return "";
3426
- var A = new Intl.NumberFormat().format(f);
3427
- return f > 0 ? "+" + A : A;
3434
+ var y = new Intl.NumberFormat().format(f);
3435
+ return f > 0 ? "+" + y : y;
3428
3436
  }
3429
- function h(f, A) {
3430
- return e.dates.utcString(f, A);
3437
+ function h(f, y) {
3438
+ return e.dates.utcString(f, y);
3431
3439
  }
3432
3440
  function u(f) {
3433
3441
  return rt(f, !1);
@@ -3437,92 +3445,92 @@ function Un(e) {
3437
3445
  return "";
3438
3446
  if (typeof f != "object")
3439
3447
  return f;
3440
- var A = "";
3441
- return f.addressLineOne != null && (A = f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + " "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A = A.replaceAll(",", " "), A;
3448
+ var y = "";
3449
+ return f.addressLineOne != null && (y = f.addressLineOne + " "), f.streetNumber != null && (y = y + f.streetNumber + " "), f.streetName != null && (y = y + f.streetName + " "), f.suburb != null && (y = y + f.suburb + " "), f.state != null && (y = y + f.state + " "), f.postcode != null && (y = y + f.postcode), y = y.replaceAll(",", " "), y;
3442
3450
  }
3443
- function y(f, A) {
3444
- return t(f, "ddd DD MMM YYYY", A);
3451
+ function w(f, y) {
3452
+ return t(f, "ddd DD MMM YYYY", y);
3445
3453
  }
3446
- function D(f, A) {
3447
- return t(f, "ccc dd LLL yyyy hh:mm a", A);
3454
+ function D(f, y) {
3455
+ return t(f, "ccc dd LLL yyyy hh:mm a", y);
3448
3456
  }
3449
3457
  function i(f) {
3450
- var A = new Intl.NumberFormat("en-US", {
3458
+ var y = new Intl.NumberFormat("en-US", {
3451
3459
  style: "percent",
3452
3460
  minimumFractionDigits: 2
3453
3461
  });
3454
- return A.format(f);
3462
+ return y.format(f);
3455
3463
  }
3456
3464
  function E(f) {
3457
3465
  return f.replaceAll(",", " ");
3458
3466
  }
3459
- function w(f, A) {
3460
- return t(f, "dd LLL yyyy", A);
3467
+ function b(f, y) {
3468
+ return t(f, "dd LLL yyyy", y);
3461
3469
  }
3462
- function N(f, A) {
3463
- return t(f, "dd LLL yyyy hh:mm a", A);
3470
+ function N(f, y) {
3471
+ return t(f, "dd LLL yyyy hh:mm a", y);
3464
3472
  }
3465
- function b(f, A) {
3466
- return t(f, "hh:mm a", A);
3473
+ function S(f, y) {
3474
+ return t(f, "hh:mm a", y);
3467
3475
  }
3468
3476
  function T(f) {
3469
3477
  return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
3470
3478
  }
3471
3479
  const x = {
3472
3480
  toCompanyNameAndLocationLine: l,
3473
- toCurrency: S,
3481
+ toCurrency: A,
3474
3482
  toDayDate: s,
3475
3483
  toDayMonth: g,
3476
3484
  toDayOfWeek: I,
3477
3485
  toDayShortDate: C,
3478
3486
  toDayShortDateAndTime: _,
3479
- toDisplayNumber: L,
3487
+ toDisplayNumber: M,
3480
3488
  toDisplayNumberOver: $,
3481
3489
  toDisplayNumberSigned: d,
3482
3490
  toFormat: h,
3483
3491
  toLocationLine: u,
3484
3492
  toLocationLineNoCommas: r,
3485
- toLongDate: y,
3493
+ toLongDate: w,
3486
3494
  toLongDateAndTime: D,
3487
3495
  toPercent: i,
3488
3496
  toPrettyCSV: E,
3489
- toShortDate: w,
3497
+ toShortDate: b,
3490
3498
  toShortDateAndTime: N,
3491
- toTime: b,
3499
+ toTime: S,
3492
3500
  toTimeOfDay: T
3493
3501
  };
3494
- function P(f) {
3502
+ function L(f) {
3495
3503
  if (f != null) {
3496
- let A = f;
3497
- if (A != null && x[A] != null)
3498
- return x[A];
3504
+ let y = f;
3505
+ if (y != null && x[y] != null)
3506
+ return x[y];
3499
3507
  }
3500
- return (A) => A;
3508
+ return (y) => y;
3501
3509
  }
3502
3510
  return _r = {
3503
- findFilter: P,
3511
+ findFilter: L,
3504
3512
  ...x
3505
3513
  }, _r;
3506
3514
  }
3507
3515
  function Bn(e, t) {
3508
- const l = z(!1), S = Yt(e);
3516
+ const l = z(!1), A = Yt(e);
3509
3517
  let s = g(Q(e));
3510
- (t == null ? void 0 : t.useTracker) !== !1 && Te(S, (C) => {
3518
+ (t == null ? void 0 : t.useTracker) !== !1 && Te(A, (C) => {
3511
3519
  l.value = g(C) != s;
3512
3520
  }, { deep: !0 });
3513
3521
  function g(C) {
3514
3522
  const _ = Nr(C);
3515
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
3516
- delete _[L];
3523
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((M) => {
3524
+ delete _[M];
3517
3525
  }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
3518
3526
  t.propsToTrack.some((d) => d == $) || delete _[$];
3519
3527
  })), JSON.stringify(_);
3520
3528
  }
3521
3529
  function I() {
3522
- s = g(Q(S)), l.value = !1;
3530
+ s = g(Q(A)), l.value = !1;
3523
3531
  }
3524
3532
  return {
3525
- asyncItem: S,
3533
+ asyncItem: A,
3526
3534
  isChanged: l,
3527
3535
  restartTracker: I
3528
3536
  };
@@ -3532,19 +3540,19 @@ function Ia(e, t) {
3532
3540
  const {
3533
3541
  // useBladeSrc = true,
3534
3542
  useRouteSrc: l = !0
3535
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", I = Lr(), C = et(), _ = Q(e.proxyQueryKey), L = ee(() => {
3543
+ } = t ?? {}, A = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", I = Lr(), C = et(), _ = Q(e.proxyQueryKey), M = ee(() => {
3536
3544
  var W;
3537
3545
  return Q(e.proxyID) ?? (_ != null ? (W = C == null ? void 0 : C.query) == null ? void 0 : W[_] : void 0);
3538
- }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: D, saveItem: i } = ut({
3546
+ }), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: w, restoreItem: D, saveItem: i } = ut({
3539
3547
  nav: g,
3540
3548
  onError: e.onError ?? (t == null ? void 0 : t.onError),
3541
- proxyID: L.value,
3549
+ proxyID: M.value,
3542
3550
  store: Le({
3543
- storeMode: S,
3551
+ storeMode: A,
3544
3552
  storageMode: s,
3545
3553
  nav: g
3546
3554
  })
3547
- }), E = ee(() => e.errorMsg ?? d.value), w = ee(() => e.loadingMsg ?? h.value), N = ee(() => w.value != null), b = z(e.itemID ?? (l ? (Z = C == null ? void 0 : C.params) == null ? void 0 : Z.id : void 0)), T = z(b.value == "new" ? "new" : e.startEditing ? "edit" : "view"), x = Ne(!1), P = ee(() => {
3555
+ }), E = ee(() => e.errorMsg ?? d.value), b = ee(() => e.loadingMsg ?? h.value), N = ee(() => b.value != null), S = z(e.itemID ?? (l ? (Z = C == null ? void 0 : C.params) == null ? void 0 : Z.id : void 0)), T = z(S.value == "new" ? "new" : e.startEditing ? "edit" : "view"), x = Ne(!1), L = ee(() => {
3548
3556
  let W = e.params != null ? { ...e.params } : {};
3549
3557
  return e.includeDetails != null && (W.includeDetails = e.includeDetails), W;
3550
3558
  }), f = ee(() => {
@@ -3552,12 +3560,12 @@ function Ia(e, t) {
3552
3560
  return !1;
3553
3561
  const W = Q($);
3554
3562
  return e.onCanDelete != null ? e.onCanDelete(W) : (W == null ? void 0 : W.isInactive) !== !0;
3555
- }), A = ee(() => {
3563
+ }), y = ee(() => {
3556
3564
  if (T.value == "new")
3557
3565
  return !1;
3558
3566
  const W = Q($);
3559
3567
  return e.onCanEdit != null ? e.onCanEdit(W) : !0;
3560
- }), j = ee(() => {
3568
+ }), J = ee(() => {
3561
3569
  if (T.value == "new")
3562
3570
  return !1;
3563
3571
  const W = Q($);
@@ -3613,10 +3621,10 @@ function Ia(e, t) {
3613
3621
  else {
3614
3622
  const ne = {
3615
3623
  additionalUrl: e.additionalUrl,
3616
- id: b.value,
3624
+ id: S.value,
3617
3625
  nav: g,
3618
- proxyID: L.value,
3619
- params: P.value,
3626
+ proxyID: M.value,
3627
+ params: L.value,
3620
3628
  //props.params,
3621
3629
  // ...(useBladeSrc ? bladeData.value : {}),
3622
3630
  refresh: (W == null ? void 0 : W.deepRefresh) ?? !1,
@@ -3626,7 +3634,7 @@ function Ia(e, t) {
3626
3634
  if (e.isSingle === !0)
3627
3635
  ne.id === "new" ? $.value = e.onGetNew ? e.onGetNew() : {} : $.value = await r(ne);
3628
3636
  else {
3629
- const ce = await y(ne);
3637
+ const ce = await w(ne);
3630
3638
  $.value = ce.data;
3631
3639
  }
3632
3640
  }
@@ -3648,7 +3656,7 @@ function Ia(e, t) {
3648
3656
  onGetSaveAsync: ge,
3649
3657
  onSaveAsync: Be,
3650
3658
  onSaveSuccessAsync: $e,
3651
- proxyID: L.value,
3659
+ proxyID: M.value,
3652
3660
  // ...params.getOptions(),
3653
3661
  // ...(useBladeSrc ? bladeData.value : {}),
3654
3662
  mode: T.value
@@ -3672,12 +3680,12 @@ function Ia(e, t) {
3672
3680
  isChanged: re,
3673
3681
  isDeletable: f,
3674
3682
  isEditing: ee(() => T.value == "new" || T.value == "edit"),
3675
- isEditable: A,
3683
+ isEditable: y,
3676
3684
  isLoading: N,
3677
3685
  isNew: ee(() => T.value == "new"),
3678
- isRestorable: j,
3686
+ isRestorable: J,
3679
3687
  isSaveable: X,
3680
- loadingMsg: w,
3688
+ loadingMsg: b,
3681
3689
  mode: T,
3682
3690
  refresh: Y,
3683
3691
  restoreItem: G,
@@ -3703,7 +3711,7 @@ function $n(e) {
3703
3711
  displayName: h.displayName ?? e.getDisplayName(h),
3704
3712
  ...h
3705
3713
  }));
3706
- function S(h) {
3714
+ function A(h) {
3707
3715
  var u;
3708
3716
  return (u = C(h)) == null ? void 0 : u.archiveName;
3709
3717
  }
@@ -3721,8 +3729,8 @@ function $n(e) {
3721
3729
  }
3722
3730
  function C(h) {
3723
3731
  return h == null ? null : typeof h != "string" ? h : tt(l, (r) => r.children).find((r) => {
3724
- var y;
3725
- return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((D) => D == h));
3732
+ var w;
3733
+ return r.name == h || r.singleName == h || ((w = r.aliases) == null ? void 0 : w.some((D) => D == h));
3726
3734
  }) ?? null;
3727
3735
  }
3728
3736
  function _(h) {
@@ -3732,7 +3740,7 @@ function $n(e) {
3732
3740
  let r = gn(u.microservice ?? "default") ?? "";
3733
3741
  return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3734
3742
  }
3735
- function L(h) {
3743
+ function M(h) {
3736
3744
  const u = C(h);
3737
3745
  if ((u == null ? void 0 : u.singleName) != null)
3738
3746
  return u.singleName;
@@ -3758,26 +3766,26 @@ function $n(e) {
3758
3766
  backgroundName: Yr,
3759
3767
  hesitate: gr,
3760
3768
  navigationItems: l,
3761
- findArchiveName: S,
3769
+ findArchiveName: A,
3762
3770
  findCacheHours: s,
3763
3771
  findDisplay: g,
3764
3772
  findIcon: I,
3765
3773
  findItem: C,
3766
3774
  findStoreName: $,
3767
3775
  findPath: _,
3768
- findSingleDisplay: L,
3776
+ findSingleDisplay: M,
3769
3777
  updateNavigationProperties: d
3770
3778
  }, Cr;
3771
3779
  }
3772
3780
  function Da(e, t, l) {
3773
3781
  var He, Ve;
3774
- const S = Mn(), s = it(), g = Lr(), I = et(), { bladeData: C } = Cn({}), _ = e.useBladeSrc ?? !0, L = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), y = ee(() => Kt([
3782
+ const A = Mn(), s = it(), g = Lr(), I = et(), { bladeData: C } = Cn({}), _ = e.useBladeSrc ?? !0, M = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((He = s.findItem($)) == null ? void 0 : He.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = Q(e.customFilters) ?? [], r = z([]), w = ee(() => Kt([
3775
3783
  ...u.filter((U) => U.name != null).map((U) => U.name),
3776
3784
  ...e.defaultFilters ?? [],
3777
3785
  ...r.value
3778
- ]).value), D = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3786
+ ]).value), D = z((e.defaultFilters ?? []).map((U) => w.value.indexOf(U)));
3779
3787
  let i = z([...D.value]);
3780
- const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), w = z(N());
3788
+ const E = ee(() => Gr(i, D).value.length > 0 || Gr(D, i).value.length > 0), b = z(N());
3781
3789
  function N() {
3782
3790
  var U, K;
3783
3791
  if (_) {
@@ -3785,21 +3793,21 @@ function Da(e, t, l) {
3785
3793
  if (V != null)
3786
3794
  return Number.parseInt(V);
3787
3795
  }
3788
- if (L) {
3796
+ if (M) {
3789
3797
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.page;
3790
3798
  if (V != null)
3791
3799
  return Number.parseInt(typeof V == "string" ? V : V.toString());
3792
3800
  }
3793
3801
  return 1;
3794
3802
  }
3795
- const b = ee(() => {
3803
+ const S = ee(() => {
3796
3804
  var U, K;
3797
3805
  if (_) {
3798
3806
  const V = (U = C.value) == null ? void 0 : U.proxyID;
3799
3807
  if (V != null)
3800
3808
  return V;
3801
3809
  }
3802
- if (L) {
3810
+ if (M) {
3803
3811
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.query;
3804
3812
  if (V != null)
3805
3813
  return V;
@@ -3813,21 +3821,21 @@ function Da(e, t, l) {
3813
3821
  if (V != null)
3814
3822
  return V;
3815
3823
  }
3816
- if (L) {
3824
+ if (M) {
3817
3825
  const V = (K = I == null ? void 0 : I.query) == null ? void 0 : K.search;
3818
3826
  if (V != null)
3819
3827
  return V;
3820
3828
  }
3821
3829
  }
3822
- const P = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3830
+ const L = z(Q(e.startShowingInactive) ?? !1), f = ee(() => [
3823
3831
  ...e.searchProps ?? [],
3824
3832
  ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3825
- ]), A = z([]), j = Ne([]), X = z([]);
3833
+ ]), y = z([]), J = Ne([]), X = z([]);
3826
3834
  let re;
3827
3835
  const { actionErrorMsg: ue, actionLoadingMsg: be, deleteItem: G, doAction: Y, getItem: H, getAllItems: ie, restoreItem: Z } = ut({
3828
3836
  nav: $,
3829
3837
  onError: e.onError ?? (l == null ? void 0 : l.onError),
3830
- proxyID: b.value,
3838
+ proxyID: S.value,
3831
3839
  store: Le({
3832
3840
  storeMode: d,
3833
3841
  storageMode: h,
@@ -3836,7 +3844,7 @@ function Da(e, t, l) {
3836
3844
  }), W = ee(() => e.errorMsg ?? ue.value), ne = ee(() => e.loadingMsg ?? be.value), ce = ee(() => ne.value != null), se = Ne(!1), ge = Ne(e.showSearch ?? !0), Be = z(0), $e = ee(() => {
3837
3845
  let U, K = [];
3838
3846
  D.value.forEach((O) => {
3839
- const de = y.value[O], ye = u.find((De) => De.name == de);
3847
+ const de = w.value[O], ye = u.find((De) => De.name == de);
3840
3848
  ye != null ? U = U != null ? `${U}ANDALSO${ye.filterFunction()}` : ye.filterFunction() : K.push(de);
3841
3849
  });
3842
3850
  const V = {};
@@ -3844,8 +3852,8 @@ function Da(e, t, l) {
3844
3852
  }), Fe = ee(() => {
3845
3853
  var K;
3846
3854
  let U = e.params != null ? { ...e.params } : {};
3847
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (w.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), P.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3848
- }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => P.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3855
+ return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (b.value - 1) * e.itemsPerPage), $e.value != null && (U = { ...U, ...$e.value }), L.value && (U.includeInactive = !0), _e(e.selectProps) && (U.properties = (K = e.selectProps) == null ? void 0 : K.toString()), T.value != null && (U.searchString = T.value), U;
3856
+ }), tr = ee(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = ee(() => (U) => L.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = ee(() => X.value.filter((U) => !U.hide)), ar = ee(() => {
3849
3857
  let U = new Array();
3850
3858
  return Ce.value.filter((V) => V.sublevel != null).forEach((V) => {
3851
3859
  let O = U.find((de) => de.position == V.sublevel);
@@ -3877,14 +3885,14 @@ function Da(e, t, l) {
3877
3885
  onDeleteAsync: V
3878
3886
  } = { ...e }, O = Q(U), de = O.id, ye = (De) => {
3879
3887
  if (De != null) {
3880
- let Ae = A.value.findIndex((oe) => oe.id == De);
3881
- if (Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3888
+ let Ae = y.value.findIndex((oe) => oe.id == De);
3889
+ if (Ae > -1 && y.value.splice(Ae, 1), e.items != null) {
3882
3890
  let oe = e.items.findIndex((Me) => Me.id == De);
3883
3891
  oe > -1 && e.items.splice(oe, 1);
3884
3892
  }
3885
3893
  } else {
3886
- let Ae = A.value.findIndex((oe) => oe === O);
3887
- if (Ae == -1 && (Ae = A.value.findIndex((oe) => oe == O)), Ae > -1 && A.value.splice(Ae, 1), e.items != null) {
3894
+ let Ae = y.value.findIndex((oe) => oe === O);
3895
+ if (Ae == -1 && (Ae = y.value.findIndex((oe) => oe == O)), Ae > -1 && y.value.splice(Ae, 1), e.items != null) {
3888
3896
  let oe = e.items.findIndex((Me) => Me === O);
3889
3897
  oe == -1 && (oe = e.items.findIndex((Me) => Me == O)), oe > -1 && e.items.splice(oe, 1);
3890
3898
  }
@@ -3897,7 +3905,7 @@ function Da(e, t, l) {
3897
3905
  onCanDeleteAsync: e.onCanDeleteAsync,
3898
3906
  onDeleteAsync: V,
3899
3907
  onDeleteSuccessAsync: async () => (ye(de), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(O) : Promise.resolve(void 0)),
3900
- proxyID: b.value,
3908
+ proxyID: S.value,
3901
3909
  // ...(useBladeSrc ? bladeData.value : {}),
3902
3910
  requireConfirmation: !0
3903
3911
  }), t && t("deleted", U);
@@ -3910,22 +3918,22 @@ function Da(e, t, l) {
3910
3918
  onCanRestoreAsync: e.onCanRestoreAsync,
3911
3919
  onRestoreAsync: e.onRestoreAsync,
3912
3920
  onRestoreSuccessAsync: e.onRestoreSuccessAsync,
3913
- proxyID: b.value
3921
+ proxyID: S.value
3914
3922
  // ...(useBladeSrc ? bladeData.value : {})
3915
3923
  });
3916
3924
  }
3917
3925
  function ke() {
3918
3926
  Y(() => {
3919
- S.exportToCSV(Ce.value, j.value);
3927
+ A.exportToCSV(Ce.value, J.value);
3920
3928
  }, { loadingMsg: "Exporting to CSV" });
3921
3929
  }
3922
3930
  function Pe() {
3923
- let U = Q(A);
3931
+ let U = Q(y);
3924
3932
  if (U = e.onFilter ? e.onFilter(U) : U, T.value != null && T.value.length > 0) {
3925
3933
  let K = [...f.value];
3926
3934
  e.itemText && K.push(e.itemText), _e(K) && (U = U.filter((V) => dn(V, T.value, K)));
3927
3935
  }
3928
- j.value = U;
3936
+ J.value = U;
3929
3937
  }
3930
3938
  function qe() {
3931
3939
  const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
@@ -3933,7 +3941,7 @@ function Da(e, t, l) {
3933
3941
  }
3934
3942
  async function Ie(U) {
3935
3943
  if (se.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (ge.value = e.showSearch ?? !1, T.value = void 0), e.items != null) {
3936
- A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3944
+ y.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3937
3945
  return;
3938
3946
  }
3939
3947
  const K = {
@@ -3943,7 +3951,7 @@ function Da(e, t, l) {
3943
3951
  params: Fe.value,
3944
3952
  //params,
3945
3953
  // params: params.getParamOptions(),
3946
- proxyID: b.value,
3954
+ proxyID: S.value,
3947
3955
  // ...(useBladeSrc ? bladeData.value : {}),
3948
3956
  // ...(props.useInterEvents ? eventData : {}),
3949
3957
  refresh: (U == null ? void 0 : U.deepRefresh) ?? !1,
@@ -3951,16 +3959,17 @@ function Da(e, t, l) {
3951
3959
  onGetSuccessAsync: e.onGetSuccessAsync
3952
3960
  };
3953
3961
  if (e.isSingle === !0)
3954
- K.id === "new" ? A.value = [] : A.value = await H(K);
3962
+ K.id === "new" ? y.value = [] : y.value = await H(K);
3955
3963
  else {
3956
3964
  let V = await ie({
3957
3965
  ...K,
3958
3966
  onGetSuccessAsync: async (O, de) => {
3967
+ console.log("get suc"), console.log(O);
3959
3968
  let ye = O == null ? void 0 : O.data;
3960
3969
  return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ye = await e.onGetSuccessAsync(ye, de)), ye;
3961
3970
  }
3962
3971
  });
3963
- A.value = V, i.value = [...D.value];
3972
+ console.log("list res"), console.log(V), y.value = V, i.value = [...D.value];
3964
3973
  }
3965
3974
  Pe();
3966
3975
  }
@@ -3987,27 +3996,27 @@ function Da(e, t, l) {
3987
3996
  }
3988
3997
  return qe(), Qt([T], () => {
3989
3998
  Pe();
3990
- }, { debounce: 500, maxWait: 500 }), Te([P, w], async () => {
3999
+ }, { debounce: 500, maxWait: 500 }), Te([L, b], async () => {
3991
4000
  await Ie();
3992
4001
  }), Te([W, () => e.errorMsg], ([U, K]) => {
3993
4002
  se.value = U != null || K != null;
3994
4003
  }), Te(() => e.refreshToggle, () => {
3995
4004
  Ie({ deepRefresh: !0 });
3996
- }), Or([A, () => e.items], () => {
4005
+ }), Or([y, () => e.items], () => {
3997
4006
  Pe();
3998
4007
  }), Xr(async () => {
3999
4008
  var U;
4000
4009
  e.eager == !0 && await Ie({ deepRefresh: ((U = I == null ? void 0 : I.params) == null ? void 0 : U.refresh) == "true" });
4001
4010
  }), {
4002
4011
  add: Se,
4003
- asyncItems: A,
4004
- currentPage: w,
4012
+ asyncItems: y,
4013
+ currentPage: b,
4005
4014
  deleteItem: ir,
4006
4015
  displayHeaders: ur,
4007
4016
  errorMsg: W,
4008
4017
  exportToCSV: ke,
4009
- filteredItems: j,
4010
- filters: y,
4018
+ filteredItems: J,
4019
+ filters: w,
4011
4020
  filtersChanged: E,
4012
4021
  headerOptions: X,
4013
4022
  isDeletable: tr,
@@ -4021,7 +4030,7 @@ function Da(e, t, l) {
4021
4030
  selectItem: je,
4022
4031
  // serverFilters,
4023
4032
  showError: se,
4024
- showInactive: P,
4033
+ showInactive: L,
4025
4034
  showSearch: ge,
4026
4035
  subtitleOptions: ar,
4027
4036
  tableHeaders: Ce,
@@ -4041,29 +4050,29 @@ function Fn(e) {
4041
4050
  }
4042
4051
  function xa() {
4043
4052
  const e = Lr(), t = it(), l = In();
4044
- let S = e.getRoutes();
4053
+ let A = e.getRoutes();
4045
4054
  return {
4046
4055
  ...We,
4047
4056
  sidebarNavItems: ee(() => {
4048
4057
  var g;
4049
- S = S.filter((I) => I.meta != null && I.meta.menuGroup != null);
4058
+ A = A.filter((I) => I.meta != null && I.meta.menuGroup != null);
4050
4059
  const s = [];
4051
- return S.forEach((I) => {
4060
+ return A.forEach((I) => {
4052
4061
  var d;
4053
- const C = We.groupOptions.value.find((h) => h.displayName == I.meta.menuGroup), _ = t.findItem(I.meta.nav), L = I.meta;
4054
- let $ = s.find((h) => h.displayName == L.menuGroup);
4062
+ const C = We.groupOptions.value.find((h) => h.displayName == I.meta.menuGroup), _ = t.findItem(I.meta.nav), M = I.meta;
4063
+ let $ = s.find((h) => h.displayName == M.menuGroup);
4055
4064
  $ == null && ($ = {
4056
- displayName: L.menuGroup,
4057
- icon: (C == null ? void 0 : C.icon) ?? (L == null ? void 0 : L.icon) ?? (_ == null ? void 0 : _.icon),
4065
+ displayName: M.menuGroup,
4066
+ icon: (C == null ? void 0 : C.icon) ?? (M == null ? void 0 : M.icon) ?? (_ == null ? void 0 : _.icon),
4058
4067
  isGroup: !0,
4059
4068
  items: []
4060
4069
  }, s.push($)), (d = $.items) == null || d.push({
4061
- displayName: (L == null ? void 0 : L.displayName) ?? t.findDisplay(_ ?? void 0),
4062
- icon: (L == null ? void 0 : L.icon) ?? t.findIcon(_ ?? void 0),
4063
- permissions: (L == null ? void 0 : L.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4064
- requiresAuth: (L == null ? void 0 : L.requiresAuth) !== !1,
4065
- subscriptions: (L == null ? void 0 : L.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4066
- subFilters: (L == null ? void 0 : L.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4070
+ displayName: (M == null ? void 0 : M.displayName) ?? t.findDisplay(_ ?? void 0),
4071
+ icon: (M == null ? void 0 : M.icon) ?? t.findIcon(_ ?? void 0),
4072
+ permissions: (M == null ? void 0 : M.permissions) ?? (_ == null ? void 0 : _.permissions) ?? [],
4073
+ requiresAuth: (M == null ? void 0 : M.requiresAuth) !== !1,
4074
+ subscriptions: (M == null ? void 0 : M.subscriptions) ?? (_ == null ? void 0 : _.subscriptions) ?? [],
4075
+ subFilters: (M == null ? void 0 : M.subFilters) ?? (_ == null ? void 0 : _.subFilters) ?? [],
4067
4076
  routeName: I.name
4068
4077
  });
4069
4078
  }), s.forEach((I) => {
@@ -4081,8 +4090,8 @@ function kn(e) {
4081
4090
  function t(l) {
4082
4091
  if (!l)
4083
4092
  return {};
4084
- let S = l;
4085
- return e.presets[S] ?? {};
4093
+ let A = l;
4094
+ return e.presets[A] ?? {};
4086
4095
  }
4087
4096
  return Pr = {
4088
4097
  usePresets: t
@@ -4105,7 +4114,7 @@ function Gn() {
4105
4114
  var I;
4106
4115
  (I = Qr.value) == null || I.prompt(), wr.value = !1;
4107
4116
  }
4108
- function S() {
4117
+ function A() {
4109
4118
  return !!window.matchMedia("(display-mode: standalone)").matches;
4110
4119
  }
4111
4120
  function s(I) {
@@ -4120,7 +4129,7 @@ function Gn() {
4120
4129
  canInstallApp: wr,
4121
4130
  canUpdateApp: br,
4122
4131
  installApp: l,
4123
- isInstalled: S,
4132
+ isInstalled: A,
4124
4133
  updateApp: g
4125
4134
  }, Mr;
4126
4135
  }
@@ -4133,8 +4142,8 @@ function Pa(e) {
4133
4142
  install(t, l) {
4134
4143
  var _;
4135
4144
  console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), yn(e.urls), Pn(e);
4136
- const S = Nn(), s = $n(e);
4137
- kn(e), (_ = e.auth).demo ?? (_.demo = S), e.auth.getAuthItem = s.findItem;
4145
+ const A = Nn(), s = $n(e);
4146
+ kn(e), (_ = e.auth).demo ?? (_.demo = A), e.auth.getAuthItem = s.findItem;
4138
4147
  const g = Dn(e.auth);
4139
4148
  Fn(e.menu);
4140
4149
  const I = En({