buzzcasting-storage 2.9.4 → 2.9.6

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.
@@ -45,6 +45,20 @@ export declare class BuzzcastingStorageReader {
45
45
  getSeries: (query: IQuery) => Promise<IResponse>;
46
46
  }
47
47
 
48
+ /**
49
+ * Convert string containing hyphens to camelCase
50
+ * @param str
51
+ * @returns string
52
+ */
53
+ export declare function camelCase(str: string): string;
54
+
55
+ /**
56
+ * Convert string containing hyphens to camelCase
57
+ * @param str
58
+ * @returns camilized string
59
+ */
60
+ export declare function camelize(str: string): string;
61
+
48
62
  declare enum CSS_2 {
49
63
  API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;",
50
64
  APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;",
@@ -215,8 +229,7 @@ export declare interface IMetrics {
215
229
  */
216
230
  export declare interface IModal {
217
231
  showComponent: string;
218
- dataset?: any;
219
- attributes?: any;
232
+ props?: any;
220
233
  }
221
234
 
222
235
  /**
@@ -351,7 +364,7 @@ export declare class Widget {
351
364
  private storageReader;
352
365
  private broadcastChannel;
353
366
  private query;
354
- private attributes;
367
+ private props;
355
368
  private listeners;
356
369
  /**
357
370
  * Main container for managing widgets and data updates
@@ -1,7 +1,7 @@
1
1
  var Ei = Object.defineProperty;
2
2
  var Oi = (w, o, h) => o in w ? Ei(w, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : w[o] = h;
3
3
  var P = (w, o, h) => (Oi(w, typeof o != "symbol" ? o + "" : o, h), h);
4
- const xi = "2.9.3";
4
+ const xi = "2.9.5";
5
5
  class ki {
6
6
  constructor(o) {
7
7
  P(this, "options");
@@ -113,9 +113,9 @@ var Rr = { exports: {} };
113
113
  return e.prototype = Object.create(t.prototype), ke(e.prototype, "constructor", e), { extend: xe.bind(null, e.prototype) };
114
114
  } };
115
115
  }
116
- var Fr = Object.getOwnPropertyDescriptor, Lr = [].slice;
116
+ var Lr = Object.getOwnPropertyDescriptor, Fr = [].slice;
117
117
  function wt(e, t, n) {
118
- return Lr.call(e, t, n);
118
+ return Fr.call(e, t, n);
119
119
  }
120
120
  function Yn(e, t) {
121
121
  return t(e);
@@ -263,7 +263,7 @@ var Rr = { exports: {} };
263
263
  } }), $e(_t).from(He), $e(Qe).from(He);
264
264
  var en = de.reduce(function(e, t) {
265
265
  return e[t] = t + "Error", e;
266
- }, {}), Yr = He, F = de.reduce(function(e, t) {
266
+ }, {}), Yr = He, L = de.reduce(function(e, t) {
267
267
  var n = t + "Error";
268
268
  function r(i, a) {
269
269
  this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(a ? `
@@ -271,11 +271,11 @@ var Rr = { exports: {} };
271
271
  }
272
272
  return $e(r).from(Yr), e[t] = r, e;
273
273
  }, {});
274
- F.Syntax = SyntaxError, F.Type = TypeError, F.Range = RangeError;
274
+ L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
275
275
  var Zn = st.reduce(function(e, t) {
276
- return e[t + "Error"] = F[t], e;
276
+ return e[t + "Error"] = L[t], e;
277
277
  }, {}), St = de.reduce(function(e, t) {
278
- return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = F[t]), e;
278
+ return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = L[t]), e;
279
279
  }, {});
280
280
  function H() {
281
281
  }
@@ -503,7 +503,7 @@ var Rr = { exports: {} };
503
503
  var n = this;
504
504
  return e < 1 / 0 ? new T(function(r, i) {
505
505
  var a = setTimeout(function() {
506
- return i(new F.Timeout(t));
506
+ return i(new L.Timeout(t));
507
507
  }, e);
508
508
  n.then(r, i).finally(clearTimeout.bind(null, a));
509
509
  }) : this;
@@ -645,8 +645,8 @@ var Rr = { exports: {} };
645
645
  Promise === ut && ne.echoes === 0 ? Dt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
646
646
  }
647
647
  ("" + de).indexOf("[native code]") === -1 && (Je = Ie = H);
648
- var q = T.reject, ge = "4.0.1-beta.10", Fe = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", Ze = [], Ct = "__dbnames", fn = "readonly", dn = "readwrite";
649
- function Le(e, t) {
648
+ var q = T.reject, ge = "4.0.1-beta.10", Le = "￿", _e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", or = "String expected.", Ze = [], Ct = "__dbnames", fn = "readonly", dn = "readwrite";
649
+ function Fe(e, t) {
650
650
  return e ? t ? function() {
651
651
  return e.apply(this, arguments) && t.apply(this, arguments);
652
652
  } : e : t;
@@ -660,7 +660,7 @@ var Rr = { exports: {} };
660
660
  };
661
661
  }
662
662
  function sr() {
663
- throw F.Type();
663
+ throw L.Type();
664
664
  }
665
665
  function $(e, t) {
666
666
  try {
@@ -704,7 +704,7 @@ var Rr = { exports: {} };
704
704
  var r = this._tx || K.trans, i = this.name, a = pe && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
705
705
  function s(l, b, c) {
706
706
  if (!c.schema[i])
707
- throw new F.NotFound("Table " + i + " not part of transaction");
707
+ throw new L.NotFound("Table " + i + " not part of transaction");
708
708
  return t(c.idbtrans, c);
709
709
  }
710
710
  var u = Ve();
@@ -737,10 +737,10 @@ var Rr = { exports: {} };
737
737
  });
738
738
  }
739
739
  if (b._state.openComplete)
740
- return q(new F.DatabaseClosed(b._state.dbOpenError));
740
+ return q(new L.DatabaseClosed(b._state.dbOpenError));
741
741
  if (!b._state.isBeingOpened) {
742
742
  if (!b._state.autoOpen)
743
- return q(new F.DatabaseClosed());
743
+ return q(new L.DatabaseClosed());
744
744
  b.open().catch(H);
745
745
  }
746
746
  return b._state.dbReadyPromise.then(function() {
@@ -755,7 +755,7 @@ var Rr = { exports: {} };
755
755
  }
756
756
  }, V.prototype.get = function(e, t) {
757
757
  var n = this;
758
- return e && e.constructor === Object ? this.where(e).first(t) : e == null ? q(new F.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(r) {
758
+ return e && e.constructor === Object ? this.where(e).first(t) : e == null ? q(new L.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(r) {
759
759
  return n.core.get({ trans: r, key: e }).then(function(i) {
760
760
  return n.hook.reading.fire(i);
761
761
  });
@@ -781,7 +781,7 @@ var Rr = { exports: {} };
781
781
  }).sort(function(d, l) {
782
782
  return d.keyPath.length - l.keyPath.length;
783
783
  })[0];
784
- if (n && this.db._maxKey !== Fe) {
784
+ if (n && this.db._maxKey !== Le) {
785
785
  var s = n.keyPath.slice(0, t.length);
786
786
  return this.where(s).equals(s.map(function(l) {
787
787
  return e[l];
@@ -794,7 +794,7 @@ var Rr = { exports: {} };
794
794
  }
795
795
  var u = t.reduce(function(f, l) {
796
796
  var b = f[0], c = f[1], f = r[l], p = e[l];
797
- return [b || f, b || !f ? Le(c, f && f.multi ? function(y) {
797
+ return [b || f, b || !f ? Fe(c, f && f.multi ? function(y) {
798
798
  return y = ve(y, l), N(y) && y.some(function(v) {
799
799
  return a(p, v);
800
800
  });
@@ -874,7 +874,7 @@ var Rr = { exports: {} };
874
874
  return u;
875
875
  });
876
876
  }, V.prototype.update = function(e, t) {
877
- return typeof e != "object" || N(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new F.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
877
+ return typeof e != "object" || N(e) ? this.where(":id").equals(e).modify(t) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new L.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
878
878
  }, V.prototype.put = function(e, t) {
879
879
  var n = this, r = this.schema.primKey, i = r.auto, a = r.keyPath, s = e;
880
880
  return a && i && (s = Rt(a)(e)), this._trans("readwrite", function(u) {
@@ -917,9 +917,9 @@ var Rr = { exports: {} };
917
917
  return this._trans("readwrite", function(s) {
918
918
  var l = r.schema.primKey, u = l.auto, l = l.keyPath;
919
919
  if (l && i)
920
- throw new F.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
920
+ throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
921
921
  if (i && i.length !== e.length)
922
- throw new F.InvalidArgument("Arguments objects and keys must have the same length");
922
+ throw new L.InvalidArgument("Arguments objects and keys must have the same length");
923
923
  var d = e.length, l = l && u ? e.map(Rt(l)) : e;
924
924
  return r.core.mutate({ trans: s, type: "add", keys: i, values: l, wantResults: a }).then(function(y) {
925
925
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
@@ -933,9 +933,9 @@ var Rr = { exports: {} };
933
933
  return this._trans("readwrite", function(s) {
934
934
  var l = r.schema.primKey, u = l.auto, l = l.keyPath;
935
935
  if (l && i)
936
- throw new F.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
936
+ throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
937
937
  if (i && i.length !== e.length)
938
- throw new F.InvalidArgument("Arguments objects and keys must have the same length");
938
+ throw new L.InvalidArgument("Arguments objects and keys must have the same length");
939
939
  var d = e.length, l = l && u ? e.map(Rt(l)) : e;
940
940
  return r.core.mutate({ trans: s, type: "put", keys: i, values: l, wantResults: a }).then(function(y) {
941
941
  var c = y.numFailures, f = y.results, p = y.lastResult, y = y.failures;
@@ -960,7 +960,7 @@ var Rr = { exports: {} };
960
960
  var S = _[g], E = y[S];
961
961
  if (S === t.schema.primKey.keyPath) {
962
962
  if ($(E, p) !== 0)
963
- throw new F.Constraint("Cannot update primary key in bulkUpdate()");
963
+ throw new L.Constraint("Cannot update primary key in bulkUpdate()");
964
964
  } else
965
965
  fe(v, S, E);
966
966
  }
@@ -1027,7 +1027,7 @@ var Rr = { exports: {} };
1027
1027
  a(c, l[c][0], l[c][1]);
1028
1028
  else {
1029
1029
  if (f !== "asap")
1030
- throw new F.InvalidArgument("Invalid event config");
1030
+ throw new L.InvalidArgument("Invalid event config");
1031
1031
  var p = a(c, ot, function() {
1032
1032
  for (var y = arguments.length, v = new Array(y); y--; )
1033
1033
  v[y] = arguments[y];
@@ -1048,12 +1048,12 @@ var Rr = { exports: {} };
1048
1048
  return !(e.filter || e.algorithm || e.or) && (t ? e.justLimit : !e.replayFilter);
1049
1049
  }
1050
1050
  function hn(e, t) {
1051
- e.filter = Le(e.filter, t);
1051
+ e.filter = Fe(e.filter, t);
1052
1052
  }
1053
1053
  function pn(e, t, n) {
1054
1054
  var r = e.replayFilter;
1055
1055
  e.replayFilter = r ? function() {
1056
- return Le(r(), t());
1056
+ return Fe(r(), t());
1057
1057
  } : t, e.justLimit = n && !r;
1058
1058
  }
1059
1059
  function Tt(e, t) {
@@ -1061,7 +1061,7 @@ var Rr = { exports: {} };
1061
1061
  return t.primaryKey;
1062
1062
  var n = t.getIndexByKeyPath(e.index);
1063
1063
  if (!n)
1064
- throw new F.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1064
+ throw new L.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
1065
1065
  return n;
1066
1066
  }
1067
1067
  function fr(e, t, n) {
@@ -1069,7 +1069,7 @@ var Rr = { exports: {} };
1069
1069
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: r, range: e.range } });
1070
1070
  }
1071
1071
  function jt(e, t, n, r) {
1072
- var i = e.replayFilter ? Le(e.filter, e.replayFilter()) : e.filter;
1072
+ var i = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1073
1073
  if (e.or) {
1074
1074
  var a = {}, s = function(u, d, l) {
1075
1075
  var b, c;
@@ -1081,7 +1081,7 @@ var Rr = { exports: {} };
1081
1081
  };
1082
1082
  return Promise.all([e.or._iterate(s, n), dr(fr(e, r, n), e.algorithm, s, !e.keysOnly && e.valueMapper)]);
1083
1083
  }
1084
- return dr(fr(e, r, n), Le(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
1084
+ return dr(fr(e, r, n), Fe(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
1085
1085
  }
1086
1086
  function dr(e, t, n, r) {
1087
1087
  var i = J(r ? function(a, s, u) {
@@ -1113,7 +1113,7 @@ var Rr = { exports: {} };
1113
1113
  return t.error ? t.table._trans(null, q.bind(null, t.error)) : t.table._trans("readwrite", e, "locked");
1114
1114
  }, z.prototype._addAlgorithm = function(e) {
1115
1115
  var t = this._ctx;
1116
- t.algorithm = Le(t.algorithm, e);
1116
+ t.algorithm = Fe(t.algorithm, e);
1117
1117
  }, z.prototype._iterate = function(e, t) {
1118
1118
  return jt(this._ctx, e, t, this._ctx.table.core);
1119
1119
  }, z.prototype.clone = function(e) {
@@ -1206,7 +1206,7 @@ var Rr = { exports: {} };
1206
1206
  var t;
1207
1207
  return hn(this._ctx, function(n) {
1208
1208
  return e(n.value);
1209
- }), (t = this._ctx).isMatch = Le(t.isMatch, e), this;
1209
+ }), (t = this._ctx).isMatch = Fe(t.isMatch, e), this;
1210
1210
  }, z.prototype.and = function(e) {
1211
1211
  return this.filter(e);
1212
1212
  }, z.prototype.or = function(e) {
@@ -1294,8 +1294,8 @@ var Rr = { exports: {} };
1294
1294
  var E = Math.min(f, g.length - S);
1295
1295
  return d.getMany({ trans: r, keys: g.slice(S, S + E), cache: "immutable" }).then(function(O) {
1296
1296
  for (var k = [], C = [], A = b ? [] : null, R = [], D = 0; D < E; ++D) {
1297
- var G = O[D], L = { value: Ae(G), primKey: g[S + D] };
1298
- s.call(L, L.value, L) !== !1 && (L.value == null ? R.push(g[S + D]) : b || $(c(G), c(L.value)) === 0 ? (C.push(L.value), b && A.push(g[S + D])) : (R.push(g[S + D]), k.push(L.value)));
1297
+ var G = O[D], F = { value: Ae(G), primKey: g[S + D] };
1298
+ s.call(F, F.value, F) !== !1 && (F.value == null ? R.push(g[S + D]) : b || $(c(G), c(F.value)) === 0 ? (C.push(F.value), b && A.push(g[S + D])) : (R.push(g[S + D]), k.push(F.value)));
1299
1299
  }
1300
1300
  var Y = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1301
1301
  return Promise.resolve(0 < k.length && d.mutate({ trans: r, type: "add", values: k }).then(function(W) {
@@ -1398,14 +1398,14 @@ var Rr = { exports: {} };
1398
1398
  if (t(S, d, p))
1399
1399
  return !0;
1400
1400
  for (var E = null, O = p; O < c; ++O) {
1401
- var k = function(C, A, R, D, G, L) {
1401
+ var k = function(C, A, R, D, G, F) {
1402
1402
  for (var Y = Math.min(C.length, D.length), W = -1, Q = 0; Q < Y; ++Q) {
1403
1403
  var le = A[Q];
1404
1404
  if (le !== D[Q])
1405
1405
  return G(C[Q], R[Q]) < 0 ? C.substr(0, Q) + R[Q] + R.substr(Q + 1) : G(C[Q], D[Q]) < 0 ? C.substr(0, Q) + D[Q] + R.substr(Q + 1) : 0 <= W ? C.substr(0, W) + A[W] + R.substr(W + 1) : null;
1406
1406
  G(C[Q], le) < 0 && (W = Q);
1407
1407
  }
1408
- return Y < D.length && L === "next" ? C + R.substr(C.length) : Y < C.length && L === "prev" ? C.substr(0, R.length) : W < 0 ? null : C.substr(0, W) + D[W] + R.substr(W + 1);
1408
+ return Y < D.length && F === "next" ? C + R.substr(C.length) : Y < C.length && F === "prev" ? C.substr(0, R.length) : W < 0 ? null : C.substr(0, W) + D[W] + R.substr(W + 1);
1409
1409
  }(_, S, u[O], d[O], s, l);
1410
1410
  k === null && E === null ? p = O + 1 : (E === null || 0 < s(E, k)) && (E = k);
1411
1411
  }
@@ -1452,11 +1452,11 @@ var Rr = { exports: {} };
1452
1452
  return Re(void 0, e);
1453
1453
  });
1454
1454
  }, re.prototype.startsWith = function(e) {
1455
- return typeof e != "string" ? ce(this, or) : this.between(e, e + Fe, !0, !0);
1455
+ return typeof e != "string" ? ce(this, or) : this.between(e, e + Le, !0, !0);
1456
1456
  }, re.prototype.startsWithIgnoreCase = function(e) {
1457
1457
  return e === "" ? this.startsWith(e) : Mt(this, function(t, n) {
1458
1458
  return t.indexOf(n[0]) === 0;
1459
- }, [e], Fe);
1459
+ }, [e], Le);
1460
1460
  }, re.prototype.equalsIgnoreCase = function(e) {
1461
1461
  return Mt(this, function(t, n) {
1462
1462
  return t === n[0];
@@ -1472,7 +1472,7 @@ var Rr = { exports: {} };
1472
1472
  return n.some(function(r) {
1473
1473
  return t.indexOf(r) === 0;
1474
1474
  });
1475
- }, e, Fe);
1475
+ }, e, Le);
1476
1476
  }, re.prototype.anyOf = function() {
1477
1477
  var e = this, t = we.apply(Ye, arguments), n = this._cmp;
1478
1478
  try {
@@ -1519,7 +1519,7 @@ var Rr = { exports: {} };
1519
1519
  if (!_.every(function(S) {
1520
1520
  return S[0] !== void 0 && S[1] !== void 0 && i(S[0], S[1]) <= 0;
1521
1521
  }))
1522
- return ce(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", F.InvalidArgument);
1522
+ return ce(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1523
1523
  var d = !t || t.includeLowers !== !1, l = t && t.includeUppers === !0, b, c = i;
1524
1524
  function f(S, E) {
1525
1525
  return c(S[0], E[0]);
@@ -1564,7 +1564,7 @@ var Rr = { exports: {} };
1564
1564
  return e.every(function(t) {
1565
1565
  return typeof t == "string";
1566
1566
  }) ? e.length === 0 ? et(this) : this.inAnyRange(e.map(function(t) {
1567
- return [t, t + Fe];
1567
+ return [t, t + Le];
1568
1568
  })) : ce(this, "startsWithAnyOf() only works with strings");
1569
1569
  }, re);
1570
1570
  function re() {
@@ -1599,27 +1599,27 @@ var Rr = { exports: {} };
1599
1599
  if (rt(!this.idbtrans), !e && !n)
1600
1600
  switch (r && r.name) {
1601
1601
  case "DatabaseClosedError":
1602
- throw new F.DatabaseClosed(r);
1602
+ throw new L.DatabaseClosed(r);
1603
1603
  case "MissingAPIError":
1604
- throw new F.MissingAPI(r.message, r);
1604
+ throw new L.MissingAPI(r.message, r);
1605
1605
  default:
1606
- throw new F.OpenFailed(r);
1606
+ throw new L.OpenFailed(r);
1607
1607
  }
1608
1608
  if (!this.active)
1609
- throw new F.TransactionInactive();
1609
+ throw new L.TransactionInactive();
1610
1610
  return rt(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = J(function(i) {
1611
1611
  ht(i), t._reject(e.error);
1612
1612
  }), e.onabort = J(function(i) {
1613
- ht(i), t.active && t._reject(new F.Abort(e.error)), t.active = !1, t.on("abort").fire(i);
1613
+ ht(i), t.active && t._reject(new L.Abort(e.error)), t.active = !1, t.on("abort").fire(i);
1614
1614
  }), e.oncomplete = J(function() {
1615
1615
  t.active = !1, t._resolve(), "mutatedParts" in e && Te.storagemutated.fire(e.mutatedParts);
1616
1616
  }), this;
1617
1617
  }, me.prototype._promise = function(e, t, n) {
1618
1618
  var r = this;
1619
1619
  if (e === "readwrite" && this.mode !== "readwrite")
1620
- return q(new F.ReadOnly("Transaction is readonly"));
1620
+ return q(new L.ReadOnly("Transaction is readonly"));
1621
1621
  if (!this.active)
1622
- return q(new F.TransactionInactive());
1622
+ return q(new L.TransactionInactive());
1623
1623
  if (this._locked())
1624
1624
  return new T(function(a, s) {
1625
1625
  r._blockedFuncs.push([function() {
@@ -1664,14 +1664,14 @@ var Rr = { exports: {} };
1664
1664
  });
1665
1665
  });
1666
1666
  }, me.prototype.abort = function() {
1667
- this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new F.Abort()));
1667
+ this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new L.Abort()));
1668
1668
  }, me.prototype.table = function(e) {
1669
1669
  var t = this._memoizedTables || (this._memoizedTables = {});
1670
1670
  if (ie(t, e))
1671
1671
  return t[e];
1672
1672
  var n = this.schema[e];
1673
1673
  if (!n)
1674
- throw new F.NotFound("Table " + e + " not part of transaction");
1674
+ throw new L.NotFound("Table " + e + " not part of transaction");
1675
1675
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
1676
1676
  }, me);
1677
1677
  function me() {
@@ -1697,8 +1697,8 @@ var Rr = { exports: {} };
1697
1697
  }, [[]];
1698
1698
  } catch {
1699
1699
  return gt = function() {
1700
- return Fe;
1701
- }, Fe;
1700
+ return Le;
1701
+ }, Le;
1702
1702
  }
1703
1703
  };
1704
1704
  function vn(e) {
@@ -1737,10 +1737,10 @@ var Rr = { exports: {} };
1737
1737
  var A = g.objectStore(y), R = A.keyPath == null, D = _ === "put" || _ === "add";
1738
1738
  if (!D && _ !== "delete" && _ !== "deleteRange")
1739
1739
  throw new Error("Invalid operation type: " + _);
1740
- var G, L = (S || E || { length: 1 }).length;
1740
+ var G, F = (S || E || { length: 1 }).length;
1741
1741
  if (S && E && S.length !== E.length)
1742
1742
  throw new Error("Given keys array must have same length as given values array.");
1743
- if (L === 0)
1743
+ if (F === 0)
1744
1744
  return k({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1745
1745
  function Y(se) {
1746
1746
  ++le, ht(se);
@@ -1753,10 +1753,10 @@ var Rr = { exports: {} };
1753
1753
  } else {
1754
1754
  var R = D ? R ? [E, S] : [E, null] : [S, null], U = R[0], Ee = R[1];
1755
1755
  if (D)
1756
- for (var ae = 0; ae < L; ++ae)
1756
+ for (var ae = 0; ae < F; ++ae)
1757
1757
  W.push(G = Ee && Ee[ae] !== void 0 ? A[_](U[ae], Ee[ae]) : A[_](U[ae])), G.onerror = Y;
1758
1758
  else
1759
- for (ae = 0; ae < L; ++ae)
1759
+ for (ae = 0; ae < F; ++ae)
1760
1760
  W.push(G = A[_](U[ae])), G.onerror = Y;
1761
1761
  }
1762
1762
  function Qt(se) {
@@ -1776,8 +1776,8 @@ var Rr = { exports: {} };
1776
1776
  S = J(S);
1777
1777
  for (var O, k = g.objectStore(y), C = _.length, A = new Array(C), R = 0, D = 0, G = function(W) {
1778
1778
  W = W.target, A[W._pos] = W.result, ++D === R && S(A);
1779
- }, L = ye(E), Y = 0; Y < C; ++Y)
1780
- _[Y] != null && ((O = k.get(_[Y]))._pos = Y, O.onsuccess = G, O.onerror = L, ++R);
1779
+ }, F = ye(E), Y = 0; Y < C; ++Y)
1780
+ _[Y] != null && ((O = k.get(_[Y]))._pos = Y, O.onsuccess = G, O.onerror = F, ++R);
1781
1781
  R === 0 && S(A);
1782
1782
  });
1783
1783
  }, get: function(v) {
@@ -1795,9 +1795,9 @@ var Rr = { exports: {} };
1795
1795
  var S, E, O, R = v.trans, k = v.values, C = v.limit, G = v.query, A = C === 1 / 0 ? void 0 : C, D = G.index, G = G.range, R = R.objectStore(y), D = D.isPrimaryKey ? R : R.index(D.name), G = r(G);
1796
1796
  if (C === 0)
1797
1797
  return g({ result: [] });
1798
- p ? ((A = k ? D.getAll(G, A) : D.getAllKeys(G, A)).onsuccess = function(L) {
1799
- return g({ result: L.target.result });
1800
- }, A.onerror = ye(_)) : (S = 0, E = !k && "openKeyCursor" in D ? D.openKeyCursor(G) : D.openCursor(G), O = [], E.onsuccess = function(L) {
1798
+ p ? ((A = k ? D.getAll(G, A) : D.getAllKeys(G, A)).onsuccess = function(F) {
1799
+ return g({ result: F.target.result });
1800
+ }, A.onerror = ye(_)) : (S = 0, E = !k && "openKeyCursor" in D ? D.openKeyCursor(G) : D.openCursor(G), O = [], E.onsuccess = function(F) {
1801
1801
  var Y = E.result;
1802
1802
  return Y ? (O.push(k ? Y.value : Y.primaryKey), ++S === C ? g({ result: O }) : void Y.continue()) : g({ result: O });
1803
1803
  }, E.onerror = ye(_));
@@ -1807,7 +1807,7 @@ var Rr = { exports: {} };
1807
1807
  return new Promise(function(k, C) {
1808
1808
  k = J(k);
1809
1809
  var D = S.index, A = S.range, R = g.objectStore(y), R = D.isPrimaryKey ? R : R.index(D.name), D = E ? O ? "prevunique" : "prev" : O ? "nextunique" : "next", G = !_ && "openKeyCursor" in R ? R.openKeyCursor(r(A), D) : R.openCursor(r(A), D);
1810
- G.onerror = ye(C), G.onsuccess = J(function(L) {
1810
+ G.onerror = ye(C), G.onsuccess = J(function(F) {
1811
1811
  var Y, W, Q, le, U = G.result;
1812
1812
  U ? (U.___id = ++si, U.done = !1, Y = U.continue.bind(U), W = (W = U.continuePrimaryKey) && W.bind(U), Q = U.advance.bind(U), le = function() {
1813
1813
  throw new Error("Cursor not stopped");
@@ -1895,7 +1895,7 @@ var Rr = { exports: {} };
1895
1895
  var a = r[i];
1896
1896
  t.forEach(function(s) {
1897
1897
  var u = function d(l, b) {
1898
- return Fr(l, b) || (l = te(l)) && d(l, b);
1898
+ return Lr(l, b) || (l = te(l)) && d(l, b);
1899
1899
  }(s, i);
1900
1900
  (!u || "value" in u && u.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, i, { get: function() {
1901
1901
  return this.table(i);
@@ -1929,20 +1929,20 @@ var Rr = { exports: {} };
1929
1929
  })).length !== 0 ? (b.forEach(function(_) {
1930
1930
  v.push(function() {
1931
1931
  var S = g, E = _._cfg.dbschema;
1932
- Ft(c, S, y), Ft(c, E, y), g = c._dbSchema = E;
1932
+ Lt(c, S, y), Lt(c, E, y), g = c._dbSchema = E;
1933
1933
  var O = _n(S, E);
1934
1934
  O.add.forEach(function(D) {
1935
1935
  Sn(y, D[0], D[1].primKey, D[1].indexes);
1936
1936
  }), O.change.forEach(function(D) {
1937
1937
  if (D.recreate)
1938
- throw new F.Upgrade("Not yet support for changing primary key");
1938
+ throw new L.Upgrade("Not yet support for changing primary key");
1939
1939
  var G = y.objectStore(D.name);
1940
- D.add.forEach(function(L) {
1941
- return Nt(G, L);
1942
- }), D.change.forEach(function(L) {
1943
- G.deleteIndex(L.name), Nt(G, L);
1944
- }), D.del.forEach(function(L) {
1945
- return G.deleteIndex(L);
1940
+ D.add.forEach(function(F) {
1941
+ return Nt(G, F);
1942
+ }), D.change.forEach(function(F) {
1943
+ G.deleteIndex(F.name), Nt(G, F);
1944
+ }), D.del.forEach(function(F) {
1945
+ return G.deleteIndex(F);
1946
1946
  });
1947
1947
  });
1948
1948
  var k = _._cfg.contentUpgrade;
@@ -1987,7 +1987,7 @@ var Rr = { exports: {} };
1987
1987
  function di(e, t) {
1988
1988
  mr(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
1989
1989
  var n = Gt(0, e.idbdb, t);
1990
- Ft(e, e._dbSchema, t);
1990
+ Lt(e, e._dbSchema, t);
1991
1991
  for (var r = 0, i = _n(n, e._dbSchema).change; r < i.length; r++) {
1992
1992
  var a = function(s) {
1993
1993
  if (s.change.length || s.recreate)
@@ -2050,7 +2050,7 @@ var Rr = { exports: {} };
2050
2050
  r[i] = bn(i, s, u);
2051
2051
  }), r;
2052
2052
  }
2053
- function Ft(e, t, n) {
2053
+ function Lt(e, t, n) {
2054
2054
  for (var r = n.db.objectStoreNames, i = 0; i < r.length; ++i) {
2055
2055
  var a = r[i], s = n.objectStore(a);
2056
2056
  e._hasGetAll = "getAll" in s;
@@ -2067,31 +2067,31 @@ var Rr = { exports: {} };
2067
2067
  return mn(r, i || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), N(i), n === 0);
2068
2068
  });
2069
2069
  }
2070
- var hi = (Lt.prototype._parseStoresSpec = function(e, t) {
2070
+ var hi = (Ft.prototype._parseStoresSpec = function(e, t) {
2071
2071
  j(e).forEach(function(n) {
2072
2072
  if (e[n] !== null) {
2073
2073
  var r = br(e[n]), i = r.shift();
2074
2074
  if (i.unique = !0, i.multi)
2075
- throw new F.Schema("Primary key cannot be multi-valued");
2075
+ throw new L.Schema("Primary key cannot be multi-valued");
2076
2076
  r.forEach(function(a) {
2077
2077
  if (a.auto)
2078
- throw new F.Schema("Only primary key can be marked as autoIncrement (++)");
2078
+ throw new L.Schema("Only primary key can be marked as autoIncrement (++)");
2079
2079
  if (!a.keyPath)
2080
- throw new F.Schema("Index must have a name and cannot be an empty string");
2080
+ throw new L.Schema("Index must have a name and cannot be an empty string");
2081
2081
  }), t[n] = bn(n, i, r);
2082
2082
  }
2083
2083
  });
2084
- }, Lt.prototype.stores = function(n) {
2084
+ }, Ft.prototype.stores = function(n) {
2085
2085
  var t = this.db;
2086
2086
  this._cfg.storesSource = this._cfg.storesSource ? Z(this._cfg.storesSource, n) : n;
2087
2087
  var n = t._versions, r = {}, i = {};
2088
2088
  return n.forEach(function(a) {
2089
2089
  Z(r, a._cfg.storesSource), i = a._cfg.dbschema = {}, a._parseStoresSpec(r, i);
2090
2090
  }), t._dbSchema = i, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], j(i), i), t._storeNames = j(i), this;
2091
- }, Lt.prototype.upgrade = function(e) {
2091
+ }, Ft.prototype.upgrade = function(e) {
2092
2092
  return this._cfg.contentUpgrade = tn(this._cfg.contentUpgrade || H, e), this;
2093
- }, Lt);
2094
- function Lt() {
2093
+ }, Ft);
2094
+ function Ft() {
2095
2095
  }
2096
2096
  function En(e, t) {
2097
2097
  var n = e._dbNamesDB;
@@ -2255,19 +2255,19 @@ var Rr = { exports: {} };
2255
2255
  var r = t.openCanceller, i = Math.round(10 * e.verno), a = !1;
2256
2256
  function s() {
2257
2257
  if (t.openCanceller !== r)
2258
- throw new F.DatabaseClosed("db.open() was cancelled");
2258
+ throw new L.DatabaseClosed("db.open() was cancelled");
2259
2259
  }
2260
2260
  function u() {
2261
2261
  return new T(function(f, p) {
2262
2262
  if (s(), !n)
2263
- throw new F.MissingAPI();
2263
+ throw new L.MissingAPI();
2264
2264
  var y = e.name, v = t.autoSchema || !i ? n.open(y) : n.open(y, i);
2265
2265
  if (!v)
2266
- throw new F.MissingAPI();
2266
+ throw new L.MissingAPI();
2267
2267
  v.onerror = ye(p), v.onblocked = J(e._fireOnBlocked), v.onupgradeneeded = J(function(g) {
2268
2268
  var _;
2269
2269
  b = v.transaction, t.autoSchema && !e._options.allowEmptyDB ? (v.onerror = ht, b.abort(), v.result.close(), (_ = n.deleteDatabase(y)).onsuccess = _.onerror = J(function() {
2270
- p(new F.NoSuchDatabase("Database ".concat(y, " doesnt exist")));
2270
+ p(new L.NoSuchDatabase("Database ".concat(y, " doesnt exist")));
2271
2271
  })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = v.result, a && di(e, b), fi(e, g / 10, b, p));
2272
2272
  }, p), v.onsuccess = J(function() {
2273
2273
  b = null;
@@ -2277,7 +2277,7 @@ var Rr = { exports: {} };
2277
2277
  var A = k.transaction((E = C).length === 1 ? E[0] : E, "readonly");
2278
2278
  if (t.autoSchema)
2279
2279
  _ = k, S = A, (g = e).verno = _.version / 10, S = g._dbSchema = Gt(0, _, S), g._storeNames = wt(_.objectStoreNames, 0), Bt(g, [g._allTables], j(S), S);
2280
- else if (Ft(e, e._dbSchema, A), ((O = _n(Gt(0, (O = e).idbdb, A), O._dbSchema)).add.length || O.change.some(function(R) {
2280
+ else if (Lt(e, e._dbSchema, A), ((O = _n(Gt(0, (O = e).idbdb, A), O._dbSchema)).add.length || O.change.some(function(R) {
2281
2281
  return R.add.length || R.change.length;
2282
2282
  })) && !a)
2283
2283
  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."), k.close(), i = k.version + 1, a = !0, f(u());
@@ -2529,7 +2529,7 @@ var Rr = { exports: {} };
2529
2529
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2530
2530
  return m(m({}, e), { transaction: function(r, i, a) {
2531
2531
  if (K.subscr && i !== "readonly")
2532
- throw new F.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(K.querier));
2532
+ throw new L.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(K.querier));
2533
2533
  return e.transaction(r, i, a);
2534
2534
  }, table: function(r) {
2535
2535
  function i(p) {
@@ -2545,7 +2545,7 @@ var Rr = { exports: {} };
2545
2545
  }), f.values] : [], C = R[0], A = R[1], R = f.trans._cache;
2546
2546
  return N(C) ? (E.addKeys(C), (R = k === "delete" || C.length === A.length ? Sr(C, R) : null) || O.addKeys(C), (R || A) && (y = p, v = R, g = A, s.indexes.forEach(function(D) {
2547
2547
  var G = y(D.name || "");
2548
- function L(W) {
2548
+ function F(W) {
2549
2549
  return W != null ? D.extractKey(W) : null;
2550
2550
  }
2551
2551
  function Y(W) {
@@ -2554,7 +2554,7 @@ var Rr = { exports: {} };
2554
2554
  }) : G.addKey(W);
2555
2555
  }
2556
2556
  (v || g).forEach(function(W, U) {
2557
- var le = v && L(v[U]), U = g && L(g[U]);
2557
+ var le = v && F(v[U]), U = g && F(g[U]);
2558
2558
  $(le, U) !== 0 && (le != null && Y(le), U != null && Y(U));
2559
2559
  });
2560
2560
  }))) : C ? (A = { from: C.lower, to: C.upper }, O.add(A), E.add(A)) : (E.add(n), O.add(n), s.indexes.forEach(function(D) {
@@ -2580,8 +2580,8 @@ var Rr = { exports: {} };
2580
2580
  return a[f].apply(this, arguments).then(function(A) {
2581
2581
  if (f === "query") {
2582
2582
  if (l && p.values)
2583
- return O.then(function(L) {
2584
- return L = L.result, S.addKeys(L), A;
2583
+ return O.then(function(F) {
2584
+ return F = F.result, S.addKeys(F), A;
2585
2585
  });
2586
2586
  var R = p.values ? A.result.map(d) : A.result;
2587
2587
  (p.values ? S : E).addKeys(R);
@@ -2590,8 +2590,8 @@ var Rr = { exports: {} };
2590
2590
  return D && Object.create(D, { key: { get: function() {
2591
2591
  return E.addKey(D.primaryKey), D.key;
2592
2592
  } }, primaryKey: { get: function() {
2593
- var L = D.primaryKey;
2594
- return E.addKey(L), L;
2593
+ var F = D.primaryKey;
2594
+ return E.addKey(F), F;
2595
2595
  } }, value: { get: function() {
2596
2596
  return G && S.addKey(D.primaryKey), D.value;
2597
2597
  } } });
@@ -2719,31 +2719,31 @@ var Rr = { exports: {} };
2719
2719
  for (var l = /* @__PURE__ */ new Set(), b = 0, c = n; b < c.length; b++) {
2720
2720
  var f = c[b], p = Ue["idb://".concat(t, "/").concat(f)];
2721
2721
  if (p) {
2722
- var y = e.table(f), v = p.optimisticOps.filter(function(L) {
2723
- return L.trans === u;
2722
+ var y = e.table(f), v = p.optimisticOps.filter(function(F) {
2723
+ return F.trans === u;
2724
2724
  });
2725
2725
  if (u._explicit && d && u.mutatedParts)
2726
2726
  for (var g = 0, _ = Object.values(p.queries.query); g < _.length; g++)
2727
2727
  for (var S = 0, E = (C = _[g]).slice(); S < E.length; S++)
2728
- Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(C, A), A.subscribers.forEach(function(L) {
2729
- return l.add(L);
2728
+ Dn((A = E[S]).obsSet, u.mutatedParts) && (Me(C, A), A.subscribers.forEach(function(F) {
2729
+ return l.add(F);
2730
2730
  }));
2731
2731
  else if (0 < v.length) {
2732
- p.optimisticOps = p.optimisticOps.filter(function(L) {
2733
- return L.trans !== u;
2732
+ p.optimisticOps = p.optimisticOps.filter(function(F) {
2733
+ return F.trans !== u;
2734
2734
  });
2735
2735
  for (var O = 0, k = Object.values(p.queries.query); O < k.length; O++)
2736
2736
  for (var C, A, R, D = 0, G = (C = k[O]).slice(); D < G.length; D++)
2737
- (A = G[D]).res != null && u.mutatedParts && (d && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, v, y, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(L) {
2738
- return l.add(L);
2739
- })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Me(C, A), A.subscribers.forEach(function(L) {
2740
- return l.add(L);
2737
+ (A = G[D]).res != null && u.mutatedParts && (d && !A.dirty ? (R = Object.isFrozen(A.res), R = kr(A.res, A.req, v, y, A, R), A.dirty ? (Me(C, A), A.subscribers.forEach(function(F) {
2738
+ return l.add(F);
2739
+ })) : R !== A.res && (A.res = R, A.promise = T.resolve({ result: R }))) : (A.dirty && Me(C, A), A.subscribers.forEach(function(F) {
2740
+ return l.add(F);
2741
2741
  })));
2742
2742
  }
2743
2743
  }
2744
2744
  }
2745
- l.forEach(function(L) {
2746
- return L();
2745
+ l.forEach(function(F) {
2746
+ return F();
2747
2747
  });
2748
2748
  }
2749
2749
  };
@@ -2820,9 +2820,9 @@ var Rr = { exports: {} };
2820
2820
  }
2821
2821
  var Se = (ee.prototype.version = function(e) {
2822
2822
  if (isNaN(e) || e < 0.1)
2823
- throw new F.Type("Given version is not a positive number");
2823
+ throw new L.Type("Given version is not a positive number");
2824
2824
  if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened)
2825
- throw new F.Schema("Cannot add version when database is open");
2825
+ throw new L.Schema("Cannot add version when database is open");
2826
2826
  this.verno = Math.max(this.verno, e);
2827
2827
  var t = this._versions, n = t.filter(function(r) {
2828
2828
  return r._cfg.version === e;
@@ -2832,10 +2832,10 @@ var Rr = { exports: {} };
2832
2832
  var t = this;
2833
2833
  return this.idbdb && (this._state.openComplete || K.letThrough || this._vip) ? e() : new T(function(n, r) {
2834
2834
  if (t._state.openComplete)
2835
- return r(new F.DatabaseClosed(t._state.dbOpenError));
2835
+ return r(new L.DatabaseClosed(t._state.dbOpenError));
2836
2836
  if (!t._state.isBeingOpened) {
2837
2837
  if (!t._state.autoOpen)
2838
- return void r(new F.DatabaseClosed());
2838
+ return void r(new L.DatabaseClosed());
2839
2839
  t.open().catch(H);
2840
2840
  }
2841
2841
  t._state.dbReadyPromise.then(n, r);
@@ -2871,7 +2871,7 @@ var Rr = { exports: {} };
2871
2871
  }));
2872
2872
  }, ee.prototype.close = function(n) {
2873
2873
  var t = (n === void 0 ? { disableAutoOpen: !0 } : n).disableAutoOpen, n = this._state;
2874
- t ? (n.isBeingOpened && n.cancelOpen(new F.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new F.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
2874
+ t ? (n.isBeingOpened && n.cancelOpen(new L.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new L.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
2875
2875
  }, ee.prototype.delete = function(e) {
2876
2876
  var t = this;
2877
2877
  e === void 0 && (e = { disableAutoOpen: !0 });
@@ -2886,7 +2886,7 @@ var Rr = { exports: {} };
2886
2886
  }), u.onerror = ye(a), u.onblocked = t._fireOnBlocked;
2887
2887
  }
2888
2888
  if (n)
2889
- throw new F.InvalidArgument("Arguments not allowed in db.delete()");
2889
+ throw new L.InvalidArgument("Arguments not allowed in db.delete()");
2890
2890
  r.isBeingOpened ? r.dbReadyPromise.then(s) : s();
2891
2891
  });
2892
2892
  }, ee.prototype.backendDB = function() {
@@ -2909,7 +2909,7 @@ var Rr = { exports: {} };
2909
2909
  var e = (function(t, n, r) {
2910
2910
  var i = arguments.length;
2911
2911
  if (i < 2)
2912
- throw new F.InvalidArgument("Too few arguments");
2912
+ throw new L.InvalidArgument("Too few arguments");
2913
2913
  for (var a = new Array(i - 1); --i; )
2914
2914
  a[i - 1] = arguments[i];
2915
2915
  return r = a.pop(), [t, Vn(a), r];
@@ -2929,19 +2929,19 @@ var Rr = { exports: {} };
2929
2929
  a = fn;
2930
2930
  else {
2931
2931
  if (e != "rw" && e != dn)
2932
- throw new F.InvalidArgument("Invalid transaction mode: " + e);
2932
+ throw new L.InvalidArgument("Invalid transaction mode: " + e);
2933
2933
  a = dn;
2934
2934
  }
2935
2935
  if (i) {
2936
2936
  if (i.mode === fn && a === dn) {
2937
2937
  if (!u)
2938
- throw new F.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2938
+ throw new L.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2939
2939
  i = null;
2940
2940
  }
2941
2941
  i && s.forEach(function(l) {
2942
2942
  if (i && i.storeNames.indexOf(l) === -1) {
2943
2943
  if (!u)
2944
- throw new F.SubTransaction("Table " + l + " not included in parent transaction.");
2944
+ throw new L.SubTransaction("Table " + l + " not included in parent transaction.");
2945
2945
  i = null;
2946
2946
  }
2947
2947
  }), u && i && !i.active && (i = null);
@@ -2969,7 +2969,7 @@ var Rr = { exports: {} };
2969
2969
  var E;
2970
2970
  (_ = y.call(g, g)) && (S ? (E = Ie.bind(null, null), _.then(E, E)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Rn(_)));
2971
2971
  }, v), (_ && typeof _.then == "function" ? T.resolve(_).then(function(E) {
2972
- return g.active ? E : q(new F.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
2972
+ return g.active ? E : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
2973
2973
  }) : v.then(function() {
2974
2974
  return _;
2975
2975
  })).then(function(E) {
@@ -2986,7 +2986,7 @@ var Rr = { exports: {} };
2986
2986
  }) : this._whenReady(d);
2987
2987
  }, ee.prototype.table = function(e) {
2988
2988
  if (!ie(this._allTables, e))
2989
- throw new F.InvalidTable("Table ".concat(e, " does not exist"));
2989
+ throw new L.InvalidTable("Table ".concat(e, " does not exist"));
2990
2990
  return this._allTables[e];
2991
2991
  }, ee);
2992
2992
  function ee(e, t) {
@@ -3041,7 +3041,7 @@ var Rr = { exports: {} };
3041
3041
  }, this._min = function(y, v) {
3042
3042
  return $(y, v) < 0 ? y : v;
3043
3043
  }, this._IDBKeyRange = d._deps.IDBKeyRange, !this._IDBKeyRange)
3044
- throw new F.MissingAPI();
3044
+ throw new L.MissingAPI();
3045
3045
  })), this.on("versionchange", function(c) {
3046
3046
  0 < c.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
3047
3047
  }), this.on("blocked", function(c) {
@@ -3159,7 +3159,7 @@ var Rr = { exports: {} };
3159
3159
  });
3160
3160
  }) : En(n, t).toCollection().primaryKeys()).then(e);
3161
3161
  } catch {
3162
- return q(new F.MissingAPI());
3162
+ return q(new L.MissingAPI());
3163
3163
  }
3164
3164
  var t, n;
3165
3165
  }, defineClass: function() {
@@ -3458,7 +3458,7 @@ let Gn;
3458
3458
  function jr() {
3459
3459
  return Gn || (Gn = Pi("keyval-store", "keyval")), Gn;
3460
3460
  }
3461
- function Fn(w, o = jr()) {
3461
+ function Ln(w, o = jr()) {
3462
3462
  return o("readonly", (h) => zn(h.get(w)));
3463
3463
  }
3464
3464
  function Vt(w, o, h = jr()) {
@@ -3470,15 +3470,15 @@ class Mr {
3470
3470
  P(this, "options");
3471
3471
  P(this, "getCloud", async (o) => {
3472
3472
  const h = X(o);
3473
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3473
+ return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.CLOUD, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
3474
3474
  });
3475
3475
  P(this, "getSeries", async (o) => {
3476
3476
  const h = X(o);
3477
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3477
+ return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.SERIES, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
3478
3478
  });
3479
3479
  P(this, "getMessages", async (o) => {
3480
3480
  const h = X(o);
3481
- return await Fn(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3481
+ return await Ln(h).then((m) => m).catch(() => (console.warn("%capi", x.API, M.MESSAGES, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
3482
3482
  });
3483
3483
  /**
3484
3484
  * Update Cloud
@@ -3875,7 +3875,21 @@ class Nr {
3875
3875
  this.options = o, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3876
3876
  }
3877
3877
  }
3878
- function Ii(w, o) {
3878
+ function Ii(w) {
3879
+ const o = {};
3880
+ for (let h = 0; h < w.length; h++) {
3881
+ const m = w[h];
3882
+ m.name !== "class" && !m.name.includes("data") && (o[m.name] = m.value);
3883
+ }
3884
+ return o;
3885
+ }
3886
+ function Ki(w) {
3887
+ return w.replace(/(?:^\w|[A-Z]|\b\w)/g, (o, h) => h === 0 ? o.toLowerCase() : o.toUpperCase()).replace(/\s+/g, "");
3888
+ }
3889
+ function Bi(w) {
3890
+ return w.toLowerCase().split("-").reduce((o, h) => o + (h.charAt(0).toUpperCase() + h.slice(1)));
3891
+ }
3892
+ function Ci(w, o) {
3879
3893
  for (; w.length < o; )
3880
3894
  w = `0${w}`;
3881
3895
  return w;
@@ -3888,14 +3902,14 @@ function Oe(w, o) {
3888
3902
  m = o.charCodeAt(h), w = (w << 5) - w + m, w |= 0;
3889
3903
  return w < 0 ? w * -2 : w;
3890
3904
  }
3891
- function Ci(w, o, h) {
3905
+ function Ri(w, o, h) {
3892
3906
  return Object.keys(o).sort().reduce(m, w);
3893
3907
  function m(I, B) {
3894
3908
  return Gr(I, o[B], B, h);
3895
3909
  }
3896
3910
  }
3897
3911
  function Gr(w, o, h, m) {
3898
- const I = Oe(Oe(Oe(w, h), Ri(o)), typeof o);
3912
+ const I = Oe(Oe(Oe(w, h), Ti(o)), typeof o);
3899
3913
  if (o === null)
3900
3914
  return Oe(I, "null");
3901
3915
  if (o === void 0)
@@ -3904,7 +3918,7 @@ function Gr(w, o, h, m) {
3904
3918
  if (m.includes(o))
3905
3919
  return Oe(I, `[Circular]${h}`);
3906
3920
  m.push(o);
3907
- const B = Ci(I, o, m);
3921
+ const B = Ri(I, o, m);
3908
3922
  if (!("valueOf" in o) || typeof o.valueOf != "function")
3909
3923
  return B;
3910
3924
  try {
@@ -3915,13 +3929,13 @@ function Gr(w, o, h, m) {
3915
3929
  }
3916
3930
  return Oe(I, o.toString());
3917
3931
  }
3918
- function Ri(w) {
3932
+ function Ti(w) {
3919
3933
  return Object.prototype.toString.call(w);
3920
3934
  }
3921
- function Ln(w) {
3922
- return Ii(Gr(0, w, "", []).toString(16), 8);
3935
+ function Fn(w) {
3936
+ return Ci(Gr(0, w, "", []).toString(16), 8);
3923
3937
  }
3924
- class Ki {
3938
+ class Ni {
3925
3939
  constructor(o) {
3926
3940
  P(this, "sm");
3927
3941
  P(this, "api");
@@ -3950,7 +3964,7 @@ class Ki {
3950
3964
  let te = "";
3951
3965
  switch (N.query.type) {
3952
3966
  case M.MESSAGES:
3953
- if (te = Ln(N.data.messages), Z.hash === te)
3967
+ if (te = Fn(N.data.messages), Z.hash === te)
3954
3968
  return console.debug(
3955
3969
  "%capi%c %cno updates",
3956
3970
  x.API,
@@ -3963,7 +3977,7 @@ class Ki {
3963
3977
  Z.hash = te, j = await this.sm.setMessages(N.query, N);
3964
3978
  break;
3965
3979
  case M.CLOUD:
3966
- te = Ln(N.data), Z.hash === te ? (console.debug(
3980
+ te = Fn(N.data), Z.hash === te ? (console.debug(
3967
3981
  "%capi%c %cno updates",
3968
3982
  x.API,
3969
3983
  x.NONE,
@@ -3974,7 +3988,7 @@ class Ki {
3974
3988
  ), j = 204) : (Z.hash = te, j = await this.sm.setCloud(N.query, N));
3975
3989
  break;
3976
3990
  case M.SERIES:
3977
- te = Ln(N.data), Z.hash === te ? (console.debug(
3991
+ te = Fn(N.data), Z.hash === te ? (console.debug(
3978
3992
  "%capi%c %cno updates",
3979
3993
  x.API,
3980
3994
  x.NONE,
@@ -4101,7 +4115,7 @@ class Ki {
4101
4115
  }
4102
4116
  }
4103
4117
  }
4104
- class Ti {
4118
+ class ji {
4105
4119
  constructor(o) {
4106
4120
  P(this, "sm");
4107
4121
  /**
@@ -4187,7 +4201,7 @@ class Ti {
4187
4201
  }
4188
4202
  }
4189
4203
  var M = /* @__PURE__ */ ((w) => (w.MESSAGES = "messages", w.CLOUD = "cloud", w.SERIES = "series", w.TOPICS = "topics", w.WIDGET = "widget", w.WIDGETS = "widgets", w))(M || {}), x = /* @__PURE__ */ ((w) => (w.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", w.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", w.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", w.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", w.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", w.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", w.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", w.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", w.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", w.NONE = "color:transparent;background-color:transparent;", w.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", w.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", w.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", w.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", w.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", w.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", w.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", w))(x || {}), ue = /* @__PURE__ */ ((w) => (w.ADD_SLIDE = "addSlide", w.APP_READY = "appReady", w.API_UPDATE = "apiUpdate", w.APPROVE_MESSAGE = "approveMessage", w.CHANNEL = "channel", w.ERROR = "error", w.GOTO_SLIDE = "gotoSlide", w.HIDE_MESSAGE = "hideMessage", w.NEXT_SLIDE = "nextSlide", w.PAUSE_PRESENTATION = "pausePresentation", w.PRESENTATION_READY = "presentationReady", w.PREV_SLIDE = "prevSlide", w.RELOAD_PRESENTATION = "reloadPresentation", w.SHOW_MODAL = "showModal", w.STAR_MESSAGE = "starMessage", w.SLIDE_DID_LOAD = "slideDidLoad", w.SLIDE_GOTO = "slideGoto", w.SLIDE_READY = "slideReady", w.SLIDE_TRANSITIONER = "slideTransitioner", w.START_TRANSITIONER = "startTransitioner", w.STORAGE_INIT = "stroageInit", w.SUBSCRIBE = "subscribe", w.UPDATE = "update", w.VERSION = "version", w.WIDGET_UPDATE = "widgetUpdate", w))(ue || {}), Xt = /* @__PURE__ */ ((w) => (w.APPROVED = "approved", w.BEFORE = "before", w.DELAYED = "delayed", w.NONE = "none", w.REALTIME = "realtime", w))(Xt || {}), he = /* @__PURE__ */ ((w) => (w.KEYVAL = "keyval", w.LOCAL = "local", w.SESSION = "session", w.DEXIE = "dexie", w.WINDOW = "window", w))(he || {});
4190
- class Bi {
4204
+ class Gi {
4191
4205
  /**
4192
4206
  * Main container for managing widgets and data updates
4193
4207
  *
@@ -4199,7 +4213,7 @@ class Bi {
4199
4213
  P(this, "storageReader");
4200
4214
  P(this, "broadcastChannel");
4201
4215
  P(this, "query");
4202
- P(this, "attributes");
4216
+ P(this, "props");
4203
4217
  P(this, "listeners");
4204
4218
  /**
4205
4219
  * Generic call to any query type
@@ -4282,7 +4296,7 @@ class Bi {
4282
4296
  * @param modal IModal
4283
4297
  */
4284
4298
  P(this, "showModal", (o) => {
4285
- const h = { ...o.dataset, ...this.query }, m = { ...o.attributes, ...this.attributes };
4299
+ const h = { ...o.props, ...this.props };
4286
4300
  console.debug(
4287
4301
  "%cwidget",
4288
4302
  x.WIDGET,
@@ -4290,24 +4304,23 @@ class Bi {
4290
4304
  o.showComponent,
4291
4305
  h.widget
4292
4306
  );
4293
- const I = new CustomEvent(ue.SHOW_MODAL, {
4307
+ const m = new CustomEvent(ue.SHOW_MODAL, {
4294
4308
  detail: {
4295
4309
  component: o.showComponent,
4296
- attributes: m,
4297
- dataset: h
4310
+ props: h
4298
4311
  },
4299
4312
  bubbles: !0,
4300
4313
  cancelable: !0,
4301
4314
  composed: !0
4302
4315
  });
4303
- window.dispatchEvent(I);
4316
+ window.dispatchEvent(m);
4304
4317
  });
4305
4318
  var j;
4306
4319
  m = typeof m < "u" ? m : "buzzcasting-slide", this.listeners = h;
4307
4320
  let I;
4308
- I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(m.toUpperCase())) == null ? void 0 : j.id) ?? `${m} not found`, I = nt(I), this.query = I, this.attributes = ji(o.attributes);
4321
+ I = { ...o.dataset }, delete I.hmr, I.slide = ((j = o.closest(m.toUpperCase())) == null ? void 0 : j.id) ?? `${m} not found`, I = nt(I), this.query = I, this.props = Ii(o.attributes);
4309
4322
  const B = window.BuzzCasting.getOptions();
4310
- this.storageReader = new Ti(B), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4323
+ this.storageReader = new ji(B), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4311
4324
  }
4312
4325
  addListener(o) {
4313
4326
  this.listeners.push(o);
@@ -4352,23 +4365,17 @@ class Bi {
4352
4365
  this.broadcastChannel.close();
4353
4366
  }
4354
4367
  }
4355
- function ji(w) {
4356
- const o = {};
4357
- for (let h = 0; h < w.length; h++) {
4358
- const m = w[h];
4359
- m.name !== "class" && !m.name.includes("data") && (o[m.name] = m.value);
4360
- }
4361
- return o;
4362
- }
4363
4368
  export {
4364
4369
  M as API,
4365
- Ki as BuzzcastingStorageManager,
4366
- Ti as BuzzcastingStorageReader,
4370
+ Ni as BuzzcastingStorageManager,
4371
+ ji as BuzzcastingStorageReader,
4367
4372
  x as CSS,
4368
4373
  ue as EVENTS,
4369
4374
  Xt as MODERATION,
4370
4375
  he as STORAGE,
4371
- Bi as Widget,
4372
- ji as filterAttributes,
4376
+ Gi as Widget,
4377
+ Bi as camelCase,
4378
+ Ki as camelize,
4379
+ Ii as filterAttributes,
4373
4380
  nt as widgetParams
4374
4381
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "2.9.4",
4
+ "version": "2.9.6",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",