buzzcasting-storage 2.9.6 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Ei = Object.defineProperty;
2
- var Oi = (w, o, h) => o in w ? Ei(w, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : w[o] = h;
3
- var P = (w, o, h) => (Oi(w, typeof o != "symbol" ? o + "" : o, h), h);
4
- const xi = "2.9.5";
2
+ var Oi = (v, o, d) => o in v ? Ei(v, o, { enumerable: !0, configurable: !0, writable: !0, value: d }) : v[o] = d;
3
+ var P = (v, o, d) => (Oi(v, typeof o != "symbol" ? o + "" : o, d), d);
4
+ const xi = "2.9.6";
5
5
  class ki {
6
6
  constructor(o) {
7
7
  P(this, "options");
@@ -19,7 +19,7 @@ class ki {
19
19
  this.options = o, this.url = `https://${o.app}.buzzcasting.net`;
20
20
  }
21
21
  async get(o) {
22
- const { version: h } = this.options, m = this.headers(), I = Object.assign({}, o);
22
+ const { version: d } = this.options, m = this.headers(), I = Object.assign({}, o);
23
23
  delete I.slide, delete I.type, delete I.hash;
24
24
  const B = Object.keys(I).length > 0 ? `?${new URLSearchParams(I).toString()}` : "";
25
25
  return console.debug(
@@ -30,7 +30,7 @@ class ki {
30
30
  o.slide,
31
31
  o.widget
32
32
  ), await fetch(
33
- [this.url, "api", h, o.type].join("/") + B,
33
+ [this.url, "api", d, o.type].join("/") + B,
34
34
  { ...m, method: "get" }
35
35
  ).then(async (j) => {
36
36
  if (!j.ok)
@@ -39,17 +39,17 @@ class ki {
39
39
  }).then((j) => j.json()).then((j) => (j.query = o, j)).catch((j) => ({ success: !1, message: `${j}`, data: null }));
40
40
  }
41
41
  async hideMessage(o) {
42
- const { app: h, version: m } = this.options, I = this.headers(), B = "?action=visible";
42
+ const { app: d, version: m } = this.options, I = this.headers(), B = "?action=visible";
43
43
  return console.info(
44
44
  "%capi%c %cpost",
45
45
  x.API,
46
46
  x.NONE,
47
47
  x.GET_DATA,
48
48
  ue.HIDE_MESSAGE,
49
- [h, "api", m, o.type, o.id].join("/") + B,
49
+ [d, "api", m, o.type, o.id].join("/") + B,
50
50
  { ...I, method: "put" }
51
51
  ), await fetch(
52
- [h, "api", m, o.type, o.id].join("/") + B,
52
+ [d, "api", m, o.type, o.id].join("/") + B,
53
53
  { ...I, method: "put" }
54
54
  ).then((j) => {
55
55
  if (!j.ok)
@@ -59,16 +59,16 @@ class ki {
59
59
  }
60
60
  }
61
61
  var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
62
- function Ai(w) {
63
- return w && w.__esModule && Object.prototype.hasOwnProperty.call(w, "default") ? w.default : w;
62
+ function Ai(v) {
63
+ return v && v.__esModule && Object.prototype.hasOwnProperty.call(v, "default") ? v.default : v;
64
64
  }
65
65
  var Rr = { exports: {} };
66
- (function(w, o) {
67
- (function(h, m) {
68
- w.exports = m();
66
+ (function(v, o) {
67
+ (function(d, m) {
68
+ v.exports = m();
69
69
  })(Ir, function() {
70
- var h = function(e, t) {
71
- return (h = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
70
+ var d = function(e, t) {
71
+ return (d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
72
72
  n.__proto__ = r;
73
73
  } || function(n, r) {
74
74
  for (var i in r)
@@ -366,8 +366,8 @@ var Rr = { exports: {} };
366
366
  if (a === r)
367
367
  throw new TypeError("A promise cannot be resolved with itself.");
368
368
  var s = r._lib && Ve();
369
- a && typeof a.then == "function" ? n(r, function(u, d) {
370
- a instanceof T ? a._then(u, d) : a.then(u, d);
369
+ a && typeof a.then == "function" ? n(r, function(u, h) {
370
+ a instanceof T ? a._then(u, h) : a.then(u, h);
371
371
  }) : (r._state = !0, r._value = a, nr(r)), s && Xe();
372
372
  }
373
373
  }, sn.bind(null, r));
@@ -379,10 +379,10 @@ var Rr = { exports: {} };
379
379
  var an = { get: function() {
380
380
  var e = K, t = Pt;
381
381
  function n(r, i) {
382
- var a = this, s = !e.global && (e !== K || t !== Pt), u = s && !Ie(), d = new T(function(l, b) {
382
+ var a = this, s = !e.global && (e !== K || t !== Pt), u = s && !Ie(), h = new T(function(l, b) {
383
383
  un(a, new tr(ir(r, e, s, u), ir(i, e, s, u), l, b, e));
384
384
  });
385
- return this._consoleTask && (d._consoleTask = this._consoleTask), d;
385
+ return this._consoleTask && (h._consoleTask = this._consoleTask), h;
386
386
  }
387
387
  return n.prototype = at, n;
388
388
  }, set: function(e) {
@@ -548,9 +548,9 @@ var Rr = { exports: {} };
548
548
  return Pe(function(i, a) {
549
549
  var s = K;
550
550
  s.unhandleds = [], s.onunhandled = a, s.finalize = Ke(function() {
551
- var u, d = this;
551
+ var u, h = this;
552
552
  u = function() {
553
- d.unhandleds.length === 0 ? i() : a(d.unhandleds[0]);
553
+ h.unhandleds.length === 0 ? i() : a(h.unhandleds[0]);
554
554
  }, xt.push(function l() {
555
555
  u(), xt.splice(xt.indexOf(l), 1);
556
556
  }), ++Ne, ct(function() {
@@ -674,14 +674,14 @@ var Rr = { exports: {} };
674
674
  return t < e ? 1 : e < t ? -1 : 0;
675
675
  case "binary":
676
676
  return function(i, a) {
677
- for (var s = i.length, u = a.length, d = s < u ? s : u, l = 0; l < d; ++l)
677
+ for (var s = i.length, u = a.length, h = s < u ? s : u, l = 0; l < h; ++l)
678
678
  if (i[l] !== a[l])
679
679
  return i[l] < a[l] ? -1 : 1;
680
680
  return s === u ? 0 : s < u ? -1 : 1;
681
681
  }(cr(e), cr(t));
682
682
  case "Array":
683
683
  return function(i, a) {
684
- for (var s = i.length, u = a.length, d = s < u ? s : u, l = 0; l < d; ++l) {
684
+ for (var s = i.length, u = a.length, h = s < u ? s : u, l = 0; l < h; ++l) {
685
685
  var b = $(i[l], a[l]);
686
686
  if (b !== 0)
687
687
  return b;
@@ -709,30 +709,30 @@ var Rr = { exports: {} };
709
709
  }
710
710
  var u = Ve();
711
711
  try {
712
- var d = r && r.db._novip === this.db._novip ? r === K.trans ? r._promise(e, s, n) : Pe(function() {
712
+ var h = r && r.db._novip === this.db._novip ? r === K.trans ? r._promise(e, s, n) : Pe(function() {
713
713
  return r._promise(e, s, n);
714
714
  }, { trans: r, transless: K.transless || K }) : function l(b, c, f, p) {
715
715
  if (b.idbdb && (b._state.openComplete || K.letThrough || b._vip)) {
716
716
  var y = b._createTransaction(c, f, b._dbSchema);
717
717
  try {
718
718
  y.create(), b._state.PR1398_maxLoop = 3;
719
- } catch (v) {
720
- return v.name === en.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
719
+ } catch (w) {
720
+ return w.name === en.InvalidState && b.isOpen() && 0 < --b._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), b.close({ disableAutoOpen: !1 }), b.open().then(function() {
721
721
  return l(b, c, f, p);
722
- })) : q(v);
722
+ })) : q(w);
723
723
  }
724
- return y._promise(c, function(v, g) {
724
+ return y._promise(c, function(w, g) {
725
725
  return Pe(function() {
726
- return K.trans = y, p(v, g, y);
726
+ return K.trans = y, p(w, g, y);
727
727
  });
728
- }).then(function(v) {
728
+ }).then(function(w) {
729
729
  if (c === "readwrite")
730
730
  try {
731
731
  y.idbtrans.commit();
732
732
  } catch {
733
733
  }
734
- return c === "readonly" ? v : y._completion.then(function() {
735
- return v;
734
+ return c === "readonly" ? w : y._completion.then(function() {
735
+ return w;
736
736
  });
737
737
  });
738
738
  }
@@ -747,9 +747,9 @@ var Rr = { exports: {} };
747
747
  return l(b, c, f, p);
748
748
  });
749
749
  }(this.db, e, [this.name], s);
750
- return a && (d._consoleTask = a, d = d.catch(function(l) {
750
+ return a && (h._consoleTask = a, h = h.catch(function(l) {
751
751
  return console.trace(l), q(l);
752
- })), d;
752
+ })), h;
753
753
  } finally {
754
754
  u && Xe();
755
755
  }
@@ -768,18 +768,18 @@ var Rr = { exports: {} };
768
768
  var t = j(e);
769
769
  if (t.length === 1)
770
770
  return this.where(t[0]).equals(e[t[0]]);
771
- var n = this.schema.indexes.concat(this.schema.primKey).filter(function(d) {
772
- if (d.compound && t.every(function(b) {
773
- return 0 <= d.keyPath.indexOf(b);
771
+ var n = this.schema.indexes.concat(this.schema.primKey).filter(function(h) {
772
+ if (h.compound && t.every(function(b) {
773
+ return 0 <= h.keyPath.indexOf(b);
774
774
  })) {
775
775
  for (var l = 0; l < t.length; ++l)
776
- if (t.indexOf(d.keyPath[l]) === -1)
776
+ if (t.indexOf(h.keyPath[l]) === -1)
777
777
  return !1;
778
778
  return !0;
779
779
  }
780
780
  return !1;
781
- }).sort(function(d, l) {
782
- return d.keyPath.length - l.keyPath.length;
781
+ }).sort(function(h, l) {
782
+ return h.keyPath.length - l.keyPath.length;
783
783
  })[0];
784
784
  if (n && this.db._maxKey !== Le) {
785
785
  var s = n.keyPath.slice(0, t.length);
@@ -789,14 +789,14 @@ var Rr = { exports: {} };
789
789
  }
790
790
  !n && pe && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
791
791
  var r = this.schema.idxByName, i = this.db._deps.indexedDB;
792
- function a(d, l) {
793
- return i.cmp(d, l) === 0;
792
+ function a(h, l) {
793
+ return i.cmp(h, l) === 0;
794
794
  }
795
795
  var u = t.reduce(function(f, l) {
796
796
  var b = f[0], c = f[1], f = r[l], p = e[l];
797
797
  return [b || f, b || !f ? Fe(c, f && f.multi ? function(y) {
798
- return y = ve(y, l), N(y) && y.some(function(v) {
799
- return a(p, v);
798
+ return y = ve(y, l), N(y) && y.some(function(w) {
799
+ return a(p, w);
800
800
  });
801
801
  } : function(y) {
802
802
  return a(p, ve(y, l));
@@ -826,30 +826,30 @@ var Rr = { exports: {} };
826
826
  function i() {
827
827
  return t !== null && t.apply(this, arguments) || this;
828
828
  }
829
- (this.schema.mappedClass = e).prototype instanceof sr && (function(d, l) {
829
+ (this.schema.mappedClass = e).prototype instanceof sr && (function(h, l) {
830
830
  if (typeof l != "function" && l !== null)
831
831
  throw new TypeError("Class extends value " + String(l) + " is not a constructor or null");
832
832
  function b() {
833
- this.constructor = d;
833
+ this.constructor = h;
834
834
  }
835
- h(d, l), d.prototype = l === null ? Object.create(l) : (b.prototype = l.prototype, new b());
835
+ d(h, l), h.prototype = l === null ? Object.create(l) : (b.prototype = l.prototype, new b());
836
836
  }(i, t = e), Object.defineProperty(i.prototype, "db", { get: function() {
837
837
  return n;
838
838
  }, enumerable: !1, configurable: !0 }), i.prototype.table = function() {
839
839
  return r;
840
840
  }, e = i);
841
841
  for (var a = /* @__PURE__ */ new Set(), s = e.prototype; s; s = te(s))
842
- Object.getOwnPropertyNames(s).forEach(function(d) {
843
- return a.add(d);
842
+ Object.getOwnPropertyNames(s).forEach(function(h) {
843
+ return a.add(h);
844
844
  });
845
- function u(d) {
846
- if (!d)
847
- return d;
845
+ function u(h) {
846
+ if (!h)
847
+ return h;
848
848
  var l, b = Object.create(e.prototype);
849
- for (l in d)
849
+ for (l in h)
850
850
  if (!a.has(l))
851
851
  try {
852
- b[l] = d[l];
852
+ b[l] = h[l];
853
853
  } catch {
854
854
  }
855
855
  return b;
@@ -920,12 +920,12 @@ var Rr = { exports: {} };
920
920
  throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
921
921
  if (i && i.length !== e.length)
922
922
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
923
- var d = e.length, l = l && u ? e.map(Rt(l)) : e;
923
+ var h = e.length, l = l && u ? e.map(Rt(l)) : e;
924
924
  return r.core.mutate({ trans: s, type: "add", keys: i, values: l, wantResults: a }).then(function(y) {
925
925
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
926
926
  if (c === 0)
927
927
  return a ? f : p;
928
- throw new Qe("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(d, " operations failed"), y);
928
+ throw new Qe("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(h, " operations failed"), y);
929
929
  });
930
930
  });
931
931
  }, V.prototype.bulkPut = function(e, t, n) {
@@ -936,12 +936,12 @@ var Rr = { exports: {} };
936
936
  throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
937
937
  if (i && i.length !== e.length)
938
938
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
939
- var d = e.length, l = l && u ? e.map(Rt(l)) : e;
939
+ var h = e.length, l = l && u ? e.map(Rt(l)) : e;
940
940
  return r.core.mutate({ trans: s, type: "put", keys: i, values: l, wantResults: a }).then(function(y) {
941
941
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
942
942
  if (c === 0)
943
943
  return a ? f : p;
944
- throw new Qe("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(d, " operations failed"), y);
944
+ throw new Qe("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(h, " operations failed"), y);
945
945
  });
946
946
  });
947
947
  }, V.prototype.bulkUpdate = function(e) {
@@ -952,28 +952,28 @@ var Rr = { exports: {} };
952
952
  }), a = [];
953
953
  return this._trans("readwrite", function(s) {
954
954
  return n.getMany({ trans: s, keys: r, cache: "clone" }).then(function(u) {
955
- var d = [], l = [];
955
+ var h = [], l = [];
956
956
  e.forEach(function(c, f) {
957
- var p = c.key, y = c.changes, v = u[f];
958
- if (v) {
957
+ var p = c.key, y = c.changes, w = u[f];
958
+ if (w) {
959
959
  for (var g = 0, _ = Object.keys(y); g < _.length; g++) {
960
960
  var S = _[g], E = y[S];
961
961
  if (S === t.schema.primKey.keyPath) {
962
962
  if ($(E, p) !== 0)
963
963
  throw new L.Constraint("Cannot update primary key in bulkUpdate()");
964
964
  } else
965
- fe(v, S, E);
965
+ fe(w, S, E);
966
966
  }
967
- a.push(f), d.push(p), l.push(v);
967
+ a.push(f), h.push(p), l.push(w);
968
968
  }
969
969
  });
970
- var b = d.length;
971
- return n.mutate({ trans: s, type: "put", keys: d, values: l, updates: { keys: r, changeSpecs: i } }).then(function(c) {
970
+ var b = h.length;
971
+ return n.mutate({ trans: s, type: "put", keys: h, values: l, updates: { keys: r, changeSpecs: i } }).then(function(c) {
972
972
  var f = c.numFailures, p = c.failures;
973
973
  if (f === 0)
974
974
  return b;
975
- for (var y = 0, v = Object.keys(p); y < v.length; y++) {
976
- var g, _ = v[y], S = a[Number(_)];
975
+ for (var y = 0, w = Object.keys(p); y < w.length; y++) {
976
+ var g, _ = w[y], S = a[Number(_)];
977
977
  S != null && (g = p[_], delete p[_], p[S] = g);
978
978
  }
979
979
  throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
@@ -996,8 +996,8 @@ var Rr = { exports: {} };
996
996
  function ft(e) {
997
997
  function t(s, u) {
998
998
  if (u) {
999
- for (var d = arguments.length, l = new Array(d - 1); --d; )
1000
- l[d - 1] = arguments[d];
999
+ for (var h = arguments.length, l = new Array(h - 1); --h; )
1000
+ l[h - 1] = arguments[h];
1001
1001
  return n[s].subscribe.apply(null, l), e;
1002
1002
  }
1003
1003
  if (typeof s == "string")
@@ -1008,16 +1008,16 @@ var Rr = { exports: {} };
1008
1008
  for (var r = 1, i = arguments.length; r < i; ++r)
1009
1009
  a(arguments[r]);
1010
1010
  return t;
1011
- function a(s, u, d) {
1011
+ function a(s, u, h) {
1012
1012
  if (typeof s != "object") {
1013
1013
  var l;
1014
1014
  u = u || Jr;
1015
- var b = { subscribers: [], fire: d = d || H, subscribe: function(c) {
1015
+ var b = { subscribers: [], fire: h = h || H, subscribe: function(c) {
1016
1016
  b.subscribers.indexOf(c) === -1 && (b.subscribers.push(c), b.fire = u(b.fire, c));
1017
1017
  }, unsubscribe: function(c) {
1018
1018
  b.subscribers = b.subscribers.filter(function(f) {
1019
1019
  return f !== c;
1020
- }), b.fire = b.subscribers.reduce(u, d);
1020
+ }), b.fire = b.subscribers.reduce(u, h);
1021
1021
  } };
1022
1022
  return n[s] = t[s] = b;
1023
1023
  }
@@ -1029,11 +1029,11 @@ var Rr = { exports: {} };
1029
1029
  if (f !== "asap")
1030
1030
  throw new L.InvalidArgument("Invalid event config");
1031
1031
  var p = a(c, ot, function() {
1032
- for (var y = arguments.length, v = new Array(y); y--; )
1033
- v[y] = arguments[y];
1032
+ for (var y = arguments.length, w = new Array(y); y--; )
1033
+ w[y] = arguments[y];
1034
1034
  p.subscribers.forEach(function(g) {
1035
1035
  Hn(function() {
1036
- g.apply(null, v);
1036
+ g.apply(null, w);
1037
1037
  });
1038
1038
  });
1039
1039
  });
@@ -1071,13 +1071,13 @@ var Rr = { exports: {} };
1071
1071
  function jt(e, t, n, r) {
1072
1072
  var i = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1073
1073
  if (e.or) {
1074
- var a = {}, s = function(u, d, l) {
1074
+ var a = {}, s = function(u, h, l) {
1075
1075
  var b, c;
1076
- i && !i(d, l, function(f) {
1077
- return d.stop(f);
1076
+ i && !i(h, l, function(f) {
1077
+ return h.stop(f);
1078
1078
  }, function(f) {
1079
- return d.fail(f);
1080
- }) || ((c = "" + (b = d.primaryKey)) == "[object ArrayBuffer]" && (c = "" + new Uint8Array(b)), ie(a, c) || (a[c] = !0, t(u, d, l)));
1079
+ return h.fail(f);
1080
+ }) || ((c = "" + (b = h.primaryKey)) == "[object ArrayBuffer]" && (c = "" + new Uint8Array(b)), ie(a, c) || (a[c] = !0, t(u, h, l)));
1081
1081
  };
1082
1082
  return Promise.all([e.or._iterate(s, n), dr(fr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1083
1083
  }
@@ -1143,15 +1143,15 @@ var Rr = { exports: {} };
1143
1143
  }).then(e);
1144
1144
  }, z.prototype.sortBy = function(e, t) {
1145
1145
  var n = e.split(".").reverse(), r = n[0], i = n.length - 1;
1146
- function a(d, l) {
1147
- return l ? a(d[n[l]], l - 1) : d[r];
1146
+ function a(h, l) {
1147
+ return l ? a(h[n[l]], l - 1) : h[r];
1148
1148
  }
1149
1149
  var s = this._ctx.dir === "next" ? 1 : -1;
1150
- function u(d, l) {
1151
- return d = a(d, i), l = a(l, i), d < l ? -s : l < d ? s : 0;
1150
+ function u(h, l) {
1151
+ return h = a(h, i), l = a(l, i), h < l ? -s : l < h ? s : 0;
1152
1152
  }
1153
- return this.toArray(function(d) {
1154
- return d.sort(u);
1153
+ return this.toArray(function(h) {
1154
+ return h.sort(u);
1155
1155
  }).then(t);
1156
1156
  }, z.prototype.toArray = function(e) {
1157
1157
  var t = this;
@@ -1288,26 +1288,26 @@ var Rr = { exports: {} };
1288
1288
  p.push(S[C]);
1289
1289
  }
1290
1290
  }
1291
- var d = n.table.core, l = d.schema.primaryKey, b = l.outbound, c = l.extractKey, f = t.db._options.modifyChunkSize || 200, p = [], y = 0, v = [];
1291
+ var h = n.table.core, l = h.schema.primaryKey, b = l.outbound, c = l.extractKey, f = t.db._options.modifyChunkSize || 200, p = [], y = 0, w = [];
1292
1292
  return t.clone().primaryKeys().then(function(g) {
1293
1293
  function _(S) {
1294
1294
  var E = Math.min(f, g.length - S);
1295
- return d.getMany({ trans: r, keys: g.slice(S, S + E), cache: "immutable" }).then(function(O) {
1295
+ return h.getMany({ trans: r, keys: g.slice(S, S + E), cache: "immutable" }).then(function(O) {
1296
1296
  for (var k = [], C = [], A = b ? [] : null, R = [], D = 0; D < E; ++D) {
1297
1297
  var G = O[D], F = { value: Ae(G), primKey: g[S + D] };
1298
1298
  s.call(F, F.value, F) !== !1 && (F.value == null ? R.push(g[S + D]) : b || $(c(G), c(F.value)) === 0 ? (C.push(F.value), b && A.push(g[S + D])) : (R.push(g[S + D]), k.push(F.value)));
1299
1299
  }
1300
1300
  var Y = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1301
- return Promise.resolve(0 < k.length && d.mutate({ trans: r, type: "add", values: k }).then(function(W) {
1301
+ return Promise.resolve(0 < k.length && h.mutate({ trans: r, type: "add", values: k }).then(function(W) {
1302
1302
  for (var Q in W.failures)
1303
1303
  R.splice(parseInt(Q), 1);
1304
1304
  u(k.length, W);
1305
1305
  })).then(function() {
1306
- return (0 < C.length || Y && typeof e == "object") && d.mutate({ trans: r, type: "put", keys: A, values: C, criteria: Y, changeSpec: typeof e != "function" && e }).then(function(W) {
1306
+ return (0 < C.length || Y && typeof e == "object") && h.mutate({ trans: r, type: "put", keys: A, values: C, criteria: Y, changeSpec: typeof e != "function" && e }).then(function(W) {
1307
1307
  return u(C.length, W);
1308
1308
  });
1309
1309
  }).then(function() {
1310
- return (0 < R.length || Y && e === gn) && d.mutate({ trans: r, type: "delete", keys: R, criteria: Y }).then(function(W) {
1310
+ return (0 < R.length || Y && e === gn) && h.mutate({ trans: r, type: "delete", keys: R, criteria: Y }).then(function(W) {
1311
1311
  return u(R.length, W);
1312
1312
  });
1313
1313
  }).then(function() {
@@ -1317,7 +1317,7 @@ var Rr = { exports: {} };
1317
1317
  }
1318
1318
  return _(0).then(function() {
1319
1319
  if (0 < p.length)
1320
- throw new _t("Error modifying one or more objects", p, y, v);
1320
+ throw new _t("Error modifying one or more objects", p, y, w);
1321
1321
  return g.length;
1322
1322
  });
1323
1323
  });
@@ -1330,8 +1330,8 @@ var Rr = { exports: {} };
1330
1330
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: i }).then(function(s) {
1331
1331
  var u = s.failures;
1332
1332
  if (s.lastResult, s.results, s = s.numFailures, s)
1333
- throw new _t("Could not delete some values", Object.keys(u).map(function(d) {
1334
- return u[d];
1333
+ throw new _t("Could not delete some values", Object.keys(u).map(function(h) {
1334
+ return u[h];
1335
1335
  }), a - s);
1336
1336
  return a - s;
1337
1337
  });
@@ -1358,7 +1358,7 @@ var Rr = { exports: {} };
1358
1358
  }).limit(0);
1359
1359
  }
1360
1360
  function Mt(e, t, n, r) {
1361
- var i, a, s, u, d, l, b, c = n.length;
1361
+ var i, a, s, u, h, l, b, c = n.length;
1362
1362
  if (!n.every(function(y) {
1363
1363
  return typeof y == "string";
1364
1364
  }))
@@ -1373,29 +1373,29 @@ var Rr = { exports: {} };
1373
1373
  } : function(g) {
1374
1374
  return g.toUpperCase();
1375
1375
  }, s = y === "next" ? ii : oi;
1376
- var v = n.map(function(g) {
1376
+ var w = n.map(function(g) {
1377
1377
  return { lower: a(g), upper: i(g) };
1378
1378
  }).sort(function(g, _) {
1379
1379
  return s(g.lower, _.lower);
1380
1380
  });
1381
- u = v.map(function(g) {
1381
+ u = w.map(function(g) {
1382
1382
  return g.upper;
1383
- }), d = v.map(function(g) {
1383
+ }), h = w.map(function(g) {
1384
1384
  return g.lower;
1385
1385
  }), b = (l = y) === "next" ? "" : r;
1386
1386
  }
1387
1387
  f("next"), e = new e.Collection(e, function() {
1388
- return Re(u[0], d[c - 1] + r);
1388
+ return Re(u[0], h[c - 1] + r);
1389
1389
  }), e._ondirectionchange = function(y) {
1390
1390
  f(y);
1391
1391
  };
1392
1392
  var p = 0;
1393
- return e._addAlgorithm(function(y, v, g) {
1393
+ return e._addAlgorithm(function(y, w, g) {
1394
1394
  var _ = y.key;
1395
1395
  if (typeof _ != "string")
1396
1396
  return !1;
1397
1397
  var S = a(_);
1398
- if (t(S, d, p))
1398
+ if (t(S, h, p))
1399
1399
  return !0;
1400
1400
  for (var E = null, O = p; O < c; ++O) {
1401
1401
  var k = function(C, A, R, D, G, F) {
@@ -1406,10 +1406,10 @@ var Rr = { exports: {} };
1406
1406
  G(C[Q], le) < 0 && (W = Q);
1407
1407
  }
1408
1408
  return Y < D.length && F === "next" ? C + R.substr(C.length) : Y < C.length && F === "prev" ? C.substr(0, R.length) : W < 0 ? null : C.substr(0, W) + D[W] + R.substr(W + 1);
1409
- }(_, S, u[O], d[O], s, l);
1409
+ }(_, S, u[O], h[O], s, l);
1410
1410
  k === null && E === null ? p = O + 1 : (E === null || 0 < s(E, k)) && (E = k);
1411
1411
  }
1412
- return v(E !== null ? function() {
1412
+ return w(E !== null ? function() {
1413
1413
  y.continue(E + b);
1414
1414
  } : g), !1;
1415
1415
  }), e;
@@ -1490,10 +1490,10 @@ var Rr = { exports: {} };
1490
1490
  };
1491
1491
  var i = 0;
1492
1492
  return r._addAlgorithm(function(a, s, u) {
1493
- for (var d = a.key; 0 < n(d, t[i]); )
1493
+ for (var h = a.key; 0 < n(h, t[i]); )
1494
1494
  if (++i === t.length)
1495
1495
  return s(u), !1;
1496
- return n(d, t[i]) === 0 || (s(function() {
1496
+ return n(h, t[i]) === 0 || (s(function() {
1497
1497
  a.continue(t[i]);
1498
1498
  }), !1);
1499
1499
  }), r;
@@ -1520,7 +1520,7 @@ var Rr = { exports: {} };
1520
1520
  return S[0] !== void 0 && S[1] !== void 0 && i(S[0], S[1]) <= 0;
1521
1521
  }))
1522
1522
  return ce(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1523
- var d = !t || t.includeLowers !== !1, l = t && t.includeUppers === !0, b, c = i;
1523
+ var h = !t || t.includeLowers !== !1, l = t && t.includeUppers === !0, b, c = i;
1524
1524
  function f(S, E) {
1525
1525
  return c(S[0], E[0]);
1526
1526
  }
@@ -1542,20 +1542,20 @@ var Rr = { exports: {} };
1542
1542
  return 0 < i(S, b[p][1]);
1543
1543
  } : function(S) {
1544
1544
  return 0 <= i(S, b[p][1]);
1545
- }, v = d ? function(S) {
1545
+ }, w = h ? function(S) {
1546
1546
  return 0 < a(S, b[p][0]);
1547
1547
  } : function(S) {
1548
1548
  return 0 <= a(S, b[p][0]);
1549
1549
  }, g = y, _ = new this.Collection(this, function() {
1550
- return Re(b[0][0], b[b.length - 1][1], !d, !l);
1550
+ return Re(b[0][0], b[b.length - 1][1], !h, !l);
1551
1551
  });
1552
1552
  return _._ondirectionchange = function(S) {
1553
- c = S === "next" ? (g = y, i) : (g = v, a), b.sort(f);
1553
+ c = S === "next" ? (g = y, i) : (g = w, a), b.sort(f);
1554
1554
  }, _._addAlgorithm(function(S, E, O) {
1555
1555
  for (var k, C = S.key; g(C); )
1556
1556
  if (++p === b.length)
1557
1557
  return E(O), !1;
1558
- return !y(k = C) && !v(k) || (n._cmp(C, b[p][1]) === 0 || n._cmp(C, b[p][0]) === 0 || E(function() {
1558
+ return !y(k = C) && !w(k) || (n._cmp(C, b[p][1]) === 0 || n._cmp(C, b[p][0]) === 0 || E(function() {
1559
1559
  c === i ? S.continue(b[p][0]) : S.continue(b[p][1]);
1560
1560
  }), !1);
1561
1561
  }), _;
@@ -1630,8 +1630,8 @@ var Rr = { exports: {} };
1630
1630
  return Pe(function() {
1631
1631
  var a = new T(function(s, u) {
1632
1632
  r._lock();
1633
- var d = t(s, u, r);
1634
- d && d.then && d.then(s, u);
1633
+ var h = t(s, u, r);
1634
+ h && h.then && h.then(s, u);
1635
1635
  });
1636
1636
  return a.finally(function() {
1637
1637
  return r._unlock();
@@ -1719,19 +1719,19 @@ var Rr = { exports: {} };
1719
1719
  function yt(e) {
1720
1720
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
1721
1721
  }
1722
- function ui(e, t, d) {
1722
+ function ui(e, t, h) {
1723
1723
  function r(g) {
1724
1724
  if (g.type === 3)
1725
1725
  return null;
1726
1726
  if (g.type === 4)
1727
1727
  throw new Error("Cannot convert never type to IDBKeyRange");
1728
- var p = g.lower, y = g.upper, v = g.lowerOpen, g = g.upperOpen;
1729
- return p === void 0 ? y === void 0 ? null : t.upperBound(y, !!g) : y === void 0 ? t.lowerBound(p, !!v) : t.bound(p, y, !!v, !!g);
1728
+ var p = g.lower, y = g.upper, w = g.lowerOpen, g = g.upperOpen;
1729
+ return p === void 0 ? y === void 0 ? null : t.upperBound(y, !!g) : y === void 0 ? t.lowerBound(p, !!w) : t.bound(p, y, !!w, !!g);
1730
1730
  }
1731
1731
  function i(f) {
1732
1732
  var p, y = f.name;
1733
- return { name: y, schema: f, mutate: function(v) {
1734
- var g = v.trans, _ = v.type, S = v.keys, E = v.values, O = v.range;
1733
+ return { name: y, schema: f, mutate: function(w) {
1734
+ var g = w.trans, _ = w.type, S = w.keys, E = w.values, O = w.range;
1735
1735
  return new Promise(function(k, C) {
1736
1736
  k = J(k);
1737
1737
  var A = g.objectStore(y), R = A.keyPath == null, D = _ === "put" || _ === "add";
@@ -1770,8 +1770,8 @@ var Rr = { exports: {} };
1770
1770
  Y(se), Qt(se);
1771
1771
  }, G.onsuccess = Qt;
1772
1772
  });
1773
- }, getMany: function(v) {
1774
- var g = v.trans, _ = v.keys;
1773
+ }, getMany: function(w) {
1774
+ var g = w.trans, _ = w.keys;
1775
1775
  return new Promise(function(S, E) {
1776
1776
  S = J(S);
1777
1777
  for (var O, k = g.objectStore(y), C = _.length, A = new Array(C), R = 0, D = 0, G = function(W) {
@@ -1780,8 +1780,8 @@ var Rr = { exports: {} };
1780
1780
  _[Y] != null && ((O = k.get(_[Y]))._pos = Y, O.onsuccess = G, O.onerror = F, ++R);
1781
1781
  R === 0 && S(A);
1782
1782
  });
1783
- }, get: function(v) {
1784
- var g = v.trans, _ = v.key;
1783
+ }, get: function(w) {
1784
+ var g = w.trans, _ = w.key;
1785
1785
  return new Promise(function(S, E) {
1786
1786
  S = J(S);
1787
1787
  var O = g.objectStore(y).get(_);
@@ -1789,10 +1789,10 @@ var Rr = { exports: {} };
1789
1789
  return S(k.target.result);
1790
1790
  }, O.onerror = ye(E);
1791
1791
  });
1792
- }, query: (p = l, function(v) {
1792
+ }, query: (p = l, function(w) {
1793
1793
  return new Promise(function(g, _) {
1794
1794
  g = J(g);
1795
- var S, E, O, R = v.trans, k = v.values, C = v.limit, G = v.query, A = C === 1 / 0 ? void 0 : C, D = G.index, G = G.range, R = R.objectStore(y), D = D.isPrimaryKey ? R : R.index(D.name), G = r(G);
1795
+ var S, E, O, R = w.trans, k = w.values, C = w.limit, G = w.query, A = C === 1 / 0 ? void 0 : C, D = G.index, G = G.range, R = R.objectStore(y), D = D.isPrimaryKey ? R : R.index(D.name), G = r(G);
1796
1796
  if (C === 0)
1797
1797
  return g({ result: [] });
1798
1798
  p ? ((A = k ? D.getAll(G, A) : D.getAllKeys(G, A)).onsuccess = function(F) {
@@ -1802,8 +1802,8 @@ var Rr = { exports: {} };
1802
1802
  return Y ? (O.push(k ? Y.value : Y.primaryKey), ++S === C ? g({ result: O }) : void Y.continue()) : g({ result: O });
1803
1803
  }, E.onerror = ye(_));
1804
1804
  });
1805
- }), openCursor: function(v) {
1806
- var g = v.trans, _ = v.values, S = v.query, E = v.reverse, O = v.unique;
1805
+ }), openCursor: function(w) {
1806
+ var g = w.trans, _ = w.values, S = w.query, E = w.reverse, O = w.unique;
1807
1807
  return new Promise(function(k, C) {
1808
1808
  k = J(k);
1809
1809
  var D = S.index, A = S.range, R = g.objectStore(y), R = D.isPrimaryKey ? R : R.index(D.name), D = E ? O ? "prevunique" : "prev" : O ? "nextunique" : "next", G = !_ && "openKeyCursor" in R ? R.openKeyCursor(r(A), D) : R.openCursor(r(A), D);
@@ -1844,8 +1844,8 @@ var Rr = { exports: {} };
1844
1844
  }, k(U)) : k(null);
1845
1845
  }, C);
1846
1846
  });
1847
- }, count: function(v) {
1848
- var g = v.query, _ = v.trans, S = g.index, E = g.range;
1847
+ }, count: function(w) {
1848
+ var g = w.query, _ = w.trans, S = g.index, E = g.range;
1849
1849
  return new Promise(function(O, k) {
1850
1850
  var C = _.objectStore(y), A = S.isPrimaryKey ? C : C.index(S.name), C = r(E), A = C ? A.count(C) : A.count();
1851
1851
  A.onsuccess = J(function(R) {
@@ -1854,26 +1854,26 @@ var Rr = { exports: {} };
1854
1854
  });
1855
1855
  } };
1856
1856
  }
1857
- var a, s, u, b = (s = d, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(f) {
1857
+ var a, s, u, b = (s = h, u = yr((a = e).objectStoreNames), { schema: { name: a.name, tables: u.map(function(f) {
1858
1858
  return s.objectStore(f);
1859
1859
  }).map(function(f) {
1860
- var p = f.keyPath, g = f.autoIncrement, y = N(p), v = {}, g = { name: f.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: y, keyPath: p, autoIncrement: g, unique: !0, extractKey: vn(p) }, indexes: yr(f.indexNames).map(function(_) {
1860
+ var p = f.keyPath, g = f.autoIncrement, y = N(p), w = {}, g = { name: f.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: y, keyPath: p, autoIncrement: g, unique: !0, extractKey: vn(p) }, indexes: yr(f.indexNames).map(function(_) {
1861
1861
  return f.index(_);
1862
1862
  }).map(function(O) {
1863
1863
  var S = O.name, E = O.unique, k = O.multiEntry, O = O.keyPath, k = { name: S, compound: N(O), keyPath: O, unique: E, multiEntry: k, extractKey: vn(O) };
1864
- return v[yt(O)] = k;
1864
+ return w[yt(O)] = k;
1865
1865
  }), getIndexByKeyPath: function(_) {
1866
- return v[yt(_)];
1866
+ return w[yt(_)];
1867
1867
  } };
1868
- return v[":id"] = g.primaryKey, p != null && (v[yt(p)] = g.primaryKey), g;
1869
- }) }, hasGetAll: 0 < u.length && "getAll" in s.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), d = b.schema, l = b.hasGetAll, b = d.tables.map(i), c = {};
1868
+ return w[":id"] = g.primaryKey, p != null && (w[yt(p)] = g.primaryKey), g;
1869
+ }) }, hasGetAll: 0 < u.length && "getAll" in s.objectStore(u[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), h = b.schema, l = b.hasGetAll, b = h.tables.map(i), c = {};
1870
1870
  return b.forEach(function(f) {
1871
1871
  return c[f.name] = f;
1872
1872
  }), { stack: "dbcore", transaction: e.transaction.bind(e), table: function(f) {
1873
1873
  if (!c[f])
1874
1874
  throw new Error("Table '".concat(f, "' not found"));
1875
1875
  return c[f];
1876
- }, MIN_KEY: -1 / 0, MAX_KEY: gt(t), schema: d };
1876
+ }, MIN_KEY: -1 / 0, MAX_KEY: gt(t), schema: h };
1877
1877
  }
1878
1878
  function ci(e, t, n, r) {
1879
1879
  var i = n.IDBKeyRange;
@@ -1894,13 +1894,13 @@ var Rr = { exports: {} };
1894
1894
  n.forEach(function(i) {
1895
1895
  var a = r[i];
1896
1896
  t.forEach(function(s) {
1897
- var u = function d(l, b) {
1898
- return Lr(l, b) || (l = te(l)) && d(l, b);
1897
+ var u = function h(l, b) {
1898
+ return Lr(l, b) || (l = te(l)) && h(l, b);
1899
1899
  }(s, i);
1900
1900
  (!u || "value" in u && u.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, i, { get: function() {
1901
1901
  return this.table(i);
1902
- }, set: function(d) {
1903
- $n(this, i, { value: d, writable: !0, configurable: !0, enumerable: !0 });
1902
+ }, set: function(h) {
1903
+ $n(this, i, { value: h, writable: !0, configurable: !0, enumerable: !0 });
1904
1904
  } }) : s[i] = new e.Table(i, a));
1905
1905
  });
1906
1906
  });
@@ -1921,13 +1921,13 @@ var Rr = { exports: {} };
1921
1921
  a.create(n), a._completion.catch(r);
1922
1922
  var s = a._reject.bind(a), u = K.transless || K;
1923
1923
  Pe(function() {
1924
- return K.trans = a, K.transless = u, t !== 0 ? (Kt(e, n), l = t, ((d = a).storeNames.includes("$meta") ? d.table("$meta").get("version").then(function(b) {
1924
+ return K.trans = a, K.transless = u, t !== 0 ? (Kt(e, n), l = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1925
1925
  return b ?? l;
1926
1926
  }) : T.resolve(l)).then(function(b) {
1927
- return f = b, p = a, y = n, v = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, y), (b = b.filter(function(_) {
1927
+ return f = b, p = a, y = n, w = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, y), (b = b.filter(function(_) {
1928
1928
  return _._cfg.version >= f;
1929
1929
  })).length !== 0 ? (b.forEach(function(_) {
1930
- v.push(function() {
1930
+ w.push(function() {
1931
1931
  var S = g, E = _._cfg.dbschema;
1932
1932
  Lt(c, S, y), Lt(c, E, y), g = c._dbSchema = E;
1933
1933
  var O = _n(S, E);
@@ -1960,28 +1960,28 @@ var Rr = { exports: {} };
1960
1960
  return A;
1961
1961
  });
1962
1962
  }
1963
- }), v.push(function(S) {
1963
+ }), w.push(function(S) {
1964
1964
  var E, O, k = _._cfg.dbschema;
1965
1965
  E = k, O = S, [].slice.call(O.db.objectStoreNames).forEach(function(C) {
1966
1966
  return E[C] == null && O.db.deleteObjectStore(C);
1967
1967
  }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], c._storeNames, c._dbSchema), p.schema = c._dbSchema;
1968
- }), v.push(function(S) {
1968
+ }), w.push(function(S) {
1969
1969
  c.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(c.idbdb.version / 10) === _._cfg.version ? (c.idbdb.deleteObjectStore("$meta"), delete c._dbSchema.$meta, c._storeNames = c._storeNames.filter(function(E) {
1970
1970
  return E !== "$meta";
1971
1971
  })) : S.objectStore("$meta").put(_._cfg.version, "version"));
1972
1972
  });
1973
1973
  }), function _() {
1974
- return v.length ? T.resolve(v.shift()(p.idbtrans)).then(_) : T.resolve();
1974
+ return w.length ? T.resolve(w.shift()(p.idbtrans)).then(_) : T.resolve();
1975
1975
  }().then(function() {
1976
1976
  mr(g, y);
1977
1977
  })) : T.resolve();
1978
- var c, f, p, y, v, g;
1978
+ var c, f, p, y, w, g;
1979
1979
  }).catch(s)) : (j(i).forEach(function(b) {
1980
1980
  Sn(n, b, i[b].primKey, i[b].indexes);
1981
1981
  }), Kt(e, n), void T.follow(function() {
1982
1982
  return e.on.populate.fire(a);
1983
1983
  }).catch(s));
1984
- var d, l;
1984
+ var h, l;
1985
1985
  });
1986
1986
  }
1987
1987
  function di(e, t) {
@@ -1993,8 +1993,8 @@ var Rr = { exports: {} };
1993
1993
  if (s.change.length || s.recreate)
1994
1994
  return console.warn("Unable to patch indexes of table ".concat(s.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1995
1995
  var u = t.objectStore(s.name);
1996
- s.add.forEach(function(d) {
1997
- pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(s.name, ".").concat(d.src)), Nt(u, d);
1996
+ s.add.forEach(function(h) {
1997
+ pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(s.name, ".").concat(h.src)), Nt(u, h);
1998
1998
  });
1999
1999
  }(i[r]);
2000
2000
  if (typeof a == "object")
@@ -2012,11 +2012,11 @@ var Rr = { exports: {} };
2012
2012
  if ("" + (i.primKey.keyPath || "") != "" + (a.primKey.keyPath || "") || i.primKey.auto !== a.primKey.auto)
2013
2013
  s.recreate = !0, r.change.push(s);
2014
2014
  else {
2015
- var u = i.idxByName, d = a.idxByName, l = void 0;
2015
+ var u = i.idxByName, h = a.idxByName, l = void 0;
2016
2016
  for (l in u)
2017
- d[l] || s.del.push(l);
2018
- for (l in d) {
2019
- var b = u[l], c = d[l];
2017
+ h[l] || s.del.push(l);
2018
+ for (l in h) {
2019
+ var b = u[l], c = h[l];
2020
2020
  b ? b.src !== c.src && s.change.push(c) : s.add.push(c);
2021
2021
  }
2022
2022
  (0 < s.del.length || 0 < s.add.length || 0 < s.change.length) && r.change.push(s);
@@ -2043,8 +2043,8 @@ var Rr = { exports: {} };
2043
2043
  function Gt(e, t, n) {
2044
2044
  var r = {};
2045
2045
  return wt(t.objectStoreNames, 0).forEach(function(i) {
2046
- for (var a = n.objectStore(i), s = mn(gr(l = a.keyPath), l || "", !0, !1, !!a.autoIncrement, l && typeof l != "string", !0), u = [], d = 0; d < a.indexNames.length; ++d) {
2047
- var b = a.index(a.indexNames[d]), l = b.keyPath, b = mn(b.name, l, !!b.unique, !!b.multiEntry, !1, l && typeof l != "string", !1);
2046
+ for (var a = n.objectStore(i), s = mn(gr(l = a.keyPath), l || "", !0, !1, !!a.autoIncrement, l && typeof l != "string", !0), u = [], h = 0; h < a.indexNames.length; ++h) {
2047
+ var b = a.index(a.indexNames[h]), l = b.keyPath, b = mn(b.name, l, !!b.unique, !!b.multiEntry, !1, l && typeof l != "string", !1);
2048
2048
  u.push(b);
2049
2049
  }
2050
2050
  r[i] = bn(i, s, u);
@@ -2055,8 +2055,8 @@ var Rr = { exports: {} };
2055
2055
  var a = r[i], s = n.objectStore(a);
2056
2056
  e._hasGetAll = "getAll" in s;
2057
2057
  for (var u = 0; u < s.indexNames.length; ++u) {
2058
- var d = s.indexNames[u], l = s.index(d).keyPath, b = typeof l == "string" ? l : "[" + wt(l).join("+") + "]";
2059
- !t[a] || (l = t[a].idxByName[b]) && (l.name = d, delete t[a].idxByName[b], t[a].idxByName[d] = l);
2058
+ var h = s.indexNames[u], l = s.index(h).keyPath, b = typeof l == "string" ? l : "[" + wt(l).join("+") + "]";
2059
+ !t[a] || (l = t[a].idxByName[b]) && (l.name = h, delete t[a].idxByName[b], t[a].idxByName[h] = l);
2060
2060
  }
2061
2061
  }
2062
2062
  typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && B.WorkerGlobalScope && B instanceof B.WorkerGlobalScope && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604 && (e._hasGetAll = !1);
@@ -2131,9 +2131,9 @@ var Rr = { exports: {} };
2131
2131
  }
2132
2132
  }
2133
2133
  function bt(e, t) {
2134
- kn(t) || function n(r, d) {
2135
- var a = d.from, s = d.to, u = d.l, d = d.r;
2136
- mt(r, a, s), u && n(r, u), d && n(r, d);
2134
+ kn(t) || function n(r, h) {
2135
+ var a = h.from, s = h.to, u = h.l, h = h.r;
2136
+ mt(r, a, s), u && n(r, u), h && n(r, h);
2137
2137
  }(e, t);
2138
2138
  }
2139
2139
  function Ut(e, t) {
@@ -2225,24 +2225,24 @@ var Rr = { exports: {} };
2225
2225
  var s, u = /^idb\:\/\/(.*)\/(.*)\//.exec(a);
2226
2226
  u && (a = u[1], u = u[2], (s = Ue["idb://".concat(a, "/").concat(u)]) && _r(s, e, n, t));
2227
2227
  }
2228
- n.forEach(function(d) {
2229
- return d();
2228
+ n.forEach(function(h) {
2229
+ return h();
2230
2230
  });
2231
2231
  }
2232
2232
  function _r(e, t, n, r) {
2233
2233
  for (var i = [], a = 0, s = Object.entries(e.queries.query); a < s.length; a++) {
2234
- for (var u = s[a], d = u[0], l = [], b = 0, c = u[1]; b < c.length; b++) {
2234
+ for (var u = s[a], h = u[0], l = [], b = 0, c = u[1]; b < c.length; b++) {
2235
2235
  var f = c[b];
2236
2236
  Dn(t, f.obsSet) ? f.subscribers.forEach(function(g) {
2237
2237
  return n.add(g);
2238
2238
  }) : r && l.push(f);
2239
2239
  }
2240
- r && i.push([d, l]);
2240
+ r && i.push([h, l]);
2241
2241
  }
2242
2242
  if (r)
2243
2243
  for (var p = 0, y = i; p < y.length; p++) {
2244
- var v = y[p], d = v[0], l = v[1];
2245
- e.queries.query[d] = l;
2244
+ var w = y[p], h = w[0], l = w[1];
2245
+ e.queries.query[h] = l;
2246
2246
  }
2247
2247
  }
2248
2248
  function pi(e) {
@@ -2261,17 +2261,17 @@ var Rr = { exports: {} };
2261
2261
  return new T(function(f, p) {
2262
2262
  if (s(), !n)
2263
2263
  throw new L.MissingAPI();
2264
- var y = e.name, v = t.autoSchema || !i ? n.open(y) : n.open(y, i);
2265
- if (!v)
2264
+ var y = e.name, w = t.autoSchema || !i ? n.open(y) : n.open(y, i);
2265
+ if (!w)
2266
2266
  throw new L.MissingAPI();
2267
- v.onerror = ye(p), v.onblocked = J(e._fireOnBlocked), v.onupgradeneeded = J(function(g) {
2267
+ w.onerror = ye(p), w.onblocked = J(e._fireOnBlocked), w.onupgradeneeded = J(function(g) {
2268
2268
  var _;
2269
- b = v.transaction, t.autoSchema && !e._options.allowEmptyDB ? (v.onerror = ht, b.abort(), v.result.close(), (_ = n.deleteDatabase(y)).onsuccess = _.onerror = J(function() {
2269
+ b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = ht, b.abort(), w.result.close(), (_ = n.deleteDatabase(y)).onsuccess = _.onerror = J(function() {
2270
2270
  p(new L.NoSuchDatabase("Database ".concat(y, " doesnt exist")));
2271
- })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = v.result, a && di(e, b), fi(e, g / 10, b, p));
2272
- }, p), v.onsuccess = J(function() {
2271
+ })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = w.result, a && di(e, b), fi(e, g / 10, b, p));
2272
+ }, p), w.onsuccess = J(function() {
2273
2273
  b = null;
2274
- var g, _, S, E, O, k = e.idbdb = v.result, C = wt(k.objectStoreNames);
2274
+ var g, _, S, E, O, k = e.idbdb = w.result, C = wt(k.objectStoreNames);
2275
2275
  if (0 < C.length)
2276
2276
  try {
2277
2277
  var A = k.transaction((E = C).length === 1 ? E[0] : E, "readonly");
@@ -2303,14 +2303,14 @@ var Rr = { exports: {} };
2303
2303
  return T.reject(f);
2304
2304
  });
2305
2305
  }
2306
- var d, l = t.dbReadyResolve, b = null, c = !1;
2306
+ var h, l = t.dbReadyResolve, b = null, c = !1;
2307
2307
  return T.race([r, (typeof navigator > "u" ? T.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(f) {
2308
2308
  function p() {
2309
2309
  return indexedDB.databases().finally(f);
2310
2310
  }
2311
- d = setInterval(p, 100), p();
2311
+ h = setInterval(p, 100), p();
2312
2312
  }).finally(function() {
2313
- return clearInterval(d);
2313
+ return clearInterval(h);
2314
2314
  }) : Promise.resolve()).then(u)]).then(function() {
2315
2315
  return s(), t.onReadyBeingFired = [], T.resolve(xn(function() {
2316
2316
  return e.on.ready.fire(e.vip);
@@ -2350,9 +2350,9 @@ var Rr = { exports: {} };
2350
2350
  return e.throw(a);
2351
2351
  });
2352
2352
  function i(a) {
2353
- return function(d) {
2354
- var u = a(d), d = u.value;
2355
- return u.done ? d : d && typeof d.then == "function" ? d.then(n, r) : N(d) ? Promise.all(d).then(n, r) : n(d);
2353
+ return function(h) {
2354
+ var u = a(h), h = u.value;
2355
+ return u.done ? h : h && typeof h.then == "function" ? h.then(n, r) : N(h) ? Promise.all(h).then(n, r) : n(h);
2356
2356
  };
2357
2357
  }
2358
2358
  return i(t)();
@@ -2366,14 +2366,14 @@ var Rr = { exports: {} };
2366
2366
  return m(m({}, e), { table: function(t) {
2367
2367
  var n = e.table(t), r = n.schema, i = {}, a = [];
2368
2368
  function s(c, f, p) {
2369
- var y = yt(c), v = i[y] = i[y] || [], g = c == null ? 0 : typeof c == "string" ? 1 : c.length, _ = 0 < f, _ = m(m({}, p), { name: _ ? "".concat(y, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: f, keyLength: g, extractKey: vn(c), unique: !_ && p.unique });
2370
- return v.push(_), _.isPrimaryKey || a.push(_), 1 < g && s(g === 2 ? c[0] : c.slice(0, g - 1), f + 1, p), v.sort(function(S, E) {
2369
+ var y = yt(c), w = i[y] = i[y] || [], g = c == null ? 0 : typeof c == "string" ? 1 : c.length, _ = 0 < f, _ = m(m({}, p), { name: _ ? "".concat(y, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: f, keyLength: g, extractKey: vn(c), unique: !_ && p.unique });
2370
+ return w.push(_), _.isPrimaryKey || a.push(_), 1 < g && s(g === 2 ? c[0] : c.slice(0, g - 1), f + 1, p), w.sort(function(S, E) {
2371
2371
  return S.keyTail - E.keyTail;
2372
2372
  }), _;
2373
2373
  }
2374
2374
  t = s(r.primaryKey.keyPath, 0, r.primaryKey), i[":id"] = [t];
2375
- for (var u = 0, d = r.indexes; u < d.length; u++) {
2376
- var l = d[u];
2375
+ for (var u = 0, h = r.indexes; u < h.length; u++) {
2376
+ var l = h[u];
2377
2377
  s(l.keyPath, 0, l);
2378
2378
  }
2379
2379
  function b(c) {
@@ -2387,20 +2387,20 @@ var Rr = { exports: {} };
2387
2387
  }, query: function(c) {
2388
2388
  return n.query(b(c));
2389
2389
  }, openCursor: function(c) {
2390
- var f = c.query.index, p = f.keyTail, y = f.isVirtual, v = f.keyLength;
2390
+ var f = c.query.index, p = f.keyTail, y = f.isVirtual, w = f.keyLength;
2391
2391
  return y ? n.openCursor(b(c)).then(function(_) {
2392
2392
  return _ && g(_);
2393
2393
  }) : n.openCursor(c);
2394
2394
  function g(_) {
2395
2395
  return Object.create(_, { continue: { value: function(S) {
2396
- S != null ? _.continue($t(S, c.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : c.unique ? _.continue(_.key.slice(0, v).concat(c.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2396
+ S != null ? _.continue($t(S, c.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : c.unique ? _.continue(_.key.slice(0, w).concat(c.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2397
2397
  } }, continuePrimaryKey: { value: function(S, E) {
2398
2398
  _.continuePrimaryKey($t(S, e.MAX_KEY, p), E);
2399
2399
  } }, primaryKey: { get: function() {
2400
2400
  return _.primaryKey;
2401
2401
  } }, key: { get: function() {
2402
2402
  var S = _.key;
2403
- return v === 1 ? S[0] : S.slice(0, v);
2403
+ return w === 1 ? S[0] : S.slice(0, w);
2404
2404
  } }, value: { get: function() {
2405
2405
  return _.value;
2406
2406
  } } });
@@ -2423,16 +2423,16 @@ var Rr = { exports: {} };
2423
2423
  return m(m({}, e), { table: function(t) {
2424
2424
  var n = e.table(t), r = n.schema.primaryKey;
2425
2425
  return m(m({}, n), { mutate: function(i) {
2426
- var a = K.trans, s = a.table(t).hook, u = s.deleting, d = s.creating, l = s.updating;
2426
+ var a = K.trans, s = a.table(t).hook, u = s.deleting, h = s.creating, l = s.updating;
2427
2427
  switch (i.type) {
2428
2428
  case "add":
2429
- if (d.fire === H)
2429
+ if (h.fire === H)
2430
2430
  break;
2431
2431
  return a._promise("readwrite", function() {
2432
2432
  return b(i);
2433
2433
  }, !0);
2434
2434
  case "put":
2435
- if (d.fire === H && l.fire === H)
2435
+ if (h.fire === H && l.fire === H)
2436
2436
  break;
2437
2437
  return a._promise("readwrite", function() {
2438
2438
  return b(i);
@@ -2448,8 +2448,8 @@ var Rr = { exports: {} };
2448
2448
  break;
2449
2449
  return a._promise("readwrite", function() {
2450
2450
  return function c(f, p, y) {
2451
- return n.query({ trans: f, values: !1, query: { index: r, range: p }, limit: y }).then(function(v) {
2452
- var g = v.result;
2451
+ return n.query({ trans: f, values: !1, query: { index: r, range: p }, limit: y }).then(function(w) {
2452
+ var g = w.result;
2453
2453
  return b({ type: "delete", keys: g, trans: f }).then(function(_) {
2454
2454
  return 0 < _.numFailures ? Promise.reject(_.failures[0]) : g.length < y ? { failures: [], numFailures: 0, lastResult: void 0 } : c(f, m(m({}, p), { lower: g[g.length - 1], lowerOpen: !0 }), y);
2455
2455
  });
@@ -2459,13 +2459,13 @@ var Rr = { exports: {} };
2459
2459
  }
2460
2460
  return n.mutate(i);
2461
2461
  function b(c) {
2462
- var f, p, y, v = K.trans, g = c.keys || jn(r, c);
2462
+ var f, p, y, w = K.trans, g = c.keys || jn(r, c);
2463
2463
  if (!g)
2464
2464
  throw new Error("Keys missing");
2465
2465
  return (c = c.type === "add" || c.type === "put" ? m(m({}, c), { keys: g }) : m({}, c)).type !== "delete" && (c.values = I([], c.values, !0)), c.keys && (c.keys = I([], c.keys, !0)), f = n, y = g, ((p = c).type === "add" ? Promise.resolve([]) : f.getMany({ trans: p.trans, keys: y, cache: "immutable" })).then(function(_) {
2466
2466
  var S = g.map(function(E, O) {
2467
2467
  var k, C, A, R = _[O], D = { onerror: null, onsuccess: null };
2468
- return c.type === "delete" ? u.fire.call(D, E, R, v) : c.type === "add" || R === void 0 ? (k = d.fire.call(D, E, c.values[O], v), E == null && k != null && (c.keys[O] = E = k, r.outbound || fe(c.values[O], r.keyPath, E))) : (k = Tn(R, c.values[O]), (C = l.fire.call(D, k, E, R, v)) && (A = c.values[O], Object.keys(C).forEach(function(G) {
2468
+ return c.type === "delete" ? u.fire.call(D, E, R, w) : c.type === "add" || R === void 0 ? (k = h.fire.call(D, E, c.values[O], w), E == null && k != null && (c.keys[O] = E = k, r.outbound || fe(c.values[O], r.keyPath, E))) : (k = Tn(R, c.values[O]), (C = l.fire.call(D, k, E, R, w)) && (A = c.values[O], Object.keys(C).forEach(function(G) {
2469
2469
  ie(A, G) ? A[G] = C[G] : fe(A, G, C[G]);
2470
2470
  }))), D;
2471
2471
  });
@@ -2536,14 +2536,14 @@ var Rr = { exports: {} };
2536
2536
  var p = (y = p.query).index, y = y.range;
2537
2537
  return [p, new oe((p = y.lower) !== null && p !== void 0 ? p : e.MIN_KEY, (y = y.upper) !== null && y !== void 0 ? y : e.MAX_KEY)];
2538
2538
  }
2539
- var a = e.table(r), s = a.schema, u = s.primaryKey, d = u.extractKey, l = u.outbound, b = m(m({}, a), { mutate: function(f) {
2539
+ var a = e.table(r), s = a.schema, u = s.primaryKey, h = u.extractKey, l = u.outbound, b = m(m({}, a), { mutate: function(f) {
2540
2540
  function p(D) {
2541
2541
  return D = "idb://".concat(t, "/").concat(r, "/").concat(D), S[D] || (S[D] = new oe());
2542
2542
  }
2543
- var y, v, g, _ = f.trans, S = f.mutatedParts || (f.mutatedParts = {}), E = p(""), O = p(":dels"), k = f.type, R = f.type === "deleteRange" ? [f.range] : f.type === "delete" ? [f.keys] : f.values.length < 50 ? [jn(u, f).filter(function(D) {
2543
+ var y, w, g, _ = f.trans, S = f.mutatedParts || (f.mutatedParts = {}), E = p(""), O = p(":dels"), k = f.type, R = f.type === "deleteRange" ? [f.range] : f.type === "delete" ? [f.keys] : f.values.length < 50 ? [jn(u, f).filter(function(D) {
2544
2544
  return D;
2545
2545
  }), f.values] : [], C = R[0], A = R[1], R = f.trans._cache;
2546
- return N(C) ? (E.addKeys(C), (R = k === "delete" || C.length === A.length ? Sr(C, R) : null) || O.addKeys(C), (R || A) && (y = p, v = R, g = A, s.indexes.forEach(function(D) {
2546
+ return N(C) ? (E.addKeys(C), (R = k === "delete" || C.length === A.length ? Sr(C, R) : null) || O.addKeys(C), (R || A) && (y = p, w = R, g = A, s.indexes.forEach(function(D) {
2547
2547
  var G = y(D.name || "");
2548
2548
  function F(W) {
2549
2549
  return W != null ? D.extractKey(W) : null;
@@ -2553,8 +2553,8 @@ var Rr = { exports: {} };
2553
2553
  return G.addKey(Q);
2554
2554
  }) : G.addKey(W);
2555
2555
  }
2556
- (v || g).forEach(function(W, U) {
2557
- var le = v && F(v[U]), U = g && F(g[U]);
2556
+ (w || g).forEach(function(W, U) {
2557
+ var le = w && F(w[U]), U = g && F(g[U]);
2558
2558
  $(le, U) !== 0 && (le != null && Y(le), U != null && Y(U));
2559
2559
  });
2560
2560
  }))) : C ? (A = { from: C.lower, to: C.upper }, O.add(A), E.add(A)) : (E.add(n), O.add(n), s.indexes.forEach(function(D) {
@@ -2569,12 +2569,12 @@ var Rr = { exports: {} };
2569
2569
  }, count: i, query: i, openCursor: i };
2570
2570
  return j(c).forEach(function(f) {
2571
2571
  b[f] = function(p) {
2572
- var y = K.subscr, v = !!y, g = Er(K, a) && Or(f, p) ? p.obsSet = {} : y;
2573
- if (v) {
2572
+ var y = K.subscr, w = !!y, g = Er(K, a) && Or(f, p) ? p.obsSet = {} : y;
2573
+ if (w) {
2574
2574
  var _ = function(A) {
2575
2575
  return A = "idb://".concat(t, "/").concat(r, "/").concat(A), g[A] || (g[A] = new oe());
2576
- }, S = _(""), E = _(":dels"), y = c[f](p), v = y[0], y = y[1];
2577
- if ((f === "query" && v.isPrimaryKey && !p.values ? E : _(v.name || "")).add(y), !v.isPrimaryKey) {
2576
+ }, S = _(""), E = _(":dels"), y = c[f](p), w = y[0], y = y[1];
2577
+ if ((f === "query" && w.isPrimaryKey && !p.values ? E : _(w.name || "")).add(y), !w.isPrimaryKey) {
2578
2578
  if (f !== "count") {
2579
2579
  var O = f === "query" && l && p.values && a.query(m(m({}, p), { values: !1 }));
2580
2580
  return a[f].apply(this, arguments).then(function(A) {
@@ -2583,7 +2583,7 @@ var Rr = { exports: {} };
2583
2583
  return O.then(function(F) {
2584
2584
  return F = F.result, S.addKeys(F), A;
2585
2585
  });
2586
- var R = p.values ? A.result.map(d) : A.result;
2586
+ var R = p.values ? A.result.map(h) : A.result;
2587
2587
  (p.values ? S : E).addKeys(R);
2588
2588
  } else if (f === "openCursor") {
2589
2589
  var D = A, G = p.values;
@@ -2626,24 +2626,24 @@ var Rr = { exports: {} };
2626
2626
  function kr(e, t, f, r, i, a) {
2627
2627
  if (!f || f.length === 0)
2628
2628
  return e;
2629
- var s = t.query.index, u = s.multiEntry, d = t.query.range, l = r.schema.primaryKey.extractKey, b = s.extractKey, c = (s.lowLevelIndex || s).extractKey, f = f.reduce(function(p, y) {
2630
- var v = p, g = y.type === "add" || y.type === "put" ? y.values.filter(function(O) {
2629
+ var s = t.query.index, u = s.multiEntry, h = t.query.range, l = r.schema.primaryKey.extractKey, b = s.extractKey, c = (s.lowLevelIndex || s).extractKey, f = f.reduce(function(p, y) {
2630
+ var w = p, g = y.type === "add" || y.type === "put" ? y.values.filter(function(O) {
2631
2631
  return O = b(O), u && N(O) ? O.some(function(k) {
2632
- return Mn(k, d);
2633
- }) : Mn(O, d);
2632
+ return Mn(k, h);
2633
+ }) : Mn(O, h);
2634
2634
  }).map(function(O) {
2635
2635
  return O = Ae(O), a && Object.freeze(O), O;
2636
2636
  }) : [];
2637
2637
  switch (y.type) {
2638
2638
  case "add":
2639
- v = p.concat(t.values ? g : g.map(function(k) {
2639
+ w = p.concat(t.values ? g : g.map(function(k) {
2640
2640
  return l(k);
2641
2641
  }));
2642
2642
  break;
2643
2643
  case "put":
2644
2644
  var _ = new oe().addKeys(y.values.map(function(k) {
2645
2645
  return l(k);
2646
- })), v = p.filter(function(k) {
2646
+ })), w = p.filter(function(k) {
2647
2647
  return k = t.values ? l(k) : k, !Ut(new oe(k), _);
2648
2648
  }).concat(t.values ? g : g.map(function(k) {
2649
2649
  return l(k);
@@ -2651,17 +2651,17 @@ var Rr = { exports: {} };
2651
2651
  break;
2652
2652
  case "delete":
2653
2653
  var S = new oe().addKeys(y.keys);
2654
- v = p.filter(function(k) {
2654
+ w = p.filter(function(k) {
2655
2655
  return k = t.values ? l(k) : k, !Ut(new oe(k), S);
2656
2656
  });
2657
2657
  break;
2658
2658
  case "deleteRange":
2659
2659
  var E = y.range;
2660
- v = p.filter(function(k) {
2660
+ w = p.filter(function(k) {
2661
2661
  return !Mn(l(k), E);
2662
2662
  });
2663
2663
  }
2664
- return v;
2664
+ return w;
2665
2665
  }, e);
2666
2666
  return f === e ? e : (f.sort(function(p, y) {
2667
2667
  return $(c(p), c(y)) || $(l(p), l(y));
@@ -2713,28 +2713,28 @@ var Rr = { exports: {} };
2713
2713
  var t = e.schema.name;
2714
2714
  return m(m({}, e), { transaction: function(n, r, i) {
2715
2715
  var a, s, u = e.transaction(n, r, i);
2716
- return r === "readwrite" && (s = (a = new AbortController()).signal, i = function(d) {
2716
+ return r === "readwrite" && (s = (a = new AbortController()).signal, i = function(h) {
2717
2717
  return function() {
2718
2718
  if (a.abort(), r === "readwrite") {
2719
2719
  for (var l = /* @__PURE__ */ new Set(), b = 0, c = n; b < c.length; b++) {
2720
2720
  var f = c[b], p = Ue["idb://".concat(t, "/").concat(f)];
2721
2721
  if (p) {
2722
- var y = e.table(f), v = p.optimisticOps.filter(function(F) {
2722
+ var y = e.table(f), w = p.optimisticOps.filter(function(F) {
2723
2723
  return F.trans === u;
2724
2724
  });
2725
- if (u._explicit && d && u.mutatedParts)
2725
+ if (u._explicit && h && u.mutatedParts)
2726
2726
  for (var g = 0, _ = Object.values(p.queries.query); g < _.length; g++)
2727
2727
  for (var S = 0, E = (C = _[g]).slice(); S < E.length; S++)
2728
2728
  Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(C, A), A.subscribers.forEach(function(F) {
2729
2729
  return l.add(F);
2730
2730
  }));
2731
- else if (0 < v.length) {
2731
+ else if (0 < w.length) {
2732
2732
  p.optimisticOps = p.optimisticOps.filter(function(F) {
2733
2733
  return F.trans !== u;
2734
2734
  });
2735
2735
  for (var O = 0, k = Object.values(p.queries.query); O < k.length; O++)
2736
2736
  for (var C, A, R, D = 0, G = (C = k[O]).slice(); D < G.length; D++)
2737
- (A = G[D]).res != null && u.mutatedParts && (d && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, v, y, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(F) {
2737
+ (A = G[D]).res != null && u.mutatedParts && (h && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, w, y, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(F) {
2738
2738
  return l.add(F);
2739
2739
  })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Me(C, A), A.subscribers.forEach(function(F) {
2740
2740
  return l.add(F);
@@ -2755,17 +2755,17 @@ var Rr = { exports: {} };
2755
2755
  if (i.outbound || s.db._options.cache === "disabled" || s.explicit)
2756
2756
  return r.mutate(a);
2757
2757
  var u = Ue["idb://".concat(t, "/").concat(n)];
2758
- return u ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || jn(i, a).some(function(d) {
2759
- return d == null;
2760
- })) ? (u.optimisticOps.push(a), a.mutatedParts && zt(a.mutatedParts), s.then(function(d) {
2761
- 0 < d.numFailures && (Me(u.optimisticOps, a), (d = xr(0, a, d)) && u.optimisticOps.push(d), a.mutatedParts && zt(a.mutatedParts));
2758
+ return u ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || jn(i, a).some(function(h) {
2759
+ return h == null;
2760
+ })) ? (u.optimisticOps.push(a), a.mutatedParts && zt(a.mutatedParts), s.then(function(h) {
2761
+ 0 < h.numFailures && (Me(u.optimisticOps, a), (h = xr(0, a, h)) && u.optimisticOps.push(h), a.mutatedParts && zt(a.mutatedParts));
2762
2762
  }), s.catch(function() {
2763
2763
  Me(u.optimisticOps, a), a.mutatedParts && zt(a.mutatedParts);
2764
- })) : s.then(function(d) {
2764
+ })) : s.then(function(h) {
2765
2765
  var l = xr(0, m(m({}, a), { values: a.values.map(function(p, c) {
2766
2766
  var f, p = (f = i.keyPath) !== null && f !== void 0 && f.includes(".") ? Ae(p) : m({}, p);
2767
- return fe(p, i.keyPath, d.results[c]), p;
2768
- }) }), d);
2767
+ return fe(p, i.keyPath, h.results[c]), p;
2768
+ }) }), h);
2769
2769
  u.optimisticOps.push(l), queueMicrotask(function() {
2770
2770
  return a.mutatedParts && zt(a.mutatedParts);
2771
2771
  });
@@ -2773,13 +2773,13 @@ var Rr = { exports: {} };
2773
2773
  }, query: function(a) {
2774
2774
  if (!Er(K, r) || !Or("query", a))
2775
2775
  return r.query(a);
2776
- var s = ((l = K.trans) === null || l === void 0 ? void 0 : l.db._options.cache) === "immutable", c = K, u = c.requery, d = c.signal, l = function(y, v, g, _) {
2777
- var S = Ue["idb://".concat(y, "/").concat(v)];
2776
+ var s = ((l = K.trans) === null || l === void 0 ? void 0 : l.db._options.cache) === "immutable", c = K, u = c.requery, h = c.signal, l = function(y, w, g, _) {
2777
+ var S = Ue["idb://".concat(y, "/").concat(w)];
2778
2778
  if (!S)
2779
2779
  return [];
2780
- if (!(v = S.queries[g]))
2780
+ if (!(w = S.queries[g]))
2781
2781
  return [null, !1, S, null];
2782
- var E = v[(_.query ? _.query.index.name : null) || ""];
2782
+ var E = w[(_.query ? _.query.index.name : null) || ""];
2783
2783
  if (!E)
2784
2784
  return [null, !1, S, null];
2785
2785
  switch (g) {
@@ -2797,17 +2797,17 @@ var Rr = { exports: {} };
2797
2797
  }
2798
2798
  }(t, n, "query", a), b = l[0], c = l[1], f = l[2], p = l[3];
2799
2799
  return b && c ? b.obsSet = a.obsSet : (c = r.query(a).then(function(y) {
2800
- var v = y.result;
2801
- if (b && (b.res = v), s) {
2802
- for (var g = 0, _ = v.length; g < _; ++g)
2803
- Object.freeze(v[g]);
2804
- Object.freeze(v);
2800
+ var w = y.result;
2801
+ if (b && (b.res = w), s) {
2802
+ for (var g = 0, _ = w.length; g < _; ++g)
2803
+ Object.freeze(w[g]);
2804
+ Object.freeze(w);
2805
2805
  } else
2806
- y.result = Ae(v);
2806
+ y.result = Ae(w);
2807
2807
  return y;
2808
2808
  }).catch(function(y) {
2809
2809
  return p && b && Me(p, b), Promise.reject(y);
2810
- }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, d), b.promise.then(function(y) {
2810
+ }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, h), b.promise.then(function(y) {
2811
2811
  return { result: kr(y.result, a, f == null ? void 0 : f.optimisticOps, r, b, s) };
2812
2812
  });
2813
2813
  } });
@@ -2881,8 +2881,8 @@ var Rr = { exports: {} };
2881
2881
  t.close(e);
2882
2882
  var u = t._deps.indexedDB.deleteDatabase(t.name);
2883
2883
  u.onsuccess = J(function() {
2884
- var d, l, b;
2885
- d = t._deps, l = t.name, b = d.indexedDB, d = d.IDBKeyRange, On(b) || l === Ct || En(b, d).delete(l).catch(H), i();
2884
+ var h, l, b;
2885
+ h = t._deps, l = t.name, b = h.indexedDB, h = h.IDBKeyRange, On(b) || l === Ct || En(b, h).delete(l).catch(H), i();
2886
2886
  }), u.onerror = ye(a), u.onblocked = t._fireOnBlocked;
2887
2887
  }
2888
2888
  if (n)
@@ -2951,10 +2951,10 @@ var Rr = { exports: {} };
2951
2951
  c(l);
2952
2952
  }) : q(l);
2953
2953
  }
2954
- var d = (function l(b, c, f, p, y) {
2954
+ var h = (function l(b, c, f, p, y) {
2955
2955
  return T.resolve().then(function() {
2956
- var v = K.transless || K, g = b._createTransaction(c, f, b._dbSchema, p);
2957
- if (g.explicit = !0, v = { trans: g, transless: v }, p)
2956
+ var w = K.transless || K, g = b._createTransaction(c, f, b._dbSchema, p);
2957
+ if (g.explicit = !0, w = { trans: g, transless: w }, p)
2958
2958
  g.idbtrans = p.idbtrans;
2959
2959
  else
2960
2960
  try {
@@ -2965,12 +2965,12 @@ var Rr = { exports: {} };
2965
2965
  })) : q(E);
2966
2966
  }
2967
2967
  var _, S = qt(y);
2968
- return S && Je(), v = T.follow(function() {
2968
+ return S && Je(), w = T.follow(function() {
2969
2969
  var E;
2970
2970
  (_ = y.call(g, g)) && (S ? (E = Ie.bind(null, null), _.then(E, E)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Rn(_)));
2971
- }, v), (_ && typeof _.then == "function" ? T.resolve(_).then(function(E) {
2971
+ }, w), (_ && typeof _.then == "function" ? T.resolve(_).then(function(E) {
2972
2972
  return g.active ? E : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
2973
- }) : v.then(function() {
2973
+ }) : w.then(function() {
2974
2974
  return _;
2975
2975
  })).then(function(E) {
2976
2976
  return p && g._resolve(), g._completion.then(function() {
@@ -2981,9 +2981,9 @@ var Rr = { exports: {} };
2981
2981
  });
2982
2982
  });
2983
2983
  }).bind(null, this, a, s, i, n);
2984
- return i ? i._promise(a, d, "lock") : K.trans ? Ge(K.transless, function() {
2985
- return r._whenReady(d);
2986
- }) : this._whenReady(d);
2984
+ return i ? i._promise(a, h, "lock") : K.trans ? Ge(K.transless, function() {
2985
+ return r._whenReady(h);
2986
+ }) : this._whenReady(h);
2987
2987
  }, ee.prototype.table = function(e) {
2988
2988
  if (!ie(this._allTables, e))
2989
2989
  throw new L.InvalidTable("Table ".concat(e, " does not exist"));
@@ -2994,7 +2994,7 @@ var Rr = { exports: {} };
2994
2994
  this._middlewares = {}, this.verno = 0;
2995
2995
  var r = ee.dependencies;
2996
2996
  this._options = t = m({ addons: ee.addons, autoOpen: !0, indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, r = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
2997
- var i, a, s, u, d, l = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: H, dbReadyPromise: null, cancelOpen: H, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2997
+ var i, a, s, u, h, l = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: H, dbReadyPromise: null, cancelOpen: H, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
2998
2998
  l.dbReadyPromise = new T(function(c) {
2999
2999
  l.dbReadyResolve = c;
3000
3000
  }), l.openCanceller = new T(function(c, f) {
@@ -3002,8 +3002,8 @@ var Rr = { exports: {} };
3002
3002
  }), this._state = l, this.name = e, this.on = ft(this, "populate", "blocked", "versionchange", "close", { ready: [tn, H] }), this.on.ready.subscribe = Yn(this.on.ready.subscribe, function(c) {
3003
3003
  return function(f, p) {
3004
3004
  ee.vip(function() {
3005
- var y, v = n._state;
3006
- v.openComplete ? (v.dbOpenError || T.resolve().then(f), p && c(f)) : v.onReadyBeingFired ? (v.onReadyBeingFired.push(f), p && c(f)) : (c(f), y = n, p || c(function g() {
3005
+ var y, w = n._state;
3006
+ w.openComplete ? (w.dbOpenError || T.resolve().then(f), p && c(f)) : w.onReadyBeingFired ? (w.onReadyBeingFired.push(f), p && c(f)) : (c(f), y = n, p || c(function g() {
3007
3007
  y.on.ready.unsubscribe(f), y.on.ready.unsubscribe(g);
3008
3008
  }));
3009
3009
  });
@@ -3017,13 +3017,13 @@ var Rr = { exports: {} };
3017
3017
  } catch (S) {
3018
3018
  y = S;
3019
3019
  }
3020
- var v = _._ctx, g = v.table, _ = g.hook.reading.fire;
3021
- this._ctx = { table: g, index: v.index, isPrimKey: !v.index || g.schema.primKey.keyPath && v.index === g.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: y, or: v.or, valueMapper: _ !== ot ? _ : null };
3020
+ var w = _._ctx, g = w.table, _ = g.hook.reading.fire;
3021
+ this._ctx = { table: g, index: w.index, isPrimKey: !w.index || g.schema.primKey.keyPath && w.index === g.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: y, or: w.or, valueMapper: _ !== ot ? _ : null };
3022
3022
  })), this.Table = (a = this, dt(lr.prototype, function(c, f, p) {
3023
3023
  this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : ft(null, { creating: [Qr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Vr, H] });
3024
- })), this.Transaction = (s = this, dt(ai.prototype, function(c, f, p, y, v) {
3024
+ })), this.Transaction = (s = this, dt(ai.prototype, function(c, f, p, y, w) {
3025
3025
  var g = this;
3026
- this.db = s, this.mode = c, this.storeNames = f, this.schema = p, this.chromeTransactionDurability = y, this.idbtrans = null, this.on = ft(this, "complete", "error", "abort"), this.parent = v || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new T(function(_, S) {
3026
+ this.db = s, this.mode = c, this.storeNames = f, this.schema = p, this.chromeTransactionDurability = y, this.idbtrans = null, this.on = ft(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new T(function(_, S) {
3027
3027
  g._resolve = _, g._reject = S;
3028
3028
  }), this._completion.then(function() {
3029
3029
  g.active = !1, g.on.complete.fire();
@@ -3033,14 +3033,14 @@ var Rr = { exports: {} };
3033
3033
  });
3034
3034
  })), this.Version = (u = this, dt(hi.prototype, function(c) {
3035
3035
  this.db = u, this._cfg = { version: c, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3036
- })), this.WhereClause = (d = this, dt(pr.prototype, function(c, f, p) {
3037
- if (this.db = d, this._ctx = { table: c, index: f === ":id" ? null : f, or: p }, this._cmp = this._ascending = $, this._descending = function(y, v) {
3038
- return $(v, y);
3039
- }, this._max = function(y, v) {
3040
- return 0 < $(y, v) ? y : v;
3041
- }, this._min = function(y, v) {
3042
- return $(y, v) < 0 ? y : v;
3043
- }, this._IDBKeyRange = d._deps.IDBKeyRange, !this._IDBKeyRange)
3036
+ })), this.WhereClause = (h = this, dt(pr.prototype, function(c, f, p) {
3037
+ if (this.db = h, this._ctx = { table: c, index: f === ":id" ? null : f, or: p }, this._cmp = this._ascending = $, this._descending = function(y, w) {
3038
+ return $(w, y);
3039
+ }, this._max = function(y, w) {
3040
+ return 0 < $(y, w) ? y : w;
3041
+ }, this._min = function(y, w) {
3042
+ return $(y, w) < 0 ? y : w;
3043
+ }, this._IDBKeyRange = h._deps.IDBKeyRange, !this._IDBKeyRange)
3044
3044
  throw new L.MissingAPI();
3045
3045
  })), this.on("versionchange", function(c) {
3046
3046
  0 < c.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
@@ -3059,12 +3059,12 @@ var Rr = { exports: {} };
3059
3059
  if (f === "_vip")
3060
3060
  return !0;
3061
3061
  if (f === "table")
3062
- return function(v) {
3063
- return Yt(n.table(v), b);
3062
+ return function(w) {
3063
+ return Yt(n.table(w), b);
3064
3064
  };
3065
3065
  var y = Reflect.get(c, f, p);
3066
- return y instanceof lr ? Yt(y, b) : f === "tables" ? y.map(function(v) {
3067
- return Yt(v, b);
3066
+ return y instanceof lr ? Yt(y, b) : f === "tables" ? y.map(function(w) {
3067
+ return Yt(w, b);
3068
3068
  }) : f === "_createTransaction" ? function() {
3069
3069
  return Yt(y.apply(this, arguments), b);
3070
3070
  } : y;
@@ -3088,7 +3088,7 @@ var Rr = { exports: {} };
3088
3088
  }
3089
3089
  function Dr(e) {
3090
3090
  var t, n = !1, r = new Si(function(i) {
3091
- var a = qt(e), s, u = !1, d = {}, l = {}, b = { get closed() {
3091
+ var a = qt(e), s, u = !1, h = {}, l = {}, b = { get closed() {
3092
3092
  return u;
3093
3093
  }, unsubscribe: function() {
3094
3094
  u || (u = !0, s && s.abort(), c && Te.storagemutated.unsubscribe(p));
@@ -3096,11 +3096,11 @@ var Rr = { exports: {} };
3096
3096
  i.start && i.start(b);
3097
3097
  var c = !1, f = function() {
3098
3098
  return ln(y);
3099
- }, p = function(v) {
3100
- Wt(d, v), Dn(l, d) && f();
3099
+ }, p = function(w) {
3100
+ Wt(h, w), Dn(l, h) && f();
3101
3101
  }, y = function() {
3102
- var v, g, _;
3103
- !u && Ht.indexedDB && (d = {}, v = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3102
+ var w, g, _;
3103
+ !u && Ht.indexedDB && (h = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3104
3104
  var E = Ve();
3105
3105
  try {
3106
3106
  a && Je();
@@ -3109,13 +3109,13 @@ var Rr = { exports: {} };
3109
3109
  } finally {
3110
3110
  E && Xe();
3111
3111
  }
3112
- }(g = { subscr: v, signal: s.signal, requery: f, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3113
- n = !0, t = S, u || g.signal.aborted || (d = {}, function(E) {
3112
+ }(g = { subscr: w, signal: s.signal, requery: f, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3113
+ n = !0, t = S, u || g.signal.aborted || (h = {}, function(E) {
3114
3114
  for (var O in E)
3115
3115
  if (ie(E, O))
3116
3116
  return;
3117
3117
  return 1;
3118
- }(l = v) || c || (Te(pt, p), c = !0), ln(function() {
3118
+ }(l = w) || c || (Te(pt, p), c = !0), ln(function() {
3119
3119
  return !u && i.next && i.next(S);
3120
3120
  }));
3121
3121
  }, function(S) {
@@ -3232,33 +3232,33 @@ var Di = Rr.exports;
3232
3232
  const Un = /* @__PURE__ */ Ai(Di), Cr = Symbol.for("Dexie"), Wn = globalThis[Cr] || (globalThis[Cr] = Un);
3233
3233
  if (Un.semVer !== Wn.semVer)
3234
3234
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Un.semVer} and ${Wn.semVer}`);
3235
- function X(w) {
3236
- let o = `${w.type}.${w.topics}`;
3237
- return w.order && (o += `.${w.order}`), w.period && (o += `.${w.period}`), o;
3235
+ function X(v) {
3236
+ let o = `${v.type}.${v.topics}`;
3237
+ return v.order && (o += `.${v.order}`), v.period && (o += `.${v.period}`), o;
3238
3238
  }
3239
- function nt(w) {
3239
+ function nt(v) {
3240
3240
  var o;
3241
- if (w.widget === void 0) {
3242
- const h = (o = w.topics) == null ? void 0 : o.split("-");
3243
- h && h.length > 1 ? (w.dashboard = h ? h[0] : "", w.widget = h ? h[1] : "") : (w.widget = w.topics, w.dashboard = w.slide);
3241
+ if (v.widget === void 0) {
3242
+ const d = (o = v.topics) == null ? void 0 : o.split("-");
3243
+ d && d.length > 1 ? (v.dashboard = d ? d[0] : "", v.widget = d ? d[1] : "") : (v.widget = v.topics, v.dashboard = v.slide);
3244
3244
  }
3245
- return w.topics === void 0 && (w.topics = `${w.dashboard}-${w.widget}`), w;
3245
+ return v.topics === void 0 && (v.topics = `${v.dashboard}-${v.widget}`), v;
3246
3246
  }
3247
- function vt(w, o) {
3247
+ function vt(v, o) {
3248
3248
  var N;
3249
- let h, m, I, B, j;
3250
- switch (w.moderation) {
3249
+ let d, m, I, B, j;
3250
+ switch (v.moderation) {
3251
3251
  case Xt.BEFORE:
3252
- h = /* @__PURE__ */ new Date(), m = (N = w.beforeTime) == null ? void 0 : N.split(":"), I = Number.parseInt(m ? m[0] : "00"), B = Number.parseInt(m ? m[1] : "00"), j = Number.parseInt(m ? m[2] : "00"), o.before = h.setHours(I, B, j, 0) / 1e3, o.period || (o.period = h.getDay() === 1 ? 72 : 24);
3252
+ d = /* @__PURE__ */ new Date(), m = (N = v.beforeTime) == null ? void 0 : N.split(":"), I = Number.parseInt(m ? m[0] : "00"), B = Number.parseInt(m ? m[1] : "00"), j = Number.parseInt(m ? m[2] : "00"), o.before = d.setHours(I, B, j, 0) / 1e3, o.period || (o.period = d.getDay() === 1 ? 72 : 24);
3253
3253
  break;
3254
3254
  case Xt.DELAYED:
3255
- w.delay && w.delay > 0 && (o.delay = `${w.delay}`);
3255
+ v.delay && v.delay > 0 && (o.delay = `${v.delay}`);
3256
3256
  break;
3257
3257
  case Xt.APPROVED:
3258
3258
  o.approved = "1";
3259
3259
  break;
3260
3260
  default:
3261
- w.period !== 0 && (o.period = w.period);
3261
+ v.period !== 0 && (o.period = v.period);
3262
3262
  }
3263
3263
  return o;
3264
3264
  }
@@ -3273,7 +3273,7 @@ class Tr {
3273
3273
  * @returns IResponse
3274
3274
  */
3275
3275
  P(this, "getCloud", async (o) => {
3276
- const h = await this.db.table(M.CLOUD).where({ id: o.widget }).last().catch(() => (console.warn(
3276
+ const d = await this.db.table(M.CLOUD).where({ id: o.widget }).last().catch(() => (console.warn(
3277
3277
  "%capi%C %ccloud",
3278
3278
  x.API,
3279
3279
  x.NONE,
@@ -3281,7 +3281,7 @@ class Tr {
3281
3281
  o.slide,
3282
3282
  o.widget
3283
3283
  ), { data: null, message: "Series Data error", success: !1 }));
3284
- return h.data.presentation = (o == null ? void 0 : o.presentation) || "not set", h.data.slide = (o == null ? void 0 : o.slide) || "not set", h.message = "Messages retrieved successfully", h.success = !0, h;
3284
+ return d.data.presentation = (o == null ? void 0 : o.presentation) || "not set", d.data.slide = (o == null ? void 0 : o.slide) || "not set", d.message = "Messages retrieved successfully", d.success = !0, d;
3285
3285
  });
3286
3286
  /**
3287
3287
  * Retrieve Cloud Data
@@ -3289,7 +3289,7 @@ class Tr {
3289
3289
  * @returns IResponse
3290
3290
  */
3291
3291
  P(this, "getSeries", async (o) => {
3292
- const h = await this.db.table(M.SERIES).where({ id: o.widget }).last().catch(() => (console.warn(
3292
+ const d = await this.db.table(M.SERIES).where({ id: o.widget }).last().catch(() => (console.warn(
3293
3293
  "%capi%c %cseries",
3294
3294
  x.API,
3295
3295
  x.NONE,
@@ -3297,7 +3297,7 @@ class Tr {
3297
3297
  o.slide,
3298
3298
  o.widget
3299
3299
  ), { data: null, message: "Series Data error", success: !1 }));
3300
- return h.data.presentation = (o == null ? void 0 : o.presentation) || "not set", h.data.slide = (o == null ? void 0 : o.slide) || "not set", h.message = "Messages retrieved successfully", h.success = !0, h;
3300
+ return d.data.presentation = (o == null ? void 0 : o.presentation) || "not set", d.data.slide = (o == null ? void 0 : o.slide) || "not set", d.message = "Messages retrieved successfully", d.success = !0, d;
3301
3301
  });
3302
3302
  /**
3303
3303
  * Retrieve Cloud Data
@@ -3305,9 +3305,9 @@ class Tr {
3305
3305
  * @returns IResponse
3306
3306
  */
3307
3307
  P(this, "getMessages", async (o) => {
3308
- const h = (B) => B.widget_id === o.widget, m = (B) => B.utc > ((o == null ? void 0 : o.since) || 0), I = (B) => (B == null ? void 0 : B.visible) !== 0;
3308
+ const d = (B) => B.widget_id === o.widget, m = (B) => B.utc > ((o == null ? void 0 : o.since) || 0), I = (B) => (B == null ? void 0 : B.visible) !== 0;
3309
3309
  try {
3310
- const B = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(h).filter(m).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3310
+ const B = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(d).filter(m).filter(I).limit((o == null ? void 0 : o.limit) ?? 25).toArray().catch(() => (console.warn(
3311
3311
  "%capi%c %cmessages",
3312
3312
  x.API,
3313
3313
  x.NONE,
@@ -3341,10 +3341,10 @@ class Tr {
3341
3341
  * @param data
3342
3342
  * @returns number
3343
3343
  */
3344
- P(this, "setCloud", async (o, h) => o.type === M.CLOUD && h !== "" ? await this.db.table(M.CLOUD).put({
3344
+ P(this, "setCloud", async (o, d) => o.type === M.CLOUD && d !== "" ? await this.db.table(M.CLOUD).put({
3345
3345
  id: o.widget,
3346
3346
  dashboard_id: o.dashboard,
3347
- data: h.data
3347
+ data: d.data
3348
3348
  }).then(() => 201).catch((m) => (console.error("%cstorage", x.STORAGE, "set", o, m), 400)) : 400);
3349
3349
  /**
3350
3350
  * Update Series
@@ -3352,10 +3352,10 @@ class Tr {
3352
3352
  * @param data
3353
3353
  * @returns number
3354
3354
  */
3355
- P(this, "setSeries", async (o, h) => o.type === M.SERIES && h !== "" ? await this.db.table(M.SERIES).put({
3355
+ P(this, "setSeries", async (o, d) => o.type === M.SERIES && d !== "" ? await this.db.table(M.SERIES).put({
3356
3356
  id: o.widget,
3357
3357
  dashboard_id: o.dashboard,
3358
- data: h.data
3358
+ data: d.data
3359
3359
  }).then(() => 201).catch((m) => (console.error("%cstorage", x.STORAGE, "set", o, m), 400)) : 400);
3360
3360
  /**
3361
3361
  * Update Messages
@@ -3366,12 +3366,12 @@ class Tr {
3366
3366
  * @param data.data.messages IMessages
3367
3367
  * @returns number
3368
3368
  */
3369
- P(this, "setMessages", async (o, h) => {
3369
+ P(this, "setMessages", async (o, d) => {
3370
3370
  if (o.type !== M.MESSAGES)
3371
3371
  return 400;
3372
- const m = h.title;
3372
+ const m = d.title;
3373
3373
  try {
3374
- return h.data.messages.forEach(async (I) => {
3374
+ return d.data.messages.forEach(async (I) => {
3375
3375
  var B, j, N;
3376
3376
  await this.db.table(M.MESSAGES).put({ id: I.id, utc: I.utc, data: I }), await this.db.table(M.TOPICS).put({
3377
3377
  widget_id: o.widget,
@@ -3394,7 +3394,7 @@ class Tr {
3394
3394
  * @param retentionDuration
3395
3395
  */
3396
3396
  P(this, "cleanMessages", async (o) => {
3397
- const h = Date.now() / 1e3, m = (I) => I.utc < o - h;
3397
+ const d = Date.now() / 1e3, m = (I) => I.utc < o - d;
3398
3398
  await this.db.table("topics").orderBy("utc").filter(m).modify((I, B) => {
3399
3399
  delete B.value;
3400
3400
  });
@@ -3408,7 +3408,7 @@ class Tr {
3408
3408
  id: o.widget,
3409
3409
  dashboard_id: o.dashboard,
3410
3410
  type: o.type
3411
- }).then(() => 201).catch((h) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, h), 400)));
3411
+ }).then(() => 201).catch((d) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, d), 400)));
3412
3412
  /**
3413
3413
  * Add component subscriber
3414
3414
  * @param query IQuery
@@ -3443,42 +3443,42 @@ class Tr {
3443
3443
  }), this.db.open();
3444
3444
  }
3445
3445
  }
3446
- function zn(w) {
3447
- return new Promise((o, h) => {
3448
- w.oncomplete = w.onsuccess = () => o(w.result), w.onabort = w.onerror = () => h(w.error);
3446
+ function zn(v) {
3447
+ return new Promise((o, d) => {
3448
+ v.oncomplete = v.onsuccess = () => o(v.result), v.onabort = v.onerror = () => d(v.error);
3449
3449
  });
3450
3450
  }
3451
- function Pi(w, o) {
3452
- const h = indexedDB.open(w);
3453
- h.onupgradeneeded = () => h.result.createObjectStore(o);
3454
- const m = zn(h);
3451
+ function Pi(v, o) {
3452
+ const d = indexedDB.open(v);
3453
+ d.onupgradeneeded = () => d.result.createObjectStore(o);
3454
+ const m = zn(d);
3455
3455
  return (I, B) => m.then((j) => B(j.transaction(o, I).objectStore(o)));
3456
3456
  }
3457
3457
  let Gn;
3458
3458
  function jr() {
3459
3459
  return Gn || (Gn = Pi("keyval-store", "keyval")), Gn;
3460
3460
  }
3461
- function Ln(w, o = jr()) {
3462
- return o("readonly", (h) => zn(h.get(w)));
3461
+ function Ln(v, o = jr()) {
3462
+ return o("readonly", (d) => zn(d.get(v)));
3463
3463
  }
3464
- function Vt(w, o, h = jr()) {
3465
- return h("readwrite", (m) => (m.put(o, w), zn(m.transaction)));
3464
+ function Vt(v, o, d = jr()) {
3465
+ return d("readwrite", (m) => (m.put(o, v), zn(m.transaction)));
3466
3466
  }
3467
3467
  class Mr {
3468
3468
  constructor(o) {
3469
3469
  P(this, "subscribers", []);
3470
3470
  P(this, "options");
3471
3471
  P(this, "getCloud", async (o) => {
3472
- const h = X(o);
3473
- return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3472
+ const d = X(o);
3473
+ return await Ln(d).then((m) => m).catch(() => (console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3474
3474
  });
3475
3475
  P(this, "getSeries", async (o) => {
3476
- const h = X(o);
3477
- return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3476
+ const d = X(o);
3477
+ return await Ln(d).then((m) => m).catch(() => (console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3478
3478
  });
3479
3479
  P(this, "getMessages", async (o) => {
3480
- const h = X(o);
3481
- return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3480
+ const d = X(o);
3481
+ return await Ln(d).then((m) => m).catch(() => (console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3482
3482
  });
3483
3483
  /**
3484
3484
  * Update Cloud
@@ -3486,11 +3486,11 @@ class Mr {
3486
3486
  * @param data
3487
3487
  * @returns number
3488
3488
  */
3489
- P(this, "setCloud", async (o, h) => {
3490
- if (!h.success)
3489
+ P(this, "setCloud", async (o, d) => {
3490
+ if (!d.success)
3491
3491
  return 400;
3492
3492
  const m = X(o);
3493
- return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400));
3493
+ return delete d.success, delete d.message, await Vt(m, d).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400));
3494
3494
  });
3495
3495
  /**
3496
3496
  * Update Series
@@ -3498,11 +3498,11 @@ class Mr {
3498
3498
  * @param data
3499
3499
  * @returns bumber
3500
3500
  */
3501
- P(this, "setSeries", async (o, h) => {
3502
- if (!h.success)
3501
+ P(this, "setSeries", async (o, d) => {
3502
+ if (!d.success)
3503
3503
  return 400;
3504
3504
  const m = X(o);
3505
- return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400));
3505
+ return delete d.success, delete d.message, await Vt(m, d).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400));
3506
3506
  });
3507
3507
  /**
3508
3508
  * Update Messages
@@ -3510,25 +3510,25 @@ class Mr {
3510
3510
  * @param data
3511
3511
  * @returns number
3512
3512
  */
3513
- P(this, "setMessages", async (o, h) => {
3514
- if (!h.success)
3513
+ P(this, "setMessages", async (o, d) => {
3514
+ if (!d.success)
3515
3515
  return 400;
3516
3516
  const m = X(o);
3517
- return delete h.success, delete h.message, await Vt(m, h).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400));
3517
+ return delete d.success, delete d.message, await Vt(m, d).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400));
3518
3518
  });
3519
- P(this, "cleanMessages", async (o) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((h) => h())));
3519
+ P(this, "cleanMessages", async (o) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((d) => d())));
3520
3520
  /**
3521
3521
  * Update Cloud
3522
3522
  * @param query IQuery
3523
3523
  * @returns number
3524
3524
  */
3525
3525
  P(this, "setWidget", async (o) => {
3526
- const h = X(o), m = {
3526
+ const d = X(o), m = {
3527
3527
  id: o.widget,
3528
3528
  dashboard_id: o.dashboard,
3529
3529
  type: o.type
3530
3530
  };
3531
- return await Vt(h, m).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, I), 400));
3531
+ return await Vt(d, m).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, M.WIDGET, o, I), 400));
3532
3532
  });
3533
3533
  /**
3534
3534
  * Add component subscriber
@@ -3558,25 +3558,25 @@ class Kr {
3558
3558
  P(this, "subscribers", []);
3559
3559
  P(this, "options");
3560
3560
  P(this, "getCloud", async (o) => {
3561
- const h = X(o);
3561
+ const d = X(o);
3562
3562
  try {
3563
- return localStorage.getObject(h);
3563
+ return localStorage.getObject(d);
3564
3564
  } catch {
3565
3565
  return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3566
3566
  }
3567
3567
  });
3568
3568
  P(this, "getSeries", async (o) => {
3569
- const h = X(o);
3569
+ const d = X(o);
3570
3570
  try {
3571
- return localStorage.getObject(h);
3571
+ return localStorage.getObject(d);
3572
3572
  } catch {
3573
3573
  return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3574
3574
  }
3575
3575
  });
3576
3576
  P(this, "getMessages", async (o) => {
3577
- const h = X(o);
3577
+ const d = X(o);
3578
3578
  try {
3579
- return localStorage.getObject(h);
3579
+ return localStorage.getObject(d);
3580
3580
  } catch {
3581
3581
  return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3582
3582
  }
@@ -3587,10 +3587,10 @@ class Kr {
3587
3587
  * @param data
3588
3588
  * @returns number
3589
3589
  */
3590
- P(this, "setCloud", async (o, h) => {
3590
+ P(this, "setCloud", async (o, d) => {
3591
3591
  const m = X(o);
3592
3592
  try {
3593
- return localStorage.setObject(m, h), 201;
3593
+ return localStorage.setObject(m, d), 201;
3594
3594
  } catch (I) {
3595
3595
  return console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400;
3596
3596
  }
@@ -3601,10 +3601,10 @@ class Kr {
3601
3601
  * @param data
3602
3602
  * @returns number
3603
3603
  */
3604
- P(this, "setSeries", async (o, h) => {
3604
+ P(this, "setSeries", async (o, d) => {
3605
3605
  const m = X(o);
3606
3606
  try {
3607
- return localStorage.setObject(m, h), 201;
3607
+ return localStorage.setObject(m, d), 201;
3608
3608
  } catch (I) {
3609
3609
  return console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400;
3610
3610
  }
@@ -3615,10 +3615,10 @@ class Kr {
3615
3615
  * @param data
3616
3616
  * @returns number
3617
3617
  */
3618
- P(this, "setMessages", async (o, h) => {
3618
+ P(this, "setMessages", async (o, d) => {
3619
3619
  const m = X(o);
3620
3620
  try {
3621
- return localStorage.setObject(m, h), 200;
3621
+ return localStorage.setObject(m, d), 200;
3622
3622
  } catch (I) {
3623
3623
  return console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400;
3624
3624
  }
@@ -3627,9 +3627,9 @@ class Kr {
3627
3627
  console.log("cleanMessages not implemented for ", this.options.storage);
3628
3628
  });
3629
3629
  P(this, "setWidget", async (o) => {
3630
- const h = `widget.${o.widget}`;
3630
+ const d = `widget.${o.widget}`;
3631
3631
  try {
3632
- return localStorage.setObject(h, o), 201;
3632
+ return localStorage.setObject(d, o), 201;
3633
3633
  } catch (m) {
3634
3634
  return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3635
3635
  }
@@ -3654,10 +3654,10 @@ class Kr {
3654
3654
  * @returns IQuery[]
3655
3655
  */
3656
3656
  P(this, "getSubscribers", async () => await new Promise((o) => o(this.subscribers)));
3657
- this.options = o, Storage.prototype.setObject = function(h, m) {
3658
- this.setObject(h, JSON.stringify(m));
3659
- }, Storage.prototype.getObject = function(h) {
3660
- const m = this.getObject(h);
3657
+ this.options = o, Storage.prototype.setObject = function(d, m) {
3658
+ this.setObject(d, JSON.stringify(m));
3659
+ }, Storage.prototype.getObject = function(d) {
3660
+ const m = this.getObject(d);
3661
3661
  return m && JSON.parse(m);
3662
3662
  };
3663
3663
  }
@@ -3667,25 +3667,25 @@ class Br {
3667
3667
  P(this, "subscribers", []);
3668
3668
  P(this, "options");
3669
3669
  P(this, "getCloud", async (o) => {
3670
- const h = X(o);
3670
+ const d = X(o);
3671
3671
  try {
3672
- return sessionStorage.getObject(h);
3672
+ return sessionStorage.getObject(d);
3673
3673
  } catch {
3674
3674
  return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3675
3675
  }
3676
3676
  });
3677
3677
  P(this, "getSeries", async (o) => {
3678
- const h = X(o);
3678
+ const d = X(o);
3679
3679
  try {
3680
- return sessionStorage.getObject(h);
3680
+ return sessionStorage.getObject(d);
3681
3681
  } catch {
3682
3682
  return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3683
3683
  }
3684
3684
  });
3685
3685
  P(this, "getMessages", async (o) => {
3686
- const h = X(o);
3686
+ const d = X(o);
3687
3687
  try {
3688
- return sessionStorage.getObject(h);
3688
+ return sessionStorage.getObject(d);
3689
3689
  } catch {
3690
3690
  return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3691
3691
  }
@@ -3696,10 +3696,10 @@ class Br {
3696
3696
  * @param data
3697
3697
  * @returns number
3698
3698
  */
3699
- P(this, "setCloud", async (o, h) => {
3699
+ P(this, "setCloud", async (o, d) => {
3700
3700
  const m = X(o);
3701
3701
  try {
3702
- return sessionStorage.setObject(m, h), 201;
3702
+ return sessionStorage.setObject(m, d), 201;
3703
3703
  } catch (I) {
3704
3704
  return console.error("%cstorage", x.STORAGE, M.CLOUD, o, I), 400;
3705
3705
  }
@@ -3710,10 +3710,10 @@ class Br {
3710
3710
  * @param data
3711
3711
  * @returns number
3712
3712
  */
3713
- P(this, "setSeries", async (o, h) => {
3713
+ P(this, "setSeries", async (o, d) => {
3714
3714
  const m = X(o);
3715
3715
  try {
3716
- return sessionStorage.setObject(m, h), 201;
3716
+ return sessionStorage.setObject(m, d), 201;
3717
3717
  } catch (I) {
3718
3718
  return console.error("%cstorage", x.STORAGE, M.SERIES, o, I), 400;
3719
3719
  }
@@ -3724,10 +3724,10 @@ class Br {
3724
3724
  * @param data
3725
3725
  * @returns number
3726
3726
  */
3727
- P(this, "setMessages", async (o, h) => {
3727
+ P(this, "setMessages", async (o, d) => {
3728
3728
  const m = X(o);
3729
3729
  try {
3730
- return sessionStorage.setObject(m, h), 200;
3730
+ return sessionStorage.setObject(m, d), 200;
3731
3731
  } catch (I) {
3732
3732
  return console.error("%cstorage", x.STORAGE, M.MESSAGES, o, I), 400;
3733
3733
  }
@@ -3736,9 +3736,9 @@ class Br {
3736
3736
  console.log("cleanMessages not implemented for ", this.options.storage);
3737
3737
  });
3738
3738
  P(this, "setWidget", async (o) => {
3739
- const h = `widget.${o.widget}`;
3739
+ const d = `widget.${o.widget}`;
3740
3740
  try {
3741
- return sessionStorage.setObject(h, o), 201;
3741
+ return sessionStorage.setObject(d, o), 201;
3742
3742
  } catch (m) {
3743
3743
  return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3744
3744
  }
@@ -3763,10 +3763,10 @@ class Br {
3763
3763
  * @returns IQuery[]
3764
3764
  */
3765
3765
  P(this, "getSubscribers", async () => await new Promise((o) => o(this.subscribers)));
3766
- this.options = o, Storage.prototype.setObject = function(h, m) {
3767
- this.setItem(h, JSON.stringify(m));
3768
- }, Storage.prototype.getObject = function(h) {
3769
- const m = this.getItem(h);
3766
+ this.options = o, Storage.prototype.setObject = function(d, m) {
3767
+ this.setItem(d, JSON.stringify(m));
3768
+ }, Storage.prototype.getObject = function(d) {
3769
+ const m = this.getItem(d);
3770
3770
  return m && JSON.parse(m);
3771
3771
  };
3772
3772
  }
@@ -3776,25 +3776,25 @@ class Nr {
3776
3776
  P(this, "subscribers", []);
3777
3777
  P(this, "options");
3778
3778
  P(this, "getCloud", async (o) => {
3779
- const h = X(o);
3779
+ const d = X(o);
3780
3780
  try {
3781
- return window.BuzzCasting.WidgetData[h];
3781
+ return window.BuzzCasting.WidgetData[d];
3782
3782
  } catch {
3783
3783
  return console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 };
3784
3784
  }
3785
3785
  });
3786
3786
  P(this, "getSeries", async (o) => {
3787
- const h = X(o);
3787
+ const d = X(o);
3788
3788
  try {
3789
- return window.BuzzCasting.WidgetData[h];
3789
+ return window.BuzzCasting.WidgetData[d];
3790
3790
  } catch {
3791
3791
  return console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 };
3792
3792
  }
3793
3793
  });
3794
3794
  P(this, "getMessages", async (o) => {
3795
- const h = X(o);
3795
+ const d = X(o);
3796
3796
  try {
3797
- return window.BuzzCasting.WidgetData[h];
3797
+ return window.BuzzCasting.WidgetData[d];
3798
3798
  } catch {
3799
3799
  return console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 };
3800
3800
  }
@@ -3805,10 +3805,10 @@ class Nr {
3805
3805
  * @param data
3806
3806
  * @returns number
3807
3807
  */
3808
- P(this, "setCloud", async (o, h) => {
3808
+ P(this, "setCloud", async (o, d) => {
3809
3809
  const m = X(o);
3810
3810
  try {
3811
- return window.BuzzCasting.WidgetData[m] = h, 201;
3811
+ return window.BuzzCasting.WidgetData[m] = d, 201;
3812
3812
  } catch (I) {
3813
3813
  return console.error("%cstorage", x.STORAGE, "set", o, I), 400;
3814
3814
  }
@@ -3819,10 +3819,10 @@ class Nr {
3819
3819
  * @param data
3820
3820
  * @returns number
3821
3821
  */
3822
- P(this, "setSeries", async (o, h) => {
3822
+ P(this, "setSeries", async (o, d) => {
3823
3823
  const m = X(o);
3824
3824
  try {
3825
- return window.BuzzCasting.WidgetData[m] = h, 201;
3825
+ return window.BuzzCasting.WidgetData[m] = d, 201;
3826
3826
  } catch (I) {
3827
3827
  return console.error("%cstorage", x.STORAGE, "set", o, I), 400;
3828
3828
  }
@@ -3833,10 +3833,10 @@ class Nr {
3833
3833
  * @param data
3834
3834
  * @returns number
3835
3835
  */
3836
- P(this, "setMessages", async (o, h) => {
3836
+ P(this, "setMessages", async (o, d) => {
3837
3837
  const m = X(o);
3838
3838
  try {
3839
- return window.BuzzCasting.WidgetData[m] = h, 201;
3839
+ return window.BuzzCasting.WidgetData[m] = d, 201;
3840
3840
  } catch (I) {
3841
3841
  return console.error("%cstorage", x.STORAGE, "set", o, I), 400;
3842
3842
  }
@@ -3845,9 +3845,9 @@ class Nr {
3845
3845
  console.log("cleanMessages not implemented for ", this.options.storage);
3846
3846
  });
3847
3847
  P(this, "setWidget", async (o) => {
3848
- const h = `widget.${o.widget}`;
3848
+ const d = `widget.${o.widget}`;
3849
3849
  try {
3850
- return window.BuzzCasting.WidgetData[h] = o, 201;
3850
+ return window.BuzzCasting.WidgetData[d] = o, 201;
3851
3851
  } catch (m) {
3852
3852
  return console.error("%cstorage", x.STORAGE, M.WIDGET, o, m), 400;
3853
3853
  }
@@ -3875,50 +3875,58 @@ class Nr {
3875
3875
  this.options = o, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3876
3876
  }
3877
3877
  }
3878
- function Ii(w) {
3878
+ function Bi(v) {
3879
3879
  const o = {};
3880
- for (let h = 0; h < w.length; h++) {
3881
- const m = w[h];
3880
+ for (let d = 0; d < v.length; d++) {
3881
+ const m = v[d];
3882
3882
  m.name !== "class" && !m.name.includes("data") && (o[m.name] = m.value);
3883
3883
  }
3884
3884
  return o;
3885
3885
  }
3886
- function Ki(w) {
3887
- return w.replace(/(?:^\w|[A-Z]|\b\w)/g, (o, h) => h === 0 ? o.toLowerCase() : o.toUpperCase()).replace(/\s+/g, "");
3886
+ function Ii(v) {
3887
+ const o = {};
3888
+ for (let d = 0; d < v.length; d++) {
3889
+ const m = v[d];
3890
+ m.name !== "class" && (o[m.name] = Ci(m.value));
3891
+ }
3892
+ return o;
3888
3893
  }
3889
- function Bi(w) {
3890
- return w.toLowerCase().split("-").reduce((o, h) => o + (h.charAt(0).toUpperCase() + h.slice(1)));
3894
+ function Ni(v) {
3895
+ return v.replace(/(?:^\w|[A-Z]|\b\w)/g, (o, d) => d === 0 ? o.toLowerCase() : o.toUpperCase()).replace(/\s+/g, "");
3891
3896
  }
3892
- function Ci(w, o) {
3893
- for (; w.length < o; )
3894
- w = `0${w}`;
3895
- return w;
3897
+ function Ci(v) {
3898
+ return v.toLowerCase().split("-").reduce((o, d) => o + (d.charAt(0).toUpperCase() + d.slice(1)));
3896
3899
  }
3897
- function Oe(w, o) {
3898
- let h, m, I;
3900
+ function Ri(v, o) {
3901
+ for (; v.length < o; )
3902
+ v = `0${v}`;
3903
+ return v;
3904
+ }
3905
+ function Oe(v, o) {
3906
+ let d, m, I;
3899
3907
  if (o.length === 0)
3900
- return w;
3901
- for (h = 0, I = o.length; h < I; h++)
3902
- m = o.charCodeAt(h), w = (w << 5) - w + m, w |= 0;
3903
- return w < 0 ? w * -2 : w;
3908
+ return v;
3909
+ for (d = 0, I = o.length; d < I; d++)
3910
+ m = o.charCodeAt(d), v = (v << 5) - v + m, v |= 0;
3911
+ return v < 0 ? v * -2 : v;
3904
3912
  }
3905
- function Ri(w, o, h) {
3906
- return Object.keys(o).sort().reduce(m, w);
3913
+ function Ti(v, o, d) {
3914
+ return Object.keys(o).sort().reduce(m, v);
3907
3915
  function m(I, B) {
3908
- return Gr(I, o[B], B, h);
3916
+ return Gr(I, o[B], B, d);
3909
3917
  }
3910
3918
  }
3911
- function Gr(w, o, h, m) {
3912
- const I = Oe(Oe(Oe(w, h), Ti(o)), typeof o);
3919
+ function Gr(v, o, d, m) {
3920
+ const I = Oe(Oe(Oe(v, d), ji(o)), typeof o);
3913
3921
  if (o === null)
3914
3922
  return Oe(I, "null");
3915
3923
  if (o === void 0)
3916
3924
  return Oe(I, "undefined");
3917
3925
  if (typeof o == "object" || typeof o == "function") {
3918
3926
  if (m.includes(o))
3919
- return Oe(I, `[Circular]${h}`);
3927
+ return Oe(I, `[Circular]${d}`);
3920
3928
  m.push(o);
3921
- const B = Ri(I, o, m);
3929
+ const B = Ti(I, o, m);
3922
3930
  if (!("valueOf" in o) || typeof o.valueOf != "function")
3923
3931
  return B;
3924
3932
  try {
@@ -3929,13 +3937,13 @@ function Gr(w, o, h, m) {
3929
3937
  }
3930
3938
  return Oe(I, o.toString());
3931
3939
  }
3932
- function Ti(w) {
3933
- return Object.prototype.toString.call(w);
3940
+ function ji(v) {
3941
+ return Object.prototype.toString.call(v);
3934
3942
  }
3935
- function Fn(w) {
3936
- return Ci(Gr(0, w, "", []).toString(16), 8);
3943
+ function Fn(v) {
3944
+ return Ri(Gr(0, v, "", []).toString(16), 8);
3937
3945
  }
3938
- class Ni {
3946
+ class Gi {
3939
3947
  constructor(o) {
3940
3948
  P(this, "sm");
3941
3949
  P(this, "api");
@@ -3944,11 +3952,11 @@ class Ni {
3944
3952
  P(this, "update", async (o) => {
3945
3953
  if (this.sm === null)
3946
3954
  return;
3947
- const h = await this.sm.getSubscribers();
3948
- if (h.length === 0)
3955
+ const d = await this.sm.getSubscribers();
3956
+ if (d.length === 0)
3949
3957
  return;
3950
3958
  const m = [];
3951
- o ? m.push(this.api.get(o)) : h == null || h.forEach((I) => {
3959
+ o ? m.push(this.api.get(o)) : d == null || d.forEach((I) => {
3952
3960
  m.push(this.api.get(I));
3953
3961
  }), await Promise.allSettled(m).then(
3954
3962
  (I) => I.forEach(async (B) => {
@@ -4048,10 +4056,10 @@ class Ni {
4048
4056
  this.api.hideMessage(o);
4049
4057
  });
4050
4058
  P(this, "actions", async (o) => {
4051
- var h;
4059
+ var d;
4052
4060
  switch (o.data.event) {
4053
4061
  case ue.SUBSCRIBE:
4054
- (h = this.sm) == null || h.subscribe(o.data.data);
4062
+ (d = this.sm) == null || d.subscribe(o.data.data);
4055
4063
  break;
4056
4064
  case ue.UPDATE:
4057
4065
  console.debug(
@@ -4066,8 +4074,8 @@ class Ni {
4066
4074
  }
4067
4075
  });
4068
4076
  P(this, "cleanMessages", async () => {
4069
- var h, m;
4070
- const o = ((h = this.options) == null ? void 0 : h.retention) || 345600;
4077
+ var d, m;
4078
+ const o = ((d = this.options) == null ? void 0 : d.retention) || 345600;
4071
4079
  return await ((m = this.sm) == null ? void 0 : m.cleanMessages(o));
4072
4080
  });
4073
4081
  // TODO: add checksum to avoid broadcasting update
@@ -4086,14 +4094,14 @@ class Ni {
4086
4094
  ue.VERSION,
4087
4095
  xi
4088
4096
  ), this.options = o, this.sm = null;
4089
- const h = (o == null ? void 0 : o.slide) || o.app;
4090
- switch (this.bc = new BroadcastChannel(h), console.info(
4097
+ const d = (o == null ? void 0 : o.slide) || o.app;
4098
+ switch (this.bc = new BroadcastChannel(d), console.info(
4091
4099
  "%capi%c %cbroadcast",
4092
4100
  x.API,
4093
4101
  x.NONE,
4094
4102
  x.BROADCAST,
4095
4103
  ue.CHANNEL,
4096
- h
4104
+ d
4097
4105
  ), this.bc.onmessage = (m) => {
4098
4106
  this.actions(m);
4099
4107
  }, this.bc.postMessage({ event: ue.STORAGE_INIT, data: {} }), this.api = new ki(o), o.storage) {
@@ -4115,7 +4123,7 @@ class Ni {
4115
4123
  }
4116
4124
  }
4117
4125
  }
4118
- class ji {
4126
+ class Mi {
4119
4127
  constructor(o) {
4120
4128
  P(this, "sm");
4121
4129
  /**
@@ -4124,7 +4132,7 @@ class ji {
4124
4132
  * @returns IResponse
4125
4133
  */
4126
4134
  P(this, "getCloud", async (o) => {
4127
- var h;
4135
+ var d;
4128
4136
  return o.type !== M.CLOUD ? (console.warn(
4129
4137
  "%capp%c %get",
4130
4138
  x.APP,
@@ -4137,7 +4145,7 @@ class ji {
4137
4145
  data: null,
4138
4146
  message: `'wrong method call for getMessages, type used is ${o.type}`,
4139
4147
  success: !1
4140
- }) : await ((h = this.sm) == null ? void 0 : h.getCloud(o));
4148
+ }) : await ((d = this.sm) == null ? void 0 : d.getCloud(o));
4141
4149
  });
4142
4150
  /**
4143
4151
  * Retieve Message Data
@@ -4145,7 +4153,7 @@ class ji {
4145
4153
  * @returns IResponse
4146
4154
  */
4147
4155
  P(this, "getMessages", async (o) => {
4148
- var h;
4156
+ var d;
4149
4157
  return o.type !== M.MESSAGES ? (console.warn(
4150
4158
  "%capp%c %get",
4151
4159
  x.APP,
@@ -4158,7 +4166,7 @@ class ji {
4158
4166
  data: null,
4159
4167
  message: `'wrong method call for getMessages, type used is ${o.type}`,
4160
4168
  success: !1
4161
- }) : await ((h = this.sm) == null ? void 0 : h.getMessages(o));
4169
+ }) : await ((d = this.sm) == null ? void 0 : d.getMessages(o));
4162
4170
  });
4163
4171
  /**
4164
4172
  * Retrieve Series Data
@@ -4166,7 +4174,7 @@ class ji {
4166
4174
  * @returns IResponse
4167
4175
  */
4168
4176
  P(this, "getSeries", async (o) => {
4169
- var h;
4177
+ var d;
4170
4178
  return o.type !== M.SERIES ? (console.warn(
4171
4179
  "%capp%c %get",
4172
4180
  x.APP,
@@ -4179,7 +4187,7 @@ class ji {
4179
4187
  data: null,
4180
4188
  message: `'wrong method call for getSeries, type used is ${o.type}`,
4181
4189
  success: !1
4182
- }) : await ((h = this.sm) == null ? void 0 : h.getSeries(o));
4190
+ }) : await ((d = this.sm) == null ? void 0 : d.getSeries(o));
4183
4191
  });
4184
4192
  switch (this.sm = null, o.storage) {
4185
4193
  case he.DEXIE:
@@ -4200,8 +4208,8 @@ class ji {
4200
4208
  }
4201
4209
  }
4202
4210
  }
4203
- var M = /* @__PURE__ */ ((w) => (w.MESSAGES = "messages", w.CLOUD = "cloud", w.SERIES = "series", w.TOPICS = "topics", w.WIDGET = "widget", w.WIDGETS = "widgets", w))(M || {}), x = /* @__PURE__ */ ((w) => (w.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", w.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", w.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", w.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", w.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", w.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", w.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", w.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", w.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", w.NONE = "color:transparent;background-color:transparent;", w.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", w.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", w.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", w.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", w.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", w.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", w.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", w))(x || {}), ue = /* @__PURE__ */ ((w) => (w.ADD_SLIDE = "addSlide", w.APP_READY = "appReady", w.API_UPDATE = "apiUpdate", w.APPROVE_MESSAGE = "approveMessage", w.CHANNEL = "channel", w.ERROR = "error", w.GOTO_SLIDE = "gotoSlide", w.HIDE_MESSAGE = "hideMessage", w.NEXT_SLIDE = "nextSlide", w.PAUSE_PRESENTATION = "pausePresentation", w.PRESENTATION_READY = "presentationReady", w.PREV_SLIDE = "prevSlide", w.RELOAD_PRESENTATION = "reloadPresentation", w.SHOW_MODAL = "showModal", w.STAR_MESSAGE = "starMessage", w.SLIDE_DID_LOAD = "slideDidLoad", w.SLIDE_GOTO = "slideGoto", w.SLIDE_READY = "slideReady", w.SLIDE_TRANSITIONER = "slideTransitioner", w.START_TRANSITIONER = "startTransitioner", w.STORAGE_INIT = "stroageInit", w.SUBSCRIBE = "subscribe", w.UPDATE = "update", w.VERSION = "version", w.WIDGET_UPDATE = "widgetUpdate", w))(ue || {}), Xt = /* @__PURE__ */ ((w) => (w.APPROVED = "approved", w.BEFORE = "before", w.DELAYED = "delayed", w.NONE = "none", w.REALTIME = "realtime", w))(Xt || {}), he = /* @__PURE__ */ ((w) => (w.KEYVAL = "keyval", w.LOCAL = "local", w.SESSION = "session", w.DEXIE = "dexie", w.WINDOW = "window", w))(he || {});
4204
- class Gi {
4211
+ var M = /* @__PURE__ */ ((v) => (v.MESSAGES = "messages", v.CLOUD = "cloud", v.SERIES = "series", v.TOPICS = "topics", v.WIDGET = "widget", v.WIDGETS = "widgets", v))(M || {}), x = /* @__PURE__ */ ((v) => (v.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", v.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", v.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", v.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", v.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", v.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", v.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", v.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", v.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", v.NONE = "color:transparent;background-color:transparent;", v.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", v.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", v.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", v.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", v.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", v.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", v.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", v))(x || {}), ue = /* @__PURE__ */ ((v) => (v.ADD_SLIDE = "addSlide", v.APP_READY = "appReady", v.API_UPDATE = "apiUpdate", v.APPROVE_MESSAGE = "approveMessage", v.CHANNEL = "channel", v.ERROR = "error", v.GOTO_SLIDE = "gotoSlide", v.HIDE_MESSAGE = "hideMessage", v.NEXT_SLIDE = "nextSlide", v.PAUSE_PRESENTATION = "pausePresentation", v.PRESENTATION_READY = "presentationReady", v.PREV_SLIDE = "prevSlide", v.RELOAD_PRESENTATION = "reloadPresentation", v.SHOW_MODAL = "showModal", v.STAR_MESSAGE = "starMessage", v.SLIDE_DID_LOAD = "slideDidLoad", v.SLIDE_GOTO = "slideGoto", v.SLIDE_READY = "slideReady", v.SLIDE_TRANSITIONER = "slideTransitioner", v.START_TRANSITIONER = "startTransitioner", v.STORAGE_INIT = "stroageInit", v.SUBSCRIBE = "subscribe", v.UPDATE = "update", v.VERSION = "version", v.WIDGET_UPDATE = "widgetUpdate", v))(ue || {}), Xt = /* @__PURE__ */ ((v) => (v.APPROVED = "approved", v.BEFORE = "before", v.DELAYED = "delayed", v.NONE = "none", v.REALTIME = "realtime", v))(Xt || {}), he = /* @__PURE__ */ ((v) => (v.KEYVAL = "keyval", v.LOCAL = "local", v.SESSION = "session", v.DEXIE = "dexie", v.WINDOW = "window", v))(he || {});
4212
+ class Li {
4205
4213
  /**
4206
4214
  * Main container for managing widgets and data updates
4207
4215
  *
@@ -4209,7 +4217,7 @@ class Gi {
4209
4217
  * @param callbacks functions in the widget that will receive the update
4210
4218
  * @param selector container for the element - by default buzzcasting-slide (optional)
4211
4219
  */
4212
- constructor(o, h, m) {
4220
+ constructor(o, d, m) {
4213
4221
  P(this, "storageReader");
4214
4222
  P(this, "broadcastChannel");
4215
4223
  P(this, "query");
@@ -4296,18 +4304,18 @@ class Gi {
4296
4304
  * @param modal IModal
4297
4305
  */
4298
4306
  P(this, "showModal", (o) => {
4299
- const h = { ...o.props, ...this.props };
4307
+ const d = { ...o.props, ...this.props };
4300
4308
  console.debug(
4301
4309
  "%cwidget",
4302
4310
  x.WIDGET,
4303
4311
  ue.SHOW_MODAL,
4304
4312
  o.showComponent,
4305
- h.widget
4313
+ d.widget
4306
4314
  );
4307
4315
  const m = new CustomEvent(ue.SHOW_MODAL, {
4308
4316
  detail: {
4309
4317
  component: o.showComponent,
4310
- props: h
4318
+ props: d
4311
4319
  },
4312
4320
  bubbles: !0,
4313
4321
  cancelable: !0,
@@ -4316,11 +4324,11 @@ class Gi {
4316
4324
  window.dispatchEvent(m);
4317
4325
  });
4318
4326
  var j;
4319
- m = typeof m < "u" ? m : "buzzcasting-slide", this.listeners = h;
4327
+ m = typeof m < "u" ? m : "buzzcasting-slide", this.listeners = d;
4320
4328
  let I;
4321
4329
  I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(m.toUpperCase())) == null ? void 0 : j.id) ?? `${m} not found`, I = nt(I), this.query = I, this.props = Ii(o.attributes);
4322
4330
  const B = window.BuzzCasting.getOptions();
4323
- this.storageReader = new ji(B), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4331
+ this.storageReader = new Mi(B), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4324
4332
  }
4325
4333
  addListener(o) {
4326
4334
  this.listeners.push(o);
@@ -4330,12 +4338,12 @@ class Gi {
4330
4338
  */
4331
4339
  startListener() {
4332
4340
  const o = this.query;
4333
- this.broadcastChannel.onmessage = async (h) => {
4334
- const m = h.data.data;
4335
- switch (h.data.event) {
4341
+ this.broadcastChannel.onmessage = async (d) => {
4342
+ const m = d.data.data;
4343
+ switch (d.data.event) {
4336
4344
  case ue.WIDGET_UPDATE:
4337
4345
  m.query.slide === o.slide && m.query.widget === o.widget && this.listeners.forEach((I) => {
4338
- I(h.data.data);
4346
+ I(d.data.data);
4339
4347
  });
4340
4348
  break;
4341
4349
  case ue.SLIDE_READY:
@@ -4367,15 +4375,15 @@ class Gi {
4367
4375
  }
4368
4376
  export {
4369
4377
  M as API,
4370
- Ni as BuzzcastingStorageManager,
4371
- ji as BuzzcastingStorageReader,
4378
+ Gi as BuzzcastingStorageManager,
4379
+ Mi as BuzzcastingStorageReader,
4372
4380
  x as CSS,
4373
4381
  ue as EVENTS,
4374
4382
  Xt as MODERATION,
4375
4383
  he as STORAGE,
4376
- Gi as Widget,
4377
- Bi as camelCase,
4378
- Ki as camelize,
4379
- Ii as filterAttributes,
4384
+ Li as Widget,
4385
+ Ci as camelCase,
4386
+ Ni as camelize,
4387
+ Bi as filterAttributes,
4380
4388
  nt as widgetParams
4381
4389
  };