@zh-keyboard/react 0.2.1 → 0.2.3

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,13 +1,13 @@
1
1
  var io = Object.defineProperty;
2
2
  var oo = (a, s, l) => s in a ? io(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l;
3
- var _e = (a, s, l) => oo(a, typeof s != "symbol" ? s + "" : s, l);
4
- import Un, { useState as je, useCallback as pt, useEffect as Dt, useRef as $e, useLayoutEffect as Bn, useReducer as so, useMemo as Ue } from "react";
3
+ var we = (a, s, l) => oo(a, typeof s != "symbol" ? s + "" : s, l);
4
+ import Un, { useState as Oe, useCallback as mt, useEffect as Dt, useRef as Be, useLayoutEffect as en, useReducer as so, useMemo as Le } from "react";
5
5
  import uo from "react-dom";
6
6
  var co = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function oi(a) {
8
8
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
9
9
  }
10
- var Dn = { exports: {} }, Xt = {};
10
+ var In = { exports: {} }, Xt = {};
11
11
  /**
12
12
  * @license React
13
13
  * react-jsx-runtime.production.js
@@ -55,20 +55,20 @@ function fo() {
55
55
  function a(P) {
56
56
  if (P == null) return null;
57
57
  if (typeof P == "function")
58
- return P.$$typeof === bt ? null : P.displayName || P.name || null;
58
+ return P.$$typeof === We ? null : P.displayName || P.name || null;
59
59
  if (typeof P == "string") return P;
60
60
  switch (P) {
61
61
  case G:
62
62
  return "Fragment";
63
- case re:
63
+ case ae:
64
64
  return "Profiler";
65
65
  case ne:
66
66
  return "StrictMode";
67
- case ae:
67
+ case re:
68
68
  return "Suspense";
69
- case de:
69
+ case he:
70
70
  return "SuspenseList";
71
- case Oe:
71
+ case Ye:
72
72
  return "Activity";
73
73
  }
74
74
  if (typeof P == "object")
@@ -77,16 +77,16 @@ function fo() {
77
77
  ), P.$$typeof) {
78
78
  case Y:
79
79
  return "Portal";
80
- case Pe:
80
+ case Ae:
81
81
  return (P.displayName || "Context") + ".Provider";
82
- case le:
82
+ case oe:
83
83
  return (P._context.displayName || "Context") + ".Consumer";
84
- case ye:
84
+ case me:
85
85
  var X = P.render;
86
86
  return P = P.displayName, P || (P = X.displayName || X.name || "", P = P !== "" ? "ForwardRef(" + P + ")" : "ForwardRef"), P;
87
- case oe:
87
+ case de:
88
88
  return X = P.displayName || null, X !== null ? X : a(P.type) || "Memo";
89
- case qe:
89
+ case Ge:
90
90
  X = P._payload, P = P._init;
91
91
  try {
92
92
  return a(P(X));
@@ -107,17 +107,17 @@ function fo() {
107
107
  }
108
108
  if (X) {
109
109
  X = console;
110
- var se = X.error, he = typeof Symbol == "function" && Symbol.toStringTag && P[Symbol.toStringTag] || P.constructor.name || "Object";
110
+ var se = X.error, ve = typeof Symbol == "function" && Symbol.toStringTag && P[Symbol.toStringTag] || P.constructor.name || "Object";
111
111
  return se.call(
112
112
  X,
113
113
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
114
- he
114
+ ve
115
115
  ), s(P);
116
116
  }
117
117
  }
118
118
  function h(P) {
119
119
  if (P === G) return "<>";
120
- if (typeof P == "object" && P !== null && P.$$typeof === qe)
120
+ if (typeof P == "object" && P !== null && P.$$typeof === Ge)
121
121
  return "<...>";
122
122
  try {
123
123
  var X = a(P);
@@ -127,14 +127,14 @@ function fo() {
127
127
  }
128
128
  }
129
129
  function j() {
130
- var P = _t.A;
130
+ var P = le.A;
131
131
  return P === null ? null : P.getOwner();
132
132
  }
133
133
  function x() {
134
134
  return Error("react-stack-top-frame");
135
135
  }
136
136
  function w(P) {
137
- if (Ge.call(P, "key")) {
137
+ if (De.call(P, "key")) {
138
138
  var X = Object.getOwnPropertyDescriptor(P, "key").get;
139
139
  if (X && X.isReactWarning) return !1;
140
140
  }
@@ -158,12 +158,12 @@ function fo() {
158
158
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
159
159
  )), P = this.props.ref, P !== void 0 ? P : null;
160
160
  }
161
- function M(P, X, se, he, Re, Ee, Ie, rt) {
162
- return se = Ee.ref, P = {
163
- $$typeof: L,
161
+ function M(P, X, se, ve, Re, Se, Ne, it) {
162
+ return se = Se.ref, P = {
163
+ $$typeof: B,
164
164
  type: P,
165
165
  key: X,
166
- props: Ee,
166
+ props: Se,
167
167
  _owner: Re
168
168
  }, (se !== void 0 ? se : null) !== null ? Object.defineProperty(P, "ref", {
169
169
  enumerable: !1,
@@ -182,68 +182,68 @@ function fo() {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
- value: Ie
185
+ value: Ne
186
186
  }), Object.defineProperty(P, "_debugTask", {
187
187
  configurable: !1,
188
188
  enumerable: !1,
189
189
  writable: !0,
190
- value: rt
190
+ value: it
191
191
  }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
192
192
  }
193
- function H(P, X, se, he, Re, Ee, Ie, rt) {
194
- var me = X.children;
195
- if (me !== void 0)
196
- if (he)
197
- if (Be(me)) {
198
- for (he = 0; he < me.length; he++)
199
- F(me[he]);
200
- Object.freeze && Object.freeze(me);
193
+ function H(P, X, se, ve, Re, Se, Ne, it) {
194
+ var ge = X.children;
195
+ if (ge !== void 0)
196
+ if (ve)
197
+ if (Me(ge)) {
198
+ for (ve = 0; ve < ge.length; ve++)
199
+ F(ge[ve]);
200
+ Object.freeze && Object.freeze(ge);
201
201
  } else
202
202
  console.error(
203
203
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
204
204
  );
205
- else F(me);
206
- if (Ge.call(X, "key")) {
207
- me = a(P);
205
+ else F(ge);
206
+ if (De.call(X, "key")) {
207
+ ge = a(P);
208
208
  var $ = Object.keys(X).filter(function(Et) {
209
209
  return Et !== "key";
210
210
  });
211
- he = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", Le[me + he] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error(
211
+ ve = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", Fe[ge + ve] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error(
212
212
  `A props object containing a "key" prop is being spread into JSX:
213
213
  let props = %s;
214
214
  <%s {...props} />
215
215
  React keys must be passed directly to JSX without using spread:
216
216
  let props = %s;
217
217
  <%s key={someKey} {...props} />`,
218
- he,
219
- me,
218
+ ve,
219
+ ge,
220
220
  $,
221
- me
222
- ), Le[me + he] = !0);
221
+ ge
222
+ ), Fe[ge + ve] = !0);
223
223
  }
224
- if (me = null, se !== void 0 && (l(se), me = "" + se), w(X) && (l(X.key), me = "" + X.key), "key" in X) {
224
+ if (ge = null, se !== void 0 && (l(se), ge = "" + se), w(X) && (l(X.key), ge = "" + X.key), "key" in X) {
225
225
  se = {};
226
226
  for (var kt in X)
227
227
  kt !== "key" && (se[kt] = X[kt]);
228
228
  } else se = X;
229
- return me && E(
229
+ return ge && E(
230
230
  se,
231
231
  typeof P == "function" ? P.displayName || P.name || "Unknown" : P
232
232
  ), M(
233
233
  P,
234
- me,
235
- Ee,
234
+ ge,
235
+ Se,
236
236
  Re,
237
237
  j(),
238
238
  se,
239
- Ie,
240
- rt
239
+ Ne,
240
+ it
241
241
  );
242
242
  }
243
243
  function F(P) {
244
- typeof P == "object" && P !== null && P.$$typeof === L && P._store && (P._store.validated = 1);
244
+ typeof P == "object" && P !== null && P.$$typeof === B && P._store && (P._store.validated = 1);
245
245
  }
246
- var U = Un, L = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), le = Symbol.for("react.consumer"), Pe = Symbol.for("react.context"), ye = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), de = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), qe = Symbol.for("react.lazy"), Oe = Symbol.for("react.activity"), bt = Symbol.for("react.client.reference"), _t = U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ge = Object.prototype.hasOwnProperty, Be = Array.isArray, Nt = console.createTask ? console.createTask : function() {
246
+ var U = Un, B = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), ae = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), Ae = Symbol.for("react.context"), me = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), he = Symbol.for("react.suspense_list"), de = Symbol.for("react.memo"), Ge = Symbol.for("react.lazy"), Ye = Symbol.for("react.activity"), We = Symbol.for("react.client.reference"), le = U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, De = Object.prototype.hasOwnProperty, Me = Array.isArray, Nt = console.createTask ? console.createTask : function() {
247
247
  return null;
248
248
  };
249
249
  U = {
@@ -251,40 +251,40 @@ React keys must be passed directly to JSX without using spread:
251
251
  return P();
252
252
  }
253
253
  };
254
- var wt, xt = {}, on = U["react-stack-bottom-frame"].bind(
254
+ var wt, xt = {}, sn = U["react-stack-bottom-frame"].bind(
255
255
  U,
256
256
  x
257
- )(), De = Nt(h(x)), Le = {};
258
- Qt.Fragment = G, Qt.jsx = function(P, X, se, he, Re) {
259
- var Ee = 1e4 > _t.recentlyCreatedOwnerStacks++;
257
+ )(), Ie = Nt(h(x)), Fe = {};
258
+ Qt.Fragment = G, Qt.jsx = function(P, X, se, ve, Re) {
259
+ var Se = 1e4 > le.recentlyCreatedOwnerStacks++;
260
260
  return H(
261
261
  P,
262
262
  X,
263
263
  se,
264
264
  !1,
265
- he,
265
+ ve,
266
266
  Re,
267
- Ee ? Error("react-stack-top-frame") : on,
268
- Ee ? Nt(h(P)) : De
267
+ Se ? Error("react-stack-top-frame") : sn,
268
+ Se ? Nt(h(P)) : Ie
269
269
  );
270
- }, Qt.jsxs = function(P, X, se, he, Re) {
271
- var Ee = 1e4 > _t.recentlyCreatedOwnerStacks++;
270
+ }, Qt.jsxs = function(P, X, se, ve, Re) {
271
+ var Se = 1e4 > le.recentlyCreatedOwnerStacks++;
272
272
  return H(
273
273
  P,
274
274
  X,
275
275
  se,
276
276
  !0,
277
- he,
277
+ ve,
278
278
  Re,
279
- Ee ? Error("react-stack-top-frame") : on,
280
- Ee ? Nt(h(P)) : De
279
+ Se ? Error("react-stack-top-frame") : sn,
280
+ Se ? Nt(h(P)) : Ie
281
281
  );
282
282
  };
283
283
  }()), Qt;
284
284
  }
285
285
  var Pa;
286
286
  function ho() {
287
- return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? Dn.exports = lo() : Dn.exports = fo()), Dn.exports;
287
+ return Pa || (Pa = 1, process.env.NODE_ENV === "production" ? In.exports = lo() : In.exports = fo()), In.exports;
288
288
  }
289
289
  var A = ho(), si = typeof global == "object" && global && global.Object === Object && global, vo = typeof self == "object" && self && self.Object === Object && self, Ve = si || vo || Function("return this")(), Rt = Ve.Symbol, ui = Object.prototype, po = ui.hasOwnProperty, yo = ui.toString, Zt = Rt ? Rt.toStringTag : void 0;
290
290
  function mo(a) {
@@ -302,10 +302,10 @@ function _o(a) {
302
302
  return bo.call(a);
303
303
  }
304
304
  var wo = "[object Null]", xo = "[object Undefined]", Aa = Rt ? Rt.toStringTag : void 0;
305
- function an(a) {
305
+ function on(a) {
306
306
  return a == null ? a === void 0 ? xo : wo : Aa && Aa in Object(a) ? mo(a) : _o(a);
307
307
  }
308
- function tn(a) {
308
+ function nn(a) {
309
309
  return a != null && typeof a == "object";
310
310
  }
311
311
  var Ln = Array.isArray;
@@ -317,7 +317,7 @@ var ko = "[object AsyncFunction]", Eo = "[object Function]", So = "[object Gener
317
317
  function li(a) {
318
318
  if (!ci(a))
319
319
  return !1;
320
- var s = an(a);
320
+ var s = on(a);
321
321
  return s == Eo || s == So || s == ko || s == jo;
322
322
  }
323
323
  var Tr = Ve["__core-js_shared__"], Ra = function() {
@@ -328,7 +328,7 @@ function Oo(a) {
328
328
  return !!Ra && Ra in a;
329
329
  }
330
330
  var Co = Function.prototype, To = Co.toString;
331
- function mt(a) {
331
+ function bt(a) {
332
332
  if (a != null) {
333
333
  try {
334
334
  return To.call(a);
@@ -348,7 +348,7 @@ function Ko(a) {
348
348
  if (!ci(a) || Oo(a))
349
349
  return !1;
350
350
  var s = li(a) ? zo : Ao;
351
- return s.test(mt(a));
351
+ return s.test(bt(a));
352
352
  }
353
353
  function qo(a, s) {
354
354
  return a == null ? void 0 : a[s];
@@ -384,12 +384,12 @@ function Ho(a, s) {
384
384
  }
385
385
  var Go = "[object Arguments]";
386
386
  function Da(a) {
387
- return tn(a) && an(a) == Go;
387
+ return nn(a) && on(a) == Go;
388
388
  }
389
389
  var di = Object.prototype, Yo = di.hasOwnProperty, Wo = di.propertyIsEnumerable, Xo = Da(/* @__PURE__ */ function() {
390
390
  return arguments;
391
391
  }()) ? Da : function(a) {
392
- return tn(a) && Yo.call(a, "callee") && !Wo.call(a, "callee");
392
+ return nn(a) && Yo.call(a, "callee") && !Wo.call(a, "callee");
393
393
  };
394
394
  function Qo() {
395
395
  return !1;
@@ -398,16 +398,16 @@ var vi = typeof exports == "object" && exports && !exports.nodeType && exports,
398
398
  ce[ps] = ce[ys] = ce[ms] = ce[gs] = ce[bs] = ce[_s] = ce[ws] = ce[xs] = ce[ks] = !0;
399
399
  ce[es] = ce[ts] = ce[ds] = ce[ns] = ce[vs] = ce[rs] = ce[as] = ce[is] = ce[os] = ce[ss] = ce[us] = ce[cs] = ce[ls] = ce[fs] = ce[hs] = !1;
400
400
  function Es(a) {
401
- return tn(a) && hi(a.length) && !!ce[an(a)];
401
+ return nn(a) && hi(a.length) && !!ce[on(a)];
402
402
  }
403
403
  function Ss(a) {
404
404
  return function(s) {
405
405
  return a(s);
406
406
  };
407
407
  }
408
- var pi = typeof exports == "object" && exports && !exports.nodeType && exports, en = pi && typeof module == "object" && module && !module.nodeType && module, js = en && en.exports === pi, Pr = js && si.process, za = function() {
408
+ var pi = typeof exports == "object" && exports && !exports.nodeType && exports, tn = pi && typeof module == "object" && module && !module.nodeType && module, js = tn && tn.exports === pi, Pr = js && si.process, za = function() {
409
409
  try {
410
- var a = en && en.require && en.require("util").types;
410
+ var a = tn && tn.require && tn.require("util").types;
411
411
  return a || Pr && Pr.binding && Pr.binding("util");
412
412
  } catch {
413
413
  }
@@ -439,9 +439,9 @@ function Is(a) {
439
439
  function Ns(a) {
440
440
  return $o(a) ? Ts(a) : Is(a);
441
441
  }
442
- var nn = It(Object, "create");
442
+ var rn = It(Object, "create");
443
443
  function zs() {
444
- this.__data__ = nn ? nn(null) : {}, this.size = 0;
444
+ this.__data__ = rn ? rn(null) : {}, this.size = 0;
445
445
  }
446
446
  function Ks(a) {
447
447
  var s = this.has(a) && delete this.__data__[a];
@@ -450,7 +450,7 @@ function Ks(a) {
450
450
  var qs = "__lodash_hash_undefined__", Bs = Object.prototype, Ls = Bs.hasOwnProperty;
451
451
  function Ms(a) {
452
452
  var s = this.__data__;
453
- if (nn) {
453
+ if (rn) {
454
454
  var l = s[a];
455
455
  return l === qs ? void 0 : l;
456
456
  }
@@ -459,25 +459,25 @@ function Ms(a) {
459
459
  var Fs = Object.prototype, $s = Fs.hasOwnProperty;
460
460
  function Us(a) {
461
461
  var s = this.__data__;
462
- return nn ? s[a] !== void 0 : $s.call(s, a);
462
+ return rn ? s[a] !== void 0 : $s.call(s, a);
463
463
  }
464
464
  var Vs = "__lodash_hash_undefined__";
465
465
  function Hs(a, s) {
466
466
  var l = this.__data__;
467
- return this.size += this.has(a) ? 0 : 1, l[a] = nn && s === void 0 ? Vs : s, this;
467
+ return this.size += this.has(a) ? 0 : 1, l[a] = rn && s === void 0 ? Vs : s, this;
468
468
  }
469
- function yt(a) {
469
+ function gt(a) {
470
470
  var s = -1, l = a == null ? 0 : a.length;
471
471
  for (this.clear(); ++s < l; ) {
472
472
  var h = a[s];
473
473
  this.set(h[0], h[1]);
474
474
  }
475
475
  }
476
- yt.prototype.clear = zs;
477
- yt.prototype.delete = Ks;
478
- yt.prototype.get = Ms;
479
- yt.prototype.has = Us;
480
- yt.prototype.set = Hs;
476
+ gt.prototype.clear = zs;
477
+ gt.prototype.delete = Ks;
478
+ gt.prototype.get = Ms;
479
+ gt.prototype.has = Us;
480
+ gt.prototype.set = Hs;
481
481
  function Gs() {
482
482
  this.__data__ = [], this.size = 0;
483
483
  }
@@ -518,12 +518,12 @@ He.prototype.delete = Xs;
518
518
  He.prototype.get = Qs;
519
519
  He.prototype.has = Zs;
520
520
  He.prototype.set = Js;
521
- var rn = It(Ve, "Map");
521
+ var an = It(Ve, "Map");
522
522
  function eu() {
523
523
  this.size = 0, this.__data__ = {
524
- hash: new yt(),
525
- map: new (rn || He)(),
526
- string: new yt()
524
+ hash: new gt(),
525
+ map: new (an || He)(),
526
+ string: new gt()
527
527
  };
528
528
  }
529
529
  function tu(a) {
@@ -548,18 +548,18 @@ function iu(a, s) {
548
548
  var l = Hn(this, a), h = l.size;
549
549
  return l.set(a, s), this.size += l.size == h ? 0 : 1, this;
550
550
  }
551
- function gt(a) {
551
+ function _t(a) {
552
552
  var s = -1, l = a == null ? 0 : a.length;
553
553
  for (this.clear(); ++s < l; ) {
554
554
  var h = a[s];
555
555
  this.set(h[0], h[1]);
556
556
  }
557
557
  }
558
- gt.prototype.clear = eu;
559
- gt.prototype.delete = nu;
560
- gt.prototype.get = ru;
561
- gt.prototype.has = au;
562
- gt.prototype.set = iu;
558
+ _t.prototype.clear = eu;
559
+ _t.prototype.delete = nu;
560
+ _t.prototype.get = ru;
561
+ _t.prototype.has = au;
562
+ _t.prototype.set = iu;
563
563
  function ou(a, s) {
564
564
  for (var l = -1, h = s.length, j = a.length; ++l < h; )
565
565
  a[j + l] = s[l];
@@ -583,21 +583,21 @@ function hu(a, s) {
583
583
  var l = this.__data__;
584
584
  if (l instanceof He) {
585
585
  var h = l.__data__;
586
- if (!rn || h.length < fu - 1)
586
+ if (!an || h.length < fu - 1)
587
587
  return h.push([a, s]), this.size = ++l.size, this;
588
- l = this.__data__ = new gt(h);
588
+ l = this.__data__ = new _t(h);
589
589
  }
590
590
  return l.set(a, s), this.size = l.size, this;
591
591
  }
592
- function nt(a) {
592
+ function at(a) {
593
593
  var s = this.__data__ = new He(a);
594
594
  this.size = s.size;
595
595
  }
596
- nt.prototype.clear = su;
597
- nt.prototype.delete = uu;
598
- nt.prototype.get = cu;
599
- nt.prototype.has = lu;
600
- nt.prototype.set = hu;
596
+ at.prototype.clear = su;
597
+ at.prototype.delete = uu;
598
+ at.prototype.get = cu;
599
+ at.prototype.has = lu;
600
+ at.prototype.set = hu;
601
601
  function du(a, s) {
602
602
  for (var l = -1, h = a == null ? 0 : a.length, j = 0, x = []; ++l < h; ) {
603
603
  var w = a[l];
@@ -620,9 +620,9 @@ function gu(a, s, l) {
620
620
  function Ba(a) {
621
621
  return gu(a, Ns, mu);
622
622
  }
623
- var qr = It(Ve, "DataView"), Br = It(Ve, "Promise"), Lr = It(Ve, "Set"), La = "[object Map]", bu = "[object Object]", Ma = "[object Promise]", Fa = "[object Set]", $a = "[object WeakMap]", Ua = "[object DataView]", _u = mt(qr), wu = mt(rn), xu = mt(Br), ku = mt(Lr), Eu = mt(zr), tt = an;
624
- (qr && tt(new qr(new ArrayBuffer(1))) != Ua || rn && tt(new rn()) != La || Br && tt(Br.resolve()) != Ma || Lr && tt(new Lr()) != Fa || zr && tt(new zr()) != $a) && (tt = function(a) {
625
- var s = an(a), l = s == bu ? a.constructor : void 0, h = l ? mt(l) : "";
623
+ var qr = It(Ve, "DataView"), Br = It(Ve, "Promise"), Lr = It(Ve, "Set"), La = "[object Map]", bu = "[object Object]", Ma = "[object Promise]", Fa = "[object Set]", $a = "[object WeakMap]", Ua = "[object DataView]", _u = bt(qr), wu = bt(an), xu = bt(Br), ku = bt(Lr), Eu = bt(zr), rt = on;
624
+ (qr && rt(new qr(new ArrayBuffer(1))) != Ua || an && rt(new an()) != La || Br && rt(Br.resolve()) != Ma || Lr && rt(new Lr()) != Fa || zr && rt(new zr()) != $a) && (rt = function(a) {
625
+ var s = on(a), l = s == bu ? a.constructor : void 0, h = l ? bt(l) : "";
626
626
  if (h)
627
627
  switch (h) {
628
628
  case _u:
@@ -647,7 +647,7 @@ function Ou(a) {
647
647
  }
648
648
  function Mn(a) {
649
649
  var s = -1, l = a == null ? 0 : a.length;
650
- for (this.__data__ = new gt(); ++s < l; )
650
+ for (this.__data__ = new _t(); ++s < l; )
651
651
  this.add(a[s]);
652
652
  }
653
653
  Mn.prototype.add = Mn.prototype.push = ju;
@@ -669,7 +669,7 @@ function mi(a, s, l, h, j, x) {
669
669
  var M = x.get(a), H = x.get(s);
670
670
  if (M && H)
671
671
  return M == s && H == a;
672
- var F = -1, U = !0, L = l & Au ? new Mn() : void 0;
672
+ var F = -1, U = !0, B = l & Au ? new Mn() : void 0;
673
673
  for (x.set(a, s), x.set(s, a); ++F < E; ) {
674
674
  var Y = a[F], G = s[F];
675
675
  if (h)
@@ -680,10 +680,10 @@ function mi(a, s, l, h, j, x) {
680
680
  U = !1;
681
681
  break;
682
682
  }
683
- if (L) {
684
- if (!Cu(s, function(re, le) {
685
- if (!Tu(L, le) && (Y === re || j(Y, re, l, h, x)))
686
- return L.push(le);
683
+ if (B) {
684
+ if (!Cu(s, function(ae, oe) {
685
+ if (!Tu(B, oe) && (Y === ae || j(Y, ae, l, h, x)))
686
+ return B.push(oe);
687
687
  })) {
688
688
  U = !1;
689
689
  break;
@@ -753,57 +753,57 @@ function Qu(a, s, l, h, j, x) {
753
753
  if (!(w ? U in s : Xu.call(s, U)))
754
754
  return !1;
755
755
  }
756
- var L = x.get(a), Y = x.get(s);
757
- if (L && Y)
758
- return L == s && Y == a;
756
+ var B = x.get(a), Y = x.get(s);
757
+ if (B && Y)
758
+ return B == s && Y == a;
759
759
  var G = !0;
760
760
  x.set(a, s), x.set(s, a);
761
761
  for (var ne = w; ++F < T; ) {
762
762
  U = E[F];
763
- var re = a[U], le = s[U];
763
+ var ae = a[U], oe = s[U];
764
764
  if (h)
765
- var Pe = w ? h(le, re, U, s, a, x) : h(re, le, U, a, s, x);
766
- if (!(Pe === void 0 ? re === le || j(re, le, l, h, x) : Pe)) {
765
+ var Ae = w ? h(oe, ae, U, s, a, x) : h(ae, oe, U, a, s, x);
766
+ if (!(Ae === void 0 ? ae === oe || j(ae, oe, l, h, x) : Ae)) {
767
767
  G = !1;
768
768
  break;
769
769
  }
770
770
  ne || (ne = U == "constructor");
771
771
  }
772
772
  if (G && !ne) {
773
- var ye = a.constructor, ae = s.constructor;
774
- ye != ae && "constructor" in a && "constructor" in s && !(typeof ye == "function" && ye instanceof ye && typeof ae == "function" && ae instanceof ae) && (G = !1);
773
+ var me = a.constructor, re = s.constructor;
774
+ me != re && "constructor" in a && "constructor" in s && !(typeof me == "function" && me instanceof me && typeof re == "function" && re instanceof re) && (G = !1);
775
775
  }
776
776
  return x.delete(a), x.delete(s), G;
777
777
  }
778
- var Zu = 1, Ga = "[object Arguments]", Ya = "[object Array]", In = "[object Object]", Ju = Object.prototype, Wa = Ju.hasOwnProperty;
778
+ var Zu = 1, Ga = "[object Arguments]", Ya = "[object Array]", Nn = "[object Object]", Ju = Object.prototype, Wa = Ju.hasOwnProperty;
779
779
  function ec(a, s, l, h, j, x) {
780
- var w = Ln(a), E = Ln(s), T = w ? Ya : tt(a), M = E ? Ya : tt(s);
781
- T = T == Ga ? In : T, M = M == Ga ? In : M;
782
- var H = T == In, F = M == In, U = T == M;
780
+ var w = Ln(a), E = Ln(s), T = w ? Ya : rt(a), M = E ? Ya : rt(s);
781
+ T = T == Ga ? Nn : T, M = M == Ga ? Nn : M;
782
+ var H = T == Nn, F = M == Nn, U = T == M;
783
783
  if (U && Kr(a)) {
784
784
  if (!Kr(s))
785
785
  return !1;
786
786
  w = !0, H = !1;
787
787
  }
788
788
  if (U && !H)
789
- return x || (x = new nt()), w || yi(a) ? mi(a, s, l, h, j, x) : Gu(a, s, T, l, h, j, x);
789
+ return x || (x = new at()), w || yi(a) ? mi(a, s, l, h, j, x) : Gu(a, s, T, l, h, j, x);
790
790
  if (!(l & Zu)) {
791
- var L = H && Wa.call(a, "__wrapped__"), Y = F && Wa.call(s, "__wrapped__");
792
- if (L || Y) {
793
- var G = L ? a.value() : a, ne = Y ? s.value() : s;
794
- return x || (x = new nt()), j(G, ne, l, h, x);
791
+ var B = H && Wa.call(a, "__wrapped__"), Y = F && Wa.call(s, "__wrapped__");
792
+ if (B || Y) {
793
+ var G = B ? a.value() : a, ne = Y ? s.value() : s;
794
+ return x || (x = new at()), j(G, ne, l, h, x);
795
795
  }
796
796
  }
797
- return U ? (x || (x = new nt()), Qu(a, s, l, h, j, x)) : !1;
797
+ return U ? (x || (x = new at()), Qu(a, s, l, h, j, x)) : !1;
798
798
  }
799
799
  function gi(a, s, l, h, j) {
800
- return a === s ? !0 : a == null || s == null || !tn(a) && !tn(s) ? a !== a && s !== s : ec(a, s, l, h, gi, j);
800
+ return a === s ? !0 : a == null || s == null || !nn(a) && !nn(s) ? a !== a && s !== s : ec(a, s, l, h, gi, j);
801
801
  }
802
802
  function tc(a, s) {
803
803
  return gi(a, s);
804
804
  }
805
805
  /*! js-cookie v3.0.5 | MIT */
806
- function Nn(a) {
806
+ function zn(a) {
807
807
  for (var s = 1; s < arguments.length; s++) {
808
808
  var l = arguments[s];
809
809
  for (var h in l)
@@ -825,7 +825,7 @@ var nc = {
825
825
  function Mr(a, s) {
826
826
  function l(j, x, w) {
827
827
  if (!(typeof document > "u")) {
828
- w = Nn({}, s, w), typeof w.expires == "number" && (w.expires = new Date(Date.now() + w.expires * 864e5)), w.expires && (w.expires = w.expires.toUTCString()), j = encodeURIComponent(j).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
828
+ w = zn({}, s, w), typeof w.expires == "number" && (w.expires = new Date(Date.now() + w.expires * 864e5)), w.expires && (w.expires = w.expires.toUTCString()), j = encodeURIComponent(j).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
829
829
  var E = "";
830
830
  for (var T in w)
831
831
  w[T] && (E += "; " + T, w[T] !== !0 && (E += "=" + w[T].split(";")[0]));
@@ -854,16 +854,16 @@ function Mr(a, s) {
854
854
  l(
855
855
  j,
856
856
  "",
857
- Nn({}, x, {
857
+ zn({}, x, {
858
858
  expires: -1
859
859
  })
860
860
  );
861
861
  },
862
862
  withAttributes: function(j) {
863
- return Mr(this.converter, Nn({}, this.attributes, j));
863
+ return Mr(this.converter, zn({}, this.attributes, j));
864
864
  },
865
865
  withConverter: function(j) {
866
- return Mr(Nn({}, this.converter, j), this.attributes);
866
+ return Mr(zn({}, this.converter, j), this.attributes);
867
867
  }
868
868
  },
869
869
  {
@@ -1008,7 +1008,7 @@ function rc() {
1008
1008
  }(Rr)), Rr.exports;
1009
1009
  }
1010
1010
  rc();
1011
- var zn = { exports: {} }, Dr = {};
1011
+ var Kn = { exports: {} }, Dr = {};
1012
1012
  /**
1013
1013
  * @license React
1014
1014
  * use-sync-external-store-shim.production.js
@@ -1028,12 +1028,12 @@ function ac() {
1028
1028
  }
1029
1029
  var l = typeof Object.is == "function" ? Object.is : s, h = a.useState, j = a.useEffect, x = a.useLayoutEffect, w = a.useDebugValue;
1030
1030
  function E(F, U) {
1031
- var L = U(), Y = h({ inst: { value: L, getSnapshot: U } }), G = Y[0].inst, ne = Y[1];
1031
+ var B = U(), Y = h({ inst: { value: B, getSnapshot: U } }), G = Y[0].inst, ne = Y[1];
1032
1032
  return x(
1033
1033
  function() {
1034
- G.value = L, G.getSnapshot = U, T(G) && ne({ inst: G });
1034
+ G.value = B, G.getSnapshot = U, T(G) && ne({ inst: G });
1035
1035
  },
1036
- [F, L, U]
1036
+ [F, B, U]
1037
1037
  ), j(
1038
1038
  function() {
1039
1039
  return T(G) && ne({ inst: G }), F(function() {
@@ -1041,14 +1041,14 @@ function ac() {
1041
1041
  });
1042
1042
  },
1043
1043
  [F]
1044
- ), w(L), L;
1044
+ ), w(B), B;
1045
1045
  }
1046
1046
  function T(F) {
1047
1047
  var U = F.getSnapshot;
1048
1048
  F = F.value;
1049
1049
  try {
1050
- var L = U();
1051
- return !l(F, L);
1050
+ var B = U();
1051
+ return !l(F, B);
1052
1052
  } catch {
1053
1053
  return !0;
1054
1054
  }
@@ -1072,10 +1072,10 @@ var Ir = {};
1072
1072
  var Za;
1073
1073
  function ic() {
1074
1074
  return Za || (Za = 1, process.env.NODE_ENV !== "production" && function() {
1075
- function a(L, Y) {
1076
- return L === Y && (L !== 0 || 1 / L === 1 / Y) || L !== L && Y !== Y;
1075
+ function a(B, Y) {
1076
+ return B === Y && (B !== 0 || 1 / B === 1 / Y) || B !== B && Y !== Y;
1077
1077
  }
1078
- function s(L, Y) {
1078
+ function s(B, Y) {
1079
1079
  H || j.startTransition === void 0 || (H = !0, console.error(
1080
1080
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1081
1081
  ));
@@ -1089,32 +1089,32 @@ function ic() {
1089
1089
  ne = w({
1090
1090
  inst: { value: G, getSnapshot: Y }
1091
1091
  });
1092
- var re = ne[0].inst, le = ne[1];
1092
+ var ae = ne[0].inst, oe = ne[1];
1093
1093
  return T(
1094
1094
  function() {
1095
- re.value = G, re.getSnapshot = Y, l(re) && le({ inst: re });
1095
+ ae.value = G, ae.getSnapshot = Y, l(ae) && oe({ inst: ae });
1096
1096
  },
1097
- [L, G, Y]
1097
+ [B, G, Y]
1098
1098
  ), E(
1099
1099
  function() {
1100
- return l(re) && le({ inst: re }), L(function() {
1101
- l(re) && le({ inst: re });
1100
+ return l(ae) && oe({ inst: ae }), B(function() {
1101
+ l(ae) && oe({ inst: ae });
1102
1102
  });
1103
1103
  },
1104
- [L]
1104
+ [B]
1105
1105
  ), M(G), G;
1106
1106
  }
1107
- function l(L) {
1108
- var Y = L.getSnapshot;
1109
- L = L.value;
1107
+ function l(B) {
1108
+ var Y = B.getSnapshot;
1109
+ B = B.value;
1110
1110
  try {
1111
1111
  var G = Y();
1112
- return !x(L, G);
1112
+ return !x(B, G);
1113
1113
  } catch {
1114
1114
  return !0;
1115
1115
  }
1116
1116
  }
1117
- function h(L, Y) {
1117
+ function h(B, Y) {
1118
1118
  return Y();
1119
1119
  }
1120
1120
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
@@ -1124,7 +1124,7 @@ function ic() {
1124
1124
  }
1125
1125
  var Ja;
1126
1126
  function oc() {
1127
- return Ja || (Ja = 1, process.env.NODE_ENV === "production" ? zn.exports = ac() : zn.exports = ic()), zn.exports;
1127
+ return Ja || (Ja = 1, process.env.NODE_ENV === "production" ? Kn.exports = ac() : Kn.exports = ic()), Kn.exports;
1128
1128
  }
1129
1129
  oc();
1130
1130
  var ei, ti;
@@ -1133,8 +1133,8 @@ function bi(a) {
1133
1133
  }
1134
1134
  const sc = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test", Vr = typeof window < "u", uc = typeof navigator < "u";
1135
1135
  Vr && (!((ti = window) == null || (ei = ti.navigator) == null) && ei.userAgent) && /iP(?:ad|hone|od)/.test(window.navigator.userAgent);
1136
- const _i = Vr ? Bn : Dt, wi = (a) => {
1137
- const s = $e(a);
1136
+ const _i = Vr ? en : Dt, wi = (a) => {
1137
+ const s = Be(a);
1138
1138
  return _i(() => {
1139
1139
  s.current = a;
1140
1140
  }, [
@@ -1163,7 +1163,7 @@ function hc() {
1163
1163
  }
1164
1164
  const dc = (a, s, l) => {
1165
1165
  process.env.NODE_ENV !== "production" && ((!Array.isArray(s) || !s.length) && console.warn("`useCustomCompareEffect` should not be used with no dependencies. Use React.useEffect instead."), typeof l != "function" && console.warn("`useCustomCompareEffect` should be used with depsEqual callback for comparing deps list"));
1166
- const h = $e(void 0), j = hc();
1166
+ const h = Be(void 0), j = hc();
1167
1167
  h.current || (h.current = s), _i(() => {
1168
1168
  l(s, h.current) || (h.current = s, j());
1169
1169
  }), Dt(a, h.current);
@@ -1191,7 +1191,7 @@ const vc = (a) => {
1191
1191
  a == null || a();
1192
1192
  }, []);
1193
1193
  }, pc = () => {
1194
- const [a, s] = je(null), l = pt(() => {
1194
+ const [a, s] = Oe(null), l = mt(() => {
1195
1195
  var h;
1196
1196
  s((h = window) == null ? void 0 : h.document.activeElement);
1197
1197
  }, []);
@@ -1200,7 +1200,7 @@ const vc = (a) => {
1200
1200
  s((h = window) == null ? void 0 : h.document.activeElement);
1201
1201
  }), a;
1202
1202
  }, yc = (a, s, l = Hr) => {
1203
- const h = wi(s), j = $e(), x = pt(() => {
1203
+ const h = wi(s), j = Be(), x = mt(() => {
1204
1204
  j.current && j.current.disconnect();
1205
1205
  }, []);
1206
1206
  return ki(() => {
@@ -1214,7 +1214,7 @@ const vc = (a) => {
1214
1214
  l
1215
1215
  ]), x;
1216
1216
  }, Ei = (a, s = Hr) => {
1217
- const { box: l = "content-box" } = s, [h, j] = je(0), [x, w] = je(0);
1217
+ const { box: l = "content-box" } = s, [h, j] = Oe(0), [x, w] = Oe(0);
1218
1218
  return yc(a, ([E]) => {
1219
1219
  const T = l === "border-box" ? E.borderBoxSize : l === "content-box" ? E.contentBoxSize : E.devicePixelContentBoxSize;
1220
1220
  T ? (j(T.reduce((M, { inlineSize: H }) => M + H, 0)), w(T.reduce((M, { blockSize: H }) => M + H, 0))) : (j(E.contentRect.width), w(E.contentRect.height));
@@ -1222,10 +1222,10 @@ const vc = (a) => {
1222
1222
  h,
1223
1223
  x
1224
1224
  ];
1225
- }, Kn = uc ? navigator : void 0;
1226
- Kn && (Kn.connection || Kn.mozConnection || Kn.webkitConnection);
1225
+ }, qn = uc ? navigator : void 0;
1226
+ qn && (qn.connection || qn.mozConnection || qn.webkitConnection);
1227
1227
  Un.use;
1228
- var qn = { exports: {} }, mc = qn.exports, ni;
1228
+ var Bn = { exports: {} }, mc = Bn.exports, ni;
1229
1229
  function gc() {
1230
1230
  return ni || (ni = 1, function(a, s) {
1231
1231
  (function(l, h) {
@@ -1263,34 +1263,34 @@ function gc() {
1263
1263
  Y(e, n, t[n]);
1264
1264
  });
1265
1265
  }
1266
- var L = Object.defineProperty;
1266
+ var B = Object.defineProperty;
1267
1267
  function Y(e, t, n, r) {
1268
- L(e, t, T(n && F(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r));
1268
+ B(e, t, T(n && F(n, "get") && typeof n.get == "function" ? { get: n.get, set: n.set, configurable: !0 } : { value: n, configurable: !0, writable: !0 }, r));
1269
1269
  }
1270
1270
  function G(e) {
1271
1271
  return { from: function(t) {
1272
1272
  return e.prototype = Object.create(t.prototype), Y(e.prototype, "constructor", e), { extend: U.bind(null, e.prototype) };
1273
1273
  } };
1274
1274
  }
1275
- var ne = Object.getOwnPropertyDescriptor, re = [].slice;
1276
- function le(e, t, n) {
1277
- return re.call(e, t, n);
1275
+ var ne = Object.getOwnPropertyDescriptor, ae = [].slice;
1276
+ function oe(e, t, n) {
1277
+ return ae.call(e, t, n);
1278
1278
  }
1279
- function Pe(e, t) {
1279
+ function Ae(e, t) {
1280
1280
  return t(e);
1281
1281
  }
1282
- function ye(e) {
1282
+ function me(e) {
1283
1283
  if (!e) throw new Error("Assertion Failed");
1284
1284
  }
1285
- function ae(e) {
1285
+ function re(e) {
1286
1286
  x.setImmediate ? setImmediate(e) : setTimeout(e, 0);
1287
1287
  }
1288
- function de(e, t) {
1288
+ function he(e, t) {
1289
1289
  if (typeof t == "string" && F(e, t)) return e[t];
1290
1290
  if (!t) return e;
1291
1291
  if (typeof t != "string") {
1292
1292
  for (var n = [], r = 0, i = t.length; r < i; ++r) {
1293
- var o = de(e, t[r]);
1293
+ var o = he(e, t[r]);
1294
1294
  n.push(o);
1295
1295
  }
1296
1296
  return n;
@@ -1298,72 +1298,72 @@ function gc() {
1298
1298
  var u = t.indexOf(".");
1299
1299
  if (u !== -1) {
1300
1300
  var c = e[t.substr(0, u)];
1301
- return c == null ? void 0 : de(c, t.substr(u + 1));
1301
+ return c == null ? void 0 : he(c, t.substr(u + 1));
1302
1302
  }
1303
1303
  }
1304
- function oe(e, t, n) {
1304
+ function de(e, t, n) {
1305
1305
  if (e && t !== void 0 && !("isFrozen" in Object && Object.isFrozen(e))) if (typeof t != "string" && "length" in t) {
1306
- ye(typeof n != "string" && "length" in n);
1307
- for (var r = 0, i = t.length; r < i; ++r) oe(e, t[r], n[r]);
1306
+ me(typeof n != "string" && "length" in n);
1307
+ for (var r = 0, i = t.length; r < i; ++r) de(e, t[r], n[r]);
1308
1308
  } else {
1309
1309
  var o, u, c = t.indexOf(".");
1310
- c !== -1 ? (o = t.substr(0, c), (u = t.substr(c + 1)) === "" ? n === void 0 ? E(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : oe(c = !(c = e[o]) || !F(e, o) ? e[o] = {} : c, u, n)) : n === void 0 ? E(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
1310
+ c !== -1 ? (o = t.substr(0, c), (u = t.substr(c + 1)) === "" ? n === void 0 ? E(e) && !isNaN(parseInt(o)) ? e.splice(o, 1) : delete e[o] : e[o] = n : de(c = !(c = e[o]) || !F(e, o) ? e[o] = {} : c, u, n)) : n === void 0 ? E(e) && !isNaN(parseInt(t)) ? e.splice(t, 1) : delete e[t] : e[t] = n;
1311
1311
  }
1312
1312
  }
1313
- function qe(e) {
1313
+ function Ge(e) {
1314
1314
  var t, n = {};
1315
1315
  for (t in e) F(e, t) && (n[t] = e[t]);
1316
1316
  return n;
1317
1317
  }
1318
- var Oe = [].concat;
1319
- function bt(e) {
1320
- return Oe.apply([], e);
1318
+ var Ye = [].concat;
1319
+ function We(e) {
1320
+ return Ye.apply([], e);
1321
1321
  }
1322
- var it = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(bt([8, 16, 32, 64].map(function(e) {
1322
+ var st = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(We([8, 16, 32, 64].map(function(e) {
1323
1323
  return ["Int", "Uint", "Float"].map(function(t) {
1324
1324
  return t + e + "Array";
1325
1325
  });
1326
1326
  }))).filter(function(e) {
1327
1327
  return x[e];
1328
- }), _t = new Set(it.map(function(e) {
1328
+ }), le = new Set(st.map(function(e) {
1329
1329
  return x[e];
1330
- })), Ge = null;
1331
- function Be(e) {
1332
- return Ge = /* @__PURE__ */ new WeakMap(), e = function t(n) {
1330
+ })), De = null;
1331
+ function Me(e) {
1332
+ return De = /* @__PURE__ */ new WeakMap(), e = function t(n) {
1333
1333
  if (!n || typeof n != "object") return n;
1334
- var r = Ge.get(n);
1334
+ var r = De.get(n);
1335
1335
  if (r) return r;
1336
1336
  if (E(n)) {
1337
- r = [], Ge.set(n, r);
1337
+ r = [], De.set(n, r);
1338
1338
  for (var i = 0, o = n.length; i < o; ++i) r.push(t(n[i]));
1339
- } else if (_t.has(n.constructor)) r = n;
1339
+ } else if (le.has(n.constructor)) r = n;
1340
1340
  else {
1341
1341
  var u, c = M(n);
1342
- for (u in r = c === Object.prototype ? {} : Object.create(c), Ge.set(n, r), n) F(n, u) && (r[u] = t(n[u]));
1342
+ for (u in r = c === Object.prototype ? {} : Object.create(c), De.set(n, r), n) F(n, u) && (r[u] = t(n[u]));
1343
1343
  }
1344
1344
  return r;
1345
- }(e), Ge = null, e;
1345
+ }(e), De = null, e;
1346
1346
  }
1347
1347
  var Nt = {}.toString;
1348
1348
  function wt(e) {
1349
1349
  return Nt.call(e).slice(8, -1);
1350
1350
  }
1351
- var xt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", on = typeof xt == "symbol" ? function(e) {
1351
+ var xt = typeof Symbol < "u" ? Symbol.iterator : "@@iterator", sn = typeof xt == "symbol" ? function(e) {
1352
1352
  var t;
1353
1353
  return e != null && (t = e[xt]) && t.apply(e);
1354
1354
  } : function() {
1355
1355
  return null;
1356
1356
  };
1357
- function De(e, t) {
1357
+ function Ie(e, t) {
1358
1358
  return t = e.indexOf(t), 0 <= t && e.splice(t, 1), 0 <= t;
1359
1359
  }
1360
- var Le = {};
1360
+ var Fe = {};
1361
1361
  function P(e) {
1362
1362
  var t, n, r, i;
1363
1363
  if (arguments.length === 1) {
1364
1364
  if (E(e)) return e.slice();
1365
- if (this === Le && typeof e == "string") return [e];
1366
- if (i = on(e)) {
1365
+ if (this === Fe && typeof e == "string") return [e];
1366
+ if (i = sn(e)) {
1367
1367
  for (n = []; !(r = i.next()).done; ) n.push(r.value);
1368
1368
  return n;
1369
1369
  }
@@ -1379,8 +1379,8 @@ function gc() {
1379
1379
  return e[Symbol.toStringTag] === "AsyncFunction";
1380
1380
  } : function() {
1381
1381
  return !1;
1382
- }, qt = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], Ae = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(qt), se = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
1383
- function he(e, t) {
1382
+ }, qt = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "Version", "NotFound", "InvalidState", "InvalidAccess", "Abort", "Timeout", "QuotaExceeded", "Syntax", "DataClone"], Pe = ["Modify", "Bulk", "OpenFailed", "VersionChange", "Schema", "Upgrade", "InvalidTable", "MissingAPI", "NoSuchDatabase", "InvalidArgument", "SubTransaction", "Unsupported", "Internal", "DatabaseClosed", "PrematureCommit", "ForeignAwait"].concat(qt), se = { VersionChanged: "Database version changed by other database connection", DatabaseClosed: "Database has been closed", Abort: "Transaction aborted", TransactionInactive: "Transaction has already completed or failed", MissingAPI: "IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb" };
1383
+ function ve(e, t) {
1384
1384
  this.name = e, this.message = t;
1385
1385
  }
1386
1386
  function Re(e, t) {
@@ -1391,31 +1391,31 @@ function gc() {
1391
1391
  }).join(`
1392
1392
  `);
1393
1393
  }
1394
- function Ee(e, t, n, r) {
1394
+ function Se(e, t, n, r) {
1395
1395
  this.failures = t, this.failedKeys = r, this.successCount = n, this.message = Re(e, t);
1396
1396
  }
1397
- function Ie(e, t) {
1397
+ function Ne(e, t) {
1398
1398
  this.name = "BulkError", this.failures = Object.keys(t).map(function(n) {
1399
1399
  return t[n];
1400
1400
  }), this.failuresByPos = t, this.message = Re(e, this.failures);
1401
1401
  }
1402
- G(he).from(Error).extend({ toString: function() {
1402
+ G(ve).from(Error).extend({ toString: function() {
1403
1403
  return this.name + ": " + this.message;
1404
- } }), G(Ee).from(he), G(Ie).from(he);
1405
- var rt = Ae.reduce(function(e, t) {
1404
+ } }), G(Se).from(ve), G(Ne).from(ve);
1405
+ var it = Pe.reduce(function(e, t) {
1406
1406
  return e[t] = t + "Error", e;
1407
- }, {}), me = he, $ = Ae.reduce(function(e, t) {
1407
+ }, {}), ge = ve, $ = Pe.reduce(function(e, t) {
1408
1408
  var n = t + "Error";
1409
1409
  function r(i, o) {
1410
1410
  this.name = n, i ? typeof i == "string" ? (this.message = "".concat(i).concat(o ? `
1411
1411
  ` + o : ""), this.inner = o || null) : typeof i == "object" && (this.message = "".concat(i.name, " ").concat(i.message), this.inner = i) : (this.message = se[t] || n, this.inner = null);
1412
1412
  }
1413
- return G(r).from(me), e[t] = r, e;
1413
+ return G(r).from(ge), e[t] = r, e;
1414
1414
  }, {});
1415
1415
  $.Syntax = SyntaxError, $.Type = TypeError, $.Range = RangeError;
1416
1416
  var kt = qt.reduce(function(e, t) {
1417
1417
  return e[t + "Error"] = $[t], e;
1418
- }, {}), Et = Ae.reduce(function(e, t) {
1418
+ }, {}), Et = Pe.reduce(function(e, t) {
1419
1419
  return ["Syntax", "Type", "Range"].indexOf(t) === -1 && (e[t + "Error"] = $[t]), e;
1420
1420
  }, {});
1421
1421
  function ie() {
@@ -1428,7 +1428,7 @@ function gc() {
1428
1428
  return t(e(n));
1429
1429
  };
1430
1430
  }
1431
- function at(e, t) {
1431
+ function ot(e, t) {
1432
1432
  return function() {
1433
1433
  e.apply(this, arguments), t.apply(this, arguments);
1434
1434
  };
@@ -1440,14 +1440,14 @@ function gc() {
1440
1440
  var r = this.onsuccess, i = this.onerror;
1441
1441
  this.onsuccess = null, this.onerror = null;
1442
1442
  var o = t.apply(this, arguments);
1443
- return r && (this.onsuccess = this.onsuccess ? at(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? at(i, this.onerror) : i), o !== void 0 ? o : n;
1443
+ return r && (this.onsuccess = this.onsuccess ? ot(r, this.onsuccess) : r), i && (this.onerror = this.onerror ? ot(i, this.onerror) : i), o !== void 0 ? o : n;
1444
1444
  };
1445
1445
  }
1446
1446
  function Ai(e, t) {
1447
1447
  return e === ie ? t : function() {
1448
1448
  e.apply(this, arguments);
1449
1449
  var n = this.onsuccess, r = this.onerror;
1450
- this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? at(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? at(r, this.onerror) : r);
1450
+ this.onsuccess = this.onerror = null, t.apply(this, arguments), n && (this.onsuccess = this.onsuccess ? ot(n, this.onsuccess) : n), r && (this.onerror = this.onerror ? ot(r, this.onerror) : r);
1451
1451
  };
1452
1452
  }
1453
1453
  function Ri(e, t) {
@@ -1455,7 +1455,7 @@ function gc() {
1455
1455
  var r = e.apply(this, arguments);
1456
1456
  T(n, r);
1457
1457
  var i = this.onsuccess, o = this.onerror;
1458
- return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? at(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? at(o, this.onerror) : o), r === void 0 ? n === void 0 ? void 0 : n : T(r, n);
1458
+ return this.onsuccess = null, this.onerror = null, n = t.apply(this, arguments), i && (this.onsuccess = this.onsuccess ? ot(i, this.onsuccess) : i), o && (this.onerror = this.onerror ? ot(o, this.onerror) : o), r === void 0 ? n === void 0 ? void 0 : n : T(r, n);
1459
1459
  };
1460
1460
  }
1461
1461
  function Di(e, t) {
@@ -1475,19 +1475,19 @@ function gc() {
1475
1475
  return t.apply(this, arguments);
1476
1476
  };
1477
1477
  }
1478
- Et.ModifyError = Ee, Et.DexieError = he, Et.BulkError = Ie;
1479
- var Ne = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
1478
+ Et.ModifyError = Se, Et.DexieError = ve, Et.BulkError = Ne;
1479
+ var ze = typeof location < "u" && /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
1480
1480
  function Wr(e) {
1481
- Ne = e;
1481
+ ze = e;
1482
1482
  }
1483
- var Kt = {}, Xr = 100, it = typeof Promise > "u" ? [] : function() {
1483
+ var Kt = {}, Xr = 100, st = typeof Promise > "u" ? [] : function() {
1484
1484
  var e = Promise.resolve();
1485
1485
  if (typeof crypto > "u" || !crypto.subtle) return [e, M(e), e];
1486
1486
  var t = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
1487
1487
  return [t, M(t), e];
1488
- }(), qt = it[0], Ae = it[1], it = it[2], Ae = Ae && Ae.then, ot = qt && qt.constructor, Yn = !!it, Bt = function(e, t) {
1489
- Lt.push([e, t]), sn && (queueMicrotask(Ni), sn = !1);
1490
- }, Wn = !0, sn = !0, st = [], un = [], Xn = zt, Ye = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: ie, pgp: !1, env: {}, finalize: ie }, V = Ye, Lt = [], ut = 0, cn = [];
1488
+ }(), qt = st[0], Pe = st[1], st = st[2], Pe = Pe && Pe.then, ut = qt && qt.constructor, Yn = !!st, Bt = function(e, t) {
1489
+ Lt.push([e, t]), un && (queueMicrotask(Ni), un = !1);
1490
+ }, Wn = !0, un = !0, ct = [], cn = [], Xn = zt, Xe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: ie, pgp: !1, env: {}, finalize: ie }, V = Xe, Lt = [], lt = 0, ln = [];
1491
1491
  function q(e) {
1492
1492
  if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
1493
1493
  this._listeners = [], this._lib = !1;
@@ -1513,9 +1513,9 @@ function gc() {
1513
1513
  }(this, e);
1514
1514
  }
1515
1515
  var Qn = { get: function() {
1516
- var e = V, t = dn;
1516
+ var e = V, t = vn;
1517
1517
  function n(r, i) {
1518
- var o = this, u = !e.global && (e !== V || t !== dn), c = u && !Xe(), d = new q(function(p, g) {
1518
+ var o = this, u = !e.global && (e !== V || t !== vn), c = u && !Ze(), d = new q(function(p, g) {
1519
1519
  Jn(o, new Qr(ea(r, e, u, c), ea(i, e, u, c), p, g, e));
1520
1520
  });
1521
1521
  return this._consoleTask && (d._consoleTask = this._consoleTask), d;
@@ -1531,48 +1531,48 @@ function gc() {
1531
1531
  }
1532
1532
  function Zn(e, t) {
1533
1533
  var n, r;
1534
- un.push(t), e._state === null && (n = e._lib && St(), t = Xn(t), e._state = !1, e._value = t, r = e, st.some(function(i) {
1534
+ cn.push(t), e._state === null && (n = e._lib && St(), t = Xn(t), e._state = !1, e._value = t, r = e, ct.some(function(i) {
1535
1535
  return i._value === r._value;
1536
- }) || st.push(r), Zr(e), n && jt());
1536
+ }) || ct.push(r), Zr(e), n && jt());
1537
1537
  }
1538
1538
  function Zr(e) {
1539
1539
  var t = e._listeners;
1540
1540
  e._listeners = [];
1541
1541
  for (var n = 0, r = t.length; n < r; ++n) Jn(e, t[n]);
1542
1542
  var i = e._PSD;
1543
- --i.ref || i.finalize(), ut === 0 && (++ut, Bt(function() {
1544
- --ut == 0 && er();
1543
+ --i.ref || i.finalize(), lt === 0 && (++lt, Bt(function() {
1544
+ --lt == 0 && er();
1545
1545
  }, []));
1546
1546
  }
1547
1547
  function Jn(e, t) {
1548
1548
  if (e._state !== null) {
1549
1549
  var n = e._state ? t.onFulfilled : t.onRejected;
1550
1550
  if (n === null) return (e._state ? t.resolve : t.reject)(e._value);
1551
- ++t.psd.ref, ++ut, Bt(Ii, [n, e, t]);
1551
+ ++t.psd.ref, ++lt, Bt(Ii, [n, e, t]);
1552
1552
  } else e._listeners.push(t);
1553
1553
  }
1554
1554
  function Ii(e, t, n) {
1555
1555
  try {
1556
1556
  var r, i = t._value;
1557
- !t._state && un.length && (un = []), r = Ne && t._consoleTask ? t._consoleTask.run(function() {
1557
+ !t._state && cn.length && (cn = []), r = ze && t._consoleTask ? t._consoleTask.run(function() {
1558
1558
  return e(i);
1559
- }) : e(i), t._state || un.indexOf(i) !== -1 || function(o) {
1560
- for (var u = st.length; u; ) if (st[--u]._value === o._value) return st.splice(u, 1);
1559
+ }) : e(i), t._state || cn.indexOf(i) !== -1 || function(o) {
1560
+ for (var u = ct.length; u; ) if (ct[--u]._value === o._value) return ct.splice(u, 1);
1561
1561
  }(t), n.resolve(r);
1562
1562
  } catch (o) {
1563
1563
  n.reject(o);
1564
1564
  } finally {
1565
- --ut == 0 && er(), --n.psd.ref || n.psd.finalize();
1565
+ --lt == 0 && er(), --n.psd.ref || n.psd.finalize();
1566
1566
  }
1567
1567
  }
1568
1568
  function Ni() {
1569
- ct(Ye, function() {
1569
+ ft(Xe, function() {
1570
1570
  St() && jt();
1571
1571
  });
1572
1572
  }
1573
1573
  function St() {
1574
1574
  var e = Wn;
1575
- return sn = Wn = !1, e;
1575
+ return un = Wn = !1, e;
1576
1576
  }
1577
1577
  function jt() {
1578
1578
  var e, t, n;
@@ -1582,16 +1582,16 @@ function gc() {
1582
1582
  r[0].apply(null, r[1]);
1583
1583
  }
1584
1584
  while (0 < Lt.length);
1585
- sn = Wn = !0;
1585
+ un = Wn = !0;
1586
1586
  }
1587
1587
  function er() {
1588
- var e = st;
1589
- st = [], e.forEach(function(r) {
1588
+ var e = ct;
1589
+ ct = [], e.forEach(function(r) {
1590
1590
  r._PSD.onunhandled.call(null, r._value, r);
1591
1591
  });
1592
- for (var t = cn.slice(0), n = t.length; n; ) t[--n]();
1592
+ for (var t = ln.slice(0), n = t.length; n; ) t[--n]();
1593
1593
  }
1594
- function ln(e) {
1594
+ function fn(e) {
1595
1595
  return new q(Kt, !1, e);
1596
1596
  }
1597
1597
  function fe(e, t) {
@@ -1599,11 +1599,11 @@ function gc() {
1599
1599
  return function() {
1600
1600
  var r = St(), i = V;
1601
1601
  try {
1602
- return Qe(n, !0), e.apply(this, arguments);
1602
+ return Je(n, !0), e.apply(this, arguments);
1603
1603
  } catch (o) {
1604
1604
  t && t(o);
1605
1605
  } finally {
1606
- Qe(i, !1), r && jt();
1606
+ Je(i, !1), r && jt();
1607
1607
  }
1608
1608
  };
1609
1609
  }
@@ -1613,9 +1613,9 @@ function gc() {
1613
1613
  if (arguments.length === 1) return this.then(null, e);
1614
1614
  var t = e, n = arguments[1];
1615
1615
  return typeof t == "function" ? this.then(null, function(r) {
1616
- return (r instanceof t ? n : ln)(r);
1616
+ return (r instanceof t ? n : fn)(r);
1617
1617
  }) : this.then(null, function(r) {
1618
- return (r && r.name === t ? n : ln)(r);
1618
+ return (r && r.name === t ? n : fn)(r);
1619
1619
  });
1620
1620
  }, finally: function(e) {
1621
1621
  return this.then(function(t) {
@@ -1624,7 +1624,7 @@ function gc() {
1624
1624
  });
1625
1625
  }, function(t) {
1626
1626
  return q.resolve(e()).then(function() {
1627
- return ln(t);
1627
+ return fn(t);
1628
1628
  });
1629
1629
  });
1630
1630
  }, timeout: function(e, t) {
@@ -1635,8 +1635,8 @@ function gc() {
1635
1635
  }, e);
1636
1636
  n.then(r, i).finally(clearTimeout.bind(null, o));
1637
1637
  }) : this;
1638
- } }), typeof Symbol < "u" && Symbol.toStringTag && Y(q.prototype, Symbol.toStringTag, "Dexie.Promise"), Ye.env = Jr(), U(q, { all: function() {
1639
- var e = P.apply(null, arguments).map(vn);
1638
+ } }), typeof Symbol < "u" && Symbol.toStringTag && Y(q.prototype, Symbol.toStringTag, "Dexie.Promise"), Xe.env = Jr(), U(q, { all: function() {
1639
+ var e = P.apply(null, arguments).map(pn);
1640
1640
  return new q(function(t, n) {
1641
1641
  e.length === 0 && t([]);
1642
1642
  var r = e.length;
@@ -1650,8 +1650,8 @@ function gc() {
1650
1650
  return e instanceof q ? e : e && typeof e.then == "function" ? new q(function(t, n) {
1651
1651
  e.then(t, n);
1652
1652
  }) : new q(Kt, !0, e);
1653
- }, reject: ln, race: function() {
1654
- var e = P.apply(null, arguments).map(vn);
1653
+ }, reject: fn, race: function() {
1654
+ var e = P.apply(null, arguments).map(pn);
1655
1655
  return new q(function(t, n) {
1656
1656
  e.map(function(r) {
1657
1657
  return q.resolve(r).then(t, n);
@@ -1662,8 +1662,8 @@ function gc() {
1662
1662
  }, set: function(e) {
1663
1663
  return V = e;
1664
1664
  } }, totalEchoes: { get: function() {
1665
- return dn;
1666
- } }, newPSD: We, usePSD: ct, scheduler: { get: function() {
1665
+ return vn;
1666
+ } }, newPSD: Qe, usePSD: ft, scheduler: { get: function() {
1667
1667
  return Bt;
1668
1668
  }, set: function(e) {
1669
1669
  Bt = e;
@@ -1673,22 +1673,22 @@ function gc() {
1673
1673
  Xn = e;
1674
1674
  } }, follow: function(e, t) {
1675
1675
  return new q(function(n, r) {
1676
- return We(function(i, o) {
1676
+ return Qe(function(i, o) {
1677
1677
  var u = V;
1678
- u.unhandleds = [], u.onunhandled = o, u.finalize = at(function() {
1678
+ u.unhandleds = [], u.onunhandled = o, u.finalize = ot(function() {
1679
1679
  var c, d = this;
1680
1680
  c = function() {
1681
1681
  d.unhandleds.length === 0 ? i() : o(d.unhandleds[0]);
1682
- }, cn.push(function p() {
1683
- c(), cn.splice(cn.indexOf(p), 1);
1684
- }), ++ut, Bt(function() {
1685
- --ut == 0 && er();
1682
+ }, ln.push(function p() {
1683
+ c(), ln.splice(ln.indexOf(p), 1);
1684
+ }), ++lt, Bt(function() {
1685
+ --lt == 0 && er();
1686
1686
  }, []);
1687
1687
  }, u.finalize), e();
1688
1688
  }, t, n, r);
1689
1689
  });
1690
- } }), ot && (ot.allSettled && Y(q, "allSettled", function() {
1691
- var e = P.apply(null, arguments).map(vn);
1690
+ } }), ut && (ut.allSettled && Y(q, "allSettled", function() {
1691
+ var e = P.apply(null, arguments).map(pn);
1692
1692
  return new q(function(t) {
1693
1693
  e.length === 0 && t([]);
1694
1694
  var n = e.length, r = new Array(n);
@@ -1702,8 +1702,8 @@ function gc() {
1702
1702
  });
1703
1703
  });
1704
1704
  });
1705
- }), ot.any && typeof AggregateError < "u" && Y(q, "any", function() {
1706
- var e = P.apply(null, arguments).map(vn);
1705
+ }), ut.any && typeof AggregateError < "u" && Y(q, "any", function() {
1706
+ var e = P.apply(null, arguments).map(pn);
1707
1707
  return new q(function(t, n) {
1708
1708
  e.length === 0 && n(new AggregateError([]));
1709
1709
  var r = e.length, i = new Array(r);
@@ -1715,76 +1715,76 @@ function gc() {
1715
1715
  });
1716
1716
  });
1717
1717
  });
1718
- }), ot.withResolvers && (q.withResolvers = ot.withResolvers));
1719
- var ge = { awaits: 0, echoes: 0, id: 0 }, zi = 0, fn = [], hn = 0, dn = 0, Ki = 0;
1720
- function We(e, t, n, r) {
1718
+ }), ut.withResolvers && (q.withResolvers = ut.withResolvers));
1719
+ var be = { awaits: 0, echoes: 0, id: 0 }, zi = 0, hn = [], dn = 0, vn = 0, Ki = 0;
1720
+ function Qe(e, t, n, r) {
1721
1721
  var i = V, o = Object.create(i);
1722
- return o.parent = i, o.ref = 0, o.global = !1, o.id = ++Ki, Ye.env, o.env = Yn ? { Promise: q, PromiseProp: { value: q, configurable: !0, writable: !0 }, all: q.all, race: q.race, allSettled: q.allSettled, any: q.any, resolve: q.resolve, reject: q.reject } : {}, t && T(o, t), ++i.ref, o.finalize = function() {
1722
+ return o.parent = i, o.ref = 0, o.global = !1, o.id = ++Ki, Xe.env, o.env = Yn ? { Promise: q, PromiseProp: { value: q, configurable: !0, writable: !0 }, all: q.all, race: q.race, allSettled: q.allSettled, any: q.any, resolve: q.resolve, reject: q.reject } : {}, t && T(o, t), ++i.ref, o.finalize = function() {
1723
1723
  --this.parent.ref || this.parent.finalize();
1724
- }, r = ct(o, e, n, r), o.ref === 0 && o.finalize(), r;
1724
+ }, r = ft(o, e, n, r), o.ref === 0 && o.finalize(), r;
1725
1725
  }
1726
1726
  function Ot() {
1727
- return ge.id || (ge.id = ++zi), ++ge.awaits, ge.echoes += Xr, ge.id;
1727
+ return be.id || (be.id = ++zi), ++be.awaits, be.echoes += Xr, be.id;
1728
1728
  }
1729
- function Xe() {
1730
- return !!ge.awaits && (--ge.awaits == 0 && (ge.id = 0), ge.echoes = ge.awaits * Xr, !0);
1729
+ function Ze() {
1730
+ return !!be.awaits && (--be.awaits == 0 && (be.id = 0), be.echoes = be.awaits * Xr, !0);
1731
1731
  }
1732
- function vn(e) {
1733
- return ge.echoes && e && e.constructor === ot ? (Ot(), e.then(function(t) {
1734
- return Xe(), t;
1732
+ function pn(e) {
1733
+ return be.echoes && e && e.constructor === ut ? (Ot(), e.then(function(t) {
1734
+ return Ze(), t;
1735
1735
  }, function(t) {
1736
- return Xe(), ve(t);
1736
+ return Ze(), pe(t);
1737
1737
  })) : e;
1738
1738
  }
1739
1739
  function qi() {
1740
- var e = fn[fn.length - 1];
1741
- fn.pop(), Qe(e, !1);
1740
+ var e = hn[hn.length - 1];
1741
+ hn.pop(), Je(e, !1);
1742
1742
  }
1743
- function Qe(e, t) {
1743
+ function Je(e, t) {
1744
1744
  var n, r = V;
1745
- (t ? !ge.echoes || hn++ && e === V : !hn || --hn && e === V) || queueMicrotask(t ? (function(i) {
1746
- ++dn, ge.echoes && --ge.echoes != 0 || (ge.echoes = ge.awaits = ge.id = 0), fn.push(V), Qe(i, !0);
1747
- }).bind(null, e) : qi), e !== V && (V = e, r === Ye && (Ye.env = Jr()), Yn && (n = Ye.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(x, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
1745
+ (t ? !be.echoes || dn++ && e === V : !dn || --dn && e === V) || queueMicrotask(t ? (function(i) {
1746
+ ++vn, be.echoes && --be.echoes != 0 || (be.echoes = be.awaits = be.id = 0), hn.push(V), Je(i, !0);
1747
+ }).bind(null, e) : qi), e !== V && (V = e, r === Xe && (Xe.env = Jr()), Yn && (n = Xe.env.Promise, t = e.env, (r.global || e.global) && (Object.defineProperty(x, "Promise", t.PromiseProp), n.all = t.all, n.race = t.race, n.resolve = t.resolve, n.reject = t.reject, t.allSettled && (n.allSettled = t.allSettled), t.any && (n.any = t.any))));
1748
1748
  }
1749
1749
  function Jr() {
1750
1750
  var e = x.Promise;
1751
1751
  return Yn ? { Promise: e, PromiseProp: Object.getOwnPropertyDescriptor(x, "Promise"), all: e.all, race: e.race, allSettled: e.allSettled, any: e.any, resolve: e.resolve, reject: e.reject } : {};
1752
1752
  }
1753
- function ct(e, t, n, r, i) {
1753
+ function ft(e, t, n, r, i) {
1754
1754
  var o = V;
1755
1755
  try {
1756
- return Qe(e, !0), t(n, r, i);
1756
+ return Je(e, !0), t(n, r, i);
1757
1757
  } finally {
1758
- Qe(o, !1);
1758
+ Je(o, !1);
1759
1759
  }
1760
1760
  }
1761
1761
  function ea(e, t, n, r) {
1762
1762
  return typeof e != "function" ? e : function() {
1763
1763
  var i = V;
1764
- n && Ot(), Qe(t, !0);
1764
+ n && Ot(), Je(t, !0);
1765
1765
  try {
1766
1766
  return e.apply(this, arguments);
1767
1767
  } finally {
1768
- Qe(i, !1), r && queueMicrotask(Xe);
1768
+ Je(i, !1), r && queueMicrotask(Ze);
1769
1769
  }
1770
1770
  };
1771
1771
  }
1772
1772
  function tr(e) {
1773
- Promise === ot && ge.echoes === 0 ? hn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1773
+ Promise === ut && be.echoes === 0 ? dn === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
1774
1774
  }
1775
- ("" + Ae).indexOf("[native code]") === -1 && (Ot = Xe = ie);
1776
- var ve = q.reject, lt = "￿", Me = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ta = "String expected.", Ct = [], pn = "__dbnames", nr = "readonly", rr = "readwrite";
1777
- function ft(e, t) {
1775
+ ("" + Pe).indexOf("[native code]") === -1 && (Ot = Ze = ie);
1776
+ var pe = q.reject, ht = "￿", $e = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", ta = "String expected.", Ct = [], yn = "__dbnames", nr = "readonly", rr = "readwrite";
1777
+ function dt(e, t) {
1778
1778
  return e ? t ? function() {
1779
1779
  return e.apply(this, arguments) && t.apply(this, arguments);
1780
1780
  } : e : t;
1781
1781
  }
1782
1782
  var na = { type: 3, lower: -1 / 0, lowerOpen: !1, upper: [[]], upperOpen: !1 };
1783
- function yn(e) {
1783
+ function mn(e) {
1784
1784
  return typeof e != "string" || /\./.test(e) ? function(t) {
1785
1785
  return t;
1786
1786
  } : function(t) {
1787
- return t[e] === void 0 && e in t && delete (t = Be(t))[e], t;
1787
+ return t[e] === void 0 && e in t && delete (t = Me(t))[e], t;
1788
1788
  };
1789
1789
  }
1790
1790
  function ra() {
@@ -1825,14 +1825,14 @@ function gc() {
1825
1825
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
1826
1826
  }
1827
1827
  var oa = (ue.prototype._trans = function(e, t, n) {
1828
- var r = this._tx || V.trans, i = this.name, o = Ne && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1828
+ var r = this._tx || V.trans, i = this.name, o = ze && typeof console < "u" && console.createTask && console.createTask("Dexie: ".concat(e === "readonly" ? "read" : "write", " ").concat(this.name));
1829
1829
  function u(p, g, f) {
1830
1830
  if (!f.schema[i]) throw new $.NotFound("Table " + i + " not part of transaction");
1831
1831
  return t(f.idbtrans, f);
1832
1832
  }
1833
1833
  var c = St();
1834
1834
  try {
1835
- var d = r && r.db._novip === this.db._novip ? r === V.trans ? r._promise(e, u, n) : We(function() {
1835
+ var d = r && r.db._novip === this.db._novip ? r === V.trans ? r._promise(e, u, n) : Qe(function() {
1836
1836
  return r._promise(e, u, n);
1837
1837
  }, { trans: r, transless: V.transless || V }) : function p(g, f, _, v) {
1838
1838
  if (g.idbdb && (g._state.openComplete || V.letThrough || g._vip)) {
@@ -1840,12 +1840,12 @@ function gc() {
1840
1840
  try {
1841
1841
  m.create(), g._state.PR1398_maxLoop = 3;
1842
1842
  } catch (b) {
1843
- return b.name === rt.InvalidState && g.isOpen() && 0 < --g._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), g.close({ disableAutoOpen: !1 }), g.open().then(function() {
1843
+ return b.name === it.InvalidState && g.isOpen() && 0 < --g._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), g.close({ disableAutoOpen: !1 }), g.open().then(function() {
1844
1844
  return p(g, f, _, v);
1845
- })) : ve(b);
1845
+ })) : pe(b);
1846
1846
  }
1847
1847
  return m._promise(f, function(b, y) {
1848
- return We(function() {
1848
+ return Qe(function() {
1849
1849
  return V.trans = m, v(b, y, m);
1850
1850
  });
1851
1851
  }).then(function(b) {
@@ -1858,9 +1858,9 @@ function gc() {
1858
1858
  });
1859
1859
  });
1860
1860
  }
1861
- if (g._state.openComplete) return ve(new $.DatabaseClosed(g._state.dbOpenError));
1861
+ if (g._state.openComplete) return pe(new $.DatabaseClosed(g._state.dbOpenError));
1862
1862
  if (!g._state.isBeingOpened) {
1863
- if (!g._state.autoOpen) return ve(new $.DatabaseClosed());
1863
+ if (!g._state.autoOpen) return pe(new $.DatabaseClosed());
1864
1864
  g.open().catch(ie);
1865
1865
  }
1866
1866
  return g._state.dbReadyPromise.then(function() {
@@ -1868,14 +1868,14 @@ function gc() {
1868
1868
  });
1869
1869
  }(this.db, e, [this.name], u);
1870
1870
  return o && (d._consoleTask = o, d = d.catch(function(p) {
1871
- return console.trace(p), ve(p);
1871
+ return console.trace(p), pe(p);
1872
1872
  })), d;
1873
1873
  } finally {
1874
1874
  c && jt();
1875
1875
  }
1876
1876
  }, ue.prototype.get = function(e, t) {
1877
1877
  var n = this;
1878
- return e && e.constructor === Object ? this.where(e).first(t) : e == null ? ve(new $.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(r) {
1878
+ return e && e.constructor === Object ? this.where(e).first(t) : e == null ? pe(new $.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(r) {
1879
1879
  return n.core.get({ trans: r, key: e }).then(function(i) {
1880
1880
  return n.hook.reading.fire(i);
1881
1881
  });
@@ -1896,25 +1896,25 @@ function gc() {
1896
1896
  }).sort(function(c, d) {
1897
1897
  return c.keyPath.length - d.keyPath.length;
1898
1898
  })[0];
1899
- if (n && this.db._maxKey !== lt) {
1899
+ if (n && this.db._maxKey !== ht) {
1900
1900
  var o = n.keyPath.slice(0, t.length);
1901
1901
  return this.where(o).equals(o.map(function(d) {
1902
1902
  return e[d];
1903
1903
  }));
1904
1904
  }
1905
- !n && Ne && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
1905
+ !n && ze && console.warn("The query ".concat(JSON.stringify(e), " on ").concat(this.name, " would benefit from a ") + "compound index [".concat(t.join("+"), "]"));
1906
1906
  var r = this.schema.idxByName;
1907
1907
  function i(c, d) {
1908
1908
  return ee(c, d) === 0;
1909
1909
  }
1910
1910
  var u = t.reduce(function(f, d) {
1911
1911
  var p = f[0], g = f[1], f = r[d], _ = e[d];
1912
- return [p || f, p || !f ? ft(g, f && f.multi ? function(v) {
1913
- return v = de(v, d), E(v) && v.some(function(m) {
1912
+ return [p || f, p || !f ? dt(g, f && f.multi ? function(v) {
1913
+ return v = he(v, d), E(v) && v.some(function(m) {
1914
1914
  return i(_, m);
1915
1915
  });
1916
1916
  } : function(v) {
1917
- return i(_, de(v, d));
1917
+ return i(_, he(v, d));
1918
1918
  }) : g];
1919
1919
  }, [null, null]), o = u[0], u = u[1];
1920
1920
  return o ? this.where(o.name).equals(e[o.keyPath]).filter(u) : n ? this.filter(u) : this.where(t).equals("");
@@ -1971,28 +1971,28 @@ function gc() {
1971
1971
  });
1972
1972
  }, ue.prototype.add = function(e, t) {
1973
1973
  var n = this, r = this.schema.primKey, i = r.auto, o = r.keyPath, u = e;
1974
- return o && i && (u = yn(o)(e)), this._trans("readwrite", function(c) {
1974
+ return o && i && (u = mn(o)(e)), this._trans("readwrite", function(c) {
1975
1975
  return n.core.mutate({ trans: c, type: "add", keys: t != null ? [t] : null, values: [u] });
1976
1976
  }).then(function(c) {
1977
1977
  return c.numFailures ? q.reject(c.failures[0]) : c.lastResult;
1978
1978
  }).then(function(c) {
1979
1979
  if (o) try {
1980
- oe(e, o, c);
1980
+ de(e, o, c);
1981
1981
  } catch {
1982
1982
  }
1983
1983
  return c;
1984
1984
  });
1985
1985
  }, ue.prototype.update = function(e, t) {
1986
- return typeof e != "object" || E(e) ? this.where(":id").equals(e).modify(t) : (e = de(e, this.schema.primKey.keyPath), e === void 0 ? ve(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
1986
+ return typeof e != "object" || E(e) ? this.where(":id").equals(e).modify(t) : (e = he(e, this.schema.primKey.keyPath), e === void 0 ? pe(new $.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(e).modify(t));
1987
1987
  }, ue.prototype.put = function(e, t) {
1988
1988
  var n = this, r = this.schema.primKey, i = r.auto, o = r.keyPath, u = e;
1989
- return o && i && (u = yn(o)(e)), this._trans("readwrite", function(c) {
1989
+ return o && i && (u = mn(o)(e)), this._trans("readwrite", function(c) {
1990
1990
  return n.core.mutate({ trans: c, type: "put", values: [u], keys: t != null ? [t] : null });
1991
1991
  }).then(function(c) {
1992
1992
  return c.numFailures ? q.reject(c.failures[0]) : c.lastResult;
1993
1993
  }).then(function(c) {
1994
1994
  if (o) try {
1995
- oe(e, o, c);
1995
+ de(e, o, c);
1996
1996
  } catch {
1997
1997
  }
1998
1998
  return c;
@@ -2026,11 +2026,11 @@ function gc() {
2026
2026
  var p = r.schema.primKey, c = p.auto, p = p.keyPath;
2027
2027
  if (p && i) throw new $.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
2028
2028
  if (i && i.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
2029
- var d = e.length, p = p && c ? e.map(yn(p)) : e;
2029
+ var d = e.length, p = p && c ? e.map(mn(p)) : e;
2030
2030
  return r.core.mutate({ trans: u, type: "add", keys: i, values: p, wantResults: o }).then(function(m) {
2031
2031
  var f = m.numFailures, _ = m.results, v = m.lastResult, m = m.failures;
2032
2032
  if (f === 0) return o ? _ : v;
2033
- throw new Ie("".concat(r.name, ".bulkAdd(): ").concat(f, " of ").concat(d, " operations failed"), m);
2033
+ throw new Ne("".concat(r.name, ".bulkAdd(): ").concat(f, " of ").concat(d, " operations failed"), m);
2034
2034
  });
2035
2035
  });
2036
2036
  }, ue.prototype.bulkPut = function(e, t, n) {
@@ -2039,11 +2039,11 @@ function gc() {
2039
2039
  var p = r.schema.primKey, c = p.auto, p = p.keyPath;
2040
2040
  if (p && i) throw new $.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
2041
2041
  if (i && i.length !== e.length) throw new $.InvalidArgument("Arguments objects and keys must have the same length");
2042
- var d = e.length, p = p && c ? e.map(yn(p)) : e;
2042
+ var d = e.length, p = p && c ? e.map(mn(p)) : e;
2043
2043
  return r.core.mutate({ trans: u, type: "put", keys: i, values: p, wantResults: o }).then(function(m) {
2044
2044
  var f = m.numFailures, _ = m.results, v = m.lastResult, m = m.failures;
2045
2045
  if (f === 0) return o ? _ : v;
2046
- throw new Ie("".concat(r.name, ".bulkPut(): ").concat(f, " of ").concat(d, " operations failed"), m);
2046
+ throw new Ne("".concat(r.name, ".bulkPut(): ").concat(f, " of ").concat(d, " operations failed"), m);
2047
2047
  });
2048
2048
  });
2049
2049
  }, ue.prototype.bulkUpdate = function(e) {
@@ -2062,7 +2062,7 @@ function gc() {
2062
2062
  var S = k[y], O = m[S];
2063
2063
  if (S === t.schema.primKey.keyPath) {
2064
2064
  if (ee(O, v) !== 0) throw new $.Constraint("Cannot update primary key in bulkUpdate()");
2065
- } else oe(b, S, O);
2065
+ } else de(b, S, O);
2066
2066
  }
2067
2067
  o.push(_), d.push(v), p.push(b);
2068
2068
  }
@@ -2075,7 +2075,7 @@ function gc() {
2075
2075
  var y, k = b[m], S = o[Number(k)];
2076
2076
  S != null && (y = v[k], delete v[k], v[S] = y);
2077
2077
  }
2078
- throw new Ie("".concat(t.name, ".bulkUpdate(): ").concat(_, " of ").concat(g, " operations failed"), v);
2078
+ throw new Ne("".concat(t.name, ".bulkUpdate(): ").concat(_, " of ").concat(g, " operations failed"), v);
2079
2079
  });
2080
2080
  });
2081
2081
  });
@@ -2086,7 +2086,7 @@ function gc() {
2086
2086
  }).then(function(u) {
2087
2087
  var i = u.numFailures, o = u.lastResult, u = u.failures;
2088
2088
  if (i === 0) return o;
2089
- throw new Ie("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), u);
2089
+ throw new Ne("".concat(t.name, ".bulkDelete(): ").concat(i, " of ").concat(n, " operations failed"), u);
2090
2090
  });
2091
2091
  }, ue);
2092
2092
  function ue() {
@@ -2124,7 +2124,7 @@ function gc() {
2124
2124
  var v = o(f, zt, function() {
2125
2125
  for (var m = arguments.length, b = new Array(m); m--; ) b[m] = arguments[m];
2126
2126
  v.subscribers.forEach(function(y) {
2127
- ae(function() {
2127
+ re(function() {
2128
2128
  y.apply(null, b);
2129
2129
  });
2130
2130
  });
@@ -2140,26 +2140,26 @@ function gc() {
2140
2140
  return !(e.filter || e.algorithm || e.or) && (t ? e.justLimit : !e.replayFilter);
2141
2141
  }
2142
2142
  function ar(e, t) {
2143
- e.filter = ft(e.filter, t);
2143
+ e.filter = dt(e.filter, t);
2144
2144
  }
2145
2145
  function ir(e, t, n) {
2146
2146
  var r = e.replayFilter;
2147
2147
  e.replayFilter = r ? function() {
2148
- return ft(r(), t());
2148
+ return dt(r(), t());
2149
2149
  } : t, e.justLimit = n && !r;
2150
2150
  }
2151
- function mn(e, t) {
2151
+ function gn(e, t) {
2152
2152
  if (e.isPrimKey) return t.primaryKey;
2153
2153
  var n = t.getIndexByKeyPath(e.index);
2154
2154
  if (!n) throw new $.Schema("KeyPath " + e.index + " on object store " + t.name + " is not indexed");
2155
2155
  return n;
2156
2156
  }
2157
2157
  function sa(e, t, n) {
2158
- var r = mn(e, t.schema);
2158
+ var r = gn(e, t.schema);
2159
2159
  return t.openCursor({ trans: n, values: !e.keysOnly, reverse: e.dir === "prev", unique: !!e.unique, query: { index: r, range: e.range } });
2160
2160
  }
2161
- function gn(e, t, n, r) {
2162
- var i = e.replayFilter ? ft(e.filter, e.replayFilter()) : e.filter;
2161
+ function bn(e, t, n, r) {
2162
+ var i = e.replayFilter ? dt(e.filter, e.replayFilter()) : e.filter;
2163
2163
  if (e.or) {
2164
2164
  var o = {}, u = function(c, d, p) {
2165
2165
  var g, f;
@@ -2171,7 +2171,7 @@ function gc() {
2171
2171
  };
2172
2172
  return Promise.all([e.or._iterate(u, n), ua(sa(e, r, n), e.algorithm, u, !e.keysOnly && e.valueMapper)]);
2173
2173
  }
2174
- return ua(sa(e, r, n), ft(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
2174
+ return ua(sa(e, r, n), dt(e.algorithm, i), t, !e.keysOnly && e.valueMapper);
2175
2175
  }
2176
2176
  function ua(e, t, n, r) {
2177
2177
  var i = fe(r ? function(o, u, c) {
@@ -2227,15 +2227,15 @@ function gc() {
2227
2227
  }
2228
2228
  var Bi = (te.prototype._read = function(e, t) {
2229
2229
  var n = this._ctx;
2230
- return n.error ? n.table._trans(null, ve.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
2230
+ return n.error ? n.table._trans(null, pe.bind(null, n.error)) : n.table._trans("readonly", e).then(t);
2231
2231
  }, te.prototype._write = function(e) {
2232
2232
  var t = this._ctx;
2233
- return t.error ? t.table._trans(null, ve.bind(null, t.error)) : t.table._trans("readwrite", e, "locked");
2233
+ return t.error ? t.table._trans(null, pe.bind(null, t.error)) : t.table._trans("readwrite", e, "locked");
2234
2234
  }, te.prototype._addAlgorithm = function(e) {
2235
2235
  var t = this._ctx;
2236
- t.algorithm = ft(t.algorithm, e);
2236
+ t.algorithm = dt(t.algorithm, e);
2237
2237
  }, te.prototype._iterate = function(e, t) {
2238
- return gn(this._ctx, e, t, this._ctx.table.core);
2238
+ return bn(this._ctx, e, t, this._ctx.table.core);
2239
2239
  }, te.prototype.clone = function(e) {
2240
2240
  var t = Object.create(this.constructor.prototype), n = Object.create(this._ctx);
2241
2241
  return e && T(n, e), t._ctx = n, t;
@@ -2244,17 +2244,17 @@ function gc() {
2244
2244
  }, te.prototype.each = function(e) {
2245
2245
  var t = this._ctx;
2246
2246
  return this._read(function(n) {
2247
- return gn(t, e, n, t.table.core);
2247
+ return bn(t, e, n, t.table.core);
2248
2248
  });
2249
2249
  }, te.prototype.count = function(e) {
2250
2250
  var t = this;
2251
2251
  return this._read(function(n) {
2252
2252
  var r = t._ctx, i = r.table.core;
2253
- if (Tt(r, !0)) return i.count({ trans: n, query: { index: mn(r, i.schema), range: r.range } }).then(function(u) {
2253
+ if (Tt(r, !0)) return i.count({ trans: n, query: { index: gn(r, i.schema), range: r.range } }).then(function(u) {
2254
2254
  return Math.min(u, r.limit);
2255
2255
  });
2256
2256
  var o = 0;
2257
- return gn(r, function() {
2257
+ return bn(r, function() {
2258
2258
  return ++o, !1;
2259
2259
  }, n, i).then(function() {
2260
2260
  return o;
@@ -2277,13 +2277,13 @@ function gc() {
2277
2277
  return this._read(function(n) {
2278
2278
  var r = t._ctx;
2279
2279
  if (r.dir === "next" && Tt(r, !0) && 0 < r.limit) {
2280
- var i = r.valueMapper, o = mn(r, r.table.core.schema);
2280
+ var i = r.valueMapper, o = gn(r, r.table.core.schema);
2281
2281
  return r.table.core.query({ trans: n, limit: r.limit, values: !0, query: { index: o, range: r.range } }).then(function(c) {
2282
2282
  return c = c.result, i ? c.map(i) : c;
2283
2283
  });
2284
2284
  }
2285
2285
  var u = [];
2286
- return gn(r, function(c) {
2286
+ return bn(r, function(c) {
2287
2287
  return u.push(c);
2288
2288
  }, n, r.table.core).then(function() {
2289
2289
  return u;
@@ -2325,7 +2325,7 @@ function gc() {
2325
2325
  var t;
2326
2326
  return ar(this._ctx, function(n) {
2327
2327
  return e(n.value);
2328
- }), (t = this._ctx).isMatch = ft(t.isMatch, e), this;
2328
+ }), (t = this._ctx).isMatch = dt(t.isMatch, e), this;
2329
2329
  }, te.prototype.and = function(e) {
2330
2330
  return this.filter(e);
2331
2331
  }, te.prototype.or = function(e) {
@@ -2358,7 +2358,7 @@ function gc() {
2358
2358
  }, te.prototype.primaryKeys = function(e) {
2359
2359
  var t = this._ctx;
2360
2360
  if (t.dir === "next" && Tt(t, !0) && 0 < t.limit) return this._read(function(r) {
2361
- var i = mn(t, t.table.core.schema);
2361
+ var i = gn(t, t.table.core.schema);
2362
2362
  return t.table.core.query({ trans: r, values: !1, limit: t.limit, query: { index: i, range: t.range } });
2363
2363
  }).then(function(r) {
2364
2364
  return r.result;
@@ -2392,8 +2392,8 @@ function gc() {
2392
2392
  var i, o, u;
2393
2393
  u = typeof e == "function" ? e : (i = w(e), o = i.length, function(y) {
2394
2394
  for (var k = !1, S = 0; S < o; ++S) {
2395
- var O = i[S], C = e[O], R = de(y, O);
2396
- C instanceof $t ? (oe(y, O, C.execute(R)), k = !0) : R !== C && (oe(y, O, C), k = !0);
2395
+ var O = i[S], C = e[O], R = he(y, O);
2396
+ C instanceof $t ? (de(y, O, C.execute(R)), k = !0) : R !== C && (de(y, O, C), k = !0);
2397
2397
  }
2398
2398
  return k;
2399
2399
  });
@@ -2413,8 +2413,8 @@ function gc() {
2413
2413
  var C = Math.min(g, y.length - O);
2414
2414
  return c.getMany({ trans: r, keys: y.slice(O, O + C), cache: "immutable" }).then(function(R) {
2415
2415
  for (var z = [], D = [], I = d ? [] : null, K = [], N = 0; N < C; ++N) {
2416
- var B = R[N], Q = { value: Be(B), primKey: y[O + N] };
2417
- u.call(Q, Q.value, Q) !== !1 && (Q.value == null ? K.push(y[O + N]) : d || ee(p(B), p(Q.value)) === 0 ? (D.push(Q.value), d && I.push(y[O + N])) : (K.push(y[O + N]), z.push(Q.value)));
2416
+ var L = R[N], Q = { value: Me(L), primKey: y[O + N] };
2417
+ u.call(Q, Q.value, Q) !== !1 && (Q.value == null ? K.push(y[O + N]) : d || ee(p(L), p(Q.value)) === 0 ? (D.push(Q.value), d && I.push(y[O + N])) : (K.push(y[O + N]), z.push(Q.value)));
2418
2418
  }
2419
2419
  return Promise.resolve(0 < z.length && c.mutate({ trans: r, type: "add", values: z }).then(function(Z) {
2420
2420
  for (var J in Z.failures) K.splice(parseInt(J), 1);
@@ -2434,7 +2434,7 @@ function gc() {
2434
2434
  }
2435
2435
  var S = Tt(n) && n.limit === 1 / 0 && (typeof e != "function" || e === or) && { index: n.index, range: n.range };
2436
2436
  return k(0).then(function() {
2437
- if (0 < v.length) throw new Ee("Error modifying one or more objects", v, m, b);
2437
+ if (0 < v.length) throw new Se("Error modifying one or more objects", v, m, b);
2438
2438
  return y.length;
2439
2439
  });
2440
2440
  });
@@ -2446,7 +2446,7 @@ function gc() {
2446
2446
  return e.table.core.count({ trans: n, query: { index: r, range: i } }).then(function(o) {
2447
2447
  return e.table.core.mutate({ trans: n, type: "deleteRange", range: i }).then(function(u) {
2448
2448
  var c = u.failures;
2449
- if (u.lastResult, u.results, u = u.numFailures, u) throw new Ee("Could not delete some values", Object.keys(c).map(function(d) {
2449
+ if (u.lastResult, u.results, u = u.numFailures, u) throw new Se("Could not delete some values", Object.keys(c).map(function(d) {
2450
2450
  return c[d];
2451
2451
  }), o - u);
2452
2452
  return o - u;
@@ -2473,7 +2473,7 @@ function gc() {
2473
2473
  return la("");
2474
2474
  }).limit(0);
2475
2475
  }
2476
- function bn(e, t, n, r) {
2476
+ function _n(e, t, n, r) {
2477
2477
  var i, o, u, c, d, p, g, f = n.length;
2478
2478
  if (!n.every(function(m) {
2479
2479
  return typeof m == "string";
@@ -2500,7 +2500,7 @@ function gc() {
2500
2500
  }), g = (p = m) === "next" ? "" : r;
2501
2501
  }
2502
2502
  _("next"), e = new e.Collection(e, function() {
2503
- return Ze(c[0], d[f - 1] + r);
2503
+ return et(c[0], d[f - 1] + r);
2504
2504
  }), e._ondirectionchange = function(m) {
2505
2505
  _(m);
2506
2506
  };
@@ -2511,13 +2511,13 @@ function gc() {
2511
2511
  var S = o(k);
2512
2512
  if (t(S, d, v)) return !0;
2513
2513
  for (var O = null, C = v; C < f; ++C) {
2514
- var R = function(z, D, I, K, N, B) {
2514
+ var R = function(z, D, I, K, N, L) {
2515
2515
  for (var Q = Math.min(z.length, K.length), Z = -1, J = 0; J < Q; ++J) {
2516
2516
  var Te = D[J];
2517
2517
  if (Te !== K[J]) return N(z[J], I[J]) < 0 ? z.substr(0, J) + I[J] + I.substr(J + 1) : N(z[J], K[J]) < 0 ? z.substr(0, J) + K[J] + I.substr(J + 1) : 0 <= Z ? z.substr(0, Z) + D[Z] + I.substr(Z + 1) : null;
2518
2518
  N(z[J], Te) < 0 && (Z = J);
2519
2519
  }
2520
- return Q < K.length && B === "next" ? z + I.substr(z.length) : Q < z.length && B === "prev" ? z.substr(0, I.length) : Z < 0 ? null : z.substr(0, Z) + K[Z] + I.substr(Z + 1);
2520
+ return Q < K.length && L === "next" ? z + I.substr(z.length) : Q < z.length && L === "prev" ? z.substr(0, I.length) : Z < 0 ? null : z.substr(0, Z) + K[Z] + I.substr(Z + 1);
2521
2521
  }(k, S, c[C], d[C], u, p);
2522
2522
  R === null && O === null ? v = C + 1 : (O === null || 0 < u(O, R)) && (O = R);
2523
2523
  }
@@ -2526,75 +2526,75 @@ function gc() {
2526
2526
  } : y), !1;
2527
2527
  }), e;
2528
2528
  }
2529
- function Ze(e, t, n, r) {
2529
+ function et(e, t, n, r) {
2530
2530
  return { type: 2, lower: e, upper: t, lowerOpen: n, upperOpen: r };
2531
2531
  }
2532
2532
  function la(e) {
2533
2533
  return { type: 1, lower: e, upper: e };
2534
2534
  }
2535
- var fa = (Object.defineProperty(be.prototype, "Collection", { get: function() {
2535
+ var fa = (Object.defineProperty(_e.prototype, "Collection", { get: function() {
2536
2536
  return this._ctx.table.db.Collection;
2537
- }, enumerable: !1, configurable: !0 }), be.prototype.between = function(e, t, n, r) {
2537
+ }, enumerable: !1, configurable: !0 }), _e.prototype.between = function(e, t, n, r) {
2538
2538
  n = n !== !1, r = r === !0;
2539
2539
  try {
2540
2540
  return 0 < this._cmp(e, t) || this._cmp(e, t) === 0 && (n || r) && (!n || !r) ? Pt(this) : new this.Collection(this, function() {
2541
- return Ze(e, t, !n, !r);
2541
+ return et(e, t, !n, !r);
2542
2542
  });
2543
2543
  } catch {
2544
- return Ce(this, Me);
2544
+ return Ce(this, $e);
2545
2545
  }
2546
- }, be.prototype.equals = function(e) {
2547
- return e == null ? Ce(this, Me) : new this.Collection(this, function() {
2546
+ }, _e.prototype.equals = function(e) {
2547
+ return e == null ? Ce(this, $e) : new this.Collection(this, function() {
2548
2548
  return la(e);
2549
2549
  });
2550
- }, be.prototype.above = function(e) {
2551
- return e == null ? Ce(this, Me) : new this.Collection(this, function() {
2552
- return Ze(e, void 0, !0);
2550
+ }, _e.prototype.above = function(e) {
2551
+ return e == null ? Ce(this, $e) : new this.Collection(this, function() {
2552
+ return et(e, void 0, !0);
2553
2553
  });
2554
- }, be.prototype.aboveOrEqual = function(e) {
2555
- return e == null ? Ce(this, Me) : new this.Collection(this, function() {
2556
- return Ze(e, void 0, !1);
2554
+ }, _e.prototype.aboveOrEqual = function(e) {
2555
+ return e == null ? Ce(this, $e) : new this.Collection(this, function() {
2556
+ return et(e, void 0, !1);
2557
2557
  });
2558
- }, be.prototype.below = function(e) {
2559
- return e == null ? Ce(this, Me) : new this.Collection(this, function() {
2560
- return Ze(void 0, e, !1, !0);
2558
+ }, _e.prototype.below = function(e) {
2559
+ return e == null ? Ce(this, $e) : new this.Collection(this, function() {
2560
+ return et(void 0, e, !1, !0);
2561
2561
  });
2562
- }, be.prototype.belowOrEqual = function(e) {
2563
- return e == null ? Ce(this, Me) : new this.Collection(this, function() {
2564
- return Ze(void 0, e);
2562
+ }, _e.prototype.belowOrEqual = function(e) {
2563
+ return e == null ? Ce(this, $e) : new this.Collection(this, function() {
2564
+ return et(void 0, e);
2565
2565
  });
2566
- }, be.prototype.startsWith = function(e) {
2567
- return typeof e != "string" ? Ce(this, ta) : this.between(e, e + lt, !0, !0);
2568
- }, be.prototype.startsWithIgnoreCase = function(e) {
2569
- return e === "" ? this.startsWith(e) : bn(this, function(t, n) {
2566
+ }, _e.prototype.startsWith = function(e) {
2567
+ return typeof e != "string" ? Ce(this, ta) : this.between(e, e + ht, !0, !0);
2568
+ }, _e.prototype.startsWithIgnoreCase = function(e) {
2569
+ return e === "" ? this.startsWith(e) : _n(this, function(t, n) {
2570
2570
  return t.indexOf(n[0]) === 0;
2571
- }, [e], lt);
2572
- }, be.prototype.equalsIgnoreCase = function(e) {
2573
- return bn(this, function(t, n) {
2571
+ }, [e], ht);
2572
+ }, _e.prototype.equalsIgnoreCase = function(e) {
2573
+ return _n(this, function(t, n) {
2574
2574
  return t === n[0];
2575
2575
  }, [e], "");
2576
- }, be.prototype.anyOfIgnoreCase = function() {
2577
- var e = P.apply(Le, arguments);
2578
- return e.length === 0 ? Pt(this) : bn(this, function(t, n) {
2576
+ }, _e.prototype.anyOfIgnoreCase = function() {
2577
+ var e = P.apply(Fe, arguments);
2578
+ return e.length === 0 ? Pt(this) : _n(this, function(t, n) {
2579
2579
  return n.indexOf(t) !== -1;
2580
2580
  }, e, "");
2581
- }, be.prototype.startsWithAnyOfIgnoreCase = function() {
2582
- var e = P.apply(Le, arguments);
2583
- return e.length === 0 ? Pt(this) : bn(this, function(t, n) {
2581
+ }, _e.prototype.startsWithAnyOfIgnoreCase = function() {
2582
+ var e = P.apply(Fe, arguments);
2583
+ return e.length === 0 ? Pt(this) : _n(this, function(t, n) {
2584
2584
  return n.some(function(r) {
2585
2585
  return t.indexOf(r) === 0;
2586
2586
  });
2587
- }, e, lt);
2588
- }, be.prototype.anyOf = function() {
2589
- var e = this, t = P.apply(Le, arguments), n = this._cmp;
2587
+ }, e, ht);
2588
+ }, _e.prototype.anyOf = function() {
2589
+ var e = this, t = P.apply(Fe, arguments), n = this._cmp;
2590
2590
  try {
2591
2591
  t.sort(n);
2592
2592
  } catch {
2593
- return Ce(this, Me);
2593
+ return Ce(this, $e);
2594
2594
  }
2595
2595
  if (t.length === 0) return Pt(this);
2596
2596
  var r = new this.Collection(this, function() {
2597
- return Ze(t[0], t[t.length - 1]);
2597
+ return et(t[0], t[t.length - 1]);
2598
2598
  });
2599
2599
  r._ondirectionchange = function(o) {
2600
2600
  n = o === "next" ? e._ascending : e._descending, t.sort(n);
@@ -2606,21 +2606,21 @@ function gc() {
2606
2606
  o.continue(t[i]);
2607
2607
  }), !1);
2608
2608
  }), r;
2609
- }, be.prototype.notEqual = function(e) {
2609
+ }, _e.prototype.notEqual = function(e) {
2610
2610
  return this.inAnyRange([[-1 / 0, e], [e, this.db._maxKey]], { includeLowers: !1, includeUppers: !1 });
2611
- }, be.prototype.noneOf = function() {
2612
- var e = P.apply(Le, arguments);
2611
+ }, _e.prototype.noneOf = function() {
2612
+ var e = P.apply(Fe, arguments);
2613
2613
  if (e.length === 0) return new this.Collection(this);
2614
2614
  try {
2615
2615
  e.sort(this._ascending);
2616
2616
  } catch {
2617
- return Ce(this, Me);
2617
+ return Ce(this, $e);
2618
2618
  }
2619
2619
  var t = e.reduce(function(n, r) {
2620
2620
  return n ? n.concat([[n[n.length - 1][1], r]]) : [[-1 / 0, r]];
2621
2621
  }, null);
2622
2622
  return t.push([e[e.length - 1], this.db._maxKey]), this.inAnyRange(t, { includeLowers: !1, includeUppers: !1 });
2623
- }, be.prototype.inAnyRange = function(k, t) {
2623
+ }, _e.prototype.inAnyRange = function(k, t) {
2624
2624
  var n = this, r = this._cmp, i = this._ascending, o = this._descending, u = this._min, c = this._max;
2625
2625
  if (k.length === 0) return Pt(this);
2626
2626
  if (!k.every(function(S) {
@@ -2642,7 +2642,7 @@ function gc() {
2642
2642
  return C === R && S.push(O), S;
2643
2643
  }, [])).sort(_);
2644
2644
  } catch {
2645
- return Ce(this, Me);
2645
+ return Ce(this, $e);
2646
2646
  }
2647
2647
  var v = 0, m = p ? function(S) {
2648
2648
  return 0 < i(S, g[v][1]);
@@ -2653,7 +2653,7 @@ function gc() {
2653
2653
  } : function(S) {
2654
2654
  return 0 <= o(S, g[v][0]);
2655
2655
  }, y = m, k = new this.Collection(this, function() {
2656
- return Ze(g[0][0], g[g.length - 1][1], !d, !p);
2656
+ return et(g[0][0], g[g.length - 1][1], !d, !p);
2657
2657
  });
2658
2658
  return k._ondirectionchange = function(S) {
2659
2659
  f = S === "next" ? (y = m, i) : (y = b, o), g.sort(_);
@@ -2663,17 +2663,17 @@ function gc() {
2663
2663
  f === i ? S.continue(g[v][0]) : S.continue(g[v][1]);
2664
2664
  }), !1);
2665
2665
  }), k;
2666
- }, be.prototype.startsWithAnyOf = function() {
2667
- var e = P.apply(Le, arguments);
2666
+ }, _e.prototype.startsWithAnyOf = function() {
2667
+ var e = P.apply(Fe, arguments);
2668
2668
  return e.every(function(t) {
2669
2669
  return typeof t == "string";
2670
2670
  }) ? e.length === 0 ? Pt(this) : this.inAnyRange(e.map(function(t) {
2671
- return [t, t + lt];
2671
+ return [t, t + ht];
2672
2672
  })) : Ce(this, "startsWithAnyOf() only works with strings");
2673
- }, be);
2674
- function be() {
2673
+ }, _e);
2674
+ function _e() {
2675
2675
  }
2676
- function ze(e) {
2676
+ function Ke(e) {
2677
2677
  return fe(function(t) {
2678
2678
  return Ut(t), e(t.target.error), !1;
2679
2679
  });
@@ -2681,24 +2681,24 @@ function gc() {
2681
2681
  function Ut(e) {
2682
2682
  e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault();
2683
2683
  }
2684
- var Vt = "storagemutated", sr = "x-storagemutated-1", Je = Mt(null, Vt), Fi = (Ke.prototype._lock = function() {
2685
- return ye(!V.global), ++this._reculock, this._reculock !== 1 || V.global || (V.lockOwnerFor = this), this;
2686
- }, Ke.prototype._unlock = function() {
2687
- if (ye(!V.global), --this._reculock == 0) for (V.global || (V.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
2684
+ var Vt = "storagemutated", sr = "x-storagemutated-1", tt = Mt(null, Vt), Fi = (qe.prototype._lock = function() {
2685
+ return me(!V.global), ++this._reculock, this._reculock !== 1 || V.global || (V.lockOwnerFor = this), this;
2686
+ }, qe.prototype._unlock = function() {
2687
+ if (me(!V.global), --this._reculock == 0) for (V.global || (V.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
2688
2688
  var e = this._blockedFuncs.shift();
2689
2689
  try {
2690
- ct(e[1], e[0]);
2690
+ ft(e[1], e[0]);
2691
2691
  } catch {
2692
2692
  }
2693
2693
  }
2694
2694
  return this;
2695
- }, Ke.prototype._locked = function() {
2695
+ }, qe.prototype._locked = function() {
2696
2696
  return this._reculock && V.lockOwnerFor !== this;
2697
- }, Ke.prototype.create = function(e) {
2697
+ }, qe.prototype.create = function(e) {
2698
2698
  var t = this;
2699
2699
  if (!this.mode) return this;
2700
2700
  var n = this.db.idbdb, r = this.db._state.dbOpenError;
2701
- if (ye(!this.idbtrans), !e && !n) switch (r && r.name) {
2701
+ if (me(!this.idbtrans), !e && !n) switch (r && r.name) {
2702
2702
  case "DatabaseClosedError":
2703
2703
  throw new $.DatabaseClosed(r);
2704
2704
  case "MissingAPIError":
@@ -2707,23 +2707,23 @@ function gc() {
2707
2707
  throw new $.OpenFailed(r);
2708
2708
  }
2709
2709
  if (!this.active) throw new $.TransactionInactive();
2710
- return ye(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = fe(function(i) {
2710
+ return me(this._completion._state === null), (e = this.idbtrans = e || (this.db.core || n).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = fe(function(i) {
2711
2711
  Ut(i), t._reject(e.error);
2712
2712
  }), e.onabort = fe(function(i) {
2713
2713
  Ut(i), t.active && t._reject(new $.Abort(e.error)), t.active = !1, t.on("abort").fire(i);
2714
2714
  }), e.oncomplete = fe(function() {
2715
- t.active = !1, t._resolve(), "mutatedParts" in e && Je.storagemutated.fire(e.mutatedParts);
2715
+ t.active = !1, t._resolve(), "mutatedParts" in e && tt.storagemutated.fire(e.mutatedParts);
2716
2716
  }), this;
2717
- }, Ke.prototype._promise = function(e, t, n) {
2717
+ }, qe.prototype._promise = function(e, t, n) {
2718
2718
  var r = this;
2719
- if (e === "readwrite" && this.mode !== "readwrite") return ve(new $.ReadOnly("Transaction is readonly"));
2720
- if (!this.active) return ve(new $.TransactionInactive());
2719
+ if (e === "readwrite" && this.mode !== "readwrite") return pe(new $.ReadOnly("Transaction is readonly"));
2720
+ if (!this.active) return pe(new $.TransactionInactive());
2721
2721
  if (this._locked()) return new q(function(o, u) {
2722
2722
  r._blockedFuncs.push([function() {
2723
2723
  r._promise(e, t, n).then(o, u);
2724
2724
  }, V]);
2725
2725
  });
2726
- if (n) return We(function() {
2726
+ if (n) return Qe(function() {
2727
2727
  var o = new q(function(u, c) {
2728
2728
  r._lock();
2729
2729
  var d = t(u, c, r);
@@ -2738,9 +2738,9 @@ function gc() {
2738
2738
  c && c.then && c.then(o, u);
2739
2739
  });
2740
2740
  return i._lib = !0, i;
2741
- }, Ke.prototype._root = function() {
2741
+ }, qe.prototype._root = function() {
2742
2742
  return this.parent ? this.parent._root() : this;
2743
- }, Ke.prototype.waitFor = function(e) {
2743
+ }, qe.prototype.waitFor = function(e) {
2744
2744
  var t, n = this._root(), r = q.resolve(e);
2745
2745
  n._waitingFor ? n._waitingFor = n._waitingFor.then(function() {
2746
2746
  return r;
@@ -2758,16 +2758,16 @@ function gc() {
2758
2758
  n._waitingFor === i && (n._waitingFor = null);
2759
2759
  });
2760
2760
  });
2761
- }, Ke.prototype.abort = function() {
2761
+ }, qe.prototype.abort = function() {
2762
2762
  this.active && (this.active = !1, this.idbtrans && this.idbtrans.abort(), this._reject(new $.Abort()));
2763
- }, Ke.prototype.table = function(e) {
2763
+ }, qe.prototype.table = function(e) {
2764
2764
  var t = this._memoizedTables || (this._memoizedTables = {});
2765
2765
  if (F(t, e)) return t[e];
2766
2766
  var n = this.schema[e];
2767
2767
  if (!n) throw new $.NotFound("Table " + e + " not part of transaction");
2768
2768
  return n = new this.db.Table(e, n, this), n.core = this.db.core.table(e), t[e] = n;
2769
- }, Ke);
2770
- function Ke() {
2769
+ }, qe);
2770
+ function qe() {
2771
2771
  }
2772
2772
  function ur(e, t, n, r, i, o, u) {
2773
2773
  return { name: e, keyPath: t, unique: n, multi: r, auto: i, compound: o, src: (n && !u ? "&" : "") + (r ? "*" : "") + (i ? "++" : "") + ha(t) };
@@ -2790,8 +2790,8 @@ function gc() {
2790
2790
  }, [[]];
2791
2791
  } catch {
2792
2792
  return Ht = function() {
2793
- return lt;
2794
- }, lt;
2793
+ return ht;
2794
+ }, ht;
2795
2795
  }
2796
2796
  };
2797
2797
  function lr(e) {
@@ -2799,9 +2799,9 @@ function gc() {
2799
2799
  } : typeof e == "string" ? (t = e).split(".").length === 1 ? function(n) {
2800
2800
  return n[t];
2801
2801
  } : function(n) {
2802
- return de(n, t);
2802
+ return he(n, t);
2803
2803
  } : function(n) {
2804
- return de(n, e);
2804
+ return he(n, e);
2805
2805
  };
2806
2806
  var t;
2807
2807
  }
@@ -2827,31 +2827,31 @@ function gc() {
2827
2827
  R = fe(R);
2828
2828
  var D = y.objectStore(m), I = D.keyPath == null, K = k === "put" || k === "add";
2829
2829
  if (!K && k !== "delete" && k !== "deleteRange") throw new Error("Invalid operation type: " + k);
2830
- var N, B = (S || O || { length: 1 }).length;
2830
+ var N, L = (S || O || { length: 1 }).length;
2831
2831
  if (S && O && S.length !== O.length) throw new Error("Given keys array must have same length as given values array.");
2832
- if (B === 0) return R({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
2833
- function Q(Se) {
2834
- ++Te, Ut(Se);
2832
+ if (L === 0) return R({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
2833
+ function Q(je) {
2834
+ ++Te, Ut(je);
2835
2835
  }
2836
2836
  var Z = [], J = [], Te = 0;
2837
2837
  if (k === "deleteRange") {
2838
2838
  if (C.type === 4) return R({ numFailures: Te, failures: J, results: [], lastResult: void 0 });
2839
2839
  C.type === 3 ? Z.push(N = D.clear()) : Z.push(N = D.delete(r(C)));
2840
2840
  } else {
2841
- var I = K ? I ? [O, S] : [O, null] : [S, null], W = I[0], xe = I[1];
2842
- if (K) for (var ke = 0; ke < B; ++ke) Z.push(N = xe && xe[ke] !== void 0 ? D[k](W[ke], xe[ke]) : D[k](W[ke])), N.onerror = Q;
2843
- else for (ke = 0; ke < B; ++ke) Z.push(N = D[k](W[ke])), N.onerror = Q;
2841
+ var I = K ? I ? [O, S] : [O, null] : [S, null], W = I[0], ke = I[1];
2842
+ if (K) for (var Ee = 0; Ee < L; ++Ee) Z.push(N = ke && ke[Ee] !== void 0 ? D[k](W[Ee], ke[Ee]) : D[k](W[Ee])), N.onerror = Q;
2843
+ else for (Ee = 0; Ee < L; ++Ee) Z.push(N = D[k](W[Ee])), N.onerror = Q;
2844
2844
  }
2845
- function Rn(Se) {
2846
- Se = Se.target.result, Z.forEach(function(vt, Cr) {
2847
- return vt.error != null && (J[Cr] = vt.error);
2848
- }), R({ numFailures: Te, failures: J, results: k === "delete" ? S : Z.map(function(vt) {
2849
- return vt.result;
2850
- }), lastResult: Se });
2845
+ function Dn(je) {
2846
+ je = je.target.result, Z.forEach(function(yt, Cr) {
2847
+ return yt.error != null && (J[Cr] = yt.error);
2848
+ }), R({ numFailures: Te, failures: J, results: k === "delete" ? S : Z.map(function(yt) {
2849
+ return yt.result;
2850
+ }), lastResult: je });
2851
2851
  }
2852
- N.onerror = function(Se) {
2853
- Q(Se), Rn(Se);
2854
- }, N.onsuccess = Rn;
2852
+ N.onerror = function(je) {
2853
+ Q(je), Dn(je);
2854
+ }, N.onsuccess = Dn;
2855
2855
  });
2856
2856
  }, getMany: function(b) {
2857
2857
  var y = b.trans, k = b.keys;
@@ -2859,7 +2859,7 @@ function gc() {
2859
2859
  S = fe(S);
2860
2860
  for (var C, R = y.objectStore(m), z = k.length, D = new Array(z), I = 0, K = 0, N = function(Z) {
2861
2861
  Z = Z.target, D[Z._pos] = Z.result, ++K === I && S(D);
2862
- }, B = ze(O), Q = 0; Q < z; ++Q) k[Q] != null && ((C = R.get(k[Q]))._pos = Q, C.onsuccess = N, C.onerror = B, ++I);
2862
+ }, L = Ke(O), Q = 0; Q < z; ++Q) k[Q] != null && ((C = R.get(k[Q]))._pos = Q, C.onsuccess = N, C.onerror = L, ++I);
2863
2863
  I === 0 && S(D);
2864
2864
  });
2865
2865
  }, get: function(b) {
@@ -2869,57 +2869,57 @@ function gc() {
2869
2869
  var C = y.objectStore(m).get(k);
2870
2870
  C.onsuccess = function(R) {
2871
2871
  return S(R.target.result);
2872
- }, C.onerror = ze(O);
2872
+ }, C.onerror = Ke(O);
2873
2873
  });
2874
2874
  }, query: (v = p, function(b) {
2875
2875
  return new Promise(function(y, k) {
2876
2876
  y = fe(y);
2877
2877
  var S, O, C, I = b.trans, R = b.values, z = b.limit, N = b.query, D = z === 1 / 0 ? void 0 : z, K = N.index, N = N.range, I = I.objectStore(m), K = K.isPrimaryKey ? I : I.index(K.name), N = r(N);
2878
2878
  if (z === 0) return y({ result: [] });
2879
- v ? ((D = R ? K.getAll(N, D) : K.getAllKeys(N, D)).onsuccess = function(B) {
2880
- return y({ result: B.target.result });
2881
- }, D.onerror = ze(k)) : (S = 0, O = !R && "openKeyCursor" in K ? K.openKeyCursor(N) : K.openCursor(N), C = [], O.onsuccess = function(B) {
2879
+ v ? ((D = R ? K.getAll(N, D) : K.getAllKeys(N, D)).onsuccess = function(L) {
2880
+ return y({ result: L.target.result });
2881
+ }, D.onerror = Ke(k)) : (S = 0, O = !R && "openKeyCursor" in K ? K.openKeyCursor(N) : K.openCursor(N), C = [], O.onsuccess = function(L) {
2882
2882
  var Q = O.result;
2883
2883
  return Q ? (C.push(R ? Q.value : Q.primaryKey), ++S === z ? y({ result: C }) : void Q.continue()) : y({ result: C });
2884
- }, O.onerror = ze(k));
2884
+ }, O.onerror = Ke(k));
2885
2885
  });
2886
2886
  }), openCursor: function(b) {
2887
2887
  var y = b.trans, k = b.values, S = b.query, O = b.reverse, C = b.unique;
2888
2888
  return new Promise(function(R, z) {
2889
2889
  R = fe(R);
2890
2890
  var K = S.index, D = S.range, I = y.objectStore(m), I = K.isPrimaryKey ? I : I.index(K.name), K = O ? C ? "prevunique" : "prev" : C ? "nextunique" : "next", N = !k && "openKeyCursor" in I ? I.openKeyCursor(r(D), K) : I.openCursor(r(D), K);
2891
- N.onerror = ze(z), N.onsuccess = fe(function(B) {
2891
+ N.onerror = Ke(z), N.onsuccess = fe(function(L) {
2892
2892
  var Q, Z, J, Te, W = N.result;
2893
2893
  W ? (W.___id = ++$i, W.done = !1, Q = W.continue.bind(W), Z = (Z = W.continuePrimaryKey) && Z.bind(W), J = W.advance.bind(W), Te = function() {
2894
2894
  throw new Error("Cursor not stopped");
2895
2895
  }, W.trans = y, W.stop = W.continue = W.continuePrimaryKey = W.advance = function() {
2896
2896
  throw new Error("Cursor not started");
2897
2897
  }, W.fail = fe(z), W.next = function() {
2898
- var xe = this, ke = 1;
2898
+ var ke = this, Ee = 1;
2899
2899
  return this.start(function() {
2900
- return ke-- ? xe.continue() : xe.stop();
2900
+ return Ee-- ? ke.continue() : ke.stop();
2901
2901
  }).then(function() {
2902
- return xe;
2902
+ return ke;
2903
2903
  });
2904
- }, W.start = function(xe) {
2905
- function ke() {
2904
+ }, W.start = function(ke) {
2905
+ function Ee() {
2906
2906
  if (N.result) try {
2907
- xe();
2908
- } catch (Se) {
2909
- W.fail(Se);
2907
+ ke();
2908
+ } catch (je) {
2909
+ W.fail(je);
2910
2910
  }
2911
2911
  else W.done = !0, W.start = function() {
2912
2912
  throw new Error("Cursor behind last entry");
2913
2913
  }, W.stop();
2914
2914
  }
2915
- var Rn = new Promise(function(Se, vt) {
2916
- Se = fe(Se), N.onerror = ze(vt), W.fail = vt, W.stop = function(Cr) {
2917
- W.stop = W.continue = W.continuePrimaryKey = W.advance = Te, Se(Cr);
2915
+ var Dn = new Promise(function(je, yt) {
2916
+ je = fe(je), N.onerror = Ke(yt), W.fail = yt, W.stop = function(Cr) {
2917
+ W.stop = W.continue = W.continuePrimaryKey = W.advance = Te, je(Cr);
2918
2918
  };
2919
2919
  });
2920
- return N.onsuccess = fe(function(Se) {
2921
- N.onsuccess = ke, ke();
2922
- }), W.continue = Q, W.continuePrimaryKey = Z, W.advance = J, ke(), Rn;
2920
+ return N.onsuccess = fe(function(je) {
2921
+ N.onsuccess = Ee, Ee();
2922
+ }), W.continue = Q, W.continuePrimaryKey = Z, W.advance = J, Ee(), Dn;
2923
2923
  }, R(W)) : R(null);
2924
2924
  }, z);
2925
2925
  });
@@ -2929,7 +2929,7 @@ function gc() {
2929
2929
  var z = k.objectStore(m), D = S.isPrimaryKey ? z : z.index(S.name), z = r(O), D = z ? D.count(z) : D.count();
2930
2930
  D.onsuccess = fe(function(I) {
2931
2931
  return C(I.target.result);
2932
- }), D.onerror = ze(R);
2932
+ }), D.onerror = Ke(R);
2933
2933
  });
2934
2934
  } };
2935
2935
  }
@@ -2959,7 +2959,7 @@ function gc() {
2959
2959
  return u = u.create, h(h({}, o), u(o));
2960
2960
  }, r)) };
2961
2961
  }
2962
- function _n(e, r) {
2962
+ function wn(e, r) {
2963
2963
  var n = r.db, r = Vi(e._middlewares, n, e._deps, r);
2964
2964
  e.core = r.dbcore, e.tables.forEach(function(i) {
2965
2965
  var o = i.name;
@@ -2968,7 +2968,7 @@ function gc() {
2968
2968
  }) && (i.core = e.core.table(o), e[o] instanceof e.Table && (e[o].core = i.core));
2969
2969
  });
2970
2970
  }
2971
- function wn(e, t, n, r) {
2971
+ function xn(e, t, n, r) {
2972
2972
  n.forEach(function(i) {
2973
2973
  var o = r[i];
2974
2974
  t.forEach(function(u) {
@@ -2978,7 +2978,7 @@ function gc() {
2978
2978
  (!c || "value" in c && c.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Y(u, i, { get: function() {
2979
2979
  return this.table(i);
2980
2980
  }, set: function(d) {
2981
- L(this, i, { value: d, writable: !0, configurable: !0, enumerable: !0 });
2981
+ B(this, i, { value: d, writable: !0, configurable: !0, enumerable: !0 });
2982
2982
  } }) : u[i] = new e.Table(i, o));
2983
2983
  });
2984
2984
  });
@@ -2997,41 +2997,41 @@ function gc() {
2997
2997
  var o = e._createTransaction("readwrite", e._storeNames, i);
2998
2998
  o.create(n), o._completion.catch(r);
2999
2999
  var u = o._reject.bind(o), c = V.transless || V;
3000
- We(function() {
3001
- return V.trans = o, V.transless = c, t !== 0 ? (_n(e, n), p = t, ((d = o).storeNames.includes("$meta") ? d.table("$meta").get("version").then(function(g) {
3000
+ Qe(function() {
3001
+ return V.trans = o, V.transless = c, t !== 0 ? (wn(e, n), p = t, ((d = o).storeNames.includes("$meta") ? d.table("$meta").get("version").then(function(g) {
3002
3002
  return g ?? p;
3003
3003
  }) : q.resolve(p)).then(function(g) {
3004
- return _ = g, v = o, m = n, b = [], g = (f = e)._versions, y = f._dbSchema = kn(0, f.idbdb, m), (g = g.filter(function(k) {
3004
+ return _ = g, v = o, m = n, b = [], g = (f = e)._versions, y = f._dbSchema = En(0, f.idbdb, m), (g = g.filter(function(k) {
3005
3005
  return k._cfg.version >= _;
3006
3006
  })).length !== 0 ? (g.forEach(function(k) {
3007
3007
  b.push(function() {
3008
3008
  var S = y, O = k._cfg.dbschema;
3009
- En(f, S, m), En(f, O, m), y = f._dbSchema = O;
3009
+ Sn(f, S, m), Sn(f, O, m), y = f._dbSchema = O;
3010
3010
  var C = hr(S, O);
3011
3011
  C.add.forEach(function(K) {
3012
3012
  dr(m, K[0], K[1].primKey, K[1].indexes);
3013
3013
  }), C.change.forEach(function(K) {
3014
3014
  if (K.recreate) throw new $.Upgrade("Not yet support for changing primary key");
3015
3015
  var N = m.objectStore(K.name);
3016
- K.add.forEach(function(B) {
3017
- return xn(N, B);
3018
- }), K.change.forEach(function(B) {
3019
- N.deleteIndex(B.name), xn(N, B);
3020
- }), K.del.forEach(function(B) {
3021
- return N.deleteIndex(B);
3016
+ K.add.forEach(function(L) {
3017
+ return kn(N, L);
3018
+ }), K.change.forEach(function(L) {
3019
+ N.deleteIndex(L.name), kn(N, L);
3020
+ }), K.del.forEach(function(L) {
3021
+ return N.deleteIndex(L);
3022
3022
  });
3023
3023
  });
3024
3024
  var R = k._cfg.contentUpgrade;
3025
3025
  if (R && k._cfg.version > _) {
3026
- _n(f, m), v._memoizedTables = {};
3027
- var z = qe(O);
3026
+ wn(f, m), v._memoizedTables = {};
3027
+ var z = Ge(O);
3028
3028
  C.del.forEach(function(K) {
3029
3029
  z[K] = S[K];
3030
- }), fr(f, [f.Transaction.prototype]), wn(f, [f.Transaction.prototype], w(z), z), v.schema = z;
3030
+ }), fr(f, [f.Transaction.prototype]), xn(f, [f.Transaction.prototype], w(z), z), v.schema = z;
3031
3031
  var D, I = X(R);
3032
3032
  return I && Ot(), C = q.follow(function() {
3033
3033
  var K;
3034
- (D = R(v)) && I && (K = Xe.bind(null, null), D.then(K, K));
3034
+ (D = R(v)) && I && (K = Ze.bind(null, null), D.then(K, K));
3035
3035
  }), D && typeof D.then == "function" ? q.resolve(D) : C.then(function() {
3036
3036
  return D;
3037
3037
  });
@@ -3040,7 +3040,7 @@ function gc() {
3040
3040
  var O, C, R = k._cfg.dbschema;
3041
3041
  O = R, C = S, [].slice.call(C.db.objectStoreNames).forEach(function(z) {
3042
3042
  return O[z] == null && C.db.deleteObjectStore(z);
3043
- }), fr(f, [f.Transaction.prototype]), wn(f, [f.Transaction.prototype], f._storeNames, f._dbSchema), v.schema = f._dbSchema;
3043
+ }), fr(f, [f.Transaction.prototype]), xn(f, [f.Transaction.prototype], f._storeNames, f._dbSchema), v.schema = f._dbSchema;
3044
3044
  }), b.push(function(S) {
3045
3045
  f.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(f.idbdb.version / 10) === k._cfg.version ? (f.idbdb.deleteObjectStore("$meta"), delete f._dbSchema.$meta, f._storeNames = f._storeNames.filter(function(O) {
3046
3046
  return O !== "$meta";
@@ -3054,7 +3054,7 @@ function gc() {
3054
3054
  var f, _, v, m, b, y;
3055
3055
  }).catch(u)) : (w(i).forEach(function(g) {
3056
3056
  dr(n, g, i[g].primKey, i[g].indexes);
3057
- }), _n(e, n), void q.follow(function() {
3057
+ }), wn(e, n), void q.follow(function() {
3058
3058
  return e.on.populate.fire(o);
3059
3059
  }).catch(u));
3060
3060
  var d, p;
@@ -3062,14 +3062,14 @@ function gc() {
3062
3062
  }
3063
3063
  function Yi(e, t) {
3064
3064
  va(e._dbSchema, t), t.db.version % 10 != 0 || t.objectStoreNames.contains("$meta") || t.db.createObjectStore("$meta").add(Math.ceil(t.db.version / 10 - 1), "version");
3065
- var n = kn(0, e.idbdb, t);
3066
- En(e, e._dbSchema, t);
3065
+ var n = En(0, e.idbdb, t);
3066
+ Sn(e, e._dbSchema, t);
3067
3067
  for (var r = 0, i = hr(n, e._dbSchema).change; r < i.length; r++) {
3068
3068
  var o = function(u) {
3069
3069
  if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
3070
3070
  var c = t.objectStore(u.name);
3071
3071
  u.add.forEach(function(d) {
3072
- Ne && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(d.src)), xn(c, d);
3072
+ ze && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(d.src)), kn(c, d);
3073
3073
  });
3074
3074
  }(i[r]);
3075
3075
  if (typeof o == "object") return o.value;
@@ -3099,20 +3099,20 @@ function gc() {
3099
3099
  function dr(e, t, n, r) {
3100
3100
  var i = e.db.createObjectStore(t, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
3101
3101
  return r.forEach(function(o) {
3102
- return xn(i, o);
3102
+ return kn(i, o);
3103
3103
  }), i;
3104
3104
  }
3105
3105
  function va(e, t) {
3106
3106
  w(e).forEach(function(n) {
3107
- t.db.objectStoreNames.contains(n) || (Ne && console.debug("Dexie: Creating missing table", n), dr(t, n, e[n].primKey, e[n].indexes));
3107
+ t.db.objectStoreNames.contains(n) || (ze && console.debug("Dexie: Creating missing table", n), dr(t, n, e[n].primKey, e[n].indexes));
3108
3108
  });
3109
3109
  }
3110
- function xn(e, t) {
3110
+ function kn(e, t) {
3111
3111
  e.createIndex(t.name, t.keyPath, { unique: t.unique, multiEntry: t.multi });
3112
3112
  }
3113
- function kn(e, t, n) {
3113
+ function En(e, t, n) {
3114
3114
  var r = {};
3115
- return le(t.objectStoreNames, 0).forEach(function(i) {
3115
+ return oe(t.objectStoreNames, 0).forEach(function(i) {
3116
3116
  for (var o = n.objectStore(i), u = ur(ha(p = o.keyPath), p || "", !0, !1, !!o.autoIncrement, p && typeof p != "string", !0), c = [], d = 0; d < o.indexNames.length; ++d) {
3117
3117
  var g = o.index(o.indexNames[d]), p = g.keyPath, g = ur(g.name, p, !!g.unique, !!g.multiEntry, !1, p && typeof p != "string", !1);
3118
3118
  c.push(g);
@@ -3120,12 +3120,12 @@ function gc() {
3120
3120
  r[i] = cr(i, u, c);
3121
3121
  }), r;
3122
3122
  }
3123
- function En(e, t, n) {
3123
+ function Sn(e, t, n) {
3124
3124
  for (var r = n.db.objectStoreNames, i = 0; i < r.length; ++i) {
3125
3125
  var o = r[i], u = n.objectStore(o);
3126
3126
  e._hasGetAll = "getAll" in u;
3127
3127
  for (var c = 0; c < u.indexNames.length; ++c) {
3128
- var d = u.indexNames[c], p = u.index(d).keyPath, g = typeof p == "string" ? p : "[" + le(p).join("+") + "]";
3128
+ var d = u.indexNames[c], p = u.index(d).keyPath, g = typeof p == "string" ? p : "[" + oe(p).join("+") + "]";
3129
3129
  !t[o] || (p = t[o].idxByName[g]) && (p.name = d, delete t[o].idxByName[g], t[o].idxByName[d] = p);
3130
3130
  }
3131
3131
  }
@@ -3137,7 +3137,7 @@ function gc() {
3137
3137
  return ur(r, i || null, /\&/.test(t), /\*/.test(t), /\+\+/.test(t), E(i), n === 0);
3138
3138
  });
3139
3139
  }
3140
- var Wi = (Sn.prototype._parseStoresSpec = function(e, t) {
3140
+ var Wi = (jn.prototype._parseStoresSpec = function(e, t) {
3141
3141
  w(e).forEach(function(n) {
3142
3142
  if (e[n] !== null) {
3143
3143
  var r = pa(e[n]), i = r.shift();
@@ -3148,36 +3148,36 @@ function gc() {
3148
3148
  }), t[n] = cr(n, i, r);
3149
3149
  }
3150
3150
  });
3151
- }, Sn.prototype.stores = function(n) {
3151
+ }, jn.prototype.stores = function(n) {
3152
3152
  var t = this.db;
3153
3153
  this._cfg.storesSource = this._cfg.storesSource ? T(this._cfg.storesSource, n) : n;
3154
3154
  var n = t._versions, r = {}, i = {};
3155
3155
  return n.forEach(function(o) {
3156
3156
  T(r, o._cfg.storesSource), i = o._cfg.dbschema = {}, o._parseStoresSpec(r, i);
3157
- }), t._dbSchema = i, fr(t, [t._allTables, t, t.Transaction.prototype]), wn(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], w(i), i), t._storeNames = w(i), this;
3158
- }, Sn.prototype.upgrade = function(e) {
3157
+ }), t._dbSchema = i, fr(t, [t._allTables, t, t.Transaction.prototype]), xn(t, [t._allTables, t, t.Transaction.prototype, this._cfg.tables], w(i), i), t._storeNames = w(i), this;
3158
+ }, jn.prototype.upgrade = function(e) {
3159
3159
  return this._cfg.contentUpgrade = Gn(this._cfg.contentUpgrade || ie, e), this;
3160
- }, Sn);
3161
- function Sn() {
3160
+ }, jn);
3161
+ function jn() {
3162
3162
  }
3163
3163
  function vr(e, t) {
3164
3164
  var n = e._dbNamesDB;
3165
- return n || (n = e._dbNamesDB = new Fe(pn, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
3165
+ return n || (n = e._dbNamesDB = new Ue(yn, { addons: [], indexedDB: e, IDBKeyRange: t })).version(1).stores({ dbnames: "name" }), n.table("dbnames");
3166
3166
  }
3167
3167
  function pr(e) {
3168
3168
  return e && typeof e.databases == "function";
3169
3169
  }
3170
3170
  function yr(e) {
3171
- return We(function() {
3171
+ return Qe(function() {
3172
3172
  return V.letThrough = !0, e();
3173
3173
  });
3174
3174
  }
3175
3175
  function mr(e) {
3176
3176
  return !("from" in e);
3177
3177
  }
3178
- var we = function(e, t) {
3178
+ var xe = function(e, t) {
3179
3179
  if (!this) {
3180
- var n = new we();
3180
+ var n = new xe();
3181
3181
  return e && "d" in e && T(n, e), n;
3182
3182
  }
3183
3183
  T(this, arguments.length ? { d: 1, from: e, to: 1 < arguments.length ? t : e } : { d: 0 });
@@ -3200,15 +3200,15 @@ function gc() {
3200
3200
  }(e, t);
3201
3201
  }
3202
3202
  function ya(e, t) {
3203
- var n = jn(t), r = n.next();
3203
+ var n = On(t), r = n.next();
3204
3204
  if (r.done) return !1;
3205
- for (var i = r.value, o = jn(e), u = o.next(i.from), c = u.value; !r.done && !u.done; ) {
3205
+ for (var i = r.value, o = On(e), u = o.next(i.from), c = u.value; !r.done && !u.done; ) {
3206
3206
  if (ee(c.from, i.to) <= 0 && 0 <= ee(c.to, i.from)) return !0;
3207
3207
  ee(i.from, c.from) < 0 ? i = (r = n.next(c.from)).value : c = (u = o.next(i.from)).value;
3208
3208
  }
3209
3209
  return !1;
3210
3210
  }
3211
- function jn(e) {
3211
+ function On(e) {
3212
3212
  var t = mr(e) ? null : { s: 0, n: e };
3213
3213
  return { next: function(n) {
3214
3214
  for (var r = 0 < arguments.length; t; ) switch (t.s) {
@@ -3236,11 +3236,11 @@ function gc() {
3236
3236
  var t = n.r, n = n.l;
3237
3237
  return (t ? n ? Math.max(t.d, n.d) : t.d : n ? n.d : 0) + 1;
3238
3238
  }
3239
- function On(e, t) {
3239
+ function Cn(e, t) {
3240
3240
  return w(t).forEach(function(n) {
3241
3241
  e[n] ? Wt(e[n], t[n]) : e[n] = function r(i) {
3242
3242
  var o, u, c = {};
3243
- for (o in i) F(i, o) && (u = i[o], c[o] = !u || typeof u != "object" || _t.has(u.constructor) ? u : r(u));
3243
+ for (o in i) F(i, o) && (u = i[o], c[o] = !u || typeof u != "object" || le.has(u.constructor) ? u : r(u));
3244
3244
  return c;
3245
3245
  }(t[n]);
3246
3246
  }), e;
@@ -3250,7 +3250,7 @@ function gc() {
3250
3250
  return t[n] && ya(t[n], e[n]);
3251
3251
  });
3252
3252
  }
3253
- U(we.prototype, ((Ae = { add: function(e) {
3253
+ U(xe.prototype, ((Pe = { add: function(e) {
3254
3254
  return Wt(this, e), this;
3255
3255
  }, addKey: function(e) {
3256
3256
  return Yt(this, e, e), this;
@@ -3260,24 +3260,24 @@ function gc() {
3260
3260
  return Yt(t, n, n);
3261
3261
  }), this;
3262
3262
  }, hasKey: function(e) {
3263
- var t = jn(this).next(e).value;
3263
+ var t = On(this).next(e).value;
3264
3264
  return t && ee(t.from, e) <= 0 && 0 <= ee(t.to, e);
3265
3265
  } })[xt] = function() {
3266
- return jn(this);
3267
- }, Ae));
3268
- var ht = {}, br = {}, _r = !1;
3269
- function Cn(e) {
3270
- On(br, e), _r || (_r = !0, setTimeout(function() {
3266
+ return On(this);
3267
+ }, Pe));
3268
+ var vt = {}, br = {}, _r = !1;
3269
+ function Tn(e) {
3270
+ Cn(br, e), _r || (_r = !0, setTimeout(function() {
3271
3271
  _r = !1, wr(br, !(br = {}));
3272
3272
  }, 0));
3273
3273
  }
3274
3274
  function wr(e, t) {
3275
3275
  t === void 0 && (t = !1);
3276
3276
  var n = /* @__PURE__ */ new Set();
3277
- if (e.all) for (var r = 0, i = Object.values(ht); r < i.length; r++) ba(u = i[r], e, n, t);
3277
+ if (e.all) for (var r = 0, i = Object.values(vt); r < i.length; r++) ba(u = i[r], e, n, t);
3278
3278
  else for (var o in e) {
3279
3279
  var u, c = /^idb\:\/\/(.*)\/(.*)\//.exec(o);
3280
- c && (o = c[1], c = c[2], (u = ht["idb://".concat(o, "/").concat(c)]) && ba(u, e, n, t));
3280
+ c && (o = c[1], c = c[2], (u = vt["idb://".concat(o, "/").concat(c)]) && ba(u, e, n, t));
3281
3281
  }
3282
3282
  n.forEach(function(d) {
3283
3283
  return d();
@@ -3301,7 +3301,7 @@ function gc() {
3301
3301
  function Xi(e) {
3302
3302
  var t = e._state, n = e._deps.indexedDB;
3303
3303
  if (t.isBeingOpened || e.idbdb) return t.dbReadyPromise.then(function() {
3304
- return t.dbOpenError ? ve(t.dbOpenError) : e;
3304
+ return t.dbOpenError ? pe(t.dbOpenError) : e;
3305
3305
  });
3306
3306
  t.isBeingOpened = !0, t.dbOpenError = null, t.openComplete = !1;
3307
3307
  var r = t.openCanceller, i = Math.round(10 * e.verno), o = !1;
@@ -3313,28 +3313,28 @@ function gc() {
3313
3313
  if (u(), !n) throw new $.MissingAPI();
3314
3314
  var m = e.name, b = t.autoSchema || !i ? n.open(m) : n.open(m, i);
3315
3315
  if (!b) throw new $.MissingAPI();
3316
- b.onerror = ze(v), b.onblocked = fe(e._fireOnBlocked), b.onupgradeneeded = fe(function(y) {
3316
+ b.onerror = Ke(v), b.onblocked = fe(e._fireOnBlocked), b.onupgradeneeded = fe(function(y) {
3317
3317
  var k;
3318
3318
  g = b.transaction, t.autoSchema && !e._options.allowEmptyDB ? (b.onerror = Ut, g.abort(), b.result.close(), (k = n.deleteDatabase(m)).onsuccess = k.onerror = fe(function() {
3319
3319
  v(new $.NoSuchDatabase("Database ".concat(m, " doesnt exist")));
3320
- })) : (g.onerror = ze(v), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = b.result, o && Yi(e, g), Gi(e, y / 10, g, v));
3320
+ })) : (g.onerror = Ke(v), y = y.oldVersion > Math.pow(2, 62) ? 0 : y.oldVersion, f = y < 1, e.idbdb = b.result, o && Yi(e, g), Gi(e, y / 10, g, v));
3321
3321
  }, v), b.onsuccess = fe(function() {
3322
3322
  g = null;
3323
- var y, k, S, O, C, R = e.idbdb = b.result, z = le(R.objectStoreNames);
3323
+ var y, k, S, O, C, R = e.idbdb = b.result, z = oe(R.objectStoreNames);
3324
3324
  if (0 < z.length) try {
3325
3325
  var D = R.transaction((O = z).length === 1 ? O[0] : O, "readonly");
3326
- if (t.autoSchema) k = R, S = D, (y = e).verno = k.version / 10, S = y._dbSchema = kn(0, k, S), y._storeNames = le(k.objectStoreNames, 0), wn(y, [y._allTables], w(S), S);
3327
- else if (En(e, e._dbSchema, D), ((C = hr(kn(0, (C = e).idbdb, D), C._dbSchema)).add.length || C.change.some(function(I) {
3326
+ if (t.autoSchema) k = R, S = D, (y = e).verno = k.version / 10, S = y._dbSchema = En(0, k, S), y._storeNames = oe(k.objectStoreNames, 0), xn(y, [y._allTables], w(S), S);
3327
+ else if (Sn(e, e._dbSchema, D), ((C = hr(En(0, (C = e).idbdb, D), C._dbSchema)).add.length || C.change.some(function(I) {
3328
3328
  return I.add.length || I.change.length;
3329
3329
  })) && !o) 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."), R.close(), i = R.version + 1, o = !0, _(c());
3330
- _n(e, D);
3330
+ wn(e, D);
3331
3331
  } catch {
3332
3332
  }
3333
3333
  Ct.push(e), R.onversionchange = fe(function(I) {
3334
3334
  t.vcFired = !0, e.on("versionchange").fire(I);
3335
3335
  }), R.onclose = fe(function(I) {
3336
3336
  e.on("close").fire(I);
3337
- }), f && (C = e._deps, D = m, R = C.indexedDB, C = C.IDBKeyRange, pr(R) || D === pn || vr(R, C).put({ name: D }).catch(ie)), _();
3337
+ }), f && (C = e._deps, D = m, R = C.indexedDB, C = C.IDBKeyRange, pr(R) || D === yn || vr(R, C).put({ name: D }).catch(ie)), _();
3338
3338
  }, v);
3339
3339
  }).catch(function(_) {
3340
3340
  switch (_ == null ? void 0 : _.name) {
@@ -3374,16 +3374,16 @@ function gc() {
3374
3374
  g && g.abort();
3375
3375
  } catch {
3376
3376
  }
3377
- return r === t.openCanceller && e._close(), ve(_);
3377
+ return r === t.openCanceller && e._close(), pe(_);
3378
3378
  }).finally(function() {
3379
3379
  t.openComplete = !0, p();
3380
3380
  }).then(function() {
3381
3381
  var _;
3382
3382
  return f && (_ = {}, e.tables.forEach(function(v) {
3383
3383
  v.schema.indexes.forEach(function(m) {
3384
- m.name && (_["idb://".concat(e.name, "/").concat(v.name, "/").concat(m.name)] = new we(-1 / 0, [[[]]]));
3385
- }), _["idb://".concat(e.name, "/").concat(v.name, "/")] = _["idb://".concat(e.name, "/").concat(v.name, "/:dels")] = new we(-1 / 0, [[[]]]);
3386
- }), Je(Vt).fire(_), wr(_, !0)), e;
3384
+ m.name && (_["idb://".concat(e.name, "/").concat(v.name, "/").concat(m.name)] = new xe(-1 / 0, [[[]]]));
3385
+ }), _["idb://".concat(e.name, "/").concat(v.name, "/")] = _["idb://".concat(e.name, "/").concat(v.name, "/:dels")] = new xe(-1 / 0, [[[]]]);
3386
+ }), tt(Vt).fire(_), wr(_, !0)), e;
3387
3387
  });
3388
3388
  }
3389
3389
  function xr(e) {
@@ -3401,7 +3401,7 @@ function gc() {
3401
3401
  }
3402
3402
  return i(t)();
3403
3403
  }
3404
- function Tn(e, t, n) {
3404
+ function Pn(e, t, n) {
3405
3405
  for (var r = E(e) ? e.slice() : [e], i = 0; i < n; ++i) r.push(t);
3406
3406
  return r;
3407
3407
  }
@@ -3421,7 +3421,7 @@ function gc() {
3421
3421
  }
3422
3422
  function g(f) {
3423
3423
  var _, v = f.query.index;
3424
- return v.isVirtual ? h(h({}, f), { query: { index: v.lowLevelIndex, range: (_ = f.query.range, v = v.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Tn(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, v), lowerOpen: !0, upper: Tn(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, v), upperOpen: !0 }) } }) : f;
3424
+ return v.isVirtual ? h(h({}, f), { query: { index: v.lowLevelIndex, range: (_ = f.query.range, v = v.keyTail, { type: _.type === 1 ? 2 : _.type, lower: Pn(_.lower, _.lowerOpen ? e.MAX_KEY : e.MIN_KEY, v), lowerOpen: !0, upper: Pn(_.upper, _.upperOpen ? e.MIN_KEY : e.MAX_KEY, v), upperOpen: !0 }) } }) : f;
3425
3425
  }
3426
3426
  return h(h({}, n), { schema: h(h({}, r), { primaryKey: t, indexes: o, getIndexByKeyPath: function(f) {
3427
3427
  return (f = i[Gt(f)]) && f[0];
@@ -3436,9 +3436,9 @@ function gc() {
3436
3436
  }) : n.openCursor(f);
3437
3437
  function y(k) {
3438
3438
  return Object.create(k, { continue: { value: function(S) {
3439
- S != null ? k.continue(Tn(S, f.reverse ? e.MAX_KEY : e.MIN_KEY, v)) : f.unique ? k.continue(k.key.slice(0, b).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, v)) : k.continue();
3439
+ S != null ? k.continue(Pn(S, f.reverse ? e.MAX_KEY : e.MIN_KEY, v)) : f.unique ? k.continue(k.key.slice(0, b).concat(f.reverse ? e.MIN_KEY : e.MAX_KEY, v)) : k.continue();
3440
3440
  } }, continuePrimaryKey: { value: function(S, O) {
3441
- k.continuePrimaryKey(Tn(S, e.MAX_KEY, v), O);
3441
+ k.continuePrimaryKey(Pn(S, e.MAX_KEY, v), O);
3442
3442
  } }, primaryKey: { get: function() {
3443
3443
  return k.primaryKey;
3444
3444
  } }, key: { get: function() {
@@ -3503,8 +3503,8 @@ function gc() {
3503
3503
  return (f = f.type === "add" || f.type === "put" ? h(h({}, f), { keys: y }) : h({}, f)).type !== "delete" && (f.values = j([], f.values)), f.keys && (f.keys = j([], f.keys)), _ = n, m = y, ((v = f).type === "add" ? Promise.resolve([]) : _.getMany({ trans: v.trans, keys: m, cache: "immutable" })).then(function(k) {
3504
3504
  var S = y.map(function(O, C) {
3505
3505
  var R, z, D, I = k[C], K = { onerror: null, onsuccess: null };
3506
- return f.type === "delete" ? c.fire.call(K, O, I, b) : f.type === "add" || I === void 0 ? (R = d.fire.call(K, O, f.values[C], b), O == null && R != null && (f.keys[C] = O = R, r.outbound || oe(f.values[C], r.keyPath, O))) : (R = kr(I, f.values[C]), (z = p.fire.call(K, R, O, I, b)) && (D = f.values[C], Object.keys(z).forEach(function(N) {
3507
- F(D, N) ? D[N] = z[N] : oe(D, N, z[N]);
3506
+ return f.type === "delete" ? c.fire.call(K, O, I, b) : f.type === "add" || I === void 0 ? (R = d.fire.call(K, O, f.values[C], b), O == null && R != null && (f.keys[C] = O = R, r.outbound || de(f.values[C], r.keyPath, O))) : (R = kr(I, f.values[C]), (z = p.fire.call(K, R, O, I, b)) && (D = f.values[C], Object.keys(z).forEach(function(N) {
3507
+ F(D, N) ? D[N] = z[N] : de(D, N, z[N]);
3508
3508
  }))), K;
3509
3509
  });
3510
3510
  return n.mutate(f).then(function(O) {
@@ -3526,7 +3526,7 @@ function gc() {
3526
3526
  function _a(e, t, n) {
3527
3527
  try {
3528
3528
  if (!t || t.keys.length < e.length) return null;
3529
- for (var r = [], i = 0, o = 0; i < t.keys.length && o < e.length; ++i) ee(t.keys[i], e[o]) === 0 && (r.push(n ? Be(t.values[i]) : t.values[i]), ++o);
3529
+ for (var r = [], i = 0, o = 0; i < t.keys.length && o < e.length; ++i) ee(t.keys[i], e[o]) === 0 && (r.push(n ? Me(t.values[i]) : t.values[i]), ++o);
3530
3530
  return r.length === e.length ? r : null;
3531
3531
  } catch {
3532
3532
  return null;
@@ -3539,7 +3539,7 @@ function gc() {
3539
3539
  if (!r.cache) return n.getMany(r);
3540
3540
  var i = _a(r.keys, r.trans._cache, r.cache === "clone");
3541
3541
  return i ? q.resolve(i) : n.getMany(r).then(function(o) {
3542
- return r.trans._cache = { keys: r.keys, values: r.cache === "clone" ? Be(o) : o }, o;
3542
+ return r.trans._cache = { keys: r.keys, values: r.cache === "clone" ? Me(o) : o }, o;
3543
3543
  });
3544
3544
  }, mutate: function(r) {
3545
3545
  return r.type !== "add" && (r.trans._cache = null), n.mutate(r);
@@ -3561,7 +3561,7 @@ function gc() {
3561
3561
  }
3562
3562
  }
3563
3563
  var eo = { stack: "dbcore", level: 0, name: "Observability", create: function(e) {
3564
- var t = e.schema.name, n = new we(e.MIN_KEY, e.MAX_KEY);
3564
+ var t = e.schema.name, n = new xe(e.MIN_KEY, e.MAX_KEY);
3565
3565
  return h(h({}, e), { transaction: function(r, i, o) {
3566
3566
  if (V.subscr && i !== "readonly") throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(V.querier));
3567
3567
  return e.transaction(r, i, o);
@@ -3570,51 +3570,51 @@ function gc() {
3570
3570
  return v.compound && v.keyPath.includes(u.keyPath);
3571
3571
  }), g = h(h({}, i), { mutate: function(v) {
3572
3572
  function m(N) {
3573
- return N = "idb://".concat(t, "/").concat(r, "/").concat(N), O[N] || (O[N] = new we());
3573
+ return N = "idb://".concat(t, "/").concat(r, "/").concat(N), O[N] || (O[N] = new xe());
3574
3574
  }
3575
3575
  var b, y, k, S = v.trans, O = v.mutatedParts || (v.mutatedParts = {}), C = m(""), R = m(":dels"), z = v.type, K = v.type === "deleteRange" ? [v.range] : v.type === "delete" ? [v.keys] : v.values.length < 50 ? [Er(u, v).filter(function(N) {
3576
3576
  return N;
3577
3577
  }), v.values] : [], D = K[0], I = K[1], K = v.trans._cache;
3578
3578
  return E(D) ? (C.addKeys(D), (K = z === "delete" || D.length === I.length ? _a(D, K) : null) || R.addKeys(D), (K || I) && (b = m, y = K, k = I, o.indexes.forEach(function(N) {
3579
- var B = b(N.name || "");
3579
+ var L = b(N.name || "");
3580
3580
  function Q(J) {
3581
3581
  return J != null ? N.extractKey(J) : null;
3582
3582
  }
3583
3583
  function Z(J) {
3584
3584
  return N.multiEntry && E(J) ? J.forEach(function(Te) {
3585
- return B.addKey(Te);
3586
- }) : B.addKey(J);
3585
+ return L.addKey(Te);
3586
+ }) : L.addKey(J);
3587
3587
  }
3588
- (y || k).forEach(function(J, xe) {
3589
- var W = y && Q(y[xe]), xe = k && Q(k[xe]);
3590
- ee(W, xe) !== 0 && (W != null && Z(W), xe != null && Z(xe));
3588
+ (y || k).forEach(function(J, ke) {
3589
+ var W = y && Q(y[ke]), ke = k && Q(k[ke]);
3590
+ ee(W, ke) !== 0 && (W != null && Z(W), ke != null && Z(ke));
3591
3591
  });
3592
3592
  }))) : D ? (I = { from: (I = D.lower) !== null && I !== void 0 ? I : e.MIN_KEY, to: (I = D.upper) !== null && I !== void 0 ? I : e.MAX_KEY }, R.add(I), C.add(I)) : (C.add(n), R.add(n), o.indexes.forEach(function(N) {
3593
3593
  return m(N.name).add(n);
3594
3594
  })), i.mutate(v).then(function(N) {
3595
- return !D || v.type !== "add" && v.type !== "put" || (C.addKeys(N.results), p && p.forEach(function(B) {
3595
+ return !D || v.type !== "add" && v.type !== "put" || (C.addKeys(N.results), p && p.forEach(function(L) {
3596
3596
  for (var Q = v.values.map(function(W) {
3597
- return B.extractKey(W);
3598
- }), Z = B.keyPath.findIndex(function(W) {
3597
+ return L.extractKey(W);
3598
+ }), Z = L.keyPath.findIndex(function(W) {
3599
3599
  return W === u.keyPath;
3600
3600
  }), J = 0, Te = N.results.length; J < Te; ++J) Q[J][Z] = N.results[J];
3601
- m(B.name).addKeys(Q);
3602
- })), S.mutatedParts = On(S.mutatedParts || {}, O), N;
3601
+ m(L.name).addKeys(Q);
3602
+ })), S.mutatedParts = Cn(S.mutatedParts || {}, O), N;
3603
3603
  });
3604
3604
  } }), f = function(m) {
3605
3605
  var b = m.query, m = b.index, b = b.range;
3606
- return [m, new we((m = b.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (b = b.upper) !== null && b !== void 0 ? b : e.MAX_KEY)];
3606
+ return [m, new xe((m = b.lower) !== null && m !== void 0 ? m : e.MIN_KEY, (b = b.upper) !== null && b !== void 0 ? b : e.MAX_KEY)];
3607
3607
  }, _ = { get: function(v) {
3608
- return [u, new we(v.key)];
3608
+ return [u, new xe(v.key)];
3609
3609
  }, getMany: function(v) {
3610
- return [u, new we().addKeys(v.keys)];
3610
+ return [u, new xe().addKeys(v.keys)];
3611
3611
  }, count: f, query: f, openCursor: f };
3612
3612
  return w(_).forEach(function(v) {
3613
3613
  g[v] = function(m) {
3614
3614
  var b = V.subscr, y = !!b, k = wa(V, i) && xa(v, m) ? m.obsSet = {} : b;
3615
3615
  if (y) {
3616
3616
  var S = function(I) {
3617
- return I = "idb://".concat(t, "/").concat(r, "/").concat(I), k[I] || (k[I] = new we());
3617
+ return I = "idb://".concat(t, "/").concat(r, "/").concat(I), k[I] || (k[I] = new xe());
3618
3618
  }, O = S(""), C = S(":dels"), b = _[v](m), y = b[0], b = b[1];
3619
3619
  if ((v === "query" && y.isPrimaryKey && !m.values ? C : S(y.name || "")).add(b), !y.isPrimaryKey) {
3620
3620
  if (v !== "count") {
@@ -3627,14 +3627,14 @@ function gc() {
3627
3627
  var K = m.values ? I.result.map(c) : I.result;
3628
3628
  (m.values ? O : C).addKeys(K);
3629
3629
  } else if (v === "openCursor") {
3630
- var N = I, B = m.values;
3630
+ var N = I, L = m.values;
3631
3631
  return N && Object.create(N, { key: { get: function() {
3632
3632
  return C.addKey(N.primaryKey), N.key;
3633
3633
  } }, primaryKey: { get: function() {
3634
3634
  var Q = N.primaryKey;
3635
3635
  return C.addKey(Q), Q;
3636
3636
  } }, value: { get: function() {
3637
- return B && O.addKey(N.primaryKey), N.value;
3637
+ return L && O.addKey(N.primaryKey), N.value;
3638
3638
  } } });
3639
3639
  }
3640
3640
  return I;
@@ -3666,7 +3666,7 @@ function gc() {
3666
3666
  if (!_ || _.length === 0) return e;
3667
3667
  var u = t.query.index, c = u.multiEntry, d = t.query.range, p = r.schema.primaryKey.extractKey, g = u.extractKey, f = (u.lowLevelIndex || u).extractKey, _ = _.reduce(function(v, m) {
3668
3668
  var b = v, y = [];
3669
- if (m.type === "add" || m.type === "put") for (var k = new we(), S = m.values.length - 1; 0 <= S; --S) {
3669
+ if (m.type === "add" || m.type === "put") for (var k = new xe(), S = m.values.length - 1; 0 <= S; --S) {
3670
3670
  var O, C = m.values[S], R = p(C);
3671
3671
  k.hasKey(R) || (O = g(C), (c && E(O) ? O.some(function(N) {
3672
3672
  return Sr(N, d);
@@ -3674,36 +3674,36 @@ function gc() {
3674
3674
  }
3675
3675
  switch (m.type) {
3676
3676
  case "add":
3677
- var z = new we().addKeys(t.values ? v.map(function(B) {
3678
- return p(B);
3679
- }) : v), b = v.concat(t.values ? y.filter(function(B) {
3680
- return B = p(B), !z.hasKey(B) && (z.addKey(B), !0);
3681
- }) : y.map(function(B) {
3682
- return p(B);
3683
- }).filter(function(B) {
3684
- return !z.hasKey(B) && (z.addKey(B), !0);
3677
+ var z = new xe().addKeys(t.values ? v.map(function(L) {
3678
+ return p(L);
3679
+ }) : v), b = v.concat(t.values ? y.filter(function(L) {
3680
+ return L = p(L), !z.hasKey(L) && (z.addKey(L), !0);
3681
+ }) : y.map(function(L) {
3682
+ return p(L);
3683
+ }).filter(function(L) {
3684
+ return !z.hasKey(L) && (z.addKey(L), !0);
3685
3685
  }));
3686
3686
  break;
3687
3687
  case "put":
3688
- var D = new we().addKeys(m.values.map(function(B) {
3689
- return p(B);
3688
+ var D = new xe().addKeys(m.values.map(function(L) {
3689
+ return p(L);
3690
3690
  }));
3691
- b = v.filter(function(B) {
3692
- return !D.hasKey(t.values ? p(B) : B);
3693
- }).concat(t.values ? y : y.map(function(B) {
3694
- return p(B);
3691
+ b = v.filter(function(L) {
3692
+ return !D.hasKey(t.values ? p(L) : L);
3693
+ }).concat(t.values ? y : y.map(function(L) {
3694
+ return p(L);
3695
3695
  }));
3696
3696
  break;
3697
3697
  case "delete":
3698
- var I = new we().addKeys(m.keys);
3699
- b = v.filter(function(B) {
3700
- return !I.hasKey(t.values ? p(B) : B);
3698
+ var I = new xe().addKeys(m.keys);
3699
+ b = v.filter(function(L) {
3700
+ return !I.hasKey(t.values ? p(L) : L);
3701
3701
  });
3702
3702
  break;
3703
3703
  case "deleteRange":
3704
3704
  var K = m.range;
3705
- b = v.filter(function(B) {
3706
- return !Sr(p(B), K);
3705
+ b = v.filter(function(L) {
3706
+ return !Sr(p(L), K);
3707
3707
  });
3708
3708
  }
3709
3709
  return b;
@@ -3740,7 +3740,7 @@ function gc() {
3740
3740
  e.subscribers.add(n), r.addEventListener("abort", function() {
3741
3741
  var i, o;
3742
3742
  e.subscribers.delete(n), e.subscribers.size === 0 && (i = e, o = t, setTimeout(function() {
3743
- i.subscribers.size === 0 && De(o, i);
3743
+ i.subscribers.size === 0 && Ie(o, i);
3744
3744
  }, 3e3));
3745
3745
  });
3746
3746
  }
@@ -3752,28 +3752,28 @@ function gc() {
3752
3752
  return function() {
3753
3753
  if (o.abort(), r === "readwrite") {
3754
3754
  for (var p = /* @__PURE__ */ new Set(), g = 0, f = n; g < f.length; g++) {
3755
- var _ = f[g], v = ht["idb://".concat(t, "/").concat(_)];
3755
+ var _ = f[g], v = vt["idb://".concat(t, "/").concat(_)];
3756
3756
  if (v) {
3757
- var m = e.table(_), b = v.optimisticOps.filter(function(B) {
3758
- return B.trans === c;
3757
+ var m = e.table(_), b = v.optimisticOps.filter(function(L) {
3758
+ return L.trans === c;
3759
3759
  });
3760
- if (c._explicit && d && c.mutatedParts) for (var y = 0, k = Object.values(v.queries.query); y < k.length; y++) for (var S = 0, O = (z = k[y]).slice(); S < O.length; S++) gr((D = O[S]).obsSet, c.mutatedParts) && (De(z, D), D.subscribers.forEach(function(B) {
3761
- return p.add(B);
3760
+ if (c._explicit && d && c.mutatedParts) for (var y = 0, k = Object.values(v.queries.query); y < k.length; y++) for (var S = 0, O = (z = k[y]).slice(); S < O.length; S++) gr((D = O[S]).obsSet, c.mutatedParts) && (Ie(z, D), D.subscribers.forEach(function(L) {
3761
+ return p.add(L);
3762
3762
  }));
3763
3763
  else if (0 < b.length) {
3764
- v.optimisticOps = v.optimisticOps.filter(function(B) {
3765
- return B.trans !== c;
3764
+ v.optimisticOps = v.optimisticOps.filter(function(L) {
3765
+ return L.trans !== c;
3766
3766
  });
3767
- for (var C = 0, R = Object.values(v.queries.query); C < R.length; C++) for (var z, D, I, K = 0, N = (z = R[C]).slice(); K < N.length; K++) (D = N[K]).res != null && c.mutatedParts && (d && !D.dirty ? (I = Object.isFrozen(D.res), I = Ea(D.res, D.req, b, m, D, I), D.dirty ? (De(z, D), D.subscribers.forEach(function(B) {
3768
- return p.add(B);
3769
- })) : I !== D.res && (D.res = I, D.promise = q.resolve({ result: I }))) : (D.dirty && De(z, D), D.subscribers.forEach(function(B) {
3770
- return p.add(B);
3767
+ for (var C = 0, R = Object.values(v.queries.query); C < R.length; C++) for (var z, D, I, K = 0, N = (z = R[C]).slice(); K < N.length; K++) (D = N[K]).res != null && c.mutatedParts && (d && !D.dirty ? (I = Object.isFrozen(D.res), I = Ea(D.res, D.req, b, m, D, I), D.dirty ? (Ie(z, D), D.subscribers.forEach(function(L) {
3768
+ return p.add(L);
3769
+ })) : I !== D.res && (D.res = I, D.promise = q.resolve({ result: I }))) : (D.dirty && Ie(z, D), D.subscribers.forEach(function(L) {
3770
+ return p.add(L);
3771
3771
  })));
3772
3772
  }
3773
3773
  }
3774
3774
  }
3775
- p.forEach(function(B) {
3776
- return B();
3775
+ p.forEach(function(L) {
3776
+ return L();
3777
3777
  });
3778
3778
  }
3779
3779
  };
@@ -3783,26 +3783,26 @@ function gc() {
3783
3783
  return h(h({}, r), { mutate: function(o) {
3784
3784
  var u = V.trans;
3785
3785
  if (i.outbound || u.db._options.cache === "disabled" || u.explicit || u.idbtrans.mode !== "readwrite") return r.mutate(o);
3786
- var c = ht["idb://".concat(t, "/").concat(n)];
3786
+ var c = vt["idb://".concat(t, "/").concat(n)];
3787
3787
  return c ? (u = r.mutate(o), o.type !== "add" && o.type !== "put" || !(50 <= o.values.length || Er(i, o).some(function(d) {
3788
3788
  return d == null;
3789
- })) ? (c.optimisticOps.push(o), o.mutatedParts && Cn(o.mutatedParts), u.then(function(d) {
3790
- 0 < d.numFailures && (De(c.optimisticOps, o), (d = ka(0, o, d)) && c.optimisticOps.push(d), o.mutatedParts && Cn(o.mutatedParts));
3789
+ })) ? (c.optimisticOps.push(o), o.mutatedParts && Tn(o.mutatedParts), u.then(function(d) {
3790
+ 0 < d.numFailures && (Ie(c.optimisticOps, o), (d = ka(0, o, d)) && c.optimisticOps.push(d), o.mutatedParts && Tn(o.mutatedParts));
3791
3791
  }), u.catch(function() {
3792
- De(c.optimisticOps, o), o.mutatedParts && Cn(o.mutatedParts);
3792
+ Ie(c.optimisticOps, o), o.mutatedParts && Tn(o.mutatedParts);
3793
3793
  })) : u.then(function(d) {
3794
3794
  var p = ka(0, h(h({}, o), { values: o.values.map(function(g, f) {
3795
3795
  var _;
3796
- return d.failures[f] ? g : (g = (_ = i.keyPath) !== null && _ !== void 0 && _.includes(".") ? Be(g) : h({}, g), oe(g, i.keyPath, d.results[f]), g);
3796
+ return d.failures[f] ? g : (g = (_ = i.keyPath) !== null && _ !== void 0 && _.includes(".") ? Me(g) : h({}, g), de(g, i.keyPath, d.results[f]), g);
3797
3797
  }) }), d);
3798
3798
  c.optimisticOps.push(p), queueMicrotask(function() {
3799
- return o.mutatedParts && Cn(o.mutatedParts);
3799
+ return o.mutatedParts && Tn(o.mutatedParts);
3800
3800
  });
3801
3801
  }), u) : r.mutate(o);
3802
3802
  }, query: function(o) {
3803
3803
  if (!wa(V, r) || !xa("query", o)) return r.query(o);
3804
3804
  var u = ((p = V.trans) === null || p === void 0 ? void 0 : p.db._options.cache) === "immutable", f = V, c = f.requery, d = f.signal, p = function(m, b, y, k) {
3805
- var S = ht["idb://".concat(m, "/").concat(b)];
3805
+ var S = vt["idb://".concat(m, "/").concat(b)];
3806
3806
  if (!S) return [];
3807
3807
  if (!(b = S.queries[y])) return [null, !1, S, null];
3808
3808
  var O = b[(k.query ? k.query.index.name : null) || ""];
@@ -3826,22 +3826,22 @@ function gc() {
3826
3826
  if (g && (g.res = b), u) {
3827
3827
  for (var y = 0, k = b.length; y < k; ++y) Object.freeze(b[y]);
3828
3828
  Object.freeze(b);
3829
- } else m.result = Be(b);
3829
+ } else m.result = Me(b);
3830
3830
  return m;
3831
3831
  }).catch(function(m) {
3832
- return v && g && De(v, g), Promise.reject(m);
3833
- }), g = { obsSet: o.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: o, dirty: !1 }, v ? v.push(g) : (v = [g], (_ = _ || (ht["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[o.query.index.name || ""] = v)), no(g, v, c, d), g.promise.then(function(m) {
3832
+ return v && g && Ie(v, g), Promise.reject(m);
3833
+ }), g = { obsSet: o.obsSet, promise: f, subscribers: /* @__PURE__ */ new Set(), type: "query", req: o, dirty: !1 }, v ? v.push(g) : (v = [g], (_ = _ || (vt["idb://".concat(t, "/").concat(n)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[o.query.index.name || ""] = v)), no(g, v, c, d), g.promise.then(function(m) {
3834
3834
  return { result: Ea(m.result, o, _ == null ? void 0 : _.optimisticOps, r, g, u) };
3835
3835
  });
3836
3836
  } });
3837
3837
  } });
3838
3838
  } };
3839
- function Pn(e, t) {
3839
+ function An(e, t) {
3840
3840
  return new Proxy(e, { get: function(n, r, i) {
3841
3841
  return r === "db" ? t : Reflect.get(n, r, i);
3842
3842
  } });
3843
3843
  }
3844
- var Fe = (pe.prototype.version = function(e) {
3844
+ var Ue = (ye.prototype.version = function(e) {
3845
3845
  if (isNaN(e) || e < 0.1) throw new $.Type("Given version is not a positive number");
3846
3846
  if (e = Math.round(10 * e) / 10, this.idbdb || this._state.isBeingOpened) throw new $.Schema("Cannot add version when database is open");
3847
3847
  this.verno = Math.max(this.verno, e);
@@ -3849,7 +3849,7 @@ function gc() {
3849
3849
  return r._cfg.version === e;
3850
3850
  })[0];
3851
3851
  return n || (n = new this.Version(e), t.push(n), t.sort(Hi), n.stores({}), this._state.autoSchema = !1, n);
3852
- }, pe.prototype._whenReady = function(e) {
3852
+ }, ye.prototype._whenReady = function(e) {
3853
3853
  var t = this;
3854
3854
  return this.idbdb && (this._state.openComplete || V.letThrough || this._vip) ? e() : new q(function(n, r) {
3855
3855
  if (t._state.openComplete) return r(new $.DatabaseClosed(t._state.dbOpenError));
@@ -3859,22 +3859,22 @@ function gc() {
3859
3859
  }
3860
3860
  t._state.dbReadyPromise.then(n, r);
3861
3861
  }).then(e);
3862
- }, pe.prototype.use = function(e) {
3862
+ }, ye.prototype.use = function(e) {
3863
3863
  var t = e.stack, n = e.create, r = e.level, i = e.name;
3864
3864
  return i && this.unuse({ stack: t, name: i }), e = this._middlewares[t] || (this._middlewares[t] = []), e.push({ stack: t, create: n, level: r ?? 10, name: i }), e.sort(function(o, u) {
3865
3865
  return o.level - u.level;
3866
3866
  }), this;
3867
- }, pe.prototype.unuse = function(e) {
3867
+ }, ye.prototype.unuse = function(e) {
3868
3868
  var t = e.stack, n = e.name, r = e.create;
3869
3869
  return t && this._middlewares[t] && (this._middlewares[t] = this._middlewares[t].filter(function(i) {
3870
3870
  return r ? i.create !== r : !!n && i.name !== n;
3871
3871
  })), this;
3872
- }, pe.prototype.open = function() {
3872
+ }, ye.prototype.open = function() {
3873
3873
  var e = this;
3874
- return ct(Ye, function() {
3874
+ return ft(Xe, function() {
3875
3875
  return Xi(e);
3876
3876
  });
3877
- }, pe.prototype._close = function() {
3877
+ }, ye.prototype._close = function() {
3878
3878
  var e = this._state, t = Ct.indexOf(this);
3879
3879
  if (0 <= t && Ct.splice(t, 1), this.idbdb) {
3880
3880
  try {
@@ -3888,10 +3888,10 @@ function gc() {
3888
3888
  }), e.openCanceller = new q(function(n, r) {
3889
3889
  e.cancelOpen = r;
3890
3890
  }));
3891
- }, pe.prototype.close = function(n) {
3891
+ }, ye.prototype.close = function(n) {
3892
3892
  var t = (n === void 0 ? { disableAutoOpen: !0 } : n).disableAutoOpen, n = this._state;
3893
3893
  t ? (n.isBeingOpened && n.cancelOpen(new $.DatabaseClosed()), this._close(), n.autoOpen = !1, n.dbOpenError = new $.DatabaseClosed()) : (this._close(), n.autoOpen = this._options.autoOpen || n.isBeingOpened, n.openComplete = !1, n.dbOpenError = null);
3894
- }, pe.prototype.delete = function(e) {
3894
+ }, ye.prototype.delete = function(e) {
3895
3895
  var t = this;
3896
3896
  e === void 0 && (e = { disableAutoOpen: !0 });
3897
3897
  var n = 0 < arguments.length && typeof arguments[0] != "object", r = this._state;
@@ -3901,37 +3901,37 @@ function gc() {
3901
3901
  var c = t._deps.indexedDB.deleteDatabase(t.name);
3902
3902
  c.onsuccess = fe(function() {
3903
3903
  var d, p, g;
3904
- d = t._deps, p = t.name, g = d.indexedDB, d = d.IDBKeyRange, pr(g) || p === pn || vr(g, d).delete(p).catch(ie), i();
3905
- }), c.onerror = ze(o), c.onblocked = t._fireOnBlocked;
3904
+ d = t._deps, p = t.name, g = d.indexedDB, d = d.IDBKeyRange, pr(g) || p === yn || vr(g, d).delete(p).catch(ie), i();
3905
+ }), c.onerror = Ke(o), c.onblocked = t._fireOnBlocked;
3906
3906
  }
3907
3907
  if (n) throw new $.InvalidArgument("Invalid closeOptions argument to db.delete()");
3908
3908
  r.isBeingOpened ? r.dbReadyPromise.then(u) : u();
3909
3909
  });
3910
- }, pe.prototype.backendDB = function() {
3910
+ }, ye.prototype.backendDB = function() {
3911
3911
  return this.idbdb;
3912
- }, pe.prototype.isOpen = function() {
3912
+ }, ye.prototype.isOpen = function() {
3913
3913
  return this.idbdb !== null;
3914
- }, pe.prototype.hasBeenClosed = function() {
3914
+ }, ye.prototype.hasBeenClosed = function() {
3915
3915
  var e = this._state.dbOpenError;
3916
3916
  return e && e.name === "DatabaseClosed";
3917
- }, pe.prototype.hasFailed = function() {
3917
+ }, ye.prototype.hasFailed = function() {
3918
3918
  return this._state.dbOpenError !== null;
3919
- }, pe.prototype.dynamicallyOpened = function() {
3919
+ }, ye.prototype.dynamicallyOpened = function() {
3920
3920
  return this._state.autoSchema;
3921
- }, Object.defineProperty(pe.prototype, "tables", { get: function() {
3921
+ }, Object.defineProperty(ye.prototype, "tables", { get: function() {
3922
3922
  var e = this;
3923
3923
  return w(this._allTables).map(function(t) {
3924
3924
  return e._allTables[t];
3925
3925
  });
3926
- }, enumerable: !1, configurable: !0 }), pe.prototype.transaction = function() {
3926
+ }, enumerable: !1, configurable: !0 }), ye.prototype.transaction = function() {
3927
3927
  var e = (function(t, n, r) {
3928
3928
  var i = arguments.length;
3929
3929
  if (i < 2) throw new $.InvalidArgument("Too few arguments");
3930
3930
  for (var o = new Array(i - 1); --i; ) o[i - 1] = arguments[i];
3931
- return r = o.pop(), [t, bt(o), r];
3931
+ return r = o.pop(), [t, We(o), r];
3932
3932
  }).apply(this, arguments);
3933
3933
  return this._transaction.apply(this, e);
3934
- }, pe.prototype._transaction = function(e, t, n) {
3934
+ }, ye.prototype._transaction = function(e, t, n) {
3935
3935
  var r = this, i = V.trans;
3936
3936
  i && i.db === this && e.indexOf("!") === -1 || (i = null);
3937
3937
  var o, u, c = e.indexOf("?") !== -1;
@@ -3960,7 +3960,7 @@ function gc() {
3960
3960
  } catch (p) {
3961
3961
  return i ? i._promise(null, function(g, f) {
3962
3962
  f(p);
3963
- }) : ve(p);
3963
+ }) : pe(p);
3964
3964
  }
3965
3965
  var d = (function p(g, f, _, v, m) {
3966
3966
  return q.resolve().then(function() {
@@ -3969,16 +3969,16 @@ function gc() {
3969
3969
  else try {
3970
3970
  y.create(), y.idbtrans._explicit = !0, g._state.PR1398_maxLoop = 3;
3971
3971
  } catch (O) {
3972
- return O.name === rt.InvalidState && g.isOpen() && 0 < --g._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), g.close({ disableAutoOpen: !1 }), g.open().then(function() {
3972
+ return O.name === it.InvalidState && g.isOpen() && 0 < --g._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), g.close({ disableAutoOpen: !1 }), g.open().then(function() {
3973
3973
  return p(g, f, _, null, m);
3974
- })) : ve(O);
3974
+ })) : pe(O);
3975
3975
  }
3976
3976
  var k, S = X(m);
3977
3977
  return S && Ot(), b = q.follow(function() {
3978
3978
  var O;
3979
- (k = m.call(y, y)) && (S ? (O = Xe.bind(null, null), k.then(O, O)) : typeof k.next == "function" && typeof k.throw == "function" && (k = xr(k)));
3979
+ (k = m.call(y, y)) && (S ? (O = Ze.bind(null, null), k.then(O, O)) : typeof k.next == "function" && typeof k.throw == "function" && (k = xr(k)));
3980
3980
  }, b), (k && typeof k.then == "function" ? q.resolve(k).then(function(O) {
3981
- return y.active ? O : ve(new $.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3981
+ return y.active ? O : pe(new $.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
3982
3982
  }) : b.then(function() {
3983
3983
  return k;
3984
3984
  })).then(function(O) {
@@ -3986,30 +3986,30 @@ function gc() {
3986
3986
  return O;
3987
3987
  });
3988
3988
  }).catch(function(O) {
3989
- return y._reject(O), ve(O);
3989
+ return y._reject(O), pe(O);
3990
3990
  });
3991
3991
  });
3992
3992
  }).bind(null, this, o, u, i, n);
3993
- return i ? i._promise(o, d, "lock") : V.trans ? ct(V.transless, function() {
3993
+ return i ? i._promise(o, d, "lock") : V.trans ? ft(V.transless, function() {
3994
3994
  return r._whenReady(d);
3995
3995
  }) : this._whenReady(d);
3996
- }, pe.prototype.table = function(e) {
3996
+ }, ye.prototype.table = function(e) {
3997
3997
  if (!F(this._allTables, e)) throw new $.InvalidTable("Table ".concat(e, " does not exist"));
3998
3998
  return this._allTables[e];
3999
- }, pe);
4000
- function pe(e, t) {
3999
+ }, ye);
4000
+ function ye(e, t) {
4001
4001
  var n = this;
4002
4002
  this._middlewares = {}, this.verno = 0;
4003
- var r = pe.dependencies;
4004
- this._options = t = h({ addons: pe.addons, autoOpen: !0, indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, r = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
4003
+ var r = ye.dependencies;
4004
+ this._options = t = h({ addons: ye.addons, autoOpen: !0, indexedDB: r.indexedDB, IDBKeyRange: r.IDBKeyRange, cache: "cloned" }, t), this._deps = { indexedDB: t.indexedDB, IDBKeyRange: t.IDBKeyRange }, r = t.addons, this._dbSchema = {}, this._versions = [], this._storeNames = [], this._allTables = {}, this.idbdb = null, this._novip = this;
4005
4005
  var i, o, u, c, d, p = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: ie, dbReadyPromise: null, cancelOpen: ie, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: t.autoOpen };
4006
4006
  p.dbReadyPromise = new q(function(f) {
4007
4007
  p.dbReadyResolve = f;
4008
4008
  }), p.openCanceller = new q(function(f, _) {
4009
4009
  p.cancelOpen = _;
4010
- }), this._state = p, this.name = e, this.on = Mt(this, "populate", "blocked", "versionchange", "close", { ready: [Gn, ie] }), this.on.ready.subscribe = Pe(this.on.ready.subscribe, function(f) {
4010
+ }), this._state = p, this.name = e, this.on = Mt(this, "populate", "blocked", "versionchange", "close", { ready: [Gn, ie] }), this.on.ready.subscribe = Ae(this.on.ready.subscribe, function(f) {
4011
4011
  return function(_, v) {
4012
- pe.vip(function() {
4012
+ ye.vip(function() {
4013
4013
  var m, b = n._state;
4014
4014
  b.openComplete ? (b.dbOpenError || q.resolve().then(_), v && f(_)) : b.onReadyBeingFired ? (b.onReadyBeingFired.push(_), v && f(_)) : (f(_), m = n, v || f(function y() {
4015
4015
  m.on.ready.unsubscribe(_), m.on.ready.unsubscribe(y);
@@ -4036,7 +4036,7 @@ function gc() {
4036
4036
  y.active = !1, y.on.complete.fire();
4037
4037
  }, function(k) {
4038
4038
  var S = y.active;
4039
- return y.active = !1, y.on.error.fire(k), y.parent ? y.parent._reject(k) : S && y.idbtrans && y.idbtrans.abort(), ve(k);
4039
+ return y.active = !1, y.on.error.fire(k), y.parent ? y.parent._reject(k) : S && y.idbtrans && y.idbtrans.abort(), pe(k);
4040
4040
  });
4041
4041
  })), this.Version = (c = this, Ft(Wi.prototype, function(f) {
4042
4042
  this.db = c, this._cfg = { version: f, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
@@ -4064,52 +4064,52 @@ function gc() {
4064
4064
  var g = new Proxy(this, { get: function(f, _, v) {
4065
4065
  if (_ === "_vip") return !0;
4066
4066
  if (_ === "table") return function(b) {
4067
- return Pn(n.table(b), g);
4067
+ return An(n.table(b), g);
4068
4068
  };
4069
4069
  var m = Reflect.get(f, _, v);
4070
- return m instanceof oa ? Pn(m, g) : _ === "tables" ? m.map(function(b) {
4071
- return Pn(b, g);
4070
+ return m instanceof oa ? An(m, g) : _ === "tables" ? m.map(function(b) {
4071
+ return An(b, g);
4072
4072
  }) : _ === "_createTransaction" ? function() {
4073
- return Pn(m.apply(this, arguments), g);
4073
+ return An(m.apply(this, arguments), g);
4074
4074
  } : m;
4075
4075
  } });
4076
4076
  this.vip = g, r.forEach(function(f) {
4077
4077
  return f(n);
4078
4078
  });
4079
4079
  }
4080
- var An, Ae = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", ao = (jr.prototype.subscribe = function(e, t, n) {
4080
+ var Rn, Pe = typeof Symbol < "u" && "observable" in Symbol ? Symbol.observable : "@@observable", ao = (jr.prototype.subscribe = function(e, t, n) {
4081
4081
  return this._subscribe(e && typeof e != "function" ? e : { next: e, error: t, complete: n });
4082
- }, jr.prototype[Ae] = function() {
4082
+ }, jr.prototype[Pe] = function() {
4083
4083
  return this;
4084
4084
  }, jr);
4085
4085
  function jr(e) {
4086
4086
  this._subscribe = e;
4087
4087
  }
4088
4088
  try {
4089
- An = { indexedDB: x.indexedDB || x.mozIndexedDB || x.webkitIndexedDB || x.msIndexedDB, IDBKeyRange: x.IDBKeyRange || x.webkitIDBKeyRange };
4089
+ Rn = { indexedDB: x.indexedDB || x.mozIndexedDB || x.webkitIndexedDB || x.msIndexedDB, IDBKeyRange: x.IDBKeyRange || x.webkitIDBKeyRange };
4090
4090
  } catch {
4091
- An = { indexedDB: null, IDBKeyRange: null };
4091
+ Rn = { indexedDB: null, IDBKeyRange: null };
4092
4092
  }
4093
4093
  function ja(e) {
4094
4094
  var t, n = !1, r = new ao(function(i) {
4095
4095
  var o = X(e), u, c = !1, d = {}, p = {}, g = { get closed() {
4096
4096
  return c;
4097
4097
  }, unsubscribe: function() {
4098
- c || (c = !0, u && u.abort(), f && Je.storagemutated.unsubscribe(v));
4098
+ c || (c = !0, u && u.abort(), f && tt.storagemutated.unsubscribe(v));
4099
4099
  } };
4100
4100
  i.start && i.start(g);
4101
4101
  var f = !1, _ = function() {
4102
4102
  return tr(m);
4103
4103
  }, v = function(b) {
4104
- On(d, b), gr(p, d) && _();
4104
+ Cn(d, b), gr(p, d) && _();
4105
4105
  }, m = function() {
4106
4106
  var b, y, k;
4107
- !c && An.indexedDB && (d = {}, b = {}, u && u.abort(), u = new AbortController(), k = function(S) {
4107
+ !c && Rn.indexedDB && (d = {}, b = {}, u && u.abort(), u = new AbortController(), k = function(S) {
4108
4108
  var O = St();
4109
4109
  try {
4110
4110
  o && Ot();
4111
- var C = We(e, S);
4112
- return C = o ? C.finally(Xe) : C;
4111
+ var C = Qe(e, S);
4112
+ return C = o ? C.finally(Ze) : C;
4113
4113
  } finally {
4114
4114
  O && jt();
4115
4115
  }
@@ -4117,7 +4117,7 @@ function gc() {
4117
4117
  n = !0, t = S, c || y.signal.aborted || (d = {}, function(O) {
4118
4118
  for (var C in O) if (F(O, C)) return;
4119
4119
  return 1;
4120
- }(p = b) || f || (Je(Vt, v), f = !0), tr(function() {
4120
+ }(p = b) || f || (tt(Vt, v), f = !0), tr(function() {
4121
4121
  return !c && i.next && i.next(S);
4122
4122
  }));
4123
4123
  }, function(S) {
@@ -4134,34 +4134,34 @@ function gc() {
4134
4134
  return t;
4135
4135
  }, r;
4136
4136
  }
4137
- var dt = Fe;
4137
+ var pt = Ue;
4138
4138
  function Or(e) {
4139
- var t = et;
4139
+ var t = nt;
4140
4140
  try {
4141
- et = !0, Je.storagemutated.fire(e), wr(e, !0);
4141
+ nt = !0, tt.storagemutated.fire(e), wr(e, !0);
4142
4142
  } finally {
4143
- et = t;
4143
+ nt = t;
4144
4144
  }
4145
4145
  }
4146
- U(dt, h(h({}, Et), { delete: function(e) {
4147
- return new dt(e, { addons: [] }).delete();
4146
+ U(pt, h(h({}, Et), { delete: function(e) {
4147
+ return new pt(e, { addons: [] }).delete();
4148
4148
  }, exists: function(e) {
4149
- return new dt(e, { addons: [] }).open().then(function(t) {
4149
+ return new pt(e, { addons: [] }).open().then(function(t) {
4150
4150
  return t.close(), !0;
4151
4151
  }).catch("NoSuchDatabaseError", function() {
4152
4152
  return !1;
4153
4153
  });
4154
4154
  }, getDatabaseNames: function(e) {
4155
4155
  try {
4156
- return t = dt.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (pr(n) ? Promise.resolve(n.databases()).then(function(r) {
4156
+ return t = pt.dependencies, n = t.indexedDB, t = t.IDBKeyRange, (pr(n) ? Promise.resolve(n.databases()).then(function(r) {
4157
4157
  return r.map(function(i) {
4158
4158
  return i.name;
4159
4159
  }).filter(function(i) {
4160
- return i !== pn;
4160
+ return i !== yn;
4161
4161
  });
4162
4162
  }) : vr(n, t).toCollection().primaryKeys()).then(e);
4163
4163
  } catch {
4164
- return ve(new $.MissingAPI());
4164
+ return pe(new $.MissingAPI());
4165
4165
  }
4166
4166
  var t, n;
4167
4167
  }, defineClass: function() {
@@ -4169,14 +4169,14 @@ function gc() {
4169
4169
  T(this, e);
4170
4170
  };
4171
4171
  }, ignoreTransaction: function(e) {
4172
- return V.trans ? ct(V.transless, e) : e();
4172
+ return V.trans ? ft(V.transless, e) : e();
4173
4173
  }, vip: yr, async: function(e) {
4174
4174
  return function() {
4175
4175
  try {
4176
4176
  var t = xr(e.apply(this, arguments));
4177
4177
  return t && typeof t.then == "function" ? t : q.resolve(t);
4178
4178
  } catch (n) {
4179
- return ve(n);
4179
+ return pe(n);
4180
4180
  }
4181
4181
  };
4182
4182
  }, spawn: function(e, t, n) {
@@ -4184,57 +4184,57 @@ function gc() {
4184
4184
  var r = xr(e.apply(n, t || []));
4185
4185
  return r && typeof r.then == "function" ? r : q.resolve(r);
4186
4186
  } catch (i) {
4187
- return ve(i);
4187
+ return pe(i);
4188
4188
  }
4189
4189
  }, currentTransaction: { get: function() {
4190
4190
  return V.trans || null;
4191
4191
  } }, waitFor: function(e, t) {
4192
- return t = q.resolve(typeof e == "function" ? dt.ignoreTransaction(e) : e).timeout(t || 6e4), V.trans ? V.trans.waitFor(t) : t;
4192
+ return t = q.resolve(typeof e == "function" ? pt.ignoreTransaction(e) : e).timeout(t || 6e4), V.trans ? V.trans.waitFor(t) : t;
4193
4193
  }, Promise: q, debug: { get: function() {
4194
- return Ne;
4194
+ return ze;
4195
4195
  }, set: function(e) {
4196
4196
  Wr(e);
4197
- } }, derive: G, extend: T, props: U, override: Pe, Events: Mt, on: Je, liveQuery: ja, extendObservabilitySet: On, getByKeyPath: de, setByKeyPath: oe, delByKeyPath: function(e, t) {
4198
- typeof t == "string" ? oe(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
4199
- oe(e, n, void 0);
4197
+ } }, derive: G, extend: T, props: U, override: Ae, Events: Mt, on: tt, liveQuery: ja, extendObservabilitySet: Cn, getByKeyPath: he, setByKeyPath: de, delByKeyPath: function(e, t) {
4198
+ typeof t == "string" ? de(e, t, void 0) : "length" in t && [].map.call(t, function(n) {
4199
+ de(e, n, void 0);
4200
4200
  });
4201
- }, shallowClone: qe, deepClone: Be, getObjectDiff: kr, cmp: ee, asap: ae, minKey: -1 / 0, addons: [], connections: Ct, errnames: rt, dependencies: An, cache: ht, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
4201
+ }, shallowClone: Ge, deepClone: Me, getObjectDiff: kr, cmp: ee, asap: re, minKey: -1 / 0, addons: [], connections: Ct, errnames: it, dependencies: Rn, cache: vt, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
4202
4202
  return parseInt(e);
4203
4203
  }).reduce(function(e, t, n) {
4204
4204
  return e + t / Math.pow(10, 2 * n);
4205
- }) })), dt.maxKey = Ht(dt.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (Je(Vt, function(e) {
4206
- et || (e = new CustomEvent(sr, { detail: e }), et = !0, dispatchEvent(e), et = !1);
4205
+ }) })), pt.maxKey = Ht(pt.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (tt(Vt, function(e) {
4206
+ nt || (e = new CustomEvent(sr, { detail: e }), nt = !0, dispatchEvent(e), nt = !1);
4207
4207
  }), addEventListener(sr, function(e) {
4208
- e = e.detail, et || Or(e);
4208
+ e = e.detail, nt || Or(e);
4209
4209
  }));
4210
- var At, et = !1, Oa = function() {
4210
+ var At, nt = !1, Oa = function() {
4211
4211
  };
4212
4212
  return typeof BroadcastChannel < "u" && ((Oa = function() {
4213
4213
  (At = new BroadcastChannel(sr)).onmessage = function(e) {
4214
4214
  return e.data && Or(e.data);
4215
4215
  };
4216
- })(), typeof At.unref == "function" && At.unref(), Je(Vt, function(e) {
4217
- et || At.postMessage(e);
4216
+ })(), typeof At.unref == "function" && At.unref(), tt(Vt, function(e) {
4217
+ nt || At.postMessage(e);
4218
4218
  })), typeof addEventListener < "u" && (addEventListener("pagehide", function(e) {
4219
- if (!Fe.disableBfCache && e.persisted) {
4220
- Ne && console.debug("Dexie: handling persisted pagehide"), At != null && At.close();
4219
+ if (!Ue.disableBfCache && e.persisted) {
4220
+ ze && console.debug("Dexie: handling persisted pagehide"), At != null && At.close();
4221
4221
  for (var t = 0, n = Ct; t < n.length; t++) n[t].close({ disableAutoOpen: !1 });
4222
4222
  }
4223
4223
  }), addEventListener("pageshow", function(e) {
4224
- !Fe.disableBfCache && e.persisted && (Ne && console.debug("Dexie: handling persisted pageshow"), Oa(), Or({ all: new we(-1 / 0, [[]]) }));
4224
+ !Ue.disableBfCache && e.persisted && (ze && console.debug("Dexie: handling persisted pageshow"), Oa(), Or({ all: new xe(-1 / 0, [[]]) }));
4225
4225
  })), q.rejectionMapper = function(e, t) {
4226
- return !e || e instanceof he || e instanceof TypeError || e instanceof SyntaxError || !e.name || !kt[e.name] ? e : (t = new kt[e.name](t || e.message, e), "stack" in e && Y(t, "stack", { get: function() {
4226
+ return !e || e instanceof ve || e instanceof TypeError || e instanceof SyntaxError || !e.name || !kt[e.name] ? e : (t = new kt[e.name](t || e.message, e), "stack" in e && Y(t, "stack", { get: function() {
4227
4227
  return this.inner.stack;
4228
4228
  } }), t);
4229
- }, Wr(Ne), h(Fe, Object.freeze({ __proto__: null, Dexie: Fe, liveQuery: ja, Entity: ra, cmp: ee, PropModification: $t, replacePrefix: function(e, t) {
4229
+ }, Wr(ze), h(Ue, Object.freeze({ __proto__: null, Dexie: Ue, liveQuery: ja, Entity: ra, cmp: ee, PropModification: $t, replacePrefix: function(e, t) {
4230
4230
  return new $t({ replacePrefix: [e, t] });
4231
4231
  }, add: function(e) {
4232
4232
  return new $t({ add: e });
4233
4233
  }, remove: function(e) {
4234
4234
  return new $t({ remove: e });
4235
- }, default: Fe, RangeSet: we, mergeRanges: Wt, rangesOverlap: ya }), { default: Fe }), Fe;
4235
+ }, default: Ue, RangeSet: xe, mergeRanges: Wt, rangesOverlap: ya }), { default: Ue }), Ue;
4236
4236
  });
4237
- }(qn)), qn.exports;
4237
+ }(Bn)), Bn.exports;
4238
4238
  }
4239
4239
  var bc = gc();
4240
4240
  const $r = /* @__PURE__ */ oi(bc), ri = Symbol.for("Dexie"), $n = globalThis[ri] || (globalThis[ri] = $r);
@@ -4661,12 +4661,12 @@ var _c = "阿啊呵腌嗄吖锕", wc = "额阿俄恶鹅遏鄂厄饿峨扼娥鳄
4661
4661
  const Yy = 5;
4662
4662
  var Wy = class {
4663
4663
  constructor() {
4664
- _e(this, "currentInput", "");
4665
- _e(this, "candidates", []);
4666
- _e(this, "db");
4667
- _e(this, "pinyinDict", Gy);
4668
- _e(this, "pinyinCharTable");
4669
- _e(this, "initializationPromise");
4664
+ we(this, "currentInput", "");
4665
+ we(this, "candidates", []);
4666
+ we(this, "db");
4667
+ we(this, "pinyinDict", Gy);
4668
+ we(this, "pinyinCharTable");
4669
+ we(this, "initializationPromise");
4670
4670
  this.db = new $n("PinyinCharDB"), this.db.version(1).stores({ pinyinCharEntries: "++id, &[pinyin+char], pinyin, char, weight" }), this.pinyinCharTable = this.db.table("pinyinCharEntries"), this.initializationPromise = this.initializeDatabase();
4671
4671
  }
4672
4672
  async initializeDatabase() {
@@ -4737,26 +4737,26 @@ var Wy = class {
4737
4737
  }
4738
4738
  }, Xy = class {
4739
4739
  constructor(a, s = {}) {
4740
- _e(this, "canvas");
4741
- _e(this, "ctx");
4742
- _e(this, "lastX", 0);
4743
- _e(this, "lastY", 0);
4744
- _e(this, "strokeData", []);
4745
- _e(this, "clearTimerId", null);
4746
- _e(this, "isDrawing", !1);
4747
- _e(this, "options");
4748
- _e(this, "handleStart", (a) => {
4740
+ we(this, "canvas");
4741
+ we(this, "ctx");
4742
+ we(this, "lastX", 0);
4743
+ we(this, "lastY", 0);
4744
+ we(this, "strokeData", []);
4745
+ we(this, "clearTimerId", null);
4746
+ we(this, "isDrawing", !1);
4747
+ we(this, "options");
4748
+ we(this, "handleStart", (a) => {
4749
4749
  a.preventDefault(), this.isDrawing = !0;
4750
4750
  const { offsetX: s, offsetY: l } = this.getEventCoordinates(a);
4751
4751
  this.startDrawing(s, l), this.resetClearTimer();
4752
4752
  });
4753
- _e(this, "handleMove", (a) => {
4753
+ we(this, "handleMove", (a) => {
4754
4754
  if (!this.isDrawing) return;
4755
4755
  a.preventDefault();
4756
4756
  const { offsetX: s, offsetY: l } = this.getEventCoordinates(a);
4757
4757
  this.draw(s, l), this.resetClearTimer();
4758
4758
  });
4759
- _e(this, "handleEnd", (a) => {
4759
+ we(this, "handleEnd", (a) => {
4760
4760
  this.isDrawing && (a.preventDefault(), this.isDrawing = !1, this.endStroke(), this.startClearTimer(), this.options.onDrawEnd && this.options.onDrawEnd());
4761
4761
  });
4762
4762
  this.canvas = a, this.options = {
@@ -4948,7 +4948,7 @@ function Ur() {
4948
4948
  return ji;
4949
4949
  }
4950
4950
  function im(a = !1) {
4951
- const [s, l] = je(!1), [h, j] = je(0);
4951
+ const [s, l] = Oe(!1), [h, j] = Oe(0);
4952
4952
  return Dt(() => {
4953
4953
  async function x() {
4954
4954
  const E = Ur();
@@ -4996,33 +4996,33 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
4996
4996
  `candidate-${h}`
4997
4997
  )) });
4998
4998
  }, om = ({ recognizerInitialized: a, recognizerProgress: s, onKey: l, onExit: h }) => {
4999
- const j = $e(null), x = $e(null), w = $e(null), E = $e(!1), [T, M] = je([]), H = pt(async () => {
4999
+ const j = Be(null), x = Be(null), w = Be(null), E = Be(!1), [T, M] = Oe([]), H = mt(async () => {
5000
5000
  if (!w.current || w.current.getStrokeData().length === 0 || E.current)
5001
5001
  return;
5002
5002
  const ne = Ur();
5003
5003
  if (ne) {
5004
5004
  E.current = !0;
5005
5005
  try {
5006
- const re = [...w.current.getStrokeData()], le = await ne.recognize(re);
5007
- M(le);
5008
- } catch (re) {
5009
- console.error("识别笔迹失败:", re);
5006
+ const ae = [...w.current.getStrokeData()], oe = await ne.recognize(ae);
5007
+ M(oe);
5008
+ } catch (ae) {
5009
+ console.error("识别笔迹失败:", ae);
5010
5010
  } finally {
5011
5011
  E.current = !1;
5012
5012
  }
5013
5013
  } else
5014
5014
  console.warn("手写识别服务不可用");
5015
- }, []), F = pt(() => {
5015
+ }, []), F = mt(() => {
5016
5016
  j.current && (w.current && w.current.destroy(), w.current = new Xy(j.current, {
5017
5017
  onDrawEnd: H
5018
5018
  }));
5019
- }, [H]), [U, L] = Ei(x);
5020
- Bn(() => {
5021
- if (L && a)
5019
+ }, [H]), [U, B] = Ei(x);
5020
+ en(() => {
5021
+ if (B && a)
5022
5022
  return F(), () => {
5023
5023
  w.current && w.current.destroy();
5024
5024
  };
5025
- }, [L, a, F]);
5025
+ }, [B, a, F]);
5026
5026
  function Y() {
5027
5027
  w.current && w.current.clearCanvas();
5028
5028
  }
@@ -5031,7 +5031,7 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5031
5031
  }
5032
5032
  return /* @__PURE__ */ A.jsxs("div", { className: "handwriting-input", children: [
5033
5033
  /* @__PURE__ */ A.jsx(Oi, { candidates: T, onSelect: G }),
5034
- /* @__PURE__ */ A.jsx("div", { ref: x, className: "handwriting-content", children: L ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
5034
+ /* @__PURE__ */ A.jsx("div", { ref: x, className: "handwriting-content", children: B ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
5035
5035
  /* @__PURE__ */ A.jsxs("div", { className: "handwriting-buttons", children: [
5036
5036
  /* @__PURE__ */ A.jsx("button", { className: "handwriting-btn handwriting-btn--function", onClick: () => l({ key: "。" }), children: "。" }),
5037
5037
  /* @__PURE__ */ A.jsx("button", { className: "handwriting-btn handwriting-btn--function", onClick: () => l({ key: "?" }), children: "?" }),
@@ -5043,14 +5043,14 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5043
5043
  {
5044
5044
  ref: j,
5045
5045
  className: "handwriting-canvas",
5046
- width: L,
5047
- height: L
5046
+ width: B,
5047
+ height: B
5048
5048
  }
5049
5049
  ) : /* @__PURE__ */ A.jsxs(
5050
5050
  "div",
5051
5051
  {
5052
5052
  className: "handwriting-loading",
5053
- style: { width: `${L}px`, height: `${L}px` },
5053
+ style: { width: `${B}px`, height: `${B}px` },
5054
5054
  children: [
5055
5055
  /* @__PURE__ */ A.jsx("div", { className: "loading-text", children: "正在加载手写识别..." }),
5056
5056
  /* @__PURE__ */ A.jsx("div", { className: "progress-bar", children: /* @__PURE__ */ A.jsx("div", { className: "progress-fill", style: { width: `${s * 100}%` } }) }),
@@ -5081,14 +5081,14 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5081
5081
  /* @__PURE__ */ A.jsx("div", { className: "zhk-selection__func", children: /* @__PURE__ */ A.jsx("button", { className: "zhk-selection__func-btn", onClick: j, children: "返回" }) })
5082
5082
  ] });
5083
5083
  }, lm = ({ currentPinyin: a, onInput: s, setCurrentPinyin: l }) => {
5084
- const h = Ue(() => new Wy(), []), [j, x] = je([]), [w, E] = je(!1);
5084
+ const h = Le(() => new Wy(), []), [j, x] = Oe([]), [w, E] = Oe(!1);
5085
5085
  Dt(() => {
5086
5086
  async function H() {
5087
5087
  x(await h.processInput(a));
5088
5088
  }
5089
5089
  H();
5090
5090
  }, [a, h]);
5091
- const T = Ue(() => j.slice(0, 30), [j]);
5091
+ const T = Le(() => j.slice(0, 30), [j]);
5092
5092
  function M(H) {
5093
5093
  h.selectCandidate(H), s(H), l(""), E(!1);
5094
5094
  }
@@ -5123,9 +5123,9 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5123
5123
  )
5124
5124
  ] });
5125
5125
  }, fm = ({ enableHandwriting: a, mode: s, onKey: l, setMode: h }) => {
5126
- const [j, x] = je(!1), [w, E] = je(""), T = Ue(() => s === "zh", [s]), M = Ue(() => T ? !0 : j, [T, j]);
5127
- function H(ae, de = !1) {
5128
- l({ key: ae, isControl: de });
5126
+ const [j, x] = Oe(!1), [w, E] = Oe(""), T = Le(() => s === "zh", [s]), M = Le(() => T ? !0 : j, [T, j]);
5127
+ function H(re, he = !1) {
5128
+ l({ key: re, isControl: he });
5129
5129
  }
5130
5130
  function F() {
5131
5131
  T ? h("hand") : x(!j);
@@ -5133,7 +5133,7 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5133
5133
  function U() {
5134
5134
  h("num");
5135
5135
  }
5136
- function L() {
5136
+ function B() {
5137
5137
  h("symbol");
5138
5138
  }
5139
5139
  const Y = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"], G = [
@@ -5148,56 +5148,56 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5148
5148
  }
5149
5149
  H("delete", !0);
5150
5150
  }
5151
- function re(ae) {
5151
+ function ae(re) {
5152
5152
  if (s === "zh") {
5153
- E(w + ae);
5153
+ E(w + re);
5154
5154
  return;
5155
5155
  }
5156
- const de = j ? ae.toUpperCase() : ae;
5157
- H(de);
5156
+ const he = j ? re.toUpperCase() : re;
5157
+ H(he);
5158
5158
  }
5159
- function le() {
5159
+ function oe() {
5160
5160
  h(s === "zh" ? "en" : "zh");
5161
5161
  }
5162
- const Pe = Ue(() => a ? "手写" : "-", [a]), ye = Ue(() => !a, [a]);
5162
+ const Ae = Le(() => a ? "手写" : "-", [a]), me = Le(() => !a, [a]);
5163
5163
  return /* @__PURE__ */ A.jsxs("div", { className: "zhk-base", children: [
5164
5164
  /* @__PURE__ */ A.jsx("div", { className: "zhk-base__row", children: s === "zh" ? /* @__PURE__ */ A.jsx(
5165
5165
  lm,
5166
5166
  {
5167
5167
  currentPinyin: w,
5168
- onInput: (ae) => H(ae, !1),
5168
+ onInput: (re) => H(re, !1),
5169
5169
  onKey: l,
5170
5170
  setCurrentPinyin: E
5171
5171
  }
5172
- ) : Y.map((ae) => /* @__PURE__ */ A.jsx(
5172
+ ) : Y.map((re) => /* @__PURE__ */ A.jsx(
5173
5173
  "button",
5174
5174
  {
5175
5175
  className: "zhk-base__key zhk-base__key--letter",
5176
- onClick: () => re(ae),
5177
- children: ae
5176
+ onClick: () => ae(re),
5177
+ children: re
5178
5178
  },
5179
- `number-${ae}`
5179
+ `number-${re}`
5180
5180
  )) }),
5181
- G.map((ae, de) => /* @__PURE__ */ A.jsxs("div", { className: "zhk-base__row", children: [
5182
- de === 2 && /* @__PURE__ */ A.jsx(
5181
+ G.map((re, he) => /* @__PURE__ */ A.jsxs("div", { className: "zhk-base__row", children: [
5182
+ he === 2 && /* @__PURE__ */ A.jsx(
5183
5183
  "button",
5184
5184
  {
5185
- className: `zhk-base__key zhk-base__key--function zhk-base__key--shift ${!T && j ? "zhk-base__key--active" : ""} ${T && ye ? "zhk-base__key--disabled" : ""}`,
5186
- disabled: T && ye,
5185
+ className: `zhk-base__key zhk-base__key--function zhk-base__key--shift ${!T && j ? "zhk-base__key--active" : ""} ${T && me ? "zhk-base__key--disabled" : ""}`,
5186
+ disabled: T && me,
5187
5187
  onClick: F,
5188
- children: T ? Pe : /* @__PURE__ */ A.jsx("img", { src: sm, className: "zhk-base__key-icon", alt: "Shift" })
5188
+ children: T ? Ae : /* @__PURE__ */ A.jsx("img", { src: sm, className: "zhk-base__key-icon", alt: "Shift" })
5189
5189
  }
5190
5190
  ),
5191
- ae.map((oe) => /* @__PURE__ */ A.jsx(
5191
+ re.map((de) => /* @__PURE__ */ A.jsx(
5192
5192
  "button",
5193
5193
  {
5194
5194
  className: "zhk-base__key zhk-base__key--letter",
5195
- onClick: () => re(oe),
5196
- children: M ? oe.toUpperCase() : oe
5195
+ onClick: () => ae(de),
5196
+ children: M ? de.toUpperCase() : de
5197
5197
  },
5198
- oe
5198
+ de
5199
5199
  )),
5200
- de === 2 && /* @__PURE__ */ A.jsx(
5200
+ he === 2 && /* @__PURE__ */ A.jsx(
5201
5201
  "button",
5202
5202
  {
5203
5203
  className: "zhk-base__key zhk-base__key--function zhk-base__key--delete",
@@ -5205,14 +5205,14 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5205
5205
  children: /* @__PURE__ */ A.jsx("img", { src: Gr, className: "zhk-base__key-icon", alt: "Delete" })
5206
5206
  }
5207
5207
  )
5208
- ] }, `row-${ae.join("")}`)),
5208
+ ] }, `row-${re.join("")}`)),
5209
5209
  /* @__PURE__ */ A.jsxs("div", { className: "zhk-base__row", children: [
5210
- /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick: L, children: "符" }),
5210
+ /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick: B, children: "符" }),
5211
5211
  /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick: U, children: "123" }),
5212
5212
  /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key", onClick: () => H(","), children: "," }),
5213
5213
  /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--space", onClick: () => H(" "), children: /* @__PURE__ */ A.jsx("img", { src: Ci, className: "zhk-base__key-icon", alt: "Space" }) }),
5214
5214
  /* @__PURE__ */ A.jsx("button", { className: "zhk-base__key", onClick: () => H("。"), children: "。" }),
5215
- /* @__PURE__ */ A.jsxs("button", { className: "zhk-base__key zhk-base__key--function", onClick: le, children: [
5215
+ /* @__PURE__ */ A.jsxs("button", { className: "zhk-base__key zhk-base__key--function", onClick: oe, children: [
5216
5216
  /* @__PURE__ */ A.jsx("span", { className: "zhk-base__toggle-main", children: s === "zh" ? "中" : "英" }),
5217
5217
  /* @__PURE__ */ A.jsxs("span", { className: "zhk-base__toggle-sub", children: [
5218
5218
  "/",
@@ -5264,7 +5264,7 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5264
5264
  )) })
5265
5265
  ] }) });
5266
5266
  }, dm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10A2,2%200%200,1%206,8H15V6A3,3%200%200,0%2012,3A3,3%200%200,0%209,6H7A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,17A2,2%200%200,1%2010,15A2,2%200%200,1%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17Z'%20/%3e%3c/svg%3e", vm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12,17C10.89,17%2010,16.1%2010,15C10,13.89%2010.89,13%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10C4,8.89%204.89,8%206,8H7V6A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,3A3,3%200%200,0%209,6V8H15V6A3,3%200%200,0%2012,3Z'%20/%3e%3c/svg%3e", pm = ({ onKey: a, onExit: s }) => {
5267
- const l = "!@#$%^&*(){}[]<>/\\|:;\"',.,?+-=_~`€£¥₹©®™°", h = "!@#¥%…&*(){}[]<>/\|:;"',。?+-=_~·€£¥₹©®™°", [j, x] = je("en"), w = Ue(() => j === "zh" ? h : l, [j]), [E, T] = je(!1);
5267
+ const l = "!@#$%^&*(){}[]<>/\\|:;\"',.?+-=_~`€£¥₹©®™°", h = "!@#¥%…&*(){}[]<>/\|:;"',。?+-=_~·€£¥₹©®™°", [j, x] = Oe("en"), w = Le(() => j === "zh" ? h : l, [j]), [E, T] = Oe(!1);
5268
5268
  function M(U) {
5269
5269
  a({ key: U }), E || s();
5270
5270
  }
@@ -5333,44 +5333,55 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5333
5333
  className: x,
5334
5334
  style: w
5335
5335
  }) => {
5336
- const [E, T] = je(a), M = $e(a), [H, F] = je(null), U = $e(null), L = pc(), [Y, G] = Ei(U), { recognizerInitialized: ne, recognizerProgress: re } = im(s);
5336
+ const [E, T] = Oe(a), M = Be(a), [H, F] = Oe(null), U = Be(null), B = pc(), [Y, G] = Ei(U), { recognizerInitialized: ne, recognizerProgress: ae } = im(s);
5337
5337
  Dt(() => {
5338
- M.current = E;
5338
+ (E === "en" || E === "zh") && (M.current = E);
5339
5339
  }, [E]);
5340
- const [le, Pe] = je(!1), ye = pt(() => {
5341
- if (G) {
5342
- const Oe = Qy(
5343
- L,
5344
- U.current,
5345
- l
5346
- );
5347
- F(Oe);
5340
+ const [oe, Ae] = Oe(!1), me = Be(null), re = mt(() => {
5341
+ if (!G)
5342
+ return;
5343
+ const le = Qy(
5344
+ B,
5345
+ U.current,
5346
+ l
5347
+ );
5348
+ F(le);
5349
+ }, [B, l, G]), he = Le(() => l === "static" || Jt(B), [B, l]);
5350
+ en(() => {
5351
+ const le = me.current !== B;
5352
+ he && G && le && (me.current = B, re());
5353
+ }, [he, B, re, G]), en(() => {
5354
+ if (G && !oe) {
5355
+ re();
5356
+ const le = setTimeout(() => {
5357
+ Ae(!0);
5358
+ }, 0);
5359
+ return () => clearTimeout(le);
5348
5360
  }
5349
- setTimeout(() => {
5350
- Pe(!0);
5351
- }, 0);
5352
- }, [L, l, G]), ae = Ue(() => l === "static" || Jt(L), [L, l]);
5353
- Bn(() => {
5354
- ae && (Pe(!1), ye());
5355
- }, [ae, ye]), Bn(() => {
5356
- if (L && Jt(L)) {
5357
- const Oe = L.dataset.inputmode;
5358
- T((bt) => Oe || bt);
5361
+ }, [G, oe, re]), en(() => {
5362
+ if (B && Jt(B)) {
5363
+ const le = B.dataset.inputmode;
5364
+ T((De) => le || De);
5359
5365
  }
5360
- }, [L]);
5361
- const de = Ue(() => h === !1 ? !1 : !Jt(L), [h, L]);
5362
- Fn("scroll", ye, window, { passive: !0 }), Fn("resize", ye, window, { passive: !0 });
5363
- const oe = pt((Oe) => {
5364
- if (Oe.isControl)
5365
- switch (Oe.key) {
5366
+ }, [B]);
5367
+ const de = Le(() => h === !1 ? !1 : !Jt(B), [h, B]), Ge = Le(() => {
5368
+ let le;
5369
+ return () => {
5370
+ clearTimeout(le), le = setTimeout(re, 100);
5371
+ };
5372
+ }, [re]);
5373
+ Fn("scroll", Ge, window, { passive: !0 }), Fn("resize", Ge, window, { passive: !0 });
5374
+ const Ye = mt((le) => {
5375
+ if (le.isControl)
5376
+ switch (le.key) {
5366
5377
  case "delete":
5367
- Jt(L) && tm(L);
5378
+ Jt(B) && tm(B);
5368
5379
  break;
5369
5380
  }
5370
5381
  else
5371
- L && Jt(L) && em(L, Oe.key);
5372
- j && j(Oe);
5373
- }, [j, L]), qe = pt(() => {
5382
+ B && Jt(B) && em(B, le.key);
5383
+ j && j(le);
5384
+ }, [j, B]), We = mt(() => {
5374
5385
  T(M.current);
5375
5386
  }, []);
5376
5387
  return /* @__PURE__ */ A.jsx(
@@ -5386,29 +5397,29 @@ const Gr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
5386
5397
  "--keyboard-height": `${G}px`,
5387
5398
  ...H,
5388
5399
  ...w,
5389
- display: ae ? void 0 : "none",
5390
- opacity: le ? 1 : 0
5400
+ display: he ? void 0 : "none",
5401
+ opacity: oe ? 1 : 0
5391
5402
  },
5392
- onMouseDown: (Oe) => Oe.preventDefault(),
5393
- children: de || !ae || !G ? /* @__PURE__ */ A.jsx("div", { className: ii("zhk__disabled-overlay"), children: /* @__PURE__ */ A.jsx("span", { children: "请选择输入框以启用键盘" }) }) : /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
5403
+ onMouseDown: (le) => le.preventDefault(),
5404
+ children: de || !he || !G ? /* @__PURE__ */ A.jsx("div", { className: ii("zhk__disabled-overlay"), children: /* @__PURE__ */ A.jsx("span", { children: "请选择输入框以启用键盘" }) }) : /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
5394
5405
  E === "hand" && /* @__PURE__ */ A.jsx(
5395
5406
  om,
5396
5407
  {
5397
5408
  recognizerInitialized: ne,
5398
- recognizerProgress: re,
5399
- onKey: oe,
5400
- onExit: qe
5409
+ recognizerProgress: ae,
5410
+ onKey: Ye,
5411
+ onExit: We
5401
5412
  }
5402
5413
  ),
5403
- E === "num" && /* @__PURE__ */ A.jsx(hm, { onKey: oe, onExit: qe }),
5404
- E === "symbol" && /* @__PURE__ */ A.jsx(pm, { onKey: oe, onExit: qe }),
5414
+ E === "num" && /* @__PURE__ */ A.jsx(hm, { onKey: Ye, onExit: We }),
5415
+ E === "symbol" && /* @__PURE__ */ A.jsx(pm, { onKey: Ye, onExit: We }),
5405
5416
  (E === "en" || E === "zh") && /* @__PURE__ */ A.jsx(
5406
5417
  fm,
5407
5418
  {
5408
5419
  mode: E,
5409
5420
  setMode: T,
5410
5421
  enableHandwriting: s,
5411
- onKey: oe
5422
+ onKey: Ye
5412
5423
  }
5413
5424
  )
5414
5425
  ] })