barcode-detector 2.0.1 → 2.0.2

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.
package/dist/es/pure.js CHANGED
@@ -2,11 +2,11 @@ var ke = (c, p, i) => {
2
2
  if (!p.has(c))
3
3
  throw TypeError("Cannot " + i);
4
4
  };
5
- var Be = (c, p, i) => (ke(c, p, "read from private field"), i ? i.call(c) : p.get(c)), Ue = (c, p, i) => {
5
+ var Be = (c, p, i) => (ke(c, p, "read from private field"), i ? i.call(c) : p.get(c)), Ve = (c, p, i) => {
6
6
  if (p.has(c))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  p instanceof WeakSet ? p.add(c) : p.set(c, i);
9
- }, Ve = (c, p, i, g) => (ke(c, p, "write to private field"), g ? g.call(c, i) : p.set(c, i), i);
9
+ }, Ue = (c, p, i, g) => (ke(c, p, "write to private field"), g ? g.call(c, i) : p.set(c, i), i);
10
10
  const Le = [
11
11
  "aztec",
12
12
  "code_128",
@@ -34,7 +34,7 @@ function Ia(c) {
34
34
  width: c.width.baseVal.value,
35
35
  height: c.height.baseVal.value
36
36
  };
37
- if (Ze(c))
37
+ if (Qe(c))
38
38
  return {
39
39
  width: c.videoWidth,
40
40
  height: c.videoHeight
@@ -49,7 +49,7 @@ function Ia(c) {
49
49
  width: c.displayWidth,
50
50
  height: c.displayHeight
51
51
  };
52
- if (Qe(c))
52
+ if (Ze(c))
53
53
  return {
54
54
  width: c.width,
55
55
  height: c.height
@@ -77,14 +77,14 @@ function qe(c) {
77
77
  return !1;
78
78
  }
79
79
  }
80
- function Ze(c) {
80
+ function Qe(c) {
81
81
  try {
82
82
  return c instanceof HTMLVideoElement;
83
83
  } catch {
84
84
  return !1;
85
85
  }
86
86
  }
87
- function Qe(c) {
87
+ function Ze(c) {
88
88
  try {
89
89
  return c instanceof HTMLCanvasElement;
90
90
  } catch {
@@ -150,7 +150,7 @@ async function er(c) {
150
150
  );
151
151
  if (tr(c) && Ya(c))
152
152
  throw new DOMException("VideoFrame is closed.", "InvalidStateError");
153
- if (Ze(c) && (c.readyState === 0 || c.readyState === 1))
153
+ if (Qe(c) && (c.readyState === 0 || c.readyState === 1))
154
154
  throw new DOMException("Invalid element or state.", "InvalidStateError");
155
155
  if (Je(c) && Ga(c))
156
156
  throw new DOMException(
@@ -190,7 +190,7 @@ async function Ba(c) {
190
190
  }
191
191
  return await er(p);
192
192
  }
193
- function Ua(c) {
193
+ function Va(c) {
194
194
  const { width: p, height: i } = c;
195
195
  if (p === 0 || i === 0)
196
196
  return null;
@@ -201,7 +201,7 @@ function Ua(c) {
201
201
  throw new DOMException("Source would taint origin.", "SecurityError");
202
202
  }
203
203
  }
204
- async function Va(c) {
204
+ async function Ua(c) {
205
205
  if (Wa(c))
206
206
  return await Ba(c);
207
207
  if (Ha(c)) {
@@ -212,7 +212,7 @@ async function Va(c) {
212
212
  );
213
213
  return c;
214
214
  }
215
- return Qe(c) || Ke(c) ? Ua(c) : await er(c);
215
+ return Ze(c) || Ke(c) ? Va(c) : await er(c);
216
216
  }
217
217
  async function La(c) {
218
218
  try {
@@ -249,10 +249,10 @@ const Ye = (c) => {
249
249
  const j = p;
250
250
  p = (Y != null ? Y : typeof B != "object") ? B : Object.assign({}, p, B), i.forEach((N) => N(p, j));
251
251
  }
252
- }, w = () => p, E = { setState: g, getState: w, subscribe: (M) => (i.add(M), () => i.delete(M)), destroy: () => {
252
+ }, w = () => p, T = { setState: g, getState: w, subscribe: (M) => (i.add(M), () => i.delete(M)), destroy: () => {
253
253
  i.clear();
254
254
  } };
255
- return p = c(g, w, E), E;
255
+ return p = c(g, w, T), T;
256
256
  }, Xa = (c) => c ? Ye(c) : Ye, qa = {
257
257
  locateFile: (c, p) => {
258
258
  var i;
@@ -308,12 +308,12 @@ const Ne = [
308
308
  formats: [],
309
309
  maxSymbols: 255
310
310
  };
311
- async function Za(c, {
311
+ async function Qa(c, {
312
312
  tryHarder: p = nt.tryHarder,
313
313
  formats: i = nt.formats,
314
314
  maxSymbols: g = nt.maxSymbols
315
315
  } = nt, w) {
316
- const E = await rr(
316
+ const T = await rr(
317
317
  w,
318
318
  ft.getState().zxingModuleOverrides
319
319
  ), {
@@ -321,37 +321,37 @@ async function Za(c, {
321
321
  width: Y,
322
322
  height: B,
323
323
  data: { byteLength: j }
324
- } = c, N = E._malloc(j);
325
- E.HEAP8.set(M, N);
326
- const X = E.readBarcodesFromPixmap(
324
+ } = c, N = T._malloc(j);
325
+ T.HEAP8.set(M, N);
326
+ const X = T.readBarcodesFromPixmap(
327
327
  N,
328
328
  Y,
329
329
  B,
330
330
  p,
331
- Qa(i),
331
+ Za(i),
332
332
  g
333
333
  );
334
- E._free(N);
335
- const V = [];
336
- for (let U = 0; U < X.size(); ++U) {
337
- const q = X.get(U);
338
- V.push({
334
+ T._free(N);
335
+ const U = [];
336
+ for (let V = 0; V < X.size(); ++V) {
337
+ const q = X.get(V);
338
+ U.push({
339
339
  ...q,
340
340
  format: Ja(q.format)
341
341
  });
342
342
  }
343
- return V;
343
+ return U;
344
344
  }
345
- function Qa(c) {
345
+ function Za(c) {
346
346
  return c.join("|");
347
347
  }
348
348
  function Ja(c) {
349
349
  const p = Ge(c);
350
350
  let i = 0, g = Ne.length - 1;
351
351
  for (; i <= g; ) {
352
- const w = Math.floor((i + g) / 2), E = Ne[w], M = Ge(E);
352
+ const w = Math.floor((i + g) / 2), T = Ne[w], M = Ge(T);
353
353
  if (M === p)
354
- return E;
354
+ return T;
355
355
  M < p ? i = w + 1 : g = w - 1;
356
356
  }
357
357
  return "None";
@@ -366,7 +366,7 @@ var nr = (() => {
366
366
  i.ready = new Promise((t, e) => {
367
367
  g = t, w = e;
368
368
  });
369
- var E = Object.assign({}, i), M = "./this.program", Y = typeof window == "object", B = typeof importScripts == "function";
369
+ var T = Object.assign({}, i), M = "./this.program", Y = typeof window == "object", B = typeof importScripts == "function";
370
370
  typeof process == "object" && typeof process.versions == "object" && process.versions.node;
371
371
  var j = "";
372
372
  function N(t) {
@@ -377,14 +377,14 @@ var nr = (() => {
377
377
  var e = new XMLHttpRequest();
378
378
  return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
379
379
  })), i.print || console.log.bind(console);
380
- var V = i.printErr || console.error.bind(console);
381
- Object.assign(i, E), E = null, i.arguments && i.arguments, i.thisProgram && (M = i.thisProgram), i.quit && i.quit;
382
- var U;
383
- i.wasmBinary && (U = i.wasmBinary), i.noExitRuntime, typeof WebAssembly != "object" && _t("no native wasm support detected");
384
- var q, dt = !1, L, W, ht, Ct, H, A, qt, Zt;
385
- function Qt() {
380
+ var U = i.printErr || console.error.bind(console);
381
+ Object.assign(i, T), T = null, i.arguments && i.arguments, i.thisProgram && (M = i.thisProgram), i.quit && i.quit;
382
+ var V;
383
+ i.wasmBinary && (V = i.wasmBinary), i.noExitRuntime, typeof WebAssembly != "object" && _t("no native wasm support detected");
384
+ var q, dt = !1, L, W, ht, Ct, H, A, qt, Qt;
385
+ function Zt() {
386
386
  var t = q.buffer;
387
- i.HEAP8 = L = new Int8Array(t), i.HEAP16 = ht = new Int16Array(t), i.HEAPU8 = W = new Uint8Array(t), i.HEAPU16 = Ct = new Uint16Array(t), i.HEAP32 = H = new Int32Array(t), i.HEAPU32 = A = new Uint32Array(t), i.HEAPF32 = qt = new Float32Array(t), i.HEAPF64 = Zt = new Float64Array(t);
387
+ i.HEAP8 = L = new Int8Array(t), i.HEAP16 = ht = new Int16Array(t), i.HEAPU8 = W = new Uint8Array(t), i.HEAPU16 = Ct = new Uint16Array(t), i.HEAP32 = H = new Int32Array(t), i.HEAPU32 = A = new Uint32Array(t), i.HEAPF32 = qt = new Float32Array(t), i.HEAPF64 = Qt = new Float64Array(t);
388
388
  }
389
389
  var Jt, Kt = [], te = [], ee = [];
390
390
  function or() {
@@ -422,7 +422,7 @@ var nr = (() => {
422
422
  }
423
423
  }
424
424
  function _t(t) {
425
- i.onAbort && i.onAbort(t), t = "Aborted(" + t + ")", V(t), dt = !0, t += ". Build with -sASSERTIONS for more info.";
425
+ i.onAbort && i.onAbort(t), t = "Aborted(" + t + ")", U(t), dt = !0, t += ". Build with -sASSERTIONS for more info.";
426
426
  var e = new WebAssembly.RuntimeError(t);
427
427
  throw w(e), e;
428
428
  }
@@ -433,14 +433,14 @@ var nr = (() => {
433
433
  var ot;
434
434
  i.locateFile ? (ot = "zxing_reader.wasm", re(ot) || (ot = N(ot))) : ot = new URL("/reader/zxing_reader.wasm", self.location).href;
435
435
  function ne(t) {
436
- if (t == ot && U)
437
- return new Uint8Array(U);
436
+ if (t == ot && V)
437
+ return new Uint8Array(V);
438
438
  if (X)
439
439
  return X(t);
440
440
  throw "both async and sync fetching of the wasm failed";
441
441
  }
442
442
  function pr(t) {
443
- return !U && (Y || B) && typeof fetch == "function" ? fetch(t, { credentials: "same-origin" }).then((e) => {
443
+ return !V && (Y || B) && typeof fetch == "function" ? fetch(t, { credentials: "same-origin" }).then((e) => {
444
444
  if (!e.ok)
445
445
  throw "failed to load wasm binary file at '" + t + "'";
446
446
  return e.arrayBuffer();
@@ -448,14 +448,14 @@ var nr = (() => {
448
448
  }
449
449
  function ae(t, e, r) {
450
450
  return pr(t).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(r, (n) => {
451
- V(`failed to asynchronously prepare wasm: ${n}`), _t(n);
451
+ U(`failed to asynchronously prepare wasm: ${n}`), _t(n);
452
452
  });
453
453
  }
454
454
  function yr(t, e, r, n) {
455
455
  return !t && typeof WebAssembly.instantiateStreaming == "function" && !re(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((a) => {
456
456
  var o = WebAssembly.instantiateStreaming(a, r);
457
457
  return o.then(n, function(s) {
458
- return V(`wasm streaming compile failed: ${s}`), V("falling back to ArrayBuffer instantiation"), ae(e, r, n);
458
+ return U(`wasm streaming compile failed: ${s}`), U("falling back to ArrayBuffer instantiation"), ae(e, r, n);
459
459
  });
460
460
  }) : ae(e, r, n);
461
461
  }
@@ -463,7 +463,7 @@ var nr = (() => {
463
463
  var t = { a: na };
464
464
  function e(n, a) {
465
465
  var o = n.exports;
466
- return S = o, q = S.qa, Qt(), Jt = S.ua, cr(S.ra), dr(), o;
466
+ return S = o, q = S.qa, Zt(), Jt = S.ua, cr(S.ra), dr(), o;
467
467
  }
468
468
  fr();
469
469
  function r(n) {
@@ -473,9 +473,9 @@ var nr = (() => {
473
473
  try {
474
474
  return i.instantiateWasm(t, e);
475
475
  } catch (n) {
476
- V(`Module.instantiateWasm callback failed with error: ${n}`), w(n);
476
+ U(`Module.instantiateWasm callback failed with error: ${n}`), w(n);
477
477
  }
478
- return yr(U, ot, t, r).catch(w), {};
478
+ return yr(V, ot, t, r).catch(w), {};
479
479
  }
480
480
  var It = (t) => {
481
481
  for (; t.length > 0; )
@@ -483,10 +483,10 @@ var nr = (() => {
483
483
  }, Tt = [], Pt = 0, vr = (t) => {
484
484
  var e = new Et(t);
485
485
  return e.get_caught() || (e.set_caught(!0), Pt--), e.set_rethrown(!1), Tt.push(e), Me(e.excPtr), e.get_exception_ptr();
486
- }, Z = 0, gr = () => {
486
+ }, Q = 0, gr = () => {
487
487
  $(0, 0);
488
488
  var t = Tt.pop();
489
- Oe(t.excPtr), Z = 0;
489
+ Oe(t.excPtr), Q = 0;
490
490
  };
491
491
  function Et(t) {
492
492
  this.excPtr = t, this.ptr = t - 24, this.set_type = function(e) {
@@ -520,9 +520,9 @@ var nr = (() => {
520
520
  };
521
521
  }
522
522
  var wr = (t) => {
523
- throw Z || (Z = t), Z;
523
+ throw Q || (Q = t), Q;
524
524
  }, Wt = (t) => {
525
- var e = Z;
525
+ var e = Q;
526
526
  if (!e)
527
527
  return $t(0), 0;
528
528
  var r = new Et(e);
@@ -546,10 +546,10 @@ var nr = (() => {
546
546
  var t = Tt.pop();
547
547
  t || _t("no exception to throw");
548
548
  var e = t.excPtr;
549
- throw t.get_rethrown() || (Tt.push(t), t.set_rethrown(!0), t.set_caught(!1), Pt++), Z = e, Z;
549
+ throw t.get_rethrown() || (Tt.push(t), t.set_rethrown(!0), t.set_caught(!1), Pt++), Q = e, Q;
550
550
  }, Pr = (t, e, r) => {
551
551
  var n = new Et(t);
552
- throw n.init(e, r), Z = t, Pt++, Z;
552
+ throw n.init(e, r), Q = t, Pt++, Q;
553
553
  }, Er = () => Pt, xt = {}, oe = (t) => {
554
554
  for (; t.length; ) {
555
555
  var e = t.pop(), r = t.pop();
@@ -569,7 +569,7 @@ var nr = (() => {
569
569
  var l = r(u);
570
570
  l.length !== t.length && At("Mismatched type converter count");
571
571
  for (var f = 0; f < t.length; ++f)
572
- Q(t[f], l[f]);
572
+ Z(t[f], l[f]);
573
573
  }
574
574
  var a = new Array(e.length), o = [], s = 0;
575
575
  e.forEach((u, l) => {
@@ -613,28 +613,28 @@ var nr = (() => {
613
613
  for (var e = "", r = t; W[r]; )
614
614
  e += se[W[r++]];
615
615
  return e;
616
- }, lt = void 0, T = (t) => {
616
+ }, lt = void 0, P = (t) => {
617
617
  throw new lt(t);
618
618
  };
619
619
  function Sr(t, e, r = {}) {
620
620
  var n = e.name;
621
- if (t || T(`type "${n}" must have a positive integer typeid pointer`), it.hasOwnProperty(t)) {
621
+ if (t || P(`type "${n}" must have a positive integer typeid pointer`), it.hasOwnProperty(t)) {
622
622
  if (r.ignoreDuplicateRegistrations)
623
623
  return;
624
- T(`Cannot register type '${n}' twice`);
624
+ P(`Cannot register type '${n}' twice`);
625
625
  }
626
626
  if (it[t] = e, delete Dt[t], ct.hasOwnProperty(t)) {
627
627
  var a = ct[t];
628
628
  delete ct[t], a.forEach((o) => o());
629
629
  }
630
630
  }
631
- function Q(t, e, r = {}) {
631
+ function Z(t, e, r = {}) {
632
632
  if (!("argPackAdvance" in e))
633
633
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
634
634
  return Sr(t, e, r);
635
635
  }
636
636
  var J = 8, Fr = (t, e, r, n) => {
637
- e = k(e), Q(t, { name: e, fromWireType: function(a) {
637
+ e = k(e), Z(t, { name: e, fromWireType: function(a) {
638
638
  return !!a;
639
639
  }, toWireType: function(a, o) {
640
640
  return o ? r : n;
@@ -655,7 +655,7 @@ var nr = (() => {
655
655
  function e(r) {
656
656
  return r.$$.ptrType.registeredClass.name;
657
657
  }
658
- T(e(t) + " instance already deleted");
658
+ P(e(t) + " instance already deleted");
659
659
  }, Bt = !1, ue = (t) => {
660
660
  }, jr = (t) => {
661
661
  t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
@@ -675,17 +675,17 @@ var nr = (() => {
675
675
  for (var e in vt)
676
676
  vt.hasOwnProperty(e) && t.push(vt[e]);
677
677
  return t;
678
- }, yt = [], Ut = () => {
678
+ }, yt = [], Vt = () => {
679
679
  for (; yt.length; ) {
680
680
  var t = yt.pop();
681
681
  t.$$.deleteScheduled = !1, t.delete();
682
682
  }
683
683
  }, mt = void 0, Wr = (t) => {
684
- mt = t, yt.length && mt && mt(Ut);
684
+ mt = t, yt.length && mt && mt(Vt);
685
685
  }, Hr = () => {
686
- i.getInheritedInstanceCount = Rr, i.getLiveInheritedInstances = Ir, i.flushPendingDeletes = Ut, i.setDelayFunction = Wr;
686
+ i.getInheritedInstanceCount = Rr, i.getLiveInheritedInstances = Ir, i.flushPendingDeletes = Vt, i.setDelayFunction = Wr;
687
687
  }, vt = {}, kr = (t, e) => {
688
- for (e === void 0 && T("ptr should not be undefined"); t.baseClass; )
688
+ for (e === void 0 && P("ptr should not be undefined"); t.baseClass; )
689
689
  e = t.upcast(e), t = t.baseClass;
690
690
  return e;
691
691
  }, Br = (t, e) => (e = kr(t, e), vt[e]), St = (t, e) => {
@@ -693,7 +693,7 @@ var nr = (() => {
693
693
  var r = !!e.smartPtrType, n = !!e.smartPtr;
694
694
  return r !== n && At("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, gt(Object.create(t, { $$: { value: e } }));
695
695
  };
696
- function Ur(t) {
696
+ function Vr(t) {
697
697
  var e = this.getPointee(t);
698
698
  if (!e)
699
699
  return this.destructor(t), null;
@@ -725,23 +725,23 @@ var nr = (() => {
725
725
  }
726
726
  return e;
727
727
  }, ue = (e) => Bt.unregister(e), gt(t));
728
- function Vr() {
728
+ function Ur() {
729
729
  if (this.$$.ptr || kt(this), this.$$.preservePointerOnDelete)
730
730
  return this.$$.count.value += 1, this;
731
731
  var t = gt(Object.create(Object.getPrototypeOf(this), { $$: { value: Mr(this.$$) } }));
732
732
  return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
733
733
  }
734
734
  function Lr() {
735
- this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && T("Object already scheduled for deletion"), ue(this), ce(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
735
+ this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && P("Object already scheduled for deletion"), ue(this), ce(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
736
736
  }
737
737
  function zr() {
738
738
  return !this.$$.ptr;
739
739
  }
740
740
  function Yr() {
741
- return this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && T("Object already scheduled for deletion"), yt.push(this), yt.length === 1 && mt && mt(Ut), this.$$.deleteScheduled = !0, this;
741
+ return this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && P("Object already scheduled for deletion"), yt.push(this), yt.length === 1 && mt && mt(Vt), this.$$.deleteScheduled = !0, this;
742
742
  }
743
743
  var Nr = () => {
744
- et.prototype.isAliasOf = Or, et.prototype.clone = Vr, et.prototype.delete = Lr, et.prototype.isDeleted = zr, et.prototype.deleteLater = Yr;
744
+ et.prototype.isAliasOf = Or, et.prototype.clone = Ur, et.prototype.delete = Lr, et.prototype.isDeleted = zr, et.prototype.deleteLater = Yr;
745
745
  };
746
746
  function et() {
747
747
  }
@@ -761,37 +761,37 @@ var nr = (() => {
761
761
  if (t[e].overloadTable === void 0) {
762
762
  var n = t[e];
763
763
  t[e] = function() {
764
- return t[e].overloadTable.hasOwnProperty(arguments.length) || T(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${t[e].overloadTable})!`), t[e].overloadTable[arguments.length].apply(this, arguments);
764
+ return t[e].overloadTable.hasOwnProperty(arguments.length) || P(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${t[e].overloadTable})!`), t[e].overloadTable[arguments.length].apply(this, arguments);
765
765
  }, t[e].overloadTable = [], t[e].overloadTable[n.argCount] = n;
766
766
  }
767
767
  }, ye = (t, e, r) => {
768
- i.hasOwnProperty(t) ? ((r === void 0 || i[t].overloadTable !== void 0 && i[t].overloadTable[r] !== void 0) && T(`Cannot register public name '${t}' twice`), pe(i, t, t), i.hasOwnProperty(r) && T(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), i[t].overloadTable[r] = e) : (i[t] = e, r !== void 0 && (i[t].numArguments = r));
768
+ i.hasOwnProperty(t) ? ((r === void 0 || i[t].overloadTable !== void 0 && i[t].overloadTable[r] !== void 0) && P(`Cannot register public name '${t}' twice`), pe(i, t, t), i.hasOwnProperty(r) && P(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), i[t].overloadTable[r] = e) : (i[t] = e, r !== void 0 && (i[t].numArguments = r));
769
769
  };
770
770
  function qr(t, e, r, n, a, o, s, u) {
771
771
  this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = o, this.upcast = s, this.downcast = u, this.pureVirtualFunctions = [];
772
772
  }
773
- var Vt = (t, e, r) => {
773
+ var Ut = (t, e, r) => {
774
774
  for (; e !== r; )
775
- e.upcast || T(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
775
+ e.upcast || P(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
776
776
  return t;
777
777
  };
778
- function Zr(t, e) {
778
+ function Qr(t, e) {
779
779
  if (e === null)
780
- return this.isReference && T(`null is not a valid ${this.name}`), 0;
781
- e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`);
782
- var r = e.$$.ptrType.registeredClass, n = Vt(e.$$.ptr, r, this.registeredClass);
780
+ return this.isReference && P(`null is not a valid ${this.name}`), 0;
781
+ e.$$ || P(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || P(`Cannot pass deleted object as a pointer of type ${this.name}`);
782
+ var r = e.$$.ptrType.registeredClass, n = Ut(e.$$.ptr, r, this.registeredClass);
783
783
  return n;
784
784
  }
785
- function Qr(t, e) {
785
+ function Zr(t, e) {
786
786
  var r;
787
787
  if (e === null)
788
- return this.isReference && T(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
789
- e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && T(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
788
+ return this.isReference && P(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
789
+ e.$$ || P(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || P(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && P(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
790
790
  var n = e.$$.ptrType.registeredClass;
791
- if (r = Vt(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
792
- switch (e.$$.smartPtr === void 0 && T("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
791
+ if (r = Ut(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
792
+ switch (e.$$.smartPtr === void 0 && P("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
793
793
  case 0:
794
- e.$$.smartPtrType === this ? r = e.$$.smartPtr : T(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
794
+ e.$$.smartPtrType === this ? r = e.$$.smartPtr : P(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
795
795
  break;
796
796
  case 1:
797
797
  r = e.$$.smartPtr;
@@ -805,15 +805,15 @@ var nr = (() => {
805
805
  }
806
806
  break;
807
807
  default:
808
- T("Unsupporting sharing policy");
808
+ P("Unsupporting sharing policy");
809
809
  }
810
810
  return r;
811
811
  }
812
812
  function Jr(t, e) {
813
813
  if (e === null)
814
- return this.isReference && T(`null is not a valid ${this.name}`), 0;
815
- e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && T(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
816
- var r = e.$$.ptrType.registeredClass, n = Vt(e.$$.ptr, r, this.registeredClass);
814
+ return this.isReference && P(`null is not a valid ${this.name}`), 0;
815
+ e.$$ || P(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || P(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && P(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
816
+ var r = e.$$.ptrType.registeredClass, n = Ut(e.$$.ptr, r, this.registeredClass);
817
817
  return n;
818
818
  }
819
819
  function me(t) {
@@ -828,23 +828,23 @@ var nr = (() => {
828
828
  var en = (t) => {
829
829
  t !== null && t.delete();
830
830
  }, rn = () => {
831
- K.prototype.getPointee = Kr, K.prototype.destructor = tn, K.prototype.argPackAdvance = J, K.prototype.readValueFromPointer = me, K.prototype.deleteObject = en, K.prototype.fromWireType = Ur;
831
+ K.prototype.getPointee = Kr, K.prototype.destructor = tn, K.prototype.argPackAdvance = J, K.prototype.readValueFromPointer = me, K.prototype.deleteObject = en, K.prototype.fromWireType = Vr;
832
832
  };
833
833
  function K(t, e, r, n, a, o, s, u, l, f, h) {
834
- this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = h, !a && e.baseClass === void 0 ? n ? (this.toWireType = Zr, this.destructorFunction = null) : (this.toWireType = Jr, this.destructorFunction = null) : this.toWireType = Qr;
834
+ this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = h, !a && e.baseClass === void 0 ? n ? (this.toWireType = Qr, this.destructorFunction = null) : (this.toWireType = Jr, this.destructorFunction = null) : this.toWireType = Zr;
835
835
  }
836
836
  var ve = (t, e, r) => {
837
837
  i.hasOwnProperty(t) || At("Replacing nonexistant public symbol"), i[t].overloadTable !== void 0 && r !== void 0 ? i[t].overloadTable[r] = e : (i[t] = e, i[t].argCount = r);
838
838
  }, nn = (t, e, r) => {
839
839
  var n = i["dynCall_" + t];
840
840
  return r && r.length ? n.apply(null, [e].concat(r)) : n.call(null, e);
841
- }, Ft = [], P = (t) => {
841
+ }, Ft = [], E = (t) => {
842
842
  var e = Ft[t];
843
843
  return e || (t >= Ft.length && (Ft.length = t + 1), Ft[t] = e = Jt.get(t)), e;
844
844
  }, an = (t, e, r) => {
845
845
  if (t.includes("j"))
846
846
  return nn(t, e, r);
847
- var n = P(e).apply(null, r);
847
+ var n = E(e).apply(null, r);
848
848
  return n;
849
849
  }, on = (t, e) => {
850
850
  var r = [];
@@ -854,10 +854,10 @@ var nr = (() => {
854
854
  }, G = (t, e) => {
855
855
  t = k(t);
856
856
  function r() {
857
- return t.includes("j") ? on(t, e) : P(e);
857
+ return t.includes("j") ? on(t, e) : E(e);
858
858
  }
859
859
  var n = r();
860
- return typeof n != "function" && T(`unknown function pointer with signature ${t}: ${e}`), n;
860
+ return typeof n != "function" && P(`unknown function pointer with signature ${t}: ${e}`), n;
861
861
  }, sn = (t, e) => {
862
862
  var r = he(e, function(n) {
863
863
  this.name = e, this.message = n;
@@ -915,7 +915,7 @@ var nr = (() => {
915
915
  };
916
916
  function zt(t, e, r, n, a, o) {
917
917
  var s = e.length;
918
- s < 2 && T("argTypes array size mismatch! Must at least get return value and 'this' types!");
918
+ s < 2 && P("argTypes array size mismatch! Must at least get return value and 'this' types!");
919
919
  for (var u = e[1] !== null && r !== null, l = !1, f = 1; f < e.length; ++f)
920
920
  if (e[f] !== null && e[f].destructorFunction === void 0) {
921
921
  l = !0;
@@ -923,7 +923,7 @@ var nr = (() => {
923
923
  }
924
924
  var h = e[0].name !== "void", m = s - 2, v = new Array(m), _ = [], x = [];
925
925
  return function() {
926
- arguments.length !== m && T(`function ${t} called with ${arguments.length} arguments, expected ${m}`), x.length = 0;
926
+ arguments.length !== m && P(`function ${t} called with ${arguments.length} arguments, expected ${m}`), x.length = 0;
927
927
  var R;
928
928
  _.length = u ? 2 : 1, _[0] = a, u && (R = e[1].toWireType(x, this), _[1] = R);
929
929
  for (var D = 0; D < m; ++D)
@@ -993,7 +993,7 @@ var nr = (() => {
993
993
  return t;
994
994
  }, hn = () => {
995
995
  z.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), z.reserved = z.allocated.length, i.count_emval_handles = dn;
996
- }, rt = { toValue: (t) => (t || T("Cannot use deleted val. handle = " + t), z.get(t).value), toHandle: (t) => {
996
+ }, rt = { toValue: (t) => (t || P("Cannot use deleted val. handle = " + t), z.get(t).value), toHandle: (t) => {
997
997
  switch (t) {
998
998
  case void 0:
999
999
  return 1;
@@ -1007,7 +1007,7 @@ var nr = (() => {
1007
1007
  return z.allocate({ refcount: 1, value: t });
1008
1008
  }
1009
1009
  } }, pn = (t, e) => {
1010
- e = k(e), Q(t, { name: e, fromWireType: (r) => {
1010
+ e = k(e), Z(t, { name: e, fromWireType: (r) => {
1011
1011
  var n = rt.toValue(r);
1012
1012
  return be(r), n;
1013
1013
  }, toWireType: (r, n) => rt.toHandle(n), argPackAdvance: J, readValueFromPointer: Ht, destructorFunction: null });
@@ -1024,13 +1024,13 @@ var nr = (() => {
1024
1024
  };
1025
1025
  case 8:
1026
1026
  return function(r) {
1027
- return this.fromWireType(Zt[r >> 3]);
1027
+ return this.fromWireType(Qt[r >> 3]);
1028
1028
  };
1029
1029
  default:
1030
1030
  throw new TypeError(`invalid float width (${e}): ${t}`);
1031
1031
  }
1032
1032
  }, mn = (t, e, r) => {
1033
- e = k(e), Q(t, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: J, readValueFromPointer: yn(e, r), destructorFunction: null });
1033
+ e = k(e), Z(t, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: J, readValueFromPointer: yn(e, r), destructorFunction: null });
1034
1034
  }, vn = (t, e, r, n, a, o, s) => {
1035
1035
  var u = Lt(e, r);
1036
1036
  t = k(t), a = G(n, a), ye(t, function() {
@@ -1063,14 +1063,14 @@ var nr = (() => {
1063
1063
  return l(m, this.name), m >>> 0;
1064
1064
  } : f = function(h, m) {
1065
1065
  return l(m, this.name), m;
1066
- }, Q(t, { name: e, fromWireType: o, toWireType: f, argPackAdvance: J, readValueFromPointer: gn(e, r, n !== 0), destructorFunction: null });
1066
+ }, Z(t, { name: e, fromWireType: o, toWireType: f, argPackAdvance: J, readValueFromPointer: gn(e, r, n !== 0), destructorFunction: null });
1067
1067
  }, $n = (t, e, r) => {
1068
1068
  var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
1069
1069
  function o(s) {
1070
1070
  var u = A[s >> 2], l = A[s + 4 >> 2];
1071
1071
  return new a(L.buffer, l, u);
1072
1072
  }
1073
- r = k(r), Q(t, { name: r, fromWireType: o, argPackAdvance: J, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 });
1073
+ r = k(r), Z(t, { name: r, fromWireType: o, argPackAdvance: J, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 });
1074
1074
  }, Ce = (t, e, r, n) => {
1075
1075
  if (!(n > 0))
1076
1076
  return 0;
@@ -1133,7 +1133,7 @@ var nr = (() => {
1133
1133
  }, Nt = (t, e) => t ? Cn(W, t, e) : "", _n = (t, e) => {
1134
1134
  e = k(e);
1135
1135
  var r = e === "std::string";
1136
- Q(t, { name: e, fromWireType: (n) => {
1136
+ Z(t, { name: e, fromWireType: (n) => {
1137
1137
  var a = A[n >> 2], o = n + 4, s;
1138
1138
  if (r)
1139
1139
  for (var u = o, l = 0; l <= a; ++l) {
@@ -1152,14 +1152,14 @@ var nr = (() => {
1152
1152
  }, toWireType: (n, a) => {
1153
1153
  a instanceof ArrayBuffer && (a = new Uint8Array(a));
1154
1154
  var o, s = typeof a == "string";
1155
- s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || T("Cannot pass non-string to std::string"), r && s ? o = _e(a) : o = a.length;
1155
+ s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || P("Cannot pass non-string to std::string"), r && s ? o = _e(a) : o = a.length;
1156
1156
  var u = Xt(4 + o + 1), l = u + 4;
1157
1157
  if (A[u >> 2] = o, r && s)
1158
1158
  bn(a, l, o + 1);
1159
1159
  else if (s)
1160
1160
  for (var f = 0; f < o; ++f) {
1161
1161
  var h = a.charCodeAt(f);
1162
- h > 255 && (tt(l), T("String has UTF-16 code units that do not fit in 8 bits")), W[l + f] = h;
1162
+ h > 255 && (tt(l), P("String has UTF-16 code units that do not fit in 8 bits")), W[l + f] = h;
1163
1163
  }
1164
1164
  else
1165
1165
  for (var f = 0; f < o; ++f)
@@ -1221,7 +1221,7 @@ var nr = (() => {
1221
1221
  }, Sn = (t, e, r) => {
1222
1222
  r = k(r);
1223
1223
  var n, a, o, s, u;
1224
- e === 2 ? (n = Tn, a = Pn, s = En, o = () => Ct, u = 1) : e === 4 && (n = xn, a = Dn, s = An, o = () => A, u = 2), Q(t, { name: r, fromWireType: (l) => {
1224
+ e === 2 ? (n = Tn, a = Pn, s = En, o = () => Ct, u = 1) : e === 4 && (n = xn, a = Dn, s = An, o = () => A, u = 2), Z(t, { name: r, fromWireType: (l) => {
1225
1225
  for (var f = A[l >> 2], h = o(), m, v = l + 4, _ = 0; _ <= f; ++_) {
1226
1226
  var x = l + 4 + _ * e;
1227
1227
  if (_ == f || h[x >> u] == 0) {
@@ -1231,7 +1231,7 @@ var nr = (() => {
1231
1231
  }
1232
1232
  return tt(l), m;
1233
1233
  }, toWireType: (l, f) => {
1234
- typeof f != "string" && T(`Cannot pass non-string to C++ string type ${r}`);
1234
+ typeof f != "string" && P(`Cannot pass non-string to C++ string type ${r}`);
1235
1235
  var h = s(f), m = Xt(4 + h + e);
1236
1236
  return A[m >> 2] = h >> u, a(f, m + 4, h + e), l !== null && l.push(tt, m), m;
1237
1237
  }, argPackAdvance: J, readValueFromPointer: Ht, destructorFunction: (l) => tt(l) });
@@ -1240,7 +1240,7 @@ var nr = (() => {
1240
1240
  }, On = (t, e, r, n, a, o, s, u, l, f) => {
1241
1241
  xt[t].fields.push({ fieldName: k(e), getterReturnType: r, getter: G(n, a), getterContext: o, setterArgumentType: s, setter: G(u, l), setterContext: f });
1242
1242
  }, Mn = (t, e) => {
1243
- e = k(e), Q(t, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
1243
+ e = k(e), Z(t, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
1244
1244
  }, toWireType: (r, n) => {
1245
1245
  } });
1246
1246
  }, jn = {}, Rn = (t) => {
@@ -1261,7 +1261,7 @@ var nr = (() => {
1261
1261
  t > 4 && (z.get(t).refcount += 1);
1262
1262
  }, xe = (t, e) => {
1263
1263
  var r = it[t];
1264
- return r === void 0 && T(e + " has unknown type " + we(t)), r;
1264
+ return r === void 0 && P(e + " has unknown type " + we(t)), r;
1265
1265
  }, Hn = (t) => {
1266
1266
  var e = new Array(t + 1);
1267
1267
  return function(r, n, a) {
@@ -1281,12 +1281,12 @@ var nr = (() => {
1281
1281
  t = xe(t, "_emval_take_value");
1282
1282
  var r = t.readValueFromPointer(e);
1283
1283
  return rt.toHandle(r);
1284
- }, Un = () => {
1284
+ }, Vn = () => {
1285
1285
  _t("");
1286
- }, Vn = (t, e, r) => W.copyWithin(t, e, e + r), Ln = () => 2147483648, zn = (t) => {
1286
+ }, Un = (t, e, r) => W.copyWithin(t, e, e + r), Ln = () => 2147483648, zn = (t) => {
1287
1287
  var e = q.buffer, r = (t - e.byteLength + 65535) / 65536;
1288
1288
  try {
1289
- return q.grow(r), Qt(), 1;
1289
+ return q.grow(r), Zt(), 1;
1290
1290
  } catch {
1291
1291
  }
1292
1292
  }, Yn = (t) => {
@@ -1329,7 +1329,7 @@ var nr = (() => {
1329
1329
  A[t >> 2] = r.length;
1330
1330
  var n = 0;
1331
1331
  return r.forEach((a) => n += a.length + 1), A[e >> 2] = n, 0;
1332
- }, Zn = (t) => t, Mt = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Qn = (t, e) => {
1332
+ }, Qn = (t) => t, Mt = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Zn = (t, e) => {
1333
1333
  for (var r = 0, n = 0; n <= e; r += t[n++])
1334
1334
  ;
1335
1335
  return r;
@@ -1397,7 +1397,7 @@ var nr = (() => {
1397
1397
  }, "%d": (d) => v(d.tm_mday, 2), "%e": (d) => m(d.tm_mday, 2, " "), "%g": (d) => R(d).toString().substring(2), "%G": (d) => R(d), "%H": (d) => v(d.tm_hour, 2), "%I": (d) => {
1398
1398
  var y = d.tm_hour;
1399
1399
  return y == 0 ? y = 12 : y > 12 && (y -= 12), v(y, 2);
1400
- }, "%j": (d) => v(d.tm_mday + Qn(Mt(d.tm_year + 1900) ? Ae : Se, d.tm_mon - 1), 3), "%m": (d) => v(d.tm_mon + 1, 2), "%M": (d) => v(d.tm_min, 2), "%n": () => `
1400
+ }, "%j": (d) => v(d.tm_mday + Zn(Mt(d.tm_year + 1900) ? Ae : Se, d.tm_mon - 1), 3), "%m": (d) => v(d.tm_mon + 1, 2), "%M": (d) => v(d.tm_min, 2), "%n": () => `
1401
1401
  `, "%p": (d) => d.tm_hour >= 0 && d.tm_hour < 12 ? "AM" : "PM", "%S": (d) => v(d.tm_sec, 2), "%t": () => " ", "%u": (d) => d.tm_wday || 7, "%U": (d) => {
1402
1402
  var y = d.tm_yday + 7 - d.tm_wday;
1403
1403
  return v(Math.floor(y / 7), 2);
@@ -1437,7 +1437,7 @@ var nr = (() => {
1437
1437
  super(t), this.name = "BindingError";
1438
1438
  }
1439
1439
  }, Nr(), Hr(), rn(), ge = i.UnboundTypeError = sn(Error, "UnboundTypeError"), fn(), hn();
1440
- var na = { q: vr, u: gr, a: $r, h: br, l: Cr, I: _r, P: Tr, n: Pr, ba: Er, d: wr, oa: xr, Y: Dr, fa: Fr, na: un, ma: cn, D: ln, ea: pn, W: mn, J: vn, w: wn, s: $n, V: _n, L: Sn, Q: Fn, pa: On, ga: Mn, U: be, la: In, R: Wn, ia: kn, ka: Bn, K: Un, da: Vn, ca: Yn, $: Xn, aa: qn, H: Ca, T: Fa, B: Ta, p: wa, b: aa, C: ba, ha: Ea, c: ca, j: fa, i: sa, x: _a, O: $a, v: va, G: Da, N: Aa, A: Pa, F: Oa, Z: ja, X: Ra, k: la, f: ua, e: ia, g: oa, M: Sa, m: ma, o: da, S: ha, t: ya, ja: ga, y: xa, r: pa, E: Ma, z: Zn, _: ra }, S = mr(), tt = i._free = (t) => (tt = i._free = S.sa)(t), Xt = i._malloc = (t) => (Xt = i._malloc = S.ta)(t), Fe = (t) => (Fe = S.va)(t);
1440
+ var na = { q: vr, u: gr, a: $r, h: br, l: Cr, I: _r, P: Tr, n: Pr, ba: Er, d: wr, oa: xr, Y: Dr, fa: Fr, na: un, ma: cn, D: ln, ea: pn, W: mn, J: vn, w: wn, s: $n, V: _n, L: Sn, Q: Fn, pa: On, ga: Mn, U: be, la: In, R: Wn, ia: kn, ka: Bn, K: Vn, da: Un, ca: Yn, $: Xn, aa: qn, H: Ca, T: Fa, B: Ta, p: wa, b: aa, C: ba, ha: Ea, c: ca, j: fa, i: sa, x: _a, O: $a, v: va, G: Da, N: Aa, A: Pa, F: Oa, Z: ja, X: Ra, k: la, f: ua, e: ia, g: oa, M: Sa, m: ma, o: da, S: ha, t: ya, ja: ga, y: xa, r: pa, E: Ma, z: Qn, _: ra }, S = mr(), tt = i._free = (t) => (tt = i._free = S.sa)(t), Xt = i._malloc = (t) => (Xt = i._malloc = S.ta)(t), Fe = (t) => (Fe = S.va)(t);
1441
1441
  i.__embind_initialize_bindings = () => (i.__embind_initialize_bindings = S.wa)();
1442
1442
  var $ = (t, e) => ($ = S.xa)(t, e), $t = (t) => ($t = S.ya)(t), b = () => (b = S.za)(), C = (t) => (C = S.Aa)(t), Oe = (t) => (Oe = S.Ba)(t), Me = (t) => (Me = S.Ca)(t), je = (t, e, r) => (je = S.Da)(t, e, r), Re = (t) => (Re = S.Ea)(t);
1443
1443
  i.dynCall_viijii = (t, e, r, n, a, o, s) => (i.dynCall_viijii = S.Fa)(t, e, r, n, a, o, s);
@@ -1446,7 +1446,7 @@ var nr = (() => {
1446
1446
  function aa(t, e) {
1447
1447
  var r = b();
1448
1448
  try {
1449
- return P(t)(e);
1449
+ return E(t)(e);
1450
1450
  } catch (n) {
1451
1451
  if (C(r), n !== n + 0)
1452
1452
  throw n;
@@ -1456,7 +1456,7 @@ var nr = (() => {
1456
1456
  function oa(t, e, r, n) {
1457
1457
  var a = b();
1458
1458
  try {
1459
- P(t)(e, r, n);
1459
+ E(t)(e, r, n);
1460
1460
  } catch (o) {
1461
1461
  if (C(a), o !== o + 0)
1462
1462
  throw o;
@@ -1466,7 +1466,7 @@ var nr = (() => {
1466
1466
  function ia(t, e, r) {
1467
1467
  var n = b();
1468
1468
  try {
1469
- P(t)(e, r);
1469
+ E(t)(e, r);
1470
1470
  } catch (a) {
1471
1471
  if (C(n), a !== a + 0)
1472
1472
  throw a;
@@ -1476,7 +1476,7 @@ var nr = (() => {
1476
1476
  function sa(t, e, r, n, a) {
1477
1477
  var o = b();
1478
1478
  try {
1479
- return P(t)(e, r, n, a);
1479
+ return E(t)(e, r, n, a);
1480
1480
  } catch (s) {
1481
1481
  if (C(o), s !== s + 0)
1482
1482
  throw s;
@@ -1486,7 +1486,7 @@ var nr = (() => {
1486
1486
  function ua(t, e) {
1487
1487
  var r = b();
1488
1488
  try {
1489
- P(t)(e);
1489
+ E(t)(e);
1490
1490
  } catch (n) {
1491
1491
  if (C(r), n !== n + 0)
1492
1492
  throw n;
@@ -1496,7 +1496,7 @@ var nr = (() => {
1496
1496
  function ca(t, e, r) {
1497
1497
  var n = b();
1498
1498
  try {
1499
- return P(t)(e, r);
1499
+ return E(t)(e, r);
1500
1500
  } catch (a) {
1501
1501
  if (C(n), a !== a + 0)
1502
1502
  throw a;
@@ -1506,7 +1506,7 @@ var nr = (() => {
1506
1506
  function la(t) {
1507
1507
  var e = b();
1508
1508
  try {
1509
- P(t)();
1509
+ E(t)();
1510
1510
  } catch (r) {
1511
1511
  if (C(e), r !== r + 0)
1512
1512
  throw r;
@@ -1516,7 +1516,7 @@ var nr = (() => {
1516
1516
  function fa(t, e, r, n) {
1517
1517
  var a = b();
1518
1518
  try {
1519
- return P(t)(e, r, n);
1519
+ return E(t)(e, r, n);
1520
1520
  } catch (o) {
1521
1521
  if (C(a), o !== o + 0)
1522
1522
  throw o;
@@ -1526,7 +1526,7 @@ var nr = (() => {
1526
1526
  function da(t, e, r, n, a, o) {
1527
1527
  var s = b();
1528
1528
  try {
1529
- P(t)(e, r, n, a, o);
1529
+ E(t)(e, r, n, a, o);
1530
1530
  } catch (u) {
1531
1531
  if (C(s), u !== u + 0)
1532
1532
  throw u;
@@ -1536,7 +1536,7 @@ var nr = (() => {
1536
1536
  function ha(t, e, r, n, a, o, s) {
1537
1537
  var u = b();
1538
1538
  try {
1539
- P(t)(e, r, n, a, o, s);
1539
+ E(t)(e, r, n, a, o, s);
1540
1540
  } catch (l) {
1541
1541
  if (C(u), l !== l + 0)
1542
1542
  throw l;
@@ -1546,7 +1546,7 @@ var nr = (() => {
1546
1546
  function pa(t, e, r, n, a, o, s, u, l, f, h) {
1547
1547
  var m = b();
1548
1548
  try {
1549
- P(t)(e, r, n, a, o, s, u, l, f, h);
1549
+ E(t)(e, r, n, a, o, s, u, l, f, h);
1550
1550
  } catch (v) {
1551
1551
  if (C(m), v !== v + 0)
1552
1552
  throw v;
@@ -1556,7 +1556,7 @@ var nr = (() => {
1556
1556
  function ya(t, e, r, n, a, o, s, u) {
1557
1557
  var l = b();
1558
1558
  try {
1559
- P(t)(e, r, n, a, o, s, u);
1559
+ E(t)(e, r, n, a, o, s, u);
1560
1560
  } catch (f) {
1561
1561
  if (C(l), f !== f + 0)
1562
1562
  throw f;
@@ -1566,7 +1566,7 @@ var nr = (() => {
1566
1566
  function ma(t, e, r, n, a) {
1567
1567
  var o = b();
1568
1568
  try {
1569
- P(t)(e, r, n, a);
1569
+ E(t)(e, r, n, a);
1570
1570
  } catch (s) {
1571
1571
  if (C(o), s !== s + 0)
1572
1572
  throw s;
@@ -1576,7 +1576,7 @@ var nr = (() => {
1576
1576
  function va(t, e, r, n, a, o, s) {
1577
1577
  var u = b();
1578
1578
  try {
1579
- return P(t)(e, r, n, a, o, s);
1579
+ return E(t)(e, r, n, a, o, s);
1580
1580
  } catch (l) {
1581
1581
  if (C(u), l !== l + 0)
1582
1582
  throw l;
@@ -1586,7 +1586,7 @@ var nr = (() => {
1586
1586
  function ga(t, e, r, n, a, o, s, u, l) {
1587
1587
  var f = b();
1588
1588
  try {
1589
- P(t)(e, r, n, a, o, s, u, l);
1589
+ E(t)(e, r, n, a, o, s, u, l);
1590
1590
  } catch (h) {
1591
1591
  if (C(f), h !== h + 0)
1592
1592
  throw h;
@@ -1596,7 +1596,7 @@ var nr = (() => {
1596
1596
  function wa(t) {
1597
1597
  var e = b();
1598
1598
  try {
1599
- return P(t)();
1599
+ return E(t)();
1600
1600
  } catch (r) {
1601
1601
  if (C(e), r !== r + 0)
1602
1602
  throw r;
@@ -1606,7 +1606,7 @@ var nr = (() => {
1606
1606
  function $a(t, e, r, n, a, o, s) {
1607
1607
  var u = b();
1608
1608
  try {
1609
- return P(t)(e, r, n, a, o, s);
1609
+ return E(t)(e, r, n, a, o, s);
1610
1610
  } catch (l) {
1611
1611
  if (C(u), l !== l + 0)
1612
1612
  throw l;
@@ -1616,7 +1616,7 @@ var nr = (() => {
1616
1616
  function ba(t, e, r, n) {
1617
1617
  var a = b();
1618
1618
  try {
1619
- return P(t)(e, r, n);
1619
+ return E(t)(e, r, n);
1620
1620
  } catch (o) {
1621
1621
  if (C(a), o !== o + 0)
1622
1622
  throw o;
@@ -1626,7 +1626,7 @@ var nr = (() => {
1626
1626
  function Ca(t, e, r, n) {
1627
1627
  var a = b();
1628
1628
  try {
1629
- return P(t)(e, r, n);
1629
+ return E(t)(e, r, n);
1630
1630
  } catch (o) {
1631
1631
  if (C(a), o !== o + 0)
1632
1632
  throw o;
@@ -1636,7 +1636,7 @@ var nr = (() => {
1636
1636
  function _a(t, e, r, n, a, o) {
1637
1637
  var s = b();
1638
1638
  try {
1639
- return P(t)(e, r, n, a, o);
1639
+ return E(t)(e, r, n, a, o);
1640
1640
  } catch (u) {
1641
1641
  if (C(s), u !== u + 0)
1642
1642
  throw u;
@@ -1646,7 +1646,7 @@ var nr = (() => {
1646
1646
  function Ta(t, e, r, n, a, o) {
1647
1647
  var s = b();
1648
1648
  try {
1649
- return P(t)(e, r, n, a, o);
1649
+ return E(t)(e, r, n, a, o);
1650
1650
  } catch (u) {
1651
1651
  if (C(s), u !== u + 0)
1652
1652
  throw u;
@@ -1656,7 +1656,7 @@ var nr = (() => {
1656
1656
  function Pa(t, e, r, n, a, o, s, u, l, f) {
1657
1657
  var h = b();
1658
1658
  try {
1659
- return P(t)(e, r, n, a, o, s, u, l, f);
1659
+ return E(t)(e, r, n, a, o, s, u, l, f);
1660
1660
  } catch (m) {
1661
1661
  if (C(h), m !== m + 0)
1662
1662
  throw m;
@@ -1666,7 +1666,7 @@ var nr = (() => {
1666
1666
  function Ea(t, e, r) {
1667
1667
  var n = b();
1668
1668
  try {
1669
- return P(t)(e, r);
1669
+ return E(t)(e, r);
1670
1670
  } catch (a) {
1671
1671
  if (C(n), a !== a + 0)
1672
1672
  throw a;
@@ -1676,7 +1676,7 @@ var nr = (() => {
1676
1676
  function xa(t, e, r, n, a, o, s, u, l, f) {
1677
1677
  var h = b();
1678
1678
  try {
1679
- P(t)(e, r, n, a, o, s, u, l, f);
1679
+ E(t)(e, r, n, a, o, s, u, l, f);
1680
1680
  } catch (m) {
1681
1681
  if (C(h), m !== m + 0)
1682
1682
  throw m;
@@ -1686,7 +1686,7 @@ var nr = (() => {
1686
1686
  function Da(t, e, r, n, a, o, s, u) {
1687
1687
  var l = b();
1688
1688
  try {
1689
- return P(t)(e, r, n, a, o, s, u);
1689
+ return E(t)(e, r, n, a, o, s, u);
1690
1690
  } catch (f) {
1691
1691
  if (C(l), f !== f + 0)
1692
1692
  throw f;
@@ -1696,7 +1696,7 @@ var nr = (() => {
1696
1696
  function Aa(t, e, r, n, a, o, s, u, l) {
1697
1697
  var f = b();
1698
1698
  try {
1699
- return P(t)(e, r, n, a, o, s, u, l);
1699
+ return E(t)(e, r, n, a, o, s, u, l);
1700
1700
  } catch (h) {
1701
1701
  if (C(f), h !== h + 0)
1702
1702
  throw h;
@@ -1706,7 +1706,7 @@ var nr = (() => {
1706
1706
  function Sa(t, e, r, n, a, o, s) {
1707
1707
  var u = b();
1708
1708
  try {
1709
- P(t)(e, r, n, a, o, s);
1709
+ E(t)(e, r, n, a, o, s);
1710
1710
  } catch (l) {
1711
1711
  if (C(u), l !== l + 0)
1712
1712
  throw l;
@@ -1716,7 +1716,7 @@ var nr = (() => {
1716
1716
  function Fa(t, e, r, n) {
1717
1717
  var a = b();
1718
1718
  try {
1719
- return P(t)(e, r, n);
1719
+ return E(t)(e, r, n);
1720
1720
  } catch (o) {
1721
1721
  if (C(a), o !== o + 0)
1722
1722
  throw o;
@@ -1726,7 +1726,7 @@ var nr = (() => {
1726
1726
  function Oa(t, e, r, n, a, o, s, u, l, f, h, m) {
1727
1727
  var v = b();
1728
1728
  try {
1729
- return P(t)(e, r, n, a, o, s, u, l, f, h, m);
1729
+ return E(t)(e, r, n, a, o, s, u, l, f, h, m);
1730
1730
  } catch (_) {
1731
1731
  if (C(v), _ !== _ + 0)
1732
1732
  throw _;
@@ -1736,7 +1736,7 @@ var nr = (() => {
1736
1736
  function Ma(t, e, r, n, a, o, s, u, l, f, h, m, v, _, x, R) {
1737
1737
  var D = b();
1738
1738
  try {
1739
- P(t)(e, r, n, a, o, s, u, l, f, h, m, v, _, x, R);
1739
+ E(t)(e, r, n, a, o, s, u, l, f, h, m, v, _, x, R);
1740
1740
  } catch (I) {
1741
1741
  if (C(D), I !== I + 0)
1742
1742
  throw I;
@@ -1793,7 +1793,7 @@ async function to(c, {
1793
1793
  formats: i = nt.formats,
1794
1794
  maxSymbols: g = nt.maxSymbols
1795
1795
  } = nt) {
1796
- return Za(
1796
+ return Qa(
1797
1797
  c,
1798
1798
  {
1799
1799
  tryHarder: p,
@@ -1829,26 +1829,26 @@ class ao extends EventTarget {
1829
1829
  constructor(i = {}) {
1830
1830
  var g;
1831
1831
  super();
1832
- Ue(this, bt, void 0);
1832
+ Ve(this, bt, void 0);
1833
1833
  try {
1834
1834
  const w = (g = i == null ? void 0 : i.formats) == null ? void 0 : g.filter(
1835
- (E) => E !== "unknown"
1835
+ (T) => T !== "unknown"
1836
1836
  );
1837
1837
  if ((w == null ? void 0 : w.length) === 0)
1838
1838
  throw new TypeError("Hint option provided, but is empty.");
1839
- w == null || w.forEach((E) => {
1840
- if (!Le.includes(E))
1839
+ w == null || w.forEach((T) => {
1840
+ if (!Le.includes(T))
1841
1841
  throw new TypeError(
1842
- `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${E}' is not a valid enum value of type BarcodeFormat.`
1842
+ `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${T}' is not a valid enum value of type BarcodeFormat.`
1843
1843
  );
1844
- }), Ve(this, bt, w != null ? w : []), Ka().then((E) => {
1844
+ }), Ue(this, bt, w != null ? w : []), Ka().then((T) => {
1845
1845
  this.dispatchEvent(
1846
1846
  new CustomEvent("load", {
1847
- detail: E
1847
+ detail: T
1848
1848
  })
1849
1849
  );
1850
- }).catch((E) => {
1851
- this.dispatchEvent(new CustomEvent("error", { detail: E }));
1850
+ }).catch((T) => {
1851
+ this.dispatchEvent(new CustomEvent("error", { detail: T }));
1852
1852
  });
1853
1853
  } catch (w) {
1854
1854
  throw ze(
@@ -1862,7 +1862,7 @@ class ao extends EventTarget {
1862
1862
  }
1863
1863
  async detect(i) {
1864
1864
  try {
1865
- const g = await Va(i);
1865
+ const g = await Ua(i);
1866
1866
  if (g === null)
1867
1867
  return [];
1868
1868
  let w;
@@ -1870,22 +1870,22 @@ class ao extends EventTarget {
1870
1870
  w = await to(g, {
1871
1871
  tryHarder: !0,
1872
1872
  formats: Be(this, bt).map(
1873
- (E) => ar.get(E)
1873
+ (T) => ar.get(T)
1874
1874
  )
1875
1875
  });
1876
- } catch {
1877
- throw new DOMException(
1878
- "Barcode detection service unavailable. Use 'setZXingModuleOverrides' in offline or strict CSP environments.",
1876
+ } catch (T) {
1877
+ throw console.error(T), new DOMException(
1878
+ "Barcode detection service unavailable.",
1879
1879
  "NotSupportedError"
1880
1880
  );
1881
1881
  }
1882
- return w.map((E) => {
1882
+ return w.map((T) => {
1883
1883
  const {
1884
1884
  topLeft: { x: M, y: Y },
1885
1885
  topRight: { x: B, y: j },
1886
1886
  bottomLeft: { x: N, y: X },
1887
- bottomRight: { x: V, y: U }
1888
- } = E.position, q = Math.min(M, B, N, V), dt = Math.min(Y, j, X, U), L = Math.max(M, B, N, V), W = Math.max(Y, j, X, U);
1887
+ bottomRight: { x: U, y: V }
1888
+ } = T.position, q = Math.min(M, B, N, U), dt = Math.min(Y, j, X, V), L = Math.max(M, B, N, U), W = Math.max(Y, j, X, V);
1889
1889
  return {
1890
1890
  boundingBox: new DOMRectReadOnly(
1891
1891
  q,
@@ -1893,8 +1893,8 @@ class ao extends EventTarget {
1893
1893
  L - q,
1894
1894
  W - dt
1895
1895
  ),
1896
- rawValue: new TextDecoder().decode(E.bytes),
1897
- format: eo(E.format),
1896
+ rawValue: new TextDecoder().decode(T.bytes),
1897
+ format: eo(T.format),
1898
1898
  cornerPoints: [
1899
1899
  {
1900
1900
  x: M,
@@ -1905,8 +1905,8 @@ class ao extends EventTarget {
1905
1905
  y: j
1906
1906
  },
1907
1907
  {
1908
- x: V,
1909
- y: U
1908
+ x: U,
1909
+ y: V
1910
1910
  },
1911
1911
  {
1912
1912
  x: N,