barcode-detector 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/zxing-wasm@3.0.2_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/share.js
1
+ //#region node_modules/.pnpm/zxing-wasm@3.1.0_@types+emscripten@1.41.5/node_modules/zxing-wasm/dist/es/share.js
2
2
  var e = [
3
3
  [
4
4
  "All",
@@ -264,6 +264,30 @@ var e = [
264
264
  37,
265
265
  "UPC-E"
266
266
  ],
267
+ [
268
+ "Telepen",
269
+ "B",
270
+ " ",
271
+ "lr I",
272
+ 32,
273
+ "Telepen"
274
+ ],
275
+ [
276
+ "TelepenAlpha",
277
+ "B",
278
+ "0",
279
+ "lr I",
280
+ 32,
281
+ "Telepen Alpha"
282
+ ],
283
+ [
284
+ "TelepenNumeric",
285
+ "B",
286
+ "1",
287
+ "lr I",
288
+ 87,
289
+ "Telepen Numeric"
290
+ ],
267
291
  [
268
292
  "OtherBarcode",
269
293
  "X",
@@ -300,7 +324,7 @@ var e = [
300
324
  "MicroPDF417",
301
325
  "L",
302
326
  "m",
303
- "m ",
327
+ "mr ",
304
328
  84,
305
329
  "MicroPDF417"
306
330
  ],
@@ -497,27 +521,27 @@ var _ = {
497
521
  addHRT: !1,
498
522
  addQuietZones: !0,
499
523
  options: ""
500
- }, ee = "3.0.2", te = "b304f6656b865be11b00741d430b7d0027bc0ab4", ne = { locateFile: (e, t) => {
524
+ }, ee = "3.1.0", v = "f5adf68706afd54e8e20ade3406d832e7ce72413", te = { locateFile: (e, t) => {
501
525
  let n = e.match(/_(.+?)\.wasm$/);
502
- return n ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.2/dist/${n[1]}/${e}` : t + e;
503
- } }, v = /* @__PURE__ */ new WeakMap();
504
- function re(e, t) {
526
+ return n ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.1.0/dist/${n[1]}/${e}` : t + e;
527
+ } }, y = /* @__PURE__ */ new WeakMap();
528
+ function ne(e, t) {
505
529
  return Object.is(e, t) || Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => Object.hasOwn(t, n) && e[n] === t[n]);
506
530
  }
507
- function ie(e, { overrides: t, equalityFn: n = re, fireImmediately: r = !1 } = {}) {
531
+ function re(e, { overrides: t, equalityFn: n = ne, fireImmediately: r = !1 } = {}) {
508
532
  var i, a;
509
- let [o, s] = (i = v.get(e)) == null ? [ne] : i, c = t == null ? o : t, l;
533
+ let [o, s] = (i = y.get(e)) == null ? [te] : i, c = t == null ? o : t, l;
510
534
  if (r) {
511
535
  if (s && (l = n(o, c))) return s;
512
536
  let t = e({ ...c });
513
- return v.set(e, [c, t]), t;
537
+ return y.set(e, [c, t]), t;
514
538
  }
515
- ((a = l) == null ? n(o, c) : a) || v.set(e, [c]);
539
+ ((a = l) == null ? n(o, c) : a) || y.set(e, [c]);
516
540
  }
517
- function ae(e) {
518
- v.delete(e);
541
+ function ie(e) {
542
+ y.delete(e);
519
543
  }
520
- function oe(e) {
544
+ function ae(e) {
521
545
  let t = e.byteLength >> 2, n = new Uint8Array(t);
522
546
  for (let r = 0; r < t; r++) {
523
547
  let t = r << 2;
@@ -525,13 +549,13 @@ function oe(e) {
525
549
  }
526
550
  return n;
527
551
  }
528
- async function y(e, t, n = m) {
552
+ async function b(e, t, n = m) {
529
553
  let r = {
530
554
  ...m,
531
555
  ...n
532
- }, i = await ie(e, { fireImmediately: !0 }), a, o;
556
+ }, i = await re(e, { fireImmediately: !0 }), a, o;
533
557
  if ("width" in t && "height" in t && "data" in t) {
534
- let { data: e, width: n, height: s } = t, c = oe(e), l = c.byteLength;
558
+ let { data: e, width: n, height: s } = t, c = ae(e), l = c.byteLength;
535
559
  if (o = i._malloc(l), !o) throw Error(`Failed to allocate ${l} bytes in WASM memory`);
536
560
  try {
537
561
  i.HEAPU8.set(c, o), a = i.readBarcodesFromPixmap(o, n, s, h(r));
@@ -557,8 +581,8 @@ async function y(e, t, n = m) {
557
581
  }
558
582
  ({ ...m }), [...m.formats], { ..._ };
559
583
  //#endregion
560
- //#region node_modules/.pnpm/zxing-wasm@3.0.2_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/reader/index.js
561
- async function se(e = {}) {
584
+ //#region node_modules/.pnpm/zxing-wasm@3.1.0_@types+emscripten@1.41.5/node_modules/zxing-wasm/dist/es/reader/index.js
585
+ async function oe(e = {}) {
562
586
  var t, n, r, i = e, a = !!globalThis.window, o = typeof Bun < "u", s = !!globalThis.WorkerGlobalScope;
563
587
  !((n = globalThis.process) == null || (n = n.versions) == null) && n.node && ((r = globalThis.process) == null || r.type);
564
588
  var c = "./this.program", l, u = "";
@@ -579,186 +603,186 @@ async function se(e = {}) {
579
603
  throw Error(t.status + " : " + t.url);
580
604
  };
581
605
  }
582
- var m = console.log.bind(console), h = console.error.bind(console), g, _ = !1, ee, te, ne = !1;
583
- function v() {
606
+ var m = console.log.bind(console), h = console.error.bind(console), g, _ = !1, ee, v, te = !1;
607
+ function y() {
584
608
  var e = Xn.buffer;
585
- C = new Int8Array(e), x = new Int16Array(e), i.HEAPU8 = E = new Uint8Array(e), w = new Uint16Array(e), S = new Int32Array(e), T = new Uint32Array(e), pe = new Float32Array(e), me = new Float64Array(e);
609
+ w = new Int8Array(e), S = new Int16Array(e), i.HEAPU8 = D = new Uint8Array(e), T = new Uint16Array(e), C = new Int32Array(e), E = new Uint32Array(e), fe = new Float32Array(e), pe = new Float64Array(e);
610
+ }
611
+ function ne() {
612
+ if (i.preRun) for (typeof i.preRun == "function" && (i.preRun = [i.preRun]); i.preRun.length;) ve(i.preRun.shift());
613
+ me(_e);
586
614
  }
587
615
  function re() {
588
- if (i.preRun) for (typeof i.preRun == "function" && (i.preRun = [i.preRun]); i.preRun.length;) ye(i.preRun.shift());
589
- he(ve);
616
+ te = !0, zr.Ba();
590
617
  }
591
618
  function ie() {
592
- ne = !0, $.Aa();
593
- }
594
- function ae() {
595
- if (i.postRun) for (typeof i.postRun == "function" && (i.postRun = [i.postRun]); i.postRun.length;) _e(i.postRun.shift());
596
- he(ge);
619
+ if (i.postRun) for (typeof i.postRun == "function" && (i.postRun = [i.postRun]); i.postRun.length;) ge(i.postRun.shift());
620
+ me(he);
597
621
  }
598
- function oe(e) {
622
+ function ae(e) {
599
623
  var t, n;
600
624
  (t = i.onAbort) == null || t.call(i, e), e = "Aborted(" + e + ")", h(e), _ = !0, e += ". Build with -sASSERTIONS for more info.";
601
625
  var r = new WebAssembly.RuntimeError(e);
602
- throw (n = te) == null || n(r), r;
626
+ throw (n = v) == null || n(r), r;
603
627
  }
604
- var y;
605
- function se() {
628
+ var b;
629
+ function oe() {
606
630
  return d("zxing_reader.wasm");
607
631
  }
608
- function b(e) {
609
- if (e == y && g) return new Uint8Array(g);
632
+ function x(e) {
633
+ if (e == b && g) return new Uint8Array(g);
610
634
  if (p) return p(e);
611
635
  throw "both async and sync fetching of the wasm failed";
612
636
  }
613
- async function ce(e) {
637
+ async function se(e) {
614
638
  if (!g) try {
615
639
  var t = await f(e);
616
640
  return new Uint8Array(t);
617
641
  } catch {}
618
- return b(e);
642
+ return x(e);
619
643
  }
620
- async function le(e, t) {
644
+ async function ce(e, t) {
621
645
  try {
622
- var n = await ce(e);
646
+ var n = await se(e);
623
647
  return await WebAssembly.instantiate(n, t);
624
648
  } catch (e) {
625
- h(`failed to asynchronously prepare wasm: ${e}`), oe(e);
649
+ h(`failed to asynchronously prepare wasm: ${e}`), ae(e);
626
650
  }
627
651
  }
628
- async function ue(e, t, n) {
652
+ async function le(e, t, n) {
629
653
  if (!e && WebAssembly.instantiateStreaming) try {
630
654
  var r = fetch(t, { credentials: "same-origin" });
631
655
  return await WebAssembly.instantiateStreaming(r, n);
632
656
  } catch (e) {
633
657
  h(`wasm streaming compile failed: ${e}`), h("falling back to ArrayBuffer instantiation");
634
658
  }
635
- return le(t, n);
659
+ return ce(t, n);
636
660
  }
637
- function de() {
661
+ function ue() {
638
662
  return { a: $n };
639
663
  }
640
- async function fe() {
664
+ async function de() {
641
665
  function e(e, t) {
642
- return $ = e.exports, Qn($), v(), $;
666
+ return zr = e.exports, Qn(zr), y(), zr;
643
667
  }
644
668
  function t(t) {
645
669
  return e(t.instance);
646
670
  }
647
- var n = de();
671
+ var n = ue();
648
672
  return i.instantiateWasm ? new Promise((t, r) => {
649
673
  i.instantiateWasm(n, (n, r) => {
650
674
  t(e(n, r));
651
675
  });
652
- }) : (y != null || (y = se()), t(await ue(g, y, n)));
676
+ }) : (b != null || (b = oe()), t(await le(g, b, n)));
653
677
  }
654
- var x, S, C, pe, me, w, T, E, he = (e) => {
678
+ var S, C, w, fe, pe, T, E, D, me = (e) => {
655
679
  for (; e.length > 0;) e.shift()(i);
656
- }, ge = [], _e = (e) => ge.push(e), ve = [], ye = (e) => ve.push(e), D = (e) => Un(e), O = () => Wn(), k = [], A = 0, be = (e) => {
657
- var t = new Se(e);
658
- return t.get_caught() || (t.set_caught(!0), A--), t.set_rethrown(!1), k.push(t), Vn(e);
659
- }, j = 0, xe = () => {
660
- Q(0, 0);
661
- var e = k.pop();
662
- Gn(e.excPtr), j = 0;
680
+ }, he = [], ge = (e) => he.push(e), _e = [], ve = (e) => _e.push(e), O = (e) => Hn(e), k = () => Un(), A = [], j = 0, ye = (e) => {
681
+ var t = new xe(e);
682
+ return t.get_caught() || (t.set_caught(!0), j--), t.set_rethrown(!1), A.push(t), Bn(e);
683
+ }, M = 0, be = () => {
684
+ $(0, 0);
685
+ var e = A.pop();
686
+ Wn(e.excPtr), M = 0;
663
687
  };
664
- class Se {
688
+ class xe {
665
689
  constructor(e) {
666
690
  this.excPtr = e, this.ptr = e - 24;
667
691
  }
668
692
  set_type(e) {
669
- T[this.ptr + 4 >> 2] = e;
693
+ E[this.ptr + 4 >> 2] = e;
670
694
  }
671
695
  get_type() {
672
- return T[this.ptr + 4 >> 2];
696
+ return E[this.ptr + 4 >> 2];
673
697
  }
674
698
  set_destructor(e) {
675
- T[this.ptr + 8 >> 2] = e;
699
+ E[this.ptr + 8 >> 2] = e;
676
700
  }
677
701
  get_destructor() {
678
- return T[this.ptr + 8 >> 2];
702
+ return E[this.ptr + 8 >> 2];
679
703
  }
680
704
  set_caught(e) {
681
- e = e ? 1 : 0, C[this.ptr + 12] = e;
705
+ e = +!!e, w[this.ptr + 12] = e;
682
706
  }
683
707
  get_caught() {
684
- return C[this.ptr + 12] != 0;
708
+ return w[this.ptr + 12] != 0;
685
709
  }
686
710
  set_rethrown(e) {
687
- e = e ? 1 : 0, C[this.ptr + 13] = e;
711
+ e = +!!e, w[this.ptr + 13] = e;
688
712
  }
689
713
  get_rethrown() {
690
- return C[this.ptr + 13] != 0;
714
+ return w[this.ptr + 13] != 0;
691
715
  }
692
716
  init(e, t) {
693
717
  this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t);
694
718
  }
695
719
  set_adjusted_ptr(e) {
696
- T[this.ptr + 16 >> 2] = e;
720
+ E[this.ptr + 16 >> 2] = e;
697
721
  }
698
722
  get_adjusted_ptr() {
699
- return T[this.ptr + 16 >> 2];
723
+ return E[this.ptr + 16 >> 2];
700
724
  }
701
725
  }
702
- var M = (e) => Hn(e), Ce = (e) => {
703
- var t = j;
704
- if (!t) return M(0), 0;
705
- var n = new Se(t);
726
+ var N = (e) => Vn(e), Se = (e) => {
727
+ var t = M;
728
+ if (!t) return N(0), 0;
729
+ var n = new xe(t);
706
730
  n.set_adjusted_ptr(t);
707
731
  var r = n.get_type();
708
- if (!r) return M(0), t;
732
+ if (!r) return N(0), t;
709
733
  for (var i of e) {
710
734
  if (i === 0 || i === r) break;
711
735
  var a = n.ptr + 16;
712
- if (qn(i, r, a)) return M(i), t;
736
+ if (Kn(i, r, a)) return N(i), t;
713
737
  }
714
- return M(r), t;
715
- }, we = () => Ce([]), Te = (e) => Ce([e]), Ee = (e, t) => Ce([e, t]), De = () => {
716
- var e = k.pop();
717
- e || oe("no exception to throw");
738
+ return N(r), t;
739
+ }, Ce = () => Se([]), we = (e) => Se([e]), Te = (e, t) => Se([e, t]), Ee = () => {
740
+ var e = A.pop();
741
+ e || ae("no exception to throw");
718
742
  var t = e.excPtr;
719
- throw e.get_rethrown() || (k.push(e), e.set_rethrown(!0), e.set_caught(!1), A++), Kn(t), j = t, j;
720
- }, Oe = (e, t, n) => {
721
- throw new Se(e).init(t, n), Kn(e), j = e, A++, j;
722
- }, ke = () => A, Ae = (e) => {
723
- throw j || (j = e), j;
724
- }, je = () => oe(""), N = {}, Me = (e) => {
743
+ throw e.get_rethrown() || (A.push(e), e.set_rethrown(!0), e.set_caught(!1), j++), Gn(t), M = t, M;
744
+ }, De = (e, t, n) => {
745
+ throw new xe(e).init(t, n), Gn(e), M = e, j++, M;
746
+ }, Oe = () => j, ke = (e) => {
747
+ throw M || (M = e), M;
748
+ }, Ae = () => ae(""), P = {}, je = (e) => {
725
749
  for (; e.length;) {
726
750
  var t = e.pop();
727
751
  e.pop()(t);
728
752
  }
729
753
  };
730
- function P(e) {
731
- return this.fromWireType(T[e >> 2]);
754
+ function F(e) {
755
+ return this.fromWireType(E[e >> 2]);
732
756
  }
733
- var F = {}, I = {}, L = {}, Ne = class extends Error {
757
+ var I = {}, L = {}, R = {}, Me = class extends Error {
734
758
  constructor(e) {
735
759
  super(e), this.name = "InternalError";
736
760
  }
737
- }, Pe = (e) => {
738
- throw new Ne(e);
739
- }, R = (e, t, n) => {
740
- e.forEach((e) => L[e] = t);
761
+ }, Ne = (e) => {
762
+ throw new Me(e);
763
+ }, z = (e, t, n) => {
764
+ e.forEach((e) => R[e] = t);
741
765
  function r(t) {
742
766
  var r = n(t);
743
- r.length !== e.length && Pe("Mismatched type converter count");
744
- for (var i = 0; i < e.length; ++i) H(e[i], r[i]);
767
+ r.length !== e.length && Ne("Mismatched type converter count");
768
+ for (var i = 0; i < e.length; ++i) U(e[i], r[i]);
745
769
  }
746
770
  var i = Array(t.length), a = [], o = 0;
747
771
  {
748
772
  let e = t;
749
773
  for (let t = 0; t < e.length; ++t) {
750
774
  let n = e[t];
751
- I.hasOwnProperty(n) ? i[t] = I[n] : (a.push(n), F.hasOwnProperty(n) || (F[n] = []), F[n].push(() => {
752
- i[t] = I[n], ++o, o === a.length && r(i);
775
+ L.hasOwnProperty(n) ? i[t] = L[n] : (a.push(n), I.hasOwnProperty(n) || (I[n] = []), I[n].push(() => {
776
+ i[t] = L[n], ++o, o === a.length && r(i);
753
777
  }));
754
778
  }
755
779
  }
756
780
  a.length === 0 && r(i);
757
- }, Fe = (e) => {
758
- var t = N[e];
759
- delete N[e];
781
+ }, Pe = (e) => {
782
+ var t = P[e];
783
+ delete P[e];
760
784
  var n = t.rawConstructor, r = t.rawDestructor, i = t.fields, a = i.map((e) => e.getterReturnType).concat(i.map((e) => e.setterArgumentType));
761
- R([e], a, (e) => {
785
+ z([e], a, (e) => {
762
786
  var a = {};
763
787
  {
764
788
  let t = i;
@@ -768,7 +792,7 @@ async function se(e = {}) {
768
792
  read: (e) => o.fromWireType(s(c, e)),
769
793
  write: (e, t) => {
770
794
  var n = [];
771
- u(d, e, l.toWireType(n, t)), Me(n);
795
+ u(d, e, l.toWireType(n, t)), je(n);
772
796
  },
773
797
  optional: o.optional
774
798
  };
@@ -787,40 +811,40 @@ async function se(e = {}) {
787
811
  for (i in a) a[i].write(o, t[i]);
788
812
  return e !== null && e.push(r, o), o;
789
813
  },
790
- readValueFromPointer: P,
814
+ readValueFromPointer: F,
791
815
  destructorFunction: r
792
816
  }];
793
817
  });
794
- }, Ie = (e, t, n, r, i) => {}, z = (e) => {
818
+ }, Fe = (e, t, n, r, i) => {}, B = (e) => {
795
819
  for (var t = "";;) {
796
- var n = E[e++];
820
+ var n = D[e++];
797
821
  if (!n) return t;
798
822
  t += String.fromCharCode(n);
799
823
  }
800
- }, B = class extends Error {
824
+ }, V = class extends Error {
801
825
  constructor(e) {
802
826
  super(e), this.name = "BindingError";
803
827
  }
804
- }, V = (e) => {
805
- throw new B(e);
828
+ }, H = (e) => {
829
+ throw new V(e);
806
830
  };
807
- function Le(e, t) {
831
+ function Ie(e, t) {
808
832
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
809
833
  var r = t.name;
810
- if (e || V(`type "${r}" must have a positive integer typeid pointer`), I.hasOwnProperty(e)) {
834
+ if (e || H(`type "${r}" must have a positive integer typeid pointer`), L.hasOwnProperty(e)) {
811
835
  if (n.ignoreDuplicateRegistrations) return;
812
- V(`Cannot register type '${r}' twice`);
836
+ H(`Cannot register type '${r}' twice`);
813
837
  }
814
- if (I[e] = t, delete L[e], F.hasOwnProperty(e)) {
815
- var i = F[e];
816
- delete F[e], i.forEach((e) => e());
838
+ if (L[e] = t, delete R[e], I.hasOwnProperty(e)) {
839
+ var i = I[e];
840
+ delete I[e], i.forEach((e) => e());
817
841
  }
818
842
  }
819
- function H(e, t) {
820
- return Le(e, t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
843
+ function U(e, t) {
844
+ return Ie(e, t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
821
845
  }
822
- var Re = (e, t, n, r) => {
823
- t = z(t), H(e, {
846
+ var Le = (e, t, n, r) => {
847
+ t = B(t), U(e, {
824
848
  name: t,
825
849
  fromWireType: function(e) {
826
850
  return !!e;
@@ -829,11 +853,11 @@ async function se(e = {}) {
829
853
  return t ? n : r;
830
854
  },
831
855
  readValueFromPointer: function(e) {
832
- return this.fromWireType(E[e]);
856
+ return this.fromWireType(D[e]);
833
857
  },
834
858
  destructorFunction: null
835
859
  });
836
- }, ze = (e) => ({
860
+ }, Re = (e) => ({
837
861
  count: e.count,
838
862
  deleteScheduled: e.deleteScheduled,
839
863
  preservePointerOnDelete: e.preservePointerOnDelete,
@@ -841,34 +865,34 @@ async function se(e = {}) {
841
865
  ptrType: e.ptrType,
842
866
  smartPtr: e.smartPtr,
843
867
  smartPtrType: e.smartPtrType
844
- }), Be = (e) => {
868
+ }), ze = (e) => {
845
869
  function t(e) {
846
870
  return e.$$.ptrType.registeredClass.name;
847
871
  }
848
- V(t(e) + " instance already deleted");
849
- }, Ve = !1, He = (e) => {}, Ue = (e) => {
872
+ H(t(e) + " instance already deleted");
873
+ }, Be = !1, Ve = (e) => {}, He = (e) => {
850
874
  e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
851
- }, We = (e) => {
852
- --e.count.value, e.count.value === 0 && Ue(e);
853
- }, U = (e) => globalThis.FinalizationRegistry ? (Ve = new FinalizationRegistry((e) => {
854
- We(e.$$);
855
- }), U = (e) => {
875
+ }, Ue = (e) => {
876
+ --e.count.value, e.count.value === 0 && He(e);
877
+ }, W = (e) => globalThis.FinalizationRegistry ? (Be = new FinalizationRegistry((e) => {
878
+ Ue(e.$$);
879
+ }), W = (e) => {
856
880
  var t = e.$$;
857
881
  if (t.smartPtr) {
858
882
  var n = { $$: t };
859
- Ve.register(e, n, e);
883
+ Be.register(e, n, e);
860
884
  }
861
885
  return e;
862
- }, He = (e) => Ve.unregister(e), U(e)) : (U = (e) => e, e), Ge = [], Ke = () => {
863
- for (; Ge.length;) {
864
- var e = Ge.pop();
886
+ }, Ve = (e) => Be.unregister(e), W(e)) : (W = (e) => e, e), We = [], Ge = () => {
887
+ for (; We.length;) {
888
+ var e = We.pop();
865
889
  e.$$.deleteScheduled = !1, e.delete();
866
890
  }
867
- }, qe, Je = () => {
868
- let e = Ye.prototype;
891
+ }, Ke, qe = () => {
892
+ let e = Je.prototype;
869
893
  Object.assign(e, {
870
894
  isAliasOf(e) {
871
- if (!(this instanceof Ye) || !(e instanceof Ye)) return !1;
895
+ if (!(this instanceof Je) || !(e instanceof Je)) return !1;
872
896
  var t = this.$$.ptrType.registeredClass, n = this.$$.ptr;
873
897
  e.$$ = e.$$;
874
898
  for (var r = e.$$.ptrType.registeredClass, i = e.$$.ptr; t.baseClass;) n = t.upcast(n), t = t.baseClass;
@@ -876,64 +900,64 @@ async function se(e = {}) {
876
900
  return t === r && n === i;
877
901
  },
878
902
  clone() {
879
- if (this.$$.ptr || Be(this), this.$$.preservePointerOnDelete) return this.$$.count.value += 1, this;
880
- var e = U(Object.create(Object.getPrototypeOf(this), { $$: { value: ze(this.$$) } }));
903
+ if (this.$$.ptr || ze(this), this.$$.preservePointerOnDelete) return this.$$.count.value += 1, this;
904
+ var e = W(Object.create(Object.getPrototypeOf(this), { $$: { value: Re(this.$$) } }));
881
905
  return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
882
906
  },
883
907
  delete() {
884
- this.$$.ptr || Be(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && V("Object already scheduled for deletion"), He(this), We(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
908
+ this.$$.ptr || ze(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && H("Object already scheduled for deletion"), Ve(this), Ue(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
885
909
  },
886
910
  isDeleted() {
887
911
  return !this.$$.ptr;
888
912
  },
889
913
  deleteLater() {
890
- return this.$$.ptr || Be(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && V("Object already scheduled for deletion"), Ge.push(this), Ge.length === 1 && qe && qe(Ke), this.$$.deleteScheduled = !0, this;
914
+ return this.$$.ptr || ze(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && H("Object already scheduled for deletion"), We.push(this), We.length === 1 && Ke && Ke(Ge), this.$$.deleteScheduled = !0, this;
891
915
  }
892
916
  });
893
917
  let t = Symbol.dispose;
894
918
  t && (e[t] = e.delete);
895
919
  };
896
- function Ye() {}
897
- var Xe = (e, t) => Object.defineProperty(t, "name", { value: e }), Ze = {}, Qe = (e, t, n) => {
920
+ function Je() {}
921
+ var Ye = (e, t) => Object.defineProperty(t, "name", { value: e }), Xe = {}, Ze = (e, t, n) => {
898
922
  if (e[t].overloadTable === void 0) {
899
923
  var r = e[t];
900
924
  e[t] = function() {
901
925
  var r = [...arguments];
902
- return e[t].overloadTable.hasOwnProperty(r.length) || V(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[r.length].apply(this, r);
926
+ return e[t].overloadTable.hasOwnProperty(r.length) || H(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[r.length].apply(this, r);
903
927
  }, e[t].overloadTable = [], e[t].overloadTable[r.argCount] = r;
904
928
  }
905
- }, $e = (e, t, n) => {
906
- i.hasOwnProperty(e) ? ((n === void 0 || i[e].overloadTable !== void 0 && i[e].overloadTable[n] !== void 0) && V(`Cannot register public name '${e}' twice`), Qe(i, e, e), i[e].overloadTable.hasOwnProperty(n) && V(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`), i[e].overloadTable[n] = t) : (i[e] = t, i[e].argCount = n);
907
- }, et = 48, tt = 57, nt = (e) => {
929
+ }, Qe = (e, t, n) => {
930
+ i.hasOwnProperty(e) ? ((n === void 0 || i[e].overloadTable !== void 0 && i[e].overloadTable[n] !== void 0) && H(`Cannot register public name '${e}' twice`), Ze(i, e, e), i[e].overloadTable.hasOwnProperty(n) && H(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`), i[e].overloadTable[n] = t) : (i[e] = t, i[e].argCount = n);
931
+ }, $e = 48, et = 57, tt = (e) => {
908
932
  e = e.replace(/[^a-zA-Z0-9_]/g, "$");
909
933
  var t = e.charCodeAt(0);
910
- return t >= et && t <= tt ? `_${e}` : e;
934
+ return t >= $e && t <= et ? `_${e}` : e;
911
935
  };
912
- function rt(e, t, n, r, i, a, o, s) {
936
+ function nt(e, t, n, r, i, a, o, s) {
913
937
  this.name = e, this.constructor = t, this.instancePrototype = n, this.rawDestructor = r, this.baseClass = i, this.getActualType = a, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];
914
938
  }
915
- var it = (e, t, n) => {
916
- for (; t !== n;) t.upcast || V(`Expected null or instance of ${n.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
939
+ var rt = (e, t, n) => {
940
+ for (; t !== n;) t.upcast || H(`Expected null or instance of ${n.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
917
941
  return e;
918
- }, at = (e) => {
942
+ }, it = (e) => {
919
943
  if (e === null) return "null";
920
944
  var t = typeof e;
921
945
  return t === "object" || t === "array" || t === "function" ? e.toString() : "" + e;
922
946
  };
923
- function ot(e, t) {
924
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), 0;
925
- t.$$ || V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`);
947
+ function at(e, t) {
948
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), 0;
949
+ t.$$ || H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`);
926
950
  var n = t.$$.ptrType.registeredClass;
927
- return it(t.$$.ptr, n, this.registeredClass);
951
+ return rt(t.$$.ptr, n, this.registeredClass);
928
952
  }
929
- function st(e, t) {
953
+ function ot(e, t) {
930
954
  var n;
931
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), this.isSmartPointer ? (n = this.rawConstructor(), e !== null && e.push(this.rawDestructor, n), n) : 0;
932
- (!t || !t.$$) && V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && V(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
955
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), this.isSmartPointer ? (n = this.rawConstructor(), e !== null && e.push(this.rawDestructor, n), n) : 0;
956
+ (!t || !t.$$) && H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && H(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
933
957
  var r = t.$$.ptrType.registeredClass;
934
- if (n = it(t.$$.ptr, r, this.registeredClass), this.isSmartPointer) switch (t.$$.smartPtr === void 0 && V("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
958
+ if (n = rt(t.$$.ptr, r, this.registeredClass), this.isSmartPointer) switch (t.$$.smartPtr === void 0 && H("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
935
959
  case 0:
936
- t.$$.smartPtrType === this ? n = t.$$.smartPtr : V(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
960
+ t.$$.smartPtrType === this ? n = t.$$.smartPtr : H(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
937
961
  break;
938
962
  case 1:
939
963
  n = t.$$.smartPtr;
@@ -942,66 +966,66 @@ async function se(e = {}) {
942
966
  if (t.$$.smartPtrType === this) n = t.$$.smartPtr;
943
967
  else {
944
968
  var i = t.clone();
945
- n = this.rawShare(n, J.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, n);
969
+ n = this.rawShare(n, Y.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, n);
946
970
  }
947
971
  break;
948
- default: V("Unsupported sharing policy");
972
+ default: H("Unsupported sharing policy");
949
973
  }
950
974
  return n;
951
975
  }
952
- function ct(e, t) {
953
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), 0;
954
- t.$$ || V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && V(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
976
+ function st(e, t) {
977
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), 0;
978
+ t.$$ || H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && H(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
955
979
  var n = t.$$.ptrType.registeredClass;
956
- return it(t.$$.ptr, n, this.registeredClass);
980
+ return rt(t.$$.ptr, n, this.registeredClass);
957
981
  }
958
- var lt = (e, t, n) => {
982
+ var ct = (e, t, n) => {
959
983
  if (t === n) return e;
960
984
  if (n.baseClass === void 0) return null;
961
- var r = lt(e, t, n.baseClass);
985
+ var r = ct(e, t, n.baseClass);
962
986
  return r === null ? null : n.downcast(r);
963
- }, ut = {}, dt = (e, t) => {
964
- for (t === void 0 && V("ptr should not be undefined"); e.baseClass;) t = e.upcast(t), e = e.baseClass;
987
+ }, lt = {}, ut = (e, t) => {
988
+ for (t === void 0 && H("ptr should not be undefined"); e.baseClass;) t = e.upcast(t), e = e.baseClass;
965
989
  return t;
966
- }, ft = (e, t) => (t = dt(e, t), ut[t]), pt = (e, t) => ((!t.ptrType || !t.ptr) && Pe("makeClassHandle requires ptr and ptrType"), !!t.smartPtrType != !!t.smartPtr && Pe("Both smartPtrType and smartPtr must be specified"), t.count = { value: 1 }, U(Object.create(e, { $$: {
990
+ }, dt = (e, t) => (t = ut(e, t), lt[t]), ft = (e, t) => ((!t.ptrType || !t.ptr) && Ne("makeClassHandle requires ptr and ptrType"), !!t.smartPtrType != !!t.smartPtr && Ne("Both smartPtrType and smartPtr must be specified"), t.count = { value: 1 }, W(Object.create(e, { $$: {
967
991
  value: t,
968
992
  writable: !0
969
993
  } })));
970
- function mt(e) {
994
+ function pt(e) {
971
995
  var t = this.getPointee(e);
972
996
  if (!t) return this.destructor(e), null;
973
- var n = ft(this.registeredClass, t);
997
+ var n = dt(this.registeredClass, t);
974
998
  if (n !== void 0) {
975
999
  if (n.$$.count.value === 0) return n.$$.ptr = t, n.$$.smartPtr = e, n.clone();
976
1000
  var r = n.clone();
977
1001
  return this.destructor(e), r;
978
1002
  }
979
1003
  function i() {
980
- return this.isSmartPointer ? pt(this.registeredClass.instancePrototype, {
1004
+ return this.isSmartPointer ? ft(this.registeredClass.instancePrototype, {
981
1005
  ptrType: this.pointeeType,
982
1006
  ptr: t,
983
1007
  smartPtrType: this,
984
1008
  smartPtr: e
985
- }) : pt(this.registeredClass.instancePrototype, {
1009
+ }) : ft(this.registeredClass.instancePrototype, {
986
1010
  ptrType: this,
987
1011
  ptr: e
988
1012
  });
989
1013
  }
990
- var a = Ze[this.registeredClass.getActualType(t)];
1014
+ var a = Xe[this.registeredClass.getActualType(t)];
991
1015
  if (!a) return i.call(this);
992
- var o = this.isConst ? a.constPointerType : a.pointerType, s = lt(t, this.registeredClass, o.registeredClass);
993
- return s === null ? i.call(this) : this.isSmartPointer ? pt(o.registeredClass.instancePrototype, {
1016
+ var o = this.isConst ? a.constPointerType : a.pointerType, s = ct(t, this.registeredClass, o.registeredClass);
1017
+ return s === null ? i.call(this) : this.isSmartPointer ? ft(o.registeredClass.instancePrototype, {
994
1018
  ptrType: o,
995
1019
  ptr: s,
996
1020
  smartPtrType: this,
997
1021
  smartPtr: e
998
- }) : pt(o.registeredClass.instancePrototype, {
1022
+ }) : ft(o.registeredClass.instancePrototype, {
999
1023
  ptrType: o,
1000
1024
  ptr: s
1001
1025
  });
1002
1026
  }
1003
- var ht = () => {
1004
- Object.assign(gt.prototype, {
1027
+ var mt = () => {
1028
+ Object.assign(ht.prototype, {
1005
1029
  getPointee(e) {
1006
1030
  return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
1007
1031
  },
@@ -1009,115 +1033,115 @@ async function se(e = {}) {
1009
1033
  var t;
1010
1034
  (t = this.rawDestructor) == null || t.call(this, e);
1011
1035
  },
1012
- readValueFromPointer: P,
1013
- fromWireType: mt
1036
+ readValueFromPointer: F,
1037
+ fromWireType: pt
1014
1038
  });
1015
1039
  };
1016
- function gt(e, t, n, r, i, a, o, s, c, l, u) {
1017
- this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = r, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = c, this.rawShare = l, this.rawDestructor = u, !i && t.baseClass === void 0 ? r ? (this.toWireType = ot, this.destructorFunction = null) : (this.toWireType = ct, this.destructorFunction = null) : this.toWireType = st;
1040
+ function ht(e, t, n, r, i, a, o, s, c, l, u) {
1041
+ this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = r, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = c, this.rawShare = l, this.rawDestructor = u, !i && t.baseClass === void 0 ? r ? (this.toWireType = at, this.destructorFunction = null) : (this.toWireType = st, this.destructorFunction = null) : this.toWireType = ot;
1018
1042
  }
1019
- var _t = (e, t, n) => {
1020
- i.hasOwnProperty(e) || Pe("Replacing nonexistent public symbol"), i[e].overloadTable !== void 0 && n !== void 0 ? i[e].overloadTable[n] = t : (i[e] = t, i[e].argCount = n);
1021
- }, W = {}, vt = (e, t, n) => {
1043
+ var gt = (e, t, n) => {
1044
+ i.hasOwnProperty(e) || Ne("Replacing nonexistent public symbol"), i[e].overloadTable !== void 0 && n !== void 0 ? i[e].overloadTable[n] = t : (i[e] = t, i[e].argCount = n);
1045
+ }, G = {}, _t = (e, t, n) => {
1022
1046
  e = e.replace(/p/g, "i");
1023
- var r = W[e];
1047
+ var r = G[e];
1024
1048
  return r(t, ...n);
1025
- }, yt = [], G = (e) => {
1026
- var t = yt[e];
1027
- return t || (yt[e] = t = Zn.get(e)), t;
1028
- }, bt = function(e, t) {
1049
+ }, vt = [], K = (e) => {
1050
+ var t = vt[e];
1051
+ return t || (vt[e] = t = Zn.get(e)), t;
1052
+ }, yt = function(e, t) {
1029
1053
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
1030
- if (arguments.length > 3 && arguments[3] !== void 0 && arguments[3], e.includes("j")) return vt(e, t, n);
1031
- var r = G(t)(...n);
1054
+ if (arguments.length > 3 && arguments[3] !== void 0 && arguments[3], e.includes("j")) return _t(e, t, n);
1055
+ var r = K(t)(...n);
1032
1056
  function i(e) {
1033
1057
  return e;
1034
1058
  }
1035
1059
  return i(r);
1036
- }, xt = function(e, t) {
1060
+ }, bt = function(e, t) {
1037
1061
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
1038
1062
  return function() {
1039
- return bt(e, t, [...arguments], n);
1063
+ return yt(e, t, [...arguments], n);
1040
1064
  };
1041
- }, K = function(e, t) {
1042
- arguments.length > 2 && arguments[2] !== void 0 && arguments[2], e = z(e);
1065
+ }, q = function(e, t) {
1066
+ arguments.length > 2 && arguments[2] !== void 0 && arguments[2], e = B(e);
1043
1067
  function n() {
1044
- return e.includes("j") ? xt(e, t) : G(t);
1068
+ return e.includes("j") ? bt(e, t) : K(t);
1045
1069
  }
1046
1070
  var r = n();
1047
- return typeof r != "function" && V(`unknown function pointer with signature ${e}: ${t}`), r;
1071
+ return typeof r != "function" && H(`unknown function pointer with signature ${e}: ${t}`), r;
1048
1072
  };
1049
- class St extends Error {}
1050
- var Ct = (e) => {
1051
- var t = zn(e), n = z(t);
1052
- return Z(t), n;
1053
- }, wt = (e, t) => {
1073
+ class xt extends Error {}
1074
+ var St = (e) => {
1075
+ var t = Rn(e), n = B(t);
1076
+ return Q(t), n;
1077
+ }, Ct = (e, t) => {
1054
1078
  var n = [], r = {};
1055
1079
  function i(e) {
1056
- if (!r[e] && !I[e]) {
1057
- if (L[e]) {
1058
- L[e].forEach(i);
1080
+ if (!r[e] && !L[e]) {
1081
+ if (R[e]) {
1082
+ R[e].forEach(i);
1059
1083
  return;
1060
1084
  }
1061
1085
  n.push(e), r[e] = !0;
1062
1086
  }
1063
1087
  }
1064
- throw t.forEach(i), new St(`${e}: ` + n.map(Ct).join([", "]));
1065
- }, Tt = (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
1066
- u = z(u), a = K(i, a), s && (s = K(o, s)), l && (l = K(c, l)), f = K(d, f);
1067
- var p = nt(u);
1068
- $e(p, function() {
1069
- wt(`Cannot construct ${u} due to unbound types`, [r]);
1070
- }), R([
1088
+ throw t.forEach(i), new xt(`${e}: ` + n.map(St).join([", "]));
1089
+ }, wt = (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
1090
+ u = B(u), a = q(i, a), s && (s = q(o, s)), l && (l = q(c, l)), f = q(d, f);
1091
+ var p = tt(u);
1092
+ Qe(p, function() {
1093
+ Ct(`Cannot construct ${u} due to unbound types`, [r]);
1094
+ }), z([
1071
1095
  e,
1072
1096
  t,
1073
1097
  n
1074
1098
  ], r ? [r] : [], (t) => {
1075
1099
  t = t[0];
1076
1100
  var n, i;
1077
- r ? (n = t.registeredClass, i = n.instancePrototype) : i = Ye.prototype;
1078
- var o = Xe(u, function() {
1079
- if (Object.getPrototypeOf(this) !== c) throw new B(`Use 'new' to construct ${u}`);
1080
- if (d.constructor_body === void 0) throw new B(`${u} has no accessible constructor`);
1101
+ r ? (n = t.registeredClass, i = n.instancePrototype) : i = Je.prototype;
1102
+ var o = Ye(u, function() {
1103
+ if (Object.getPrototypeOf(this) !== c) throw new V(`Use 'new' to construct ${u}`);
1104
+ if (d.constructor_body === void 0) throw new V(`${u} has no accessible constructor`);
1081
1105
  var e = [...arguments], t = d.constructor_body[e.length];
1082
- if (t === void 0) throw new B(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
1106
+ if (t === void 0) throw new V(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
1083
1107
  return t.apply(this, e);
1084
1108
  }), c = Object.create(i, { constructor: { value: o } });
1085
1109
  o.prototype = c;
1086
- var d = new rt(u, o, c, f, n, a, s, l);
1110
+ var d = new nt(u, o, c, f, n, a, s, l);
1087
1111
  if (d.baseClass) {
1088
1112
  var m;
1089
1113
  (m = d.baseClass).__derivedClasses != null || (m.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
1090
1114
  }
1091
- var h = new gt(u, d, !0, !1, !1), g = new gt(u + "*", d, !1, !1, !1), _ = new gt(u + " const*", d, !1, !0, !1);
1092
- return Ze[e] = {
1115
+ var h = new ht(u, d, !0, !1, !1), g = new ht(u + "*", d, !1, !1, !1), _ = new ht(u + " const*", d, !1, !0, !1);
1116
+ return Xe[e] = {
1093
1117
  pointerType: g,
1094
1118
  constPointerType: _
1095
- }, _t(p, o), [
1119
+ }, gt(p, o), [
1096
1120
  h,
1097
1121
  g,
1098
1122
  _
1099
1123
  ];
1100
1124
  });
1101
- }, Et = (e, t) => {
1102
- for (var n = [], r = 0; r < e; r++) n.push(T[t + r * 4 >> 2]);
1125
+ }, Tt = (e, t) => {
1126
+ for (var n = [], r = 0; r < e; r++) n.push(E[t + r * 4 >> 2]);
1103
1127
  return n;
1104
1128
  };
1105
- function Dt(e) {
1129
+ function Et(e) {
1106
1130
  for (var t = 1; t < e.length; ++t) if (e[t] !== null && e[t].destructorFunction === void 0) return !0;
1107
1131
  return !1;
1108
1132
  }
1109
- function Ot(e, t, n, r, i, a) {
1133
+ function Dt(e, t, n, r, i, a) {
1110
1134
  var o = t.length;
1111
- o < 2 && V("argTypes array size mismatch! Must at least get return value and 'this' types!");
1112
- var s = t[1] !== null && n !== null, c = Dt(t), l = !t[0].isVoid, u = o - 2, d = Array(u), f = [], p = [];
1113
- return Xe(e, function() {
1135
+ o < 2 && H("argTypes array size mismatch! Must at least get return value and 'this' types!");
1136
+ var s = t[1] !== null && n !== null, c = Et(t), l = !t[0].isVoid, u = o - 2, d = Array(u), f = [], p = [];
1137
+ return Ye(e, function() {
1114
1138
  p.length = 0;
1115
1139
  var e;
1116
1140
  f.length = s ? 2 : 1, f[0] = i, s && (e = t[1].toWireType(p, this), f[1] = e);
1117
1141
  for (var n = 0; n < u; ++n) d[n] = t[n + 2].toWireType(p, n < 0 || arguments.length <= n ? void 0 : arguments[n]), f.push(d[n]);
1118
1142
  var a = r(...f);
1119
1143
  function o(n) {
1120
- if (c) Me(p);
1144
+ if (c) je(p);
1121
1145
  else for (var r = s ? 1 : 2; r < t.length; r++) {
1122
1146
  var i = r === 1 ? e : d[r - 2];
1123
1147
  t[r].destructorFunction !== null && t[r].destructorFunction(i);
@@ -1127,36 +1151,36 @@ async function se(e = {}) {
1127
1151
  return o(a);
1128
1152
  });
1129
1153
  }
1130
- var kt = (e, t, n, r, i, a) => {
1131
- var o = Et(t, n);
1132
- i = K(r, i), R([], [e], (e) => {
1154
+ var Ot = (e, t, n, r, i, a) => {
1155
+ var o = Tt(t, n);
1156
+ i = q(r, i), z([], [e], (e) => {
1133
1157
  e = e[0];
1134
1158
  var n = `constructor ${e.name}`;
1135
- if (e.registeredClass.constructor_body === void 0 && (e.registeredClass.constructor_body = []), e.registeredClass.constructor_body[t - 1] !== void 0) throw new B(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1159
+ if (e.registeredClass.constructor_body === void 0 && (e.registeredClass.constructor_body = []), e.registeredClass.constructor_body[t - 1] !== void 0) throw new V(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1136
1160
  return e.registeredClass.constructor_body[t - 1] = () => {
1137
- wt(`Cannot construct ${e.name} due to unbound types`, o);
1138
- }, R([], o, (r) => (r.splice(1, 0, null), e.registeredClass.constructor_body[t - 1] = Ot(n, r, null, i, a), [])), [];
1161
+ Ct(`Cannot construct ${e.name} due to unbound types`, o);
1162
+ }, z([], o, (r) => (r.splice(1, 0, null), e.registeredClass.constructor_body[t - 1] = Dt(n, r, null, i, a), [])), [];
1139
1163
  });
1140
- }, At = (e) => {
1164
+ }, kt = (e) => {
1141
1165
  e = e.trim();
1142
1166
  let t = e.indexOf("(");
1143
1167
  return t === -1 ? e : e.slice(0, t);
1144
- }, jt = (e, t, n, r, i, a, o, s, c, l) => {
1145
- var u = Et(n, r);
1146
- t = z(t), t = At(t), a = K(i, a, c), R([], [e], (e) => {
1168
+ }, At = (e, t, n, r, i, a, o, s, c, l) => {
1169
+ var u = Tt(n, r);
1170
+ t = B(t), t = kt(t), a = q(i, a, c), z([], [e], (e) => {
1147
1171
  e = e[0];
1148
1172
  var r = `${e.name}.${t}`;
1149
1173
  t.startsWith("@@") && (t = Symbol[t.substring(2)]), s && e.registeredClass.pureVirtualFunctions.push(t);
1150
1174
  function i() {
1151
- wt(`Cannot call ${r} due to unbound types`, u);
1175
+ Ct(`Cannot call ${r} due to unbound types`, u);
1152
1176
  }
1153
1177
  var l = e.registeredClass.instancePrototype, d = l[t];
1154
- return d === void 0 || d.overloadTable === void 0 && d.className !== e.name && d.argCount === n - 2 ? (i.argCount = n - 2, i.className = e.name, l[t] = i) : (Qe(l, t, r), l[t].overloadTable[n - 2] = i), R([], u, (i) => {
1155
- var s = Ot(r, i, e, a, o, c);
1178
+ return d === void 0 || d.overloadTable === void 0 && d.className !== e.name && d.argCount === n - 2 ? (i.argCount = n - 2, i.className = e.name, l[t] = i) : (Ze(l, t, r), l[t].overloadTable[n - 2] = i), z([], u, (i) => {
1179
+ var s = Dt(r, i, e, a, o, c);
1156
1180
  return l[t].overloadTable === void 0 ? (s.argCount = n - 2, l[t] = s) : l[t].overloadTable[n - 2] = s, [];
1157
1181
  }), [];
1158
1182
  });
1159
- }, Mt = [], q = [
1183
+ }, jt = [], J = [
1160
1184
  0,
1161
1185
  1,
1162
1186
  ,
@@ -1167,10 +1191,10 @@ async function se(e = {}) {
1167
1191
  1,
1168
1192
  !1,
1169
1193
  1
1170
- ], Nt = (e) => {
1171
- e > 9 && --q[e + 1] === 0 && (q[e] = void 0, Mt.push(e));
1172
- }, J = {
1173
- toValue: (e) => (e || V(`Cannot use deleted val. handle = ${e}`), q[e]),
1194
+ ], Mt = (e) => {
1195
+ e > 9 && --J[e + 1] === 0 && (J[e] = void 0, jt.push(e));
1196
+ }, Y = {
1197
+ toValue: (e) => (e || H(`Cannot use deleted val. handle = ${e}`), J[e]),
1174
1198
  toHandle: (e) => {
1175
1199
  switch (e) {
1176
1200
  case void 0: return 2;
@@ -1178,68 +1202,68 @@ async function se(e = {}) {
1178
1202
  case !0: return 6;
1179
1203
  case !1: return 8;
1180
1204
  default: {
1181
- let t = Mt.pop() || q.length;
1182
- return q[t] = e, q[t + 1] = 1, t;
1205
+ let t = jt.pop() || J.length;
1206
+ return J[t] = e, J[t + 1] = 1, t;
1183
1207
  }
1184
1208
  }
1185
1209
  }
1186
- }, Pt = {
1210
+ }, Nt = {
1187
1211
  name: "emscripten::val",
1188
1212
  fromWireType: (e) => {
1189
- var t = J.toValue(e);
1190
- return Nt(e), t;
1213
+ var t = Y.toValue(e);
1214
+ return Mt(e), t;
1191
1215
  },
1192
- toWireType: (e, t) => J.toHandle(t),
1193
- readValueFromPointer: P,
1216
+ toWireType: (e, t) => Y.toHandle(t),
1217
+ readValueFromPointer: F,
1194
1218
  destructorFunction: null
1195
- }, Ft = (e) => H(e, Pt), It = (e, t) => {
1219
+ }, Pt = (e) => U(e, Nt), Ft = (e, t) => {
1196
1220
  switch (t) {
1197
1221
  case 4: return function(e) {
1198
- return this.fromWireType(pe[e >> 2]);
1222
+ return this.fromWireType(fe[e >> 2]);
1199
1223
  };
1200
1224
  case 8: return function(e) {
1201
- return this.fromWireType(me[e >> 3]);
1225
+ return this.fromWireType(pe[e >> 3]);
1202
1226
  };
1203
1227
  default: throw TypeError(`invalid float width (${t}): ${e}`);
1204
1228
  }
1205
- }, Lt = (e, t, n) => {
1206
- t = z(t), H(e, {
1229
+ }, It = (e, t, n) => {
1230
+ t = B(t), U(e, {
1207
1231
  name: t,
1208
1232
  fromWireType: (e) => e,
1209
1233
  toWireType: (e, t) => t,
1210
- readValueFromPointer: It(t, n),
1234
+ readValueFromPointer: Ft(t, n),
1211
1235
  destructorFunction: null
1212
1236
  });
1213
- }, Rt = (e, t, n, r, i, a, o, s) => {
1214
- var c = Et(t, n);
1215
- e = z(e), e = At(e), i = K(r, i, o), $e(e, function() {
1216
- wt(`Cannot call ${e} due to unbound types`, c);
1217
- }, t - 1), R([], c, (n) => {
1237
+ }, Lt = (e, t, n, r, i, a, o, s) => {
1238
+ var c = Tt(t, n);
1239
+ e = B(e), e = kt(e), i = q(r, i, o), Qe(e, function() {
1240
+ Ct(`Cannot call ${e} due to unbound types`, c);
1241
+ }, t - 1), z([], c, (n) => {
1218
1242
  var r = [n[0], null].concat(n.slice(1));
1219
- return _t(e, Ot(e, r, null, i, a, o), t - 1), [];
1243
+ return gt(e, Dt(e, r, null, i, a, o), t - 1), [];
1220
1244
  });
1221
- }, zt = (e, t, n) => {
1245
+ }, Rt = (e, t, n) => {
1222
1246
  switch (t) {
1223
- case 1: return n ? (e) => C[e] : (e) => E[e];
1224
- case 2: return n ? (e) => x[e >> 1] : (e) => w[e >> 1];
1225
- case 4: return n ? (e) => S[e >> 2] : (e) => T[e >> 2];
1247
+ case 1: return n ? (e) => w[e] : (e) => D[e];
1248
+ case 2: return n ? (e) => S[e >> 1] : (e) => T[e >> 1];
1249
+ case 4: return n ? (e) => C[e >> 2] : (e) => E[e >> 2];
1226
1250
  default: throw TypeError(`invalid integer width (${t}): ${e}`);
1227
1251
  }
1228
- }, Bt = (e, t, n, r, i) => {
1229
- t = z(t);
1252
+ }, zt = (e, t, n, r, i) => {
1253
+ t = B(t);
1230
1254
  let a = r === 0, o = (e) => e;
1231
1255
  if (a) {
1232
1256
  var s = 32 - 8 * n;
1233
1257
  o = (e) => e << s >>> s, i = o(i);
1234
1258
  }
1235
- H(e, {
1259
+ U(e, {
1236
1260
  name: t,
1237
1261
  fromWireType: o,
1238
1262
  toWireType: (e, t) => t,
1239
- readValueFromPointer: zt(t, n, r !== 0),
1263
+ readValueFromPointer: Rt(t, n, r !== 0),
1240
1264
  destructorFunction: null
1241
1265
  });
1242
- }, Vt = (e, t, n) => {
1266
+ }, Bt = (e, t, n) => {
1243
1267
  let r = (e, t) => {
1244
1268
  let n = 0;
1245
1269
  return {
@@ -1259,12 +1283,12 @@ async function se(e = {}) {
1259
1283
  e[Symbol.iterator] || (e[Symbol.iterator] = function() {
1260
1284
  return r(this[t](), (e) => this[n](e));
1261
1285
  });
1262
- }, Ht = (e, t, n, r) => {
1263
- n = z(n), r = z(r), R([], [e, t], (e) => {
1286
+ }, Vt = (e, t, n, r) => {
1287
+ n = B(n), r = B(r), z([], [e, t], (e) => {
1264
1288
  let t = e[0];
1265
- return Vt(t.registeredClass.instancePrototype, n, r), [];
1289
+ return Bt(t.registeredClass.instancePrototype, n, r), [];
1266
1290
  });
1267
- }, Ut = (e, t, n) => {
1291
+ }, Ht = (e, t, n) => {
1268
1292
  var r = [
1269
1293
  Int8Array,
1270
1294
  Uint8Array,
@@ -1276,17 +1300,17 @@ async function se(e = {}) {
1276
1300
  Float64Array
1277
1301
  ][t];
1278
1302
  function i(e) {
1279
- var t = T[e >> 2], n = T[e + 4 >> 2];
1280
- return new r(C.buffer, n, t);
1303
+ var t = E[e >> 2], n = E[e + 4 >> 2];
1304
+ return new r(w.buffer, n, t);
1281
1305
  }
1282
- n = z(n), H(e, {
1306
+ n = B(n), U(e, {
1283
1307
  name: n,
1284
1308
  fromWireType: i,
1285
1309
  readValueFromPointer: i
1286
1310
  }, { ignoreDuplicateRegistrations: !0 });
1287
- }, Wt = Object.assign({ optional: !0 }, Pt), Gt = (e, t) => {
1288
- H(e, Wt);
1289
- }, Kt = (e, t, n, r) => {
1311
+ }, Ut = Object.assign({ optional: !0 }, Nt), Wt = (e, t) => {
1312
+ U(e, Ut);
1313
+ }, Gt = (e, t, n, r) => {
1290
1314
  if (!(r > 0)) return 0;
1291
1315
  for (var i = n, a = n + r - 1, o = 0; o < e.length; ++o) {
1292
1316
  var s = e.codePointAt(o);
@@ -1305,21 +1329,21 @@ async function se(e = {}) {
1305
1329
  }
1306
1330
  }
1307
1331
  return t[n] = 0, n - i;
1308
- }, Y = (e, t, n) => Kt(e, E, t, n), qt = (e) => {
1332
+ }, X = (e, t, n) => Gt(e, D, t, n), Kt = (e) => {
1309
1333
  for (var t = 0, n = 0; n < e.length; ++n) {
1310
1334
  var r = e.charCodeAt(n);
1311
1335
  r <= 127 ? t++ : r <= 2047 ? t += 2 : r >= 55296 && r <= 57343 ? (t += 4, ++n) : t += 3;
1312
1336
  }
1313
1337
  return t;
1314
- }, Jt = globalThis.TextDecoder && new TextDecoder(), Yt = (e, t, n, r) => {
1338
+ }, qt = globalThis.TextDecoder && new TextDecoder(), Jt = (e, t, n, r) => {
1315
1339
  var i = t + n;
1316
1340
  if (r) return i;
1317
1341
  for (; e[t] && !(t >= i);) ++t;
1318
1342
  return t;
1319
- }, Xt = function(e) {
1343
+ }, Yt = function(e) {
1320
1344
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0;
1321
- var i = Yt(e, t, n, r);
1322
- if (i - t > 16 && e.buffer && Jt) return Jt.decode(e.subarray(t, i));
1345
+ var i = Jt(e, t, n, r);
1346
+ if (i - t > 16 && e.buffer && qt) return qt.decode(e.subarray(t, i));
1323
1347
  for (var a = ""; t < i;) {
1324
1348
  var o = e[t++];
1325
1349
  if (!(o & 128)) {
@@ -1339,181 +1363,181 @@ async function se(e = {}) {
1339
1363
  }
1340
1364
  }
1341
1365
  return a;
1342
- }, Zt = (e, t, n) => e ? Xt(E, e, t, n) : "", Qt = (e, t) => {
1343
- t = z(t);
1366
+ }, Xt = (e, t, n) => e ? Yt(D, e, t, n) : "", Zt = (e, t) => {
1367
+ t = B(t);
1344
1368
  var n = !0;
1345
- H(e, {
1369
+ U(e, {
1346
1370
  name: t,
1347
1371
  fromWireType(e) {
1348
- var t = T[e >> 2], r = e + 4, i;
1349
- if (n) i = Zt(r, t, !0);
1372
+ var t = E[e >> 2], r = e + 4, i;
1373
+ if (n) i = Xt(r, t, !0);
1350
1374
  else {
1351
1375
  i = "";
1352
- for (var a = 0; a < t; ++a) i += String.fromCharCode(E[r + a]);
1376
+ for (var a = 0; a < t; ++a) i += String.fromCharCode(D[r + a]);
1353
1377
  }
1354
- return Z(e), i;
1378
+ return Q(e), i;
1355
1379
  },
1356
1380
  toWireType(e, t) {
1357
1381
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
1358
1382
  var r, i = typeof t == "string";
1359
- i || ArrayBuffer.isView(t) && t.BYTES_PER_ELEMENT == 1 || V("Cannot pass non-string to std::string"), r = n && i ? qt(t) : t.length;
1360
- var a = Bn(4 + r + 1), o = a + 4;
1361
- if (T[a >> 2] = r, i) if (n) Y(t, o, r + 1);
1383
+ i || ArrayBuffer.isView(t) && t.BYTES_PER_ELEMENT == 1 || H("Cannot pass non-string to std::string"), r = n && i ? Kt(t) : t.length;
1384
+ var a = zn(4 + r + 1), o = a + 4;
1385
+ if (E[a >> 2] = r, i) if (n) X(t, o, r + 1);
1362
1386
  else for (var s = 0; s < r; ++s) {
1363
1387
  var c = t.charCodeAt(s);
1364
- c > 255 && (Z(a), V("String has UTF-16 code units that do not fit in 8 bits")), E[o + s] = c;
1388
+ c > 255 && (Q(a), H("String has UTF-16 code units that do not fit in 8 bits")), D[o + s] = c;
1365
1389
  }
1366
- else E.set(t, o);
1367
- return e !== null && e.push(Z, a), a;
1390
+ else D.set(t, o);
1391
+ return e !== null && e.push(Q, a), a;
1368
1392
  },
1369
- readValueFromPointer: P,
1393
+ readValueFromPointer: F,
1370
1394
  destructorFunction(e) {
1371
- Z(e);
1395
+ Q(e);
1372
1396
  }
1373
1397
  });
1374
- }, $t = globalThis.TextDecoder ? new TextDecoder("utf-16le") : void 0, en = (e, t, n) => {
1375
- var r = e >> 1, i = Yt(w, r, t / 2, n);
1376
- if (i - r > 16 && $t) return $t.decode(w.subarray(r, i));
1398
+ }, Qt = globalThis.TextDecoder ? new TextDecoder("utf-16le") : void 0, $t = (e, t, n) => {
1399
+ var r = e >> 1, i = Jt(T, r, t / 2, n);
1400
+ if (i - r > 16 && Qt) return Qt.decode(T.subarray(r, i));
1377
1401
  for (var a = "", o = r; o < i; ++o) {
1378
- var s = w[o];
1402
+ var s = T[o];
1379
1403
  a += String.fromCharCode(s);
1380
1404
  }
1381
1405
  return a;
1382
- }, tn = (e, t, n) => {
1406
+ }, en = (e, t, n) => {
1383
1407
  if (n != null || (n = 2147483647), n < 2) return 0;
1384
1408
  n -= 2;
1385
1409
  for (var r = t, i = n < e.length * 2 ? n / 2 : e.length, a = 0; a < i; ++a) {
1386
1410
  var o = e.charCodeAt(a);
1387
- x[t >> 1] = o, t += 2;
1411
+ S[t >> 1] = o, t += 2;
1388
1412
  }
1389
- return x[t >> 1] = 0, t - r;
1390
- }, nn = (e) => e.length * 2, rn = (e, t, n) => {
1413
+ return S[t >> 1] = 0, t - r;
1414
+ }, tn = (e) => e.length * 2, nn = (e, t, n) => {
1391
1415
  for (var r = "", i = e >> 2, a = 0; !(a >= t / 4); a++) {
1392
- var o = T[i + a];
1416
+ var o = E[i + a];
1393
1417
  if (!o && !n) break;
1394
1418
  r += String.fromCodePoint(o);
1395
1419
  }
1396
1420
  return r;
1397
- }, an = (e, t, n) => {
1421
+ }, rn = (e, t, n) => {
1398
1422
  if (n != null || (n = 2147483647), n < 4) return 0;
1399
1423
  for (var r = t, i = r + n - 4, a = 0; a < e.length; ++a) {
1400
1424
  var o = e.codePointAt(a);
1401
- if (o > 65535 && a++, S[t >> 2] = o, t += 4, t + 4 > i) break;
1425
+ if (o > 65535 && a++, C[t >> 2] = o, t += 4, t + 4 > i) break;
1402
1426
  }
1403
- return S[t >> 2] = 0, t - r;
1404
- }, on = (e) => {
1427
+ return C[t >> 2] = 0, t - r;
1428
+ }, an = (e) => {
1405
1429
  for (var t = 0, n = 0; n < e.length; ++n) e.codePointAt(n) > 65535 && n++, t += 4;
1406
1430
  return t;
1407
- }, sn = (e, t, n) => {
1408
- n = z(n);
1431
+ }, on = (e, t, n) => {
1432
+ n = B(n);
1409
1433
  var r, i, a;
1410
- t === 2 ? (r = en, i = tn, a = nn) : (r = rn, i = an, a = on), H(e, {
1434
+ t === 2 ? (r = $t, i = en, a = tn) : (r = nn, i = rn, a = an), U(e, {
1411
1435
  name: n,
1412
1436
  fromWireType: (e) => {
1413
- var n = T[e >> 2], i = r(e + 4, n * t, !0);
1414
- return Z(e), i;
1437
+ var n = E[e >> 2], i = r(e + 4, n * t, !0);
1438
+ return Q(e), i;
1415
1439
  },
1416
1440
  toWireType: (e, r) => {
1417
- typeof r != "string" && V(`Cannot pass non-string to C++ string type ${n}`);
1418
- var o = a(r), s = Bn(4 + o + t);
1419
- return T[s >> 2] = o / t, i(r, s + 4, o + t), e !== null && e.push(Z, s), s;
1441
+ typeof r != "string" && H(`Cannot pass non-string to C++ string type ${n}`);
1442
+ var o = a(r), s = zn(4 + o + t);
1443
+ return E[s >> 2] = o / t, i(r, s + 4, o + t), e !== null && e.push(Q, s), s;
1420
1444
  },
1421
- readValueFromPointer: P,
1445
+ readValueFromPointer: F,
1422
1446
  destructorFunction(e) {
1423
- Z(e);
1447
+ Q(e);
1424
1448
  }
1425
1449
  });
1426
- }, cn = (e, t, n, r, i, a) => {
1427
- N[e] = {
1428
- name: z(t),
1429
- rawConstructor: K(n, r),
1430
- rawDestructor: K(i, a),
1450
+ }, sn = (e, t, n, r, i, a) => {
1451
+ P[e] = {
1452
+ name: B(t),
1453
+ rawConstructor: q(n, r),
1454
+ rawDestructor: q(i, a),
1431
1455
  fields: []
1432
1456
  };
1433
- }, ln = (e, t, n, r, i, a, o, s, c, l) => {
1434
- N[e].fields.push({
1435
- fieldName: z(t),
1457
+ }, cn = (e, t, n, r, i, a, o, s, c, l) => {
1458
+ P[e].fields.push({
1459
+ fieldName: B(t),
1436
1460
  getterReturnType: n,
1437
- getter: K(r, i),
1461
+ getter: q(r, i),
1438
1462
  getterContext: a,
1439
1463
  setterArgumentType: o,
1440
- setter: K(s, c),
1464
+ setter: q(s, c),
1441
1465
  setterContext: l
1442
1466
  });
1443
- }, un = (e, t) => {
1444
- t = z(t), H(e, {
1467
+ }, ln = (e, t) => {
1468
+ t = B(t), U(e, {
1445
1469
  isVoid: !0,
1446
1470
  name: t,
1447
1471
  fromWireType: () => void 0,
1448
1472
  toWireType: (e, t) => void 0
1449
1473
  });
1450
- }, dn = [], fn = (e) => {
1451
- var t = dn.length;
1452
- return dn.push(e), t;
1474
+ }, un = [], dn = (e) => {
1475
+ var t = un.length;
1476
+ return un.push(e), t;
1477
+ }, fn = (e, t) => {
1478
+ var n = L[e];
1479
+ return n === void 0 && H(`${t} has unknown type ${St(e)}`), n;
1453
1480
  }, pn = (e, t) => {
1454
- var n = I[e];
1455
- return n === void 0 && V(`${t} has unknown type ${Ct(e)}`), n;
1456
- }, mn = (e, t) => {
1457
- for (var n = Array(e), r = 0; r < e; ++r) n[r] = pn(T[t + r * 4 >> 2], `parameter ${r}`);
1481
+ for (var n = Array(e), r = 0; r < e; ++r) n[r] = fn(E[t + r * 4 >> 2], `parameter ${r}`);
1458
1482
  return n;
1459
- }, hn = (e, t, n) => {
1483
+ }, mn = (e, t, n) => {
1460
1484
  var r = [], i = e(r, n);
1461
- return r.length && (T[t >> 2] = J.toHandle(r)), i;
1462
- }, gn = {}, _n = (e) => {
1463
- var t = gn[e];
1464
- return t === void 0 ? z(e) : t;
1465
- }, vn = (e, t, n) => {
1466
- var r = 8, [i, ...a] = mn(e, t), o = i.toWireType.bind(i), s = a.map((e) => e.readValueFromPointer.bind(e));
1485
+ return r.length && (E[t >> 2] = Y.toHandle(r)), i;
1486
+ }, hn = {}, gn = (e) => {
1487
+ var t = hn[e];
1488
+ return t === void 0 ? B(e) : t;
1489
+ }, _n = (e, t, n) => {
1490
+ var r = 8, [i, ...a] = pn(e, t), o = i.toWireType.bind(i), s = a.map((e) => e.readValueFromPointer.bind(e));
1467
1491
  e--;
1468
1492
  var c = Array(e);
1469
- return fn(Xe(`methodCaller<(${a.map((e) => e.name)}) => ${i.name}>`, (t, i, a, l) => {
1493
+ return dn(Ye(`methodCaller<(${a.map((e) => e.name)}) => ${i.name}>`, (t, i, a, l) => {
1470
1494
  for (var u = 0, d = 0; d < e; ++d) c[d] = s[d](l + u), u += r;
1471
1495
  var f;
1472
1496
  switch (n) {
1473
1497
  case 0:
1474
- f = J.toValue(t).apply(null, c);
1498
+ f = Y.toValue(t).apply(null, c);
1475
1499
  break;
1476
1500
  case 2:
1477
- f = Reflect.construct(J.toValue(t), c);
1501
+ f = Reflect.construct(Y.toValue(t), c);
1478
1502
  break;
1479
1503
  case 3:
1480
1504
  f = c[0];
1481
1505
  break;
1482
1506
  case 1:
1483
- f = J.toValue(t)[_n(i)](...c);
1507
+ f = Y.toValue(t)[gn(i)](...c);
1484
1508
  break;
1485
1509
  }
1486
- return hn(o, a, f);
1510
+ return mn(o, a, f);
1487
1511
  }));
1488
- }, yn = (e) => e ? (e = _n(e), J.toHandle(globalThis[e])) : J.toHandle(globalThis), bn = (e) => {
1489
- e > 9 && (q[e + 1] += 1);
1490
- }, xn = (e, t, n, r, i) => dn[e](t, n, r, i), Sn = (e) => {
1491
- Me(J.toValue(e)), Nt(e);
1492
- }, Cn = (e, t, n, r) => {
1512
+ }, vn = (e) => e ? (e = gn(e), Y.toHandle(globalThis[e])) : Y.toHandle(globalThis), yn = (e) => {
1513
+ e > 9 && (J[e + 1] += 1);
1514
+ }, bn = (e, t, n, r, i) => un[e](t, n, r, i), xn = (e) => {
1515
+ je(Y.toValue(e)), Mt(e);
1516
+ }, Sn = (e, t, n, r) => {
1493
1517
  var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), o = new Date(i, 6, 1), s = a.getTimezoneOffset(), c = o.getTimezoneOffset(), l = Math.max(s, c);
1494
- T[e >> 2] = l * 60, S[t >> 2] = Number(s != c);
1518
+ E[e >> 2] = l * 60, C[t >> 2] = Number(s != c);
1495
1519
  var u = (e) => {
1496
1520
  var t = e >= 0 ? "-" : "+", n = Math.abs(e);
1497
1521
  return `UTC${t}${String(Math.floor(n / 60)).padStart(2, "0")}${String(n % 60).padStart(2, "0")}`;
1498
1522
  }, d = u(s), f = u(c);
1499
- c < s ? (Y(d, n, 17), Y(f, r, 17)) : (Y(d, r, 17), Y(f, n, 17));
1500
- }, wn = () => 2147483648, Tn = (e, t) => Math.ceil(e / t) * t, En = (e) => {
1523
+ c < s ? (X(d, n, 17), X(f, r, 17)) : (X(d, r, 17), X(f, n, 17));
1524
+ }, Cn = () => 2147483648, wn = (e, t) => Math.ceil(e / t) * t, Tn = (e) => {
1501
1525
  var t = (e - Xn.buffer.byteLength + 65535) / 65536 | 0;
1502
1526
  try {
1503
- return Xn.grow(t), v(), 1;
1527
+ return Xn.grow(t), y(), 1;
1504
1528
  } catch {}
1505
- }, Dn = (e) => {
1506
- var t = E.length;
1529
+ }, En = (e) => {
1530
+ var t = D.length;
1507
1531
  e >>>= 0;
1508
- var n = wn();
1532
+ var n = Cn();
1509
1533
  if (e > n) return !1;
1510
1534
  for (var r = 1; r <= 4; r *= 2) {
1511
1535
  var i = t * (1 + .2 / r);
1512
- if (i = Math.min(i, e + 100663296), En(Math.min(n, Tn(Math.max(e, i), 65536)))) return !0;
1536
+ if (i = Math.min(i, e + 100663296), Tn(Math.min(n, wn(Math.max(e, i), 65536)))) return !0;
1513
1537
  }
1514
1538
  return !1;
1515
- }, On = {}, kn = () => c || "./this.program", X = () => {
1516
- if (!X.strings) {
1539
+ }, Dn = {}, On = () => c || "./this.program", Z = () => {
1540
+ if (!Z.strings) {
1517
1541
  var e, t, n = {
1518
1542
  USER: "web_user",
1519
1543
  LOGNAME: "web_user",
@@ -1521,498 +1545,508 @@ async function se(e = {}) {
1521
1545
  PWD: "/",
1522
1546
  HOME: "/home/web_user",
1523
1547
  LANG: ((e = (t = globalThis.navigator) == null ? void 0 : t.language) == null ? "C" : e).replace("-", "_") + ".UTF-8",
1524
- _: kn()
1548
+ _: On()
1525
1549
  };
1526
- for (var r in On) On[r] === void 0 ? delete n[r] : n[r] = On[r];
1550
+ for (var r in Dn) Dn[r] === void 0 ? delete n[r] : n[r] = Dn[r];
1527
1551
  var i = [];
1528
1552
  for (var r in n) i.push(`${r}=${n[r]}`);
1529
- X.strings = i;
1553
+ Z.strings = i;
1530
1554
  }
1531
- return X.strings;
1532
- }, An = (e, t) => {
1555
+ return Z.strings;
1556
+ }, kn = (e, t) => {
1533
1557
  var n = 0, r = 0;
1534
- for (var i of X()) {
1558
+ for (var i of Z()) {
1535
1559
  var a = t + n;
1536
- T[e + r >> 2] = a, n += Y(i, a, Infinity) + 1, r += 4;
1560
+ E[e + r >> 2] = a, n += X(i, a, Infinity) + 1, r += 4;
1537
1561
  }
1538
1562
  return 0;
1539
- }, jn = (e, t) => {
1540
- var n = X();
1541
- T[e >> 2] = n.length;
1563
+ }, An = (e, t) => {
1564
+ var n = Z();
1565
+ E[e >> 2] = n.length;
1542
1566
  var r = 0;
1543
- for (var i of n) r += qt(i) + 1;
1544
- return T[t >> 2] = r, 0;
1545
- }, Mn = (e) => 52, Nn = (e, t) => t + 2097152 >>> 0 < 4194305 - !!e ? (e >>> 0) + t * 4294967296 : NaN;
1546
- function Pn(e, t, n, r, i) {
1547
- return Nn(t, n), 70;
1567
+ for (var i of n) r += Kt(i) + 1;
1568
+ return E[t >> 2] = r, 0;
1569
+ }, jn = (e) => 52, Mn = (e, t) => t + 2097152 >>> 0 < 4194305 - !!e ? (e >>> 0) + t * 4294967296 : NaN;
1570
+ function Nn(e, t, n, r, i) {
1571
+ return Mn(t, n), 70;
1548
1572
  }
1549
- var Fn = [
1573
+ var Pn = [
1550
1574
  null,
1551
1575
  [],
1552
1576
  []
1553
- ], In = (e, t) => {
1554
- var n = Fn[e];
1555
- t === 0 || t === 10 ? ((e === 1 ? m : h)(Xt(n)), n.length = 0) : n.push(t);
1556
- }, Ln = (e, t, n, r) => {
1577
+ ], Fn = (e, t) => {
1578
+ var n = Pn[e];
1579
+ t === 0 || t === 10 ? ((e === 1 ? m : h)(Yt(n)), n.length = 0) : n.push(t);
1580
+ }, In = (e, t, n, r) => {
1557
1581
  for (var i = 0, a = 0; a < n; a++) {
1558
- var o = T[t >> 2], s = T[t + 4 >> 2];
1582
+ var o = E[t >> 2], s = E[t + 4 >> 2];
1559
1583
  t += 8;
1560
- for (var c = 0; c < s; c++) In(e, E[o + c]);
1584
+ for (var c = 0; c < s; c++) Fn(e, D[o + c]);
1561
1585
  i += s;
1562
1586
  }
1563
- return T[r >> 2] = i, 0;
1564
- }, Rn = (e) => e;
1565
- if (Je(), ht(), i.noExitRuntime && i.noExitRuntime, i.print && (m = i.print), i.printErr && (h = i.printErr), i.wasmBinary && (g = i.wasmBinary), i.arguments && i.arguments, i.thisProgram && (c = i.thisProgram), i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0;) i.preInit.shift()();
1566
- var zn, Z, Bn, Vn, Q, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn;
1587
+ return E[r >> 2] = i, 0;
1588
+ }, Ln = (e) => e;
1589
+ if (qe(), mt(), i.noExitRuntime && i.noExitRuntime, i.print && (m = i.print), i.printErr && (h = i.printErr), i.wasmBinary && (g = i.wasmBinary), i.arguments && i.arguments, i.thisProgram && (c = i.thisProgram), i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0;) i.preInit.shift()();
1590
+ var Rn, Q, zn, Bn, $, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn;
1567
1591
  function Qn(e) {
1568
- zn = e.Ba, Z = i._free = e.Ca, Bn = i._malloc = e.Ea, Vn = e.Fa, Q = e.Ga, Hn = e.Ha, Un = e.Ia, Wn = e.Ja, Gn = e.Ka, Kn = e.La, qn = e.Ma, W.viijii = e.Na, Jn = W.iiijj = e.Oa, W.jiji = e.Pa, Yn = W.jiiii = e.Qa, W.iiiiij = e.Ra, W.iiiiijj = e.Sa, W.iiiiiijj = e.Ta, Xn = e.za, Zn = e.Da;
1592
+ Rn = e.Ca, Q = i._free = e.Da, zn = i._malloc = e.Fa, Bn = e.Ga, $ = e.Ha, Vn = e.Ia, Hn = e.Ja, Un = e.Ka, Wn = e.La, Gn = e.Ma, Kn = e.Na, G.viijii = e.Oa, qn = G.viijjijjjjjj = e.Pa, Jn = G.iiijj = e.Qa, G.jiji = e.Ra, Yn = G.jiiii = e.Sa, G.iiiiij = e.Ta, G.iiiiijj = e.Ua, G.iiiiiijj = e.Va, Xn = e.Aa, Zn = e.Ea;
1569
1593
  }
1570
1594
  var $n = {
1571
- s: be,
1572
- x: xe,
1573
- a: we,
1574
- i: Te,
1575
- m: Ee,
1576
- Q: De,
1577
- q: Oe,
1578
- fa: ke,
1579
- d: Ae,
1580
- ba: je,
1581
- wa: Fe,
1582
- aa: Ie,
1583
- qa: Re,
1584
- ua: Tt,
1585
- ta: kt,
1586
- F: jt,
1587
- oa: Ft,
1588
- X: Lt,
1589
- Y: Rt,
1590
- A: Bt,
1591
- sa: Ht,
1592
- t: Ut,
1593
- va: Gt,
1594
- pa: Qt,
1595
- S: sn,
1596
- G: cn,
1597
- xa: ln,
1598
- ra: un,
1599
- N: vn,
1600
- ya: Nt,
1601
- C: yn,
1602
- T: bn,
1603
- M: xn,
1604
- ka: Sn,
1605
- ca: Cn,
1606
- ga: Dn,
1607
- da: An,
1608
- ea: jn,
1609
- ha: Mn,
1610
- _: Pn,
1611
- V: Ln,
1612
- ma: xr,
1613
- K: wr,
1614
- B: Dr,
1615
- O: sr,
1616
- U: Mr,
1617
- p: yr,
1595
+ r: ye,
1596
+ x: be,
1597
+ a: Ce,
1598
+ i: we,
1599
+ m: Te,
1600
+ S: Ee,
1601
+ p: De,
1602
+ ha: Oe,
1603
+ d: ke,
1604
+ da: Ae,
1605
+ xa: Pe,
1606
+ ca: Fe,
1607
+ ra: Le,
1608
+ va: wt,
1609
+ ua: Ot,
1610
+ H: At,
1611
+ pa: Pt,
1612
+ Y: It,
1613
+ Z: Lt,
1614
+ A: zt,
1615
+ ta: Vt,
1616
+ u: Ht,
1617
+ wa: Wt,
1618
+ qa: Zt,
1619
+ T: on,
1620
+ I: sn,
1621
+ ya: cn,
1622
+ sa: ln,
1623
+ O: _n,
1624
+ za: Mt,
1625
+ E: vn,
1626
+ U: yn,
1627
+ N: bn,
1628
+ la: xn,
1629
+ ea: Sn,
1630
+ ia: En,
1631
+ fa: kn,
1632
+ ga: An,
1633
+ ja: jn,
1634
+ $: Nn,
1635
+ W: In,
1636
+ na: xr,
1637
+ M: wr,
1638
+ B: Ar,
1639
+ P: sr,
1640
+ V: Mr,
1641
+ q: yr,
1618
1642
  b: nr,
1619
- D: Cr,
1620
- ja: kr,
1643
+ F: Cr,
1644
+ ka: Or,
1621
1645
  c: ir,
1622
- ia: Ar,
1646
+ Q: kr,
1623
1647
  h: or,
1624
1648
  j: pr,
1625
- r: hr,
1626
- P: Sr,
1627
- w: _r,
1628
- E: vr,
1629
- L: br,
1630
- I: Nr,
1631
- $: Fr,
1632
- Z: Ir,
1649
+ s: mr,
1650
+ R: Sr,
1651
+ t: gr,
1652
+ G: _r,
1653
+ C: vr,
1654
+ K: Nr,
1655
+ aa: Ir,
1656
+ _: Lr,
1633
1657
  f: cr,
1634
1658
  l: er,
1635
1659
  e: rr,
1636
- W: Tr,
1660
+ X: Tr,
1637
1661
  g: ar,
1638
- J: jr,
1662
+ L: jr,
1639
1663
  k: tr,
1640
- la: Er,
1641
- o: gr,
1664
+ ma: Er,
1665
+ o: hr,
1642
1666
  y: ur,
1643
- u: mr,
1644
- R: fr,
1645
- v: Or,
1667
+ v: br,
1668
+ D: fr,
1669
+ w: Dr,
1646
1670
  n: lr,
1647
- H: Pr,
1648
- na: dr,
1649
- z: Rn
1671
+ J: Pr,
1672
+ oa: dr,
1673
+ ba: Fr,
1674
+ z: Ln
1650
1675
  };
1651
1676
  function er(e, t) {
1652
- var n = O();
1677
+ var n = k();
1653
1678
  try {
1654
- G(e)(t);
1679
+ K(e)(t);
1655
1680
  } catch (e) {
1656
- if (D(n), e !== e + 0) throw e;
1657
- Q(1, 0);
1681
+ if (O(n), e !== e + 0) throw e;
1682
+ $(1, 0);
1658
1683
  }
1659
1684
  }
1660
1685
  function tr(e, t, n, r, i) {
1661
- var a = O();
1686
+ var a = k();
1662
1687
  try {
1663
- G(e)(t, n, r, i);
1688
+ K(e)(t, n, r, i);
1664
1689
  } catch (e) {
1665
- if (D(a), e !== e + 0) throw e;
1666
- Q(1, 0);
1690
+ if (O(a), e !== e + 0) throw e;
1691
+ $(1, 0);
1667
1692
  }
1668
1693
  }
1669
1694
  function nr(e, t) {
1670
- var n = O();
1695
+ var n = k();
1671
1696
  try {
1672
- return G(e)(t);
1697
+ return K(e)(t);
1673
1698
  } catch (e) {
1674
- if (D(n), e !== e + 0) throw e;
1675
- Q(1, 0);
1699
+ if (O(n), e !== e + 0) throw e;
1700
+ $(1, 0);
1676
1701
  }
1677
1702
  }
1678
1703
  function rr(e, t, n) {
1679
- var r = O();
1704
+ var r = k();
1680
1705
  try {
1681
- G(e)(t, n);
1706
+ K(e)(t, n);
1682
1707
  } catch (e) {
1683
- if (D(r), e !== e + 0) throw e;
1684
- Q(1, 0);
1708
+ if (O(r), e !== e + 0) throw e;
1709
+ $(1, 0);
1685
1710
  }
1686
1711
  }
1687
1712
  function ir(e, t, n) {
1688
- var r = O();
1713
+ var r = k();
1689
1714
  try {
1690
- return G(e)(t, n);
1715
+ return K(e)(t, n);
1691
1716
  } catch (e) {
1692
- if (D(r), e !== e + 0) throw e;
1693
- Q(1, 0);
1717
+ if (O(r), e !== e + 0) throw e;
1718
+ $(1, 0);
1694
1719
  }
1695
1720
  }
1696
1721
  function ar(e, t, n, r) {
1697
- var i = O();
1722
+ var i = k();
1698
1723
  try {
1699
- G(e)(t, n, r);
1724
+ K(e)(t, n, r);
1700
1725
  } catch (e) {
1701
- if (D(i), e !== e + 0) throw e;
1702
- Q(1, 0);
1726
+ if (O(i), e !== e + 0) throw e;
1727
+ $(1, 0);
1703
1728
  }
1704
1729
  }
1705
1730
  function or(e, t, n, r) {
1706
- var i = O();
1731
+ var i = k();
1707
1732
  try {
1708
- return G(e)(t, n, r);
1733
+ return K(e)(t, n, r);
1709
1734
  } catch (e) {
1710
- if (D(i), e !== e + 0) throw e;
1711
- Q(1, 0);
1735
+ if (O(i), e !== e + 0) throw e;
1736
+ $(1, 0);
1712
1737
  }
1713
1738
  }
1714
1739
  function sr(e, t, n, r, i, a) {
1715
- var o = O();
1740
+ var o = k();
1716
1741
  try {
1717
- return G(e)(t, n, r, i, a);
1742
+ return K(e)(t, n, r, i, a);
1718
1743
  } catch (e) {
1719
- if (D(o), e !== e + 0) throw e;
1720
- Q(1, 0);
1744
+ if (O(o), e !== e + 0) throw e;
1745
+ $(1, 0);
1721
1746
  }
1722
1747
  }
1723
1748
  function cr(e) {
1724
- var t = O();
1749
+ var t = k();
1725
1750
  try {
1726
- G(e)();
1751
+ K(e)();
1727
1752
  } catch (e) {
1728
- if (D(t), e !== e + 0) throw e;
1729
- Q(1, 0);
1753
+ if (O(t), e !== e + 0) throw e;
1754
+ $(1, 0);
1730
1755
  }
1731
1756
  }
1732
1757
  function lr(e, t, n, r, i, a, o, s, c, l, u) {
1733
- var d = O();
1758
+ var d = k();
1734
1759
  try {
1735
- G(e)(t, n, r, i, a, o, s, c, l, u);
1760
+ K(e)(t, n, r, i, a, o, s, c, l, u);
1736
1761
  } catch (e) {
1737
- if (D(d), e !== e + 0) throw e;
1738
- Q(1, 0);
1762
+ if (O(d), e !== e + 0) throw e;
1763
+ $(1, 0);
1739
1764
  }
1740
1765
  }
1741
1766
  function ur(e, t, n, r, i, a, o) {
1742
- var s = O();
1767
+ var s = k();
1743
1768
  try {
1744
- G(e)(t, n, r, i, a, o);
1769
+ K(e)(t, n, r, i, a, o);
1745
1770
  } catch (e) {
1746
- if (D(s), e !== e + 0) throw e;
1747
- Q(1, 0);
1771
+ if (O(s), e !== e + 0) throw e;
1772
+ $(1, 0);
1748
1773
  }
1749
1774
  }
1750
1775
  function dr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g) {
1751
- var _ = O();
1776
+ var _ = k();
1752
1777
  try {
1753
- G(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g);
1778
+ K(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g);
1754
1779
  } catch (e) {
1755
- if (D(_), e !== e + 0) throw e;
1756
- Q(1, 0);
1780
+ if (O(_), e !== e + 0) throw e;
1781
+ $(1, 0);
1757
1782
  }
1758
1783
  }
1759
1784
  function fr(e, t, n, r, i, a, o, s, c) {
1760
- var l = O();
1785
+ var l = k();
1761
1786
  try {
1762
- G(e)(t, n, r, i, a, o, s, c);
1787
+ K(e)(t, n, r, i, a, o, s, c);
1763
1788
  } catch (e) {
1764
- if (D(l), e !== e + 0) throw e;
1765
- Q(1, 0);
1789
+ if (O(l), e !== e + 0) throw e;
1790
+ $(1, 0);
1766
1791
  }
1767
1792
  }
1768
1793
  function pr(e, t, n, r, i) {
1769
- var a = O();
1794
+ var a = k();
1770
1795
  try {
1771
- return G(e)(t, n, r, i);
1796
+ return K(e)(t, n, r, i);
1772
1797
  } catch (e) {
1773
- if (D(a), e !== e + 0) throw e;
1774
- Q(1, 0);
1798
+ if (O(a), e !== e + 0) throw e;
1799
+ $(1, 0);
1775
1800
  }
1776
1801
  }
1777
- function mr(e, t, n, r, i, a, o, s) {
1778
- var c = O();
1802
+ function mr(e, t, n, r, i, a) {
1803
+ var o = k();
1779
1804
  try {
1780
- G(e)(t, n, r, i, a, o, s);
1805
+ return K(e)(t, n, r, i, a);
1781
1806
  } catch (e) {
1782
- if (D(c), e !== e + 0) throw e;
1783
- Q(1, 0);
1807
+ if (O(o), e !== e + 0) throw e;
1808
+ $(1, 0);
1784
1809
  }
1785
1810
  }
1786
1811
  function hr(e, t, n, r, i, a) {
1787
- var o = O();
1812
+ var o = k();
1788
1813
  try {
1789
- return G(e)(t, n, r, i, a);
1814
+ K(e)(t, n, r, i, a);
1790
1815
  } catch (e) {
1791
- if (D(o), e !== e + 0) throw e;
1792
- Q(1, 0);
1816
+ if (O(o), e !== e + 0) throw e;
1817
+ $(1, 0);
1793
1818
  }
1794
1819
  }
1795
- function gr(e, t, n, r, i, a) {
1796
- var o = O();
1820
+ function gr(e, t, n, r, i, a, o) {
1821
+ var s = k();
1797
1822
  try {
1798
- G(e)(t, n, r, i, a);
1823
+ return K(e)(t, n, r, i, a, o);
1799
1824
  } catch (e) {
1800
- if (D(o), e !== e + 0) throw e;
1801
- Q(1, 0);
1825
+ if (O(s), e !== e + 0) throw e;
1826
+ $(1, 0);
1802
1827
  }
1803
1828
  }
1804
- function _r(e, t, n, r, i, a, o) {
1805
- var s = O();
1829
+ function _r(e, t, n, r, i, a, o, s) {
1830
+ var c = k();
1806
1831
  try {
1807
- return G(e)(t, n, r, i, a, o);
1832
+ return K(e)(t, n, r, i, a, o, s);
1808
1833
  } catch (e) {
1809
- if (D(s), e !== e + 0) throw e;
1810
- Q(1, 0);
1834
+ if (O(c), e !== e + 0) throw e;
1835
+ $(1, 0);
1811
1836
  }
1812
1837
  }
1813
- function vr(e, t, n, r, i, a, o, s) {
1814
- var c = O();
1838
+ function vr(e, t, n, r, i, a, o, s, c) {
1839
+ var l = k();
1815
1840
  try {
1816
- return G(e)(t, n, r, i, a, o, s);
1841
+ return K(e)(t, n, r, i, a, o, s, c);
1817
1842
  } catch (e) {
1818
- if (D(c), e !== e + 0) throw e;
1819
- Q(1, 0);
1843
+ if (O(l), e !== e + 0) throw e;
1844
+ $(1, 0);
1820
1845
  }
1821
1846
  }
1822
1847
  function yr(e) {
1823
- var t = O();
1848
+ var t = k();
1824
1849
  try {
1825
- return G(e)();
1850
+ return K(e)();
1826
1851
  } catch (e) {
1827
- if (D(t), e !== e + 0) throw e;
1828
- Q(1, 0);
1852
+ if (O(t), e !== e + 0) throw e;
1853
+ $(1, 0);
1829
1854
  }
1830
1855
  }
1831
- function br(e, t, n, r, i, a, o, s, c) {
1832
- var l = O();
1856
+ function br(e, t, n, r, i, a, o, s) {
1857
+ var c = k();
1833
1858
  try {
1834
- return G(e)(t, n, r, i, a, o, s, c);
1859
+ K(e)(t, n, r, i, a, o, s);
1835
1860
  } catch (e) {
1836
- if (D(l), e !== e + 0) throw e;
1837
- Q(1, 0);
1861
+ if (O(c), e !== e + 0) throw e;
1862
+ $(1, 0);
1838
1863
  }
1839
1864
  }
1840
1865
  function xr(e, t, n) {
1841
- var r = O();
1866
+ var r = k();
1842
1867
  try {
1843
- return G(e)(t, n);
1868
+ return K(e)(t, n);
1844
1869
  } catch (e) {
1845
- if (D(r), e !== e + 0) throw e;
1846
- Q(1, 0);
1870
+ if (O(r), e !== e + 0) throw e;
1871
+ $(1, 0);
1847
1872
  }
1848
1873
  }
1849
1874
  function Sr(e, t, n, r, i, a, o) {
1850
- var s = O();
1875
+ var s = k();
1851
1876
  try {
1852
- return G(e)(t, n, r, i, a, o);
1877
+ return K(e)(t, n, r, i, a, o);
1853
1878
  } catch (e) {
1854
- if (D(s), e !== e + 0) throw e;
1855
- Q(1, 0);
1879
+ if (O(s), e !== e + 0) throw e;
1880
+ $(1, 0);
1856
1881
  }
1857
1882
  }
1858
1883
  function Cr(e, t, n, r) {
1859
- var i = O();
1884
+ var i = k();
1860
1885
  try {
1861
- return G(e)(t, n, r);
1886
+ return K(e)(t, n, r);
1862
1887
  } catch (e) {
1863
- if (D(i), e !== e + 0) throw e;
1864
- Q(1, 0);
1888
+ if (O(i), e !== e + 0) throw e;
1889
+ $(1, 0);
1865
1890
  }
1866
1891
  }
1867
1892
  function wr(e, t, n, r) {
1868
- var i = O();
1893
+ var i = k();
1869
1894
  try {
1870
- return G(e)(t, n, r);
1895
+ return K(e)(t, n, r);
1871
1896
  } catch (e) {
1872
- if (D(i), e !== e + 0) throw e;
1873
- Q(1, 0);
1897
+ if (O(i), e !== e + 0) throw e;
1898
+ $(1, 0);
1874
1899
  }
1875
1900
  }
1876
1901
  function Tr(e, t, n, r, i, a, o, s, c) {
1877
- var l = O();
1902
+ var l = k();
1878
1903
  try {
1879
- G(e)(t, n, r, i, a, o, s, c);
1904
+ K(e)(t, n, r, i, a, o, s, c);
1880
1905
  } catch (e) {
1881
- if (D(l), e !== e + 0) throw e;
1882
- Q(1, 0);
1906
+ if (O(l), e !== e + 0) throw e;
1907
+ $(1, 0);
1883
1908
  }
1884
1909
  }
1885
1910
  function Er(e, t, n, r, i, a, o, s) {
1886
- var c = O();
1911
+ var c = k();
1887
1912
  try {
1888
- G(e)(t, n, r, i, a, o, s);
1913
+ K(e)(t, n, r, i, a, o, s);
1889
1914
  } catch (e) {
1890
- if (D(c), e !== e + 0) throw e;
1891
- Q(1, 0);
1915
+ if (O(c), e !== e + 0) throw e;
1916
+ $(1, 0);
1892
1917
  }
1893
1918
  }
1894
- function Dr(e, t, n, r, i, a) {
1895
- var o = O();
1919
+ function Dr(e, t, n, r, i, a, o, s, c, l) {
1920
+ var u = k();
1896
1921
  try {
1897
- return G(e)(t, n, r, i, a);
1922
+ K(e)(t, n, r, i, a, o, s, c, l);
1898
1923
  } catch (e) {
1899
- if (D(o), e !== e + 0) throw e;
1900
- Q(1, 0);
1924
+ if (O(u), e !== e + 0) throw e;
1925
+ $(1, 0);
1901
1926
  }
1902
1927
  }
1903
- function Or(e, t, n, r, i, a, o, s, c, l) {
1904
- var u = O();
1928
+ function Or(e, t, n) {
1929
+ var r = k();
1905
1930
  try {
1906
- G(e)(t, n, r, i, a, o, s, c, l);
1931
+ return K(e)(t, n);
1907
1932
  } catch (e) {
1908
- if (D(u), e !== e + 0) throw e;
1909
- Q(1, 0);
1933
+ if (O(r), e !== e + 0) throw e;
1934
+ $(1, 0);
1910
1935
  }
1911
1936
  }
1912
- function kr(e, t, n) {
1913
- var r = O();
1937
+ function kr(e, t, n, r, i) {
1938
+ var a = k();
1914
1939
  try {
1915
- return G(e)(t, n);
1940
+ return K(e)(t, n, r, i);
1916
1941
  } catch (e) {
1917
- if (D(r), e !== e + 0) throw e;
1918
- Q(1, 0);
1942
+ if (O(a), e !== e + 0) throw e;
1943
+ $(1, 0);
1919
1944
  }
1920
1945
  }
1921
- function Ar(e, t, n, r, i) {
1922
- var a = O();
1946
+ function Ar(e, t, n, r, i, a) {
1947
+ var o = k();
1923
1948
  try {
1924
- return G(e)(t, n, r, i);
1949
+ return K(e)(t, n, r, i, a);
1925
1950
  } catch (e) {
1926
- if (D(a), e !== e + 0) throw e;
1927
- Q(1, 0);
1951
+ if (O(o), e !== e + 0) throw e;
1952
+ $(1, 0);
1928
1953
  }
1929
1954
  }
1930
1955
  function jr(e, t, n, r, i, a, o) {
1931
- var s = O();
1956
+ var s = k();
1932
1957
  try {
1933
- G(e)(t, n, r, i, a, o);
1958
+ K(e)(t, n, r, i, a, o);
1934
1959
  } catch (e) {
1935
- if (D(s), e !== e + 0) throw e;
1936
- Q(1, 0);
1960
+ if (O(s), e !== e + 0) throw e;
1961
+ $(1, 0);
1937
1962
  }
1938
1963
  }
1939
1964
  function Mr(e, t, n, r) {
1940
- var i = O();
1965
+ var i = k();
1941
1966
  try {
1942
- return G(e)(t, n, r);
1967
+ return K(e)(t, n, r);
1943
1968
  } catch (e) {
1944
- if (D(i), e !== e + 0) throw e;
1945
- Q(1, 0);
1969
+ if (O(i), e !== e + 0) throw e;
1970
+ $(1, 0);
1946
1971
  }
1947
1972
  }
1948
1973
  function Nr(e, t, n, r, i, a, o, s, c, l, u, d) {
1949
- var f = O();
1974
+ var f = k();
1950
1975
  try {
1951
- return G(e)(t, n, r, i, a, o, s, c, l, u, d);
1976
+ return K(e)(t, n, r, i, a, o, s, c, l, u, d);
1952
1977
  } catch (e) {
1953
- if (D(f), e !== e + 0) throw e;
1954
- Q(1, 0);
1978
+ if (O(f), e !== e + 0) throw e;
1979
+ $(1, 0);
1955
1980
  }
1956
1981
  }
1957
1982
  function Pr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1958
- var g = O();
1983
+ var g = k();
1984
+ try {
1985
+ K(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h);
1986
+ } catch (e) {
1987
+ if (O(g), e !== e + 0) throw e;
1988
+ $(1, 0);
1989
+ }
1990
+ }
1991
+ function Fr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, ee, v) {
1992
+ var te = k();
1959
1993
  try {
1960
- G(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h);
1994
+ qn(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, ee, v);
1961
1995
  } catch (e) {
1962
- if (D(g), e !== e + 0) throw e;
1963
- Q(1, 0);
1996
+ if (O(te), e !== e + 0) throw e;
1997
+ $(1, 0);
1964
1998
  }
1965
1999
  }
1966
- function Fr(e, t, n, r, i, a, o) {
1967
- var s = O();
2000
+ function Ir(e, t, n, r, i, a, o) {
2001
+ var s = k();
1968
2002
  try {
1969
2003
  return Jn(e, t, n, r, i, a, o);
1970
2004
  } catch (e) {
1971
- if (D(s), e !== e + 0) throw e;
1972
- Q(1, 0);
2005
+ if (O(s), e !== e + 0) throw e;
2006
+ $(1, 0);
1973
2007
  }
1974
2008
  }
1975
- function Ir(e, t, n, r, i) {
1976
- var a = O();
2009
+ function Lr(e, t, n, r, i) {
2010
+ var a = k();
1977
2011
  try {
1978
2012
  return Yn(e, t, n, r, i);
1979
2013
  } catch (e) {
1980
- if (D(a), e !== e + 0) throw e;
1981
- Q(1, 0);
2014
+ if (O(a), e !== e + 0) throw e;
2015
+ $(1, 0);
1982
2016
  }
1983
2017
  }
1984
- function Lr() {
1985
- re();
2018
+ function Rr() {
2019
+ ne();
1986
2020
  function e() {
1987
2021
  var e, t;
1988
- i.calledRun = !0, !_ && (ie(), (e = ee) == null || e(i), (t = i.onRuntimeInitialized) == null || t.call(i), ae());
2022
+ i.calledRun = !0, !_ && (re(), (e = ee) == null || e(i), (t = i.onRuntimeInitialized) == null || t.call(i), ie());
1989
2023
  }
1990
2024
  i.setStatus ? (i.setStatus("Running..."), setTimeout(() => {
1991
2025
  setTimeout(() => i.setStatus(""), 1), e();
1992
2026
  }, 1)) : e();
1993
2027
  }
1994
- var $ = await fe();
1995
- return Lr(), t = ne ? i : new Promise((e, t) => {
1996
- ee = e, te = t;
2028
+ var zr = await de();
2029
+ return Rr(), t = te ? i : new Promise((e, t) => {
2030
+ ee = e, v = t;
1997
2031
  }), t;
1998
2032
  }
1999
- function b(e) {
2000
- return ie(se, e);
2033
+ function x(e) {
2034
+ return re(oe, e);
2001
2035
  }
2002
- function ce() {
2003
- return ae(se);
2036
+ function se() {
2037
+ return ie(oe);
2004
2038
  }
2005
- function le(e) {
2006
- b({
2039
+ function ce(e) {
2040
+ x({
2007
2041
  overrides: e,
2008
2042
  equalityFn: Object.is,
2009
2043
  fireImmediately: !1
2010
2044
  });
2011
2045
  }
2012
- async function ue(e, t) {
2013
- return y(se, e, t);
2046
+ async function le(e, t) {
2047
+ return b(oe, e, t);
2014
2048
  }
2015
- var de = "98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c", fe = [
2049
+ var ue = "b03d35cd265123b9f75a0c476c204714663a1e85ba908acc3f50eae7824dfcf6", de = [
2016
2050
  ["aztec", "Aztec"],
2017
2051
  ["aztec_code", "AztecCode"],
2018
2052
  ["aztec_rune", "AztecRune"],
@@ -2043,12 +2077,16 @@ var de = "98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c", fe
2043
2077
  ["micro_qr_code", "MicroQRCode"],
2044
2078
  ["pdf417", "PDF417"],
2045
2079
  ["compact_pdf417", "CompactPDF417"],
2080
+ ["micro_pdf417", "MicroPDF417"],
2046
2081
  ["qr_code", "QRCode"],
2047
2082
  ["qr_code_model_1", "QRCodeModel1"],
2048
2083
  ["qr_code_model_2", "QRCodeModel2"],
2049
2084
  ["rm_qr_code", "RMQRCode"],
2050
2085
  ["upc_a", "UPCA"],
2051
2086
  ["upc_e", "UPCE"],
2087
+ ["telepen", "Telepen"],
2088
+ ["telepen_alpha", "TelepenAlpha"],
2089
+ ["telepen_numeric", "TelepenNumeric"],
2052
2090
  ["other_barcode", "OtherBarcode"],
2053
2091
  ["linear_codes", "AllLinear"],
2054
2092
  ["matrix_codes", "AllMatrix"],
@@ -2056,39 +2094,39 @@ var de = "98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c", fe
2056
2094
  ["retail_codes", "AllRetail"],
2057
2095
  ["industrial_codes", "AllIndustrial"],
2058
2096
  ["any", "All"]
2059
- ], x = [...fe, ["unknown"]].map((e) => e[0]), S = new Map(fe);
2060
- function C(e) {
2061
- for (let [t, n] of S) if (e === n) return t;
2097
+ ], S = [...de, ["unknown"]].map((e) => e[0]), C = new Map(de);
2098
+ function w(e) {
2099
+ for (let [t, n] of C) if (e === n) return t;
2062
2100
  return "unknown";
2063
2101
  }
2064
- function pe(e) {
2065
- if (me(e)) return {
2102
+ function fe(e) {
2103
+ if (pe(e)) return {
2066
2104
  width: e.naturalWidth,
2067
2105
  height: e.naturalHeight
2068
2106
  };
2069
- if (w(e)) return {
2107
+ if (T(e)) return {
2070
2108
  width: e.width.baseVal.value,
2071
2109
  height: e.height.baseVal.value
2072
2110
  };
2073
- if (T(e)) return {
2111
+ if (E(e)) return {
2074
2112
  width: e.videoWidth,
2075
2113
  height: e.videoHeight
2076
2114
  };
2077
- if (he(e)) return {
2115
+ if (me(e)) return {
2078
2116
  width: e.width,
2079
2117
  height: e.height
2080
2118
  };
2081
- if (_e(e)) return {
2119
+ if (ge(e)) return {
2082
2120
  width: e.displayWidth,
2083
2121
  height: e.displayHeight
2084
2122
  };
2085
- if (E(e) || ge(e)) return {
2123
+ if (D(e) || he(e)) return {
2086
2124
  width: e.width,
2087
2125
  height: e.height
2088
2126
  };
2089
2127
  throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.");
2090
2128
  }
2091
- function me(e) {
2129
+ function pe(e) {
2092
2130
  try {
2093
2131
  var t;
2094
2132
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLImageElement);
@@ -2096,7 +2134,7 @@ function me(e) {
2096
2134
  return !1;
2097
2135
  }
2098
2136
  }
2099
- function w(e) {
2137
+ function T(e) {
2100
2138
  try {
2101
2139
  var t;
2102
2140
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.SVGImageElement);
@@ -2104,7 +2142,7 @@ function w(e) {
2104
2142
  return !1;
2105
2143
  }
2106
2144
  }
2107
- function T(e) {
2145
+ function E(e) {
2108
2146
  try {
2109
2147
  var t;
2110
2148
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLVideoElement);
@@ -2112,7 +2150,7 @@ function T(e) {
2112
2150
  return !1;
2113
2151
  }
2114
2152
  }
2115
- function E(e) {
2153
+ function D(e) {
2116
2154
  try {
2117
2155
  var t;
2118
2156
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLCanvasElement);
@@ -2120,42 +2158,42 @@ function E(e) {
2120
2158
  return !1;
2121
2159
  }
2122
2160
  }
2123
- function he(e) {
2161
+ function me(e) {
2124
2162
  try {
2125
2163
  return e instanceof ImageBitmap || Object.prototype.toString.call(e) === "[object ImageBitmap]";
2126
2164
  } catch {
2127
2165
  return !1;
2128
2166
  }
2129
2167
  }
2130
- function ge(e) {
2168
+ function he(e) {
2131
2169
  try {
2132
2170
  return e instanceof OffscreenCanvas || Object.prototype.toString.call(e) === "[object OffscreenCanvas]";
2133
2171
  } catch {
2134
2172
  return !1;
2135
2173
  }
2136
2174
  }
2137
- function _e(e) {
2175
+ function ge(e) {
2138
2176
  try {
2139
2177
  return e instanceof VideoFrame || Object.prototype.toString.call(e) === "[object VideoFrame]";
2140
2178
  } catch {
2141
2179
  return !1;
2142
2180
  }
2143
2181
  }
2144
- function ve(e) {
2182
+ function _e(e) {
2145
2183
  try {
2146
2184
  return e instanceof Blob || Object.prototype.toString.call(e) === "[object Blob]";
2147
2185
  } catch {
2148
2186
  return !1;
2149
2187
  }
2150
2188
  }
2151
- function ye(e) {
2189
+ function ve(e) {
2152
2190
  try {
2153
2191
  return e instanceof ImageData || Object.prototype.toString.call(e) === "[object ImageData]";
2154
2192
  } catch {
2155
2193
  return !1;
2156
2194
  }
2157
2195
  }
2158
- function D(e, t) {
2196
+ function O(e, t) {
2159
2197
  try {
2160
2198
  let n = new OffscreenCanvas(e, t);
2161
2199
  if (n.getContext("2d") instanceof OffscreenCanvasRenderingContext2D) return n;
@@ -2165,15 +2203,15 @@ function D(e, t) {
2165
2203
  return n.width = e, n.height = t, n;
2166
2204
  }
2167
2205
  }
2168
- async function O(e) {
2169
- if (me(e) && !await j(e)) throw new DOMException("Failed to load or decode HTMLImageElement.", "InvalidStateError");
2170
- if (w(e) && !await xe(e)) throw new DOMException("Failed to load or decode SVGImageElement.", "InvalidStateError");
2171
- if (_e(e) && Se(e)) throw new DOMException("VideoFrame is closed.", "InvalidStateError");
2172
- if (T(e) && (e.readyState === 0 || e.readyState === 1)) throw new DOMException("Invalid element or state.", "InvalidStateError");
2173
- if (he(e) && Ce(e)) throw new DOMException("The image source is detached.", "InvalidStateError");
2174
- let { width: t, height: n } = pe(e);
2206
+ async function k(e) {
2207
+ if (pe(e) && !await M(e)) throw new DOMException("Failed to load or decode HTMLImageElement.", "InvalidStateError");
2208
+ if (T(e) && !await be(e)) throw new DOMException("Failed to load or decode SVGImageElement.", "InvalidStateError");
2209
+ if (ge(e) && xe(e)) throw new DOMException("VideoFrame is closed.", "InvalidStateError");
2210
+ if (E(e) && (e.readyState === 0 || e.readyState === 1)) throw new DOMException("Invalid element or state.", "InvalidStateError");
2211
+ if (me(e) && Se(e)) throw new DOMException("The image source is detached.", "InvalidStateError");
2212
+ let { width: t, height: n } = fe(e);
2175
2213
  if (t === 0 || n === 0) return null;
2176
- let r = D(t, n).getContext("2d");
2214
+ let r = O(t, n).getContext("2d");
2177
2215
  r.drawImage(e, 0, 0);
2178
2216
  try {
2179
2217
  return r.getImageData(0, 0, t, n);
@@ -2181,7 +2219,7 @@ async function O(e) {
2181
2219
  throw new DOMException("Source would taint origin.", "SecurityError");
2182
2220
  }
2183
2221
  }
2184
- async function k(e) {
2222
+ async function A(e) {
2185
2223
  let t;
2186
2224
  try {
2187
2225
  t = await createImageBitmap(e);
@@ -2200,9 +2238,9 @@ async function k(e) {
2200
2238
  throw new DOMException("Failed to load or decode Blob.", "InvalidStateError");
2201
2239
  }
2202
2240
  }
2203
- return await O(t);
2241
+ return await k(t);
2204
2242
  }
2205
- function A(e) {
2243
+ function j(e) {
2206
2244
  let { width: t, height: n } = e;
2207
2245
  if (t === 0 || n === 0) return null;
2208
2246
  let r = e.getContext("2d");
@@ -2212,22 +2250,22 @@ function A(e) {
2212
2250
  throw new DOMException("Source would taint origin.", "SecurityError");
2213
2251
  }
2214
2252
  }
2215
- async function be(e) {
2216
- if (ve(e)) return await k(e);
2217
- if (ye(e)) {
2218
- if (M(e)) throw new DOMException("The image data has been detached.", "InvalidStateError");
2253
+ async function ye(e) {
2254
+ if (_e(e)) return await A(e);
2255
+ if (ve(e)) {
2256
+ if (N(e)) throw new DOMException("The image data has been detached.", "InvalidStateError");
2219
2257
  return e;
2220
2258
  }
2221
- return E(e) || ge(e) ? A(e) : await O(e);
2259
+ return D(e) || he(e) ? j(e) : await k(e);
2222
2260
  }
2223
- async function j(e) {
2261
+ async function M(e) {
2224
2262
  try {
2225
2263
  return await e.decode(), !0;
2226
2264
  } catch {
2227
2265
  return !1;
2228
2266
  }
2229
2267
  }
2230
- async function xe(e) {
2268
+ async function be(e) {
2231
2269
  try {
2232
2270
  var t;
2233
2271
  return await ((t = e.decode) == null ? void 0 : t.call(e)), !0;
@@ -2235,78 +2273,78 @@ async function xe(e) {
2235
2273
  return !1;
2236
2274
  }
2237
2275
  }
2238
- function Se(e) {
2276
+ function xe(e) {
2239
2277
  return e.format === null;
2240
2278
  }
2241
- function M(e) {
2279
+ function N(e) {
2242
2280
  return e.data.buffer.byteLength === 0;
2243
2281
  }
2244
- function Ce(e) {
2282
+ function Se(e) {
2245
2283
  return e.width === 0 && e.height === 0;
2246
2284
  }
2247
- function we(e, t) {
2248
- return Te(e) ? new DOMException(`${t}: ${e.message}`, e.name) : Ee(e) ? new e.constructor(`${t}: ${e.message}`) : /* @__PURE__ */ Error(`${t}: ${e}`);
2285
+ function Ce(e, t) {
2286
+ return we(e) ? new DOMException(`${t}: ${e.message}`, e.name) : Te(e) ? new e.constructor(`${t}: ${e.message}`) : /* @__PURE__ */ Error(`${t}: ${e}`);
2249
2287
  }
2250
- function Te(e) {
2288
+ function we(e) {
2251
2289
  return e instanceof DOMException || Object.prototype.toString.call(e) === "[object DOMException]";
2252
2290
  }
2253
- function Ee(e) {
2291
+ function Te(e) {
2254
2292
  return e instanceof Error || Object.prototype.toString.call(e) === "[object Error]";
2255
2293
  }
2256
2294
  //#endregion
2257
- //#region \0@oxc-project+runtime@0.122.0/helpers/checkPrivateRedeclaration.js
2258
- function De(e, t) {
2295
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/checkPrivateRedeclaration.js
2296
+ function Ee(e, t) {
2259
2297
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
2260
2298
  }
2261
2299
  //#endregion
2262
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldInitSpec.js
2263
- function Oe(e, t, n) {
2264
- De(e, t), t.set(e, n);
2300
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
2301
+ function De(e, t, n) {
2302
+ Ee(e, t), t.set(e, n);
2265
2303
  }
2266
2304
  //#endregion
2267
- //#region \0@oxc-project+runtime@0.122.0/helpers/assertClassBrand.js
2268
- function ke(e, t, n) {
2305
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/assertClassBrand.js
2306
+ function Oe(e, t, n) {
2269
2307
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
2270
2308
  throw TypeError("Private element is not present on this object");
2271
2309
  }
2272
2310
  //#endregion
2273
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldSet2.js
2274
- function Ae(e, t, n) {
2275
- return e.set(ke(e, t), n), n;
2311
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
2312
+ function ke(e, t, n) {
2313
+ return e.set(Oe(e, t), n), n;
2276
2314
  }
2277
2315
  //#endregion
2278
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldGet2.js
2279
- function je(e, t) {
2280
- return e.get(ke(e, t));
2316
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
2317
+ function Ae(e, t) {
2318
+ return e.get(Oe(e, t));
2281
2319
  }
2282
2320
  //#endregion
2283
2321
  //#region src/core.ts
2284
- var N = /* @__PURE__ */ new WeakMap(), Me = class {
2322
+ var P = /* @__PURE__ */ new WeakMap(), je = class {
2285
2323
  constructor(e = {}) {
2286
- Oe(this, N, void 0);
2324
+ De(this, P, void 0);
2287
2325
  try {
2288
2326
  var t;
2289
2327
  let n = e == null || (t = e.formats) == null ? void 0 : t.filter((e) => e !== "unknown");
2290
2328
  if ((n == null ? void 0 : n.length) === 0) throw TypeError("Hint option provided, but is empty.");
2291
- for (let e of n == null ? [] : n) if (!S.has(e)) throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`);
2292
- Ae(N, this, n == null ? [] : n), b({ fireImmediately: !0 }).catch(() => {});
2329
+ for (let e of n == null ? [] : n) if (!C.has(e)) throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`);
2330
+ ke(P, this, n == null ? [] : n), x({ fireImmediately: !0 }).catch(() => {});
2293
2331
  } catch (e) {
2294
- throw we(e, "Failed to construct 'BarcodeDetector'");
2332
+ throw Ce(e, "Failed to construct 'BarcodeDetector'");
2295
2333
  }
2296
2334
  }
2297
2335
  static async getSupportedFormats() {
2298
- return x.filter((e) => e !== "unknown");
2336
+ return S.filter((e) => e !== "unknown");
2299
2337
  }
2300
2338
  async detect(e) {
2301
2339
  try {
2302
- let t = await be(e);
2340
+ let t = await ye(e);
2303
2341
  if (t === null) return [];
2304
2342
  let n, r = {
2305
2343
  textMode: "Plain",
2306
- formats: je(N, this).map((e) => S.get(e))
2344
+ formats: Ae(P, this).map((e) => C.get(e))
2307
2345
  };
2308
2346
  try {
2309
- n = await ue(t, r);
2347
+ n = await le(t, r);
2310
2348
  } catch (e) {
2311
2349
  throw console.error(e), new DOMException("Barcode detection service unavailable.", "NotSupportedError");
2312
2350
  }
@@ -2315,7 +2353,7 @@ var N = /* @__PURE__ */ new WeakMap(), Me = class {
2315
2353
  return {
2316
2354
  boundingBox: new DOMRectReadOnly(l, u, d - l, f - u),
2317
2355
  rawValue: e.text,
2318
- format: C(e.format),
2356
+ format: w(e.format),
2319
2357
  cornerPoints: [
2320
2358
  {
2321
2359
  x: t,
@@ -2337,9 +2375,9 @@ var N = /* @__PURE__ */ new WeakMap(), Me = class {
2337
2375
  };
2338
2376
  });
2339
2377
  } catch (e) {
2340
- throw we(e, "Failed to execute 'detect' on 'BarcodeDetector'");
2378
+ throw Ce(e, "Failed to execute 'detect' on 'BarcodeDetector'");
2341
2379
  }
2342
2380
  }
2343
2381
  };
2344
2382
  //#endregion
2345
- export { ce as a, de as i, le as n, ee as o, b as r, te as s, Me as t };
2383
+ export { se as a, ue as i, ce as n, ee as o, x as r, v as s, je as t };