buzzcasting-storage 3.15.3 → 3.15.5

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,4 +1,4 @@
1
- var S = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(S || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), X = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.COMPONENT_UPDATE = "componentUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f))(X || {}), qt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(qt || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
1
+ var S = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(S || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), X = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(X || {}), qt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(qt || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
2
2
  function Pa(f) {
3
3
  const t = {};
4
4
  for (let i = 0; i < f.length; i++) {
@@ -131,7 +131,7 @@ function St(f, t) {
131
131
  }
132
132
  return t;
133
133
  }
134
- const xa = "3.15.2";
134
+ const xa = "3.15.4";
135
135
  class ka {
136
136
  options;
137
137
  url;
@@ -268,7 +268,7 @@ class ka {
268
268
  }
269
269
  /**
270
270
  * Store slide definition
271
- * ex: window.BuzzCasting.storage.storeSlide({id:'1',type:'slide', data: {json: {a:'b'},html:'<div/>',css:'abc'}, update: true}) // update: stockage sur le serveur
271
+ * ex: window.__bc.storage.storeSlide({id:'1',type:'slide', data: {json: {a:'b'},html:'<div/>',css:'abc'}, update: true}) // update: stockage sur le serveur
272
272
  *
273
273
  * @param query
274
274
  * @returns
@@ -319,7 +319,7 @@ class ka {
319
319
  }
320
320
  /**
321
321
  * Store slide definition
322
- * ex: window.BuzzCasting.storage.storeSlide({id:'1',type:'slide', data: {json: {a:'b'},html:'<div/>',css:'abc'}, update: true}) // update: stockage sur le serveur
322
+ * ex: window.__bc.storage.storeSlide({id:'1',type:'slide', data: {json: {a:'b'},html:'<div/>',css:'abc'}, update: true}) // update: stockage sur le serveur
323
323
  *
324
324
  * @param query
325
325
  * @returns
@@ -505,11 +505,11 @@ function Ma() {
505
505
  Ae(e, n, r[n]);
506
506
  });
507
507
  }
508
- var Hr = Object.defineProperty;
508
+ var Vr = Object.defineProperty;
509
509
  function Ae(e, r, n, a) {
510
- Hr(e, r, te(n && re(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
510
+ Vr(e, r, te(n && re(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, a));
511
511
  }
512
- function Ve(e) {
512
+ function ze(e) {
513
513
  return { from: function(r) {
514
514
  return e.prototype = Object.create(r.prototype), Ae(e.prototype, "constructor", e), { extend: ge.bind(null, e.prototype) };
515
515
  } };
@@ -518,7 +518,7 @@ function Ma() {
518
518
  function _t(e, r, n) {
519
519
  return Fn.call(e, r, n);
520
520
  }
521
- function Vr(e, r) {
521
+ function zr(e, r) {
522
522
  return r(e);
523
523
  }
524
524
  function st(e) {
@@ -557,9 +557,9 @@ function Ma() {
557
557
  for (r in e) re(e, r) && (n[r] = e[r]);
558
558
  return n;
559
559
  }
560
- var zn = [].concat;
560
+ var Hn = [].concat;
561
561
  function Xr(e) {
562
- return zn.apply([], e);
562
+ return Hn.apply([], e);
563
563
  }
564
564
  var Me = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Xr([8, 16, 32, 64].map(function(e) {
565
565
  return ["Int", "Uint", "Float"].map(function(r) {
@@ -586,11 +586,11 @@ function Ma() {
586
586
  return a;
587
587
  }(e), ot = null, e;
588
588
  }
589
- var Hn = {}.toString;
589
+ var Vn = {}.toString;
590
590
  function rr(e) {
591
- return Hn.call(e).slice(8, -1);
591
+ return Vn.call(e).slice(8, -1);
592
592
  }
593
- var nr = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", Vn = typeof nr == "symbol" ? function(e) {
593
+ var nr = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", zn = typeof nr == "symbol" ? function(e) {
594
594
  var r;
595
595
  return e != null && (r = e[nr]) && r.apply(e);
596
596
  } : function() {
@@ -605,7 +605,7 @@ function Ma() {
605
605
  if (arguments.length === 1) {
606
606
  if (M(e)) return e.slice();
607
607
  if (this === Ye && typeof e == "string") return [e];
608
- if (s = Vn(e)) {
608
+ if (s = zn(e)) {
609
609
  for (n = []; !(a = s.next()).done; ) n.push(a.value);
610
610
  return n;
611
611
  }
@@ -641,24 +641,24 @@ function Ma() {
641
641
  return r[n];
642
642
  }), this.failuresByPos = r, this.message = Zr(e, this.failures);
643
643
  }
644
- Ve(Qe).from(Error).extend({ toString: function() {
644
+ ze(Qe).from(Error).extend({ toString: function() {
645
645
  return this.name + ": " + this.message;
646
- } }), Ve(At).from(Qe), Ve(Xe).from(Qe);
646
+ } }), ze(At).from(Qe), ze(Xe).from(Qe);
647
647
  var sr = fe.reduce(function(e, r) {
648
648
  return e[r] = r + "Error", e;
649
- }, {}), Qn = Qe, L = fe.reduce(function(e, r) {
649
+ }, {}), Qn = Qe, B = fe.reduce(function(e, r) {
650
650
  var n = r + "Error";
651
651
  function a(s, c) {
652
652
  this.name = n, s ? typeof s == "string" ? (this.message = "".concat(s).concat(c ? `
653
653
  ` + c : ""), this.inner = c || null) : typeof s == "object" && (this.message = "".concat(s.name, " ").concat(s.message), this.inner = s) : (this.message = Yn[r] || n, this.inner = null);
654
654
  }
655
- return Ve(a).from(Qn), e[r] = a, e;
655
+ return ze(a).from(Qn), e[r] = a, e;
656
656
  }, {});
657
- L.Syntax = SyntaxError, L.Type = TypeError, L.Range = RangeError;
657
+ B.Syntax = SyntaxError, B.Type = TypeError, B.Range = RangeError;
658
658
  var qr = ut.reduce(function(e, r) {
659
- return e[r + "Error"] = L[r], e;
659
+ return e[r + "Error"] = B[r], e;
660
660
  }, {}), Pt = fe.reduce(function(e, r) {
661
- return ["Syntax", "Type", "Range"].indexOf(r) === -1 && (e[r + "Error"] = L[r]), e;
661
+ return ["Syntax", "Type", "Range"].indexOf(r) === -1 && (e[r + "Error"] = B[r]), e;
662
662
  }, {});
663
663
  function Q() {
664
664
  }
@@ -729,11 +729,11 @@ function Ma() {
729
729
  return [r, se(r), e];
730
730
  }(), ut = Me[0], fe = Me[1], Me = Me[2], fe = fe && fe.then, Ge = ut && ut.constructor, ir = !!Me, lt = function(e, r) {
731
731
  dt.push([e, r]), Nt && (queueMicrotask(ra), Nt = !1);
732
- }, cr = !0, Nt = !0, Ke = [], Dt = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, B = Pe, dt = [], Be = 0, It = [];
732
+ }, cr = !0, Nt = !0, Ke = [], Dt = [], ur = it, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Q, pgp: !1, env: {}, finalize: Q }, L = Pe, dt = [], Le = 0, It = [];
733
733
  function j(e) {
734
734
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
735
735
  this._listeners = [], this._lib = !1;
736
- var r = this._PSD = B;
736
+ var r = this._PSD = L;
737
737
  if (typeof e != "function") {
738
738
  if (e !== ct) throw new TypeError("Not a function");
739
739
  return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && dr(this, this._value));
@@ -755,9 +755,9 @@ function Ma() {
755
755
  }(this, e);
756
756
  }
757
757
  var lr = { get: function() {
758
- var e = B, r = kt;
758
+ var e = L, r = kt;
759
759
  function n(a, s) {
760
- var c = this, u = !e.global && (e !== B || r !== kt), d = u && !De(), p = new j(function(y, w) {
760
+ var c = this, u = !e.global && (e !== L || r !== kt), d = u && !De(), p = new j(function(y, w) {
761
761
  hr(c, new rn(sn(a, e, u, d), sn(s, e, u, d), y, w, e));
762
762
  });
763
763
  return this._consoleTask && (p._consoleTask = this._consoleTask), p;
@@ -782,15 +782,15 @@ function Ma() {
782
782
  e._listeners = [];
783
783
  for (var n = 0, a = r.length; n < a; ++n) hr(e, r[n]);
784
784
  var s = e._PSD;
785
- --s.ref || s.finalize(), Be === 0 && (++Be, lt(function() {
786
- --Be == 0 && fr();
785
+ --s.ref || s.finalize(), Le === 0 && (++Le, lt(function() {
786
+ --Le == 0 && fr();
787
787
  }, []));
788
788
  }
789
789
  function hr(e, r) {
790
790
  if (e._state !== null) {
791
791
  var n = e._state ? r.onFulfilled : r.onRejected;
792
792
  if (n === null) return (e._state ? r.resolve : r.reject)(e._value);
793
- ++r.psd.ref, ++Be, lt(ta, [n, e, r]);
793
+ ++r.psd.ref, ++Le, lt(ta, [n, e, r]);
794
794
  } else e._listeners.push(r);
795
795
  }
796
796
  function ta(e, r, n) {
@@ -804,11 +804,11 @@ function Ma() {
804
804
  } catch (c) {
805
805
  n.reject(c);
806
806
  } finally {
807
- --Be == 0 && fr(), --n.psd.ref || n.psd.finalize();
807
+ --Le == 0 && fr(), --n.psd.ref || n.psd.finalize();
808
808
  }
809
809
  }
810
810
  function ra() {
811
- Le(Pe, function() {
811
+ Be(Pe, function() {
812
812
  Je() && Ze();
813
813
  });
814
814
  }
@@ -837,9 +837,9 @@ function Ma() {
837
837
  return new j(ct, !1, e);
838
838
  }
839
839
  function Z(e, r) {
840
- var n = B;
840
+ var n = L;
841
841
  return function() {
842
- var a = Je(), s = B;
842
+ var a = Je(), s = L;
843
843
  try {
844
844
  return Ie(n, !0), e.apply(this, arguments);
845
845
  } catch (c) {
@@ -850,7 +850,7 @@ function Ma() {
850
850
  };
851
851
  }
852
852
  ge(j.prototype, { then: lr, _then: function(e, r) {
853
- hr(this, new rn(null, null, e, r, B));
853
+ hr(this, new rn(null, null, e, r, L));
854
854
  }, catch: function(e) {
855
855
  if (arguments.length === 1) return this.then(null, e);
856
856
  var r = e, n = arguments[1];
@@ -873,7 +873,7 @@ function Ma() {
873
873
  var n = this;
874
874
  return e < 1 / 0 ? new j(function(a, s) {
875
875
  var c = setTimeout(function() {
876
- return s(new L.Timeout(r));
876
+ return s(new B.Timeout(r));
877
877
  }, e);
878
878
  n.then(a, s).finally(clearTimeout.bind(null, c));
879
879
  }) : this;
@@ -900,12 +900,12 @@ function Ma() {
900
900
  });
901
901
  });
902
902
  }, PSD: { get: function() {
903
- return B;
903
+ return L;
904
904
  }, set: function(e) {
905
- return B = e;
905
+ return L = e;
906
906
  } }, totalEchoes: { get: function() {
907
907
  return kt;
908
- } }, newPSD: Ne, usePSD: Le, scheduler: { get: function() {
908
+ } }, newPSD: Ne, usePSD: Be, scheduler: { get: function() {
909
909
  return lt;
910
910
  }, set: function(e) {
911
911
  lt = e;
@@ -916,15 +916,15 @@ function Ma() {
916
916
  } }, follow: function(e, r) {
917
917
  return new j(function(n, a) {
918
918
  return Ne(function(s, c) {
919
- var u = B;
919
+ var u = L;
920
920
  u.unhandleds = [], u.onunhandled = c, u.finalize = je(function() {
921
921
  var d, p = this;
922
922
  d = function() {
923
923
  p.unhandleds.length === 0 ? s() : c(p.unhandleds[0]);
924
924
  }, It.push(function y() {
925
925
  d(), It.splice(It.indexOf(y), 1);
926
- }), ++Be, lt(function() {
927
- --Be == 0 && fr();
926
+ }), ++Le, lt(function() {
927
+ --Le == 0 && fr();
928
928
  }, []);
929
929
  }, u.finalize), e();
930
930
  }, r, n, a);
@@ -960,10 +960,10 @@ function Ma() {
960
960
  }), Ge.withResolvers && (j.withResolvers = Ge.withResolvers));
961
961
  var ne = { awaits: 0, echoes: 0, id: 0 }, na = 0, Rt = [], xt = 0, kt = 0, aa = 0;
962
962
  function Ne(e, r, n, a) {
963
- var s = B, c = Object.create(s);
963
+ var s = L, c = Object.create(s);
964
964
  return c.parent = s, c.ref = 0, c.global = !1, c.id = ++aa, Pe.env, c.env = ir ? { Promise: j, PromiseProp: { value: j, configurable: !0, writable: !0 }, all: j.all, race: j.race, allSettled: j.allSettled, any: j.any, resolve: j.resolve, reject: j.reject } : {}, r && te(c, r), ++s.ref, c.finalize = function() {
965
965
  --this.parent.ref || this.parent.finalize();
966
- }, a = Le(c, e, n, a), c.ref === 0 && c.finalize(), a;
966
+ }, a = Be(c, e, n, a), c.ref === 0 && c.finalize(), a;
967
967
  }
968
968
  function qe() {
969
969
  return ne.id || (ne.id = ++na), ++ne.awaits, ne.echoes += tn, ne.id;
@@ -983,17 +983,17 @@ function Ma() {
983
983
  Rt.pop(), Ie(e, !1);
984
984
  }
985
985
  function Ie(e, r) {
986
- var n, a = B;
987
- (r ? !ne.echoes || xt++ && e === B : !xt || --xt && e === B) || queueMicrotask(r ? function(s) {
988
- ++kt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), Rt.push(B), Ie(s, !0);
989
- }.bind(null, e) : sa), e !== B && (B = e, a === Pe && (Pe.env = an()), ir && (n = Pe.env.Promise, r = e.env, (a.global || e.global) && (Object.defineProperty(b, "Promise", r.PromiseProp), n.all = r.all, n.race = r.race, n.resolve = r.resolve, n.reject = r.reject, r.allSettled && (n.allSettled = r.allSettled), r.any && (n.any = r.any))));
986
+ var n, a = L;
987
+ (r ? !ne.echoes || xt++ && e === L : !xt || --xt && e === L) || queueMicrotask(r ? function(s) {
988
+ ++kt, ne.echoes && --ne.echoes != 0 || (ne.echoes = ne.awaits = ne.id = 0), Rt.push(L), Ie(s, !0);
989
+ }.bind(null, e) : sa), e !== L && (L = e, a === Pe && (Pe.env = an()), ir && (n = Pe.env.Promise, r = e.env, (a.global || e.global) && (Object.defineProperty(b, "Promise", r.PromiseProp), n.all = r.all, n.race = r.race, n.resolve = r.resolve, n.reject = r.reject, r.allSettled && (n.allSettled = r.allSettled), r.any && (n.any = r.any))));
990
990
  }
991
991
  function an() {
992
992
  var e = b.Promise;
993
993
  return ir ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(b, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
994
994
  }
995
- function Le(e, r, n, a, s) {
996
- var c = B;
995
+ function Be(e, r, n, a, s) {
996
+ var c = L;
997
997
  try {
998
998
  return Ie(e, !0), r(n, a, s);
999
999
  } finally {
@@ -1002,7 +1002,7 @@ function Ma() {
1002
1002
  }
1003
1003
  function sn(e, r, n, a) {
1004
1004
  return typeof e != "function" ? e : function() {
1005
- var s = B;
1005
+ var s = L;
1006
1006
  n && qe(), Ie(r, !0);
1007
1007
  try {
1008
1008
  return e.apply(this, arguments);
@@ -1030,9 +1030,9 @@ function Ma() {
1030
1030
  };
1031
1031
  }
1032
1032
  function un() {
1033
- throw L.Type();
1033
+ throw B.Type();
1034
1034
  }
1035
- function H(e, r) {
1035
+ function V(e, r) {
1036
1036
  try {
1037
1037
  var n = ln(e), a = ln(r);
1038
1038
  if (n !== a) return n === "Array" ? 1 : a === "Array" ? -1 : n === "binary" ? 1 : a === "binary" ? -1 : n === "string" ? 1 : a === "string" ? -1 : n === "Date" ? 1 : a !== "Date" ? NaN : -1;
@@ -1049,7 +1049,7 @@ function Ma() {
1049
1049
  case "Array":
1050
1050
  return function(s, c) {
1051
1051
  for (var u = s.length, d = c.length, p = u < d ? u : d, y = 0; y < p; ++y) {
1052
- var w = H(s[y], c[y]);
1052
+ var w = V(s[y], c[y]);
1053
1053
  if (w !== 0) return w;
1054
1054
  }
1055
1055
  return u === d ? 0 : u < d ? -1 : 1;
@@ -1067,17 +1067,17 @@ function Ma() {
1067
1067
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
1068
1068
  }
1069
1069
  var hn = (J.prototype._trans = function(e, r, n) {
1070
- var a = this._tx || B.trans, s = this.name, c = me && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1070
+ var a = this._tx || L.trans, s = this.name, c = me && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1071
1071
  function u(y, w, h) {
1072
- if (!h.schema[s]) throw new L.NotFound("Table " + s + " not part of transaction");
1072
+ if (!h.schema[s]) throw new B.NotFound("Table " + s + " not part of transaction");
1073
1073
  return r(h.idbtrans, h);
1074
1074
  }
1075
1075
  var d = Je();
1076
1076
  try {
1077
- var p = a && a.db._novip === this.db._novip ? a === B.trans ? a._promise(e, u, n) : Ne(function() {
1077
+ var p = a && a.db._novip === this.db._novip ? a === L.trans ? a._promise(e, u, n) : Ne(function() {
1078
1078
  return a._promise(e, u, n);
1079
- }, { trans: a, transless: B.transless || B }) : function y(w, h, _, m) {
1080
- if (w.idbdb && (w._state.openComplete || B.letThrough || w._vip)) {
1079
+ }, { trans: a, transless: L.transless || L }) : function y(w, h, _, m) {
1080
+ if (w.idbdb && (w._state.openComplete || L.letThrough || w._vip)) {
1081
1081
  var E = w._createTransaction(h, _, w._dbSchema);
1082
1082
  try {
1083
1083
  E.create(), w._state.PR1398_maxLoop = 3;
@@ -1088,7 +1088,7 @@ function Ma() {
1088
1088
  }
1089
1089
  return E._promise(h, function(O, v) {
1090
1090
  return Ne(function() {
1091
- return B.trans = E, m(O, v, E);
1091
+ return L.trans = E, m(O, v, E);
1092
1092
  });
1093
1093
  }).then(function(O) {
1094
1094
  if (h === "readwrite") try {
@@ -1100,9 +1100,9 @@ function Ma() {
1100
1100
  });
1101
1101
  });
1102
1102
  }
1103
- if (w._state.openComplete) return q(new L.DatabaseClosed(w._state.dbOpenError));
1103
+ if (w._state.openComplete) return q(new B.DatabaseClosed(w._state.dbOpenError));
1104
1104
  if (!w._state.isBeingOpened) {
1105
- if (!w._state.autoOpen) return q(new L.DatabaseClosed());
1105
+ if (!w._state.autoOpen) return q(new B.DatabaseClosed());
1106
1106
  w.open().catch(Q);
1107
1107
  }
1108
1108
  return w._state.dbReadyPromise.then(function() {
@@ -1117,7 +1117,7 @@ function Ma() {
1117
1117
  }
1118
1118
  }, J.prototype.get = function(e, r) {
1119
1119
  var n = this;
1120
- return e && e.constructor === Object ? this.where(e).first(r) : e == null ? q(new L.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(a) {
1120
+ return e && e.constructor === Object ? this.where(e).first(r) : e == null ? q(new B.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(a) {
1121
1121
  return n.core.get({ trans: a, key: e }).then(function(s) {
1122
1122
  return n.hook.reading.fire(s);
1123
1123
  });
@@ -1147,7 +1147,7 @@ function Ma() {
1147
1147
  !n && me && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(r.join("+"), "]"));
1148
1148
  var a = this.schema.idxByName;
1149
1149
  function s(d, p) {
1150
- return H(d, p) === 0;
1150
+ return V(d, p) === 0;
1151
1151
  }
1152
1152
  var u = r.reduce(function(h, p) {
1153
1153
  var y = h[0], w = h[1], h = a[p], _ = e[p];
@@ -1225,7 +1225,7 @@ function Ma() {
1225
1225
  return d;
1226
1226
  });
1227
1227
  }, J.prototype.update = function(e, r) {
1228
- return typeof e != "object" || M(e) ? this.where(":id").equals(e).modify(r) : (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(r));
1228
+ return typeof e != "object" || M(e) ? this.where(":id").equals(e).modify(r) : (e = ve(e, this.schema.primKey.keyPath), e === void 0 ? q(new B.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(r));
1229
1229
  }, J.prototype.put = function(e, r) {
1230
1230
  var n = this, a = this.schema.primKey, s = a.auto, c = a.keyPath, u = e;
1231
1231
  return c && s && (u = jt(c)(e)), this._trans("readwrite", function(d) {
@@ -1266,8 +1266,8 @@ function Ma() {
1266
1266
  var a = this, s = Array.isArray(r) ? r : void 0, c = (n = n || (s ? void 0 : r)) ? n.allKeys : void 0;
1267
1267
  return this._trans("readwrite", function(u) {
1268
1268
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1269
- if (y && s) throw new L.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1270
- if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1269
+ if (y && s) throw new B.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
1270
+ if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1271
1271
  var p = e.length, y = y && d ? e.map(jt(y)) : e;
1272
1272
  return a.core.mutate({ trans: u, type: "add", keys: s, values: y, wantResults: c }).then(function(E) {
1273
1273
  var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
@@ -1279,8 +1279,8 @@ function Ma() {
1279
1279
  var a = this, s = Array.isArray(r) ? r : void 0, c = (n = n || (s ? void 0 : r)) ? n.allKeys : void 0;
1280
1280
  return this._trans("readwrite", function(u) {
1281
1281
  var y = a.schema.primKey, d = y.auto, y = y.keyPath;
1282
- if (y && s) throw new L.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1283
- if (s && s.length !== e.length) throw new L.InvalidArgument("Arguments objects and keys must have the same length");
1282
+ if (y && s) throw new B.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
1283
+ if (s && s.length !== e.length) throw new B.InvalidArgument("Arguments objects and keys must have the same length");
1284
1284
  var p = e.length, y = y && d ? e.map(jt(y)) : e;
1285
1285
  return a.core.mutate({ trans: u, type: "put", keys: s, values: y, wantResults: c }).then(function(E) {
1286
1286
  var h = E.numFailures, _ = E.results, m = E.lastResult, E = E.failures;
@@ -1303,7 +1303,7 @@ function Ma() {
1303
1303
  for (var v = 0, A = Object.keys(E); v < A.length; v++) {
1304
1304
  var P = A[v], N = E[P];
1305
1305
  if (P === r.schema.primKey.keyPath) {
1306
- if (H(N, m) !== 0) throw new L.Constraint("Cannot update primary key in bulkUpdate()");
1306
+ if (V(N, m) !== 0) throw new B.Constraint("Cannot update primary key in bulkUpdate()");
1307
1307
  } else le(O, P, N);
1308
1308
  }
1309
1309
  c.push(_), p.push(m), y.push(O);
@@ -1362,7 +1362,7 @@ function Ma() {
1362
1362
  var _ = y[h];
1363
1363
  if (M(_)) c(h, y[h][0], y[h][1]);
1364
1364
  else {
1365
- if (_ !== "asap") throw new L.InvalidArgument("Invalid event config");
1365
+ if (_ !== "asap") throw new B.InvalidArgument("Invalid event config");
1366
1366
  var m = c(h, it, function() {
1367
1367
  for (var E = arguments.length, O = new Array(E); E--; ) O[E] = arguments[E];
1368
1368
  m.subscribers.forEach(function(v) {
@@ -1376,7 +1376,7 @@ function Ma() {
1376
1376
  }
1377
1377
  }
1378
1378
  function ft(e, r) {
1379
- return Ve(r).from({ prototype: e }), r;
1379
+ return ze(r).from({ prototype: e }), r;
1380
1380
  }
1381
1381
  function tt(e, r) {
1382
1382
  return !(e.filter || e.algorithm || e.or) && (r ? e.justLimit : !e.replayFilter);
@@ -1393,7 +1393,7 @@ function Ma() {
1393
1393
  function Mt(e, r) {
1394
1394
  if (e.isPrimKey) return r.primaryKey;
1395
1395
  var n = r.getIndexByKeyPath(e.index);
1396
- if (!n) throw new L.Schema("KeyPath " + e.index + " on object store " + r.name + " is not indexed");
1396
+ if (!n) throw new B.Schema("KeyPath " + e.index + " on object store " + r.name + " is not indexed");
1397
1397
  return n;
1398
1398
  }
1399
1399
  function fn(e, r, n) {
@@ -1467,28 +1467,28 @@ function Ma() {
1467
1467
  function pn(e) {
1468
1468
  this["@@propmod"] = e;
1469
1469
  }
1470
- var oa = (V.prototype._read = function(e, r) {
1470
+ var oa = (z.prototype._read = function(e, r) {
1471
1471
  var n = this._ctx;
1472
1472
  return n.error ? n.table._trans(null, q.bind(null, n.error)) : n.table._trans("readonly", e).then(r);
1473
- }, V.prototype._write = function(e) {
1473
+ }, z.prototype._write = function(e) {
1474
1474
  var r = this._ctx;
1475
1475
  return r.error ? r.table._trans(null, q.bind(null, r.error)) : r.table._trans("readwrite", e, "locked");
1476
- }, V.prototype._addAlgorithm = function(e) {
1476
+ }, z.prototype._addAlgorithm = function(e) {
1477
1477
  var r = this._ctx;
1478
1478
  r.algorithm = We(r.algorithm, e);
1479
- }, V.prototype._iterate = function(e, r) {
1479
+ }, z.prototype._iterate = function(e, r) {
1480
1480
  return Gt(this._ctx, e, r, this._ctx.table.core);
1481
- }, V.prototype.clone = function(e) {
1481
+ }, z.prototype.clone = function(e) {
1482
1482
  var r = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
1483
1483
  return e && te(n, e), r._ctx = n, r;
1484
- }, V.prototype.raw = function() {
1484
+ }, z.prototype.raw = function() {
1485
1485
  return this._ctx.valueMapper = null, this;
1486
- }, V.prototype.each = function(e) {
1486
+ }, z.prototype.each = function(e) {
1487
1487
  var r = this._ctx;
1488
1488
  return this._read(function(n) {
1489
1489
  return Gt(r, e, n, r.table.core);
1490
1490
  });
1491
- }, V.prototype.count = function(e) {
1491
+ }, z.prototype.count = function(e) {
1492
1492
  var r = this;
1493
1493
  return this._read(function(n) {
1494
1494
  var a = r._ctx, s = a.table.core;
@@ -1502,19 +1502,19 @@ function Ma() {
1502
1502
  return c;
1503
1503
  });
1504
1504
  }).then(e);
1505
- }, V.prototype.sortBy = function(e, r) {
1505
+ }, z.prototype.sortBy = function(e, r) {
1506
1506
  var n = e.split(".").reverse(), a = n[0], s = n.length - 1;
1507
1507
  function c(p, y) {
1508
1508
  return y ? c(p[n[y]], y - 1) : p[a];
1509
1509
  }
1510
1510
  var u = this._ctx.dir === "next" ? 1 : -1;
1511
1511
  function d(p, y) {
1512
- return H(c(p, s), c(y, s)) * u;
1512
+ return V(c(p, s), c(y, s)) * u;
1513
1513
  }
1514
1514
  return this.toArray(function(p) {
1515
1515
  return p.sort(d);
1516
1516
  }).then(r);
1517
- }, V.prototype.toArray = function(e) {
1517
+ }, z.prototype.toArray = function(e) {
1518
1518
  var r = this;
1519
1519
  return this._read(function(n) {
1520
1520
  var a = r._ctx;
@@ -1531,7 +1531,7 @@ function Ma() {
1531
1531
  return u;
1532
1532
  });
1533
1533
  }, e);
1534
- }, V.prototype.offset = function(e) {
1534
+ }, z.prototype.offset = function(e) {
1535
1535
  var r = this._ctx;
1536
1536
  return e <= 0 || (r.offset += e, tt(r) ? br(r, function() {
1537
1537
  var n = e;
@@ -1546,49 +1546,49 @@ function Ma() {
1546
1546
  return --n < 0;
1547
1547
  };
1548
1548
  })), this;
1549
- }, V.prototype.limit = function(e) {
1549
+ }, z.prototype.limit = function(e) {
1550
1550
  return this._ctx.limit = Math.min(this._ctx.limit, e), br(this._ctx, function() {
1551
1551
  var r = e;
1552
1552
  return function(n, a, s) {
1553
1553
  return --r <= 0 && a(s), 0 <= r;
1554
1554
  };
1555
1555
  }, !0), this;
1556
- }, V.prototype.until = function(e, r) {
1556
+ }, z.prototype.until = function(e, r) {
1557
1557
  return yr(this._ctx, function(n, a, s) {
1558
1558
  return !e(n.value) || (a(s), r);
1559
1559
  }), this;
1560
- }, V.prototype.first = function(e) {
1560
+ }, z.prototype.first = function(e) {
1561
1561
  return this.limit(1).toArray(function(r) {
1562
1562
  return r[0];
1563
1563
  }).then(e);
1564
- }, V.prototype.last = function(e) {
1564
+ }, z.prototype.last = function(e) {
1565
1565
  return this.reverse().first(e);
1566
- }, V.prototype.filter = function(e) {
1566
+ }, z.prototype.filter = function(e) {
1567
1567
  var r;
1568
1568
  return yr(this._ctx, function(n) {
1569
1569
  return e(n.value);
1570
1570
  }), (r = this._ctx).isMatch = We(r.isMatch, e), this;
1571
- }, V.prototype.and = function(e) {
1571
+ }, z.prototype.and = function(e) {
1572
1572
  return this.filter(e);
1573
- }, V.prototype.or = function(e) {
1573
+ }, z.prototype.or = function(e) {
1574
1574
  return new this.db.WhereClause(this._ctx.table, e, this);
1575
- }, V.prototype.reverse = function() {
1575
+ }, z.prototype.reverse = function() {
1576
1576
  return this._ctx.dir = this._ctx.dir === "prev" ? "next" : "prev", this._ondirectionchange && this._ondirectionchange(this._ctx.dir), this;
1577
- }, V.prototype.desc = function() {
1577
+ }, z.prototype.desc = function() {
1578
1578
  return this.reverse();
1579
- }, V.prototype.eachKey = function(e) {
1579
+ }, z.prototype.eachKey = function(e) {
1580
1580
  var r = this._ctx;
1581
1581
  return r.keysOnly = !r.isMatch, this.each(function(n, a) {
1582
1582
  e(a.key, a);
1583
1583
  });
1584
- }, V.prototype.eachUniqueKey = function(e) {
1584
+ }, z.prototype.eachUniqueKey = function(e) {
1585
1585
  return this._ctx.unique = "unique", this.eachKey(e);
1586
- }, V.prototype.eachPrimaryKey = function(e) {
1586
+ }, z.prototype.eachPrimaryKey = function(e) {
1587
1587
  var r = this._ctx;
1588
1588
  return r.keysOnly = !r.isMatch, this.each(function(n, a) {
1589
1589
  e(a.primaryKey, a);
1590
1590
  });
1591
- }, V.prototype.keys = function(e) {
1591
+ }, z.prototype.keys = function(e) {
1592
1592
  var r = this._ctx;
1593
1593
  r.keysOnly = !r.isMatch;
1594
1594
  var n = [];
@@ -1597,7 +1597,7 @@ function Ma() {
1597
1597
  }).then(function() {
1598
1598
  return n;
1599
1599
  }).then(e);
1600
- }, V.prototype.primaryKeys = function(e) {
1600
+ }, z.prototype.primaryKeys = function(e) {
1601
1601
  var r = this._ctx;
1602
1602
  if (r.dir === "next" && tt(r, !0) && 0 < r.limit) return this._read(function(a) {
1603
1603
  var s = Mt(r, r.table.core.schema);
@@ -1612,15 +1612,15 @@ function Ma() {
1612
1612
  }).then(function() {
1613
1613
  return n;
1614
1614
  }).then(e);
1615
- }, V.prototype.uniqueKeys = function(e) {
1615
+ }, z.prototype.uniqueKeys = function(e) {
1616
1616
  return this._ctx.unique = "unique", this.keys(e);
1617
- }, V.prototype.firstKey = function(e) {
1617
+ }, z.prototype.firstKey = function(e) {
1618
1618
  return this.limit(1).keys(function(r) {
1619
1619
  return r[0];
1620
1620
  }).then(e);
1621
- }, V.prototype.lastKey = function(e) {
1621
+ }, z.prototype.lastKey = function(e) {
1622
1622
  return this.reverse().firstKey(e);
1623
- }, V.prototype.distinct = function() {
1623
+ }, z.prototype.distinct = function() {
1624
1624
  var e = this._ctx, e = e.index && e.table.schema.idxByName[e.index];
1625
1625
  if (!e || !e.multi) return this;
1626
1626
  var r = {};
@@ -1628,7 +1628,7 @@ function Ma() {
1628
1628
  var a = s.primaryKey.toString(), s = re(r, a);
1629
1629
  return r[a] = !0, !s;
1630
1630
  }), this;
1631
- }, V.prototype.modify = function(e) {
1631
+ }, z.prototype.modify = function(e) {
1632
1632
  var r = this, n = this._ctx;
1633
1633
  return this._write(function(a) {
1634
1634
  var s, c, u;
@@ -1656,10 +1656,10 @@ function Ma() {
1656
1656
  return d.getMany({ trans: a, keys: v.slice(N, N + D), cache: "immutable" }).then(function(T) {
1657
1657
  for (var C = [], R = [], x = p ? [] : null, $ = [], k = 0; k < D; ++k) {
1658
1658
  var K = T[k], W = { value: Ce(K), primKey: v[N + k] };
1659
- u.call(W, W.value, W) !== !1 && (W.value == null ? $.push(v[N + k]) : p || H(y(K), y(W.value)) === 0 ? (R.push(W.value), p && x.push(v[N + k])) : ($.push(v[N + k]), C.push(W.value)));
1659
+ u.call(W, W.value, W) !== !1 && (W.value == null ? $.push(v[N + k]) : p || V(y(K), y(W.value)) === 0 ? (R.push(W.value), p && x.push(v[N + k])) : ($.push(v[N + k]), C.push(W.value)));
1660
1660
  }
1661
1661
  return Promise.resolve(0 < C.length && d.mutate({ trans: a, type: "add", values: C }).then(function(F) {
1662
- for (var z in F.failures) $.splice(parseInt(z), 1);
1662
+ for (var H in F.failures) $.splice(parseInt(H), 1);
1663
1663
  _(C.length, F);
1664
1664
  })).then(function() {
1665
1665
  return (0 < R.length || P && typeof e == "object") && d.mutate({ trans: a, type: "put", keys: x, values: R, criteria: P, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < N }).then(function(F) {
@@ -1681,7 +1681,7 @@ function Ma() {
1681
1681
  });
1682
1682
  });
1683
1683
  });
1684
- }, V.prototype.delete = function() {
1684
+ }, z.prototype.delete = function() {
1685
1685
  var e = this._ctx, r = e.range;
1686
1686
  return tt(e) && (e.isPrimKey || r.type === 3) ? this._write(function(n) {
1687
1687
  var a = e.table.core.schema.primaryKey, s = r;
@@ -1695,8 +1695,8 @@ function Ma() {
1695
1695
  });
1696
1696
  });
1697
1697
  }) : this.modify(vr);
1698
- }, V);
1699
- function V() {
1698
+ }, z);
1699
+ function z() {
1700
1700
  }
1701
1701
  var vr = function(e, r) {
1702
1702
  return r.value = null;
@@ -1754,10 +1754,10 @@ function Ma() {
1754
1754
  if (r(P, p, m)) return !0;
1755
1755
  for (var N = null, D = m; D < h; ++D) {
1756
1756
  var T = function(C, R, x, $, k, K) {
1757
- for (var W = Math.min(C.length, $.length), F = -1, z = 0; z < W; ++z) {
1758
- var he = R[z];
1759
- if (he !== $[z]) return k(C[z], x[z]) < 0 ? C.substr(0, z) + x[z] + x.substr(z + 1) : k(C[z], $[z]) < 0 ? C.substr(0, z) + $[z] + x.substr(z + 1) : 0 <= F ? C.substr(0, F) + R[F] + x.substr(F + 1) : null;
1760
- k(C[z], he) < 0 && (F = z);
1757
+ for (var W = Math.min(C.length, $.length), F = -1, H = 0; H < W; ++H) {
1758
+ var he = R[H];
1759
+ if (he !== $[H]) return k(C[H], x[H]) < 0 ? C.substr(0, H) + x[H] + x.substr(H + 1) : k(C[H], $[H]) < 0 ? C.substr(0, H) + $[H] + x.substr(H + 1) : 0 <= F ? C.substr(0, F) + R[F] + x.substr(F + 1) : null;
1760
+ k(C[H], he) < 0 && (F = H);
1761
1761
  }
1762
1762
  return W < $.length && K === "next" ? C + x.substr(C.length) : W < C.length && K === "prev" ? C.substr(0, x.length) : F < 0 ? null : C.substr(0, F) + $[F] + x.substr(F + 1);
1763
1763
  }(A, P, d[D], p[D], u, y);
@@ -1867,7 +1867,7 @@ function Ma() {
1867
1867
  if (A.length === 0) return rt(this);
1868
1868
  if (!A.every(function(P) {
1869
1869
  return P[0] !== void 0 && P[1] !== void 0 && s(P[0], P[1]) <= 0;
1870
- })) return de(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", L.InvalidArgument);
1870
+ })) return de(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", B.InvalidArgument);
1871
1871
  var p = !r || r.includeLowers !== !1, y = r && r.includeUppers === !0, w, h = s;
1872
1872
  function _(P, N) {
1873
1873
  return h(P[0], N[0]);
@@ -1924,46 +1924,46 @@ function Ma() {
1924
1924
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
1925
1925
  }
1926
1926
  var mt = "storagemutated", Er = "x-storagemutated-1", Re = ht(null, mt), ua = (be.prototype._lock = function() {
1927
- return st(!B.global), ++this._reculock, this._reculock !== 1 || B.global || (B.lockOwnerFor = this), this;
1927
+ return st(!L.global), ++this._reculock, this._reculock !== 1 || L.global || (L.lockOwnerFor = this), this;
1928
1928
  }, be.prototype._unlock = function() {
1929
- if (st(!B.global), --this._reculock == 0) for (B.global || (B.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1929
+ if (st(!L.global), --this._reculock == 0) for (L.global || (L.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
1930
1930
  var e = this._blockedFuncs.shift();
1931
1931
  try {
1932
- Le(e[1], e[0]);
1932
+ Be(e[1], e[0]);
1933
1933
  } catch {
1934
1934
  }
1935
1935
  }
1936
1936
  return this;
1937
1937
  }, be.prototype._locked = function() {
1938
- return this._reculock && B.lockOwnerFor !== this;
1938
+ return this._reculock && L.lockOwnerFor !== this;
1939
1939
  }, be.prototype.create = function(e) {
1940
1940
  var r = this;
1941
1941
  if (!this.mode) return this;
1942
1942
  var n = this.db.idbdb, a = this.db._state.dbOpenError;
1943
1943
  if (st(!this.idbtrans), !e && !n) switch (a && a.name) {
1944
1944
  case "DatabaseClosedError":
1945
- throw new L.DatabaseClosed(a);
1945
+ throw new B.DatabaseClosed(a);
1946
1946
  case "MissingAPIError":
1947
- throw new L.MissingAPI(a.message, a);
1947
+ throw new B.MissingAPI(a.message, a);
1948
1948
  default:
1949
- throw new L.OpenFailed(a);
1949
+ throw new B.OpenFailed(a);
1950
1950
  }
1951
- if (!this.active) throw new L.TransactionInactive();
1951
+ if (!this.active) throw new B.TransactionInactive();
1952
1952
  return st(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = Z(function(s) {
1953
1953
  pt(s), r._reject(e.error);
1954
1954
  }), e.onabort = Z(function(s) {
1955
- pt(s), r.active && r._reject(new L.Abort(e.error)), r.active = !1, r.on("abort").fire(s);
1955
+ pt(s), r.active && r._reject(new B.Abort(e.error)), r.active = !1, r.on("abort").fire(s);
1956
1956
  }), e.oncomplete = Z(function() {
1957
1957
  r.active = !1, r._resolve(), "mutatedParts" in e && Re.storagemutated.fire(e.mutatedParts);
1958
1958
  }), this;
1959
1959
  }, be.prototype._promise = function(e, r, n) {
1960
1960
  var a = this;
1961
- if (e === "readwrite" && this.mode !== "readwrite") return q(new L.ReadOnly("Transaction is readonly"));
1962
- if (!this.active) return q(new L.TransactionInactive());
1961
+ if (e === "readwrite" && this.mode !== "readwrite") return q(new B.ReadOnly("Transaction is readonly"));
1962
+ if (!this.active) return q(new B.TransactionInactive());
1963
1963
  if (this._locked()) return new j(function(c, u) {
1964
1964
  a._blockedFuncs.push([function() {
1965
1965
  a._promise(e, r, n).then(c, u);
1966
- }, B]);
1966
+ }, L]);
1967
1967
  });
1968
1968
  if (n) return Ne(function() {
1969
1969
  var c = new j(function(u, d) {
@@ -2001,12 +2001,12 @@ function Ma() {
2001
2001
  });
2002
2002
  });
2003
2003
  }, be.prototype.abort = function() {
2004
- this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new L.Abort()));
2004
+ this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new B.Abort()));
2005
2005
  }, be.prototype.table = function(e) {
2006
2006
  var r = this._memoizedTables || (this._memoizedTables = {});
2007
2007
  if (re(r, e)) return r[e];
2008
2008
  var n = this.schema[e];
2009
- if (!n) throw new L.NotFound("Table " + e + " not part of transaction");
2009
+ if (!n) throw new B.NotFound("Table " + e + " not part of transaction");
2010
2010
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), r[e] = n;
2011
2011
  }, be);
2012
2012
  function be() {
@@ -2075,9 +2075,9 @@ function Ma() {
2075
2075
  function W(ue) {
2076
2076
  ++he, pt(ue);
2077
2077
  }
2078
- var F = [], z = [], he = 0;
2078
+ var F = [], H = [], he = 0;
2079
2079
  if (A === "deleteRange") {
2080
- if (D.type === 4) return T({ numFailures: he, failures: z, results: [], lastResult: void 0 });
2080
+ if (D.type === 4) return T({ numFailures: he, failures: H, results: [], lastResult: void 0 });
2081
2081
  D.type === 3 ? F.push(k = R.clear()) : F.push(k = R.delete(a(D)));
2082
2082
  } else {
2083
2083
  var x = $ ? x ? [N, P] : [N, null] : [P, null], U = x[0], ie = x[1];
@@ -2085,10 +2085,10 @@ function Ma() {
2085
2085
  else for (ce = 0; ce < K; ++ce) F.push(k = R[A](U[ce])), k.onerror = W;
2086
2086
  }
2087
2087
  function Zt(ue) {
2088
- ue = ue.target.result, F.forEach(function(He, Lr) {
2089
- return He.error != null && (z[Lr] = He.error);
2090
- }), T({ numFailures: he, failures: z, results: A === "delete" ? P : F.map(function(He) {
2091
- return He.result;
2088
+ ue = ue.target.result, F.forEach(function(Ve, Br) {
2089
+ return Ve.error != null && (H[Br] = Ve.error);
2090
+ }), T({ numFailures: he, failures: H, results: A === "delete" ? P : F.map(function(Ve) {
2091
+ return Ve.result;
2092
2092
  }), lastResult: ue });
2093
2093
  }
2094
2094
  k.onerror = function(ue) {
@@ -2131,8 +2131,8 @@ function Ma() {
2131
2131
  T = Z(T);
2132
2132
  var $ = P.index, R = P.range, x = v.objectStore(E), x = $.isPrimaryKey ? x : x.index($.name), $ = N ? D ? "prevunique" : "prev" : D ? "nextunique" : "next", k = !A && "openKeyCursor" in x ? x.openKeyCursor(a(R), $) : x.openCursor(a(R), $);
2133
2133
  k.onerror = ye(C), k.onsuccess = Z(function(K) {
2134
- var W, F, z, he, U = k.result;
2135
- U ? (U.___id = ++la, U.done = !1, W = U.continue.bind(U), F = (F = U.continuePrimaryKey) && F.bind(U), z = U.advance.bind(U), he = function() {
2134
+ var W, F, H, he, U = k.result;
2135
+ U ? (U.___id = ++la, U.done = !1, W = U.continue.bind(U), F = (F = U.continuePrimaryKey) && F.bind(U), H = U.advance.bind(U), he = function() {
2136
2136
  throw new Error("Cursor not stopped");
2137
2137
  }, U.trans = v, U.stop = U.continue = U.continuePrimaryKey = U.advance = function() {
2138
2138
  throw new Error("Cursor not started");
@@ -2154,14 +2154,14 @@ function Ma() {
2154
2154
  throw new Error("Cursor behind last entry");
2155
2155
  }, U.stop();
2156
2156
  }
2157
- var Zt = new Promise(function(ue, He) {
2158
- ue = Z(ue), k.onerror = ye(He), U.fail = He, U.stop = function(Lr) {
2159
- U.stop = U.continue = U.continuePrimaryKey = U.advance = he, ue(Lr);
2157
+ var Zt = new Promise(function(ue, Ve) {
2158
+ ue = Z(ue), k.onerror = ye(Ve), U.fail = Ve, U.stop = function(Br) {
2159
+ U.stop = U.continue = U.continuePrimaryKey = U.advance = he, ue(Br);
2160
2160
  };
2161
2161
  });
2162
2162
  return k.onsuccess = Z(function(ue) {
2163
2163
  k.onsuccess = ce, ce();
2164
- }), U.continue = W, U.continuePrimaryKey = F, U.advance = z, ce(), Zt;
2164
+ }), U.continue = W, U.continuePrimaryKey = F, U.advance = H, ce(), Zt;
2165
2165
  }, T(U)) : T(null);
2166
2166
  }, C);
2167
2167
  });
@@ -2201,7 +2201,7 @@ function Ma() {
2201
2201
  return u = u.create, l(l({}, c), u(c));
2202
2202
  }, a)) };
2203
2203
  }
2204
- function Bt(e, a) {
2204
+ function Lt(e, a) {
2205
2205
  var n = a.db, a = ha(e._middlewares, n, e._deps, a);
2206
2206
  e.core = a.dbcore, e.tables.forEach(function(s) {
2207
2207
  var c = s.name;
@@ -2210,7 +2210,7 @@ function Ma() {
2210
2210
  }) && (s.core = e.core.table(c), e[c] instanceof e.Table && (e[c].core = s.core));
2211
2211
  });
2212
2212
  }
2213
- function Lt(e, r, n, a) {
2213
+ function Bt(e, r, n, a) {
2214
2214
  n.forEach(function(s) {
2215
2215
  var c = a[s];
2216
2216
  r.forEach(function(u) {
@@ -2220,7 +2220,7 @@ function Ma() {
2220
2220
  (!d || "value" in d && d.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Ae(u, s, { get: function() {
2221
2221
  return this.table(s);
2222
2222
  }, set: function(p) {
2223
- Hr(this, s, { value: p, writable: !0, configurable: !0, enumerable: !0 });
2223
+ Vr(this, s, { value: p, writable: !0, configurable: !0, enumerable: !0 });
2224
2224
  } }) : u[s] = new e.Table(s, c));
2225
2225
  });
2226
2226
  });
@@ -2238,9 +2238,9 @@ function Ma() {
2238
2238
  n.objectStoreNames.contains("$meta") && !s.$meta && (s.$meta = Sr("$meta", wn("")[0], []), e._storeNames.push("$meta"));
2239
2239
  var c = e._createTransaction("readwrite", e._storeNames, s);
2240
2240
  c.create(n), c._completion.catch(a);
2241
- var u = c._reject.bind(c), d = B.transless || B;
2241
+ var u = c._reject.bind(c), d = L.transless || L;
2242
2242
  Ne(function() {
2243
- return B.trans = c, B.transless = d, r !== 0 ? (Bt(e, n), y = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2243
+ return L.trans = c, L.transless = d, r !== 0 ? (Lt(e, n), y = r, ((p = c).storeNames.includes("$meta") ? p.table("$meta").get("version").then(function(w) {
2244
2244
  return w ?? y;
2245
2245
  }) : j.resolve(y)).then(function(w) {
2246
2246
  return _ = w, m = c, E = n, O = [], w = (h = e)._versions, v = h._dbSchema = Wt(0, h.idbdb, E), (w = w.filter(function(A) {
@@ -2253,7 +2253,7 @@ function Ma() {
2253
2253
  D.add.forEach(function($) {
2254
2254
  Pr(E, $[0], $[1].primKey, $[1].indexes);
2255
2255
  }), D.change.forEach(function($) {
2256
- if ($.recreate) throw new L.Upgrade("Not yet support for changing primary key");
2256
+ if ($.recreate) throw new B.Upgrade("Not yet support for changing primary key");
2257
2257
  var k = E.objectStore($.name);
2258
2258
  $.add.forEach(function(K) {
2259
2259
  return Ut(k, K);
@@ -2265,11 +2265,11 @@ function Ma() {
2265
2265
  });
2266
2266
  var T = A._cfg.contentUpgrade;
2267
2267
  if (T && A._cfg.version > _) {
2268
- Bt(h, E), m._memoizedTables = {};
2268
+ Lt(h, E), m._memoizedTables = {};
2269
2269
  var C = Qr(N);
2270
2270
  D.del.forEach(function($) {
2271
2271
  C[$] = P[$];
2272
- }), _r(h, [h.Transaction.prototype]), Lt(h, [h.Transaction.prototype], I(C), C), m.schema = C;
2272
+ }), _r(h, [h.Transaction.prototype]), Bt(h, [h.Transaction.prototype], I(C), C), m.schema = C;
2273
2273
  var R, x = ar(T);
2274
2274
  return x && qe(), D = j.follow(function() {
2275
2275
  var $;
@@ -2282,7 +2282,7 @@ function Ma() {
2282
2282
  var N, D, T = A._cfg.dbschema;
2283
2283
  N = T, D = P, [].slice.call(D.db.objectStoreNames).forEach(function(C) {
2284
2284
  return N[C] == null && D.db.deleteObjectStore(C);
2285
- }), _r(h, [h.Transaction.prototype]), Lt(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), m.schema = h._dbSchema;
2285
+ }), _r(h, [h.Transaction.prototype]), Bt(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), m.schema = h._dbSchema;
2286
2286
  }), O.push(function(P) {
2287
2287
  h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === A._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(N) {
2288
2288
  return N !== "$meta";
@@ -2296,7 +2296,7 @@ function Ma() {
2296
2296
  var h, _, m, E, O, v;
2297
2297
  }).catch(u)) : (I(s).forEach(function(w) {
2298
2298
  Pr(n, w, s[w].primKey, s[w].indexes);
2299
- }), Bt(e, n), void j.follow(function() {
2299
+ }), Lt(e, n), void j.follow(function() {
2300
2300
  return e.on.populate.fire(c);
2301
2301
  }).catch(u));
2302
2302
  var p, y;
@@ -2379,28 +2379,28 @@ function Ma() {
2379
2379
  return wr(a, s || null, /\&/.test(r), /\*/.test(r), /\+\+/.test(r), M(s), n === 0);
2380
2380
  });
2381
2381
  }
2382
- var ma = (zt.prototype._parseStoresSpec = function(e, r) {
2382
+ var ma = (Ht.prototype._parseStoresSpec = function(e, r) {
2383
2383
  I(e).forEach(function(n) {
2384
2384
  if (e[n] !== null) {
2385
2385
  var a = wn(e[n]), s = a.shift();
2386
- if (s.unique = !0, s.multi) throw new L.Schema("Primary key cannot be multi-valued");
2386
+ if (s.unique = !0, s.multi) throw new B.Schema("Primary key cannot be multi-valued");
2387
2387
  a.forEach(function(c) {
2388
- if (c.auto) throw new L.Schema("Only primary key can be marked as autoIncrement (++)");
2389
- if (!c.keyPath) throw new L.Schema("Index must have a name and cannot be an empty string");
2388
+ if (c.auto) throw new B.Schema("Only primary key can be marked as autoIncrement (++)");
2389
+ if (!c.keyPath) throw new B.Schema("Index must have a name and cannot be an empty string");
2390
2390
  }), r[n] = Sr(n, s, a);
2391
2391
  }
2392
2392
  });
2393
- }, zt.prototype.stores = function(n) {
2393
+ }, Ht.prototype.stores = function(n) {
2394
2394
  var r = this.db;
2395
2395
  this._cfg.storesSource = this._cfg.storesSource ? te(this._cfg.storesSource, n) : n;
2396
2396
  var n = r._versions, a = {}, s = {};
2397
2397
  return n.forEach(function(c) {
2398
2398
  te(a, c._cfg.storesSource), s = c._cfg.dbschema = {}, c._parseStoresSpec(a, s);
2399
- }), r._dbSchema = s, _r(r, [r._allTables, r, r.Transaction.prototype]), Lt(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2400
- }, zt.prototype.upgrade = function(e) {
2399
+ }), r._dbSchema = s, _r(r, [r._allTables, r, r.Transaction.prototype]), Bt(r, [r._allTables, r, r.Transaction.prototype, this._cfg.tables], I(s), s), r._storeNames = I(s), this;
2400
+ }, Ht.prototype.upgrade = function(e) {
2401
2401
  return this._cfg.contentUpgrade = or(this._cfg.contentUpgrade || Q, e), this;
2402
- }, zt);
2403
- function zt() {
2402
+ }, Ht);
2403
+ function Ht() {
2404
2404
  }
2405
2405
  function Nr(e, r) {
2406
2406
  var n = e._dbNamesDB;
@@ -2411,7 +2411,7 @@ function Ma() {
2411
2411
  }
2412
2412
  function Ir(e) {
2413
2413
  return Ne(function() {
2414
- return B.letThrough = !0, e();
2414
+ return L.letThrough = !0, e();
2415
2415
  });
2416
2416
  }
2417
2417
  function Tr(e) {
@@ -2425,14 +2425,14 @@ function Ma() {
2425
2425
  te(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? r : e } : { d: 0 });
2426
2426
  };
2427
2427
  function vt(e, r, n) {
2428
- var a = H(r, n);
2428
+ var a = V(r, n);
2429
2429
  if (!isNaN(a)) {
2430
2430
  if (0 < a) throw RangeError();
2431
2431
  if (Tr(e)) return te(e, { from: r, to: n, d: 1 });
2432
2432
  var s = e.l, a = e.r;
2433
- if (H(n, e.from) < 0) return s ? vt(s, r, n) : e.l = { from: r, to: n, d: 1, l: null, r: null }, On(e);
2434
- if (0 < H(r, e.to)) return a ? vt(a, r, n) : e.r = { from: r, to: n, d: 1, l: null, r: null }, On(e);
2435
- H(r, e.from) < 0 && (e.from = r, e.l = null, e.d = a ? a.d + 1 : 1), 0 < H(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, s && !e.l && Et(e, s), a && n && Et(e, a);
2433
+ if (V(n, e.from) < 0) return s ? vt(s, r, n) : e.l = { from: r, to: n, d: 1, l: null, r: null }, On(e);
2434
+ if (0 < V(r, e.to)) return a ? vt(a, r, n) : e.r = { from: r, to: n, d: 1, l: null, r: null }, On(e);
2435
+ V(r, e.from) < 0 && (e.from = r, e.l = null, e.d = a ? a.d + 1 : 1), 0 < V(n, e.to) && (e.to = n, e.r = null, e.d = e.l ? e.l.d + 1 : 1), n = !e.r, s && !e.l && Et(e, s), a && n && Et(e, a);
2436
2436
  }
2437
2437
  }
2438
2438
  function Et(e, r) {
@@ -2442,23 +2442,23 @@ function Ma() {
2442
2442
  }(e, r);
2443
2443
  }
2444
2444
  function Sn(e, r) {
2445
- var n = Ht(r), a = n.next();
2445
+ var n = Vt(r), a = n.next();
2446
2446
  if (a.done) return !1;
2447
- for (var s = a.value, c = Ht(e), u = c.next(s.from), d = u.value; !a.done && !u.done; ) {
2448
- if (H(d.from, s.to) <= 0 && 0 <= H(d.to, s.from)) return !0;
2449
- H(s.from, d.from) < 0 ? s = (a = n.next(d.from)).value : d = (u = c.next(s.from)).value;
2447
+ for (var s = a.value, c = Vt(e), u = c.next(s.from), d = u.value; !a.done && !u.done; ) {
2448
+ if (V(d.from, s.to) <= 0 && 0 <= V(d.to, s.from)) return !0;
2449
+ V(s.from, d.from) < 0 ? s = (a = n.next(d.from)).value : d = (u = c.next(s.from)).value;
2450
2450
  }
2451
2451
  return !1;
2452
2452
  }
2453
- function Ht(e) {
2453
+ function Vt(e) {
2454
2454
  var r = Tr(e) ? null : { s: 0, n: e };
2455
2455
  return { next: function(n) {
2456
2456
  for (var a = 0 < arguments.length; r; ) switch (r.s) {
2457
2457
  case 0:
2458
- if (r.s = 1, a) for (; r.n.l && H(n, r.n.from) < 0; ) r = { up: r, n: r.n.l, s: 1 };
2458
+ if (r.s = 1, a) for (; r.n.l && V(n, r.n.from) < 0; ) r = { up: r, n: r.n.l, s: 1 };
2459
2459
  else for (; r.n.l; ) r = { up: r, n: r.n.l, s: 1 };
2460
2460
  case 1:
2461
- if (r.s = 2, !a || H(n, r.n.to) <= 0) return { value: r.n, done: !1 };
2461
+ if (r.s = 2, !a || V(n, r.n.to) <= 0) return { value: r.n, done: !1 };
2462
2462
  case 2:
2463
2463
  if (r.n.r) {
2464
2464
  r.s = 3, r = { up: r, n: r.n.r, s: 0 };
@@ -2478,7 +2478,7 @@ function Ma() {
2478
2478
  var r = n.r, n = n.l;
2479
2479
  return (r ? n ? Math.max(r.d, n.d) : r.d : n ? n.d : 0) + 1;
2480
2480
  }
2481
- function Vt(e, r) {
2481
+ function zt(e, r) {
2482
2482
  return I(r).forEach(function(n) {
2483
2483
  e[n] ? Et(e[n], r[n]) : e[n] = function a(s) {
2484
2484
  var c, u, d = {};
@@ -2502,14 +2502,14 @@ function Ma() {
2502
2502
  return vt(r, n, n);
2503
2503
  }), this;
2504
2504
  }, hasKey: function(e) {
2505
- var r = Ht(this).next(e).value;
2506
- return r && H(r.from, e) <= 0 && 0 <= H(r.to, e);
2505
+ var r = Vt(this).next(e).value;
2506
+ return r && V(r.from, e) <= 0 && 0 <= V(r.to, e);
2507
2507
  } })[nr] = function() {
2508
- return Ht(this);
2508
+ return Vt(this);
2509
2509
  }, fe));
2510
2510
  var Fe = {}, xr = {}, kr = !1;
2511
2511
  function Yt(e) {
2512
- Vt(xr, e), kr || (kr = !0, setTimeout(function() {
2512
+ zt(xr, e), kr || (kr = !0, setTimeout(function() {
2513
2513
  kr = !1, Cr(xr, !(xr = {}));
2514
2514
  }, 0));
2515
2515
  }
@@ -2548,28 +2548,28 @@ function Ma() {
2548
2548
  r.isBeingOpened = !0, r.dbOpenError = null, r.openComplete = !1;
2549
2549
  var a = r.openCanceller, s = Math.round(10 * e.verno), c = !1;
2550
2550
  function u() {
2551
- if (r.openCanceller !== a) throw new L.DatabaseClosed("db.open() was cancelled");
2551
+ if (r.openCanceller !== a) throw new B.DatabaseClosed("db.open() was cancelled");
2552
2552
  }
2553
2553
  function d() {
2554
2554
  return new j(function(_, m) {
2555
- if (u(), !n) throw new L.MissingAPI();
2555
+ if (u(), !n) throw new B.MissingAPI();
2556
2556
  var E = e.name, O = r.autoSchema || !s ? n.open(E) : n.open(E, s);
2557
- if (!O) throw new L.MissingAPI();
2557
+ if (!O) throw new B.MissingAPI();
2558
2558
  O.onerror = ye(m), O.onblocked = Z(e._fireOnBlocked), O.onupgradeneeded = Z(function(v) {
2559
2559
  var A;
2560
2560
  w = O.transaction, r.autoSchema && !e._options.allowEmptyDB ? (O.onerror = pt, w.abort(), O.result.close(), (A = n.deleteDatabase(E)).onsuccess = A.onerror = Z(function() {
2561
- m(new L.NoSuchDatabase("Database ".concat(E, " doesnt exist")));
2561
+ m(new B.NoSuchDatabase("Database ".concat(E, " doesnt exist")));
2562
2562
  })) : (w.onerror = ye(m), v = v.oldVersion > Math.pow(2, 62) ? 0 : v.oldVersion, h = v < 1, e.idbdb = O.result, c && pa(e, w), ga(e, v / 10, w, m));
2563
2563
  }, m), O.onsuccess = Z(function() {
2564
2564
  w = null;
2565
2565
  var v, A, P, N, D, T = e.idbdb = O.result, C = _t(T.objectStoreNames);
2566
2566
  if (0 < C.length) try {
2567
2567
  var R = T.transaction((N = C).length === 1 ? N[0] : N, "readonly");
2568
- if (r.autoSchema) A = T, P = R, (v = e).verno = A.version / 10, P = v._dbSchema = Wt(0, A, P), v._storeNames = _t(A.objectStoreNames, 0), Lt(v, [v._allTables], I(P), P);
2568
+ if (r.autoSchema) A = T, P = R, (v = e).verno = A.version / 10, P = v._dbSchema = Wt(0, A, P), v._storeNames = _t(A.objectStoreNames, 0), Bt(v, [v._allTables], I(P), P);
2569
2569
  else if (Ft(e, e._dbSchema, R), ((D = Ar(Wt(0, (D = e).idbdb, R), D._dbSchema)).add.length || D.change.some(function(x) {
2570
2570
  return x.add.length || x.change.length;
2571
2571
  })) && !c) 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."), T.close(), s = T.version + 1, c = !0, _(d());
2572
- Bt(e, R);
2572
+ Lt(e, R);
2573
2573
  } catch {
2574
2574
  }
2575
2575
  et.push(e), T.onversionchange = Z(function(x) {
@@ -2708,7 +2708,7 @@ function Ma() {
2708
2708
  return l(l({}, e), { table: function(r) {
2709
2709
  var n = e.table(r), a = n.schema.primaryKey;
2710
2710
  return l(l({}, n), { mutate: function(s) {
2711
- var c = B.trans, u = c.table(r).hook, d = u.deleting, p = u.creating, y = u.updating;
2711
+ var c = L.trans, u = c.table(r).hook, d = u.deleting, p = u.creating, y = u.updating;
2712
2712
  switch (s.type) {
2713
2713
  case "add":
2714
2714
  if (p.fire === Q) break;
@@ -2740,7 +2740,7 @@ function Ma() {
2740
2740
  }
2741
2741
  return n.mutate(s);
2742
2742
  function w(h) {
2743
- var _, m, E, O = B.trans, v = h.keys || Mr(a, h);
2743
+ var _, m, E, O = L.trans, v = h.keys || Mr(a, h);
2744
2744
  if (!v) throw new Error("Keys missing");
2745
2745
  return (h = h.type === "add" || h.type === "put" ? l(l({}, h), { keys: v }) : l({}, h)).type !== "delete" && (h.values = g([], h.values)), h.keys && (h.keys = g([], h.keys)), _ = n, E = v, ((m = h).type === "add" ? Promise.resolve([]) : _.getMany({ trans: m.trans, keys: E, cache: "immutable" })).then(function(A) {
2746
2746
  var P = v.map(function(N, D) {
@@ -2768,7 +2768,7 @@ function Ma() {
2768
2768
  function Pn(e, r, n) {
2769
2769
  try {
2770
2770
  if (!r || r.keys.length < e.length) return null;
2771
- for (var a = [], s = 0, c = 0; s < r.keys.length && c < e.length; ++s) H(r.keys[s], e[c]) === 0 && (a.push(n ? Ce(r.values[s]) : r.values[s]), ++c);
2771
+ for (var a = [], s = 0, c = 0; s < r.keys.length && c < e.length; ++s) V(r.keys[s], e[c]) === 0 && (a.push(n ? Ce(r.values[s]) : r.values[s]), ++c);
2772
2772
  return a.length === e.length ? a : null;
2773
2773
  } catch {
2774
2774
  return null;
@@ -2805,7 +2805,7 @@ function Ma() {
2805
2805
  var wa = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
2806
2806
  var r = e.schema.name, n = new oe(e.MIN_KEY, e.MAX_KEY);
2807
2807
  return l(l({}, e), { transaction: function(a, s, c) {
2808
- if (B.subscr && s !== "readonly") throw new L.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(B.querier));
2808
+ if (L.subscr && s !== "readonly") throw new B.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(L.querier));
2809
2809
  return e.transaction(a, s, c);
2810
2810
  }, table: function(a) {
2811
2811
  var s = e.table(a), c = s.schema, u = c.primaryKey, h = c.indexes, d = u.extractKey, p = u.outbound, y = u.autoIncrement && h.filter(function(m) {
@@ -2819,17 +2819,17 @@ function Ma() {
2819
2819
  }), m.values] : [], R = $[0], x = $[1], $ = m.trans._cache;
2820
2820
  return M(R) ? (D.addKeys(R), ($ = C === "delete" || R.length === x.length ? Pn(R, $) : null) || T.addKeys(R), ($ || x) && (O = E, v = $, A = x, c.indexes.forEach(function(k) {
2821
2821
  var K = O(k.name || "");
2822
- function W(z) {
2823
- return z != null ? k.extractKey(z) : null;
2822
+ function W(H) {
2823
+ return H != null ? k.extractKey(H) : null;
2824
2824
  }
2825
- function F(z) {
2826
- return k.multiEntry && M(z) ? z.forEach(function(he) {
2825
+ function F(H) {
2826
+ return k.multiEntry && M(H) ? H.forEach(function(he) {
2827
2827
  return K.addKey(he);
2828
- }) : K.addKey(z);
2828
+ }) : K.addKey(H);
2829
2829
  }
2830
- (v || A).forEach(function(z, ie) {
2830
+ (v || A).forEach(function(H, ie) {
2831
2831
  var U = v && W(v[ie]), ie = A && W(A[ie]);
2832
- H(U, ie) !== 0 && (U != null && F(U), ie != null && F(ie));
2832
+ V(U, ie) !== 0 && (U != null && F(U), ie != null && F(ie));
2833
2833
  });
2834
2834
  }))) : R ? (x = { from: (x = R.lower) !== null && x !== void 0 ? x : e.MIN_KEY, to: (x = R.upper) !== null && x !== void 0 ? x : e.MAX_KEY }, T.add(x), D.add(x)) : (D.add(n), T.add(n), c.indexes.forEach(function(k) {
2835
2835
  return E(k.name).add(n);
@@ -2839,9 +2839,9 @@ function Ma() {
2839
2839
  return K.extractKey(U);
2840
2840
  }), F = K.keyPath.findIndex(function(U) {
2841
2841
  return U === u.keyPath;
2842
- }), z = 0, he = k.results.length; z < he; ++z) W[z][F] = k.results[z];
2842
+ }), H = 0, he = k.results.length; H < he; ++H) W[H][F] = k.results[H];
2843
2843
  E(K.name).addKeys(W);
2844
- })), P.mutatedParts = Vt(P.mutatedParts || {}, N), k;
2844
+ })), P.mutatedParts = zt(P.mutatedParts || {}, N), k;
2845
2845
  });
2846
2846
  } }), h = function(E) {
2847
2847
  var O = E.query, E = O.index, O = O.range;
@@ -2853,7 +2853,7 @@ function Ma() {
2853
2853
  }, count: h, query: h, openCursor: h };
2854
2854
  return I(_).forEach(function(m) {
2855
2855
  w[m] = function(E) {
2856
- var O = B.subscr, v = !!O, A = Nn(B, s) && Dn(m, E) ? E.obsSet = {} : O;
2856
+ var O = L.subscr, v = !!O, A = Nn(L, s) && Dn(m, E) ? E.obsSet = {} : O;
2857
2857
  if (v) {
2858
2858
  var P = function(x) {
2859
2859
  return x = "idb://".concat(r, "/").concat(a, "/").concat(x), A[x] || (A[x] = new oe());
@@ -2901,7 +2901,7 @@ function Ma() {
2901
2901
  })), r);
2902
2902
  }
2903
2903
  function Gr(e, r) {
2904
- return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < H(n, a.lower) : 0 <= H(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? H(e, r.upper) < 0 : H(e, r.upper) <= 0));
2904
+ return n = e, ((a = r).lower === void 0 || (a.lowerOpen ? 0 < V(n, a.lower) : 0 <= V(n, a.lower))) && (e = e, (r = r).upper === void 0 || (r.upperOpen ? V(e, r.upper) < 0 : V(e, r.upper) <= 0));
2905
2905
  var n, a;
2906
2906
  }
2907
2907
  function Tn(e, r, _, a, s, c) {
@@ -2951,17 +2951,17 @@ function Ma() {
2951
2951
  return O;
2952
2952
  }, e);
2953
2953
  return _ === e ? e : (_.sort(function(m, E) {
2954
- return H(h(m), h(E)) || H(y(m), y(E));
2954
+ return V(h(m), h(E)) || V(y(m), y(E));
2955
2955
  }), r.limit && r.limit < 1 / 0 && (_.length > r.limit ? _.length = r.limit : e.length === r.limit && _.length < r.limit && (s.dirty = !0)), c ? Object.freeze(_) : _);
2956
2956
  }
2957
2957
  function Rn(e, r) {
2958
- return H(e.lower, r.lower) === 0 && H(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
2958
+ return V(e.lower, r.lower) === 0 && V(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
2959
2959
  }
2960
2960
  function Sa(e, r) {
2961
2961
  return function(n, a, s, c) {
2962
2962
  if (n === void 0) return a !== void 0 ? -1 : 0;
2963
2963
  if (a === void 0) return 1;
2964
- if ((a = H(n, a)) === 0) {
2964
+ if ((a = V(n, a)) === 0) {
2965
2965
  if (s && c) return 0;
2966
2966
  if (s) return 1;
2967
2967
  if (c) return -1;
@@ -2970,7 +2970,7 @@ function Ma() {
2970
2970
  }(e.lower, r.lower, e.lowerOpen, r.lowerOpen) <= 0 && 0 <= function(n, a, s, c) {
2971
2971
  if (n === void 0) return a !== void 0 ? 1 : 0;
2972
2972
  if (a === void 0) return -1;
2973
- if ((a = H(n, a)) === 0) {
2973
+ if ((a = V(n, a)) === 0) {
2974
2974
  if (s && c) return 0;
2975
2975
  if (s) return -1;
2976
2976
  if (c) return 1;
@@ -3023,7 +3023,7 @@ function Ma() {
3023
3023
  }, table: function(n) {
3024
3024
  var a = e.table(n), s = a.schema.primaryKey;
3025
3025
  return l(l({}, a), { mutate: function(c) {
3026
- var u = B.trans;
3026
+ var u = L.trans;
3027
3027
  if (s.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return a.mutate(c);
3028
3028
  var d = Fe["idb://".concat(r, "/").concat(n)];
3029
3029
  return d ? (u = a.mutate(c), c.type !== "add" && c.type !== "put" || !(50 <= c.values.length || Mr(s, c).some(function(p) {
@@ -3042,8 +3042,8 @@ function Ma() {
3042
3042
  });
3043
3043
  }), u) : a.mutate(c);
3044
3044
  }, query: function(c) {
3045
- if (!Nn(B, a) || !Dn("query", c)) return a.query(c);
3046
- var u = ((y = B.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", h = B, d = h.requery, p = h.signal, y = function(E, O, v, A) {
3045
+ if (!Nn(L, a) || !Dn("query", c)) return a.query(c);
3046
+ var u = ((y = L.trans) === null || y === void 0 ? void 0 : y.db._options.cache) === "immutable", h = L, d = h.requery, p = h.signal, y = function(E, O, v, A) {
3047
3047
  var P = Fe["idb://".concat(E, "/").concat(O)];
3048
3048
  if (!P) return [];
3049
3049
  if (!(O = P.queries[v])) return [null, !1, P, null];
@@ -3084,8 +3084,8 @@ function Ma() {
3084
3084
  } });
3085
3085
  }
3086
3086
  var Se = (ee.prototype.version = function(e) {
3087
- if (isNaN(e) || e < 0.1) throw new L.Type("Given version is not a positive number");
3088
- if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened) throw new L.Schema("Cannot add version when database is open");
3087
+ if (isNaN(e) || e < 0.1) throw new B.Type("Given version is not a positive number");
3088
+ if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened) throw new B.Schema("Cannot add version when database is open");
3089
3089
  this.verno = Math.max(this.verno, e);
3090
3090
  var r = this._versions, n = r.filter(function(a) {
3091
3091
  return a._cfg.version === e;
@@ -3093,10 +3093,10 @@ function Ma() {
3093
3093
  return n || (n = new this.Version(e), r.push(n), r.sort(fa), n.stores({}), this._state.autoSchema = !1, n);
3094
3094
  }, ee.prototype._whenReady = function(e) {
3095
3095
  var r = this;
3096
- return this.idbdb && (this._state.openComplete || B.letThrough || this._vip) ? e() : new j(function(n, a) {
3097
- if (r._state.openComplete) return a(new L.DatabaseClosed(r._state.dbOpenError));
3096
+ return this.idbdb && (this._state.openComplete || L.letThrough || this._vip) ? e() : new j(function(n, a) {
3097
+ if (r._state.openComplete) return a(new B.DatabaseClosed(r._state.dbOpenError));
3098
3098
  if (!r._state.isBeingOpened) {
3099
- if (!r._state.autoOpen) return void a(new L.DatabaseClosed());
3099
+ if (!r._state.autoOpen) return void a(new B.DatabaseClosed());
3100
3100
  r.open().catch(Q);
3101
3101
  }
3102
3102
  r._state.dbReadyPromise.then(n, a);
@@ -3113,7 +3113,7 @@ function Ma() {
3113
3113
  })), this;
3114
3114
  }, ee.prototype.open = function() {
3115
3115
  var e = this;
3116
- return Le(Pe, function() {
3116
+ return Be(Pe, function() {
3117
3117
  return ya(e);
3118
3118
  });
3119
3119
  }, ee.prototype._close = function() {
@@ -3132,7 +3132,7 @@ function Ma() {
3132
3132
  }));
3133
3133
  }, ee.prototype.close = function(n) {
3134
3134
  var r = (n === void 0 ? { disableAutoOpen: !0 } : n).disableAutoOpen, n = this._state;
3135
- r ? (n.isBeingOpened && n.cancelOpen(new L.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new L.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
3135
+ r ? (n.isBeingOpened && n.cancelOpen(new B.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new B.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
3136
3136
  }, ee.prototype.delete = function(e) {
3137
3137
  var r = this;
3138
3138
  e === void 0 && (e = { disableAutoOpen: !0 });
@@ -3146,7 +3146,7 @@ function Ma() {
3146
3146
  p = r._deps, y = r.name, w = p.indexedDB, p = p.IDBKeyRange, Dr(w) || y === $t || Nr(w, p).delete(y).catch(Q), s();
3147
3147
  }), d.onerror = ye(c), d.onblocked = r._fireOnBlocked;
3148
3148
  }
3149
- if (n) throw new L.InvalidArgument("Invalid closeOptions argument to db.delete()");
3149
+ if (n) throw new B.InvalidArgument("Invalid closeOptions argument to db.delete()");
3150
3150
  a.isBeingOpened ? a.dbReadyPromise.then(u) : u();
3151
3151
  });
3152
3152
  }, ee.prototype.backendDB = function() {
@@ -3168,13 +3168,13 @@ function Ma() {
3168
3168
  }, enumerable: !1, configurable: !0 }), ee.prototype.transaction = function() {
3169
3169
  var e = function(r, n, a) {
3170
3170
  var s = arguments.length;
3171
- if (s < 2) throw new L.InvalidArgument("Too few arguments");
3171
+ if (s < 2) throw new B.InvalidArgument("Too few arguments");
3172
3172
  for (var c = new Array(s - 1); --s; ) c[s - 1] = arguments[s];
3173
3173
  return a = c.pop(), [r, Xr(c), a];
3174
3174
  }.apply(this, arguments);
3175
3175
  return this._transaction.apply(this, e);
3176
3176
  }, ee.prototype._transaction = function(e, r, n) {
3177
- var a = this, s = B.trans;
3177
+ var a = this, s = L.trans;
3178
3178
  s && s.db === this && e.indexOf("!") === -1 || (s = null);
3179
3179
  var c, u, d = e.indexOf("?") !== -1;
3180
3180
  e = e.replace("!", "").replace("?", "");
@@ -3184,17 +3184,17 @@ function Ma() {
3184
3184
  return y;
3185
3185
  }), e == "r" || e === pr) c = pr;
3186
3186
  else {
3187
- if (e != "rw" && e != mr) throw new L.InvalidArgument("Invalid transaction mode: " + e);
3187
+ if (e != "rw" && e != mr) throw new B.InvalidArgument("Invalid transaction mode: " + e);
3188
3188
  c = mr;
3189
3189
  }
3190
3190
  if (s) {
3191
3191
  if (s.mode === pr && c === mr) {
3192
- if (!d) throw new L.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
3192
+ if (!d) throw new B.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
3193
3193
  s = null;
3194
3194
  }
3195
3195
  s && u.forEach(function(y) {
3196
3196
  if (s && s.storeNames.indexOf(y) === -1) {
3197
- if (!d) throw new L.SubTransaction("Table " + y + " not included in parent transaction.");
3197
+ if (!d) throw new B.SubTransaction("Table " + y + " not included in parent transaction.");
3198
3198
  s = null;
3199
3199
  }
3200
3200
  }), d && s && !s.active && (s = null);
@@ -3206,7 +3206,7 @@ function Ma() {
3206
3206
  }
3207
3207
  var p = function y(w, h, _, m, E) {
3208
3208
  return j.resolve().then(function() {
3209
- var O = B.transless || B, v = w._createTransaction(h, _, w._dbSchema, m);
3209
+ var O = L.transless || L, v = w._createTransaction(h, _, w._dbSchema, m);
3210
3210
  if (v.explicit = !0, O = { trans: v, transless: O }, m) v.idbtrans = m.idbtrans;
3211
3211
  else try {
3212
3212
  v.create(), v.idbtrans._explicit = !0, w._state.PR1398_maxLoop = 3;
@@ -3220,7 +3220,7 @@ function Ma() {
3220
3220
  var N;
3221
3221
  (A = E.call(v, v)) && (P ? (N = De.bind(null, null), A.then(N, N)) : typeof A.next == "function" && typeof A.throw == "function" && (A = $r(A)));
3222
3222
  }, O), (A && typeof A.then == "function" ? j.resolve(A).then(function(N) {
3223
- return v.active ? N : q(new L.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3223
+ return v.active ? N : q(new B.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3224
3224
  }) : O.then(function() {
3225
3225
  return A;
3226
3226
  })).then(function(N) {
@@ -3232,11 +3232,11 @@ function Ma() {
3232
3232
  });
3233
3233
  });
3234
3234
  }.bind(null, this, c, u, s, n);
3235
- return s ? s._promise(c, p, "lock") : B.trans ? Le(B.transless, function() {
3235
+ return s ? s._promise(c, p, "lock") : L.trans ? Be(L.transless, function() {
3236
3236
  return a._whenReady(p);
3237
3237
  }) : this._whenReady(p);
3238
3238
  }, ee.prototype.table = function(e) {
3239
- if (!re(this._allTables, e)) throw new L.InvalidTable("Table ".concat(e, " does not exist"));
3239
+ if (!re(this._allTables, e)) throw new B.InvalidTable("Table ".concat(e, " does not exist"));
3240
3240
  return this._allTables[e];
3241
3241
  }, ee);
3242
3242
  function ee(e, r) {
@@ -3249,7 +3249,7 @@ function Ma() {
3249
3249
  y.dbReadyResolve = h;
3250
3250
  }), y.openCanceller = new j(function(h, _) {
3251
3251
  y.cancelOpen = _;
3252
- }), this._state = y, this.name = e, this.on = ht(this, "populate", "blocked", "versionchange", "close", { ready: [or, Q] }), this.on.ready.subscribe = Vr(this.on.ready.subscribe, function(h) {
3252
+ }), this._state = y, this.name = e, this.on = ht(this, "populate", "blocked", "versionchange", "close", { ready: [or, Q] }), this.on.ready.subscribe = zr(this.on.ready.subscribe, function(h) {
3253
3253
  return function(_, m) {
3254
3254
  ee.vip(function() {
3255
3255
  var E, O = n._state;
@@ -3283,13 +3283,13 @@ function Ma() {
3283
3283
  })), this.Version = (d = this, ft(ma.prototype, function(h) {
3284
3284
  this.db = d, this._cfg = { version: h, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
3285
3285
  })), this.WhereClause = (p = this, ft(yn.prototype, function(h, _, m) {
3286
- if (this.db = p, this._ctx = { table: h, index: _ === ":id" ? null : _, or: m }, this._cmp = this._ascending = H, this._descending = function(E, O) {
3287
- return H(O, E);
3286
+ if (this.db = p, this._ctx = { table: h, index: _ === ":id" ? null : _, or: m }, this._cmp = this._ascending = V, this._descending = function(E, O) {
3287
+ return V(O, E);
3288
3288
  }, this._max = function(E, O) {
3289
- return 0 < H(E, O) ? E : O;
3289
+ return 0 < V(E, O) ? E : O;
3290
3290
  }, this._min = function(E, O) {
3291
- return H(E, O) < 0 ? E : O;
3292
- }, this._IDBKeyRange = p._deps.IDBKeyRange, !this._IDBKeyRange) throw new L.MissingAPI();
3291
+ return V(E, O) < 0 ? E : O;
3292
+ }, this._IDBKeyRange = p._deps.IDBKeyRange, !this._IDBKeyRange) throw new B.MissingAPI();
3293
3293
  })), this.on("versionchange", function(h) {
3294
3294
  0 < h.newVersion ? console.warn("Another connection wants to upgrade database '".concat(n.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(n.name, "'. Closing db now to resume the delete request.")), n.close({ disableAutoOpen: !1 });
3295
3295
  }), this.on("blocked", function(h) {
@@ -3343,7 +3343,7 @@ function Ma() {
3343
3343
  var h = !1, _ = function() {
3344
3344
  return gr(E);
3345
3345
  }, m = function(O) {
3346
- Vt(p, O), Rr(y, p) && _();
3346
+ zt(p, O), Rr(y, p) && _();
3347
3347
  }, E = function() {
3348
3348
  var O, v, A;
3349
3349
  !d && Jt.indexedDB && (p = {}, O = {}, u && u.abort(), u = new AbortController(), A = function(P) {
@@ -3376,8 +3376,8 @@ function Ma() {
3376
3376
  return r;
3377
3377
  }, a;
3378
3378
  }
3379
- var ze = Se;
3380
- function Br(e) {
3379
+ var He = Se;
3380
+ function Lr(e) {
3381
3381
  var r = xe;
3382
3382
  try {
3383
3383
  xe = !0, Re.storagemutated.fire(e), Cr(e, !0);
@@ -3385,17 +3385,17 @@ function Ma() {
3385
3385
  xe = r;
3386
3386
  }
3387
3387
  }
3388
- ge(ze, l(l({}, Pt), { delete: function(e) {
3389
- return new ze(e, { addons: [] }).delete();
3388
+ ge(He, l(l({}, Pt), { delete: function(e) {
3389
+ return new He(e, { addons: [] }).delete();
3390
3390
  }, exists: function(e) {
3391
- return new ze(e, { addons: [] }).open().then(function(r) {
3391
+ return new He(e, { addons: [] }).open().then(function(r) {
3392
3392
  return r.close(), !0;
3393
3393
  }).catch("NoSuchDatabaseError", function() {
3394
3394
  return !1;
3395
3395
  });
3396
3396
  }, getDatabaseNames: function(e) {
3397
3397
  try {
3398
- return r = ze.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Dr(n) ? Promise.resolve(n.databases()).then(function(a) {
3398
+ return r = He.dependencies, n = r.indexedDB, r = r.IDBKeyRange, (Dr(n) ? Promise.resolve(n.databases()).then(function(a) {
3399
3399
  return a.map(function(s) {
3400
3400
  return s.name;
3401
3401
  }).filter(function(s) {
@@ -3403,7 +3403,7 @@ function Ma() {
3403
3403
  });
3404
3404
  }) : Nr(n, r).toCollection().primaryKeys()).then(e);
3405
3405
  } catch {
3406
- return q(new L.MissingAPI());
3406
+ return q(new B.MissingAPI());
3407
3407
  }
3408
3408
  var r, n;
3409
3409
  }, defineClass: function() {
@@ -3411,7 +3411,7 @@ function Ma() {
3411
3411
  te(this, e);
3412
3412
  };
3413
3413
  }, ignoreTransaction: function(e) {
3414
- return B.trans ? Le(B.transless, e) : e();
3414
+ return L.trans ? Be(L.transless, e) : e();
3415
3415
  }, vip: Ir, async: function(e) {
3416
3416
  return function() {
3417
3417
  try {
@@ -3429,31 +3429,31 @@ function Ma() {
3429
3429
  return q(s);
3430
3430
  }
3431
3431
  }, currentTransaction: { get: function() {
3432
- return B.trans || null;
3432
+ return L.trans || null;
3433
3433
  } }, waitFor: function(e, r) {
3434
- return r = j.resolve(typeof e == "function" ? ze.ignoreTransaction(e) : e).timeout(r || 6e4), B.trans ? B.trans.waitFor(r) : r;
3434
+ return r = j.resolve(typeof e == "function" ? He.ignoreTransaction(e) : e).timeout(r || 6e4), L.trans ? L.trans.waitFor(r) : r;
3435
3435
  }, Promise: j, debug: { get: function() {
3436
3436
  return me;
3437
3437
  }, set: function(e) {
3438
3438
  en(e);
3439
- } }, derive: Ve, extend: te, props: ge, override: Vr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: Vt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3439
+ } }, derive: ze, extend: te, props: ge, override: zr, Events: ht, on: Re, liveQuery: xn, extendObservabilitySet: zt, getByKeyPath: ve, setByKeyPath: le, delByKeyPath: function(e, r) {
3440
3440
  typeof r == "string" ? le(e, r, void 0) : "length" in r && [].map.call(r, function(n) {
3441
3441
  le(e, n, void 0);
3442
3442
  });
3443
- }, shallowClone: Qr, deepClone: Ce, getObjectDiff: jr, cmp: H, asap: Yr, minKey: -1 / 0, addons: [], connections: et, errnames: sr, dependencies: Jt, cache: Fe, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3443
+ }, shallowClone: Qr, deepClone: Ce, getObjectDiff: jr, cmp: V, asap: Yr, minKey: -1 / 0, addons: [], connections: et, errnames: sr, dependencies: Jt, cache: Fe, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
3444
3444
  return parseInt(e);
3445
3445
  }).reduce(function(e, r, n) {
3446
3446
  return e + r / Math.pow(10, 2 * n);
3447
- }) })), ze.maxKey = yt(ze.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Re(mt, function(e) {
3447
+ }) })), He.maxKey = yt(He.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Re(mt, function(e) {
3448
3448
  xe || (e = new CustomEvent(Er, { detail: e }), xe = !0, dispatchEvent(e), xe = !1);
3449
3449
  }), addEventListener(Er, function(e) {
3450
- e = e.detail, xe || Br(e);
3450
+ e = e.detail, xe || Lr(e);
3451
3451
  }));
3452
3452
  var nt, xe = !1, kn = function() {
3453
3453
  };
3454
3454
  return typeof BroadcastChannel < "u" && ((kn = function() {
3455
3455
  (nt = new BroadcastChannel(Er)).onmessage = function(e) {
3456
- return e.data && Br(e.data);
3456
+ return e.data && Lr(e.data);
3457
3457
  };
3458
3458
  })(), typeof nt.unref == "function" && nt.unref(), Re(mt, function(e) {
3459
3459
  xe || nt.postMessage(e);
@@ -3463,12 +3463,12 @@ function Ma() {
3463
3463
  for (var r = 0, n = et; r < n.length; r++) n[r].close({ disableAutoOpen: !1 });
3464
3464
  }
3465
3465
  }), addEventListener("pageshow", function(e) {
3466
- !Se.disableBfCache && e.persisted && (me && console.debug("Dexie: handling persisted pageshow"), kn(), Br({ all: new oe(-1 / 0, [[]]) }));
3466
+ !Se.disableBfCache && e.persisted && (me && console.debug("Dexie: handling persisted pageshow"), kn(), Lr({ all: new oe(-1 / 0, [[]]) }));
3467
3467
  })), j.rejectionMapper = function(e, r) {
3468
3468
  return !e || e instanceof Qe || e instanceof TypeError || e instanceof SyntaxError || !e.name || !qr[e.name] ? e : (r = new qr[e.name](r || e.message, e), "stack" in e && Ae(r, "stack", { get: function() {
3469
3469
  return this.inner.stack;
3470
3470
  } }), r);
3471
- }, en(me), l(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: xn, Entity: un, cmp: H, PropModification: gt, replacePrefix: function(e, r) {
3471
+ }, en(me), l(Se, Object.freeze({ __proto__: null, Dexie: Se, liveQuery: xn, Entity: un, cmp: V, PropModification: gt, replacePrefix: function(e, r) {
3472
3472
  return new gt({ replacePrefix: [e, r] });
3473
3473
  }, add: function(e) {
3474
3474
  return new gt({ add: e });
@@ -3483,13 +3483,13 @@ const Fr = /* @__PURE__ */ $a(Ga), $n = Symbol.for("Dexie"), wt = globalThis[$n]
3483
3483
  if (Fr.semVer !== wt.semVer)
3484
3484
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Fr.semVer} and ${wt.semVer}`);
3485
3485
  const {
3486
- liveQuery: La,
3486
+ liveQuery: Ba,
3487
3487
  mergeRanges: Ua,
3488
3488
  rangesOverlap: Wa,
3489
3489
  RangeSet: Fa,
3490
- cmp: za,
3491
- Entity: Ha,
3492
- PropModification: Va,
3490
+ cmp: Ha,
3491
+ Entity: Va,
3492
+ PropModification: za,
3493
3493
  replacePrefix: Ya,
3494
3494
  add: Qa,
3495
3495
  remove: Xa
@@ -4214,7 +4214,7 @@ class Mn {
4214
4214
  * @returns IResponse
4215
4215
  */
4216
4216
  getPreferences = async (t) => {
4217
- const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(S.SLIDE).toArray().then((b) => t?.id ? b.filter(i) : b);
4217
+ const i = (b) => t?.id ? t.id = b.id : !1, g = await this.db.table(S.PREFERENCE).toArray().then((b) => t?.id ? b.filter(i) : b);
4218
4218
  return g !== void 0 && G(3, [
4219
4219
  "%cstorage%c %cpreferences",
4220
4220
  o.STORAGE,
@@ -4300,7 +4300,7 @@ class Mn {
4300
4300
  success: !1
4301
4301
  }));
4302
4302
  }
4303
- function zr(f) {
4303
+ function Hr(f) {
4304
4304
  return new Promise((t, i) => {
4305
4305
  f.oncomplete = f.onsuccess = () => t(f.result), f.onabort = f.onerror = () => i(f.error);
4306
4306
  });
@@ -4311,7 +4311,7 @@ function Ka(f, t) {
4311
4311
  if (i)
4312
4312
  return i;
4313
4313
  const g = indexedDB.open(f);
4314
- return g.onupgradeneeded = () => g.result.createObjectStore(t), i = zr(g), i.then((b) => {
4314
+ return g.onupgradeneeded = () => g.result.createObjectStore(t), i = Hr(g), i.then((b) => {
4315
4315
  b.onclose = () => i = void 0;
4316
4316
  }, () => {
4317
4317
  }), i;
@@ -4323,10 +4323,10 @@ function Gn() {
4323
4323
  return Wr || (Wr = Ka("keyval-store", "keyval")), Wr;
4324
4324
  }
4325
4325
  function _e(f, t = Gn()) {
4326
- return t("readonly", (i) => zr(i.get(f)));
4326
+ return t("readonly", (i) => Hr(i.get(f)));
4327
4327
  }
4328
4328
  function ke(f, t, i = Gn()) {
4329
- return i("readwrite", (l) => (l.put(t, f), zr(l.transaction)));
4329
+ return i("readwrite", (l) => (l.put(t, f), Hr(l.transaction)));
4330
4330
  }
4331
4331
  class Kn {
4332
4332
  subscribers = [];
@@ -4627,7 +4627,7 @@ class Kn {
4627
4627
  success: !1
4628
4628
  });
4629
4629
  }
4630
- class Bn {
4630
+ class Ln {
4631
4631
  subscribers = [];
4632
4632
  options;
4633
4633
  constructor(t) {
@@ -4965,7 +4965,7 @@ class Bn {
4965
4965
  success: !1
4966
4966
  });
4967
4967
  }
4968
- class Ln {
4968
+ class Bn {
4969
4969
  subscribers = [];
4970
4970
  options;
4971
4971
  constructor(t) {
@@ -5312,7 +5312,7 @@ class Un {
5312
5312
  subscribers = [];
5313
5313
  options;
5314
5314
  constructor(t) {
5315
- this.options = t, window.BuzzCasting.WidgetData = /* @__PURE__ */ new Set();
5315
+ this.options = t, window.__bc.WidgetData = /* @__PURE__ */ new Set();
5316
5316
  }
5317
5317
  getHash = async (t, i) => "none";
5318
5318
  setHash = async (t, i) => 404;
@@ -5320,7 +5320,7 @@ class Un {
5320
5320
  getCloud = async (t) => {
5321
5321
  const i = Y(t);
5322
5322
  try {
5323
- return window.BuzzCasting.WidgetData[i];
5323
+ return window.__bc.WidgetData[i];
5324
5324
  } catch (l) {
5325
5325
  return console.warn(
5326
5326
  "%capi",
@@ -5335,7 +5335,7 @@ class Un {
5335
5335
  getSeries = async (t) => {
5336
5336
  const i = Y(t);
5337
5337
  try {
5338
- return window.BuzzCasting.WidgetData[i];
5338
+ return window.__bc.WidgetData[i];
5339
5339
  } catch (l) {
5340
5340
  return console.warn(
5341
5341
  "%capi",
@@ -5350,7 +5350,7 @@ class Un {
5350
5350
  getMessages = async (t) => {
5351
5351
  const i = Y(t);
5352
5352
  try {
5353
- return window.BuzzCasting.WidgetData[i];
5353
+ return window.__bc.WidgetData[i];
5354
5354
  } catch (l) {
5355
5355
  return console.warn(
5356
5356
  "%capi",
@@ -5371,7 +5371,7 @@ class Un {
5371
5371
  setCloud = async (t, i) => {
5372
5372
  const l = Y(t);
5373
5373
  try {
5374
- return window.BuzzCasting.WidgetData[l] = i, 201;
5374
+ return window.__bc.WidgetData[l] = i, 201;
5375
5375
  } catch (g) {
5376
5376
  return console.error("%cstorage", o.STORAGE, "set", t, g), 400;
5377
5377
  }
@@ -5385,7 +5385,7 @@ class Un {
5385
5385
  setSeries = async (t, i) => {
5386
5386
  const l = Y(t);
5387
5387
  try {
5388
- return window.BuzzCasting.WidgetData[l] = i, 201;
5388
+ return window.__bc.WidgetData[l] = i, 201;
5389
5389
  } catch (g) {
5390
5390
  return console.error("%cstorage", o.STORAGE, "set", t, g), 400;
5391
5391
  }
@@ -5399,7 +5399,7 @@ class Un {
5399
5399
  setMessages = async (t, i) => {
5400
5400
  const l = Y(t);
5401
5401
  try {
5402
- return window.BuzzCasting.WidgetData[l] = i, 201;
5402
+ return window.__bc.WidgetData[l] = i, 201;
5403
5403
  } catch (g) {
5404
5404
  return console.error("%cstorage", o.STORAGE, "set", t, g), 400;
5405
5405
  }
@@ -5412,7 +5412,7 @@ class Un {
5412
5412
  };
5413
5413
  getDashboard = async (t) => {
5414
5414
  try {
5415
- return window.BuzzCasting.DashboardData[t.id];
5415
+ return window.__bc.DashboardData[t.id];
5416
5416
  } catch (i) {
5417
5417
  return console.warn("%capi", o.API, S.DASHBOARD, t.id, i), {
5418
5418
  data: null,
@@ -5429,7 +5429,7 @@ class Un {
5429
5429
  setDashboard = async (t) => {
5430
5430
  const i = `widget.${t.widget}`;
5431
5431
  try {
5432
- return window.BuzzCasting.DashboardData[i] = t, {
5432
+ return window.__bc.DashboardData[i] = t, {
5433
5433
  data: null,
5434
5434
  message: `Dashboard ${t.data.id} saved to storage`,
5435
5435
  success: !0
@@ -5444,7 +5444,7 @@ class Un {
5444
5444
  };
5445
5445
  getWidget = async (t) => {
5446
5446
  try {
5447
- return window.BuzzCasting.WidgetData[t.id];
5447
+ return window.__bc.WidgetData[t.id];
5448
5448
  } catch (i) {
5449
5449
  return console.warn("%capi", o.API, S.WIDGET, t.id, i), {
5450
5450
  data: null,
@@ -5461,7 +5461,7 @@ class Un {
5461
5461
  setWidget = async (t) => {
5462
5462
  const i = `widget.${t.widget}`;
5463
5463
  try {
5464
- return window.BuzzCasting.WidgetData[i] = t, {
5464
+ return window.__bc.WidgetData[i] = t, {
5465
5465
  data: null,
5466
5466
  message: `Widget ${t.data.id} saved to storage`,
5467
5467
  success: !0
@@ -5496,7 +5496,7 @@ class Un {
5496
5496
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
5497
5497
  getSlide = async (t) => {
5498
5498
  try {
5499
- return window.BuzzCasting.SlideData[t.id];
5499
+ return window.__bc.SlideData[t.id];
5500
5500
  } catch (i) {
5501
5501
  return console.warn("%capi", o.API, S.SLIDE, t.id, i), {
5502
5502
  data: null,
@@ -5507,7 +5507,7 @@ class Un {
5507
5507
  };
5508
5508
  getSlides = async (t) => {
5509
5509
  try {
5510
- return window.BuzzCasting.SlideData.filter(
5510
+ return window.__bc.SlideData.filter(
5511
5511
  (i) => i.presentation_id === t.presentation
5512
5512
  );
5513
5513
  } catch (i) {
@@ -5526,7 +5526,7 @@ class Un {
5526
5526
  };
5527
5527
  setSlide = async (t) => {
5528
5528
  try {
5529
- return window.BuzzCasting.SlideData[t.id] = {
5529
+ return window.__bc.SlideData[t.id] = {
5530
5530
  id: t.slide,
5531
5531
  title: t.data.title || "Not set",
5532
5532
  json: t.data.json || {},
@@ -5547,7 +5547,7 @@ class Un {
5547
5547
  getPresentation = async (t) => {
5548
5548
  try {
5549
5549
  const i = t.presentation || "none";
5550
- return window.BuzzCasting.PresentationData[i];
5550
+ return window.__bc.PresentationData[i];
5551
5551
  } catch (i) {
5552
5552
  return console.warn(
5553
5553
  "%capi",
@@ -5564,7 +5564,7 @@ class Un {
5564
5564
  };
5565
5565
  getPresentations = async () => {
5566
5566
  try {
5567
- return window.BuzzCasting.PresentationData;
5567
+ return window.__bc.PresentationData;
5568
5568
  } catch (t) {
5569
5569
  return console.warn("%capi", o.API, S.PRESENTATION, t), {
5570
5570
  data: null,
@@ -5575,7 +5575,7 @@ class Un {
5575
5575
  };
5576
5576
  setPresentation = async (t) => {
5577
5577
  try {
5578
- return window.BuzzCasting.PresentationData[t.id] = t.data, {
5578
+ return window.__bc.PresentationData[t.id] = t.data, {
5579
5579
  data: null,
5580
5580
  message: `Presentation ${t.data.id} saved to storage`,
5581
5581
  success: !0
@@ -5590,7 +5590,7 @@ class Un {
5590
5590
  };
5591
5591
  getPreference = async (t) => {
5592
5592
  try {
5593
- return window.BuzzCasting.Preferences[t.id];
5593
+ return window.__bc.Preferences[t.id];
5594
5594
  } catch (i) {
5595
5595
  return console.warn("%capi", o.API, S.PREFERENCE, t.id, i), {
5596
5596
  data: null,
@@ -5601,7 +5601,7 @@ class Un {
5601
5601
  };
5602
5602
  getPreferences = async () => {
5603
5603
  try {
5604
- return window.BuzzCasting.Preferences;
5604
+ return window.__bc.Preferences;
5605
5605
  } catch (t) {
5606
5606
  return console.warn("%capi", o.API, S.PREFERENCE, t), {
5607
5607
  data: null,
@@ -5612,7 +5612,7 @@ class Un {
5612
5612
  };
5613
5613
  setPreference = async (t) => {
5614
5614
  try {
5615
- return window.BuzzCasting.Preferences[t.id] = t.value, {
5615
+ return window.__bc.Preferences[t.id] = t.value, {
5616
5616
  data: null,
5617
5617
  message: `Preference ${t.id} saved to storage`,
5618
5618
  success: !0
@@ -5661,10 +5661,10 @@ class Ja {
5661
5661
  this.sm = new Mn(t);
5662
5662
  break;
5663
5663
  case pe.LOCAL:
5664
- this.sm = new Ln(t);
5664
+ this.sm = new Bn(t);
5665
5665
  break;
5666
5666
  case pe.SESSION:
5667
- this.sm = new Bn(t);
5667
+ this.sm = new Ln(t);
5668
5668
  break;
5669
5669
  case pe.KEYVAL:
5670
5670
  this.sm = new Kn(t);
@@ -5932,7 +5932,7 @@ class Ja {
5932
5932
  getHash = async (t, i) => await this.sm?.getHash(t, i);
5933
5933
  setHash = async (t, i) => await this.sm?.setHash(t, i) ?? 400;
5934
5934
  }
5935
- class Ba {
5935
+ class La {
5936
5936
  sm;
5937
5937
  constructor(t) {
5938
5938
  switch (this.sm = null, t.storage) {
@@ -5940,10 +5940,10 @@ class Ba {
5940
5940
  this.sm = new Mn(t);
5941
5941
  break;
5942
5942
  case pe.LOCAL:
5943
- this.sm = new Ln(t);
5943
+ this.sm = new Bn(t);
5944
5944
  break;
5945
5945
  case pe.SESSION:
5946
- this.sm = new Bn(t);
5946
+ this.sm = new Ln(t);
5947
5947
  break;
5948
5948
  case pe.KEYVAL:
5949
5949
  this.sm = new Kn(t);
@@ -6031,8 +6031,8 @@ class Za {
6031
6031
  this.element = t, this.callbacks = i, l = typeof l < "u" ? l : "buzzcasting-app";
6032
6032
  const g = { ...t.dataset };
6033
6033
  delete g.hmr;
6034
- const b = window.BuzzCasting.getOptions();
6035
- g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Na(t), this.storageReader = new Ba(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
6034
+ const b = window.__bc.opts;
6035
+ g.presentation = b?.presentation ?? `${l} not found`, this.query = g, Na(t), this.storageReader = new La(b), this.broadcastChannel = new BroadcastChannel(g.presentation), this.broadcastListener();
6036
6036
  }
6037
6037
  addCallbackListener(t) {
6038
6038
  this.callbacks.push(t);
@@ -6234,6 +6234,6 @@ class Za {
6234
6234
  }
6235
6235
  export {
6236
6236
  Ja as BuzzcastingStorageManager,
6237
- Ba as BuzzcastingStorageReader,
6237
+ La as BuzzcastingStorageReader,
6238
6238
  Za as Widget
6239
6239
  };