barcode-detector 3.1.0 → 3.1.1

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,8 +1,8 @@
1
1
  var je = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var Le = (a, l, h) => l.has(a) || je("Cannot " + h);
5
- var Ue = (a, l, h) => (Le(a, l, "read from private field"), h ? h.call(a) : l.get(a)), ke = (a, l, h) => l.has(a) ? je("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(a) : l.set(a, h), We = (a, l, h, b) => (Le(a, l, "write to private field"), b ? b.call(a, h) : l.set(a, h), h);
4
+ var Le = (a, c, h) => c.has(a) || je("Cannot " + h);
5
+ var Ue = (a, c, h) => (Le(a, c, "read from private field"), h ? h.call(a) : c.get(a)), We = (a, c, h) => c.has(a) ? je("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(a) : c.set(a, h), ke = (a, c, h, v) => (Le(a, c, "write to private field"), v ? v.call(a, h) : c.set(a, h), h);
6
6
  const L = [
7
7
  // name sym var flags zint hri-label
8
8
  ["All", "*", "*", " ", 0, "All"],
@@ -119,18 +119,18 @@ const Ua = L.filter(
119
119
  Ua.map(
120
120
  (a) => a[0]
121
121
  );
122
- const ka = L.filter(
122
+ const Wa = L.filter(
123
123
  (a) => a[3][4] === "I"
124
124
  );
125
- ka.map(
125
+ Wa.map(
126
126
  (a) => a[0]
127
127
  );
128
- function Wa(a) {
129
- var l;
130
- return (l = Da[a]) != null ? l : a;
128
+ function ka(a) {
129
+ var c;
130
+ return (c = Da[a]) != null ? c : a;
131
131
  }
132
132
  function Va(a) {
133
- return a.map(Wa).join(",");
133
+ return a.map(ka).join(",");
134
134
  }
135
135
  const Ga = [
136
136
  "LocalAverage",
@@ -227,7 +227,7 @@ const It = {
227
227
  tryCode39ExtendedMode: !0
228
228
  };
229
229
  function Ge(a) {
230
- var l;
230
+ var c;
231
231
  return {
232
232
  ...a,
233
233
  formats: Va(a.formats),
@@ -235,7 +235,7 @@ function Ge(a) {
235
235
  eanAddOnSymbol: qa(a.eanAddOnSymbol),
236
236
  textMode: Za(a.textMode),
237
237
  characterSet: za(a.characterSet),
238
- tryCode39ExtendedMode: (l = a.tryCode39ExtendedMode) != null ? l : !0
238
+ tryCode39ExtendedMode: (c = a.tryCode39ExtendedMode) != null ? c : !0
239
239
  };
240
240
  }
241
241
  function Ja(a) {
@@ -246,80 +246,94 @@ function Ja(a) {
246
246
  contentType: Qa(a.contentType)
247
247
  };
248
248
  }
249
- const $o = "3.0.0", To = "9a9ccb838fcbf067cc9a9f0fd26d06fe6cc02467", Ka = {
250
- locateFile: (a, l) => {
249
+ const To = "3.0.1", Eo = "eb8c15ef7827ee277bd8a9b093fa1d97bd98cf67", Ka = {
250
+ locateFile: (a, c) => {
251
251
  const h = a.match(/_(.+?)\.wasm$/);
252
- return h ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.0/dist/${h[1]}/${a}` : l + a;
252
+ return h ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.1/dist/${h[1]}/${a}` : c + a;
253
253
  }
254
254
  }, Dt = /* @__PURE__ */ new WeakMap();
255
- function to(a, l) {
256
- return Object.is(a, l) || Object.keys(a).length === Object.keys(l).length && Object.keys(a).every(
257
- (h) => Object.hasOwn(l, h) && a[h] === l[h]
255
+ function to(a, c) {
256
+ return Object.is(a, c) || Object.keys(a).length === Object.keys(c).length && Object.keys(a).every(
257
+ (h) => Object.hasOwn(c, h) && a[h] === c[h]
258
258
  );
259
259
  }
260
260
  function ze(a, {
261
- overrides: l,
261
+ overrides: c,
262
262
  equalityFn: h = to,
263
- fireImmediately: b = !1
263
+ fireImmediately: v = !1
264
264
  } = {}) {
265
265
  var d;
266
- const [D, I] = (d = Dt.get(a)) != null ? d : [Ka], S = l != null ? l : D;
267
- let x;
268
- if (b) {
269
- if (I && (x = h(D, S)))
266
+ const [D, I] = (d = Dt.get(a)) != null ? d : [Ka], S = c != null ? c : D;
267
+ let O;
268
+ if (v) {
269
+ if (I && (O = h(D, S)))
270
270
  return I;
271
271
  const R = a({
272
272
  ...S
273
273
  });
274
274
  return Dt.set(a, [S, R]), R;
275
275
  }
276
- (x != null ? x : h(D, S)) || Dt.set(a, [S]);
276
+ (O != null ? O : h(D, S)) || Dt.set(a, [S]);
277
277
  }
278
278
  function eo(a) {
279
279
  Dt.delete(a);
280
280
  }
281
- async function ro(a, l, h = It) {
282
- const b = {
281
+ function ro(a) {
282
+ const c = a.byteLength >> 2, h = new Uint8Array(c);
283
+ for (let v = 0; v < c; v++) {
284
+ const d = v << 2;
285
+ h[v] = 306 * a[d] + 601 * a[d + 1] + 117 * a[d + 2] + 512 >> 10;
286
+ }
287
+ return h;
288
+ }
289
+ async function no(a, c, h = It) {
290
+ const v = {
283
291
  ...It,
284
292
  ...h
285
293
  }, d = await ze(a, {
286
294
  fireImmediately: !0
287
295
  });
288
296
  let D, I;
289
- if ("width" in l && "height" in l && "data" in l) {
290
- const {
291
- data: x,
292
- data: { byteLength: R },
293
- width: W,
294
- height: X
295
- } = l;
296
- I = d._malloc(R), d.HEAPU8.set(x, I), D = d.readBarcodesFromPixmap(
297
- I,
298
- W,
299
- X,
300
- Ge(b)
301
- );
297
+ if ("width" in c && "height" in c && "data" in c) {
298
+ const { data: O, width: R, height: k } = c, Q = ro(O), V = Q.byteLength;
299
+ if (I = d._malloc(V), !I)
300
+ throw new Error(`Failed to allocate ${V} bytes in WASM memory`);
301
+ try {
302
+ d.HEAPU8.set(Q, I), D = d.readBarcodesFromPixmap(
303
+ I,
304
+ R,
305
+ k,
306
+ Ge(v)
307
+ );
308
+ } finally {
309
+ d._free(I);
310
+ }
302
311
  } else {
303
- let x, R;
304
- if ("buffer" in l)
305
- [x, R] = [l.byteLength, l];
306
- else if ("byteLength" in l)
307
- [x, R] = [l.byteLength, new Uint8Array(l)];
308
- else if ("size" in l)
309
- [x, R] = [l.size, new Uint8Array(await l.arrayBuffer())];
312
+ let O, R;
313
+ if ("buffer" in c)
314
+ [O, R] = [c.byteLength, c];
315
+ else if ("byteLength" in c)
316
+ [O, R] = [c.byteLength, new Uint8Array(c)];
317
+ else if ("size" in c)
318
+ [O, R] = [c.size, new Uint8Array(await c.arrayBuffer())];
310
319
  else
311
320
  throw new TypeError("Invalid input type");
312
- I = d._malloc(x), d.HEAPU8.set(R, I), D = d.readBarcodesFromImage(
313
- I,
314
- x,
315
- Ge(b)
316
- );
321
+ if (I = d._malloc(O), !I)
322
+ throw new Error(`Failed to allocate ${O} bytes in WASM memory`);
323
+ try {
324
+ d.HEAPU8.set(R, I), D = d.readBarcodesFromImage(
325
+ I,
326
+ O,
327
+ Ge(v)
328
+ );
329
+ } finally {
330
+ d._free(I);
331
+ }
317
332
  }
318
- d._free(I);
319
333
  const S = [];
320
- for (let x = 0; x < D.size(); ++x)
334
+ for (let O = 0; O < D.size(); ++O)
321
335
  S.push(
322
- Ja(D.get(x))
336
+ Ja(D.get(O))
323
337
  );
324
338
  return S;
325
339
  }
@@ -328,22 +342,22 @@ async function ro(a, l, h = It) {
328
342
  formats: [...It.formats]
329
343
  });
330
344
  async function Xt(a = {}) {
331
- var l, h, b, d = a, D = !!globalThis.window, I = typeof Bun < "u", S = !!globalThis.WorkerGlobalScope;
332
- !((h = globalThis.process) === null || h === void 0 || (h = h.versions) === null || h === void 0) && h.node && ((b = globalThis.process) === null || b === void 0 ? void 0 : b.type) != "renderer";
333
- var x = "./this.program", R, W = "";
334
- function X(t) {
335
- return d.locateFile ? d.locateFile(t, W) : W + t;
345
+ var c, h, v, d = a, D = !!globalThis.window, I = typeof Bun < "u", S = !!globalThis.WorkerGlobalScope;
346
+ !((h = globalThis.process) === null || h === void 0 || (h = h.versions) === null || h === void 0) && h.node && ((v = globalThis.process) === null || v === void 0 ? void 0 : v.type) != "renderer";
347
+ var O = "./this.program", R, k = "";
348
+ function Q(t) {
349
+ return d.locateFile ? d.locateFile(t, k) : k + t;
336
350
  }
337
- var et, q;
351
+ var V, Y;
338
352
  if (D || S || I) {
339
353
  try {
340
- W = new URL(".", R).href;
354
+ k = new URL(".", R).href;
341
355
  } catch {
342
356
  }
343
- S && (q = (t) => {
357
+ S && (Y = (t) => {
344
358
  var e = new XMLHttpRequest();
345
359
  return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
346
- }), et = async (t) => {
360
+ }), V = async (t) => {
347
361
  var e = await fetch(t, {
348
362
  credentials: "same-origin"
349
363
  });
@@ -352,10 +366,10 @@ async function Xt(a = {}) {
352
366
  throw new Error(e.status + " : " + e.url);
353
367
  };
354
368
  }
355
- var at = console.log.bind(console), V = console.error.bind(console), Y, ht = !1, qt, Yt, Z, G, pt, ot, it, A, Zt, Jt, Kt = !1;
369
+ var at = console.log.bind(console), G = console.error.bind(console), Z, ht = !1, qt, Yt, J, H, pt, ot, it, A, Zt, Jt, Kt = !1;
356
370
  function te() {
357
371
  var t = At.buffer;
358
- Z = new Int8Array(t), pt = new Int16Array(t), d.HEAPU8 = G = new Uint8Array(t), ot = new Uint16Array(t), it = new Int32Array(t), A = new Uint32Array(t), Zt = new Float32Array(t), Jt = new Float64Array(t);
372
+ J = new Int8Array(t), pt = new Int16Array(t), d.HEAPU8 = H = new Uint8Array(t), ot = new Uint16Array(t), it = new Int32Array(t), A = new Uint32Array(t), Zt = new Float32Array(t), Jt = new Float64Array(t);
359
373
  }
360
374
  function rr() {
361
375
  if (d.preRun)
@@ -374,25 +388,25 @@ async function Xt(a = {}) {
374
388
  }
375
389
  function St(t) {
376
390
  var e, r;
377
- (e = d.onAbort) === null || e === void 0 || e.call(d, t), t = "Aborted(" + t + ")", V(t), ht = !0, t += ". Build with -sASSERTIONS for more info.";
391
+ (e = d.onAbort) === null || e === void 0 || e.call(d, t), t = "Aborted(" + t + ")", G(t), ht = !0, t += ". Build with -sASSERTIONS for more info.";
378
392
  var n = new WebAssembly.RuntimeError(t);
379
393
  throw (r = Yt) === null || r === void 0 || r(n), n;
380
394
  }
381
395
  var mt;
382
396
  function or() {
383
- return X("zxing_reader.wasm");
397
+ return Q("zxing_reader.wasm");
384
398
  }
385
399
  function ir(t) {
386
- if (t == mt && Y)
387
- return new Uint8Array(Y);
388
- if (q)
389
- return q(t);
400
+ if (t == mt && Z)
401
+ return new Uint8Array(Z);
402
+ if (Y)
403
+ return Y(t);
390
404
  throw "both async and sync fetching of the wasm failed";
391
405
  }
392
406
  async function sr(t) {
393
- if (!Y)
407
+ if (!Z)
394
408
  try {
395
- var e = await et(t);
409
+ var e = await V(t);
396
410
  return new Uint8Array(e);
397
411
  } catch {
398
412
  }
@@ -403,10 +417,10 @@ async function Xt(a = {}) {
403
417
  var r = await sr(t), n = await WebAssembly.instantiate(r, e);
404
418
  return n;
405
419
  } catch (o) {
406
- V(`failed to asynchronously prepare wasm: ${o}`), St(o);
420
+ G(`failed to asynchronously prepare wasm: ${o}`), St(o);
407
421
  }
408
422
  }
409
- async function cr(t, e, r) {
423
+ async function lr(t, e, r) {
410
424
  if (!t && WebAssembly.instantiateStreaming)
411
425
  try {
412
426
  var n = fetch(e, {
@@ -414,11 +428,11 @@ async function Xt(a = {}) {
414
428
  }), o = await WebAssembly.instantiateStreaming(n, r);
415
429
  return o;
416
430
  } catch (i) {
417
- V(`wasm streaming compile failed: ${i}`), V("falling back to ArrayBuffer instantiation");
431
+ G(`wasm streaming compile failed: ${i}`), G("falling back to ArrayBuffer instantiation");
418
432
  }
419
433
  return ur(e, r);
420
434
  }
421
- function lr() {
435
+ function cr() {
422
436
  var t = {
423
437
  a: Nn
424
438
  };
@@ -431,27 +445,27 @@ async function Xt(a = {}) {
431
445
  function e(i) {
432
446
  return t(i.instance);
433
447
  }
434
- var r = lr();
448
+ var r = cr();
435
449
  if (d.instantiateWasm)
436
450
  return new Promise((i, s) => {
437
- d.instantiateWasm(r, (u, c) => {
451
+ d.instantiateWasm(r, (u, l) => {
438
452
  i(t(u));
439
453
  });
440
454
  });
441
455
  mt != null || (mt = or());
442
- var n = await cr(Y, mt, r), o = e(n);
456
+ var n = await lr(Z, mt, r), o = e(n);
443
457
  return o;
444
458
  }
445
459
  var ee = (t) => {
446
460
  for (; t.length > 0; )
447
461
  t.shift()(d);
448
- }, re = [], fr = (t) => re.push(t), ne = [], hr = (t) => ne.push(t), v = (t) => _e(t), g = () => Ae(), yt = [], vt = 0, pr = (t) => {
462
+ }, re = [], fr = (t) => re.push(t), ne = [], hr = (t) => ne.push(t), w = (t) => _e(t), g = () => Ae(), yt = [], vt = 0, pr = (t) => {
449
463
  var e = new Rt(t);
450
464
  return e.get_caught() || (e.set_caught(!0), vt--), e.set_rethrown(!1), yt.push(e), Oe(t), Te(t);
451
- }, H = 0, mr = () => {
465
+ }, z = 0, mr = () => {
452
466
  y(0, 0);
453
467
  var t = yt.pop();
454
- Pe(t.excPtr), H = 0;
468
+ Pe(t.excPtr), z = 0;
455
469
  };
456
470
  class Rt {
457
471
  constructor(e) {
@@ -470,16 +484,16 @@ async function Xt(a = {}) {
470
484
  return A[this.ptr + 8 >> 2];
471
485
  }
472
486
  set_caught(e) {
473
- e = e ? 1 : 0, Z[this.ptr + 12] = e;
487
+ e = e ? 1 : 0, J[this.ptr + 12] = e;
474
488
  }
475
489
  get_caught() {
476
- return Z[this.ptr + 12] != 0;
490
+ return J[this.ptr + 12] != 0;
477
491
  }
478
492
  set_rethrown(e) {
479
- e = e ? 1 : 0, Z[this.ptr + 13] = e;
493
+ e = e ? 1 : 0, J[this.ptr + 13] = e;
480
494
  }
481
495
  get_rethrown() {
482
- return Z[this.ptr + 13] != 0;
496
+ return J[this.ptr + 13] != 0;
483
497
  }
484
498
  init(e, r) {
485
499
  this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(r);
@@ -491,34 +505,34 @@ async function Xt(a = {}) {
491
505
  return A[this.ptr + 16 >> 2];
492
506
  }
493
507
  }
494
- var gt = (t) => Ee(t), Mt = (t) => {
495
- var e = H;
508
+ var wt = (t) => Ee(t), Mt = (t) => {
509
+ var e = z;
496
510
  if (!e)
497
- return gt(0), 0;
511
+ return wt(0), 0;
498
512
  var r = new Rt(e);
499
513
  r.set_adjusted_ptr(e);
500
514
  var n = r.get_type();
501
515
  if (!n)
502
- return gt(0), e;
516
+ return wt(0), e;
503
517
  for (var o of t) {
504
518
  if (o === 0 || o === n)
505
519
  break;
506
520
  var i = r.ptr + 16;
507
521
  if (xe(o, n, i))
508
- return gt(o), e;
522
+ return wt(o), e;
509
523
  }
510
- return gt(n), e;
511
- }, yr = () => Mt([]), vr = (t) => Mt([t]), gr = (t, e) => Mt([t, e]), wr = () => {
524
+ return wt(n), e;
525
+ }, yr = () => Mt([]), vr = (t) => Mt([t]), wr = (t, e) => Mt([t, e]), gr = () => {
512
526
  var t = yt.pop();
513
527
  t || St("no exception to throw");
514
528
  var e = t.excPtr;
515
- throw t.get_rethrown() || (yt.push(t), t.set_rethrown(!0), t.set_caught(!1), vt++), H = e, H;
529
+ throw t.get_rethrown() || (yt.push(t), t.set_rethrown(!0), t.set_caught(!1), vt++), z = e, z;
516
530
  }, br = (t, e, r) => {
517
531
  var n = new Rt(t);
518
- throw n.init(e, r), H = t, vt++, H;
532
+ throw n.init(e, r), z = t, vt++, z;
519
533
  }, Cr = () => vt, $r = (t) => {
520
- throw H || (H = t), H;
521
- }, Tr = () => St(""), wt = {}, Ft = (t) => {
534
+ throw z || (z = t), z;
535
+ }, Tr = () => St(""), gt = {}, Ft = (t) => {
522
536
  for (; t.length; ) {
523
537
  var e = t.pop(), r = t.pop();
524
538
  r(e);
@@ -527,46 +541,46 @@ async function Xt(a = {}) {
527
541
  function st(t) {
528
542
  return this.fromWireType(A[t >> 2]);
529
543
  }
530
- var rt = {}, J = {}, bt = {}, Er = class extends Error {
544
+ var rt = {}, K = {}, bt = {}, Er = class extends Error {
531
545
  constructor(t) {
532
546
  super(t), this.name = "InternalError";
533
547
  }
534
548
  }, Ct = (t) => {
535
549
  throw new Er(t);
536
- }, K = (t, e, r) => {
550
+ }, tt = (t, e, r) => {
537
551
  t.forEach((u) => bt[u] = e);
538
552
  function n(u) {
539
- var c = r(u);
540
- c.length !== t.length && Ct("Mismatched type converter count");
553
+ var l = r(u);
554
+ l.length !== t.length && Ct("Mismatched type converter count");
541
555
  for (var f = 0; f < t.length; ++f)
542
- U(t[f], c[f]);
556
+ U(t[f], l[f]);
543
557
  }
544
558
  var o = new Array(e.length), i = [], s = 0;
545
559
  {
546
560
  const u = e;
547
- for (let c = 0; c < u.length; ++c) {
548
- const f = u[c];
549
- J.hasOwnProperty(f) ? o[c] = J[f] : (i.push(f), rt.hasOwnProperty(f) || (rt[f] = []), rt[f].push(() => {
550
- o[c] = J[f], ++s, s === i.length && n(o);
561
+ for (let l = 0; l < u.length; ++l) {
562
+ const f = u[l];
563
+ K.hasOwnProperty(f) ? o[l] = K[f] : (i.push(f), rt.hasOwnProperty(f) || (rt[f] = []), rt[f].push(() => {
564
+ o[l] = K[f], ++s, s === i.length && n(o);
551
565
  }));
552
566
  }
553
567
  }
554
568
  i.length === 0 && n(o);
555
569
  }, _r = (t) => {
556
- var e = wt[t];
557
- delete wt[t];
570
+ var e = gt[t];
571
+ delete gt[t];
558
572
  var r = e.rawConstructor, n = e.rawDestructor, o = e.fields, i = o.map((s) => s.getterReturnType).concat(o.map((s) => s.setterArgumentType));
559
- K([t], i, (s) => {
573
+ tt([t], i, (s) => {
560
574
  var u = {};
561
575
  {
562
- const c = o;
563
- for (let f = 0; f < c.length; ++f) {
564
- const p = c[f], m = s[f], $ = p.getter, E = p.getterContext, O = s[f + o.length], P = p.setter, _ = p.setterContext;
576
+ const l = o;
577
+ for (let f = 0; f < l.length; ++f) {
578
+ const p = l[f], m = s[f], $ = p.getter, E = p.getterContext, x = s[f + o.length], P = p.setter, _ = p.setterContext;
565
579
  u[p.fieldName] = {
566
580
  read: (T) => m.fromWireType($(E, T)),
567
581
  write: (T, j) => {
568
582
  var F = [];
569
- P(_, T, O.toWireType(F, j)), Ft(F);
583
+ P(_, T, x.toWireType(F, j)), Ft(F);
570
584
  },
571
585
  optional: m.optional
572
586
  };
@@ -574,20 +588,20 @@ async function Xt(a = {}) {
574
588
  }
575
589
  return [{
576
590
  name: e.name,
577
- fromWireType: (c) => {
591
+ fromWireType: (l) => {
578
592
  var f = {};
579
593
  for (var p in u)
580
- f[p] = u[p].read(c);
581
- return n(c), f;
594
+ f[p] = u[p].read(l);
595
+ return n(l), f;
582
596
  },
583
- toWireType: (c, f) => {
597
+ toWireType: (l, f) => {
584
598
  for (var p in u)
585
599
  if (!(p in f) && !u[p].optional)
586
600
  throw new TypeError(`Missing field: "${p}"`);
587
601
  var m = r();
588
602
  for (p in u)
589
603
  u[p].write(m, f[p]);
590
- return c !== null && c.push(n, m), m;
604
+ return l !== null && l.push(n, m), m;
591
605
  },
592
606
  readValueFromPointer: st,
593
607
  destructorFunction: n
@@ -596,7 +610,7 @@ async function Xt(a = {}) {
596
610
  }, Ar = (t, e, r, n, o) => {
597
611
  }, M = (t) => {
598
612
  for (var e = ""; ; ) {
599
- var r = G[t++];
613
+ var r = H[t++];
600
614
  if (!r) return e;
601
615
  e += String.fromCharCode(r);
602
616
  }
@@ -610,12 +624,12 @@ async function Xt(a = {}) {
610
624
  function Pr(t, e) {
611
625
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
612
626
  var n = e.name;
613
- if (t || C(`type "${n}" must have a positive integer typeid pointer`), J.hasOwnProperty(t)) {
627
+ if (t || C(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(t)) {
614
628
  if (r.ignoreDuplicateRegistrations)
615
629
  return;
616
630
  C(`Cannot register type '${n}' twice`);
617
631
  }
618
- if (J[t] = e, delete bt[t], rt.hasOwnProperty(t)) {
632
+ if (K[t] = e, delete bt[t], rt.hasOwnProperty(t)) {
619
633
  var o = rt[t];
620
634
  delete rt[t], o.forEach((i) => i());
621
635
  }
@@ -634,7 +648,7 @@ async function Xt(a = {}) {
634
648
  return i ? r : n;
635
649
  },
636
650
  readValueFromPointer: function(o) {
637
- return this.fromWireType(G[o]);
651
+ return this.fromWireType(H[o]);
638
652
  },
639
653
  destructorFunction: null
640
654
  });
@@ -658,9 +672,9 @@ async function Xt(a = {}) {
658
672
  t.count.value -= 1;
659
673
  var e = t.count.value === 0;
660
674
  e && Dr(t);
661
- }, ct = (t) => globalThis.FinalizationRegistry ? (jt = new FinalizationRegistry((e) => {
675
+ }, lt = (t) => globalThis.FinalizationRegistry ? (jt = new FinalizationRegistry((e) => {
662
676
  oe(e.$$);
663
- }), ct = (e) => {
677
+ }), lt = (e) => {
664
678
  var r = e.$$, n = !!r.smartPtr;
665
679
  if (n) {
666
680
  var o = {
@@ -669,7 +683,7 @@ async function Xt(a = {}) {
669
683
  jt.register(e, o, e);
670
684
  }
671
685
  return e;
672
- }, ae = (e) => jt.unregister(e), ct(t)) : (ct = (e) => e, t), Ir = () => {
686
+ }, ae = (e) => jt.unregister(e), lt(t)) : (lt = (e) => e, t), Ir = () => {
673
687
  let t = $t.prototype;
674
688
  Object.assign(t, {
675
689
  isAliasOf(r) {
@@ -686,7 +700,7 @@ async function Xt(a = {}) {
686
700
  clone() {
687
701
  if (this.$$.ptr || Bt(this), this.$$.preservePointerOnDelete)
688
702
  return this.$$.count.value += 1, this;
689
- var r = ct(Object.create(Object.getPrototypeOf(this), {
703
+ var r = lt(Object.create(Object.getPrototypeOf(this), {
690
704
  $$: {
691
705
  value: xr(this.$$)
692
706
  }
@@ -733,7 +747,7 @@ async function Xt(a = {}) {
733
747
  for (; e !== r; )
734
748
  e.upcast || C(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
735
749
  return t;
736
- }, kt = (t) => {
750
+ }, Wt = (t) => {
737
751
  if (t === null)
738
752
  return "null";
739
753
  var e = typeof t;
@@ -742,7 +756,7 @@ async function Xt(a = {}) {
742
756
  function Br(t, e) {
743
757
  if (e === null)
744
758
  return this.isReference && C(`null is not a valid ${this.name}`), 0;
745
- e.$$ || C(`Cannot pass "${kt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`);
759
+ e.$$ || C(`Cannot pass "${Wt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`);
746
760
  var r = e.$$.ptrType.registeredClass, n = Ut(e.$$.ptr, r, this.registeredClass);
747
761
  return n;
748
762
  }
@@ -750,7 +764,7 @@ async function Xt(a = {}) {
750
764
  var r;
751
765
  if (e === null)
752
766
  return this.isReference && C(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
753
- (!e || !e.$$) && C(`Cannot pass "${kt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && C(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
767
+ (!e || !e.$$) && C(`Cannot pass "${Wt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && C(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
754
768
  var n = e.$$.ptrType.registeredClass;
755
769
  if (r = Ut(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
756
770
  switch (e.$$.smartPtr === void 0 && C("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
@@ -765,7 +779,7 @@ async function Xt(a = {}) {
765
779
  r = e.$$.smartPtr;
766
780
  else {
767
781
  var o = e.clone();
768
- r = this.rawShare(r, k.toHandle(() => o.delete())), t !== null && t.push(this.rawDestructor, r);
782
+ r = this.rawShare(r, W.toHandle(() => o.delete())), t !== null && t.push(this.rawDestructor, r);
769
783
  }
770
784
  break;
771
785
  default:
@@ -776,27 +790,27 @@ async function Xt(a = {}) {
776
790
  function Lr(t, e) {
777
791
  if (e === null)
778
792
  return this.isReference && C(`null is not a valid ${this.name}`), 0;
779
- e.$$ || C(`Cannot pass "${kt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && C(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
793
+ e.$$ || C(`Cannot pass "${Wt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && C(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
780
794
  var r = e.$$.ptrType.registeredClass, n = Ut(e.$$.ptr, r, this.registeredClass);
781
795
  return n;
782
796
  }
783
- var ce = (t, e, r) => {
797
+ var le = (t, e, r) => {
784
798
  if (e === r)
785
799
  return t;
786
800
  if (r.baseClass === void 0)
787
801
  return null;
788
- var n = ce(t, e, r.baseClass);
802
+ var n = le(t, e, r.baseClass);
789
803
  return n === null ? null : r.downcast(n);
790
- }, Ur = {}, kr = (t, e) => {
804
+ }, Ur = {}, Wr = (t, e) => {
791
805
  for (e === void 0 && C("ptr should not be undefined"); t.baseClass; )
792
806
  e = t.upcast(e), t = t.baseClass;
793
807
  return e;
794
- }, Wr = (t, e) => (e = kr(t, e), Ur[e]), Tt = (t, e) => {
808
+ }, kr = (t, e) => (e = Wr(t, e), Ur[e]), Tt = (t, e) => {
795
809
  (!e.ptrType || !e.ptr) && Ct("makeClassHandle requires ptr and ptrType");
796
810
  var r = !!e.smartPtrType, n = !!e.smartPtr;
797
811
  return r !== n && Ct("Both smartPtrType and smartPtr must be specified"), e.count = {
798
812
  value: 1
799
- }, ct(Object.create(t, {
813
+ }, lt(Object.create(t, {
800
814
  $$: {
801
815
  value: e,
802
816
  writable: !0
@@ -807,7 +821,7 @@ async function Xt(a = {}) {
807
821
  var e = this.getPointee(t);
808
822
  if (!e)
809
823
  return this.destructor(t), null;
810
- var r = Wr(this.registeredClass, e);
824
+ var r = kr(this.registeredClass, e);
811
825
  if (r !== void 0) {
812
826
  if (r.$$.count.value === 0)
813
827
  return r.$$.ptr = e, r.$$.smartPtr = t, r.clone();
@@ -830,15 +844,15 @@ async function Xt(a = {}) {
830
844
  return o.call(this);
831
845
  var u;
832
846
  this.isConst ? u = s.constPointerType : u = s.pointerType;
833
- var c = ce(e, this.registeredClass, u.registeredClass);
834
- return c === null ? o.call(this) : this.isSmartPointer ? Tt(u.registeredClass.instancePrototype, {
847
+ var l = le(e, this.registeredClass, u.registeredClass);
848
+ return l === null ? o.call(this) : this.isSmartPointer ? Tt(u.registeredClass.instancePrototype, {
835
849
  ptrType: u,
836
- ptr: c,
850
+ ptr: l,
837
851
  smartPtrType: this,
838
852
  smartPtr: t
839
853
  }) : Tt(u.registeredClass.instancePrototype, {
840
854
  ptrType: u,
841
- ptr: c
855
+ ptr: l
842
856
  });
843
857
  }
844
858
  var Gr = () => {
@@ -854,23 +868,23 @@ async function Xt(a = {}) {
854
868
  fromWireType: Vr
855
869
  });
856
870
  };
857
- function Et(t, e, r, n, o, i, s, u, c, f, p) {
858
- this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = o, this.pointeeType = i, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = c, this.rawShare = f, this.rawDestructor = p, !o && e.baseClass === void 0 ? n ? (this.toWireType = Br, this.destructorFunction = null) : (this.toWireType = Lr, this.destructorFunction = null) : this.toWireType = jr;
871
+ function Et(t, e, r, n, o, i, s, u, l, f, p) {
872
+ this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = o, this.pointeeType = i, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = p, !o && e.baseClass === void 0 ? n ? (this.toWireType = Br, this.destructorFunction = null) : (this.toWireType = Lr, this.destructorFunction = null) : this.toWireType = jr;
859
873
  }
860
- var le = (t, e, r) => {
874
+ var ce = (t, e, r) => {
861
875
  d.hasOwnProperty(t) || Ct("Replacing nonexistent public symbol"), d[t].overloadTable !== void 0 && r !== void 0 ? d[t].overloadTable[r] = e : (d[t] = e, d[t].argCount = r);
862
- }, N = {}, Hr = (t, e, r) => {
876
+ }, X = {}, Hr = (t, e, r) => {
863
877
  t = t.replace(/p/g, "i");
864
- var n = N[t];
878
+ var n = X[t];
865
879
  return n(e, ...r);
866
- }, de = [], w = (t) => {
880
+ }, de = [], b = (t) => {
867
881
  var e = de[t];
868
882
  return e || (de[t] = e = Se.get(t)), e;
869
883
  }, zr = function(t, e) {
870
884
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
871
885
  if (t.includes("j"))
872
886
  return Hr(t, e, r);
873
- var n = w(e), o = n(...r);
887
+ var n = b(e), o = n(...r);
874
888
  return o;
875
889
  }, Nr = function(t, e) {
876
890
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
@@ -884,7 +898,7 @@ async function Xt(a = {}) {
884
898
  function r() {
885
899
  if (t.includes("j"))
886
900
  return Nr(t, e);
887
- var o = w(e);
901
+ var o = b(e);
888
902
  return o;
889
903
  }
890
904
  var n = r();
@@ -894,11 +908,11 @@ async function Xt(a = {}) {
894
908
  }
895
909
  var fe = (t) => {
896
910
  var e = $e(t), r = M(e);
897
- return Q(e), r;
911
+ return q(e), r;
898
912
  }, _t = (t, e) => {
899
913
  var r = [], n = {};
900
914
  function o(i) {
901
- if (!n[i] && !J[i]) {
915
+ if (!n[i] && !K[i]) {
902
916
  if (bt[i]) {
903
917
  bt[i].forEach(o);
904
918
  return;
@@ -907,15 +921,15 @@ async function Xt(a = {}) {
907
921
  }
908
922
  }
909
923
  throw e.forEach(o), new Qr(`${t}: ` + r.map(fe).join([", "]));
910
- }, Xr = (t, e, r, n, o, i, s, u, c, f, p, m, $) => {
911
- p = M(p), i = B(o, i), u && (u = B(s, u)), f && (f = B(c, f)), $ = B(m, $);
924
+ }, Xr = (t, e, r, n, o, i, s, u, l, f, p, m, $) => {
925
+ p = M(p), i = B(o, i), u && (u = B(s, u)), f && (f = B(l, f)), $ = B(m, $);
912
926
  var E = Mr(p);
913
927
  ue(E, function() {
914
928
  _t(`Cannot construct ${p} due to unbound types`, [n]);
915
- }), K([t, e, r], n ? [n] : [], (O) => {
916
- O = O[0];
929
+ }), tt([t, e, r], n ? [n] : [], (x) => {
930
+ x = x[0];
917
931
  var P, _;
918
- n ? (P = O.registeredClass, _ = P.instancePrototype) : _ = $t.prototype;
932
+ n ? (P = x.registeredClass, _ = P.instancePrototype) : _ = $t.prototype;
919
933
  var T = Lt(p, function() {
920
934
  if (Object.getPrototypeOf(this) !== j)
921
935
  throw new ut(`Use 'new' to construct ${p}`);
@@ -935,16 +949,16 @@ async function Xt(a = {}) {
935
949
  T.prototype = j;
936
950
  var F = new Fr(p, T, j, $, P, i, u, f);
937
951
  if (F.baseClass) {
938
- var z, Pt;
939
- (Pt = (z = F.baseClass).__derivedClasses) !== null && Pt !== void 0 || (z.__derivedClasses = []), F.baseClass.__derivedClasses.push(F);
952
+ var N, Pt;
953
+ (Pt = (N = F.baseClass).__derivedClasses) !== null && Pt !== void 0 || (N.__derivedClasses = []), F.baseClass.__derivedClasses.push(F);
940
954
  }
941
955
  var xa = new Et(p, F, !0, !1, !1), Re = new Et(p + "*", F, !1, !1, !1), Me = new Et(p + " const*", F, !1, !0, !1);
942
956
  return ie[t] = {
943
957
  pointerType: Re,
944
958
  constPointerType: Me
945
- }, le(E, T), [xa, Re, Me];
959
+ }, ce(E, T), [xa, Re, Me];
946
960
  });
947
- }, Wt = (t, e) => {
961
+ }, kt = (t, e) => {
948
962
  for (var r = [], n = 0; n < t; n++)
949
963
  r.push(A[e + n * 4 >> 2]);
950
964
  return r;
@@ -958,7 +972,7 @@ async function Xt(a = {}) {
958
972
  function Vt(t, e, r, n, o, i) {
959
973
  var s = e.length;
960
974
  s < 2 && C("argTypes array size mismatch! Must at least get return value and 'this' types!");
961
- var u = e[1] !== null && r !== null, c = qr(e), f = !e[0].isVoid, p = s - 2, m = new Array(p), $ = [], E = [], O = function() {
975
+ var u = e[1] !== null && r !== null, l = qr(e), f = !e[0].isVoid, p = s - 2, m = new Array(p), $ = [], E = [], x = function() {
962
976
  E.length = 0;
963
977
  var P;
964
978
  $.length = u ? 2 : 1, $[0] = o, u && (P = e[1].toWireType(E, this), $[1] = P);
@@ -966,54 +980,54 @@ async function Xt(a = {}) {
966
980
  m[_] = e[_ + 2].toWireType(E, _ < 0 || arguments.length <= _ ? void 0 : arguments[_]), $.push(m[_]);
967
981
  var T = n(...$);
968
982
  function j(F) {
969
- if (c)
983
+ if (l)
970
984
  Ft(E);
971
985
  else
972
- for (var z = u ? 1 : 2; z < e.length; z++) {
973
- var Pt = z === 1 ? P : m[z - 2];
974
- e[z].destructorFunction !== null && e[z].destructorFunction(Pt);
986
+ for (var N = u ? 1 : 2; N < e.length; N++) {
987
+ var Pt = N === 1 ? P : m[N - 2];
988
+ e[N].destructorFunction !== null && e[N].destructorFunction(Pt);
975
989
  }
976
990
  if (f)
977
991
  return e[0].fromWireType(F);
978
992
  }
979
993
  return j(T);
980
994
  };
981
- return Lt(t, O);
995
+ return Lt(t, x);
982
996
  }
983
997
  var Yr = (t, e, r, n, o, i) => {
984
- var s = Wt(e, r);
985
- o = B(n, o), K([], [t], (u) => {
998
+ var s = kt(e, r);
999
+ o = B(n, o), tt([], [t], (u) => {
986
1000
  u = u[0];
987
- var c = `constructor ${u.name}`;
1001
+ var l = `constructor ${u.name}`;
988
1002
  if (u.registeredClass.constructor_body === void 0 && (u.registeredClass.constructor_body = []), u.registeredClass.constructor_body[e - 1] !== void 0)
989
1003
  throw new ut(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${u.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
990
1004
  return u.registeredClass.constructor_body[e - 1] = () => {
991
1005
  _t(`Cannot construct ${u.name} due to unbound types`, s);
992
- }, K([], s, (f) => (f.splice(1, 0, null), u.registeredClass.constructor_body[e - 1] = Vt(c, f, null, o, i), [])), [];
1006
+ }, tt([], s, (f) => (f.splice(1, 0, null), u.registeredClass.constructor_body[e - 1] = Vt(l, f, null, o, i), [])), [];
993
1007
  });
994
1008
  }, he = (t) => {
995
1009
  t = t.trim();
996
1010
  const e = t.indexOf("(");
997
1011
  return e === -1 ? t : t.slice(0, e);
998
- }, Zr = (t, e, r, n, o, i, s, u, c, f) => {
999
- var p = Wt(r, n);
1000
- e = M(e), e = he(e), i = B(o, i), K([], [t], (m) => {
1012
+ }, Zr = (t, e, r, n, o, i, s, u, l, f) => {
1013
+ var p = kt(r, n);
1014
+ e = M(e), e = he(e), i = B(o, i), tt([], [t], (m) => {
1001
1015
  m = m[0];
1002
1016
  var $ = `${m.name}.${e}`;
1003
1017
  e.startsWith("@@") && (e = Symbol[e.substring(2)]), u && m.registeredClass.pureVirtualFunctions.push(e);
1004
1018
  function E() {
1005
1019
  _t(`Cannot call ${$} due to unbound types`, p);
1006
1020
  }
1007
- var O = m.registeredClass.instancePrototype, P = O[e];
1008
- return P === void 0 || P.overloadTable === void 0 && P.className !== m.name && P.argCount === r - 2 ? (E.argCount = r - 2, E.className = m.name, O[e] = E) : (se(O, e, $), O[e].overloadTable[r - 2] = E), K([], p, (_) => {
1021
+ var x = m.registeredClass.instancePrototype, P = x[e];
1022
+ return P === void 0 || P.overloadTable === void 0 && P.className !== m.name && P.argCount === r - 2 ? (E.argCount = r - 2, E.className = m.name, x[e] = E) : (se(x, e, $), x[e].overloadTable[r - 2] = E), tt([], p, (_) => {
1009
1023
  var T = Vt($, _, m, i, s);
1010
- return O[e].overloadTable === void 0 ? (T.argCount = r - 2, O[e] = T) : O[e].overloadTable[r - 2] = T, [];
1024
+ return x[e].overloadTable === void 0 ? (T.argCount = r - 2, x[e] = T) : x[e].overloadTable[r - 2] = T, [];
1011
1025
  }), [];
1012
1026
  });
1013
- }, pe = [], tt = [0, 1, , 1, null, 1, !0, 1, !1, 1], Gt = (t) => {
1014
- t > 9 && --tt[t + 1] === 0 && (tt[t] = void 0, pe.push(t));
1015
- }, k = {
1016
- toValue: (t) => (t || C(`Cannot use deleted val. handle = ${t}`), tt[t]),
1027
+ }, pe = [], et = [0, 1, , 1, null, 1, !0, 1, !1, 1], Gt = (t) => {
1028
+ t > 9 && --et[t + 1] === 0 && (et[t] = void 0, pe.push(t));
1029
+ }, W = {
1030
+ toValue: (t) => (t || C(`Cannot use deleted val. handle = ${t}`), et[t]),
1017
1031
  toHandle: (t) => {
1018
1032
  switch (t) {
1019
1033
  case void 0:
@@ -1025,18 +1039,18 @@ async function Xt(a = {}) {
1025
1039
  case !1:
1026
1040
  return 8;
1027
1041
  default: {
1028
- const e = pe.pop() || tt.length;
1029
- return tt[e] = t, tt[e + 1] = 1, e;
1042
+ const e = pe.pop() || et.length;
1043
+ return et[e] = t, et[e + 1] = 1, e;
1030
1044
  }
1031
1045
  }
1032
1046
  }
1033
1047
  }, me = {
1034
1048
  name: "emscripten::val",
1035
1049
  fromWireType: (t) => {
1036
- var e = k.toValue(t);
1050
+ var e = W.toValue(t);
1037
1051
  return Gt(t), e;
1038
1052
  },
1039
- toWireType: (t, e) => k.toHandle(e),
1053
+ toWireType: (t, e) => W.toHandle(e),
1040
1054
  readValueFromPointer: st,
1041
1055
  destructorFunction: null
1042
1056
  }, Jr = (t) => U(t, me), Kr = (t, e) => {
@@ -1061,17 +1075,17 @@ async function Xt(a = {}) {
1061
1075
  destructorFunction: null
1062
1076
  });
1063
1077
  }, en = (t, e, r, n, o, i, s, u) => {
1064
- var c = Wt(e, r);
1078
+ var l = kt(e, r);
1065
1079
  t = M(t), t = he(t), o = B(n, o), ue(t, function() {
1066
- _t(`Cannot call ${t} due to unbound types`, c);
1067
- }, e - 1), K([], c, (f) => {
1080
+ _t(`Cannot call ${t} due to unbound types`, l);
1081
+ }, e - 1), tt([], l, (f) => {
1068
1082
  var p = [f[0], null].concat(f.slice(1));
1069
- return le(t, Vt(t, p, null, o, i), e - 1), [];
1083
+ return ce(t, Vt(t, p, null, o, i), e - 1), [];
1070
1084
  });
1071
1085
  }, rn = (t, e, r) => {
1072
1086
  switch (e) {
1073
1087
  case 1:
1074
- return r ? (n) => Z[n] : (n) => G[n];
1088
+ return r ? (n) => J[n] : (n) => H[n];
1075
1089
  case 2:
1076
1090
  return r ? (n) => pt[n >> 1] : (n) => ot[n >> 1];
1077
1091
  case 4:
@@ -1082,23 +1096,23 @@ async function Xt(a = {}) {
1082
1096
  }, nn = (t, e, r, n, o) => {
1083
1097
  e = M(e);
1084
1098
  const i = n === 0;
1085
- let s = (c) => c;
1099
+ let s = (l) => l;
1086
1100
  if (i) {
1087
1101
  var u = 32 - 8 * r;
1088
- s = (c) => c << u >>> u, o = s(o);
1102
+ s = (l) => l << u >>> u, o = s(o);
1089
1103
  }
1090
1104
  U(t, {
1091
1105
  name: e,
1092
1106
  fromWireType: s,
1093
- toWireType: (c, f) => f,
1107
+ toWireType: (l, f) => f,
1094
1108
  readValueFromPointer: rn(e, r, n !== 0),
1095
1109
  destructorFunction: null
1096
1110
  });
1097
1111
  }, an = (t, e, r) => {
1098
1112
  var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], o = n[e];
1099
1113
  function i(s) {
1100
- var u = A[s >> 2], c = A[s + 4 >> 2];
1101
- return new o(Z.buffer, c, u);
1114
+ var u = A[s >> 2], l = A[s + 4 >> 2];
1115
+ return new o(J.buffer, l, u);
1102
1116
  }
1103
1117
  r = M(r), U(t, {
1104
1118
  name: r,
@@ -1130,20 +1144,20 @@ async function Xt(a = {}) {
1130
1144
  }
1131
1145
  }
1132
1146
  return e[r] = 0, r - o;
1133
- }, nt = (t, e, r) => un(t, G, e, r), ye = (t) => {
1147
+ }, nt = (t, e, r) => un(t, H, e, r), ye = (t) => {
1134
1148
  for (var e = 0, r = 0; r < t.length; ++r) {
1135
1149
  var n = t.charCodeAt(r);
1136
1150
  n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
1137
1151
  }
1138
1152
  return e;
1139
- }, ve = globalThis.TextDecoder && new TextDecoder(), ge = (t, e, r, n) => {
1153
+ }, ve = globalThis.TextDecoder && new TextDecoder(), we = (t, e, r, n) => {
1140
1154
  var o = e + r;
1141
1155
  if (n) return o;
1142
1156
  for (; t[e] && !(e >= o); ) ++e;
1143
1157
  return e;
1144
- }, we = function(t) {
1158
+ }, ge = function(t) {
1145
1159
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0;
1146
- var o = ge(t, e, r, n);
1160
+ var o = we(t, e, r, n);
1147
1161
  if (o - e > 16 && t.buffer && ve)
1148
1162
  return ve.decode(t.subarray(e, o));
1149
1163
  for (var i = ""; e < o; ) {
@@ -1157,8 +1171,8 @@ async function Xt(a = {}) {
1157
1171
  i += String.fromCharCode((s & 31) << 6 | u);
1158
1172
  continue;
1159
1173
  }
1160
- var c = t[e++] & 63;
1161
- if ((s & 240) == 224 ? s = (s & 15) << 12 | u << 6 | c : s = (s & 7) << 18 | u << 12 | c << 6 | t[e++] & 63, s < 65536)
1174
+ var l = t[e++] & 63;
1175
+ if ((s & 240) == 224 ? s = (s & 15) << 12 | u << 6 | l : s = (s & 7) << 18 | u << 12 | l << 6 | t[e++] & 63, s < 65536)
1162
1176
  i += String.fromCharCode(s);
1163
1177
  else {
1164
1178
  var f = s - 65536;
@@ -1166,27 +1180,27 @@ async function Xt(a = {}) {
1166
1180
  }
1167
1181
  }
1168
1182
  return i;
1169
- }, cn = (t, e, r) => t ? we(G, t, e, r) : "", ln = (t, e) => {
1183
+ }, ln = (t, e, r) => t ? ge(H, t, e, r) : "", cn = (t, e) => {
1170
1184
  e = M(e), U(t, {
1171
1185
  name: e,
1172
1186
  fromWireType(r) {
1173
1187
  var n = A[r >> 2], o = r + 4, i;
1174
- return i = cn(o, n, !0), Q(r), i;
1188
+ return i = ln(o, n, !0), q(r), i;
1175
1189
  },
1176
1190
  toWireType(r, n) {
1177
1191
  n instanceof ArrayBuffer && (n = new Uint8Array(n));
1178
1192
  var o, i = typeof n == "string";
1179
1193
  i || ArrayBuffer.isView(n) && n.BYTES_PER_ELEMENT == 1 || C("Cannot pass non-string to std::string"), i ? o = ye(n) : o = n.length;
1180
1194
  var s = Nt(4 + o + 1), u = s + 4;
1181
- return A[s >> 2] = o, i ? nt(n, u, o + 1) : G.set(n, u), r !== null && r.push(Q, s), s;
1195
+ return A[s >> 2] = o, i ? nt(n, u, o + 1) : H.set(n, u), r !== null && r.push(q, s), s;
1182
1196
  },
1183
1197
  readValueFromPointer: st,
1184
1198
  destructorFunction(r) {
1185
- Q(r);
1199
+ q(r);
1186
1200
  }
1187
1201
  });
1188
1202
  }, be = globalThis.TextDecoder ? new TextDecoder("utf-16le") : void 0, dn = (t, e, r) => {
1189
- var n = t >> 1, o = ge(ot, n, e / 2, r);
1203
+ var n = t >> 1, o = we(ot, n, e / 2, r);
1190
1204
  if (o - n > 16 && be) return be.decode(ot.subarray(n, o));
1191
1205
  for (var i = "", s = n; s < o; ++s) {
1192
1206
  var u = ot[s];
@@ -1227,34 +1241,34 @@ async function Xt(a = {}) {
1227
1241
  e === 2 ? (n = dn, o = fn, i = hn) : (n = pn, o = mn, i = yn), U(t, {
1228
1242
  name: r,
1229
1243
  fromWireType: (s) => {
1230
- var u = A[s >> 2], c = n(s + 4, u * e, !0);
1231
- return Q(s), c;
1244
+ var u = A[s >> 2], l = n(s + 4, u * e, !0);
1245
+ return q(s), l;
1232
1246
  },
1233
1247
  toWireType: (s, u) => {
1234
1248
  typeof u != "string" && C(`Cannot pass non-string to C++ string type ${r}`);
1235
- var c = i(u), f = Nt(4 + c + e);
1236
- return A[f >> 2] = c / e, o(u, f + 4, c + e), s !== null && s.push(Q, f), f;
1249
+ var l = i(u), f = Nt(4 + l + e);
1250
+ return A[f >> 2] = l / e, o(u, f + 4, l + e), s !== null && s.push(q, f), f;
1237
1251
  },
1238
1252
  readValueFromPointer: st,
1239
1253
  destructorFunction(s) {
1240
- Q(s);
1254
+ q(s);
1241
1255
  }
1242
1256
  });
1243
- }, gn = (t, e, r, n, o, i) => {
1244
- wt[t] = {
1257
+ }, wn = (t, e, r, n, o, i) => {
1258
+ gt[t] = {
1245
1259
  name: M(e),
1246
1260
  rawConstructor: B(r, n),
1247
1261
  rawDestructor: B(o, i),
1248
1262
  fields: []
1249
1263
  };
1250
- }, wn = (t, e, r, n, o, i, s, u, c, f) => {
1251
- wt[t].fields.push({
1264
+ }, gn = (t, e, r, n, o, i, s, u, l, f) => {
1265
+ gt[t].fields.push({
1252
1266
  fieldName: M(e),
1253
1267
  getterReturnType: r,
1254
1268
  getter: B(n, o),
1255
1269
  getterContext: i,
1256
1270
  setterArgumentType: s,
1257
- setter: B(u, c),
1271
+ setter: B(u, l),
1258
1272
  setterContext: f
1259
1273
  });
1260
1274
  }, bn = (t, e) => {
@@ -1270,7 +1284,7 @@ async function Xt(a = {}) {
1270
1284
  var e = Ht.length;
1271
1285
  return Ht.push(t), e;
1272
1286
  }, $n = (t, e) => {
1273
- var r = J[t];
1287
+ var r = K[t];
1274
1288
  return r === void 0 && C(`${e} has unknown type ${fe(t)}`), r;
1275
1289
  }, Tn = (t, e) => {
1276
1290
  for (var r = new Array(t), n = 0; n < t; ++n)
@@ -1278,47 +1292,47 @@ async function Xt(a = {}) {
1278
1292
  return r;
1279
1293
  }, En = (t, e, r) => {
1280
1294
  var n = [], o = t(n, r);
1281
- return n.length && (A[e >> 2] = k.toHandle(n)), o;
1295
+ return n.length && (A[e >> 2] = W.toHandle(n)), o;
1282
1296
  }, _n = {}, Ce = (t) => {
1283
1297
  var e = _n[t];
1284
1298
  return e === void 0 ? M(t) : e;
1285
1299
  }, An = (t, e, r) => {
1286
1300
  var n = 8, [o, ...i] = Tn(t, e), s = o.toWireType.bind(o), u = i.map((m) => m.readValueFromPointer.bind(m));
1287
1301
  t--;
1288
- var c = new Array(t), f = (m, $, E, O) => {
1302
+ var l = new Array(t), f = (m, $, E, x) => {
1289
1303
  for (var P = 0, _ = 0; _ < t; ++_)
1290
- c[_] = u[_](O + P), P += n;
1304
+ l[_] = u[_](x + P), P += n;
1291
1305
  var T;
1292
1306
  switch (r) {
1293
1307
  case 0:
1294
- T = k.toValue(m).apply(null, c);
1308
+ T = W.toValue(m).apply(null, l);
1295
1309
  break;
1296
1310
  case 2:
1297
- T = Reflect.construct(k.toValue(m), c);
1311
+ T = Reflect.construct(W.toValue(m), l);
1298
1312
  break;
1299
1313
  case 3:
1300
- T = c[0];
1314
+ T = l[0];
1301
1315
  break;
1302
1316
  case 1:
1303
- T = k.toValue(m)[Ce($)](...c);
1317
+ T = W.toValue(m)[Ce($)](...l);
1304
1318
  break;
1305
1319
  }
1306
1320
  return En(s, E, T);
1307
1321
  }, p = `methodCaller<(${i.map((m) => m.name)}) => ${o.name}>`;
1308
1322
  return Cn(Lt(p, f));
1309
- }, Pn = (t) => t ? (t = Ce(t), k.toHandle(globalThis[t])) : k.toHandle(globalThis), On = (t) => {
1310
- t > 9 && (tt[t + 1] += 1);
1323
+ }, Pn = (t) => t ? (t = Ce(t), W.toHandle(globalThis[t])) : W.toHandle(globalThis), On = (t) => {
1324
+ t > 9 && (et[t + 1] += 1);
1311
1325
  }, xn = (t, e, r, n, o) => Ht[t](e, r, n, o), Dn = (t) => {
1312
- var e = k.toValue(t);
1326
+ var e = W.toValue(t);
1313
1327
  Ft(e), Gt(t);
1314
1328
  }, In = (t, e, r, n) => {
1315
- var o = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(o, 0, 1), s = new Date(o, 6, 1), u = i.getTimezoneOffset(), c = s.getTimezoneOffset(), f = Math.max(u, c);
1316
- A[t >> 2] = f * 60, it[e >> 2] = +(u != c);
1329
+ var o = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(o, 0, 1), s = new Date(o, 6, 1), u = i.getTimezoneOffset(), l = s.getTimezoneOffset(), f = Math.max(u, l);
1330
+ A[t >> 2] = f * 60, it[e >> 2] = +(u != l);
1317
1331
  var p = (E) => {
1318
- var O = E >= 0 ? "-" : "+", P = Math.abs(E), _ = String(Math.floor(P / 60)).padStart(2, "0"), T = String(P % 60).padStart(2, "0");
1319
- return `UTC${O}${_}${T}`;
1320
- }, m = p(u), $ = p(c);
1321
- c < u ? (nt(m, r, 17), nt($, n, 17)) : (nt(m, n, 17), nt($, r, 17));
1332
+ var x = E >= 0 ? "-" : "+", P = Math.abs(E), _ = String(Math.floor(P / 60)).padStart(2, "0"), T = String(P % 60).padStart(2, "0");
1333
+ return `UTC${x}${_}${T}`;
1334
+ }, m = p(u), $ = p(l);
1335
+ l < u ? (nt(m, r, 17), nt($, n, 17)) : (nt(m, n, 17), nt($, r, 17));
1322
1336
  }, Sn = () => 2147483648, Rn = (t, e) => Math.ceil(t / e) * e, Mn = (t) => {
1323
1337
  var e = At.buffer.byteLength, r = (t - e + 65535) / 65536 | 0;
1324
1338
  try {
@@ -1326,7 +1340,7 @@ async function Xt(a = {}) {
1326
1340
  } catch {
1327
1341
  }
1328
1342
  }, Fn = (t) => {
1329
- var e = G.length;
1343
+ var e = H.length;
1330
1344
  t >>>= 0;
1331
1345
  var r = Sn();
1332
1346
  if (t > r)
@@ -1339,8 +1353,8 @@ async function Xt(a = {}) {
1339
1353
  return !0;
1340
1354
  }
1341
1355
  return !1;
1342
- }, zt = {}, Bn = () => x || "./this.program", lt = () => {
1343
- if (!lt.strings) {
1356
+ }, zt = {}, Bn = () => O || "./this.program", ct = () => {
1357
+ if (!ct.strings) {
1344
1358
  var t = (typeof navigator == "object" && navigator.language || "C").replace("-", "_") + ".UTF-8", e = {
1345
1359
  USER: "web_user",
1346
1360
  LOGNAME: "web_user",
@@ -1355,54 +1369,54 @@ async function Xt(a = {}) {
1355
1369
  var n = [];
1356
1370
  for (var r in e)
1357
1371
  n.push(`${r}=${e[r]}`);
1358
- lt.strings = n;
1372
+ ct.strings = n;
1359
1373
  }
1360
- return lt.strings;
1374
+ return ct.strings;
1361
1375
  }, jn = (t, e) => {
1362
1376
  var r = 0, n = 0;
1363
- for (var o of lt()) {
1377
+ for (var o of ct()) {
1364
1378
  var i = e + r;
1365
1379
  A[t + n >> 2] = i, r += nt(o, i, 1 / 0) + 1, n += 4;
1366
1380
  }
1367
1381
  return 0;
1368
1382
  }, Ln = (t, e) => {
1369
- var r = lt();
1383
+ var r = ct();
1370
1384
  A[t >> 2] = r.length;
1371
1385
  var n = 0;
1372
1386
  for (var o of r)
1373
1387
  n += ye(o) + 1;
1374
1388
  return A[e >> 2] = n, 0;
1375
1389
  }, Un = (t) => 52;
1376
- function kn(t, e, r, n, o) {
1390
+ function Wn(t, e, r, n, o) {
1377
1391
  return 70;
1378
1392
  }
1379
- var Wn = [null, [], []], Vn = (t, e) => {
1380
- var r = Wn[t];
1381
- e === 0 || e === 10 ? ((t === 1 ? at : V)(we(r)), r.length = 0) : r.push(e);
1393
+ var kn = [null, [], []], Vn = (t, e) => {
1394
+ var r = kn[t];
1395
+ e === 0 || e === 10 ? ((t === 1 ? at : G)(ge(r)), r.length = 0) : r.push(e);
1382
1396
  }, Gn = (t, e, r, n) => {
1383
1397
  for (var o = 0, i = 0; i < r; i++) {
1384
1398
  var s = A[e >> 2], u = A[e + 4 >> 2];
1385
1399
  e += 8;
1386
- for (var c = 0; c < u; c++)
1387
- Vn(t, G[s + c]);
1400
+ for (var l = 0; l < u; l++)
1401
+ Vn(t, H[s + l]);
1388
1402
  o += u;
1389
1403
  }
1390
1404
  return A[n >> 2] = o, 0;
1391
1405
  }, Hn = (t) => t;
1392
- if (Ir(), Gr(), d.noExitRuntime && d.noExitRuntime, d.print && (at = d.print), d.printErr && (V = d.printErr), d.wasmBinary && (Y = d.wasmBinary), d.arguments && d.arguments, d.thisProgram && (x = d.thisProgram), d.preInit)
1406
+ if (Ir(), Gr(), d.noExitRuntime && d.noExitRuntime, d.print && (at = d.print), d.printErr && (G = d.printErr), d.wasmBinary && (Z = d.wasmBinary), d.arguments && d.arguments, d.thisProgram && (O = d.thisProgram), d.preInit)
1393
1407
  for (typeof d.preInit == "function" && (d.preInit = [d.preInit]); d.preInit.length > 0; )
1394
1408
  d.preInit.shift()();
1395
- var $e, Q, Nt, Te, y, Ee, _e, Ae, Pe, Oe, xe, De, Ie, At, Se;
1409
+ var $e, q, Nt, Te, y, Ee, _e, Ae, Pe, Oe, xe, De, Ie, At, Se;
1396
1410
  function zn(t) {
1397
- $e = t.ya, Q = d._free = t.za, Nt = d._malloc = t.Ba, Te = t.Ca, y = t.Da, Ee = t.Ea, _e = t.Fa, Ae = t.Ga, Pe = t.Ha, Oe = t.Ia, xe = t.Ja, N.viijii = t.Ka, De = N.iiijj = t.La, N.jiji = t.Ma, Ie = N.jiiii = t.Na, N.iiiiij = t.Oa, N.iiiiijj = t.Pa, N.iiiiiijj = t.Qa, At = t.wa, Se = t.Aa;
1411
+ $e = t.ya, q = d._free = t.za, Nt = d._malloc = t.Ba, Te = t.Ca, y = t.Da, Ee = t.Ea, _e = t.Fa, Ae = t.Ga, Pe = t.Ha, Oe = t.Ia, xe = t.Ja, X.viijii = t.Ka, De = X.iiijj = t.La, X.jiji = t.Ma, Ie = X.jiiii = t.Na, X.iiiiij = t.Oa, X.iiiiijj = t.Pa, X.iiiiiijj = t.Qa, At = t.wa, Se = t.Aa;
1398
1412
  }
1399
1413
  var Nn = {
1400
1414
  s: pr,
1401
1415
  x: mr,
1402
1416
  a: yr,
1403
1417
  j: vr,
1404
- m: gr,
1405
- P: wr,
1418
+ m: wr,
1419
+ P: gr,
1406
1420
  q: br,
1407
1421
  U: Cr,
1408
1422
  d: $r,
@@ -1419,10 +1433,10 @@ async function Xt(a = {}) {
1419
1433
  z: nn,
1420
1434
  t: an,
1421
1435
  sa: sn,
1422
- na: ln,
1436
+ na: cn,
1423
1437
  R: vn,
1424
- G: gn,
1425
- ua: wn,
1438
+ G: wn,
1439
+ ua: gn,
1426
1440
  pa: bn,
1427
1441
  M: An,
1428
1442
  va: Gt,
@@ -1435,10 +1449,10 @@ async function Xt(a = {}) {
1435
1449
  da: jn,
1436
1450
  ea: Ln,
1437
1451
  ga: Un,
1438
- _: kn,
1452
+ _: Wn,
1439
1453
  V: Gn,
1440
1454
  J: ya,
1441
- B: ga,
1455
+ B: wa,
1442
1456
  Y: ta,
1443
1457
  T: Ta,
1444
1458
  r: fa,
@@ -1451,7 +1465,7 @@ async function Xt(a = {}) {
1451
1465
  i: ia,
1452
1466
  p: ua,
1453
1467
  O: pa,
1454
- w: la,
1468
+ w: ca,
1455
1469
  E: da,
1456
1470
  K: ha,
1457
1471
  I: Ea,
@@ -1464,11 +1478,11 @@ async function Xt(a = {}) {
1464
1478
  N: $a,
1465
1479
  k: Xn,
1466
1480
  ka: va,
1467
- o: ca,
1481
+ o: la,
1468
1482
  y: na,
1469
1483
  u: sa,
1470
1484
  Q: oa,
1471
- v: wa,
1485
+ v: ga,
1472
1486
  n: ra,
1473
1487
  H: _a,
1474
1488
  la: aa,
@@ -1477,297 +1491,297 @@ async function Xt(a = {}) {
1477
1491
  function Qn(t, e) {
1478
1492
  var r = g();
1479
1493
  try {
1480
- w(t)(e);
1494
+ b(t)(e);
1481
1495
  } catch (n) {
1482
- if (v(r), n !== n + 0) throw n;
1496
+ if (w(r), n !== n + 0) throw n;
1483
1497
  y(1, 0);
1484
1498
  }
1485
1499
  }
1486
1500
  function Xn(t, e, r, n, o) {
1487
1501
  var i = g();
1488
1502
  try {
1489
- w(t)(e, r, n, o);
1503
+ b(t)(e, r, n, o);
1490
1504
  } catch (s) {
1491
- if (v(i), s !== s + 0) throw s;
1505
+ if (w(i), s !== s + 0) throw s;
1492
1506
  y(1, 0);
1493
1507
  }
1494
1508
  }
1495
1509
  function qn(t, e) {
1496
1510
  var r = g();
1497
1511
  try {
1498
- return w(t)(e);
1512
+ return b(t)(e);
1499
1513
  } catch (n) {
1500
- if (v(r), n !== n + 0) throw n;
1514
+ if (w(r), n !== n + 0) throw n;
1501
1515
  y(1, 0);
1502
1516
  }
1503
1517
  }
1504
1518
  function Yn(t, e, r) {
1505
1519
  var n = g();
1506
1520
  try {
1507
- w(t)(e, r);
1521
+ b(t)(e, r);
1508
1522
  } catch (o) {
1509
- if (v(n), o !== o + 0) throw o;
1523
+ if (w(n), o !== o + 0) throw o;
1510
1524
  y(1, 0);
1511
1525
  }
1512
1526
  }
1513
1527
  function Zn(t, e, r) {
1514
1528
  var n = g();
1515
1529
  try {
1516
- return w(t)(e, r);
1530
+ return b(t)(e, r);
1517
1531
  } catch (o) {
1518
- if (v(n), o !== o + 0) throw o;
1532
+ if (w(n), o !== o + 0) throw o;
1519
1533
  y(1, 0);
1520
1534
  }
1521
1535
  }
1522
1536
  function Jn(t, e, r, n) {
1523
1537
  var o = g();
1524
1538
  try {
1525
- w(t)(e, r, n);
1539
+ b(t)(e, r, n);
1526
1540
  } catch (i) {
1527
- if (v(o), i !== i + 0) throw i;
1541
+ if (w(o), i !== i + 0) throw i;
1528
1542
  y(1, 0);
1529
1543
  }
1530
1544
  }
1531
1545
  function Kn(t, e, r, n) {
1532
1546
  var o = g();
1533
1547
  try {
1534
- return w(t)(e, r, n);
1548
+ return b(t)(e, r, n);
1535
1549
  } catch (i) {
1536
- if (v(o), i !== i + 0) throw i;
1550
+ if (w(o), i !== i + 0) throw i;
1537
1551
  y(1, 0);
1538
1552
  }
1539
1553
  }
1540
1554
  function ta(t, e, r, n, o, i) {
1541
1555
  var s = g();
1542
1556
  try {
1543
- return w(t)(e, r, n, o, i);
1557
+ return b(t)(e, r, n, o, i);
1544
1558
  } catch (u) {
1545
- if (v(s), u !== u + 0) throw u;
1559
+ if (w(s), u !== u + 0) throw u;
1546
1560
  y(1, 0);
1547
1561
  }
1548
1562
  }
1549
1563
  function ea(t) {
1550
1564
  var e = g();
1551
1565
  try {
1552
- w(t)();
1566
+ b(t)();
1553
1567
  } catch (r) {
1554
- if (v(e), r !== r + 0) throw r;
1568
+ if (w(e), r !== r + 0) throw r;
1555
1569
  y(1, 0);
1556
1570
  }
1557
1571
  }
1558
- function ra(t, e, r, n, o, i, s, u, c, f, p) {
1572
+ function ra(t, e, r, n, o, i, s, u, l, f, p) {
1559
1573
  var m = g();
1560
1574
  try {
1561
- w(t)(e, r, n, o, i, s, u, c, f, p);
1575
+ b(t)(e, r, n, o, i, s, u, l, f, p);
1562
1576
  } catch ($) {
1563
- if (v(m), $ !== $ + 0) throw $;
1577
+ if (w(m), $ !== $ + 0) throw $;
1564
1578
  y(1, 0);
1565
1579
  }
1566
1580
  }
1567
1581
  function na(t, e, r, n, o, i, s) {
1568
1582
  var u = g();
1569
1583
  try {
1570
- w(t)(e, r, n, o, i, s);
1571
- } catch (c) {
1572
- if (v(u), c !== c + 0) throw c;
1584
+ b(t)(e, r, n, o, i, s);
1585
+ } catch (l) {
1586
+ if (w(u), l !== l + 0) throw l;
1573
1587
  y(1, 0);
1574
1588
  }
1575
1589
  }
1576
- function aa(t, e, r, n, o, i, s, u, c, f, p, m, $, E, O, P, _) {
1590
+ function aa(t, e, r, n, o, i, s, u, l, f, p, m, $, E, x, P, _) {
1577
1591
  var T = g();
1578
1592
  try {
1579
- w(t)(e, r, n, o, i, s, u, c, f, p, m, $, E, O, P, _);
1593
+ b(t)(e, r, n, o, i, s, u, l, f, p, m, $, E, x, P, _);
1580
1594
  } catch (j) {
1581
- if (v(T), j !== j + 0) throw j;
1595
+ if (w(T), j !== j + 0) throw j;
1582
1596
  y(1, 0);
1583
1597
  }
1584
1598
  }
1585
- function oa(t, e, r, n, o, i, s, u, c) {
1599
+ function oa(t, e, r, n, o, i, s, u, l) {
1586
1600
  var f = g();
1587
1601
  try {
1588
- w(t)(e, r, n, o, i, s, u, c);
1602
+ b(t)(e, r, n, o, i, s, u, l);
1589
1603
  } catch (p) {
1590
- if (v(f), p !== p + 0) throw p;
1604
+ if (w(f), p !== p + 0) throw p;
1591
1605
  y(1, 0);
1592
1606
  }
1593
1607
  }
1594
1608
  function ia(t, e, r, n, o) {
1595
1609
  var i = g();
1596
1610
  try {
1597
- return w(t)(e, r, n, o);
1611
+ return b(t)(e, r, n, o);
1598
1612
  } catch (s) {
1599
- if (v(i), s !== s + 0) throw s;
1613
+ if (w(i), s !== s + 0) throw s;
1600
1614
  y(1, 0);
1601
1615
  }
1602
1616
  }
1603
1617
  function sa(t, e, r, n, o, i, s, u) {
1604
- var c = g();
1618
+ var l = g();
1605
1619
  try {
1606
- w(t)(e, r, n, o, i, s, u);
1620
+ b(t)(e, r, n, o, i, s, u);
1607
1621
  } catch (f) {
1608
- if (v(c), f !== f + 0) throw f;
1622
+ if (w(l), f !== f + 0) throw f;
1609
1623
  y(1, 0);
1610
1624
  }
1611
1625
  }
1612
1626
  function ua(t, e, r, n, o, i) {
1613
1627
  var s = g();
1614
1628
  try {
1615
- return w(t)(e, r, n, o, i);
1629
+ return b(t)(e, r, n, o, i);
1616
1630
  } catch (u) {
1617
- if (v(s), u !== u + 0) throw u;
1631
+ if (w(s), u !== u + 0) throw u;
1618
1632
  y(1, 0);
1619
1633
  }
1620
1634
  }
1621
- function ca(t, e, r, n, o, i) {
1635
+ function la(t, e, r, n, o, i) {
1622
1636
  var s = g();
1623
1637
  try {
1624
- w(t)(e, r, n, o, i);
1638
+ b(t)(e, r, n, o, i);
1625
1639
  } catch (u) {
1626
- if (v(s), u !== u + 0) throw u;
1640
+ if (w(s), u !== u + 0) throw u;
1627
1641
  y(1, 0);
1628
1642
  }
1629
1643
  }
1630
- function la(t, e, r, n, o, i, s) {
1644
+ function ca(t, e, r, n, o, i, s) {
1631
1645
  var u = g();
1632
1646
  try {
1633
- return w(t)(e, r, n, o, i, s);
1634
- } catch (c) {
1635
- if (v(u), c !== c + 0) throw c;
1647
+ return b(t)(e, r, n, o, i, s);
1648
+ } catch (l) {
1649
+ if (w(u), l !== l + 0) throw l;
1636
1650
  y(1, 0);
1637
1651
  }
1638
1652
  }
1639
1653
  function da(t, e, r, n, o, i, s, u) {
1640
- var c = g();
1654
+ var l = g();
1641
1655
  try {
1642
- return w(t)(e, r, n, o, i, s, u);
1656
+ return b(t)(e, r, n, o, i, s, u);
1643
1657
  } catch (f) {
1644
- if (v(c), f !== f + 0) throw f;
1658
+ if (w(l), f !== f + 0) throw f;
1645
1659
  y(1, 0);
1646
1660
  }
1647
1661
  }
1648
1662
  function fa(t) {
1649
1663
  var e = g();
1650
1664
  try {
1651
- return w(t)();
1665
+ return b(t)();
1652
1666
  } catch (r) {
1653
- if (v(e), r !== r + 0) throw r;
1667
+ if (w(e), r !== r + 0) throw r;
1654
1668
  y(1, 0);
1655
1669
  }
1656
1670
  }
1657
- function ha(t, e, r, n, o, i, s, u, c) {
1671
+ function ha(t, e, r, n, o, i, s, u, l) {
1658
1672
  var f = g();
1659
1673
  try {
1660
- return w(t)(e, r, n, o, i, s, u, c);
1674
+ return b(t)(e, r, n, o, i, s, u, l);
1661
1675
  } catch (p) {
1662
- if (v(f), p !== p + 0) throw p;
1676
+ if (w(f), p !== p + 0) throw p;
1663
1677
  y(1, 0);
1664
1678
  }
1665
1679
  }
1666
1680
  function pa(t, e, r, n, o, i, s) {
1667
1681
  var u = g();
1668
1682
  try {
1669
- return w(t)(e, r, n, o, i, s);
1670
- } catch (c) {
1671
- if (v(u), c !== c + 0) throw c;
1683
+ return b(t)(e, r, n, o, i, s);
1684
+ } catch (l) {
1685
+ if (w(u), l !== l + 0) throw l;
1672
1686
  y(1, 0);
1673
1687
  }
1674
1688
  }
1675
1689
  function ma(t, e, r, n) {
1676
1690
  var o = g();
1677
1691
  try {
1678
- return w(t)(e, r, n);
1692
+ return b(t)(e, r, n);
1679
1693
  } catch (i) {
1680
- if (v(o), i !== i + 0) throw i;
1694
+ if (w(o), i !== i + 0) throw i;
1681
1695
  y(1, 0);
1682
1696
  }
1683
1697
  }
1684
1698
  function ya(t, e, r, n) {
1685
1699
  var o = g();
1686
1700
  try {
1687
- return w(t)(e, r, n);
1701
+ return b(t)(e, r, n);
1688
1702
  } catch (i) {
1689
- if (v(o), i !== i + 0) throw i;
1703
+ if (w(o), i !== i + 0) throw i;
1690
1704
  y(1, 0);
1691
1705
  }
1692
1706
  }
1693
1707
  function va(t, e, r, n, o, i, s, u) {
1694
- var c = g();
1708
+ var l = g();
1695
1709
  try {
1696
- w(t)(e, r, n, o, i, s, u);
1710
+ b(t)(e, r, n, o, i, s, u);
1697
1711
  } catch (f) {
1698
- if (v(c), f !== f + 0) throw f;
1712
+ if (w(l), f !== f + 0) throw f;
1699
1713
  y(1, 0);
1700
1714
  }
1701
1715
  }
1702
- function ga(t, e, r, n, o, i) {
1716
+ function wa(t, e, r, n, o, i) {
1703
1717
  var s = g();
1704
1718
  try {
1705
- return w(t)(e, r, n, o, i);
1719
+ return b(t)(e, r, n, o, i);
1706
1720
  } catch (u) {
1707
- if (v(s), u !== u + 0) throw u;
1721
+ if (w(s), u !== u + 0) throw u;
1708
1722
  y(1, 0);
1709
1723
  }
1710
1724
  }
1711
- function wa(t, e, r, n, o, i, s, u, c, f) {
1725
+ function ga(t, e, r, n, o, i, s, u, l, f) {
1712
1726
  var p = g();
1713
1727
  try {
1714
- w(t)(e, r, n, o, i, s, u, c, f);
1728
+ b(t)(e, r, n, o, i, s, u, l, f);
1715
1729
  } catch (m) {
1716
- if (v(p), m !== m + 0) throw m;
1730
+ if (w(p), m !== m + 0) throw m;
1717
1731
  y(1, 0);
1718
1732
  }
1719
1733
  }
1720
1734
  function ba(t, e, r) {
1721
1735
  var n = g();
1722
1736
  try {
1723
- return w(t)(e, r);
1737
+ return b(t)(e, r);
1724
1738
  } catch (o) {
1725
- if (v(n), o !== o + 0) throw o;
1739
+ if (w(n), o !== o + 0) throw o;
1726
1740
  y(1, 0);
1727
1741
  }
1728
1742
  }
1729
1743
  function Ca(t, e, r, n, o) {
1730
1744
  var i = g();
1731
1745
  try {
1732
- return w(t)(e, r, n, o);
1746
+ return b(t)(e, r, n, o);
1733
1747
  } catch (s) {
1734
- if (v(i), s !== s + 0) throw s;
1748
+ if (w(i), s !== s + 0) throw s;
1735
1749
  y(1, 0);
1736
1750
  }
1737
1751
  }
1738
1752
  function $a(t, e, r, n, o, i, s) {
1739
1753
  var u = g();
1740
1754
  try {
1741
- w(t)(e, r, n, o, i, s);
1742
- } catch (c) {
1743
- if (v(u), c !== c + 0) throw c;
1755
+ b(t)(e, r, n, o, i, s);
1756
+ } catch (l) {
1757
+ if (w(u), l !== l + 0) throw l;
1744
1758
  y(1, 0);
1745
1759
  }
1746
1760
  }
1747
1761
  function Ta(t, e, r, n) {
1748
1762
  var o = g();
1749
1763
  try {
1750
- return w(t)(e, r, n);
1764
+ return b(t)(e, r, n);
1751
1765
  } catch (i) {
1752
- if (v(o), i !== i + 0) throw i;
1766
+ if (w(o), i !== i + 0) throw i;
1753
1767
  y(1, 0);
1754
1768
  }
1755
1769
  }
1756
- function Ea(t, e, r, n, o, i, s, u, c, f, p, m) {
1770
+ function Ea(t, e, r, n, o, i, s, u, l, f, p, m) {
1757
1771
  var $ = g();
1758
1772
  try {
1759
- return w(t)(e, r, n, o, i, s, u, c, f, p, m);
1773
+ return b(t)(e, r, n, o, i, s, u, l, f, p, m);
1760
1774
  } catch (E) {
1761
- if (v($), E !== E + 0) throw E;
1775
+ if (w($), E !== E + 0) throw E;
1762
1776
  y(1, 0);
1763
1777
  }
1764
1778
  }
1765
- function _a(t, e, r, n, o, i, s, u, c, f, p, m, $, E, O, P) {
1779
+ function _a(t, e, r, n, o, i, s, u, l, f, p, m, $, E, x, P) {
1766
1780
  var _ = g();
1767
1781
  try {
1768
- w(t)(e, r, n, o, i, s, u, c, f, p, m, $, E, O, P);
1782
+ b(t)(e, r, n, o, i, s, u, l, f, p, m, $, E, x, P);
1769
1783
  } catch (T) {
1770
- if (v(_), T !== T + 0) throw T;
1784
+ if (w(_), T !== T + 0) throw T;
1771
1785
  y(1, 0);
1772
1786
  }
1773
1787
  }
@@ -1775,8 +1789,8 @@ async function Xt(a = {}) {
1775
1789
  var u = g();
1776
1790
  try {
1777
1791
  return De(t, e, r, n, o, i, s);
1778
- } catch (c) {
1779
- if (v(u), c !== c + 0) throw c;
1792
+ } catch (l) {
1793
+ if (w(u), l !== l + 0) throw l;
1780
1794
  y(1, 0);
1781
1795
  }
1782
1796
  }
@@ -1785,7 +1799,7 @@ async function Xt(a = {}) {
1785
1799
  try {
1786
1800
  return Ie(t, e, r, n, o);
1787
1801
  } catch (s) {
1788
- if (v(i), s !== s + 0) throw s;
1802
+ if (w(i), s !== s + 0) throw s;
1789
1803
  y(1, 0);
1790
1804
  }
1791
1805
  }
@@ -1800,27 +1814,27 @@ async function Xt(a = {}) {
1800
1814
  }, 1)) : t();
1801
1815
  }
1802
1816
  var dt;
1803
- return dt = await dr(), Oa(), Kt ? l = d : l = new Promise((t, e) => {
1817
+ return dt = await dr(), Oa(), Kt ? c = d : c = new Promise((t, e) => {
1804
1818
  qt = t, Yt = e;
1805
- }), l;
1819
+ }), c;
1806
1820
  }
1807
1821
  function Ne(a) {
1808
1822
  return ze(Xt, a);
1809
1823
  }
1810
- function Eo() {
1824
+ function _o() {
1811
1825
  return eo(Xt);
1812
1826
  }
1813
- function _o(a) {
1827
+ function Ao(a) {
1814
1828
  Ne({
1815
1829
  overrides: a,
1816
1830
  equalityFn: Object.is,
1817
1831
  fireImmediately: !1
1818
1832
  });
1819
1833
  }
1820
- async function no(a, l) {
1821
- return ro(Xt, a, l);
1834
+ async function ao(a, c) {
1835
+ return no(Xt, a, c);
1822
1836
  }
1823
- const Ao = "c25c09c3a8ec3118f96d224491c9a20cc6ad4302b70eb0e4b941772c2982a920", Qe = [
1837
+ const Po = "8f2a99b0c9fdf8123d0152ba4761fc7dbf58c7de7e4937d1e134aae17e2ad795", Qe = [
1824
1838
  ["aztec", "Aztec"],
1825
1839
  ["aztec_code", "AztecCode"],
1826
1840
  ["aztec_rune", "AztecRune"],
@@ -1864,16 +1878,16 @@ const Ao = "c25c09c3a8ec3118f96d224491c9a20cc6ad4302b70eb0e4b941772c2982a920", Q
1864
1878
  ["retail_codes", "AllRetail"],
1865
1879
  ["industrial_codes", "AllIndustrial"],
1866
1880
  ["any", "All"]
1867
- ], ao = [...Qe, ["unknown"]].map((a) => a[0]), Qt = new Map(
1881
+ ], oo = [...Qe, ["unknown"]].map((a) => a[0]), Qt = new Map(
1868
1882
  Qe
1869
1883
  );
1870
- function oo(a) {
1871
- for (const [l, h] of Qt)
1884
+ function io(a) {
1885
+ for (const [c, h] of Qt)
1872
1886
  if (a === h)
1873
- return l;
1887
+ return c;
1874
1888
  return "unknown";
1875
1889
  }
1876
- function io(a) {
1890
+ function so(a) {
1877
1891
  if (Xe(a))
1878
1892
  return {
1879
1893
  width: a.naturalWidth,
@@ -1914,33 +1928,33 @@ function io(a) {
1914
1928
  );
1915
1929
  }
1916
1930
  function Xe(a) {
1917
- var l, h;
1931
+ var c, h;
1918
1932
  try {
1919
- return a instanceof ((h = (l = a == null ? void 0 : a.ownerDocument) == null ? void 0 : l.defaultView) == null ? void 0 : h.HTMLImageElement);
1933
+ return a instanceof ((h = (c = a == null ? void 0 : a.ownerDocument) == null ? void 0 : c.defaultView) == null ? void 0 : h.HTMLImageElement);
1920
1934
  } catch {
1921
1935
  return !1;
1922
1936
  }
1923
1937
  }
1924
1938
  function qe(a) {
1925
- var l, h;
1939
+ var c, h;
1926
1940
  try {
1927
- return a instanceof ((h = (l = a == null ? void 0 : a.ownerDocument) == null ? void 0 : l.defaultView) == null ? void 0 : h.SVGImageElement);
1941
+ return a instanceof ((h = (c = a == null ? void 0 : a.ownerDocument) == null ? void 0 : c.defaultView) == null ? void 0 : h.SVGImageElement);
1928
1942
  } catch {
1929
1943
  return !1;
1930
1944
  }
1931
1945
  }
1932
1946
  function Ye(a) {
1933
- var l, h;
1947
+ var c, h;
1934
1948
  try {
1935
- return a instanceof ((h = (l = a == null ? void 0 : a.ownerDocument) == null ? void 0 : l.defaultView) == null ? void 0 : h.HTMLVideoElement);
1949
+ return a instanceof ((h = (c = a == null ? void 0 : a.ownerDocument) == null ? void 0 : c.defaultView) == null ? void 0 : h.HTMLVideoElement);
1936
1950
  } catch {
1937
1951
  return !1;
1938
1952
  }
1939
1953
  }
1940
1954
  function Ze(a) {
1941
- var l, h;
1955
+ var c, h;
1942
1956
  try {
1943
- return a instanceof ((h = (l = a == null ? void 0 : a.ownerDocument) == null ? void 0 : l.defaultView) == null ? void 0 : h.HTMLCanvasElement);
1957
+ return a instanceof ((h = (c = a == null ? void 0 : a.ownerDocument) == null ? void 0 : c.defaultView) == null ? void 0 : h.HTMLCanvasElement);
1944
1958
  } catch {
1945
1959
  return !1;
1946
1960
  }
@@ -1966,43 +1980,43 @@ function tr(a) {
1966
1980
  return !1;
1967
1981
  }
1968
1982
  }
1969
- function so(a) {
1983
+ function uo(a) {
1970
1984
  try {
1971
1985
  return a instanceof Blob || Object.prototype.toString.call(a) === "[object Blob]";
1972
1986
  } catch {
1973
1987
  return !1;
1974
1988
  }
1975
1989
  }
1976
- function uo(a) {
1990
+ function lo(a) {
1977
1991
  try {
1978
1992
  return a instanceof ImageData || Object.prototype.toString.call(a) === "[object ImageData]";
1979
1993
  } catch {
1980
1994
  return !1;
1981
1995
  }
1982
1996
  }
1983
- function co(a, l) {
1997
+ function co(a, c) {
1984
1998
  try {
1985
- const h = new OffscreenCanvas(a, l);
1999
+ const h = new OffscreenCanvas(a, c);
1986
2000
  if (h.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
1987
2001
  return h;
1988
2002
  throw void 0;
1989
2003
  } catch {
1990
2004
  const h = document.createElement("canvas");
1991
- return h.width = a, h.height = l, h;
2005
+ return h.width = a, h.height = c, h;
1992
2006
  }
1993
2007
  }
1994
2008
  async function er(a) {
1995
- if (Xe(a) && !await po(a))
2009
+ if (Xe(a) && !await mo(a))
1996
2010
  throw new DOMException(
1997
2011
  "Failed to load or decode HTMLImageElement.",
1998
2012
  "InvalidStateError"
1999
2013
  );
2000
- if (qe(a) && !await mo(a))
2014
+ if (qe(a) && !await yo(a))
2001
2015
  throw new DOMException(
2002
2016
  "Failed to load or decode SVGImageElement.",
2003
2017
  "InvalidStateError"
2004
2018
  );
2005
- if (tr(a) && yo(a))
2019
+ if (tr(a) && vo(a))
2006
2020
  throw new DOMException("VideoFrame is closed.", "InvalidStateError");
2007
2021
  if (Ye(a) && (a.readyState === 0 || a.readyState === 1))
2008
2022
  throw new DOMException("Invalid element or state.", "InvalidStateError");
@@ -2011,28 +2025,28 @@ async function er(a) {
2011
2025
  "The image source is detached.",
2012
2026
  "InvalidStateError"
2013
2027
  );
2014
- const { width: l, height: h } = io(a);
2015
- if (l === 0 || h === 0)
2028
+ const { width: c, height: h } = so(a);
2029
+ if (c === 0 || h === 0)
2016
2030
  return null;
2017
- const d = co(l, h).getContext("2d");
2031
+ const d = co(c, h).getContext("2d");
2018
2032
  d.drawImage(a, 0, 0);
2019
2033
  try {
2020
- return d.getImageData(0, 0, l, h);
2034
+ return d.getImageData(0, 0, c, h);
2021
2035
  } catch {
2022
2036
  throw new DOMException("Source would taint origin.", "SecurityError");
2023
2037
  }
2024
2038
  }
2025
- async function lo(a) {
2026
- let l;
2039
+ async function fo(a) {
2040
+ let c;
2027
2041
  try {
2028
- l = await createImageBitmap(a);
2042
+ c = await createImageBitmap(a);
2029
2043
  } catch {
2030
2044
  try {
2031
2045
  if (globalThis.Image) {
2032
- l = new Image();
2046
+ c = new Image();
2033
2047
  let d = "";
2034
2048
  try {
2035
- d = URL.createObjectURL(a), l.src = d, await l.decode();
2049
+ d = URL.createObjectURL(a), c.src = d, await c.decode();
2036
2050
  } finally {
2037
2051
  URL.revokeObjectURL(d);
2038
2052
  }
@@ -2045,143 +2059,143 @@ async function lo(a) {
2045
2059
  );
2046
2060
  }
2047
2061
  }
2048
- return await er(l);
2062
+ return await er(c);
2049
2063
  }
2050
- function fo(a) {
2051
- const { width: l, height: h } = a;
2052
- if (l === 0 || h === 0)
2064
+ function ho(a) {
2065
+ const { width: c, height: h } = a;
2066
+ if (c === 0 || h === 0)
2053
2067
  return null;
2054
- const b = a.getContext("2d");
2068
+ const v = a.getContext("2d");
2055
2069
  try {
2056
- return b.getImageData(0, 0, l, h);
2070
+ return v.getImageData(0, 0, c, h);
2057
2071
  } catch {
2058
2072
  throw new DOMException("Source would taint origin.", "SecurityError");
2059
2073
  }
2060
2074
  }
2061
- async function ho(a) {
2062
- if (so(a))
2063
- return await lo(a);
2064
- if (uo(a)) {
2065
- if (vo(a))
2075
+ async function po(a) {
2076
+ if (uo(a))
2077
+ return await fo(a);
2078
+ if (lo(a)) {
2079
+ if (wo(a))
2066
2080
  throw new DOMException(
2067
2081
  "The image data has been detached.",
2068
2082
  "InvalidStateError"
2069
2083
  );
2070
2084
  return a;
2071
2085
  }
2072
- return Ze(a) || Ke(a) ? fo(a) : await er(a);
2086
+ return Ze(a) || Ke(a) ? ho(a) : await er(a);
2073
2087
  }
2074
- async function po(a) {
2088
+ async function mo(a) {
2075
2089
  try {
2076
2090
  return await a.decode(), !0;
2077
2091
  } catch {
2078
2092
  return !1;
2079
2093
  }
2080
2094
  }
2081
- async function mo(a) {
2082
- var l;
2095
+ async function yo(a) {
2096
+ var c;
2083
2097
  try {
2084
- return await ((l = a.decode) == null ? void 0 : l.call(a)), !0;
2098
+ return await ((c = a.decode) == null ? void 0 : c.call(a)), !0;
2085
2099
  } catch {
2086
2100
  return !1;
2087
2101
  }
2088
2102
  }
2089
- function yo(a) {
2103
+ function vo(a) {
2090
2104
  return a.format === null;
2091
2105
  }
2092
- function vo(a) {
2106
+ function wo(a) {
2093
2107
  return a.data.buffer.byteLength === 0;
2094
2108
  }
2095
2109
  function go(a) {
2096
2110
  return a.width === 0 && a.height === 0;
2097
2111
  }
2098
- function He(a, l) {
2099
- return wo(a) ? new DOMException(`${l}: ${a.message}`, a.name) : bo(a) ? new a.constructor(`${l}: ${a.message}`) : new Error(`${l}: ${a}`);
2112
+ function He(a, c) {
2113
+ return bo(a) ? new DOMException(`${c}: ${a.message}`, a.name) : Co(a) ? new a.constructor(`${c}: ${a.message}`) : new Error(`${c}: ${a}`);
2100
2114
  }
2101
- function wo(a) {
2115
+ function bo(a) {
2102
2116
  return a instanceof DOMException || Object.prototype.toString.call(a) === "[object DOMException]";
2103
2117
  }
2104
- function bo(a) {
2118
+ function Co(a) {
2105
2119
  return a instanceof Error || Object.prototype.toString.call(a) === "[object Error]";
2106
2120
  }
2107
2121
  var ft;
2108
- class Po {
2109
- constructor(l = {}) {
2110
- ke(this, ft);
2122
+ class Oo {
2123
+ constructor(c = {}) {
2124
+ We(this, ft);
2111
2125
  var h;
2112
2126
  try {
2113
- const b = (h = l == null ? void 0 : l.formats) == null ? void 0 : h.filter(
2127
+ const v = (h = c == null ? void 0 : c.formats) == null ? void 0 : h.filter(
2114
2128
  (d) => d !== "unknown"
2115
2129
  );
2116
- if ((b == null ? void 0 : b.length) === 0)
2130
+ if ((v == null ? void 0 : v.length) === 0)
2117
2131
  throw new TypeError("Hint option provided, but is empty.");
2118
- for (const d of b != null ? b : [])
2132
+ for (const d of v != null ? v : [])
2119
2133
  if (!Qt.has(d))
2120
2134
  throw new TypeError(
2121
2135
  `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${d}' is not a valid enum value of type BarcodeFormat.`
2122
2136
  );
2123
- We(this, ft, b != null ? b : []), Ne({ fireImmediately: !0 }).catch(() => {
2137
+ ke(this, ft, v != null ? v : []), Ne({ fireImmediately: !0 }).catch(() => {
2124
2138
  });
2125
- } catch (b) {
2139
+ } catch (v) {
2126
2140
  throw He(
2127
- b,
2141
+ v,
2128
2142
  "Failed to construct 'BarcodeDetector'"
2129
2143
  );
2130
2144
  }
2131
2145
  }
2132
2146
  static async getSupportedFormats() {
2133
- return ao.filter((l) => l !== "unknown");
2147
+ return oo.filter((c) => c !== "unknown");
2134
2148
  }
2135
- async detect(l) {
2149
+ async detect(c) {
2136
2150
  try {
2137
- const h = await ho(l);
2151
+ const h = await po(c);
2138
2152
  if (h === null)
2139
2153
  return [];
2140
- let b;
2154
+ let v;
2141
2155
  const d = {
2142
2156
  textMode: "Plain",
2143
2157
  formats: Ue(this, ft).map((D) => Qt.get(D))
2144
2158
  };
2145
2159
  try {
2146
- b = await no(h, d);
2160
+ v = await ao(h, d);
2147
2161
  } catch (D) {
2148
2162
  throw console.error(D), new DOMException(
2149
2163
  "Barcode detection service unavailable.",
2150
2164
  "NotSupportedError"
2151
2165
  );
2152
2166
  }
2153
- return b.map((D) => {
2167
+ return v.map((D) => {
2154
2168
  const {
2155
2169
  topLeft: { x: I, y: S },
2156
- topRight: { x, y: R },
2157
- bottomLeft: { x: W, y: X },
2158
- bottomRight: { x: et, y: q }
2159
- } = D.position, at = Math.min(I, x, W, et), V = Math.min(S, R, X, q), Y = Math.max(I, x, W, et), ht = Math.max(S, R, X, q);
2170
+ topRight: { x: O, y: R },
2171
+ bottomLeft: { x: k, y: Q },
2172
+ bottomRight: { x: V, y: Y }
2173
+ } = D.position, at = Math.min(I, O, k, V), G = Math.min(S, R, Q, Y), Z = Math.max(I, O, k, V), ht = Math.max(S, R, Q, Y);
2160
2174
  return {
2161
2175
  boundingBox: new DOMRectReadOnly(
2162
2176
  at,
2163
- V,
2164
- Y - at,
2165
- ht - V
2177
+ G,
2178
+ Z - at,
2179
+ ht - G
2166
2180
  ),
2167
2181
  rawValue: D.text,
2168
- format: oo(D.format),
2182
+ format: io(D.format),
2169
2183
  cornerPoints: [
2170
2184
  {
2171
2185
  x: I,
2172
2186
  y: S
2173
2187
  },
2174
2188
  {
2175
- x,
2189
+ x: O,
2176
2190
  y: R
2177
2191
  },
2178
2192
  {
2179
- x: et,
2180
- y: q
2193
+ x: V,
2194
+ y: Y
2181
2195
  },
2182
2196
  {
2183
- x: W,
2184
- y: X
2197
+ x: k,
2198
+ y: Q
2185
2199
  }
2186
2200
  ]
2187
2201
  };
@@ -2196,11 +2210,11 @@ class Po {
2196
2210
  }
2197
2211
  ft = new WeakMap();
2198
2212
  export {
2199
- Po as BarcodeDetector,
2200
- To as ZXING_CPP_COMMIT,
2201
- Ao as ZXING_WASM_SHA256,
2202
- $o as ZXING_WASM_VERSION,
2213
+ Oo as BarcodeDetector,
2214
+ Eo as ZXING_CPP_COMMIT,
2215
+ Po as ZXING_WASM_SHA256,
2216
+ To as ZXING_WASM_VERSION,
2203
2217
  Ne as prepareZXingModule,
2204
- Eo as purgeZXingModule,
2205
- _o as setZXingModuleOverrides
2218
+ _o as purgeZXingModule,
2219
+ Ao as setZXingModuleOverrides
2206
2220
  };