bry-biometric-collector 3.3.0-RC12 → 3.3.1-RC02

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.
Files changed (22) hide show
  1. package/README.md +6 -6
  2. package/dist/{CaptureBar_a4c50c4b_3.3.0-RC12.js → CaptureBar_a0040627_3.3.1-RC02.js} +1 -1
  3. package/dist/{DocumentCollector_fb098cab_3.3.0-RC12.js → DocumentCollector_3f64334d_3.3.1-RC02.js} +171 -169
  4. package/dist/{FaceCollector_5bbbd0a5_3.3.0-RC12.js → FaceCollector_78ffb33c_3.3.1-RC02.js} +679 -679
  5. package/dist/{FaceOval_9b699823_3.3.0-RC12.js → FaceOval_80c9405a_3.3.1-RC02.js} +2 -2
  6. package/dist/{StreamCollector_092dcb0f_3.3.0-RC12.js → StreamCollector_6221c7b3_3.3.1-RC02.js} +66 -66
  7. package/dist/{ValidationAlert_966df4ee_3.3.0-RC12.js → ValidationAlert_254410bb_3.3.1-RC02.js} +1 -1
  8. package/dist/{___vite-browser-external_commonjs-proxy_3838da21_3.3.0-RC12.js → ___vite-browser-external_commonjs-proxy_64cd23d2_3.3.1-RC02.js} +41 -41
  9. package/dist/bry-biometric-collector-main.js +2 -2
  10. package/dist/{fingersApi_6cb94a7e_3.3.0-RC12.js → fingersApi_6b2ea376_3.3.1-RC02.js} +2 -2
  11. package/dist/index.js +2 -2
  12. package/dist/{index_0a9585c5_3.3.0-RC12.js → index_00f4ece1_3.3.1-RC02.js} +3 -3
  13. package/dist/{index_9497ac18_3.3.0-RC12.js → index_ed18e742_3.3.1-RC02.js} +3 -3
  14. package/dist/{main_ca1065ab_3.3.0-RC12.js → main_a1df8135_3.3.1-RC02.js} +6999 -6521
  15. package/dist/style.css +1 -1
  16. package/package.json +1 -1
  17. /package/dist/{en-us_c02e99cd_3.3.0-RC12.js → en-us_c02e99cd_3.3.1-RC02.js} +0 -0
  18. /package/dist/{es-cl_6f3eda53_3.3.0-RC12.js → es-cl_6f3eda53_3.3.1-RC02.js} +0 -0
  19. /package/dist/{face_api_0e3ce8c8_3.3.0-RC12.js → face_api_0e3ce8c8_3.3.1-RC02.js} +0 -0
  20. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC12.js → index-idlf-detector_39cfdffa_3.3.1-RC02.js} +0 -0
  21. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC12.js → index-idlf-detector_a819b3c8_3.3.1-RC02.js} +0 -0
  22. /package/dist/{pt-br_e7d46668_3.3.0-RC12.js → pt-br_e7d46668_3.3.1-RC02.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bk as se, E as Y, G as f, b6 as ne, bl as zt, X as w, H as S, I as M, bm as q, bn as yi, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Te, a2 as L, a3 as Oe, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as ve, Q as G, T as Ie, a8 as Di, a9 as we, ab as _i, aa as ue, ac as Ce, a5 as Je, ad as xe, ae as jt, ah as ye, ak as Ke, al as pi, am as Rt, an as Me, $ as Ai, ag as qe, ap as Wt, as as $e, R as Ti, ax as Oi, aA as Ni, f as Et, aC as ki, aF as et, aG as re, m as zi, aH as tt, aU as St, e as De, l as _e, aV as Zt, aW as it, aX as ji, aL as at, bo as Ri, aY as Pt, aZ as Wi, a_ as Ei, a$ as Si, aD as Zi, b0 as Pi, bp as Fi, b2 as Hi, d as Ft, b3 as pe, b4 as Li, b5 as Ui, b7 as le, b8 as ut, W as Bi, U as V, Y as J, w as Ht, aE as Gi, bq as Yi, bc as st, br as Qi } from "./main_ca1065ab_3.3.0-RC12.js";
2
- import { W as Xi, V as Vi, C as Ji } from "./ValidationAlert_966df4ee_3.3.0-RC12.js";
3
- import { matchDimensions as xi, resizeResults as Ki } from "./face_api_0e3ce8c8_3.3.0-RC12.js";
4
- import { C as qi } from "./CaptureBar_a4c50c4b_3.3.0-RC12.js";
5
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NCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
6
- function ea(a) {
1
+ import { S as ot, x as rt, y as lt, z as ct, B as z, C as j, D, bk as se, E as Y, G as f, b6 as ne, bl as zt, X as w, H as S, I as M, bm as q, bn as yi, J as oe, N as H, Z as $, V as Ae, _ as ee, a0 as E, a1 as Oe, a2 as L, a3 as Ne, a4 as te, K as X, aB as v, M as F, O as Mi, a6 as Ve, a7 as Ie, Q as G, T as we, a8 as Di, a9 as Ce, ab as _i, aa as ue, ac as ye, a5 as Je, ad as xe, ae as jt, ah as Me, ak as Ke, al as pi, am as Rt, an as De, $ as Ti, ag as qe, ap as Wt, as as $e, R as Ai, ax as Oi, aA as Ni, f as Et, aC as ki, aF as et, aG as re, m as zi, aH as tt, aU as St, e as _e, l as pe, aV as Zt, aW as it, aX as ji, aL as at, aY as Pt, aZ as Ri, a_ as Wi, a$ as Ei, aD as Si, b0 as Zi, bo as Pi, b2 as Fi, d as Ft, b3 as Te, b4 as Hi, b5 as Li, b7 as le, b8 as ut, W as Ui, U as V, Y as J, w as Ht, aE as Bi, bp as Gi, bc as st, bq as Yi } from "./main_a1df8135_3.3.1-RC02.js";
2
+ import { W as Qi, V as Xi, C as Vi } from "./ValidationAlert_254410bb_3.3.1-RC02.js";
3
+ import { matchDimensions as Ji, resizeResults as xi } from "./face_api_0e3ce8c8_3.3.1-RC02.js";
4
+ import { C as Ki } from "./CaptureBar_a0040627_3.3.1-RC02.js";
5
+ const qi = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4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PgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
6
+ function $i(a) {
7
7
  let e, t, s, n, r, o, g, h, d, l, u;
8
8
  return {
9
9
  c() {
@@ -43,7 +43,7 @@ function ea(a) {
43
43
  }
44
44
  };
45
45
  }
46
- function ta(a, e, t) {
46
+ function ea(a, e, t) {
47
47
  let s, n, r;
48
48
  M(a, q, (l) => t(2, s = l)), M(a, yi, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
49
49
  let { videoOverlay: o } = e, { videoOverlayTransparency: g } = e, h, d;
@@ -71,8 +71,8 @@ class Qt extends ot {
71
71
  props: ct(this.attributes),
72
72
  customElement: !0
73
73
  },
74
- ta,
75
74
  ea,
75
+ $i,
76
76
  lt,
77
77
  {
78
78
  videoOverlay: 0,
@@ -100,7 +100,7 @@ class Qt extends ot {
100
100
  customElements.define("document-overlay", Qt);
101
101
  function Lt(a) {
102
102
  let e, t;
103
- return e = new Xi({}), {
103
+ return e = new Qi({}), {
104
104
  c() {
105
105
  $(e.$$.fragment);
106
106
  },
@@ -118,7 +118,7 @@ function Lt(a) {
118
118
  }
119
119
  };
120
120
  }
121
- function ia(a) {
121
+ function ta(a) {
122
122
  let e, t, s, n, r, o, g, h, d, l, u = (
123
123
  /*showWatermark*/
124
124
  a[3] && Lt()
@@ -140,7 +140,7 @@ function ia(a) {
140
140
  }
141
141
  }), {
142
142
  c() {
143
- e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = H(), u && u.c(), h = H(), $(d.$$.fragment), this.c = Y, Ae(n.src, r = $i) || f(n, "src", r), f(n, "alt", "document"), f(s, "class", "w-full h-full relative"), f(t, "class", "absolute inset-0 flex justify-center"), f(e, "id", "doc-rectangle"), f(e, "class", g = "doc-loader " + /*loading*/
143
+ e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = H(), u && u.c(), h = H(), $(d.$$.fragment), this.c = Y, Ae(n.src, r = qi) || f(n, "src", r), f(n, "alt", "document"), f(s, "class", "w-full h-full relative"), f(t, "class", "absolute inset-0 flex justify-center"), f(e, "id", "doc-rectangle"), f(e, "class", g = "doc-loader " + /*loading*/
144
144
  (a[0] ? "doc-loading" : "") + " z-10"), f(
145
145
  e,
146
146
  "style",
@@ -154,9 +154,9 @@ function ia(a) {
154
154
  p(c, [b]) {
155
155
  /*showWatermark*/
156
156
  c[3] ? u ? b & /*showWatermark*/
157
- 8 && E(u, 1) : (u = Lt(), u.c(), E(u, 1), u.m(e, null)) : u && (Te(), L(u, 1, 1, () => {
157
+ 8 && E(u, 1) : (u = Lt(), u.c(), E(u, 1), u.m(e, null)) : u && (Oe(), L(u, 1, 1, () => {
158
158
  u = null;
159
- }), Oe()), (!l || b & /*loading*/
159
+ }), Ne()), (!l || b & /*loading*/
160
160
  1 && g !== (g = "doc-loader " + /*loading*/
161
161
  (c[0] ? "doc-loading" : "") + " z-10")) && f(e, "class", g), (!l || b & /*styleVars*/
162
162
  32) && f(
@@ -185,8 +185,8 @@ function ia(a) {
185
185
  }
186
186
  };
187
187
  }
188
- const nt = 1.36, aa = "hsl(var(--p))", sa = "hsl(var(--su))";
189
- function na(a, e, t) {
188
+ const nt = 1.36, ia = "hsl(var(--p))", aa = "hsl(var(--su))";
189
+ function sa(a, e, t) {
190
190
  let s, n, r;
191
191
  M(a, q, (I) => t(9, n = I)), M(a, oe, (I) => t(10, r = I));
192
192
  let { loading: o } = e, { videoOverlay: g = "" } = e, { videoOverlayTransparency: h = 100 } = e, { showWatermark: d } = e, l, u, c = 6, b = 0.7;
@@ -198,8 +198,8 @@ function na(a, e, t) {
198
198
  208 && t(5, s = `
199
199
  --rectangle-width: ${l}px;
200
200
  --rectangle-height: ${u}px;
201
- --border-color: ${aa};
202
- --border-color-animation: ${sa};
201
+ --border-color: ${ia};
202
+ --border-color-animation: ${aa};
203
203
  --rectangle-border: ${c}px;
204
204
  `);
205
205
  }, [
@@ -225,8 +225,8 @@ class Xt extends ot {
225
225
  props: ct(this.attributes),
226
226
  customElement: !0
227
227
  },
228
- na,
229
- ia,
228
+ sa,
229
+ ta,
230
230
  lt,
231
231
  {
232
232
  loading: 0,
@@ -267,11 +267,11 @@ class Xt extends ot {
267
267
  }
268
268
  customElements.define("doc-rectangle", Xt);
269
269
  function Ut(a) {
270
- let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, O, T = (
270
+ let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, N, A = (
271
271
  /*$ready*/
272
272
  a[12] && Bt(a)
273
273
  );
274
- return u = new Ui({}), b = new qi({
274
+ return u = new Li({}), b = new Ki({
275
275
  props: {
276
276
  showConfigButton: (
277
277
  /*showConfigButton*/
@@ -296,7 +296,7 @@ function Ut(a) {
296
296
  }
297
297
  }), {
298
298
  c() {
299
- e = D("div"), t = D("div"), s = D("video"), r = H(), o = D("canvas"), g = H(), h = D("div"), d = D("div"), T && T.c(), l = H(), $(u.$$.fragment), c = H(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", n = /*$ready*/
299
+ e = D("div"), t = D("div"), s = D("video"), r = H(), o = D("canvas"), g = H(), h = D("div"), d = D("div"), A && A.c(), l = H(), $(u.$$.fragment), c = H(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", n = /*$ready*/
300
300
  a[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, f(o, "id", "bry-ce-detectionsCanvas"), f(o, "class", "absolute top-0 left-0 max-w-full"), f(t, "class", "overflow-hidden"), ne(
301
301
  t,
302
302
  "width",
@@ -311,8 +311,8 @@ function Ut(a) {
311
311
  a[12] ? "relative" : "relative w-0 h-0"), e.hidden = Z = /*$cameraStatusStore*/
312
312
  a[11] !== F.OK;
313
313
  },
314
- m(A, R) {
315
- z(A, e, R), w(e, t), w(t, s), a[34](s), w(t, r), w(t, o), a[36](o), w(e, g), w(e, h), w(h, d), T && T.m(d, null), w(h, l), ee(u, h, null), w(h, c), ee(b, h, null), m = !0, y || (O = [
314
+ m(T, R) {
315
+ z(T, e, R), w(e, t), w(t, s), a[34](s), w(t, r), w(t, o), a[36](o), w(e, g), w(e, h), w(h, d), A && A.m(d, null), w(h, l), ee(u, h, null), w(h, c), ee(b, h, null), m = !0, y || (N = [
316
316
  le(
317
317
  s,
318
318
  "canplay",
@@ -328,55 +328,55 @@ function Ut(a) {
328
328
  )
329
329
  ], y = !0);
330
330
  },
331
- p(A, R) {
331
+ p(T, R) {
332
332
  (!m || R[0] & /*$ready*/
333
333
  4096 && n !== (n = /*$ready*/
334
- A[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
334
+ T[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
335
335
  8192) && ne(
336
336
  t,
337
337
  "width",
338
338
  /*$videoStore*/
339
- A[13].videoWidth + "px"
339
+ T[13].videoWidth + "px"
340
340
  ), (!m || R[0] & /*$videoStore*/
341
341
  8192) && ne(
342
342
  t,
343
343
  "height",
344
344
  /*$videoStore*/
345
- A[13].videoHeight + "px"
345
+ T[13].videoHeight + "px"
346
346
  ), /*$ready*/
347
- A[12] ? T ? (T.p(A, R), R[0] & /*$ready*/
348
- 4096 && E(T, 1)) : (T = Bt(A), T.c(), E(T, 1), T.m(d, null)) : T && (Te(), L(T, 1, 1, () => {
349
- T = null;
350
- }), Oe());
347
+ T[12] ? A ? (A.p(T, R), R[0] & /*$ready*/
348
+ 4096 && E(A, 1)) : (A = Bt(T), A.c(), E(A, 1), A.m(d, null)) : A && (Oe(), L(A, 1, 1, () => {
349
+ A = null;
350
+ }), Ne());
351
351
  const P = {};
352
352
  R[0] & /*showConfigButton*/
353
353
  2 && (P.showConfigButton = /*showConfigButton*/
354
- A[1]), R[0] & /*showCameraButton*/
354
+ T[1]), R[0] & /*showCameraButton*/
355
355
  4 && (P.showCameraButton = /*showCameraButton*/
356
- A[2]), R[0] & /*videoOverlay*/
356
+ T[2]), R[0] & /*videoOverlay*/
357
357
  8 && (P.videoOverlay = /*videoOverlay*/
358
- A[3]), R[0] & /*videoOverlayTransparency*/
358
+ T[3]), R[0] & /*videoOverlayTransparency*/
359
359
  16 && (P.videoOverlayTransparency = /*videoOverlayTransparency*/
360
- A[4]), b.$set(P), (!m || R[0] & /*$ready*/
360
+ T[4]), b.$set(P), (!m || R[0] & /*$ready*/
361
361
  4096 && I !== (I = /*$ready*/
362
- A[12] ? "relative" : "relative w-0 h-0")) && f(e, "class", I), (!m || R[0] & /*$cameraStatusStore*/
362
+ T[12] ? "relative" : "relative w-0 h-0")) && f(e, "class", I), (!m || R[0] & /*$cameraStatusStore*/
363
363
  2048 && Z !== (Z = /*$cameraStatusStore*/
364
- A[11] !== F.OK)) && (e.hidden = Z);
364
+ T[11] !== F.OK)) && (e.hidden = Z);
365
365
  },
366
- i(A) {
367
- m || (E(T), E(u.$$.fragment, A), E(b.$$.fragment, A), m = !0);
366
+ i(T) {
367
+ m || (E(A), E(u.$$.fragment, T), E(b.$$.fragment, T), m = !0);
368
368
  },
369
- o(A) {
370
- L(T), L(u.$$.fragment, A), L(b.$$.fragment, A), m = !1;
369
+ o(T) {
370
+ L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
371
371
  },
372
- d(A) {
373
- A && S(e), a[34](null), a[36](null), T && T.d(), te(u), te(b), y = !1, ut(O);
372
+ d(T) {
373
+ T && S(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), y = !1, ut(N);
374
374
  }
375
375
  };
376
376
  }
377
377
  function Bt(a) {
378
378
  let e, t, s, n;
379
- return e = new Vi({
379
+ return e = new Xi({
380
380
  props: {
381
381
  isCountingDown: (
382
382
  /*isCountingDown*/
@@ -441,13 +441,13 @@ function Gt(a) {
441
441
  function o(d, l) {
442
442
  return (
443
443
  /*$isLoading*/
444
- d[21] ? ra : oa
444
+ d[21] ? oa : na
445
445
  );
446
446
  }
447
447
  let g = o(a), h = g(a);
448
448
  return {
449
449
  c() {
450
- e = D("slot"), t = D("div"), s = D("img"), r = H(), h.c(), Ae(s.src, n = Bi) || f(s, "src", n), f(s, "alt", "loading gif"), f(s, "class", "m-auto h-[10em] lg:h-[12em]"), f(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), f(e, "name", "loading-camera-gif"), f(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
450
+ e = D("slot"), t = D("div"), s = D("img"), r = H(), h.c(), Ae(s.src, n = Ui) || f(s, "src", n), f(s, "alt", "loading gif"), f(s, "class", "m-auto h-[10em] lg:h-[12em]"), f(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), f(e, "name", "loading-camera-gif"), f(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
451
451
  },
452
452
  m(d, l) {
453
453
  z(d, e, l), w(e, t), w(t, s), w(t, r), h.m(t, null);
@@ -460,7 +460,7 @@ function Gt(a) {
460
460
  }
461
461
  };
462
462
  }
463
- function oa(a) {
463
+ function na(a) {
464
464
  let e, t = (
465
465
  /*$_*/
466
466
  a[19]("faceCollector.initiatingCamera") + ""
@@ -482,7 +482,7 @@ function oa(a) {
482
482
  }
483
483
  };
484
484
  }
485
- function ra(a) {
485
+ function oa(a) {
486
486
  let e;
487
487
  return {
488
488
  c() {
@@ -540,9 +540,9 @@ function Yt(a) {
540
540
  }
541
541
  };
542
542
  }
543
- function la(a) {
543
+ function ra(a) {
544
544
  let e, t;
545
- return e = new Ji({ props: { handler: (
545
+ return e = new Vi({ props: { handler: (
546
546
  /*func*/
547
547
  a[42]
548
548
  ) } }), {
@@ -564,12 +564,12 @@ function la(a) {
564
564
  }
565
565
  };
566
566
  }
567
- function ca(a) {
567
+ function la(a) {
568
568
  let e, t, s, n, r, o;
569
569
  function g(l, u) {
570
570
  return (
571
571
  /*$captured*/
572
- l[14] ? ua : da
572
+ l[14] ? ca : ua
573
573
  );
574
574
  }
575
575
  let h = g(a), d = h(a);
@@ -603,7 +603,7 @@ function ca(a) {
603
603
  }
604
604
  };
605
605
  }
606
- function ua(a) {
606
+ function ca(a) {
607
607
  let e, t, s, n, r = (
608
608
  /*$_*/
609
609
  a[19]("faceCollector.finish") + ""
@@ -611,12 +611,12 @@ function ua(a) {
611
611
  /*$_*/
612
612
  a[19]("faceCollector.retakePhoto") + ""
613
613
  ), u, c, b;
614
- function I(y, O) {
614
+ function I(y, N) {
615
615
  return (
616
616
  /*$requestResult*/
617
- y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ha : (
617
+ y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ga : (
618
618
  /*$saved*/
619
- y[15] ? fa : ga
619
+ y[15] ? da : fa
620
620
  )
621
621
  );
622
622
  }
@@ -627,8 +627,8 @@ function ua(a) {
627
627
  a[15] || /*$requestResult*/
628
628
  a[18] !== re.OK, f(n, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(d, "id", "bry-cc-retake-button"), f(d, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(s, "class", "ce-dui-btn-group flex"), f(e, "class", "flex flex-col justify-between");
629
629
  },
630
- m(y, O) {
631
- z(y, e, O), m.m(e, null), w(e, t), w(e, s), w(s, n), w(n, o), w(s, h), w(s, d), w(d, u), c || (b = [
630
+ m(y, N) {
631
+ z(y, e, N), m.m(e, null), w(e, t), w(e, s), w(s, n), w(n, o), w(s, h), w(s, d), w(d, u), c || (b = [
632
632
  le(
633
633
  n,
634
634
  "click",
@@ -643,13 +643,13 @@ function ua(a) {
643
643
  )
644
644
  ], c = !0);
645
645
  },
646
- p(y, O) {
647
- Z === (Z = I(y)) && m ? m.p(y, O) : (m.d(1), m = Z(y), m && (m.c(), m.m(e, t))), O[0] & /*$_*/
646
+ p(y, N) {
647
+ Z === (Z = I(y)) && m ? m.p(y, N) : (m.d(1), m = Z(y), m && (m.c(), m.m(e, t))), N[0] & /*$_*/
648
648
  524288 && r !== (r = /*$_*/
649
- y[19]("faceCollector.finish") + "") && J(o, r), O[0] & /*$saved, $requestResult*/
649
+ y[19]("faceCollector.finish") + "") && J(o, r), N[0] & /*$saved, $requestResult*/
650
650
  294912 && g !== (g = /*$saved*/
651
651
  y[15] || /*$requestResult*/
652
- y[18] !== re.OK) && (n.disabled = g), O[0] & /*$_*/
652
+ y[18] !== re.OK) && (n.disabled = g), N[0] & /*$_*/
653
653
  524288 && l !== (l = /*$_*/
654
654
  y[19]("faceCollector.retakePhoto") + "") && J(u, l);
655
655
  },
@@ -658,7 +658,7 @@ function ua(a) {
658
658
  }
659
659
  };
660
660
  }
661
- function da(a) {
661
+ function ua(a) {
662
662
  let e;
663
663
  return {
664
664
  c() {
@@ -673,7 +673,7 @@ function da(a) {
673
673
  }
674
674
  };
675
675
  }
676
- function fa(a) {
676
+ function da(a) {
677
677
  let e, t = (
678
678
  /*$_*/
679
679
  a[19]("docCollector.captured") + ""
@@ -695,7 +695,7 @@ function fa(a) {
695
695
  }
696
696
  };
697
697
  }
698
- function ga(a) {
698
+ function fa(a) {
699
699
  let e, t = (
700
700
  /*$_*/
701
701
  a[19]("faceCollector.everythingOk") + ""
@@ -717,7 +717,7 @@ function ga(a) {
717
717
  }
718
718
  };
719
719
  }
720
- function ha(a) {
720
+ function ga(a) {
721
721
  let e, t = (
722
722
  /*$_*/
723
723
  a[19]("docCollector.docNotFound") + ""
@@ -739,7 +739,7 @@ function ha(a) {
739
739
  }
740
740
  };
741
741
  }
742
- function ma(a) {
742
+ function ha(a) {
743
743
  let e, t, s, n, r, o, g, h, d, l = (
744
744
  /*$videoStore*/
745
745
  a[13] && Ut(a)
@@ -749,7 +749,7 @@ function ma(a) {
749
749
  /*$captured*/
750
750
  a[14] && Yt(a)
751
751
  );
752
- const b = [ca, la], I = [];
752
+ const b = [la, ra], I = [];
753
753
  function Z(m, y) {
754
754
  return (
755
755
  /*showUnconformities*/
@@ -770,16 +770,16 @@ function ma(a) {
770
770
  p(m, y) {
771
771
  /*$videoStore*/
772
772
  m[13] ? l ? (l.p(m, y), y[0] & /*$videoStore*/
773
- 8192 && E(l, 1)) : (l = Ut(m), l.c(), E(l, 1), l.m(t, s)) : l && (Te(), L(l, 1, 1, () => {
773
+ 8192 && E(l, 1)) : (l = Ut(m), l.c(), E(l, 1), l.m(t, s)) : l && (Oe(), L(l, 1, 1, () => {
774
774
  l = null;
775
- }), Oe()), !/*$ready*/
775
+ }), Ne()), !/*$ready*/
776
776
  m[12] && /*$cameraStatusStore*/
777
777
  m[11] === F.OK ? u ? u.p(m, y) : (u = Gt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
778
778
  m[14] ? c ? c.p(m, y) : (c = Yt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
779
- let O = o;
780
- o = Z(m), o === O ? ~o && I[o].p(m, y) : (g && (Te(), L(I[O], 1, 1, () => {
781
- I[O] = null;
782
- }), Oe()), ~o ? (g = I[o], g ? g.p(m, y) : (g = I[o] = b[o](m), g.c()), E(g, 1), g.m(h.parentNode, h)) : g = null);
779
+ let N = o;
780
+ o = Z(m), o === N ? ~o && I[o].p(m, y) : (g && (Oe(), L(I[N], 1, 1, () => {
781
+ I[N] = null;
782
+ }), Ne()), ~o ? (g = I[o], g ? g.p(m, y) : (g = I[o] = b[o](m), g.c()), E(g, 1), g.m(h.parentNode, h)) : g = null);
783
783
  },
784
784
  i(m) {
785
785
  d || (E(l), E(g), d = !0);
@@ -792,44 +792,44 @@ function ma(a) {
792
792
  }
793
793
  };
794
794
  }
795
- let ba = !1, va = 0;
796
- function Ia(a, e, t) {
795
+ let ma = !1, ba = 0;
796
+ function va(a, e, t) {
797
797
  const s = e.videoWidth / e.videoHeight, n = t.width / t.height;
798
798
  let r = 0, o = 0, g = e.videoWidth, h = e.videoHeight;
799
799
  s > n ? (g = e.videoHeight * n, r = (e.videoWidth - g) / 2) : s < n && (h = e.videoWidth / n, o = (e.videoHeight - h) / 2), a.drawImage(e, r, o, g, h, 0, 0, t.width, t.height);
800
800
  }
801
- function wa(a, e, t) {
802
- let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, O, T, A, R, P, Ne, x, de, K, dt, ft, gt;
803
- M(a, Ve, (i) => t(56, s = i)), M(a, ve, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, Ie, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, we, (i) => t(60, d = i)), M(a, _i, (i) => t(61, l = i)), M(a, ue, (i) => t(62, u = i)), M(a, oe, (i) => t(13, c = i)), M(a, Ce, (i) => t(14, b = i)), M(a, Je, (i) => t(63, I = i)), M(a, xe, (i) => t(64, Z = i)), M(a, jt, (i) => t(65, m = i)), M(a, q, (i) => t(66, y = i)), M(a, ye, (i) => t(67, O = i)), M(a, Ke, (i) => t(15, T = i)), M(a, pi, (i) => t(16, A = i)), M(a, Rt, (i) => t(17, R = i)), M(a, Me, (i) => t(18, P = i)), M(a, Ai, (i) => t(19, Ne = i)), M(a, qe, (i) => t(68, x = i)), M(a, Wt, (i) => t(69, K = i)), M(a, $e, (i) => t(70, dt = i)), M(a, Ti, (i) => t(21, ft = i)), M(a, Oi, (i) => t(22, gt = i));
801
+ function Ia(a, e, t) {
802
+ let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, y, N, A, T, R, P, ke, x, de, K, dt, ft, gt;
803
+ M(a, Ve, (i) => t(56, s = i)), M(a, Ie, (i) => t(58, r = i)), M(a, G, (i) => t(11, o = i)), M(a, we, (i) => t(12, g = i)), M(a, Di, (i) => t(59, h = i)), M(a, Ce, (i) => t(60, d = i)), M(a, _i, (i) => t(61, l = i)), M(a, ue, (i) => t(62, u = i)), M(a, oe, (i) => t(13, c = i)), M(a, ye, (i) => t(14, b = i)), M(a, Je, (i) => t(63, I = i)), M(a, xe, (i) => t(64, Z = i)), M(a, jt, (i) => t(65, m = i)), M(a, q, (i) => t(66, y = i)), M(a, Me, (i) => t(67, N = i)), M(a, Ke, (i) => t(15, A = i)), M(a, pi, (i) => t(16, T = i)), M(a, Rt, (i) => t(17, R = i)), M(a, De, (i) => t(18, P = i)), M(a, Ti, (i) => t(19, ke = i)), M(a, qe, (i) => t(68, x = i)), M(a, Wt, (i) => t(69, K = i)), M(a, $e, (i) => t(70, dt = i)), M(a, Ai, (i) => t(21, ft = i)), M(a, Oi, (i) => t(22, gt = i));
804
804
  let _, W, Q, ce = !1, ht = !1, U = {
805
805
  width: 2560,
806
806
  height: 1440,
807
807
  aspectRatio: -1
808
808
  };
809
809
  const Vt = { width: 2560, height: 1440 };
810
- let { enableMinutiae: ke } = e, { videoDimensions: ze } = e, { noTabs: je } = e, { weightsPath: Re } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark: Ct } = e, { faceDetectionSensitivity: fe } = e;
810
+ let { enableMinutiae: ze } = e, { videoDimensions: je } = e, { noTabs: Re } = e, { weightsPath: We } = e, { showUnconformities: mt } = e, { showConfigButton: bt } = e, { showCameraButton: vt } = e, { videoOverlay: It } = e, { videoOverlayTransparency: wt } = e, { showWatermark: Ct } = e, { faceDetectionSensitivity: fe } = e;
811
811
  const ge = Ht(!1);
812
812
  M(a, ge, (i) => t(57, n = i));
813
- const We = Ht("data:image/png;base64");
814
- M(a, We, (i) => t(20, de = i));
815
- let yt = !1, he = !0, Mt = 0, Ee = 0, Se = !0, Dt = 0, Ze = (/* @__PURE__ */ new Date()).getTime(), Pe = !1;
813
+ const Ee = Ht("data:image/png;base64");
814
+ M(a, Ee, (i) => t(20, de = i));
815
+ let yt = !1, he = !0, Mt = 0, Se = 0, Ze = !0, Dt = 0, Pe = (/* @__PURE__ */ new Date()).getTime(), Fe = !1;
816
816
  Ni(async () => {
817
- if (Et("Mounting Document Collector!"), v(Ie, g = !1, g), _t(), K)
817
+ if (Et("Mounting Document Collector!"), v(we, g = !1, g), _t(), K)
818
818
  try {
819
- await ki(Re), ht = !0;
819
+ await ki(We), ht = !0;
820
820
  } catch {
821
821
  v(Wt, K = !1, K);
822
822
  }
823
- await He(), xt();
823
+ await ve(), xt();
824
824
  });
825
825
  function _t() {
826
- v(Ce, b = !1, b), v(jt, m = !0, m), v(ye, O = "", O), v(we, d = et.REAR_CAMERA, d), v(ve, r = !1, r), v(Ke, T = !1, T), v(Me, P = re.OK, P), v(qe, x = "", x);
826
+ v(ye, b = !1, b), v(jt, m = !0, m), v(Me, N = "", N), v(Ce, d = et.REAR_CAMERA, d), v(Ie, r = !1, r), v(Ke, A = !1, A), v(De, P = re.OK, P), v(qe, x = "", x);
827
827
  const i = zi(tt);
828
828
  i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, tt.set(i);
829
829
  }
830
830
  async function Jt() {
831
- const [i, p] = (ze ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
832
- !i || !p || (X() ? (await Gi(), v(
831
+ const [i, p] = (je ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
832
+ !i || !p || (X() ? (await Bi(), v(
833
833
  oe,
834
834
  c = {
835
835
  videoWidth: window.innerWidth,
@@ -843,38 +843,38 @@ function wa(a, e, t) {
843
843
  }
844
844
  async function me() {
845
845
  if (K && !ht)
846
- return pe(_, me);
846
+ return Te(_, me);
847
847
  if (_) {
848
- if (dt !== at.Document && !je)
849
- return pe(_, me);
850
- v(Ie, g = !0, g), K && (n || v(ge, n = !0, n)), pe(_, me);
848
+ if (dt !== at.Document && !Re)
849
+ return Te(_, me);
850
+ v(we, g = !0, g), K && (n || v(ge, n = !0, n)), Te(_, me);
851
851
  }
852
852
  }
853
- async function At() {
853
+ async function Tt() {
854
854
  let i = Kt();
855
- if (K && !(await Yi(i, fe)).result) {
855
+ if (K && !(await Gi(i, fe)).result) {
856
856
  Ft("Document capture - document not detected! Resetting capture.");
857
857
  return;
858
858
  }
859
- v(Ce, b = !0, b);
859
+ v(ye, b = !0, b);
860
860
  let p = [];
861
861
  try {
862
862
  const C = i.toDataURL("image/jpeg").split(",");
863
- v(We, de = C[0], de), v(Rt, R = C[1], R), v(qe, x = C[1], x), p = [
863
+ v(Ee, de = C[0], de), v(Rt, R = C[1], R), v(qe, x = C[1], x), p = [
864
864
  {
865
865
  bodyPart: "DOCUMENT",
866
866
  data: x
867
867
  }
868
- ], v(Me, P = re.OK, P), window.dispatchEvent(new CustomEvent(
868
+ ], v(De, P = re.OK, P), window.dispatchEvent(new CustomEvent(
869
869
  "document-unconformities-validated",
870
870
  {
871
871
  detail: { bodyParts: p, status: P }
872
872
  }
873
873
  ));
874
874
  } catch (C) {
875
- _e(C);
876
- let N, k = Qi.DOCUMENT_NOT_FOUND, B = [];
877
- C instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(C.message) && (v(Me, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = C.message, B = [
875
+ pe(C);
876
+ let O, k = Yi.DOCUMENT_NOT_FOUND, B = [];
877
+ C instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(C.message) && (v(De, P = re.TEMPLATE_EXTRACTION_ERROR, P), O = C.message, B = [
878
878
  {
879
879
  bodyPart: "DOCUMENT",
880
880
  data: x,
@@ -885,35 +885,35 @@ function wa(a, e, t) {
885
885
  {
886
886
  detail: {
887
887
  bodyParts: B,
888
- errorCode: N,
889
- translatedError: Ne(k),
888
+ errorCode: O,
889
+ translatedError: ke(k),
890
890
  status: P
891
891
  }
892
892
  }
893
893
  ));
894
894
  }
895
895
  }
896
- function Fe() {
896
+ function He() {
897
897
  const i = {
898
898
  bodyPart: "DOCUMENT",
899
899
  data: R,
900
- justification: A
900
+ justification: T
901
901
  };
902
- v(Ke, T = !0, T), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
902
+ v(Ke, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
903
903
  }
904
904
  function be() {
905
905
  window.dispatchEvent(new CustomEvent("document-scrapped")), _t(), he && pt();
906
906
  }
907
- async function He(i) {
908
- if (!Se) {
907
+ async function ve(i) {
908
+ if (!Ze) {
909
909
  v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o);
910
910
  return;
911
911
  }
912
912
  await Jt();
913
913
  try {
914
- let { stream: p, deviceId: C, width: N, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
915
- if (v(Je, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
916
- U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((Ue) => Ue?.stop());
914
+ let { stream: p, deviceId: C, width: O, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
915
+ if (v(Je, I = p, I), U.aspectRatio = B || O / k, U.aspectRatio > 1 && O < U.width || U.aspectRatio < 1 && k < U.width) {
916
+ U.width = O, U.height = O / 1.7777, I.getTracks()?.forEach((Ue) => Ue?.stop());
917
917
  const { stream: Le } = await St(U.width, U.height, d, i);
918
918
  v(Je, I = Le, I);
919
919
  }
@@ -921,31 +921,31 @@ function wa(a, e, t) {
921
921
  } catch (p) {
922
922
  const C = p;
923
923
  he = !0;
924
- const N = De(p) && p.constraint ? p.constraint : "";
925
- _e(C, N), De(C) && "message" in C && C.message.includes("Permission denied") && (_e("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), De(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (N.includes("width") || N.includes("height")) && (_e(`Camera does not meet the minimum supported requirements! (${N})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
924
+ const O = _e(p) && p.constraint ? p.constraint : "";
925
+ pe(C, O), _e(C) && "message" in C && C.message.includes("Permission denied") && (pe("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), _e(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (O.includes("width") || O.includes("height")) && (pe(`Camera does not meet the minimum supported requirements! (${O})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
926
926
  }
927
927
  }
928
928
  async function ie() {
929
- v(ue, u = "", u), await He();
929
+ v(ue, u = "", u), await ve();
930
930
  }
931
931
  function xt() {
932
932
  navigator.mediaDevices.ondevicechange = async (i) => {
933
933
  await Zt(), o !== F.OK ? await ie() : I.active || (it(), v(G, o = F.DEVICE_NOT_FOUND_ERROR, o));
934
934
  };
935
935
  }
936
- function Tt() {
937
- v(ve, r = !1, r);
936
+ function At() {
937
+ v(Ie, r = !1, r);
938
938
  const i = (/* @__PURE__ */ new Date()).getTime();
939
- i - Ze > 5e3 ? (Ze = i, v(ye, O = "docCollector.docWasNotFound", O)) : Pe || (Pe = !0, setTimeout(
939
+ i - Pe > 5e3 ? (Pe = i, v(Me, N = "docCollector.docWasNotFound", N)) : Fe || (Fe = !0, setTimeout(
940
940
  () => {
941
- Pe = !1, O != "docCollector.docWasNotFound" && v(ye, O = "", O);
941
+ Fe = !1, N != "docCollector.docWasNotFound" && v(Me, N = "", N);
942
942
  },
943
943
  1500
944
944
  ));
945
945
  }
946
946
  function Kt() {
947
- const i = c.videoWidth, p = c.videoHeight, C = Vt.width, N = p / i * C, k = document.createElement("canvas"), B = k.getContext("2d");
948
- k.width = C, k.height = N, B && Ia(B, _, k);
947
+ const i = c.videoWidth, p = c.videoHeight, C = Vt.width, O = p / i * C, k = document.createElement("canvas"), B = k.getContext("2d");
948
+ k.width = C, k.height = O, B && va(B, _, k);
949
949
  const Le = k.width / c.videoWidth, Ue = k.height / c.videoHeight, vi = X() ? 0.25 : 0.15, Ii = Math.round(k.height * vi), Be = y.width * Le, Ge = y.height * Ue, Nt = (X() ? 0.15 : 0.2) * Be, kt = 0.2 * Ge, wi = (k.width - Be) / 2 - Nt / 2, Ci = (k.height - Ii - Ge) / 2 - kt / 2, Ye = Be + Nt, Qe = Ge + kt, ae = document.createElement("canvas");
950
950
  ae.width = Ye, ae.height = Qe;
951
951
  const Xe = ae.getContext("2d");
@@ -967,13 +967,13 @@ function wa(a, e, t) {
967
967
  ), clearInterval(C);
968
968
  return;
969
969
  }
970
- const N = (/* @__PURE__ */ new Date()).getTime();
971
- Math.floor((Dt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(C), t(10, ce = !1), At());
970
+ const O = (/* @__PURE__ */ new Date()).getTime();
971
+ Math.floor((Dt - O) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(C), t(10, ce = !1), Tt());
972
972
  },
973
973
  100
974
974
  );
975
975
  }
976
- }), ei = Ce.subscribe((i) => {
976
+ }), ei = ye.subscribe((i) => {
977
977
  Q && (i ? (Q.classList.remove("flex"), Q.classList.add("hidden")) : (Q.classList.add("flex"), Q.classList.remove("hidden")));
978
978
  }), ti = xe.subscribe((i) => {
979
979
  _ && i && (Pt("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
@@ -982,59 +982,61 @@ function wa(a, e, t) {
982
982
  i === at.Document && await Zt();
983
983
  });
984
984
  const ii = ue.subscribe(async (i) => {
985
- if (!(!I || !i))
986
- try {
987
- const p = await Ri(U.width, U.height, i);
988
- t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((C) => {
989
- C.readyState === "live" && Pt(`Camera ${C.label} opened successfully!`);
990
- }), v(G, o = F.OK, o), Wi(_);
991
- } catch (p) {
992
- const C = p;
993
- he = !0, De(C) && "message" in C && C.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
994
- }
985
+ if (!I || !i)
986
+ return;
987
+ const p = I?.getVideoTracks()[0]?.getSettings()?.deviceId;
988
+ p && p !== i && await ve(i);
989
+ try {
990
+ t(7, _.srcObject = I, _), v(xe, Z = !1, Z), I.getTracks().forEach((C) => {
991
+ C.readyState === "live" && Pt(`Camera ${C.label} opened successfully!`);
992
+ }), v(G, o = F.OK, o), Ri(_);
993
+ } catch (C) {
994
+ const O = C;
995
+ he = !0, _e(O) && "message" in O && O.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
996
+ }
995
997
  }), ai = $e.subscribe(async (i) => {
996
- i === at.Document && !yt && !b && ba && await pt();
998
+ i === at.Document && !yt && !b && ma && await pt();
997
999
  }), si = ge.subscribe(async (i) => {
998
1000
  i && Ot();
999
- }), ni = Ie.subscribe((i) => {
1001
+ }), ni = we.subscribe((i) => {
1000
1002
  i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
1001
- }), oi = Ei.subscribe(async (i) => {
1003
+ }), oi = Wi.subscribe(async (i) => {
1002
1004
  if (!(!c || l.length <= 1)) {
1003
1005
  if (it(), !X()) {
1004
- const C = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[C].deviceId;
1005
- await He(N);
1006
+ const C = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, O = l[C].deviceId;
1007
+ await ve(O);
1006
1008
  return;
1007
1009
  }
1008
- i ? (v(we, d = et.FRONT_CAMERA, d), await ie()) : (v(we, d = et.REAR_CAMERA, d), await ie());
1010
+ i ? (v(Ce, d = et.FRONT_CAMERA, d), await ie()) : (v(Ce, d = et.REAR_CAMERA, d), await ie());
1009
1011
  }
1010
- }), ri = Si.subscribe(async (i) => {
1011
- !i.isSupported || !X() || h != "DOCUMENT" || (Se = i.orientation.includes("portrait"), Se ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
1012
+ }), ri = Ei.subscribe(async (i) => {
1013
+ !i.isSupported || !X() || h != "DOCUMENT" || (Ze = i.orientation.includes("portrait"), Ze ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
1012
1014
  });
1013
1015
  async function Ot() {
1014
1016
  let i;
1015
1017
  try {
1016
- if (Ee >= va) {
1017
- Ee = 0;
1018
- const p = await Zi(fe), C = await import("./face_api_0e3ce8c8_3.3.0-RC12.js");
1019
- let N;
1020
- if (N = C.detectSingleFace(_, p), i = await N.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
1021
- const k = xi(W, _, !0);
1022
- Pi(W, _, k);
1023
- const B = Ki(i, k);
1024
- Fi(B) ? (Hi(B, W, ke, !0), v(ve, r = !0, r), Ze = (/* @__PURE__ */ new Date()).getTime()) : Tt();
1018
+ if (Se >= ba) {
1019
+ Se = 0;
1020
+ const p = await Si(fe), C = await import("./face_api_0e3ce8c8_3.3.1-RC02.js");
1021
+ let O;
1022
+ if (O = C.detectSingleFace(_, p), i = await O.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
1023
+ const k = Ji(W, _, !0);
1024
+ Zi(W, _, k);
1025
+ const B = xi(i, k);
1026
+ Pi(B) ? (Fi(B, W, ze, !0), v(Ie, r = !0, r), Pe = (/* @__PURE__ */ new Date()).getTime()) : At();
1025
1027
  } else
1026
- Tt();
1028
+ At();
1027
1029
  } else
1028
- Ee++;
1030
+ Se++;
1029
1031
  } catch (p) {
1030
1032
  Ft(`FaceapiLoop: ${p}`);
1031
1033
  } finally {
1032
- n && pe(_, Ot);
1034
+ n && Te(_, Ot);
1033
1035
  }
1034
1036
  }
1035
1037
  Ve.subscribe(async (i) => {
1036
1038
  i && (be(), v(Ve, s = !1, s));
1037
- }), Li(() => {
1039
+ }), Hi(() => {
1038
1040
  Et("Destroying document collector"), it(), ei(), $t(), qt(), ti(), ii(), ai(), clearInterval(Mt), si(), oi(), ni(), ri(), Mt = 0;
1039
1041
  });
1040
1042
  function li(i) {
@@ -1050,17 +1052,17 @@ function wa(a, e, t) {
1050
1052
  W = i, t(8, W);
1051
1053
  });
1052
1054
  }
1053
- const di = () => Fe(), fi = () => be();
1055
+ const di = () => He(), fi = () => be();
1054
1056
  function gi(i) {
1055
1057
  st[i ? "unshift" : "push"](() => {
1056
1058
  Q = i, t(9, Q);
1057
1059
  });
1058
1060
  }
1059
- const hi = () => Fe(), mi = () => be(), bi = async () => {
1061
+ const hi = () => He(), mi = () => be(), bi = async () => {
1060
1062
  await ie();
1061
1063
  };
1062
1064
  return a.$$set = (i) => {
1063
- "enableMinutiae" in i && t(29, ke = i.enableMinutiae), "videoDimensions" in i && t(30, ze = i.videoDimensions), "noTabs" in i && t(31, je = i.noTabs), "weightsPath" in i && t(32, Re = i.weightsPath), "showUnconformities" in i && t(0, mt = i.showUnconformities), "showConfigButton" in i && t(1, bt = i.showConfigButton), "showCameraButton" in i && t(2, vt = i.showCameraButton), "videoOverlay" in i && t(3, It = i.videoOverlay), "videoOverlayTransparency" in i && t(4, wt = i.videoOverlayTransparency), "showWatermark" in i && t(5, Ct = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
1065
+ "enableMinutiae" in i && t(29, ze = i.enableMinutiae), "videoDimensions" in i && t(30, je = i.videoDimensions), "noTabs" in i && t(31, Re = i.noTabs), "weightsPath" in i && t(32, We = i.weightsPath), "showUnconformities" in i && t(0, mt = i.showUnconformities), "showConfigButton" in i && t(1, bt = i.showConfigButton), "showCameraButton" in i && t(2, vt = i.showCameraButton), "videoOverlay" in i && t(3, It = i.videoOverlay), "videoOverlayTransparency" in i && t(4, wt = i.videoOverlayTransparency), "showWatermark" in i && t(5, Ct = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
1064
1066
  }, [
1065
1067
  mt,
1066
1068
  bt,
@@ -1077,24 +1079,24 @@ function wa(a, e, t) {
1077
1079
  g,
1078
1080
  c,
1079
1081
  b,
1080
- T,
1081
1082
  A,
1083
+ T,
1082
1084
  R,
1083
1085
  P,
1084
- Ne,
1086
+ ke,
1085
1087
  de,
1086
1088
  ft,
1087
1089
  gt,
1088
1090
  ge,
1089
- We,
1090
- At,
1091
- Fe,
1091
+ Ee,
1092
+ Tt,
1093
+ He,
1092
1094
  be,
1093
1095
  ie,
1094
- ke,
1095
1096
  ze,
1096
1097
  je,
1097
1098
  Re,
1099
+ We,
1098
1100
  fe,
1099
1101
  li,
1100
1102
  ci,
@@ -1107,7 +1109,7 @@ function wa(a, e, t) {
1107
1109
  bi
1108
1110
  ];
1109
1111
  }
1110
- class Ca extends ot {
1112
+ class wa extends ot {
1111
1113
  constructor(e) {
1112
1114
  super(), rt(
1113
1115
  this,
@@ -1116,8 +1118,8 @@ class Ca extends ot {
1116
1118
  props: ct(this.attributes),
1117
1119
  customElement: !0
1118
1120
  },
1119
- wa,
1120
- ma,
1121
+ Ia,
1122
+ ha,
1121
1123
  lt,
1122
1124
  {
1123
1125
  enableMinutiae: 29,
@@ -1223,7 +1225,7 @@ class Ca extends ot {
1223
1225
  return this.$$.ctx[6];
1224
1226
  }
1225
1227
  }
1226
- customElements.define("document-collector", Ca);
1228
+ customElements.define("document-collector", wa);
1227
1229
  export {
1228
- Ca as default
1230
+ wa as default
1229
1231
  };