barcode-detector 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BarcodeDetector.d.ts +2 -2
- package/dist/cjs/pure.js +3 -3
- package/dist/es/BarcodeDetector.d.ts +2 -2
- package/dist/es/pure.js +202 -199
- package/dist/iife/index.js +3 -3
- package/dist/iife/pure.js +3 -3
- package/dist/iife/side-effects.js +3 -3
- package/package.json +7 -7
package/dist/es/pure.js
CHANGED
|
@@ -6,8 +6,8 @@ var Kt = (i, h, s) => (Ye(i, h, "read from private field"), s ? s.call(i) : h.ge
|
|
|
6
6
|
if (h.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
h instanceof WeakSet ? h.add(i) : h.set(i, s);
|
|
9
|
-
},
|
|
10
|
-
const
|
|
9
|
+
}, Ne = (i, h, s, w) => (Ye(i, h, "write to private field"), w ? w.call(i, s) : h.set(i, s), s);
|
|
10
|
+
const Ge = [
|
|
11
11
|
"aztec",
|
|
12
12
|
"code_128",
|
|
13
13
|
"code_39",
|
|
@@ -152,7 +152,7 @@ async function or(i) {
|
|
|
152
152
|
throw new DOMException("VideoFrame is closed.", "InvalidStateError");
|
|
153
153
|
if (Ke(i) && (i.readyState === 0 || i.readyState === 1))
|
|
154
154
|
throw new DOMException("Invalid element or state.", "InvalidStateError");
|
|
155
|
-
if (er(i) &&
|
|
155
|
+
if (er(i) && Fa(i))
|
|
156
156
|
throw new DOMException(
|
|
157
157
|
"The image source is detached.",
|
|
158
158
|
"InvalidStateError"
|
|
@@ -206,7 +206,7 @@ async function Ea(i) {
|
|
|
206
206
|
if (ar(i))
|
|
207
207
|
return await Ta(i);
|
|
208
208
|
if (Ca(i)) {
|
|
209
|
-
if (
|
|
209
|
+
if (Sa(i))
|
|
210
210
|
throw new DOMException(
|
|
211
211
|
"The image data has been detached.",
|
|
212
212
|
"InvalidStateError"
|
|
@@ -233,10 +233,10 @@ async function Oa(i) {
|
|
|
233
233
|
function Da(i) {
|
|
234
234
|
return i.format === null;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Sa(i) {
|
|
237
237
|
return i.data.buffer.byteLength === 0;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Fa(i) {
|
|
240
240
|
return i.width === 0 && i.height === 0;
|
|
241
241
|
}
|
|
242
242
|
function Xe(i, h) {
|
|
@@ -281,10 +281,10 @@ function Ma(i) {
|
|
|
281
281
|
function Ze(i) {
|
|
282
282
|
return i.toLowerCase().replace(/_-\[\]/g, "");
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ia(i, h) {
|
|
285
285
|
return i.Binarizer[h];
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function ja(i, h) {
|
|
288
288
|
return i.CharacterSet[h];
|
|
289
289
|
}
|
|
290
290
|
const Ra = [
|
|
@@ -304,7 +304,7 @@ function ka(i, h) {
|
|
|
304
304
|
function Ha(i, h) {
|
|
305
305
|
return i.TextMode[h];
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const $t = {
|
|
308
308
|
formats: [],
|
|
309
309
|
tryHarder: !0,
|
|
310
310
|
tryRotate: !0,
|
|
@@ -329,13 +329,13 @@ function ir(i, h) {
|
|
|
329
329
|
return {
|
|
330
330
|
...h,
|
|
331
331
|
formats: xa(h.formats),
|
|
332
|
-
binarizer:
|
|
332
|
+
binarizer: Ia(i, h.binarizer),
|
|
333
333
|
eanAddOnSymbol: ka(
|
|
334
334
|
i,
|
|
335
335
|
h.eanAddOnSymbol
|
|
336
336
|
),
|
|
337
337
|
textMode: Ha(i, h.textMode),
|
|
338
|
-
characterSet:
|
|
338
|
+
characterSet: ja(
|
|
339
339
|
i,
|
|
340
340
|
h.characterSet
|
|
341
341
|
)
|
|
@@ -352,7 +352,7 @@ function sr(i) {
|
|
|
352
352
|
const Ba = {
|
|
353
353
|
locateFile: (i, h) => {
|
|
354
354
|
const s = i.match(/_(.+?)\.wasm$/);
|
|
355
|
-
return s ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.0.0-rc.
|
|
355
|
+
return s ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.0.0-rc.6/dist/${s[1]}/${i}` : h + i;
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
let te = /* @__PURE__ */ new WeakMap();
|
|
@@ -361,7 +361,9 @@ function re(i, h) {
|
|
|
361
361
|
const w = te.get(i);
|
|
362
362
|
if (w != null && w.modulePromise && (h === void 0 || Object.is(h, w.moduleOverrides)))
|
|
363
363
|
return w.modulePromise;
|
|
364
|
-
const v = (s = h != null ? h : w == null ? void 0 : w.moduleOverrides) != null ? s : Ba, $ = i({
|
|
364
|
+
const v = (s = h != null ? h : w == null ? void 0 : w.moduleOverrides) != null ? s : Ba, $ = i({
|
|
365
|
+
...v
|
|
366
|
+
});
|
|
365
367
|
return te.set(i, {
|
|
366
368
|
moduleOverrides: v,
|
|
367
369
|
modulePromise: $
|
|
@@ -372,9 +374,9 @@ function Ua(i, h) {
|
|
|
372
374
|
moduleOverrides: h
|
|
373
375
|
});
|
|
374
376
|
}
|
|
375
|
-
async function Va(i, h, s =
|
|
377
|
+
async function Va(i, h, s = $t) {
|
|
376
378
|
const w = {
|
|
377
|
-
|
|
379
|
+
...$t,
|
|
378
380
|
...s
|
|
379
381
|
}, v = await re(i), { size: $ } = h, H = new Uint8Array(await h.arrayBuffer()), L = v._malloc($);
|
|
380
382
|
v.HEAPU8.set(H, L);
|
|
@@ -391,9 +393,9 @@ async function Va(i, h, s = Mt) {
|
|
|
391
393
|
);
|
|
392
394
|
return O;
|
|
393
395
|
}
|
|
394
|
-
async function La(i, h, s =
|
|
396
|
+
async function La(i, h, s = $t) {
|
|
395
397
|
const w = {
|
|
396
|
-
|
|
398
|
+
...$t,
|
|
397
399
|
...s
|
|
398
400
|
}, v = await re(i), {
|
|
399
401
|
data: $,
|
|
@@ -409,14 +411,15 @@ async function La(i, h, s = Mt) {
|
|
|
409
411
|
ir(v, w)
|
|
410
412
|
);
|
|
411
413
|
v._free(O);
|
|
412
|
-
const
|
|
414
|
+
const G = [];
|
|
413
415
|
for (let U = 0; U < Y.size(); ++U)
|
|
414
|
-
|
|
416
|
+
G.push(
|
|
415
417
|
sr(Y.get(U))
|
|
416
418
|
);
|
|
417
|
-
return
|
|
419
|
+
return G;
|
|
418
420
|
}
|
|
419
|
-
|
|
421
|
+
structuredClone($t);
|
|
422
|
+
var It = (() => {
|
|
420
423
|
var i = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
421
424
|
return function(h = {}) {
|
|
422
425
|
var s = h, w, v;
|
|
@@ -429,8 +432,8 @@ var jt = (() => {
|
|
|
429
432
|
function Y(t) {
|
|
430
433
|
return s.locateFile ? s.locateFile(t, O) : O + t;
|
|
431
434
|
}
|
|
432
|
-
var
|
|
433
|
-
(L || B) && (B ? O = self.location.href : typeof document < "u" && document.currentScript && (O = document.currentScript.src), i && (O = i), O.indexOf("blob:") !== 0 ? O = O.substr(0, O.replace(/[?#].*/, "").lastIndexOf("/") + 1) : O = "", B && (
|
|
435
|
+
var G;
|
|
436
|
+
(L || B) && (B ? O = self.location.href : typeof document < "u" && document.currentScript && (O = document.currentScript.src), i && (O = i), O.indexOf("blob:") !== 0 ? O = O.substr(0, O.replace(/[?#].*/, "").lastIndexOf("/") + 1) : O = "", B && (G = (t) => {
|
|
434
437
|
var e = new XMLHttpRequest();
|
|
435
438
|
return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
|
|
436
439
|
})), s.print || console.log.bind(console);
|
|
@@ -439,7 +442,7 @@ var jt = (() => {
|
|
|
439
442
|
var Z;
|
|
440
443
|
s.wasmBinary && (Z = s.wasmBinary), typeof WebAssembly != "object" && ht("no native wasm support detected");
|
|
441
444
|
var tt, lt = !1;
|
|
442
|
-
function
|
|
445
|
+
function jt(t, e) {
|
|
443
446
|
t || ht(e);
|
|
444
447
|
}
|
|
445
448
|
var V, k, ot, dt, W, _, ne, ae;
|
|
@@ -492,8 +495,8 @@ var jt = (() => {
|
|
|
492
495
|
function le(t) {
|
|
493
496
|
if (t == it && Z)
|
|
494
497
|
return new Uint8Array(Z);
|
|
495
|
-
if (
|
|
496
|
-
return
|
|
498
|
+
if (G)
|
|
499
|
+
return G(t);
|
|
497
500
|
throw "both async and sync fetching of the wasm failed";
|
|
498
501
|
}
|
|
499
502
|
function vr(t) {
|
|
@@ -538,12 +541,12 @@ var jt = (() => {
|
|
|
538
541
|
t.shift()(s);
|
|
539
542
|
};
|
|
540
543
|
s.noExitRuntime;
|
|
541
|
-
var
|
|
544
|
+
var bt = [], Ct = 0, $r = (t) => {
|
|
542
545
|
var e = new Wt(t);
|
|
543
|
-
return e.get_caught() || (e.set_caught(!0),
|
|
546
|
+
return e.get_caught() || (e.set_caught(!0), Ct--), e.set_rethrown(!1), bt.push(e), He(e.excPtr), e.get_exception_ptr();
|
|
544
547
|
}, J = 0, br = () => {
|
|
545
548
|
A(0, 0);
|
|
546
|
-
var t =
|
|
549
|
+
var t = bt.pop();
|
|
547
550
|
ke(t.excPtr), J = 0;
|
|
548
551
|
};
|
|
549
552
|
function Wt(t) {
|
|
@@ -598,14 +601,14 @@ var jt = (() => {
|
|
|
598
601
|
}
|
|
599
602
|
return wt(n), e;
|
|
600
603
|
}, _r = () => kt([]), Tr = (t) => kt([t]), Pr = (t, e) => kt([t, e]), Er = () => {
|
|
601
|
-
var t =
|
|
604
|
+
var t = bt.pop();
|
|
602
605
|
t || ht("no exception to throw");
|
|
603
606
|
var e = t.excPtr;
|
|
604
|
-
throw t.get_rethrown() || (
|
|
607
|
+
throw t.get_rethrown() || (bt.push(t), t.set_rethrown(!0), t.set_caught(!1), Ct++), J = e, J;
|
|
605
608
|
}, Ar = (t, e, r) => {
|
|
606
609
|
var n = new Wt(t);
|
|
607
|
-
throw n.init(e, r), J = t,
|
|
608
|
-
}, Or = () =>
|
|
610
|
+
throw n.init(e, r), J = t, Ct++, J;
|
|
611
|
+
}, Or = () => Ct, _t = {}, fe = (t) => {
|
|
609
612
|
for (; t.length; ) {
|
|
610
613
|
var e = t.pop(), r = t.pop();
|
|
611
614
|
r(e);
|
|
@@ -614,15 +617,15 @@ var jt = (() => {
|
|
|
614
617
|
function Ht(t) {
|
|
615
618
|
return this.fromWireType(W[t >> 2]);
|
|
616
619
|
}
|
|
617
|
-
var st = {}, rt = {},
|
|
620
|
+
var st = {}, rt = {}, Tt = {}, he, Pt = (t) => {
|
|
618
621
|
throw new he(t);
|
|
619
622
|
}, nt = (t, e, r) => {
|
|
620
623
|
t.forEach(function(c) {
|
|
621
|
-
|
|
624
|
+
Tt[c] = e;
|
|
622
625
|
});
|
|
623
626
|
function n(c) {
|
|
624
627
|
var l = r(c);
|
|
625
|
-
l.length !== t.length &&
|
|
628
|
+
l.length !== t.length && Pt("Mismatched type converter count");
|
|
626
629
|
for (var f = 0; f < t.length; ++f)
|
|
627
630
|
X(t[f], l[f]);
|
|
628
631
|
}
|
|
@@ -633,16 +636,16 @@ var jt = (() => {
|
|
|
633
636
|
}));
|
|
634
637
|
}), o.length === 0 && n(a);
|
|
635
638
|
}, Dr = (t) => {
|
|
636
|
-
var e =
|
|
637
|
-
delete
|
|
639
|
+
var e = _t[t];
|
|
640
|
+
delete _t[t];
|
|
638
641
|
var r = e.rawConstructor, n = e.rawDestructor, a = e.fields, o = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
|
|
639
642
|
nt([t], o, (u) => {
|
|
640
643
|
var c = {};
|
|
641
644
|
return a.forEach((l, f) => {
|
|
642
|
-
var p = l.fieldName, y = u[f], g = l.getter, b = l.getterContext, T = u[f + a.length],
|
|
645
|
+
var p = l.fieldName, y = u[f], g = l.getter, b = l.getterContext, T = u[f + a.length], j = l.setter, P = l.setterContext;
|
|
643
646
|
c[p] = { read: (R) => y.fromWireType(g(b, R)), write: (R, d) => {
|
|
644
647
|
var m = [];
|
|
645
|
-
|
|
648
|
+
j(P, R, T.toWireType(m, d)), fe(m);
|
|
646
649
|
} };
|
|
647
650
|
}), [{ name: e.name, fromWireType: (l) => {
|
|
648
651
|
var f = {};
|
|
@@ -659,12 +662,12 @@ var jt = (() => {
|
|
|
659
662
|
return l !== null && l.push(n, y), y;
|
|
660
663
|
}, argPackAdvance: q, readValueFromPointer: Ht, destructorFunction: n }];
|
|
661
664
|
});
|
|
662
|
-
},
|
|
663
|
-
},
|
|
665
|
+
}, Sr = (t, e, r, n, a) => {
|
|
666
|
+
}, Fr = () => {
|
|
664
667
|
for (var t = new Array(256), e = 0; e < 256; ++e)
|
|
665
668
|
t[e] = String.fromCharCode(e);
|
|
666
669
|
pe = t;
|
|
667
|
-
}, pe,
|
|
670
|
+
}, pe, I = (t) => {
|
|
668
671
|
for (var e = "", r = t; k[r]; )
|
|
669
672
|
e += pe[k[r++]];
|
|
670
673
|
return e;
|
|
@@ -678,7 +681,7 @@ var jt = (() => {
|
|
|
678
681
|
return;
|
|
679
682
|
C(`Cannot register type '${n}' twice`);
|
|
680
683
|
}
|
|
681
|
-
if (rt[t] = e, delete
|
|
684
|
+
if (rt[t] = e, delete Tt[t], st.hasOwnProperty(t)) {
|
|
682
685
|
var a = st[t];
|
|
683
686
|
delete st[t], a.forEach((o) => o());
|
|
684
687
|
}
|
|
@@ -689,25 +692,25 @@ var jt = (() => {
|
|
|
689
692
|
return xr(t, e, r);
|
|
690
693
|
}
|
|
691
694
|
var q = 8, Mr = (t, e, r, n) => {
|
|
692
|
-
e =
|
|
695
|
+
e = I(e), X(t, { name: e, fromWireType: function(a) {
|
|
693
696
|
return !!a;
|
|
694
697
|
}, toWireType: function(a, o) {
|
|
695
698
|
return o ? r : n;
|
|
696
699
|
}, argPackAdvance: q, readValueFromPointer: function(a) {
|
|
697
700
|
return this.fromWireType(k[a]);
|
|
698
701
|
}, destructorFunction: null });
|
|
699
|
-
},
|
|
702
|
+
}, Ir = (t) => ({ count: t.count, deleteScheduled: t.deleteScheduled, preservePointerOnDelete: t.preservePointerOnDelete, ptr: t.ptr, ptrType: t.ptrType, smartPtr: t.smartPtr, smartPtrType: t.smartPtrType }), Bt = (t) => {
|
|
700
703
|
function e(r) {
|
|
701
704
|
return r.$$.ptrType.registeredClass.name;
|
|
702
705
|
}
|
|
703
706
|
C(e(t) + " instance already deleted");
|
|
704
707
|
}, Ut = !1, me = (t) => {
|
|
705
|
-
},
|
|
708
|
+
}, jr = (t) => {
|
|
706
709
|
t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
|
|
707
710
|
}, ye = (t) => {
|
|
708
711
|
t.count.value -= 1;
|
|
709
712
|
var e = t.count.value === 0;
|
|
710
|
-
e &&
|
|
713
|
+
e && jr(t);
|
|
711
714
|
}, ve = (t, e, r) => {
|
|
712
715
|
if (e === r)
|
|
713
716
|
return t;
|
|
@@ -733,10 +736,10 @@ var jt = (() => {
|
|
|
733
736
|
for (e === void 0 && C("ptr should not be undefined"); t.baseClass; )
|
|
734
737
|
e = t.upcast(e), t = t.baseClass;
|
|
735
738
|
return e;
|
|
736
|
-
}, Ur = (t, e) => (e = Br(t, e), yt[e]),
|
|
737
|
-
(!e.ptrType || !e.ptr) &&
|
|
739
|
+
}, Ur = (t, e) => (e = Br(t, e), yt[e]), Et = (t, e) => {
|
|
740
|
+
(!e.ptrType || !e.ptr) && Pt("makeClassHandle requires ptr and ptrType");
|
|
738
741
|
var r = !!e.smartPtrType, n = !!e.smartPtr;
|
|
739
|
-
return r !== n &&
|
|
742
|
+
return r !== n && Pt("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, vt(Object.create(t, { $$: { value: e } }));
|
|
740
743
|
};
|
|
741
744
|
function Vr(t) {
|
|
742
745
|
var e = this.getPointee(t);
|
|
@@ -750,7 +753,7 @@ var jt = (() => {
|
|
|
750
753
|
return this.destructor(t), n;
|
|
751
754
|
}
|
|
752
755
|
function a() {
|
|
753
|
-
return this.isSmartPointer ?
|
|
756
|
+
return this.isSmartPointer ? Et(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: e, smartPtrType: this, smartPtr: t }) : Et(this.registeredClass.instancePrototype, { ptrType: this, ptr: t });
|
|
754
757
|
}
|
|
755
758
|
var o = this.registeredClass.getActualType(e), u = ge[o];
|
|
756
759
|
if (!u)
|
|
@@ -758,7 +761,7 @@ var jt = (() => {
|
|
|
758
761
|
var c;
|
|
759
762
|
this.isConst ? c = u.constPointerType : c = u.pointerType;
|
|
760
763
|
var l = ve(e, this.registeredClass, c.registeredClass);
|
|
761
|
-
return l === null ? a.call(this) : this.isSmartPointer ?
|
|
764
|
+
return l === null ? a.call(this) : this.isSmartPointer ? Et(c.registeredClass.instancePrototype, { ptrType: c, ptr: l, smartPtrType: this, smartPtr: t }) : Et(c.registeredClass.instancePrototype, { ptrType: c, ptr: l });
|
|
762
765
|
}
|
|
763
766
|
var vt = (t) => typeof FinalizationRegistry > "u" ? (vt = (e) => e, t) : (Ut = new FinalizationRegistry((e) => {
|
|
764
767
|
ye(e.$$);
|
|
@@ -770,8 +773,8 @@ var jt = (() => {
|
|
|
770
773
|
}
|
|
771
774
|
return e;
|
|
772
775
|
}, me = (e) => Ut.unregister(e), vt(t)), Lr = () => {
|
|
773
|
-
Object.assign(
|
|
774
|
-
if (!(this instanceof
|
|
776
|
+
Object.assign(At.prototype, { isAliasOf(t) {
|
|
777
|
+
if (!(this instanceof At) || !(t instanceof At))
|
|
775
778
|
return !1;
|
|
776
779
|
var e = this.$$.ptrType.registeredClass, r = this.$$.ptr;
|
|
777
780
|
t.$$ = t.$$;
|
|
@@ -783,7 +786,7 @@ var jt = (() => {
|
|
|
783
786
|
}, clone() {
|
|
784
787
|
if (this.$$.ptr || Bt(this), this.$$.preservePointerOnDelete)
|
|
785
788
|
return this.$$.count.value += 1, this;
|
|
786
|
-
var t = vt(Object.create(Object.getPrototypeOf(this), { $$: { value:
|
|
789
|
+
var t = vt(Object.create(Object.getPrototypeOf(this), { $$: { value: Ir(this.$$) } }));
|
|
787
790
|
return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
|
|
788
791
|
}, delete() {
|
|
789
792
|
this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), me(this), ye(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
@@ -793,7 +796,7 @@ var jt = (() => {
|
|
|
793
796
|
return this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && mt && mt(Vt), this.$$.deleteScheduled = !0, this;
|
|
794
797
|
} });
|
|
795
798
|
};
|
|
796
|
-
function
|
|
799
|
+
function At() {
|
|
797
800
|
}
|
|
798
801
|
var Yr = 48, zr = 57, we = (t) => {
|
|
799
802
|
if (t === void 0)
|
|
@@ -817,7 +820,7 @@ var jt = (() => {
|
|
|
817
820
|
}, Yt = (t, e, r) => {
|
|
818
821
|
s.hasOwnProperty(t) ? ((r === void 0 || s[t].overloadTable !== void 0 && s[t].overloadTable[r] !== void 0) && C(`Cannot register public name '${t}' twice`), $e(s, t, t), s.hasOwnProperty(r) && C(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), s[t].overloadTable[r] = e) : (s[t] = e, r !== void 0 && (s[t].numArguments = r));
|
|
819
822
|
};
|
|
820
|
-
function
|
|
823
|
+
function Nr(t, e, r, n, a, o, u, c) {
|
|
821
824
|
this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = o, this.upcast = u, this.downcast = c, this.pureVirtualFunctions = [];
|
|
822
825
|
}
|
|
823
826
|
var zt = (t, e, r) => {
|
|
@@ -825,7 +828,7 @@ var jt = (() => {
|
|
|
825
828
|
e.upcast || C(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
|
|
826
829
|
return t;
|
|
827
830
|
};
|
|
828
|
-
function
|
|
831
|
+
function Gr(t, e) {
|
|
829
832
|
if (e === null)
|
|
830
833
|
return this.isReference && C(`null is not a valid ${this.name}`), 0;
|
|
831
834
|
e.$$ || C(`Cannot pass "${qt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -870,7 +873,7 @@ var jt = (() => {
|
|
|
870
873
|
return this.fromWireType(_[t >> 2]);
|
|
871
874
|
}
|
|
872
875
|
var Zr = () => {
|
|
873
|
-
Object.assign(
|
|
876
|
+
Object.assign(Ot.prototype, { getPointee(t) {
|
|
874
877
|
return this.rawGetPointee && (t = this.rawGetPointee(t)), t;
|
|
875
878
|
}, destructor(t) {
|
|
876
879
|
this.rawDestructor && this.rawDestructor(t);
|
|
@@ -878,17 +881,17 @@ var jt = (() => {
|
|
|
878
881
|
t !== null && t.delete();
|
|
879
882
|
}, fromWireType: Vr });
|
|
880
883
|
};
|
|
881
|
-
function
|
|
882
|
-
this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = u, this.rawGetPointee = c, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = p, !a && e.baseClass === void 0 ? n ? (this.toWireType =
|
|
884
|
+
function Ot(t, e, r, n, a, o, u, c, l, f, p) {
|
|
885
|
+
this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = u, this.rawGetPointee = c, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = p, !a && e.baseClass === void 0 ? n ? (this.toWireType = Gr, this.destructorFunction = null) : (this.toWireType = qr, this.destructorFunction = null) : this.toWireType = Xr;
|
|
883
886
|
}
|
|
884
887
|
var Ce = (t, e, r) => {
|
|
885
|
-
s.hasOwnProperty(t) ||
|
|
888
|
+
s.hasOwnProperty(t) || Pt("Replacing nonexistant public symbol"), s[t].overloadTable !== void 0 && r !== void 0 ? s[t].overloadTable[r] = e : (s[t] = e, s[t].argCount = r);
|
|
886
889
|
}, Jr = (t, e, r) => {
|
|
887
890
|
var n = s["dynCall_" + t];
|
|
888
891
|
return r && r.length ? n.apply(null, [e].concat(r)) : n.call(null, e);
|
|
889
|
-
},
|
|
890
|
-
var e =
|
|
891
|
-
return e || (t >=
|
|
892
|
+
}, Dt = [], _e, D = (t) => {
|
|
893
|
+
var e = Dt[t];
|
|
894
|
+
return e || (t >= Dt.length && (Dt.length = t + 1), Dt[t] = e = _e.get(t)), e;
|
|
892
895
|
}, Qr = (t, e, r) => {
|
|
893
896
|
if (t.includes("j"))
|
|
894
897
|
return Jr(t, e, r);
|
|
@@ -899,8 +902,8 @@ var jt = (() => {
|
|
|
899
902
|
return function() {
|
|
900
903
|
return r.length = 0, Object.assign(r, arguments), Qr(t, e, r);
|
|
901
904
|
};
|
|
902
|
-
},
|
|
903
|
-
t =
|
|
905
|
+
}, N = (t, e) => {
|
|
906
|
+
t = I(t);
|
|
904
907
|
function r() {
|
|
905
908
|
return t.includes("j") ? Kr(t, e) : D(e);
|
|
906
909
|
}
|
|
@@ -917,14 +920,14 @@ var jt = (() => {
|
|
|
917
920
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
918
921
|
}, r;
|
|
919
922
|
}, Te, Pe = (t) => {
|
|
920
|
-
var e = We(t), r =
|
|
923
|
+
var e = We(t), r = I(e);
|
|
921
924
|
return Q(e), r;
|
|
922
|
-
},
|
|
925
|
+
}, St = (t, e) => {
|
|
923
926
|
var r = [], n = {};
|
|
924
927
|
function a(o) {
|
|
925
928
|
if (!n[o] && !rt[o]) {
|
|
926
|
-
if (
|
|
927
|
-
|
|
929
|
+
if (Tt[o]) {
|
|
930
|
+
Tt[o].forEach(a);
|
|
928
931
|
return;
|
|
929
932
|
}
|
|
930
933
|
r.push(o), n[o] = !0;
|
|
@@ -932,36 +935,36 @@ var jt = (() => {
|
|
|
932
935
|
}
|
|
933
936
|
throw e.forEach(a), new Te(`${t}: ` + r.map(Pe).join([", "]));
|
|
934
937
|
}, en = (t, e, r, n, a, o, u, c, l, f, p, y, g) => {
|
|
935
|
-
p =
|
|
938
|
+
p = I(p), o = N(a, o), c && (c = N(u, c)), f && (f = N(l, f)), g = N(y, g);
|
|
936
939
|
var b = we(p);
|
|
937
940
|
Yt(b, function() {
|
|
938
|
-
|
|
941
|
+
St(`Cannot construct ${p} due to unbound types`, [n]);
|
|
939
942
|
}), nt([t, e, r], n ? [n] : [], function(T) {
|
|
940
943
|
T = T[0];
|
|
941
|
-
var
|
|
942
|
-
n ? (
|
|
944
|
+
var j, P;
|
|
945
|
+
n ? (j = T.registeredClass, P = j.instancePrototype) : P = At.prototype;
|
|
943
946
|
var R = Lt(b, function() {
|
|
944
947
|
if (Object.getPrototypeOf(this) !== d)
|
|
945
948
|
throw new ut("Use 'new' to construct " + p);
|
|
946
949
|
if (m.constructor_body === void 0)
|
|
947
950
|
throw new ut(p + " has no accessible constructor");
|
|
948
|
-
var
|
|
949
|
-
if (
|
|
951
|
+
var Mt = m.constructor_body[arguments.length];
|
|
952
|
+
if (Mt === void 0)
|
|
950
953
|
throw new ut(`Tried to invoke ctor of ${p} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(m.constructor_body).toString()}) parameters instead!`);
|
|
951
|
-
return
|
|
954
|
+
return Mt.apply(this, arguments);
|
|
952
955
|
}), d = Object.create(P, { constructor: { value: R } });
|
|
953
956
|
R.prototype = d;
|
|
954
|
-
var m = new
|
|
957
|
+
var m = new Nr(p, R, d, g, j, o, c, f);
|
|
955
958
|
m.baseClass && (m.baseClass.__derivedClasses === void 0 && (m.baseClass.__derivedClasses = []), m.baseClass.__derivedClasses.push(m));
|
|
956
|
-
var x = new
|
|
959
|
+
var x = new Ot(p, m, !0, !1, !1), M = new Ot(p + "*", m, !1, !1, !1), at = new Ot(p + " const*", m, !1, !0, !1);
|
|
957
960
|
return ge[t] = { pointerType: M, constPointerType: at }, Ce(b, R), [x, M, at];
|
|
958
961
|
});
|
|
959
|
-
},
|
|
962
|
+
}, Nt = (t, e) => {
|
|
960
963
|
for (var r = [], n = 0; n < t; n++)
|
|
961
964
|
r.push(_[e + n * 4 >> 2]);
|
|
962
965
|
return r;
|
|
963
966
|
};
|
|
964
|
-
function
|
|
967
|
+
function Gt(t, e, r, n, a, o) {
|
|
965
968
|
var u = e.length;
|
|
966
969
|
u < 2 && C("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
967
970
|
for (var c = e[1] !== null && r !== null, l = !1, f = 1; f < e.length; ++f)
|
|
@@ -972,8 +975,8 @@ var jt = (() => {
|
|
|
972
975
|
var p = e[0].name !== "void", y = u - 2, g = new Array(y), b = [], T = [];
|
|
973
976
|
return function() {
|
|
974
977
|
arguments.length !== y && C(`function ${t} called with ${arguments.length} arguments, expected ${y}`), T.length = 0;
|
|
975
|
-
var
|
|
976
|
-
b.length = c ? 2 : 1, b[0] = a, c && (
|
|
978
|
+
var j;
|
|
979
|
+
b.length = c ? 2 : 1, b[0] = a, c && (j = e[1].toWireType(T, this), b[1] = j);
|
|
977
980
|
for (var P = 0; P < y; ++P)
|
|
978
981
|
g[P] = e[P + 2].toWireType(T, arguments[P]), b.push(g[P]);
|
|
979
982
|
var R = n.apply(null, b);
|
|
@@ -982,7 +985,7 @@ var jt = (() => {
|
|
|
982
985
|
fe(T);
|
|
983
986
|
else
|
|
984
987
|
for (var x = c ? 1 : 2; x < e.length; x++) {
|
|
985
|
-
var M = x === 1 ?
|
|
988
|
+
var M = x === 1 ? j : g[x - 2];
|
|
986
989
|
e[x].destructorFunction !== null && e[x].destructorFunction(M);
|
|
987
990
|
}
|
|
988
991
|
if (p)
|
|
@@ -992,32 +995,32 @@ var jt = (() => {
|
|
|
992
995
|
};
|
|
993
996
|
}
|
|
994
997
|
var rn = (t, e, r, n, a, o) => {
|
|
995
|
-
var u =
|
|
996
|
-
a =
|
|
998
|
+
var u = Nt(e, r);
|
|
999
|
+
a = N(n, a), nt([], [t], function(c) {
|
|
997
1000
|
c = c[0];
|
|
998
1001
|
var l = `constructor ${c.name}`;
|
|
999
1002
|
if (c.registeredClass.constructor_body === void 0 && (c.registeredClass.constructor_body = []), c.registeredClass.constructor_body[e - 1] !== void 0)
|
|
1000
1003
|
throw new ut(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${c.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1001
1004
|
return c.registeredClass.constructor_body[e - 1] = () => {
|
|
1002
|
-
|
|
1003
|
-
}, nt([], u, (f) => (f.splice(1, 0, null), c.registeredClass.constructor_body[e - 1] =
|
|
1005
|
+
St(`Cannot construct ${c.name} due to unbound types`, u);
|
|
1006
|
+
}, nt([], u, (f) => (f.splice(1, 0, null), c.registeredClass.constructor_body[e - 1] = Gt(l, f, null, a, o), [])), [];
|
|
1004
1007
|
});
|
|
1005
1008
|
}, Ee = (t) => {
|
|
1006
1009
|
t = t.trim();
|
|
1007
1010
|
const e = t.indexOf("(");
|
|
1008
|
-
return e !== -1 ? (
|
|
1011
|
+
return e !== -1 ? (jt(t[t.length - 1] == ")", "Parentheses for argument names should match."), t.substr(0, e)) : t;
|
|
1009
1012
|
}, nn = (t, e, r, n, a, o, u, c, l) => {
|
|
1010
|
-
var f =
|
|
1011
|
-
e =
|
|
1013
|
+
var f = Nt(r, n);
|
|
1014
|
+
e = I(e), e = Ee(e), o = N(a, o), nt([], [t], function(p) {
|
|
1012
1015
|
p = p[0];
|
|
1013
1016
|
var y = `${p.name}.${e}`;
|
|
1014
1017
|
e.startsWith("@@") && (e = Symbol[e.substring(2)]), c && p.registeredClass.pureVirtualFunctions.push(e);
|
|
1015
1018
|
function g() {
|
|
1016
|
-
|
|
1019
|
+
St(`Cannot call ${y} due to unbound types`, f);
|
|
1017
1020
|
}
|
|
1018
1021
|
var b = p.registeredClass.instancePrototype, T = b[e];
|
|
1019
|
-
return T === void 0 || T.overloadTable === void 0 && T.className !== p.name && T.argCount === r - 2 ? (g.argCount = r - 2, g.className = p.name, b[e] = g) : ($e(b, e, y), b[e].overloadTable[r - 2] = g), nt([], f, function(
|
|
1020
|
-
var P =
|
|
1022
|
+
return T === void 0 || T.overloadTable === void 0 && T.className !== p.name && T.argCount === r - 2 ? (g.argCount = r - 2, g.className = p.name, b[e] = g) : ($e(b, e, y), b[e].overloadTable[r - 2] = g), nt([], f, function(j) {
|
|
1023
|
+
var P = Gt(y, j, p, o, u);
|
|
1021
1024
|
return b[e].overloadTable === void 0 ? (P.argCount = r - 2, b[e] = P) : b[e].overloadTable[r - 2] = P, [];
|
|
1022
1025
|
}), [];
|
|
1023
1026
|
});
|
|
@@ -1059,7 +1062,7 @@ var jt = (() => {
|
|
|
1059
1062
|
return z.allocate({ refcount: 1, value: t });
|
|
1060
1063
|
}
|
|
1061
1064
|
} }, un = (t, e) => {
|
|
1062
|
-
e =
|
|
1065
|
+
e = I(e), X(t, { name: e, fromWireType: (r) => {
|
|
1063
1066
|
var n = K.toValue(r);
|
|
1064
1067
|
return Oe(r), n;
|
|
1065
1068
|
}, toWireType: (r, n) => K.toHandle(n), argPackAdvance: q, readValueFromPointer: Ht, destructorFunction: null });
|
|
@@ -1087,7 +1090,7 @@ var jt = (() => {
|
|
|
1087
1090
|
throw new TypeError(`invalid integer width (${e}): ${t}`);
|
|
1088
1091
|
}
|
|
1089
1092
|
}, ln = (t, e, r, n) => {
|
|
1090
|
-
e =
|
|
1093
|
+
e = I(e);
|
|
1091
1094
|
function a() {
|
|
1092
1095
|
}
|
|
1093
1096
|
a.values = {}, X(t, { name: e, constructor: a, fromWireType: function(o) {
|
|
@@ -1098,7 +1101,7 @@ var jt = (() => {
|
|
|
1098
1101
|
return r === void 0 && C(e + " has unknown type " + Pe(t)), r;
|
|
1099
1102
|
}, dn = (t, e, r) => {
|
|
1100
1103
|
var n = Xt(t, "enum");
|
|
1101
|
-
e =
|
|
1104
|
+
e = I(e);
|
|
1102
1105
|
var a = n.constructor, o = Object.create(n.constructor.prototype, { value: { value: r }, constructor: { value: Lt(`${n.name}_${e}`, function() {
|
|
1103
1106
|
}) } });
|
|
1104
1107
|
a.values[r] = o, a[e] = o;
|
|
@@ -1121,14 +1124,14 @@ var jt = (() => {
|
|
|
1121
1124
|
throw new TypeError(`invalid float width (${e}): ${t}`);
|
|
1122
1125
|
}
|
|
1123
1126
|
}, hn = (t, e, r) => {
|
|
1124
|
-
e =
|
|
1127
|
+
e = I(e), X(t, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: q, readValueFromPointer: fn(e, r), destructorFunction: null });
|
|
1125
1128
|
}, pn = (t, e, r, n, a, o, u) => {
|
|
1126
|
-
var c =
|
|
1127
|
-
t =
|
|
1128
|
-
|
|
1129
|
+
var c = Nt(e, r);
|
|
1130
|
+
t = I(t), t = Ee(t), a = N(n, a), Yt(t, function() {
|
|
1131
|
+
St(`Cannot call ${t} due to unbound types`, c);
|
|
1129
1132
|
}, e - 1), nt([], c, function(l) {
|
|
1130
1133
|
var f = [l[0], null].concat(l.slice(1));
|
|
1131
|
-
return Ce(t,
|
|
1134
|
+
return Ce(t, Gt(t, f, null, a, o), e - 1), [];
|
|
1132
1135
|
});
|
|
1133
1136
|
}, mn = (t, e, r) => {
|
|
1134
1137
|
switch (e) {
|
|
@@ -1142,7 +1145,7 @@ var jt = (() => {
|
|
|
1142
1145
|
throw new TypeError(`invalid integer width (${e}): ${t}`);
|
|
1143
1146
|
}
|
|
1144
1147
|
}, yn = (t, e, r, n, a) => {
|
|
1145
|
-
e =
|
|
1148
|
+
e = I(e);
|
|
1146
1149
|
var o = (p) => p;
|
|
1147
1150
|
if (n === 0) {
|
|
1148
1151
|
var u = 32 - 8 * r;
|
|
@@ -1161,7 +1164,7 @@ var jt = (() => {
|
|
|
1161
1164
|
var c = _[u >> 2], l = _[u + 4 >> 2];
|
|
1162
1165
|
return new a(V.buffer, l, c);
|
|
1163
1166
|
}
|
|
1164
|
-
r =
|
|
1167
|
+
r = I(r), X(t, { name: r, fromWireType: o, argPackAdvance: q, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 });
|
|
1165
1168
|
}, De = (t, e, r, n) => {
|
|
1166
1169
|
if (!(n > 0))
|
|
1167
1170
|
return 0;
|
|
@@ -1190,17 +1193,17 @@ var jt = (() => {
|
|
|
1190
1193
|
}
|
|
1191
1194
|
}
|
|
1192
1195
|
return e[r] = 0, r - a;
|
|
1193
|
-
}, gn = (t, e, r) => De(t, k, e, r),
|
|
1196
|
+
}, gn = (t, e, r) => De(t, k, e, r), Se = (t) => {
|
|
1194
1197
|
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1195
1198
|
var n = t.charCodeAt(r);
|
|
1196
1199
|
n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
|
|
1197
1200
|
}
|
|
1198
1201
|
return e;
|
|
1199
|
-
},
|
|
1202
|
+
}, Fe = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, wn = (t, e, r) => {
|
|
1200
1203
|
for (var n = e + r, a = e; t[a] && !(a >= n); )
|
|
1201
1204
|
++a;
|
|
1202
|
-
if (a - e > 16 && t.buffer &&
|
|
1203
|
-
return
|
|
1205
|
+
if (a - e > 16 && t.buffer && Fe)
|
|
1206
|
+
return Fe.decode(t.subarray(e, a));
|
|
1204
1207
|
for (var o = ""; e < a; ) {
|
|
1205
1208
|
var u = t[e++];
|
|
1206
1209
|
if (!(u & 128)) {
|
|
@@ -1222,7 +1225,7 @@ var jt = (() => {
|
|
|
1222
1225
|
}
|
|
1223
1226
|
return o;
|
|
1224
1227
|
}, Zt = (t, e) => t ? wn(k, t, e) : "", $n = (t, e) => {
|
|
1225
|
-
e =
|
|
1228
|
+
e = I(e);
|
|
1226
1229
|
var r = e === "std::string";
|
|
1227
1230
|
X(t, { name: e, fromWireType(n) {
|
|
1228
1231
|
var a = _[n >> 2], o = n + 4, u;
|
|
@@ -1243,7 +1246,7 @@ var jt = (() => {
|
|
|
1243
1246
|
}, toWireType(n, a) {
|
|
1244
1247
|
a instanceof ArrayBuffer && (a = new Uint8Array(a));
|
|
1245
1248
|
var o, u = typeof a == "string";
|
|
1246
|
-
u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || C("Cannot pass non-string to std::string"), r && u ? o =
|
|
1249
|
+
u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || C("Cannot pass non-string to std::string"), r && u ? o = Se(a) : o = a.length;
|
|
1247
1250
|
var c = Qt(4 + o + 1), l = c + 4;
|
|
1248
1251
|
if (_[c >> 2] = o, r && u)
|
|
1249
1252
|
gn(a, l, o + 1);
|
|
@@ -1312,13 +1315,13 @@ var jt = (() => {
|
|
|
1312
1315
|
}
|
|
1313
1316
|
return e;
|
|
1314
1317
|
}, An = (t, e, r) => {
|
|
1315
|
-
r =
|
|
1318
|
+
r = I(r);
|
|
1316
1319
|
var n, a, o, u, c;
|
|
1317
1320
|
e === 2 ? (n = bn, a = Cn, u = _n, o = () => dt, c = 1) : e === 4 && (n = Tn, a = Pn, u = En, o = () => _, c = 2), X(t, { name: r, fromWireType: (l) => {
|
|
1318
1321
|
for (var f = _[l >> 2], p = o(), y, g = l + 4, b = 0; b <= f; ++b) {
|
|
1319
1322
|
var T = l + 4 + b * e;
|
|
1320
1323
|
if (b == f || p[T >> c] == 0) {
|
|
1321
|
-
var
|
|
1324
|
+
var j = T - g, P = n(g, j);
|
|
1322
1325
|
y === void 0 ? y = P : (y += String.fromCharCode(0), y += P), g = T + e;
|
|
1323
1326
|
}
|
|
1324
1327
|
}
|
|
@@ -1331,16 +1334,16 @@ var jt = (() => {
|
|
|
1331
1334
|
Q(l);
|
|
1332
1335
|
} });
|
|
1333
1336
|
}, On = (t, e, r, n, a, o) => {
|
|
1334
|
-
|
|
1337
|
+
_t[t] = { name: I(e), rawConstructor: N(r, n), rawDestructor: N(a, o), fields: [] };
|
|
1335
1338
|
}, Dn = (t, e, r, n, a, o, u, c, l, f) => {
|
|
1336
|
-
|
|
1337
|
-
},
|
|
1338
|
-
e =
|
|
1339
|
+
_t[t].fields.push({ fieldName: I(e), getterReturnType: r, getter: N(n, a), getterContext: o, setterArgumentType: u, setter: N(c, l), setterContext: f });
|
|
1340
|
+
}, Sn = (t, e) => {
|
|
1341
|
+
e = I(e), X(t, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
|
|
1339
1342
|
}, toWireType: (r, n) => {
|
|
1340
1343
|
} });
|
|
1341
|
-
},
|
|
1342
|
-
var e =
|
|
1343
|
-
return e === void 0 ?
|
|
1344
|
+
}, Fn = {}, xn = (t) => {
|
|
1345
|
+
var e = Fn[t];
|
|
1346
|
+
return e === void 0 ? I(t) : e;
|
|
1344
1347
|
}, Me = () => {
|
|
1345
1348
|
if (typeof globalThis == "object")
|
|
1346
1349
|
return globalThis;
|
|
@@ -1352,9 +1355,9 @@ var jt = (() => {
|
|
|
1352
1355
|
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && t(global) ? $$$embind_global$$$ = global : typeof self == "object" && t(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
|
|
1353
1356
|
return $$$embind_global$$$;
|
|
1354
1357
|
throw Error("unable to get global object.");
|
|
1355
|
-
}, Mn = (t) => t === 0 ? K.toHandle(Me()) : (t = xn(t), K.toHandle(Me()[t])),
|
|
1358
|
+
}, Mn = (t) => t === 0 ? K.toHandle(Me()) : (t = xn(t), K.toHandle(Me()[t])), In = (t) => {
|
|
1356
1359
|
t > 4 && (z.get(t).refcount += 1);
|
|
1357
|
-
},
|
|
1360
|
+
}, jn = (t) => {
|
|
1358
1361
|
var e = new Array(t + 1);
|
|
1359
1362
|
return function(r, n, a) {
|
|
1360
1363
|
e[0] = r;
|
|
@@ -1365,10 +1368,10 @@ var jt = (() => {
|
|
|
1365
1368
|
var c = new (r.bind.apply(r, e))();
|
|
1366
1369
|
return K.toHandle(c);
|
|
1367
1370
|
};
|
|
1368
|
-
},
|
|
1371
|
+
}, Ie = {}, Rn = (t, e, r, n) => {
|
|
1369
1372
|
t = K.toValue(t);
|
|
1370
|
-
var a =
|
|
1371
|
-
return a || (a =
|
|
1373
|
+
var a = Ie[e];
|
|
1374
|
+
return a || (a = jn(e), Ie[e] = a), a(t, r, n);
|
|
1372
1375
|
}, Wn = (t, e) => {
|
|
1373
1376
|
t = Xt(t, "_emval_take_value");
|
|
1374
1377
|
var r = t.readValueFromPointer(e);
|
|
@@ -1416,18 +1419,18 @@ var jt = (() => {
|
|
|
1416
1419
|
var o = e + r;
|
|
1417
1420
|
_[t + a * 4 >> 2] = o, Yn(n, o), r += n.length + 1;
|
|
1418
1421
|
}), 0;
|
|
1419
|
-
},
|
|
1422
|
+
}, Nn = (t, e) => {
|
|
1420
1423
|
var r = gt();
|
|
1421
1424
|
_[t >> 2] = r.length;
|
|
1422
1425
|
var n = 0;
|
|
1423
1426
|
return r.forEach((a) => n += a.length + 1), _[e >> 2] = n, 0;
|
|
1424
|
-
},
|
|
1427
|
+
}, Gn = (t) => t, Ft = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Xn = (t, e) => {
|
|
1425
1428
|
for (var r = 0, n = 0; n <= e; r += t[n++])
|
|
1426
1429
|
;
|
|
1427
1430
|
return r;
|
|
1428
|
-
},
|
|
1431
|
+
}, je = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Re = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], qn = (t, e) => {
|
|
1429
1432
|
for (var r = new Date(t.getTime()); e > 0; ) {
|
|
1430
|
-
var n = Ft(r.getFullYear()), a = r.getMonth(), o = (n ?
|
|
1433
|
+
var n = Ft(r.getFullYear()), a = r.getMonth(), o = (n ? je : Re)[a];
|
|
1431
1434
|
if (e > o - r.getDate())
|
|
1432
1435
|
e -= o - r.getDate() + 1, r.setDate(1), a < 11 ? r.setMonth(a + 1) : (r.setMonth(0), r.setFullYear(r.getFullYear() + 1));
|
|
1433
1436
|
else
|
|
@@ -1436,7 +1439,7 @@ var jt = (() => {
|
|
|
1436
1439
|
return r;
|
|
1437
1440
|
};
|
|
1438
1441
|
function Zn(t, e, r) {
|
|
1439
|
-
var n = r > 0 ? r :
|
|
1442
|
+
var n = r > 0 ? r : Se(t) + 1, a = new Array(n), o = De(t, a, 0, a.length);
|
|
1440
1443
|
return e && (a.length = o), a;
|
|
1441
1444
|
}
|
|
1442
1445
|
var Jn = (t, e) => {
|
|
@@ -1479,17 +1482,17 @@ var jt = (() => {
|
|
|
1479
1482
|
return new Date(d.getFullYear() - 1, 11, 30);
|
|
1480
1483
|
}
|
|
1481
1484
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var m = qn(new Date(d.tm_year + 1900, 0, 1), d.tm_yday), x = new Date(m.getFullYear(), 0, 4), M = new Date(m.getFullYear() + 1, 0, 4), at = T(x),
|
|
1484
|
-
return b(at, m) <= 0 ? b(
|
|
1485
|
+
function j(d) {
|
|
1486
|
+
var m = qn(new Date(d.tm_year + 1900, 0, 1), d.tm_yday), x = new Date(m.getFullYear(), 0, 4), M = new Date(m.getFullYear() + 1, 0, 4), at = T(x), Mt = T(M);
|
|
1487
|
+
return b(at, m) <= 0 ? b(Mt, m) <= 0 ? m.getFullYear() + 1 : m.getFullYear() : m.getFullYear() - 1;
|
|
1485
1488
|
}
|
|
1486
1489
|
var P = { "%a": (d) => f[d.tm_wday].substring(0, 3), "%A": (d) => f[d.tm_wday], "%b": (d) => p[d.tm_mon].substring(0, 3), "%B": (d) => p[d.tm_mon], "%C": (d) => {
|
|
1487
1490
|
var m = d.tm_year + 1900;
|
|
1488
1491
|
return g(m / 100 | 0, 2);
|
|
1489
|
-
}, "%d": (d) => g(d.tm_mday, 2), "%e": (d) => y(d.tm_mday, 2, " "), "%g": (d) =>
|
|
1492
|
+
}, "%d": (d) => g(d.tm_mday, 2), "%e": (d) => y(d.tm_mday, 2, " "), "%g": (d) => j(d).toString().substring(2), "%G": (d) => j(d), "%H": (d) => g(d.tm_hour, 2), "%I": (d) => {
|
|
1490
1493
|
var m = d.tm_hour;
|
|
1491
1494
|
return m == 0 ? m = 12 : m > 12 && (m -= 12), g(m, 2);
|
|
1492
|
-
}, "%j": (d) => g(d.tm_mday + Xn(Ft(d.tm_year + 1900) ?
|
|
1495
|
+
}, "%j": (d) => g(d.tm_mday + Xn(Ft(d.tm_year + 1900) ? je : Re, d.tm_mon - 1), 3), "%m": (d) => g(d.tm_mon + 1, 2), "%M": (d) => g(d.tm_min, 2), "%n": () => `
|
|
1493
1496
|
`, "%p": (d) => d.tm_hour >= 0 && d.tm_hour < 12 ? "AM" : "PM", "%S": (d) => g(d.tm_sec, 2), "%t": () => " ", "%u": (d) => d.tm_wday || 7, "%U": (d) => {
|
|
1494
1497
|
var m = d.tm_yday + 7 - d.tm_wday;
|
|
1495
1498
|
return g(Math.floor(m / 7), 2);
|
|
@@ -1524,226 +1527,226 @@ var jt = (() => {
|
|
|
1524
1527
|
constructor(t) {
|
|
1525
1528
|
super(t), this.name = "InternalError";
|
|
1526
1529
|
}
|
|
1527
|
-
},
|
|
1530
|
+
}, Fr(), ut = s.BindingError = class extends Error {
|
|
1528
1531
|
constructor(t) {
|
|
1529
1532
|
super(t), this.name = "BindingError";
|
|
1530
1533
|
}
|
|
1531
1534
|
}, Lr(), Hr(), Zr(), Te = s.UnboundTypeError = tn(Error, "UnboundTypeError"), an(), sn();
|
|
1532
|
-
var ta = { s: $r, v: br, b: _r, g: Tr, q: Pr, I: Er, f: Ar, T: Or, d: Cr, ba: Dr, P:
|
|
1535
|
+
var ta = { s: $r, v: br, b: _r, g: Tr, q: Pr, I: Er, f: Ar, T: Or, d: Cr, ba: Dr, P: Sr, Y: Mr, aa: en, $: rn, w: nn, X: un, x: ln, h: dn, K: hn, L: pn, t: yn, n: vn, J: $n, C: An, A: On, ca: Dn, Z: Sn, ea: Oe, da: Mn, M: In, V: Rn, _: Wn, B: kn, W: Hn, U: Vn, R: zn, S: Nn, D: ma, E: pa, m: ya, a: ea, e: oa, o: ua, k: aa, G: fa, u: la, F: ha, z: ga, O: $a, l: ia, j: sa, c: na, p: ra, H: da, r: va, i: ca, y: wa, N: Gn, Q: Kn }, E = wr(), Q = s._free = (t) => (Q = s._free = E.ha)(t), Qt = s._malloc = (t) => (Qt = s._malloc = E.ia)(t), We = (t) => (We = E.ka)(t);
|
|
1533
1536
|
s.__embind_initialize_bindings = () => (s.__embind_initialize_bindings = E.la)();
|
|
1534
|
-
var A = (t, e) => (A = E.ma)(t, e), wt = (t) => (wt = E.na)(t),
|
|
1537
|
+
var A = (t, e) => (A = E.ma)(t, e), wt = (t) => (wt = E.na)(t), S = () => (S = E.oa)(), F = (t) => (F = E.pa)(t), ke = (t) => (ke = E.qa)(t), He = (t) => (He = E.ra)(t), Be = (t, e, r) => (Be = E.sa)(t, e, r), Ue = (t) => (Ue = E.ta)(t);
|
|
1535
1538
|
s.dynCall_viijii = (t, e, r, n, a, o, u) => (s.dynCall_viijii = E.ua)(t, e, r, n, a, o, u);
|
|
1536
1539
|
var Ve = s.dynCall_jiiii = (t, e, r, n, a) => (Ve = s.dynCall_jiiii = E.va)(t, e, r, n, a);
|
|
1537
1540
|
s.dynCall_iiiiij = (t, e, r, n, a, o, u) => (s.dynCall_iiiiij = E.wa)(t, e, r, n, a, o, u), s.dynCall_iiiiijj = (t, e, r, n, a, o, u, c, l) => (s.dynCall_iiiiijj = E.xa)(t, e, r, n, a, o, u, c, l), s.dynCall_iiiiiijj = (t, e, r, n, a, o, u, c, l, f) => (s.dynCall_iiiiiijj = E.ya)(t, e, r, n, a, o, u, c, l, f);
|
|
1538
1541
|
function ea(t, e) {
|
|
1539
|
-
var r =
|
|
1542
|
+
var r = S();
|
|
1540
1543
|
try {
|
|
1541
1544
|
return D(t)(e);
|
|
1542
1545
|
} catch (n) {
|
|
1543
|
-
if (
|
|
1546
|
+
if (F(r), n !== n + 0)
|
|
1544
1547
|
throw n;
|
|
1545
1548
|
A(1, 0);
|
|
1546
1549
|
}
|
|
1547
1550
|
}
|
|
1548
1551
|
function ra(t, e, r, n) {
|
|
1549
|
-
var a =
|
|
1552
|
+
var a = S();
|
|
1550
1553
|
try {
|
|
1551
1554
|
D(t)(e, r, n);
|
|
1552
1555
|
} catch (o) {
|
|
1553
|
-
if (
|
|
1556
|
+
if (F(a), o !== o + 0)
|
|
1554
1557
|
throw o;
|
|
1555
1558
|
A(1, 0);
|
|
1556
1559
|
}
|
|
1557
1560
|
}
|
|
1558
1561
|
function na(t, e, r) {
|
|
1559
|
-
var n =
|
|
1562
|
+
var n = S();
|
|
1560
1563
|
try {
|
|
1561
1564
|
D(t)(e, r);
|
|
1562
1565
|
} catch (a) {
|
|
1563
|
-
if (
|
|
1566
|
+
if (F(n), a !== a + 0)
|
|
1564
1567
|
throw a;
|
|
1565
1568
|
A(1, 0);
|
|
1566
1569
|
}
|
|
1567
1570
|
}
|
|
1568
1571
|
function aa(t, e, r, n, a) {
|
|
1569
|
-
var o =
|
|
1572
|
+
var o = S();
|
|
1570
1573
|
try {
|
|
1571
1574
|
return D(t)(e, r, n, a);
|
|
1572
1575
|
} catch (u) {
|
|
1573
|
-
if (
|
|
1576
|
+
if (F(o), u !== u + 0)
|
|
1574
1577
|
throw u;
|
|
1575
1578
|
A(1, 0);
|
|
1576
1579
|
}
|
|
1577
1580
|
}
|
|
1578
1581
|
function oa(t, e, r) {
|
|
1579
|
-
var n =
|
|
1582
|
+
var n = S();
|
|
1580
1583
|
try {
|
|
1581
1584
|
return D(t)(e, r);
|
|
1582
1585
|
} catch (a) {
|
|
1583
|
-
if (
|
|
1586
|
+
if (F(n), a !== a + 0)
|
|
1584
1587
|
throw a;
|
|
1585
1588
|
A(1, 0);
|
|
1586
1589
|
}
|
|
1587
1590
|
}
|
|
1588
1591
|
function ia(t) {
|
|
1589
|
-
var e =
|
|
1592
|
+
var e = S();
|
|
1590
1593
|
try {
|
|
1591
1594
|
D(t)();
|
|
1592
1595
|
} catch (r) {
|
|
1593
|
-
if (
|
|
1596
|
+
if (F(e), r !== r + 0)
|
|
1594
1597
|
throw r;
|
|
1595
1598
|
A(1, 0);
|
|
1596
1599
|
}
|
|
1597
1600
|
}
|
|
1598
1601
|
function sa(t, e) {
|
|
1599
|
-
var r =
|
|
1602
|
+
var r = S();
|
|
1600
1603
|
try {
|
|
1601
1604
|
D(t)(e);
|
|
1602
1605
|
} catch (n) {
|
|
1603
|
-
if (
|
|
1606
|
+
if (F(r), n !== n + 0)
|
|
1604
1607
|
throw n;
|
|
1605
1608
|
A(1, 0);
|
|
1606
1609
|
}
|
|
1607
1610
|
}
|
|
1608
1611
|
function ua(t, e, r, n) {
|
|
1609
|
-
var a =
|
|
1612
|
+
var a = S();
|
|
1610
1613
|
try {
|
|
1611
1614
|
return D(t)(e, r, n);
|
|
1612
1615
|
} catch (o) {
|
|
1613
|
-
if (
|
|
1616
|
+
if (F(a), o !== o + 0)
|
|
1614
1617
|
throw o;
|
|
1615
1618
|
A(1, 0);
|
|
1616
1619
|
}
|
|
1617
1620
|
}
|
|
1618
1621
|
function ca(t, e, r, n, a, o, u, c, l, f, p) {
|
|
1619
|
-
var y =
|
|
1622
|
+
var y = S();
|
|
1620
1623
|
try {
|
|
1621
1624
|
D(t)(e, r, n, a, o, u, c, l, f, p);
|
|
1622
1625
|
} catch (g) {
|
|
1623
|
-
if (
|
|
1626
|
+
if (F(y), g !== g + 0)
|
|
1624
1627
|
throw g;
|
|
1625
1628
|
A(1, 0);
|
|
1626
1629
|
}
|
|
1627
1630
|
}
|
|
1628
1631
|
function la(t, e, r, n, a, o, u) {
|
|
1629
|
-
var c =
|
|
1632
|
+
var c = S();
|
|
1630
1633
|
try {
|
|
1631
1634
|
return D(t)(e, r, n, a, o, u);
|
|
1632
1635
|
} catch (l) {
|
|
1633
|
-
if (
|
|
1636
|
+
if (F(c), l !== l + 0)
|
|
1634
1637
|
throw l;
|
|
1635
1638
|
A(1, 0);
|
|
1636
1639
|
}
|
|
1637
1640
|
}
|
|
1638
1641
|
function da(t, e, r, n, a) {
|
|
1639
|
-
var o =
|
|
1642
|
+
var o = S();
|
|
1640
1643
|
try {
|
|
1641
1644
|
D(t)(e, r, n, a);
|
|
1642
1645
|
} catch (u) {
|
|
1643
|
-
if (
|
|
1646
|
+
if (F(o), u !== u + 0)
|
|
1644
1647
|
throw u;
|
|
1645
1648
|
A(1, 0);
|
|
1646
1649
|
}
|
|
1647
1650
|
}
|
|
1648
1651
|
function fa(t, e, r, n, a, o) {
|
|
1649
|
-
var u =
|
|
1652
|
+
var u = S();
|
|
1650
1653
|
try {
|
|
1651
1654
|
return D(t)(e, r, n, a, o);
|
|
1652
1655
|
} catch (c) {
|
|
1653
|
-
if (
|
|
1656
|
+
if (F(u), c !== c + 0)
|
|
1654
1657
|
throw c;
|
|
1655
1658
|
A(1, 0);
|
|
1656
1659
|
}
|
|
1657
1660
|
}
|
|
1658
1661
|
function ha(t, e, r, n, a, o, u, c) {
|
|
1659
|
-
var l =
|
|
1662
|
+
var l = S();
|
|
1660
1663
|
try {
|
|
1661
1664
|
return D(t)(e, r, n, a, o, u, c);
|
|
1662
1665
|
} catch (f) {
|
|
1663
|
-
if (
|
|
1666
|
+
if (F(l), f !== f + 0)
|
|
1664
1667
|
throw f;
|
|
1665
1668
|
A(1, 0);
|
|
1666
1669
|
}
|
|
1667
1670
|
}
|
|
1668
1671
|
function pa(t, e, r, n) {
|
|
1669
|
-
var a =
|
|
1672
|
+
var a = S();
|
|
1670
1673
|
try {
|
|
1671
1674
|
return D(t)(e, r, n);
|
|
1672
1675
|
} catch (o) {
|
|
1673
|
-
if (
|
|
1676
|
+
if (F(a), o !== o + 0)
|
|
1674
1677
|
throw o;
|
|
1675
1678
|
A(1, 0);
|
|
1676
1679
|
}
|
|
1677
1680
|
}
|
|
1678
1681
|
function ma(t, e, r, n) {
|
|
1679
|
-
var a =
|
|
1682
|
+
var a = S();
|
|
1680
1683
|
try {
|
|
1681
1684
|
return D(t)(e, r, n);
|
|
1682
1685
|
} catch (o) {
|
|
1683
|
-
if (
|
|
1686
|
+
if (F(a), o !== o + 0)
|
|
1684
1687
|
throw o;
|
|
1685
1688
|
A(1, 0);
|
|
1686
1689
|
}
|
|
1687
1690
|
}
|
|
1688
1691
|
function ya(t) {
|
|
1689
|
-
var e =
|
|
1692
|
+
var e = S();
|
|
1690
1693
|
try {
|
|
1691
1694
|
return D(t)();
|
|
1692
1695
|
} catch (r) {
|
|
1693
|
-
if (
|
|
1696
|
+
if (F(e), r !== r + 0)
|
|
1694
1697
|
throw r;
|
|
1695
1698
|
A(1, 0);
|
|
1696
1699
|
}
|
|
1697
1700
|
}
|
|
1698
1701
|
function va(t, e, r, n, a, o, u, c) {
|
|
1699
|
-
var l =
|
|
1702
|
+
var l = S();
|
|
1700
1703
|
try {
|
|
1701
1704
|
D(t)(e, r, n, a, o, u, c);
|
|
1702
1705
|
} catch (f) {
|
|
1703
|
-
if (
|
|
1706
|
+
if (F(l), f !== f + 0)
|
|
1704
1707
|
throw f;
|
|
1705
1708
|
A(1, 0);
|
|
1706
1709
|
}
|
|
1707
1710
|
}
|
|
1708
1711
|
function ga(t, e, r, n, a, o, u, c, l, f, p, y) {
|
|
1709
|
-
var g =
|
|
1712
|
+
var g = S();
|
|
1710
1713
|
try {
|
|
1711
1714
|
return D(t)(e, r, n, a, o, u, c, l, f, p, y);
|
|
1712
1715
|
} catch (b) {
|
|
1713
|
-
if (
|
|
1716
|
+
if (F(g), b !== b + 0)
|
|
1714
1717
|
throw b;
|
|
1715
1718
|
A(1, 0);
|
|
1716
1719
|
}
|
|
1717
1720
|
}
|
|
1718
|
-
function wa(t, e, r, n, a, o, u, c, l, f, p, y, g, b, T,
|
|
1719
|
-
var P =
|
|
1721
|
+
function wa(t, e, r, n, a, o, u, c, l, f, p, y, g, b, T, j) {
|
|
1722
|
+
var P = S();
|
|
1720
1723
|
try {
|
|
1721
|
-
D(t)(e, r, n, a, o, u, c, l, f, p, y, g, b, T,
|
|
1724
|
+
D(t)(e, r, n, a, o, u, c, l, f, p, y, g, b, T, j);
|
|
1722
1725
|
} catch (R) {
|
|
1723
|
-
if (
|
|
1726
|
+
if (F(P), R !== R + 0)
|
|
1724
1727
|
throw R;
|
|
1725
1728
|
A(1, 0);
|
|
1726
1729
|
}
|
|
1727
1730
|
}
|
|
1728
1731
|
function $a(t, e, r, n, a) {
|
|
1729
|
-
var o =
|
|
1732
|
+
var o = S();
|
|
1730
1733
|
try {
|
|
1731
1734
|
return Ve(t, e, r, n, a);
|
|
1732
1735
|
} catch (u) {
|
|
1733
|
-
if (
|
|
1736
|
+
if (F(o), u !== u + 0)
|
|
1734
1737
|
throw u;
|
|
1735
1738
|
A(1, 0);
|
|
1736
1739
|
}
|
|
1737
1740
|
}
|
|
1738
|
-
var
|
|
1741
|
+
var xt;
|
|
1739
1742
|
ft = function t() {
|
|
1740
|
-
|
|
1743
|
+
xt || Le(), xt || (ft = t);
|
|
1741
1744
|
};
|
|
1742
1745
|
function Le() {
|
|
1743
1746
|
if (et > 0 || (ur(), et > 0))
|
|
1744
1747
|
return;
|
|
1745
1748
|
function t() {
|
|
1746
|
-
|
|
1749
|
+
xt || (xt = !0, s.calledRun = !0, !lt && (cr(), w(s), s.onRuntimeInitialized && s.onRuntimeInitialized(), lr()));
|
|
1747
1750
|
}
|
|
1748
1751
|
s.setStatus ? (s.setStatus("Running..."), setTimeout(function() {
|
|
1749
1752
|
setTimeout(function() {
|
|
@@ -1759,26 +1762,26 @@ var jt = (() => {
|
|
|
1759
1762
|
})();
|
|
1760
1763
|
function Ya(i) {
|
|
1761
1764
|
return re(
|
|
1762
|
-
|
|
1765
|
+
It,
|
|
1763
1766
|
i
|
|
1764
1767
|
);
|
|
1765
1768
|
}
|
|
1766
1769
|
function qa(i) {
|
|
1767
1770
|
return Ua(
|
|
1768
|
-
|
|
1771
|
+
It,
|
|
1769
1772
|
i
|
|
1770
1773
|
);
|
|
1771
1774
|
}
|
|
1772
1775
|
async function za(i, h) {
|
|
1773
1776
|
return Va(
|
|
1774
|
-
|
|
1777
|
+
It,
|
|
1775
1778
|
i,
|
|
1776
1779
|
h
|
|
1777
1780
|
);
|
|
1778
1781
|
}
|
|
1779
|
-
async function
|
|
1782
|
+
async function Na(i, h) {
|
|
1780
1783
|
return La(
|
|
1781
|
-
|
|
1784
|
+
It,
|
|
1782
1785
|
i,
|
|
1783
1786
|
h
|
|
1784
1787
|
);
|
|
@@ -1798,7 +1801,7 @@ const ee = /* @__PURE__ */ new Map([
|
|
|
1798
1801
|
["upc_a", "UPC-A"],
|
|
1799
1802
|
["upc_e", "UPC-E"]
|
|
1800
1803
|
]);
|
|
1801
|
-
function
|
|
1804
|
+
function Ga(i) {
|
|
1802
1805
|
for (const [h, s] of ee)
|
|
1803
1806
|
if (i === s)
|
|
1804
1807
|
return h;
|
|
@@ -1817,11 +1820,11 @@ class Za extends EventTarget {
|
|
|
1817
1820
|
if ((v == null ? void 0 : v.length) === 0)
|
|
1818
1821
|
throw new TypeError("Hint option provided, but is empty.");
|
|
1819
1822
|
v == null || v.forEach(($) => {
|
|
1820
|
-
if (!
|
|
1823
|
+
if (!Ge.includes($))
|
|
1821
1824
|
throw new TypeError(
|
|
1822
1825
|
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${$}' is not a valid enum value of type BarcodeFormat.`
|
|
1823
1826
|
);
|
|
1824
|
-
}),
|
|
1827
|
+
}), Ne(this, ct, v != null ? v : []), Ya().then(($) => {
|
|
1825
1828
|
this.dispatchEvent(
|
|
1826
1829
|
new CustomEvent("load", {
|
|
1827
1830
|
detail: $
|
|
@@ -1838,7 +1841,7 @@ class Za extends EventTarget {
|
|
|
1838
1841
|
}
|
|
1839
1842
|
}
|
|
1840
1843
|
static async getSupportedFormats() {
|
|
1841
|
-
return
|
|
1844
|
+
return Ge.filter((s) => s !== "unknown");
|
|
1842
1845
|
}
|
|
1843
1846
|
async detect(s) {
|
|
1844
1847
|
try {
|
|
@@ -1852,7 +1855,7 @@ class Za extends EventTarget {
|
|
|
1852
1855
|
formats: Kt(this, ct).map(
|
|
1853
1856
|
($) => ee.get($)
|
|
1854
1857
|
)
|
|
1855
|
-
}) : v = await
|
|
1858
|
+
}) : v = await Na(w, {
|
|
1856
1859
|
tryHarder: !0,
|
|
1857
1860
|
formats: Kt(this, ct).map(
|
|
1858
1861
|
($) => ee.get($)
|
|
@@ -1868,18 +1871,18 @@ class Za extends EventTarget {
|
|
|
1868
1871
|
const {
|
|
1869
1872
|
topLeft: { x: H, y: L },
|
|
1870
1873
|
topRight: { x: B, y: O },
|
|
1871
|
-
bottomLeft: { x: Y, y:
|
|
1874
|
+
bottomLeft: { x: Y, y: G },
|
|
1872
1875
|
bottomRight: { x: U, y: Z }
|
|
1873
|
-
} = $.position, tt = Math.min(H, B, Y, U), lt = Math.min(L, O,
|
|
1876
|
+
} = $.position, tt = Math.min(H, B, Y, U), lt = Math.min(L, O, G, Z), jt = Math.max(H, B, Y, U), V = Math.max(L, O, G, Z);
|
|
1874
1877
|
return {
|
|
1875
1878
|
boundingBox: new DOMRectReadOnly(
|
|
1876
1879
|
tt,
|
|
1877
1880
|
lt,
|
|
1878
|
-
|
|
1881
|
+
jt - tt,
|
|
1879
1882
|
V - lt
|
|
1880
1883
|
),
|
|
1881
1884
|
rawValue: $.text,
|
|
1882
|
-
format:
|
|
1885
|
+
format: Ga($.format),
|
|
1883
1886
|
cornerPoints: [
|
|
1884
1887
|
{
|
|
1885
1888
|
x: H,
|
|
@@ -1895,7 +1898,7 @@ class Za extends EventTarget {
|
|
|
1895
1898
|
},
|
|
1896
1899
|
{
|
|
1897
1900
|
x: Y,
|
|
1898
|
-
y:
|
|
1901
|
+
y: G
|
|
1899
1902
|
}
|
|
1900
1903
|
]
|
|
1901
1904
|
};
|