@nylas/react 1.1.3 → 1.1.4

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.
Files changed (168) hide show
  1. package/dist/add-circle-icon_2.entry-6753bd65.js +25 -0
  2. package/dist/add-circle-icon_2.entry-cd9a7f37.cjs +1 -0
  3. package/dist/archive-icon.entry-434d1696.js +15 -0
  4. package/dist/archive-icon.entry-7cb1c265.cjs +1 -0
  5. package/dist/arrow-icon.entry-20b50784.js +15 -0
  6. package/dist/{arrow-icon.entry-2dfd8319.cjs → arrow-icon.entry-83c3105b.cjs} +1 -1
  7. package/dist/bold-icon.entry-0e3d84e1.cjs +1 -0
  8. package/dist/bold-icon.entry-34b18d0d.js +15 -0
  9. package/dist/{button-component_2.entry-27a504d9.cjs → button-component_2.entry-54101987.cjs} +1 -1
  10. package/dist/{button-component_2.entry-697bf5ac.js → button-component_2.entry-8a5e99da.js} +9 -9
  11. package/dist/{calendar-agenda-fill-icon_51.entry-a25262b3.cjs → calendar-agenda-fill-icon_51.entry-1920adc2.cjs} +2 -2
  12. package/dist/{calendar-agenda-fill-icon_51.entry-52b5bf31.js → calendar-agenda-fill-icon_51.entry-a351dca5.js} +87 -87
  13. package/dist/{calendar-cancel-icon.entry-c6e2eed6.cjs → calendar-cancel-icon.entry-00756264.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-e6a433a2.js → calendar-cancel-icon.entry-f83e9b41.js} +2 -2
  15. package/dist/{calendar-check-icon_2.entry-d88307d6.js → calendar-check-icon_2.entry-1817540c.js} +7 -7
  16. package/dist/{calendar-check-icon_2.entry-45cad6f1.cjs → calendar-check-icon_2.entry-6ac948fc.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-2badc962.js → calendar-icon.entry-362428bf.js} +4 -4
  18. package/dist/{calendar-icon.entry-b2fffd21.cjs → calendar-icon.entry-68e53f52.cjs} +1 -1
  19. package/dist/{checkbox-component_2.entry-5ab55050.js → checkbox-component_2.entry-0d7c1916.js} +3 -3
  20. package/dist/{checkbox-component_2.entry-3926b644.cjs → checkbox-component_2.entry-5ce9807d.cjs} +1 -1
  21. package/dist/{chevron-icon_3.entry-664fae5d.js → chevron-icon_3.entry-37c087a7.js} +6 -6
  22. package/dist/{chevron-icon_3.entry-1fe5d097.cjs → chevron-icon_3.entry-89c52603.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-f11f9dad.js → clock-icon_4.entry-2e78febe.js} +15 -15
  24. package/dist/{clock-icon_4.entry-efec2c08.cjs → clock-icon_4.entry-496058ef.cjs} +1 -1
  25. package/dist/{constants-50c3e067-33cf0ffe.js → constants-c31dccfe-04b9cd8a.js} +2 -2
  26. package/dist/{constants-50c3e067-5ec3f879.cjs → constants-c31dccfe-1a739653.cjs} +2 -2
  27. package/dist/{copy-icon.entry-70131e8e.js → copy-icon.entry-6d4e05b0.js} +7 -7
  28. package/dist/{copy-icon.entry-3965f206.cjs → copy-icon.entry-a1baee33.cjs} +1 -1
  29. package/dist/{delete-icon.entry-5d067fef.cjs → delete-icon.entry-e98b336e.cjs} +1 -1
  30. package/dist/{delete-icon.entry-e003695d.js → delete-icon.entry-ea06b42a.js} +5 -5
  31. package/dist/document-refresh-icon.entry-09750b52.cjs +1 -0
  32. package/dist/document-refresh-icon.entry-afae6621.js +15 -0
  33. package/dist/elements/index.d.ts +0 -11
  34. package/dist/feedbackSync-ab657d65-e650e46d.cjs +448 -0
  35. package/dist/feedbackSync-ab657d65-e8b7c001.js +6035 -0
  36. package/dist/folder-icon.entry-5c3f4e8f.cjs +1 -0
  37. package/dist/folder-icon.entry-6096fbf4.js +15 -0
  38. package/dist/forward-icon.entry-4089e3bb.cjs +1 -0
  39. package/dist/forward-icon.entry-da319c05.js +15 -0
  40. package/dist/{globe-icon.entry-6fc456c7.js → globe-icon.entry-59f4c2f9.js} +7 -7
  41. package/dist/{globe-icon.entry-8c3c9e48.cjs → globe-icon.entry-e8ca972e.cjs} +1 -1
  42. package/dist/{google-logo-icon_4.entry-d6e0c4c0.js → google-logo-icon_4.entry-d4b8926f.js} +39 -39
  43. package/dist/google-logo-icon_4.entry-e2001f83.cjs +1 -0
  44. package/dist/inbox-icon.entry-70dae5ec.js +15 -0
  45. package/dist/inbox-icon.entry-80ee9082.cjs +1 -0
  46. package/dist/{index-11f33e47.cjs → index-6b9d4b01.cjs} +30 -31
  47. package/dist/{index-a282e817.js → index-e475e0c0.js} +2547 -2622
  48. package/dist/index.d.ts +1 -1
  49. package/dist/{index.es-ab9affcc-18263b66.cjs → index.es-b475d61f-68a74a28.cjs} +5 -5
  50. package/dist/{index.es-ab9affcc-30461b18.js → index.es-b475d61f-bfa2cba2.js} +125 -131
  51. package/dist/{info-icon_2.entry-d20b975c.js → info-icon_2.entry-2bb60213.js} +5 -5
  52. package/dist/{info-icon_2.entry-e582ac10.cjs → info-icon_2.entry-f1b1dfba.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-27f4288f.js → input-color-picker.entry-5ae45a9e.js} +3 -3
  54. package/dist/{input-color-picker.entry-c6a28671.cjs → input-color-picker.entry-b669f7fb.cjs} +1 -1
  55. package/dist/{input-component.entry-b6f1c417.js → input-component.entry-cb958501.js} +2 -2
  56. package/dist/{input-component.entry-744fcec1.cjs → input-component.entry-eeb95361.cjs} +1 -1
  57. package/dist/{input-dropdown.entry-f13234d7.cjs → input-dropdown.entry-0b458f68.cjs} +1 -1
  58. package/dist/{input-dropdown.entry-18744def.js → input-dropdown.entry-962605f8.js} +4 -4
  59. package/dist/italic-icon.entry-4a89e289.cjs +1 -0
  60. package/dist/italic-icon.entry-5be07509.js +15 -0
  61. package/dist/{multi-select-dropdown.entry-924809e1.js → multi-select-dropdown.entry-3084e1fc.js} +2 -2
  62. package/dist/{multi-select-dropdown.entry-dde671d7.cjs → multi-select-dropdown.entry-a66408a2.cjs} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-227ccf31.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-52c3111d.js → nylas-booked-event-card_12.entry-29e2a4b1.js} +64 -63
  65. package/dist/{nylas-form-card.entry-b0a2403f.js → nylas-form-card.entry-33b4c295.js} +11 -11
  66. package/dist/{nylas-form-card.entry-ab61fdc5.cjs → nylas-form-card.entry-8465eccf.cjs} +1 -1
  67. package/dist/{nylas-if-state.entry-523fdc6b.js → nylas-if-state.entry-9d96fc87.js} +2 -2
  68. package/dist/{nylas-if-state.entry-53883c36.cjs → nylas-if-state.entry-adb6103a.cjs} +1 -1
  69. package/dist/{nylas-login.entry-d9bf3974.js → nylas-login.entry-3f7c195e.js} +7 -7
  70. package/dist/{nylas-login.entry-05e1df3e.cjs → nylas-login.entry-78b968d1.cjs} +1 -1
  71. package/dist/nylas-provider.entry-19635620.js +264 -0
  72. package/dist/nylas-provider.entry-b918d0f6.cjs +1 -0
  73. package/dist/nylas-reminder-emails.entry-ec79b757.js +168 -0
  74. package/dist/nylas-reminder-emails.entry-ee76db24.cjs +4 -0
  75. package/dist/{nylas-reminder-time_2.entry-9589d5f2.js → nylas-reminder-time_2.entry-105de2d0.js} +42 -39
  76. package/dist/nylas-reminder-time_2.entry-83ecc1d4.cjs +1 -0
  77. package/dist/{nylas-scheduler-editor.entry-1a2f3ee0.cjs → nylas-scheduler-editor.entry-cfed7ae2.cjs} +2 -2
  78. package/dist/{nylas-scheduler-editor.entry-b434b526.js → nylas-scheduler-editor.entry-e848771f.js} +3 -3
  79. package/dist/{nylas-scheduling.entry-b71080c8.js → nylas-scheduling.entry-da987c02.js} +19 -19
  80. package/dist/nylas-scheduling.entry-e989cf9e.cjs +1 -0
  81. package/dist/{nylas-time-window-picker.entry-a6d1c648.cjs → nylas-time-window-picker.entry-1f76b577.cjs} +1 -1
  82. package/dist/{nylas-time-window-picker.entry-c1ee860a.js → nylas-time-window-picker.entry-3c6b29d9.js} +20 -20
  83. package/dist/{person-icon.entry-8833e3cc.js → person-icon.entry-79fcd9fb.js} +2 -2
  84. package/dist/{person-icon.entry-80c9022e.cjs → person-icon.entry-82bbb87c.cjs} +1 -1
  85. package/dist/play-icon.entry-3f357ea4.cjs +1 -0
  86. package/dist/play-icon.entry-97b40470.js +15 -0
  87. package/dist/react.cjs +1 -1
  88. package/dist/react.js +93 -104
  89. package/dist/{refresh-icon.entry-4d6791bd.js → refresh-icon.entry-1427a5e6.js} +4 -4
  90. package/dist/{refresh-icon.entry-d4cc16b7.cjs → refresh-icon.entry-7ce5ec90.cjs} +1 -1
  91. package/dist/{register-component-a7ea27ad-2343f3df.cjs → register-component-679c1308-b5a96acf.cjs} +1 -1
  92. package/dist/{register-component-a7ea27ad-fa2c4b17.js → register-component-679c1308-de697ecb.js} +1 -1
  93. package/dist/reply-all-icon.entry-cf8114db.cjs +1 -0
  94. package/dist/reply-all-icon.entry-f1165660.js +15 -0
  95. package/dist/reply-icon.entry-3a601cff.js +15 -0
  96. package/dist/reply-icon.entry-3db337c9.cjs +1 -0
  97. package/dist/{scheduler-config-store-2a3b403d-5176cd45.js → scheduler-config-store-2a3b403d-e5210f72.js} +1 -1
  98. package/dist/{scheduler-config-store-2a3b403d-2263f999.cjs → scheduler-config-store-2a3b403d-e6f5bcab.cjs} +1 -1
  99. package/dist/{scheduler-store-33ab8dea-a0b39d36.cjs → scheduler-store-908886c8-62d14677.cjs} +1 -1
  100. package/dist/{scheduler-store-33ab8dea-9801357a.js → scheduler-store-908886c8-b0f43cb9.js} +1 -1
  101. package/dist/sent-icon.entry-2c7bd48e.js +15 -0
  102. package/dist/sent-icon.entry-708b9a2b.cjs +1 -0
  103. package/dist/spam-icon.entry-3106ed3d.js +15 -0
  104. package/dist/spam-icon.entry-fa8b80c6.cjs +1 -0
  105. package/dist/star-icon.entry-88501c8b.cjs +1 -0
  106. package/dist/star-icon.entry-b15601ca.js +15 -0
  107. package/dist/stop-icon.entry-3475e257.cjs +1 -0
  108. package/dist/stop-icon.entry-f926a8db.js +15 -0
  109. package/dist/{textarea-component.entry-019e75d0.cjs → textarea-component.entry-683c2959.cjs} +1 -1
  110. package/dist/{textarea-component.entry-174089bc.js → textarea-component.entry-d1f4dd9a.js} +2 -2
  111. package/dist/{time-period-selector.entry-8466d0f2.cjs → time-period-selector.entry-8cfdf750.cjs} +1 -1
  112. package/dist/{time-period-selector.entry-62c854d1.js → time-period-selector.entry-e97f86fd.js} +4 -4
  113. package/dist/{translate-icon.entry-73f7127b.js → translate-icon.entry-09c5574f.js} +4 -4
  114. package/dist/{translate-icon.entry-7d5cf4b8.cjs → translate-icon.entry-5757c37c.cjs} +1 -1
  115. package/dist/trash-fill-icon.entry-470ec1ff.js +15 -0
  116. package/dist/trash-fill-icon.entry-4bbfabcc.cjs +1 -0
  117. package/dist/underline-icon.entry-6d729068.cjs +1 -0
  118. package/dist/underline-icon.entry-9fe74ba7.js +15 -0
  119. package/dist/{warning-icon.entry-92638eeb.cjs → warning-icon.entry-c1d48318.cjs} +1 -1
  120. package/dist/{warning-icon.entry-abf896c3.js → warning-icon.entry-d924f8f9.js} +5 -5
  121. package/package.json +2 -2
  122. package/dist/add-circle-icon_2.entry-b77120e5.cjs +0 -1
  123. package/dist/add-circle-icon_2.entry-fbc1e82b.js +0 -25
  124. package/dist/archive-icon_7.entry-30962e70.js +0 -75
  125. package/dist/archive-icon_7.entry-dd8c7642.cjs +0 -1
  126. package/dist/arrow-icon.entry-5b436054.js +0 -15
  127. package/dist/bold-icon_3.entry-5120a9c8.js +0 -35
  128. package/dist/bold-icon_3.entry-da2d1270.cjs +0 -1
  129. package/dist/document-refresh-icon.entry-30c974df.cjs +0 -1
  130. package/dist/document-refresh-icon.entry-b4e01cd4.js +0 -15
  131. package/dist/elements-dc5b338e-55823d00.js +0 -28031
  132. package/dist/elements-dc5b338e-6883a39e.cjs +0 -16516
  133. package/dist/feedbackSync-81d4c4d8-dd4d2e32.js +0 -11735
  134. package/dist/feedbackSync-81d4c4d8-f4e78902.cjs +0 -455
  135. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  136. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  137. package/dist/focus-visible-e8093c16-431bbe59.cjs +0 -1
  138. package/dist/focus-visible-e8093c16-f403fee8.js +0 -84
  139. package/dist/forward-icon_6.entry-3bb91d58.js +0 -953
  140. package/dist/forward-icon_6.entry-ceec2371.cjs +0 -3
  141. package/dist/google-logo-icon_4.entry-4eb16cd2.cjs +0 -1
  142. package/dist/mailbox-store-affca6de-9451094e.cjs +0 -1
  143. package/dist/mailbox-store-affca6de-d601dc6b.js +0 -380
  144. package/dist/nylas-booked-event-card_12.entry-d89c1f9d.cjs +0 -1
  145. package/dist/nylas-list-folders.entry-4ef6cb3d.cjs +0 -1
  146. package/dist/nylas-list-folders.entry-e37d069f.js +0 -120
  147. package/dist/nylas-list-threads.entry-3be623e9.cjs +0 -1
  148. package/dist/nylas-list-threads.entry-8ba62db8.js +0 -70
  149. package/dist/nylas-mailbox-pagination.entry-3dd05cf4.cjs +0 -1
  150. package/dist/nylas-mailbox-pagination.entry-50d9d9e3.js +0 -101
  151. package/dist/nylas-mailbox-toolbar-button.entry-9a77d137.js +0 -82
  152. package/dist/nylas-mailbox-toolbar-button.entry-d87b55de.cjs +0 -1
  153. package/dist/nylas-mailbox.entry-cb7d1031.js +0 -134
  154. package/dist/nylas-mailbox.entry-f7db9aa8.cjs +0 -1
  155. package/dist/nylas-provider.entry-1716bf48.cjs +0 -1
  156. package/dist/nylas-provider.entry-7aa46ea2.js +0 -145
  157. package/dist/nylas-reminder-emails.entry-88a862cd.cjs +0 -4
  158. package/dist/nylas-reminder-emails.entry-a86231b7.js +0 -129
  159. package/dist/nylas-reminder-time_2.entry-bc76d4ab.cjs +0 -1
  160. package/dist/nylas-scheduling.entry-59e5e8c1.cjs +0 -1
  161. package/dist/nylas-threads-refresh.entry-544ca90a.js +0 -74
  162. package/dist/nylas-threads-refresh.entry-7ada7b2d.cjs +0 -1
  163. package/dist/nylas-threads-search.entry-181ba46a.js +0 -69
  164. package/dist/nylas-threads-search.entry-f1cb19e4.cjs +0 -1
  165. package/dist/nylas-view-thread.entry-6ae8dd64.cjs +0 -1
  166. package/dist/nylas-view-thread.entry-c066f522.js +0 -203
  167. package/dist/play-icon_2.entry-801c85bc.cjs +0 -1
  168. package/dist/play-icon_2.entry-efca8f00.js +0 -25
@@ -1,4 +1,4 @@
1
- import { o as nr, d as T, u as rr, q as hn } from "./index-a282e817.js";
1
+ import { l as nr, d as T, u as rr, m as hn } from "./index-e475e0c0.js";
2
2
  class sr {
3
3
  constructor(e, n, r = !0, s) {
4
4
  this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = e, this.stores = n, this.automaticComponentRegistration = r, this.eventOverrides = s, T(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: s }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((i) => {
@@ -165,20 +165,15 @@ class sr {
165
165
  }
166
166
  class ns extends sr {
167
167
  }
168
- var ir = Object.defineProperty, or = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ut = (t, e, n) => (or(t, typeof e != "symbol" ? e + "" : e, n), n), ar = /* @__PURE__ */ ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success", t))(ar || {});
168
+ var ir = Object.defineProperty, or = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Et = (t, e, n) => (or(t, typeof e != "symbol" ? e + "" : e, n), n), ar = /* @__PURE__ */ ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success", t))(ar || {});
169
169
  const rs = (t) => t !== null && typeof t == "object" && "error" in t;
170
- class ss extends Error {
171
- constructor(e) {
172
- super(e == null ? void 0 : e.message), ut(this, "apiError"), this.name = "NylasAPIError", this.stack = new Error().stack, this.apiError = e;
173
- }
174
- }
175
170
  async function dn(t) {
176
171
  const e = new TextEncoder().encode(t), n = await crypto.subtle.digest("SHA-256", e), r = Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
177
172
  return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
178
173
  }
179
- const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : nr, $ = Object.keys, M = Array.isArray;
174
+ const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : nr, N = Object.keys, M = Array.isArray;
180
175
  function U(t, e) {
181
- return typeof e != "object" || $(e).forEach(function(n) {
176
+ return typeof e != "object" || N(e).forEach(function(n) {
182
177
  t[n] = e[n];
183
178
  }), t;
184
179
  }
@@ -188,7 +183,7 @@ function z(t, e) {
188
183
  return ur.call(t, e);
189
184
  }
190
185
  function Pe(t, e) {
191
- typeof e == "function" && (e = e(Be(t))), (typeof Reflect > "u" ? $ : Reflect.ownKeys)(e).forEach((n) => {
186
+ typeof e == "function" && (e = e(Be(t))), (typeof Reflect > "u" ? N : Reflect.ownKeys)(e).forEach((n) => {
192
187
  ee(t, n, e[n]);
193
188
  });
194
189
  }
@@ -207,7 +202,7 @@ function Jt(t, e) {
207
202
  return lr(t, e) || (n = Be(t)) && Jt(n, e);
208
203
  }
209
204
  const cr = [].slice;
210
- function lt(t, e, n) {
205
+ function ut(t, e, n) {
211
206
  return cr.call(t, e, n);
212
207
  }
213
208
  function En(t, e) {
@@ -363,21 +358,21 @@ var Rn = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "V
363
358
  function xe(t, e) {
364
359
  this._e = Ee(), this.name = t, this.message = e;
365
360
  }
366
- function Nn(t, e) {
361
+ function $n(t, e) {
367
362
  return t + ". Errors: " + Object.keys(e).map((n) => e[n].toString()).filter((n, r, s) => s.indexOf(n) === r).join(`
368
363
  `);
369
364
  }
370
- function ct(t, e, n, r) {
371
- this._e = Ee(), this.failures = e, this.failedKeys = r, this.successCount = n, this.message = Nn(t, e);
365
+ function lt(t, e, n, r) {
366
+ this._e = Ee(), this.failures = e, this.failedKeys = r, this.successCount = n, this.message = $n(t, e);
372
367
  }
373
368
  function je(t, e) {
374
- this._e = Ee(), this.name = "BulkError", this.failures = Object.keys(e).map((n) => e[n]), this.failuresByPos = e, this.message = Nn(t, e);
369
+ this._e = Ee(), this.name = "BulkError", this.failures = Object.keys(e).map((n) => e[n]), this.failuresByPos = e, this.message = $n(t, e);
375
370
  }
376
371
  ke(xe).from(Error).extend({ stack: { get: function() {
377
372
  return this._stack || (this._stack = this.name + ": " + this.message + Ot(this._e, 2));
378
373
  } }, toString: function() {
379
374
  return this.name + ": " + this.message;
380
- } }), ke(ct).from(xe), ke(je).from(xe);
375
+ } }), ke(lt).from(xe), ke(je).from(xe);
381
376
  var tn = en.reduce((t, e) => (t[e] = e + "Error", t), {});
382
377
  const yr = xe;
383
378
  var C = en.reduce((t, e) => {
@@ -450,15 +445,15 @@ function nn(t, e) {
450
445
  return e.apply(this, arguments);
451
446
  };
452
447
  }
453
- tt.ModifyError = ct, tt.DexieError = xe, tt.BulkError = je;
448
+ tt.ModifyError = lt, tt.DexieError = xe, tt.BulkError = je;
454
449
  var Me = {};
455
- const $n = 100, [It, ht, Kt] = typeof Promise > "u" ? [] : (() => {
450
+ const Nn = 100, [It, ct, Kt] = typeof Promise > "u" ? [] : (() => {
456
451
  let t = Promise.resolve();
457
452
  if (typeof crypto > "u" || !crypto.subtle)
458
453
  return [t, Be(t), t];
459
454
  const e = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
460
455
  return [e, Be(e), t];
461
- })(), Dn = ht && ht.then, nt = It && It.constructor, rn = !!Kt;
456
+ })(), Dn = ct && ct.then, nt = It && It.constructor, rn = !!Kt;
462
457
  var jt = !1, xr = Kt ? () => {
463
458
  Kt.then(Ye);
464
459
  } : K.setImmediate ? setImmediate.bind(null, Ye) : K.MutationObserver ? () => {
@@ -469,8 +464,8 @@ var jt = !1, xr = Kt ? () => {
469
464
  } : () => {
470
465
  setTimeout(Ye, 0);
471
466
  }, Re = function(t, e) {
472
- Ke.push([t, e]), dt && (xr(), dt = !1);
473
- }, Rt = !0, dt = !0, de = [], rt = [], Nt = null, $t = Fe, Se = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: gn, pgp: !1, env: {}, finalize: function() {
467
+ Ke.push([t, e]), ht && (xr(), ht = !1);
468
+ }, Rt = !0, ht = !0, de = [], rt = [], $t = null, Nt = Fe, Se = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: gn, pgp: !1, env: {}, finalize: function() {
474
469
  this.unhandleds.forEach((t) => {
475
470
  try {
476
471
  gn(t[0], t[1]);
@@ -491,12 +486,12 @@ function S(t) {
491
486
  this._state = null, this._value = null, ++e.ref, Fn(this, t);
492
487
  }
493
488
  const Dt = { get: function() {
494
- var t = E, e = ft;
489
+ var t = E, e = dt;
495
490
  function n(r, s) {
496
- var i = !t.global && (t !== E || e !== ft);
491
+ var i = !t.global && (t !== E || e !== dt);
497
492
  const o = i && !ne();
498
493
  var u = new S((a, c) => {
499
- sn(this, new Bn(pt(r, t, i, o), pt(s, t, i, o), a, c, t));
494
+ sn(this, new Bn(ft(r, t, i, o), ft(s, t, i, o), a, c, t));
500
495
  });
501
496
  return G && Ln(u, this), u;
502
497
  }
@@ -528,7 +523,7 @@ function Fn(t, e) {
528
523
  function Bt(t, e) {
529
524
  if (rt.push(e), t._state === null) {
530
525
  var n = t._lib && ze();
531
- e = $t(e), t._state = !1, t._value = e, G && e !== null && typeof e == "object" && !e._promise && function(r, s, i) {
526
+ e = Nt(e), t._state = !1, t._value = e, G && e !== null && typeof e == "object" && !e._promise && function(r, s, i) {
532
527
  try {
533
528
  r.apply(null, i);
534
529
  } catch (o) {
@@ -563,7 +558,7 @@ function sn(t, e) {
563
558
  }
564
559
  function Sr(t, e, n) {
565
560
  try {
566
- Nt = e;
561
+ $t = e;
567
562
  var r, s = e._value;
568
563
  e._state ? r = t(s) : (rt.length && (rt = []), r = t(s), rt.indexOf(s) === -1 && function(i) {
569
564
  for (var o = de.length; o; )
@@ -573,7 +568,7 @@ function Sr(t, e, n) {
573
568
  } catch (i) {
574
569
  n.reject(i);
575
570
  } finally {
576
- Nt = null, --fe == 0 && on(), --n.psd.ref || n.psd.finalize();
571
+ $t = null, --fe == 0 && on(), --n.psd.ref || n.psd.finalize();
577
572
  }
578
573
  }
579
574
  function qn(t, e, n) {
@@ -595,7 +590,7 @@ function Ye() {
595
590
  }
596
591
  function ze() {
597
592
  var t = Rt;
598
- return Rt = !1, dt = !1, t;
593
+ return Rt = !1, ht = !1, t;
599
594
  }
600
595
  function He() {
601
596
  var t, e, n;
@@ -606,7 +601,7 @@ function He() {
606
601
  r[0].apply(null, r[1]);
607
602
  }
608
603
  while (Ke.length > 0);
609
- Rt = !0, dt = !0;
604
+ Rt = !0, ht = !0;
610
605
  }
611
606
  function on() {
612
607
  var t = de;
@@ -674,16 +669,16 @@ From previous: `);
674
669
  t.then(n, r);
675
670
  });
676
671
  var e = new S(Me, !0, t);
677
- return Ln(e, Nt), e;
672
+ return Ln(e, $t), e;
678
673
  }, reject: Ge, race: function() {
679
674
  var t = J.apply(null, arguments).map(Xe);
680
675
  return new S((e, n) => {
681
676
  t.map((r) => S.resolve(r).then(e, n));
682
677
  });
683
- }, PSD: { get: () => E, set: (t) => E = t }, totalEchoes: { get: () => ft }, newPSD: oe, usePSD: Te, scheduler: { get: () => Re, set: (t) => {
678
+ }, PSD: { get: () => E, set: (t) => E = t }, totalEchoes: { get: () => dt }, newPSD: oe, usePSD: Te, scheduler: { get: () => Re, set: (t) => {
684
679
  Re = t;
685
- } }, rejectionMapper: { get: () => $t, set: (t) => {
686
- $t = t;
680
+ } }, rejectionMapper: { get: () => Nt, set: (t) => {
681
+ Nt = t;
687
682
  } }, follow: (t, e) => new S((n, r) => oe((s, i) => {
688
683
  var o = E;
689
684
  o.unhandleds = [], o.onunhandled = i, o.finalize = me(function() {
@@ -718,7 +713,7 @@ From previous: `);
718
713
  });
719
714
  }));
720
715
  const F = { awaits: 0, echoes: 0, id: 0 };
721
- var Pr = 0, it = [], wt = 0, ft = 0, Er = 0;
716
+ var Pr = 0, it = [], bt = 0, dt = 0, Er = 0;
722
717
  function oe(t, e, n, r) {
723
718
  var s = E, i = Object.create(s);
724
719
  i.parent = s, i.ref = 0, i.global = !1, i.id = ++Er;
@@ -730,16 +725,16 @@ function oe(t, e, n, r) {
730
725
  return i.ref === 0 && i.finalize(), u;
731
726
  }
732
727
  function Ce() {
733
- return F.id || (F.id = ++Pr), ++F.awaits, F.echoes += $n, F.id;
728
+ return F.id || (F.id = ++Pr), ++F.awaits, F.echoes += Nn, F.id;
734
729
  }
735
730
  function ne() {
736
- return !!F.awaits && (--F.awaits == 0 && (F.id = 0), F.echoes = F.awaits * $n, !0);
731
+ return !!F.awaits && (--F.awaits == 0 && (F.id = 0), F.echoes = F.awaits * Nn, !0);
737
732
  }
738
733
  function Xe(t) {
739
734
  return F.echoes && t && t.constructor === nt ? (Ce(), t.then((e) => (ne(), e), (e) => (ne(), D(e)))) : t;
740
735
  }
741
736
  function Cr(t) {
742
- ++ft, F.echoes && --F.echoes != 0 || (F.echoes = F.id = 0), it.push(E), ae(t, !0);
737
+ ++dt, F.echoes && --F.echoes != 0 || (F.echoes = F.id = 0), it.push(E), ae(t, !0);
743
738
  }
744
739
  function Tr() {
745
740
  var t = it[it.length - 1];
@@ -747,14 +742,14 @@ function Tr() {
747
742
  }
748
743
  function ae(t, e) {
749
744
  var n = E;
750
- if ((e ? !F.echoes || wt++ && t === E : !wt || --wt && t === E) || Vn(e ? Cr.bind(null, t) : Tr), t !== E && (E = t, n === Se && (Se.env = Un()), rn)) {
745
+ if ((e ? !F.echoes || bt++ && t === E : !bt || --bt && t === E) || Vn(e ? Cr.bind(null, t) : Tr), t !== E && (E = t, n === Se && (Se.env = Un()), rn)) {
751
746
  var r = Se.env.Promise, s = t.env;
752
- ht.then = s.nthen, r.prototype.then = s.gthen, (n.global || t.global) && (Object.defineProperty(K, "Promise", s.PromiseProp), r.all = s.all, r.race = s.race, r.resolve = s.resolve, r.reject = s.reject, s.allSettled && (r.allSettled = s.allSettled), s.any && (r.any = s.any));
747
+ ct.then = s.nthen, r.prototype.then = s.gthen, (n.global || t.global) && (Object.defineProperty(K, "Promise", s.PromiseProp), r.all = s.all, r.race = s.race, r.resolve = s.resolve, r.reject = s.reject, s.allSettled && (r.allSettled = s.allSettled), s.any && (r.any = s.any));
753
748
  }
754
749
  }
755
750
  function Un() {
756
751
  var t = K.Promise;
757
- return rn ? { Promise: t, PromiseProp: Object.getOwnPropertyDescriptor(K, "Promise"), all: t.all, race: t.race, allSettled: t.allSettled, any: t.any, resolve: t.resolve, reject: t.reject, nthen: ht.then, gthen: t.prototype.then } : {};
752
+ return rn ? { Promise: t, PromiseProp: Object.getOwnPropertyDescriptor(K, "Promise"), all: t.all, race: t.race, allSettled: t.allSettled, any: t.any, resolve: t.resolve, reject: t.reject, nthen: ct.then, gthen: t.prototype.then } : {};
758
753
  }
759
754
  function Te(t, e, n, r, s) {
760
755
  var i = E;
@@ -767,7 +762,7 @@ function Te(t, e, n, r, s) {
767
762
  function Vn(t) {
768
763
  Dn.call(It, t);
769
764
  }
770
- function pt(t, e, n, r) {
765
+ function ft(t, e, n, r) {
771
766
  return typeof t != "function" ? t : function() {
772
767
  var s = E;
773
768
  n && Ce(), ae(e, !0);
@@ -780,7 +775,7 @@ function pt(t, e, n, r) {
780
775
  }
781
776
  function pn(t, e) {
782
777
  return function(n, r) {
783
- return t.call(this, pt(n, e), pt(r, e));
778
+ return t.call(this, ft(n, e), ft(r, e));
784
779
  };
785
780
  }
786
781
  ("" + Dn).indexOf("[native code]") === -1 && (Ce = ne = I);
@@ -823,7 +818,7 @@ function Ft(t, e, n, r) {
823
818
  }
824
819
  return t._state.dbReadyPromise.then(() => Ft(t, e, n, r));
825
820
  }
826
- const yn = "3.2.4", he = String.fromCharCode(65535), Mt = -1 / 0, X = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", Wn = "String expected.", Ne = [], yt = typeof navigator < "u" && /(MSIE|Trident|Edge)/.test(navigator.userAgent), Ar = yt, Or = yt, zn = (t) => !/(dexie\.js|dexie\.min\.js)/.test(t), vt = "__dbnames", _t = "readonly", kt = "readwrite";
821
+ const yn = "3.2.4", he = String.fromCharCode(65535), Mt = -1 / 0, X = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", Wn = "String expected.", $e = [], gt = typeof navigator < "u" && /(MSIE|Trident|Edge)/.test(navigator.userAgent), Ar = gt, Or = gt, zn = (t) => !/(dexie\.js|dexie\.min\.js)/.test(t), yt = "__dbnames", wt = "readonly", _t = "readwrite";
827
822
  function ge(t, e) {
828
823
  return t ? e ? function() {
829
824
  return t.apply(this, arguments) && e.apply(this, arguments);
@@ -856,7 +851,7 @@ class Ir {
856
851
  return new this.db.WhereClause(this, e);
857
852
  if (M(e))
858
853
  return new this.db.WhereClause(this, `[${e.join("+")}]`);
859
- const n = $(e);
854
+ const n = N(e);
860
855
  if (n.length === 1)
861
856
  return this.where(n[0]).equals(e[n[0]]);
862
857
  const r = this.schema.indexes.concat(this.schema.primKey).filter((c) => c.compound && n.every((d) => c.keyPath.indexOf(d) >= 0) && c.keyPath.every((d) => n.indexOf(d) >= 0))[0];
@@ -948,7 +943,7 @@ class Ir {
948
943
  if (r === void 0)
949
944
  return D(new C.InvalidArgument("Given object does not contain its primary key"));
950
945
  try {
951
- typeof n != "function" ? $(n).forEach((s) => {
946
+ typeof n != "function" ? N(n).forEach((s) => {
952
947
  H(e, s, n[s]);
953
948
  }) : n(e, { value: e, primKey: r });
954
949
  } catch {
@@ -1020,7 +1015,7 @@ class Ir {
1020
1015
  });
1021
1016
  }
1022
1017
  }
1023
- function $e(t) {
1018
+ function Ne(t) {
1024
1019
  var e = {}, n = function(o, u) {
1025
1020
  if (u) {
1026
1021
  for (var a = arguments.length, c = new Array(a - 1); --a; )
@@ -1047,7 +1042,7 @@ function $e(t) {
1047
1042
  } };
1048
1043
  return e[o] = n[o] = d, d;
1049
1044
  }
1050
- $(c = o).forEach(function(l) {
1045
+ N(c = o).forEach(function(l) {
1051
1046
  var h = c[l];
1052
1047
  if (M(h))
1053
1048
  i(l, c[l][0], c[l][1]);
@@ -1073,10 +1068,10 @@ function Oe(t, e) {
1073
1068
  function be(t, e) {
1074
1069
  return !(t.filter || t.algorithm || t.or) && (e ? t.justLimit : !t.replayFilter);
1075
1070
  }
1076
- function xt(t, e) {
1071
+ function kt(t, e) {
1077
1072
  t.filter = ge(t.filter, e);
1078
1073
  }
1079
- function St(t, e, n) {
1074
+ function xt(t, e, n) {
1080
1075
  var r = t.replayFilter;
1081
1076
  t.replayFilter = r ? () => ge(r(), e()) : e, t.justLimit = n && !r;
1082
1077
  }
@@ -1229,18 +1224,18 @@ class Kr {
1229
1224
  }
1230
1225
  offset(e) {
1231
1226
  var n = this._ctx;
1232
- return e <= 0 || (n.offset += e, be(n) ? St(n, () => {
1227
+ return e <= 0 || (n.offset += e, be(n) ? xt(n, () => {
1233
1228
  var r = e;
1234
1229
  return (s, i) => r === 0 || (r === 1 ? (--r, !1) : (i(() => {
1235
1230
  s.advance(r), r = 0;
1236
1231
  }), !1));
1237
- }) : St(n, () => {
1232
+ }) : xt(n, () => {
1238
1233
  var r = e;
1239
1234
  return () => --r < 0;
1240
1235
  })), this;
1241
1236
  }
1242
1237
  limit(e) {
1243
- return this._ctx.limit = Math.min(this._ctx.limit, e), St(this._ctx, () => {
1238
+ return this._ctx.limit = Math.min(this._ctx.limit, e), xt(this._ctx, () => {
1244
1239
  var n = e;
1245
1240
  return function(r, s, i) {
1246
1241
  return --n <= 0 && s(i), n >= 0;
@@ -1248,7 +1243,7 @@ class Kr {
1248
1243
  }, !0), this;
1249
1244
  }
1250
1245
  until(e, n) {
1251
- return xt(this._ctx, function(r, s, i) {
1246
+ return kt(this._ctx, function(r, s, i) {
1252
1247
  return !e(r.value) || (s(i), n);
1253
1248
  }), this;
1254
1249
  }
@@ -1262,7 +1257,7 @@ class Kr {
1262
1257
  }
1263
1258
  filter(e) {
1264
1259
  var n, r;
1265
- return xt(this._ctx, function(s) {
1260
+ return kt(this._ctx, function(s) {
1266
1261
  return e(s.value);
1267
1262
  }), n = this._ctx, r = e, n.isMatch = ge(n.isMatch, r), this;
1268
1263
  }
@@ -1334,7 +1329,7 @@ class Kr {
1334
1329
  if (!n || !n.multi)
1335
1330
  return this;
1336
1331
  var r = {};
1337
- return xt(this._ctx, function(s) {
1332
+ return kt(this._ctx, function(s) {
1338
1333
  var i = s.primaryKey.toString(), o = z(r, i);
1339
1334
  return r[i] = !0, !o;
1340
1335
  }), this;
@@ -1346,7 +1341,7 @@ class Kr {
1346
1341
  if (typeof e == "function")
1347
1342
  s = e;
1348
1343
  else {
1349
- var i = $(e), o = i.length;
1344
+ var i = N(e), o = i.length;
1350
1345
  s = function(p) {
1351
1346
  for (var v = !1, y = 0; y < o; ++y) {
1352
1347
  var g = i[y], b = e[g];
@@ -1360,7 +1355,7 @@ class Kr {
1360
1355
  const f = [], m = (p, v) => {
1361
1356
  const { failures: y, numFailures: g } = v;
1362
1357
  h += p - g;
1363
- for (let b of $(y))
1358
+ for (let b of N(y))
1364
1359
  l.push(y[b]);
1365
1360
  };
1366
1361
  return this.clone().primaryKeys().then((p) => {
@@ -1372,17 +1367,17 @@ class Kr {
1372
1367
  const R = b[_], O = { value: We(R), primKey: p[y + _] };
1373
1368
  s.call(O, O.value, O) !== !1 && (O.value == null ? w.push(p[y + _]) : a || L(c(R), c(O.value)) === 0 ? (P.push(O.value), a && x.push(p[y + _])) : (w.push(p[y + _]), k.push(O.value)));
1374
1369
  }
1375
- const A = be(n) && n.limit === 1 / 0 && (typeof e != "function" || e === Pt) && { index: n.index, range: n.range };
1370
+ const A = be(n) && n.limit === 1 / 0 && (typeof e != "function" || e === St) && { index: n.index, range: n.range };
1376
1371
  return Promise.resolve(k.length > 0 && u.mutate({ trans: r, type: "add", values: k }).then((_) => {
1377
1372
  for (let R in _.failures)
1378
1373
  w.splice(parseInt(R), 1);
1379
1374
  m(k.length, _);
1380
- })).then(() => (P.length > 0 || A && typeof e == "object") && u.mutate({ trans: r, type: "put", keys: x, values: P, criteria: A, changeSpec: typeof e != "function" && e }).then((_) => m(P.length, _))).then(() => (w.length > 0 || A && e === Pt) && u.mutate({ trans: r, type: "delete", keys: w, criteria: A }).then((_) => m(w.length, _))).then(() => p.length > y + g && v(y + d));
1375
+ })).then(() => (P.length > 0 || A && typeof e == "object") && u.mutate({ trans: r, type: "put", keys: x, values: P, criteria: A, changeSpec: typeof e != "function" && e }).then((_) => m(P.length, _))).then(() => (w.length > 0 || A && e === St) && u.mutate({ trans: r, type: "delete", keys: w, criteria: A }).then((_) => m(w.length, _))).then(() => p.length > y + g && v(y + d));
1381
1376
  });
1382
1377
  };
1383
1378
  return v(0).then(() => {
1384
1379
  if (l.length > 0)
1385
- throw new ct("Error modifying one or more objects", l, h, f);
1380
+ throw new lt("Error modifying one or more objects", l, h, f);
1386
1381
  return p.length;
1387
1382
  });
1388
1383
  });
@@ -1394,13 +1389,13 @@ class Kr {
1394
1389
  const { primaryKey: s } = e.table.core.schema, i = n;
1395
1390
  return e.table.core.count({ trans: r, query: { index: s, range: i } }).then((o) => e.table.core.mutate({ trans: r, type: "deleteRange", range: i }).then(({ failures: u, lastResult: a, results: c, numFailures: d }) => {
1396
1391
  if (d)
1397
- throw new ct("Could not delete some values", Object.keys(u).map((l) => u[l]), o - d);
1392
+ throw new lt("Could not delete some values", Object.keys(u).map((l) => u[l]), o - d);
1398
1393
  return o - d;
1399
1394
  }));
1400
- }) : this.modify(Pt);
1395
+ }) : this.modify(St);
1401
1396
  }
1402
1397
  }
1403
- const Pt = (t, e) => e.value = null;
1398
+ const St = (t, e) => e.value = null;
1404
1399
  function jr(t, e) {
1405
1400
  return t < e ? -1 : t === e ? 0 : 1;
1406
1401
  }
@@ -1414,7 +1409,7 @@ function W(t, e, n) {
1414
1409
  function we(t) {
1415
1410
  return new t.Collection(t, () => Yn("")).limit(0);
1416
1411
  }
1417
- function Nr(t, e, n, r, s, i) {
1412
+ function $r(t, e, n, r, s, i) {
1418
1413
  for (var o = Math.min(t.length, r.length), u = -1, a = 0; a < o; ++a) {
1419
1414
  var c = e[a];
1420
1415
  if (c !== r[a])
@@ -1458,7 +1453,7 @@ function Ze(t, e, n, r) {
1458
1453
  if (e(b, a, m))
1459
1454
  return !0;
1460
1455
  for (var k = null, P = m; P < l; ++P) {
1461
- var x = Nr(g, b, u[P], a[P], o, c);
1456
+ var x = $r(g, b, u[P], a[P], o, c);
1462
1457
  x === null && k === null ? m = P + 1 : (k === null || o(k, x) > 0) && (k = x);
1463
1458
  }
1464
1459
  return v(k !== null ? function() {
@@ -1612,8 +1607,8 @@ function Y(t) {
1612
1607
  function qe(t) {
1613
1608
  t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault();
1614
1609
  }
1615
- const Le = "storagemutated", ie = "x-storagemutated-1", ue = $e(null, Le);
1616
- class $r {
1610
+ const Le = "storagemutated", ie = "x-storagemutated-1", ue = Ne(null, Le);
1611
+ class Nr {
1617
1612
  _lock() {
1618
1613
  return Ie(!E.global), ++this._reculock, this._reculock !== 1 || E.global || (E.lockOwnerFor = this), this;
1619
1614
  }
@@ -1791,15 +1786,15 @@ function Br(t, e, n) {
1791
1786
  } else {
1792
1787
  const [q, B] = k ? b ? [m, f] : [m, null] : [f, null];
1793
1788
  if (k)
1794
- for (let N = 0; N < P; ++N)
1795
- w.push(x = B && B[N] !== void 0 ? g[h](q[N], B[N]) : g[h](q[N])), x.onerror = R;
1789
+ for (let $ = 0; $ < P; ++$)
1790
+ w.push(x = B && B[$] !== void 0 ? g[h](q[$], B[$]) : g[h](q[$])), x.onerror = R;
1796
1791
  else
1797
- for (let N = 0; N < P; ++N)
1798
- w.push(x = g[h](q[N])), x.onerror = R;
1792
+ for (let $ = 0; $ < P; ++$)
1793
+ w.push(x = g[h](q[$])), x.onerror = R;
1799
1794
  }
1800
1795
  const O = (q) => {
1801
1796
  const B = q.target.result;
1802
- w.forEach((N, ye) => N.error != null && (A[ye] = N.error)), v({ numFailures: _, failures: A, results: h === "delete" ? f : w.map((N) => N.result), lastResult: B });
1797
+ w.forEach(($, ye) => $.error != null && (A[ye] = $.error)), v({ numFailures: _, failures: A, results: h === "delete" ? f : w.map(($) => $.result), lastResult: B });
1803
1798
  };
1804
1799
  x.onerror = (q) => {
1805
1800
  R(q), O(q);
@@ -1856,9 +1851,9 @@ function Br(t, e, n) {
1856
1851
  _.trans = l, _.stop = _.continue = _.continuePrimaryKey = _.advance = () => {
1857
1852
  throw new Error("Cursor not started");
1858
1853
  }, _.fail = j(y), _.next = function() {
1859
- let N = 1;
1860
- return this.start(() => N-- ? this.continue() : this.stop()).then(() => this);
1861
- }, _.start = (N) => {
1854
+ let $ = 1;
1855
+ return this.start(() => $-- ? this.continue() : this.stop()).then(() => this);
1856
+ }, _.start = ($) => {
1862
1857
  const ye = new Promise((V, le) => {
1863
1858
  V = j(V), w.onerror = Y(le), _.fail = le, _.stop = (Ae) => {
1864
1859
  _.stop = _.continue = _.continuePrimaryKey = _.advance = B, V(Ae);
@@ -1866,7 +1861,7 @@ function Br(t, e, n) {
1866
1861
  }), ve = () => {
1867
1862
  if (w.result)
1868
1863
  try {
1869
- N();
1864
+ $();
1870
1865
  } catch (V) {
1871
1866
  _.fail(V);
1872
1867
  }
@@ -1906,7 +1901,7 @@ function Ut({ _novip: t }, e) {
1906
1901
  t.core.schema.tables.some((o) => o.name === i) && (s.core = t.core.table(i), t[i] instanceof t.Table && (t[i].core = s.core));
1907
1902
  });
1908
1903
  }
1909
- function mt({ _novip: t }, e, n, r) {
1904
+ function pt({ _novip: t }, e, n, r) {
1910
1905
  n.forEach((s) => {
1911
1906
  const i = r[s];
1912
1907
  e.forEach((o) => {
@@ -1933,8 +1928,8 @@ function Mr(t, e, n, r) {
1933
1928
  i.create(n), i._completion.catch(r);
1934
1929
  const o = i._reject.bind(i), u = E.transless || E;
1935
1930
  oe(() => {
1936
- E.trans = i, E.transless = u, e === 0 ? ($(s).forEach((a) => {
1937
- Et(n, a, s[a].primKey, s[a].indexes);
1931
+ E.trans = i, E.transless = u, e === 0 ? (N(s).forEach((a) => {
1932
+ Pt(n, a, s[a].primKey, s[a].indexes);
1938
1933
  }), Ut(t, n), S.follow(() => t.on.populate.fire(i)).catch(o)) : function({ _novip: a }, c, d, l) {
1939
1934
  const h = [], f = a._versions;
1940
1935
  let m = a._dbSchema = zt(a, a.idbdb, l), p = !1;
@@ -1948,7 +1943,7 @@ function Mr(t, e, n, r) {
1948
1943
  Ht(a, b, l), Ht(a, k, l), m = a._dbSchema = k;
1949
1944
  const P = Jn(b, k);
1950
1945
  P.add.forEach((w) => {
1951
- Et(l, w[0], w[1].primKey, w[1].indexes);
1946
+ Pt(l, w[0], w[1].primKey, w[1].indexes);
1952
1947
  }), P.change.forEach((w) => {
1953
1948
  if (w.recreate)
1954
1949
  throw new C.Upgrade("Not yet support for changing primary key");
@@ -1965,7 +1960,7 @@ function Mr(t, e, n, r) {
1965
1960
  let w = An(k);
1966
1961
  P.del.forEach((O) => {
1967
1962
  w[O] = b[O];
1968
- }), Vt(a, [a.Transaction.prototype]), mt(a, [a.Transaction.prototype], $(w), w), d.schema = w;
1963
+ }), Vt(a, [a.Transaction.prototype]), pt(a, [a.Transaction.prototype], N(w), w), d.schema = w;
1969
1964
  const A = Zt(x);
1970
1965
  let _;
1971
1966
  A && Ce();
@@ -1980,12 +1975,12 @@ function Mr(t, e, n, r) {
1980
1975
  }), h.push((b) => {
1981
1976
  (!p || !Ar) && function(k, P) {
1982
1977
  [].slice.call(P.db.objectStoreNames).forEach((x) => k[x] == null && P.db.deleteObjectStore(x));
1983
- }(g._cfg.dbschema, b), Vt(a, [a.Transaction.prototype]), mt(a, [a.Transaction.prototype], a._storeNames, a._dbSchema), d.schema = a._dbSchema;
1978
+ }(g._cfg.dbschema, b), Vt(a, [a.Transaction.prototype]), pt(a, [a.Transaction.prototype], a._storeNames, a._dbSchema), d.schema = a._dbSchema;
1984
1979
  });
1985
1980
  }), y().then(() => {
1986
1981
  var g, b;
1987
- b = l, $(g = m).forEach((k) => {
1988
- b.db.objectStoreNames.contains(k) || Et(b, k, g[k].primKey, g[k].indexes);
1982
+ b = l, N(g = m).forEach((k) => {
1983
+ b.db.objectStoreNames.contains(k) || Pt(b, k, g[k].primKey, g[k].indexes);
1989
1984
  });
1990
1985
  });
1991
1986
  }(t, e, i, n).catch(o);
@@ -2000,7 +1995,7 @@ function Jn(t, e) {
2000
1995
  const s = t[r], i = e[r];
2001
1996
  if (s) {
2002
1997
  const o = { name: r, def: i, recreate: !1, del: [], add: [], change: [] };
2003
- if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto && !yt)
1998
+ if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto && !gt)
2004
1999
  o.recreate = !0, n.change.push(o);
2005
2000
  else {
2006
2001
  const u = s.idxByName, a = i.idxByName;
@@ -2018,7 +2013,7 @@ function Jn(t, e) {
2018
2013
  }
2019
2014
  return n;
2020
2015
  }
2021
- function Et(t, e, n, r) {
2016
+ function Pt(t, e, n, r) {
2022
2017
  const s = t.db.createObjectStore(e, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
2023
2018
  return r.forEach((i) => Wt(s, i)), s;
2024
2019
  }
@@ -2027,7 +2022,7 @@ function Wt(t, e) {
2027
2022
  }
2028
2023
  function zt(t, e, n) {
2029
2024
  const r = {};
2030
- return lt(e.objectStoreNames, 0).forEach((s) => {
2025
+ return ut(e.objectStoreNames, 0).forEach((s) => {
2031
2026
  const i = n.objectStore(s);
2032
2027
  let o = i.keyPath;
2033
2028
  const u = qt(Xn(o), o || "", !1, !1, !!i.autoIncrement, o && typeof o != "string", !0), a = [];
@@ -2046,7 +2041,7 @@ function Ht({ _novip: t }, e, n) {
2046
2041
  const i = r[s], o = n.objectStore(i);
2047
2042
  t._hasGetAll = "getAll" in o;
2048
2043
  for (let u = 0; u < o.indexNames.length; ++u) {
2049
- const a = o.indexNames[u], c = o.index(a).keyPath, d = typeof c == "string" ? c : "[" + lt(c).join("+") + "]";
2044
+ const a = o.indexNames[u], c = o.index(a).keyPath, d = typeof c == "string" ? c : "[" + ut(c).join("+") + "]";
2050
2045
  if (e[i]) {
2051
2046
  const l = e[i].idxByName[d];
2052
2047
  l && (l.name = a, delete e[i].idxByName[d], e[i].idxByName[a] = l);
@@ -2057,7 +2052,7 @@ function Ht({ _novip: t }, e, n) {
2057
2052
  }
2058
2053
  class qr {
2059
2054
  _parseStoresSpec(e, n) {
2060
- $(e).forEach((r) => {
2055
+ N(e).forEach((r) => {
2061
2056
  if (e[r] !== null) {
2062
2057
  var s = e[r].split(",").map((o, u) => {
2063
2058
  const a = (o = o.trim()).replace(/([&*]|\+\+)/g, ""), c = /^\[/.test(a) ? a.match(/^\[(.*)\]$/)[1].split("+") : a;
@@ -2081,7 +2076,7 @@ class qr {
2081
2076
  let i = {};
2082
2077
  return r.forEach((o) => {
2083
2078
  U(s, o._cfg.storesSource), i = o._cfg.dbschema = {}, o._parseStoresSpec(s, i);
2084
- }), n._dbSchema = i, Vt(n, [n._allTables, n, n.Transaction.prototype]), mt(n, [n._allTables, n, n.Transaction.prototype, this._cfg.tables], $(i), i), n._storeNames = $(i), this;
2079
+ }), n._dbSchema = i, Vt(n, [n._allTables, n, n.Transaction.prototype]), pt(n, [n._allTables, n, n.Transaction.prototype, this._cfg.tables], N(i), i), n._storeNames = N(i), this;
2085
2080
  }
2086
2081
  upgrade(e) {
2087
2082
  return this._cfg.contentUpgrade = nn(this._cfg.contentUpgrade || I, e), this;
@@ -2089,7 +2084,7 @@ class qr {
2089
2084
  }
2090
2085
  function an(t, e) {
2091
2086
  let n = t._dbNamesDB;
2092
- return n || (n = t._dbNamesDB = new pe(vt, { addons: [], indexedDB: t, IDBKeyRange: e }), n.version(1).stores({ dbnames: "name" })), n.table("dbnames");
2087
+ return n || (n = t._dbNamesDB = new pe(yt, { addons: [], indexedDB: t, IDBKeyRange: e }), n.version(1).stores({ dbnames: "name" })), n.table("dbnames");
2093
2088
  }
2094
2089
  function un(t) {
2095
2090
  return t && typeof t.databases == "function";
@@ -2141,14 +2136,14 @@ function Ur(t) {
2141
2136
  }
2142
2137
  }, c), l.onsuccess = j(() => {
2143
2138
  o = null;
2144
- const h = t._novip.idbdb = l.result, f = lt(h.objectStoreNames);
2139
+ const h = t._novip.idbdb = l.result, f = ut(h.objectStoreNames);
2145
2140
  if (f.length > 0)
2146
2141
  try {
2147
2142
  const p = h.transaction((m = f).length === 1 ? m[0] : m, "readonly");
2148
2143
  e.autoSchema ? function({ _novip: v }, y, g) {
2149
2144
  v.verno = y.version / 10;
2150
2145
  const b = v._dbSchema = zt(0, y, g);
2151
- v._storeNames = lt(y.objectStoreNames, 0), mt(v, [v._allTables], $(b), b);
2146
+ v._storeNames = ut(y.objectStoreNames, 0), pt(v, [v._allTables], N(b), b);
2152
2147
  }(t, h, p) : (Ht(t, t._dbSchema, p), function(v, y) {
2153
2148
  const g = Jn(zt(0, v.idbdb, y), v._dbSchema);
2154
2149
  return !(g.add.length || g.change.some((b) => b.add.length || b.change.length));
@@ -2156,12 +2151,12 @@ function Ur(t) {
2156
2151
  } catch {
2157
2152
  }
2158
2153
  var m;
2159
- Ne.push(t), h.onversionchange = j((p) => {
2154
+ $e.push(t), h.onversionchange = j((p) => {
2160
2155
  e.vcFired = !0, t.on("versionchange").fire(p);
2161
2156
  }), h.onclose = j((p) => {
2162
2157
  t.on("close").fire(p);
2163
2158
  }), u && function({ indexedDB: p, IDBKeyRange: v }, y) {
2164
- !un(p) && y !== vt && an(p, v).put({ name: y }).catch(I);
2159
+ !un(p) && y !== yt && an(p, v).put({ name: y }).catch(I);
2165
2160
  }(t._deps, d), a();
2166
2161
  }, c);
2167
2162
  }))]).then(() => (s(), e.onReadyBeingFired = [], S.resolve(Yt(() => t.on.ready.fire(t.vip))).then(function a() {
@@ -2266,7 +2261,7 @@ const Wr = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
2266
2261
  } };
2267
2262
  } };
2268
2263
  function ln(t, e, n, r) {
2269
- return n = n || {}, r = r || "", $(t).forEach((s) => {
2264
+ return n = n || {}, r = r || "", N(t).forEach((s) => {
2270
2265
  if (z(e, s)) {
2271
2266
  var i = t[s], o = e[s];
2272
2267
  if (typeof i == "object" && typeof o == "object" && i && o) {
@@ -2276,7 +2271,7 @@ function ln(t, e, n, r) {
2276
2271
  i !== o && (n[r + s] = e[s]);
2277
2272
  } else
2278
2273
  n[r + s] = void 0;
2279
- }), $(e).forEach((s) => {
2274
+ }), N(e).forEach((s) => {
2280
2275
  z(t, s) || (n[r + s] = e[s]);
2281
2276
  }), n;
2282
2277
  }
@@ -2392,9 +2387,9 @@ function Ve(t, e, n) {
2392
2387
  return i ? Ve(i, e, n) : t.r = { from: e, to: n, d: 1, l: null, r: null }, xn(t);
2393
2388
  L(e, t.from) < 0 && (t.from = e, t.l = null, t.d = i ? i.d + 1 : 1), L(n, t.to) > 0 && (t.to = n, t.r = null, t.d = t.l ? t.l.d + 1 : 1);
2394
2389
  const o = !t.r;
2395
- s && !t.l && gt(t, s), i && o && gt(t, i);
2390
+ s && !t.l && mt(t, s), i && o && mt(t, i);
2396
2391
  }
2397
- function gt(t, e) {
2392
+ function mt(t, e) {
2398
2393
  cn(e) || function n(r, { from: s, to: i, l: o, r: u }) {
2399
2394
  Ve(r, s, i), o && n(r, o), u && n(r, u);
2400
2395
  }(t, e);
@@ -2454,7 +2449,7 @@ function Sn({ r: t, l: e }) {
2454
2449
  return (t ? e ? Math.max(t.d, e.d) : t.d : e ? e.d : 0) + 1;
2455
2450
  }
2456
2451
  Pe(Q.prototype, { add(t) {
2457
- return gt(this, t), this;
2452
+ return mt(this, t), this;
2458
2453
  }, addKey(t) {
2459
2454
  return Ve(this, t, t), this;
2460
2455
  }, addKeys(t) {
@@ -2478,14 +2473,14 @@ const Gr = { stack: "dbcore", level: 0, create: (t) => {
2478
2473
  const w = er(b, P);
2479
2474
  w || g === "add" || y.addKeys(b), (w || k) && function(A, _, R, O) {
2480
2475
  function q(B) {
2481
- const N = A(B.name || "");
2476
+ const $ = A(B.name || "");
2482
2477
  function ye(V) {
2483
2478
  return V != null ? B.extractKey(V) : null;
2484
2479
  }
2485
- const ve = (V) => B.multiEntry && M(V) ? V.forEach((le) => N.addKey(le)) : N.addKey(V);
2480
+ const ve = (V) => B.multiEntry && M(V) ? V.forEach((le) => $.addKey(le)) : $.addKey(V);
2486
2481
  (R || O).forEach((V, le) => {
2487
- const Ae = R && ye(R[le]), bt = O && ye(O[le]);
2488
- L(Ae, bt) !== 0 && (Ae != null && ve(Ae), bt != null && ve(bt));
2482
+ const Ae = R && ye(R[le]), vt = O && ye(O[le]);
2483
+ L(Ae, vt) !== 0 && (Ae != null && ve(Ae), vt != null && ve(vt));
2489
2484
  });
2490
2485
  }
2491
2486
  _.indexes.forEach(q);
@@ -2501,7 +2496,7 @@ const Gr = { stack: "dbcore", level: 0, create: (t) => {
2501
2496
  var m, p;
2502
2497
  return [h, new Q((m = f.lower) !== null && m !== void 0 ? m : t.MIN_KEY, (p = f.upper) !== null && p !== void 0 ? p : t.MAX_KEY)];
2503
2498
  }, l = { get: (h) => [o, new Q(h.key)], getMany: (h) => [o, new Q().addKeys(h.keys)], count: d, query: d, openCursor: d };
2504
- return $(l).forEach((h) => {
2499
+ return N(l).forEach((h) => {
2505
2500
  c[h] = function(f) {
2506
2501
  const { subscr: m } = E;
2507
2502
  if (m) {
@@ -2549,7 +2544,7 @@ class pe {
2549
2544
  i.dbReadyResolve = u;
2550
2545
  }), i.openCanceller = new S((u, a) => {
2551
2546
  i.cancelOpen = a;
2552
- }), this._state = i, this.name = e, this.on = $e(this, "populate", "blocked", "versionchange", "close", { ready: [nn, I] }), this.on.ready.subscribe = En(this.on.ready.subscribe, (u) => (a, c) => {
2547
+ }), this._state = i, this.name = e, this.on = Ne(this, "populate", "blocked", "versionchange", "close", { ready: [nn, I] }), this.on.ready.subscribe = En(this.on.ready.subscribe, (u) => (a, c) => {
2553
2548
  pe.vip(() => {
2554
2549
  const d = this._state;
2555
2550
  if (d.openComplete)
@@ -2577,11 +2572,11 @@ class pe {
2577
2572
  this._ctx = { table: h, index: l.index, isPrimKey: !l.index || h.schema.primKey.keyPath && l.index === h.schema.primKey.name, range: c, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: d, or: l.or, valueMapper: f !== Fe ? f : null };
2578
2573
  })), this.Table = function(u) {
2579
2574
  return Oe(Ir.prototype, function(a, c, d) {
2580
- this.db = u, this._tx = d, this.name = a, this.schema = c, this.hook = u._allTables[a] ? u._allTables[a].hook : $e(null, { creating: [br, I], reading: [vr, Fe], updating: [_r, I], deleting: [wr, I] });
2575
+ this.db = u, this._tx = d, this.name = a, this.schema = c, this.hook = u._allTables[a] ? u._allTables[a].hook : Ne(null, { creating: [br, I], reading: [vr, Fe], updating: [_r, I], deleting: [wr, I] });
2581
2576
  });
2582
2577
  }(this), this.Transaction = function(u) {
2583
- return Oe($r.prototype, function(a, c, d, l, h) {
2584
- this.db = u, this.mode = a, this.storeNames = c, this.schema = d, this.chromeTransactionDurability = l, this.idbtrans = null, this.on = $e(this, "complete", "error", "abort"), this.parent = h || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new S((f, m) => {
2578
+ return Oe(Nr.prototype, function(a, c, d, l, h) {
2579
+ this.db = u, this.mode = a, this.storeNames = c, this.schema = d, this.chromeTransactionDurability = l, this.idbtrans = null, this.on = Ne(this, "complete", "error", "abort"), this.parent = h || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new S((f, m) => {
2585
2580
  this._resolve = f, this._reject = m;
2586
2581
  }), this._completion.then(() => {
2587
2582
  this.active = !1, this.on.complete.fire();
@@ -2607,7 +2602,7 @@ class pe {
2607
2602
  }), this.on("blocked", (u) => {
2608
2603
  !u.newVersion || u.newVersion < u.oldVersion ? console.warn(`Dexie.delete('${this.name}') was blocked`) : console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${u.oldVersion / 10}`);
2609
2604
  }), this._maxKey = Ue(n.IDBKeyRange), this._createTransaction = (u, a, c, d) => new this.Transaction(u, a, c, this._options.chromeTransactionDurability, d), this._fireOnBlocked = (u) => {
2610
- this.on("blocked").fire(u), Ne.filter((a) => a.name === this.name && a !== this && !a._state.vcFired).map((a) => a.on("versionchange").fire(u));
2605
+ this.on("blocked").fire(u), $e.filter((a) => a.name === this.name && a !== this && !a._state.vcFired).map((a) => a.on("versionchange").fire(u));
2611
2606
  }, this.use(Wr), this.use(zr), this.use(Gr), this.use(Hr), this.vip = Object.create(this, { _vip: { value: !0 } }), s.forEach((u) => u(this));
2612
2607
  }
2613
2608
  version(e) {
@@ -2644,8 +2639,8 @@ class pe {
2644
2639
  return Ur(this);
2645
2640
  }
2646
2641
  _close() {
2647
- const e = this._state, n = Ne.indexOf(this);
2648
- if (n >= 0 && Ne.splice(n, 1), this.idbdb) {
2642
+ const e = this._state, n = $e.indexOf(this);
2643
+ if (n >= 0 && $e.splice(n, 1), this.idbdb) {
2649
2644
  try {
2650
2645
  this.idbdb.close();
2651
2646
  } catch {
@@ -2671,7 +2666,7 @@ class pe {
2671
2666
  var o = this._deps.indexedDB.deleteDatabase(this.name);
2672
2667
  o.onsuccess = j(() => {
2673
2668
  (function({ indexedDB: u, IDBKeyRange: a }, c) {
2674
- !un(u) && c !== vt && an(u, a).delete(c).catch(I);
2669
+ !un(u) && c !== yt && an(u, a).delete(c).catch(I);
2675
2670
  })(this._deps, this.name), r();
2676
2671
  }), o.onerror = Y(s), o.onblocked = this._fireOnBlocked;
2677
2672
  };
@@ -2697,7 +2692,7 @@ class pe {
2697
2692
  return this._state.autoSchema;
2698
2693
  }
2699
2694
  get tables() {
2700
- return $(this._allTables).map((e) => this._allTables[e]);
2695
+ return N(this._allTables).map((e) => this._allTables[e]);
2701
2696
  }
2702
2697
  transaction() {
2703
2698
  const e = Vr.apply(this, arguments);
@@ -2715,15 +2710,15 @@ class pe {
2715
2710
  if (typeof d != "string")
2716
2711
  throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
2717
2712
  return d;
2718
- }), e == "r" || e === _t)
2719
- o = _t;
2713
+ }), e == "r" || e === wt)
2714
+ o = wt;
2720
2715
  else {
2721
- if (e != "rw" && e != kt)
2716
+ if (e != "rw" && e != _t)
2722
2717
  throw new C.InvalidArgument("Invalid transaction mode: " + e);
2723
- o = kt;
2718
+ o = _t;
2724
2719
  }
2725
2720
  if (s) {
2726
- if (s.mode === _t && o === kt) {
2721
+ if (s.mode === wt && o === _t) {
2727
2722
  if (!i)
2728
2723
  throw new C.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
2729
2724
  s = null;
@@ -2763,8 +2758,8 @@ class Qr {
2763
2758
  }
2764
2759
  }
2765
2760
  function tr(t, e) {
2766
- return $(e).forEach((n) => {
2767
- gt(t[n] || (t[n] = new Q()), e[n]);
2761
+ return N(e).forEach((n) => {
2762
+ mt(t[n] || (t[n] = new Q()), e[n]);
2768
2763
  }), t;
2769
2764
  }
2770
2765
  function Jr(t) {
@@ -2780,7 +2775,7 @@ function Jr(t) {
2780
2775
  s.start && s.start(c);
2781
2776
  let d = !1, l = !1;
2782
2777
  function h() {
2783
- return $(a).some((p) => u[p] && Yr(u[p], a[p]));
2778
+ return N(a).some((p) => u[p] && Yr(u[p], a[p]));
2784
2779
  }
2785
2780
  const f = (p) => {
2786
2781
  tr(u, p), h() && m();
@@ -2821,7 +2816,7 @@ function at(t) {
2821
2816
  Pe(ce, { ...tt, delete: (t) => new ce(t, { addons: [] }).delete(), exists: (t) => new ce(t, { addons: [] }).open().then((e) => (e.close(), !0)).catch("NoSuchDatabaseError", () => !1), getDatabaseNames(t) {
2822
2817
  try {
2823
2818
  return function({ indexedDB: e, IDBKeyRange: n }) {
2824
- return un(e) ? Promise.resolve(e.databases()).then((r) => r.map((s) => s.name).filter((s) => s !== vt)) : an(e, n).toCollection().primaryKeys();
2819
+ return un(e) ? Promise.resolve(e.databases()).then((r) => r.map((s) => s.name).filter((s) => s !== yt)) : an(e, n).toCollection().primaryKeys();
2825
2820
  }(ce.dependencies).then(t);
2826
2821
  } catch {
2827
2822
  return D(new C.MissingAPI());
@@ -2849,14 +2844,14 @@ Pe(ce, { ...tt, delete: (t) => new ce(t, { addons: [] }).delete(), exists: (t) =
2849
2844
  return E.trans ? E.trans.waitFor(n) : n;
2850
2845
  }, Promise: S, debug: { get: () => G, set: (t) => {
2851
2846
  Kn(t, t === "dexie" ? () => !0 : zn);
2852
- } }, derive: ke, extend: U, props: Pe, override: En, Events: $e, on: ue, liveQuery: Jr, extendObservabilitySet: tr, getByKeyPath: te, setByKeyPath: H, delByKeyPath: function(t, e) {
2847
+ } }, derive: ke, extend: U, props: Pe, override: En, Events: Ne, on: ue, liveQuery: Jr, extendObservabilitySet: tr, getByKeyPath: te, setByKeyPath: H, delByKeyPath: function(t, e) {
2853
2848
  typeof e == "string" ? H(t, e, void 0) : "length" in e && [].map.call(e, function(n) {
2854
2849
  H(t, n, void 0);
2855
2850
  });
2856
- }, shallowClone: An, deepClone: We, getObjectDiff: ln, cmp: L, asap: Cn, minKey: Mt, addons: [], connections: Ne, errnames: tn, dependencies: Qt, semVer: yn, version: yn.split(".").map((t) => parseInt(t)).reduce((t, e, n) => t + e / Math.pow(10, 2 * n)) }), ce.maxKey = Ue(ce.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (ue(Le, (t) => {
2851
+ }, shallowClone: An, deepClone: We, getObjectDiff: ln, cmp: L, asap: Cn, minKey: Mt, addons: [], connections: $e, errnames: tn, dependencies: Qt, semVer: yn, version: yn.split(".").map((t) => parseInt(t)).reduce((t, e, n) => t + e / Math.pow(10, 2 * n)) }), ce.maxKey = Ue(ce.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (ue(Le, (t) => {
2857
2852
  if (!Z) {
2858
2853
  let e;
2859
- yt ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(ie, !0, !0, t)) : e = new CustomEvent(ie, { detail: t }), Z = !0, dispatchEvent(e), Z = !1;
2854
+ gt ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(ie, !0, !0, t)) : e = new CustomEvent(ie, { detail: t }), Z = !0, dispatchEvent(e), Z = !1;
2860
2855
  }
2861
2856
  }), addEventListener(ie, ({ detail: t }) => {
2862
2857
  Z || at(t);
@@ -2896,7 +2891,7 @@ S.rejectionMapper = function(t, e) {
2896
2891
  }, Kn(G, zn);
2897
2892
  class Zr extends pe {
2898
2893
  constructor() {
2899
- super("NylasAuthDatabase"), ut(this, "grant"), ut(this, "pkce"), this.version(1).stores({
2894
+ super("NylasAuthDatabase"), Et(this, "grant"), Et(this, "pkce"), this.version(1).stores({
2900
2895
  grant: "++id,token",
2901
2896
  pkce: "++id,codeVerifier"
2902
2897
  }), this.grant = this.table("grant"), this.pkce = this.table("pkce");
@@ -2904,7 +2899,7 @@ class Zr extends pe {
2904
2899
  }
2905
2900
  class es {
2906
2901
  constructor() {
2907
- ut(this, "theDB"), this.theDB = new Zr();
2902
+ Et(this, "theDB"), this.theDB = new Zr();
2908
2903
  }
2909
2904
  async setCodeVerifier(e) {
2910
2905
  await this.theDB.pkce.put({ id: 1, codeVerifier: e }, 1);
@@ -2924,7 +2919,7 @@ class es {
2924
2919
  await this.theDB.grant.clear();
2925
2920
  }
2926
2921
  }
2927
- function is(t) {
2922
+ function ss(t) {
2928
2923
  const e = "NylasAuth";
2929
2924
  if (!t)
2930
2925
  throw new Error("NylasAuth requires a config object");
@@ -3129,7 +3124,6 @@ function is(t) {
3129
3124
  export {
3130
3125
  ns as N,
3131
3126
  rs as X,
3132
- ss as Z,
3133
- is as e,
3127
+ ss as e,
3134
3128
  ar as n
3135
3129
  };