bry-biometric-collector 3.1.1 → 3.2.0-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 (21) hide show
  1. package/README.md +11 -0
  2. package/dist/{DocumentCollector_8012ed16_3.1.1.js → DocumentCollector_1ae96038_3.2.0-RC02.js} +386 -382
  3. package/dist/FaceCollector_7884c9cd_3.2.0-RC02.js +2350 -0
  4. package/dist/{ValidationAlert_1d046b33_3.1.1.js → ValidationAlert_33863a07_3.2.0-RC02.js} +40 -40
  5. package/dist/{___vite-browser-external_commonjs-proxy_85cb5597_3.1.1.js → ___vite-browser-external_commonjs-proxy_e8203409_3.2.0-RC02.js} +1 -1
  6. package/dist/bry-biometric-collector-main.js +2 -2
  7. package/dist/{fingersApi_42f58c57_3.1.1.js → fingersApi_9cb185fc_3.2.0-RC02.js} +2 -2
  8. package/dist/index.d.ts +3 -1
  9. package/dist/index.js +2 -2
  10. package/dist/{index_51d91852_3.1.1.js → index_bb7b43f8_3.2.0-RC02.js} +3 -3
  11. package/dist/{index_9ac1b157_3.1.1.js → index_ca59aa8a_3.2.0-RC02.js} +3 -3
  12. package/dist/{main_de63cee6_3.1.1.js → main_d9a89a09_3.2.0-RC02.js} +4866 -4790
  13. package/dist/style.css +1 -1
  14. package/package.json +1 -1
  15. package/dist/FaceCollector_d821db28_3.1.1.js +0 -2241
  16. /package/dist/{en-us_e83efd5d_3.1.1.js → en-us_e83efd5d_3.2.0-RC02.js} +0 -0
  17. /package/dist/{es-cl_5939150a_3.1.1.js → es-cl_5939150a_3.2.0-RC02.js} +0 -0
  18. /package/dist/{face_api_0e3ce8c8_3.1.1.js → face_api_0e3ce8c8_3.2.0-RC02.js} +0 -0
  19. /package/dist/{index-idlf-detector_39cfdffa_3.1.1.js → index-idlf-detector_39cfdffa_3.2.0-RC02.js} +0 -0
  20. /package/dist/{index-idlf-detector_a819b3c8_3.1.1.js → index-idlf-detector_a819b3c8_3.2.0-RC02.js} +0 -0
  21. /package/dist/{pt-br_fae15356_3.1.1.js → pt-br_fae15356_3.2.0-RC02.js} +0 -0
@@ -1,35 +1,35 @@
1
- import { S as st, q as ot, r as nt, t as rt, x as z, y as R, z as _, bg as se, B as Q, C as f, a_ as oe, bh as Nt, W as w, I as S, J as M, bi as q, bj as bi, L as ne, U as L, O as $, b1 as De, P as ee, D as E, E as pe, G as H, H as Te, Q as te, M as X, N as v, T as F, V as vi, X as Ye, Y as be, Z as G, _ as ve, a0 as Ii, a1 as Ie, a3 as wi, a2 as ue, a4 as we, a5 as Xe, a6 as Ve, a7 as kt, ab as Ce, ad as Je, ae as Ci, af as zt, ag as ye, $ as yi, aa as xe, ai as jt, ak as Ke, ap as Mi, aq as _i, as as Di, at as pi, au as Ti, aw as qe, ax as re, j as Ai, ay as $e, aN as Rt, d as Me, aO as Wt, aP as et, aQ as Oi, aC as tt, bk as Ni, aR as ki, aS as zi, aT as ji, av as Ri, aU as Wi, bl as Ei, aW as Si, aX as _e, aY as Zi, aZ as Pi, a$ as le, b0 as lt, b2 as Fi, b3 as V, b4 as J, w as Et, b5 as Li, aF as Hi, b8 as it, bm as Ui } from "./main_de63cee6_3.1.1.js";
2
- import { W as Bi, C as Gi, V as Qi, a as Yi } from "./ValidationAlert_1d046b33_3.1.1.js";
3
- import { matchDimensions as Xi, resizeResults as Vi } from "./face_api_0e3ce8c8_3.1.1.js";
1
+ import { S as nt, q as ot, r as rt, t as lt, x as z, y as j, z as D, bg as se, B as Q, C as f, b1 as ne, bh as kt, a2 as w, I as E, J as M, bi as q, bj as vi, L as oe, U as H, O as $, a0 as pe, P as ee, D as W, E as Te, G as L, H as Ae, Q as te, M as Y, N as v, T as F, V as Ii, a4 as Ye, a5 as ve, X as G, Z as Ie, a6 as wi, a7 as we, a9 as yi, a8 as ue, aa as ye, ab as Ve, ac as Je, ad as zt, ag as Ce, aj as xe, ak as Ci, al as jt, am as Me, $ as Mi, af as Ke, ao as Rt, aq as qe, Y as Di, av as _i, ay as pi, az as Ti, aB as $e, aC as re, j as Ai, aD as et, aQ as St, d as De, aR as Wt, aS as tt, aT as Oi, aH as it, bk as Ni, aU as ki, aV as zi, aW as ji, aA as Ri, aX as Si, bl as Wi, aZ as Ei, a_ as _e, a$ as Zi, b0 as Pi, b2 as le, b3 as ct, a1 as Fi, _ as V, a3 as J, w as Et, b4 as Hi, bm as Li, b8 as at, bn as Ui } from "./main_d9a89a09_3.2.0-RC02.js";
2
+ import { W as Bi, C as Gi, V as Qi, a as Xi } from "./ValidationAlert_33863a07_3.2.0-RC02.js";
3
+ import { matchDimensions as Yi, resizeResults as Vi } from "./face_api_0e3ce8c8_3.2.0-RC02.js";
4
4
  const Ji = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ2OCIgcng9IjciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0yXzE4XzQpIi8+CiAgICA8ZWxsaXBzZSBjeD0iMzg5LjIzOCIgY3k9IjUxMS4yMjgiIHJ4PSI4Ni4yMzc2IiByeT0iODUuMjI4NCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTQ3MS40NzUgNTExLjIyOEM0NzEuNDc1IDU1Ni4wNDUgNDM0LjcwMSA1OTIuNDU3IDM4OS4yMzggNTkyLjQ1N0MzNDMuNzc0IDU5Mi40NTcgMzA3IDU1Ni4wNDUgMzA3IDUxMS4yMjhDMzA3IDQ2Ni40MTEgMzQzLjc3NCA0MzAgMzg5LjIzOCA0MzBDNDM0LjcwMSA0MzAgNDcxLjQ3NSA0NjYuNDExIDQ3MS40NzUgNTExLjIyOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MDhDNTM1LjI2IDYwOCA1MzkuODggNzQzLjQ3MyA1MzkuODggNzQzLjQ3M0wyMzkgNzQzLjVDMjM5IDc0My41IDIzOS41IDYwOCAzODcuMzggNjA4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MTJDNDU5Ljc5NCA2MTIgNDk2LjY0OSA2NDUuMDIgNTE1LjYyNSA2NzcuNzQzQzUyNS4xOCA2OTQuMjIgNTMwLjI1NSA3MTAuNzMzIDUzMi45MzggNzIzLjE1QzUzNC4yNzggNzI5LjM1MSA1MzUuMDE2IDczNC41MDggNTM1LjQxOCA3MzguMDk4QzUzNS40NzMgNzM4LjU4NiA1MzUuNTIxIDczOS4wNDUgNTM1LjU2NCA3MzkuNDc0TDI0My4xODQgNzM5LjVDMjQzLjIxNiA3MzkuMDM3IDI0My4yNTMgNzM4LjUzOCAyNDMuMjk3IDczOC4wMDNDMjQzLjU5IDczNC40MTQgMjQ0LjE3MSA3MjkuMjU4IDI0NS4zMjIgNzIzLjA1OEMyNDcuNjI2IDcxMC42NDIgMjUyLjE5NyA2OTQuMTM4IDI2MS4yNDEgNjc3LjY3NkMyNzAuMjczIDY2MS4yMzYgMjgzLjc0OCA2NDQuODY0IDMwMy44OTEgNjMyLjU4N0MzMjQuMDI0IDYyMC4zMTYgMzUxLjA0MiA2MTIgMzg3LjM4IDYxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMThfNCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
5
5
  function xi(a) {
6
- let e, t, s, o, r, n, g, h, d, l, u;
6
+ let e, t, s, n, r, o, g, h, d, l, u;
7
7
  return {
8
8
  c() {
9
- e = _("div"), t = se("svg"), s = se("defs"), o = se("mask"), r = se("rect"), n = se("rect"), u = se("rect"), this.c = Q, f(r, "width", "100%"), f(r, "height", "100%"), f(r, "fill", "white"), f(n, "id", "transparent-rect"), f(n, "x", g = "calc((100% - " + /*$docDimensions*/
10
- a[2].width + "px) / 2)"), f(n, "y", h = "calc(" + /*y*/
11
- a[3] + ")"), f(n, "width", d = /*$docDimensions*/
12
- a[2].width), f(n, "height", l = /*$docDimensions*/
13
- a[2].height), f(n, "fill", "black"), f(o, "id", "transparentAreaMask"), f(u, "width", "100%"), f(u, "height", "100%"), oe(u, "fill", "rgba(" + Nt(
9
+ e = D("div"), t = se("svg"), s = se("defs"), n = se("mask"), r = se("rect"), o = se("rect"), u = se("rect"), this.c = Q, f(r, "width", "100%"), f(r, "height", "100%"), f(r, "fill", "white"), f(o, "id", "transparent-rect"), f(o, "x", g = "calc((100% - " + /*$docDimensions*/
10
+ a[2].width + "px) / 2)"), f(o, "y", h = "calc(" + /*y*/
11
+ a[3] + ")"), f(o, "width", d = /*$docDimensions*/
12
+ a[2].width), f(o, "height", l = /*$docDimensions*/
13
+ a[2].height), f(o, "fill", "black"), f(n, "id", "transparentAreaMask"), f(u, "width", "100%"), f(u, "height", "100%"), ne(u, "fill", "rgba(" + kt(
14
14
  /*videoOverlay*/
15
15
  a[0]
16
16
  ) + ", " + (1 - /*videoOverlayTransparency*/
17
17
  a[1] / 100) + ")"), f(u, "mask", "url(#transparentAreaMask)"), f(t, "class", "absolute w-full h-full"), f(t, "xmlns", "http://www.w3.org/2000/svg"), f(e, "id", "overlay-container"), f(e, "class", "flex items-center justify-center absolute inset-0");
18
18
  },
19
19
  m(c, b) {
20
- z(c, e, b), w(e, t), w(t, s), w(s, o), w(o, r), w(o, n), w(t, u);
20
+ z(c, e, b), w(e, t), w(t, s), w(s, n), w(n, r), w(n, o), w(t, u);
21
21
  },
22
22
  p(c, [b]) {
23
23
  b & /*$docDimensions*/
24
24
  4 && g !== (g = "calc((100% - " + /*$docDimensions*/
25
- c[2].width + "px) / 2)") && f(n, "x", g), b & /*y*/
25
+ c[2].width + "px) / 2)") && f(o, "x", g), b & /*y*/
26
26
  8 && h !== (h = "calc(" + /*y*/
27
- c[3] + ")") && f(n, "y", h), b & /*$docDimensions*/
27
+ c[3] + ")") && f(o, "y", h), b & /*$docDimensions*/
28
28
  4 && d !== (d = /*$docDimensions*/
29
- c[2].width) && f(n, "width", d), b & /*$docDimensions*/
29
+ c[2].width) && f(o, "width", d), b & /*$docDimensions*/
30
30
  4 && l !== (l = /*$docDimensions*/
31
- c[2].height) && f(n, "height", l), b & /*videoOverlay, videoOverlayTransparency*/
32
- 3 && oe(u, "fill", "rgba(" + Nt(
31
+ c[2].height) && f(o, "height", l), b & /*videoOverlay, videoOverlayTransparency*/
32
+ 3 && ne(u, "fill", "rgba(" + kt(
33
33
  /*videoOverlay*/
34
34
  c[0]
35
35
  ) + ", " + (1 - /*videoOverlayTransparency*/
@@ -38,47 +38,47 @@ function xi(a) {
38
38
  i: Q,
39
39
  o: Q,
40
40
  d(c) {
41
- c && S(e);
41
+ c && E(e);
42
42
  }
43
43
  };
44
44
  }
45
45
  function Ki(a, e, t) {
46
- let s, o, r;
47
- M(a, q, (l) => t(2, s = l)), M(a, bi, (l) => t(5, o = l)), M(a, ne, (l) => t(6, r = l));
48
- let { videoOverlay: n } = e, { videoOverlayTransparency: g } = e, h, d;
46
+ let s, n, r;
47
+ M(a, q, (l) => t(2, s = l)), M(a, vi, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
48
+ let { videoOverlay: o } = e, { videoOverlayTransparency: g } = e, h, d;
49
49
  return a.$$set = (l) => {
50
- "videoOverlay" in l && t(0, n = l.videoOverlay), "videoOverlayTransparency" in l && t(1, g = l.videoOverlayTransparency);
50
+ "videoOverlay" in l && t(0, o = l.videoOverlay), "videoOverlayTransparency" in l && t(1, g = l.videoOverlayTransparency);
51
51
  }, a.$$.update = () => {
52
52
  a.$$.dirty & /*$videoStore, $docDimensions, $captureBarHeight, divHeight*/
53
- 116 && r && s && (t(4, h = r.videoHeight - o), t(3, d = (h - s.height) / 2 + "px"));
53
+ 116 && r && s && (t(4, h = r.videoHeight - n), t(3, d = (h - s.height) / 2 + "px"));
54
54
  }, [
55
- n,
55
+ o,
56
56
  g,
57
57
  s,
58
58
  d,
59
59
  h,
60
- o,
60
+ n,
61
61
  r
62
62
  ];
63
63
  }
64
- class Ht extends st {
64
+ class Ut extends nt {
65
65
  constructor(e) {
66
66
  super(), ot(
67
67
  this,
68
68
  {
69
69
  target: this.shadowRoot,
70
- props: rt(this.attributes),
70
+ props: lt(this.attributes),
71
71
  customElement: !0
72
72
  },
73
73
  Ki,
74
74
  xi,
75
- nt,
75
+ rt,
76
76
  {
77
77
  videoOverlay: 0,
78
78
  videoOverlayTransparency: 1
79
79
  },
80
80
  null
81
- ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), R()));
81
+ ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
82
82
  }
83
83
  static get observedAttributes() {
84
84
  return ["videoOverlay", "videoOverlayTransparency"];
@@ -87,30 +87,30 @@ class Ht extends st {
87
87
  return this.$$.ctx[0];
88
88
  }
89
89
  set videoOverlay(e) {
90
- this.$$set({ videoOverlay: e }), R();
90
+ this.$$set({ videoOverlay: e }), j();
91
91
  }
92
92
  get videoOverlayTransparency() {
93
93
  return this.$$.ctx[1];
94
94
  }
95
95
  set videoOverlayTransparency(e) {
96
- this.$$set({ videoOverlayTransparency: e }), R();
96
+ this.$$set({ videoOverlayTransparency: e }), j();
97
97
  }
98
98
  }
99
- customElements.define("document-overlay", Ht);
100
- function St(a) {
99
+ customElements.define("document-overlay", Ut);
100
+ function Zt(a) {
101
101
  let e, t;
102
102
  return e = new Bi({}), {
103
103
  c() {
104
104
  $(e.$$.fragment);
105
105
  },
106
- m(s, o) {
107
- ee(e, s, o), t = !0;
106
+ m(s, n) {
107
+ ee(e, s, n), t = !0;
108
108
  },
109
109
  i(s) {
110
- t || (E(e.$$.fragment, s), t = !0);
110
+ t || (W(e.$$.fragment, s), t = !0);
111
111
  },
112
112
  o(s) {
113
- H(e.$$.fragment, s), t = !1;
113
+ L(e.$$.fragment, s), t = !1;
114
114
  },
115
115
  d(s) {
116
116
  te(e, s);
@@ -118,11 +118,11 @@ function St(a) {
118
118
  };
119
119
  }
120
120
  function qi(a) {
121
- let e, t, s, o, r, n, g, h, d, l, u = (
121
+ let e, t, s, n, r, o, g, h, d, l, u = (
122
122
  /*showWatermark*/
123
- a[3] && St()
123
+ a[3] && Zt()
124
124
  );
125
- return d = new Ht({
125
+ return d = new Ut({
126
126
  props: {
127
127
  videoOverlay: (
128
128
  /*videoOverlay*/
@@ -139,7 +139,7 @@ function qi(a) {
139
139
  }
140
140
  }), {
141
141
  c() {
142
- e = _("div"), t = _("div"), s = _("div"), o = _("img"), n = L(), u && u.c(), h = L(), $(d.$$.fragment), this.c = Q, De(o.src, r = Ji) || f(o, "src", r), f(o, "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*/
142
+ e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = H(), u && u.c(), h = H(), $(d.$$.fragment), this.c = Q, pe(n.src, r = Ji) || 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
143
  (a[0] ? "doc-loading" : "") + " z-10"), f(
144
144
  e,
145
145
  "style",
@@ -148,14 +148,14 @@ function qi(a) {
148
148
  );
149
149
  },
150
150
  m(c, b) {
151
- z(c, e, b), w(e, t), w(t, s), w(s, o), w(e, n), u && u.m(e, null), z(c, h, b), ee(d, c, b), l = !0;
151
+ z(c, e, b), w(e, t), w(t, s), w(s, n), w(e, o), u && u.m(e, null), z(c, h, b), ee(d, c, b), l = !0;
152
152
  },
153
153
  p(c, [b]) {
154
154
  /*showWatermark*/
155
155
  c[3] ? u ? b & /*showWatermark*/
156
- 8 && E(u, 1) : (u = St(), u.c(), E(u, 1), u.m(e, null)) : u && (pe(), H(u, 1, 1, () => {
156
+ 8 && W(u, 1) : (u = Zt(), u.c(), W(u, 1), u.m(e, null)) : u && (Te(), L(u, 1, 1, () => {
157
157
  u = null;
158
- }), Te()), (!l || b & /*loading*/
158
+ }), Ae()), (!l || b & /*loading*/
159
159
  1 && g !== (g = "doc-loader " + /*loading*/
160
160
  (c[0] ? "doc-loading" : "") + " z-10")) && f(e, "class", g), (!l || b & /*styleVars*/
161
161
  32) && f(
@@ -174,26 +174,26 @@ function qi(a) {
174
174
  c[4]), d.$set(I);
175
175
  },
176
176
  i(c) {
177
- l || (E(u), E(d.$$.fragment, c), l = !0);
177
+ l || (W(u), W(d.$$.fragment, c), l = !0);
178
178
  },
179
179
  o(c) {
180
- H(u), H(d.$$.fragment, c), l = !1;
180
+ L(u), L(d.$$.fragment, c), l = !1;
181
181
  },
182
182
  d(c) {
183
- c && S(e), u && u.d(), c && S(h), te(d, c);
183
+ c && E(e), u && u.d(), c && E(h), te(d, c);
184
184
  }
185
185
  };
186
186
  }
187
- const at = 1.36, $i = "hsl(var(--p))", ea = "hsl(var(--su))";
187
+ const st = 1.36, $i = "hsl(var(--p))", ea = "hsl(var(--su))";
188
188
  function ta(a, e, t) {
189
- let s, o, r;
190
- M(a, q, (I) => t(9, o = I)), M(a, ne, (I) => t(10, r = I));
191
- let { loading: n } = e, { videoOverlay: g = "" } = e, { videoOverlayTransparency: h = 100 } = e, { showWatermark: d } = e, l, u, c = 6, b = 0.7;
192
- return X() && (b = 0.85, c = 5), a.$$set = (I) => {
193
- "loading" in I && t(0, n = I.loading), "videoOverlay" in I && t(1, g = I.videoOverlay), "videoOverlayTransparency" in I && t(2, h = I.videoOverlayTransparency), "showWatermark" in I && t(3, d = I.showWatermark);
189
+ let s, n, r;
190
+ M(a, q, (I) => t(9, n = I)), M(a, oe, (I) => t(10, r = I));
191
+ let { loading: o } = e, { videoOverlay: g = "" } = e, { videoOverlayTransparency: h = 100 } = e, { showWatermark: d } = e, l, u, c = 6, b = 0.7;
192
+ return Y() && (b = 0.85, c = 5), a.$$set = (I) => {
193
+ "loading" in I && t(0, o = I.loading), "videoOverlay" in I && t(1, g = I.videoOverlay), "videoOverlayTransparency" in I && t(2, h = I.videoOverlayTransparency), "showWatermark" in I && t(3, d = I.showWatermark);
194
194
  }, a.$$.update = () => {
195
195
  a.$$.dirty & /*$videoStore, percentage, rectangleHeight, rectangleWidth, $docDimensions*/
196
- 1984 && r && (r.videoWidth / r.videoHeight > at ? (t(7, u = r.videoHeight * b), t(6, l = u * at)) : (t(6, l = r.videoWidth * b), t(7, u = l / at)), v(q, o.width = l, o), v(q, o.height = u, o), v(q, o.x = (r.videoWidth - o.width) / 2, o), v(q, o.y = (r.videoHeight - o.height) / 2, o)), a.$$.dirty & /*rectangleWidth, rectangleHeight, borderWidth*/
196
+ 1984 && r && (r.videoWidth / r.videoHeight > st ? (t(7, u = r.videoHeight * b), t(6, l = u * st)) : (t(6, l = r.videoWidth * b), t(7, u = l / st)), v(q, n.width = l, n), v(q, n.height = u, n), v(q, n.x = (r.videoWidth - n.width) / 2, n), v(q, n.y = (r.videoHeight - n.height) / 2, n)), a.$$.dirty & /*rectangleWidth, rectangleHeight, borderWidth*/
197
197
  208 && t(5, s = `
198
198
  --rectangle-width: ${l}px;
199
199
  --rectangle-height: ${u}px;
@@ -202,7 +202,7 @@ function ta(a, e, t) {
202
202
  --rectangle-border: ${c}px;
203
203
  `);
204
204
  }, [
205
- n,
205
+ o,
206
206
  g,
207
207
  h,
208
208
  d,
@@ -211,22 +211,22 @@ function ta(a, e, t) {
211
211
  l,
212
212
  u,
213
213
  b,
214
- o,
214
+ n,
215
215
  r
216
216
  ];
217
217
  }
218
- class Ut extends st {
218
+ class Bt extends nt {
219
219
  constructor(e) {
220
220
  super(), ot(
221
221
  this,
222
222
  {
223
223
  target: this.shadowRoot,
224
- props: rt(this.attributes),
224
+ props: lt(this.attributes),
225
225
  customElement: !0
226
226
  },
227
227
  ta,
228
228
  qi,
229
- nt,
229
+ rt,
230
230
  {
231
231
  loading: 0,
232
232
  videoOverlay: 1,
@@ -234,7 +234,7 @@ class Ut extends st {
234
234
  showWatermark: 3
235
235
  },
236
236
  null
237
- ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), R()));
237
+ ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
238
238
  }
239
239
  static get observedAttributes() {
240
240
  return ["loading", "videoOverlay", "videoOverlayTransparency", "showWatermark"];
@@ -243,32 +243,32 @@ class Ut extends st {
243
243
  return this.$$.ctx[0];
244
244
  }
245
245
  set loading(e) {
246
- this.$$set({ loading: e }), R();
246
+ this.$$set({ loading: e }), j();
247
247
  }
248
248
  get videoOverlay() {
249
249
  return this.$$.ctx[1];
250
250
  }
251
251
  set videoOverlay(e) {
252
- this.$$set({ videoOverlay: e }), R();
252
+ this.$$set({ videoOverlay: e }), j();
253
253
  }
254
254
  get videoOverlayTransparency() {
255
255
  return this.$$.ctx[2];
256
256
  }
257
257
  set videoOverlayTransparency(e) {
258
- this.$$set({ videoOverlayTransparency: e }), R();
258
+ this.$$set({ videoOverlayTransparency: e }), j();
259
259
  }
260
260
  get showWatermark() {
261
261
  return this.$$.ctx[3];
262
262
  }
263
263
  set showWatermark(e) {
264
- this.$$set({ showWatermark: e }), R();
264
+ this.$$set({ showWatermark: e }), j();
265
265
  }
266
266
  }
267
- customElements.define("doc-rectangle", Ut);
268
- function Zt(a) {
269
- let e, t, s, o, r, n, g, h, d, l, u, c, b, I, Z, m, y, O, A = (
267
+ customElements.define("doc-rectangle", Bt);
268
+ function Pt(a) {
269
+ let e, t, s, n, r, o, g, h, d, l, u, c, b, I, Z, m, C, O, A = (
270
270
  /*$ready*/
271
- a[12] && Pt(a)
271
+ a[12] && Ft(a)
272
272
  );
273
273
  return u = new Pi({}), b = new Gi({
274
274
  props: {
@@ -295,13 +295,13 @@ function Zt(a) {
295
295
  }
296
296
  }), {
297
297
  c() {
298
- e = _("div"), t = _("div"), s = _("video"), r = L(), n = _("canvas"), g = L(), h = _("div"), d = _("div"), A && A.c(), l = L(), $(u.$$.fragment), c = L(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", o = /*$ready*/
299
- 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(n, "id", "bry-ce-detectionsCanvas"), f(n, "class", "absolute top-0 left-0 max-w-full"), f(t, "class", "overflow-hidden"), oe(
298
+ 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*/
299
+ a[12] ? Y() ? "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(
300
300
  t,
301
301
  "width",
302
302
  /*$videoStore*/
303
303
  a[13].videoWidth + "px"
304
- ), oe(
304
+ ), ne(
305
305
  t,
306
306
  "height",
307
307
  /*$videoStore*/
@@ -310,13 +310,13 @@ function Zt(a) {
310
310
  a[12] ? "relative" : "relative w-0 h-0"), e.hidden = Z = /*$cameraStatusStore*/
311
311
  a[11] !== F.OK;
312
312
  },
313
- m(T, j) {
314
- z(T, e, j), w(e, t), w(t, s), a[33](s), w(t, r), w(t, n), a[35](n), 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 || (O = [
313
+ m(T, R) {
314
+ 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, C || (O = [
315
315
  le(
316
316
  s,
317
317
  "canplay",
318
318
  /*canplay_handler*/
319
- a[34]
319
+ a[35]
320
320
  ),
321
321
  le(
322
322
  s,
@@ -325,56 +325,56 @@ function Zt(a) {
325
325
  a[6],
326
326
  { once: !0 }
327
327
  )
328
- ], y = !0);
328
+ ], C = !0);
329
329
  },
330
- p(T, j) {
331
- (!m || j[0] & /*$ready*/
332
- 4096 && o !== (o = /*$ready*/
333
- T[12] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", o), (!m || j[0] & /*$videoStore*/
334
- 8192) && oe(
330
+ p(T, R) {
331
+ (!m || R[0] & /*$ready*/
332
+ 4096 && n !== (n = /*$ready*/
333
+ T[12] ? Y() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && f(s, "class", n), (!m || R[0] & /*$videoStore*/
334
+ 8192) && ne(
335
335
  t,
336
336
  "width",
337
337
  /*$videoStore*/
338
338
  T[13].videoWidth + "px"
339
- ), (!m || j[0] & /*$videoStore*/
340
- 8192) && oe(
339
+ ), (!m || R[0] & /*$videoStore*/
340
+ 8192) && ne(
341
341
  t,
342
342
  "height",
343
343
  /*$videoStore*/
344
344
  T[13].videoHeight + "px"
345
345
  ), /*$ready*/
346
- T[12] ? A ? (A.p(T, j), j[0] & /*$ready*/
347
- 4096 && E(A, 1)) : (A = Pt(T), A.c(), E(A, 1), A.m(d, null)) : A && (pe(), H(A, 1, 1, () => {
346
+ T[12] ? A ? (A.p(T, R), R[0] & /*$ready*/
347
+ 4096 && W(A, 1)) : (A = Ft(T), A.c(), W(A, 1), A.m(d, null)) : A && (Te(), L(A, 1, 1, () => {
348
348
  A = null;
349
- }), Te());
349
+ }), Ae());
350
350
  const P = {};
351
- j[0] & /*showConfigButton*/
351
+ R[0] & /*showConfigButton*/
352
352
  2 && (P.showConfigButton = /*showConfigButton*/
353
- T[1]), j[0] & /*showCameraButton*/
353
+ T[1]), R[0] & /*showCameraButton*/
354
354
  4 && (P.showCameraButton = /*showCameraButton*/
355
- T[2]), j[0] & /*videoOverlay*/
355
+ T[2]), R[0] & /*videoOverlay*/
356
356
  8 && (P.videoOverlay = /*videoOverlay*/
357
- T[3]), j[0] & /*videoOverlayTransparency*/
357
+ T[3]), R[0] & /*videoOverlayTransparency*/
358
358
  16 && (P.videoOverlayTransparency = /*videoOverlayTransparency*/
359
- T[4]), b.$set(P), (!m || j[0] & /*$ready*/
359
+ T[4]), b.$set(P), (!m || R[0] & /*$ready*/
360
360
  4096 && I !== (I = /*$ready*/
361
- T[12] ? "relative" : "relative w-0 h-0")) && f(e, "class", I), (!m || j[0] & /*$cameraStatusStore*/
361
+ T[12] ? "relative" : "relative w-0 h-0")) && f(e, "class", I), (!m || R[0] & /*$cameraStatusStore*/
362
362
  2048 && Z !== (Z = /*$cameraStatusStore*/
363
363
  T[11] !== F.OK)) && (e.hidden = Z);
364
364
  },
365
365
  i(T) {
366
- m || (E(A), E(u.$$.fragment, T), E(b.$$.fragment, T), m = !0);
366
+ m || (W(A), W(u.$$.fragment, T), W(b.$$.fragment, T), m = !0);
367
367
  },
368
368
  o(T) {
369
- H(A), H(u.$$.fragment, T), H(b.$$.fragment, T), m = !1;
369
+ L(A), L(u.$$.fragment, T), L(b.$$.fragment, T), m = !1;
370
370
  },
371
371
  d(T) {
372
- T && S(e), a[33](null), a[35](null), A && A.d(), te(u), te(b), y = !1, lt(O);
372
+ T && E(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ct(O);
373
373
  }
374
374
  };
375
375
  }
376
- function Pt(a) {
377
- let e, t, s, o;
376
+ function Ft(a) {
377
+ let e, t, s, n;
378
378
  return e = new Qi({
379
379
  props: {
380
380
  isCountingDown: (
@@ -382,7 +382,7 @@ function Pt(a) {
382
382
  a[10]
383
383
  )
384
384
  }
385
- }), s = new Ut({
385
+ }), s = new Bt({
386
386
  props: {
387
387
  loading: (
388
388
  /*isCountingDown*/
@@ -403,59 +403,59 @@ function Pt(a) {
403
403
  }
404
404
  }), {
405
405
  c() {
406
- $(e.$$.fragment), t = L(), $(s.$$.fragment);
406
+ $(e.$$.fragment), t = H(), $(s.$$.fragment);
407
407
  },
408
- m(r, n) {
409
- ee(e, r, n), z(r, t, n), ee(s, r, n), o = !0;
408
+ m(r, o) {
409
+ ee(e, r, o), z(r, t, o), ee(s, r, o), n = !0;
410
410
  },
411
- p(r, n) {
411
+ p(r, o) {
412
412
  const g = {};
413
- n[0] & /*isCountingDown*/
413
+ o[0] & /*isCountingDown*/
414
414
  1024 && (g.isCountingDown = /*isCountingDown*/
415
415
  r[10]), e.$set(g);
416
416
  const h = {};
417
- n[0] & /*isCountingDown*/
417
+ o[0] & /*isCountingDown*/
418
418
  1024 && (h.loading = /*isCountingDown*/
419
- r[10]), n[0] & /*videoOverlay*/
419
+ r[10]), o[0] & /*videoOverlay*/
420
420
  8 && (h.videoOverlay = /*videoOverlay*/
421
- r[3]), n[0] & /*videoOverlayTransparency*/
421
+ r[3]), o[0] & /*videoOverlayTransparency*/
422
422
  16 && (h.videoOverlayTransparency = /*videoOverlayTransparency*/
423
- r[4]), n[0] & /*showWatermark*/
423
+ r[4]), o[0] & /*showWatermark*/
424
424
  32 && (h.showWatermark = /*showWatermark*/
425
425
  r[5]), s.$set(h);
426
426
  },
427
427
  i(r) {
428
- o || (E(e.$$.fragment, r), E(s.$$.fragment, r), o = !0);
428
+ n || (W(e.$$.fragment, r), W(s.$$.fragment, r), n = !0);
429
429
  },
430
430
  o(r) {
431
- H(e.$$.fragment, r), H(s.$$.fragment, r), o = !1;
431
+ L(e.$$.fragment, r), L(s.$$.fragment, r), n = !1;
432
432
  },
433
433
  d(r) {
434
- te(e, r), r && S(t), te(s, r);
434
+ te(e, r), r && E(t), te(s, r);
435
435
  }
436
436
  };
437
437
  }
438
- function Ft(a) {
439
- let e, t, s, o, r;
440
- function n(d, l) {
438
+ function Ht(a) {
439
+ let e, t, s, n, r;
440
+ function o(d, l) {
441
441
  return (
442
442
  /*$isLoading*/
443
443
  d[21] ? aa : ia
444
444
  );
445
445
  }
446
- let g = n(a), h = g(a);
446
+ let g = o(a), h = g(a);
447
447
  return {
448
448
  c() {
449
- e = _("slot"), t = _("div"), s = _("img"), r = L(), h.c(), De(s.src, o = Fi) || f(s, "src", o), 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]");
449
+ e = D("slot"), t = D("div"), s = D("img"), r = H(), h.c(), pe(s.src, n = Fi) || 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
450
  },
451
451
  m(d, l) {
452
452
  z(d, e, l), w(e, t), w(t, s), w(t, r), h.m(t, null);
453
453
  },
454
454
  p(d, l) {
455
- g === (g = n(d)) && h ? h.p(d, l) : (h.d(1), h = g(d), h && (h.c(), h.m(t, null)));
455
+ g === (g = o(d)) && h ? h.p(d, l) : (h.d(1), h = g(d), h && (h.c(), h.m(t, null)));
456
456
  },
457
457
  d(d) {
458
- d && S(e), h.d();
458
+ d && E(e), h.d();
459
459
  }
460
460
  };
461
461
  }
@@ -466,18 +466,18 @@ function ia(a) {
466
466
  ), s;
467
467
  return {
468
468
  c() {
469
- e = _("span"), s = V(t), f(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
469
+ e = D("span"), s = V(t), f(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
470
470
  },
471
- m(o, r) {
472
- z(o, e, r), w(e, s);
471
+ m(n, r) {
472
+ z(n, e, r), w(e, s);
473
473
  },
474
- p(o, r) {
474
+ p(n, r) {
475
475
  r[0] & /*$_*/
476
476
  524288 && t !== (t = /*$_*/
477
- o[19]("faceCollector.initiatingCamera") + "") && J(s, t);
477
+ n[19]("faceCollector.initiatingCamera") + "") && J(s, t);
478
478
  },
479
- d(o) {
480
- o && S(e);
479
+ d(n) {
480
+ n && E(e);
481
481
  }
482
482
  };
483
483
  }
@@ -485,14 +485,14 @@ function aa(a) {
485
485
  let e;
486
486
  return {
487
487
  c() {
488
- e = _("span"), e.textContent = "Loading camera...", f(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
488
+ e = D("span"), e.textContent = "Loading camera...", f(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
489
489
  },
490
490
  m(t, s) {
491
491
  z(t, e, s);
492
492
  },
493
493
  p: Q,
494
494
  d(t) {
495
- t && S(e);
495
+ t && E(e);
496
496
  }
497
497
  };
498
498
  }
@@ -500,85 +500,85 @@ function Lt(a) {
500
500
  let e, t, s = (
501
501
  /*$_*/
502
502
  a[19]("faceCollector.finish") + ""
503
- ), o, r, n, g, h = (
503
+ ), n, r, o, g, h = (
504
504
  /*$_*/
505
505
  a[19]("faceCollector.retakePhoto") + ""
506
506
  ), d, l, u;
507
507
  return {
508
508
  c() {
509
- e = _("div"), t = _("button"), o = V(s), n = L(), g = _("button"), d = V(h), t.disabled = r = /*$justification*/
509
+ e = D("div"), t = D("button"), n = V(s), o = H(), g = D("button"), d = V(h), t.disabled = r = /*$justification*/
510
510
  a[16].length === 0, f(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(g, "id", "bry-cc-retake-button"), f(g, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(e, "class", "ce-dui-btn-group flex");
511
511
  },
512
512
  m(c, b) {
513
- z(c, e, b), w(e, t), w(t, o), w(e, n), w(e, g), w(g, d), l || (u = [
513
+ z(c, e, b), w(e, t), w(t, n), w(e, o), w(e, g), w(g, d), l || (u = [
514
514
  le(
515
515
  t,
516
516
  "click",
517
517
  /*click_handler*/
518
- a[36]
518
+ a[37]
519
519
  ),
520
520
  le(
521
521
  g,
522
522
  "click",
523
523
  /*click_handler_1*/
524
- a[37]
524
+ a[38]
525
525
  )
526
526
  ], l = !0);
527
527
  },
528
528
  p(c, b) {
529
529
  b[0] & /*$_*/
530
530
  524288 && s !== (s = /*$_*/
531
- c[19]("faceCollector.finish") + "") && J(o, s), b[0] & /*$justification*/
531
+ c[19]("faceCollector.finish") + "") && J(n, s), b[0] & /*$justification*/
532
532
  65536 && r !== (r = /*$justification*/
533
533
  c[16].length === 0) && (t.disabled = r), b[0] & /*$_*/
534
534
  524288 && h !== (h = /*$_*/
535
535
  c[19]("faceCollector.retakePhoto") + "") && J(d, h);
536
536
  },
537
537
  d(c) {
538
- c && S(e), l = !1, lt(u);
538
+ c && E(e), l = !1, ct(u);
539
539
  }
540
540
  };
541
541
  }
542
542
  function sa(a) {
543
543
  let e, t;
544
- return e = new Yi({ props: { handler: (
544
+ return e = new Xi({ props: { handler: (
545
545
  /*func*/
546
- a[41]
546
+ a[42]
547
547
  ) } }), {
548
548
  c() {
549
549
  $(e.$$.fragment);
550
550
  },
551
- m(s, o) {
552
- ee(e, s, o), t = !0;
551
+ m(s, n) {
552
+ ee(e, s, n), t = !0;
553
553
  },
554
554
  p: Q,
555
555
  i(s) {
556
- t || (E(e.$$.fragment, s), t = !0);
556
+ t || (W(e.$$.fragment, s), t = !0);
557
557
  },
558
558
  o(s) {
559
- H(e.$$.fragment, s), t = !1;
559
+ L(e.$$.fragment, s), t = !1;
560
560
  },
561
561
  d(s) {
562
562
  te(e, s);
563
563
  }
564
564
  };
565
565
  }
566
- function oa(a) {
567
- let e, t, s, o, r, n;
566
+ function na(a) {
567
+ let e, t, s, n, r, o;
568
568
  function g(l, u) {
569
569
  return (
570
570
  /*$captured*/
571
- l[14] ? na : ra
571
+ l[14] ? oa : ra
572
572
  );
573
573
  }
574
574
  let h = g(a), d = h(a);
575
575
  return {
576
576
  c() {
577
- e = _("div"), t = _("img"), r = L(), d.c(), f(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), De(t.src, s = /*$dataTypePrefix*/
577
+ e = D("div"), t = D("img"), r = H(), d.c(), f(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), pe(t.src, s = /*$dataTypePrefix*/
578
578
  a[20] + "," + /*$image*/
579
- a[17]) || f(t, "src", s), t.hidden = o = !/*$captured*/
579
+ a[17]) || f(t, "src", s), t.hidden = n = !/*$captured*/
580
580
  a[14] || !/*$showFaceWhileValidating*/
581
- a[22], f(t, "alt", ""), f(e, "class", n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
581
+ a[22], f(t, "alt", ""), f(e, "class", o = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
582
582
  a[22] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"));
583
583
  },
584
584
  m(l, u) {
@@ -586,74 +586,74 @@ function oa(a) {
586
586
  },
587
587
  p(l, u) {
588
588
  u[0] & /*$dataTypePrefix, $image*/
589
- 1179648 && !De(t.src, s = /*$dataTypePrefix*/
589
+ 1179648 && !pe(t.src, s = /*$dataTypePrefix*/
590
590
  l[20] + "," + /*$image*/
591
591
  l[17]) && f(t, "src", s), u[0] & /*$captured, $showFaceWhileValidating*/
592
- 4210688 && o !== (o = !/*$captured*/
592
+ 4210688 && n !== (n = !/*$captured*/
593
593
  l[14] || !/*$showFaceWhileValidating*/
594
- l[22]) && (t.hidden = o), h === (h = g(l)) && d ? d.p(l, u) : (d.d(1), d = h(l), d && (d.c(), d.m(e, null))), u[0] & /*$showFaceWhileValidating*/
595
- 4194304 && n !== (n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
596
- l[22] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible")) && f(e, "class", n);
594
+ l[22]) && (t.hidden = n), h === (h = g(l)) && d ? d.p(l, u) : (d.d(1), d = h(l), d && (d.c(), d.m(e, null))), u[0] & /*$showFaceWhileValidating*/
595
+ 4194304 && o !== (o = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
596
+ l[22] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible")) && f(e, "class", o);
597
597
  },
598
598
  i: Q,
599
599
  o: Q,
600
600
  d(l) {
601
- l && S(e), d.d();
601
+ l && E(e), d.d();
602
602
  }
603
603
  };
604
604
  }
605
- function na(a) {
606
- let e, t, s, o, r = (
605
+ function oa(a) {
606
+ let e, t, s, n, r = (
607
607
  /*$_*/
608
608
  a[19]("faceCollector.finish") + ""
609
- ), n, g, h, d, l = (
609
+ ), o, g, h, d, l = (
610
610
  /*$_*/
611
611
  a[19]("faceCollector.retakePhoto") + ""
612
612
  ), u, c, b;
613
- function I(y, O) {
613
+ function I(C, O) {
614
614
  return (
615
615
  /*$requestResult*/
616
- y[18] === re.TEMPLATE_EXTRACTION_ERROR ? ua : (
616
+ C[18] === re.TEMPLATE_EXTRACTION_ERROR ? ua : (
617
617
  /*$saved*/
618
- y[15] ? la : ca
618
+ C[15] ? la : ca
619
619
  )
620
620
  );
621
621
  }
622
622
  let Z = I(a), m = Z(a);
623
623
  return {
624
624
  c() {
625
- e = _("div"), m.c(), t = L(), s = _("div"), o = _("button"), n = V(r), h = L(), d = _("button"), u = V(l), o.disabled = g = /*$saved*/
625
+ e = D("div"), m.c(), t = H(), s = D("div"), n = D("button"), o = V(r), h = H(), d = D("button"), u = V(l), n.disabled = g = /*$saved*/
626
626
  a[15] || /*$requestResult*/
627
- a[18] !== re.OK, f(o, "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");
627
+ 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");
628
628
  },
629
- m(y, O) {
630
- z(y, e, O), m.m(e, null), w(e, t), w(e, s), w(s, o), w(o, n), w(s, h), w(s, d), w(d, u), c || (b = [
629
+ m(C, O) {
630
+ z(C, 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 = [
631
631
  le(
632
- o,
632
+ n,
633
633
  "click",
634
634
  /*click_handler_2*/
635
- a[39]
635
+ a[40]
636
636
  ),
637
637
  le(
638
638
  d,
639
639
  "click",
640
640
  /*click_handler_3*/
641
- a[40]
641
+ a[41]
642
642
  )
643
643
  ], c = !0);
644
644
  },
645
- p(y, O) {
646
- Z === (Z = I(y)) && m ? m.p(y, O) : (m.d(1), m = Z(y), m && (m.c(), m.m(e, t))), O[0] & /*$_*/
645
+ p(C, O) {
646
+ Z === (Z = I(C)) && m ? m.p(C, O) : (m.d(1), m = Z(C), m && (m.c(), m.m(e, t))), O[0] & /*$_*/
647
647
  524288 && r !== (r = /*$_*/
648
- y[19]("faceCollector.finish") + "") && J(n, r), O[0] & /*$saved, $requestResult*/
648
+ C[19]("faceCollector.finish") + "") && J(o, r), O[0] & /*$saved, $requestResult*/
649
649
  294912 && g !== (g = /*$saved*/
650
- y[15] || /*$requestResult*/
651
- y[18] !== re.OK) && (o.disabled = g), O[0] & /*$_*/
650
+ C[15] || /*$requestResult*/
651
+ C[18] !== re.OK) && (n.disabled = g), O[0] & /*$_*/
652
652
  524288 && l !== (l = /*$_*/
653
- y[19]("faceCollector.retakePhoto") + "") && J(u, l);
653
+ C[19]("faceCollector.retakePhoto") + "") && J(u, l);
654
654
  },
655
- d(y) {
656
- y && S(e), m.d(), c = !1, lt(b);
655
+ d(C) {
656
+ C && E(e), m.d(), c = !1, ct(b);
657
657
  }
658
658
  };
659
659
  }
@@ -661,14 +661,14 @@ function ra(a) {
661
661
  let e;
662
662
  return {
663
663
  c() {
664
- e = _("div"), f(e, "class", "");
664
+ e = D("div"), f(e, "class", "");
665
665
  },
666
666
  m(t, s) {
667
667
  z(t, e, s);
668
668
  },
669
669
  p: Q,
670
670
  d(t) {
671
- t && S(e);
671
+ t && E(e);
672
672
  }
673
673
  };
674
674
  }
@@ -679,18 +679,18 @@ function la(a) {
679
679
  ), s;
680
680
  return {
681
681
  c() {
682
- e = _("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
682
+ e = D("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
683
683
  },
684
- m(o, r) {
685
- z(o, e, r), w(e, s);
684
+ m(n, r) {
685
+ z(n, e, r), w(e, s);
686
686
  },
687
- p(o, r) {
687
+ p(n, r) {
688
688
  r[0] & /*$_*/
689
689
  524288 && t !== (t = /*$_*/
690
- o[19]("docCollector.captured") + "") && J(s, t);
690
+ n[19]("docCollector.captured") + "") && J(s, t);
691
691
  },
692
- d(o) {
693
- o && S(e);
692
+ d(n) {
693
+ n && E(e);
694
694
  }
695
695
  };
696
696
  }
@@ -701,18 +701,18 @@ function ca(a) {
701
701
  ), s;
702
702
  return {
703
703
  c() {
704
- e = _("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
704
+ e = D("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
705
705
  },
706
- m(o, r) {
707
- z(o, e, r), w(e, s);
706
+ m(n, r) {
707
+ z(n, e, r), w(e, s);
708
708
  },
709
- p(o, r) {
709
+ p(n, r) {
710
710
  r[0] & /*$_*/
711
711
  524288 && t !== (t = /*$_*/
712
- o[19]("faceCollector.everythingOk") + "") && J(s, t);
712
+ n[19]("faceCollector.everythingOk") + "") && J(s, t);
713
713
  },
714
- d(o) {
715
- o && S(e);
714
+ d(n) {
715
+ n && E(e);
716
716
  }
717
717
  };
718
718
  }
@@ -723,33 +723,33 @@ function ua(a) {
723
723
  ), s;
724
724
  return {
725
725
  c() {
726
- e = _("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
726
+ e = D("h1"), s = V(t), f(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
727
727
  },
728
- m(o, r) {
729
- z(o, e, r), w(e, s);
728
+ m(n, r) {
729
+ z(n, e, r), w(e, s);
730
730
  },
731
- p(o, r) {
731
+ p(n, r) {
732
732
  r[0] & /*$_*/
733
733
  524288 && t !== (t = /*$_*/
734
- o[19]("docCollector.docNotFound") + "") && J(s, t);
734
+ n[19]("docCollector.docNotFound") + "") && J(s, t);
735
735
  },
736
- d(o) {
737
- o && S(e);
736
+ d(n) {
737
+ n && E(e);
738
738
  }
739
739
  };
740
740
  }
741
741
  function da(a) {
742
- let e, t, s, o, r, n, g, h, d, l = (
742
+ let e, t, s, n, r, o, g, h, d, l = (
743
743
  /*$videoStore*/
744
- a[13] && Zt(a)
744
+ a[13] && Pt(a)
745
745
  ), u = !/*$ready*/
746
746
  a[12] && /*$cameraStatusStore*/
747
- a[11] === F.OK && Ft(a), c = (
747
+ a[11] === F.OK && Ht(a), c = (
748
748
  /*$captured*/
749
749
  a[14] && Lt(a)
750
750
  );
751
- const b = [oa, sa], I = [];
752
- function Z(m, y) {
751
+ const b = [na, sa], I = [];
752
+ function Z(m, C) {
753
753
  return (
754
754
  /*showUnconformities*/
755
755
  m[0] && /*$captured*/
@@ -759,126 +759,121 @@ function da(a) {
759
759
  )
760
760
  );
761
761
  }
762
- return ~(n = Z(a)) && (g = I[n] = b[n](a)), {
762
+ return ~(o = Z(a)) && (g = I[o] = b[o](a)), {
763
763
  c() {
764
- e = _("div"), t = _("div"), l && l.c(), s = L(), u && u.c(), o = L(), c && c.c(), r = L(), g && g.c(), h = vi(), this.c = Q, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
764
+ e = D("div"), t = D("div"), l && l.c(), s = H(), u && u.c(), n = H(), c && c.c(), r = H(), g && g.c(), h = Ii(), this.c = Q, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
765
765
  },
766
- m(m, y) {
767
- z(m, e, y), w(e, t), l && l.m(t, null), w(t, s), u && u.m(t, null), w(t, o), c && c.m(t, null), a[38](e), z(m, r, y), ~n && I[n].m(m, y), z(m, h, y), d = !0;
766
+ m(m, C) {
767
+ z(m, e, C), w(e, t), l && l.m(t, null), w(t, s), u && u.m(t, null), w(t, n), c && c.m(t, null), a[39](e), z(m, r, C), ~o && I[o].m(m, C), z(m, h, C), d = !0;
768
768
  },
769
- p(m, y) {
769
+ p(m, C) {
770
770
  /*$videoStore*/
771
- m[13] ? l ? (l.p(m, y), y[0] & /*$videoStore*/
772
- 8192 && E(l, 1)) : (l = Zt(m), l.c(), E(l, 1), l.m(t, s)) : l && (pe(), H(l, 1, 1, () => {
771
+ m[13] ? l ? (l.p(m, C), C[0] & /*$videoStore*/
772
+ 8192 && W(l, 1)) : (l = Pt(m), l.c(), W(l, 1), l.m(t, s)) : l && (Te(), L(l, 1, 1, () => {
773
773
  l = null;
774
- }), Te()), !/*$ready*/
774
+ }), Ae()), !/*$ready*/
775
775
  m[12] && /*$cameraStatusStore*/
776
- m[11] === F.OK ? u ? u.p(m, y) : (u = Ft(m), u.c(), u.m(t, o)) : u && (u.d(1), u = null), /*$captured*/
777
- m[14] ? c ? c.p(m, y) : (c = Lt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
778
- let O = n;
779
- n = Z(m), n === O ? ~n && I[n].p(m, y) : (g && (pe(), H(I[O], 1, 1, () => {
776
+ m[11] === F.OK ? u ? u.p(m, C) : (u = Ht(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
777
+ m[14] ? c ? c.p(m, C) : (c = Lt(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
778
+ let O = o;
779
+ o = Z(m), o === O ? ~o && I[o].p(m, C) : (g && (Te(), L(I[O], 1, 1, () => {
780
780
  I[O] = null;
781
- }), Te()), ~n ? (g = I[n], g ? g.p(m, y) : (g = I[n] = b[n](m), g.c()), E(g, 1), g.m(h.parentNode, h)) : g = null);
781
+ }), Ae()), ~o ? (g = I[o], g ? g.p(m, C) : (g = I[o] = b[o](m), g.c()), W(g, 1), g.m(h.parentNode, h)) : g = null);
782
782
  },
783
783
  i(m) {
784
- d || (E(l), E(g), d = !0);
784
+ d || (W(l), W(g), d = !0);
785
785
  },
786
786
  o(m) {
787
- H(l), H(g), d = !1;
787
+ L(l), L(g), d = !1;
788
788
  },
789
789
  d(m) {
790
- m && S(e), l && l.d(), u && u.d(), c && c.d(), a[38](null), m && S(r), ~n && I[n].d(m), m && S(h);
790
+ m && E(e), l && l.d(), u && u.d(), c && c.d(), a[39](null), m && E(r), ~o && I[o].d(m), m && E(h);
791
791
  }
792
792
  };
793
793
  }
794
794
  let fa = !1, ga = 0;
795
795
  function ha(a, e, t) {
796
- const s = e.videoWidth / e.videoHeight, o = t.width / t.height;
797
- let r = 0, n = 0, g = e.videoWidth, h = e.videoHeight;
798
- s > o ? (g = e.videoHeight * o, r = (e.videoWidth - g) / 2) : s < o && (h = e.videoWidth / o, n = (e.videoHeight - h) / 2), a.drawImage(e, r, n, g, h, 0, 0, t.width, t.height);
796
+ const s = e.videoWidth / e.videoHeight, n = t.width / t.height;
797
+ let r = 0, o = 0, g = e.videoWidth, h = e.videoHeight;
798
+ 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);
799
799
  }
800
800
  function ma(a, e, t) {
801
- let s, o, r, n, g, h, d, l, u, c, b, I, Z, m, y, O, A, T, j, P, Ae, x, de, K, ct, ut, dt;
802
- M(a, Ye, (i) => t(55, s = i)), M(a, be, (i) => t(57, r = i)), M(a, G, (i) => t(11, n = i)), M(a, ve, (i) => t(12, g = i)), M(a, Ii, (i) => t(58, h = i)), M(a, Ie, (i) => t(59, d = i)), M(a, wi, (i) => t(60, l = i)), M(a, ue, (i) => t(61, u = i)), M(a, ne, (i) => t(13, c = i)), M(a, we, (i) => t(14, b = i)), M(a, Xe, (i) => t(62, I = i)), M(a, Ve, (i) => t(63, Z = i)), M(a, kt, (i) => t(64, m = i)), M(a, q, (i) => t(65, y = i)), M(a, Ce, (i) => t(66, O = i)), M(a, Je, (i) => t(15, A = i)), M(a, Ci, (i) => t(16, T = i)), M(a, zt, (i) => t(17, j = i)), M(a, ye, (i) => t(18, P = i)), M(a, yi, (i) => t(19, Ae = i)), M(a, xe, (i) => t(67, x = i)), M(a, jt, (i) => t(68, K = i)), M(a, Ke, (i) => t(69, ct = i)), M(a, Mi, (i) => t(21, ut = i)), M(a, _i, (i) => t(22, dt = i));
803
- let D, W, Y, ce = !1, ft = !1, U = {
801
+ let s, n, r, o, g, h, d, l, u, c, b, I, Z, m, C, O, A, T, R, P, Oe, x, de, K, ut, dt, ft;
802
+ M(a, Ye, (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, wi, (i) => t(59, h = i)), M(a, we, (i) => t(60, d = i)), M(a, yi, (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, Ve, (i) => t(63, I = i)), M(a, Je, (i) => t(64, Z = i)), M(a, zt, (i) => t(65, m = i)), M(a, q, (i) => t(66, C = i)), M(a, Ce, (i) => t(67, O = i)), M(a, xe, (i) => t(15, A = i)), M(a, Ci, (i) => t(16, T = i)), M(a, jt, (i) => t(17, R = i)), M(a, Me, (i) => t(18, P = i)), M(a, Mi, (i) => t(19, Oe = i)), M(a, Ke, (i) => t(68, x = i)), M(a, Rt, (i) => t(69, K = i)), M(a, qe, (i) => t(70, ut = i)), M(a, Di, (i) => t(21, dt = i)), M(a, _i, (i) => t(22, ft = i));
803
+ let _, S, X, ce = !1, gt = !1, U = {
804
804
  width: 2560,
805
805
  height: 1440,
806
806
  aspectRatio: -1
807
807
  };
808
- const Bt = { width: 2560, height: 1440 };
809
- let { enableMinutiae: Oe } = e, { videoDimensions: Ne } = e, { noTabs: ke } = e, { weightsPath: ze } = e, { showUnconformities: gt } = e, { showConfigButton: ht } = e, { showCameraButton: mt } = e, { videoOverlay: bt } = e, { videoOverlayTransparency: vt } = e, { showWatermark: It } = e;
810
- const fe = Et(!1);
811
- M(a, fe, (i) => t(56, o = i));
812
- const je = Et("data:image/png;base64");
813
- M(a, je, (i) => t(20, de = i));
814
- let wt = !1, ge = !0, Ct = 0, Re = 0, We = !0, yt = 0, Ee = (/* @__PURE__ */ new Date()).getTime(), Se = !1;
815
- Di.mixin({
816
- toast: !0,
817
- position: "bottom-left",
818
- timer: 13e3,
819
- timerProgressBar: !0
820
- }), pi(async () => {
821
- if (v(ve, g = !1, g), Mt(), K)
808
+ const Gt = { width: 2560, height: 1440 };
809
+ let { enableMinutiae: Ne } = e, { videoDimensions: ke } = e, { noTabs: ze } = e, { weightsPath: je } = e, { showUnconformities: ht } = e, { showConfigButton: mt } = e, { showCameraButton: bt } = e, { videoOverlay: vt } = e, { videoOverlayTransparency: It } = e, { showWatermark: wt } = e, { faceDetectionSensitivity: fe } = e;
810
+ const ge = Et(!1);
811
+ M(a, ge, (i) => t(57, n = i));
812
+ const Re = Et("data:image/png;base64");
813
+ M(a, Re, (i) => t(20, de = i));
814
+ let yt = !1, he = !0, Ct = 0, Se = 0, We = !0, Mt = 0, Ee = (/* @__PURE__ */ new Date()).getTime(), Ze = !1;
815
+ pi(async () => {
816
+ if (v(Ie, g = !1, g), Dt(), K)
822
817
  try {
823
- await Ti(ze), ft = !0;
818
+ await Ti(je), gt = !0;
824
819
  } catch {
825
- v(jt, K = !1, K);
820
+ v(Rt, K = !1, K);
826
821
  }
827
- await Pe(), Qt();
822
+ await Fe(), Xt();
828
823
  });
829
- function Mt() {
830
- v(we, b = !1, b), v(kt, m = !0, m), v(Ce, O = "", O), v(Ie, d = qe.REAR_CAMERA, d), v(be, r = !1, r), v(Je, A = !1, A), v(ye, P = re.OK, P), v(xe, x = "", x);
831
- const i = Ai($e);
832
- i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, $e.set(i);
824
+ function Dt() {
825
+ v(ye, b = !1, b), v(zt, m = !0, m), v(Ce, O = "", O), v(we, d = $e.REAR_CAMERA, d), v(ve, r = !1, r), v(xe, A = !1, A), v(Me, P = re.OK, P), v(Ke, x = "", x);
826
+ const i = Ai(et);
827
+ i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, et.set(i);
833
828
  }
834
- async function Gt() {
835
- const [i, p] = (Ne ?? "")?.replaceAll(" ", "")?.split("x")?.map((C) => C ? parseInt(C) : void 0);
836
- !i || !p || (X() ? (await Li(), v(
837
- ne,
829
+ async function Qt() {
830
+ const [i, p] = (ke ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
831
+ !i || !p || (Y() ? (await Hi(), v(
832
+ oe,
838
833
  c = {
839
834
  videoWidth: window.innerWidth,
840
835
  videoHeight: window.innerHeight
841
836
  },
842
837
  c
843
- )) : v(ne, c = { videoWidth: i, videoHeight: p }, c));
838
+ )) : v(oe, c = { videoWidth: i, videoHeight: p }, c));
844
839
  }
845
840
  function _t() {
846
- v(G, n = F.OK, n), wt = !0, ge = !1;
841
+ v(G, o = F.OK, o), yt = !0, he = !1;
847
842
  }
848
- async function he() {
849
- if (K && !ft)
850
- return _e(D, he);
851
- if (D) {
852
- if (ct !== tt.Document && !ke)
853
- return _e(D, he);
854
- v(ve, g = !0, g), K && (o || v(fe, o = !0, o)), _e(D, he);
843
+ async function me() {
844
+ if (K && !gt)
845
+ return _e(_, me);
846
+ if (_) {
847
+ if (ut !== it.Document && !ze)
848
+ return _e(_, me);
849
+ v(Ie, g = !0, g), K && (n || v(ge, n = !0, n)), _e(_, me);
855
850
  }
856
851
  }
857
- async function Dt() {
852
+ async function pt() {
858
853
  let i = Yt();
859
- if (K && !await Hi(i)) {
854
+ if (K && !(await Li(i, fe)).result) {
860
855
  console.warn("Document capture - document not detected! Resetting capture.");
861
856
  return;
862
857
  }
863
- v(we, b = !0, b);
858
+ v(ye, b = !0, b);
864
859
  let p = [];
865
860
  try {
866
- const C = i.toDataURL("image/jpeg").split(",");
867
- v(je, de = C[0], de), v(zt, j = C[1], j), v(xe, x = C[1], x), p = [
861
+ const y = i.toDataURL("image/jpeg").split(",");
862
+ v(Re, de = y[0], de), v(jt, R = y[1], R), v(Ke, x = y[1], x), p = [
868
863
  {
869
864
  bodyPart: "DOCUMENT",
870
865
  data: x
871
866
  }
872
- ], v(ye, P = re.OK, P), window.dispatchEvent(new CustomEvent(
867
+ ], v(Me, P = re.OK, P), window.dispatchEvent(new CustomEvent(
873
868
  "document-unconformities-validated",
874
869
  {
875
870
  detail: { bodyParts: p, status: P }
876
871
  }
877
872
  ));
878
- } catch (C) {
879
- console.error(C);
873
+ } catch (y) {
874
+ console.error(y);
880
875
  let N, k = Ui.DOCUMENT_NOT_FOUND, B = [];
881
- C instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(C.message) && (v(ye, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = C.message, B = [
876
+ y instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(y.message) && (v(Me, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = y.message, B = [
882
877
  {
883
878
  bodyPart: "DOCUMENT",
884
879
  data: x,
@@ -890,238 +885,239 @@ function ma(a, e, t) {
890
885
  detail: {
891
886
  bodyParts: B,
892
887
  errorCode: N,
893
- translatedError: Ae(k),
888
+ translatedError: Oe(k),
894
889
  status: P
895
890
  }
896
891
  }
897
892
  ));
898
893
  }
899
894
  }
900
- function Ze() {
895
+ function Pe() {
901
896
  const i = {
902
897
  bodyPart: "DOCUMENT",
903
- data: j,
898
+ data: R,
904
899
  justification: T
905
900
  };
906
- v(Je, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
901
+ v(xe, A = !0, A), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
907
902
  }
908
- function me() {
909
- window.dispatchEvent(new CustomEvent("document-scrapped")), Mt(), ge && _t();
903
+ function be() {
904
+ window.dispatchEvent(new CustomEvent("document-scrapped")), Dt(), he && _t();
910
905
  }
911
- async function Pe(i) {
906
+ async function Fe(i) {
912
907
  if (!We) {
913
- v(G, n = F.CAMERA_ORIENTATION_PORTRAIT, n);
908
+ v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o);
914
909
  return;
915
910
  }
916
- await Gt();
911
+ await Qt();
917
912
  try {
918
- let { stream: p, deviceId: C, width: N, height: k, aspectRatio: B } = await Rt(U.width, U.height, d, i);
919
- if (v(Xe, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
913
+ let { stream: p, deviceId: y, width: N, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
914
+ if (v(Ve, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
920
915
  U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((Le) => Le?.stop());
921
- const { stream: Fe } = await Rt(U.width, U.height, d, i);
922
- v(Xe, I = Fe, I);
916
+ const { stream: He } = await St(U.width, U.height, d, i);
917
+ v(Ve, I = He, I);
923
918
  }
924
- v(ue, u = C || l[0].deviceId, u);
919
+ v(ue, u = y || l[0].deviceId, u);
925
920
  } catch (p) {
926
- const C = p;
927
- ge = !0;
928
- const N = Me(p) && p.constraint ? p.constraint : "";
929
- console.error(C, N), Me(C) && "message" in C && C.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), v(G, n = F.CAMERA_DENIED_ERROR, n)), Me(C) && "message" in C && C.message.includes("Requested device not found") && v(G, n = F.DEVICE_NOT_FOUND_ERROR, n), (N.includes("width") || N.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${N})`), v(G, n = F.CAMERA_UNSUPPORTED, n));
921
+ const y = p;
922
+ he = !0;
923
+ const N = De(p) && p.constraint ? p.constraint : "";
924
+ console.error(y, N), De(y) && "message" in y && y.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), v(G, o = F.CAMERA_DENIED_ERROR, o)), De(y) && "message" in y && y.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o), (N.includes("width") || N.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${N})`), v(G, o = F.CAMERA_UNSUPPORTED, o));
930
925
  }
931
926
  }
932
927
  async function ie() {
933
- v(ue, u = "", u), await Pe();
928
+ v(ue, u = "", u), await Fe();
934
929
  }
935
- function Qt() {
930
+ function Xt() {
936
931
  navigator.mediaDevices.ondevicechange = async (i) => {
937
- await Wt(), n !== F.OK ? await ie() : I.active || (et(), v(G, n = F.DEVICE_NOT_FOUND_ERROR, n));
932
+ await Wt(), o !== F.OK ? await ie() : I.active || (tt(), v(G, o = F.DEVICE_NOT_FOUND_ERROR, o));
938
933
  };
939
934
  }
940
- function pt() {
941
- v(be, r = !1, r);
935
+ function Tt() {
936
+ v(ve, r = !1, r);
942
937
  const i = (/* @__PURE__ */ new Date()).getTime();
943
- i - Ee > 5e3 ? (Ee = i, v(Ce, O = "docCollector.docWasNotFound", O)) : Se || (Se = !0, setTimeout(
938
+ i - Ee > 5e3 ? (Ee = i, v(Ce, O = "docCollector.docWasNotFound", O)) : Ze || (Ze = !0, setTimeout(
944
939
  () => {
945
- Se = !1, O != "docCollector.docWasNotFound" && v(Ce, O = "", O);
940
+ Ze = !1, O != "docCollector.docWasNotFound" && v(Ce, O = "", O);
946
941
  },
947
942
  1500
948
943
  ));
949
944
  }
950
945
  function Yt() {
951
- const i = c.videoWidth, p = c.videoHeight, C = Bt.width, N = p / i * C, k = document.createElement("canvas"), B = k.getContext("2d");
952
- k.width = C, k.height = N, B && ha(B, D, k);
953
- const Fe = k.width / c.videoWidth, Le = k.height / c.videoHeight, fi = X() ? 0.25 : 0.15, gi = Math.round(k.height * fi), He = y.width * Fe, Ue = y.height * Le, At = (X() ? 0.15 : 0.2) * He, Ot = 0.2 * Ue, hi = (k.width - He) / 2 - At / 2, mi = (k.height - gi - Ue) / 2 - Ot / 2, Be = He + At, Ge = Ue + Ot, ae = document.createElement("canvas");
954
- ae.width = Be, ae.height = Ge;
955
- const Qe = ae.getContext("2d");
956
- return Qe?.clearRect(0, 0, ae.width, ae.height), Qe?.drawImage(k, hi, mi, Be, Ge, 0, 0, Be, Ge), Qe?.save(), ae;
946
+ const i = c.videoWidth, p = c.videoHeight, y = Gt.width, N = p / i * y, k = document.createElement("canvas"), B = k.getContext("2d");
947
+ k.width = y, k.height = N, B && ha(B, _, k);
948
+ const He = k.width / c.videoWidth, Le = k.height / c.videoHeight, gi = Y() ? 0.25 : 0.15, hi = Math.round(k.height * gi), Ue = C.width * He, Be = C.height * Le, Ot = (Y() ? 0.15 : 0.2) * Ue, Nt = 0.2 * Be, mi = (k.width - Ue) / 2 - Ot / 2, bi = (k.height - hi - Be) / 2 - Nt / 2, Ge = Ue + Ot, Qe = Be + Nt, ae = document.createElement("canvas");
949
+ ae.width = Ge, ae.height = Qe;
950
+ const Xe = ae.getContext("2d");
951
+ return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, mi, bi, Ge, Qe, 0, 0, Ge, Qe), Xe?.save(), ae;
957
952
  }
958
- const Xt = ne.subscribe((i) => {
959
- D && W && (t(7, D.width = i.videoWidth, D), t(7, D.height = i.videoHeight, D), t(8, W.width = i.videoWidth, W), t(8, W.height = i.videoHeight, W));
960
- }), Vt = $e.subscribe((i) => {
953
+ const Vt = oe.subscribe((i) => {
954
+ _ && S && (t(7, _.width = i.videoWidth, _), t(7, _.height = i.videoHeight, _), t(8, S.width = i.videoWidth, S), t(8, S.height = i.videoHeight, S));
955
+ }), Jt = et.subscribe((i) => {
961
956
  let p = "";
962
957
  if (i.isPersonCloseEnough ? i.isPersonTooclose ? p = "docCollector.moveAwayCamera" : i.isPersonInFrame || (p = "docCollector.stayInFrame") : p = "docCollector.comeCloserCamera", r && Oi(p), !b && m && r && !ce && i.isPersonInFrame && !(!i.isPersonCloseEnough || i.isPersonTooclose)) {
963
- t(10, ce = !0), yt = (/* @__PURE__ */ new Date()).getTime() + 4500;
964
- const C = setInterval(
958
+ t(10, ce = !0), Mt = (/* @__PURE__ */ new Date()).getTime() + 4500;
959
+ const y = setInterval(
965
960
  async () => {
966
961
  if (!m || b || !i.isPersonCloseEnough || i.isPersonTooclose || !i.isPersonInFrame) {
967
962
  t(10, ce = !1), setTimeout(
968
963
  () => {
969
964
  },
970
965
  1500
971
- ), clearInterval(C);
966
+ ), clearInterval(y);
972
967
  return;
973
968
  }
974
969
  const N = (/* @__PURE__ */ new Date()).getTime();
975
- Math.floor((yt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(C), t(10, ce = !1), Dt());
970
+ Math.floor((Mt - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(10, ce = !1), pt());
976
971
  },
977
972
  100
978
973
  );
979
974
  }
980
- }), Jt = we.subscribe((i) => {
981
- Y && (i ? (Y.classList.remove("flex"), Y.classList.add("hidden")) : (Y.classList.add("flex"), Y.classList.remove("hidden")));
982
- }), xt = Ve.subscribe((i) => {
983
- D && i && (console.log("setting null in video srcObject"), t(7, D.srcObject = null, D), t(7, D.src = "", D), v(ue, u = null, u));
975
+ }), xt = ye.subscribe((i) => {
976
+ X && (i ? (X.classList.remove("flex"), X.classList.add("hidden")) : (X.classList.add("flex"), X.classList.remove("hidden")));
977
+ }), Kt = Je.subscribe((i) => {
978
+ _ && i && (console.log("setting null in video srcObject"), t(7, _.srcObject = null, _), t(7, _.src = "", _), v(ue, u = null, u));
984
979
  });
985
- Ke.subscribe(async (i) => {
986
- i === tt.Document && await Wt();
980
+ qe.subscribe(async (i) => {
981
+ i === it.Document && await Wt();
987
982
  });
988
- const Kt = ue.subscribe(async (i) => {
983
+ const qt = ue.subscribe(async (i) => {
989
984
  if (!(!I || !i))
990
985
  try {
991
986
  const p = await Ni(U.width, U.height, i);
992
- t(7, D.srcObject = I, D), v(Ve, Z = !1, Z), I.getTracks().forEach((C) => {
993
- C.readyState === "live" && console.log(`Camera ${C.label} opened successfully!`);
994
- }), v(G, n = F.OK, n), ki(D);
987
+ t(7, _.srcObject = I, _), v(Je, Z = !1, Z), I.getTracks().forEach((y) => {
988
+ y.readyState === "live" && console.log(`Camera ${y.label} opened successfully!`);
989
+ }), v(G, o = F.OK, o), ki(_);
995
990
  } catch (p) {
996
- const C = p;
997
- ge = !0, Me(C) && "message" in C && C.message.includes("Requested device not found") && v(G, n = F.DEVICE_NOT_FOUND_ERROR, n);
991
+ const y = p;
992
+ he = !0, De(y) && "message" in y && y.message.includes("Requested device not found") && v(G, o = F.DEVICE_NOT_FOUND_ERROR, o);
998
993
  }
999
- }), qt = Ke.subscribe(async (i) => {
1000
- i === tt.Document && !wt && !b && fa && await _t();
1001
- }), $t = fe.subscribe(async (i) => {
1002
- i && Tt();
1003
- }), ei = ve.subscribe((i) => {
994
+ }), $t = qe.subscribe(async (i) => {
995
+ i === it.Document && !yt && !b && fa && await _t();
996
+ }), ei = ge.subscribe(async (i) => {
997
+ i && At();
998
+ }), ti = Ie.subscribe((i) => {
1004
999
  i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
1005
- }), ti = zi.subscribe(async (i) => {
1000
+ }), ii = zi.subscribe(async (i) => {
1006
1001
  if (!(!c || l.length <= 1)) {
1007
- if (et(), !X()) {
1008
- const C = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[C].deviceId;
1009
- await Pe(N);
1002
+ if (tt(), !Y()) {
1003
+ const y = (l.findIndex((k) => k.deviceId === u) + 1) % l.length, N = l[y].deviceId;
1004
+ await Fe(N);
1010
1005
  return;
1011
1006
  }
1012
- i ? (v(Ie, d = qe.FRONT_CAMERA, d), await ie()) : (v(Ie, d = qe.REAR_CAMERA, d), await ie());
1007
+ i ? (v(we, d = $e.FRONT_CAMERA, d), await ie()) : (v(we, d = $e.REAR_CAMERA, d), await ie());
1013
1008
  }
1014
- }), ii = ji.subscribe(async (i) => {
1015
- !i.isSupported || !X() || h != "DOCUMENT" || (We = i.orientation.includes("portrait"), We ? D && !g ? await ie() : v(G, n = F.OK, n) : v(G, n = F.CAMERA_ORIENTATION_PORTRAIT, n));
1009
+ }), ai = ji.subscribe(async (i) => {
1010
+ !i.isSupported || !Y() || h != "DOCUMENT" || (We = i.orientation.includes("portrait"), We ? _ && !g ? await ie() : v(G, o = F.OK, o) : v(G, o = F.CAMERA_ORIENTATION_PORTRAIT, o));
1016
1011
  });
1017
- async function Tt() {
1012
+ async function At() {
1018
1013
  let i;
1019
1014
  try {
1020
- if (Re >= ga) {
1021
- Re = 0;
1022
- const p = await Ri(), C = await import("./face_api_0e3ce8c8_3.1.1.js");
1015
+ if (Se >= ga) {
1016
+ Se = 0;
1017
+ const p = await Ri(fe), y = await import("./face_api_0e3ce8c8_3.2.0-RC02.js");
1023
1018
  let N;
1024
- if (N = C.detectSingleFace(D, p), i = await N.withFaceLandmarks(), W.getContext("2d")?.clearRect(0, 0, W.width, W.height), i != null) {
1025
- const k = Xi(W, D, !0);
1026
- Wi(W, D, k);
1019
+ if (N = y.detectSingleFace(_, p), i = await N.withFaceLandmarks(), S.getContext("2d")?.clearRect(0, 0, S.width, S.height), i != null) {
1020
+ const k = Yi(S, _, !0);
1021
+ Si(S, _, k);
1027
1022
  const B = Vi(i, k);
1028
- Ei(B) ? (Si(B, W, Oe, !0), v(be, r = !0, r), Ee = (/* @__PURE__ */ new Date()).getTime()) : pt();
1023
+ Wi(B) ? (Ei(B, S, Ne, !0), v(ve, r = !0, r), Ee = (/* @__PURE__ */ new Date()).getTime()) : Tt();
1029
1024
  } else
1030
- pt();
1025
+ Tt();
1031
1026
  } else
1032
- Re++;
1027
+ Se++;
1033
1028
  } catch (p) {
1034
1029
  console.warn(`FaceapiLoop: ${p}`);
1035
1030
  } finally {
1036
- o && _e(D, Tt);
1031
+ n && _e(_, At);
1037
1032
  }
1038
1033
  }
1039
1034
  Ye.subscribe(async (i) => {
1040
- i && (me(), v(Ye, s = !1, s));
1035
+ i && (be(), v(Ye, s = !1, s));
1041
1036
  }), Zi(() => {
1042
- console.log("Destroying document collector"), et(), Jt(), Vt(), Xt(), xt(), Kt(), qt(), clearInterval(Ct), $t(), ti(), ei(), ii(), Ct = 0;
1037
+ console.log("Destroying document collector"), tt(), xt(), Jt(), Vt(), Kt(), qt(), $t(), clearInterval(Ct), ei(), ii(), ti(), ai(), Ct = 0;
1043
1038
  });
1044
- function ai(i) {
1045
- it[i ? "unshift" : "push"](() => {
1046
- D = i, t(7, D);
1039
+ function si(i) {
1040
+ at[i ? "unshift" : "push"](() => {
1041
+ _ = i, t(7, _);
1047
1042
  });
1048
1043
  }
1049
- const si = () => {
1050
- t(7, D.width = c.videoWidth, D), t(7, D.height = c.videoHeight, D), t(8, W.width = c.videoWidth, W), t(8, W.height = c.videoHeight, W);
1044
+ const ni = () => {
1045
+ t(7, _.width = c.videoWidth, _), t(7, _.height = c.videoHeight, _), t(8, S.width = c.videoWidth, S), t(8, S.height = c.videoHeight, S);
1051
1046
  };
1052
1047
  function oi(i) {
1053
- it[i ? "unshift" : "push"](() => {
1054
- W = i, t(8, W);
1048
+ at[i ? "unshift" : "push"](() => {
1049
+ S = i, t(8, S);
1055
1050
  });
1056
1051
  }
1057
- const ni = () => Ze(), ri = () => me();
1058
- function li(i) {
1059
- it[i ? "unshift" : "push"](() => {
1060
- Y = i, t(9, Y);
1052
+ const ri = () => Pe(), li = () => be();
1053
+ function ci(i) {
1054
+ at[i ? "unshift" : "push"](() => {
1055
+ X = i, t(9, X);
1061
1056
  });
1062
1057
  }
1063
- const ci = () => Ze(), ui = () => me(), di = async () => {
1058
+ const ui = () => Pe(), di = () => be(), fi = async () => {
1064
1059
  await ie();
1065
1060
  };
1066
1061
  return a.$$set = (i) => {
1067
- "enableMinutiae" in i && t(29, Oe = i.enableMinutiae), "videoDimensions" in i && t(30, Ne = i.videoDimensions), "noTabs" in i && t(31, ke = i.noTabs), "weightsPath" in i && t(32, ze = i.weightsPath), "showUnconformities" in i && t(0, gt = i.showUnconformities), "showConfigButton" in i && t(1, ht = i.showConfigButton), "showCameraButton" in i && t(2, mt = i.showCameraButton), "videoOverlay" in i && t(3, bt = i.videoOverlay), "videoOverlayTransparency" in i && t(4, vt = i.videoOverlayTransparency), "showWatermark" in i && t(5, It = i.showWatermark);
1062
+ "enableMinutiae" in i && t(29, Ne = i.enableMinutiae), "videoDimensions" in i && t(30, ke = i.videoDimensions), "noTabs" in i && t(31, ze = i.noTabs), "weightsPath" in i && t(32, je = i.weightsPath), "showUnconformities" in i && t(0, ht = i.showUnconformities), "showConfigButton" in i && t(1, mt = i.showConfigButton), "showCameraButton" in i && t(2, bt = i.showCameraButton), "videoOverlay" in i && t(3, vt = i.videoOverlay), "videoOverlayTransparency" in i && t(4, It = i.videoOverlayTransparency), "showWatermark" in i && t(5, wt = i.showWatermark), "faceDetectionSensitivity" in i && t(33, fe = i.faceDetectionSensitivity);
1068
1063
  }, [
1069
- gt,
1070
1064
  ht,
1071
1065
  mt,
1072
1066
  bt,
1073
1067
  vt,
1074
1068
  It,
1075
- he,
1076
- D,
1077
- W,
1078
- Y,
1069
+ wt,
1070
+ me,
1071
+ _,
1072
+ S,
1073
+ X,
1079
1074
  ce,
1080
- n,
1075
+ o,
1081
1076
  g,
1082
1077
  c,
1083
1078
  b,
1084
1079
  A,
1085
1080
  T,
1086
- j,
1081
+ R,
1087
1082
  P,
1088
- Ae,
1083
+ Oe,
1089
1084
  de,
1090
- ut,
1091
1085
  dt,
1092
- fe,
1093
- je,
1094
- Dt,
1095
- Ze,
1096
- me,
1086
+ ft,
1087
+ ge,
1088
+ Re,
1089
+ pt,
1090
+ Pe,
1091
+ be,
1097
1092
  ie,
1098
- Oe,
1099
1093
  Ne,
1100
1094
  ke,
1101
1095
  ze,
1102
- ai,
1096
+ je,
1097
+ fe,
1103
1098
  si,
1104
- oi,
1105
1099
  ni,
1100
+ oi,
1106
1101
  ri,
1107
1102
  li,
1108
1103
  ci,
1109
1104
  ui,
1110
- di
1105
+ di,
1106
+ fi
1111
1107
  ];
1112
1108
  }
1113
- class ba extends st {
1109
+ class ba extends nt {
1114
1110
  constructor(e) {
1115
1111
  super(), ot(
1116
1112
  this,
1117
1113
  {
1118
1114
  target: this.shadowRoot,
1119
- props: rt(this.attributes),
1115
+ props: lt(this.attributes),
1120
1116
  customElement: !0
1121
1117
  },
1122
1118
  ma,
1123
1119
  da,
1124
- nt,
1120
+ rt,
1125
1121
  {
1126
1122
  enableMinutiae: 29,
1127
1123
  videoDimensions: 30,
@@ -1133,11 +1129,12 @@ class ba extends st {
1133
1129
  videoOverlay: 3,
1134
1130
  videoOverlayTransparency: 4,
1135
1131
  showWatermark: 5,
1132
+ faceDetectionSensitivity: 33,
1136
1133
  play: 6
1137
1134
  },
1138
1135
  null,
1139
1136
  [-1, -1, -1]
1140
- ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), R()));
1137
+ ), e && (e.target && z(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
1141
1138
  }
1142
1139
  static get observedAttributes() {
1143
1140
  return [
@@ -1151,6 +1148,7 @@ class ba extends st {
1151
1148
  "videoOverlay",
1152
1149
  "videoOverlayTransparency",
1153
1150
  "showWatermark",
1151
+ "faceDetectionSensitivity",
1154
1152
  "play"
1155
1153
  ];
1156
1154
  }
@@ -1158,61 +1156,67 @@ class ba extends st {
1158
1156
  return this.$$.ctx[29];
1159
1157
  }
1160
1158
  set enableMinutiae(e) {
1161
- this.$$set({ enableMinutiae: e }), R();
1159
+ this.$$set({ enableMinutiae: e }), j();
1162
1160
  }
1163
1161
  get videoDimensions() {
1164
1162
  return this.$$.ctx[30];
1165
1163
  }
1166
1164
  set videoDimensions(e) {
1167
- this.$$set({ videoDimensions: e }), R();
1165
+ this.$$set({ videoDimensions: e }), j();
1168
1166
  }
1169
1167
  get noTabs() {
1170
1168
  return this.$$.ctx[31];
1171
1169
  }
1172
1170
  set noTabs(e) {
1173
- this.$$set({ noTabs: e }), R();
1171
+ this.$$set({ noTabs: e }), j();
1174
1172
  }
1175
1173
  get weightsPath() {
1176
1174
  return this.$$.ctx[32];
1177
1175
  }
1178
1176
  set weightsPath(e) {
1179
- this.$$set({ weightsPath: e }), R();
1177
+ this.$$set({ weightsPath: e }), j();
1180
1178
  }
1181
1179
  get showUnconformities() {
1182
1180
  return this.$$.ctx[0];
1183
1181
  }
1184
1182
  set showUnconformities(e) {
1185
- this.$$set({ showUnconformities: e }), R();
1183
+ this.$$set({ showUnconformities: e }), j();
1186
1184
  }
1187
1185
  get showConfigButton() {
1188
1186
  return this.$$.ctx[1];
1189
1187
  }
1190
1188
  set showConfigButton(e) {
1191
- this.$$set({ showConfigButton: e }), R();
1189
+ this.$$set({ showConfigButton: e }), j();
1192
1190
  }
1193
1191
  get showCameraButton() {
1194
1192
  return this.$$.ctx[2];
1195
1193
  }
1196
1194
  set showCameraButton(e) {
1197
- this.$$set({ showCameraButton: e }), R();
1195
+ this.$$set({ showCameraButton: e }), j();
1198
1196
  }
1199
1197
  get videoOverlay() {
1200
1198
  return this.$$.ctx[3];
1201
1199
  }
1202
1200
  set videoOverlay(e) {
1203
- this.$$set({ videoOverlay: e }), R();
1201
+ this.$$set({ videoOverlay: e }), j();
1204
1202
  }
1205
1203
  get videoOverlayTransparency() {
1206
1204
  return this.$$.ctx[4];
1207
1205
  }
1208
1206
  set videoOverlayTransparency(e) {
1209
- this.$$set({ videoOverlayTransparency: e }), R();
1207
+ this.$$set({ videoOverlayTransparency: e }), j();
1210
1208
  }
1211
1209
  get showWatermark() {
1212
1210
  return this.$$.ctx[5];
1213
1211
  }
1214
1212
  set showWatermark(e) {
1215
- this.$$set({ showWatermark: e }), R();
1213
+ this.$$set({ showWatermark: e }), j();
1214
+ }
1215
+ get faceDetectionSensitivity() {
1216
+ return this.$$.ctx[33];
1217
+ }
1218
+ set faceDetectionSensitivity(e) {
1219
+ this.$$set({ faceDetectionSensitivity: e }), j();
1216
1220
  }
1217
1221
  get play() {
1218
1222
  return this.$$.ctx[6];