youverify-liveness-web 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ function Be(e, t, n, r, o) {
21
21
  function on() {
22
22
  return { current: null };
23
23
  }
24
- function I(e) {
24
+ function H(e) {
25
25
  return e.children;
26
26
  }
27
27
  function te(e, t) {
@@ -57,7 +57,7 @@ function vr(e, t, n, r, o, i, a, s, l, u, d) {
57
57
  }
58
58
  function Mo(e, t, n) {
59
59
  var r, o, i, a, s, l = t.length, u = n.length, d = u, c = 0;
60
- for (e.__k = [], r = 0; r < l; r++) a = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Be(null, o, null, null, null) : mt(o) ? Be(I, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Be(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = Po(o, n, a, d), o.__i = s, i = null, s !== -1 && (d--, (i = n[s]) && (i.__u |= 131072)), i == null || i.__v === null ? (s == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : s !== a && (s == a - 1 ? c = s - a : s == a + 1 ? c++ : s > a ? d > l - a ? c += s - a : c-- : s < a && c++, s !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Se(i)), jt(i, i, !1), n[a] = null, d--);
60
+ for (e.__k = [], r = 0; r < l; r++) a = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Be(null, o, null, null, null) : mt(o) ? Be(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Be(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, s = Po(o, n, a, d), o.__i = s, i = null, s !== -1 && (d--, (i = n[s]) && (i.__u |= 131072)), i == null || i.__v === null ? (s == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : s !== a && (s == a - 1 ? c = s - a : s == a + 1 ? c++ : s > a ? d > l - a ? c += s - a : c-- : s < a && c++, s !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Se(i)), jt(i, i, !1), n[a] = null, d--);
61
61
  if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Se(i)), jt(i, i));
62
62
  }
63
63
  function mr(e, t, n) {
@@ -147,7 +147,7 @@ function an(e, t, n, r, o, i, a, s, l, u) {
147
147
  } else do
148
148
  c.__d = !1, L && L(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
149
149
  while (c.__d && ++O < 25);
150
- c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, v)), vr(e, mt(W = d != null && d.type === I && d.key == null ? d.props.children : d) ? W : [W], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), m && (c.__E = c.__ = null);
150
+ c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), g && !p && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, v)), vr(e, mt(W = d != null && d.type === H && d.key == null ? d.props.children : d) ? W : [W], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), m && (c.__E = c.__ = null);
151
151
  } catch (F) {
152
152
  if (t.__v = null, l || i != null) {
153
153
  for (t.__u |= l ? 160 : 32; s && s.nodeType === 8 && s.nextSibling; ) s = s.nextSibling;
@@ -228,7 +228,7 @@ function No(e, t, n) {
228
228
  }
229
229
  function De(e, t, n) {
230
230
  var r, o, i, a;
231
- S.__ && S.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], an(t, e = (!r && n || t).__k = ne(I, null, [e]), o || Ze, Ze, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), yr(i, e, a);
231
+ S.__ && S.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], an(t, e = (!r && n || t).__k = ne(H, null, [e]), o || Ze, Ze, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), yr(i, e, a);
232
232
  }
233
233
  function gr(e, t) {
234
234
  De(e, t, gr);
@@ -273,7 +273,7 @@ Xe = pr.slice, S = { __e: function(e, t, n, r) {
273
273
  n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ue({}, this.state), typeof e == "function" && (e = e(ue({}, n), this.props)), e && ue(n, e), e != null && this.__v && (t && this._sb.push(t), Wt(this));
274
274
  }, te.prototype.forceUpdate = function(e) {
275
275
  this.__v && (this.__e = !0, e && this.__h.push(e), Wt(this));
276
- }, te.prototype.render = I, Ee = [], dr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Rt = function(e, t) {
276
+ }, te.prototype.render = H, Ee = [], dr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Rt = function(e, t) {
277
277
  return e.__v.__b - t.__v.__b;
278
278
  }, dt.__r = 0, rn = 0, Vt = Mn(!1), Ut = Mn(!0), fr = 0;
279
279
  var Do = 0;
@@ -285,14 +285,14 @@ function h(e, t, n, r, o, i) {
285
285
  if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
286
286
  return S.vnode && S.vnode(u), u;
287
287
  }
288
- var he, A, Mt, Pn, He = 0, wr = [], V = S, Ln = V.__b, Nn = V.__r, An = V.diffed, Dn = V.__c, Hn = V.unmount, In = V.__;
288
+ var he, A, Mt, Pn, Ie = 0, wr = [], V = S, Ln = V.__b, Nn = V.__r, An = V.diffed, Dn = V.__c, In = V.unmount, Hn = V.__;
289
289
  function Me(e, t) {
290
- V.__h && V.__h(A, e, He || t), He = 0;
290
+ V.__h && V.__h(A, e, Ie || t), Ie = 0;
291
291
  var n = A.__H || (A.__H = { __: [], __h: [] });
292
292
  return e >= n.__.length && n.__.push({}), n.__[e];
293
293
  }
294
294
  function k(e) {
295
- return He = 1, Qe(br, e);
295
+ return Ie = 1, Qe(br, e);
296
296
  }
297
297
  function Qe(e, t, n) {
298
298
  var r = Me(he++, 2);
@@ -337,12 +337,12 @@ function Pe(e, t) {
337
337
  !V.__s && un(n.__H, t) && (n.__ = e, n.i = t, A.__h.push(n));
338
338
  }
339
339
  function w(e) {
340
- return He = 5, P(function() {
340
+ return Ie = 5, P(function() {
341
341
  return { current: e };
342
342
  }, []);
343
343
  }
344
344
  function ln(e, t, n) {
345
- He = 6, Pe(function() {
345
+ Ie = 6, Pe(function() {
346
346
  return typeof e == "function" ? (e(t()), function() {
347
347
  return e(null);
348
348
  }) : e ? (e.current = t(), function() {
@@ -355,7 +355,7 @@ function P(e, t) {
355
355
  return un(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
356
356
  }
357
357
  function D(e, t) {
358
- return He = 8, P(function() {
358
+ return Ie = 8, P(function() {
359
359
  return e;
360
360
  }, t);
361
361
  }
@@ -366,7 +366,7 @@ function B(e) {
366
366
  function cn(e, t) {
367
367
  V.useDebugValue && V.useDebugValue(t ? t(e) : e);
368
368
  }
369
- function Ho(e) {
369
+ function Io(e) {
370
370
  var t = Me(he++, 10), n = k();
371
371
  return t.__ = e, A.componentDidCatch || (A.componentDidCatch = function(r, o) {
372
372
  t.__ && t.__(r, o), n[1](r);
@@ -383,7 +383,7 @@ function ge() {
383
383
  }
384
384
  return e.__;
385
385
  }
386
- function Io() {
386
+ function Ho() {
387
387
  for (var e; e = wr.shift(); ) if (e.__P && e.__H) try {
388
388
  e.__H.__h.forEach(ut), e.__H.__h.forEach(Bt), e.__H.__h = [];
389
389
  } catch (t) {
@@ -393,7 +393,7 @@ function Io() {
393
393
  V.__b = function(e) {
394
394
  A = null, Ln && Ln(e);
395
395
  }, V.__ = function(e, t) {
396
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), In && In(e, t);
396
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Hn && Hn(e, t);
397
397
  }, V.__r = function(e) {
398
398
  Nn && Nn(e), he = 0;
399
399
  var t = (A = e.__c).__H;
@@ -403,7 +403,7 @@ V.__b = function(e) {
403
403
  }, V.diffed = function(e) {
404
404
  An && An(e);
405
405
  var t = e.__c;
406
- t && t.__H && (t.__H.__h.length && (wr.push(t) !== 1 && Pn === V.requestAnimationFrame || ((Pn = V.requestAnimationFrame) || Oo)(Io)), t.__H.__.forEach(function(n) {
406
+ t && t.__H && (t.__H.__h.length && (wr.push(t) !== 1 && Pn === V.requestAnimationFrame || ((Pn = V.requestAnimationFrame) || Oo)(Ho)), t.__H.__.forEach(function(n) {
407
407
  n.i && (n.__H = n.i), n.i = void 0;
408
408
  })), Mt = A = null;
409
409
  }, V.__c = function(e, t) {
@@ -419,7 +419,7 @@ V.__b = function(e) {
419
419
  }
420
420
  }), Dn && Dn(e, t);
421
421
  }, V.unmount = function(e) {
422
- Hn && Hn(e);
422
+ In && In(e);
423
423
  var t, n = e.__c;
424
424
  n && n.__H && (n.__H.__.forEach(function(r) {
425
425
  try {
@@ -571,8 +571,8 @@ S.unmount = function(e) {
571
571
  }
572
572
  this.__b = null;
573
573
  }
574
- var o = t.__a && ne(I, null, e.fallback);
575
- return o && (o.__u &= -33), [ne(I, null, t.__a ? null : e.children), o];
574
+ var o = t.__a && ne(H, null, e.fallback);
575
+ return o && (o.__u &= -33), [ne(H, null, t.__a ? null : e.children), o];
576
576
  };
577
577
  var Wn = function(e, t, n) {
578
578
  if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
@@ -688,29 +688,29 @@ var Lr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
688
688
  function Nr(e) {
689
689
  return ne.bind(null, e);
690
690
  }
691
- function Ie(e) {
691
+ function He(e) {
692
692
  return !!e && e.$$typeof === Fr;
693
693
  }
694
694
  function Ar(e) {
695
- return Ie(e) && e.type === I;
695
+ return He(e) && e.type === H;
696
696
  }
697
697
  function Dr(e) {
698
698
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
699
699
  }
700
700
  function pn(e) {
701
- return Ie(e) ? Ao.apply(null, arguments) : e;
701
+ return He(e) ? Ao.apply(null, arguments) : e;
702
702
  }
703
- function Hr(e) {
703
+ function Ir(e) {
704
704
  return !!e.__k && (De(null, e), !0);
705
705
  }
706
- function Ir(e) {
706
+ function Hr(e) {
707
707
  return e && (e.base || e.nodeType === 1 && e) || null;
708
708
  }
709
709
  var Or = function(e, t) {
710
710
  return e(t);
711
711
  }, Rr = function(e, t) {
712
712
  return e(t);
713
- }, Vr = I;
713
+ }, Vr = H;
714
714
  function hn(e) {
715
715
  e();
716
716
  }
@@ -720,7 +720,7 @@ function _n(e) {
720
720
  function vn() {
721
721
  return [!1, hn];
722
722
  }
723
- var mn = Pe, Ur = Ie;
723
+ var mn = Pe, Ur = He;
724
724
  function gt(e, t) {
725
725
  var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
726
726
  return Pe(function() {
@@ -740,12 +740,12 @@ function Pt(e) {
740
740
  return !0;
741
741
  }
742
742
  }
743
- var T = { useState: k, useId: ge, useReducer: Qe, useEffect: N, useLayoutEffect: Pe, useInsertionEffect: mn, useTransition: vn, useDeferredValue: _n, useSyncExternalStore: gt, startTransition: hn, useRef: w, useImperativeHandle: ln, useMemo: P, useCallback: D, useContext: B, useDebugValue: cn, version: "17.0.2", Children: Tr, render: Mr, hydrate: Pr, unmountComponentAtNode: Hr, createPortal: yt, createElement: ne, createContext: G, createFactory: Nr, cloneElement: pn, createRef: on, Fragment: I, isValidElement: Ie, isElement: Ur, isFragment: Ar, isMemo: Dr, findDOMNode: Ir, Component: te, PureComponent: ft, memo: $r, forwardRef: dn, flushSync: Rr, unstable_batchedUpdates: Or, StrictMode: Vr, Suspense: ze, SuspenseList: Ae, lazy: Sr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Lr };
743
+ var T = { useState: k, useId: ge, useReducer: Qe, useEffect: N, useLayoutEffect: Pe, useInsertionEffect: mn, useTransition: vn, useDeferredValue: _n, useSyncExternalStore: gt, startTransition: hn, useRef: w, useImperativeHandle: ln, useMemo: P, useCallback: D, useContext: B, useDebugValue: cn, version: "17.0.2", Children: Tr, render: Mr, hydrate: Pr, unmountComponentAtNode: Ir, createPortal: yt, createElement: ne, createContext: G, createFactory: Nr, cloneElement: pn, createRef: on, Fragment: H, isValidElement: He, isElement: Ur, isFragment: Ar, isMemo: Dr, findDOMNode: Hr, Component: te, PureComponent: ft, memo: $r, forwardRef: dn, flushSync: Rr, unstable_batchedUpdates: Or, StrictMode: Vr, Suspense: ze, SuspenseList: Ae, lazy: Sr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Lr };
744
744
  const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
745
745
  __proto__: null,
746
746
  Children: Tr,
747
747
  Component: te,
748
- Fragment: I,
748
+ Fragment: H,
749
749
  PureComponent: ft,
750
750
  StrictMode: Vr,
751
751
  Suspense: ze,
@@ -758,26 +758,26 @@ const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
758
758
  createPortal: yt,
759
759
  createRef: on,
760
760
  default: T,
761
- findDOMNode: Ir,
761
+ findDOMNode: Hr,
762
762
  flushSync: Rr,
763
763
  forwardRef: dn,
764
764
  hydrate: Pr,
765
765
  isElement: Ur,
766
766
  isFragment: Ar,
767
767
  isMemo: Dr,
768
- isValidElement: Ie,
768
+ isValidElement: He,
769
769
  lazy: Sr,
770
770
  memo: $r,
771
771
  render: Mr,
772
772
  startTransition: hn,
773
- unmountComponentAtNode: Hr,
773
+ unmountComponentAtNode: Ir,
774
774
  unstable_batchedUpdates: Or,
775
775
  useCallback: D,
776
776
  useContext: B,
777
777
  useDebugValue: cn,
778
778
  useDeferredValue: _n,
779
779
  useEffect: N,
780
- useErrorBoundary: Ho,
780
+ useErrorBoundary: Io,
781
781
  useId: ge,
782
782
  useImperativeHandle: ln,
783
783
  useInsertionEffect: mn,
@@ -1209,7 +1209,7 @@ function Le(e) {
1209
1209
  t.current = e;
1210
1210
  }, [e]), t;
1211
1211
  }
1212
- let H = function(e) {
1212
+ let I = function(e) {
1213
1213
  let t = Le(e);
1214
1214
  return T.useCallback((...n) => t.current(...n), [t]);
1215
1215
  };
@@ -1221,9 +1221,9 @@ function bi(e, t) {
1221
1221
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
1222
1222
  }
1223
1223
  function Ei({ disabled: e = !1 } = {}) {
1224
- let t = w(null), [n, r] = k(!1), o = Et(), i = H(() => {
1224
+ let t = w(null), [n, r] = k(!1), o = Et(), i = I(() => {
1225
1225
  t.current = null, r(!1), o.dispose();
1226
- }), a = H((s) => {
1226
+ }), a = I((s) => {
1227
1227
  if (o.dispose(), t.current === null) {
1228
1228
  t.current = s.currentTarget, r(!0);
1229
1229
  {
@@ -1286,7 +1286,7 @@ function it(e, t = {}, n, r, o) {
1286
1286
  for (let v of f) c[`data-${v}`] = "";
1287
1287
  }
1288
1288
  }
1289
- if (i === I && (Object.keys(be(l)).length > 0 || Object.keys(be(c)).length > 0)) if (!Ie(d) || Array.isArray(d) && d.length > 1) {
1289
+ if (i === H && (Object.keys(be(l)).length > 0 || Object.keys(be(c)).length > 0)) if (!He(d) || Array.isArray(d) && d.length > 1) {
1290
1290
  if (Object.keys(be(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(be(l)).concat(Object.keys(be(c))).map((p) => ` - ${p}`).join(`
1291
1291
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
1292
1292
  `)].join(`
@@ -1296,7 +1296,7 @@ function it(e, t = {}, n, r, o) {
1296
1296
  for (let _ in c) _ in m && delete c[_];
1297
1297
  return pn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
1298
1298
  }
1299
- return ne(i, Object.assign({}, At(l, ["ref"]), i !== I && u, i !== I && c), d);
1299
+ return ne(i, Object.assign({}, At(l, ["ref"]), i !== H && u, i !== H && c), d);
1300
1300
  }
1301
1301
  function Ti(...e) {
1302
1302
  return e.every((t) => t == null) ? void 0 : (t) => {
@@ -1375,7 +1375,7 @@ function ae(...e) {
1375
1375
  N(() => {
1376
1376
  t.current = e;
1377
1377
  }, [e]);
1378
- let n = H((r) => {
1378
+ let n = I((r) => {
1379
1379
  for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
1380
1380
  });
1381
1381
  return e.every((r) => r == null || (r == null ? void 0 : r[Xr])) ? void 0 : n;
@@ -1393,7 +1393,7 @@ function Qr() {
1393
1393
  function Ai() {
1394
1394
  let [e, t] = k([]);
1395
1395
  return [e.length > 0 ? e.join(" ") : void 0, P(() => function(n) {
1396
- let r = H((i) => (t((a) => [...a, i]), () => t((a) => {
1396
+ let r = I((i) => (t((a) => [...a, i]), () => t((a) => {
1397
1397
  let s = a.slice(), l = s.indexOf(i);
1398
1398
  return l !== -1 && s.splice(l, 1), s;
1399
1399
  }))), o = P(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
@@ -1401,13 +1401,13 @@ function Ai() {
1401
1401
  }, [t])];
1402
1402
  }
1403
1403
  let Di = "p";
1404
- function Hi(e, t) {
1404
+ function Ii(e, t) {
1405
1405
  let n = ge(), r = Gr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = Qr(), s = ae(t);
1406
1406
  z(() => a.register(o), [o, a.register]);
1407
1407
  let l = r || !1, u = P(() => ({ ...a.slot, disabled: l }), [a.slot, l]), d = { ref: s, ...a.props, id: o };
1408
1408
  return Z({ ourProps: d, theirProps: i, slot: u, defaultTag: Di, name: a.name || "Description" });
1409
1409
  }
1410
- let Ii = q(Hi), Oi = Object.assign(Ii, {});
1410
+ let Hi = q(Ii), Oi = Object.assign(Hi, {});
1411
1411
  var Jr = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Jr || {});
1412
1412
  let Ri = G(() => {
1413
1413
  });
@@ -1825,7 +1825,7 @@ function _a(e, { inFlight: t, prepare: n }) {
1825
1825
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
1826
1826
  }
1827
1827
  function wn(e, t) {
1828
- let n = w([]), r = H(e);
1828
+ let n = w([]), r = I(e);
1829
1829
  N(() => {
1830
1830
  let o = [...n.current];
1831
1831
  for (let [i, a] of t.entries()) if (n.current[i] !== a) {
@@ -1860,7 +1860,7 @@ ya(() => {
1860
1860
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
1861
1861
  });
1862
1862
  function so(e) {
1863
- let t = H(e), n = w(!1);
1863
+ let t = I(e), n = w(!1);
1864
1864
  N(() => (n.current = !1, () => {
1865
1865
  n.current = !0, bt(() => {
1866
1866
  n.current && t();
@@ -1902,7 +1902,7 @@ function ba(e) {
1902
1902
  t || n !== null && i(n.current);
1903
1903
  }, [n, i, t]), o;
1904
1904
  }
1905
- let co = I, Ea = q(function(e, t) {
1905
+ let co = H, Ea = q(function(e, t) {
1906
1906
  let n = e, r = w(null), o = ae(Ni((d) => {
1907
1907
  r.current = d;
1908
1908
  }), t), i = tt(r), a = ba(r), [s] = k(() => {
@@ -1922,14 +1922,14 @@ function $a(e, t) {
1922
1922
  let n = ae(t), { enabled: r = !0, ...o } = e;
1923
1923
  return r ? T.createElement(Ea, { ...o, ref: n }) : Z({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: co, name: "Portal" });
1924
1924
  }
1925
- let Ta = I, uo = G(null);
1925
+ let Ta = H, uo = G(null);
1926
1926
  function Ca(e, t) {
1927
1927
  let { target: n, ...r } = e, o = { ref: ae(t) };
1928
1928
  return T.createElement(uo.Provider, { value: n }, Z({ ourProps: o, theirProps: r, defaultTag: Ta, name: "Popover.Group" }));
1929
1929
  }
1930
1930
  let tn = G(null);
1931
1931
  function xa() {
1932
- let e = B(tn), t = w([]), n = H((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = H((i) => {
1932
+ let e = B(tn), t = w([]), n = I((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = I((i) => {
1933
1933
  let a = t.current.indexOf(i);
1934
1934
  a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
1935
1935
  }), o = P(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
@@ -1957,7 +1957,7 @@ function Ma() {
1957
1957
  }
1958
1958
  function Pa({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1959
1959
  var r;
1960
- let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = tt(o), a = H(() => {
1960
+ let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = tt(o), a = I(() => {
1961
1961
  var s, l, u;
1962
1962
  let d = [];
1963
1963
  for (let c of e) c !== null && (c instanceof HTMLElement ? d.push(c) : "current" in c && c.current instanceof HTMLElement && d.push(c.current));
@@ -1965,7 +1965,7 @@ function Pa({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
1965
1965
  for (let c of (s = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? s : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (l = o.current) == null ? void 0 : l.getRootNode()) == null ? void 0 : u.host) || d.some((p) => c.contains(p)) || d.push(c));
1966
1966
  return d;
1967
1967
  });
1968
- return { resolveContainers: a, contains: H((s) => a().some((l) => l.contains(s))), mainTreeNodeRef: o, MainTreeNode: P(() => function() {
1968
+ return { resolveContainers: a, contains: I((s) => a().some((l) => l.contains(s))), mainTreeNodeRef: o, MainTreeNode: P(() => function() {
1969
1969
  return n != null ? null : T.createElement(Xt, { features: vt.Hidden, ref: o });
1970
1970
  }, [o, n]) };
1971
1971
  }
@@ -1998,7 +1998,7 @@ function Aa(e, t) {
1998
1998
  Oa(s, { ownerDocument: u });
1999
1999
  let d = Ra(s, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
2000
2000
  Va(s, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
2001
- let c = La(), p = H((_) => {
2001
+ let c = La(), p = I((_) => {
2002
2002
  let g = n.current;
2003
2003
  g && ((b) => b())(() => {
2004
2004
  ye(c.current, { [je.Forwards]: () => {
@@ -2020,20 +2020,20 @@ function Aa(e, t) {
2020
2020
  } };
2021
2021
  return T.createElement(T.Fragment, null, f && T.createElement(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: vt.Focusable }), Z({ ourProps: m, theirProps: l, defaultTag: Na, name: "FocusTrap" }), f && T.createElement(Xt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: vt.Focusable }));
2022
2022
  }
2023
- let Da = q(Aa), Ha = Object.assign(Da, { features: $e });
2024
- function Ia(e = !0) {
2023
+ let Da = q(Aa), Ia = Object.assign(Da, { features: $e });
2024
+ function Ha(e = !0) {
2025
2025
  let t = w(ve.slice());
2026
2026
  return wn(([n], [r]) => {
2027
2027
  r === !0 && n === !1 && bt(() => {
2028
2028
  t.current.splice(0);
2029
2029
  }), r === !1 && n === !0 && (t.current = ve.slice());
2030
- }, [e, ve, t]), H(() => {
2030
+ }, [e, ve, t]), I(() => {
2031
2031
  var n;
2032
2032
  return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
2033
2033
  });
2034
2034
  }
2035
2035
  function Oa(e, { ownerDocument: t }) {
2036
- let n = !!(e & 8), r = Ia(n);
2036
+ let n = !!(e & 8), r = Ha(n);
2037
2037
  wn(() => {
2038
2038
  n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && fe(r());
2039
2039
  }, [n]), so(() => {
@@ -2091,7 +2091,7 @@ function ho(e, t) {
2091
2091
  }
2092
2092
  function _o(e) {
2093
2093
  var t;
2094
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : mo) !== I || T.Children.count(e.children) === 1;
2094
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : mo) !== H || T.Children.count(e.children) === 1;
2095
2095
  }
2096
2096
  let Ct = G(null);
2097
2097
  Ct.displayName = "TransitionContext";
@@ -2112,7 +2112,7 @@ function kt(e) {
2112
2112
  return "children" in e ? kt(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
2113
2113
  }
2114
2114
  function vo(e, t) {
2115
- let n = Le(e), r = w([]), o = bn(), i = Et(), a = H((f, v = me.Hidden) => {
2115
+ let n = Le(e), r = w([]), o = bn(), i = Et(), a = I((f, v = me.Hidden) => {
2116
2116
  let y = r.current.findIndex(({ el: m }) => m === f);
2117
2117
  y !== -1 && (ye(v, { [me.Unmount]() {
2118
2118
  r.current.splice(y, 1);
@@ -2122,16 +2122,16 @@ function vo(e, t) {
2122
2122
  var m;
2123
2123
  !kt(r) && o.current && ((m = n.current) == null || m.call(n));
2124
2124
  }));
2125
- }), s = H((f) => {
2125
+ }), s = I((f) => {
2126
2126
  let v = r.current.find(({ el: y }) => y === f);
2127
2127
  return v ? v.state !== "visible" && (v.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, me.Unmount);
2128
- }), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = H((f, v, y) => {
2128
+ }), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = I((f, v, y) => {
2129
2129
  l.current.splice(0), t && (t.chains.current[v] = t.chains.current[v].filter(([m]) => m !== f)), t == null || t.chains.current[v].push([f, new Promise((m) => {
2130
2130
  l.current.push(m);
2131
2131
  })]), t == null || t.chains.current[v].push([f, new Promise((m) => {
2132
2132
  Promise.all(d.current[v].map(([_, g]) => g)).then(() => m());
2133
2133
  })]), v === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => y(v)) : y(v);
2134
- }), p = H((f, v, y) => {
2134
+ }), p = I((f, v, y) => {
2135
2135
  Promise.all(d.current[v].splice(0).map(([m, _]) => _)).then(() => {
2136
2136
  var m;
2137
2137
  (m = l.current.shift()) == null || m();
@@ -2139,7 +2139,7 @@ function vo(e, t) {
2139
2139
  });
2140
2140
  return P(() => ({ children: r, register: s, unregister: a, onStart: c, onStop: p, wait: u, chains: d }), [s, a, r, c, p, d, u]);
2141
2141
  }
2142
- let mo = I, yo = _t.RenderStrategy;
2142
+ let mo = H, yo = _t.RenderStrategy;
2143
2143
  function Ba(e, t) {
2144
2144
  var n, r;
2145
2145
  let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: p, leave: f, leaveFrom: v, leaveTo: y, ...m } = e, _ = w(null), g = _o(e), b = ae(...g ? [_, t] : t === null ? [] : [t]), C = (n = m.unmount) == null || n ? me.Unmount : me.Hidden, { show: $, appear: L, initial: O } = Wa(), [R, W] = k($ ? "visible" : "hidden"), E = ja(), { register: F, unregister: x } = E;
@@ -2158,13 +2158,13 @@ function Ba(e, t) {
2158
2158
  }, [_, R, M, g]);
2159
2159
  let K = O && !L, re = L && $ && O, Q = w(!1), J = vo(() => {
2160
2160
  Q.current || (W("hidden"), x(_));
2161
- }, E), _e = H((Ft) => {
2161
+ }, E), _e = I((Ft) => {
2162
2162
  Q.current = !0;
2163
2163
  let rt = Ft ? "enter" : "leave";
2164
2164
  J.onStart(_, rt, (Ve) => {
2165
2165
  Ve === "enter" ? i == null || i() : Ve === "leave" && (s == null || s());
2166
2166
  });
2167
- }), le = H((Ft) => {
2167
+ }), le = I((Ft) => {
2168
2168
  let rt = Ft ? "enter" : "leave";
2169
2169
  Q.current = !1, J.onStop(_, rt, (Ve) => {
2170
2170
  Ve === "enter" ? a == null || a() : Ve === "leave" && (l == null || l());
@@ -2191,14 +2191,14 @@ function za(e, t) {
2191
2191
  no(n, a, () => c("hidden")), z(() => {
2192
2192
  n ? c("visible") : !kt(p) && a.current !== null && c("hidden");
2193
2193
  }, [n, p]);
2194
- let _ = { unmount: o }, g = H(() => {
2194
+ let _ = { unmount: o }, g = I(() => {
2195
2195
  var C;
2196
2196
  f && v(!1), (C = e.beforeEnter) == null || C.call(e);
2197
- }), b = H(() => {
2197
+ }), b = I(() => {
2198
2198
  var C;
2199
2199
  f && v(!1), (C = e.beforeLeave) == null || C.call(e);
2200
2200
  });
2201
- return T.createElement(xt.Provider, { value: p }, T.createElement(Ct.Provider, { value: m }, Z({ ourProps: { ..._, as: I, children: T.createElement(go, { ref: l, ..._, ...i, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: I, features: yo, visible: d === "visible", name: "Transition" })));
2201
+ return T.createElement(xt.Provider, { value: p }, T.createElement(Ct.Provider, { value: m }, Z({ ourProps: { ..._, as: H, children: T.createElement(go, { ref: l, ..._, ...i, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: H, features: yo, visible: d === "visible", name: "Transition" })));
2202
2202
  }
2203
2203
  function qa(e, t) {
2204
2204
  let n = B(Ct) !== null, r = Tt() !== null;
@@ -2228,14 +2228,14 @@ let Jn = q(function(e, t) {
2228
2228
  }();
2229
2229
  let p = Tt();
2230
2230
  o === void 0 && p !== null && (o = (p & ee.Open) === ee.Open);
2231
- let f = w(null), v = ae(f, t), y = tt(f), m = o ? 0 : 1, [_, g] = Qe(Za, { titleId: null, descriptionId: null, panelRef: on() }), b = H(() => i(!1)), C = H((j) => g({ type: 0, id: j })), $ = nt() ? m === 0 : !1, [L, O] = xa(), R = { get current() {
2231
+ let f = w(null), v = ae(f, t), y = tt(f), m = o ? 0 : 1, [_, g] = Qe(Za, { titleId: null, descriptionId: null, panelRef: on() }), b = I(() => i(!1)), C = I((j) => g({ type: 0, id: j })), $ = nt() ? m === 0 : !1, [L, O] = xa(), R = { get current() {
2232
2232
  var j;
2233
2233
  return (j = _.panelRef.current) != null ? j : f.current;
2234
2234
  } }, { resolveContainers: W, mainTreeNodeRef: E, MainTreeNode: F } = Pa({ portals: L, defaultContainers: [R] }), x = p !== null ? (p & ee.Closing) === ee.Closing : !1;
2235
- ji(u || x ? !1 : $, { allowed: H(() => {
2235
+ ji(u || x ? !1 : $, { allowed: I(() => {
2236
2236
  var j, U;
2237
2237
  return [(U = (j = f.current) == null ? void 0 : j.closest("[data-headlessui-portal]")) != null ? U : null];
2238
- }), disallowed: H(() => {
2238
+ }), disallowed: I(() => {
2239
2239
  var j, U;
2240
2240
  return [(U = (j = E.current) == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? U : null];
2241
2241
  }) }), ta($, W, (j) => {
@@ -2244,7 +2244,7 @@ let Jn = q(function(e, t) {
2244
2244
  j.preventDefault(), j.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), b();
2245
2245
  }), sa(u || x ? !1 : $, y, W), no($, f, b);
2246
2246
  let [M, K] = Ai(), re = P(() => [{ dialogState: m, close: b, setTitleId: C }, _], [m, _, b, C]), Q = P(() => ({ open: m === 0 }), [m]), J = { ref: v, id: r, role: s, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": _.titleId, "aria-describedby": M }, _e = !Ma(), le = $e.None;
2247
- return $ && !u && (le |= $e.RestoreFocus, le |= $e.TabLock, l && (le |= $e.AutoFocus), _e && (le |= $e.InitialFocus)), T.createElement(ma, null, T.createElement(Qn, { force: !0 }, T.createElement(Sa, null, T.createElement($n.Provider, { value: re }, T.createElement(fo, { target: f }, T.createElement(Qn, { force: !1 }, T.createElement(K, { slot: Q }, T.createElement(O, null, T.createElement(Ha, { initialFocus: a, initialFocusFallback: f, containers: W, features: le }, T.createElement(Vi, { value: b }, Z({ ourProps: J, theirProps: d, slot: Q, defaultTag: Xa, features: Qa, visible: m === 0, name: "Dialog" })))))))))), T.createElement(Li, null, T.createElement(F, null)));
2247
+ return $ && !u && (le |= $e.RestoreFocus, le |= $e.TabLock, l && (le |= $e.AutoFocus), _e && (le |= $e.InitialFocus)), T.createElement(ma, null, T.createElement(Qn, { force: !0 }, T.createElement(Sa, null, T.createElement($n.Provider, { value: re }, T.createElement(fo, { target: f }, T.createElement(Qn, { force: !1 }, T.createElement(K, { slot: Q }, T.createElement(O, null, T.createElement(Ia, { initialFocus: a, initialFocusFallback: f, containers: W, features: le }, T.createElement(Vi, { value: b }, Z({ ourProps: J, theirProps: d, slot: Q, defaultTag: Xa, features: Qa, visible: m === 0, name: "Dialog" })))))))))), T.createElement(Li, null, T.createElement(F, null)));
2248
2248
  }), Xa = "div", Qa = _t.RenderStrategy | _t.Static;
2249
2249
  function Ja(e, t) {
2250
2250
  let { transition: n = !1, open: r, ...o } = e, i = Tt(), a = e.hasOwnProperty("open") || i !== null, s = e.hasOwnProperty("onClose");
@@ -2257,15 +2257,15 @@ function Ja(e, t) {
2257
2257
  }
2258
2258
  let es = "div";
2259
2259
  function ts(e, t) {
2260
- let n = ge(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = St("Dialog.Panel"), l = ae(t, s.panelRef), u = P(() => ({ open: a === 0 }), [a]), d = H((c) => {
2260
+ let n = ge(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, s] = St("Dialog.Panel"), l = ae(t, s.panelRef), u = P(() => ({ open: a === 0 }), [a]), d = I((c) => {
2261
2261
  c.stopPropagation();
2262
2262
  });
2263
- return T.createElement(o ? En : I, null, Z({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: es, name: "Dialog.Panel" }));
2263
+ return T.createElement(o ? En : H, null, Z({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: es, name: "Dialog.Panel" }));
2264
2264
  }
2265
2265
  let ns = "div";
2266
2266
  function rs(e, t) {
2267
2267
  let { transition: n = !1, ...r } = e, [{ dialogState: o }] = St("Dialog.Backdrop"), i = P(() => ({ open: o === 0 }), [o]);
2268
- return T.createElement(n ? En : I, null, Z({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: ns, name: "Dialog.Backdrop" }));
2268
+ return T.createElement(n ? En : H, null, Z({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: ns, name: "Dialog.Backdrop" }));
2269
2269
  }
2270
2270
  let os = "h2";
2271
2271
  function is(e, t) {
@@ -2528,27 +2528,8 @@ function $o(e = {}) {
2528
2528
  savedPhoto: o
2529
2529
  };
2530
2530
  }
2531
- function pe(e, t) {
2532
- return Math.sqrt(e ** 2 + t ** 2);
2533
- }
2534
- function Ss(e) {
2535
- const t = e.slice();
2536
- for (let n = t.length - 1; n > 0; n--) {
2537
- const r = Math.floor(Math.random() * (n + 1));
2538
- [t[n], t[r]] = [t[r], t[n]];
2539
- }
2540
- return t;
2541
- }
2542
- function Fs(e, t) {
2543
- return new Promise((n, r) => {
2544
- const o = Array.isArray(e) ? e : [e], i = new File(o, `${Date.now()}`, {
2545
- type: t
2546
- }), a = new FileReader();
2547
- a.readAsDataURL(i), a.onload = () => n(a.result), a.onerror = (s) => r(s);
2548
- });
2549
- }
2550
- const Ms = "https://cdn.svc.youverify.co", Ps = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
2551
- function Ls(e) {
2531
+ const Ss = "https://cdn.svc.youverify.co", Fs = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
2532
+ function Ms(e) {
2552
2533
  return { postData: async (n) => {
2553
2534
  const {
2554
2535
  faceImage: r,
@@ -2556,10 +2537,10 @@ function Ls(e) {
2556
2537
  passed: i,
2557
2538
  metadata: a,
2558
2539
  video: s
2559
- } = n, l = Ps(e), u = new FormData();
2560
- u.append("files", s);
2540
+ } = n, l = Fs(e), u = new FormData();
2541
+ u.append("files", r), u.append("files", s);
2561
2542
  const d = await fetch(
2562
- `${Ms}/v1/uploads/media`,
2543
+ `${Ss}/v1/uploads/media`,
2563
2544
  {
2564
2545
  method: "POST",
2565
2546
  headers: {
@@ -2578,8 +2559,8 @@ function Ls(e) {
2578
2559
  body: JSON.stringify({
2579
2560
  publicMerchantID: o,
2580
2561
  components: ["liveness"],
2581
- faceImage: r,
2582
- livenessClip: c[0].cachedLocation,
2562
+ faceImage: c[0].cachedLocation,
2563
+ livenessClip: c[1].cachedLocation,
2583
2564
  passed: i,
2584
2565
  metadata: a
2585
2566
  })
@@ -2589,7 +2570,7 @@ function Ls(e) {
2589
2570
  return (await p.json()).data;
2590
2571
  } };
2591
2572
  }
2592
- const Ns = 360, As = "#125766", Ds = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", To = {
2573
+ const Ps = 360, Ls = "#125766", Ns = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", To = {
2593
2574
  "complete-the-circle": {
2594
2575
  Icon: ms,
2595
2576
  name: "Complete The Circle ⭕️",
@@ -2629,7 +2610,7 @@ const Ns = 360, As = "#125766", Ds = "https://cdn.youverify.co/1721901834404-q2n
2629
2610
  onComplete: () => Promise.resolve()
2630
2611
  });
2631
2612
  let er, tr = !1;
2632
- function Hs(e) {
2613
+ function As(e) {
2633
2614
  const {
2634
2615
  publicKey: t,
2635
2616
  tasks: n,
@@ -2643,20 +2624,20 @@ function Hs(e) {
2643
2624
  metadata: u,
2644
2625
  presentation: d,
2645
2626
  sandboxEnvironment: c = !0
2646
- } = e, [p, f] = k(0), [v, y] = k(0), [m, _] = k(null), { saveStream: g, savePhoto: b, savedPhoto: C, savedStreams: $ } = $o(), { postData: L } = Ls(c), O = P(
2627
+ } = e, [p, f] = k(0), [v, y] = k(0), [m, _] = k(null), { saveStream: g, savePhoto: b, savedPhoto: C, savedStreams: $ } = $o(), { postData: L } = Ms(c), O = P(
2647
2628
  () => v === n.length,
2648
2629
  [n, v]
2649
2630
  ), R = () => {
2650
2631
  y((x) => x + 1), f((x) => x + 1);
2651
2632
  }, W = (x) => {
2652
2633
  const M = new Image();
2653
- M.crossOrigin = "Anonymous", M.src = Ds, M.onload = () => {
2634
+ M.crossOrigin = "Anonymous", M.src = Ns, M.onload = () => {
2654
2635
  const K = Eo(M, M.width, M.height);
2655
2636
  ke.detectFaces(x, K);
2656
2637
  };
2657
2638
  }, E = async () => {
2658
2639
  const x = await L({
2659
- faceImage: await Fs(C.current, "image/png"),
2640
+ faceImage: C.current,
2660
2641
  video: new Blob($.current, { type: "video/mp4" }),
2661
2642
  publicKey: t,
2662
2643
  passed: !0,
@@ -2699,29 +2680,29 @@ function Hs(e) {
2699
2680
  function Ne() {
2700
2681
  return B(Co);
2701
2682
  }
2702
- const Is = "_root_vqy7d_1", Os = "_container_vqy7d_4", Rs = "_lhs_vqy7d_7", Vs = "_info_vqy7d_11", Us = "_active_vqy7d_32", Ws = "_completed_vqy7d_39", js = "_rhs_vqy7d_62", Bs = "_profile_vqy7d_65", zs = "_avatar_vqy7d_68", qs = "_main_vqy7d_81", Ks = "_content_vqy7d_84", Y = {
2703
- root: Is,
2704
- container: Os,
2705
- lhs: Rs,
2706
- info: Vs,
2707
- active: Us,
2708
- completed: Ws,
2709
- rhs: js,
2710
- profile: Bs,
2711
- avatar: zs,
2712
- main: qs,
2713
- content: Ks
2714
- }, Ys = "_root_135td_1", Gs = "_container_135td_1", Zs = "_brand_135td_1", Dt = {
2715
- root: Ys,
2716
- container: Gs,
2717
- brand: Zs
2683
+ const Ds = "_root_vqy7d_1", Is = "_container_vqy7d_4", Hs = "_lhs_vqy7d_7", Os = "_info_vqy7d_11", Rs = "_active_vqy7d_32", Vs = "_completed_vqy7d_39", Us = "_rhs_vqy7d_62", Ws = "_profile_vqy7d_65", js = "_avatar_vqy7d_68", Bs = "_main_vqy7d_81", zs = "_content_vqy7d_84", Y = {
2684
+ root: Ds,
2685
+ container: Is,
2686
+ lhs: Hs,
2687
+ info: Os,
2688
+ active: Rs,
2689
+ completed: Vs,
2690
+ rhs: Us,
2691
+ profile: Ws,
2692
+ avatar: js,
2693
+ main: Bs,
2694
+ content: zs
2695
+ }, qs = "_root_135td_1", Ks = "_container_135td_1", Ys = "_brand_135td_1", Dt = {
2696
+ root: qs,
2697
+ container: Ks,
2698
+ brand: Ys
2718
2699
  };
2719
- function Xs() {
2700
+ function Gs() {
2720
2701
  const { branding: e } = Ne();
2721
2702
  return /* @__PURE__ */ h("div", { className: Dt.root, children: /* @__PURE__ */ h("div", { className: Dt.container, children: /* @__PURE__ */ h("div", { className: Dt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ h("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
2722
2703
  }
2723
2704
  const nr = "colorScheme";
2724
- function Qs() {
2705
+ function Zs() {
2725
2706
  const { namespace: e } = Ne(), t = () => {
2726
2707
  const o = localStorage.getItem(nr);
2727
2708
  return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
@@ -2735,10 +2716,10 @@ function Qs() {
2735
2716
  return n(o === "dark" ? "light" : "dark");
2736
2717
  }, getColorScheme: t };
2737
2718
  }
2738
- const Js = "_root_bcsvc_1", el = {
2739
- root: Js
2719
+ const Xs = "_root_bcsvc_1", Qs = {
2720
+ root: Xs
2740
2721
  };
2741
- function tl() {
2722
+ function Js() {
2742
2723
  if (!(window.screen.width >= 900))
2743
2724
  return 10 / 9;
2744
2725
  }
@@ -2750,7 +2731,7 @@ function Tn(e) {
2750
2731
  }), u = async () => {
2751
2732
  try {
2752
2733
  const p = await navigator.mediaDevices.getUserMedia({
2753
- video: { aspectRatio: { exact: tl() } }
2734
+ video: { aspectRatio: { exact: Js() } }
2754
2735
  });
2755
2736
  a.current = p, s(p), o.current && (o.current.srcObject = p);
2756
2737
  } catch {
@@ -2770,24 +2751,24 @@ function Tn(e) {
2770
2751
  return u(), p.addEventListener("canplay", f), () => {
2771
2752
  p.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
2772
2753
  };
2773
- }, []), /* @__PURE__ */ h("div", { className: el.root, children: [
2754
+ }, []), /* @__PURE__ */ h("div", { className: Qs.root, children: [
2774
2755
  /* @__PURE__ */ h("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
2775
2756
  t
2776
2757
  ] });
2777
2758
  }
2778
- const nl = "_container_mcmsr_1", rl = "_focused_mcmsr_12", ol = "_progress_mcmsr_15", il = "_completed_mcmsr_36", al = "_marker_mcmsr_40", We = {
2779
- container: nl,
2780
- focused: rl,
2781
- progress: ol,
2782
- completed: il,
2783
- marker: al
2784
- }, rr = 360, sl = 50;
2785
- function ll(e) {
2759
+ const el = "_container_mcmsr_1", tl = "_focused_mcmsr_12", nl = "_progress_mcmsr_15", rl = "_completed_mcmsr_36", ol = "_marker_mcmsr_40", We = {
2760
+ container: el,
2761
+ focused: tl,
2762
+ progress: nl,
2763
+ completed: rl,
2764
+ marker: ol
2765
+ }, rr = 360, il = 50;
2766
+ function al(e) {
2786
2767
  const {
2787
2768
  visitedSections: t,
2788
2769
  sectionsCount: n,
2789
2770
  faceDetected: r,
2790
- divisions: o = sl
2771
+ divisions: o = il
2791
2772
  } = e, i = P(() => {
2792
2773
  const a = [We.container];
2793
2774
  return r && a.push(We.focused), a.join(" ");
@@ -2847,7 +2828,7 @@ function ll(e) {
2847
2828
  )
2848
2829
  ] });
2849
2830
  }
2850
- function cl() {
2831
+ function sl() {
2851
2832
  return { checkZoomLevel: (r, o) => {
2852
2833
  const { box: i } = r, { width: a, height: s } = i, l = a * s, u = o ** 2, d = l / u;
2853
2834
  if (d > 0.9)
@@ -2861,15 +2842,26 @@ function cl() {
2861
2842
  throw new Error("Position head in frame");
2862
2843
  } };
2863
2844
  }
2864
- const ul = 1, dl = 9, Ht = {
2845
+ function pe(e, t) {
2846
+ return Math.sqrt(e ** 2 + t ** 2);
2847
+ }
2848
+ function ll(e) {
2849
+ const t = e.slice();
2850
+ for (let n = t.length - 1; n > 0; n--) {
2851
+ const r = Math.floor(Math.random() * (n + 1));
2852
+ [t[n], t[r]] = [t[r], t[n]];
2853
+ }
2854
+ return t;
2855
+ }
2856
+ const cl = 1, ul = 9, It = {
2865
2857
  centerMin: 20,
2866
2858
  centerMax: 100,
2867
2859
  verticalMin: 230
2868
2860
  };
2869
- function fl() {
2861
+ function dl() {
2870
2862
  return {
2871
2863
  isReady: (t) => {
2872
- const { keypoints: n, box: r } = t, o = n[ul], i = n[dl], a = n[6], s = { x: r.width * 0.5, y: r.height * 0.5 }, l = { y: o.y - r.yMin, x: o.x - r.xMin }, u = {
2864
+ const { keypoints: n, box: r } = t, o = n[cl], i = n[ul], a = n[6], s = { x: r.width * 0.5, y: r.height * 0.5 }, l = { y: o.y - r.yMin, x: o.x - r.xMin }, u = {
2873
2865
  y: a.y - r.yMin,
2874
2866
  x: a.x - r.xMin
2875
2867
  }, d = {
@@ -2886,8 +2878,8 @@ function fl() {
2886
2878
  d.x - l.x,
2887
2879
  d.y - l.y
2888
2880
  );
2889
- return p = p / c * 100, f = f / c * 100, p < Ht.centerMax && p > Ht.centerMin && // verticalEuclideanDist < THRESHOLD.verticalMax &&
2890
- f > Ht.verticalMin;
2881
+ return p = p / c * 100, f = f / c * 100, p < It.centerMax && p > It.centerMin && // verticalEuclideanDist < THRESHOLD.verticalMax &&
2882
+ f > It.verticalMin;
2891
2883
  }
2892
2884
  };
2893
2885
  }
@@ -2899,7 +2891,7 @@ function Cn(e = {}) {
2899
2891
  },
2900
2892
  onError: o = () => {
2901
2893
  }
2902
- } = e, { faceDetector: i, savePhoto: a } = Ne(), s = w(!1), { isReady: l } = fl(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = cl(), p = w(null), f = (y, m) => {
2894
+ } = e, { faceDetector: i, savePhoto: a } = Ne(), s = w(!1), { isReady: l } = dl(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = sl(), p = w(null), f = (y, m) => {
2903
2895
  var _;
2904
2896
  try {
2905
2897
  if (y.length === 0)
@@ -2968,23 +2960,23 @@ function Cn(e = {}) {
2968
2960
  f($, _);
2969
2961
  } };
2970
2962
  }
2971
- const pl = "_root_5hgaj_1", hl = "_container_5hgaj_4", _l = "_progress_5hgaj_7", vl = "_intro_5hgaj_12", ml = "_content_5hgaj_15", yl = "_branding_5hgaj_18", gl = "_instructionsContainer_5hgaj_22", wl = "_instructions_5hgaj_22", oe = {
2972
- root: pl,
2973
- container: hl,
2974
- progress: _l,
2975
- intro: vl,
2976
- content: ml,
2977
- branding: yl,
2978
- instructionsContainer: gl,
2979
- instructions: wl
2980
- }, bl = "_root_h5elg_1", El = "_spinner_h5elg_22", or = {
2981
- root: bl,
2982
- spinner: El
2983
- }, $l = "_container_1vep2_1", Tl = "_spin_1vep2_1", Cl = "_md_1vep2_7", xl = "_lg_1vep2_10", ir = {
2984
- container: $l,
2985
- spin: Tl,
2986
- md: Cl,
2987
- lg: xl
2963
+ const fl = "_root_5hgaj_1", pl = "_container_5hgaj_4", hl = "_progress_5hgaj_7", _l = "_intro_5hgaj_12", vl = "_content_5hgaj_15", ml = "_branding_5hgaj_18", yl = "_instructionsContainer_5hgaj_22", gl = "_instructions_5hgaj_22", oe = {
2964
+ root: fl,
2965
+ container: pl,
2966
+ progress: hl,
2967
+ intro: _l,
2968
+ content: vl,
2969
+ branding: ml,
2970
+ instructionsContainer: yl,
2971
+ instructions: gl
2972
+ }, wl = "_root_h5elg_1", bl = "_spinner_h5elg_22", or = {
2973
+ root: wl,
2974
+ spinner: bl
2975
+ }, El = "_container_1vep2_1", $l = "_spin_1vep2_1", Tl = "_md_1vep2_7", Cl = "_lg_1vep2_10", ir = {
2976
+ container: El,
2977
+ spin: $l,
2978
+ md: Tl,
2979
+ lg: Cl
2988
2980
  };
2989
2981
  function xo(e) {
2990
2982
  const { size: t = "md", className: n = "" } = e;
@@ -3175,8 +3167,8 @@ function kn(e = {}) {
3175
3167
  stop: a
3176
3168
  };
3177
3169
  }
3178
- const kl = 1, It = 8, ar = "Place face in frame";
3179
- function Sl(e) {
3170
+ const xl = 1, Ht = 8, ar = "Place face in frame";
3171
+ function kl(e) {
3180
3172
  const { difficulty: t, timeout: n } = e, { saveStream: r } = Ne(), [o, i] = k([]), [a, s] = k(ar), [l, u] = k(!1), [d, c] = k(!1), p = w(/* @__PURE__ */ new Set()), f = w(!1), v = w(null), {
3181
3173
  reset: y,
3182
3174
  start: m,
@@ -3185,8 +3177,8 @@ function Sl(e) {
3185
3177
  } = kn({ timeout: n }), b = () => {
3186
3178
  i([]), s(ar), u(!1), c(!1), p.current = /* @__PURE__ */ new Set(), f.current = !1, v.current = null, y();
3187
3179
  }, C = (E) => {
3188
- const F = E * It, x = Math.ceil((F + 1) / Ns);
3189
- p.current.has(x) || (p.current.add(x), i(Array.from(p.current))), p.current.size >= It && (_(), setTimeout(() => {
3180
+ const F = E * Ht, x = Math.ceil((F + 1) / Ps);
3181
+ p.current.has(x) || (p.current.add(x), i(Array.from(p.current))), p.current.size >= Ht && (_(), setTimeout(() => {
3190
3182
  c(!0);
3191
3183
  }, 1e3));
3192
3184
  }, $ = (E, F) => {
@@ -3204,7 +3196,7 @@ function Sl(e) {
3204
3196
  return 10;
3205
3197
  }
3206
3198
  }, []), O = (E) => {
3207
- const { keypoints: F, box: x } = E, M = { x: x.width * 0.5, y: x.height * 0.5 }, K = F[kl], re = { y: K.y - x.yMin, x: K.x - x.xMin }, Q = M.x - re.x, J = re.y - M.y, _e = L();
3199
+ const { keypoints: F, box: x } = E, M = { x: x.width * 0.5, y: x.height * 0.5 }, K = F[xl], re = { y: K.y - x.yMin, x: K.x - x.xMin }, Q = M.x - re.x, J = re.y - M.y, _e = L();
3208
3200
  return Math.abs(Q) < _e && Math.abs(J) < _e ? null : $(Q, J);
3209
3201
  }, { detectFaces: R } = Cn({
3210
3202
  frameSize: 280,
@@ -3218,7 +3210,7 @@ function Sl(e) {
3218
3210
  s(E), i([]), p.current.clear(), v.current = null, f.current = !1;
3219
3211
  }
3220
3212
  });
3221
- return /* @__PURE__ */ h(I, { children: /* @__PURE__ */ h(
3213
+ return /* @__PURE__ */ h(H, { children: /* @__PURE__ */ h(
3222
3214
  xn,
3223
3215
  {
3224
3216
  instruction: {
@@ -3239,25 +3231,25 @@ function Sl(e) {
3239
3231
  } catch {
3240
3232
  }
3241
3233
  }, onRecord: r, children: /* @__PURE__ */ h(
3242
- ll,
3234
+ al,
3243
3235
  {
3244
3236
  faceDetected: l,
3245
- sectionsCount: It,
3237
+ sectionsCount: Ht,
3246
3238
  visitedSections: o
3247
3239
  }
3248
3240
  ) })
3249
3241
  }
3250
3242
  ) });
3251
3243
  }
3252
- const Fl = "_root_thujo_1", Ml = "_sticker_thujo_4", Pl = "_no_thujo_7", Ll = "_yes_thujo_12", Ot = {
3253
- root: Fl,
3254
- sticker: Ml,
3255
- no: Pl,
3256
- yes: Ll
3244
+ const Sl = "_root_thujo_1", Fl = "_sticker_thujo_4", Ml = "_no_thujo_7", Pl = "_yes_thujo_12", Ot = {
3245
+ root: Sl,
3246
+ sticker: Fl,
3247
+ no: Ml,
3248
+ yes: Pl
3257
3249
  };
3258
- function Nl(e) {
3250
+ function Ll(e) {
3259
3251
  const { show: t, stickers: n } = e;
3260
- return /* @__PURE__ */ h(I, { children: t && /* @__PURE__ */ h("div", { className: Ot.root, children: n.map((r) => /* @__PURE__ */ h(
3252
+ return /* @__PURE__ */ h(H, { children: t && /* @__PURE__ */ h("div", { className: Ot.root, children: n.map((r) => /* @__PURE__ */ h(
3261
3253
  "div",
3262
3254
  {
3263
3255
  className: `${Ot.sticker} ${Ot[r]}`,
@@ -3266,13 +3258,13 @@ function Nl(e) {
3266
3258
  `sticker-${r}`
3267
3259
  )) }) });
3268
3260
  }
3269
- const Al = {
3261
+ const Nl = {
3270
3262
  question: "Are you alive?",
3271
3263
  errorMessage: "You have to be alive to proceed though",
3272
3264
  answer: !0
3273
- }, Dl = "Wrong answer. Try again", sr = "Keep face in camera";
3274
- function Hl(e) {
3275
- const { difficulty: t, questions: n = [Al], timeout: r } = e, [o, i] = k(sr), [a, s] = k(!1), [l, u] = k(!1), { saveStream: d } = Ne(), c = w("inactive"), p = w(0), f = w(!1), v = w(null), y = w(null), m = () => {
3265
+ }, Al = "Wrong answer. Try again", sr = "Keep face in camera";
3266
+ function Dl(e) {
3267
+ const { difficulty: t, questions: n = [Nl], timeout: r } = e, [o, i] = k(sr), [a, s] = k(!1), [l, u] = k(!1), { saveStream: d } = Ne(), c = w("inactive"), p = w(0), f = w(!1), v = w(null), y = w(null), m = () => {
3276
3268
  v.current && clearTimeout(v.current), y.current && clearTimeout(y.current);
3277
3269
  }, {
3278
3270
  reset: _,
@@ -3309,7 +3301,7 @@ function Hl(e) {
3309
3301
  p.current += 1, p.current === n.length ? (u(!0), b()) : O(p.current);
3310
3302
  else
3311
3303
  throw new Error(
3312
- n[p.current].errorMessage || Dl
3304
+ n[p.current].errorMessage || Al
3313
3305
  );
3314
3306
  } catch (M) {
3315
3307
  i(M.message), y.current = setTimeout(() => {
@@ -3347,7 +3339,7 @@ function Hl(e) {
3347
3339
  onReset: $,
3348
3340
  onStart: g,
3349
3341
  completed: l,
3350
- children: /* @__PURE__ */ h(Tn, { onStream: F, onRecord: d, children: /* @__PURE__ */ h(Nl, { show: a, stickers: ["yes", "no"] }) })
3342
+ children: /* @__PURE__ */ h(Tn, { onStream: F, onRecord: d, children: /* @__PURE__ */ h(Ll, { show: a, stickers: ["yes", "no"] }) })
3351
3343
  }
3352
3344
  );
3353
3345
  }
@@ -3366,7 +3358,7 @@ function Il(e = {}) {
3366
3358
  canUse: n
3367
3359
  };
3368
3360
  }
3369
- function Ol(e) {
3361
+ function Hl(e) {
3370
3362
  const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), a = w(!0), s = w(null), l = w(null), u = w(0), d = w(!1), c = P(() => {
3371
3363
  switch (o) {
3372
3364
  case "easy":
@@ -3426,7 +3418,7 @@ function Ol(e) {
3426
3418
  i.current = null, a.current = !0, s.current = null, l.current = null, u.current = 0, d.current = !1;
3427
3419
  } };
3428
3420
  }
3429
- function Rl(e) {
3421
+ function Ol(e) {
3430
3422
  const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = P(() => {
3431
3423
  switch (r) {
3432
3424
  case "easy":
@@ -3458,7 +3450,7 @@ function Rl(e) {
3458
3450
  o.current = !1;
3459
3451
  } };
3460
3452
  }
3461
- function Vl(e) {
3453
+ function Rl(e) {
3462
3454
  const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), a = w(!1), s = w(null), l = w(0), u = P(() => {
3463
3455
  switch (o) {
3464
3456
  case "easy":
@@ -3510,7 +3502,7 @@ function Vl(e) {
3510
3502
  i.current = !0, a.current = !1, s.current = null, l.current = 0;
3511
3503
  } };
3512
3504
  }
3513
- function Ul() {
3505
+ function Vl() {
3514
3506
  return {
3515
3507
  requestDeviceOrientationPermission: async () => {
3516
3508
  if (!window.DeviceOrientationEvent)
@@ -3522,9 +3514,9 @@ function Ul() {
3522
3514
  };
3523
3515
  }
3524
3516
  var ko = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(ko || {});
3525
- const lr = Ss(Object.keys(ko)), cr = "Keep face in camera";
3526
- function Wl(e) {
3527
- const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5, timeout: o } = e, i = w(0), [a, s] = k(cr), [l, u] = k(!1), [d, c] = k(null), p = w(!1), { requestDeviceOrientationPermission: f } = Ul(), {
3517
+ const lr = ll(Object.keys(ko)), cr = "Keep face in camera";
3518
+ function Ul(e) {
3519
+ const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5, timeout: o } = e, i = w(0), [a, s] = k(cr), [l, u] = k(!1), [d, c] = k(null), p = w(!1), { requestDeviceOrientationPermission: f } = Vl(), {
3528
3520
  reset: v,
3529
3521
  start: y,
3530
3522
  stop: m,
@@ -3535,16 +3527,16 @@ function Wl(e) {
3535
3527
  return;
3536
3528
  }
3537
3529
  i.current += 1;
3538
- }, b = Ol({
3530
+ }, b = Hl({
3539
3531
  total: Math.floor(Math.random() * r + 1),
3540
3532
  difficulty: t,
3541
3533
  onMessage: (E) => s(E),
3542
3534
  onComplete: g
3543
- }), C = Rl({
3535
+ }), C = Ol({
3544
3536
  difficulty: t,
3545
3537
  onMessage: (E) => s(E),
3546
3538
  onComplete: g
3547
- }), $ = Vl({
3539
+ }), $ = Rl({
3548
3540
  total: Math.floor(Math.random() * n + 1),
3549
3541
  difficulty: t,
3550
3542
  onMessage: (E) => s(E),
@@ -3598,13 +3590,13 @@ function Wl(e) {
3598
3590
  onStart: async () => {
3599
3591
  await W(), y();
3600
3592
  },
3601
- children: d ? /* @__PURE__ */ h(I, {}) : /* @__PURE__ */ h(Tn, { onStream: R })
3593
+ children: d ? /* @__PURE__ */ h(H, {}) : /* @__PURE__ */ h(Tn, { onStream: R })
3602
3594
  }
3603
3595
  );
3604
3596
  }
3605
- function jl() {
3597
+ function Wl() {
3606
3598
  var C;
3607
- const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Qs(), {
3599
+ const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Zs(), {
3608
3600
  user: r,
3609
3601
  tasks: o,
3610
3602
  currentTaskIndex: i,
@@ -3632,7 +3624,7 @@ function jl() {
3632
3624
  return /* @__PURE__ */ h("div", { className: Y.root, children: /* @__PURE__ */ h("div", { className: Y.container, children: [
3633
3625
  /* @__PURE__ */ h("div", { className: `${Y.lhs} divider`, children: [
3634
3626
  /* @__PURE__ */ h("div", { className: Y.info, children: [
3635
- /* @__PURE__ */ h(Xs, {}),
3627
+ /* @__PURE__ */ h(Gs, {}),
3636
3628
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("p", { className: "yvlw-text-xs yvlw-m-0 yvlw-p-0 subtext", children: "You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way." }) }),
3637
3629
  /* @__PURE__ */ h("ol", { children: [
3638
3630
  o.map(($, L) => /* @__PURE__ */ h("li", { className: b(L), children: To[$.id].name }, `task-${L}`)),
@@ -3675,16 +3667,16 @@ function jl() {
3675
3667
  let O;
3676
3668
  switch ($.id) {
3677
3669
  case "complete-the-circle":
3678
- O = /* @__PURE__ */ h(Sl, { ...$ });
3670
+ O = /* @__PURE__ */ h(kl, { ...$ });
3679
3671
  break;
3680
3672
  case "yes-or-no":
3681
- O = /* @__PURE__ */ h(Hl, { ...$ });
3673
+ O = /* @__PURE__ */ h(Dl, { ...$ });
3682
3674
  break;
3683
3675
  case "motions":
3684
- O = /* @__PURE__ */ h(Wl, { ...$ });
3676
+ O = /* @__PURE__ */ h(Ul, { ...$ });
3685
3677
  break;
3686
3678
  default:
3687
- O = /* @__PURE__ */ h(I, {});
3679
+ O = /* @__PURE__ */ h(H, {});
3688
3680
  break;
3689
3681
  }
3690
3682
  return /* @__PURE__ */ h(
@@ -3747,7 +3739,7 @@ function jl() {
3747
3739
  ] }) })
3748
3740
  ] }) });
3749
3741
  }
3750
- function Bl(e) {
3742
+ function jl(e) {
3751
3743
  const {
3752
3744
  tasks: t,
3753
3745
  namespace: n,
@@ -3765,7 +3757,7 @@ function Bl(e) {
3765
3757
  f(!1), i();
3766
3758
  };
3767
3759
  return /* @__PURE__ */ h(
3768
- Hs,
3760
+ As,
3769
3761
  {
3770
3762
  namespace: n,
3771
3763
  publicKey: u,
@@ -3787,19 +3779,19 @@ function Bl(e) {
3787
3779
  transition: !0,
3788
3780
  className: `${_s.root} ${at.root} ${at[l]}`,
3789
3781
  style: {
3790
- "--branding-color": (o == null ? void 0 : o.color) ?? As
3782
+ "--branding-color": (o == null ? void 0 : o.color) ?? Ls
3791
3783
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3792
3784
  },
3793
3785
  children: [
3794
3786
  l === "modal" && /* @__PURE__ */ h("div", { onClick: v, role: "button", className: at.close, children: /* @__PURE__ */ h($s, { className: "yvlw-text-white" }) }),
3795
- /* @__PURE__ */ h(wo, { className: `${at.container}`, children: /* @__PURE__ */ h(jl, {}) })
3787
+ /* @__PURE__ */ h(wo, { className: `${at.container}`, children: /* @__PURE__ */ h(Wl, {}) })
3796
3788
  ]
3797
3789
  }
3798
3790
  )
3799
3791
  }
3800
3792
  );
3801
3793
  }
3802
- class Kl {
3794
+ class ql {
3803
3795
  constructor(t) {
3804
3796
  this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
3805
3797
  const { presentation: n = "modal" } = t;
@@ -3816,7 +3808,7 @@ class Kl {
3816
3808
  async start(t) {
3817
3809
  t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), De(
3818
3810
  /* @__PURE__ */ h(
3819
- Bl,
3811
+ jl,
3820
3812
  {
3821
3813
  namespace: this.namespace,
3822
3814
  publicKey: this.props.publicKey,
@@ -3844,5 +3836,5 @@ class Kl {
3844
3836
  }
3845
3837
  }
3846
3838
  export {
3847
- Kl as default
3839
+ ql as default
3848
3840
  };