buzzcasting-storage 1.0.7 → 1.0.9

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.
@@ -248,7 +248,7 @@ function Tt(t, e) {
248
248
  ` + r).join("")) : "";
249
249
  }
250
250
  var Nn = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], an = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(Nn), wr = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
251
- function Pe(t, e) {
251
+ function Oe(t, e) {
252
252
  this._e = ve(), this.name = t, this.message = e;
253
253
  }
254
254
  function $n(t, e) {
@@ -261,13 +261,13 @@ function dt(t, e, n, r) {
261
261
  function Te(t, e) {
262
262
  this._e = ve(), this.name = "BulkError", this.failures = Object.keys(e).map((n) => e[n]), this.failuresByPos = e, this.message = $n(t, e);
263
263
  }
264
- Ee(Pe).from(Error).extend({ stack: { get: function() {
264
+ Ee(Oe).from(Error).extend({ stack: { get: function() {
265
265
  return this._stack || (this._stack = this.name + ": " + this.message + Tt(this._e, 2));
266
266
  } }, toString: function() {
267
267
  return this.name + ": " + this.message;
268
- } }), Ee(dt).from(Pe), Ee(Te).from(Pe);
268
+ } }), Ee(dt).from(Oe), Ee(Te).from(Oe);
269
269
  var cn = an.reduce((t, e) => (t[e] = e + "Error", t), {});
270
- const _r = Pe;
270
+ const _r = Oe;
271
271
  var C = an.reduce((t, e) => {
272
272
  var n = e + "Error";
273
273
  function r(s, i) {
@@ -320,7 +320,7 @@ function Er(t, e) {
320
320
  return s && (this.onsuccess = this.onsuccess ? ye(s, this.onsuccess) : s), i && (this.onerror = this.onerror ? ye(i, this.onerror) : i), r === void 0 ? o === void 0 ? void 0 : o : z(r, o);
321
321
  };
322
322
  }
323
- function Pr(t, e) {
323
+ function Or(t, e) {
324
324
  return t === A ? e : function() {
325
325
  return e.apply(this, arguments) !== !1 && t.apply(this, arguments);
326
326
  };
@@ -338,7 +338,7 @@ function ln(t, e) {
338
338
  return e.apply(this, arguments);
339
339
  };
340
340
  }
341
- st.ModifyError = dt, st.DexieError = Pe, st.BulkError = Te;
341
+ st.ModifyError = dt, st.DexieError = Oe, st.BulkError = Te;
342
342
  var Ue = {};
343
343
  const Ln = 100, [Mt, ft, Rt] = typeof Promise > "u" ? [] : (() => {
344
344
  let t = Promise.resolve();
@@ -347,7 +347,7 @@ const Ln = 100, [Mt, ft, Rt] = typeof Promise > "u" ? [] : (() => {
347
347
  const e = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
348
348
  return [e, $e(e), t];
349
349
  })(), Un = ft && ft.then, it = Mt && Mt.constructor, un = !!Rt;
350
- var Ft = !1, Or = Rt ? () => {
350
+ var Ft = !1, Pr = Rt ? () => {
351
351
  Rt.then(Xe);
352
352
  } : D.setImmediate ? setImmediate.bind(null, Xe) : D.MutationObserver ? () => {
353
353
  var t = document.createElement("div");
@@ -357,20 +357,20 @@ var Ft = !1, Or = Rt ? () => {
357
357
  } : () => {
358
358
  setTimeout(Xe, 0);
359
359
  }, Me = function(t, e) {
360
- Be.push([t, e]), pt && (Or(), pt = !1);
361
- }, Nt = !0, pt = !0, fe = [], ot = [], $t = null, Lt = Le, Oe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: _n, pgp: !1, env: {}, finalize: function() {
360
+ Be.push([t, e]), pt && (Pr(), pt = !1);
361
+ }, Nt = !0, pt = !0, fe = [], ot = [], $t = null, Lt = Le, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: _n, pgp: !1, env: {}, finalize: function() {
362
362
  this.unhandleds.forEach((t) => {
363
363
  try {
364
364
  _n(t[0], t[1]);
365
365
  } catch {
366
366
  }
367
367
  });
368
- } }, O = Oe, Be = [], pe = 0, at = [];
368
+ } }, P = Pe, Be = [], pe = 0, at = [];
369
369
  function E(t) {
370
370
  if (typeof this != "object")
371
371
  throw new TypeError("Promises must be constructed via new");
372
372
  this._listeners = [], this.onuncatched = A, this._lib = !1;
373
- var e = this._PSD = O;
373
+ var e = this._PSD = P;
374
374
  if (J && (this._stackHolder = ve(), this._prev = null, this._numPrev = 0), typeof t != "function") {
375
375
  if (t !== Ue)
376
376
  throw new TypeError("Not a function");
@@ -379,9 +379,9 @@ function E(t) {
379
379
  this._state = null, this._value = null, ++e.ref, zn(this, t);
380
380
  }
381
381
  const Ut = { get: function() {
382
- var t = O, e = mt;
382
+ var t = P, e = mt;
383
383
  function n(r, s) {
384
- var i = !t.global && (t !== O || e !== mt);
384
+ var i = !t.global && (t !== P || e !== mt);
385
385
  const o = i && !re();
386
386
  var a = new E((c, l) => {
387
387
  hn(this, new Wn(yt(r, t, i, o), yt(s, t, i, o), c, l, t));
@@ -508,9 +508,9 @@ function Ze(t) {
508
508
  return new E(Ue, !1, t);
509
509
  }
510
510
  function I(t, e) {
511
- var n = O;
511
+ var n = P;
512
512
  return function() {
513
- var r = Ye(), s = O;
513
+ var r = Ye(), s = P;
514
514
  try {
515
515
  return ce(n, !0), t.apply(this, arguments);
516
516
  } catch (i) {
@@ -521,7 +521,7 @@ function I(t, e) {
521
521
  };
522
522
  }
523
523
  Ce(E.prototype, { then: Ut, _then: function(t, e) {
524
- hn(this, new Wn(null, null, t, e, O));
524
+ hn(this, new Wn(null, null, t, e, P));
525
525
  }, catch: function(t) {
526
526
  if (arguments.length === 1)
527
527
  return this.then(null, t);
@@ -545,7 +545,7 @@ From previous: `);
545
545
  var s = setTimeout(() => r(new C.Timeout(e)), t);
546
546
  this.then(n, r).finally(clearTimeout.bind(null, s));
547
547
  }) : this;
548
- } }), typeof Symbol < "u" && Symbol.toStringTag && te(E.prototype, Symbol.toStringTag, "Dexie.Promise"), Oe.env = Yn(), Ce(E, { all: function() {
548
+ } }), typeof Symbol < "u" && Symbol.toStringTag && te(E.prototype, Symbol.toStringTag, "Dexie.Promise"), Pe.env = Yn(), Ce(E, { all: function() {
549
549
  var t = q.apply(null, arguments).map(qe);
550
550
  return new E(function(e, n) {
551
551
  t.length === 0 && e([]);
@@ -568,12 +568,12 @@ From previous: `);
568
568
  return new E((e, n) => {
569
569
  t.map((r) => E.resolve(r).then(e, n));
570
570
  });
571
- }, PSD: { get: () => O, set: (t) => O = t }, totalEchoes: { get: () => mt }, newPSD: ae, usePSD: Ke, scheduler: { get: () => Me, set: (t) => {
571
+ }, PSD: { get: () => P, set: (t) => P = t }, totalEchoes: { get: () => mt }, newPSD: ae, usePSD: Ke, scheduler: { get: () => Me, set: (t) => {
572
572
  Me = t;
573
573
  } }, rejectionMapper: { get: () => Lt, set: (t) => {
574
574
  Lt = t;
575
575
  } }, follow: (t, e) => new E((n, r) => ae((s, i) => {
576
- var o = O;
576
+ var o = P;
577
577
  o.unhandleds = [], o.onunhandled = i, o.finalize = ye(function() {
578
578
  (function(a) {
579
579
  function c() {
@@ -608,9 +608,9 @@ From previous: `);
608
608
  const $ = { awaits: 0, echoes: 0, id: 0 };
609
609
  var jr = 0, ct = [], kt = 0, mt = 0, Kr = 0;
610
610
  function ae(t, e, n, r) {
611
- var s = O, i = Object.create(s);
611
+ var s = P, i = Object.create(s);
612
612
  i.parent = s, i.ref = 0, i.global = !1, i.id = ++Kr;
613
- var o = Oe.env;
613
+ var o = Pe.env;
614
614
  i.env = un ? { Promise: E, PromiseProp: { value: E, configurable: !0, writable: !0 }, all: E.all, race: E.race, allSettled: E.allSettled, any: E.any, resolve: E.resolve, reject: E.reject, nthen: vn(o.nthen, i), gthen: vn(o.gthen, i) } : {}, e && z(i, e), ++s.ref, i.finalize = function() {
615
615
  --this.parent.ref || this.parent.finalize();
616
616
  };
@@ -627,16 +627,16 @@ function qe(t) {
627
627
  return $.echoes && t && t.constructor === it ? (je(), t.then((e) => (re(), e), (e) => (re(), F(e)))) : t;
628
628
  }
629
629
  function Ar(t) {
630
- ++mt, $.echoes && --$.echoes != 0 || ($.echoes = $.id = 0), ct.push(O), ce(t, !0);
630
+ ++mt, $.echoes && --$.echoes != 0 || ($.echoes = $.id = 0), ct.push(P), ce(t, !0);
631
631
  }
632
632
  function Dr() {
633
633
  var t = ct[ct.length - 1];
634
634
  ct.pop(), ce(t, !1);
635
635
  }
636
636
  function ce(t, e) {
637
- var n = O;
638
- if ((e ? !$.echoes || kt++ && t === O : !kt || --kt && t === O) || Qn(e ? Ar.bind(null, t) : Dr), t !== O && (O = t, n === Oe && (Oe.env = Yn()), un)) {
639
- var r = Oe.env.Promise, s = t.env;
637
+ var n = P;
638
+ if ((e ? !$.echoes || kt++ && t === P : !kt || --kt && t === P) || Qn(e ? Ar.bind(null, t) : Dr), t !== P && (P = t, n === Pe && (Pe.env = Yn()), un)) {
639
+ var r = Pe.env.Promise, s = t.env;
640
640
  ft.then = s.nthen, r.prototype.then = s.gthen, (n.global || t.global) && (Object.defineProperty(D, "Promise", s.PromiseProp), r.all = s.all, r.race = s.race, r.resolve = s.resolve, r.reject = s.reject, s.allSettled && (r.allSettled = s.allSettled), s.any && (r.any = s.any));
641
641
  }
642
642
  }
@@ -645,7 +645,7 @@ function Yn() {
645
645
  return un ? { Promise: t, PromiseProp: Object.getOwnPropertyDescriptor(D, "Promise"), all: t.all, race: t.race, allSettled: t.allSettled, any: t.any, resolve: t.resolve, reject: t.reject, nthen: ft.then, gthen: t.prototype.then } : {};
646
646
  }
647
647
  function Ke(t, e, n, r, s) {
648
- var i = O;
648
+ var i = P;
649
649
  try {
650
650
  return ce(t, !0), e(n, r, s);
651
651
  } finally {
@@ -657,7 +657,7 @@ function Qn(t) {
657
657
  }
658
658
  function yt(t, e, n, r) {
659
659
  return typeof t != "function" ? t : function() {
660
- var s = O;
660
+ var s = P;
661
661
  n && je(), ce(e, !0);
662
662
  try {
663
663
  return t.apply(this, arguments);
@@ -693,14 +693,14 @@ function _n(t, e) {
693
693
  }
694
694
  var F = E.reject;
695
695
  function zt(t, e, n, r) {
696
- if (t.idbdb && (t._state.openComplete || O.letThrough || t._vip)) {
696
+ if (t.idbdb && (t._state.openComplete || P.letThrough || t._vip)) {
697
697
  var s = t._createTransaction(e, n, t._dbSchema);
698
698
  try {
699
699
  s.create(), t._state.PR1398_maxLoop = 3;
700
700
  } catch (i) {
701
701
  return i.name === cn.InvalidState && t.isOpen() && --t._state.PR1398_maxLoop > 0 ? (console.warn("Dexie: Need to reopen db"), t._close(), t.open().then(() => zt(t, e, n, r))) : F(i);
702
702
  }
703
- return s._promise(e, (i, o) => ae(() => (O.trans = s, r(i, o, s)))).then((i) => s._completion.then(() => i));
703
+ return s._promise(e, (i, o) => ae(() => (P.trans = s, r(i, o, s)))).then((i) => s._completion.then(() => i));
704
704
  }
705
705
  if (t._state.openComplete)
706
706
  return F(new C.DatabaseClosed(t._state.dbOpenError));
@@ -723,7 +723,7 @@ function et(t) {
723
723
  }
724
724
  class Tr {
725
725
  _trans(e, n, r) {
726
- const s = this._tx || O.trans, i = this.name;
726
+ const s = this._tx || P.trans, i = this.name;
727
727
  function o(c, l, u) {
728
728
  if (!u.schema[i])
729
729
  throw new C.NotFound("Table " + i + " not part of transaction");
@@ -731,7 +731,7 @@ class Tr {
731
731
  }
732
732
  const a = Ye();
733
733
  try {
734
- return s && s.db === this.db ? s === O.trans ? s._promise(e, o, r) : ae(() => s._promise(e, o, r), { trans: s, transless: O.transless || O }) : zt(this.db, e, [this.name], o);
734
+ return s && s.db === this.db ? s === P.trans ? s._promise(e, o, r) : ae(() => s._promise(e, o, r), { trans: s, transless: P.transless || P }) : zt(this.db, e, [this.name], o);
735
735
  } finally {
736
736
  a && Qe();
737
737
  }
@@ -935,7 +935,7 @@ function Fe(t) {
935
935
  function i(o, a, c) {
936
936
  if (typeof o != "object") {
937
937
  var l;
938
- a || (a = Pr), c || (c = A);
938
+ a || (a = Or), c || (c = A);
939
939
  var u = { subscribers: [], fire: c, subscribe: function(d) {
940
940
  u.subscribers.indexOf(d) === -1 && (u.subscribers.push(d), u.fire = a(u.fire, d));
941
941
  }, unsubscribe: function(d) {
@@ -974,7 +974,7 @@ function ke(t, e) {
974
974
  function Et(t, e) {
975
975
  t.filter = ge(t.filter, e);
976
976
  }
977
- function Pt(t, e, n) {
977
+ function Ot(t, e, n) {
978
978
  var r = t.replayFilter;
979
979
  t.replayFilter = r ? () => ge(r(), e()) : e, t.justLimit = n && !r;
980
980
  }
@@ -1034,7 +1034,7 @@ function W(t, e) {
1034
1034
  if (s[l] !== i[l])
1035
1035
  return s[l] < i[l] ? -1 : 1;
1036
1036
  return o === a ? 0 : o < a ? -1 : 1;
1037
- }(Pn(t), Pn(e));
1037
+ }(On(t), On(e));
1038
1038
  case "Array":
1039
1039
  return function(s, i) {
1040
1040
  const o = s.length, a = i.length, c = o < a ? o : a;
@@ -1059,7 +1059,7 @@ function En(t) {
1059
1059
  const n = It(t);
1060
1060
  return n === "ArrayBuffer" ? "binary" : n;
1061
1061
  }
1062
- function Pn(t) {
1062
+ function On(t) {
1063
1063
  return t instanceof Uint8Array ? t : ArrayBuffer.isView(t) ? new Uint8Array(t.buffer, t.byteOffset, t.byteLength) : new Uint8Array(t);
1064
1064
  }
1065
1065
  class Mr {
@@ -1127,18 +1127,18 @@ class Mr {
1127
1127
  }
1128
1128
  offset(e) {
1129
1129
  var n = this._ctx;
1130
- return e <= 0 || (n.offset += e, ke(n) ? Pt(n, () => {
1130
+ return e <= 0 || (n.offset += e, ke(n) ? Ot(n, () => {
1131
1131
  var r = e;
1132
1132
  return (s, i) => r === 0 || (r === 1 ? (--r, !1) : (i(() => {
1133
1133
  s.advance(r), r = 0;
1134
1134
  }), !1));
1135
- }) : Pt(n, () => {
1135
+ }) : Ot(n, () => {
1136
1136
  var r = e;
1137
1137
  return () => --r < 0;
1138
1138
  })), this;
1139
1139
  }
1140
1140
  limit(e) {
1141
- return this._ctx.limit = Math.min(this._ctx.limit, e), Pt(this._ctx, () => {
1141
+ return this._ctx.limit = Math.min(this._ctx.limit, e), Ot(this._ctx, () => {
1142
1142
  var n = e;
1143
1143
  return function(r, s, i) {
1144
1144
  return --n <= 0 && s(i), n >= 0;
@@ -1265,17 +1265,17 @@ class Mr {
1265
1265
  const b = (m) => {
1266
1266
  const f = Math.min(u, y.length - m);
1267
1267
  return a.getMany({ trans: r, keys: y.slice(m, m + f), cache: "immutable" }).then((w) => {
1268
- const S = [], P = [], x = c ? [] : null, v = [];
1268
+ const S = [], O = [], x = c ? [] : null, v = [];
1269
1269
  for (let _ = 0; _ < f; ++_) {
1270
1270
  const T = w[_], K = { value: He(T), primKey: y[m + _] };
1271
- s.call(K, K.value, K) !== !1 && (K.value == null ? v.push(y[m + _]) : c || W(l(T), l(K.value)) === 0 ? (P.push(K.value), c && x.push(y[m + _])) : (v.push(y[m + _]), S.push(K.value)));
1271
+ s.call(K, K.value, K) !== !1 && (K.value == null ? v.push(y[m + _]) : c || W(l(T), l(K.value)) === 0 ? (O.push(K.value), c && x.push(y[m + _])) : (v.push(y[m + _]), S.push(K.value)));
1272
1272
  }
1273
- const j = ke(n) && n.limit === 1 / 0 && (typeof e != "function" || e === Ot) && { index: n.index, range: n.range };
1273
+ const j = ke(n) && n.limit === 1 / 0 && (typeof e != "function" || e === Pt) && { index: n.index, range: n.range };
1274
1274
  return Promise.resolve(S.length > 0 && a.mutate({ trans: r, type: "add", values: S }).then((_) => {
1275
1275
  for (let T in _.failures)
1276
1276
  v.splice(parseInt(T), 1);
1277
1277
  g(S.length, _);
1278
- })).then(() => (P.length > 0 || j && typeof e == "object") && a.mutate({ trans: r, type: "put", keys: x, values: P, criteria: j, changeSpec: typeof e != "function" && e }).then((_) => g(P.length, _))).then(() => (v.length > 0 || j && e === Ot) && a.mutate({ trans: r, type: "delete", keys: v, criteria: j }).then((_) => g(v.length, _))).then(() => y.length > m + f && b(m + u));
1278
+ })).then(() => (O.length > 0 || j && typeof e == "object") && a.mutate({ trans: r, type: "put", keys: x, values: O, criteria: j, changeSpec: typeof e != "function" && e }).then((_) => g(O.length, _))).then(() => (v.length > 0 || j && e === Pt) && a.mutate({ trans: r, type: "delete", keys: v, criteria: j }).then((_) => g(v.length, _))).then(() => y.length > m + f && b(m + u));
1279
1279
  });
1280
1280
  };
1281
1281
  return b(0).then(() => {
@@ -1295,10 +1295,10 @@ class Mr {
1295
1295
  throw new dt("Could not delete some values", Object.keys(a).map((d) => a[d]), o - u);
1296
1296
  return o - u;
1297
1297
  }));
1298
- }) : this.modify(Ot);
1298
+ }) : this.modify(Pt);
1299
1299
  }
1300
1300
  }
1301
- const Ot = (t, e) => e.value = null;
1301
+ const Pt = (t, e) => e.value = null;
1302
1302
  function Rr(t, e) {
1303
1303
  return t < e ? -1 : t === e ? 0 : 1;
1304
1304
  }
@@ -1355,9 +1355,9 @@ function nt(t, e, n, r) {
1355
1355
  var w = i(f);
1356
1356
  if (e(w, c, g))
1357
1357
  return !0;
1358
- for (var S = null, P = g; P < d; ++P) {
1359
- var x = Nr(f, w, a[P], c[P], o, l);
1360
- x === null && S === null ? g = P + 1 : (S === null || o(S, x) > 0) && (S = x);
1358
+ for (var S = null, O = g; O < d; ++O) {
1359
+ var x = Nr(f, w, a[O], c[O], o, l);
1360
+ x === null && S === null ? g = O + 1 : (S === null || o(S, x) > 0) && (S = x);
1361
1361
  }
1362
1362
  return b(S !== null ? function() {
1363
1363
  y.continue(S + u);
@@ -1467,15 +1467,15 @@ class er {
1467
1467
  }
1468
1468
  try {
1469
1469
  u = e.reduce(function(f, w) {
1470
- let S = 0, P = f.length;
1471
- for (; S < P; ++S) {
1470
+ let S = 0, O = f.length;
1471
+ for (; S < O; ++S) {
1472
1472
  const x = f[S];
1473
1473
  if (r(w[0], x[1]) < 0 && r(w[1], x[0]) > 0) {
1474
1474
  x[0] = o(x[0], w[0]), x[1] = a(x[1], w[1]);
1475
1475
  break;
1476
1476
  }
1477
1477
  }
1478
- return S === P && f.push(w), f;
1478
+ return S === O && f.push(w), f;
1479
1479
  }, []), u.sort(h);
1480
1480
  } catch {
1481
1481
  return G(this, X);
@@ -1487,12 +1487,12 @@ class er {
1487
1487
  return m._ondirectionchange = (f) => {
1488
1488
  f === "next" ? (b = g, d = s) : (b = y, d = i), u.sort(h);
1489
1489
  }, m._addAlgorithm((f, w, S) => {
1490
- for (var P = f.key; b(P); )
1490
+ for (var O = f.key; b(O); )
1491
1491
  if (++p, p === u.length)
1492
1492
  return w(S), !1;
1493
1493
  return !!function(x) {
1494
1494
  return !g(x) && !y(x);
1495
- }(P) || (this._cmp(P, u[p][1]) === 0 || this._cmp(P, u[p][0]) === 0 || w(() => {
1495
+ }(O) || (this._cmp(O, u[p][1]) === 0 || this._cmp(O, u[p][0]) === 0 || w(() => {
1496
1496
  d === s ? f.continue(u[p][0]) : f.continue(u[p][1]);
1497
1497
  }), !1);
1498
1498
  }), m;
@@ -1513,11 +1513,11 @@ function We(t) {
1513
1513
  const ze = "storagemutated", oe = "x-storagemutated-1", le = Fe(null, ze);
1514
1514
  class $r {
1515
1515
  _lock() {
1516
- return Ie(!O.global), ++this._reculock, this._reculock !== 1 || O.global || (O.lockOwnerFor = this), this;
1516
+ return Ie(!P.global), ++this._reculock, this._reculock !== 1 || P.global || (P.lockOwnerFor = this), this;
1517
1517
  }
1518
1518
  _unlock() {
1519
- if (Ie(!O.global), --this._reculock == 0)
1520
- for (O.global || (O.lockOwnerFor = null); this._blockedFuncs.length > 0 && !this._locked(); ) {
1519
+ if (Ie(!P.global), --this._reculock == 0)
1520
+ for (P.global || (P.lockOwnerFor = null); this._blockedFuncs.length > 0 && !this._locked(); ) {
1521
1521
  var e = this._blockedFuncs.shift();
1522
1522
  try {
1523
1523
  Ke(e[1], e[0]);
@@ -1527,7 +1527,7 @@ class $r {
1527
1527
  return this;
1528
1528
  }
1529
1529
  _locked() {
1530
- return this._reculock && O.lockOwnerFor !== this;
1530
+ return this._reculock && P.lockOwnerFor !== this;
1531
1531
  }
1532
1532
  create(e) {
1533
1533
  if (!this.mode)
@@ -1561,7 +1561,7 @@ class $r {
1561
1561
  return new E((i, o) => {
1562
1562
  this._blockedFuncs.push([() => {
1563
1563
  this._promise(e, n, r).then(i, o);
1564
- }, O]);
1564
+ }, P]);
1565
1565
  });
1566
1566
  if (r)
1567
1567
  return ae(() => {
@@ -1638,7 +1638,7 @@ function Ht(t) {
1638
1638
  return e.split(".").length === 1 ? (r) => r[e] : (r) => ne(r, e);
1639
1639
  }(t) : (e) => ne(e, t);
1640
1640
  }
1641
- function On(t) {
1641
+ function Pn(t) {
1642
1642
  return [].slice.call(t);
1643
1643
  }
1644
1644
  let Lr = 0;
@@ -1655,10 +1655,10 @@ function Ur(t, e, n) {
1655
1655
  return l === void 0 ? u === void 0 ? null : e.upperBound(u, !!h) : u === void 0 ? e.lowerBound(l, !!d) : e.bound(l, u, !!d, !!h);
1656
1656
  }
1657
1657
  const { schema: s, hasGetAll: i } = function(c, l) {
1658
- const u = On(c.objectStoreNames);
1658
+ const u = Pn(c.objectStoreNames);
1659
1659
  return { schema: { name: c.name, tables: u.map((d) => l.objectStore(d)).map((d) => {
1660
- const { keyPath: h, autoIncrement: p } = d, g = L(h), y = h == null, b = {}, m = { name: d.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y, compound: g, keyPath: h, autoIncrement: p, unique: !0, extractKey: Ht(h) }, indexes: On(d.indexNames).map((f) => d.index(f)).map((f) => {
1661
- const { name: w, unique: S, multiEntry: P, keyPath: x } = f, v = { name: w, compound: L(x), keyPath: x, unique: S, multiEntry: P, extractKey: Ht(x) };
1660
+ const { keyPath: h, autoIncrement: p } = d, g = L(h), y = h == null, b = {}, m = { name: d.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: y, compound: g, keyPath: h, autoIncrement: p, unique: !0, extractKey: Ht(h) }, indexes: Pn(d.indexNames).map((f) => d.index(f)).map((f) => {
1661
+ const { name: w, unique: S, multiEntry: O, keyPath: x } = f, v = { name: w, compound: L(x), keyPath: x, unique: S, multiEntry: O, extractKey: Ht(x) };
1662
1662
  return b[Ne(x)] = v, v;
1663
1663
  }), getIndexByKeyPath: (f) => b[Ne(f)] };
1664
1664
  return b[":id"] = m.primaryKey, h != null && (b[Ne(h)] = m.primaryKey), m;
@@ -1671,10 +1671,10 @@ function Ur(t, e, n) {
1671
1671
  const f = d.objectStore(u), w = f.keyPath == null, S = h === "put" || h === "add";
1672
1672
  if (!S && h !== "delete" && h !== "deleteRange")
1673
1673
  throw new Error("Invalid operation type: " + h);
1674
- const { length: P } = p || g || { length: 1 };
1674
+ const { length: O } = p || g || { length: 1 };
1675
1675
  if (p && g && p.length !== g.length)
1676
1676
  throw new Error("Given keys array must have same length as given values array.");
1677
- if (P === 0)
1677
+ if (O === 0)
1678
1678
  return b({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1679
1679
  let x;
1680
1680
  const v = [], j = [];
@@ -1689,10 +1689,10 @@ function Ur(t, e, n) {
1689
1689
  } else {
1690
1690
  const [U, N] = S ? w ? [g, p] : [g, null] : [p, null];
1691
1691
  if (S)
1692
- for (let M = 0; M < P; ++M)
1692
+ for (let M = 0; M < O; ++M)
1693
1693
  v.push(x = N && N[M] !== void 0 ? f[h](U[M], N[M]) : f[h](U[M])), x.onerror = T;
1694
1694
  else
1695
- for (let M = 0; M < P; ++M)
1695
+ for (let M = 0; M < O; ++M)
1696
1696
  v.push(x = f[h](U[M])), x.onerror = T;
1697
1697
  }
1698
1698
  const K = (U) => {
@@ -1707,12 +1707,12 @@ function Ur(t, e, n) {
1707
1707
  p = I(p);
1708
1708
  const y = d.objectStore(u), b = h.length, m = new Array(b);
1709
1709
  let f, w = 0, S = 0;
1710
- const P = (v) => {
1710
+ const O = (v) => {
1711
1711
  const j = v.target;
1712
1712
  m[j._pos] = j.result, ++S === w && p(m);
1713
1713
  }, x = Q(g);
1714
1714
  for (let v = 0; v < b; ++v)
1715
- h[v] != null && (f = y.get(h[v]), f._pos = v, f.onsuccess = P, f.onerror = x, ++w);
1715
+ h[v] != null && (f = y.get(h[v]), f._pos = v, f.onsuccess = O, f.onerror = x, ++w);
1716
1716
  w === 0 && p(m);
1717
1717
  }), get: ({ trans: d, key: h }) => new Promise((p, g) => {
1718
1718
  p = I(p);
@@ -1721,7 +1721,7 @@ function Ur(t, e, n) {
1721
1721
  }), query: /* @__PURE__ */ function(d) {
1722
1722
  return (h) => new Promise((p, g) => {
1723
1723
  p = I(p);
1724
- const { trans: y, values: b, limit: m, query: f } = h, w = m === 1 / 0 ? void 0 : m, { index: S, range: P } = f, x = y.objectStore(u), v = S.isPrimaryKey ? x : x.index(S.name), j = r(P);
1724
+ const { trans: y, values: b, limit: m, query: f } = h, w = m === 1 / 0 ? void 0 : m, { index: S, range: O } = f, x = y.objectStore(u), v = S.isPrimaryKey ? x : x.index(S.name), j = r(O);
1725
1725
  if (m === 0)
1726
1726
  return p({ result: [] });
1727
1727
  if (d) {
@@ -1739,7 +1739,7 @@ function Ur(t, e, n) {
1739
1739
  }(i), openCursor: function({ trans: d, values: h, query: p, reverse: g, unique: y }) {
1740
1740
  return new Promise((b, m) => {
1741
1741
  b = I(b);
1742
- const { index: f, range: w } = p, S = d.objectStore(u), P = f.isPrimaryKey ? S : S.index(f.name), x = g ? y ? "prevunique" : "prev" : y ? "nextunique" : "next", v = h || !("openKeyCursor" in P) ? P.openCursor(r(w), x) : P.openKeyCursor(r(w), x);
1742
+ const { index: f, range: w } = p, S = d.objectStore(u), O = f.isPrimaryKey ? S : S.index(f.name), x = g ? y ? "prevunique" : "prev" : y ? "nextunique" : "next", v = h || !("openKeyCursor" in O) ? O.openCursor(r(w), x) : O.openKeyCursor(r(w), x);
1743
1743
  v.onerror = Q(m), v.onsuccess = I((j) => {
1744
1744
  const _ = v.result;
1745
1745
  if (!_)
@@ -1783,7 +1783,7 @@ function Ur(t, e, n) {
1783
1783
  const { index: p, range: g } = d;
1784
1784
  return new Promise((y, b) => {
1785
1785
  const m = h.objectStore(u), f = p.isPrimaryKey ? m : m.index(p.name), w = r(g), S = w ? f.count(w) : f.count();
1786
- S.onsuccess = I((P) => y(P.target.result)), S.onerror = Q(b);
1786
+ S.onsuccess = I((O) => y(O.target.result)), S.onerror = Q(b);
1787
1787
  });
1788
1788
  } };
1789
1789
  }(c)), a = {};
@@ -1829,9 +1829,9 @@ function Wr(t, e) {
1829
1829
  function zr(t, e, n, r) {
1830
1830
  const s = t._dbSchema, i = t._createTransaction("readwrite", t._storeNames, s);
1831
1831
  i.create(n), i._completion.catch(r);
1832
- const o = i._reject.bind(i), a = O.transless || O;
1832
+ const o = i._reject.bind(i), a = P.transless || P;
1833
1833
  ae(() => {
1834
- O.trans = i, O.transless = a, e === 0 ? (R(s).forEach((c) => {
1834
+ P.trans = i, P.transless = a, e === 0 ? (R(s).forEach((c) => {
1835
1835
  Ct(n, c, s[c].primKey, s[c].indexes);
1836
1836
  }), Yt(t, n), E.follow(() => t.on.populate.fire(i)).catch(o)) : function({ _novip: c }, l, u, d) {
1837
1837
  const h = [], p = c._versions;
@@ -1844,10 +1844,10 @@ function zr(t, e, n, r) {
1844
1844
  h.push(() => {
1845
1845
  const w = g, S = f._cfg.dbschema;
1846
1846
  Zt(c, w, d), Zt(c, S, d), g = c._dbSchema = S;
1847
- const P = rr(w, S);
1848
- P.add.forEach((v) => {
1847
+ const O = rr(w, S);
1848
+ O.add.forEach((v) => {
1849
1849
  Ct(d, v[0], v[1].primKey, v[1].indexes);
1850
- }), P.change.forEach((v) => {
1850
+ }), O.change.forEach((v) => {
1851
1851
  if (v.recreate)
1852
1852
  throw new C.Upgrade("Not yet support for changing primary key");
1853
1853
  {
@@ -1861,7 +1861,7 @@ function zr(t, e, n, r) {
1861
1861
  if (x && f._cfg.version > l) {
1862
1862
  Yt(c, d), u._memoizedTables = {}, y = !0;
1863
1863
  let v = Bn(S);
1864
- P.del.forEach((K) => {
1864
+ O.del.forEach((K) => {
1865
1865
  v[K] = w[K];
1866
1866
  }), Qt(c, [c.Transaction.prototype]), gt(c, [c.Transaction.prototype], R(v), v), u.schema = v;
1867
1867
  const j = on(x);
@@ -1876,8 +1876,8 @@ function zr(t, e, n, r) {
1876
1876
  return _ && typeof _.then == "function" ? E.resolve(_) : T.then(() => _);
1877
1877
  }
1878
1878
  }), h.push((w) => {
1879
- (!y || !Ir) && function(S, P) {
1880
- [].slice.call(P.db.objectStoreNames).forEach((x) => S[x] == null && P.db.deleteObjectStore(x));
1879
+ (!y || !Ir) && function(S, O) {
1880
+ [].slice.call(O.db.objectStoreNames).forEach((x) => S[x] == null && O.db.deleteObjectStore(x));
1881
1881
  }(f._cfg.dbschema, w), Qt(c, [c.Transaction.prototype]), gt(c, [c.Transaction.prototype], c._storeNames, c._dbSchema), u.schema = c._dbSchema;
1882
1882
  });
1883
1883
  }), m().then(() => {
@@ -1994,7 +1994,7 @@ function pn(t) {
1994
1994
  }
1995
1995
  function qt(t) {
1996
1996
  return ae(function() {
1997
- return O.letThrough = !0, t();
1997
+ return P.letThrough = !0, t();
1998
1998
  });
1999
1999
  }
2000
2000
  function Gr() {
@@ -2101,7 +2101,7 @@ function Yr(t, e, n) {
2101
2101
  }
2102
2102
  function sr(t, e, n, r, s) {
2103
2103
  return E.resolve().then(() => {
2104
- const i = O.transless || O, o = t._createTransaction(e, n, t._dbSchema, r), a = { trans: o, transless: i };
2104
+ const i = P.transless || P, o = t._createTransaction(e, n, t._dbSchema, r), a = { trans: o, transless: i };
2105
2105
  if (r)
2106
2106
  o.idbtrans = r.idbtrans;
2107
2107
  else
@@ -2182,7 +2182,7 @@ function mn(t, e, n, r) {
2182
2182
  const Jr = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) => ({ ...t, table(e) {
2183
2183
  const n = t.table(e), { primaryKey: r } = n.schema;
2184
2184
  return { ...n, mutate(i) {
2185
- const o = O.trans, { deleting: a, creating: c, updating: l } = o.table(e).hook;
2185
+ const o = P.trans, { deleting: a, creating: c, updating: l } = o.table(e).hook;
2186
2186
  switch (i.type) {
2187
2187
  case "add":
2188
2188
  if (c.fire === A)
@@ -2205,7 +2205,7 @@ const Jr = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
2205
2205
  }
2206
2206
  return n.mutate(i);
2207
2207
  function u(h) {
2208
- const p = O.trans, g = h.keys || function(y, b) {
2208
+ const p = P.trans, g = h.keys || function(y, b) {
2209
2209
  return b.type === "delete" ? b.keys : b.keys || b.values.map(y.extractKey);
2210
2210
  }(r, h);
2211
2211
  if (!g)
@@ -2218,10 +2218,10 @@ const Jr = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
2218
2218
  if (h.type === "delete")
2219
2219
  a.fire.call(S, m, w, p);
2220
2220
  else if (h.type === "add" || w === void 0) {
2221
- const P = c.fire.call(S, m, h.values[f], p);
2222
- m == null && P != null && (m = P, h.keys[f] = m, r.outbound || Y(h.values[f], r.keyPath, m));
2221
+ const O = c.fire.call(S, m, h.values[f], p);
2222
+ m == null && O != null && (m = O, h.keys[f] = m, r.outbound || Y(h.values[f], r.keyPath, m));
2223
2223
  } else {
2224
- const P = mn(w, h.values[f]), x = l.fire.call(S, P, m, w, p);
2224
+ const O = mn(w, h.values[f]), x = l.fire.call(S, O, m, w, p);
2225
2225
  if (x) {
2226
2226
  const v = h.values[f];
2227
2227
  Object.keys(x).forEach((j) => {
@@ -2232,9 +2232,9 @@ const Jr = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
2232
2232
  return S;
2233
2233
  });
2234
2234
  return n.mutate(h).then(({ failures: m, results: f, numFailures: w, lastResult: S }) => {
2235
- for (let P = 0; P < g.length; ++P) {
2236
- const x = f ? f[P] : g[P], v = b[P];
2237
- x == null ? v.onerror && v.onerror(m[P]) : v.onsuccess && v.onsuccess(h.type === "put" && y[P] ? h.values[P] : x);
2235
+ for (let O = 0; O < g.length; ++O) {
2236
+ const x = f ? f[O] : g[O], v = b[O];
2237
+ x == null ? v.onerror && v.onerror(m[O]) : v.onsuccess && v.onsuccess(h.type === "put" && y[O] ? h.values[O] : x);
2238
2238
  }
2239
2239
  return { failures: m, results: f, numFailures: w, lastResult: S };
2240
2240
  }).catch((m) => (b.forEach((f) => f.onerror && f.onerror(m)), Promise.reject(m)));
@@ -2370,11 +2370,11 @@ const qr = { stack: "dbcore", level: 0, create: (t) => {
2370
2370
  return g[v] || (g[v] = new Z());
2371
2371
  }, b = y(""), m = y(":dels"), { type: f } = h;
2372
2372
  let [w, S] = h.type === "deleteRange" ? [h.range] : h.type === "delete" ? [h.keys] : h.values.length < 50 ? [[], h.values] : [];
2373
- const P = h.trans._cache;
2373
+ const O = h.trans._cache;
2374
2374
  return s.mutate(h).then((x) => {
2375
2375
  if (L(w)) {
2376
2376
  f !== "delete" && (w = x.results), b.addKeys(w);
2377
- const v = ir(w, P);
2377
+ const v = ir(w, O);
2378
2378
  v || f === "add" || m.addKeys(w), (v || S) && function(j, _, T, K) {
2379
2379
  function U(N) {
2380
2380
  const M = j(N.name || "");
@@ -2402,29 +2402,29 @@ const qr = { stack: "dbcore", level: 0, create: (t) => {
2402
2402
  }, d = { get: (h) => [o, new Z(h.key)], getMany: (h) => [o, new Z().addKeys(h.keys)], count: u, query: u, openCursor: u };
2403
2403
  return R(d).forEach((h) => {
2404
2404
  l[h] = function(p) {
2405
- const { subscr: g } = O;
2405
+ const { subscr: g } = P;
2406
2406
  if (g) {
2407
2407
  const y = (S) => {
2408
- const P = `idb://${e}/${r}/${S}`;
2409
- return g[P] || (g[P] = new Z());
2408
+ const O = `idb://${e}/${r}/${S}`;
2409
+ return g[O] || (g[O] = new Z());
2410
2410
  }, b = y(""), m = y(":dels"), [f, w] = d[h](p);
2411
2411
  if (y(f.name || "").add(w), !f.isPrimaryKey) {
2412
2412
  if (h !== "count") {
2413
2413
  const S = h === "query" && c && p.values && s.query({ ...p, values: !1 });
2414
- return s[h].apply(this, arguments).then((P) => {
2414
+ return s[h].apply(this, arguments).then((O) => {
2415
2415
  if (h === "query") {
2416
2416
  if (c && p.values)
2417
- return S.then(({ result: v }) => (b.addKeys(v), P));
2418
- const x = p.values ? P.result.map(a) : P.result;
2417
+ return S.then(({ result: v }) => (b.addKeys(v), O));
2418
+ const x = p.values ? O.result.map(a) : O.result;
2419
2419
  p.values ? b.addKeys(x) : m.addKeys(x);
2420
2420
  } else if (h === "openCursor") {
2421
- const x = P, v = p.values;
2421
+ const x = O, v = p.values;
2422
2422
  return x && Object.create(x, { key: { get: () => (m.addKey(x.primaryKey), x.key) }, primaryKey: { get() {
2423
2423
  const j = x.primaryKey;
2424
2424
  return m.addKey(j), j;
2425
2425
  } }, value: { get: () => (v && b.addKey(x.primaryKey), x.value) } });
2426
2426
  }
2427
- return P;
2427
+ return O;
2428
2428
  });
2429
2429
  }
2430
2430
  m.add(n);
@@ -2520,7 +2520,7 @@ class me {
2520
2520
  return r || (r = new this.Version(e), n.push(r), n.sort(Wr), r.stores({}), this._state.autoSchema = !1, r);
2521
2521
  }
2522
2522
  _whenReady(e) {
2523
- return this.idbdb && (this._state.openComplete || O.letThrough || this._vip) ? e() : new E((n, r) => {
2523
+ return this.idbdb && (this._state.openComplete || P.letThrough || this._vip) ? e() : new E((n, r) => {
2524
2524
  if (this._state.openComplete)
2525
2525
  return r(new C.DatabaseClosed(this._state.dbOpenError));
2526
2526
  if (!this._state.isBeingOpened) {
@@ -2603,7 +2603,7 @@ class me {
2603
2603
  return this._transaction.apply(this, e);
2604
2604
  }
2605
2605
  _transaction(e, n, r) {
2606
- let s = O.trans;
2606
+ let s = P.trans;
2607
2607
  s && s.db === this && e.indexOf("!") === -1 || (s = null);
2608
2608
  const i = e.indexOf("?") !== -1;
2609
2609
  let o, a;
@@ -2641,7 +2641,7 @@ class me {
2641
2641
  }) : F(l);
2642
2642
  }
2643
2643
  const c = sr.bind(null, this, o, a, s, r);
2644
- return s ? s._promise(o, c, "lock") : O.trans ? Ke(O.transless, () => this._whenReady(c)) : this._whenReady(c);
2644
+ return s ? s._promise(o, c, "lock") : P.trans ? Ke(P.transless, () => this._whenReady(c)) : this._whenReady(c);
2645
2645
  }
2646
2646
  table(e) {
2647
2647
  if (!H(this._allTables, e))
@@ -2689,7 +2689,7 @@ function ns(t) {
2689
2689
  a = {};
2690
2690
  const y = {}, b = function(m) {
2691
2691
  i && je();
2692
- const f = () => ae(t, { subscr: m, trans: null }), w = O.trans ? Ke(O.transless, f) : f();
2692
+ const f = () => ae(t, { subscr: m, trans: null }), w = P.trans ? Ke(P.transless, f) : f();
2693
2693
  return i && w.then(re, re), w;
2694
2694
  }(y);
2695
2695
  d || (le(ze, p), d = !0), u = !0, Promise.resolve(b).then((m) => {
@@ -2727,7 +2727,7 @@ Ce(he, { ...st, delete: (t) => new he(t, { addons: [] }).delete(), exists: (t) =
2727
2727
  }
2728
2728
  }, defineClass: () => function(t) {
2729
2729
  z(this, t);
2730
- }, ignoreTransaction: (t) => O.trans ? Ke(O.transless, t) : t(), vip: qt, async: function(t) {
2730
+ }, ignoreTransaction: (t) => P.trans ? Ke(P.transless, t) : t(), vip: qt, async: function(t) {
2731
2731
  return function() {
2732
2732
  try {
2733
2733
  var e = en(t.apply(this, arguments));
@@ -2743,9 +2743,9 @@ Ce(he, { ...st, delete: (t) => new he(t, { addons: [] }).delete(), exists: (t) =
2743
2743
  } catch (s) {
2744
2744
  return F(s);
2745
2745
  }
2746
- }, currentTransaction: { get: () => O.trans || null }, waitFor: function(t, e) {
2746
+ }, currentTransaction: { get: () => P.trans || null }, waitFor: function(t, e) {
2747
2747
  const n = E.resolve(typeof t == "function" ? he.ignoreTransaction(t) : t).timeout(e || 6e4);
2748
- return O.trans ? O.trans.waitFor(n) : n;
2748
+ return P.trans ? P.trans.waitFor(n) : n;
2749
2749
  }, Promise: E, debug: { get: () => J, set: (t) => {
2750
2750
  Rn(t, t === "dexie" ? () => !0 : Xn);
2751
2751
  } }, derive: Ee, extend: z, props: Ce, override: An, Events: Fe, on: le, liveQuery: ns, extendObservabilitySet: or, getByKeyPath: ne, setByKeyPath: Y, delByKeyPath: function(t, e) {
@@ -2786,7 +2786,7 @@ if (typeof BroadcastChannel < "u") {
2786
2786
  });
2787
2787
  }
2788
2788
  E.rejectionMapper = function(t, e) {
2789
- if (!t || t instanceof Pe || t instanceof TypeError || t instanceof SyntaxError || !t.name || !bn[t.name])
2789
+ if (!t || t instanceof Oe || t instanceof TypeError || t instanceof SyntaxError || !t.name || !bn[t.name])
2790
2790
  return t;
2791
2791
  var n = new bn[t.name](e || t.message, t);
2792
2792
  return "stack" in t && te(n, "stack", { get: function() {
@@ -3115,48 +3115,34 @@ class cs {
3115
3115
  k(this, "options");
3116
3116
  k(this, "setCloud", async (e, n) => {
3117
3117
  const r = B(e);
3118
- return new Promise(async (s) => {
3119
- s(window.BuzzCasting.WidgetData[r] = n);
3120
- });
3118
+ window.BuzzCasting.WidgetData[r] = n;
3121
3119
  });
3122
3120
  k(this, "getCloud", async (e) => {
3123
3121
  const n = B(e);
3124
- return new Promise(async (r) => {
3125
- r(window.localStorage.getObject(n));
3126
- });
3122
+ return await window.localStorage.getObject(n);
3127
3123
  });
3128
3124
  k(this, "setSeries", async (e, n) => {
3129
3125
  const r = B(e);
3130
- return new Promise(async (s) => {
3131
- s(window.localStorage.setObject(r, n));
3132
- });
3126
+ window.localStorage.setObject(r, n);
3133
3127
  });
3134
3128
  k(this, "getSeries", async (e) => {
3135
3129
  const n = B(e);
3136
- return new Promise(async (r) => {
3137
- r(window.localStorage.getObject(n));
3138
- });
3130
+ return await window.localStorage.getObject(n);
3139
3131
  });
3140
3132
  k(this, "setMessages", async (e, n) => {
3141
3133
  const r = B(e);
3142
- return new Promise(async (s) => {
3143
- s(window.localStorage.setObject(r, n));
3144
- });
3134
+ window.localStorage.setObject(r, n);
3145
3135
  });
3146
3136
  k(this, "getMessages", async (e) => {
3147
3137
  const n = B(e);
3148
- return new Promise(async (r) => {
3149
- r(window.localStorage.getObject(n));
3150
- });
3138
+ return await window.localStorage.getObject(n);
3151
3139
  });
3152
3140
  k(this, "cleanMessages", async (e) => {
3153
3141
  console.log("cleanMessages not implemented for ", this.options.storage);
3154
3142
  });
3155
3143
  k(this, "setWidget", async (e) => {
3156
3144
  let n = `widget.${e.widget}`;
3157
- return new Promise(async (r) => {
3158
- r(window.localStorage.setObject(n, e));
3159
- });
3145
+ window.localStorage.setObject(n, e);
3160
3146
  });
3161
3147
  k(this, "subscribe", (e) => {
3162
3148
  var r;
@@ -3164,7 +3150,9 @@ class cs {
3164
3150
  const s = (r = e.topics) == null ? void 0 : r.split("-");
3165
3151
  e.dashboard = s ? s[0] : "", e.widget = s ? s[1] : "";
3166
3152
  }
3167
- e.type === be && (e = Je(this.options, e)), !this.subscribers.filter((s) => s.widget == e.widget).length && this.subscribers.push(e);
3153
+ e.type === be && (e = Je(this.options, e)), !this.subscribers.filter(
3154
+ (s) => s.widget == e.widget
3155
+ ).length && this.subscribers.push(e);
3168
3156
  });
3169
3157
  this.options = e, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3170
3158
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "mark.tamis@touchflows.com"
6
6
  },
7
7
  "type": "module",
8
- "version": "1.0.7",
8
+ "version": "1.0.9",
9
9
  "private": false,
10
10
  "exports": {
11
11
  ".": {