bt-core-app 1.4.22 → 1.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { onMounted as jr, nextTick as nr, computed as le, watch as Ee, unref as xn, getCurrentInstance as Gr, getCurrentScope as xt, onScopeDispose as Nt, ref as Z, readonly as Nn, customRef as Tn, shallowRef as xe, onUpdated as Cn, toValue as K, inject as qr, hasInjectionContext as Pn, reactive as Ln, markRaw as We, effectScope as Mn, isRef as qe, isReactive as Hr, toRef as tr, toRaw as Rn, toRefs as lt } from "vue";
2
2
  import { DateTime as ie } from "luxon";
3
- function Un(e, t) {
3
+ function Un(e, r) {
4
4
  let n, l, s;
5
5
  const h = Z(!0), A = () => {
6
6
  h.value = !0, s();
7
7
  };
8
8
  Ee(e, A, { flush: "sync" });
9
- const E = typeof t == "function" ? t : t.get, T = typeof t == "function" ? void 0 : t.set, L = Tn((R, y) => (l = R, s = y, {
9
+ const E = typeof r == "function" ? r : r.get, T = typeof r == "function" ? void 0 : r.set, L = Tn((R, y) => (l = R, s = y, {
10
10
  get() {
11
11
  return h.value && (n = E(), h.value = !1), l(), n;
12
12
  },
@@ -26,24 +26,24 @@ const $n = typeof window < "u" && typeof document < "u";
26
26
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
27
  const Fn = Object.prototype.toString, kn = (e) => Fn.call(e) === "[object Object]", Nr = () => {
28
28
  };
29
- function Vn(e, t) {
29
+ function Vn(e, r) {
30
30
  function n(...l) {
31
31
  return new Promise((s, h) => {
32
- Promise.resolve(e(() => t.apply(this, l), { fn: t, thisArg: this, args: l })).then(s).catch(h);
32
+ Promise.resolve(e(() => r.apply(this, l), { fn: r, thisArg: this, args: l })).then(s).catch(h);
33
33
  });
34
34
  }
35
35
  return n;
36
36
  }
37
37
  const Tt = (e) => e();
38
- function Wn(e, t = {}) {
38
+ function Wn(e, r = {}) {
39
39
  let n, l, s = Nr;
40
40
  const h = (E) => {
41
41
  clearTimeout(E), s(), s = Nr;
42
42
  };
43
43
  return (E) => {
44
- const T = ae(e), L = ae(t.maxWait);
44
+ const T = ae(e), L = ae(r.maxWait);
45
45
  return n && h(n), T <= 0 || L !== void 0 && L <= 0 ? (l && (h(l), l = null), Promise.resolve(E())) : new Promise((R, y) => {
46
- s = t.rejectOnCancel ? y : R, L && !l && (l = setTimeout(() => {
46
+ s = r.rejectOnCancel ? y : R, L && !l && (l = setTimeout(() => {
47
47
  n && h(n), l = null, R(E());
48
48
  }, L)), n = setTimeout(() => {
49
49
  l && h(l), l = null, R(E());
@@ -52,22 +52,22 @@ function Wn(e, t = {}) {
52
52
  };
53
53
  }
54
54
  function jn(e = Tt) {
55
- const t = Z(!0);
55
+ const r = Z(!0);
56
56
  function n() {
57
- t.value = !1;
57
+ r.value = !1;
58
58
  }
59
59
  function l() {
60
- t.value = !0;
60
+ r.value = !0;
61
61
  }
62
62
  const s = (...h) => {
63
- t.value && e(...h);
63
+ r.value && e(...h);
64
64
  };
65
- return { isActive: Nn(t), pause: n, resume: l, eventFilter: s };
65
+ return { isActive: Nn(r), pause: n, resume: l, eventFilter: s };
66
66
  }
67
67
  function Gn(e) {
68
68
  return e || Gr();
69
69
  }
70
- function Ct(e, t, n = {}) {
70
+ function Ct(e, r, n = {}) {
71
71
  const {
72
72
  eventFilter: l = Tt,
73
73
  ...s
@@ -76,35 +76,35 @@ function Ct(e, t, n = {}) {
76
76
  e,
77
77
  Vn(
78
78
  l,
79
- t
79
+ r
80
80
  ),
81
81
  s
82
82
  );
83
83
  }
84
- function qn(e, t, n = {}) {
84
+ function qn(e, r, n = {}) {
85
85
  const {
86
86
  eventFilter: l,
87
87
  ...s
88
88
  } = n, { eventFilter: h, pause: A, resume: E, isActive: T } = jn(l);
89
89
  return { stop: Ct(
90
90
  e,
91
- t,
91
+ r,
92
92
  {
93
93
  ...s,
94
94
  eventFilter: h
95
95
  }
96
96
  ), pause: A, resume: E, isActive: T };
97
97
  }
98
- function zr(e, t = !0, n) {
99
- Gn() ? jr(e, n) : t ? e() : nr(e);
98
+ function zr(e, r = !0, n) {
99
+ Gn() ? jr(e, n) : r ? e() : nr(e);
100
100
  }
101
- function Hn(e, t) {
102
- return e === t;
101
+ function Hn(e, r) {
102
+ return e === r;
103
103
  }
104
104
  function ct(...e) {
105
- var t;
105
+ var r;
106
106
  const n = e[0], l = e[1];
107
- let s = (t = e[2]) != null ? t : Hn;
107
+ let s = (r = e[2]) != null ? r : Hn;
108
108
  if (typeof s == "string") {
109
109
  const h = s;
110
110
  s = (A, E) => A[h] === E[h];
@@ -114,16 +114,16 @@ function ct(...e) {
114
114
  function zn(e) {
115
115
  return Array.from(new Set(e));
116
116
  }
117
- function Zn(e, t) {
118
- return e.reduce((n, l) => (n.some((s) => t(l, s, e)) || n.push(l), n), []);
117
+ function Zn(e, r) {
118
+ return e.reduce((n, l) => (n.some((s) => r(l, s, e)) || n.push(l), n), []);
119
119
  }
120
- function Yn(e, t) {
120
+ function Yn(e, r) {
121
121
  return le(() => {
122
122
  const n = ae(e).map((l) => ae(l));
123
- return t ? Zn(n, t) : zn(n);
123
+ return r ? Zn(n, r) : zn(n);
124
124
  });
125
125
  }
126
- function Pt(e, t, n) {
126
+ function Pt(e, r, n) {
127
127
  let l = n != null && n.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : ae(e)];
128
128
  return Ee(e, (s, h, A) => {
129
129
  const E = Array.from({ length: l.length }), T = [];
@@ -137,10 +137,10 @@ function Pt(e, t, n) {
137
137
  y || T.push(R);
138
138
  }
139
139
  const L = l.filter((R, y) => !E[y]);
140
- t(s, l, T, L, A), l = [...s];
140
+ r(s, l, T, L, A), l = [...s];
141
141
  }, n);
142
142
  }
143
- function Jn(e, t, n = {}) {
143
+ function Jn(e, r, n = {}) {
144
144
  const {
145
145
  debounce: l = 0,
146
146
  maxWait: s = void 0,
@@ -148,7 +148,7 @@ function Jn(e, t, n = {}) {
148
148
  } = n;
149
149
  return Ct(
150
150
  e,
151
- t,
151
+ r,
152
152
  {
153
153
  ...h,
154
154
  eventFilter: Wn(l, { maxWait: s })
@@ -156,26 +156,26 @@ function Jn(e, t, n = {}) {
156
156
  );
157
157
  }
158
158
  function Zr(e) {
159
- var t;
159
+ var r;
160
160
  const n = ae(e);
161
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
161
+ return (r = n == null ? void 0 : n.$el) != null ? r : n;
162
162
  }
163
163
  const Tr = $n ? window : void 0;
164
164
  function oe(...e) {
165
- let t, n, l, s;
166
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, s] = e, t = Tr) : [t, n, l, s] = e, !t)
165
+ let r, n, l, s;
166
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, s] = e, r = Tr) : [r, n, l, s] = e, !r)
167
167
  return Nr;
168
168
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
169
169
  const h = [], A = () => {
170
170
  h.forEach((R) => R()), h.length = 0;
171
171
  }, E = (R, y, c, o) => (R.addEventListener(y, c, o), () => R.removeEventListener(y, c, o)), T = Ee(
172
- () => [Zr(t), ae(s)],
172
+ () => [Zr(r), ae(s)],
173
173
  ([R, y]) => {
174
174
  if (A(), !R)
175
175
  return;
176
176
  const c = kn(y) ? { ...y } : y;
177
177
  h.push(
178
- ...n.flatMap((o) => l.map((r) => E(R, o, r, c)))
178
+ ...n.flatMap((o) => l.map((t) => E(R, o, t, c)))
179
179
  );
180
180
  },
181
181
  { immediate: !0, flush: "post" }
@@ -188,8 +188,8 @@ const Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window :
188
188
  function Qn() {
189
189
  return Ke in Je || (Je[Ke] = Je[Ke] || {}), Je[Ke];
190
190
  }
191
- function Xn(e, t) {
192
- return Kn[e] || t;
191
+ function Xn(e, r) {
192
+ return Kn[e] || r;
193
193
  }
194
194
  function On(e) {
195
195
  return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
@@ -228,7 +228,7 @@ const pn = {
228
228
  write: (e) => e.toISOString()
229
229
  }
230
230
  }, it = "vueuse-storage";
231
- function ft(e, t, n, l = {}) {
231
+ function ft(e, r, n, l = {}) {
232
232
  var s;
233
233
  const {
234
234
  flush: h = "pre",
@@ -242,8 +242,8 @@ function ft(e, t, n, l = {}) {
242
242
  onError: o = (f) => {
243
243
  console.error(f);
244
244
  },
245
- initOnMounted: r
246
- } = l, x = (R ? xe : Z)(typeof t == "function" ? t() : t);
245
+ initOnMounted: t
246
+ } = l, x = (R ? xe : Z)(typeof r == "function" ? r() : r);
247
247
  if (!n)
248
248
  try {
249
249
  n = Xn("getDefaultStorage", () => {
@@ -255,14 +255,14 @@ function ft(e, t, n, l = {}) {
255
255
  }
256
256
  if (!n)
257
257
  return x;
258
- const S = ae(t), w = On(S), I = (s = l.serializer) != null ? s : pn[w], { pause: B, resume: U } = qn(
258
+ const S = ae(r), w = On(S), I = (s = l.serializer) != null ? s : pn[w], { pause: B, resume: U } = qn(
259
259
  x,
260
260
  () => P(x.value),
261
261
  { flush: h, deep: A, eventFilter: c }
262
262
  );
263
263
  y && E && zr(() => {
264
- oe(y, "storage", D), oe(y, it, g), r && D();
265
- }), r || D();
264
+ oe(y, "storage", D), oe(y, it, g), t && D();
265
+ }), t || D();
266
266
  function _(f, C) {
267
267
  y && y.dispatchEvent(new CustomEvent(it, {
268
268
  detail: {
@@ -320,37 +320,37 @@ function ft(e, t, n, l = {}) {
320
320
  return x;
321
321
  }
322
322
  function ea(e) {
323
- const t = Gr(), n = Un(
323
+ const r = Gr(), n = Un(
324
324
  () => null,
325
- () => e ? Zr(e) : t.proxy.$el
325
+ () => e ? Zr(e) : r.proxy.$el
326
326
  );
327
327
  return Cn(n.trigger), jr(n.trigger), n;
328
328
  }
329
329
  function ra(e = ea()) {
330
- const t = xe(), n = () => {
330
+ const r = xe(), n = () => {
331
331
  const l = Zr(e);
332
- l && (t.value = l.parentElement);
332
+ l && (r.value = l.parentElement);
333
333
  };
334
- return zr(n), Ee(() => ae(e), n), t;
334
+ return zr(n), Ee(() => ae(e), n), r;
335
335
  }
336
336
  function ta(e) {
337
337
  return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, na);
338
338
  }
339
339
  function na(e) {
340
- const t = Math.random() * 16 | 0;
341
- return (e == "x" ? t : t & 3 | 8).toString(16);
340
+ const r = Math.random() * 16 | 0;
341
+ return (e == "x" ? r : r & 3 | 8).toString(16);
342
342
  }
343
343
  function aa(e) {
344
- const t = Z([]), n = xe(), l = xe(), s = xe(), h = le(() => n.value != null);
344
+ const r = Z([]), n = xe(), l = xe(), s = xe(), h = le(() => n.value != null);
345
345
  function A(y) {
346
- t.value = t.value.filter((c) => c.id != y);
346
+ r.value = r.value.filter((c) => c.id != y);
347
347
  }
348
348
  function E(y) {
349
349
  const c = {
350
350
  id: ta(),
351
351
  msg: y ?? "Loading"
352
352
  };
353
- return t.value.push(c), c.id;
353
+ return r.value.push(c), c.id;
354
354
  }
355
355
  function T(y) {
356
356
  y != null && (l.value = y.toString());
@@ -361,7 +361,7 @@ function aa(e) {
361
361
  async function R(y, c) {
362
362
  const o = { ...c };
363
363
  o.completionMsg ?? (o.completionMsg = e == null ? void 0 : e.completionMsg), o.confirmationMsg ?? (o.confirmationMsg = e == null ? void 0 : e.confirmationMsg), o.errorMsg ?? (o.errorMsg = e == null ? void 0 : e.errorMsg), o.loadingMsg ?? (o.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), o.requireConfirmation ?? (o.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
364
- const r = E(o.loadingMsg);
364
+ const t = E(o.loadingMsg);
365
365
  let x = null;
366
366
  try {
367
367
  return o.requireConfirmation || o.confirmationMsg, x = await y(), o.completionMsg != null && (s.value = o.completionMsg), x;
@@ -370,10 +370,10 @@ function aa(e) {
370
370
  return x;
371
371
  T(o.errorMsg ?? S ?? "error");
372
372
  } finally {
373
- A(r);
373
+ A(t);
374
374
  }
375
375
  }
376
- return Pt(t, (y) => {
376
+ return Pt(r, (y) => {
377
377
  n.value = y.length > 0 ? y[0].msg : void 0;
378
378
  }, { deep: !0 }), {
379
379
  actionErrorMsg: l,
@@ -386,101 +386,101 @@ function aa(e) {
386
386
  };
387
387
  }
388
388
  function ua(e) {
389
- const { actionErrorMsg: t, actionLoadingMsg: n, clearErrors: l, isLoading: s, doAction: h, logError: A } = aa(e);
390
- function E(r) {
391
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
392
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
393
- return r.nav != null && x != null && (r.onDeleteAsync ?? (r.onDeleteAsync = () => x().deleteItem(r))), h(async () => {
389
+ const { actionErrorMsg: r, actionLoadingMsg: n, clearErrors: l, isLoading: s, doAction: h, logError: A } = aa(e);
390
+ function E(t) {
391
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), t.store ?? (t.store = e == null ? void 0 : e.store);
392
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
393
+ return t.nav != null && x != null && (t.onDeleteAsync ?? (t.onDeleteAsync = () => x().deleteItem(t))), h(async () => {
394
394
  let S;
395
- r.onCanDeleteAsync != null && (S = await r.onCanDeleteAsync(r.data)), S == null && r.onDeleteAsync != null && (S = await r.onDeleteAsync(r.data)), S == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), A(S);
395
+ t.onCanDeleteAsync != null && (S = await t.onCanDeleteAsync(t.data)), S == null && t.onDeleteAsync != null && (S = await t.onDeleteAsync(t.data)), S == null && t.onDeleteSuccessAsync != null && await t.onDeleteSuccessAsync(t.data), A(S);
396
396
  }, {
397
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
398
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
399
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
400
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Deleting",
401
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
402
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
397
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
398
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
399
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
400
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Deleting",
401
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
402
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
403
403
  });
404
404
  }
405
- function T(r) {
406
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
407
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
408
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = async () => (await x().get(r)).data)), h(async () => {
405
+ function T(t) {
406
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
407
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
408
+ return t.nav != null && x != null && (t.onGetAsync ?? (t.onGetAsync = async () => (await x().get(t)).data)), h(async () => {
409
409
  let S;
410
- return r.onGetAsync != null && (S = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (S = await r.onGetSuccessAsync(S, r)), S;
410
+ return t.onGetAsync != null && (S = await t.onGetAsync(t)), t.onGetSuccessAsync != null && (S = await t.onGetSuccessAsync(S, t)), S;
411
411
  }, {
412
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
413
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
414
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
415
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
416
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
417
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
412
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
413
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
414
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
415
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
416
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
417
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
418
418
  });
419
419
  }
420
- function L(r) {
421
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
422
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
423
- return r.nav != null && x != null && (r.onGetAsync ?? (r.onGetAsync = () => x().getAll(r))), h(async () => {
420
+ function L(t) {
421
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
422
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
423
+ return t.nav != null && x != null && (t.onGetAsync ?? (t.onGetAsync = () => x().getAll(t))), h(async () => {
424
424
  let S;
425
- return r.onGetAsync != null && (S = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (S = await r.onGetSuccessAsync(S, r)), S;
425
+ return t.onGetAsync != null && (S = await t.onGetAsync(t)), t.onGetSuccessAsync != null && (S = await t.onGetSuccessAsync(S, t)), S;
426
426
  }, {
427
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
428
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
429
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
430
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
431
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
432
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
427
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
428
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
429
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
430
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Retrieving",
431
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
432
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
433
433
  });
434
434
  }
435
- function R(r) {
436
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
437
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
438
- return r.nav != null && x != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => x().restore(r))), h(async () => {
435
+ function R(t) {
436
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
437
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
438
+ return t.nav != null && x != null && (t.onRestoreAsync ?? (t.onRestoreAsync = () => x().restore(t))), h(async () => {
439
439
  let S, w;
440
- return r.onCanRestoreAsync != null && (S = await r.onCanRestoreAsync(r.data)), S == null && r.onRestoreAsync != null && (w = await r.onRestoreAsync(r.data)), w != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(w), A(S), w;
440
+ return t.onCanRestoreAsync != null && (S = await t.onCanRestoreAsync(t.data)), S == null && t.onRestoreAsync != null && (w = await t.onRestoreAsync(t.data)), w != null && t.onRestoreSuccessAsync != null && await t.onRestoreSuccessAsync(w), A(S), w;
441
441
  }, {
442
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
443
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
444
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
445
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Restoring",
446
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
447
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
442
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
443
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
444
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
445
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Restoring",
446
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
447
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
448
448
  });
449
449
  }
450
- function y(r) {
451
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
452
- const x = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
453
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (S) => S), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), r.nav != null && x != null && (r.onSaveAsync ?? (r.onSaveAsync = async () => r.mode == "new" ? await x().post(r) : await x().patch(r))), h(async () => {
450
+ function y(t) {
451
+ t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), t.confirmationMsg ?? (t.confirmationMsg = t.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
452
+ const x = (t == null ? void 0 : t.store) ?? (e == null ? void 0 : e.store);
453
+ return t.onGetSaveAsync ?? (t.onGetSaveAsync = (S) => S), t.onCanSaveAsync ?? (t.onCanSaveAsync = () => Promise.resolve(void 0)), t.nav != null && x != null && (t.onSaveAsync ?? (t.onSaveAsync = async () => t.mode == "new" ? await x().post(t) : await x().patch(t))), h(async () => {
454
454
  let S;
455
- if (r.onGetSaveAsync != null && (S = await r.onGetSaveAsync(r.data)), S == null)
455
+ if (t.onGetSaveAsync != null && (S = await t.onGetSaveAsync(t.data)), S == null)
456
456
  return;
457
- if (r.onCanSaveAsync != null) {
458
- let I = await r.onCanSaveAsync(S);
457
+ if (t.onCanSaveAsync != null) {
458
+ let I = await t.onCanSaveAsync(S);
459
459
  if (A(I), I == null)
460
460
  return;
461
461
  }
462
462
  let w;
463
- return r.onSaveAsync != null && (w = await r.onSaveAsync(S), w = w.data), r.onSaveSuccessAsync != null && (w = await r.onSaveSuccessAsync(w)), w;
463
+ return t.onSaveAsync != null && (w = await t.onSaveAsync(S), w = w.data), t.onSaveSuccessAsync != null && (w = await t.onSaveSuccessAsync(w)), w;
464
464
  }, {
465
- completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
466
- confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
467
- errorMsg: r.errorMsg ?? (e == null ? void 0 : e.errorMsg),
468
- loadingMsg: r.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Saving",
469
- requireConfirmation: r.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
470
- throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
465
+ completionMsg: t.completionMsg ?? (e == null ? void 0 : e.completionMsg),
466
+ confirmationMsg: t.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
467
+ errorMsg: t.errorMsg ?? (e == null ? void 0 : e.errorMsg),
468
+ loadingMsg: t.loadingMsg ?? (e == null ? void 0 : e.loadingMsg) ?? "Saving",
469
+ requireConfirmation: t.requireConfirmation ?? (e == null ? void 0 : e.requireConfirmation),
470
+ throwError: t.throwError ?? (e == null ? void 0 : e.throwError)
471
471
  });
472
472
  }
473
- function c(r) {
474
- return 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), h(async () => await r.api.post(r), e);
473
+ function c(t) {
474
+ return t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), h(async () => await t.api.post(t), e);
475
475
  }
476
- function o(r) {
477
- return 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), h(async () => await r.api.get(r), e);
476
+ function o(t) {
477
+ return t.nav ?? (t.nav = e == null ? void 0 : e.nav), t.proxyID ?? (t.proxyID = e == null ? void 0 : e.proxyID), t.refresh ?? (t.refresh = e == null ? void 0 : e.refresh), t.throwError ?? (t.throwError = e == null ? void 0 : e.throwError), t.url ?? (t.url = e == null ? void 0 : e.url), h(async () => await t.api.get(t), e);
478
478
  }
479
479
  return {
480
480
  apiGet: o,
481
481
  apiPost: c,
482
482
  actionLoadingMsg: n,
483
- actionErrorMsg: t,
483
+ actionErrorMsg: r,
484
484
  clearErrors: l,
485
485
  deleteItem: E,
486
486
  doAction: h,
@@ -500,7 +500,7 @@ var He = function() {
500
500
  function e(s) {
501
501
  return s;
502
502
  }
503
- function t(s) {
503
+ function r(s) {
504
504
  return typeof s == "string" ? s.toLowerCase() : s;
505
505
  }
506
506
  function n(s, h) {
@@ -511,7 +511,7 @@ var He = function() {
511
511
  };
512
512
  }
513
513
  if (s.length === 1) {
514
- var E = s, T = h.ignoreCase ? t : e, L = h.cmp || function(y, c) {
514
+ var E = s, T = h.ignoreCase ? r : e, L = h.cmp || function(y, c) {
515
515
  return y < c ? -1 : y > c ? 1 : 0;
516
516
  };
517
517
  s = function(y, c) {
@@ -531,8 +531,8 @@ var He = function() {
531
531
  }
532
532
  return l.firstBy = l, l;
533
533
  }();
534
- function Te(e, t) {
535
- let n = e ?? "", l = t ?? "";
534
+ function Te(e, r) {
535
+ let n = e ?? "", l = r ?? "";
536
536
  if (n.endsWith("/"))
537
537
  do
538
538
  n = n.slice(0, n.length - 1);
@@ -544,59 +544,59 @@ function Te(e, t) {
544
544
  return `${n}/${l}`;
545
545
  }
546
546
  function Ya(e) {
547
- return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
547
+ return e == null || !Array.isArray(e) ? e : [...new Set(e.map((r) => r))];
548
548
  }
549
549
  function Ja(e = "blitzItExtensionExists") {
550
550
  try {
551
- var t = document.getElementById(e);
552
- return t != null;
551
+ var r = document.getElementById(e);
552
+ return r != null;
553
553
  } catch (n) {
554
554
  return console.log(ma(n)), !1;
555
555
  }
556
556
  }
557
- function Ka(e, t) {
557
+ function Ka(e, r) {
558
558
  return [
559
- { lat: e.lat - t, lng: e.lng + t },
560
- { lat: e.lat - t, lng: e.lng - t },
561
- { lat: e.lat + t, lng: e.lng - t },
562
- { lat: e.lat + t, lng: e.lng + t }
559
+ { lat: e.lat - r, lng: e.lng + r },
560
+ { lat: e.lat - r, lng: e.lng - r },
561
+ { lat: e.lat + r, lng: e.lng - r },
562
+ { lat: e.lat + r, lng: e.lng + r }
563
563
  ];
564
564
  }
565
- function Qa(e, t) {
565
+ function Qa(e, r) {
566
566
  return [
567
- { lat: e.lat - t * 2, lng: e.lng + t },
568
- { lat: e.lat - t * 2, lng: e.lng - t },
569
- { lat: e.lat, lng: e.lng - t },
570
- { lat: e.lat, lng: e.lng + t }
567
+ { lat: e.lat - r * 2, lng: e.lng + r },
568
+ { lat: e.lat - r * 2, lng: e.lng - r },
569
+ { lat: e.lat, lng: e.lng - r },
570
+ { lat: e.lat, lng: e.lng + r }
571
571
  ];
572
572
  }
573
- function Xa(e, t) {
573
+ function Xa(e, r) {
574
574
  return [
575
- { lat: e.lat, lng: e.lng + t },
576
- { lat: e.lat, lng: e.lng - t },
577
- { lat: e.lat + t * 2, lng: e.lng - t },
578
- { lat: e.lat + t * 2, lng: e.lng + t }
575
+ { lat: e.lat, lng: e.lng + r },
576
+ { lat: e.lat, lng: e.lng - r },
577
+ { lat: e.lat + r * 2, lng: e.lng - r },
578
+ { lat: e.lat + r * 2, lng: e.lng + r }
579
579
  ];
580
580
  }
581
581
  function Oa(e) {
582
- var t = Lt(e, !0);
583
- return t = t.toLowerCase(), t = t.replace(" victoria ", "vic"), t = t.replace(" queensland ", "qld"), t = t.replace(" new south wales ", "nsw"), t = t.replace(" northern territory ", "nt"), t = t.replace(" western australia ", "wa"), t = t.replace(" tasmania ", "tas"), t = t.replace(" south australia ", "sa"), t = t.replace(" australian captial territory ", "act"), t = t.replace(" & ", " and "), t = t.replace(" road", " rd"), t = t.replace(" street", " st"), t = t.replace(" lane", " ln"), t = t.replace(" alley", " aly"), t = t.replace(" arcade", " arc"), t = t.replace(" boulevard", " blvd"), t = t.replace(" court", " ct"), t = t.replace(" cove", " cv"), t = t.replace(" highway", " hwy"), t.replaceAll(" ", "");
582
+ var r = Lt(e, !0);
583
+ return r = r.toLowerCase(), r = r.replace(" victoria ", "vic"), r = r.replace(" queensland ", "qld"), r = r.replace(" new south wales ", "nsw"), r = r.replace(" northern territory ", "nt"), r = r.replace(" western australia ", "wa"), r = r.replace(" tasmania ", "tas"), r = r.replace(" south australia ", "sa"), r = r.replace(" australian captial territory ", "act"), r = r.replace(" & ", " and "), r = r.replace(" road", " rd"), r = r.replace(" street", " st"), r = r.replace(" lane", " ln"), r = r.replace(" alley", " aly"), r = r.replace(" arcade", " arc"), r = r.replace(" boulevard", " blvd"), r = r.replace(" court", " ct"), r = r.replace(" cove", " cv"), r = r.replace(" highway", " hwy"), r.replaceAll(" ", "");
584
584
  }
585
- function Lt(e, t = !1) {
585
+ function Lt(e, r = !1) {
586
586
  if (e == null)
587
587
  return "";
588
588
  if (typeof e != "object")
589
589
  return e;
590
590
  var n = "";
591
- return e.addressLineOne != null && !t && (n = e.addressLineOne + " "), e.streetNumber != null && (n = n + e.streetNumber + " "), e.streetName != null && (n = n + e.streetName + ", "), e.suburb != null && (n = n + e.suburb + " "), e.state != null && (n = n + e.state + " "), e.postcode != null && (n = n + e.postcode), n;
591
+ return e.addressLineOne != null && !r && (n = e.addressLineOne + " "), e.streetNumber != null && (n = n + e.streetNumber + " "), e.streetName != null && (n = n + e.streetName + ", "), e.suburb != null && (n = n + e.suburb + " "), e.state != null && (n = n + e.state + " "), e.postcode != null && (n = n + e.postcode), n;
592
592
  }
593
- function pa(e, t, n) {
593
+ function pa(e, r, n) {
594
594
  if (e) {
595
595
  var l = new Image();
596
- l.onload = t, l.onerror = n, l.src = e;
596
+ l.onload = r, l.onerror = n, l.src = e;
597
597
  }
598
598
  }
599
- async function eu(e, t = !0) {
599
+ async function eu(e, r = !0) {
600
600
  return new Promise((n, l) => {
601
601
  e == null && l("no url given");
602
602
  var s = new Image();
@@ -606,21 +606,21 @@ async function eu(e, t = !0) {
606
606
  var A = h.getContext("2d");
607
607
  A == null || A.drawImage(this, 0, 0), n(h.toDataURL("image/png"));
608
608
  }, s.onerror = function() {
609
- console.log("errr"), t ? l("image could not be loaded for some reason") : n(null);
609
+ console.log("errr"), r ? l("image could not be loaded for some reason") : n(null);
610
610
  }, e != null && (s.src = e);
611
611
  });
612
612
  }
613
613
  function ca(e) {
614
- return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
614
+ return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (r) => r.toUpperCase());
615
615
  }
616
616
  function ru(e) {
617
617
  if (e != null && typeof e == "object")
618
- for (var t in e)
619
- /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
618
+ for (var r in e)
619
+ /^[A-Z]/.test(r) && Object.hasOwnProperty.call(e, r) && (e[r.charAt(0).toLowerCase() + r.substring(1)] = e[r], delete e[r]);
620
620
  return e;
621
621
  }
622
622
  function ia(e) {
623
- return e == null ? e : e.replace(/\w\S*/g, (t) => t.replace(/^\w/, (n) => n.toUpperCase()));
623
+ return e == null ? e : e.replace(/\w\S*/g, (r) => r.replace(/^\w/, (n) => n.toUpperCase()));
624
624
  }
625
625
  const ze = [
626
626
  { value: 1, short: "sun", values: ["sun", "sunday"] },
@@ -635,40 +635,40 @@ const ze = [
635
635
  function tu(e) {
636
636
  if (e == null)
637
637
  return 0;
638
- const t = e.replaceAll(" ", "").split(",").map((l) => l.toLowerCase()), n = ze.filter((l) => l.values.some((s) => t.some((h) => s == h))).map((l) => l.value);
638
+ const r = e.replaceAll(" ", "").split(",").map((l) => l.toLowerCase()), n = ze.filter((l) => l.values.some((s) => r.some((h) => s == h))).map((l) => l.value);
639
639
  return n.length == 0 ? 8 : Math.min(...n);
640
640
  }
641
641
  function nu(e) {
642
- return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
643
- let n = ze.find((l) => l.values.some((s) => s == t));
642
+ return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((r) => {
643
+ let n = ze.find((l) => l.values.some((s) => s == r));
644
644
  return n != null ? n.short : "";
645
- }).filter((t) => t != null && t.length > 0).toString();
645
+ }).filter((r) => r != null && r.length > 0).toString();
646
646
  }
647
- function au(e, t) {
648
- if (e == null || t == null)
647
+ function au(e, r) {
648
+ if (e == null || r == null)
649
649
  return !0;
650
- const n = e.replaceAll(" ", "").split(",").map((h) => h.toLowerCase()), l = t.replaceAll(" ", "").toLowerCase(), s = ze.find((h) => h.values.some((A) => A == l));
650
+ const n = e.replaceAll(" ", "").split(",").map((h) => h.toLowerCase()), l = r.replaceAll(" ", "").toLowerCase(), s = ze.find((h) => h.values.some((A) => A == l));
651
651
  return s != null && n.some((h) => h == s.short || s.values.some((A) => A == h));
652
652
  }
653
- function uu(e, t) {
654
- if (t == null)
653
+ function uu(e, r) {
654
+ if (r == null)
655
655
  return e;
656
656
  let n = e ?? "";
657
- n = `${n},${t}`;
657
+ n = `${n},${r}`;
658
658
  let l = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((s) => ze.find((h) => h.values.some((A) => A == s))).filter((s) => s != null).sort(He.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
659
659
  return l.length > 0 ? l : void 0;
660
660
  }
661
- function lu(e, t) {
662
- if (t == null || e == null)
661
+ function lu(e, r) {
662
+ if (r == null || e == null)
663
663
  return e;
664
- let n = e ?? "", l = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((h) => ze.find((A) => A.values.some((E) => E == h && E != l))).filter((h) => h != null).sort(He.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
664
+ let n = e ?? "", l = r.replaceAll(" ", "").toLowerCase(), s = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((h) => ze.find((A) => A.values.some((E) => E == h && E != l))).filter((h) => h != null).sort(He.firstBy((h) => (h == null ? void 0 : h.value) ?? 0)).map((h) => h == null ? void 0 : h.short))].toString();
665
665
  return s.length > 0 ? s : void 0;
666
666
  }
667
- function cu(e, t) {
668
- return e != null && Array.isArray(e) && e.length == t;
667
+ function cu(e, r) {
668
+ return e != null && Array.isArray(e) && e.length == r;
669
669
  }
670
- function $e(e, t = 0) {
671
- return e != null && Array.isArray(e) && e.length > t;
670
+ function $e(e, r = 0) {
671
+ return e != null && Array.isArray(e) && e.length > r;
672
672
  }
673
673
  function fa(e) {
674
674
  return e == "0001-01-01T00:00:00Z";
@@ -679,70 +679,70 @@ function iu() {
679
679
  function sa() {
680
680
  return "0001-01-01T00:00:00Z";
681
681
  }
682
- function fu(e, t) {
682
+ function fu(e, r) {
683
683
  let n = "1", l = 0;
684
- if (l < t)
684
+ if (l < r)
685
685
  do
686
686
  n = n + "0", l += 1;
687
- while (l < t);
687
+ while (l < r);
688
688
  let s = Number.parseInt(n);
689
689
  return Math.round(e * s) / s;
690
690
  }
691
- function su(e, t) {
691
+ function su(e, r) {
692
692
  let n = e ?? "";
693
- return t != null && (oa(n, t) ? n = n.split(",").filter((l) => l != t).toString() : n != null ? n = `${n},${t}` : n = t), n != null && n.length > 0 ? n : null;
693
+ return r != null && (oa(n, r) ? n = n.split(",").filter((l) => l != r).toString() : n != null ? n = `${n},${r}` : n = r), n != null && n.length > 0 ? n : null;
694
694
  }
695
- function oa(e, t) {
695
+ function oa(e, r) {
696
696
  if (e == null || e.length == 0)
697
697
  return !1;
698
- if (!t)
698
+ if (!r)
699
699
  return !0;
700
- var n = e.split(","), l = t.split(",");
700
+ var n = e.split(","), l = r.split(",");
701
701
  return n.some((s) => l.some((h) => h == s));
702
702
  }
703
703
  function Yr(e) {
704
704
  if (!e)
705
705
  return e;
706
- let t, n = Array.isArray(e) ? [] : {};
706
+ let r, n = Array.isArray(e) ? [] : {};
707
707
  for (const l in e)
708
- t = e[l], n[l] = typeof t == "object" ? Yr(t) : t;
708
+ r = e[l], n[l] = typeof r == "object" ? Yr(r) : r;
709
709
  return n;
710
710
  }
711
711
  function ha(e) {
712
- return e && Object.keys(e).sort().reduce(function(t, n) {
712
+ return e && Object.keys(e).sort().reduce(function(r, n) {
713
713
  let l = e[n];
714
- return t[n] = typeof l == "object" && l !== null ? ha(l) : l, t;
714
+ return r[n] = typeof l == "object" && l !== null ? ha(l) : l, r;
715
715
  }, Array.isArray(e) ? [] : {});
716
716
  }
717
- function da(e, t) {
718
- return t == null ? !0 : e == null ? !1 : e.toLowerCase().includes(t.toLowerCase());
717
+ function da(e, r) {
718
+ return r == null ? !0 : e == null ? !1 : e.toLowerCase().includes(r.toLowerCase());
719
719
  }
720
- function Mt(e, t = (n) => n) {
720
+ function Mt(e, r = (n) => n) {
721
721
  if (e == null)
722
722
  return [];
723
- const n = Array.isArray(e) ? e : t(e);
723
+ const n = Array.isArray(e) ? e : r(e);
724
724
  return $e(n) ? [...n.reduce((l, s) => {
725
725
  l.push(s);
726
- const h = Mt(s, t);
726
+ const h = Mt(s, r);
727
727
  return $e(h) && l.push(...h), l;
728
728
  }, [])] : [];
729
729
  }
730
730
  function ou(e) {
731
- const t = e.split(","), n = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), l = t[0].split(":")[1].split(";")[0], s = new Uint8Array(n.length);
731
+ const r = e.split(","), n = r[0].indexOf("base64") >= 0 ? atob(r[1]) : decodeURI(r[1]), l = r[0].split(":")[1].split(";")[0], s = new Uint8Array(n.length);
732
732
  for (let h = 0; h < n.length; h++)
733
733
  s[h] = n.charCodeAt(h);
734
734
  return new Blob([s], { type: l });
735
735
  }
736
736
  function ma(e) {
737
- var t = "";
737
+ var r = "";
738
738
  if (e) {
739
- if (e.message && (t = e.message), e.response && e.response.data) {
739
+ if (e.message && (r = e.message), e.response && e.response.data) {
740
740
  if (e.response.data.errors)
741
741
  for (var n = 0; n < e.response.data.errors.length; n++)
742
- t = t + " | " + e.response.data.errors[n];
743
- e.response.data.message && (t = t + " | " + e.response.data.message), t = t + " | " + JSON.stringify(e.response.data);
742
+ r = r + " | " + e.response.data.errors[n];
743
+ e.response.data.message && (r = r + " | " + e.response.data.message), r = r + " | " + JSON.stringify(e.response.data);
744
744
  }
745
- return t;
745
+ return r;
746
746
  }
747
747
  return "hmmm no error was supplied";
748
748
  }
@@ -750,15 +750,15 @@ function va() {
750
750
  const e = "#" + Math.floor(Math.random() * 16777215).toString(16);
751
751
  return e.length !== 7 ? va() : e;
752
752
  }
753
- function ga(e, t, n) {
754
- if (t == null)
753
+ function ga(e, r, n) {
754
+ if (r == null)
755
755
  return !0;
756
756
  if (e == null || n == null)
757
757
  return !1;
758
758
  for (let s = 0; s < n.length; s++) {
759
759
  const h = n[s];
760
760
  var l = Cr(e, h);
761
- if (l != null && typeof l == "string" && da(l, t))
761
+ if (l != null && typeof l == "string" && da(l, r))
762
762
  return !0;
763
763
  }
764
764
  return !1;
@@ -767,14 +767,14 @@ function hu(e) {
767
767
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
768
768
  }
769
769
  function du(e = 2e3) {
770
- return new Promise((t) => {
771
- setTimeout(() => t(), e);
770
+ return new Promise((r) => {
771
+ setTimeout(() => r(), e);
772
772
  });
773
773
  }
774
- function Cr(e, t) {
775
- if (e == null || e == null || !t)
774
+ function Cr(e, r) {
775
+ if (e == null || e == null || !r)
776
776
  return null;
777
- var n = t.split(".");
777
+ var n = r.split(".");
778
778
  let l = n.length;
779
779
  for (var s = e, h = 0; h < l; h++)
780
780
  if (s = s[n[h]], s == null)
@@ -789,28 +789,28 @@ function wa() {
789
789
  return Pr;
790
790
  }
791
791
  function ba(e) {
792
- const t = (e == null ? void 0 : e.buildHeaders) ?? A, n = (e == null ? void 0 : e.buildQuery) ?? s, l = (e == null ? void 0 : e.buildUrl) ?? h;
792
+ const r = (e == null ? void 0 : e.buildHeaders) ?? A, n = (e == null ? void 0 : e.buildQuery) ?? s, l = (e == null ? void 0 : e.buildUrl) ?? h;
793
793
  function s(c) {
794
794
  let o = new URLSearchParams();
795
- return Object.entries(c).forEach((r) => {
796
- r[1] != null && o.append(r[0], r[1]);
797
- }), c.filterBy && o.set("filterBy", c.filterBy), c.includeCount && o.set("includeCount", c.includeCount.toString()), c.includeDetails != null && o.set("includeDetails", c.includeDetails.toString()), c.includeInactive && o.set("includeInactive", c.includeInactive.toString()), c.properties && o.set("properties", c.properties.toString()), c.query && o.set("query", c.query.toString()), c.searchString && o.set("searchString", c.searchString), c.sortOrder && o.set("sortOrder", c.sortOrder), c.sortBy && o.set("sortBy", c.sortBy), c.takeFrom && o.set("takeFrom", c.takeFrom.toString()), c.takeAmount && o.set("takeAmount", c.takeAmount.toString()), c.other && Object.entries(c.other).forEach((r) => {
798
- r[1] != null && o.append(r[0], r[1].toString());
795
+ return Object.entries(c).forEach((t) => {
796
+ t[1] != null && o.append(t[0], t[1]);
797
+ }), c.filterBy && o.set("filterBy", c.filterBy), c.includeCount && o.set("includeCount", c.includeCount.toString()), c.includeDetails != null && o.set("includeDetails", c.includeDetails.toString()), c.includeInactive && o.set("includeInactive", c.includeInactive.toString()), c.properties && o.set("properties", c.properties.toString()), c.query && o.set("query", c.query.toString()), c.searchString && o.set("searchString", c.searchString), c.sortOrder && o.set("sortOrder", c.sortOrder), c.sortBy && o.set("sortBy", c.sortBy), c.takeFrom && o.set("takeFrom", c.takeFrom.toString()), c.takeAmount && o.set("takeAmount", c.takeAmount.toString()), c.other && Object.entries(c.other).forEach((t) => {
798
+ t[1] != null && o.append(t[0], t[1].toString());
799
799
  }), o.toString();
800
800
  }
801
801
  function h(c) {
802
- let o = K(c.url) ?? void 0, r = K(c.id);
803
- return o == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (o = e.findPath(c.nav)), c.additionalUrl != null && (o == null ? o = c.additionalUrl : o = Te(o, c.additionalUrl)), r != null && (o != null && o.includes("{id}") ? o = o.replaceAll("{id}", r) : o = Te(o, r)), c.params != null && (o = `${o}?${n(c.params)}`), c.finalUrl = o, c.finalUrl ?? "";
802
+ let o = K(c.url) ?? void 0, t = K(c.id);
803
+ return o == null && c.nav != null && (e == null ? void 0 : e.findPath) != null && (o = e.findPath(c.nav)), c.additionalUrl != null && (o == null ? o = c.additionalUrl : o = Te(o, c.additionalUrl)), t != null && (o != null && o.includes("{id}") ? o = o.replaceAll("{id}", t) : o = Te(o, t)), c.params != null && (o = `${o}?${n(c.params)}`), c.finalUrl = o, c.finalUrl ?? "";
804
804
  }
805
805
  function A(c) {
806
- var r, x;
806
+ var t, x;
807
807
  let o = { ...c.headers };
808
- return c.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((r = e == null ? void 0 : e.auth) == null ? void 0 : r.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
808
+ return c.proxyID && (o.ManagedCompanyAccountID ?? (o.ManagedCompanyAccountID = c.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((t = e == null ? void 0 : e.auth) == null ? void 0 : t.isLoggedIn.value) == !0 && (o.authorization ?? (o.authorization = `bearer ${(x = e == null ? void 0 : e.auth) == null ? void 0 : x.credentials.value.token}`)), o["Content-Type"] ?? (o["Content-Type"] = c.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), o;
809
809
  }
810
810
  async function E(c) {
811
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
811
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
812
812
  let S = c.finalUrl, w = c.headers;
813
- S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Get from ${S}`);
813
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Get from ${S}`);
814
814
  let I;
815
815
  try {
816
816
  if (I = await fetch(S, {
@@ -822,7 +822,7 @@ function ba(e) {
822
822
  let B = await I.text();
823
823
  throw new Error(B ?? I.statusText ?? "Get error");
824
824
  }
825
- return x ? await I.text() : r ? await I.json() : I;
825
+ return x ? await I.text() : t ? await I.json() : I;
826
826
  } catch (B) {
827
827
  if (!o)
828
828
  return I;
@@ -830,9 +830,9 @@ function ba(e) {
830
830
  }
831
831
  }
832
832
  async function T(c) {
833
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
833
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
834
834
  let S = c.finalUrl, w = c.headers;
835
- S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Get all from ${S}`);
835
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Get all from ${S}`);
836
836
  let I;
837
837
  try {
838
838
  if (I = await fetch(S, {
@@ -844,7 +844,7 @@ function ba(e) {
844
844
  let B = await I.text();
845
845
  throw new Error(B ?? I.statusText ?? "Get all error");
846
846
  }
847
- return x ? await I.text() : r ? await I.json() : I;
847
+ return x ? await I.text() : t ? await I.json() : I;
848
848
  } catch (B) {
849
849
  if (!o)
850
850
  return I;
@@ -852,9 +852,9 @@ function ba(e) {
852
852
  }
853
853
  }
854
854
  async function L(c) {
855
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
855
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
856
856
  let S = c.finalUrl, w = c.headers;
857
- S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Post to ${S}`);
857
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Post to ${S}`);
858
858
  let I;
859
859
  try {
860
860
  if (I = await fetch(S, {
@@ -867,7 +867,7 @@ function ba(e) {
867
867
  let B = await I.text();
868
868
  throw new Error(B ?? I.statusText ?? "Post error!");
869
869
  }
870
- return x ? await I.text() : r ? await I.json() : I;
870
+ return x ? await I.text() : t ? await I.json() : I;
871
871
  } catch (B) {
872
872
  if (!o)
873
873
  return I;
@@ -877,9 +877,9 @@ function ba(e) {
877
877
  }
878
878
  }
879
879
  async function R(c) {
880
- const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, r = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
880
+ const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, t = c.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, x = c.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
881
881
  let S = c.finalUrl, w = c.headers;
882
- S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = t(c)), console.log(`Patch to ${S}`);
882
+ S == null && (S = l(c)), c.overrideHeaders !== !0 && (w = r(c)), console.log(`Patch to ${S}`);
883
883
  let I;
884
884
  try {
885
885
  if (I = await fetch(S, {
@@ -892,7 +892,7 @@ function ba(e) {
892
892
  let B = await I.text();
893
893
  throw new Error(B ?? I.statusText ?? "Patch error!");
894
894
  }
895
- return x ? await I.text() : r ? await I.json() : I;
895
+ return x ? await I.text() : t ? await I.json() : I;
896
896
  } catch (B) {
897
897
  if (!o)
898
898
  return I;
@@ -903,11 +903,11 @@ function ba(e) {
903
903
  }
904
904
  async function y(c) {
905
905
  const o = c.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
906
- let r = c.finalUrl, x = c.headers;
907
- r == null && (r = l(c)), c.overrideHeaders !== !0 && (x = t(c)), console.log(`Delete ${r}`);
906
+ let t = c.finalUrl, x = c.headers;
907
+ t == null && (t = l(c)), c.overrideHeaders !== !0 && (x = r(c)), console.log(`Delete ${t}`);
908
908
  let S;
909
909
  try {
910
- return S = await fetch(r, {
910
+ return S = await fetch(t, {
911
911
  method: "DELETE",
912
912
  mode: "cors",
913
913
  cache: "no-cache",
@@ -921,7 +921,7 @@ function ba(e) {
921
921
  }
922
922
  }
923
923
  return Pr = {
924
- buildHeaders: t,
924
+ buildHeaders: r,
925
925
  buildQuery: n,
926
926
  buildUrl: l,
927
927
  deleteItem: y,
@@ -970,10 +970,10 @@ function dt() {
970
970
  return ge == null ? "" : (ge[e] ?? ge.development).auth ?? "";
971
971
  }
972
972
  function Aa(e) {
973
- const t = Jr.NODE_ENV;
973
+ const r = Jr.NODE_ENV;
974
974
  if (ge == null)
975
975
  return "";
976
- const n = ge[t] ?? ge.development;
976
+ const n = ge[r] ?? ge.development;
977
977
  return e == null ? n.data ?? "" : n.other[e] ?? n.data ?? "";
978
978
  }
979
979
  function mu() {
@@ -987,7 +987,7 @@ function vu() {
987
987
  return Lr;
988
988
  }
989
989
  function Ia(e) {
990
- const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", n = ft("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), l = ft("auth-credentials", {});
990
+ const r = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", n = ft("auth-credentials-state", Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11)), l = ft("auth-credentials", {});
991
991
  function s(m) {
992
992
  if (m == null)
993
993
  return !0;
@@ -1091,7 +1091,7 @@ function Ia(e) {
1091
1091
  );
1092
1092
  return JSON.parse(f);
1093
1093
  }
1094
- function r(m) {
1094
+ function t(m) {
1095
1095
  if (l.value = void 0, B(), m != null) {
1096
1096
  const D = Rt();
1097
1097
  D.currentRoute.value.name != m && D.push({ name: m });
@@ -1099,7 +1099,7 @@ function Ia(e) {
1099
1099
  }
1100
1100
  function x(m) {
1101
1101
  var g;
1102
- K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (r(), window.location.href = R(m)));
1102
+ K(l).isLoggedIn || ((g = e.demo) == null || g.endDemo(), P() && (t(), window.location.href = R(m)));
1103
1103
  }
1104
1104
  async function S(m, D) {
1105
1105
  return e.getToken ?? (e.getToken = async () => {
@@ -1139,13 +1139,13 @@ function Ia(e) {
1139
1139
  }
1140
1140
  function _() {
1141
1141
  const m = K(l);
1142
- return m.isLoggedIn && P() && (r(), window.location.href = R()), m.isLoggedIn;
1142
+ return m.isLoggedIn && P() && (t(), window.location.href = R()), m.isLoggedIn;
1143
1143
  }
1144
1144
  function P() {
1145
1145
  const m = K(l);
1146
1146
  if (m == null || m.expiresOn == null)
1147
1147
  return !0;
1148
- const D = ie.fromFormat(m.expiresOn, t), g = ie.utc();
1148
+ const D = ie.fromFormat(m.expiresOn, r), g = ie.utc();
1149
1149
  return D <= g;
1150
1150
  }
1151
1151
  return B(), Lr = {
@@ -1162,7 +1162,7 @@ function Ia(e) {
1162
1162
  getToken: S,
1163
1163
  isLoggedIn: le(() => l.value.isLoggedIn === !0),
1164
1164
  login: x,
1165
- logout: r,
1165
+ logout: t,
1166
1166
  setAuth: w,
1167
1167
  timeZone: le(() => l.value.timeZone ?? e.defaultTimeZone ?? Xe),
1168
1168
  tryLogin: _
@@ -1189,17 +1189,27 @@ let Mr;
1189
1189
  function gu() {
1190
1190
  return Mr;
1191
1191
  }
1192
- function yu() {
1193
- const e = localStorage.getItem("cosmetics");
1194
- if (e != null && e.length > 0)
1195
- return JSON.parse(e);
1192
+ function yu(e) {
1193
+ const r = localStorage.getItem("cosmetics");
1194
+ let n;
1195
+ return r != null && r.length > 0 && (n = JSON.parse(r)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), {
1196
+ defaultTheme: n.theme ?? "dark",
1197
+ themes: {
1198
+ dark: {
1199
+ colors: n.dark
1200
+ },
1201
+ light: {
1202
+ colors: n.light
1203
+ }
1204
+ }
1205
+ };
1196
1206
  }
1197
1207
  function xa(e) {
1198
- const t = Z({});
1208
+ const r = Z({});
1199
1209
  let n = e.vuetifyInstance;
1200
1210
  function l() {
1201
1211
  const y = localStorage.getItem("cosmetics");
1202
- y != null && y.length > 0 ? t.value = JSON.parse(y) : t.value = {
1212
+ y != null && y.length > 0 ? r.value = JSON.parse(y) : r.value = {
1203
1213
  theme: e.defaultTheme ?? "light",
1204
1214
  light: e.defaultLightTheme ?? br,
1205
1215
  dark: e.defaultDarkTheme ?? Er,
@@ -1208,50 +1218,50 @@ function xa(e) {
1208
1218
  };
1209
1219
  }
1210
1220
  function s() {
1211
- localStorage.setItem("cosmetics", JSON.stringify(t.value));
1221
+ localStorage.setItem("cosmetics", JSON.stringify(r.value));
1212
1222
  }
1213
1223
  function h(y) {
1214
- n != null && (n.global.name.value = t.value.theme, n.global.name.value == "dark" ? (y && (t.value.dark = { ...e.defaultDarkTheme ?? Er }), n.themes.value.dark = {
1224
+ n != null && (n.global.name.value = r.value.theme, n.global.name.value == "dark" ? (y && (r.value.dark = { ...e.defaultDarkTheme ?? Er }), n.themes.value.dark = {
1215
1225
  ...n.themes.value.dark,
1216
1226
  colors: {
1217
1227
  ...n.themes.value.dark.colors,
1218
- ...t.value.dark
1228
+ ...r.value.dark
1219
1229
  }
1220
- }) : (y && (t.value.light = { ...e.defaultLightTheme ?? br }), n.themes.value.light = {
1230
+ }) : (y && (r.value.light = { ...e.defaultLightTheme ?? br }), n.themes.value.light = {
1221
1231
  ...n.themes.value.light,
1222
1232
  colors: {
1223
1233
  ...n.themes.value.light.colors,
1224
- ...t.value.light
1234
+ ...r.value.light
1225
1235
  }
1226
1236
  }));
1227
1237
  }
1228
1238
  function A(y) {
1229
1239
  var c;
1230
1240
  if (n != null) {
1231
- const o = n.themes.value.dark, r = n.themes.value.light;
1232
- o.colors.primary = y, r.colors.primary = y, (c = document.querySelector('meta[name="theme-color"]')) == null || c.setAttribute("content", y);
1241
+ const o = n.themes.value.dark, t = n.themes.value.light;
1242
+ o.colors.primary = y, t.colors.primary = y, (c = document.querySelector('meta[name="theme-color"]')) == null || c.setAttribute("content", y);
1233
1243
  }
1234
1244
  }
1235
1245
  function E() {
1236
- t.value.drawer = !t.value.drawer;
1246
+ r.value.drawer = !r.value.drawer;
1237
1247
  }
1238
1248
  function T() {
1239
- t.value.drawerStick = !t.value.drawerStick;
1249
+ r.value.drawerStick = !r.value.drawerStick;
1240
1250
  }
1241
1251
  function L() {
1242
- t.value.theme = t.value.theme == "dark" ? "light" : "dark", n != null && (n.global.name.value = t.value.theme);
1252
+ r.value.theme = r.value.theme == "dark" ? "light" : "dark", n != null && (n.global.name.value = r.value.theme);
1243
1253
  }
1244
1254
  function R() {
1245
1255
  var y;
1246
1256
  if (n != null) {
1247
1257
  const c = n.themes.value.dark, o = n.themes.value.light;
1248
- c.colors.primary = (t.value.dark ?? e.defaultDarkTheme ?? Er).primary, o.colors.primary = (t.value.light ?? e.defaultLightTheme ?? br).primary, (y = document.querySelector('meta[name="theme-color"]')) == null || y.setAttribute("content", "");
1258
+ c.colors.primary = (r.value.dark ?? e.defaultDarkTheme ?? Er).primary, o.colors.primary = (r.value.light ?? e.defaultLightTheme ?? br).primary, (y = document.querySelector('meta[name="theme-color"]')) == null || y.setAttribute("content", "");
1249
1259
  }
1250
1260
  }
1251
- return l(), Ee(t, () => {
1261
+ return l(), Ee(r, () => {
1252
1262
  s();
1253
1263
  }), Mr = {
1254
- state: t,
1264
+ state: r,
1255
1265
  resetCosmetics: h,
1256
1266
  setTemporaryColor: A,
1257
1267
  // setVuetifyInstance,
@@ -1265,18 +1275,18 @@ const wu = {
1265
1275
  canExportCSV: !1
1266
1276
  };
1267
1277
  function Na() {
1268
- function e(t, n, l = "csvData.csv") {
1269
- if (!$e(t))
1278
+ function e(r, n, l = "csvData.csv") {
1279
+ if (!$e(r))
1270
1280
  return;
1271
1281
  let s = [];
1272
- n != null ? s = n == null ? void 0 : n.filter((r) => (r.csv ?? r.csvText ?? r.csvFilter ?? r.csvArray) != null).map((r) => ({
1273
- header: r.title ?? "",
1274
- itemText: r.itemText,
1275
- value: r.value
1276
- })) : s = Object.keys(t[0]).map((r) => ({ header: ca(r) ?? "", value: r })), s = s.filter((r) => r.header.length > 0);
1282
+ n != null ? s = n == null ? void 0 : n.filter((t) => (t.csv ?? t.csvText ?? t.csvFilter ?? t.csvArray) != null).map((t) => ({
1283
+ header: t.title ?? "",
1284
+ itemText: t.itemText,
1285
+ value: t.value
1286
+ })) : s = Object.keys(r[0]).map((t) => ({ header: ca(t) ?? "", value: t })), s = s.filter((t) => t.header.length > 0);
1277
1287
  var h = [];
1278
- for (let r = 0; r < t.length; r++) {
1279
- const x = t[r];
1288
+ for (let t = 0; t < r.length; t++) {
1289
+ const x = r[t];
1280
1290
  var A = {}, E = [];
1281
1291
  for (let S = 0; S < s.length; S++) {
1282
1292
  const w = s[S];
@@ -1288,10 +1298,10 @@ function Na() {
1288
1298
  }), E = [];
1289
1299
  }
1290
1300
  var L = [];
1291
- L.push(s.map((r) => r.header)), h.forEach((r) => {
1301
+ L.push(s.map((t) => t.header)), h.forEach((t) => {
1292
1302
  let x = [];
1293
1303
  s.forEach(function(S) {
1294
- var w = r[S.header];
1304
+ var w = t[S.header];
1295
1305
  x.push(w ?? "");
1296
1306
  }), L.push(x.join(","));
1297
1307
  });
@@ -1315,7 +1325,7 @@ function bu() {
1315
1325
  return Rr;
1316
1326
  }
1317
1327
  function Ta(e) {
1318
- function t() {
1328
+ function r() {
1319
1329
  var E;
1320
1330
  return ((E = l()) == null ? void 0 : E.startOf("day").toUTC().toString()) ?? "";
1321
1331
  }
@@ -1348,7 +1358,7 @@ function Ta(e) {
1348
1358
  }
1349
1359
  }
1350
1360
  return Rr = {
1351
- getToday: t,
1361
+ getToday: r,
1352
1362
  getTomorrow: n,
1353
1363
  tzDate: l,
1354
1364
  tzString: s,
@@ -1362,19 +1372,19 @@ function Eu() {
1362
1372
  }
1363
1373
  function Ca() {
1364
1374
  const e = Z(!1);
1365
- function t() {
1375
+ function r() {
1366
1376
  }
1367
1377
  function n() {
1368
1378
  }
1369
1379
  return Ur = {
1370
1380
  endDemo: n,
1371
1381
  isDemoing: e,
1372
- startDemo: t
1382
+ startDemo: r
1373
1383
  }, Ur;
1374
1384
  }
1375
1385
  var Pa = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1376
1386
  function Su(e) {
1377
- function t(n) {
1387
+ function r(n) {
1378
1388
  var s;
1379
1389
  const l = n.matched.slice().reverse().find((h) => h.meta && h.meta.title);
1380
1390
  if (l)
@@ -1386,10 +1396,10 @@ function Su(e) {
1386
1396
  }
1387
1397
  }
1388
1398
  return {
1389
- updateMeta: t
1399
+ updateMeta: r
1390
1400
  };
1391
1401
  }
1392
- function _u(e, t, n = {}) {
1402
+ function _u(e, r, n = {}) {
1393
1403
  const {
1394
1404
  preventDefault: l = !1,
1395
1405
  stopPropagation: s = !1,
@@ -1399,7 +1409,7 @@ function _u(e, t, n = {}) {
1399
1409
  function o(U) {
1400
1410
  K(l) && U.preventDefault(), K(s) && U.stopPropagation();
1401
1411
  }
1402
- function r(U) {
1412
+ function t(U) {
1403
1413
  var g;
1404
1414
  const _ = K(e);
1405
1415
  if (!_)
@@ -1437,16 +1447,16 @@ function _u(e, t, n = {}) {
1437
1447
  function I() {
1438
1448
  if (K(c))
1439
1449
  return;
1440
- const U = K(t);
1450
+ const U = K(r);
1441
1451
  if (!U)
1442
1452
  return;
1443
1453
  const _ = U.$el;
1444
- _.style.cursor = "move", R.push(oe(_, "mousedown", r, A)), R.push(oe(_, "touchstart", r, A)), c.value = !0;
1454
+ _.style.cursor = "move", R.push(oe(_, "mousedown", t, A)), R.push(oe(_, "touchstart", t, A)), c.value = !0;
1445
1455
  }
1446
1456
  function B() {
1447
1457
  if (!K(c))
1448
1458
  return;
1449
- const U = K(t);
1459
+ const U = K(r);
1450
1460
  if (!U)
1451
1461
  return;
1452
1462
  const _ = U.$el;
@@ -1465,7 +1475,7 @@ function Au() {
1465
1475
  return Br;
1466
1476
  }
1467
1477
  function La(e) {
1468
- function t(g, f, C) {
1478
+ function r(g, f, C) {
1469
1479
  return g ? fa(g) ? C ?? "" : e.dates.tzString(g, f) : C ?? g ?? "";
1470
1480
  }
1471
1481
  function n(g) {
@@ -1487,19 +1497,19 @@ function La(e) {
1487
1497
  return f.format(g);
1488
1498
  }
1489
1499
  function s(g, f) {
1490
- return t(g, "ccc | d LLL", f);
1500
+ return r(g, "ccc | d LLL", f);
1491
1501
  }
1492
1502
  function h(g, f) {
1493
- return t(g, "d LLL", f);
1503
+ return r(g, "d LLL", f);
1494
1504
  }
1495
1505
  function A(g, f) {
1496
- return t(g, "ccc", f);
1506
+ return r(g, "ccc", f);
1497
1507
  }
1498
1508
  function E(g, f) {
1499
- return t(g, "ccc dd LLL yyyy", f);
1509
+ return r(g, "ccc dd LLL yyyy", f);
1500
1510
  }
1501
1511
  function T(g, f) {
1502
- return t(g, "ccc dd LLL @ hh:mm a", f);
1512
+ return r(g, "ccc dd LLL @ hh:mm a", f);
1503
1513
  }
1504
1514
  function L(g) {
1505
1515
  return new Intl.NumberFormat().format(g);
@@ -1519,7 +1529,7 @@ function La(e) {
1519
1529
  function o(g) {
1520
1530
  return Lt(g, !1);
1521
1531
  }
1522
- function r(g) {
1532
+ function t(g) {
1523
1533
  if (!g)
1524
1534
  return "";
1525
1535
  if (typeof g != "object")
@@ -1528,10 +1538,10 @@ function La(e) {
1528
1538
  return g.addressLineOne != null && (f = g.addressLineOne + " "), g.streetNumber != null && (f = f + g.streetNumber + " "), g.streetName != null && (f = f + g.streetName + " "), g.suburb != null && (f = f + g.suburb + " "), g.state != null && (f = f + g.state + " "), g.postcode != null && (f = f + g.postcode), f = f.replaceAll(",", " "), f;
1529
1539
  }
1530
1540
  function x(g, f) {
1531
- return t(g, "ddd DD MMM YYYY", f);
1541
+ return r(g, "ddd DD MMM YYYY", f);
1532
1542
  }
1533
1543
  function S(g, f) {
1534
- return t(g, "ccc dd LLL yyyy hh:mm a", f);
1544
+ return r(g, "ccc dd LLL yyyy hh:mm a", f);
1535
1545
  }
1536
1546
  function w(g) {
1537
1547
  var f = new Intl.NumberFormat("en-US", {
@@ -1544,13 +1554,13 @@ function La(e) {
1544
1554
  return g.replaceAll(",", " ");
1545
1555
  }
1546
1556
  function B(g, f) {
1547
- return t(g, "dd LLL yyyy", f);
1557
+ return r(g, "dd LLL yyyy", f);
1548
1558
  }
1549
1559
  function U(g, f) {
1550
- return t(g, "dd LLL yyyy hh:mm a", f);
1560
+ return r(g, "dd LLL yyyy hh:mm a", f);
1551
1561
  }
1552
1562
  function _(g, f) {
1553
- return t(g, "hh:mm a", f);
1563
+ return r(g, "hh:mm a", f);
1554
1564
  }
1555
1565
  function P(g) {
1556
1566
  return g == null ? "" : typeof g == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: g }).toFormat("T") : typeof g == "string" ? e.dates.tzString(g, "t") : "unknown";
@@ -1568,7 +1578,7 @@ function La(e) {
1568
1578
  toDisplayNumberSigned: y,
1569
1579
  toFormat: c,
1570
1580
  toLocationLine: o,
1571
- toLocationLineNoCommas: r,
1581
+ toLocationLineNoCommas: t,
1572
1582
  toLongDate: x,
1573
1583
  toLongDateAndTime: S,
1574
1584
  toPercent: w,
@@ -1601,7 +1611,7 @@ var Bt = { exports: {} };
1601
1611
  https://localforage.github.io/localForage
1602
1612
  (c) 2013-2017 Mozilla, Apache License 2.0
1603
1613
  */
1604
- (function(e, t) {
1614
+ (function(e, r) {
1605
1615
  (function(n) {
1606
1616
  e.exports = n();
1607
1617
  })(function() {
@@ -1618,9 +1628,9 @@ var Bt = { exports: {} };
1618
1628
  throw c.code = "MODULE_NOT_FOUND", c;
1619
1629
  }
1620
1630
  var o = s[L] = { exports: {} };
1621
- l[L][0].call(o.exports, function(r) {
1622
- var x = l[L][1][r];
1623
- return A(x || r);
1631
+ l[L][0].call(o.exports, function(t) {
1632
+ var x = l[L][1][t];
1633
+ return A(x || t);
1624
1634
  }, o, o.exports, n, l, s, h);
1625
1635
  }
1626
1636
  return s[L].exports;
@@ -1632,7 +1642,7 @@ var Bt = { exports: {} };
1632
1642
  (function(h) {
1633
1643
  var A = h.MutationObserver || h.WebKitMutationObserver, E;
1634
1644
  if (A) {
1635
- var T = 0, L = new A(r), R = h.document.createTextNode("");
1645
+ var T = 0, L = new A(t), R = h.document.createTextNode("");
1636
1646
  L.observe(R, {
1637
1647
  characterData: !0
1638
1648
  }), E = function() {
@@ -1640,20 +1650,20 @@ var Bt = { exports: {} };
1640
1650
  };
1641
1651
  } else if (!h.setImmediate && typeof h.MessageChannel < "u") {
1642
1652
  var y = new h.MessageChannel();
1643
- y.port1.onmessage = r, E = function() {
1653
+ y.port1.onmessage = t, E = function() {
1644
1654
  y.port2.postMessage(0);
1645
1655
  };
1646
1656
  } else
1647
1657
  "document" in h && "onreadystatechange" in h.document.createElement("script") ? E = function() {
1648
1658
  var S = h.document.createElement("script");
1649
1659
  S.onreadystatechange = function() {
1650
- r(), S.onreadystatechange = null, S.parentNode.removeChild(S), S = null;
1660
+ t(), S.onreadystatechange = null, S.parentNode.removeChild(S), S = null;
1651
1661
  }, h.document.documentElement.appendChild(S);
1652
1662
  } : E = function() {
1653
- setTimeout(r, 0);
1663
+ setTimeout(t, 0);
1654
1664
  };
1655
1665
  var c, o = [];
1656
- function r() {
1666
+ function t() {
1657
1667
  c = !0;
1658
1668
  for (var S, w, I = o.length; I; ) {
1659
1669
  for (w = o, o = [], S = -1; ++S < I; )
@@ -1715,7 +1725,7 @@ var Bt = { exports: {} };
1715
1725
  });
1716
1726
  }
1717
1727
  E.resolve = function(_, P) {
1718
- var m = S(r, P);
1728
+ var m = S(t, P);
1719
1729
  if (m.status === "error")
1720
1730
  return E.reject(_, m.value);
1721
1731
  var D = m.value;
@@ -1733,7 +1743,7 @@ var Bt = { exports: {} };
1733
1743
  _.queue[m].callRejected(P);
1734
1744
  return _;
1735
1745
  };
1736
- function r(_) {
1746
+ function t(_) {
1737
1747
  var P = _ && _.then;
1738
1748
  if (_ && (typeof _ == "object" || typeof _ == "function") && typeof P == "function")
1739
1749
  return function() {
@@ -1880,7 +1890,7 @@ var Bt = { exports: {} };
1880
1890
  function o(a, i, u) {
1881
1891
  typeof i == "function" && a.then(i), typeof u == "function" && a.catch(u);
1882
1892
  }
1883
- function r(a) {
1893
+ function t(a) {
1884
1894
  return typeof a != "string" && (console.warn(a + " used as a key, but it is not a string."), a = String(a)), a;
1885
1895
  }
1886
1896
  function x() {
@@ -2084,7 +2094,7 @@ var Bt = { exports: {} };
2084
2094
  }
2085
2095
  function we(a, i) {
2086
2096
  var u = this;
2087
- a = r(a);
2097
+ a = t(a);
2088
2098
  var v = new y(function(b, d) {
2089
2099
  u.ready().then(function() {
2090
2100
  re(u._dbInfo, U, function(N, M) {
@@ -2136,7 +2146,7 @@ var Bt = { exports: {} };
2136
2146
  }
2137
2147
  function Pe(a, i, u) {
2138
2148
  var v = this;
2139
- a = r(a);
2149
+ a = t(a);
2140
2150
  var b = new y(function(d, N) {
2141
2151
  var M;
2142
2152
  v.ready().then(function() {
@@ -2167,7 +2177,7 @@ var Bt = { exports: {} };
2167
2177
  }
2168
2178
  function lr(a, i) {
2169
2179
  var u = this;
2170
- a = r(a);
2180
+ a = t(a);
2171
2181
  var v = new y(function(b, d) {
2172
2182
  u.ready().then(function() {
2173
2183
  re(u._dbInfo, _, function(N, M) {
@@ -2502,7 +2512,7 @@ var Bt = { exports: {} };
2502
2512
  }
2503
2513
  function Ht(a, i) {
2504
2514
  var u = this;
2505
- a = r(a);
2515
+ a = t(a);
2506
2516
  var v = new y(function(b, d) {
2507
2517
  u.ready().then(function() {
2508
2518
  var N = u._dbInfo;
@@ -2542,7 +2552,7 @@ var Bt = { exports: {} };
2542
2552
  }
2543
2553
  function rt(a, i, u, v) {
2544
2554
  var b = this;
2545
- a = r(a);
2555
+ a = t(a);
2546
2556
  var d = new y(function(N, M) {
2547
2557
  b.ready().then(function() {
2548
2558
  i === void 0 && (i = null);
@@ -2573,7 +2583,7 @@ var Bt = { exports: {} };
2573
2583
  }
2574
2584
  function Yt(a, i) {
2575
2585
  var u = this;
2576
- a = r(a);
2586
+ a = t(a);
2577
2587
  var v = new y(function(b, d) {
2578
2588
  u.ready().then(function() {
2579
2589
  var N = u._dbInfo;
@@ -2761,7 +2771,7 @@ var Bt = { exports: {} };
2761
2771
  }
2762
2772
  function ln(a, i) {
2763
2773
  var u = this;
2764
- a = r(a);
2774
+ a = t(a);
2765
2775
  var v = u.ready().then(function() {
2766
2776
  var b = u._dbInfo, d = localStorage.getItem(b.keyPrefix + a);
2767
2777
  return d && (d = b.serializer.deserialize(d)), d;
@@ -2811,7 +2821,7 @@ var Bt = { exports: {} };
2811
2821
  }
2812
2822
  function hn(a, i) {
2813
2823
  var u = this;
2814
- a = r(a);
2824
+ a = t(a);
2815
2825
  var v = u.ready().then(function() {
2816
2826
  var b = u._dbInfo;
2817
2827
  localStorage.removeItem(b.keyPrefix + a);
@@ -2820,7 +2830,7 @@ var Bt = { exports: {} };
2820
2830
  }
2821
2831
  function dn(a, i, u) {
2822
2832
  var v = this;
2823
- a = r(a);
2833
+ a = t(a);
2824
2834
  var b = v.ready().then(function() {
2825
2835
  i === void 0 && (i = null);
2826
2836
  var d = i;
@@ -3058,7 +3068,7 @@ function Du() {
3058
3068
  h.removeItem(T);
3059
3069
  });
3060
3070
  }
3061
- async function t(s) {
3071
+ async function r(s) {
3062
3072
  return await he().getItem(s);
3063
3073
  }
3064
3074
  async function n(s) {
@@ -3069,21 +3079,21 @@ function Du() {
3069
3079
  }
3070
3080
  return {
3071
3081
  clearAsync: e,
3072
- getAsync: t,
3082
+ getAsync: r,
3073
3083
  removeAsync: n,
3074
3084
  saveAsync: l
3075
3085
  };
3076
3086
  }
3077
3087
  var Ra = !1;
3078
- function er(e, t, n) {
3079
- return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
3088
+ function er(e, r, n) {
3089
+ return Array.isArray(e) ? (e.length = Math.max(e.length, r), e.splice(r, 1, n), n) : (e[r] = n, n);
3080
3090
  }
3081
- function Sr(e, t) {
3091
+ function Sr(e, r) {
3082
3092
  if (Array.isArray(e)) {
3083
- e.splice(t, 1);
3093
+ e.splice(r, 1);
3084
3094
  return;
3085
3095
  }
3086
- delete e[t];
3096
+ delete e[r];
3087
3097
  }
3088
3098
  /*!
3089
3099
  * pinia v2.1.7
@@ -3103,9 +3113,9 @@ var Ge;
3103
3113
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
3104
3114
  })(Ge || (Ge = {}));
3105
3115
  const Kr = typeof window < "u", _r = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Kr;
3106
- function Ft(e, t) {
3107
- for (const n in t) {
3108
- const l = t[n];
3116
+ function Ft(e, r) {
3117
+ for (const n in r) {
3118
+ const l = r[n];
3109
3119
  if (!(n in e))
3110
3120
  continue;
3111
3121
  const s = e[n];
@@ -3115,26 +3125,26 @@ function Ft(e, t) {
3115
3125
  }
3116
3126
  const kt = () => {
3117
3127
  };
3118
- function mt(e, t, n, l = kt) {
3119
- e.push(t);
3128
+ function mt(e, r, n, l = kt) {
3129
+ e.push(r);
3120
3130
  const s = () => {
3121
- const h = e.indexOf(t);
3131
+ const h = e.indexOf(r);
3122
3132
  h > -1 && (e.splice(h, 1), l());
3123
3133
  };
3124
3134
  return !n && xt() && Nt(s), s;
3125
3135
  }
3126
- function Be(e, ...t) {
3136
+ function Be(e, ...r) {
3127
3137
  e.slice().forEach((n) => {
3128
- n(...t);
3138
+ n(...r);
3129
3139
  });
3130
3140
  }
3131
3141
  const Ba = (e) => e();
3132
- function $r(e, t) {
3133
- e instanceof Map && t instanceof Map && t.forEach((n, l) => e.set(l, n)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
3134
- for (const n in t) {
3135
- if (!t.hasOwnProperty(n))
3142
+ function $r(e, r) {
3143
+ e instanceof Map && r instanceof Map && r.forEach((n, l) => e.set(l, n)), e instanceof Set && r instanceof Set && r.forEach(e.add, e);
3144
+ for (const n in r) {
3145
+ if (!r.hasOwnProperty(n))
3136
3146
  continue;
3137
- const l = t[n], s = e[n];
3147
+ const l = r[n], s = e[n];
3138
3148
  Ce(s) && Ce(l) && e.hasOwnProperty(n) && !qe(l) && !Hr(l) ? e[n] = $r(s, l) : e[n] = l;
3139
3149
  }
3140
3150
  return e;
@@ -3150,8 +3160,8 @@ const { assign: ve } = Object;
3150
3160
  function vt(e) {
3151
3161
  return !!(qe(e) && e.effect);
3152
3162
  }
3153
- function gt(e, t, n, l) {
3154
- const { state: s, actions: h, getters: A } = t, E = n.state.value[e];
3163
+ function gt(e, r, n, l) {
3164
+ const { state: s, actions: h, getters: A } = r, E = n.state.value[e];
3155
3165
  let T;
3156
3166
  function L() {
3157
3167
  !E && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = s ? s() : {});
@@ -3165,9 +3175,9 @@ function gt(e, t, n, l) {
3165
3175
  return A[c].call(o, o);
3166
3176
  })), y), {}));
3167
3177
  }
3168
- return T = Fr(e, L, t, n, l, !0), T;
3178
+ return T = Fr(e, L, r, n, l, !0), T;
3169
3179
  }
3170
- function Fr(e, t, n = {}, l, s, h) {
3180
+ function Fr(e, r, n = {}, l, s, h) {
3171
3181
  let A;
3172
3182
  const E = ve({ actions: {} }, n);
3173
3183
  if (process.env.NODE_ENV !== "production" && !l._e.active)
@@ -3180,8 +3190,8 @@ function Fr(e, t, n = {}, l, s, h) {
3180
3190
  L ? o = f : L == !1 && !m._hotUpdating && (Array.isArray(o) ? o.push(f) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3181
3191
  });
3182
3192
  let L, R, y = [], c = [], o;
3183
- const r = l.state.value[e];
3184
- !h && !r && (process.env.NODE_ENV === "production" || !s) && (l.state.value[e] = {});
3193
+ const t = l.state.value[e];
3194
+ !h && !t && (process.env.NODE_ENV === "production" || !s) && (l.state.value[e] = {});
3185
3195
  const x = Z({});
3186
3196
  let S;
3187
3197
  function w(f) {
@@ -3275,11 +3285,11 @@ function Fr(e, t, n = {}, l, s, h) {
3275
3285
  // setupStore
3276
3286
  ) : P);
3277
3287
  l._s.set(e, m);
3278
- const g = (l._a && l._a.runWithContext || Ba)(() => l._e.run(() => (A = Mn()).run(t)));
3288
+ const g = (l._a && l._a.runWithContext || Ba)(() => l._e.run(() => (A = Mn()).run(r)));
3279
3289
  for (const f in g) {
3280
3290
  const C = g[f];
3281
3291
  if (qe(C) && !vt(C) || Hr(C))
3282
- process.env.NODE_ENV !== "production" && s ? er(x.value, f, tr(g, f)) : h || (r && Fa(C) && (qe(C) ? C.value = r[f] : $r(C, r[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
3292
+ process.env.NODE_ENV !== "production" && s ? er(x.value, f, tr(g, f)) : h || (t && Fa(C) && (qe(C) ? C.value = t[f] : $r(C, t[f])), l.state.value[e][f] = C), process.env.NODE_ENV !== "production" && _.state.push(f);
3283
3293
  else if (typeof C == "function") {
3284
3294
  const G = process.env.NODE_ENV !== "production" && s ? C : U(f, C);
3285
3295
  g[f] = G, process.env.NODE_ENV !== "production" && (_.actions[f] = C), E.actions[f] = C;
@@ -3356,13 +3366,13 @@ function Fr(e, t, n = {}, l, s, h) {
3356
3366
  })));
3357
3367
  }), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
3358
3368
  state: () => new MyClass()
3359
- Found in store "${m.$id}".`), r && h && n.hydrate && n.hydrate(m.$state, r), L = !0, R = !0, m;
3369
+ Found in store "${m.$id}".`), t && h && n.hydrate && n.hydrate(m.$state, t), L = !0, R = !0, m;
3360
3370
  }
3361
- function Vt(e, t, n) {
3371
+ function Vt(e, r, n) {
3362
3372
  let l, s;
3363
- const h = typeof t == "function";
3373
+ const h = typeof r == "function";
3364
3374
  if (typeof e == "string")
3365
- l = e, s = h ? n : t;
3375
+ l = e, s = h ? n : r;
3366
3376
  else if (s = e, l = e.id, process.env.NODE_ENV !== "production" && typeof l != "string")
3367
3377
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
3368
3378
  function A(E, T) {
@@ -3373,10 +3383,10 @@ function Vt(e, t, n) {
3373
3383
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
3374
3384
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
3375
3385
  This will fail in production.`);
3376
- E = je, E._s.has(l) || (h ? Fr(l, t, s, E) : gt(l, s, E), process.env.NODE_ENV !== "production" && (A._pinia = E));
3386
+ E = je, E._s.has(l) || (h ? Fr(l, r, s, E) : gt(l, s, E), process.env.NODE_ENV !== "production" && (A._pinia = E));
3377
3387
  const R = E._s.get(l);
3378
3388
  if (process.env.NODE_ENV !== "production" && T) {
3379
- const y = "__hot:" + l, c = h ? Fr(y, t, s, E, !0) : gt(y, ve({}, s), E, !0);
3389
+ const y = "__hot:" + l, c = h ? Fr(y, r, s, E, !0) : gt(y, ve({}, s), E, !0);
3380
3390
  T._hotUpdate(c), delete E.state.value[y], E._s.delete(y);
3381
3391
  }
3382
3392
  if (process.env.NODE_ENV !== "production" && Kr) {
@@ -3407,33 +3417,33 @@ function Wt(e) {
3407
3417
  return Va(e);
3408
3418
  }
3409
3419
  const ka = (e) => {
3410
- let t = K(e.url) ?? void 0;
3411
- if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Te(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Te(t, e.id)), e.params != null) {
3412
- t ?? (t = "");
3420
+ let r = K(e.url) ?? void 0;
3421
+ if (e.additionalUrl != null && (r == null ? r = e.additionalUrl : r = Te(r, e.additionalUrl)), e.id != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", e.id) : r = Te(r, e.id)), e.params != null) {
3422
+ r ?? (r = "");
3413
3423
  let n = new URLSearchParams();
3414
3424
  Object.entries(e.params).sort(He.firstBy((s) => s[0])).forEach((s) => {
3415
3425
  s[1] != null && n.append(s[0], s[1].toString());
3416
- }), t = `${t}?${n.toString()}`;
3426
+ }), r = `${r}?${n.toString()}`;
3417
3427
  }
3418
- return e.finalUrl = t, e.finalUrl ?? "";
3428
+ return e.finalUrl = r, e.finalUrl ?? "";
3419
3429
  };
3420
3430
  function Va(e) {
3421
3431
  return Vt(e.storeName, () => {
3422
3432
  var o;
3423
- const t = ie.utc().toSeconds() / 86400, n = Z({}), l = Z({}), s = e.storageMode == "local-cache", h = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? ka;
3424
- function A(r) {
3433
+ const r = ie.utc().toSeconds() / 86400, n = Z({}), l = Z({}), s = e.storageMode == "local-cache", h = e.buildUrl ?? ((o = e.api) == null ? void 0 : o.buildUrl) ?? ka;
3434
+ function A(t) {
3425
3435
  var x, S;
3426
- return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((S = r.data) == null ? void 0 : S.id) ?? "no-item-id"}`;
3436
+ return `${e.storeName}_${((x = e.auth) == null ? void 0 : x.credentials.value.userID) ?? "no-user-id"}_${t.id ?? ((S = t.data) == null ? void 0 : S.id) ?? "no-item-id"}`;
3427
3437
  }
3428
- async function E(r) {
3438
+ async function E(t) {
3429
3439
  var I;
3430
- r.additionalUrl ?? (r.additionalUrl = "/getAll");
3431
- const x = h(r), S = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, w = r.refresh;
3440
+ t.additionalUrl ?? (t.additionalUrl = "/getAll");
3441
+ const x = h(t), S = `${e.storeName}_${((I = e.auth) == null ? void 0 : I.credentials.value.userID) ?? "no-user-id"}_${x}`, w = t.refresh;
3432
3442
  if (!w && n.value[S] !== void 0)
3433
3443
  return n.value[S] ?? null;
3434
3444
  if (!w && s == !0) {
3435
3445
  const B = await he().getItem(S);
3436
- if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > t - 7))
3446
+ if (B != null && (e.api == null || parseFloat(B.meta.storedOn) > r - 7))
3437
3447
  return n.value[S] = B, B;
3438
3448
  }
3439
3449
  if (e.api == null)
@@ -3443,9 +3453,9 @@ function Va(e) {
3443
3453
  B == null && (B = new Promise(async (_, P) => {
3444
3454
  var m;
3445
3455
  try {
3446
- let D = await ((m = e.api) == null ? void 0 : m.getAll(r));
3456
+ let D = await ((m = e.api) == null ? void 0 : m.getAll(t));
3447
3457
  s == !0 && await he().setItem(S, {
3448
- meta: { storedOn: t },
3458
+ meta: { storedOn: r },
3449
3459
  ...D
3450
3460
  }), _(D);
3451
3461
  } catch (D) {
@@ -3461,14 +3471,14 @@ function Va(e) {
3461
3471
  throw new Error(U.message ?? "Problem");
3462
3472
  }
3463
3473
  }
3464
- async function T(r) {
3465
- r.additionalUrl ?? (r.additionalUrl = "/get");
3466
- const x = A(r), S = r.refresh;
3474
+ async function T(t) {
3475
+ t.additionalUrl ?? (t.additionalUrl = "/get");
3476
+ const x = A(t), S = t.refresh;
3467
3477
  if (!S && n.value[x] !== void 0)
3468
3478
  return n.value[x] ?? [];
3469
3479
  if (!S && s == !0) {
3470
3480
  const w = await he().getItem(x);
3471
- if (w != null && (e.api == null || parseFloat(w.meta.storedOn) > t - 7))
3481
+ if (w != null && (e.api == null || parseFloat(w.meta.storedOn) > r - 7))
3472
3482
  return n.value[x] = w, w;
3473
3483
  }
3474
3484
  if (e.api == null)
@@ -3478,9 +3488,9 @@ function Va(e) {
3478
3488
  w == null && (w = new Promise(async (B, U) => {
3479
3489
  var _;
3480
3490
  try {
3481
- let P = await ((_ = e.api) == null ? void 0 : _.get(r));
3491
+ let P = await ((_ = e.api) == null ? void 0 : _.get(t));
3482
3492
  s == !0 && await he().setItem(x, {
3483
- meta: { storedOn: t },
3493
+ meta: { storedOn: r },
3484
3494
  ...P
3485
3495
  }), B(P);
3486
3496
  } catch (P) {
@@ -3496,24 +3506,24 @@ function Va(e) {
3496
3506
  throw new Error(I.message ?? "Problem");
3497
3507
  }
3498
3508
  }
3499
- async function L(r) {
3500
- r.additionalUrl ?? (r.additionalUrl = "/patch");
3501
- const x = A(r);
3509
+ async function L(t) {
3510
+ t.additionalUrl ?? (t.additionalUrl = "/patch");
3511
+ const x = A(t);
3502
3512
  let S;
3503
3513
  if (e.api != null)
3504
3514
  try {
3505
- let w = await e.api.patch(r);
3515
+ let w = await e.api.patch(t);
3506
3516
  S = w == null ? void 0 : w.data;
3507
3517
  } catch (w) {
3508
3518
  let I = w;
3509
3519
  throw new Error(I.message ?? "Patch Problem");
3510
3520
  }
3511
3521
  else
3512
- S = r.data;
3522
+ S = t.data;
3513
3523
  if (S != null) {
3514
3524
  const w = n.value[x];
3515
3525
  w != null && (w.data = { ...w.data, ...S }, s == !0 && await he().setItem(x, {
3516
- meta: { storedOn: t },
3526
+ meta: { storedOn: r },
3517
3527
  ...w
3518
3528
  })), S.id != null && S.rowVersion != null && Object.entries(n.value).forEach((B) => {
3519
3529
  let U = B[1];
@@ -3529,31 +3539,31 @@ function Va(e) {
3529
3539
  }
3530
3540
  return S;
3531
3541
  }
3532
- async function R(r) {
3533
- r.additionalUrl ?? (r.additionalUrl = "/post");
3534
- const x = A(r);
3542
+ async function R(t) {
3543
+ t.additionalUrl ?? (t.additionalUrl = "/post");
3544
+ const x = A(t);
3535
3545
  let S;
3536
3546
  if (e.api != null)
3537
3547
  try {
3538
- let w = await e.api.post(r);
3548
+ let w = await e.api.post(t);
3539
3549
  S = w == null ? void 0 : w.data;
3540
3550
  } catch (w) {
3541
3551
  let I = w;
3542
3552
  throw new Error(I.message ?? "Patch Problem");
3543
3553
  }
3544
3554
  else
3545
- S = r.data;
3555
+ S = t.data;
3546
3556
  return n.value[x] = {
3547
- meta: { storedOn: t },
3557
+ meta: { storedOn: r },
3548
3558
  data: S
3549
3559
  }, s == !0 && await he().setItem(x, n.value[x]), S;
3550
3560
  }
3551
- async function y(r) {
3552
- r.additionalUrl ?? (r.additionalUrl = "/delete");
3553
- const x = A(r);
3561
+ async function y(t) {
3562
+ t.additionalUrl ?? (t.additionalUrl = "/delete");
3563
+ const x = A(t);
3554
3564
  if (e.api != null)
3555
3565
  try {
3556
- let S = await e.api.deleteItem(r);
3566
+ let S = await e.api.deleteItem(t);
3557
3567
  if (S != null)
3558
3568
  return S;
3559
3569
  } catch (S) {
@@ -3562,10 +3572,10 @@ function Va(e) {
3562
3572
  }
3563
3573
  delete n.value[x], s == !0 && await he().removeItem(x);
3564
3574
  }
3565
- async function c(r) {
3566
- if (r.additionalUrl ?? (r.additionalUrl = `/patch/restore?id=${r.data.id}`), h(r), e.api != null)
3575
+ async function c(t) {
3576
+ if (t.additionalUrl ?? (t.additionalUrl = `/patch/restore?id=${t.data.id}`), h(t), e.api != null)
3567
3577
  try {
3568
- let x = await e.api.patch(r);
3578
+ let x = await e.api.patch(t);
3569
3579
  return x == null ? void 0 : x.data;
3570
3580
  } catch (x) {
3571
3581
  let S = x;
@@ -3586,7 +3596,7 @@ function Va(e) {
3586
3596
  }
3587
3597
  function yt(e) {
3588
3598
  return Vt(e.storeName, () => {
3589
- const t = Z(), n = Z(0), l = ie.utc().toSeconds() / 3600, s = Z(), h = Z(), A = Z({}), E = e.storageMode == "local-cache";
3599
+ const r = Z(), n = Z(0), l = ie.utc().toSeconds() / 3600, s = Z(), h = Z(), A = Z({}), E = e.storageMode == "local-cache";
3590
3600
  function T() {
3591
3601
  var w;
3592
3602
  return `${e.storeName}_${((w = e.auth) == null ? void 0 : w.credentials.value.userID) ?? "no-user-id"}`;
@@ -3594,7 +3604,7 @@ function yt(e) {
3594
3604
  async function L() {
3595
3605
  E == !0 && await he().setItem(T(), {
3596
3606
  meta: h.value,
3597
- data: t.value,
3607
+ data: r.value,
3598
3608
  count: n.value,
3599
3609
  filters: []
3600
3610
  });
@@ -3611,11 +3621,11 @@ function yt(e) {
3611
3621
  lastUpdate: ((_ = h.value) == null ? void 0 : _.lastUpdate) ?? sa()
3612
3622
  }
3613
3623
  }));
3614
- m == null ? U(m) : (t.value ?? (t.value = []), m.data.forEach((D) => {
3624
+ m == null ? U(m) : (r.value ?? (r.value = []), m.data.forEach((D) => {
3615
3625
  var f, C;
3616
- const g = t.value.findIndex((G) => G.id == D.id);
3617
- g >= 0 ? (f = t.value) == null || f.splice(g, 1, D) : (C = t.value) == null || C.push(D);
3618
- }), n.value = t.value.length, h.value = {
3626
+ const g = r.value.findIndex((G) => G.id == D.id);
3627
+ g >= 0 ? (f = r.value) == null || f.splice(g, 1, D) : (C = r.value) == null || C.push(D);
3628
+ }), n.value = r.value.length, h.value = {
3619
3629
  lastUpdate: ie.utc().toString(),
3620
3630
  storedOn: l.toString()
3621
3631
  }, await L(), B(m));
@@ -3629,28 +3639,28 @@ function yt(e) {
3629
3639
  async function y(w) {
3630
3640
  var U, _, P;
3631
3641
  const I = T(), B = w.refresh;
3632
- if (w.nav ?? (w.nav = e.storeName), !B && t.value != null)
3642
+ if (w.nav ?? (w.nav = e.storeName), !B && r.value != null)
3633
3643
  return {
3634
- count: (U = t.value) == null ? void 0 : U.length,
3635
- data: t.value,
3644
+ count: (U = r.value) == null ? void 0 : U.length,
3645
+ data: r.value,
3636
3646
  filters: []
3637
3647
  };
3638
3648
  if (!B && E == !0) {
3639
3649
  const m = await he().getItem(I);
3640
3650
  if (m != null && parseFloat(m.meta.storedOn) > l - 12)
3641
- return t.value = m.data, n.value = m.data.length, s.value = m.filters ?? [], h.value = m.meta, {
3642
- count: (_ = t.value) == null ? void 0 : _.length,
3643
- data: t.value,
3651
+ return r.value = m.data, n.value = m.data.length, s.value = m.filters ?? [], h.value = m.meta, {
3652
+ count: (_ = r.value) == null ? void 0 : _.length,
3653
+ data: r.value,
3644
3654
  filters: []
3645
3655
  };
3646
3656
  }
3647
3657
  if (e.api == null)
3648
3658
  return {
3649
- count: (P = t.value) == null ? void 0 : P.length,
3650
- data: t.value ?? [],
3659
+ count: (P = r.value) == null ? void 0 : P.length,
3660
+ data: r.value ?? [],
3651
3661
  filters: s.value
3652
3662
  };
3653
- t.value ?? (t.value = []);
3663
+ r.value ?? (r.value = []);
3654
3664
  try {
3655
3665
  return await R(w);
3656
3666
  } catch (m) {
@@ -3661,26 +3671,26 @@ function yt(e) {
3661
3671
  async function c(w) {
3662
3672
  var U, _;
3663
3673
  const I = T(), B = w.refresh;
3664
- if (w.nav ?? (w.nav = e.storeName), !B && t.value != null)
3674
+ if (w.nav ?? (w.nav = e.storeName), !B && r.value != null)
3665
3675
  return {
3666
- data: t.value.find((P) => P.id == w.id)
3676
+ data: r.value.find((P) => P.id == w.id)
3667
3677
  };
3668
3678
  if (!B && E == !0) {
3669
3679
  const P = await he().getItem(I);
3670
3680
  if (P != null && parseFloat(P.meta.storedOn) > l - 12) {
3671
- t.value = P.data, n.value = P.data.length, s.value = P.filters ?? [], h.value = P.meta;
3672
- let m = t.value.find((D) => D.id == w.id);
3681
+ r.value = P.data, n.value = P.data.length, s.value = P.filters ?? [], h.value = P.meta;
3682
+ let m = r.value.find((D) => D.id == w.id);
3673
3683
  if (m != null)
3674
3684
  return { data: m };
3675
3685
  }
3676
3686
  }
3677
3687
  if (e.api == null)
3678
3688
  return {
3679
- data: (U = t.value) == null ? void 0 : U.find((P) => P.id == w.id)
3689
+ data: (U = r.value) == null ? void 0 : U.find((P) => P.id == w.id)
3680
3690
  };
3681
- t.value ?? (t.value = []);
3691
+ r.value ?? (r.value = []);
3682
3692
  try {
3683
- return await R(w), { data: (_ = t.value) == null ? void 0 : _.find((P) => P.id == w.id) };
3693
+ return await R(w), { data: (_ = r.value) == null ? void 0 : _.find((P) => P.id == w.id) };
3684
3694
  } catch (P) {
3685
3695
  let m = P;
3686
3696
  throw new Error(m.message ?? "Problem");
@@ -3701,12 +3711,12 @@ function yt(e) {
3701
3711
  else
3702
3712
  I = w.data;
3703
3713
  if (I != null) {
3704
- let P = (B = t.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3705
- P != null && P >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(P, 1, I), await L());
3714
+ let P = (B = r.value) == null ? void 0 : B.findIndex((m) => m.id == I.id);
3715
+ P != null && P >= 0 && (r.value ?? (r.value = []), (U = r.value) == null || U.splice(P, 1, I), await L());
3706
3716
  }
3707
- return (_ = t.value) == null ? void 0 : _.find((P) => P.id == (w.id ?? w.data.id));
3717
+ return (_ = r.value) == null ? void 0 : _.find((P) => P.id == (w.id ?? w.data.id));
3708
3718
  }
3709
- async function r(w) {
3719
+ async function t(w) {
3710
3720
  var B, U;
3711
3721
  w.additionalUrl ?? (w.additionalUrl = "/post"), w.nav ?? (w.nav = e.storeName);
3712
3722
  let I;
@@ -3720,7 +3730,7 @@ function yt(e) {
3720
3730
  }
3721
3731
  else
3722
3732
  I = w.data;
3723
- return I != null && (t.value ?? (t.value = []), (B = t.value) == null || B.unshift(I), n.value += 1, await L()), (U = t.value) == null ? void 0 : U.find((_) => _.id == (w.id ?? w.data.id));
3733
+ return I != null && (r.value ?? (r.value = []), (B = r.value) == null || B.unshift(I), n.value += 1, await L()), (U = r.value) == null ? void 0 : U.find((_) => _.id == (w.id ?? w.data.id));
3724
3734
  }
3725
3735
  async function x(w) {
3726
3736
  var B, U;
@@ -3735,8 +3745,8 @@ function yt(e) {
3735
3745
  }
3736
3746
  const I = w.id ?? w.data.id;
3737
3747
  if (I != null) {
3738
- let _ = (B = t.value) == null ? void 0 : B.findIndex((P) => P.id == I);
3739
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (U = t.value) == null || U.splice(_, 1), await L());
3748
+ let _ = (B = r.value) == null ? void 0 : B.findIndex((P) => P.id == I);
3749
+ _ != null && _ >= 0 && (r.value ?? (r.value = []), (U = r.value) == null || U.splice(_, 1), await L());
3740
3750
  }
3741
3751
  }
3742
3752
  async function S(w) {
@@ -3754,19 +3764,19 @@ function yt(e) {
3754
3764
  let U = B;
3755
3765
  throw new Error(U.message ?? "Problem");
3756
3766
  }
3757
- return (I = t.value) == null ? void 0 : I.find((B) => B.id == (w.id ?? w.data.id));
3767
+ return (I = r.value) == null ? void 0 : I.find((B) => B.id == (w.id ?? w.data.id));
3758
3768
  }
3759
3769
  return {
3760
3770
  deleteItem: x,
3761
3771
  get: c,
3762
3772
  getAll: y,
3763
3773
  patch: o,
3764
- post: r,
3774
+ post: t,
3765
3775
  restore: S
3766
3776
  };
3767
3777
  });
3768
3778
  }
3769
- function xu(e, t, n) {
3779
+ function xu(e, r, n) {
3770
3780
  var Me;
3771
3781
  const l = e.storeMode ?? (n == null ? void 0 : n.storeMode) ?? "session", s = e.storageMode ?? (n == null ? void 0 : n.storageMode) ?? "local-cache", h = e.nav ?? e.nav ?? "basic", A = Na(), E = Rt(), T = _a(), L = Z(1), R = K(e.customFilters) ?? [], y = Z([]);
3772
3782
  let c = Z(new Array());
@@ -3774,7 +3784,7 @@ function xu(e, t, n) {
3774
3784
  ...R.filter((j) => j.name != null).map((j) => j.name),
3775
3785
  ...e.defaultFilters ?? [],
3776
3786
  ...y.value
3777
- ]).value), r = Z((e.defaultFilters ?? []).map((j) => o.value.indexOf(j))), x = le(() => ct(c, r).value.length > 0 || ct(r, c).value.length > 0), S = K(e.proxyQueryKey), w = le(() => {
3787
+ ]).value), t = Z((e.defaultFilters ?? []).map((j) => o.value.indexOf(j))), x = le(() => ct(c, t).value.length > 0 || ct(t, c).value.length > 0), S = K(e.proxyQueryKey), w = le(() => {
3778
3788
  var j;
3779
3789
  return K(e.proxyID) ?? (S != null ? (j = T.query) == null ? void 0 : j[S] : void 0);
3780
3790
  }), I = K(e.searchQueryKey), B = Z(I != null ? (Me = T.query) == null ? void 0 : Me[I] : void 0), U = Z(K(e.startShowingInactive) ?? !1), _ = Z(K(e.sortOrder)), P = le(() => [
@@ -3845,7 +3855,7 @@ function xu(e, t, n) {
3845
3855
  proxyID: w.value,
3846
3856
  // ...(useBladeSrc ? bladeData.value : {}),
3847
3857
  requireConfirmation: !0
3848
- }), t && t("deleted", j);
3858
+ }), r && r("deleted", j);
3849
3859
  }
3850
3860
  function or(j) {
3851
3861
  H({
@@ -3908,7 +3918,7 @@ function xu(e, t, n) {
3908
3918
  }
3909
3919
  function Ze(j, te) {
3910
3920
  const Q = K(j);
3911
- if (Q != null && Q === f && e.canUnselect ? f = null : f = Q, t != null && t("select", f), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(Q)))
3921
+ if (Q != null && Q === f && e.canUnselect ? f = null : f = Q, r != null && r("select", f), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(Q)))
3912
3922
  if (e.onSelectItem != null)
3913
3923
  e.onSelectItem(f);
3914
3924
  else {
@@ -3958,7 +3968,7 @@ function xu(e, t, n) {
3958
3968
  refresh: Ne,
3959
3969
  restoreItem: or,
3960
3970
  searchString: B,
3961
- selectedFilters: r,
3971
+ selectedFilters: t,
3962
3972
  selectItem: Ze,
3963
3973
  serverFilters: y,
3964
3974
  showError: re,
@@ -3978,7 +3988,7 @@ function Nu() {
3978
3988
  return kr;
3979
3989
  }
3980
3990
  function Wa(e) {
3981
- const t = e.defaultCacheExpiryHours ?? 7;
3991
+ const r = e.defaultCacheExpiryHours ?? 7;
3982
3992
  e.getDisplayName ?? (e.getDisplayName = (c) => {
3983
3993
  if (c.displayName != null)
3984
3994
  return c.displayName;
@@ -3995,7 +4005,7 @@ function Wa(e) {
3995
4005
  }
3996
4006
  function s(c) {
3997
4007
  var o;
3998
- return ((o = E(c)) == null ? void 0 : o.cacheExpiryHours) ?? t;
4008
+ return ((o = E(c)) == null ? void 0 : o.cacheExpiryHours) ?? r;
3999
4009
  }
4000
4010
  function h(c) {
4001
4011
  var o;
@@ -4006,25 +4016,25 @@ function Wa(e) {
4006
4016
  return (o = E(c)) == null ? void 0 : o.icon;
4007
4017
  }
4008
4018
  function E(c) {
4009
- return c == null ? null : typeof c != "string" ? c : Mt(n, (r) => r.children).find((r) => {
4019
+ return c == null ? null : typeof c != "string" ? c : Mt(n, (t) => t.children).find((t) => {
4010
4020
  var x;
4011
- return r.name == c || r.singleName == c || ((x = r.aliases) == null ? void 0 : x.some((S) => S == c));
4021
+ return t.name == c || t.singleName == c || ((x = t.aliases) == null ? void 0 : x.some((S) => S == c));
4012
4022
  }) ?? null;
4013
4023
  }
4014
4024
  function T(c) {
4015
4025
  const o = E(c);
4016
4026
  if (o == null)
4017
4027
  return;
4018
- let r = Aa(o.microservice ?? "default") ?? "";
4019
- return o.path != null && (r = Te(r, o.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
4028
+ let t = Aa(o.microservice ?? "default") ?? "";
4029
+ return o.path != null && (t = Te(t, o.path)), t != null && t.endsWith("/") && (t = t.slice(0, t.length - 1)), t;
4020
4030
  }
4021
4031
  function L(c) {
4022
4032
  const o = E(c);
4023
4033
  if ((o == null ? void 0 : o.singleName) != null)
4024
4034
  return o.singleName;
4025
- const r = o == null ? void 0 : o.displayName;
4026
- if (r != null)
4027
- return r.endsWith("ies") ? r.slice(0, r.length - 3) : r.endsWith("es") ? r.slice(0, r.length - 2) : r.endsWith("s") ? r.slice(0, r.length - 1) : r;
4035
+ const t = o == null ? void 0 : o.displayName;
4036
+ if (t != null)
4037
+ return t.endsWith("ies") ? t.slice(0, t.length - 3) : t.endsWith("es") ? t.slice(0, t.length - 2) : t.endsWith("s") ? t.slice(0, t.length - 1) : t;
4028
4038
  }
4029
4039
  function R(c) {
4030
4040
  const o = E(c);
@@ -4034,8 +4044,8 @@ function Wa(e) {
4034
4044
  if (c == null)
4035
4045
  return;
4036
4046
  const o = typeof c == "string" ? E(c) : c;
4037
- Et.value = o == null ? void 0 : o.background, bt.value = (o == null ? void 0 : o.hideNavigation) !== !0, wt.value = (o == null ? void 0 : o.hideAppBar) !== !0, Dr != null && Dr(), Ar.value = (o == null ? void 0 : o.hesitate) === !0, Ar.value && (Dr = window.addEventListener("beforeunload", (r) => {
4038
- r.preventDefault();
4047
+ Et.value = o == null ? void 0 : o.background, bt.value = (o == null ? void 0 : o.hideNavigation) !== !0, wt.value = (o == null ? void 0 : o.hideAppBar) !== !0, Dr != null && Dr(), Ar.value = (o == null ? void 0 : o.hesitate) === !0, Ar.value && (Dr = window.addEventListener("beforeunload", (t) => {
4048
+ t.preventDefault();
4039
4049
  }));
4040
4050
  }
4041
4051
  return kr = {
@@ -4060,14 +4070,14 @@ function Tu(e) {
4060
4070
  return Vr.usePresets(e);
4061
4071
  }
4062
4072
  function ja(e) {
4063
- function t(n) {
4073
+ function r(n) {
4064
4074
  if (!n)
4065
4075
  return {};
4066
4076
  let l = n;
4067
4077
  return e.presets[l] ?? {};
4068
4078
  }
4069
4079
  return Vr = {
4070
- usePresets: t
4080
+ usePresets: r
4071
4081
  }, Vr;
4072
4082
  }
4073
4083
  let St, _t, At, Dt = !1;
@@ -4080,7 +4090,7 @@ function Ga() {
4080
4090
  function e(A) {
4081
4091
  rr.value = A.detail, xr.value = !0;
4082
4092
  }
4083
- function t() {
4093
+ function r() {
4084
4094
  Dt || (Dt = !0, window.location.reload());
4085
4095
  }
4086
4096
  function n() {
@@ -4097,7 +4107,7 @@ function Ga() {
4097
4107
  xr.value = !1, !(!rr.value || !rr.value.waiting) && rr.value.waiting.postMessage({ type: "SKIP_WAITING" });
4098
4108
  }
4099
4109
  return zr(() => {
4100
- St == null && (St = document.addEventListener("swUpdated", e, { once: !0 })), _t == null && (_t = navigator.serviceWorker.addEventListener("controllerchange", t)), At == null && (At = window.addEventListener("beforeinstallprompt", s));
4110
+ St == null && (St = document.addEventListener("swUpdated", e, { once: !0 })), _t == null && (_t = navigator.serviceWorker.addEventListener("controllerchange", r)), At == null && (At = window.addEventListener("beforeinstallprompt", s));
4101
4111
  }), Wr = {
4102
4112
  canInstallApp: Ir,
4103
4113
  canUpdateApp: xr,
@@ -4107,10 +4117,10 @@ function Ga() {
4107
4117
  }, Wr;
4108
4118
  }
4109
4119
  const qa = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
4110
- function Pu(e, t = {}) {
4111
- let n, l = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, h = t.minWidth ?? 0, A = t.maxWidth ?? Number.MAX_SAFE_INTEGER, E = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, L = t.preventDefault ?? !1, R = t.stopPropagation ?? !1, y, c = [];
4120
+ function Pu(e, r = {}) {
4121
+ let n, l = r.handleWidth ?? 12, s = r.handleZIndex ?? 100, h = r.minWidth ?? 0, A = r.maxWidth ?? Number.MAX_SAFE_INTEGER, E = r.minHeight ?? 0, T = r.maxHeight ?? Number.MAX_SAFE_INTEGER, L = r.preventDefault ?? !1, R = r.stopPropagation ?? !1, y, c = [];
4112
4122
  const o = Z(!1);
4113
- let r = [], x = [];
4123
+ let t = [], x = [];
4114
4124
  const S = Z(!1), w = Z({ x: 0, y: 0 });
4115
4125
  let I = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, B = {};
4116
4126
  function U(W) {
@@ -4139,7 +4149,7 @@ function Pu(e, t = {}) {
4139
4149
  top: V.offsetTop,
4140
4150
  height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
4141
4151
  width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
4142
- }, B = Yr(I), ((fe = t.onStart) == null ? void 0 : fe.call(t, w.value, W)) === !1)
4152
+ }, B = Yr(I), ((fe = r.onStart) == null ? void 0 : fe.call(r, w.value, W)) === !1)
4143
4153
  return;
4144
4154
  let re = W.target;
4145
4155
  document.documentElement.style.cursor = C(re.dataset.handle), y = re.dataset.handle, x.push(oe("mousemove", g)), x.push(oe("mouseup", f)), x.push(oe("touchmove", g)), x.push(oe("touchend", f)), U(W);
@@ -4241,15 +4251,15 @@ function Pu(e, t = {}) {
4241
4251
  if (S.value)
4242
4252
  return;
4243
4253
  const V = ae(e);
4244
- V && (_(V, W ?? qa), G(H), r.push(oe(V.$el, "mousedown", D)), r.push(oe(V.$el, "touchstart", D)), S.value = !0, n = H);
4254
+ V && (_(V, W ?? qa), G(H), t.push(oe(V.$el, "mousedown", D)), t.push(oe(V.$el, "touchstart", D)), S.value = !0, n = H);
4245
4255
  }
4246
4256
  function ye(W) {
4247
4257
  if (!S.value)
4248
4258
  return;
4249
4259
  const H = ae(e);
4250
- H && (P(H), G(W), r.forEach((V) => {
4260
+ H && (P(H), G(W), t.forEach((V) => {
4251
4261
  V();
4252
- }), r.length = 0, S.value = !1);
4262
+ }), t.length = 0, S.value = !1);
4253
4263
  }
4254
4264
  return {
4255
4265
  resizingIsOn: S,
@@ -4258,21 +4268,21 @@ function Pu(e, t = {}) {
4258
4268
  };
4259
4269
  }
4260
4270
  function Lu(e) {
4261
- const t = [];
4262
- return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => ya(n) || "Email must be valid")), t;
4271
+ const r = [];
4272
+ return (e == null ? void 0 : e.required) == !0 && r.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? r.push(...e.otherRules) : r.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (r.push((n) => !!n || "Password is required"), r.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), r.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), r.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), r.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (r.push((n) => !!n || "Email is required"), r.push((n) => ya(n) || "Email must be valid")), r;
4263
4273
  }
4264
- function Mu(e, t) {
4274
+ function Mu(e, r) {
4265
4275
  const n = Z(!1), l = tr(e);
4266
4276
  let s = h(K(e));
4267
- (t == null ? void 0 : t.useTracker) !== !1 && Ee(l, (E) => {
4277
+ (r == null ? void 0 : r.useTracker) !== !1 && Ee(l, (E) => {
4268
4278
  n.value = h(E) != s;
4269
4279
  }, { deep: !0 });
4270
4280
  function h(E) {
4271
4281
  const T = Yr(E);
4272
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((L) => {
4282
+ return r != null && (r.propsToIgnore != null ? r.propsToIgnore.forEach((L) => {
4273
4283
  delete T[L];
4274
- }) : t.propsToTrack != null && Object.keys(E).forEach((R) => {
4275
- t.propsToTrack.some((y) => y == R) || delete T[R];
4284
+ }) : r.propsToTrack != null && Object.keys(E).forEach((R) => {
4285
+ r.propsToTrack.some((y) => y == R) || delete T[R];
4276
4286
  })), JSON.stringify(T);
4277
4287
  }
4278
4288
  function A() {
@@ -4286,9 +4296,9 @@ function Mu(e, t) {
4286
4296
  }
4287
4297
  function Ru(e) {
4288
4298
  return {
4289
- install(t, n) {
4299
+ install(r, n) {
4290
4300
  var E;
4291
- console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = n.vuetifyInstance), xa(e);
4301
+ console.log(r), e.vuetifyInstance ?? (e.vuetifyInstance = n.vuetifyInstance), xa(e);
4292
4302
  const l = Ca(), s = Wa(e);
4293
4303
  ja(e), (E = e.auth).demo ?? (E.demo = l), e.auth.getAuthItem = s.findItem;
4294
4304
  const h = Ia(e.auth);