bt-core-app 1.4.39 → 1.4.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +343 -343
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { ref as z, shallowRef as Te, computed as ee, toValue as V, watch as xe, toRef as Yt, onMounted as jr } from "vue";
2
- import { watchArray as Kr, useStorage as zt, useEventListener as de, toValue as Se, useParentElement as Zt, useResizeObserver as Jt, useArrayUnique as jt, useArrayDifference as $r, watchDebounced as Kt, tryOnMounted as Qt } from "@vueuse/core";
1
+ import { ref as z, shallowRef as Te, computed as ee, toValue as V, watch as xe, toRef as Yt, onMounted as Kr } from "vue";
2
+ import { watchArray as Qr, useStorage as zt, useEventListener as de, toValue as Se, useParentElement as Zt, useResizeObserver as Jt, useArrayUnique as jt, useArrayDifference as Fr, watchDebounced as Kt, tryOnMounted as Qt } from "@vueuse/core";
3
3
  import { DateTime as oe } from "luxon";
4
- import { useRouter as Dr, useRoute as Qr } from "vue-router";
4
+ import { useRouter as Dr, useRoute as xr } from "vue-router";
5
5
  import { defineStore as Xr } from "pinia";
6
6
  function Xt(e) {
7
7
  return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, Ot);
@@ -43,7 +43,7 @@ function Or(e) {
43
43
  T(i);
44
44
  }
45
45
  }
46
- return Kr(t, (h) => {
46
+ return Qr(t, (h) => {
47
47
  u.value = h.length > 0 ? h[0].msg : void 0;
48
48
  }, { deep: !0 }), {
49
49
  actionErrorMsg: S,
@@ -398,12 +398,12 @@ function an(e, t) {
398
398
  var u = e.split(","), S = t.split(",");
399
399
  return u.some((o) => S.some((g) => g == o));
400
400
  }
401
- function xr(e) {
401
+ function _r(e) {
402
402
  if (!e)
403
403
  return e;
404
404
  let t, u = Array.isArray(e) ? [] : {};
405
405
  for (const S in e)
406
- t = e[S], u[S] = typeof t == "object" ? xr(t) : t;
406
+ t = e[S], u[S] = typeof t == "object" ? _r(t) : t;
407
407
  return u;
408
408
  }
409
409
  function ln(e) {
@@ -656,18 +656,18 @@ function hn(e) {
656
656
  post: $
657
657
  }, vr;
658
658
  }
659
- var _r = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
659
+ var Tr = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
660
660
  let ge;
661
661
  function tt() {
662
- const e = _r.NODE_ENV;
662
+ const e = Tr.NODE_ENV;
663
663
  return ge == null ? e : (ge[e] ?? ge.development).localDbName ?? e;
664
664
  }
665
- function Fr() {
666
- const e = _r.NODE_ENV;
665
+ function kr() {
666
+ const e = Tr.NODE_ENV;
667
667
  return ge == null ? "" : (ge[e] ?? ge.development).auth ?? "";
668
668
  }
669
669
  function mn(e) {
670
- const t = _r.NODE_ENV;
670
+ const t = Tr.NODE_ENV;
671
671
  if (ge == null)
672
672
  return "";
673
673
  const u = ge[t] ?? ge.development;
@@ -680,16 +680,16 @@ function vn(e) {
680
680
  return ge = e, ge;
681
681
  }
682
682
  let ir = "Australia/Melbourne", gr;
683
- const kr = "auth-credentials-state";
683
+ const Gr = "auth-credentials-state";
684
684
  function sa() {
685
685
  return gr;
686
686
  }
687
687
  function gn(e) {
688
688
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
689
- let u = z(localStorage.getItem(kr) ?? "");
689
+ let u = z(localStorage.getItem(Gr) ?? "");
690
690
  u.value.length == 0 && S();
691
691
  function S() {
692
- u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(kr, u.value);
692
+ u.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Gr, u.value);
693
693
  }
694
694
  const o = zt("auth-credentials", {});
695
695
  function g(b) {
@@ -700,10 +700,10 @@ function gn(e) {
700
700
  return !1;
701
701
  if (D.requiresAuth === !1)
702
702
  return !0;
703
- const s = V(o);
704
- if (s.isSuspended && D.ignoreSuspension !== !0)
703
+ const f = V(o);
704
+ if (f.isSuspended && D.ignoreSuspension !== !0)
705
705
  return !1;
706
- if (s.isGlobalAdmin)
706
+ if (f.isGlobalAdmin)
707
707
  return !0;
708
708
  if (D.permissions != null) {
709
709
  for (var I = 0; I < D.permissions.length; I++)
@@ -715,9 +715,9 @@ function gn(e) {
715
715
  function T(b) {
716
716
  const D = V(o);
717
717
  if (D.userPermissions != null)
718
- for (var s = 0; s < D.userPermissions.length; s++) {
719
- var I = D.userPermissions[s].split(".");
720
- if (D.userPermissions[s] == "everything.edit" || b == I[0] && I.length > 1 && I[1] == "edit")
718
+ for (var f = 0; f < D.userPermissions.length; f++) {
719
+ var I = D.userPermissions[f].split(".");
720
+ if (D.userPermissions[f] == "everything.edit" || b == I[0] && I.length > 1 && I[1] == "edit")
721
721
  return !0;
722
722
  }
723
723
  return !1;
@@ -730,10 +730,10 @@ function gn(e) {
730
730
  return !1;
731
731
  if (D.requiresAuth === !1)
732
732
  return !0;
733
- const s = V(o);
734
- if (s.isSuspended && D.ignoreSuspension !== !0)
733
+ const f = V(o);
734
+ if (f.isSuspended && D.ignoreSuspension !== !0)
735
735
  return !1;
736
- if (s.isGlobalAdmin)
736
+ if (f.isGlobalAdmin)
737
737
  return !0;
738
738
  if (D.permissions != null) {
739
739
  for (var I = 0; I < D.permissions.length; I++)
@@ -745,38 +745,38 @@ function gn(e) {
745
745
  function L(b) {
746
746
  const D = V(o);
747
747
  if (D.userPermissions != null)
748
- for (var s = 0; s < D.userPermissions.length; s++) {
749
- var I = D.userPermissions[s].split(".");
750
- if (b == I[0] || b == "everything" || D.userPermissions[s] == "everything.view" || D.userPermissions[s] == "everything.edit")
748
+ for (var f = 0; f < D.userPermissions.length; f++) {
749
+ var I = D.userPermissions[f].split(".");
750
+ if (b == I[0] || b == "everything" || D.userPermissions[f] == "everything.view" || D.userPermissions[f] == "everything.edit")
751
751
  return !0;
752
752
  }
753
753
  return !1;
754
754
  }
755
- function x(b, D, s) {
755
+ function x(b, D, f) {
756
756
  let I = !0;
757
757
  return V(o).isGlobalAdmin ? !0 : (D != null && D.length > 0 && D.forEach((Q) => {
758
- s == "edit" ? T(Q) || (I = !1) : L(Q) || (I = !1);
758
+ f == "edit" ? T(Q) || (I = !1) : L(Q) || (I = !1);
759
759
  }), b != null && b.length > 0 && (b.some((Q) => l(Q)) || (I = !1)), I);
760
760
  }
761
761
  function $(b, D = !1) {
762
- var s = e.getAuthItem != null ? e.getAuthItem(b) : null;
762
+ var f = e.getAuthItem != null ? e.getAuthItem(b) : null;
763
763
  let I = !1;
764
- if (s == null)
764
+ if (f == null)
765
765
  return !1;
766
- let j = s.subscriptions ?? [], Q = s.permissions ?? [], te = x(j, Q, "view");
767
- return te || !D || !Re(s.children) ? te : ((s == null ? void 0 : s.children) != null && s.children.forEach((ie) => {
766
+ let j = f.subscriptions ?? [], Q = f.permissions ?? [], te = x(j, Q, "view");
767
+ return te || !D || !Re(f.children) ? te : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
768
768
  $(ie, !0) && (I = !0);
769
769
  }), I);
770
770
  }
771
771
  function h(b) {
772
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, s) => {
773
- const I = Ce(Fr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${s}`);
772
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (D, f) => {
773
+ const I = Ce(kr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
774
774
  return D ? `${I}&redirect_path=${D}` : I;
775
775
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(b, u.value) ?? "" : "";
776
776
  }
777
777
  function r(b) {
778
- var s;
779
- return b == null ? 0 : ((s = (e.subscriptionOptions ?? []).find((I) => I.code == b)) == null ? void 0 : s.value) ?? 0;
778
+ var f;
779
+ return b == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((I) => I.code == b)) == null ? void 0 : f.value) ?? 0;
780
780
  }
781
781
  function l(b) {
782
782
  const D = V(o);
@@ -784,12 +784,12 @@ function gn(e) {
784
784
  return !1;
785
785
  if (D.subscriptionCode == b)
786
786
  return !0;
787
- const s = r(b), I = r(D.subscriptionCode);
788
- return s <= I;
787
+ const f = r(b), I = r(D.subscriptionCode);
788
+ return f <= I;
789
789
  }
790
790
  function i(b) {
791
- const s = b.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), I = decodeURIComponent(
792
- atob(s).split("").map(function(j) {
791
+ const f = b.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), I = decodeURIComponent(
792
+ atob(f).split("").map(function(j) {
793
793
  return "%" + ("00" + j.charCodeAt(0).toString(16)).slice(-2);
794
794
  }).join("")
795
795
  );
@@ -798,24 +798,24 @@ function gn(e) {
798
798
  function y(b) {
799
799
  if (o.value = void 0, P(), b != null) {
800
800
  const D = Dr();
801
- D.currentRoute.value.path != b && D.push({ path: b });
801
+ xr().path != b && D.push({ path: b });
802
802
  }
803
803
  }
804
804
  function w(b) {
805
- var s;
806
- V(o).isLoggedIn || ((s = e.demo) == null || s.endDemo(), N() && (y(), window.location.href = h(b)));
805
+ var f;
806
+ V(o).isLoggedIn || ((f = e.demo) == null || f.endDemo(), N() && (y(), window.location.href = h(b)));
807
807
  }
808
808
  async function v(b, D) {
809
809
  return e.getToken ?? (e.getToken = async () => {
810
- let s = b, I = D, j = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
811
- if (s == null || I == null)
810
+ let f = b, I = D, j = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
811
+ if (f == null || I == null)
812
812
  throw new Error("Code and State required in OAuth token process");
813
813
  if (I != u.value)
814
814
  throw new Error("state does not match");
815
815
  let te = "";
816
- e.getTokenUrl ?? (e.getTokenUrl = () => Ce(Fr(), "token")), te = e.getTokenUrl(s, `${window.location.origin}/authentication`, j, Q);
816
+ e.getTokenUrl ?? (e.getTokenUrl = () => Ce(kr(), "token")), te = e.getTokenUrl(f, `${window.location.origin}/authentication`, j, Q);
817
817
  const ie = {};
818
- ie.grant_type = j, ie.code = s, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
818
+ ie.grant_type = j, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
819
819
  const W = await dn().post({
820
820
  additionalUrl: te,
821
821
  data: ie
@@ -831,8 +831,8 @@ function gn(e) {
831
831
  }
832
832
  function E(b, D) {
833
833
  var I;
834
- const s = o.value;
835
- s.expiresOn = b.ExpiresOn, s.isGlobalAdmin = b.IsGlobalAdmin == "True", s.isLoggedIn = !0, s.permissions = b.Permissions, s.subscriptionCode = b.Subscription, s.timeZone ?? (s.timeZone = e.defaultTimeZone ?? ir), s.token = D, s.userID = b.UserLoginID, s.userPermissions = ((I = b.Permissions) == null ? void 0 : I.split(",")) ?? [];
834
+ const f = o.value;
835
+ f.expiresOn = b.ExpiresOn, f.isGlobalAdmin = b.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = b.Permissions, f.subscriptionCode = b.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? ir), f.token = D, f.userID = b.UserLoginID, f.userPermissions = ((I = b.Permissions) == null ? void 0 : I.split(",")) ?? [];
836
836
  }
837
837
  function P() {
838
838
  var b;
@@ -846,8 +846,8 @@ function gn(e) {
846
846
  const b = V(o);
847
847
  if (b == null || b.expiresOn == null)
848
848
  return !0;
849
- const D = oe.fromFormat(b.expiresOn, t), s = oe.utc();
850
- return D <= s;
849
+ const D = oe.fromFormat(b.expiresOn, t), f = oe.utc();
850
+ return D <= f;
851
851
  }
852
852
  return P(), gr = {
853
853
  authState: u,
@@ -880,7 +880,7 @@ function yn(e, t, u = {}) {
880
880
  V(S) && P.preventDefault(), V(o) && P.stopPropagation();
881
881
  }
882
882
  function i(P) {
883
- var s;
883
+ var f;
884
884
  const A = V(e);
885
885
  if (!A)
886
886
  return;
@@ -891,15 +891,15 @@ function yn(e, t, u = {}) {
891
891
  }, C = {
892
892
  x: N.offsetLeft,
893
893
  y: N.offsetTop
894
- }, ((s = u.onStart) == null ? void 0 : s.call(u, x, P)) !== !1 && (h.push(de("mousemove", y)), h.push(de("touchmove", y)), h.push(de("mouseup", w)), h.push(de("touchend", w)), l(P));
894
+ }, ((f = u.onStart) == null ? void 0 : f.call(u, x, P)) !== !1 && (h.push(de("mousemove", y)), h.push(de("touchmove", y)), h.push(de("mouseup", w)), h.push(de("touchend", w)), l(P));
895
895
  }
896
896
  function y(P) {
897
897
  var I;
898
898
  if (!x || !V(e))
899
899
  return;
900
900
  const b = P.type === "touchmove" && P.touches.length > 0 ? P.touches[0] : P;
901
- let D = b.clientX - x.x, s = b.clientY - x.y;
902
- (g === "x" || g === "both") && (C.x = L.x + D), (g === "y" || g === "both") && (C.y = L.y + s), (I = u.onMove) == null || I.call(u, C, P), l(P), v(C);
901
+ let D = b.clientX - x.x, f = b.clientY - x.y;
902
+ (g === "x" || g === "both") && (C.x = L.x + D), (g === "y" || g === "both") && (C.y = L.y + f), (I = u.onMove) == null || I.call(u, C, P), l(P), v(C);
903
903
  }
904
904
  function w(P) {
905
905
  var A;
@@ -973,12 +973,12 @@ function bn(e, t = {}) {
973
973
  top: q.offsetTop,
974
974
  height: parseInt(window.getComputedStyle(q).getPropertyValue("height")),
975
975
  width: parseInt(window.getComputedStyle(q).getPropertyValue("width"))
976
- }, E = xr(M), ((re = t.onStart) == null ? void 0 : re.call(t, v.value, W)) === !1)
976
+ }, E = _r(M), ((re = t.onStart) == null ? void 0 : re.call(t, v.value, W)) === !1)
977
977
  return;
978
978
  let J = W.target;
979
- document.documentElement.style.cursor = j(J.dataset.handle), h = J.dataset.handle, y.push(de("mousemove", s)), y.push(de("mouseup", I)), y.push(de("touchmove", s)), y.push(de("touchend", I)), P(W);
979
+ document.documentElement.style.cursor = j(J.dataset.handle), h = J.dataset.handle, y.push(de("mousemove", f)), y.push(de("mouseup", I)), y.push(de("touchmove", f)), y.push(de("touchend", I)), P(W);
980
980
  }
981
- function s(W) {
981
+ function f(W) {
982
982
  const Y = Se(e);
983
983
  if (!Y)
984
984
  return;
@@ -1442,95 +1442,95 @@ function wa() {
1442
1442
  return Sr;
1443
1443
  }
1444
1444
  function xn(e) {
1445
- function t(s, I, j) {
1446
- return s ? tn(s) ? j ?? "" : e.dates.tzString(s, I) : j ?? s ?? "";
1445
+ function t(f, I, j) {
1446
+ return f ? tn(f) ? j ?? "" : e.dates.tzString(f, I) : j ?? f ?? "";
1447
1447
  }
1448
- function u(s) {
1449
- if (!s)
1448
+ function u(f) {
1449
+ if (!f)
1450
1450
  return "";
1451
- if (typeof s != "object")
1452
- return s;
1451
+ if (typeof f != "object")
1452
+ return f;
1453
1453
  var I = "";
1454
- return s.companyAccount != null && (I = s.companyAccount.companyName + " | "), s.addressLineOne != null && (I = I + s.addressLineOne + " "), s.streetNumber != null && (I = I + s.streetNumber + " "), s.streetName != null && (I = I + s.streetName + ", "), s.suburb != null && (I = I + s.suburb + " "), s.state != null && (I = I + s.state + " "), s.postcode != null && (I = I + s.postcode), I;
1454
+ return f.companyAccount != null && (I = f.companyAccount.companyName + " | "), f.addressLineOne != null && (I = I + f.addressLineOne + " "), f.streetNumber != null && (I = I + f.streetNumber + " "), f.streetName != null && (I = I + f.streetName + ", "), f.suburb != null && (I = I + f.suburb + " "), f.state != null && (I = I + f.state + " "), f.postcode != null && (I = I + f.postcode), I;
1455
1455
  }
1456
- function S(s) {
1457
- if (typeof s != "number")
1458
- return s;
1456
+ function S(f) {
1457
+ if (typeof f != "number")
1458
+ return f;
1459
1459
  var I = new Intl.NumberFormat("en-US", {
1460
1460
  style: "currency",
1461
1461
  currency: "AUD",
1462
1462
  minimumFractionDigits: 2
1463
1463
  });
1464
- return I.format(s);
1464
+ return I.format(f);
1465
1465
  }
1466
- function o(s, I) {
1467
- return t(s, "ccc | d LLL", I);
1466
+ function o(f, I) {
1467
+ return t(f, "ccc | d LLL", I);
1468
1468
  }
1469
- function g(s, I) {
1470
- return t(s, "d LLL", I);
1469
+ function g(f, I) {
1470
+ return t(f, "d LLL", I);
1471
1471
  }
1472
- function T(s, I) {
1473
- return t(s, "ccc", I);
1472
+ function T(f, I) {
1473
+ return t(f, "ccc", I);
1474
1474
  }
1475
- function C(s, I) {
1476
- return t(s, "ccc dd LLL yyyy", I);
1475
+ function C(f, I) {
1476
+ return t(f, "ccc dd LLL yyyy", I);
1477
1477
  }
1478
- function L(s, I) {
1479
- return t(s, "ccc dd LLL @ hh:mm a", I);
1478
+ function L(f, I) {
1479
+ return t(f, "ccc dd LLL @ hh:mm a", I);
1480
1480
  }
1481
- function x(s) {
1482
- return new Intl.NumberFormat().format(s);
1481
+ function x(f) {
1482
+ return new Intl.NumberFormat().format(f);
1483
1483
  }
1484
- function $(s) {
1485
- return s == 0 ? "" : new Intl.NumberFormat().format(s);
1484
+ function $(f) {
1485
+ return f == 0 ? "" : new Intl.NumberFormat().format(f);
1486
1486
  }
1487
- function h(s) {
1488
- if (s == 0)
1487
+ function h(f) {
1488
+ if (f == 0)
1489
1489
  return "";
1490
- var I = new Intl.NumberFormat().format(s);
1491
- return s > 0 ? "+" + I : I;
1490
+ var I = new Intl.NumberFormat().format(f);
1491
+ return f > 0 ? "+" + I : I;
1492
1492
  }
1493
- function r(s, I) {
1494
- return e.dates.utcString(s, I);
1493
+ function r(f, I) {
1494
+ return e.dates.utcString(f, I);
1495
1495
  }
1496
- function l(s) {
1497
- return et(s, !1);
1496
+ function l(f) {
1497
+ return et(f, !1);
1498
1498
  }
1499
- function i(s) {
1500
- if (!s)
1499
+ function i(f) {
1500
+ if (!f)
1501
1501
  return "";
1502
- if (typeof s != "object")
1503
- return s;
1502
+ if (typeof f != "object")
1503
+ return f;
1504
1504
  var I = "";
1505
- return s.addressLineOne != null && (I = s.addressLineOne + " "), s.streetNumber != null && (I = I + s.streetNumber + " "), s.streetName != null && (I = I + s.streetName + " "), s.suburb != null && (I = I + s.suburb + " "), s.state != null && (I = I + s.state + " "), s.postcode != null && (I = I + s.postcode), I = I.replaceAll(",", " "), I;
1505
+ return f.addressLineOne != null && (I = f.addressLineOne + " "), f.streetNumber != null && (I = I + f.streetNumber + " "), f.streetName != null && (I = I + f.streetName + " "), f.suburb != null && (I = I + f.suburb + " "), f.state != null && (I = I + f.state + " "), f.postcode != null && (I = I + f.postcode), I = I.replaceAll(",", " "), I;
1506
1506
  }
1507
- function y(s, I) {
1508
- return t(s, "ddd DD MMM YYYY", I);
1507
+ function y(f, I) {
1508
+ return t(f, "ddd DD MMM YYYY", I);
1509
1509
  }
1510
- function w(s, I) {
1511
- return t(s, "ccc dd LLL yyyy hh:mm a", I);
1510
+ function w(f, I) {
1511
+ return t(f, "ccc dd LLL yyyy hh:mm a", I);
1512
1512
  }
1513
- function v(s) {
1513
+ function v(f) {
1514
1514
  var I = new Intl.NumberFormat("en-US", {
1515
1515
  style: "percent",
1516
1516
  minimumFractionDigits: 2
1517
1517
  });
1518
- return I.format(s);
1518
+ return I.format(f);
1519
1519
  }
1520
- function M(s) {
1521
- return s.replaceAll(",", " ");
1520
+ function M(f) {
1521
+ return f.replaceAll(",", " ");
1522
1522
  }
1523
- function E(s, I) {
1524
- return t(s, "dd LLL yyyy", I);
1523
+ function E(f, I) {
1524
+ return t(f, "dd LLL yyyy", I);
1525
1525
  }
1526
- function P(s, I) {
1527
- return t(s, "dd LLL yyyy hh:mm a", I);
1526
+ function P(f, I) {
1527
+ return t(f, "dd LLL yyyy hh:mm a", I);
1528
1528
  }
1529
- function A(s, I) {
1530
- return t(s, "hh:mm a", I);
1529
+ function A(f, I) {
1530
+ return t(f, "hh:mm a", I);
1531
1531
  }
1532
- function N(s) {
1533
- return s == null ? "" : typeof s == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: s }).toFormat("T") : typeof s == "string" ? e.dates.tzString(s, "t") : "unknown";
1532
+ function N(f) {
1533
+ return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
1534
1534
  }
1535
1535
  const b = {
1536
1536
  toCompanyNameAndLocationLine: u,
@@ -1555,9 +1555,9 @@ function xn(e) {
1555
1555
  toTime: A,
1556
1556
  toTimeOfDay: N
1557
1557
  };
1558
- function D(s) {
1559
- if (s != null) {
1560
- let I = s;
1558
+ function D(f) {
1559
+ if (f != null) {
1560
+ let I = f;
1561
1561
  if (I != null && b[I] != null)
1562
1562
  return b[I];
1563
1563
  }
@@ -1685,8 +1685,8 @@ var nt = { exports: {} };
1685
1685
  var D;
1686
1686
  try {
1687
1687
  D = N(b);
1688
- } catch (s) {
1689
- return C.reject(A, s);
1688
+ } catch (f) {
1689
+ return C.reject(A, f);
1690
1690
  }
1691
1691
  D === A ? C.reject(A, new TypeError("Cannot resolve promise with itself")) : C.resolve(A, D);
1692
1692
  });
@@ -1700,8 +1700,8 @@ var nt = { exports: {} };
1700
1700
  y(A, D);
1701
1701
  else {
1702
1702
  A.state = x, A.outcome = N;
1703
- for (var s = -1, I = A.queue.length; ++s < I; )
1704
- A.queue[s].callFulfilled(N);
1703
+ for (var f = -1, I = A.queue.length; ++f < I; )
1704
+ A.queue[f].callFulfilled(N);
1705
1705
  }
1706
1706
  return A;
1707
1707
  }, C.reject = function(A, N) {
@@ -1722,11 +1722,11 @@ var nt = { exports: {} };
1722
1722
  function D(Q) {
1723
1723
  b || (b = !0, C.reject(A, Q));
1724
1724
  }
1725
- function s(Q) {
1725
+ function f(Q) {
1726
1726
  b || (b = !0, C.resolve(A, Q));
1727
1727
  }
1728
1728
  function I() {
1729
- N(s, D);
1729
+ N(f, D);
1730
1730
  }
1731
1731
  var j = w(I);
1732
1732
  j.status === "error" && D(j.value);
@@ -1757,7 +1757,7 @@ var nt = { exports: {} };
1757
1757
  var b = A.length, D = !1;
1758
1758
  if (!b)
1759
1759
  return this.resolve([]);
1760
- for (var s = new Array(b), I = 0, j = -1, Q = new this(T); ++j < b; )
1760
+ for (var f = new Array(b), I = 0, j = -1, Q = new this(T); ++j < b; )
1761
1761
  te(A[j], j);
1762
1762
  return Q;
1763
1763
  function te(ie, ye) {
@@ -1765,7 +1765,7 @@ var nt = { exports: {} };
1765
1765
  D || (D = !0, C.reject(Q, Y));
1766
1766
  });
1767
1767
  function W(Y) {
1768
- s[ye] = Y, ++I === b && !D && (D = !0, C.resolve(Q, s));
1768
+ f[ye] = Y, ++I === b && !D && (D = !0, C.resolve(Q, f));
1769
1769
  }
1770
1770
  }
1771
1771
  }
@@ -1777,8 +1777,8 @@ var nt = { exports: {} };
1777
1777
  var b = A.length, D = !1;
1778
1778
  if (!b)
1779
1779
  return this.resolve([]);
1780
- for (var s = -1, I = new this(T); ++s < b; )
1781
- j(A[s]);
1780
+ for (var f = -1, I = new this(T); ++f < b; )
1781
+ j(A[f]);
1782
1782
  return I;
1783
1783
  function j(Q) {
1784
1784
  N.resolve(Q).then(function(te) {
@@ -1837,9 +1837,9 @@ var nt = { exports: {} };
1837
1837
  n = n || [], c = c || {};
1838
1838
  try {
1839
1839
  return new Blob(n, c);
1840
- } catch (f) {
1841
- if (f.name !== "TypeError")
1842
- throw f;
1840
+ } catch (s) {
1841
+ if (s.name !== "TypeError")
1842
+ throw s;
1843
1843
  for (var a = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, d = new a(), m = 0; m < n.length; m += 1)
1844
1844
  d.append(n[m]);
1845
1845
  return d.getBlob(c.type);
@@ -1876,8 +1876,8 @@ var nt = { exports: {} };
1876
1876
  a.objectStore(w).put(d, "key"), a.onabort = function(m) {
1877
1877
  m.preventDefault(), m.stopPropagation(), c(!1);
1878
1878
  }, a.oncomplete = function() {
1879
- var m = navigator.userAgent.match(/Chrome\/(\d+)/), f = navigator.userAgent.match(/Edge\//);
1880
- c(f || !m || parseInt(m[1], 10) >= 43);
1879
+ var m = navigator.userAgent.match(/Chrome\/(\d+)/), s = navigator.userAgent.match(/Edge\//);
1880
+ c(s || !m || parseInt(m[1], 10) >= 43);
1881
1881
  };
1882
1882
  }).catch(function() {
1883
1883
  return !1;
@@ -1888,7 +1888,7 @@ var nt = { exports: {} };
1888
1888
  return v = c, v;
1889
1889
  });
1890
1890
  }
1891
- function s(n) {
1891
+ function f(n) {
1892
1892
  var c = M[n.name], a = {};
1893
1893
  a.promise = new h(function(d, m) {
1894
1894
  a.resolve = d, a.reject = m;
@@ -1910,14 +1910,14 @@ var nt = { exports: {} };
1910
1910
  return new h(function(a, d) {
1911
1911
  if (M[n.name] = M[n.name] || re(), n.db)
1912
1912
  if (c)
1913
- s(n), n.db.close();
1913
+ f(n), n.db.close();
1914
1914
  else
1915
1915
  return a(n.db);
1916
1916
  var m = [n.name];
1917
1917
  c && m.push(n.version);
1918
- var f = L.open.apply(L, m);
1919
- c && (f.onupgradeneeded = function(_) {
1920
- var R = f.result;
1918
+ var s = L.open.apply(L, m);
1919
+ c && (s.onupgradeneeded = function(_) {
1920
+ var R = s.result;
1921
1921
  try {
1922
1922
  R.createObjectStore(n.storeName), _.oldVersion <= 1 && R.createObjectStore(w);
1923
1923
  } catch (U) {
@@ -1926,10 +1926,10 @@ var nt = { exports: {} };
1926
1926
  else
1927
1927
  throw U;
1928
1928
  }
1929
- }), f.onerror = function(_) {
1930
- _.preventDefault(), d(f.error);
1931
- }, f.onsuccess = function() {
1932
- var _ = f.result;
1929
+ }), s.onerror = function(_) {
1930
+ _.preventDefault(), d(s.error);
1931
+ }, s.onsuccess = function() {
1932
+ var _ = s.result;
1933
1933
  _.onversionchange = function(R) {
1934
1934
  R.target.close();
1935
1935
  }, a(_), I(n);
@@ -1948,8 +1948,8 @@ var nt = { exports: {} };
1948
1948
  var a = !n.db.objectStoreNames.contains(n.storeName), d = n.version < n.db.version, m = n.version > n.db.version;
1949
1949
  if (d && (n.version !== c && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), m || a) {
1950
1950
  if (a) {
1951
- var f = n.db.version + 1;
1952
- f > n.version && (n.version = f);
1951
+ var s = n.db.version + 1;
1952
+ s > n.version && (n.version = s);
1953
1953
  }
1954
1954
  return !0;
1955
1955
  }
@@ -1959,10 +1959,10 @@ var nt = { exports: {} };
1959
1959
  return new h(function(c, a) {
1960
1960
  var d = new FileReader();
1961
1961
  d.onerror = a, d.onloadend = function(m) {
1962
- var f = btoa(m.target.result || "");
1962
+ var s = btoa(m.target.result || "");
1963
1963
  c({
1964
1964
  __local_forage_encoded_blob: !0,
1965
- data: f,
1965
+ data: s,
1966
1966
  type: n.type
1967
1967
  });
1968
1968
  }, d.readAsBinaryString(n);
@@ -1984,19 +1984,19 @@ var nt = { exports: {} };
1984
1984
  return l(a, n, n), a;
1985
1985
  }
1986
1986
  function G(n) {
1987
- s(n);
1987
+ f(n);
1988
1988
  for (var c = M[n.name], a = c.forages, d = 0; d < a.length; d++) {
1989
1989
  var m = a[d];
1990
1990
  m._dbInfo.db && (m._dbInfo.db.close(), m._dbInfo.db = null);
1991
1991
  }
1992
- return n.db = null, te(n).then(function(f) {
1993
- return n.db = f, ye(n) ? ie(n) : f;
1994
- }).then(function(f) {
1995
- n.db = c.db = f;
1992
+ return n.db = null, te(n).then(function(s) {
1993
+ return n.db = s, ye(n) ? ie(n) : s;
1994
+ }).then(function(s) {
1995
+ n.db = c.db = s;
1996
1996
  for (var _ = 0; _ < a.length; _++)
1997
- a[_]._dbInfo.db = f;
1998
- }).catch(function(f) {
1999
- throw j(n, f), f;
1997
+ a[_]._dbInfo.db = s;
1998
+ }).catch(function(s) {
1999
+ throw j(n, s), s;
2000
2000
  });
2001
2001
  }
2002
2002
  function J(n, c, a, d) {
@@ -2004,17 +2004,17 @@ var nt = { exports: {} };
2004
2004
  try {
2005
2005
  var m = n.db.transaction(n.storeName, c);
2006
2006
  a(null, m);
2007
- } catch (f) {
2008
- if (d > 0 && (!n.db || f.name === "InvalidStateError" || f.name === "NotFoundError"))
2007
+ } catch (s) {
2008
+ if (d > 0 && (!n.db || s.name === "InvalidStateError" || s.name === "NotFoundError"))
2009
2009
  return h.resolve().then(function() {
2010
- if (!n.db || f.name === "NotFoundError" && !n.db.objectStoreNames.contains(n.storeName) && n.version <= n.db.version)
2010
+ if (!n.db || s.name === "NotFoundError" && !n.db.objectStoreNames.contains(n.storeName) && n.version <= n.db.version)
2011
2011
  return n.db && (n.version = n.db.version + 1), ie(n);
2012
2012
  }).then(function() {
2013
2013
  return G(n).then(function() {
2014
2014
  J(n, c, a, d - 1);
2015
2015
  });
2016
2016
  }).catch(a);
2017
- a(f);
2017
+ a(s);
2018
2018
  }
2019
2019
  }
2020
2020
  function re() {
@@ -2038,16 +2038,16 @@ var nt = { exports: {} };
2038
2038
  a[d] = n[d];
2039
2039
  var m = M[a.name];
2040
2040
  m || (m = re(), M[a.name] = m), m.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ne);
2041
- var f = [];
2041
+ var s = [];
2042
2042
  function _() {
2043
2043
  return h.resolve();
2044
2044
  }
2045
2045
  for (var R = 0; R < m.forages.length; R++) {
2046
2046
  var U = m.forages[R];
2047
- U !== c && f.push(U._initReady().catch(_));
2047
+ U !== c && s.push(U._initReady().catch(_));
2048
2048
  }
2049
2049
  var B = m.forages.slice(0);
2050
- return h.all(f).then(function() {
2050
+ return h.all(s).then(function() {
2051
2051
  return a.db = m.db, te(a);
2052
2052
  }).then(function(F) {
2053
2053
  return a.db = F, ye(a, c._defaultConfig.version) ? ie(a) : F;
@@ -2062,33 +2062,33 @@ var nt = { exports: {} };
2062
2062
  function fe(n, c) {
2063
2063
  var a = this;
2064
2064
  n = i(n);
2065
- var d = new h(function(m, f) {
2065
+ var d = new h(function(m, s) {
2066
2066
  a.ready().then(function() {
2067
2067
  J(a._dbInfo, P, function(_, R) {
2068
2068
  if (_)
2069
- return f(_);
2069
+ return s(_);
2070
2070
  try {
2071
2071
  var U = R.objectStore(a._dbInfo.storeName), B = U.get(n);
2072
2072
  B.onsuccess = function() {
2073
2073
  var F = B.result;
2074
2074
  F === void 0 && (F = null), q(F) && (F = Y(F)), m(F);
2075
2075
  }, B.onerror = function() {
2076
- f(B.error);
2076
+ s(B.error);
2077
2077
  };
2078
2078
  } catch (F) {
2079
- f(F);
2079
+ s(F);
2080
2080
  }
2081
2081
  });
2082
- }).catch(f);
2082
+ }).catch(s);
2083
2083
  });
2084
2084
  return r(d, c), d;
2085
2085
  }
2086
2086
  function Ue(n, c) {
2087
- var a = this, d = new h(function(m, f) {
2087
+ var a = this, d = new h(function(m, s) {
2088
2088
  a.ready().then(function() {
2089
2089
  J(a._dbInfo, P, function(_, R) {
2090
2090
  if (_)
2091
- return f(_);
2091
+ return s(_);
2092
2092
  try {
2093
2093
  var U = R.objectStore(a._dbInfo.storeName), B = U.openCursor(), F = 1;
2094
2094
  B.onsuccess = function() {
@@ -2101,20 +2101,20 @@ var nt = { exports: {} };
2101
2101
  } else
2102
2102
  m();
2103
2103
  }, B.onerror = function() {
2104
- f(B.error);
2104
+ s(B.error);
2105
2105
  };
2106
2106
  } catch (H) {
2107
- f(H);
2107
+ s(H);
2108
2108
  }
2109
2109
  });
2110
- }).catch(f);
2110
+ }).catch(s);
2111
2111
  });
2112
2112
  return r(d, c), d;
2113
2113
  }
2114
2114
  function Be(n, c, a) {
2115
2115
  var d = this;
2116
2116
  n = i(n);
2117
- var m = new h(function(f, _) {
2117
+ var m = new h(function(s, _) {
2118
2118
  var R;
2119
2119
  d.ready().then(function() {
2120
2120
  return R = d._dbInfo, E.call(c) === "[object Blob]" ? D(R.db).then(function(U) {
@@ -2129,7 +2129,7 @@ var nt = { exports: {} };
2129
2129
  U === null && (U = void 0);
2130
2130
  var Z = H.put(U, n);
2131
2131
  F.oncomplete = function() {
2132
- U === void 0 && (U = null), f(U);
2132
+ U === void 0 && (U = null), s(U);
2133
2133
  }, F.onabort = F.onerror = function() {
2134
2134
  var X = Z.error ? Z.error : Z.transaction.error;
2135
2135
  _(X);
@@ -2145,35 +2145,35 @@ var nt = { exports: {} };
2145
2145
  function _e(n, c) {
2146
2146
  var a = this;
2147
2147
  n = i(n);
2148
- var d = new h(function(m, f) {
2148
+ var d = new h(function(m, s) {
2149
2149
  a.ready().then(function() {
2150
2150
  J(a._dbInfo, A, function(_, R) {
2151
2151
  if (_)
2152
- return f(_);
2152
+ return s(_);
2153
2153
  try {
2154
2154
  var U = R.objectStore(a._dbInfo.storeName), B = U.delete(n);
2155
2155
  R.oncomplete = function() {
2156
2156
  m();
2157
2157
  }, R.onerror = function() {
2158
- f(B.error);
2158
+ s(B.error);
2159
2159
  }, R.onabort = function() {
2160
2160
  var F = B.error ? B.error : B.transaction.error;
2161
- f(F);
2161
+ s(F);
2162
2162
  };
2163
2163
  } catch (F) {
2164
- f(F);
2164
+ s(F);
2165
2165
  }
2166
2166
  });
2167
- }).catch(f);
2167
+ }).catch(s);
2168
2168
  });
2169
2169
  return r(d, c), d;
2170
2170
  }
2171
2171
  function Je(n) {
2172
2172
  var c = this, a = new h(function(d, m) {
2173
2173
  c.ready().then(function() {
2174
- J(c._dbInfo, A, function(f, _) {
2175
- if (f)
2176
- return m(f);
2174
+ J(c._dbInfo, A, function(s, _) {
2175
+ if (s)
2176
+ return m(s);
2177
2177
  try {
2178
2178
  var R = _.objectStore(c._dbInfo.storeName), U = R.clear();
2179
2179
  _.oncomplete = function() {
@@ -2193,9 +2193,9 @@ var nt = { exports: {} };
2193
2193
  function je(n) {
2194
2194
  var c = this, a = new h(function(d, m) {
2195
2195
  c.ready().then(function() {
2196
- J(c._dbInfo, P, function(f, _) {
2197
- if (f)
2198
- return m(f);
2196
+ J(c._dbInfo, P, function(s, _) {
2197
+ if (s)
2198
+ return m(s);
2199
2199
  try {
2200
2200
  var R = _.objectStore(c._dbInfo.storeName), U = R.count();
2201
2201
  U.onsuccess = function() {
@@ -2212,7 +2212,7 @@ var nt = { exports: {} };
2212
2212
  return r(a, n), a;
2213
2213
  }
2214
2214
  function Ke(n, c) {
2215
- var a = this, d = new h(function(m, f) {
2215
+ var a = this, d = new h(function(m, s) {
2216
2216
  if (n < 0) {
2217
2217
  m(null);
2218
2218
  return;
@@ -2220,7 +2220,7 @@ var nt = { exports: {} };
2220
2220
  a.ready().then(function() {
2221
2221
  J(a._dbInfo, P, function(_, R) {
2222
2222
  if (_)
2223
- return f(_);
2223
+ return s(_);
2224
2224
  try {
2225
2225
  var U = R.objectStore(a._dbInfo.storeName), B = !1, F = U.openKeyCursor();
2226
2226
  F.onsuccess = function() {
@@ -2231,22 +2231,22 @@ var nt = { exports: {} };
2231
2231
  }
2232
2232
  n === 0 || B ? m(H.key) : (B = !0, H.advance(n));
2233
2233
  }, F.onerror = function() {
2234
- f(F.error);
2234
+ s(F.error);
2235
2235
  };
2236
2236
  } catch (H) {
2237
- f(H);
2237
+ s(H);
2238
2238
  }
2239
2239
  });
2240
- }).catch(f);
2240
+ }).catch(s);
2241
2241
  });
2242
2242
  return r(d, c), d;
2243
2243
  }
2244
2244
  function Qe(n) {
2245
2245
  var c = this, a = new h(function(d, m) {
2246
2246
  c.ready().then(function() {
2247
- J(c._dbInfo, P, function(f, _) {
2248
- if (f)
2249
- return m(f);
2247
+ J(c._dbInfo, P, function(s, _) {
2248
+ if (s)
2249
+ return m(s);
2250
2250
  try {
2251
2251
  var R = _.objectStore(c._dbInfo.storeName), U = R.openKeyCursor(), B = [];
2252
2252
  U.onsuccess = function() {
@@ -2275,7 +2275,7 @@ var nt = { exports: {} };
2275
2275
  if (!n.name)
2276
2276
  m = h.reject("Invalid arguments");
2277
2277
  else {
2278
- var f = n.name === a.name && d._dbInfo.db, _ = f ? h.resolve(d._dbInfo.db) : te(n).then(function(R) {
2278
+ var s = n.name === a.name && d._dbInfo.db, _ = s ? h.resolve(d._dbInfo.db) : te(n).then(function(R) {
2279
2279
  var U = M[n.name], B = U.forages;
2280
2280
  U.db = R;
2281
2281
  for (var F = 0; F < B.length; F++)
@@ -2285,7 +2285,7 @@ var nt = { exports: {} };
2285
2285
  n.storeName ? m = _.then(function(R) {
2286
2286
  if (R.objectStoreNames.contains(n.storeName)) {
2287
2287
  var U = R.version + 1;
2288
- s(n);
2288
+ f(n);
2289
2289
  var B = M[n.name], F = B.forages;
2290
2290
  R.close();
2291
2291
  for (var H = 0; H < F.length; H++) {
@@ -2317,7 +2317,7 @@ var nt = { exports: {} };
2317
2317
  });
2318
2318
  }
2319
2319
  }) : m = _.then(function(R) {
2320
- s(n);
2320
+ f(n);
2321
2321
  var U = M[n.name], B = U.forages;
2322
2322
  R.close();
2323
2323
  for (var F = 0; F < B.length; F++) {
@@ -2367,13 +2367,13 @@ var nt = { exports: {} };
2367
2367
  function pe() {
2368
2368
  return typeof openDatabase == "function";
2369
2369
  }
2370
- var me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", er = "~~local_forage_type~", Ee = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", $e = Me.length, Pe = "arbf", k = "blob", le = "si08", K = "ui08", p = "uic8", we = "si16", Ae = "si32", Le = "ur16", be = "ui32", se = "fl32", Ie = "fl64", Tr = $e + Pe.length, Cr = Object.prototype.toString;
2371
- function Mr(n) {
2372
- var c = n.length * 0.75, a = n.length, d, m = 0, f, _, R, U;
2370
+ var me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", er = "~~local_forage_type~", Ee = /^~~local_forage_type~([^~]+)~/, Me = "__lfsc__:", $e = Me.length, Pe = "arbf", k = "blob", le = "si08", K = "ui08", p = "uic8", we = "si16", Ae = "si32", Le = "ur16", be = "ui32", se = "fl32", Ie = "fl64", Cr = $e + Pe.length, Mr = Object.prototype.toString;
2371
+ function Pr(n) {
2372
+ var c = n.length * 0.75, a = n.length, d, m = 0, s, _, R, U;
2373
2373
  n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
2374
2374
  var B = new ArrayBuffer(c), F = new Uint8Array(B);
2375
2375
  for (d = 0; d < a; d += 4)
2376
- f = me.indexOf(n[d]), _ = me.indexOf(n[d + 1]), R = me.indexOf(n[d + 2]), U = me.indexOf(n[d + 3]), F[m++] = f << 2 | _ >> 4, F[m++] = (_ & 15) << 4 | R >> 2, F[m++] = (R & 3) << 6 | U & 63;
2376
+ s = me.indexOf(n[d]), _ = me.indexOf(n[d + 1]), R = me.indexOf(n[d + 2]), U = me.indexOf(n[d + 3]), F[m++] = s << 2 | _ >> 4, F[m++] = (_ & 15) << 4 | R >> 2, F[m++] = (R & 3) << 6 | U & 63;
2377
2377
  return B;
2378
2378
  }
2379
2379
  function rr(n) {
@@ -2384,15 +2384,15 @@ var nt = { exports: {} };
2384
2384
  }
2385
2385
  function ut(n, c) {
2386
2386
  var a = "";
2387
- if (n && (a = Cr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Cr.call(n.buffer) === "[object ArrayBuffer]")) {
2387
+ if (n && (a = Mr.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && Mr.call(n.buffer) === "[object ArrayBuffer]")) {
2388
2388
  var d, m = Me;
2389
2389
  n instanceof ArrayBuffer ? (d = n, m += Pe) : (d = n.buffer, a === "[object Int8Array]" ? m += le : a === "[object Uint8Array]" ? m += K : a === "[object Uint8ClampedArray]" ? m += p : a === "[object Int16Array]" ? m += we : a === "[object Uint16Array]" ? m += Le : a === "[object Int32Array]" ? m += Ae : a === "[object Uint32Array]" ? m += be : a === "[object Float32Array]" ? m += se : a === "[object Float64Array]" ? m += Ie : c(new Error("Failed to get type for BinaryArray"))), c(m + rr(d));
2390
2390
  } else if (a === "[object Blob]") {
2391
- var f = new FileReader();
2392
- f.onload = function() {
2391
+ var s = new FileReader();
2392
+ s.onload = function() {
2393
2393
  var _ = er + n.type + "~" + rr(this.result);
2394
2394
  c(Me + k + _);
2395
- }, f.readAsArrayBuffer(n);
2395
+ }, s.readAsArrayBuffer(n);
2396
2396
  } else
2397
2397
  try {
2398
2398
  c(JSON.stringify(n));
@@ -2403,35 +2403,35 @@ var nt = { exports: {} };
2403
2403
  function it(n) {
2404
2404
  if (n.substring(0, $e) !== Me)
2405
2405
  return JSON.parse(n);
2406
- var c = n.substring(Tr), a = n.substring($e, Tr), d;
2406
+ var c = n.substring(Cr), a = n.substring($e, Cr), d;
2407
2407
  if (a === k && Ee.test(c)) {
2408
2408
  var m = c.match(Ee);
2409
2409
  d = m[1], c = c.substring(m[0].length);
2410
2410
  }
2411
- var f = Mr(c);
2411
+ var s = Pr(c);
2412
2412
  switch (a) {
2413
2413
  case Pe:
2414
- return f;
2414
+ return s;
2415
2415
  case k:
2416
- return $([f], { type: d });
2416
+ return $([s], { type: d });
2417
2417
  case le:
2418
- return new Int8Array(f);
2418
+ return new Int8Array(s);
2419
2419
  case K:
2420
- return new Uint8Array(f);
2420
+ return new Uint8Array(s);
2421
2421
  case p:
2422
- return new Uint8ClampedArray(f);
2422
+ return new Uint8ClampedArray(s);
2423
2423
  case we:
2424
- return new Int16Array(f);
2424
+ return new Int16Array(s);
2425
2425
  case Le:
2426
- return new Uint16Array(f);
2426
+ return new Uint16Array(s);
2427
2427
  case Ae:
2428
- return new Int32Array(f);
2428
+ return new Int32Array(s);
2429
2429
  case be:
2430
- return new Uint32Array(f);
2430
+ return new Uint32Array(s);
2431
2431
  case se:
2432
- return new Float32Array(f);
2432
+ return new Float32Array(s);
2433
2433
  case Ie:
2434
- return new Float64Array(f);
2434
+ return new Float64Array(s);
2435
2435
  default:
2436
2436
  throw new Error("Unkown type: " + a);
2437
2437
  }
@@ -2439,10 +2439,10 @@ var nt = { exports: {} };
2439
2439
  var tr = {
2440
2440
  serialize: ut,
2441
2441
  deserialize: it,
2442
- stringToBuffer: Mr,
2442
+ stringToBuffer: Pr,
2443
2443
  bufferToString: rr
2444
2444
  };
2445
- function Pr(n, c, a, d) {
2445
+ function Lr(n, c, a, d) {
2446
2446
  n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, d);
2447
2447
  }
2448
2448
  function ct(n) {
@@ -2452,15 +2452,15 @@ var nt = { exports: {} };
2452
2452
  if (n)
2453
2453
  for (var d in n)
2454
2454
  a[d] = typeof n[d] != "string" ? n[d].toString() : n[d];
2455
- var m = new h(function(f, _) {
2455
+ var m = new h(function(s, _) {
2456
2456
  try {
2457
2457
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
2458
2458
  } catch (R) {
2459
2459
  return _(R);
2460
2460
  }
2461
2461
  a.db.transaction(function(R) {
2462
- Pr(R, a, function() {
2463
- c._dbInfo = a, f();
2462
+ Lr(R, a, function() {
2463
+ c._dbInfo = a, s();
2464
2464
  }, function(U, B) {
2465
2465
  _(B);
2466
2466
  });
@@ -2468,19 +2468,19 @@ var nt = { exports: {} };
2468
2468
  });
2469
2469
  return a.serializer = tr, m;
2470
2470
  }
2471
- function De(n, c, a, d, m, f) {
2471
+ function De(n, c, a, d, m, s) {
2472
2472
  n.executeSql(a, d, m, function(_, R) {
2473
2473
  R.code === R.SYNTAX_ERR ? _.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(U, B) {
2474
- B.rows.length ? f(U, R) : Pr(U, c, function() {
2475
- U.executeSql(a, d, m, f);
2476
- }, f);
2477
- }, f) : f(_, R);
2478
- }, f);
2474
+ B.rows.length ? s(U, R) : Lr(U, c, function() {
2475
+ U.executeSql(a, d, m, s);
2476
+ }, s);
2477
+ }, s) : s(_, R);
2478
+ }, s);
2479
2479
  }
2480
2480
  function ft(n, c) {
2481
2481
  var a = this;
2482
2482
  n = i(n);
2483
- var d = new h(function(m, f) {
2483
+ var d = new h(function(m, s) {
2484
2484
  a.ready().then(function() {
2485
2485
  var _ = a._dbInfo;
2486
2486
  _.db.transaction(function(R) {
@@ -2488,15 +2488,15 @@ var nt = { exports: {} };
2488
2488
  var F = B.rows.length ? B.rows.item(0).value : null;
2489
2489
  F && (F = _.serializer.deserialize(F)), m(F);
2490
2490
  }, function(U, B) {
2491
- f(B);
2491
+ s(B);
2492
2492
  });
2493
2493
  });
2494
- }).catch(f);
2494
+ }).catch(s);
2495
2495
  });
2496
2496
  return r(d, c), d;
2497
2497
  }
2498
2498
  function st(n, c) {
2499
- var a = this, d = new h(function(m, f) {
2499
+ var a = this, d = new h(function(m, s) {
2500
2500
  a.ready().then(function() {
2501
2501
  var _ = a._dbInfo;
2502
2502
  _.db.transaction(function(R) {
@@ -2510,17 +2510,17 @@ var nt = { exports: {} };
2510
2510
  }
2511
2511
  m();
2512
2512
  }, function(U, B) {
2513
- f(B);
2513
+ s(B);
2514
2514
  });
2515
2515
  });
2516
- }).catch(f);
2516
+ }).catch(s);
2517
2517
  });
2518
2518
  return r(d, c), d;
2519
2519
  }
2520
- function Lr(n, c, a, d) {
2520
+ function Nr(n, c, a, d) {
2521
2521
  var m = this;
2522
2522
  n = i(n);
2523
- var f = new h(function(_, R) {
2523
+ var s = new h(function(_, R) {
2524
2524
  m.ready().then(function() {
2525
2525
  c === void 0 && (c = null);
2526
2526
  var U = c, B = m._dbInfo;
@@ -2534,7 +2534,7 @@ var nt = { exports: {} };
2534
2534
  }, function(Z) {
2535
2535
  if (Z.code === Z.QUOTA_ERR) {
2536
2536
  if (d > 0) {
2537
- _(Lr.apply(m, [n, U, a, d - 1]));
2537
+ _(Nr.apply(m, [n, U, a, d - 1]));
2538
2538
  return;
2539
2539
  }
2540
2540
  R(Z);
@@ -2543,34 +2543,34 @@ var nt = { exports: {} };
2543
2543
  });
2544
2544
  }).catch(R);
2545
2545
  });
2546
- return r(f, a), f;
2546
+ return r(s, a), s;
2547
2547
  }
2548
2548
  function ot(n, c, a) {
2549
- return Lr.apply(this, [n, c, a, 1]);
2549
+ return Nr.apply(this, [n, c, a, 1]);
2550
2550
  }
2551
2551
  function dt(n, c) {
2552
2552
  var a = this;
2553
2553
  n = i(n);
2554
- var d = new h(function(m, f) {
2554
+ var d = new h(function(m, s) {
2555
2555
  a.ready().then(function() {
2556
2556
  var _ = a._dbInfo;
2557
2557
  _.db.transaction(function(R) {
2558
2558
  De(R, _, "DELETE FROM " + _.storeName + " WHERE key = ?", [n], function() {
2559
2559
  m();
2560
2560
  }, function(U, B) {
2561
- f(B);
2561
+ s(B);
2562
2562
  });
2563
2563
  });
2564
- }).catch(f);
2564
+ }).catch(s);
2565
2565
  });
2566
2566
  return r(d, c), d;
2567
2567
  }
2568
2568
  function ht(n) {
2569
2569
  var c = this, a = new h(function(d, m) {
2570
2570
  c.ready().then(function() {
2571
- var f = c._dbInfo;
2572
- f.db.transaction(function(_) {
2573
- De(_, f, "DELETE FROM " + f.storeName, [], function() {
2571
+ var s = c._dbInfo;
2572
+ s.db.transaction(function(_) {
2573
+ De(_, s, "DELETE FROM " + s.storeName, [], function() {
2574
2574
  d();
2575
2575
  }, function(R, U) {
2576
2576
  m(U);
@@ -2583,9 +2583,9 @@ var nt = { exports: {} };
2583
2583
  function mt(n) {
2584
2584
  var c = this, a = new h(function(d, m) {
2585
2585
  c.ready().then(function() {
2586
- var f = c._dbInfo;
2587
- f.db.transaction(function(_) {
2588
- De(_, f, "SELECT COUNT(key) as c FROM " + f.storeName, [], function(R, U) {
2586
+ var s = c._dbInfo;
2587
+ s.db.transaction(function(_) {
2588
+ De(_, s, "SELECT COUNT(key) as c FROM " + s.storeName, [], function(R, U) {
2589
2589
  var B = U.rows.item(0).c;
2590
2590
  d(B);
2591
2591
  }, function(R, U) {
@@ -2597,7 +2597,7 @@ var nt = { exports: {} };
2597
2597
  return r(a, n), a;
2598
2598
  }
2599
2599
  function vt(n, c) {
2600
- var a = this, d = new h(function(m, f) {
2600
+ var a = this, d = new h(function(m, s) {
2601
2601
  a.ready().then(function() {
2602
2602
  var _ = a._dbInfo;
2603
2603
  _.db.transaction(function(R) {
@@ -2605,19 +2605,19 @@ var nt = { exports: {} };
2605
2605
  var F = B.rows.length ? B.rows.item(0).key : null;
2606
2606
  m(F);
2607
2607
  }, function(U, B) {
2608
- f(B);
2608
+ s(B);
2609
2609
  });
2610
2610
  });
2611
- }).catch(f);
2611
+ }).catch(s);
2612
2612
  });
2613
2613
  return r(d, c), d;
2614
2614
  }
2615
2615
  function gt(n) {
2616
2616
  var c = this, a = new h(function(d, m) {
2617
2617
  c.ready().then(function() {
2618
- var f = c._dbInfo;
2619
- f.db.transaction(function(_) {
2620
- De(_, f, "SELECT key FROM " + f.storeName, [], function(R, U) {
2618
+ var s = c._dbInfo;
2619
+ s.db.transaction(function(_) {
2620
+ De(_, s, "SELECT key FROM " + s.storeName, [], function(R, U) {
2621
2621
  for (var B = [], F = 0; F < U.rows.length; F++)
2622
2622
  B.push(U.rows.item(F).key);
2623
2623
  d(B);
@@ -2632,15 +2632,15 @@ var nt = { exports: {} };
2632
2632
  function yt(n) {
2633
2633
  return new h(function(c, a) {
2634
2634
  n.transaction(function(d) {
2635
- d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(m, f) {
2636
- for (var _ = [], R = 0; R < f.rows.length; R++)
2637
- _.push(f.rows.item(R).name);
2635
+ d.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(m, s) {
2636
+ for (var _ = [], R = 0; R < s.rows.length; R++)
2637
+ _.push(s.rows.item(R).name);
2638
2638
  c({
2639
2639
  db: n,
2640
2640
  storeNames: _
2641
2641
  });
2642
- }, function(m, f) {
2643
- a(f);
2642
+ }, function(m, s) {
2643
+ a(s);
2644
2644
  });
2645
2645
  }, function(d) {
2646
2646
  a(d);
@@ -2652,15 +2652,15 @@ var nt = { exports: {} };
2652
2652
  var a = this.config();
2653
2653
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
2654
2654
  var d = this, m;
2655
- return n.name ? m = new h(function(f) {
2655
+ return n.name ? m = new h(function(s) {
2656
2656
  var _;
2657
- n.name === a.name ? _ = d._dbInfo.db : _ = openDatabase(n.name, "", "", 0), n.storeName ? f({
2657
+ n.name === a.name ? _ = d._dbInfo.db : _ = openDatabase(n.name, "", "", 0), n.storeName ? s({
2658
2658
  db: _,
2659
2659
  storeNames: [n.storeName]
2660
- }) : f(yt(_));
2661
- }).then(function(f) {
2660
+ }) : s(yt(_));
2661
+ }).then(function(s) {
2662
2662
  return new h(function(_, R) {
2663
- f.db.transaction(function(U) {
2663
+ s.db.transaction(function(U) {
2664
2664
  function B(X) {
2665
2665
  return new h(function(O, ue) {
2666
2666
  U.executeSql("DROP TABLE IF EXISTS " + X, [], function() {
@@ -2670,8 +2670,8 @@ var nt = { exports: {} };
2670
2670
  });
2671
2671
  });
2672
2672
  }
2673
- for (var F = [], H = 0, Z = f.storeNames.length; H < Z; H++)
2674
- F.push(B(f.storeNames[H]));
2673
+ for (var F = [], H = 0, Z = s.storeNames.length; H < Z; H++)
2674
+ F.push(B(s.storeNames[H]));
2675
2675
  h.all(F).then(function() {
2676
2676
  _();
2677
2677
  }).catch(function(X) {
@@ -2705,7 +2705,7 @@ var nt = { exports: {} };
2705
2705
  return !1;
2706
2706
  }
2707
2707
  }
2708
- function Nr(n, c) {
2708
+ function Rr(n, c) {
2709
2709
  var a = n.name + "/";
2710
2710
  return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
2711
2711
  }
@@ -2725,13 +2725,13 @@ var nt = { exports: {} };
2725
2725
  if (n)
2726
2726
  for (var d in n)
2727
2727
  a[d] = n[d];
2728
- return a.keyPrefix = Nr(n, c._defaultConfig), Et() ? (c._dbInfo = a, a.serializer = tr, h.resolve()) : h.reject();
2728
+ return a.keyPrefix = Rr(n, c._defaultConfig), Et() ? (c._dbInfo = a, a.serializer = tr, h.resolve()) : h.reject();
2729
2729
  }
2730
2730
  function Dt(n) {
2731
2731
  var c = this, a = c.ready().then(function() {
2732
2732
  for (var d = c._dbInfo.keyPrefix, m = localStorage.length - 1; m >= 0; m--) {
2733
- var f = localStorage.key(m);
2734
- f.indexOf(d) === 0 && localStorage.removeItem(f);
2733
+ var s = localStorage.key(m);
2734
+ s.indexOf(d) === 0 && localStorage.removeItem(s);
2735
2735
  }
2736
2736
  });
2737
2737
  return r(a, n), a;
@@ -2740,16 +2740,16 @@ var nt = { exports: {} };
2740
2740
  var a = this;
2741
2741
  n = i(n);
2742
2742
  var d = a.ready().then(function() {
2743
- var m = a._dbInfo, f = localStorage.getItem(m.keyPrefix + n);
2744
- return f && (f = m.serializer.deserialize(f)), f;
2743
+ var m = a._dbInfo, s = localStorage.getItem(m.keyPrefix + n);
2744
+ return s && (s = m.serializer.deserialize(s)), s;
2745
2745
  });
2746
2746
  return r(d, c), d;
2747
2747
  }
2748
2748
  function _t(n, c) {
2749
2749
  var a = this, d = a.ready().then(function() {
2750
- for (var m = a._dbInfo, f = m.keyPrefix, _ = f.length, R = localStorage.length, U = 1, B = 0; B < R; B++) {
2750
+ for (var m = a._dbInfo, s = m.keyPrefix, _ = s.length, R = localStorage.length, U = 1, B = 0; B < R; B++) {
2751
2751
  var F = localStorage.key(B);
2752
- if (F.indexOf(f) === 0) {
2752
+ if (F.indexOf(s) === 0) {
2753
2753
  var H = localStorage.getItem(F);
2754
2754
  if (H && (H = m.serializer.deserialize(H)), H = n(H, F.substring(_), U++), H !== void 0)
2755
2755
  return H;
@@ -2760,23 +2760,23 @@ var nt = { exports: {} };
2760
2760
  }
2761
2761
  function Tt(n, c) {
2762
2762
  var a = this, d = a.ready().then(function() {
2763
- var m = a._dbInfo, f;
2763
+ var m = a._dbInfo, s;
2764
2764
  try {
2765
- f = localStorage.key(n);
2765
+ s = localStorage.key(n);
2766
2766
  } catch {
2767
- f = null;
2767
+ s = null;
2768
2768
  }
2769
- return f && (f = f.substring(m.keyPrefix.length)), f;
2769
+ return s && (s = s.substring(m.keyPrefix.length)), s;
2770
2770
  });
2771
2771
  return r(d, c), d;
2772
2772
  }
2773
2773
  function Ct(n) {
2774
2774
  var c = this, a = c.ready().then(function() {
2775
- for (var d = c._dbInfo, m = localStorage.length, f = [], _ = 0; _ < m; _++) {
2775
+ for (var d = c._dbInfo, m = localStorage.length, s = [], _ = 0; _ < m; _++) {
2776
2776
  var R = localStorage.key(_);
2777
- R.indexOf(d.keyPrefix) === 0 && f.push(R.substring(d.keyPrefix.length));
2777
+ R.indexOf(d.keyPrefix) === 0 && s.push(R.substring(d.keyPrefix.length));
2778
2778
  }
2779
- return f;
2779
+ return s;
2780
2780
  });
2781
2781
  return r(a, n), a;
2782
2782
  }
@@ -2800,7 +2800,7 @@ var nt = { exports: {} };
2800
2800
  n = i(n);
2801
2801
  var m = d.ready().then(function() {
2802
2802
  c === void 0 && (c = null);
2803
- var f = c;
2803
+ var s = c;
2804
2804
  return new h(function(_, R) {
2805
2805
  var U = d._dbInfo;
2806
2806
  U.serializer.serialize(c, function(B, F) {
@@ -2808,7 +2808,7 @@ var nt = { exports: {} };
2808
2808
  R(F);
2809
2809
  else
2810
2810
  try {
2811
- localStorage.setItem(U.keyPrefix + n, B), _(f);
2811
+ localStorage.setItem(U.keyPrefix + n, B), _(s);
2812
2812
  } catch (H) {
2813
2813
  (H.name === "QuotaExceededError" || H.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(H), R(H);
2814
2814
  }
@@ -2823,12 +2823,12 @@ var nt = { exports: {} };
2823
2823
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
2824
2824
  }
2825
2825
  var d = this, m;
2826
- return n.name ? m = new h(function(f) {
2827
- n.storeName ? f(Nr(n, d._defaultConfig)) : f(n.name + "/");
2828
- }).then(function(f) {
2826
+ return n.name ? m = new h(function(s) {
2827
+ n.storeName ? s(Rr(n, d._defaultConfig)) : s(n.name + "/");
2828
+ }).then(function(s) {
2829
2829
  for (var _ = localStorage.length - 1; _ >= 0; _--) {
2830
2830
  var R = localStorage.key(_);
2831
- R.indexOf(f) === 0 && localStorage.removeItem(R);
2831
+ R.indexOf(s) === 0 && localStorage.removeItem(R);
2832
2832
  }
2833
2833
  }) : m = h.reject("Invalid arguments"), r(m, c), m;
2834
2834
  }
@@ -2854,9 +2854,9 @@ var nt = { exports: {} };
2854
2854
  m++;
2855
2855
  }
2856
2856
  return !1;
2857
- }, Rr = Array.isArray || function(n) {
2857
+ }, Ur = Array.isArray || function(n) {
2858
2858
  return Object.prototype.toString.call(n) === "[object Array]";
2859
- }, Fe = {}, Ur = {}, Ne = {
2859
+ }, Fe = {}, Br = {}, Ne = {
2860
2860
  INDEXEDDB: Oe,
2861
2861
  WEBSQL: bt,
2862
2862
  LOCALSTORAGE: Rt
@@ -2883,7 +2883,7 @@ var nt = { exports: {} };
2883
2883
  var c = arguments[n];
2884
2884
  if (c)
2885
2885
  for (var a in c)
2886
- c.hasOwnProperty(a) && (Rr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
2886
+ c.hasOwnProperty(a) && (Ur(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
2887
2887
  }
2888
2888
  return arguments[0];
2889
2889
  }
@@ -2911,7 +2911,7 @@ var nt = { exports: {} };
2911
2911
  } else
2912
2912
  return typeof a == "string" ? this._config[a] : this._config;
2913
2913
  }, n.prototype.defineDriver = function(a, d, m) {
2914
- var f = new h(function(_, R) {
2914
+ var s = new h(function(_, R) {
2915
2915
  try {
2916
2916
  var U = a._driver, B = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
2917
2917
  if (!a._driver) {
@@ -2928,8 +2928,8 @@ var nt = { exports: {} };
2928
2928
  var ue = function() {
2929
2929
  for (var ke = function(Ht) {
2930
2930
  return function() {
2931
- var Vt = new Error("Method " + Ht + " is not implemented by the current driver"), Br = h.reject(Vt);
2932
- return r(Br, arguments[arguments.length - 1]), Br;
2931
+ var Vt = new Error("Method " + Ht + " is not implemented by the current driver"), $r = h.reject(Vt);
2932
+ return r($r, arguments[arguments.length - 1]), $r;
2933
2933
  };
2934
2934
  }, lr = 0, qt = qe.length; lr < qt; lr++) {
2935
2935
  var ur = qe[lr];
@@ -2938,19 +2938,19 @@ var nt = { exports: {} };
2938
2938
  };
2939
2939
  ue();
2940
2940
  var ae = function(ke) {
2941
- Fe[U] && console.info("Redefining LocalForage driver: " + U), Fe[U] = a, Ur[U] = ke, _();
2941
+ Fe[U] && console.info("Redefining LocalForage driver: " + U), Fe[U] = a, Br[U] = ke, _();
2942
2942
  };
2943
2943
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(ae, R) : ae(!!a._support) : ae(!0);
2944
2944
  } catch (ve) {
2945
2945
  R(ve);
2946
2946
  }
2947
2947
  });
2948
- return l(f, d, m), f;
2948
+ return l(s, d, m), s;
2949
2949
  }, n.prototype.driver = function() {
2950
2950
  return this._driver || null;
2951
2951
  }, n.prototype.getDriver = function(a, d, m) {
2952
- var f = Fe[a] ? h.resolve(Fe[a]) : h.reject(new Error("Driver not found."));
2953
- return l(f, d, m), f;
2952
+ var s = Fe[a] ? h.resolve(Fe[a]) : h.reject(new Error("Driver not found."));
2953
+ return l(s, d, m), s;
2954
2954
  }, n.prototype.getSerializer = function(a) {
2955
2955
  var d = h.resolve(tr);
2956
2956
  return l(d, a), d;
@@ -2960,14 +2960,14 @@ var nt = { exports: {} };
2960
2960
  });
2961
2961
  return l(m, a, a), m;
2962
2962
  }, n.prototype.setDriver = function(a, d, m) {
2963
- var f = this;
2964
- Rr(a) || (a = [a]);
2963
+ var s = this;
2964
+ Ur(a) || (a = [a]);
2965
2965
  var _ = this._getSupportedDrivers(a);
2966
2966
  function R() {
2967
- f._config.driver = f.driver();
2967
+ s._config.driver = s.driver();
2968
2968
  }
2969
2969
  function U(H) {
2970
- return f._extend(H), R(), f._ready = f._initStorage(f._config), f._ready;
2970
+ return s._extend(H), R(), s._ready = s._initStorage(s._config), s._ready;
2971
2971
  }
2972
2972
  function B(H) {
2973
2973
  return function() {
@@ -2975,11 +2975,11 @@ var nt = { exports: {} };
2975
2975
  function X() {
2976
2976
  for (; Z < H.length; ) {
2977
2977
  var O = H[Z];
2978
- return Z++, f._dbInfo = null, f._ready = null, f.getDriver(O).then(U).catch(X);
2978
+ return Z++, s._dbInfo = null, s._ready = null, s.getDriver(O).then(U).catch(X);
2979
2979
  }
2980
2980
  R();
2981
2981
  var ue = new Error("No available storage method found.");
2982
- return f._driverSet = h.reject(ue), f._driverSet;
2982
+ return s._driverSet = h.reject(ue), s._driverSet;
2983
2983
  }
2984
2984
  return X();
2985
2985
  };
@@ -2989,20 +2989,20 @@ var nt = { exports: {} };
2989
2989
  }) : h.resolve();
2990
2990
  return this._driverSet = F.then(function() {
2991
2991
  var H = _[0];
2992
- return f._dbInfo = null, f._ready = null, f.getDriver(H).then(function(Z) {
2993
- f._driver = Z._driver, R(), f._wrapLibraryMethodsWithReady(), f._initDriver = B(_);
2992
+ return s._dbInfo = null, s._ready = null, s.getDriver(H).then(function(Z) {
2993
+ s._driver = Z._driver, R(), s._wrapLibraryMethodsWithReady(), s._initDriver = B(_);
2994
2994
  });
2995
2995
  }).catch(function() {
2996
2996
  R();
2997
2997
  var H = new Error("No available storage method found.");
2998
- return f._driverSet = h.reject(H), f._driverSet;
2998
+ return s._driverSet = h.reject(H), s._driverSet;
2999
2999
  }), l(this._driverSet, d, m), this._driverSet;
3000
3000
  }, n.prototype.supports = function(a) {
3001
- return !!Ur[a];
3001
+ return !!Br[a];
3002
3002
  }, n.prototype._extend = function(a) {
3003
3003
  ar(this, a);
3004
3004
  }, n.prototype._getSupportedDrivers = function(a) {
3005
- for (var d = [], m = 0, f = a.length; m < f; m++) {
3005
+ for (var d = [], m = 0, s = a.length; m < s; m++) {
3006
3006
  var _ = a[m];
3007
3007
  this.supports(_) && d.push(_);
3008
3008
  }
@@ -3074,11 +3074,11 @@ function Cn(e) {
3074
3074
  if (e.storeMode == "whole-last-updated") {
3075
3075
  if (e.api == null)
3076
3076
  throw new Error("Must supply an api object to use store");
3077
- return Gr({ ...e, storeName: e.storeName ?? "" });
3077
+ return Wr({ ...e, storeName: e.storeName ?? "" });
3078
3078
  } else if (e.storeMode == "partial-last-updated") {
3079
3079
  if (e.api == null)
3080
3080
  throw new Error("Must supply an api object to use store");
3081
- return Gr({ ...e, storeName: e.storeName ?? "" });
3081
+ return Wr({ ...e, storeName: e.storeName ?? "" });
3082
3082
  } else
3083
3083
  return Pn({ ...e, storeName: e.storeName ?? "" });
3084
3084
  }
@@ -3260,7 +3260,7 @@ function Pn(e) {
3260
3260
  };
3261
3261
  });
3262
3262
  }
3263
- function Gr(e) {
3263
+ function Wr(e) {
3264
3264
  return Xr(e.storeName, () => {
3265
3265
  const t = z(), u = z(0), S = oe.utc().toSeconds() / 3600, o = z(), g = z(), T = z({}), C = e.storageMode == "local-cache";
3266
3266
  function L() {
@@ -3289,8 +3289,8 @@ function Gr(e) {
3289
3289
  }));
3290
3290
  b == null ? P(b) : (t.value ?? (t.value = []), b.data.forEach((D) => {
3291
3291
  var I, j;
3292
- const s = t.value.findIndex((Q) => Q.id == D.id);
3293
- s >= 0 ? (I = t.value) == null || I.splice(s, 1, D) : (j = t.value) == null || j.push(D);
3292
+ const f = t.value.findIndex((Q) => Q.id == D.id);
3293
+ f >= 0 ? (I = t.value) == null || I.splice(f, 1, D) : (j = t.value) == null || j.push(D);
3294
3294
  }), u.value = t.value.length, g.value = {
3295
3295
  lastUpdate: oe.utc().toString(),
3296
3296
  storedOn: S.toString()
@@ -3341,7 +3341,7 @@ function Gr(e) {
3341
3341
  throw new Error("no id provided");
3342
3342
  let P = v.refresh;
3343
3343
  if (!P && t.value != null) {
3344
- const D = t.value.find((s) => s.id == E);
3344
+ const D = t.value.find((f) => f.id == E);
3345
3345
  if (D != null)
3346
3346
  return { data: D };
3347
3347
  }
@@ -3349,9 +3349,9 @@ function Gr(e) {
3349
3349
  const D = await he().getItem(M);
3350
3350
  if (D != null && parseFloat(D.meta.storedOn) > S - 12) {
3351
3351
  t.value = D.data, u.value = D.data.length, o.value = D.filters ?? [], g.value = D.meta;
3352
- let s = t.value.find((I) => I.id == v.id);
3353
- if (s != null)
3354
- return { data: s };
3352
+ let f = t.value.find((I) => I.id == v.id);
3353
+ if (f != null)
3354
+ return { data: f };
3355
3355
  }
3356
3356
  }
3357
3357
  if (e.api == null)
@@ -3362,8 +3362,8 @@ function Gr(e) {
3362
3362
  try {
3363
3363
  return await $(v), { data: (b = t.value) == null ? void 0 : b.find((D) => D.id == v.id) };
3364
3364
  } catch (D) {
3365
- let s = D;
3366
- throw new Error(s.message ?? "Problem");
3365
+ let f = D;
3366
+ throw new Error(f.message ?? "Problem");
3367
3367
  }
3368
3368
  }
3369
3369
  async function l(v) {
@@ -3453,7 +3453,7 @@ function Ln(e, t) {
3453
3453
  u.value = g(C) != o;
3454
3454
  }, { deep: !0 });
3455
3455
  function g(C) {
3456
- const L = xr(C);
3456
+ const L = _r(C);
3457
3457
  return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((x) => {
3458
3458
  delete L[x];
3459
3459
  }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
@@ -3474,7 +3474,7 @@ function Aa(e, t) {
3474
3474
  const {
3475
3475
  // useBladeSrc = true,
3476
3476
  useRouteSrc: u = !0
3477
- } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", o = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", T = Dr(), C = Qr(), L = V(e.proxyQueryKey), x = ee(() => {
3477
+ } = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", o = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", T = Dr(), C = xr(), L = V(e.proxyQueryKey), x = ee(() => {
3478
3478
  var G;
3479
3479
  return V(e.proxyID) ?? (L != null ? (G = C == null ? void 0 : C.query) == null ? void 0 : G[L] : void 0);
3480
3480
  }), $ = z(void 0), { actionErrorMsg: h, actionLoadingMsg: r, deleteItem: l, getItem: i, getAllItems: y, restoreItem: w, saveItem: v } = pr({
@@ -3490,7 +3490,7 @@ function Aa(e, t) {
3490
3490
  return !1;
3491
3491
  const G = V($);
3492
3492
  return e.onCanDelete != null ? e.onCanDelete(G) : (G == null ? void 0 : G.isInactive) !== !0;
3493
- }), s = ee(() => {
3493
+ }), f = ee(() => {
3494
3494
  if (N.value == "new")
3495
3495
  return !1;
3496
3496
  const G = V($);
@@ -3598,7 +3598,7 @@ function Aa(e, t) {
3598
3598
  b.value = G != null;
3599
3599
  }), xe(() => e.refreshToggle, () => {
3600
3600
  W({ deepRefresh: !0 });
3601
- }), jr(async () => {
3601
+ }), Kr(async () => {
3602
3602
  var G;
3603
3603
  e.eager == !0 && await W({ deepRefresh: ((G = C == null ? void 0 : C.params) == null ? void 0 : G.refresh) == "true" });
3604
3604
  }), {
@@ -3608,7 +3608,7 @@ function Aa(e, t) {
3608
3608
  isChanged: Q,
3609
3609
  isDeletable: D,
3610
3610
  isEditing: ee(() => N.value == "new" || N.value == "edit"),
3611
- isEditable: s,
3611
+ isEditable: f,
3612
3612
  isLoading: P,
3613
3613
  isRestorable: I,
3614
3614
  isSaveable: j,
@@ -3623,19 +3623,19 @@ function Aa(e, t) {
3623
3623
  }
3624
3624
  function Ea(e, t, u) {
3625
3625
  var Pe;
3626
- const S = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", o = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", T = An(), C = Dr(), L = Qr(), x = z(1), $ = V(e.customFilters) ?? [], h = z([]);
3626
+ const S = e.storeMode ?? (u == null ? void 0 : u.storeMode) ?? "session", o = e.storageMode ?? (u == null ? void 0 : u.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", T = An(), C = Dr(), L = xr(), x = z(1), $ = V(e.customFilters) ?? [], h = z([]);
3627
3627
  let r = z(new Array());
3628
3628
  const l = ee(() => jt([
3629
3629
  ...$.filter((k) => k.name != null).map((k) => k.name),
3630
3630
  ...e.defaultFilters ?? [],
3631
3631
  ...h.value
3632
- ]).value), i = z((e.defaultFilters ?? []).map((k) => l.value.indexOf(k))), y = ee(() => $r(r, i).value.length > 0 || $r(i, r).value.length > 0), w = V(e.proxyQueryKey), v = ee(() => {
3632
+ ]).value), i = z((e.defaultFilters ?? []).map((k) => l.value.indexOf(k))), y = ee(() => Fr(r, i).value.length > 0 || Fr(i, r).value.length > 0), w = V(e.proxyQueryKey), v = ee(() => {
3633
3633
  var k;
3634
3634
  return V(e.proxyID) ?? (w != null ? (k = L == null ? void 0 : L.query) == null ? void 0 : k[w] : void 0);
3635
3635
  }), M = V(e.searchQueryKey), E = z(M != null ? (Pe = L == null ? void 0 : L.query) == null ? void 0 : Pe[M] : void 0), P = z(V(e.startShowingInactive) ?? !1), A = z(V(e.sortOrder)), N = ee(() => [
3636
3636
  ...e.searchProps ?? [],
3637
3637
  ...(e.headers ?? []).filter((k) => k.searchable != null && k.value != null).map((k) => k.value ?? "")
3638
- ]), b = z([]), D = Te([]), s = z([]);
3638
+ ]), b = z([]), D = Te([]), f = z([]);
3639
3639
  let I;
3640
3640
  const { actionErrorMsg: j, actionLoadingMsg: Q, deleteItem: te, doAction: ie, getItem: ye, getAllItems: W, restoreItem: Y } = pr({
3641
3641
  nav: g,
@@ -3648,7 +3648,7 @@ function Ea(e, t, u) {
3648
3648
  }), q = ee(() => e.errorMsg ?? j.value), ne = ee(() => e.loadingMsg ?? Q.value), G = ee(() => ne.value != null), J = Te(!1), re = Te(e.showSearch ?? !0), ce = z(0), fe = ee(() => {
3649
3649
  const k = e.params != null ? { ...e.params } : {};
3650
3650
  return A.value != null && (k.sortOrder = A.value), e.sortBy != null && (k.sortBy = e.sortBy), k;
3651
- }), Ue = ee(() => (k) => e.onCanDelete != null ? e.onCanDelete(k) : !(k != null && k.isInactive === !0)), Be = ee(() => (k) => P.value ? e.onCanRestore != null ? e.onCanRestore(k) : (k == null ? void 0 : k.isInactive) === !0 : !1), _e = ee(() => s.value.filter((k) => !k.hide)), Je = ee(() => {
3651
+ }), Ue = ee(() => (k) => e.onCanDelete != null ? e.onCanDelete(k) : !(k != null && k.isInactive === !0)), Be = ee(() => (k) => P.value ? e.onCanRestore != null ? e.onCanRestore(k) : (k == null ? void 0 : k.isInactive) === !0 : !1), _e = ee(() => f.value.filter((k) => !k.hide)), Je = ee(() => {
3652
3652
  let k = new Array();
3653
3653
  return _e.value.filter((K) => K.sublevel != null).forEach((K) => {
3654
3654
  let p = k.find((we) => we.position == K.sublevel);
@@ -3731,7 +3731,7 @@ function Ea(e, t, u) {
3731
3731
  D.value = k;
3732
3732
  }
3733
3733
  function er() {
3734
- e.headers != null && (s.value = [...e.headers], e.hideActions || s.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3734
+ e.headers != null && (f.value = [...e.headers], e.hideActions || f.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3735
3735
  }
3736
3736
  async function Ee(k) {
3737
3737
  if (J.value = !1, (k == null ? void 0 : k.resetSearch) === !0 && (re.value = e.showSearch ?? !1, E.value = void 0), e.items != null) {
@@ -3794,9 +3794,9 @@ function Ea(e, t, u) {
3794
3794
  J.value = k != null || le != null;
3795
3795
  }), xe(() => e.refreshToggle, () => {
3796
3796
  Ee({ deepRefresh: !0 });
3797
- }), Kr([b, () => e.items], () => {
3797
+ }), Qr([b, () => e.items], () => {
3798
3798
  me();
3799
- }), jr(async () => {
3799
+ }), Kr(async () => {
3800
3800
  var k;
3801
3801
  e.eager == !0 && await Ee({ deepRefresh: ((k = L == null ? void 0 : L.params) == null ? void 0 : k.refresh) == "true" });
3802
3802
  }), {
@@ -3810,7 +3810,7 @@ function Ea(e, t, u) {
3810
3810
  filteredItems: D,
3811
3811
  filters: l,
3812
3812
  filtersChanged: y,
3813
- headerOptions: s,
3813
+ headerOptions: f,
3814
3814
  isDeletable: Ue,
3815
3815
  isLoading: G,
3816
3816
  isRestorable: Be,
@@ -3832,7 +3832,7 @@ function Ea(e, t, u) {
3832
3832
  totalPages: ce
3833
3833
  };
3834
3834
  }
3835
- const Wr = z(!0), qr = z(!1), Hr = z(), sr = z(!1);
3835
+ const qr = z(!0), Hr = z(!1), Vr = z(), sr = z(!1);
3836
3836
  let or = null, Ar;
3837
3837
  function Ia() {
3838
3838
  return Ar;
@@ -3894,14 +3894,14 @@ function Nn(e) {
3894
3894
  if (r == null)
3895
3895
  return;
3896
3896
  const l = typeof r == "string" ? C(r) : r;
3897
- Hr.value = l == null ? void 0 : l.background, qr.value = (l == null ? void 0 : l.hideNavigation) !== !0, Wr.value = (l == null ? void 0 : l.hideAppBar) !== !0, or != null && or(), sr.value = (l == null ? void 0 : l.hesitate) === !0, sr.value && (or = window.addEventListener("beforeunload", (i) => {
3897
+ Vr.value = l == null ? void 0 : l.background, Hr.value = (l == null ? void 0 : l.hideNavigation) !== !0, qr.value = (l == null ? void 0 : l.hideAppBar) !== !0, or != null && or(), sr.value = (l == null ? void 0 : l.hesitate) === !0, sr.value && (or = window.addEventListener("beforeunload", (i) => {
3898
3898
  i.preventDefault();
3899
3899
  }));
3900
3900
  }
3901
3901
  return Ar = {
3902
- showAppBar: Wr,
3903
- showAppNavigation: qr,
3904
- backgroundName: Hr,
3902
+ showAppBar: qr,
3903
+ showAppNavigation: Hr,
3904
+ backgroundName: Vr,
3905
3905
  hesitate: sr,
3906
3906
  navigationItems: u,
3907
3907
  findArchiveName: S,
@@ -3930,8 +3930,8 @@ function Rn(e) {
3930
3930
  usePresets: t
3931
3931
  }, Er;
3932
3932
  }
3933
- let Vr, Yr, zr, Zr = !1;
3934
- const dr = z(!1), hr = z(!1), Jr = z(), ze = z();
3933
+ let Yr, zr, Zr, Jr = !1;
3934
+ const dr = z(!1), hr = z(!1), jr = z(), ze = z();
3935
3935
  let Ir;
3936
3936
  function xa() {
3937
3937
  return Ir;
@@ -3941,23 +3941,23 @@ function Un() {
3941
3941
  ze.value = T.detail, hr.value = !0;
3942
3942
  }
3943
3943
  function t() {
3944
- Zr || (Zr = !0, window.location.reload());
3944
+ Jr || (Jr = !0, window.location.reload());
3945
3945
  }
3946
3946
  function u() {
3947
3947
  var T;
3948
- (T = Jr.value) == null || T.prompt(), dr.value = !1;
3948
+ (T = jr.value) == null || T.prompt(), dr.value = !1;
3949
3949
  }
3950
3950
  function S() {
3951
3951
  return !!window.matchMedia("(display-mode: standalone)").matches;
3952
3952
  }
3953
3953
  function o(T) {
3954
- T.preventDefault(), dr.value = !0, Jr.value = T;
3954
+ T.preventDefault(), dr.value = !0, jr.value = T;
3955
3955
  }
3956
3956
  function g() {
3957
3957
  hr.value = !1, !(!ze.value || !ze.value.waiting) && ze.value.waiting.postMessage({ type: "SKIP_WAITING" });
3958
3958
  }
3959
3959
  return Qt(() => {
3960
- Vr == null && (Vr = document.addEventListener("swUpdated", e, { once: !0 })), Yr == null && (Yr = navigator.serviceWorker.addEventListener("controllerchange", t)), zr == null && (zr = window.addEventListener("beforeinstallprompt", o));
3960
+ Yr == null && (Yr = document.addEventListener("swUpdated", e, { once: !0 })), zr == null && (zr = navigator.serviceWorker.addEventListener("controllerchange", t)), Zr == null && (Zr = window.addEventListener("beforeinstallprompt", o));
3961
3961
  }), Ir = {
3962
3962
  canInstallApp: dr,
3963
3963
  canUpdateApp: hr,
@@ -4002,7 +4002,7 @@ export {
4002
4002
  jn as checkImage,
4003
4003
  un as containsSearch,
4004
4004
  pn as containsWeekday,
4005
- xr as copyDeep,
4005
+ _r as copyDeep,
4006
4006
  ln as copyItemByAlphabet,
4007
4007
  hn as createApi,
4008
4008
  gn as createAuth,
@@ -4017,7 +4017,7 @@ export {
4017
4017
  Pn as createSessionStoreDefinition,
4018
4018
  Tn as createStoreBuilder,
4019
4019
  vn as createUrl,
4020
- Gr as createWholeLastUpdateStoreDefinition,
4020
+ Wr as createWholeLastUpdateStoreDefinition,
4021
4021
  an as csvContains,
4022
4022
  ma as csvDefaults,
4023
4023
  rt as deepSelect,
@@ -4050,7 +4050,7 @@ export {
4050
4050
  dn as useApi,
4051
4051
  qn as useApiActions,
4052
4052
  sa as useAuth,
4053
- Fr as useAuthUrl,
4053
+ kr as useAuthUrl,
4054
4054
  oa as useBladeUI,
4055
4055
  An as useCSV,
4056
4056
  da as useCosmetics,