buzzcasting-storage 2.16.13 → 2.16.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var xi = Object.defineProperty;
2
2
  var ki = (f, r, c) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : f[r] = c;
3
3
  var D = (f, r, c) => ki(f, typeof r != "symbol" ? r + "" : r, c);
4
- var M = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(M || {}), S = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(S || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
- const Ai = "2.16.12";
4
+ var M = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(M || {}), _ = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(_ || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
+ const Ai = "2.16.13";
6
6
  class Di {
7
7
  constructor(r) {
8
8
  D(this, "options");
@@ -37,9 +37,9 @@ class Di {
37
37
  const k = Object.keys(A).length > 0 ? `?${new URLSearchParams(A).toString()}` : "";
38
38
  return console.debug(
39
39
  "%capi%c %cget",
40
- S.API,
41
- S.NONE,
42
- S.GET_DATA,
40
+ _.API,
41
+ _.NONE,
42
+ _.GET_DATA,
43
43
  r.slide,
44
44
  r.widget
45
45
  ), await fetch(
@@ -55,9 +55,9 @@ class Di {
55
55
  const { version: c } = this.options, l = this.headers(), A = "?action=visible";
56
56
  return console.info(
57
57
  "%capi%c %cput",
58
- S.API,
59
- S.NONE,
60
- S.GET_DATA,
58
+ _.API,
59
+ _.NONE,
60
+ _.GET_DATA,
61
61
  re.HIDE_MESSAGE,
62
62
  r.widget,
63
63
  r.id
@@ -76,9 +76,9 @@ class Di {
76
76
  A.append(`custom_filters[${N}]`, B);
77
77
  return console.info(
78
78
  "%capi%c %cput",
79
- S.API,
80
- S.NONE,
81
- S.GET_DATA,
79
+ _.API,
80
+ _.NONE,
81
+ _.GET_DATA,
82
82
  re.HIDE_LABELS,
83
83
  r.widget,
84
84
  k
@@ -95,9 +95,9 @@ class Di {
95
95
  const { version: c } = this.options, l = this.headers(), A = Object.assign({}, r);
96
96
  return delete A.slide, delete A.type, delete A.hash, console.debug(
97
97
  "%capi%c %cget",
98
- S.API,
99
- S.NONE,
100
- S.SLIDE,
98
+ _.API,
99
+ _.NONE,
100
+ _.SLIDE,
101
101
  re.SLIDE_LOAD,
102
102
  r.slide
103
103
  ), await fetch(
@@ -122,9 +122,9 @@ class Di {
122
122
  const A = JSON.stringify(r);
123
123
  return console.info(
124
124
  "%capi%c %cput",
125
- S.API,
126
- S.NONE,
127
- S.SLIDE,
125
+ _.API,
126
+ _.NONE,
127
+ _.SLIDE,
128
128
  re.SLIDE_STORE,
129
129
  r.id
130
130
  ), await fetch(
@@ -973,8 +973,8 @@ var jr = { exports: {} };
973
973
  e.forEach(function(d, v) {
974
974
  var p = d.key, m = d.changes, w = u[v];
975
975
  if (w) {
976
- for (var y = 0, _ = Object.keys(m); y < _.length; y++) {
977
- var E = _[y], O = m[E];
976
+ for (var y = 0, S = Object.keys(m); y < S.length; y++) {
977
+ var E = S[y], O = m[E];
978
978
  if (E === t.schema.primKey.keyPath) {
979
979
  if (H(O, p) !== 0) throw new G.Constraint("Cannot update primary key in bulkUpdate()");
980
980
  } else de(w, E, O);
@@ -987,8 +987,8 @@ var jr = { exports: {} };
987
987
  var v = d.numFailures, p = d.failures;
988
988
  if (v === 0) return b;
989
989
  for (var m = 0, w = Object.keys(p); m < w.length; m++) {
990
- var y, _ = w[m], E = o[Number(_)];
991
- E != null && (y = p[_], delete p[_], p[E] = y);
990
+ var y, S = w[m], E = o[Number(S)];
991
+ E != null && (y = p[S], delete p[S], p[E] = y);
992
992
  }
993
993
  throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(v, " of ").concat(b, " operations failed"), p);
994
994
  });
@@ -1305,11 +1305,11 @@ var jr = { exports: {} };
1305
1305
  return this._write(function(i) {
1306
1306
  var a, o, s;
1307
1307
  s = typeof e == "function" ? e : (a = N(e), o = a.length, function(y) {
1308
- for (var _ = !1, E = 0; E < o; ++E) {
1308
+ for (var S = !1, E = 0; E < o; ++E) {
1309
1309
  var O = a[E], x = e[O], I = ve(y, O);
1310
- x instanceof ht ? (de(y, O, x.execute(I)), _ = !0) : I !== x && (de(y, O, x), _ = !0);
1310
+ x instanceof ht ? (de(y, O, x.execute(I)), S = !0) : I !== x && (de(y, O, x), S = !0);
1311
1311
  }
1312
- return _;
1312
+ return S;
1313
1313
  });
1314
1314
  function u(y, O) {
1315
1315
  var E = O.failures, O = O.numFailures;
@@ -1321,7 +1321,7 @@ var jr = { exports: {} };
1321
1321
  }
1322
1322
  var g = n.table.core, h = g.schema.primaryKey, b = h.outbound, d = h.extractKey, v = t.db._options.modifyChunkSize || 200, p = [], m = 0, w = [];
1323
1323
  return t.clone().primaryKeys().then(function(y) {
1324
- function _(O) {
1324
+ function S(O) {
1325
1325
  var x = Math.min(v, y.length - O);
1326
1326
  return g.getMany({ trans: i, keys: y.slice(O, O + x), cache: "immutable" }).then(function(I) {
1327
1327
  for (var T = [], C = [], R = b ? [] : null, j = [], P = 0; P < x; ++P) {
@@ -1340,12 +1340,12 @@ var jr = { exports: {} };
1340
1340
  return u(j.length, z);
1341
1341
  });
1342
1342
  }).then(function() {
1343
- return y.length > O + x && _(O + v);
1343
+ return y.length > O + x && S(O + v);
1344
1344
  });
1345
1345
  });
1346
1346
  }
1347
1347
  var E = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === mn) && { index: n.index, range: n.range };
1348
- return _(0).then(function() {
1348
+ return S(0).then(function() {
1349
1349
  if (0 < p.length) throw new Et("Error modifying one or more objects", p, m, w);
1350
1350
  return y.length;
1351
1351
  });
@@ -1402,8 +1402,8 @@ var jr = { exports: {} };
1402
1402
  }, s = m === "next" ? oi : si;
1403
1403
  var w = n.map(function(y) {
1404
1404
  return { lower: o(y), upper: a(y) };
1405
- }).sort(function(y, _) {
1406
- return s(y.lower, _.lower);
1405
+ }).sort(function(y, S) {
1406
+ return s(y.lower, S.lower);
1407
1407
  });
1408
1408
  u = w.map(function(y) {
1409
1409
  return y.upper;
@@ -1418,9 +1418,9 @@ var jr = { exports: {} };
1418
1418
  };
1419
1419
  var p = 0;
1420
1420
  return e._addAlgorithm(function(m, w, y) {
1421
- var _ = m.key;
1422
- if (typeof _ != "string") return !1;
1423
- var E = o(_);
1421
+ var S = m.key;
1422
+ if (typeof S != "string") return !1;
1423
+ var E = o(S);
1424
1424
  if (t(E, g, p)) return !0;
1425
1425
  for (var O = null, x = p; x < d; ++x) {
1426
1426
  var I = function(T, C, R, j, P, $) {
@@ -1430,7 +1430,7 @@ var jr = { exports: {} };
1430
1430
  P(T[U], pe) < 0 && (z = U);
1431
1431
  }
1432
1432
  return F < j.length && $ === "next" ? T + R.substr(T.length) : F < T.length && $ === "prev" ? T.substr(0, R.length) : z < 0 ? null : T.substr(0, z) + j[z] + R.substr(z + 1);
1433
- }(_, E, u[x], g[x], s, h);
1433
+ }(S, E, u[x], g[x], s, h);
1434
1434
  I === null && O === null ? p = x + 1 : (O === null || 0 < s(O, I)) && (O = I);
1435
1435
  }
1436
1436
  return w(O !== null ? function() {
@@ -1532,10 +1532,10 @@ var jr = { exports: {} };
1532
1532
  return n ? n.concat([[n[n.length - 1][1], i]]) : [[-1 / 0, i]];
1533
1533
  }, null);
1534
1534
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
1535
- }, ae.prototype.inAnyRange = function(_, t) {
1535
+ }, ae.prototype.inAnyRange = function(S, t) {
1536
1536
  var n = this, i = this._cmp, a = this._ascending, o = this._descending, s = this._min, u = this._max;
1537
- if (_.length === 0) return et(this);
1538
- if (!_.every(function(E) {
1537
+ if (S.length === 0) return et(this);
1538
+ if (!S.every(function(E) {
1539
1539
  return E[0] !== void 0 && E[1] !== void 0 && a(E[0], E[1]) <= 0;
1540
1540
  })) return fe(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", G.InvalidArgument);
1541
1541
  var g = !t || t.includeLowers !== !1, h = t && t.includeUppers === !0, b, d = a;
@@ -1543,7 +1543,7 @@ var jr = { exports: {} };
1543
1543
  return d(E[0], O[0]);
1544
1544
  }
1545
1545
  try {
1546
- (b = _.reduce(function(E, O) {
1546
+ (b = S.reduce(function(E, O) {
1547
1547
  for (var x = 0, I = E.length; x < I; ++x) {
1548
1548
  var T = E[x];
1549
1549
  if (i(O[0], T[1]) < 0 && 0 < i(O[1], T[0])) {
@@ -1564,17 +1564,17 @@ var jr = { exports: {} };
1564
1564
  return 0 < o(E, b[p][0]);
1565
1565
  } : function(E) {
1566
1566
  return 0 <= o(E, b[p][0]);
1567
- }, y = m, _ = new this.Collection(this, function() {
1567
+ }, y = m, S = new this.Collection(this, function() {
1568
1568
  return Ce(b[0][0], b[b.length - 1][1], !g, !h);
1569
1569
  });
1570
- return _._ondirectionchange = function(E) {
1570
+ return S._ondirectionchange = function(E) {
1571
1571
  d = E === "next" ? (y = m, a) : (y = w, o), b.sort(v);
1572
- }, _._addAlgorithm(function(E, O, x) {
1572
+ }, S._addAlgorithm(function(E, O, x) {
1573
1573
  for (var I, T = E.key; y(T); ) if (++p === b.length) return O(x), !1;
1574
1574
  return !m(I = T) && !w(I) || (n._cmp(T, b[p][1]) === 0 || n._cmp(T, b[p][0]) === 0 || O(function() {
1575
1575
  d === a ? E.continue(b[p][0]) : E.continue(b[p][1]);
1576
1576
  }), !1);
1577
- }), _;
1577
+ }), S;
1578
1578
  }, ae.prototype.startsWithAnyOf = function() {
1579
1579
  var e = we.apply(He, arguments);
1580
1580
  return e.every(function(t) {
@@ -1734,11 +1734,11 @@ var jr = { exports: {} };
1734
1734
  function a(v) {
1735
1735
  var p, m = v.name;
1736
1736
  return { name: m, schema: v, mutate: function(w) {
1737
- var y = w.trans, _ = w.type, E = w.keys, O = w.values, x = w.range;
1737
+ var y = w.trans, S = w.type, E = w.keys, O = w.values, x = w.range;
1738
1738
  return new Promise(function(I, T) {
1739
1739
  I = Z(I);
1740
- var C = y.objectStore(m), R = C.keyPath == null, j = _ === "put" || _ === "add";
1741
- if (!j && _ !== "delete" && _ !== "deleteRange") throw new Error("Invalid operation type: " + _);
1740
+ var C = y.objectStore(m), R = C.keyPath == null, j = S === "put" || S === "add";
1741
+ if (!j && S !== "delete" && S !== "deleteRange") throw new Error("Invalid operation type: " + S);
1742
1742
  var P, $ = (E || O || { length: 1 }).length;
1743
1743
  if (E && O && E.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
1744
1744
  if ($ === 0) return I({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
@@ -1746,18 +1746,18 @@ var jr = { exports: {} };
1746
1746
  ++pe, pt(ue);
1747
1747
  }
1748
1748
  var z = [], U = [], pe = 0;
1749
- if (_ === "deleteRange") {
1749
+ if (S === "deleteRange") {
1750
1750
  if (x.type === 4) return I({ numFailures: pe, failures: U, results: [], lastResult: void 0 });
1751
1751
  x.type === 3 ? z.push(P = C.clear()) : z.push(P = C.delete(i(x)));
1752
1752
  } else {
1753
1753
  var R = j ? R ? [O, E] : [O, null] : [E, null], W = R[0], oe = R[1];
1754
- if (j) for (var se = 0; se < $; ++se) z.push(P = oe && oe[se] !== void 0 ? C[_](W[se], oe[se]) : C[_](W[se])), P.onerror = F;
1755
- else for (se = 0; se < $; ++se) z.push(P = C[_](W[se])), P.onerror = F;
1754
+ if (j) for (var se = 0; se < $; ++se) z.push(P = oe && oe[se] !== void 0 ? C[S](W[se], oe[se]) : C[S](W[se])), P.onerror = F;
1755
+ else for (se = 0; se < $; ++se) z.push(P = C[S](W[se])), P.onerror = F;
1756
1756
  }
1757
1757
  function Vt(ue) {
1758
1758
  ue = ue.target.result, z.forEach(function(We, Ln) {
1759
1759
  return We.error != null && (U[Ln] = We.error);
1760
- }), I({ numFailures: pe, failures: U, results: _ === "delete" ? E : z.map(function(We) {
1760
+ }), I({ numFailures: pe, failures: U, results: S === "delete" ? E : z.map(function(We) {
1761
1761
  return We.result;
1762
1762
  }), lastResult: ue });
1763
1763
  }
@@ -1766,40 +1766,40 @@ var jr = { exports: {} };
1766
1766
  }, P.onsuccess = Vt;
1767
1767
  });
1768
1768
  }, getMany: function(w) {
1769
- var y = w.trans, _ = w.keys;
1769
+ var y = w.trans, S = w.keys;
1770
1770
  return new Promise(function(E, O) {
1771
1771
  E = Z(E);
1772
- for (var x, I = y.objectStore(m), T = _.length, C = new Array(T), R = 0, j = 0, P = function(z) {
1772
+ for (var x, I = y.objectStore(m), T = S.length, C = new Array(T), R = 0, j = 0, P = function(z) {
1773
1773
  z = z.target, C[z._pos] = z.result, ++j === R && E(C);
1774
- }, $ = me(O), F = 0; F < T; ++F) _[F] != null && ((x = I.get(_[F]))._pos = F, x.onsuccess = P, x.onerror = $, ++R);
1774
+ }, $ = me(O), F = 0; F < T; ++F) S[F] != null && ((x = I.get(S[F]))._pos = F, x.onsuccess = P, x.onerror = $, ++R);
1775
1775
  R === 0 && E(C);
1776
1776
  });
1777
1777
  }, get: function(w) {
1778
- var y = w.trans, _ = w.key;
1778
+ var y = w.trans, S = w.key;
1779
1779
  return new Promise(function(E, O) {
1780
1780
  E = Z(E);
1781
- var x = y.objectStore(m).get(_);
1781
+ var x = y.objectStore(m).get(S);
1782
1782
  x.onsuccess = function(I) {
1783
1783
  return E(I.target.result);
1784
1784
  }, x.onerror = me(O);
1785
1785
  });
1786
1786
  }, query: (p = h, function(w) {
1787
- return new Promise(function(y, _) {
1787
+ return new Promise(function(y, S) {
1788
1788
  y = Z(y);
1789
1789
  var E, O, x, R = w.trans, I = w.values, T = w.limit, P = w.query, C = T === 1 / 0 ? void 0 : T, j = P.index, P = P.range, R = R.objectStore(m), j = j.isPrimaryKey ? R : R.index(j.name), P = i(P);
1790
1790
  if (T === 0) return y({ result: [] });
1791
1791
  p ? ((C = I ? j.getAll(P, C) : j.getAllKeys(P, C)).onsuccess = function($) {
1792
1792
  return y({ result: $.target.result });
1793
- }, C.onerror = me(_)) : (E = 0, O = !I && "openKeyCursor" in j ? j.openKeyCursor(P) : j.openCursor(P), x = [], O.onsuccess = function($) {
1793
+ }, C.onerror = me(S)) : (E = 0, O = !I && "openKeyCursor" in j ? j.openKeyCursor(P) : j.openCursor(P), x = [], O.onsuccess = function($) {
1794
1794
  var F = O.result;
1795
1795
  return F ? (x.push(I ? F.value : F.primaryKey), ++E === T ? y({ result: x }) : void F.continue()) : y({ result: x });
1796
- }, O.onerror = me(_));
1796
+ }, O.onerror = me(S));
1797
1797
  });
1798
1798
  }), openCursor: function(w) {
1799
- var y = w.trans, _ = w.values, E = w.query, O = w.reverse, x = w.unique;
1799
+ var y = w.trans, S = w.values, E = w.query, O = w.reverse, x = w.unique;
1800
1800
  return new Promise(function(I, T) {
1801
1801
  I = Z(I);
1802
- var j = E.index, C = E.range, R = y.objectStore(m), R = j.isPrimaryKey ? R : R.index(j.name), j = O ? x ? "prevunique" : "prev" : x ? "nextunique" : "next", P = !_ && "openKeyCursor" in R ? R.openKeyCursor(i(C), j) : R.openCursor(i(C), j);
1802
+ var j = E.index, C = E.range, R = y.objectStore(m), R = j.isPrimaryKey ? R : R.index(j.name), j = O ? x ? "prevunique" : "prev" : x ? "nextunique" : "next", P = !S && "openKeyCursor" in R ? R.openKeyCursor(i(C), j) : R.openCursor(i(C), j);
1803
1803
  P.onerror = me(T), P.onsuccess = Z(function($) {
1804
1804
  var F, z, U, pe, W = P.result;
1805
1805
  W ? (W.___id = ++ui, W.done = !1, F = W.continue.bind(W), z = (z = W.continuePrimaryKey) && z.bind(W), U = W.advance.bind(W), pe = function() {
@@ -1836,9 +1836,9 @@ var jr = { exports: {} };
1836
1836
  }, T);
1837
1837
  });
1838
1838
  }, count: function(w) {
1839
- var y = w.query, _ = w.trans, E = y.index, O = y.range;
1839
+ var y = w.query, S = w.trans, E = y.index, O = y.range;
1840
1840
  return new Promise(function(x, I) {
1841
- var T = _.objectStore(m), C = E.isPrimaryKey ? T : T.index(E.name), T = i(O), C = T ? C.count(T) : C.count();
1841
+ var T = S.objectStore(m), C = E.isPrimaryKey ? T : T.index(E.name), T = i(O), C = T ? C.count(T) : C.count();
1842
1842
  C.onsuccess = Z(function(R) {
1843
1843
  return x(R.target.result);
1844
1844
  }), C.onerror = me(I);
@@ -1848,13 +1848,13 @@ var jr = { exports: {} };
1848
1848
  var o, s, u, b = (s = g, u = mr((o = e).objectStoreNames), { schema: { name: o.name, tables: u.map(function(v) {
1849
1849
  return s.objectStore(v);
1850
1850
  }).map(function(v) {
1851
- var p = v.keyPath, y = v.autoIncrement, m = B(p), w = {}, y = { name: v.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: _n(p) }, indexes: mr(v.indexNames).map(function(_) {
1852
- return v.index(_);
1851
+ var p = v.keyPath, y = v.autoIncrement, m = B(p), w = {}, y = { name: v.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: p == null, compound: m, keyPath: p, autoIncrement: y, unique: !0, extractKey: _n(p) }, indexes: mr(v.indexNames).map(function(S) {
1852
+ return v.index(S);
1853
1853
  }).map(function(x) {
1854
1854
  var E = x.name, O = x.unique, I = x.multiEntry, x = x.keyPath, I = { name: E, compound: B(x), keyPath: x, unique: O, multiEntry: I, extractKey: _n(x) };
1855
1855
  return w[mt(x)] = I;
1856
- }), getIndexByKeyPath: function(_) {
1857
- return w[mt(_)];
1856
+ }), getIndexByKeyPath: function(S) {
1857
+ return w[mt(S)];
1858
1858
  } };
1859
1859
  return w[":id"] = y.primaryKey, p != null && (w[mt(p)] = y.primaryKey), y;
1860
1860
  }) }, 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) }), g = b.schema, h = b.hasGetAll, b = g.tables.map(a), d = {};
@@ -1913,11 +1913,11 @@ var jr = { exports: {} };
1913
1913
  return L.trans = o, L.transless = u, t !== 0 ? (Bt(e, n), h = t, ((g = o).storeNames.includes("$meta") ? g.table("$meta").get("version").then(function(b) {
1914
1914
  return b ?? h;
1915
1915
  }) : K.resolve(h)).then(function(b) {
1916
- return v = b, p = o, m = n, w = [], b = (d = e)._versions, y = d._dbSchema = $t(0, d.idbdb, m), (b = b.filter(function(_) {
1917
- return _._cfg.version >= v;
1918
- })).length !== 0 ? (b.forEach(function(_) {
1916
+ return v = b, p = o, m = n, w = [], b = (d = e)._versions, y = d._dbSchema = $t(0, d.idbdb, m), (b = b.filter(function(S) {
1917
+ return S._cfg.version >= v;
1918
+ })).length !== 0 ? (b.forEach(function(S) {
1919
1919
  w.push(function() {
1920
- var E = y, O = _._cfg.dbschema;
1920
+ var E = y, O = S._cfg.dbschema;
1921
1921
  Ft(d, E, m), Ft(d, O, m), y = d._dbSchema = O;
1922
1922
  var x = En(E, O);
1923
1923
  x.add.forEach(function(j) {
@@ -1933,8 +1933,8 @@ var jr = { exports: {} };
1933
1933
  return P.deleteIndex($);
1934
1934
  });
1935
1935
  });
1936
- var I = _._cfg.contentUpgrade;
1937
- if (I && _._cfg.version > v) {
1936
+ var I = S._cfg.contentUpgrade;
1937
+ if (I && S._cfg.version > v) {
1938
1938
  Bt(d, m), p._memoizedTables = {};
1939
1939
  var T = Qn(O);
1940
1940
  x.del.forEach(function(j) {
@@ -1949,17 +1949,17 @@ var jr = { exports: {} };
1949
1949
  });
1950
1950
  }
1951
1951
  }), w.push(function(E) {
1952
- var O, x, I = _._cfg.dbschema;
1952
+ var O, x, I = S._cfg.dbschema;
1953
1953
  O = I, x = E, [].slice.call(x.db.objectStoreNames).forEach(function(T) {
1954
1954
  return O[T] == null && x.db.deleteObjectStore(T);
1955
1955
  }), Sn(d, [d.Transaction.prototype]), Lt(d, [d.Transaction.prototype], d._storeNames, d._dbSchema), p.schema = d._dbSchema;
1956
1956
  }), w.push(function(E) {
1957
- d.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(d.idbdb.version / 10) === _._cfg.version ? (d.idbdb.deleteObjectStore("$meta"), delete d._dbSchema.$meta, d._storeNames = d._storeNames.filter(function(O) {
1957
+ d.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(d.idbdb.version / 10) === S._cfg.version ? (d.idbdb.deleteObjectStore("$meta"), delete d._dbSchema.$meta, d._storeNames = d._storeNames.filter(function(O) {
1958
1958
  return O !== "$meta";
1959
- })) : E.objectStore("$meta").put(_._cfg.version, "version"));
1959
+ })) : E.objectStore("$meta").put(S._cfg.version, "version"));
1960
1960
  });
1961
- }), function _() {
1962
- return w.length ? K.resolve(w.shift()(p.idbtrans)).then(_) : K.resolve();
1961
+ }), function S() {
1962
+ return w.length ? K.resolve(w.shift()(p.idbtrans)).then(S) : K.resolve();
1963
1963
  }().then(function() {
1964
1964
  br(y, m);
1965
1965
  })) : K.resolve();
@@ -2226,16 +2226,16 @@ var jr = { exports: {} };
2226
2226
  var m = e.name, w = t.autoSchema || !a ? n.open(m) : n.open(m, a);
2227
2227
  if (!w) throw new G.MissingAPI();
2228
2228
  w.onerror = me(p), w.onblocked = Z(e._fireOnBlocked), w.onupgradeneeded = Z(function(y) {
2229
- var _;
2230
- b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = pt, b.abort(), w.result.close(), (_ = n.deleteDatabase(m)).onsuccess = _.onerror = Z(function() {
2229
+ var S;
2230
+ b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = pt, b.abort(), w.result.close(), (S = n.deleteDatabase(m)).onsuccess = S.onerror = Z(function() {
2231
2231
  p(new G.NoSuchDatabase("Database ".concat(m, " doesnt exist")));
2232
2232
  })) : (b.onerror = me(p), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, d = y < 1, e.idbdb = w.result, o && pi(e, b), hi(e, y / 10, b, p));
2233
2233
  }, p), w.onsuccess = Z(function() {
2234
2234
  b = null;
2235
- var y, _, E, O, x, I = e.idbdb = w.result, T = St(I.objectStoreNames);
2235
+ var y, S, E, O, x, I = e.idbdb = w.result, T = St(I.objectStoreNames);
2236
2236
  if (0 < T.length) try {
2237
2237
  var C = I.transaction((O = T).length === 1 ? O[0] : O, "readonly");
2238
- if (t.autoSchema) _ = I, E = C, (y = e).verno = _.version / 10, E = y._dbSchema = $t(0, _, E), y._storeNames = St(_.objectStoreNames, 0), Lt(y, [y._allTables], N(E), E);
2238
+ if (t.autoSchema) S = I, E = C, (y = e).verno = S.version / 10, E = y._dbSchema = $t(0, S, E), y._storeNames = St(S.objectStoreNames, 0), Lt(y, [y._allTables], N(E), E);
2239
2239
  else if (Ft(e, e._dbSchema, C), ((x = En($t(0, (x = e).idbdb, C), x._dbSchema)).add.length || x.change.some(function(R) {
2240
2240
  return R.add.length || R.change.length;
2241
2241
  })) && !o) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), I.close(), a = I.version + 1, o = !0, v(u());
@@ -2321,10 +2321,10 @@ var jr = { exports: {} };
2321
2321
  return l(l({}, e), { table: function(t) {
2322
2322
  var n = e.table(t), i = n.schema, a = {}, o = [];
2323
2323
  function s(d, v, p) {
2324
- var m = mt(d), w = a[m] = a[m] || [], y = d == null ? 0 : typeof d == "string" ? 1 : d.length, _ = 0 < v, _ = l(l({}, p), { name: _ ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: _, keyTail: v, keyLength: y, extractKey: _n(d), unique: !_ && p.unique });
2325
- return w.push(_), _.isPrimaryKey || o.push(_), 1 < y && s(y === 2 ? d[0] : d.slice(0, y - 1), v + 1, p), w.sort(function(E, O) {
2324
+ var m = mt(d), w = a[m] = a[m] || [], y = d == null ? 0 : typeof d == "string" ? 1 : d.length, S = 0 < v, S = l(l({}, p), { name: S ? "".concat(m, "(virtual-from:").concat(p.name, ")") : p.name, lowLevelIndex: p, isVirtual: S, keyTail: v, keyLength: y, extractKey: _n(d), unique: !S && p.unique });
2325
+ return w.push(S), S.isPrimaryKey || o.push(S), 1 < y && s(y === 2 ? d[0] : d.slice(0, y - 1), v + 1, p), w.sort(function(E, O) {
2326
2326
  return E.keyTail - O.keyTail;
2327
- }), _;
2327
+ }), S;
2328
2328
  }
2329
2329
  t = s(i.primaryKey.keyPath, 0, i.primaryKey), a[":id"] = [t];
2330
2330
  for (var u = 0, g = i.indexes; u < g.length; u++) {
@@ -2343,21 +2343,21 @@ var jr = { exports: {} };
2343
2343
  return n.query(b(d));
2344
2344
  }, openCursor: function(d) {
2345
2345
  var v = d.query.index, p = v.keyTail, m = v.isVirtual, w = v.keyLength;
2346
- return m ? n.openCursor(b(d)).then(function(_) {
2347
- return _ && y(_);
2346
+ return m ? n.openCursor(b(d)).then(function(S) {
2347
+ return S && y(S);
2348
2348
  }) : n.openCursor(d);
2349
- function y(_) {
2350
- return Object.create(_, { continue: { value: function(E) {
2351
- E != null ? _.continue(Yt(E, d.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : d.unique ? _.continue(_.key.slice(0, w).concat(d.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2349
+ function y(S) {
2350
+ return Object.create(S, { continue: { value: function(E) {
2351
+ E != null ? S.continue(Yt(E, d.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : d.unique ? S.continue(S.key.slice(0, w).concat(d.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : S.continue();
2352
2352
  } }, continuePrimaryKey: { value: function(E, O) {
2353
- _.continuePrimaryKey(Yt(E, e.MAX_KEY, p), O);
2353
+ S.continuePrimaryKey(Yt(E, e.MAX_KEY, p), O);
2354
2354
  } }, primaryKey: { get: function() {
2355
- return _.primaryKey;
2355
+ return S.primaryKey;
2356
2356
  } }, key: { get: function() {
2357
- var E = _.key;
2357
+ var E = S.key;
2358
2358
  return w === 1 ? E[0] : E.slice(0, w);
2359
2359
  } }, value: { get: function() {
2360
- return _.value;
2360
+ return S.value;
2361
2361
  } } });
2362
2362
  }
2363
2363
  } });
@@ -2401,8 +2401,8 @@ var jr = { exports: {} };
2401
2401
  return function d(v, p, m) {
2402
2402
  return n.query({ trans: v, values: !1, query: { index: i, range: p }, limit: m }).then(function(w) {
2403
2403
  var y = w.result;
2404
- return b({ type: "delete", keys: y, trans: v }).then(function(_) {
2405
- return 0 < _.numFailures ? Promise.reject(_.failures[0]) : y.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : d(v, l(l({}, p), { lower: y[y.length - 1], lowerOpen: !0 }), m);
2404
+ return b({ type: "delete", keys: y, trans: v }).then(function(S) {
2405
+ return 0 < S.numFailures ? Promise.reject(S.failures[0]) : y.length < m ? { failures: [], numFailures: 0, lastResult: void 0 } : d(v, l(l({}, p), { lower: y[y.length - 1], lowerOpen: !0 }), m);
2406
2406
  });
2407
2407
  });
2408
2408
  }(a.trans, a.range, 1e4);
@@ -2412,9 +2412,9 @@ var jr = { exports: {} };
2412
2412
  function b(d) {
2413
2413
  var v, p, m, w = L.trans, y = d.keys || Mn(i, d);
2414
2414
  if (!y) throw new Error("Keys missing");
2415
- return (d = d.type === "add" || d.type === "put" ? l(l({}, d), { keys: y }) : l({}, d)).type !== "delete" && (d.values = A([], d.values)), d.keys && (d.keys = A([], d.keys)), v = n, m = y, ((p = d).type === "add" ? Promise.resolve([]) : v.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(_) {
2415
+ return (d = d.type === "add" || d.type === "put" ? l(l({}, d), { keys: y }) : l({}, d)).type !== "delete" && (d.values = A([], d.values)), d.keys && (d.keys = A([], d.keys)), v = n, m = y, ((p = d).type === "add" ? Promise.resolve([]) : v.getMany({ trans: p.trans, keys: m, cache: "immutable" })).then(function(S) {
2416
2416
  var E = y.map(function(O, x) {
2417
- var I, T, C, R = _[x], j = { onerror: null, onsuccess: null };
2417
+ var I, T, C, R = S[x], j = { onerror: null, onsuccess: null };
2418
2418
  return d.type === "delete" ? u.fire.call(j, O, R, w) : d.type === "add" || R === void 0 ? (I = g.fire.call(j, O, d.values[x], w), O == null && I != null && (d.keys[x] = O = I, i.outbound || de(d.values[x], i.keyPath, O))) : (I = jn(R, d.values[x]), (T = h.fire.call(j, I, O, R, w)) && (C = d.values[x], Object.keys(T).forEach(function(P) {
2419
2419
  ne(C, P) ? C[P] = T[P] : de(C, P, T[P]);
2420
2420
  }))), j;
@@ -2422,7 +2422,7 @@ var jr = { exports: {} };
2422
2422
  return n.mutate(d).then(function(O) {
2423
2423
  for (var x = O.failures, I = O.results, T = O.numFailures, O = O.lastResult, C = 0; C < y.length; ++C) {
2424
2424
  var R = (I || y)[C], j = E[C];
2425
- R == null ? j.onerror && j.onerror(x[C]) : j.onsuccess && j.onsuccess(d.type === "put" && _[C] ? d.values[C] : R);
2425
+ R == null ? j.onerror && j.onerror(x[C]) : j.onsuccess && j.onsuccess(d.type === "put" && S[C] ? d.values[C] : R);
2426
2426
  }
2427
2427
  return { failures: x, results: I, numFailures: T, lastResult: O };
2428
2428
  }).catch(function(O) {
@@ -2484,10 +2484,10 @@ var jr = { exports: {} };
2484
2484
  function m(P) {
2485
2485
  return P = "idb://".concat(t, "/").concat(i, "/").concat(P), O[P] || (O[P] = new ce());
2486
2486
  }
2487
- var w, y, _, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), I = m(":dels"), T = p.type, j = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Mn(s, p).filter(function(P) {
2487
+ var w, y, S, E = p.trans, O = p.mutatedParts || (p.mutatedParts = {}), x = m(""), I = m(":dels"), T = p.type, j = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [Mn(s, p).filter(function(P) {
2488
2488
  return P;
2489
2489
  }), p.values] : [], C = j[0], R = j[1], j = p.trans._cache;
2490
- return B(C) ? (x.addKeys(C), (j = T === "delete" || C.length === R.length ? Or(C, j) : null) || I.addKeys(C), (j || R) && (w = m, y = j, _ = R, o.indexes.forEach(function(P) {
2490
+ return B(C) ? (x.addKeys(C), (j = T === "delete" || C.length === R.length ? Or(C, j) : null) || I.addKeys(C), (j || R) && (w = m, y = j, S = R, o.indexes.forEach(function(P) {
2491
2491
  var $ = w(P.name || "");
2492
2492
  function F(U) {
2493
2493
  return U != null ? P.extractKey(U) : null;
@@ -2497,8 +2497,8 @@ var jr = { exports: {} };
2497
2497
  return $.addKey(pe);
2498
2498
  }) : $.addKey(U);
2499
2499
  }
2500
- (y || _).forEach(function(U, oe) {
2501
- var W = y && F(y[oe]), oe = _ && F(_[oe]);
2500
+ (y || S).forEach(function(U, oe) {
2501
+ var W = y && F(y[oe]), oe = S && F(S[oe]);
2502
2502
  H(W, oe) !== 0 && (W != null && z(W), oe != null && z(oe));
2503
2503
  });
2504
2504
  }))) : C ? (R = { from: C.lower, to: C.upper }, I.add(R), x.add(R)) : (x.add(n), I.add(n), o.indexes.forEach(function(P) {
@@ -2525,10 +2525,10 @@ var jr = { exports: {} };
2525
2525
  }, count: d, query: d, openCursor: d };
2526
2526
  return N(v).forEach(function(p) {
2527
2527
  b[p] = function(m) {
2528
- var w = L.subscr, y = !!w, _ = xr(L, a) && kr(p, m) ? m.obsSet = {} : w;
2528
+ var w = L.subscr, y = !!w, S = xr(L, a) && kr(p, m) ? m.obsSet = {} : w;
2529
2529
  if (y) {
2530
2530
  var E = function(R) {
2531
- return R = "idb://".concat(t, "/").concat(i, "/").concat(R), _[R] || (_[R] = new ce());
2531
+ return R = "idb://".concat(t, "/").concat(i, "/").concat(R), S[R] || (S[R] = new ce());
2532
2532
  }, O = E(""), x = E(":dels"), w = v[p](m), y = w[0], w = w[1];
2533
2533
  if ((p === "query" && y.isPrimaryKey && !m.values ? x : E(y.name || "")).add(w), !y.isPrimaryKey) {
2534
2534
  if (p !== "count") {
@@ -2580,11 +2580,11 @@ var jr = { exports: {} };
2580
2580
  if (!v || v.length === 0) return e;
2581
2581
  var s = t.query.index, u = s.multiEntry, g = t.query.range, h = i.schema.primaryKey.extractKey, b = s.extractKey, d = (s.lowLevelIndex || s).extractKey, v = v.reduce(function(p, m) {
2582
2582
  var w = p, y = [];
2583
- if (m.type === "add" || m.type === "put") for (var _ = new ce(), E = m.values.length - 1; 0 <= E; --E) {
2583
+ if (m.type === "add" || m.type === "put") for (var S = new ce(), E = m.values.length - 1; 0 <= E; --E) {
2584
2584
  var O, x = m.values[E], I = h(x);
2585
- _.hasKey(I) || (O = b(x), (u && B(O) ? O.some(function(j) {
2585
+ S.hasKey(I) || (O = b(x), (u && B(O) ? O.some(function(j) {
2586
2586
  return Kn(j, g);
2587
- }) : Kn(O, g)) && (_.addKey(I), y.push(x)));
2587
+ }) : Kn(O, g)) && (S.addKey(I), y.push(x)));
2588
2588
  }
2589
2589
  switch (m.type) {
2590
2590
  case "add":
@@ -2664,7 +2664,7 @@ var jr = { exports: {} };
2664
2664
  var m = e.table(v), w = p.optimisticOps.filter(function($) {
2665
2665
  return $.trans === u;
2666
2666
  });
2667
- if (u._explicit && g && u.mutatedParts) for (var y = 0, _ = Object.values(p.queries.query); y < _.length; y++) for (var E = 0, O = (T = _[y]).slice(); E < O.length; E++) Pn((C = O[E]).obsSet, u.mutatedParts) && (Me(T, C), C.subscribers.forEach(function($) {
2667
+ if (u._explicit && g && u.mutatedParts) for (var y = 0, S = Object.values(p.queries.query); y < S.length; y++) for (var E = 0, O = (T = S[y]).slice(); E < O.length; E++) Pn((C = O[E]).obsSet, u.mutatedParts) && (Me(T, C), C.subscribers.forEach(function($) {
2668
2668
  return h.add($);
2669
2669
  }));
2670
2670
  else if (0 < w.length) {
@@ -2708,30 +2708,30 @@ var jr = { exports: {} };
2708
2708
  }), s) : i.mutate(o);
2709
2709
  }, query: function(o) {
2710
2710
  if (!xr(L, i) || !kr("query", o)) return i.query(o);
2711
- var s = ((h = L.trans) === null || h === void 0 ? void 0 : h.db._options.cache) === "immutable", d = L, u = d.requery, g = d.signal, h = function(m, w, y, _) {
2711
+ var s = ((h = L.trans) === null || h === void 0 ? void 0 : h.db._options.cache) === "immutable", d = L, u = d.requery, g = d.signal, h = function(m, w, y, S) {
2712
2712
  var E = Fe["idb://".concat(m, "/").concat(w)];
2713
2713
  if (!E) return [];
2714
2714
  if (!(w = E.queries[y])) return [null, !1, E, null];
2715
- var O = w[(_.query ? _.query.index.name : null) || ""];
2715
+ var O = w[(S.query ? S.query.index.name : null) || ""];
2716
2716
  if (!O) return [null, !1, E, null];
2717
2717
  switch (y) {
2718
2718
  case "query":
2719
2719
  var x = O.find(function(I) {
2720
- return I.req.limit === _.limit && I.req.values === _.values && Pr(I.req.query.range, _.query.range);
2720
+ return I.req.limit === S.limit && I.req.values === S.values && Pr(I.req.query.range, S.query.range);
2721
2721
  });
2722
2722
  return x ? [x, !0, E, O] : [O.find(function(I) {
2723
- return ("limit" in I.req ? I.req.limit : 1 / 0) >= _.limit && (!_.values || I.req.values) && _i(I.req.query.range, _.query.range);
2723
+ return ("limit" in I.req ? I.req.limit : 1 / 0) >= S.limit && (!S.values || I.req.values) && _i(I.req.query.range, S.query.range);
2724
2724
  }), !1, E, O];
2725
2725
  case "count":
2726
2726
  return x = O.find(function(I) {
2727
- return Pr(I.req.query.range, _.query.range);
2727
+ return Pr(I.req.query.range, S.query.range);
2728
2728
  }), [x, !!x, E, O];
2729
2729
  }
2730
2730
  }(t, n, "query", o), b = h[0], d = h[1], v = h[2], p = h[3];
2731
2731
  return b && d ? b.obsSet = o.obsSet : (d = i.query(o).then(function(m) {
2732
2732
  var w = m.result;
2733
2733
  if (b && (b.res = w), s) {
2734
- for (var y = 0, _ = w.length; y < _; ++y) Object.freeze(w[y]);
2734
+ for (var y = 0, S = w.length; y < S; ++y) Object.freeze(w[y]);
2735
2735
  Object.freeze(w);
2736
2736
  } else m.result = je(w);
2737
2737
  return m;
@@ -2880,14 +2880,14 @@ var jr = { exports: {} };
2880
2880
  return h(b, d, v, null, m);
2881
2881
  })) : ee(O);
2882
2882
  }
2883
- var _, E = tn(m);
2883
+ var S, E = tn(m);
2884
2884
  return E && Je(), w = K.follow(function() {
2885
2885
  var O;
2886
- (_ = m.call(y, y)) && (E ? (O = Pe.bind(null, null), _.then(O, O)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Tn(_)));
2887
- }, w), (_ && typeof _.then == "function" ? K.resolve(_).then(function(O) {
2886
+ (S = m.call(y, y)) && (E ? (O = Pe.bind(null, null), S.then(O, O)) : typeof S.next == "function" && typeof S.throw == "function" && (S = Tn(S)));
2887
+ }, w), (S && typeof S.then == "function" ? K.resolve(S).then(function(O) {
2888
2888
  return y.active ? O : ee(new G.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
2889
2889
  }) : w.then(function() {
2890
- return _;
2890
+ return S;
2891
2891
  })).then(function(O) {
2892
2892
  return p && y._resolve(), y._completion.then(function() {
2893
2893
  return O;
@@ -2923,7 +2923,7 @@ var jr = { exports: {} };
2923
2923
  }));
2924
2924
  });
2925
2925
  };
2926
- }), this.Collection = (a = this, ft(ai.prototype, function(_, y) {
2926
+ }), this.Collection = (a = this, ft(ai.prototype, function(S, y) {
2927
2927
  this.db = a;
2928
2928
  var p = or, m = null;
2929
2929
  if (y) try {
@@ -2931,19 +2931,19 @@ var jr = { exports: {} };
2931
2931
  } catch (E) {
2932
2932
  m = E;
2933
2933
  }
2934
- var w = _._ctx, y = w.table, _ = y.hook.reading.fire;
2935
- this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.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: m, or: w.or, valueMapper: _ !== at ? _ : null };
2934
+ var w = S._ctx, y = w.table, S = y.hook.reading.fire;
2935
+ this._ctx = { table: y, index: w.index, isPrimKey: !w.index || y.schema.primKey.keyPath && w.index === y.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: m, or: w.or, valueMapper: S !== at ? S : null };
2936
2936
  })), this.Table = (o = this, ft(lr.prototype, function(d, v, p) {
2937
2937
  this.db = o, this._tx = p, this.name = d, this.schema = v, this.hook = o._allTables[d] ? o._allTables[d].hook : dt(null, { creating: [Vr, Q], reading: [Xr, at], updating: [Zr, Q], deleting: [Jr, Q] });
2938
2938
  })), this.Transaction = (s = this, ft(ci.prototype, function(d, v, p, m, w) {
2939
2939
  var y = this;
2940
- this.db = s, this.mode = d, this.storeNames = v, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(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 K(function(_, E) {
2941
- y._resolve = _, y._reject = E;
2940
+ this.db = s, this.mode = d, this.storeNames = v, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(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 K(function(S, E) {
2941
+ y._resolve = S, y._reject = E;
2942
2942
  }), this._completion.then(function() {
2943
2943
  y.active = !1, y.on.complete.fire();
2944
- }, function(_) {
2944
+ }, function(S) {
2945
2945
  var E = y.active;
2946
- return y.active = !1, y.on.error.fire(_), y.parent ? y.parent._reject(_) : E && y.idbtrans && y.idbtrans.abort(), ee(_);
2946
+ return y.active = !1, y.on.error.fire(S), y.parent ? y.parent._reject(S) : E && y.idbtrans && y.idbtrans.abort(), ee(S);
2947
2947
  });
2948
2948
  })), this.Version = (u = this, ft(gi.prototype, function(d) {
2949
2949
  this.db = u, this._cfg = { version: d, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
@@ -3010,8 +3010,8 @@ var jr = { exports: {} };
3010
3010
  }, p = function(w) {
3011
3011
  zt(g, w), Pn(h, g) && v();
3012
3012
  }, m = function() {
3013
- var w, y, _;
3014
- !u && Xt.indexedDB && (g = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(E) {
3013
+ var w, y, S;
3014
+ !u && Xt.indexedDB && (g = {}, w = {}, s && s.abort(), s = new AbortController(), S = function(E) {
3015
3015
  var O = Xe();
3016
3016
  try {
3017
3017
  o && Je();
@@ -3020,7 +3020,7 @@ var jr = { exports: {} };
3020
3020
  } finally {
3021
3021
  O && Ve();
3022
3022
  }
3023
- }(y = { subscr: w, signal: s.signal, requery: v, querier: e, trans: null }), Promise.resolve(_).then(function(E) {
3023
+ }(y = { subscr: w, signal: s.signal, requery: v, querier: e, trans: null }), Promise.resolve(S).then(function(E) {
3024
3024
  n = !0, t = E, u || y.signal.aborted || (g = {}, function(O) {
3025
3025
  for (var x in O) if (ne(O, x)) return;
3026
3026
  return 1;
@@ -3190,9 +3190,9 @@ class Mr {
3190
3190
  const c = await this.db.table(M.CLOUD).where({ id: r.widget }).last().catch(() => {
3191
3191
  console.warn(
3192
3192
  "%capi%C %ccloud",
3193
- S.API,
3194
- S.NONE,
3195
- S.CLOUD,
3193
+ _.API,
3194
+ _.NONE,
3195
+ _.CLOUD,
3196
3196
  r.slide,
3197
3197
  r.widget
3198
3198
  );
@@ -3208,9 +3208,9 @@ class Mr {
3208
3208
  const c = await this.db.table(M.SERIES).where({ id: r.widget }).last().catch(() => {
3209
3209
  console.warn(
3210
3210
  "%capi%c %cseries",
3211
- S.API,
3212
- S.NONE,
3213
- S.SERIES,
3211
+ _.API,
3212
+ _.NONE,
3213
+ _.SERIES,
3214
3214
  r.slide,
3215
3215
  r.widget
3216
3216
  );
@@ -3228,9 +3228,9 @@ class Mr {
3228
3228
  const k = await this.db.table(M.TOPICS).orderBy("utc").reverse().filter(c).filter(l).filter(A).limit((r == null ? void 0 : r.limit) ?? 25).toArray().catch(() => {
3229
3229
  console.warn(
3230
3230
  "%capi%c %cmessages",
3231
- S.API,
3232
- S.NONE,
3233
- S.MESSAGES,
3231
+ _.API,
3232
+ _.NONE,
3233
+ _.MESSAGES,
3234
3234
  r.slide,
3235
3235
  r.widget
3236
3236
  );
@@ -3255,7 +3255,7 @@ class Mr {
3255
3255
  success: !0
3256
3256
  };
3257
3257
  } catch (k) {
3258
- return console.error("%cstorage", S.STORAGE, "set", r, k), { data: null, message: "Messages Data error", success: !1 };
3258
+ return console.error("%cstorage", _.STORAGE, "set", r, k), { data: null, message: "Messages Data error", success: !1 };
3259
3259
  }
3260
3260
  });
3261
3261
  /**
@@ -3268,7 +3268,7 @@ class Mr {
3268
3268
  id: r.widget,
3269
3269
  dashboard_id: r.dashboard,
3270
3270
  data: c.data
3271
- }).then(() => 201).catch((l) => (console.error("%cstorage", S.STORAGE, "set", r, l.message), 400)) : 400);
3271
+ }).then(() => 201).catch((l) => (console.error("%cstorage", _.STORAGE, "set", r, l.message), 400)) : 400);
3272
3272
  /**
3273
3273
  * Update Series
3274
3274
  * @param query IQuery
@@ -3279,7 +3279,7 @@ class Mr {
3279
3279
  id: r.widget,
3280
3280
  dashboard_id: r.dashboard,
3281
3281
  data: c.data
3282
- }).then(() => 201).catch((l) => (console.error("%cstorage", S.STORAGE, "set", r, l.message), 400)) : 400);
3282
+ }).then(() => 201).catch((l) => (console.error("%cstorage", _.STORAGE, "set", r, l.message), 400)) : 400);
3283
3283
  /**
3284
3284
  * Update Messages
3285
3285
  * @param query IQuery
@@ -3293,10 +3293,15 @@ class Mr {
3293
3293
  let A = 0;
3294
3294
  return c.data.messages.forEach(async (k) => {
3295
3295
  var N, B, J, q;
3296
- k.id !== null && (await this.db.table(M.MESSAGES).put({ id: k.id, utc: k.utc, data: k, expires: k.expires }).catch((le) => {
3296
+ k.id !== null && (await this.db.table(M.MESSAGES).put({
3297
+ id: k.id,
3298
+ utc: k.utc,
3299
+ data: k,
3300
+ expires: k.expires
3301
+ }).catch((le) => {
3297
3302
  A++, console.error(
3298
3303
  "%cstorage",
3299
- S.STORAGE,
3304
+ _.STORAGE,
3300
3305
  "set message",
3301
3306
  `title: ${l}`,
3302
3307
  k,
@@ -3316,13 +3321,24 @@ class Mr {
3316
3321
  }).catch((le) => {
3317
3322
  A++, console.error(
3318
3323
  "%cstorage",
3319
- S.STORAGE,
3324
+ _.STORAGE,
3320
3325
  "set topic",
3321
3326
  `title: ${l}`,
3322
3327
  k,
3323
3328
  le.message
3324
3329
  );
3325
3330
  }));
3331
+ }), c.data.topics.forEach(async (k) => {
3332
+ await this.db.table(M.TOPICS).where("message_id").equals(k.messsage_id).modify({ visible: k.visible }).catch((N) => {
3333
+ A++, console.error(
3334
+ "%cstorage",
3335
+ _.STORAGE,
3336
+ "update message visibility",
3337
+ `title: ${k.title}`,
3338
+ k.topic,
3339
+ N.message
3340
+ );
3341
+ });
3326
3342
  }), A === 0 ? 201 : 400;
3327
3343
  });
3328
3344
  /**
@@ -3332,24 +3348,24 @@ class Mr {
3332
3348
  const r = Date.now() / 1e3, c = (k) => k.expires < r, l = (k) => k.expires < r;
3333
3349
  return await this.db.table(M.TOPICS).orderBy("expires").filter(c).delete().catch((k) => (console.error(
3334
3350
  "%cstorage%c %cclean",
3335
- S.STORAGE,
3336
- S.NONE,
3337
- S.MESSAGES,
3351
+ _.STORAGE,
3352
+ _.NONE,
3353
+ _.MESSAGES,
3338
3354
  k.message
3339
3355
  ), 0)), await this.db.table(M.MESSAGES).orderBy("expires").filter(l).delete().catch((k) => (console.error(
3340
3356
  "%cstorage%c %clean",
3341
- S.STORAGE,
3342
- S.NONE,
3343
- S.MESSAGES,
3357
+ _.STORAGE,
3358
+ _.NONE,
3359
+ _.MESSAGES,
3344
3360
  k.message
3345
3361
  ), 0));
3346
3362
  });
3347
3363
  D(this, "hideMessage", async (r, c) => {
3348
3364
  await this.db.table(M.TOPICS).where("message_id").equals(r).modify({ visible: c }).catch((l) => (console.error(
3349
3365
  "%cstorage%c %chide",
3350
- S.STORAGE,
3351
- S.NONE,
3352
- S.HIDE,
3366
+ _.STORAGE,
3367
+ _.NONE,
3368
+ _.HIDE,
3353
3369
  l.message
3354
3370
  ), 0));
3355
3371
  });
@@ -3364,7 +3380,7 @@ class Mr {
3364
3380
  type: r.type
3365
3381
  }).then(() => 201).catch((c) => (console.error(
3366
3382
  "%cstorage",
3367
- S.STORAGE,
3383
+ _.STORAGE,
3368
3384
  M.WIDGET,
3369
3385
  r,
3370
3386
  c.message
@@ -3378,9 +3394,9 @@ class Mr {
3378
3394
  (l) => l.widget === r.widget
3379
3395
  ).length > 0 || (r.type === M.MESSAGES && (r = _t(this.options, r)), console.debug(
3380
3396
  "%cstorage%c %csubscribe",
3381
- S.STORAGE,
3382
- S.NONE,
3383
- S.SUBSCRIBE,
3397
+ _.STORAGE,
3398
+ _.NONE,
3399
+ _.SUBSCRIBE,
3384
3400
  r.slide,
3385
3401
  r.widget
3386
3402
  ), this.subscribers.push(r)), null));
@@ -3398,9 +3414,9 @@ class Mr {
3398
3414
  const c = await this.db.table(M.SLIDE).where({ id: r.id }).last().catch(() => {
3399
3415
  console.warn(
3400
3416
  "%capi%c %cseries",
3401
- S.API,
3402
- S.NONE,
3403
- S.SERIES,
3417
+ _.API,
3418
+ _.NONE,
3419
+ _.SERIES,
3404
3420
  r.id
3405
3421
  );
3406
3422
  });
@@ -3419,12 +3435,12 @@ class Mr {
3419
3435
  css: r.data.css || ""
3420
3436
  }).then(() => 200).catch((c) => (console.error(
3421
3437
  "%cstorage",
3422
- S.STORAGE,
3438
+ _.STORAGE,
3423
3439
  re.SLIDE_STORE,
3424
3440
  r,
3425
3441
  c.message
3426
3442
  ), 422)) : 422);
3427
- this.options = r, this.db = new Un(r.app), this.db.version(5).stores({
3443
+ this.options = r, this.db = new Un(r.app), this.db.version(6).stores({
3428
3444
  player: "id,title,name,location",
3429
3445
  monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
3430
3446
  display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
@@ -3466,15 +3482,15 @@ class Nr {
3466
3482
  D(this, "options");
3467
3483
  D(this, "getCloud", async (r) => {
3468
3484
  const c = X(r);
3469
- return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", S.API, M.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3485
+ return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, M.CLOUD, r.slide, r.widget), { data: null, message: "Cloud Data error", success: !1 }));
3470
3486
  });
3471
3487
  D(this, "getSeries", async (r) => {
3472
3488
  const c = X(r);
3473
- return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", S.API, M.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3489
+ return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, M.SERIES, r.slide, r.widget), { data: null, message: "Series Data error", success: !1 }));
3474
3490
  });
3475
3491
  D(this, "getMessages", async (r) => {
3476
3492
  const c = X(r);
3477
- return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", S.API, M.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3493
+ return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, M.MESSAGES, r.slide, r.widget), { data: null, message: "Messages Data error", success: !1 }));
3478
3494
  });
3479
3495
  /**
3480
3496
  * Update Cloud
@@ -3486,7 +3502,7 @@ class Nr {
3486
3502
  if (!c.success)
3487
3503
  return 400;
3488
3504
  const l = X(r);
3489
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", S.STORAGE, M.CLOUD, r, A.message), 400));
3505
+ return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, M.CLOUD, r, A.message), 400));
3490
3506
  });
3491
3507
  /**
3492
3508
  * Update Series
@@ -3498,7 +3514,7 @@ class Nr {
3498
3514
  if (!c.success)
3499
3515
  return 400;
3500
3516
  const l = X(r);
3501
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", S.STORAGE, M.SERIES, r, A.message), 400));
3517
+ return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, M.SERIES, r, A.message), 400));
3502
3518
  });
3503
3519
  /**
3504
3520
  * Update Messages
@@ -3510,7 +3526,7 @@ class Nr {
3510
3526
  if (!c.success)
3511
3527
  return 400;
3512
3528
  const l = X(r);
3513
- return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", S.STORAGE, M.MESSAGES, r, A.message), 400));
3529
+ return delete c.success, delete c.message, await wt(l, c).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, M.MESSAGES, r, A.message), 400));
3514
3530
  });
3515
3531
  D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
3516
3532
  D(this, "hideMessage", async (r, c) => {
@@ -3529,7 +3545,7 @@ class Nr {
3529
3545
  dashboard_id: r.dashboard,
3530
3546
  type: r.type
3531
3547
  };
3532
- return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", S.STORAGE, M.WIDGET, r, A.message), 400));
3548
+ return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, M.WIDGET, r, A.message), 400));
3533
3549
  });
3534
3550
  /**
3535
3551
  * Add component subscriber
@@ -3540,9 +3556,9 @@ class Nr {
3540
3556
  (l) => l.widget === r.widget
3541
3557
  ).length > 0 || (console.debug(
3542
3558
  "%cstorage%c %csubscribe",
3543
- S.STORAGE,
3544
- S.NONE,
3545
- S.SUBSCRIBE,
3559
+ _.STORAGE,
3560
+ _.NONE,
3561
+ _.SUBSCRIBE,
3546
3562
  r.slide,
3547
3563
  r.widget
3548
3564
  ), this.subscribers.push(r)), null));
@@ -3553,7 +3569,7 @@ class Nr {
3553
3569
  D(this, "getSubscribers", async () => await new Promise((r) => r(this.subscribers)));
3554
3570
  D(this, "loadSlide", async (r) => {
3555
3571
  const c = X(r);
3556
- return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", S.API, M.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3572
+ return await Jt(c).then((l) => l).catch(() => (console.warn("%capi", _.API, M.SLIDE, r.slide), { data: null, message: "Slide Load error", success: !1 }));
3557
3573
  });
3558
3574
  /**
3559
3575
  * Update Slide
@@ -3568,7 +3584,7 @@ class Nr {
3568
3584
  html: r.data.html || "",
3569
3585
  css: r.data.css || ""
3570
3586
  };
3571
- return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", S.STORAGE, M.SLIDE, r, A.message), 400));
3587
+ return await wt(c, l).then(() => 201).catch((A) => (console.error("%cstorage", _.STORAGE, M.SLIDE, r, A.message), 400));
3572
3588
  });
3573
3589
  this.options = r;
3574
3590
  }
@@ -3582,7 +3598,7 @@ class Br {
3582
3598
  try {
3583
3599
  return localStorage.getObject(c);
3584
3600
  } catch (l) {
3585
- return console.warn("%capi", S.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3601
+ return console.warn("%capi", _.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3586
3602
  }
3587
3603
  });
3588
3604
  D(this, "getSeries", async (r) => {
@@ -3590,7 +3606,7 @@ class Br {
3590
3606
  try {
3591
3607
  return localStorage.getObject(c);
3592
3608
  } catch (l) {
3593
- return console.warn("%capi", S.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3609
+ return console.warn("%capi", _.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3594
3610
  }
3595
3611
  });
3596
3612
  D(this, "getMessages", async (r) => {
@@ -3598,7 +3614,7 @@ class Br {
3598
3614
  try {
3599
3615
  return localStorage.getObject(c);
3600
3616
  } catch (l) {
3601
- return console.warn("%capi", S.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3617
+ return console.warn("%capi", _.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3602
3618
  }
3603
3619
  });
3604
3620
  /**
@@ -3612,7 +3628,7 @@ class Br {
3612
3628
  try {
3613
3629
  return localStorage.setObject(l, c), 201;
3614
3630
  } catch (A) {
3615
- return console.error("%cstorage", S.STORAGE, M.CLOUD, r, A), 400;
3631
+ return console.error("%cstorage", _.STORAGE, M.CLOUD, r, A), 400;
3616
3632
  }
3617
3633
  });
3618
3634
  /**
@@ -3626,7 +3642,7 @@ class Br {
3626
3642
  try {
3627
3643
  return localStorage.setObject(l, c), 201;
3628
3644
  } catch (A) {
3629
- return console.error("%cstorage", S.STORAGE, M.SERIES, r, A), 400;
3645
+ return console.error("%cstorage", _.STORAGE, M.SERIES, r, A), 400;
3630
3646
  }
3631
3647
  });
3632
3648
  /**
@@ -3640,7 +3656,7 @@ class Br {
3640
3656
  try {
3641
3657
  return localStorage.setObject(l, c), 200;
3642
3658
  } catch (A) {
3643
- return console.error("%cstorage", S.STORAGE, M.MESSAGES, r, A), 400;
3659
+ return console.error("%cstorage", _.STORAGE, M.MESSAGES, r, A), 400;
3644
3660
  }
3645
3661
  });
3646
3662
  D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
@@ -3652,7 +3668,7 @@ class Br {
3652
3668
  try {
3653
3669
  return localStorage.setObject(c, r), 201;
3654
3670
  } catch (l) {
3655
- return console.error("%cstorage", S.STORAGE, M.WIDGET, r, l), 400;
3671
+ return console.error("%cstorage", _.STORAGE, M.WIDGET, r, l), 400;
3656
3672
  }
3657
3673
  });
3658
3674
  /**
@@ -3664,9 +3680,9 @@ class Br {
3664
3680
  (l) => l.widget === r.widget
3665
3681
  ).length || (console.debug(
3666
3682
  "%cstorage%c %csubscribe",
3667
- S.STORAGE,
3668
- S.NONE,
3669
- S.SUBSCRIBE,
3683
+ _.STORAGE,
3684
+ _.NONE,
3685
+ _.SUBSCRIBE,
3670
3686
  r.slide,
3671
3687
  r.widget
3672
3688
  ), this.subscribers.push(r)), null));
@@ -3679,7 +3695,7 @@ class Br {
3679
3695
  try {
3680
3696
  return localStorage.getObject(`${r.type}.${r.id}`);
3681
3697
  } catch (c) {
3682
- return console.warn("%capi", S.API, M.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3698
+ return console.warn("%capi", _.API, M.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3683
3699
  }
3684
3700
  });
3685
3701
  D(this, "storeSlide", async (r) => {
@@ -3692,7 +3708,7 @@ class Br {
3692
3708
  css: r.data.css || ""
3693
3709
  }), 201;
3694
3710
  } catch (c) {
3695
- return console.error("%cstorage", S.STORAGE, M.SLIDE, r, c), 400;
3711
+ return console.error("%cstorage", _.STORAGE, M.SLIDE, r, c), 400;
3696
3712
  }
3697
3713
  });
3698
3714
  this.options = r, Storage.prototype.setObject = function(c, l) {
@@ -3712,7 +3728,7 @@ class Lr {
3712
3728
  try {
3713
3729
  return sessionStorage.getObject(c);
3714
3730
  } catch (l) {
3715
- return console.warn("%capi", S.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3731
+ return console.warn("%capi", _.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3716
3732
  }
3717
3733
  });
3718
3734
  D(this, "getSeries", async (r) => {
@@ -3720,7 +3736,7 @@ class Lr {
3720
3736
  try {
3721
3737
  return sessionStorage.getObject(c);
3722
3738
  } catch (l) {
3723
- return console.warn("%capi", S.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3739
+ return console.warn("%capi", _.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3724
3740
  }
3725
3741
  });
3726
3742
  D(this, "getMessages", async (r) => {
@@ -3728,7 +3744,7 @@ class Lr {
3728
3744
  try {
3729
3745
  return sessionStorage.getObject(c);
3730
3746
  } catch (l) {
3731
- return console.warn("%capi", S.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3747
+ return console.warn("%capi", _.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3732
3748
  }
3733
3749
  });
3734
3750
  /**
@@ -3742,7 +3758,7 @@ class Lr {
3742
3758
  try {
3743
3759
  return sessionStorage.setObject(l, c), 201;
3744
3760
  } catch (A) {
3745
- return console.error("%cstorage", S.STORAGE, M.CLOUD, r, A), 400;
3761
+ return console.error("%cstorage", _.STORAGE, M.CLOUD, r, A), 400;
3746
3762
  }
3747
3763
  });
3748
3764
  /**
@@ -3756,7 +3772,7 @@ class Lr {
3756
3772
  try {
3757
3773
  return sessionStorage.setObject(l, c), 201;
3758
3774
  } catch (A) {
3759
- return console.error("%cstorage", S.STORAGE, M.SERIES, r, A), 400;
3775
+ return console.error("%cstorage", _.STORAGE, M.SERIES, r, A), 400;
3760
3776
  }
3761
3777
  });
3762
3778
  /**
@@ -3770,7 +3786,7 @@ class Lr {
3770
3786
  try {
3771
3787
  return sessionStorage.setObject(l, c), 200;
3772
3788
  } catch (A) {
3773
- return console.error("%cstorage", S.STORAGE, M.MESSAGES, r, A), 400;
3789
+ return console.error("%cstorage", _.STORAGE, M.MESSAGES, r, A), 400;
3774
3790
  }
3775
3791
  });
3776
3792
  D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
@@ -3782,7 +3798,7 @@ class Lr {
3782
3798
  try {
3783
3799
  return sessionStorage.setObject(c, r), 201;
3784
3800
  } catch (l) {
3785
- return console.error("%cstorage", S.STORAGE, M.WIDGET, r, l), 400;
3801
+ return console.error("%cstorage", _.STORAGE, M.WIDGET, r, l), 400;
3786
3802
  }
3787
3803
  });
3788
3804
  /**
@@ -3794,9 +3810,9 @@ class Lr {
3794
3810
  (l) => l.widget === r.widget
3795
3811
  ).length || (console.debug(
3796
3812
  "%cstorage%c %csubscribe",
3797
- S.STORAGE,
3798
- S.NONE,
3799
- S.SUBSCRIBE,
3813
+ _.STORAGE,
3814
+ _.NONE,
3815
+ _.SUBSCRIBE,
3800
3816
  r.slide,
3801
3817
  r.widget
3802
3818
  ), this.subscribers.push(r)), null));
@@ -3809,7 +3825,7 @@ class Lr {
3809
3825
  try {
3810
3826
  return sessionStorage.getObject(`${r.type}.${r.id}`);
3811
3827
  } catch (c) {
3812
- return console.warn("%capi", S.API, M.SLIDE, r.id, c), { data: null, message: "Store Load error", success: !1 };
3828
+ return console.warn("%capi", _.API, M.SLIDE, r.id, c), { data: null, message: "Store Load error", success: !1 };
3813
3829
  }
3814
3830
  });
3815
3831
  /**
@@ -3827,7 +3843,7 @@ class Lr {
3827
3843
  css: r.data.css || ""
3828
3844
  }), 200;
3829
3845
  } catch (c) {
3830
- return console.error("%cstorage", S.STORAGE, M.SLIDE, r, c), 400;
3846
+ return console.error("%cstorage", _.STORAGE, M.SLIDE, r, c), 400;
3831
3847
  }
3832
3848
  });
3833
3849
  this.options = r, Storage.prototype.setObject = function(c, l) {
@@ -3847,7 +3863,7 @@ class Gr {
3847
3863
  try {
3848
3864
  return window.BuzzCasting.WidgetData[c];
3849
3865
  } catch (l) {
3850
- return console.warn("%capi", S.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Cloud Data error", success: !1 };
3866
+ return console.warn("%capi", _.API, M.CLOUD, r.slide, r.widget, l), { data: null, message: "Cloud Data error", success: !1 };
3851
3867
  }
3852
3868
  });
3853
3869
  D(this, "getSeries", async (r) => {
@@ -3855,7 +3871,7 @@ class Gr {
3855
3871
  try {
3856
3872
  return window.BuzzCasting.WidgetData[c];
3857
3873
  } catch (l) {
3858
- return console.warn("%capi", S.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Series Data error", success: !1 };
3874
+ return console.warn("%capi", _.API, M.SERIES, r.slide, r.widget, l), { data: null, message: "Series Data error", success: !1 };
3859
3875
  }
3860
3876
  });
3861
3877
  D(this, "getMessages", async (r) => {
@@ -3863,7 +3879,7 @@ class Gr {
3863
3879
  try {
3864
3880
  return window.BuzzCasting.WidgetData[c];
3865
3881
  } catch (l) {
3866
- return console.warn("%capi", S.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3882
+ return console.warn("%capi", _.API, M.MESSAGES, r.slide, r.widget, l), { data: null, message: "Messages Data error", success: !1 };
3867
3883
  }
3868
3884
  });
3869
3885
  /**
@@ -3877,7 +3893,7 @@ class Gr {
3877
3893
  try {
3878
3894
  return window.BuzzCasting.WidgetData[l] = c, 201;
3879
3895
  } catch (A) {
3880
- return console.error("%cstorage", S.STORAGE, "set", r, A), 400;
3896
+ return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3881
3897
  }
3882
3898
  });
3883
3899
  /**
@@ -3891,7 +3907,7 @@ class Gr {
3891
3907
  try {
3892
3908
  return window.BuzzCasting.WidgetData[l] = c, 201;
3893
3909
  } catch (A) {
3894
- return console.error("%cstorage", S.STORAGE, "set", r, A), 400;
3910
+ return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3895
3911
  }
3896
3912
  });
3897
3913
  /**
@@ -3905,7 +3921,7 @@ class Gr {
3905
3921
  try {
3906
3922
  return window.BuzzCasting.WidgetData[l] = c, 201;
3907
3923
  } catch (A) {
3908
- return console.error("%cstorage", S.STORAGE, "set", r, A), 400;
3924
+ return console.error("%cstorage", _.STORAGE, "set", r, A), 400;
3909
3925
  }
3910
3926
  });
3911
3927
  D(this, "cleanMessages", async (r) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((c) => c(0))));
@@ -3917,7 +3933,7 @@ class Gr {
3917
3933
  try {
3918
3934
  return window.BuzzCasting.WidgetData[c] = r, 201;
3919
3935
  } catch (l) {
3920
- return console.error("%cstorage", S.STORAGE, M.WIDGET, r, l), 400;
3936
+ return console.error("%cstorage", _.STORAGE, M.WIDGET, r, l), 400;
3921
3937
  }
3922
3938
  });
3923
3939
  /**
@@ -3929,9 +3945,9 @@ class Gr {
3929
3945
  (l) => l.widget === r.widget
3930
3946
  ).length || (console.debug(
3931
3947
  "%cstorage%c %csubscribe",
3932
- S.STORAGE,
3933
- S.NONE,
3934
- S.SUBSCRIBE,
3948
+ _.STORAGE,
3949
+ _.NONE,
3950
+ _.SUBSCRIBE,
3935
3951
  r.slide,
3936
3952
  r.widget
3937
3953
  ), this.subscribers.push(r)), null));
@@ -3944,7 +3960,7 @@ class Gr {
3944
3960
  try {
3945
3961
  return window.BuzzCasting.SlideData[r.id];
3946
3962
  } catch (c) {
3947
- return console.warn("%capi", S.API, M.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3963
+ return console.warn("%capi", _.API, M.SLIDE, r.id, c), { data: null, message: "Slide Load error", success: !1 };
3948
3964
  }
3949
3965
  });
3950
3966
  D(this, "storeSlide", async (r) => {
@@ -3957,7 +3973,7 @@ class Gr {
3957
3973
  css: r.data.css || ""
3958
3974
  }, 201;
3959
3975
  } catch (c) {
3960
- return console.error("%cstorage", S.STORAGE, M.SLIDE, r, c), 400;
3976
+ return console.error("%cstorage", _.STORAGE, M.SLIDE, r, c), 400;
3961
3977
  }
3962
3978
  });
3963
3979
  this.options = r, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
@@ -4192,9 +4208,9 @@ class Ji {
4192
4208
  if (le = B.data.messages.filter((ne) => ne.id !== null), B.data.messages = le, q = $n(B.data.messages), J.hash === q)
4193
4209
  return console.debug(
4194
4210
  "%capi%c %cno updates",
4195
- S.API,
4196
- S.NONE,
4197
- S.NO_UPDATES,
4211
+ _.API,
4212
+ _.NONE,
4213
+ _.NO_UPDATES,
4198
4214
  M.MESSAGES,
4199
4215
  B.query.slide,
4200
4216
  B.query.widget
@@ -4204,9 +4220,9 @@ class Ji {
4204
4220
  case M.CLOUD:
4205
4221
  q = $n(B.data), J.hash === q ? (console.debug(
4206
4222
  "%capi%c %cno updates",
4207
- S.API,
4208
- S.NONE,
4209
- S.NO_UPDATES,
4223
+ _.API,
4224
+ _.NONE,
4225
+ _.NO_UPDATES,
4210
4226
  M.CLOUD,
4211
4227
  B.query.slide,
4212
4228
  B.query.widget
@@ -4215,9 +4231,9 @@ class Ji {
4215
4231
  case M.SERIES:
4216
4232
  q = $n(B.data), J.hash === q ? (console.debug(
4217
4233
  "%capi%c %cno updates",
4218
- S.API,
4219
- S.NONE,
4220
- S.NO_UPDATES,
4234
+ _.API,
4235
+ _.NONE,
4236
+ _.NO_UPDATES,
4221
4237
  M.SERIES,
4222
4238
  B.query.slide,
4223
4239
  B.query.widget
@@ -4226,9 +4242,9 @@ class Ji {
4226
4242
  default:
4227
4243
  console.warn(
4228
4244
  "%capi%c %cstorage",
4229
- S.API,
4230
- S.NONE,
4231
- S.STORAGE,
4245
+ _.API,
4246
+ _.NONE,
4247
+ _.STORAGE,
4232
4248
  "error",
4233
4249
  `data type ${B.query.type} unknown`
4234
4250
  );
@@ -4239,9 +4255,9 @@ class Ji {
4239
4255
  case 201:
4240
4256
  console.info(
4241
4257
  "%capp%c %cbroadcast",
4242
- S.API,
4243
- S.NONE,
4244
- S.BROADCAST,
4258
+ _.API,
4259
+ _.NONE,
4260
+ _.BROADCAST,
4245
4261
  B.query.slide,
4246
4262
  B.data.title ?? B.query.widget
4247
4263
  ), this.bc.postMessage({ event: re.WIDGET_UPDATE, data: B });
@@ -4249,9 +4265,9 @@ class Ji {
4249
4265
  case 400:
4250
4266
  console.warn(
4251
4267
  "%capp%c %cbroadcast",
4252
- S.API,
4253
- S.NONE,
4254
- S.BROADCAST,
4268
+ _.API,
4269
+ _.NONE,
4270
+ _.BROADCAST,
4255
4271
  B.query.slide,
4256
4272
  B.data.title ?? B.query.widget
4257
4273
  );
@@ -4261,9 +4277,9 @@ class Ji {
4261
4277
  } else
4262
4278
  return console.warn(
4263
4279
  "%capi%c %cstorage",
4264
- S.API,
4265
- S.NONE,
4266
- S.STORAGE,
4280
+ _.API,
4281
+ _.NONE,
4282
+ _.STORAGE,
4267
4283
  re.ERROR
4268
4284
  ), 400;
4269
4285
  })
@@ -4281,9 +4297,9 @@ class Ji {
4281
4297
  case re.UPDATE:
4282
4298
  console.debug(
4283
4299
  "%capi%c %cstorage",
4284
- S.API,
4285
- S.NONE,
4286
- S.STORAGE,
4300
+ _.API,
4301
+ _.NONE,
4302
+ _.STORAGE,
4287
4303
  re.UPDATE,
4288
4304
  r.data
4289
4305
  ), await this.update();
@@ -4297,20 +4313,20 @@ class Ji {
4297
4313
  ));
4298
4314
  console.info(
4299
4315
  "%cstorage%c %cstorage",
4300
- S.STORAGE,
4301
- S.NONE,
4302
- S.MESSAGES,
4316
+ _.STORAGE,
4317
+ _.NONE,
4318
+ _.MESSAGES,
4303
4319
  `${c} messages deleted`
4304
4320
  );
4305
4321
  });
4306
4322
  D(this, "hideMessage", async (r) => {
4307
4323
  var l;
4308
- const c = await ((l = this.sm) == null ? void 0 : l.hideMessage(r.id, 0));
4324
+ const c = await ((l = this.sm) == null ? void 0 : l.hideMessage(r.id, !1));
4309
4325
  return console.info(
4310
4326
  "%cstorage%c %cstorage",
4311
- S.STORAGE,
4312
- S.NONE,
4313
- S.HIDE,
4327
+ _.STORAGE,
4328
+ _.NONE,
4329
+ _.HIDE,
4314
4330
  `${c} messages hidden`
4315
4331
  ), await this.api.hideMessage(r);
4316
4332
  });
@@ -4328,9 +4344,9 @@ class Ji {
4328
4344
  });
4329
4345
  console.info(
4330
4346
  "%cstorage%c %cslide",
4331
- S.STORAGE,
4332
- S.NONE,
4333
- S.SLIDE,
4347
+ _.STORAGE,
4348
+ _.NONE,
4349
+ _.SLIDE,
4334
4350
  r.slide,
4335
4351
  re.VERSION,
4336
4352
  Ai
@@ -4338,9 +4354,9 @@ class Ji {
4338
4354
  const c = (r == null ? void 0 : r.slide) || r.app;
4339
4355
  switch (this.bc = new BroadcastChannel(c), console.info(
4340
4356
  "%capi%c %cbroadcast",
4341
- S.API,
4342
- S.NONE,
4343
- S.BROADCAST,
4357
+ _.API,
4358
+ _.NONE,
4359
+ _.BROADCAST,
4344
4360
  re.CHANNEL,
4345
4361
  c
4346
4362
  ), this.bc.onmessage = (l) => {
@@ -4376,9 +4392,9 @@ class Ni {
4376
4392
  var c;
4377
4393
  return r.type !== M.CLOUD ? (console.warn(
4378
4394
  "%capp%c %get",
4379
- S.APP,
4380
- S.NONE,
4381
- S.GET_DATA,
4395
+ _.APP,
4396
+ _.NONE,
4397
+ _.GET_DATA,
4382
4398
  r.widget,
4383
4399
  "wrong method call for getMessages, type used is",
4384
4400
  r.type
@@ -4397,9 +4413,9 @@ class Ni {
4397
4413
  var c;
4398
4414
  return r.type !== M.MESSAGES ? (console.warn(
4399
4415
  "%capp%c %get",
4400
- S.APP,
4401
- S.NONE,
4402
- S.GET_DATA,
4416
+ _.APP,
4417
+ _.NONE,
4418
+ _.GET_DATA,
4403
4419
  r.widget,
4404
4420
  "wrong method call for getMessages, type used is",
4405
4421
  r.type
@@ -4418,9 +4434,9 @@ class Ni {
4418
4434
  var c;
4419
4435
  return r.type !== M.SERIES ? (console.warn(
4420
4436
  "%capp%c %get",
4421
- S.APP,
4422
- S.NONE,
4423
- S.GET_DATA,
4437
+ _.APP,
4438
+ _.NONE,
4439
+ _.GET_DATA,
4424
4440
  r.widget,
4425
4441
  "wrong method call for getMessages, type used is",
4426
4442
  r.type
@@ -4490,9 +4506,9 @@ class Zi {
4490
4506
  */
4491
4507
  D(this, "getCloud", async () => this.query.type !== M.CLOUD ? (console.warn(
4492
4508
  "%cstorage%c %cwidget",
4493
- S.STORAGE,
4494
- S.NONE,
4495
- S.WIDGET,
4509
+ _.STORAGE,
4510
+ _.NONE,
4511
+ _.WIDGET,
4496
4512
  this.query.widget,
4497
4513
  "Wrong method call for getCloud, expected type is",
4498
4514
  this.query.type
@@ -4508,9 +4524,9 @@ class Zi {
4508
4524
  */
4509
4525
  D(this, "getMessages", async () => this.query.type !== M.MESSAGES ? (console.warn(
4510
4526
  "%cstorage%c %cwidget",
4511
- S.STORAGE,
4512
- S.NONE,
4513
- S.WIDGET,
4527
+ _.STORAGE,
4528
+ _.NONE,
4529
+ _.WIDGET,
4514
4530
  this.query.widget,
4515
4531
  "Wrong method call for getMessages, expected type is",
4516
4532
  this.query.type
@@ -4526,9 +4542,9 @@ class Zi {
4526
4542
  */
4527
4543
  D(this, "getSeries", async () => this.query.type !== M.SERIES ? (console.warn(
4528
4544
  "%cstorage%c %cwidget",
4529
- S.STORAGE,
4530
- S.NONE,
4531
- S.WIDGET,
4545
+ _.STORAGE,
4546
+ _.NONE,
4547
+ _.WIDGET,
4532
4548
  this.query.widget,
4533
4549
  "Wrong method call for getSeries, expected type is",
4534
4550
  this.query.type
@@ -4552,7 +4568,7 @@ class Zi {
4552
4568
  const l = { ...r.props, ...c };
4553
4569
  console.debug(
4554
4570
  "%cwidget",
4555
- S.WIDGET,
4571
+ _.WIDGET,
4556
4572
  re.SHOW_MODAL,
4557
4573
  r.showComponent,
4558
4574
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
@@ -4606,9 +4622,9 @@ class Zi {
4606
4622
  subscribe() {
4607
4623
  console.debug(
4608
4624
  "%cwidget%c %csubscribe",
4609
- S.WIDGET,
4610
- S.NONE,
4611
- S.SUBSCRIBE,
4625
+ _.WIDGET,
4626
+ _.NONE,
4627
+ _.SUBSCRIBE,
4612
4628
  this.query.slide,
4613
4629
  this.query.widget
4614
4630
  ), this.broadcastChannel.postMessage({
@@ -4624,7 +4640,7 @@ export {
4624
4640
  M as API,
4625
4641
  Ji as BuzzcastingStorageManager,
4626
4642
  Ni as BuzzcastingStorageReader,
4627
- S as CSS,
4643
+ _ as CSS,
4628
4644
  re as EVENTS,
4629
4645
  Zt as MODERATION,
4630
4646
  ge as STORAGE,