buzzcasting-storage 2.10.9 → 2.10.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
- var xi = Object.defineProperty;
2
- var ki = (v, o, l) => o in v ? xi(v, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : v[o] = l;
3
- var P = (v, o, l) => (ki(v, typeof o != "symbol" ? o + "" : o, l), l);
4
- const Ai = "2.10.8";
5
- var K = /* @__PURE__ */ ((v) => (v.MESSAGES = "messages", v.CLOUD = "cloud", v.SERIES = "series", v.TOPICS = "topics", v.WIDGET = "widget", v.WIDGETS = "widgets", v))(K || {}), x = /* @__PURE__ */ ((v) => (v.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", v.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", v.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", v.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", v.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", v.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", v.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", v.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", v.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", v.NONE = "color:transparent;background-color:transparent;", v.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", v.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", v.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", v.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", v.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", v.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", v.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", v))(x || {}), se = /* @__PURE__ */ ((v) => (v.ADD_SLIDE = "addSlide", v.APP_READY = "appReady", v.API_UPDATE = "apiUpdate", v.APPROVE_MESSAGE = "approveMessage", v.CHANNEL = "channel", v.ERROR = "error", v.GOTO_SLIDE = "gotoSlide", v.HIDE_MESSAGE = "hideMessage", v.NEXT_SLIDE = "nextSlide", v.PAUSE_PRESENTATION = "pausePresentation", v.PRESENTATION_READY = "presentationReady", v.PREV_SLIDE = "prevSlide", v.RELOAD_PRESENTATION = "reloadPresentation", v.SHOW_MODAL = "showModal", v.STAR_MESSAGE = "starMessage", v.SLIDE_DID_LOAD = "slideDidLoad", v.SLIDE_GOTO = "slideGoto", v.SLIDE_READY = "slideReady", v.SLIDE_TRANSITIONER = "slideTransitioner", v.START_TRANSITIONER = "startTransitioner", v.STORAGE_INIT = "stroageInit", v.SUBSCRIBE = "subscribe", v.UPDATE = "update", v.VERSION = "version", v.WIDGET_UPDATE = "widgetUpdate", v))(se || {}), vt = /* @__PURE__ */ ((v) => (v.APPROVED = "approved", v.BEFORE = "before", v.DELAYED = "delayed", v.NONE = "none", v.REALTIME = "realtime", v))(vt || {}), he = /* @__PURE__ */ ((v) => (v.KEYVAL = "keyval", v.LOCAL = "local", v.SESSION = "session", v.DEXIE = "dexie", v.WINDOW = "window", v))(he || {});
6
- class Di {
1
+ var Ei = Object.defineProperty;
2
+ var Oi = (v, o, l) => o in v ? Ei(v, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : v[o] = l;
3
+ var P = (v, o, l) => (Oi(v, typeof o != "symbol" ? o + "" : o, l), l);
4
+ const xi = "2.10.10";
5
+ class ki {
7
6
  constructor(o) {
8
7
  P(this, "options");
9
8
  P(this, "url");
@@ -46,7 +45,7 @@ class Di {
46
45
  x.API,
47
46
  x.NONE,
48
47
  x.GET_DATA,
49
- se.HIDE_MESSAGE,
48
+ ue.HIDE_MESSAGE,
50
49
  [l, "api", y, o.type, o.id].join("/") + j,
51
50
  { ...I, method: "put" }
52
51
  ), await fetch(
@@ -60,7 +59,7 @@ class Di {
60
59
  }
61
60
  }
62
61
  var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
63
- function Pi(v) {
62
+ function Ai(v) {
64
63
  return v && v.__esModule && Object.prototype.hasOwnProperty.call(v, "default") ? v.default : v;
65
64
  }
66
65
  var Rr = { exports: {} };
@@ -109,14 +108,14 @@ var Rr = { exports: {} };
109
108
  function ke(e, t, n, r) {
110
109
  $n(e, t, Z(n && ie(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r));
111
110
  }
112
- function Ye(e) {
111
+ function $e(e) {
113
112
  return { from: function(t) {
114
113
  return e.prototype = Object.create(t.prototype), ke(e.prototype, "constructor", e), { extend: xe.bind(null, e.prototype) };
115
114
  } };
116
115
  }
117
- var Ur = Object.getOwnPropertyDescriptor, Wr = [].slice;
118
- function _t(e, t, n) {
119
- return Wr.call(e, t, n);
116
+ var Lr = Object.getOwnPropertyDescriptor, Fr = [].slice;
117
+ function wt(e, t, n) {
118
+ return Fr.call(e, t, n);
120
119
  }
121
120
  function Yn(e, t) {
122
121
  return t(e);
@@ -163,9 +162,9 @@ var Rr = { exports: {} };
163
162
  ie(e, t) && (n[t] = e[t]);
164
163
  return n;
165
164
  }
166
- var zr = [].concat;
165
+ var Ur = [].concat;
167
166
  function Vn(e) {
168
- return zr.apply([], e);
167
+ return Ur.apply([], e);
169
168
  }
170
169
  var ge = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Vn([8, 16, 32, 64].map(function(e) {
171
170
  return ["Int", "Uint", "Float"].map(function(t) {
@@ -197,11 +196,11 @@ var Rr = { exports: {} };
197
196
  return r;
198
197
  }(e), it = null, e;
199
198
  }
200
- var $r = {}.toString;
199
+ var Wr = {}.toString;
201
200
  function Jt(e) {
202
- return $r.call(e).slice(8, -1);
201
+ return Wr.call(e).slice(8, -1);
203
202
  }
204
- var Zt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", Yr = typeof Zt == "symbol" ? function(e) {
203
+ var Zt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", zr = typeof Zt == "symbol" ? function(e) {
205
204
  var t;
206
205
  return e != null && (t = e[Zt]) && t.apply(e);
207
206
  } : function() {
@@ -210,15 +209,15 @@ var Rr = { exports: {} };
210
209
  function Me(e, t) {
211
210
  return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
212
211
  }
213
- var He = {};
212
+ var Ye = {};
214
213
  function we(e) {
215
214
  var t, n, r, i;
216
215
  if (arguments.length === 1) {
217
216
  if (N(e))
218
217
  return e.slice();
219
- if (this === He && typeof e == "string")
218
+ if (this === Ye && typeof e == "string")
220
219
  return [e];
221
- if (i = Yr(e)) {
220
+ if (i = zr(e)) {
222
221
  for (n = []; !(r = i.next()).done; )
223
222
  n.push(r.value);
224
223
  return n;
@@ -239,8 +238,8 @@ var Rr = { exports: {} };
239
238
  return e[Symbol.toStringTag] === "AsyncFunction";
240
239
  } : function() {
241
240
  return !1;
242
- }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], fe = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), Hr = { 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" };
243
- function Qe(e, t) {
241
+ }, st = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], fe = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(st), $r = { 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" };
242
+ function He(e, t) {
244
243
  this.name = e, this.message = t;
245
244
  }
246
245
  function Jn(e, t) {
@@ -251,31 +250,31 @@ var Rr = { exports: {} };
251
250
  }).join(`
252
251
  `);
253
252
  }
254
- function St(e, t, n, r) {
253
+ function _t(e, t, n, r) {
255
254
  this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Jn(e, t);
256
255
  }
257
- function Ve(e, t) {
256
+ function Qe(e, t) {
258
257
  this.name = "BulkError", this.failures = Object.keys(t).map(function(n) {
259
258
  return t[n];
260
259
  }), this.failuresByPos = t, this.message = Jn(e, this.failures);
261
260
  }
262
- Ye(Qe).from(Error).extend({ toString: function() {
261
+ $e(He).from(Error).extend({ toString: function() {
263
262
  return this.name + ": " + this.message;
264
- } }), Ye(St).from(Qe), Ye(Ve).from(Qe);
263
+ } }), $e(_t).from(He), $e(Qe).from(He);
265
264
  var en = fe.reduce(function(e, t) {
266
265
  return e[t] = t + "Error", e;
267
- }, {}), Qr = Qe, L = fe.reduce(function(e, t) {
266
+ }, {}), Yr = He, L = fe.reduce(function(e, t) {
268
267
  var n = t + "Error";
269
268
  function r(i, a) {
270
269
  this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(a ? `
271
- ` + a : ""), this.inner = a || null) : typeof i == "object" && (this.message = "".concat(i.name, " ").concat(i.message), this.inner = i) : (this.message = Hr[t] || n, this.inner = null);
270
+ ` + a : ""), this.inner = a || null) : typeof i == "object" && (this.message = "".concat(i.name, " ").concat(i.message), this.inner = i) : (this.message = $r[t] || n, this.inner = null);
272
271
  }
273
- return Ye(r).from(Qr), e[t] = r, e;
272
+ return $e(r).from(Yr), e[t] = r, e;
274
273
  }, {});
275
274
  L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
276
275
  var Zn = st.reduce(function(e, t) {
277
276
  return e[t + "Error"] = L[t], e;
278
- }, {}), Et = fe.reduce(function(e, t) {
277
+ }, {}), St = fe.reduce(function(e, t) {
279
278
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = L[t]), e;
280
279
  }, {});
281
280
  function H() {
@@ -283,7 +282,7 @@ var Rr = { exports: {} };
283
282
  function ot(e) {
284
283
  return e;
285
284
  }
286
- function Vr(e, t) {
285
+ function Hr(e, t) {
287
286
  return e == null || e === ot ? t : function(n) {
288
287
  return t(e(n));
289
288
  };
@@ -293,7 +292,7 @@ var Rr = { exports: {} };
293
292
  e.apply(this, arguments), t.apply(this, arguments);
294
293
  };
295
294
  }
296
- function Xr(e, t) {
295
+ function Qr(e, t) {
297
296
  return e === H ? t : function() {
298
297
  var n = e.apply(this, arguments);
299
298
  n !== void 0 && (arguments[0] = n);
@@ -303,14 +302,14 @@ var Rr = { exports: {} };
303
302
  return r && (this.onsuccess = this.onsuccess ? Ke(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? Ke(i, this.onerror) : i), a !== void 0 ? a : n;
304
303
  };
305
304
  }
306
- function Jr(e, t) {
305
+ function Vr(e, t) {
307
306
  return e === H ? t : function() {
308
307
  e.apply(this, arguments);
309
308
  var n = this.onsuccess, r = this.onerror;
310
309
  this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? Ke(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? Ke(r, this.onerror) : r);
311
310
  };
312
311
  }
313
- function Zr(e, t) {
312
+ function Xr(e, t) {
314
313
  return e === H ? t : function(n) {
315
314
  var r = e.apply(this, arguments);
316
315
  Z(n, r);
@@ -318,7 +317,7 @@ var Rr = { exports: {} };
318
317
  return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? Ke(i, this.onsuccess) : i), a && (this.onerror = this.onerror ? Ke(a, this.onerror) : a), r === void 0 ? n === void 0 ? void 0 : n : Z(r, n);
319
318
  };
320
319
  }
321
- function qr(e, t) {
320
+ function Jr(e, t) {
322
321
  return e === H ? t : function() {
323
322
  return t.apply(this, arguments) !== !1 && e.apply(this, arguments);
324
323
  };
@@ -336,7 +335,7 @@ var Rr = { exports: {} };
336
335
  return t.apply(this, arguments);
337
336
  };
338
337
  }
339
- Et.ModifyError = St, Et.DexieError = Qe, Et.BulkError = Ve;
338
+ St.ModifyError = _t, St.DexieError = He, St.BulkError = Qe;
340
339
  var pe = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
341
340
  function qn(e) {
342
341
  pe = e;
@@ -348,8 +347,8 @@ var Rr = { exports: {} };
348
347
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
349
348
  return [t, te(t), e];
350
349
  }(), st = ge[0], fe = ge[1], ge = ge[2], fe = fe && fe.then, ut = st && st.constructor, nn = !!ge, ct = function(e, t) {
351
- lt.push([e, t]), Ot && (queueMicrotask(ti), Ot = !1);
352
- }, rn = !0, Ot = !0, Be = [], xt = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, B = De, lt = [], Ne = 0, kt = [];
350
+ lt.push([e, t]), Et && (queueMicrotask(qr), Et = !1);
351
+ }, rn = !0, Et = !0, Be = [], Ot = [], on = ot, De = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: H, pgp: !1, env: {}, finalize: H }, B = De, lt = [], Ne = 0, xt = [];
353
352
  function T(e) {
354
353
  if (typeof this != "object")
355
354
  throw new TypeError("Promises must be constructed via new");
@@ -366,10 +365,10 @@ var Rr = { exports: {} };
366
365
  if (r._state === null) {
367
366
  if (a === r)
368
367
  throw new TypeError("A promise cannot be resolved with itself.");
369
- var s = r._lib && Xe();
368
+ var s = r._lib && Ve();
370
369
  a && typeof a.then == "function" ? n(r, function(u, h) {
371
370
  a instanceof T ? a._then(u, h) : a.then(u, h);
372
- }) : (r._state = !0, r._value = a, nr(r)), s && Je();
371
+ }) : (r._state = !0, r._value = a, nr(r)), s && Xe();
373
372
  }
374
373
  }, sn.bind(null, r));
375
374
  } catch (a) {
@@ -378,9 +377,9 @@ var Rr = { exports: {} };
378
377
  }(this, e);
379
378
  }
380
379
  var an = { get: function() {
381
- var e = B, t = It;
380
+ var e = B, t = Pt;
382
381
  function n(r, i) {
383
- var a = this, s = !e.global && (e !== B || t !== It), u = s && !Ie(), h = new T(function(d, b) {
382
+ var a = this, s = !e.global && (e !== B || t !== Pt), u = s && !Ie(), h = new T(function(d, b) {
384
383
  un(a, new tr(ir(r, e, s, u), ir(i, e, s, u), d, b, e));
385
384
  });
386
385
  return this._consoleTask && (h._consoleTask = this._consoleTask), h;
@@ -396,9 +395,9 @@ var Rr = { exports: {} };
396
395
  }
397
396
  function sn(e, t) {
398
397
  var n, r;
399
- xt.push(t), e._state === null && (n = e._lib && Xe(), t = on(t), e._state = !1, e._value = t, r = e, Be.some(function(i) {
398
+ Ot.push(t), e._state === null && (n = e._lib && Ve(), t = on(t), e._state = !1, e._value = t, r = e, Be.some(function(i) {
400
399
  return i._value === r._value;
401
- }) || Be.push(r), nr(e), n && Je());
400
+ }) || Be.push(r), nr(e), n && Xe());
402
401
  }
403
402
  function nr(e) {
404
403
  var t = e._listeners;
@@ -415,16 +414,16 @@ var Rr = { exports: {} };
415
414
  var n = e._state ? t.onFulfilled : t.onRejected;
416
415
  if (n === null)
417
416
  return (e._state ? t.resolve : t.reject)(e._value);
418
- ++t.psd.ref, ++Ne, ct(ei, [n, e, t]);
417
+ ++t.psd.ref, ++Ne, ct(Zr, [n, e, t]);
419
418
  } else
420
419
  e._listeners.push(t);
421
420
  }
422
- function ei(e, t, n) {
421
+ function Zr(e, t, n) {
423
422
  try {
424
423
  var r, i = t._value;
425
- !t._state && xt.length && (xt = []), r = pe && t._consoleTask ? t._consoleTask.run(function() {
424
+ !t._state && Ot.length && (Ot = []), r = pe && t._consoleTask ? t._consoleTask.run(function() {
426
425
  return e(i);
427
- }) : e(i), t._state || xt.indexOf(i) !== -1 || function(a) {
426
+ }) : e(i), t._state || Ot.indexOf(i) !== -1 || function(a) {
428
427
  for (var s = Be.length; s; )
429
428
  if (Be[--s]._value === a._value)
430
429
  return Be.splice(s, 1);
@@ -435,16 +434,16 @@ var Rr = { exports: {} };
435
434
  --Ne == 0 && cn(), --n.psd.ref || n.psd.finalize();
436
435
  }
437
436
  }
438
- function ti() {
437
+ function qr() {
439
438
  Ge(De, function() {
440
- Xe() && Je();
439
+ Ve() && Xe();
441
440
  });
442
441
  }
443
- function Xe() {
442
+ function Ve() {
444
443
  var e = rn;
445
- return Ot = rn = !1, e;
444
+ return Et = rn = !1, e;
446
445
  }
447
- function Je() {
446
+ function Xe() {
448
447
  var e, t, n;
449
448
  do
450
449
  for (; 0 < lt.length; )
@@ -453,29 +452,29 @@ var Rr = { exports: {} };
453
452
  r[0].apply(null, r[1]);
454
453
  }
455
454
  while (0 < lt.length);
456
- Ot = rn = !0;
455
+ Et = rn = !0;
457
456
  }
458
457
  function cn() {
459
458
  var e = Be;
460
459
  Be = [], e.forEach(function(r) {
461
460
  r._PSD.onunhandled.call(null, r._value, r);
462
461
  });
463
- for (var t = kt.slice(0), n = t.length; n; )
462
+ for (var t = xt.slice(0), n = t.length; n; )
464
463
  t[--n]();
465
464
  }
466
- function At(e) {
465
+ function kt(e) {
467
466
  return new T(at, !1, e);
468
467
  }
469
468
  function J(e, t) {
470
469
  var n = B;
471
470
  return function() {
472
- var r = Xe(), i = B;
471
+ var r = Ve(), i = B;
473
472
  try {
474
473
  return Ce(n, !0), e.apply(this, arguments);
475
474
  } catch (a) {
476
475
  t && t(a);
477
476
  } finally {
478
- Ce(i, !1), r && Je();
477
+ Ce(i, !1), r && Xe();
479
478
  }
480
479
  };
481
480
  }
@@ -486,9 +485,9 @@ var Rr = { exports: {} };
486
485
  return this.then(null, e);
487
486
  var t = e, n = arguments[1];
488
487
  return typeof t == "function" ? this.then(null, function(r) {
489
- return (r instanceof t ? n : At)(r);
488
+ return (r instanceof t ? n : kt)(r);
490
489
  }) : this.then(null, function(r) {
491
- return (r && r.name === t ? n : At)(r);
490
+ return (r && r.name === t ? n : kt)(r);
492
491
  });
493
492
  }, finally: function(e) {
494
493
  return this.then(function(t) {
@@ -497,7 +496,7 @@ var Rr = { exports: {} };
497
496
  });
498
497
  }, function(t) {
499
498
  return T.resolve(e()).then(function() {
500
- return At(t);
499
+ return kt(t);
501
500
  });
502
501
  });
503
502
  }, timeout: function(e, t) {
@@ -509,7 +508,7 @@ var Rr = { exports: {} };
509
508
  n.then(r, i).finally(clearTimeout.bind(null, a));
510
509
  }) : this;
511
510
  } }), typeof Symbol < "u" && Symbol.toStringTag && ke(T.prototype, Symbol.toStringTag, "Dexie.Promise"), De.env = rr(), xe(T, { all: function() {
512
- var e = we.apply(null, arguments).map(Ct);
511
+ var e = we.apply(null, arguments).map(It);
513
512
  return new T(function(t, n) {
514
513
  e.length === 0 && t([]);
515
514
  var r = e.length;
@@ -523,8 +522,8 @@ var Rr = { exports: {} };
523
522
  return e instanceof T ? e : e && typeof e.then == "function" ? new T(function(t, n) {
524
523
  e.then(t, n);
525
524
  }) : new T(at, !0, e);
526
- }, reject: At, race: function() {
527
- var e = we.apply(null, arguments).map(Ct);
525
+ }, reject: kt, race: function() {
526
+ var e = we.apply(null, arguments).map(It);
528
527
  return new T(function(t, n) {
529
528
  e.map(function(r) {
530
529
  return T.resolve(r).then(t, n);
@@ -535,7 +534,7 @@ var Rr = { exports: {} };
535
534
  }, set: function(e) {
536
535
  return B = e;
537
536
  } }, totalEchoes: { get: function() {
538
- return It;
537
+ return Pt;
539
538
  } }, newPSD: Pe, usePSD: Ge, scheduler: { get: function() {
540
539
  return ct;
541
540
  }, set: function(e) {
@@ -552,8 +551,8 @@ var Rr = { exports: {} };
552
551
  var u, h = this;
553
552
  u = function() {
554
553
  h.unhandleds.length === 0 ? i() : a(h.unhandleds[0]);
555
- }, kt.push(function d() {
556
- u(), kt.splice(kt.indexOf(d), 1);
554
+ }, xt.push(function d() {
555
+ u(), xt.splice(xt.indexOf(d), 1);
557
556
  }), ++Ne, ct(function() {
558
557
  --Ne == 0 && cn();
559
558
  }, []);
@@ -561,7 +560,7 @@ var Rr = { exports: {} };
561
560
  }, t, n, r);
562
561
  });
563
562
  } }), ut && (ut.allSettled && ke(T, "allSettled", function() {
564
- var e = we.apply(null, arguments).map(Ct);
563
+ var e = we.apply(null, arguments).map(It);
565
564
  return new T(function(t) {
566
565
  e.length === 0 && t([]);
567
566
  var n = e.length, r = new Array(n);
@@ -576,7 +575,7 @@ var Rr = { exports: {} };
576
575
  });
577
576
  });
578
577
  }), ut.any && typeof AggregateError < "u" && ke(T, "any", function() {
579
- var e = we.apply(null, arguments).map(Ct);
578
+ var e = we.apply(null, arguments).map(It);
580
579
  return new T(function(t, n) {
581
580
  e.length === 0 && n(new AggregateError([]));
582
581
  var r = e.length, i = new Array(r);
@@ -589,35 +588,35 @@ var Rr = { exports: {} };
589
588
  });
590
589
  });
591
590
  }));
592
- var ne = { awaits: 0, echoes: 0, id: 0 }, ni = 0, Dt = [], Pt = 0, It = 0, ri = 0;
591
+ var ne = { awaits: 0, echoes: 0, id: 0 }, ei = 0, At = [], Dt = 0, Pt = 0, ti = 0;
593
592
  function Pe(e, t, n, r) {
594
593
  var i = B, a = Object.create(i);
595
- return a.parent = i, a.ref = 0, a.global = !1, a.id = ++ri, De.env, a.env = nn ? { Promise: T, PromiseProp: { value: T, configurable: !0, writable: !0 }, all: T.all, race: T.race, allSettled: T.allSettled, any: T.any, resolve: T.resolve, reject: T.reject } : {}, t && Z(a, t), ++i.ref, a.finalize = function() {
594
+ return a.parent = i, a.ref = 0, a.global = !1, a.id = ++ti, De.env, a.env = nn ? { Promise: T, PromiseProp: { value: T, configurable: !0, writable: !0 }, all: T.all, race: T.race, allSettled: T.allSettled, any: T.any, resolve: T.resolve, reject: T.reject } : {}, t && Z(a, t), ++i.ref, a.finalize = function() {
596
595
  --this.parent.ref || this.parent.finalize();
597
596
  }, r = Ge(a, e, n, r), a.ref === 0 && a.finalize(), r;
598
597
  }
599
- function Ze() {
600
- return ne.id || (ne.id = ++ni), ++ne.awaits, ne.echoes += er, ne.id;
598
+ function Je() {
599
+ return ne.id || (ne.id = ++ei), ++ne.awaits, ne.echoes += er, ne.id;
601
600
  }
602
601
  function Ie() {
603
602
  return !!ne.awaits && (--ne.awaits == 0 && (ne.id = 0), ne.echoes = ne.awaits * er, !0);
604
603
  }
605
- function Ct(e) {
606
- return ne.echoes && e && e.constructor === ut ? (Ze(), e.then(function(t) {
604
+ function It(e) {
605
+ return ne.echoes && e && e.constructor === ut ? (Je(), e.then(function(t) {
607
606
  return Ie(), t;
608
607
  }, function(t) {
609
608
  return Ie(), q(t);
610
609
  })) : e;
611
610
  }
612
- function ii() {
613
- var e = Dt[Dt.length - 1];
614
- Dt.pop(), Ce(e, !1);
611
+ function ni() {
612
+ var e = At[At.length - 1];
613
+ At.pop(), Ce(e, !1);
615
614
  }
616
615
  function Ce(e, t) {
617
616
  var n, r = B;
618
- (t ? !ne.echoes || Pt++ && e === B : !Pt || --Pt && e === B) || queueMicrotask(t ? (function(i) {
619
- ++It, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), Dt.push(B), Ce(i, !0);
620
- }).bind(null, e) : ii), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(j, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
617
+ (t ? !ne.echoes || Dt++ && e === B : !Dt || --Dt && e === B) || queueMicrotask(t ? (function(i) {
618
+ ++Pt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), At.push(B), Ce(i, !0);
619
+ }).bind(null, e) : ni), e !== B && (B = e, r === De && (De.env = rr()), nn && (n = De.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(j, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
621
620
  }
622
621
  function rr() {
623
622
  var e = j.Promise;
@@ -634,7 +633,7 @@ var Rr = { exports: {} };
634
633
  function ir(e, t, n, r) {
635
634
  return typeof e != "function" ? e : function() {
636
635
  var i = B;
637
- n && Ze(), Ce(t, !0);
636
+ n && Je(), Ce(t, !0);
638
637
  try {
639
638
  return e.apply(this, arguments);
640
639
  } finally {
@@ -643,17 +642,17 @@ var Rr = { exports: {} };
643
642
  };
644
643
  }
645
644
  function ln(e) {
646
- Promise === ut && ne.echoes === 0 ? Pt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
645
+ Promise === ut && ne.echoes === 0 ? Dt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
647
646
  }
648
- ("" + fe).indexOf("[native code]") === -1 && (Ze = Ie = H);
649
- 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.", qe = [], Rt = "__dbnames", dn = "readonly", fn = "readwrite";
647
+ ("" + fe).indexOf("[native code]") === -1 && (Je = Ie = H);
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", dn = "readonly", fn = "readwrite";
650
649
  function Fe(e, t) {
651
650
  return e ? t ? function() {
652
651
  return e.apply(this, arguments) && t.apply(this, arguments);
653
652
  } : e : t;
654
653
  }
655
654
  var ar = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
656
- function Tt(e) {
655
+ function Rt(e) {
657
656
  return typeof e != "string" || /\./.test(e) ? function(t) {
658
657
  return t;
659
658
  } : function(t) {
@@ -708,7 +707,7 @@ var Rr = { exports: {} };
708
707
  throw new L.NotFound("Table " + i + " not part of transaction");
709
708
  return t(c.idbtrans, c);
710
709
  }
711
- var u = Xe();
710
+ var u = Ve();
712
711
  try {
713
712
  var h = r && r.db._novip === this.db._novip ? r === B.trans ? r._promise(e, s, n) : Pe(function() {
714
713
  return r._promise(e, s, n);
@@ -752,7 +751,7 @@ var Rr = { exports: {} };
752
751
  return console.trace(d), q(d);
753
752
  })), h;
754
753
  } finally {
755
- u && Je();
754
+ u && Xe();
756
755
  }
757
756
  }, V.prototype.get = function(e, t) {
758
757
  var n = this;
@@ -862,7 +861,7 @@ var Rr = { exports: {} };
862
861
  });
863
862
  }, V.prototype.add = function(e, t) {
864
863
  var n = this, r = this.schema.primKey, i = r.auto, a = r.keyPath, s = e;
865
- return a && i && (s = Tt(a)(e)), this._trans("readwrite", function(u) {
864
+ return a && i && (s = Rt(a)(e)), this._trans("readwrite", function(u) {
866
865
  return n.core.mutate({ trans: u, type: "add", keys: t != null ? [t] : null, values: [s] });
867
866
  }).then(function(u) {
868
867
  return u.numFailures ? T.reject(u.failures[0]) : u.lastResult;
@@ -878,7 +877,7 @@ var Rr = { exports: {} };
878
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));
879
878
  }, V.prototype.put = function(e, t) {
880
879
  var n = this, r = this.schema.primKey, i = r.auto, a = r.keyPath, s = e;
881
- return a && i && (s = Tt(a)(e)), this._trans("readwrite", function(u) {
880
+ return a && i && (s = Rt(a)(e)), this._trans("readwrite", function(u) {
882
881
  return n.core.mutate({ trans: u, type: "put", values: [s], keys: t != null ? [t] : null });
883
882
  }).then(function(u) {
884
883
  return u.numFailures ? T.reject(u.failures[0]) : u.lastResult;
@@ -921,12 +920,12 @@ var Rr = { exports: {} };
921
920
  throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
922
921
  if (i && i.length !== e.length)
923
922
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
924
- var h = e.length, d = d && u ? e.map(Tt(d)) : e;
923
+ var h = e.length, d = d && u ? e.map(Rt(d)) : e;
925
924
  return r.core.mutate({ trans: s, type: "add", keys: i, values: d, wantResults: a }).then(function(m) {
926
925
  var c = m.numFailures, f = m.results, p = m.lastResult, m = m.failures;
927
926
  if (c === 0)
928
927
  return a ? f : p;
929
- throw new Ve("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(h, " operations failed"), m);
928
+ throw new Qe("".concat(r.name, ".bulkAdd(): ").concat(c, " of ").concat(h, " operations failed"), m);
930
929
  });
931
930
  });
932
931
  }, V.prototype.bulkPut = function(e, t, n) {
@@ -937,12 +936,12 @@ var Rr = { exports: {} };
937
936
  throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
938
937
  if (i && i.length !== e.length)
939
938
  throw new L.InvalidArgument("Arguments objects and keys must have the same length");
940
- var h = e.length, d = d && u ? e.map(Tt(d)) : e;
939
+ var h = e.length, d = d && u ? e.map(Rt(d)) : e;
941
940
  return r.core.mutate({ trans: s, type: "put", keys: i, values: d, wantResults: a }).then(function(m) {
942
941
  var c = m.numFailures, f = m.results, p = m.lastResult, m = m.failures;
943
942
  if (c === 0)
944
943
  return a ? f : p;
945
- throw new Ve("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(h, " operations failed"), m);
944
+ throw new Qe("".concat(r.name, ".bulkPut(): ").concat(c, " of ").concat(h, " operations failed"), m);
946
945
  });
947
946
  });
948
947
  }, V.prototype.bulkUpdate = function(e) {
@@ -977,7 +976,7 @@ var Rr = { exports: {} };
977
976
  var g, _ = w[m], S = a[Number(_)];
978
977
  S != null && (g = p[_], delete p[_], p[S] = g);
979
978
  }
980
- throw new Ve("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
979
+ throw new Qe("".concat(t.name, ".bulkUpdate(): ").concat(f, " of ").concat(b, " operations failed"), p);
981
980
  });
982
981
  });
983
982
  });
@@ -989,7 +988,7 @@ var Rr = { exports: {} };
989
988
  var i = s.numFailures, a = s.lastResult, s = s.failures;
990
989
  if (i === 0)
991
990
  return a;
992
- throw new Ve("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), s);
991
+ throw new Qe("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), s);
993
992
  });
994
993
  }, V);
995
994
  function V() {
@@ -1012,7 +1011,7 @@ var Rr = { exports: {} };
1012
1011
  function a(s, u, h) {
1013
1012
  if (typeof s != "object") {
1014
1013
  var d;
1015
- u = u || qr;
1014
+ u = u || Jr;
1016
1015
  var b = { subscribers: [], fire: h = h || H, subscribe: function(c) {
1017
1016
  b.subscribers.indexOf(c) === -1 && (b.subscribers.push(c), b.fire = u(b.fire, c));
1018
1017
  }, unsubscribe: function(c) {
@@ -1043,9 +1042,9 @@ var Rr = { exports: {} };
1043
1042
  }
1044
1043
  }
1045
1044
  function ft(e, t) {
1046
- return Ye(t).from({ prototype: e }), t;
1045
+ return $e(t).from({ prototype: e }), t;
1047
1046
  }
1048
- function et(e, t) {
1047
+ function qe(e, t) {
1049
1048
  return !(e.filter || e.algorithm || e.or) && (t ? e.justLimit : !e.replayFilter);
1050
1049
  }
1051
1050
  function hn(e, t) {
@@ -1057,7 +1056,7 @@ var Rr = { exports: {} };
1057
1056
  return Fe(r(), t());
1058
1057
  } : t, e.justLimit = n && !r;
1059
1058
  }
1060
- function jt(e, t) {
1059
+ function Tt(e, t) {
1061
1060
  if (e.isPrimKey)
1062
1061
  return t.primaryKey;
1063
1062
  var n = t.getIndexByKeyPath(e.index);
@@ -1066,10 +1065,10 @@ var Rr = { exports: {} };
1066
1065
  return n;
1067
1066
  }
1068
1067
  function dr(e, t, n) {
1069
- var r = jt(e, t.schema);
1068
+ var r = Tt(e, t.schema);
1070
1069
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: r, range: e.range } });
1071
1070
  }
1072
- function Mt(e, t, n, r) {
1071
+ function jt(e, t, n, r) {
1073
1072
  var i = e.replayFilter ? Fe(e.filter, e.replayFilter()) : e.filter;
1074
1073
  if (e.or) {
1075
1074
  var a = {}, s = function(u, h, d) {
@@ -1106,7 +1105,7 @@ var Rr = { exports: {} };
1106
1105
  });
1107
1106
  });
1108
1107
  }
1109
- var oi = (z.prototype._read = function(e, t) {
1108
+ var ri = (z.prototype._read = function(e, t) {
1110
1109
  var n = this._ctx;
1111
1110
  return n.error ? n.table._trans(null, q.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
1112
1111
  }, z.prototype._write = function(e) {
@@ -1116,7 +1115,7 @@ var Rr = { exports: {} };
1116
1115
  var t = this._ctx;
1117
1116
  t.algorithm = Fe(t.algorithm, e);
1118
1117
  }, z.prototype._iterate = function(e, t) {
1119
- return Mt(this._ctx, e, t, this._ctx.table.core);
1118
+ return jt(this._ctx, e, t, this._ctx.table.core);
1120
1119
  }, z.prototype.clone = function(e) {
1121
1120
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1122
1121
  return e && Z(n, e), t._ctx = n, t;
@@ -1125,18 +1124,18 @@ var Rr = { exports: {} };
1125
1124
  }, z.prototype.each = function(e) {
1126
1125
  var t = this._ctx;
1127
1126
  return this._read(function(n) {
1128
- return Mt(t, e, n, t.table.core);
1127
+ return jt(t, e, n, t.table.core);
1129
1128
  });
1130
1129
  }, z.prototype.count = function(e) {
1131
1130
  var t = this;
1132
1131
  return this._read(function(n) {
1133
1132
  var r = t._ctx, i = r.table.core;
1134
- if (et(r, !0))
1135
- return i.count({ trans: n, query: { index: jt(r, i.schema), range: r.range } }).then(function(s) {
1133
+ if (qe(r, !0))
1134
+ return i.count({ trans: n, query: { index: Tt(r, i.schema), range: r.range } }).then(function(s) {
1136
1135
  return Math.min(s, r.limit);
1137
1136
  });
1138
1137
  var a = 0;
1139
- return Mt(r, function() {
1138
+ return jt(r, function() {
1140
1139
  return ++a, !1;
1141
1140
  }, n, i).then(function() {
1142
1141
  return a;
@@ -1158,14 +1157,14 @@ var Rr = { exports: {} };
1158
1157
  var t = this;
1159
1158
  return this._read(function(n) {
1160
1159
  var r = t._ctx;
1161
- if (r.dir === "next" && et(r, !0) && 0 < r.limit) {
1162
- var i = r.valueMapper, a = jt(r, r.table.core.schema);
1160
+ if (r.dir === "next" && qe(r, !0) && 0 < r.limit) {
1161
+ var i = r.valueMapper, a = Tt(r, r.table.core.schema);
1163
1162
  return r.table.core.query({ trans: n, limit: r.limit, values: !0, query: { index: a, range: r.range } }).then(function(u) {
1164
1163
  return u = u.result, i ? u.map(i) : u;
1165
1164
  });
1166
1165
  }
1167
1166
  var s = [];
1168
- return Mt(r, function(u) {
1167
+ return jt(r, function(u) {
1169
1168
  return s.push(u);
1170
1169
  }, n, r.table.core).then(function() {
1171
1170
  return s;
@@ -1173,7 +1172,7 @@ var Rr = { exports: {} };
1173
1172
  }, e);
1174
1173
  }, z.prototype.offset = function(e) {
1175
1174
  var t = this._ctx;
1176
- return e <= 0 || (t.offset += e, et(t) ? pn(t, function() {
1175
+ return e <= 0 || (t.offset += e, qe(t) ? pn(t, function() {
1177
1176
  var n = e;
1178
1177
  return function(r, i) {
1179
1178
  return n === 0 || (n === 1 ? --n : i(function() {
@@ -1239,9 +1238,9 @@ var Rr = { exports: {} };
1239
1238
  }).then(e);
1240
1239
  }, z.prototype.primaryKeys = function(e) {
1241
1240
  var t = this._ctx;
1242
- if (t.dir === "next" && et(t, !0) && 0 < t.limit)
1241
+ if (t.dir === "next" && qe(t, !0) && 0 < t.limit)
1243
1242
  return this._read(function(r) {
1244
- var i = jt(t, t.table.core.schema);
1243
+ var i = Tt(t, t.table.core.schema);
1245
1244
  return t.table.core.query({ trans: r, values: !1, limit: t.limit, query: { index: i, range: t.range } });
1246
1245
  }).then(function(r) {
1247
1246
  return r.result;
@@ -1298,7 +1297,7 @@ var Rr = { exports: {} };
1298
1297
  var G = O[D], F = { value: Ae(G), primKey: g[S + D] };
1299
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)));
1300
1299
  }
1301
- var Y = et(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1300
+ var Y = qe(n) && n.limit === 1 / 0 && (typeof e != "function" || e === gn) && { index: n.index, range: n.range };
1302
1301
  return Promise.resolve(0 < k.length && h.mutate({ trans: r, type: "add", values: k }).then(function(W) {
1303
1302
  for (var Q in W.failures)
1304
1303
  R.splice(parseInt(Q), 1);
@@ -1318,20 +1317,20 @@ var Rr = { exports: {} };
1318
1317
  }
1319
1318
  return _(0).then(function() {
1320
1319
  if (0 < p.length)
1321
- throw new St("Error modifying one or more objects", p, m, w);
1320
+ throw new _t("Error modifying one or more objects", p, m, w);
1322
1321
  return g.length;
1323
1322
  });
1324
1323
  });
1325
1324
  });
1326
1325
  }, z.prototype.delete = function() {
1327
1326
  var e = this._ctx, t = e.range;
1328
- return et(e) && (e.isPrimKey || t.type === 3) ? this._write(function(n) {
1327
+ return qe(e) && (e.isPrimKey || t.type === 3) ? this._write(function(n) {
1329
1328
  var r = e.table.core.schema.primaryKey, i = t;
1330
1329
  return e.table.core.count({ trans: n, query: { index: r, range: i } }).then(function(a) {
1331
1330
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: i }).then(function(s) {
1332
1331
  var u = s.failures;
1333
1332
  if (s.lastResult, s.results, s = s.numFailures, s)
1334
- throw new St("Could not delete some values", Object.keys(u).map(function(h) {
1333
+ throw new _t("Could not delete some values", Object.keys(u).map(function(h) {
1335
1334
  return u[h];
1336
1335
  }), a - s);
1337
1336
  return a - s;
@@ -1344,21 +1343,21 @@ var Rr = { exports: {} };
1344
1343
  var gn = function(e, t) {
1345
1344
  return t.value = null;
1346
1345
  };
1347
- function ai(e, t) {
1346
+ function ii(e, t) {
1348
1347
  return e < t ? -1 : e === t ? 0 : 1;
1349
1348
  }
1350
- function si(e, t) {
1349
+ function oi(e, t) {
1351
1350
  return t < e ? -1 : e === t ? 0 : 1;
1352
1351
  }
1353
1352
  function ce(e, t, n) {
1354
1353
  return e = e instanceof pr ? new e.Collection(e) : e, e._ctx.error = new (n || TypeError)(t), e;
1355
1354
  }
1356
- function tt(e) {
1355
+ function et(e) {
1357
1356
  return new e.Collection(e, function() {
1358
1357
  return hr("");
1359
1358
  }).limit(0);
1360
1359
  }
1361
- function Kt(e, t, n, r) {
1360
+ function Mt(e, t, n, r) {
1362
1361
  var i, a, s, u, h, d, b, c = n.length;
1363
1362
  if (!n.every(function(m) {
1364
1363
  return typeof m == "string";
@@ -1373,7 +1372,7 @@ var Rr = { exports: {} };
1373
1372
  return g.toLowerCase();
1374
1373
  } : function(g) {
1375
1374
  return g.toUpperCase();
1376
- }, s = m === "next" ? ai : si;
1375
+ }, s = m === "next" ? ii : oi;
1377
1376
  var w = n.map(function(g) {
1378
1377
  return { lower: a(g), upper: i(g) };
1379
1378
  }).sort(function(g, _) {
@@ -1426,7 +1425,7 @@ var Rr = { exports: {} };
1426
1425
  }, enumerable: !1, configurable: !0 }), re.prototype.between = function(e, t, n, r) {
1427
1426
  n = n !== !1, r = r === !0;
1428
1427
  try {
1429
- return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || r) && (!n || !r) ? tt(this) : new this.Collection(this, function() {
1428
+ return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || r) && (!n || !r) ? et(this) : new this.Collection(this, function() {
1430
1429
  return Re(e, t, !n, !r);
1431
1430
  });
1432
1431
  } catch {
@@ -1455,34 +1454,34 @@ var Rr = { exports: {} };
1455
1454
  }, re.prototype.startsWith = function(e) {
1456
1455
  return typeof e != "string" ? ce(this, or) : this.between(e, e + Le, !0, !0);
1457
1456
  }, re.prototype.startsWithIgnoreCase = function(e) {
1458
- return e === "" ? this.startsWith(e) : Kt(this, function(t, n) {
1457
+ return e === "" ? this.startsWith(e) : Mt(this, function(t, n) {
1459
1458
  return t.indexOf(n[0]) === 0;
1460
1459
  }, [e], Le);
1461
1460
  }, re.prototype.equalsIgnoreCase = function(e) {
1462
- return Kt(this, function(t, n) {
1461
+ return Mt(this, function(t, n) {
1463
1462
  return t === n[0];
1464
1463
  }, [e], "");
1465
1464
  }, re.prototype.anyOfIgnoreCase = function() {
1466
- var e = we.apply(He, arguments);
1467
- return e.length === 0 ? tt(this) : Kt(this, function(t, n) {
1465
+ var e = we.apply(Ye, arguments);
1466
+ return e.length === 0 ? et(this) : Mt(this, function(t, n) {
1468
1467
  return n.indexOf(t) !== -1;
1469
1468
  }, e, "");
1470
1469
  }, re.prototype.startsWithAnyOfIgnoreCase = function() {
1471
- var e = we.apply(He, arguments);
1472
- return e.length === 0 ? tt(this) : Kt(this, function(t, n) {
1470
+ var e = we.apply(Ye, arguments);
1471
+ return e.length === 0 ? et(this) : Mt(this, function(t, n) {
1473
1472
  return n.some(function(r) {
1474
1473
  return t.indexOf(r) === 0;
1475
1474
  });
1476
1475
  }, e, Le);
1477
1476
  }, re.prototype.anyOf = function() {
1478
- var e = this, t = we.apply(He, arguments), n = this._cmp;
1477
+ var e = this, t = we.apply(Ye, arguments), n = this._cmp;
1479
1478
  try {
1480
1479
  t.sort(n);
1481
1480
  } catch {
1482
1481
  return ce(this, _e);
1483
1482
  }
1484
1483
  if (t.length === 0)
1485
- return tt(this);
1484
+ return et(this);
1486
1485
  var r = new this.Collection(this, function() {
1487
1486
  return Re(t[0], t[t.length - 1]);
1488
1487
  });
@@ -1501,7 +1500,7 @@ var Rr = { exports: {} };
1501
1500
  }, re.prototype.notEqual = function(e) {
1502
1501
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
1503
1502
  }, re.prototype.noneOf = function() {
1504
- var e = we.apply(He, arguments);
1503
+ var e = we.apply(Ye, arguments);
1505
1504
  if (e.length === 0)
1506
1505
  return new this.Collection(this);
1507
1506
  try {
@@ -1516,7 +1515,7 @@ var Rr = { exports: {} };
1516
1515
  }, re.prototype.inAnyRange = function(_, t) {
1517
1516
  var n = this, r = this._cmp, i = this._ascending, a = this._descending, s = this._min, u = this._max;
1518
1517
  if (_.length === 0)
1519
- return tt(this);
1518
+ return et(this);
1520
1519
  if (!_.every(function(S) {
1521
1520
  return S[0] !== void 0 && S[1] !== void 0 && i(S[0], S[1]) <= 0;
1522
1521
  }))
@@ -1561,10 +1560,10 @@ var Rr = { exports: {} };
1561
1560
  }), !1);
1562
1561
  }), _;
1563
1562
  }, re.prototype.startsWithAnyOf = function() {
1564
- var e = we.apply(He, arguments);
1563
+ var e = we.apply(Ye, arguments);
1565
1564
  return e.every(function(t) {
1566
1565
  return typeof t == "string";
1567
- }) ? e.length === 0 ? tt(this) : this.inAnyRange(e.map(function(t) {
1566
+ }) ? e.length === 0 ? et(this) : this.inAnyRange(e.map(function(t) {
1568
1567
  return [t, t + Le];
1569
1568
  })) : ce(this, "startsWithAnyOf() only works with strings");
1570
1569
  }, re);
@@ -1578,7 +1577,7 @@ var Rr = { exports: {} };
1578
1577
  function ht(e) {
1579
1578
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1580
1579
  }
1581
- var pt = "storagemutated", yn = "x-storagemutated-1", Te = dt(null, pt), ui = (me.prototype._lock = function() {
1580
+ var pt = "storagemutated", yn = "x-storagemutated-1", Te = dt(null, pt), ai = (me.prototype._lock = function() {
1582
1581
  return rt(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1583
1582
  }, me.prototype._unlock = function() {
1584
1583
  if (rt(!B.global), --this._reculock == 0)
@@ -1716,11 +1715,11 @@ var Rr = { exports: {} };
1716
1715
  function yr(e) {
1717
1716
  return [].slice.call(e);
1718
1717
  }
1719
- var ci = 0;
1718
+ var si = 0;
1720
1719
  function yt(e) {
1721
1720
  return e == null ? ":id" : typeof e == "string" ? e : "[".concat(e.join("+"), "]");
1722
1721
  }
1723
- function li(e, t, h) {
1722
+ function ui(e, t, h) {
1724
1723
  function r(g) {
1725
1724
  if (g.type === 3)
1726
1725
  return null;
@@ -1743,8 +1742,8 @@ var Rr = { exports: {} };
1743
1742
  throw new Error("Given keys array must have same length as given values array.");
1744
1743
  if (F === 0)
1745
1744
  return k({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
1746
- function Y(ue) {
1747
- ++le, ht(ue);
1745
+ function Y(se) {
1746
+ ++le, ht(se);
1748
1747
  }
1749
1748
  var W = [], Q = [], le = 0;
1750
1749
  if (_ === "deleteRange") {
@@ -1760,16 +1759,16 @@ var Rr = { exports: {} };
1760
1759
  for (ae = 0; ae < F; ++ae)
1761
1760
  W.push(G = A[_](U[ae])), G.onerror = Y;
1762
1761
  }
1763
- function Vt(ue) {
1764
- ue = ue.target.result, W.forEach(function(ze, Nn) {
1762
+ function Qt(se) {
1763
+ se = se.target.result, W.forEach(function(ze, Nn) {
1765
1764
  return ze.error != null && (Q[Nn] = ze.error);
1766
1765
  }), k({ numFailures: le, failures: Q, results: _ === "delete" ? S : W.map(function(ze) {
1767
1766
  return ze.result;
1768
- }), lastResult: ue });
1767
+ }), lastResult: se });
1769
1768
  }
1770
- G.onerror = function(ue) {
1771
- Y(ue), Vt(ue);
1772
- }, G.onsuccess = Vt;
1769
+ G.onerror = function(se) {
1770
+ Y(se), Qt(se);
1771
+ }, G.onsuccess = Qt;
1773
1772
  });
1774
1773
  }, getMany: function(w) {
1775
1774
  var g = w.trans, _ = w.keys;
@@ -1810,7 +1809,7 @@ var Rr = { exports: {} };
1810
1809
  var D = S.index, A = S.range, R = g.objectStore(m), 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);
1811
1810
  G.onerror = ye(C), G.onsuccess = J(function(F) {
1812
1811
  var Y, W, Q, le, U = G.result;
1813
- U ? (U.___id = ++ci, U.done = !1, Y = U.continue.bind(U), W = (W = U.continuePrimaryKey) && W.bind(U), Q = U.advance.bind(U), le = function() {
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() {
1814
1813
  throw new Error("Cursor not stopped");
1815
1814
  }, U.trans = g, U.stop = U.continue = U.continuePrimaryKey = U.advance = function() {
1816
1815
  throw new Error("Cursor not started");
@@ -1826,22 +1825,22 @@ var Rr = { exports: {} };
1826
1825
  if (G.result)
1827
1826
  try {
1828
1827
  Ee();
1829
- } catch (ue) {
1830
- U.fail(ue);
1828
+ } catch (se) {
1829
+ U.fail(se);
1831
1830
  }
1832
1831
  else
1833
1832
  U.done = !0, U.start = function() {
1834
1833
  throw new Error("Cursor behind last entry");
1835
1834
  }, U.stop();
1836
1835
  }
1837
- var Vt = new Promise(function(ue, ze) {
1838
- ue = J(ue), G.onerror = ye(ze), U.fail = ze, U.stop = function(Nn) {
1839
- U.stop = U.continue = U.continuePrimaryKey = U.advance = le, ue(Nn);
1836
+ var Qt = new Promise(function(se, ze) {
1837
+ se = J(se), G.onerror = ye(ze), U.fail = ze, U.stop = function(Nn) {
1838
+ U.stop = U.continue = U.continuePrimaryKey = U.advance = le, se(Nn);
1840
1839
  };
1841
1840
  });
1842
- return G.onsuccess = J(function(ue) {
1841
+ return G.onsuccess = J(function(se) {
1843
1842
  G.onsuccess = ae, ae();
1844
- }), U.continue = Y, U.continuePrimaryKey = W, U.advance = Q, ae(), Vt;
1843
+ }), U.continue = Y, U.continuePrimaryKey = W, U.advance = Q, ae(), Qt;
1845
1844
  }, k(U)) : k(null);
1846
1845
  }, C);
1847
1846
  });
@@ -1876,14 +1875,14 @@ var Rr = { exports: {} };
1876
1875
  return c[f];
1877
1876
  }, MIN_KEY: -1 / 0, MAX_KEY: gt(t), schema: h };
1878
1877
  }
1879
- function di(e, t, n, r) {
1878
+ function ci(e, t, n, r) {
1880
1879
  var i = n.IDBKeyRange;
1881
- return n.indexedDB, { dbcore: (r = li(t, i, r), e.dbcore.reduce(function(a, s) {
1880
+ return n.indexedDB, { dbcore: (r = ui(t, i, r), e.dbcore.reduce(function(a, s) {
1882
1881
  return s = s.create, y(y({}, a), s(a));
1883
1882
  }, r)) };
1884
1883
  }
1885
- function Bt(e, r) {
1886
- var n = r.db, r = di(e._middlewares, n, e._deps, r);
1884
+ function Kt(e, r) {
1885
+ var n = r.db, r = ci(e._middlewares, n, e._deps, r);
1887
1886
  e.core = r.dbcore, e.tables.forEach(function(i) {
1888
1887
  var a = i.name;
1889
1888
  e.core.schema.tables.some(function(s) {
@@ -1891,12 +1890,12 @@ var Rr = { exports: {} };
1891
1890
  }) && (i.core = e.core.table(a), e[a] instanceof e.Table && (e[a].core = i.core));
1892
1891
  });
1893
1892
  }
1894
- function Nt(e, t, n, r) {
1893
+ function Bt(e, t, n, r) {
1895
1894
  n.forEach(function(i) {
1896
1895
  var a = r[i];
1897
1896
  t.forEach(function(s) {
1898
1897
  var u = function h(d, b) {
1899
- return Ur(d, b) || (d = te(d)) && h(d, b);
1898
+ return Lr(d, b) || (d = te(d)) && h(d, b);
1900
1899
  }(s, i);
1901
1900
  (!u || "value" in u && u.value === void 0) && (s === e.Transaction.prototype || s instanceof e.Transaction ? ke(s, i, { get: function() {
1902
1901
  return this.table(i);
@@ -1912,25 +1911,25 @@ var Rr = { exports: {} };
1912
1911
  n[r] instanceof e.Table && delete n[r];
1913
1912
  });
1914
1913
  }
1915
- function fi(e, t) {
1914
+ function li(e, t) {
1916
1915
  return e._cfg.version - t._cfg.version;
1917
1916
  }
1918
- function hi(e, t, n, r) {
1917
+ function di(e, t, n, r) {
1919
1918
  var i = e._dbSchema;
1920
1919
  n.objectStoreNames.contains("$meta") && !i.$meta && (i.$meta = bn("$meta", br("")[0], []), e._storeNames.push("$meta"));
1921
1920
  var a = e._createTransaction("readwrite", e._storeNames, i);
1922
1921
  a.create(n), a._completion.catch(r);
1923
1922
  var s = a._reject.bind(a), u = B.transless || B;
1924
1923
  Pe(function() {
1925
- return B.trans = a, B.transless = u, t !== 0 ? (Bt(e, n), d = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1924
+ return B.trans = a, B.transless = u, t !== 0 ? (Kt(e, n), d = t, ((h = a).storeNames.includes("$meta") ? h.table("$meta").get("version").then(function(b) {
1926
1925
  return b ?? d;
1927
1926
  }) : T.resolve(d)).then(function(b) {
1928
- return f = b, p = a, m = n, w = [], b = (c = e)._versions, g = c._dbSchema = Lt(0, c.idbdb, m), (b = b.filter(function(_) {
1927
+ return f = b, p = a, m = n, w = [], b = (c = e)._versions, g = c._dbSchema = Gt(0, c.idbdb, m), (b = b.filter(function(_) {
1929
1928
  return _._cfg.version >= f;
1930
1929
  })).length !== 0 ? (b.forEach(function(_) {
1931
1930
  w.push(function() {
1932
1931
  var S = g, E = _._cfg.dbschema;
1933
- Ft(c, S, m), Ft(c, E, m), g = c._dbSchema = E;
1932
+ Lt(c, S, m), Lt(c, E, m), g = c._dbSchema = E;
1934
1933
  var O = _n(S, E);
1935
1934
  O.add.forEach(function(D) {
1936
1935
  Sn(m, D[0], D[1].primKey, D[1].indexes);
@@ -1939,22 +1938,22 @@ var Rr = { exports: {} };
1939
1938
  throw new L.Upgrade("Not yet support for changing primary key");
1940
1939
  var G = m.objectStore(D.name);
1941
1940
  D.add.forEach(function(F) {
1942
- return Gt(G, F);
1941
+ return Nt(G, F);
1943
1942
  }), D.change.forEach(function(F) {
1944
- G.deleteIndex(F.name), Gt(G, F);
1943
+ G.deleteIndex(F.name), Nt(G, F);
1945
1944
  }), D.del.forEach(function(F) {
1946
1945
  return G.deleteIndex(F);
1947
1946
  });
1948
1947
  });
1949
1948
  var k = _._cfg.contentUpgrade;
1950
1949
  if (k && _._cfg.version > f) {
1951
- Bt(c, m), p._memoizedTables = {};
1950
+ Kt(c, m), p._memoizedTables = {};
1952
1951
  var C = Qn(E);
1953
1952
  O.del.forEach(function(D) {
1954
1953
  C[D] = S[D];
1955
- }), wn(c, [c.Transaction.prototype]), Nt(c, [c.Transaction.prototype], M(C), C), p.schema = C;
1954
+ }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], M(C), C), p.schema = C;
1956
1955
  var A, R = qt(k);
1957
- return R && Ze(), O = T.follow(function() {
1956
+ return R && Je(), O = T.follow(function() {
1958
1957
  var D;
1959
1958
  (A = k(p)) && R && (D = Ie.bind(null, null), A.then(D, D));
1960
1959
  }), A && typeof A.then == "function" ? T.resolve(A) : O.then(function() {
@@ -1965,7 +1964,7 @@ var Rr = { exports: {} };
1965
1964
  var E, O, k = _._cfg.dbschema;
1966
1965
  E = k, O = S, [].slice.call(O.db.objectStoreNames).forEach(function(C) {
1967
1966
  return E[C] == null && O.db.deleteObjectStore(C);
1968
- }), wn(c, [c.Transaction.prototype]), Nt(c, [c.Transaction.prototype], c._storeNames, c._dbSchema), p.schema = c._dbSchema;
1967
+ }), wn(c, [c.Transaction.prototype]), Bt(c, [c.Transaction.prototype], c._storeNames, c._dbSchema), p.schema = c._dbSchema;
1969
1968
  }), w.push(function(S) {
1970
1969
  c.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(c.idbdb.version / 10) === _._cfg.version ? (c.idbdb.deleteObjectStore("$meta"), delete c._dbSchema.$meta, c._storeNames = c._storeNames.filter(function(E) {
1971
1970
  return E !== "$meta";
@@ -1979,23 +1978,23 @@ var Rr = { exports: {} };
1979
1978
  var c, f, p, m, w, g;
1980
1979
  }).catch(s)) : (M(i).forEach(function(b) {
1981
1980
  Sn(n, b, i[b].primKey, i[b].indexes);
1982
- }), Bt(e, n), void T.follow(function() {
1981
+ }), Kt(e, n), void T.follow(function() {
1983
1982
  return e.on.populate.fire(a);
1984
1983
  }).catch(s));
1985
1984
  var h, d;
1986
1985
  });
1987
1986
  }
1988
- function pi(e, t) {
1987
+ function fi(e, t) {
1989
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");
1990
- var n = Lt(0, e.idbdb, t);
1991
- Ft(e, e._dbSchema, t);
1989
+ var n = Gt(0, e.idbdb, t);
1990
+ Lt(e, e._dbSchema, t);
1992
1991
  for (var r = 0, i = _n(n, e._dbSchema).change; r < i.length; r++) {
1993
1992
  var a = function(s) {
1994
1993
  if (s.change.length || s.recreate)
1995
1994
  return console.warn("Unable to patch indexes of table ".concat(s.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
1996
1995
  var u = t.objectStore(s.name);
1997
1996
  s.add.forEach(function(h) {
1998
- pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(s.name, ".").concat(h.src)), Gt(u, h);
1997
+ pe && console.debug("Dexie upgrade patch: Creating missing index ".concat(s.name, ".").concat(h.src)), Nt(u, h);
1999
1998
  });
2000
1999
  }(i[r]);
2001
2000
  if (typeof a == "object")
@@ -2030,7 +2029,7 @@ var Rr = { exports: {} };
2030
2029
  function Sn(e, t, n, r) {
2031
2030
  var i = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2032
2031
  return r.forEach(function(a) {
2033
- return Gt(i, a);
2032
+ return Nt(i, a);
2034
2033
  }), i;
2035
2034
  }
2036
2035
  function mr(e, t) {
@@ -2038,12 +2037,12 @@ var Rr = { exports: {} };
2038
2037
  t.db.objectStoreNames.contains(n) || (pe && console.debug("Dexie: Creating missing table", n), Sn(t, n, e[n].primKey, e[n].indexes));
2039
2038
  });
2040
2039
  }
2041
- function Gt(e, t) {
2040
+ function Nt(e, t) {
2042
2041
  e.createIndex(t.name, t.keyPath, { unique: t.unique, multiEntry: t.multi });
2043
2042
  }
2044
- function Lt(e, t, n) {
2043
+ function Gt(e, t, n) {
2045
2044
  var r = {};
2046
- return _t(t.objectStoreNames, 0).forEach(function(i) {
2045
+ return wt(t.objectStoreNames, 0).forEach(function(i) {
2047
2046
  for (var a = n.objectStore(i), s = mn(gr(d = a.keyPath), d || "", !0, !1, !!a.autoIncrement, d && typeof d != "string", !0), u = [], h = 0; h < a.indexNames.length; ++h) {
2048
2047
  var b = a.index(a.indexNames[h]), d = b.keyPath, b = mn(b.name, d, !!b.unique, !!b.multiEntry, !1, d && typeof d != "string", !1);
2049
2048
  u.push(b);
@@ -2051,12 +2050,12 @@ var Rr = { exports: {} };
2051
2050
  r[i] = bn(i, s, u);
2052
2051
  }), r;
2053
2052
  }
2054
- function Ft(e, t, n) {
2053
+ function Lt(e, t, n) {
2055
2054
  for (var r = n.db.objectStoreNames, i = 0; i < r.length; ++i) {
2056
2055
  var a = r[i], s = n.objectStore(a);
2057
2056
  e._hasGetAll = "getAll" in s;
2058
2057
  for (var u = 0; u < s.indexNames.length; ++u) {
2059
- var h = s.indexNames[u], d = s.index(h).keyPath, b = typeof d == "string" ? d : "[" + _t(d).join("+") + "]";
2058
+ var h = s.indexNames[u], d = s.index(h).keyPath, b = typeof d == "string" ? d : "[" + wt(d).join("+") + "]";
2060
2059
  !t[a] || (d = t[a].idxByName[b]) && (d.name = h, delete t[a].idxByName[b], t[a].idxByName[h] = d);
2061
2060
  }
2062
2061
  }
@@ -2068,7 +2067,7 @@ var Rr = { exports: {} };
2068
2067
  return mn(r, i || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), N(i), n === 0);
2069
2068
  });
2070
2069
  }
2071
- var gi = (Ut.prototype._parseStoresSpec = function(e, t) {
2070
+ var hi = (Ft.prototype._parseStoresSpec = function(e, t) {
2072
2071
  M(e).forEach(function(n) {
2073
2072
  if (e[n] !== null) {
2074
2073
  var r = br(e[n]), i = r.shift();
@@ -2082,21 +2081,21 @@ var Rr = { exports: {} };
2082
2081
  }), t[n] = bn(n, i, r);
2083
2082
  }
2084
2083
  });
2085
- }, Ut.prototype.stores = function(n) {
2084
+ }, Ft.prototype.stores = function(n) {
2086
2085
  var t = this.db;
2087
2086
  this._cfg.storesSource = this._cfg.storesSource ? Z(this._cfg.storesSource, n) : n;
2088
2087
  var n = t._versions, r = {}, i = {};
2089
2088
  return n.forEach(function(a) {
2090
2089
  Z(r, a._cfg.storesSource), i = a._cfg.dbschema = {}, a._parseStoresSpec(r, i);
2091
- }), t._dbSchema = i, wn(t, [t._allTables, t, t.Transaction.prototype]), Nt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], M(i), i), t._storeNames = M(i), this;
2092
- }, Ut.prototype.upgrade = function(e) {
2090
+ }), t._dbSchema = i, wn(t, [t._allTables, t, t.Transaction.prototype]), Bt(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], M(i), i), t._storeNames = M(i), this;
2091
+ }, Ft.prototype.upgrade = function(e) {
2093
2092
  return this._cfg.contentUpgrade = tn(this._cfg.contentUpgrade || H, e), this;
2094
- }, Ut);
2095
- function Ut() {
2093
+ }, Ft);
2094
+ function Ft() {
2096
2095
  }
2097
2096
  function En(e, t) {
2098
2097
  var n = e._dbNamesDB;
2099
- return n || (n = e._dbNamesDB = new Se(Rt, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2098
+ return n || (n = e._dbNamesDB = new Se(Ct, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
2100
2099
  }
2101
2100
  function On(e) {
2102
2101
  return e && typeof e.databases == "function";
@@ -2137,7 +2136,7 @@ var Rr = { exports: {} };
2137
2136
  mt(r, a, s), u && n(r, u), h && n(r, h);
2138
2137
  }(e, t);
2139
2138
  }
2140
- function Wt(e, t) {
2139
+ function Ut(e, t) {
2141
2140
  var n = An(t), r = n.next();
2142
2141
  if (r.done)
2143
2142
  return !1;
@@ -2182,7 +2181,7 @@ var Rr = { exports: {} };
2182
2181
  var t = n.r, n = n.l;
2183
2182
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
2184
2183
  }
2185
- function zt(e, t) {
2184
+ function Wt(e, t) {
2186
2185
  return M(t).forEach(function(n) {
2187
2186
  e[n] ? bt(e[n], t[n]) : e[n] = function r(i) {
2188
2187
  var a, s, u = {};
@@ -2194,7 +2193,7 @@ var Rr = { exports: {} };
2194
2193
  }
2195
2194
  function Dn(e, t) {
2196
2195
  return e.all || t.all || Object.keys(e).some(function(n) {
2197
- return t[n] && Wt(t[n], e[n]);
2196
+ return t[n] && Ut(t[n], e[n]);
2198
2197
  });
2199
2198
  }
2200
2199
  xe(oe.prototype, ((fe = { add: function(e) {
@@ -2210,8 +2209,8 @@ var Rr = { exports: {} };
2210
2209
  return An(this);
2211
2210
  }, fe));
2212
2211
  var Ue = {}, Pn = {}, In = !1;
2213
- function $t(e) {
2214
- zt(Pn, e), In || (In = !0, setTimeout(function() {
2212
+ function zt(e) {
2213
+ Wt(Pn, e), In || (In = !0, setTimeout(function() {
2215
2214
  In = !1, Cn(Pn, !(Pn = {}));
2216
2215
  }, 0));
2217
2216
  }
@@ -2246,7 +2245,7 @@ var Rr = { exports: {} };
2246
2245
  e.queries.query[h] = d;
2247
2246
  }
2248
2247
  }
2249
- function yi(e) {
2248
+ function pi(e) {
2250
2249
  var t = e._state, n = e._deps.indexedDB;
2251
2250
  if (t.isBeingOpened || e.idbdb)
2252
2251
  return t.dbReadyPromise.then(function() {
@@ -2269,27 +2268,27 @@ var Rr = { exports: {} };
2269
2268
  var _;
2270
2269
  b = w.transaction, t.autoSchema && !e._options.allowEmptyDB ? (w.onerror = ht, b.abort(), w.result.close(), (_ = n.deleteDatabase(m)).onsuccess = _.onerror = J(function() {
2271
2270
  p(new L.NoSuchDatabase("Database ".concat(m, " doesnt exist")));
2272
- })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = w.result, a && pi(e, b), hi(e, g / 10, b, p));
2271
+ })) : (b.onerror = ye(p), g = g.oldVersion > Math.pow(2, 62) ? 0 : g.oldVersion, c = g < 1, e.idbdb = w.result, a && fi(e, b), di(e, g / 10, b, p));
2273
2272
  }, p), w.onsuccess = J(function() {
2274
2273
  b = null;
2275
- var g, _, S, E, O, k = e.idbdb = w.result, C = _t(k.objectStoreNames);
2274
+ var g, _, S, E, O, k = e.idbdb = w.result, C = wt(k.objectStoreNames);
2276
2275
  if (0 < C.length)
2277
2276
  try {
2278
2277
  var A = k.transaction((E = C).length === 1 ? E[0] : E, "readonly");
2279
2278
  if (t.autoSchema)
2280
- _ = k, S = A, (g = e).verno = _.version / 10, S = g._dbSchema = Lt(0, _, S), g._storeNames = _t(_.objectStoreNames, 0), Nt(g, [g._allTables], M(S), S);
2281
- else if (Ft(e, e._dbSchema, A), ((O = _n(Lt(0, (O = e).idbdb, A), O._dbSchema)).add.length || O.change.some(function(R) {
2279
+ _ = k, S = A, (g = e).verno = _.version / 10, S = g._dbSchema = Gt(0, _, S), g._storeNames = wt(_.objectStoreNames, 0), Bt(g, [g._allTables], M(S), S);
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) {
2282
2281
  return R.add.length || R.change.length;
2283
2282
  })) && !a)
2284
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());
2285
- Bt(e, A);
2284
+ Kt(e, A);
2286
2285
  } catch {
2287
2286
  }
2288
- qe.push(e), k.onversionchange = J(function(R) {
2287
+ Ze.push(e), k.onversionchange = J(function(R) {
2289
2288
  t.vcFired = !0, e.on("versionchange").fire(R);
2290
2289
  }), k.onclose = J(function(R) {
2291
2290
  e.on("close").fire(R);
2292
- }), c && (O = e._deps, A = m, k = O.indexedDB, O = O.IDBKeyRange, On(k) || A === Rt || En(k, O).put({ name: A }).catch(H)), f();
2291
+ }), c && (O = e._deps, A = m, k = O.indexedDB, O = O.IDBKeyRange, On(k) || A === Ct || En(k, O).put({ name: A }).catch(H)), f();
2293
2292
  }, p);
2294
2293
  }).catch(function(f) {
2295
2294
  switch (f == null ? void 0 : f.name) {
@@ -2358,12 +2357,12 @@ var Rr = { exports: {} };
2358
2357
  }
2359
2358
  return i(t)();
2360
2359
  }
2361
- function Yt(e, t, n) {
2360
+ function $t(e, t, n) {
2362
2361
  for (var r = N(e) ? e.slice() : [e], i = 0; i < n; ++i)
2363
2362
  r.push(t);
2364
2363
  return r;
2365
2364
  }
2366
- var mi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2365
+ var gi = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(e) {
2367
2366
  return y(y({}, e), { table: function(t) {
2368
2367
  var n = e.table(t), r = n.schema, i = {}, a = [];
2369
2368
  function s(c, f, p) {
@@ -2379,7 +2378,7 @@ var Rr = { exports: {} };
2379
2378
  }
2380
2379
  function b(c) {
2381
2380
  var f, p = c.query.index;
2382
- return p.isVirtual ? y(y({}, c), { query: { index: p.lowLevelIndex, range: (f = c.query.range, p = p.keyTail, { type: f.type === 1 ? 2 : f.type, lower: Yt(f.lower, f.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: Yt(f.upper, f.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : c;
2381
+ return p.isVirtual ? y(y({}, c), { query: { index: p.lowLevelIndex, range: (f = c.query.range, p = p.keyTail, { type: f.type === 1 ? 2 : f.type, lower: $t(f.lower, f.lowerOpen ? e.MAX_KEY : e.MIN_KEY, p), lowerOpen: !0, upper: $t(f.upper, f.upperOpen ? e.MIN_KEY : e.MAX_KEY, p), upperOpen: !0 }) } }) : c;
2383
2382
  }
2384
2383
  return y(y({}, n), { schema: y(y({}, r), { primaryKey: t, indexes: a, getIndexByKeyPath: function(c) {
2385
2384
  return (c = i[yt(c)]) && c[0];
@@ -2394,9 +2393,9 @@ var Rr = { exports: {} };
2394
2393
  }) : n.openCursor(c);
2395
2394
  function g(_) {
2396
2395
  return Object.create(_, { continue: { value: function(S) {
2397
- S != null ? _.continue(Yt(S, c.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : c.unique ? _.continue(_.key.slice(0, w).concat(c.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2396
+ S != null ? _.continue($t(S, c.reverse ? e.MAX_KEY : e.MIN_KEY, p)) : c.unique ? _.continue(_.key.slice(0, w).concat(c.reverse ? e.MIN_KEY : e.MAX_KEY, p)) : _.continue();
2398
2397
  } }, continuePrimaryKey: { value: function(S, E) {
2399
- _.continuePrimaryKey(Yt(S, e.MAX_KEY, p), E);
2398
+ _.continuePrimaryKey($t(S, e.MAX_KEY, p), E);
2400
2399
  } }, primaryKey: { get: function() {
2401
2400
  return _.primaryKey;
2402
2401
  } }, key: { get: function() {
@@ -2420,7 +2419,7 @@ var Rr = { exports: {} };
2420
2419
  function jn(e, t) {
2421
2420
  return t.type === "delete" ? t.keys : t.keys || t.values.map(e.extractKey);
2422
2421
  }
2423
- var bi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2422
+ var yi = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(e) {
2424
2423
  return y(y({}, e), { table: function(t) {
2425
2424
  var n = e.table(t), r = n.schema.primaryKey;
2426
2425
  return y(y({}, n), { mutate: function(i) {
@@ -2497,7 +2496,7 @@ var Rr = { exports: {} };
2497
2496
  return null;
2498
2497
  }
2499
2498
  }
2500
- var vi = { stack: "dbcore", level: -1, create: function(e) {
2499
+ var mi = { stack: "dbcore", level: -1, create: function(e) {
2501
2500
  return { table: function(t) {
2502
2501
  var n = e.table(t);
2503
2502
  return y(y({}, n), { getMany: function(r) {
@@ -2526,7 +2525,7 @@ var Rr = { exports: {} };
2526
2525
  return !1;
2527
2526
  }
2528
2527
  }
2529
- var wi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2528
+ var bi = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2530
2529
  var t = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2531
2530
  return y(y({}, e), { transaction: function(r, i, a) {
2532
2531
  if (B.subscr && i !== "readonly")
@@ -2561,7 +2560,7 @@ var Rr = { exports: {} };
2561
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) {
2562
2561
  return p(D.name).add(n);
2563
2562
  })), a.mutate(f).then(function(D) {
2564
- return !C || f.type !== "add" && f.type !== "put" || E.addKeys(D.results), _.mutatedParts = zt(_.mutatedParts || {}, S), D;
2563
+ return !C || f.type !== "add" && f.type !== "put" || E.addKeys(D.results), _.mutatedParts = Wt(_.mutatedParts || {}, S), D;
2565
2564
  });
2566
2565
  } }), c = { get: function(f) {
2567
2566
  return [u, new oe(f.key)];
@@ -2645,7 +2644,7 @@ var Rr = { exports: {} };
2645
2644
  var _ = new oe().addKeys(m.values.map(function(k) {
2646
2645
  return d(k);
2647
2646
  })), w = p.filter(function(k) {
2648
- return k = t.values ? d(k) : k, !Wt(new oe(k), _);
2647
+ return k = t.values ? d(k) : k, !Ut(new oe(k), _);
2649
2648
  }).concat(t.values ? g : g.map(function(k) {
2650
2649
  return d(k);
2651
2650
  }));
@@ -2653,7 +2652,7 @@ var Rr = { exports: {} };
2653
2652
  case "delete":
2654
2653
  var S = new oe().addKeys(m.keys);
2655
2654
  w = p.filter(function(k) {
2656
- return k = t.values ? d(k) : k, !Wt(new oe(k), S);
2655
+ return k = t.values ? d(k) : k, !Ut(new oe(k), S);
2657
2656
  });
2658
2657
  break;
2659
2658
  case "deleteRange":
@@ -2671,7 +2670,7 @@ var Rr = { exports: {} };
2671
2670
  function Ar(e, t) {
2672
2671
  return $(e.lower, t.lower) === 0 && $(e.upper, t.upper) === 0 && !!e.lowerOpen == !!t.lowerOpen && !!e.upperOpen == !!t.upperOpen;
2673
2672
  }
2674
- function _i(e, t) {
2673
+ function vi(e, t) {
2675
2674
  return function(n, r, i, a) {
2676
2675
  if (n === void 0)
2677
2676
  return r !== void 0 ? -1 : 0;
@@ -2702,7 +2701,7 @@ var Rr = { exports: {} };
2702
2701
  return r;
2703
2702
  }(e.upper, t.upper, e.upperOpen, t.upperOpen);
2704
2703
  }
2705
- function Si(e, t, n, r) {
2704
+ function wi(e, t, n, r) {
2706
2705
  e.subscribers.add(n), r.addEventListener("abort", function() {
2707
2706
  var i, a;
2708
2707
  e.subscribers.delete(n), e.subscribers.size === 0 && (i = e, a = t, setTimeout(function() {
@@ -2710,7 +2709,7 @@ var Rr = { exports: {} };
2710
2709
  }, 3e3));
2711
2710
  });
2712
2711
  }
2713
- var Ei = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2712
+ var _i = { stack: "dbcore", level: 0, name: "Cache", create: function(e) {
2714
2713
  var t = e.schema.name;
2715
2714
  return y(y({}, e), { transaction: function(n, r, i) {
2716
2715
  var a, s, u = e.transaction(n, r, i);
@@ -2758,17 +2757,17 @@ var Rr = { exports: {} };
2758
2757
  var u = Ue["idb://".concat(t, "/").concat(n)];
2759
2758
  return u ? (s = r.mutate(a), a.type !== "add" && a.type !== "put" || !(50 <= a.values.length || jn(i, a).some(function(h) {
2760
2759
  return h == null;
2761
- })) ? (u.optimisticOps.push(a), a.mutatedParts && $t(a.mutatedParts), s.then(function(h) {
2762
- 0 < h.numFailures && (Me(u.optimisticOps, a), (h = xr(0, a, h)) && u.optimisticOps.push(h), a.mutatedParts && $t(a.mutatedParts));
2760
+ })) ? (u.optimisticOps.push(a), a.mutatedParts && zt(a.mutatedParts), s.then(function(h) {
2761
+ 0 < h.numFailures && (Me(u.optimisticOps, a), (h = xr(0, a, h)) && u.optimisticOps.push(h), a.mutatedParts && zt(a.mutatedParts));
2763
2762
  }), s.catch(function() {
2764
- Me(u.optimisticOps, a), a.mutatedParts && $t(a.mutatedParts);
2763
+ Me(u.optimisticOps, a), a.mutatedParts && zt(a.mutatedParts);
2765
2764
  })) : s.then(function(h) {
2766
2765
  var d = xr(0, y(y({}, a), { values: a.values.map(function(p, c) {
2767
2766
  var f, p = (f = i.keyPath) !== null && f !== void 0 && f.includes(".") ? Ae(p) : y({}, p);
2768
2767
  return de(p, i.keyPath, h.results[c]), p;
2769
2768
  }) }), h);
2770
2769
  u.optimisticOps.push(d), queueMicrotask(function() {
2771
- return a.mutatedParts && $t(a.mutatedParts);
2770
+ return a.mutatedParts && zt(a.mutatedParts);
2772
2771
  });
2773
2772
  }), s) : r.mutate(a);
2774
2773
  }, query: function(a) {
@@ -2789,7 +2788,7 @@ var Rr = { exports: {} };
2789
2788
  return k.req.limit === _.limit && k.req.values === _.values && Ar(k.req.query.range, _.query.range);
2790
2789
  });
2791
2790
  return O ? [O, !0, S, E] : [E.find(function(k) {
2792
- return ("limit" in k.req ? k.req.limit : 1 / 0) >= _.limit && (!_.values || k.req.values) && _i(k.req.query.range, _.query.range);
2791
+ return ("limit" in k.req ? k.req.limit : 1 / 0) >= _.limit && (!_.values || k.req.values) && vi(k.req.query.range, _.query.range);
2793
2792
  }), !1, S, E];
2794
2793
  case "count":
2795
2794
  return O = E.find(function(k) {
@@ -2808,13 +2807,13 @@ var Rr = { exports: {} };
2808
2807
  return m;
2809
2808
  }).catch(function(m) {
2810
2809
  return p && b && Me(p, b), Promise.reject(m);
2811
- }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), Si(b, p, u, h), b.promise.then(function(m) {
2810
+ }), b = { obsSet: a.obsSet, promise: c, subscribers: /* @__PURE__ */ new Set(), type: "query", req: a, dirty: !1 }, p ? p.push(b) : (p = [b], (f = f || (Ue["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[a.query.index.name || ""] = p)), wi(b, p, u, h), b.promise.then(function(m) {
2812
2811
  return { result: kr(m.result, a, f == null ? void 0 : f.optimisticOps, r, b, s) };
2813
2812
  });
2814
2813
  } });
2815
2814
  } });
2816
2815
  } };
2817
- function Ht(e, t) {
2816
+ function Yt(e, t) {
2818
2817
  return new Proxy(e, { get: function(n, r, i) {
2819
2818
  return r === "db" ? t : Reflect.get(n, r, i);
2820
2819
  } });
@@ -2828,7 +2827,7 @@ var Rr = { exports: {} };
2828
2827
  var t = this._versions, n = t.filter(function(r) {
2829
2828
  return r._cfg.version === e;
2830
2829
  })[0];
2831
- return n || (n = new this.Version(e), t.push(n), t.sort(fi), n.stores({}), this._state.autoSchema = !1, n);
2830
+ return n || (n = new this.Version(e), t.push(n), t.sort(li), n.stores({}), this._state.autoSchema = !1, n);
2832
2831
  }, ee.prototype._whenReady = function(e) {
2833
2832
  var t = this;
2834
2833
  return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new T(function(n, r) {
@@ -2854,11 +2853,11 @@ var Rr = { exports: {} };
2854
2853
  }, ee.prototype.open = function() {
2855
2854
  var e = this;
2856
2855
  return Ge(De, function() {
2857
- return yi(e);
2856
+ return pi(e);
2858
2857
  });
2859
2858
  }, ee.prototype._close = function() {
2860
- var e = this._state, t = qe.indexOf(this);
2861
- if (0 <= t && qe.splice(t, 1), this.idbdb) {
2859
+ var e = this._state, t = Ze.indexOf(this);
2860
+ if (0 <= t && Ze.splice(t, 1), this.idbdb) {
2862
2861
  try {
2863
2862
  this.idbdb.close();
2864
2863
  } catch {
@@ -2883,7 +2882,7 @@ var Rr = { exports: {} };
2883
2882
  var u = t._deps.indexedDB.deleteDatabase(t.name);
2884
2883
  u.onsuccess = J(function() {
2885
2884
  var h, d, b;
2886
- h = t._deps, d = t.name, b = h.indexedDB, h = h.IDBKeyRange, On(b) || d === Rt || En(b, h).delete(d).catch(H), i();
2885
+ h = t._deps, d = t.name, b = h.indexedDB, h = h.IDBKeyRange, On(b) || d === Ct || En(b, h).delete(d).catch(H), i();
2887
2886
  }), u.onerror = ye(a), u.onblocked = t._fireOnBlocked;
2888
2887
  }
2889
2888
  if (n)
@@ -2966,7 +2965,7 @@ var Rr = { exports: {} };
2966
2965
  })) : q(E);
2967
2966
  }
2968
2967
  var _, S = qt(m);
2969
- return S && Ze(), w = T.follow(function() {
2968
+ return S && Je(), w = T.follow(function() {
2970
2969
  var E;
2971
2970
  (_ = m.call(g, g)) && (S ? (E = Ie.bind(null, null), _.then(E, E)) : typeof _.next == "function" && typeof _.throw == "function" && (_ = Rn(_)));
2972
2971
  }, w), (_ && typeof _.then == "function" ? T.resolve(_).then(function(E) {
@@ -3009,7 +3008,7 @@ var Rr = { exports: {} };
3009
3008
  }));
3010
3009
  });
3011
3010
  };
3012
- }), this.Collection = (i = this, ft(oi.prototype, function(_, g) {
3011
+ }), this.Collection = (i = this, ft(ri.prototype, function(_, g) {
3013
3012
  this.db = i;
3014
3013
  var p = ar, m = null;
3015
3014
  if (g)
@@ -3021,8 +3020,8 @@ var Rr = { exports: {} };
3021
3020
  var w = _._ctx, g = w.table, _ = g.hook.reading.fire;
3022
3021
  this._ctx = { table: g, index: w.index, isPrimKey: !w.index || g.schema.primKey.keyPath && w.index === g.schema.primKey.name, range: p, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: m, or: w.or, valueMapper: _ !== ot ? _ : null };
3023
3022
  })), this.Table = (a = this, ft(lr.prototype, function(c, f, p) {
3024
- this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : dt(null, { creating: [Xr, H], reading: [Vr, ot], updating: [Zr, H], deleting: [Jr, H] });
3025
- })), this.Transaction = (s = this, ft(ui.prototype, function(c, f, p, m, w) {
3023
+ this.db = a, this._tx = p, this.name = c, this.schema = f, this.hook = a._allTables[c] ? a._allTables[c].hook : dt(null, { creating: [Qr, H], reading: [Hr, ot], updating: [Xr, H], deleting: [Vr, H] });
3024
+ })), this.Transaction = (s = this, ft(ai.prototype, function(c, f, p, m, w) {
3026
3025
  var g = this;
3027
3026
  this.db = s, this.mode = c, this.storeNames = f, this.schema = p, this.chromeTransactionDurability = m, this.idbtrans = null, this.on = dt(this, "complete", "error", "abort"), this.parent = w || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new T(function(_, S) {
3028
3027
  g._resolve = _, g._reject = S;
@@ -3032,7 +3031,7 @@ var Rr = { exports: {} };
3032
3031
  var S = g.active;
3033
3032
  return g.active = !1, g.on.error.fire(_), g.parent ? g.parent._reject(_) : S && g.idbtrans && g.idbtrans.abort(), q(_);
3034
3033
  });
3035
- })), this.Version = (u = this, ft(gi.prototype, function(c) {
3034
+ })), this.Version = (u = this, ft(hi.prototype, function(c) {
3036
3035
  this.db = u, this._cfg = { version: c, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3037
3036
  })), this.WhereClause = (h = this, ft(pr.prototype, function(c, f, p) {
3038
3037
  if (this.db = h, this._ctx = { table: c, index: f === ":id" ? null : f, or: p }, this._cmp = this._ascending = $, this._descending = function(m, w) {
@@ -3050,31 +3049,31 @@ var Rr = { exports: {} };
3050
3049
  }), this._maxKey = gt(t.IDBKeyRange), this._createTransaction = function(c, f, p, m) {
3051
3050
  return new n.Transaction(c, f, p, n._options.chromeTransactionDurability, m);
3052
3051
  }, this._fireOnBlocked = function(c) {
3053
- n.on("blocked").fire(c), qe.filter(function(f) {
3052
+ n.on("blocked").fire(c), Ze.filter(function(f) {
3054
3053
  return f.name === n.name && f !== n && !f._state.vcFired;
3055
3054
  }).map(function(f) {
3056
3055
  return f.on("versionchange").fire(c);
3057
3056
  });
3058
- }, this.use(vi), this.use(Ei), this.use(wi), this.use(mi), this.use(bi);
3057
+ }, this.use(mi), this.use(_i), this.use(bi), this.use(gi), this.use(yi);
3059
3058
  var b = new Proxy(this, { get: function(c, f, p) {
3060
3059
  if (f === "_vip")
3061
3060
  return !0;
3062
3061
  if (f === "table")
3063
3062
  return function(w) {
3064
- return Ht(n.table(w), b);
3063
+ return Yt(n.table(w), b);
3065
3064
  };
3066
3065
  var m = Reflect.get(c, f, p);
3067
- return m instanceof lr ? Ht(m, b) : f === "tables" ? m.map(function(w) {
3068
- return Ht(w, b);
3066
+ return m instanceof lr ? Yt(m, b) : f === "tables" ? m.map(function(w) {
3067
+ return Yt(w, b);
3069
3068
  }) : f === "_createTransaction" ? function() {
3070
- return Ht(m.apply(this, arguments), b);
3069
+ return Yt(m.apply(this, arguments), b);
3071
3070
  } : m;
3072
3071
  } });
3073
3072
  this.vip = b, r.forEach(function(c) {
3074
3073
  return c(n);
3075
3074
  });
3076
3075
  }
3077
- var Qt, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Oi = (Kn.prototype.subscribe = function(e, t, n) {
3076
+ var Ht, fe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", Si = (Kn.prototype.subscribe = function(e, t, n) {
3078
3077
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
3079
3078
  }, Kn.prototype[fe] = function() {
3080
3079
  return this;
@@ -3083,12 +3082,12 @@ var Rr = { exports: {} };
3083
3082
  this._subscribe = e;
3084
3083
  }
3085
3084
  try {
3086
- Qt = { indexedDB: j.indexedDB || j.mozIndexedDB || j.webkitIndexedDB || j.msIndexedDB, IDBKeyRange: j.IDBKeyRange || j.webkitIDBKeyRange };
3085
+ Ht = { indexedDB: j.indexedDB || j.mozIndexedDB || j.webkitIndexedDB || j.msIndexedDB, IDBKeyRange: j.IDBKeyRange || j.webkitIDBKeyRange };
3087
3086
  } catch {
3088
- Qt = { indexedDB: null, IDBKeyRange: null };
3087
+ Ht = { indexedDB: null, IDBKeyRange: null };
3089
3088
  }
3090
3089
  function Dr(e) {
3091
- var t, n = !1, r = new Oi(function(i) {
3090
+ var t, n = !1, r = new Si(function(i) {
3092
3091
  var a = qt(e), s, u = !1, h = {}, d = {}, b = { get closed() {
3093
3092
  return u;
3094
3093
  }, unsubscribe: function() {
@@ -3098,17 +3097,17 @@ var Rr = { exports: {} };
3098
3097
  var c = !1, f = function() {
3099
3098
  return ln(m);
3100
3099
  }, p = function(w) {
3101
- zt(h, w), Dn(d, h) && f();
3100
+ Wt(h, w), Dn(d, h) && f();
3102
3101
  }, m = function() {
3103
3102
  var w, g, _;
3104
- !u && Qt.indexedDB && (h = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3105
- var E = Xe();
3103
+ !u && Ht.indexedDB && (h = {}, w = {}, s && s.abort(), s = new AbortController(), _ = function(S) {
3104
+ var E = Ve();
3106
3105
  try {
3107
- a && Ze();
3106
+ a && Je();
3108
3107
  var O = Pe(e, S);
3109
3108
  return O = a ? O.finally(Ie) : O;
3110
3109
  } finally {
3111
- E && Je();
3110
+ E && Xe();
3112
3111
  }
3113
3112
  }(g = { subscr: w, signal: s.signal, requery: f, querier: e, trans: null }), Promise.resolve(_).then(function(S) {
3114
3113
  n = !0, t = S, u || g.signal.aborted || (h = {}, function(E) {
@@ -3142,7 +3141,7 @@ var Rr = { exports: {} };
3142
3141
  je = t;
3143
3142
  }
3144
3143
  }
3145
- xe(We, y(y({}, Et), { delete: function(e) {
3144
+ xe(We, y(y({}, St), { delete: function(e) {
3146
3145
  return new We(e, { addons: [] }).delete();
3147
3146
  }, exists: function(e) {
3148
3147
  return new We(e, { addons: [] }).open().then(function(t) {
@@ -3156,7 +3155,7 @@ var Rr = { exports: {} };
3156
3155
  return r.map(function(i) {
3157
3156
  return i.name;
3158
3157
  }).filter(function(i) {
3159
- return i !== Rt;
3158
+ return i !== Ct;
3160
3159
  });
3161
3160
  }) : En(n, t).toCollection().primaryKeys()).then(e);
3162
3161
  } catch {
@@ -3193,11 +3192,11 @@ var Rr = { exports: {} };
3193
3192
  return pe;
3194
3193
  }, set: function(e) {
3195
3194
  qn(e);
3196
- } }, derive: Ye, extend: Z, props: xe, override: Yn, Events: dt, on: Te, liveQuery: Dr, extendObservabilitySet: zt, getByKeyPath: ve, setByKeyPath: de, delByKeyPath: function(e, t) {
3195
+ } }, derive: $e, extend: Z, props: xe, override: Yn, Events: dt, on: Te, liveQuery: Dr, extendObservabilitySet: Wt, getByKeyPath: ve, setByKeyPath: de, delByKeyPath: function(e, t) {
3197
3196
  typeof t == "string" ? de(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
3198
3197
  de(e, n, void 0);
3199
3198
  });
3200
- }, shallowClone: Qn, deepClone: Ae, getObjectDiff: Tn, cmp: $, asap: Hn, minKey: -1 / 0, addons: [], connections: qe, errnames: en, dependencies: Qt, cache: Ue, semVer: ge, version: ge.split(".").map(function(e) {
3199
+ }, shallowClone: Qn, deepClone: Ae, getObjectDiff: Tn, cmp: $, asap: Hn, minKey: -1 / 0, addons: [], connections: Ze, errnames: en, dependencies: Ht, cache: Ue, semVer: ge, version: ge.split(".").map(function(e) {
3201
3200
  return parseInt(e);
3202
3201
  }).reduce(function(e, t, n) {
3203
3202
  return e + t / Math.pow(10, 2 * n);
@@ -3206,38 +3205,39 @@ var Rr = { exports: {} };
3206
3205
  }), addEventListener(yn, function(e) {
3207
3206
  e = e.detail, je || Bn(e);
3208
3207
  }));
3209
- var nt, je = !1, Pr = function() {
3208
+ var tt, je = !1, Pr = function() {
3210
3209
  };
3211
3210
  return typeof BroadcastChannel < "u" && ((Pr = function() {
3212
- (nt = new BroadcastChannel(yn)).onmessage = function(e) {
3211
+ (tt = new BroadcastChannel(yn)).onmessage = function(e) {
3213
3212
  return e.data && Bn(e.data);
3214
3213
  };
3215
- })(), typeof nt.unref == "function" && nt.unref(), Te(pt, function(e) {
3216
- je || nt.postMessage(e);
3214
+ })(), typeof tt.unref == "function" && tt.unref(), Te(pt, function(e) {
3215
+ je || tt.postMessage(e);
3217
3216
  })), typeof addEventListener < "u" && (addEventListener("pagehide", function(e) {
3218
3217
  if (!Se.disableBfCache && e.persisted) {
3219
- pe && console.debug("Dexie: handling persisted pagehide"), nt != null && nt.close();
3220
- for (var t = 0, n = qe; t < n.length; t++)
3218
+ pe && console.debug("Dexie: handling persisted pagehide"), tt != null && tt.close();
3219
+ for (var t = 0, n = Ze; t < n.length; t++)
3221
3220
  n[t].close({ disableAutoOpen: !1 });
3222
3221
  }
3223
3222
  }), addEventListener("pageshow", function(e) {
3224
3223
  !Se.disableBfCache && e.persisted && (pe && console.debug("Dexie: handling persisted pageshow"), Pr(), Bn({ all: new oe(-1 / 0, [[]]) }));
3225
3224
  })), T.rejectionMapper = function(e, t) {
3226
- return !e || e instanceof Qe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Zn[e.name] ? e : (t = new Zn[e.name](t || e.message, e), "stack" in e && ke(t, "stack", { get: function() {
3225
+ return !e || e instanceof He || e instanceof TypeError || e instanceof SyntaxError || !e.name || !Zn[e.name] ? e : (t = new Zn[e.name](t || e.message, e), "stack" in e && ke(t, "stack", { get: function() {
3227
3226
  return this.inner.stack;
3228
3227
  } }), t);
3229
- }, qn(pe), y(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: Dr, Entity: sr, cmp: $, default: Se, RangeSet: oe, mergeRanges: bt, rangesOverlap: Wt }), { default: Se }), Se;
3228
+ }, qn(pe), y(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: Dr, Entity: sr, cmp: $, default: Se, RangeSet: oe, mergeRanges: bt, rangesOverlap: Ut }), { default: Se }), Se;
3230
3229
  });
3231
3230
  })(Rr);
3232
- var Ii = Rr.exports;
3233
- const Un = /* @__PURE__ */ Pi(Ii), Cr = Symbol.for("Dexie"), Wn = globalThis[Cr] || (globalThis[Cr] = Un);
3231
+ var Di = Rr.exports;
3232
+ const Un = /* @__PURE__ */ Ai(Di), Cr = Symbol.for("Dexie"), Wn = globalThis[Cr] || (globalThis[Cr] = Un);
3234
3233
  if (Un.semVer !== Wn.semVer)
3235
3234
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Un.semVer} and ${Wn.semVer}`);
3235
+ var K = /* @__PURE__ */ ((v) => (v.MESSAGES = "messages", v.CLOUD = "cloud", v.SERIES = "series", v.TOPICS = "topics", v.WIDGET = "widget", v.WIDGETS = "widgets", v))(K || {}), x = /* @__PURE__ */ ((v) => (v.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", v.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", v.BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", v.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", v.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", v.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", v.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", v.MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;", v.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", v.NONE = "color:transparent;background-color:transparent;", v.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", v.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", v.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", v.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", v.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", v.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", v.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", v))(x || {}), ue = /* @__PURE__ */ ((v) => (v.ADD_SLIDE = "addSlide", v.APP_READY = "appReady", v.API_UPDATE = "apiUpdate", v.APPROVE_MESSAGE = "approveMessage", v.CHANNEL = "channel", v.ERROR = "error", v.GOTO_SLIDE = "gotoSlide", v.HIDE_MESSAGE = "hideMessage", v.NEXT_SLIDE = "nextSlide", v.PAUSE_PRESENTATION = "pausePresentation", v.PRESENTATION_READY = "presentationReady", v.PREV_SLIDE = "prevSlide", v.RELOAD_PRESENTATION = "reloadPresentation", v.SHOW_MODAL = "showModal", v.STAR_MESSAGE = "starMessage", v.SLIDE_DID_LOAD = "slideDidLoad", v.SLIDE_GOTO = "slideGoto", v.SLIDE_READY = "slideReady", v.SLIDE_TRANSITIONER = "slideTransitioner", v.START_TRANSITIONER = "startTransitioner", v.STORAGE_INIT = "stroageInit", v.SUBSCRIBE = "subscribe", v.UPDATE = "update", v.VERSION = "version", v.WIDGET_UPDATE = "widgetUpdate", v))(ue || {}), Xt = /* @__PURE__ */ ((v) => (v.APPROVED = "approved", v.BEFORE = "before", v.DELAYED = "delayed", v.NONE = "none", v.REALTIME = "realtime", v))(Xt || {}), he = /* @__PURE__ */ ((v) => (v.KEYVAL = "keyval", v.LOCAL = "local", v.SESSION = "session", v.DEXIE = "dexie", v.WINDOW = "window", v))(he || {});
3236
3236
  function X(v) {
3237
3237
  let o = `${v.type}.${v.topics}`;
3238
3238
  return v.order && (o += `.${v.order}`), v.period && (o += `.${v.period}`), o;
3239
3239
  }
3240
- function $e(v) {
3240
+ function nt(v) {
3241
3241
  var o;
3242
3242
  if (v.widget === void 0) {
3243
3243
  const l = (o = v.topics) == null ? void 0 : o.split("-");
@@ -3245,17 +3245,17 @@ function $e(v) {
3245
3245
  }
3246
3246
  return v.topics === void 0 && (v.topics = `${v.dashboard}-${v.widget}`), v;
3247
3247
  }
3248
- function wt(v, o) {
3248
+ function vt(v, o) {
3249
3249
  var N;
3250
3250
  let l, y, I, j, M;
3251
3251
  switch (v.moderation) {
3252
- case vt.BEFORE:
3252
+ case Xt.BEFORE:
3253
3253
  l = /* @__PURE__ */ new Date(), y = (N = v.beforeTime) == null ? void 0 : N.split(":"), I = Number.parseInt(y ? y[0] : "00"), j = Number.parseInt(y ? y[1] : "00"), M = Number.parseInt(y ? y[2] : "00"), o.before = l.setHours(I, j, M, 0) / 1e3, o.period || (o.period = l.getDay() === 1 ? 72 : 24);
3254
3254
  break;
3255
- case vt.DELAYED:
3255
+ case Xt.DELAYED:
3256
3256
  v.delay && v.delay > 0 && (o.delay = `${v.delay}`);
3257
3257
  break;
3258
- case vt.APPROVED:
3258
+ case Xt.APPROVED:
3259
3259
  o.approved = "1";
3260
3260
  break;
3261
3261
  default:
@@ -3424,9 +3424,9 @@ class Tr {
3424
3424
  * @param query IQuery
3425
3425
  * @returns null
3426
3426
  */
3427
- P(this, "subscribe", (o) => (o = $e(o), this.subscribers.filter(
3427
+ P(this, "subscribe", (o) => (o = nt(o), this.subscribers.filter(
3428
3428
  (y) => y.widget === o.widget
3429
- ).length > 0 || (o.type === K.MESSAGES && (o = wt(this.options, o)), console.debug(
3429
+ ).length > 0 || (o.type === K.MESSAGES && (o = vt(this.options, o)), console.debug(
3430
3430
  "%cstorage%c %csubscribe",
3431
3431
  x.STORAGE,
3432
3432
  x.NONE,
@@ -3458,7 +3458,7 @@ function zn(v) {
3458
3458
  v.oncomplete = v.onsuccess = () => o(v.result), v.onabort = v.onerror = () => l(v.error);
3459
3459
  });
3460
3460
  }
3461
- function Ci(v, o) {
3461
+ function Pi(v, o) {
3462
3462
  const l = indexedDB.open(v);
3463
3463
  l.onupgradeneeded = () => l.result.createObjectStore(o);
3464
3464
  const y = zn(l);
@@ -3466,12 +3466,12 @@ function Ci(v, o) {
3466
3466
  }
3467
3467
  let Gn;
3468
3468
  function jr() {
3469
- return Gn || (Gn = Ci("keyval-store", "keyval")), Gn;
3469
+ return Gn || (Gn = Pi("keyval-store", "keyval")), Gn;
3470
3470
  }
3471
3471
  function Ln(v, o = jr()) {
3472
3472
  return o("readonly", (l) => zn(l.get(v)));
3473
3473
  }
3474
- function Xt(v, o, l = jr()) {
3474
+ function Vt(v, o, l = jr()) {
3475
3475
  return l("readwrite", (y) => (y.put(o, v), zn(y.transaction)));
3476
3476
  }
3477
3477
  class Mr {
@@ -3500,7 +3500,7 @@ class Mr {
3500
3500
  if (!l.success)
3501
3501
  return 400;
3502
3502
  const y = X(o);
3503
- return delete l.success, delete l.message, await Xt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.CLOUD, o, I), 400));
3503
+ return delete l.success, delete l.message, await Vt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.CLOUD, o, I), 400));
3504
3504
  });
3505
3505
  /**
3506
3506
  * Update Series
@@ -3512,7 +3512,7 @@ class Mr {
3512
3512
  if (!l.success)
3513
3513
  return 400;
3514
3514
  const y = X(o);
3515
- return delete l.success, delete l.message, await Xt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.SERIES, o, I), 400));
3515
+ return delete l.success, delete l.message, await Vt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.SERIES, o, I), 400));
3516
3516
  });
3517
3517
  /**
3518
3518
  * Update Messages
@@ -3524,7 +3524,7 @@ class Mr {
3524
3524
  if (!l.success)
3525
3525
  return 400;
3526
3526
  const y = X(o);
3527
- return delete l.success, delete l.message, await Xt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.MESSAGES, o, I), 400));
3527
+ return delete l.success, delete l.message, await Vt(y, l).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.MESSAGES, o, I), 400));
3528
3528
  });
3529
3529
  P(this, "cleanMessages", async (o) => (console.log("cleanMessages not implemented for ", this.options.storage), await new Promise((l) => l())));
3530
3530
  /**
@@ -3538,14 +3538,14 @@ class Mr {
3538
3538
  dashboard_id: o.dashboard,
3539
3539
  type: o.type
3540
3540
  };
3541
- return await Xt(l, y).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.WIDGET, o, I), 400));
3541
+ return await Vt(l, y).then(() => 201).catch((I) => (console.error("%cstorage", x.STORAGE, K.WIDGET, o, I), 400));
3542
3542
  });
3543
3543
  /**
3544
3544
  * Add component subscriber
3545
3545
  * @param query IQuery
3546
3546
  * @returns null
3547
3547
  */
3548
- P(this, "subscribe", (o) => (o = $e(o), o.type === K.MESSAGES && (o = wt(this.options, o)), this.subscribers.filter(
3548
+ P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3549
3549
  (y) => y.widget === o.widget
3550
3550
  ).length > 0 || (console.debug(
3551
3551
  "%cstorage%c %csubscribe",
@@ -3649,7 +3649,7 @@ class Kr {
3649
3649
  * @param query IQuery
3650
3650
  * @returns null
3651
3651
  */
3652
- P(this, "subscribe", (o) => (o = $e(o), o.type === K.MESSAGES && (o = wt(this.options, o)), this.subscribers.filter(
3652
+ P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3653
3653
  (y) => y.widget === o.widget
3654
3654
  ).length || (console.debug(
3655
3655
  "%cstorage%c %csubscribe",
@@ -3758,7 +3758,7 @@ class Br {
3758
3758
  * @param query IQuery
3759
3759
  * @returns null
3760
3760
  */
3761
- P(this, "subscribe", (o) => (o = $e(o), o.type === K.MESSAGES && (o = wt(this.options, o)), this.subscribers.filter(
3761
+ P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3762
3762
  (y) => y.widget === o.widget
3763
3763
  ).length || (console.debug(
3764
3764
  "%cstorage%c %csubscribe",
@@ -3867,7 +3867,7 @@ class Nr {
3867
3867
  * @param query IQuery
3868
3868
  * @returns null
3869
3869
  */
3870
- P(this, "subscribe", (o) => (o = $e(o), o.type === K.MESSAGES && (o = wt(this.options, o)), this.subscribers.filter(
3870
+ P(this, "subscribe", (o) => (o = nt(o), o.type === K.MESSAGES && (o = vt(this.options, o)), this.subscribers.filter(
3871
3871
  (y) => y.widget === o.widget
3872
3872
  ).length || (console.debug(
3873
3873
  "%cstorage%c %csubscribe",
@@ -3885,7 +3885,7 @@ class Nr {
3885
3885
  this.options = o, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
3886
3886
  }
3887
3887
  }
3888
- function Gr(v) {
3888
+ function Ii(v) {
3889
3889
  const o = {};
3890
3890
  for (let l = 0; l < v.length; l++) {
3891
3891
  const y = v.item(l);
@@ -3893,7 +3893,7 @@ function Gr(v) {
3893
3893
  }
3894
3894
  return o;
3895
3895
  }
3896
- function Ri(v) {
3896
+ function Ki(v) {
3897
3897
  const o = {};
3898
3898
  for (let l = 0; l < v.length; l++) {
3899
3899
  const y = v[l];
@@ -3901,13 +3901,13 @@ function Ri(v) {
3901
3901
  }
3902
3902
  return o;
3903
3903
  }
3904
- function Ti(v) {
3904
+ function Bi(v) {
3905
3905
  return v.replace(/(?:^\w|[A-Z]|\b\w)/g, (o, l) => l === 0 ? o.toLowerCase() : o.toUpperCase()).replace(/\s+/g, "");
3906
3906
  }
3907
- function ji(v) {
3907
+ function Ni(v) {
3908
3908
  return v.toLowerCase().split("-").reduce((o, l) => o + (l.charAt(0).toUpperCase() + l.slice(1)));
3909
3909
  }
3910
- function Mi(v, o) {
3910
+ function Ci(v, o) {
3911
3911
  for (; v.length < o; )
3912
3912
  v = `0${v}`;
3913
3913
  return v;
@@ -3920,14 +3920,14 @@ function Oe(v, o) {
3920
3920
  y = o.charCodeAt(l), v = (v << 5) - v + y, v |= 0;
3921
3921
  return v < 0 ? v * -2 : v;
3922
3922
  }
3923
- function Ki(v, o, l) {
3923
+ function Ri(v, o, l) {
3924
3924
  return Object.keys(o).sort().reduce(y, v);
3925
3925
  function y(I, j) {
3926
- return Lr(I, o[j], j, l);
3926
+ return Gr(I, o[j], j, l);
3927
3927
  }
3928
3928
  }
3929
- function Lr(v, o, l, y) {
3930
- const I = Oe(Oe(Oe(v, l), Bi(o)), typeof o);
3929
+ function Gr(v, o, l, y) {
3930
+ const I = Oe(Oe(Oe(v, l), Ti(o)), typeof o);
3931
3931
  if (o === null)
3932
3932
  return Oe(I, "null");
3933
3933
  if (o === void 0)
@@ -3936,7 +3936,7 @@ function Lr(v, o, l, y) {
3936
3936
  if (y.includes(o))
3937
3937
  return Oe(I, `[Circular]${l}`);
3938
3938
  y.push(o);
3939
- const j = Ki(I, o, y);
3939
+ const j = Ri(I, o, y);
3940
3940
  if (!("valueOf" in o) || typeof o.valueOf != "function")
3941
3941
  return j;
3942
3942
  try {
@@ -3947,13 +3947,13 @@ function Lr(v, o, l, y) {
3947
3947
  }
3948
3948
  return Oe(I, o.toString());
3949
3949
  }
3950
- function Bi(v) {
3950
+ function Ti(v) {
3951
3951
  return Object.prototype.toString.call(v);
3952
3952
  }
3953
3953
  function Fn(v) {
3954
- return Mi(Lr(0, v, "", []).toString(16), 8);
3954
+ return Ci(Gr(0, v, "", []).toString(16), 8);
3955
3955
  }
3956
- class Ni {
3956
+ class Gi {
3957
3957
  constructor(o) {
3958
3958
  P(this, "sm");
3959
3959
  P(this, "api");
@@ -4037,7 +4037,7 @@ class Ni {
4037
4037
  x.BROADCAST,
4038
4038
  N.query.slide,
4039
4039
  N.data.title ?? N.query.widget
4040
- ), this.bc.postMessage({ event: se.WIDGET_UPDATE, data: N });
4040
+ ), this.bc.postMessage({ event: ue.WIDGET_UPDATE, data: N });
4041
4041
  break;
4042
4042
  case 400:
4043
4043
  console.warn(
@@ -4057,7 +4057,7 @@ class Ni {
4057
4057
  x.API,
4058
4058
  x.NONE,
4059
4059
  x.STORAGE,
4060
- se.ERROR
4060
+ ue.ERROR
4061
4061
  ), 400;
4062
4062
  })
4063
4063
  );
@@ -4068,16 +4068,16 @@ class Ni {
4068
4068
  P(this, "actions", async (o) => {
4069
4069
  var l;
4070
4070
  switch (o.data.event) {
4071
- case se.SUBSCRIBE:
4071
+ case ue.SUBSCRIBE:
4072
4072
  (l = this.sm) == null || l.subscribe(o.data.data);
4073
4073
  break;
4074
- case se.UPDATE:
4074
+ case ue.UPDATE:
4075
4075
  console.debug(
4076
4076
  "%capi%c %cstorage",
4077
4077
  x.API,
4078
4078
  x.NONE,
4079
4079
  x.STORAGE,
4080
- se.UPDATE,
4080
+ ue.UPDATE,
4081
4081
  o.data
4082
4082
  ), await this.update();
4083
4083
  break;
@@ -4101,8 +4101,8 @@ class Ni {
4101
4101
  x.NONE,
4102
4102
  x.SLIDE,
4103
4103
  o.slide,
4104
- se.VERSION,
4105
- Ai
4104
+ ue.VERSION,
4105
+ xi
4106
4106
  ), this.options = o, this.sm = null;
4107
4107
  const l = (o == null ? void 0 : o.slide) || o.app;
4108
4108
  switch (this.bc = new BroadcastChannel(l), console.info(
@@ -4110,11 +4110,11 @@ class Ni {
4110
4110
  x.API,
4111
4111
  x.NONE,
4112
4112
  x.BROADCAST,
4113
- se.CHANNEL,
4113
+ ue.CHANNEL,
4114
4114
  l
4115
4115
  ), this.bc.onmessage = (y) => {
4116
4116
  this.actions(y);
4117
- }, this.bc.postMessage({ event: se.STORAGE_INIT, data: {} }), this.api = new Di(o), o.storage) {
4117
+ }, this.bc.postMessage({ event: ue.STORAGE_INIT, data: {} }), this.api = new ki(o), o.storage) {
4118
4118
  case he.DEXIE:
4119
4119
  this.sm = new Tr(o);
4120
4120
  break;
@@ -4133,7 +4133,7 @@ class Ni {
4133
4133
  }
4134
4134
  }
4135
4135
  }
4136
- class Fr {
4136
+ class ji {
4137
4137
  constructor(o) {
4138
4138
  P(this, "sm");
4139
4139
  /**
@@ -4218,7 +4218,7 @@ class Fr {
4218
4218
  }
4219
4219
  }
4220
4220
  }
4221
- class Gi {
4221
+ class Li {
4222
4222
  /**
4223
4223
  * Main container for managing widgets and data updates
4224
4224
  *
@@ -4313,7 +4313,7 @@ class Gi {
4313
4313
  * @param modal IModal
4314
4314
  */
4315
4315
  P(this, "showModal", (o) => {
4316
- const l = Gr(this.element.attributes);
4316
+ const l = Ii(this.element.attributes);
4317
4317
  if (Object.prototype.hasOwnProperty.call(l, "data-topics")) {
4318
4318
  const j = l["data-topics"].split("-");
4319
4319
  j.length > 1 ? (l["data-widget"] = j[1], l["data-dashboard"] = j[0]) : (l["data-widget"] = j[0], l["data-dashboard"] = this.query.slide);
@@ -4322,12 +4322,12 @@ class Gi {
4322
4322
  console.debug(
4323
4323
  "%cwidget",
4324
4324
  x.WIDGET,
4325
- se.SHOW_MODAL,
4325
+ ue.SHOW_MODAL,
4326
4326
  o.showComponent,
4327
4327
  // @ts-expect-error cannot get string type out of IFilteredAttributes props
4328
4328
  l["data-widget"]
4329
4329
  );
4330
- const I = new CustomEvent(se.SHOW_MODAL, {
4330
+ const I = new CustomEvent(ue.SHOW_MODAL, {
4331
4331
  detail: {
4332
4332
  component: o.showComponent,
4333
4333
  props: y
@@ -4341,9 +4341,9 @@ class Gi {
4341
4341
  var M;
4342
4342
  this.element = o, this.listeners = l, y = typeof y < "u" ? y : "buzzcasting-slide";
4343
4343
  let I;
4344
- I = { ...o.dataset }, delete I.hmr, I.slide = ((M = o.closest(y.toUpperCase())) == null ? void 0 : M.id) ?? `${y} not found`, I = $e(I), this.query = I;
4344
+ I = { ...o.dataset }, delete I.hmr, I.slide = ((M = o.closest(y.toUpperCase())) == null ? void 0 : M.id) ?? `${y} not found`, I = nt(I), this.query = I;
4345
4345
  const j = window.BuzzCasting.getOptions();
4346
- this.storageReader = new Fr(j), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4346
+ this.storageReader = new ji(j), this.broadcastChannel = new BroadcastChannel(I.slide), this.startListener();
4347
4347
  }
4348
4348
  addListener(o) {
4349
4349
  this.listeners.push(o);
@@ -4356,12 +4356,12 @@ class Gi {
4356
4356
  this.broadcastChannel.onmessage = async (l) => {
4357
4357
  const y = l.data.data;
4358
4358
  switch (l.data.event) {
4359
- case se.WIDGET_UPDATE:
4359
+ case ue.WIDGET_UPDATE:
4360
4360
  y.query.slide === o.slide && y.query.widget === o.widget && this.listeners.forEach((I) => {
4361
4361
  I(l.data.data);
4362
4362
  });
4363
4363
  break;
4364
- case se.SLIDE_READY:
4364
+ case ue.SLIDE_READY:
4365
4365
  this.subscribe();
4366
4366
  break;
4367
4367
  }
@@ -4380,7 +4380,7 @@ class Gi {
4380
4380
  this.query.slide,
4381
4381
  this.query.widget
4382
4382
  ), this.broadcastChannel.postMessage({
4383
- event: se.SUBSCRIBE,
4383
+ event: ue.SUBSCRIBE,
4384
4384
  data: this.query
4385
4385
  });
4386
4386
  }
@@ -4388,21 +4388,18 @@ class Gi {
4388
4388
  this.broadcastChannel.close();
4389
4389
  }
4390
4390
  }
4391
- const Fi = {
4392
- BuzzcastingStorageManager: Ni,
4393
- BuzzcastingStorageReader: Fr,
4394
- Widget: Gi,
4395
- attrs: Gr,
4396
- filterAttributes: Ri,
4397
- widgetParams: $e,
4398
- camelCase: ji,
4399
- camelize: Ti,
4400
- API: K,
4401
- CSS: x,
4402
- EVENTS: se,
4403
- MODERATION: vt,
4404
- STORAGE: he
4405
- };
4406
4391
  export {
4407
- Fi as default
4392
+ K as API,
4393
+ Gi as BuzzcastingStorageManager,
4394
+ ji as BuzzcastingStorageReader,
4395
+ x as CSS,
4396
+ ue as EVENTS,
4397
+ Xt as MODERATION,
4398
+ he as STORAGE,
4399
+ Li as Widget,
4400
+ Ii as attrs,
4401
+ Ni as camelCase,
4402
+ Bi as camelize,
4403
+ Ki as filterAttributes,
4404
+ nt as widgetParams
4408
4405
  };