@ahmed_hani/dot-auto-capture-ui 7.7.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/document.mjs +865 -874
  2. package/document.umd.js +27 -27
  3. package/face.mjs +1252 -1323
  4. package/face.umd.js +27 -27
  5. package/magnifeye-liveness.mjs +766 -789
  6. package/magnifeye-liveness.umd.js +45 -45
  7. package/multi-range-liveness.mjs +841 -856
  8. package/multi-range-liveness.umd.js +24 -24
  9. package/package.json +5 -2
  10. package/palm.mjs +873 -891
  11. package/palm.umd.js +27 -27
  12. package/smile-liveness.mjs +1143 -1187
  13. package/smile-liveness.umd.js +37 -37
  14. package/ui/src/types/common.d.ts +3 -19
  15. package/ui/src/types/configuration.d.ts +60 -0
  16. package/ui/src/types/document.d.ts +8 -7
  17. package/ui/src/types/eye-gaze.d.ts +9 -8
  18. package/ui/src/types/face.d.ts +8 -20
  19. package/ui/src/types/magnifeye.d.ts +7 -7
  20. package/ui/src/types/multi-range.d.ts +8 -8
  21. package/ui/src/types/palm.d.ts +8 -7
  22. package/ui/src/types/smile.d.ts +8 -15
  23. package/ui-common/src/types/common.d.ts +21 -36
  24. package/ui-common/src/types/document.d.ts +1 -9
  25. package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
  26. package/ui-common/src/types/events/common.d.ts +0 -13
  27. package/ui-common/src/types/events/document.d.ts +3 -7
  28. package/ui-common/src/types/events/face.d.ts +9 -2
  29. package/ui-common/src/types/events/index.d.ts +1 -0
  30. package/ui-common/src/types/events/palm.d.ts +3 -2
  31. package/ui-common/src/types/events/smile.d.ts +10 -5
  32. package/ui-common/src/types/eye-gaze.d.ts +6 -6
  33. package/ui-common/src/types/face.d.ts +1 -20
  34. package/ui-common/src/types/magnifeye.d.ts +6 -6
  35. package/ui-common/src/types/modality/detection/document.d.ts +9 -0
  36. package/ui-common/src/types/modality/detection/face.d.ts +20 -0
  37. package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
  38. package/ui-common/src/types/palm.d.ts +1 -20
  39. package/ui-common/src/types/smile.d.ts +23 -16
@@ -1,109 +1,106 @@
1
- var Io = Object.defineProperty;
2
- var To = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var tt = (e, t, n) => To(e, typeof t != "symbol" ? t + "" : t, n);
4
- var Ze, v, Cr, de, Nn, Sr, wr, Er, cn, Ft, Bt, br, Ge = {}, $r = [], xo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xe = Array.isArray;
5
- function q(e, t) {
1
+ var Ze, S, hr, _e, wn, pr, mr, gr, rn, Ut, Ft, yr, Ve = {}, vr = [], wo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xe = Array.isArray;
2
+ function Z(e, t) {
6
3
  for (var n in t) e[n] = t[n];
7
4
  return e;
8
5
  }
9
- function ln(e) {
6
+ function on(e) {
10
7
  e && e.parentNode && e.parentNode.removeChild(e);
11
8
  }
12
9
  function D(e, t, n) {
13
10
  var r, o, i, s = {};
14
11
  for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i];
15
12
  if (arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) s[i] == null && (s[i] = e.defaultProps[i]);
16
- return We(e, s, r, o, null);
13
+ return je(e, s, r, o, null);
17
14
  }
18
- function We(e, t, n, r, o) {
19
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Cr, __i: -1, __u: 0 };
20
- return o == null && v.vnode != null && v.vnode(i), i;
15
+ function je(e, t, n, r, o) {
16
+ var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++hr, __i: -1, __u: 0 };
17
+ return o == null && S.vnode != null && S.vnode(i), i;
21
18
  }
22
- function Ao() {
19
+ function bo() {
23
20
  return { current: null };
24
21
  }
25
22
  function z(e) {
26
23
  return e.children;
27
24
  }
28
- function G(e, t) {
25
+ function V(e, t) {
29
26
  this.props = e, this.context = t;
30
27
  }
31
- function $e(e, t) {
32
- if (t == null) return e.__ ? $e(e.__, e.__i + 1) : null;
28
+ function ke(e, t) {
29
+ if (t == null) return e.__ ? ke(e.__, e.__i + 1) : null;
33
30
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
34
- return typeof e.type == "function" ? $e(e) : null;
31
+ return typeof e.type == "function" ? ke(e) : null;
35
32
  }
36
- function kr(e) {
33
+ function Cr(e) {
37
34
  var t, n;
38
35
  if ((e = e.__) != null && e.__c != null) {
39
36
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
40
37
  e.__e = e.__c.base = n.__e;
41
38
  break;
42
39
  }
43
- return kr(e);
40
+ return Cr(e);
44
41
  }
45
42
  }
46
- function Wt(e) {
47
- (!e.__d && (e.__d = !0) && de.push(e) && !_t.__r++ || Nn != v.debounceRendering) && ((Nn = v.debounceRendering) || Sr)(_t);
43
+ function Bt(e) {
44
+ (!e.__d && (e.__d = !0) && _e.push(e) && !_t.__r++ || wn != S.debounceRendering) && ((wn = S.debounceRendering) || pr)(_t);
48
45
  }
49
46
  function _t() {
50
- for (var e, t, n, r, o, i, s, c = 1; de.length; ) de.length > c && de.sort(wr), e = de.shift(), c = de.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], s = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), un(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? $e(r), !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n, Ir(i, n, s), n.__e != o && kr(n)));
47
+ for (var e, t, n, r, o, i, s, a = 1; _e.length; ) _e.length > a && _e.sort(mr), e = _e.shift(), a = _e.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], s = [], t.__P && ((n = Z({}, r)).__v = r.__v + 1, S.vnode && S.vnode(n), sn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? ke(r), !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n, wr(i, n, s), n.__e != o && Cr(n)));
51
48
  _t.__r = 0;
52
49
  }
53
- function Or(e, t, n, r, o, i, s, c, a, u, d) {
54
- var l, _, h, g, w, $, m = r && r.__k || $r, p = t.length;
55
- for (a = Ro(n, t, m, a, p), l = 0; l < p; l++) (h = n.__k[l]) != null && (_ = h.__i == -1 ? Ge : m[h.__i] || Ge, h.__i = l, $ = un(e, h, _, o, i, s, c, a, u, d), g = h.__e, h.ref && _.ref != h.ref && (_.ref && fn(_.ref, null, h), d.push(h.ref, h.__c || g, h)), w == null && g != null && (w = g), 4 & h.__u || _.__k === h.__k ? a = Nr(h, a, e) : typeof h.type == "function" && $ !== void 0 ? a = $ : g && (a = g.nextSibling), h.__u &= -7);
56
- return n.__e = w, a;
50
+ function Sr(e, t, n, r, o, i, s, a, l, u, d) {
51
+ var c, h, _, v, g, y, m = r && r.__k || vr, p = t.length;
52
+ for (l = $o(n, t, m, l, p), c = 0; c < p; c++) (_ = n.__k[c]) != null && (h = _.__i == -1 ? Ve : m[_.__i] || Ve, _.__i = c, y = sn(e, _, h, o, i, s, a, l, u, d), v = _.__e, _.ref && h.ref != _.ref && (h.ref && an(h.ref, null, _), d.push(_.ref, _.__c || v, _)), g == null && v != null && (g = v), 4 & _.__u || h.__k === _.__k ? l = Er(_, l, e) : typeof _.type == "function" && y !== void 0 ? l = y : v && (l = v.nextSibling), _.__u &= -7);
53
+ return n.__e = g, l;
57
54
  }
58
- function Ro(e, t, n, r, o) {
59
- var i, s, c, a, u, d = n.length, l = d, _ = 0;
60
- for (e.__k = new Array(o), i = 0; i < o; i++) (s = t[i]) != null && typeof s != "boolean" && typeof s != "function" ? (a = i + _, (s = e.__k[i] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? We(null, s, null, null, null) : Xe(s) ? We(z, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? We(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = e, s.__b = e.__b + 1, c = null, (u = s.__i = Lo(s, n, a, l)) != -1 && (l--, (c = n[u]) && (c.__u |= 2)), c == null || c.__v == null ? (u == -1 && (o > d ? _-- : o < d && _++), typeof s.type != "function" && (s.__u |= 4)) : u != a && (u == a - 1 ? _-- : u == a + 1 ? _++ : (u > a ? _-- : _++, s.__u |= 4))) : e.__k[i] = null;
61
- if (l) for (i = 0; i < d; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = $e(c)), xr(c, c));
55
+ function $o(e, t, n, r, o) {
56
+ var i, s, a, l, u, d = n.length, c = d, h = 0;
57
+ for (e.__k = new Array(o), i = 0; i < o; i++) (s = t[i]) != null && typeof s != "boolean" && typeof s != "function" ? (l = i + h, (s = e.__k[i] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? je(null, s, null, null, null) : Xe(s) ? je(z, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? je(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = e, s.__b = e.__b + 1, a = null, (u = s.__i = ko(s, n, l, c)) != -1 && (c--, (a = n[u]) && (a.__u |= 2)), a == null || a.__v == null ? (u == -1 && (o > d ? h-- : o < d && h++), typeof s.type != "function" && (s.__u |= 4)) : u != l && (u == l - 1 ? h-- : u == l + 1 ? h++ : (u > l ? h-- : h++, s.__u |= 4))) : e.__k[i] = null;
58
+ if (c) for (i = 0; i < d; i++) (a = n[i]) != null && (2 & a.__u) == 0 && (a.__e == r && (r = ke(a)), $r(a, a));
62
59
  return r;
63
60
  }
64
- function Nr(e, t, n) {
61
+ function Er(e, t, n) {
65
62
  var r, o;
66
63
  if (typeof e.type == "function") {
67
- for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Nr(r[o], t, n));
64
+ for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Er(r[o], t, n));
68
65
  return t;
69
66
  }
70
- e.__e != t && (t && e.type && !n.contains(t) && (t = $e(e)), n.insertBefore(e.__e, t || null), t = e.__e);
67
+ e.__e != t && (t && e.type && !n.contains(t) && (t = ke(e)), n.insertBefore(e.__e, t || null), t = e.__e);
71
68
  do
72
69
  t = t && t.nextSibling;
73
70
  while (t != null && t.nodeType == 8);
74
71
  return t;
75
72
  }
76
- function te(e, t) {
73
+ function ne(e, t) {
77
74
  return t = t || [], e == null || typeof e == "boolean" || (Xe(e) ? e.some(function(n) {
78
- te(n, t);
75
+ ne(n, t);
79
76
  }) : t.push(e)), t;
80
77
  }
81
- function Lo(e, t, n, r) {
82
- var o, i, s = e.key, c = e.type, a = t[n];
83
- if (a === null && e.key == null || a && s == a.key && c == a.type && (2 & a.__u) == 0) return n;
84
- if (r > (a != null && (2 & a.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
78
+ function ko(e, t, n, r) {
79
+ var o, i, s = e.key, a = e.type, l = t[n];
80
+ if (l === null && e.key == null || l && s == l.key && a == l.type && (2 & l.__u) == 0) return n;
81
+ if (r > (l != null && (2 & l.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
85
82
  if (o >= 0) {
86
- if ((a = t[o]) && (2 & a.__u) == 0 && s == a.key && c == a.type) return o;
83
+ if ((l = t[o]) && (2 & l.__u) == 0 && s == l.key && a == l.type) return o;
87
84
  o--;
88
85
  }
89
86
  if (i < t.length) {
90
- if ((a = t[i]) && (2 & a.__u) == 0 && s == a.key && c == a.type) return i;
87
+ if ((l = t[i]) && (2 & l.__u) == 0 && s == l.key && a == l.type) return i;
91
88
  i++;
92
89
  }
93
90
  }
94
91
  return -1;
95
92
  }
96
- function In(e, t, n) {
97
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || xo.test(t) ? n : n + "px";
93
+ function bn(e, t, n) {
94
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || wo.test(t) ? n : n + "px";
98
95
  }
99
- function nt(e, t, n, r, o) {
96
+ function tt(e, t, n, r, o) {
100
97
  var i;
101
98
  e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
102
99
  else {
103
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || In(e.style, t, "");
104
- if (n) for (t in n) r && n[t] == r[t] || In(e.style, t, n[t]);
100
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || bn(e.style, t, "");
101
+ if (n) for (t in n) r && n[t] == r[t] || bn(e.style, t, n[t]);
105
102
  }
106
- else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(Er, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = cn, e.addEventListener(t, i ? Bt : Ft, i)) : e.removeEventListener(t, i ? Bt : Ft, i);
103
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(gr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = rn, e.addEventListener(t, i ? Ft : Ut, i)) : e.removeEventListener(t, i ? Ft : Ut, i);
107
104
  else {
108
105
  if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
109
106
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -114,135 +111,135 @@ function nt(e, t, n, r, o) {
114
111
  typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
115
112
  }
116
113
  }
117
- function Tn(e) {
114
+ function $n(e) {
118
115
  return function(t) {
119
116
  if (this.l) {
120
117
  var n = this.l[t.type + e];
121
- if (t.t == null) t.t = cn++;
118
+ if (t.t == null) t.t = rn++;
122
119
  else if (t.t < n.u) return;
123
- return n(v.event ? v.event(t) : t);
120
+ return n(S.event ? S.event(t) : t);
124
121
  }
125
122
  };
126
123
  }
127
- function un(e, t, n, r, o, i, s, c, a, u) {
128
- var d, l, _, h, g, w, $, m, p, k, E, N, S, y, H, F, Le, B = t.type;
124
+ function sn(e, t, n, r, o, i, s, a, l, u) {
125
+ var d, c, h, _, v, g, y, m, p, k, b, I, w, C, H, B, Le, W = t.type;
129
126
  if (t.constructor != null) return null;
130
- 128 & n.__u && (a = !!(32 & n.__u), i = [c = t.__e = n.__e]), (d = v.__b) && d(t);
131
- e: if (typeof B == "function") try {
132
- if (m = t.props, p = "prototype" in B && B.prototype.render, k = (d = B.contextType) && r[d.__c], E = d ? k ? k.props.value : d.__ : r, n.__c ? $ = (l = t.__c = n.__c).__ = l.__E : (p ? t.__c = l = new B(m, E) : (t.__c = l = new G(m, E), l.constructor = B, l.render = Do), k && k.sub(l), l.props = m, l.state || (l.state = {}), l.context = E, l.__n = r, _ = l.__d = !0, l.__h = [], l._sb = []), p && l.__s == null && (l.__s = l.state), p && B.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = q({}, l.__s)), q(l.__s, B.getDerivedStateFromProps(m, l.__s))), h = l.props, g = l.state, l.__v = t, _) p && B.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), p && l.componentDidMount != null && l.__h.push(l.componentDidMount);
127
+ 128 & n.__u && (l = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = S.__b) && d(t);
128
+ e: if (typeof W == "function") try {
129
+ if (m = t.props, p = "prototype" in W && W.prototype.render, k = (d = W.contextType) && r[d.__c], b = d ? k ? k.props.value : d.__ : r, n.__c ? y = (c = t.__c = n.__c).__ = c.__E : (p ? t.__c = c = new W(m, b) : (t.__c = c = new V(m, b), c.constructor = W, c.render = Io), k && k.sub(c), c.props = m, c.state || (c.state = {}), c.context = b, c.__n = r, h = c.__d = !0, c.__h = [], c._sb = []), p && c.__s == null && (c.__s = c.state), p && W.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Z({}, c.__s)), Z(c.__s, W.getDerivedStateFromProps(m, c.__s))), _ = c.props, v = c.state, c.__v = t, h) p && W.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), p && c.componentDidMount != null && c.__h.push(c.componentDidMount);
133
130
  else {
134
- if (p && B.getDerivedStateFromProps == null && m !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, E), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, E) === !1 || t.__v == n.__v) {
135
- for (t.__v != n.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ue) {
136
- ue && (ue.__ = t);
137
- }), N = 0; N < l._sb.length; N++) l.__h.push(l._sb[N]);
138
- l._sb = [], l.__h.length && s.push(l);
131
+ if (p && W.getDerivedStateFromProps == null && m !== _ && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, b), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, b) === !1 || t.__v == n.__v) {
132
+ for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(fe) {
133
+ fe && (fe.__ = t);
134
+ }), I = 0; I < c._sb.length; I++) c.__h.push(c._sb[I]);
135
+ c._sb = [], c.__h.length && s.push(c);
139
136
  break e;
140
137
  }
141
- l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, E), p && l.componentDidUpdate != null && l.__h.push(function() {
142
- l.componentDidUpdate(h, g, w);
138
+ c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, b), p && c.componentDidUpdate != null && c.__h.push(function() {
139
+ c.componentDidUpdate(_, v, g);
143
140
  });
144
141
  }
145
- if (l.context = E, l.props = m, l.__P = e, l.__e = !1, S = v.__r, y = 0, p) {
146
- for (l.state = l.__s, l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), H = 0; H < l._sb.length; H++) l.__h.push(l._sb[H]);
147
- l._sb = [];
142
+ if (c.context = b, c.props = m, c.__P = e, c.__e = !1, w = S.__r, C = 0, p) {
143
+ for (c.state = c.__s, c.__d = !1, w && w(t), d = c.render(c.props, c.state, c.context), H = 0; H < c._sb.length; H++) c.__h.push(c._sb[H]);
144
+ c._sb = [];
148
145
  } else do
149
- l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
150
- while (l.__d && ++y < 25);
151
- l.state = l.__s, l.getChildContext != null && (r = q(q({}, r), l.getChildContext())), p && !_ && l.getSnapshotBeforeUpdate != null && (w = l.getSnapshotBeforeUpdate(h, g)), F = d, d != null && d.type === z && d.key == null && (F = Tr(d.props.children)), c = Or(e, Xe(F) ? F : [F], t, n, r, o, i, s, c, a, u), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), $ && (l.__E = l.__ = null);
152
- } catch (ue) {
153
- if (t.__v = null, a || i != null) if (ue.then) {
154
- for (t.__u |= a ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
155
- i[i.indexOf(c)] = null, t.__e = c;
156
- } else for (Le = i.length; Le--; ) ln(i[Le]);
146
+ c.__d = !1, w && w(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
147
+ while (c.__d && ++C < 25);
148
+ c.state = c.__s, c.getChildContext != null && (r = Z(Z({}, r), c.getChildContext())), p && !h && c.getSnapshotBeforeUpdate != null && (g = c.getSnapshotBeforeUpdate(_, v)), B = d, d != null && d.type === z && d.key == null && (B = br(d.props.children)), a = Sr(e, Xe(B) ? B : [B], t, n, r, o, i, s, a, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), y && (c.__E = c.__ = null);
149
+ } catch (fe) {
150
+ if (t.__v = null, l || i != null) if (fe.then) {
151
+ for (t.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
152
+ i[i.indexOf(a)] = null, t.__e = a;
153
+ } else for (Le = i.length; Le--; ) on(i[Le]);
157
154
  else t.__e = n.__e, t.__k = n.__k;
158
- v.__e(ue, t, n);
155
+ S.__e(fe, t, n);
159
156
  }
160
- else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : c = t.__e = Po(n.__e, t, n, r, o, i, s, a, u);
161
- return (d = v.diffed) && d(t), 128 & t.__u ? void 0 : c;
157
+ else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : a = t.__e = No(n.__e, t, n, r, o, i, s, l, u);
158
+ return (d = S.diffed) && d(t), 128 & t.__u ? void 0 : a;
162
159
  }
163
- function Ir(e, t, n) {
164
- for (var r = 0; r < n.length; r++) fn(n[r], n[++r], n[++r]);
165
- v.__c && v.__c(t, e), e.some(function(o) {
160
+ function wr(e, t, n) {
161
+ for (var r = 0; r < n.length; r++) an(n[r], n[++r], n[++r]);
162
+ S.__c && S.__c(t, e), e.some(function(o) {
166
163
  try {
167
164
  e = o.__h, o.__h = [], e.some(function(i) {
168
165
  i.call(o);
169
166
  });
170
167
  } catch (i) {
171
- v.__e(i, o.__v);
168
+ S.__e(i, o.__v);
172
169
  }
173
170
  });
174
171
  }
175
- function Tr(e) {
176
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Xe(e) ? e.map(Tr) : q({}, e);
172
+ function br(e) {
173
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Xe(e) ? e.map(br) : Z({}, e);
177
174
  }
178
- function Po(e, t, n, r, o, i, s, c, a) {
179
- var u, d, l, _, h, g, w, $ = n.props, m = t.props, p = t.type;
175
+ function No(e, t, n, r, o, i, s, a, l) {
176
+ var u, d, c, h, _, v, g, y = n.props, m = t.props, p = t.type;
180
177
  if (p == "svg" ? o = "http://www.w3.org/2000/svg" : p == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
181
- for (u = 0; u < i.length; u++) if ((h = i[u]) && "setAttribute" in h == !!p && (p ? h.localName == p : h.nodeType == 3)) {
182
- e = h, i[u] = null;
178
+ for (u = 0; u < i.length; u++) if ((_ = i[u]) && "setAttribute" in _ == !!p && (p ? _.localName == p : _.nodeType == 3)) {
179
+ e = _, i[u] = null;
183
180
  break;
184
181
  }
185
182
  }
186
183
  if (e == null) {
187
184
  if (p == null) return document.createTextNode(m);
188
- e = document.createElementNS(o, p, m.is && m), c && (v.__m && v.__m(t, i), c = !1), i = null;
185
+ e = document.createElementNS(o, p, m.is && m), a && (S.__m && S.__m(t, i), a = !1), i = null;
189
186
  }
190
- if (p == null) $ === m || c && e.data == m || (e.data = m);
187
+ if (p == null) y === m || a && e.data == m || (e.data = m);
191
188
  else {
192
- if (i = i && Ze.call(e.childNodes), $ = n.props || Ge, !c && i != null) for ($ = {}, u = 0; u < e.attributes.length; u++) $[(h = e.attributes[u]).name] = h.value;
193
- for (u in $) if (h = $[u], u != "children") {
194
- if (u == "dangerouslySetInnerHTML") l = h;
189
+ if (i = i && Ze.call(e.childNodes), y = n.props || Ve, !a && i != null) for (y = {}, u = 0; u < e.attributes.length; u++) y[(_ = e.attributes[u]).name] = _.value;
190
+ for (u in y) if (_ = y[u], u != "children") {
191
+ if (u == "dangerouslySetInnerHTML") c = _;
195
192
  else if (!(u in m)) {
196
193
  if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
197
- nt(e, u, null, h, o);
194
+ tt(e, u, null, _, o);
198
195
  }
199
196
  }
200
- for (u in m) h = m[u], u == "children" ? _ = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? g = h : u == "checked" ? w = h : c && typeof h != "function" || $[u] === h || nt(e, u, h, $[u], o);
201
- if (d) c || l && (d.__html == l.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
202
- else if (l && (e.innerHTML = ""), Or(t.type == "template" ? e.content : e, Xe(_) ? _ : [_], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && $e(n, 0), c, a), i != null) for (u = i.length; u--; ) ln(i[u]);
203
- c || (u = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || p == "progress" && !g || p == "option" && g != $[u]) && nt(e, u, g, $[u], o), u = "checked", w != null && w != e[u] && nt(e, u, w, $[u], o));
197
+ for (u in m) _ = m[u], u == "children" ? h = _ : u == "dangerouslySetInnerHTML" ? d = _ : u == "value" ? v = _ : u == "checked" ? g = _ : a && typeof _ != "function" || y[u] === _ || tt(e, u, _, y[u], o);
198
+ if (d) a || c && (d.__html == c.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
199
+ else if (c && (e.innerHTML = ""), Sr(t.type == "template" ? e.content : e, Xe(h) ? h : [h], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && ke(n, 0), a, l), i != null) for (u = i.length; u--; ) on(i[u]);
200
+ a || (u = "value", p == "progress" && v == null ? e.removeAttribute("value") : v != null && (v !== e[u] || p == "progress" && !v || p == "option" && v != y[u]) && tt(e, u, v, y[u], o), u = "checked", g != null && g != e[u] && tt(e, u, g, y[u], o));
204
201
  }
205
202
  return e;
206
203
  }
207
- function fn(e, t, n) {
204
+ function an(e, t, n) {
208
205
  try {
209
206
  if (typeof e == "function") {
210
207
  var r = typeof e.__u == "function";
211
208
  r && e.__u(), r && t == null || (e.__u = e(t));
212
209
  } else e.current = t;
213
210
  } catch (o) {
214
- v.__e(o, n);
211
+ S.__e(o, n);
215
212
  }
216
213
  }
217
- function xr(e, t, n) {
214
+ function $r(e, t, n) {
218
215
  var r, o;
219
- if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || fn(r, null, t)), (r = e.__c) != null) {
216
+ if (S.unmount && S.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || an(r, null, t)), (r = e.__c) != null) {
220
217
  if (r.componentWillUnmount) try {
221
218
  r.componentWillUnmount();
222
219
  } catch (i) {
223
- v.__e(i, t);
220
+ S.__e(i, t);
224
221
  }
225
222
  r.base = r.__P = null;
226
223
  }
227
- if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && xr(r[o], t, n || typeof e.type != "function");
228
- n || ln(e.__e), e.__c = e.__ = e.__e = void 0;
224
+ if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && $r(r[o], t, n || typeof e.type != "function");
225
+ n || on(e.__e), e.__c = e.__ = e.__e = void 0;
229
226
  }
230
- function Do(e, t, n) {
227
+ function Io(e, t, n) {
231
228
  return this.constructor(e, n);
232
229
  }
233
- function ae(e, t, n) {
230
+ function ce(e, t, n) {
234
231
  var r, o, i, s;
235
- t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], un(t, e = (!r && n || t).__k = D(z, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Ir(i, e, s);
232
+ t == document && (t = document.documentElement), S.__ && S.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], sn(t, e = (!r && n || t).__k = D(z, null, [e]), o || Ve, Ve, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), wr(i, e, s);
236
233
  }
237
- function dn(e, t) {
238
- ae(e, t, dn);
234
+ function cn(e, t) {
235
+ ce(e, t, cn);
239
236
  }
240
- function hn(e, t, n) {
241
- var r, o, i, s, c = q({}, e.props);
242
- for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && s != null ? s[i] : t[i];
243
- return arguments.length > 2 && (c.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), We(e.type, c, r || e.key, o || e.ref, null);
237
+ function ln(e, t, n) {
238
+ var r, o, i, s, a = Z({}, e.props);
239
+ for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i] == null && s != null ? s[i] : t[i];
240
+ return arguments.length > 2 && (a.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), je(e.type, a, r || e.key, o || e.ref, null);
244
241
  }
245
- function Ar(e) {
242
+ function kr(e) {
246
243
  function t(n) {
247
244
  var r, o;
248
245
  return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
@@ -251,7 +248,7 @@ function Ar(e) {
251
248
  r = null;
252
249
  }, this.shouldComponentUpdate = function(i) {
253
250
  this.props.value != i.value && r.forEach(function(s) {
254
- s.__e = !0, Wt(s);
251
+ s.__e = !0, Bt(s);
255
252
  });
256
253
  }, this.sub = function(i) {
257
254
  r.add(i);
@@ -261,27 +258,27 @@ function Ar(e) {
261
258
  };
262
259
  }), n.children;
263
260
  }
264
- return t.__c = "__cC" + br++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
261
+ return t.__c = "__cC" + yr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
265
262
  return n.children(r);
266
263
  }).contextType = t, t;
267
264
  }
268
- Ze = $r.slice, v = { __e: function(e, t, n, r) {
265
+ Ze = vr.slice, S = { __e: function(e, t, n, r) {
269
266
  for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
270
267
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
271
- } catch (c) {
272
- e = c;
268
+ } catch (a) {
269
+ e = a;
273
270
  }
274
271
  throw e;
275
- } }, Cr = 0, G.prototype.setState = function(e, t) {
272
+ } }, hr = 0, V.prototype.setState = function(e, t) {
276
273
  var n;
277
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), Wt(this));
278
- }, G.prototype.forceUpdate = function(e) {
279
- this.__v && (this.__e = !0, e && this.__h.push(e), Wt(this));
280
- }, G.prototype.render = z, de = [], Sr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, wr = function(e, t) {
274
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, n), this.props)), e && Z(n, e), e != null && this.__v && (t && this._sb.push(t), Bt(this));
275
+ }, V.prototype.forceUpdate = function(e) {
276
+ this.__v && (this.__e = !0, e && this.__h.push(e), Bt(this));
277
+ }, V.prototype.render = z, _e = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mr = function(e, t) {
281
278
  return e.__v.__b - t.__v.__b;
282
- }, _t.__r = 0, Er = /(PointerCapture)$|Capture$/i, cn = 0, Ft = Tn(!1), Bt = Tn(!0), br = 0;
283
- function _n() {
284
- return (_n = Object.assign ? Object.assign.bind() : function(e) {
279
+ }, _t.__r = 0, gr = /(PointerCapture)$|Capture$/i, rn = 0, Ut = $n(!1), Ft = $n(!0), yr = 0;
280
+ function un() {
281
+ return (un = Object.assign ? Object.assign.bind() : function(e) {
285
282
  for (var t = 1; t < arguments.length; t++) {
286
283
  var n = arguments[t];
287
284
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
@@ -289,97 +286,100 @@ function _n() {
289
286
  return e;
290
287
  }).apply(this, arguments);
291
288
  }
292
- var Mo = ["context", "children"];
293
- function Ho(e) {
289
+ var Oo = ["context", "children"];
290
+ function To(e) {
294
291
  this.getChildContext = function() {
295
292
  return e.context;
296
293
  };
297
294
  var t = e.children, n = function(r, o) {
298
295
  if (r == null) return {};
299
- var i, s, c = {}, a = Object.keys(r);
300
- for (s = 0; s < a.length; s++) o.indexOf(i = a[s]) >= 0 || (c[i] = r[i]);
301
- return c;
302
- }(e, Mo);
303
- return hn(t, n);
296
+ var i, s, a = {}, l = Object.keys(r);
297
+ for (s = 0; s < l.length; s++) o.indexOf(i = l[s]) >= 0 || (a[i] = r[i]);
298
+ return a;
299
+ }(e, Oo);
300
+ return ln(t, n);
304
301
  }
305
- function Uo() {
302
+ function xo() {
306
303
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
- this.dispatchEvent(e), this._vdom = D(Ho, _n({}, this._props, { context: e.detail.context }), function t(n, r) {
304
+ this.dispatchEvent(e), this._vdom = D(To, un({}, this._props, { context: e.detail.context }), function t(n, r) {
308
305
  if (n.nodeType === 3) return n.data;
309
306
  if (n.nodeType !== 1) return null;
310
- var o = [], i = {}, s = 0, c = n.attributes, a = n.childNodes;
311
- for (s = c.length; s--; ) c[s].name !== "slot" && (i[c[s].name] = c[s].value, i[Rr(c[s].name)] = c[s].value);
312
- for (s = a.length; s--; ) {
313
- var u = t(a[s], null), d = a[s].slot;
314
- d ? i[d] = D(xn, { name: d }, u) : o[s] = u;
307
+ var o = [], i = {}, s = 0, a = n.attributes, l = n.childNodes;
308
+ for (s = a.length; s--; ) a[s].name !== "slot" && (i[a[s].name] = a[s].value, i[Nr(a[s].name)] = a[s].value);
309
+ for (s = l.length; s--; ) {
310
+ var u = t(l[s], null), d = l[s].slot;
311
+ d ? i[d] = D(kn, { name: d }, u) : o[s] = u;
315
312
  }
316
- var l = r ? D(xn, null, o) : o;
317
- return D(r || n.nodeName.toLowerCase(), i, l);
318
- }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? dn : ae)(this._vdom, this._root);
313
+ var c = r ? D(kn, null, o) : o;
314
+ return D(r || n.nodeName.toLowerCase(), i, c);
315
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? cn : ce)(this._vdom, this._root);
319
316
  }
320
- function Rr(e) {
317
+ function Nr(e) {
321
318
  return e.replace(/-(\w)/g, function(t, n) {
322
319
  return n ? n.toUpperCase() : "";
323
320
  });
324
321
  }
325
- function Fo(e, t, n) {
322
+ function Ao(e, t, n) {
326
323
  if (this._vdom) {
327
324
  var r = {};
328
- r[e] = n = n ?? void 0, r[Rr(e)] = n, this._vdom = hn(this._vdom, r), ae(this._vdom, this._root);
325
+ r[e] = n = n ?? void 0, r[Nr(e)] = n, this._vdom = ln(this._vdom, r), ce(this._vdom, this._root);
329
326
  }
330
327
  }
331
- function Bo() {
332
- ae(this._vdom = null, this._root);
328
+ function Ro() {
329
+ ce(this._vdom = null, this._root);
333
330
  }
334
- function xn(e, t) {
331
+ function kn(e, t) {
335
332
  var n = this;
336
- return D("slot", _n({}, e, { ref: function(r) {
333
+ return D("slot", un({}, e, { ref: function(r) {
337
334
  r ? (n.ref = r, n._listener || (n._listener = function(o) {
338
335
  o.stopPropagation(), o.detail.context = t;
339
336
  }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
340
337
  } }));
341
338
  }
342
- function Wo(e, t, n, r) {
339
+ function Po(e, t, n, r) {
343
340
  function o() {
344
341
  var i = Reflect.construct(HTMLElement, [], o);
345
342
  return i._vdomComponent = e, i._root = i, i;
346
343
  }
347
- return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Uo, o.prototype.attributeChangedCallback = Fo, o.prototype.disconnectedCallback = Bo, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
344
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = xo, o.prototype.attributeChangedCallback = Ao, o.prototype.disconnectedCallback = Ro, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
348
345
  Object.defineProperty(o.prototype, i, { get: function() {
349
346
  return this._vdom.props[i];
350
347
  }, set: function(s) {
351
348
  this._vdom ? this.attributeChangedCallback(i, null, s) : (this._props || (this._props = {}), this._props[i] = s, this.connectedCallback());
352
- var c = typeof s;
353
- s != null && c !== "string" && c !== "boolean" && c !== "number" || this.setAttribute(i, s);
349
+ var a = typeof s;
350
+ s != null && a !== "string" && a !== "boolean" && a !== "number" || this.setAttribute(i, s);
354
351
  } });
355
352
  }), customElements.define(t, o);
356
353
  }
357
- var zo = 0;
354
+ var Lo = 0;
358
355
  function f(e, t, n, r, o, i) {
359
356
  t || (t = {});
360
- var s, c, a = t;
361
- if ("ref" in a) for (c in a = {}, t) c == "ref" ? s = t[c] : a[c] = t[c];
362
- var u = { type: e, props: a, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --zo, __i: -1, __u: 0, __source: o, __self: i };
363
- if (typeof e == "function" && (s = e.defaultProps)) for (c in s) a[c] === void 0 && (a[c] = s[c]);
364
- return v.vnode && v.vnode(u), u;
357
+ var s, a, l = t;
358
+ if ("ref" in l) for (a in l = {}, t) a == "ref" ? s = t[a] : l[a] = t[a];
359
+ var u = { type: e, props: l, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Lo, __i: -1, __u: 0, __source: o, __self: i };
360
+ if (typeof e == "function" && (s = e.defaultProps)) for (a in s) l[a] === void 0 && (l[a] = s[a]);
361
+ return S.vnode && S.vnode(u), u;
365
362
  }
366
- const An = {
363
+ const Nn = {
367
364
  SWITCH_CAMERA: "switch-camera",
368
365
  TOGGLE_MIRROR: "toggle-mirror"
369
- };
370
- var Ve = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTED_FACE_CHANGED = "face-auto-capture:detected-face-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(Ve || {}), pn = /* @__PURE__ */ ((e) => (e.CONTROL = "smile-auto-capture:control", e.INSTRUCTION_ESCALATED = "smile:instruction-escalated", e.STATUS_CHANGED = "smile-auto-capture:status-changed", e))(pn || {});
371
- const jo = {
372
- LOADING: "LOADING",
373
- ERROR: "ERROR",
374
- WAITING: "WAITING",
375
- RUNNING: "RUNNING",
376
- COMPLETE: "COMPLETE"
377
- }, zt = {
378
- ...jo,
379
- DONE: "DONE"
380
- }, Rn = {
366
+ }, Ye = {
367
+ CAMERA_PROPS_CHANGED: "smile-auto-capture:camera-props-changed",
368
+ CONTROL: "smile-auto-capture:control",
369
+ INSTRUCTION_CHANGED: "smile-auto-capture:instruction-changed",
370
+ INSTRUCTION_ESCALATED: "smile-auto-capture:instruction-escalated",
371
+ VIDEO_ELEMENT_SIZE: "smile-auto-capture:video-element-size",
372
+ STATE_CHANGED: "smile-auto-capture:state-changed",
373
+ PHASE_CHANGED: "smile-auto-capture:phase-changed"
374
+ }, U = {
375
+ LOADING: "loading",
376
+ ERROR: "error",
377
+ WAITING: "waiting",
378
+ RUNNING: "running",
379
+ COMPLETE: "complete"
380
+ }, In = {
381
381
  EYE_NOT_PRESENT: "eye_not_present"
382
- }, L = {
382
+ }, M = {
383
383
  CANDIDATE_SELECTION: "candidate_selection",
384
384
  FACE_TOO_CLOSE: "face_too_close",
385
385
  FACE_TOO_FAR: "face_too_far",
@@ -389,78 +389,79 @@ const jo = {
389
389
  BRIGHTNESS_TOO_LOW: "brightness_too_low",
390
390
  BRIGHTNESS_TOO_HIGH: "brightness_too_high",
391
391
  DEVICE_PITCHED: "device_pitched",
392
- LEFT_EYE_NOT_PRESENT: `left_${Rn.EYE_NOT_PRESENT}`,
393
- RIGHT_EYE_NOT_PRESENT: `right_${Rn.EYE_NOT_PRESENT}`,
392
+ LEFT_EYE_NOT_PRESENT: `left_${In.EYE_NOT_PRESENT}`,
393
+ RIGHT_EYE_NOT_PRESENT: `right_${In.EYE_NOT_PRESENT}`,
394
394
  MOUTH_NOT_PRESENT: "mouth_not_present",
395
395
  MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
396
396
  MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
397
- }, ne = {
398
- ...L,
397
+ }, X = {
398
+ CANDIDATE_SELECTION: "candidate_selection",
399
+ FACE_NOT_PRESENT: "face_not_present",
399
400
  SMILE: "smile",
400
401
  SMILE_CANDIDATE_SELECTION: "smile_candidate_selection",
401
402
  KEEP_NEUTRAL_EXPRESSION: "keep_neutral_expression"
402
- }, pt = {
403
+ }, ht = {
403
404
  NEUTRAL: "NEUTRAL",
404
405
  SMILE: "SMILE"
405
- }, be = zt;
406
- var ce, T, Rt, Ln, ke = 0, Lr = [], x = v, Pn = x.__b, Dn = x.__r, Mn = x.diffed, Hn = x.__c, Un = x.unmount, Fn = x.__;
407
- function xe(e, t) {
408
- x.__h && x.__h(T, e, ke || t), ke = 0;
406
+ };
407
+ var le, T, xt, On, Ne = 0, Ir = [], x = S, Tn = x.__b, xn = x.__r, An = x.diffed, Rn = x.__c, Pn = x.unmount, Ln = x.__;
408
+ function Ae(e, t) {
409
+ x.__h && x.__h(T, e, Ne || t), Ne = 0;
409
410
  var n = T.__H || (T.__H = { __: [], __h: [] });
410
411
  return e >= n.__.length && n.__.push({}), n.__[e];
411
412
  }
412
- function M(e) {
413
- return ke = 1, mn(Mr, e);
413
+ function L(e) {
414
+ return Ne = 1, fn(xr, e);
414
415
  }
415
- function mn(e, t, n) {
416
- var r = xe(ce++, 2);
417
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Mr(void 0, t), function(c) {
418
- var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, c);
419
- a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
416
+ function fn(e, t, n) {
417
+ var r = Ae(le++, 2);
418
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xr(void 0, t), function(a) {
419
+ var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
420
+ l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
420
421
  }], r.__c = T, !T.__f)) {
421
- var o = function(c, a, u) {
422
+ var o = function(a, l, u) {
422
423
  if (!r.__c.__H) return !0;
423
- var d = r.__c.__H.__.filter(function(_) {
424
- return !!_.__c;
424
+ var d = r.__c.__H.__.filter(function(h) {
425
+ return !!h.__c;
425
426
  });
426
- if (d.every(function(_) {
427
- return !_.__N;
428
- })) return !i || i.call(this, c, a, u);
429
- var l = r.__c.props !== c;
430
- return d.forEach(function(_) {
431
- if (_.__N) {
432
- var h = _.__[0];
433
- _.__ = _.__N, _.__N = void 0, h !== _.__[0] && (l = !0);
427
+ if (d.every(function(h) {
428
+ return !h.__N;
429
+ })) return !i || i.call(this, a, l, u);
430
+ var c = r.__c.props !== a;
431
+ return d.forEach(function(h) {
432
+ if (h.__N) {
433
+ var _ = h.__[0];
434
+ h.__ = h.__N, h.__N = void 0, _ !== h.__[0] && (c = !0);
434
435
  }
435
- }), i && i.call(this, c, a, u) || l;
436
+ }), i && i.call(this, a, l, u) || c;
436
437
  };
437
438
  T.__f = !0;
438
439
  var i = T.shouldComponentUpdate, s = T.componentWillUpdate;
439
- T.componentWillUpdate = function(c, a, u) {
440
+ T.componentWillUpdate = function(a, l, u) {
440
441
  if (this.__e) {
441
442
  var d = i;
442
- i = void 0, o(c, a, u), i = d;
443
+ i = void 0, o(a, l, u), i = d;
443
444
  }
444
- s && s.call(this, c, a, u);
445
+ s && s.call(this, a, l, u);
445
446
  }, T.shouldComponentUpdate = o;
446
447
  }
447
448
  return r.__N || r.__;
448
449
  }
449
- function X(e, t) {
450
- var n = xe(ce++, 3);
451
- !x.__s && gn(n.__H, t) && (n.__ = e, n.u = t, T.__H.__h.push(n));
450
+ function Q(e, t) {
451
+ var n = Ae(le++, 3);
452
+ !x.__s && dn(n.__H, t) && (n.__ = e, n.u = t, T.__H.__h.push(n));
452
453
  }
453
- function Ae(e, t) {
454
- var n = xe(ce++, 4);
455
- !x.__s && gn(n.__H, t) && (n.__ = e, n.u = t, T.__h.push(n));
454
+ function Re(e, t) {
455
+ var n = Ae(le++, 4);
456
+ !x.__s && dn(n.__H, t) && (n.__ = e, n.u = t, T.__h.push(n));
456
457
  }
457
- function St(e) {
458
- return ke = 5, re(function() {
458
+ function vt(e) {
459
+ return Ne = 5, re(function() {
459
460
  return { current: e };
460
461
  }, []);
461
462
  }
462
- function Pr(e, t, n) {
463
- ke = 6, Ae(function() {
463
+ function Or(e, t, n) {
464
+ Ne = 6, Re(function() {
464
465
  if (typeof e == "function") {
465
466
  var r = e(t());
466
467
  return function() {
@@ -473,23 +474,23 @@ function Pr(e, t, n) {
473
474
  }, n == null ? n : n.concat(e));
474
475
  }
475
476
  function re(e, t) {
476
- var n = xe(ce++, 7);
477
- return gn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
477
+ var n = Ae(le++, 7);
478
+ return dn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
478
479
  }
479
- function ge(e, t) {
480
- return ke = 8, re(function() {
480
+ function ae(e, t) {
481
+ return Ne = 8, re(function() {
481
482
  return e;
482
483
  }, t);
483
484
  }
484
485
  function Ke(e) {
485
- var t = T.context[e.__c], n = xe(ce++, 9);
486
+ var t = T.context[e.__c], n = Ae(le++, 9);
486
487
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(T)), t.props.value) : e.__;
487
488
  }
488
- function mt(e, t) {
489
+ function pt(e, t) {
489
490
  x.useDebugValue && x.useDebugValue(t ? t(e) : e);
490
491
  }
491
- function Dr() {
492
- var e = xe(ce++, 11);
492
+ function Tr() {
493
+ var e = Ae(le++, 11);
493
494
  if (!e.__) {
494
495
  for (var t = T.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
495
496
  var n = t.__m || (t.__m = [0, 0]);
@@ -497,73 +498,73 @@ function Dr() {
497
498
  }
498
499
  return e.__;
499
500
  }
500
- function Go() {
501
- for (var e; e = Lr.shift(); ) if (e.__P && e.__H) try {
502
- e.__H.__h.forEach(at), e.__H.__h.forEach(jt), e.__H.__h = [];
501
+ function Do() {
502
+ for (var e; e = Ir.shift(); ) if (e.__P && e.__H) try {
503
+ e.__H.__h.forEach(st), e.__H.__h.forEach(Wt), e.__H.__h = [];
503
504
  } catch (t) {
504
505
  e.__H.__h = [], x.__e(t, e.__v);
505
506
  }
506
507
  }
507
508
  x.__b = function(e) {
508
- T = null, Pn && Pn(e);
509
+ T = null, Tn && Tn(e);
509
510
  }, x.__ = function(e, t) {
510
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Fn && Fn(e, t);
511
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ln && Ln(e, t);
511
512
  }, x.__r = function(e) {
512
- Dn && Dn(e), ce = 0;
513
+ xn && xn(e), le = 0;
513
514
  var t = (T = e.__c).__H;
514
- t && (Rt === T ? (t.__h = [], T.__h = [], t.__.forEach(function(n) {
515
+ t && (xt === T ? (t.__h = [], T.__h = [], t.__.forEach(function(n) {
515
516
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
516
- })) : (t.__h.forEach(at), t.__h.forEach(jt), t.__h = [], ce = 0)), Rt = T;
517
+ })) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], le = 0)), xt = T;
517
518
  }, x.diffed = function(e) {
518
- Mn && Mn(e);
519
+ An && An(e);
519
520
  var t = e.__c;
520
- t && t.__H && (t.__H.__h.length && (Lr.push(t) !== 1 && Ln === x.requestAnimationFrame || ((Ln = x.requestAnimationFrame) || Vo)(Go)), t.__H.__.forEach(function(n) {
521
+ t && t.__H && (t.__H.__h.length && (Ir.push(t) !== 1 && On === x.requestAnimationFrame || ((On = x.requestAnimationFrame) || Mo)(Do)), t.__H.__.forEach(function(n) {
521
522
  n.u && (n.__H = n.u), n.u = void 0;
522
- })), Rt = T = null;
523
+ })), xt = T = null;
523
524
  }, x.__c = function(e, t) {
524
525
  t.some(function(n) {
525
526
  try {
526
- n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
527
- return !r.__ || jt(r);
527
+ n.__h.forEach(st), n.__h = n.__h.filter(function(r) {
528
+ return !r.__ || Wt(r);
528
529
  });
529
530
  } catch (r) {
530
531
  t.some(function(o) {
531
532
  o.__h && (o.__h = []);
532
533
  }), t = [], x.__e(r, n.__v);
533
534
  }
534
- }), Hn && Hn(e, t);
535
+ }), Rn && Rn(e, t);
535
536
  }, x.unmount = function(e) {
536
- Un && Un(e);
537
+ Pn && Pn(e);
537
538
  var t, n = e.__c;
538
539
  n && n.__H && (n.__H.__.forEach(function(r) {
539
540
  try {
540
- at(r);
541
+ st(r);
541
542
  } catch (o) {
542
543
  t = o;
543
544
  }
544
545
  }), n.__H = void 0, t && x.__e(t, n.__v));
545
546
  };
546
- var Bn = typeof requestAnimationFrame == "function";
547
- function Vo(e) {
547
+ var Dn = typeof requestAnimationFrame == "function";
548
+ function Mo(e) {
548
549
  var t, n = function() {
549
- clearTimeout(r), Bn && cancelAnimationFrame(t), setTimeout(e);
550
+ clearTimeout(r), Dn && cancelAnimationFrame(t), setTimeout(e);
550
551
  }, r = setTimeout(n, 100);
551
- Bn && (t = requestAnimationFrame(n));
552
+ Dn && (t = requestAnimationFrame(n));
552
553
  }
553
- function at(e) {
554
+ function st(e) {
554
555
  var t = T, n = e.__c;
555
556
  typeof n == "function" && (e.__c = void 0, n()), T = t;
556
557
  }
557
- function jt(e) {
558
+ function Wt(e) {
558
559
  var t = T;
559
560
  e.__c = e.__(), T = t;
560
561
  }
561
- function gn(e, t) {
562
+ function dn(e, t) {
562
563
  return !e || e.length !== t.length || t.some(function(n, r) {
563
564
  return n !== e[r];
564
565
  });
565
566
  }
566
- function Mr(e, t) {
567
+ function xr(e, t) {
567
568
  return typeof t == "function" ? t(e) : t;
568
569
  }
569
570
  var P = function() {
@@ -580,38 +581,38 @@ function ye(e, t, n) {
580
581
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
581
582
  return e.concat(i || Array.prototype.slice.call(t));
582
583
  }
583
- function Yo(e) {
584
+ function Ho(e) {
584
585
  var t = /* @__PURE__ */ Object.create(null);
585
586
  return function(n) {
586
587
  return t[n] === void 0 && (t[n] = e(n)), t[n];
587
588
  };
588
589
  }
589
- var qo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Zo = /* @__PURE__ */ Yo(
590
+ var Uo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Fo = /* @__PURE__ */ Ho(
590
591
  function(e) {
591
- return qo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
592
+ return Uo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
592
593
  }
593
594
  /* Z+1 */
594
595
  );
595
- function Hr(e, t) {
596
+ function Ar(e, t) {
596
597
  for (var n in t) e[n] = t[n];
597
598
  return e;
598
599
  }
599
- function Gt(e, t) {
600
+ function jt(e, t) {
600
601
  for (var n in e) if (n !== "__source" && !(n in t)) return !0;
601
602
  for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
602
603
  return !1;
603
604
  }
604
- function Ur(e, t) {
605
- var n = t(), r = M({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
606
- return Ae(function() {
607
- o.__ = n, o.u = t, Lt(o) && i({ t: o });
608
- }, [e, n, t]), X(function() {
609
- return Lt(o) && i({ t: o }), e(function() {
610
- Lt(o) && i({ t: o });
605
+ function Rr(e, t) {
606
+ var n = t(), r = L({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
607
+ return Re(function() {
608
+ o.__ = n, o.u = t, At(o) && i({ t: o });
609
+ }, [e, n, t]), Q(function() {
610
+ return At(o) && i({ t: o }), e(function() {
611
+ At(o) && i({ t: o });
611
612
  });
612
613
  }, [e]), n;
613
614
  }
614
- function Lt(e) {
615
+ function At(e) {
615
616
  var t, n, r = e.u, o = e.__;
616
617
  try {
617
618
  var i = r();
@@ -620,80 +621,80 @@ function Lt(e) {
620
621
  return !0;
621
622
  }
622
623
  }
623
- function Fr(e) {
624
+ function Pr(e) {
624
625
  e();
625
626
  }
626
- function Br(e) {
627
+ function Lr(e) {
627
628
  return e;
628
629
  }
629
- function Wr() {
630
- return [!1, Fr];
630
+ function Dr() {
631
+ return [!1, Pr];
631
632
  }
632
- var zr = Ae;
633
- function Vt(e, t) {
633
+ var Mr = Re;
634
+ function zt(e, t) {
634
635
  this.props = e, this.context = t;
635
636
  }
636
- function Xo(e, t) {
637
+ function Bo(e, t) {
637
638
  function n(o) {
638
639
  var i = this.props.ref, s = i == o.ref;
639
- return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : Gt(this.props, o);
640
+ return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : jt(this.props, o);
640
641
  }
641
642
  function r(o) {
642
643
  return this.shouldComponentUpdate = n, D(e, o);
643
644
  }
644
645
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
645
646
  }
646
- (Vt.prototype = new G()).isPureReactComponent = !0, Vt.prototype.shouldComponentUpdate = function(e, t) {
647
- return Gt(this.props, e) || Gt(this.state, t);
647
+ (zt.prototype = new V()).isPureReactComponent = !0, zt.prototype.shouldComponentUpdate = function(e, t) {
648
+ return jt(this.props, e) || jt(this.state, t);
648
649
  };
649
- var Wn = v.__b;
650
- v.__b = function(e) {
651
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Wn && Wn(e);
650
+ var Mn = S.__b;
651
+ S.__b = function(e) {
652
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mn && Mn(e);
652
653
  };
653
- var Ko = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
654
- function Qo(e) {
654
+ var Wo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
655
+ function jo(e) {
655
656
  function t(n) {
656
- var r = Hr({}, n);
657
+ var r = Ar({}, n);
657
658
  return delete r.ref, e(r, n.ref || null);
658
659
  }
659
- return t.$$typeof = Ko, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
660
+ return t.$$typeof = Wo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
660
661
  }
661
- var zn = function(e, t) {
662
- return e == null ? null : te(te(e).map(t));
663
- }, Jo = { map: zn, forEach: zn, count: function(e) {
664
- return e ? te(e).length : 0;
662
+ var Hn = function(e, t) {
663
+ return e == null ? null : ne(ne(e).map(t));
664
+ }, zo = { map: Hn, forEach: Hn, count: function(e) {
665
+ return e ? ne(e).length : 0;
665
666
  }, only: function(e) {
666
- var t = te(e);
667
+ var t = ne(e);
667
668
  if (t.length !== 1) throw "Children.only";
668
669
  return t[0];
669
- }, toArray: te }, ei = v.__e;
670
- v.__e = function(e, t, n, r) {
670
+ }, toArray: ne }, Go = S.__e;
671
+ S.__e = function(e, t, n, r) {
671
672
  if (e.then) {
672
673
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
673
674
  }
674
- ei(e, t, n, r);
675
+ Go(e, t, n, r);
675
676
  };
676
- var jn = v.unmount;
677
- function jr(e, t, n) {
677
+ var Un = S.unmount;
678
+ function Hr(e, t, n) {
678
679
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
679
680
  typeof r.__c == "function" && r.__c();
680
- }), e.__c.__H = null), (e = Hr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
681
- return jr(r, t, n);
681
+ }), e.__c.__H = null), (e = Ar({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
682
+ return Hr(r, t, n);
682
683
  })), e;
683
684
  }
684
- function Gr(e, t, n) {
685
+ function Ur(e, t, n) {
685
686
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
686
- return Gr(r, t, n);
687
+ return Ur(r, t, n);
687
688
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
688
689
  }
689
- function ct() {
690
+ function at() {
690
691
  this.__u = 0, this.o = null, this.__b = null;
691
692
  }
692
- function Vr(e) {
693
+ function Fr(e) {
693
694
  var t = e.__.__c;
694
695
  return t && t.__a && t.__a(e);
695
696
  }
696
- function ti(e) {
697
+ function Vo(e) {
697
698
  var t, n, r;
698
699
  function o(i) {
699
700
  if (t || (t = e()).then(function(s) {
@@ -706,59 +707,59 @@ function ti(e) {
706
707
  }
707
708
  return o.displayName = "Lazy", o.__f = !0, o;
708
709
  }
709
- function Ue() {
710
+ function Fe() {
710
711
  this.i = null, this.l = null;
711
712
  }
712
- v.unmount = function(e) {
713
+ S.unmount = function(e) {
713
714
  var t = e.__c;
714
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), jn && jn(e);
715
- }, (ct.prototype = new G()).__c = function(e, t) {
715
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Un && Un(e);
716
+ }, (at.prototype = new V()).__c = function(e, t) {
716
717
  var n = t.__c, r = this;
717
718
  r.o == null && (r.o = []), r.o.push(n);
718
- var o = Vr(r.__v), i = !1, s = function() {
719
- i || (i = !0, n.__R = null, o ? o(c) : c());
719
+ var o = Fr(r.__v), i = !1, s = function() {
720
+ i || (i = !0, n.__R = null, o ? o(a) : a());
720
721
  };
721
722
  n.__R = s;
722
- var c = function() {
723
+ var a = function() {
723
724
  if (!--r.__u) {
724
725
  if (r.state.__a) {
725
- var a = r.state.__a;
726
- r.__v.__k[0] = Gr(a, a.__c.__P, a.__c.__O);
726
+ var l = r.state.__a;
727
+ r.__v.__k[0] = Ur(l, l.__c.__P, l.__c.__O);
727
728
  }
728
729
  var u;
729
730
  for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
730
731
  }
731
732
  };
732
733
  r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
733
- }, ct.prototype.componentWillUnmount = function() {
734
+ }, at.prototype.componentWillUnmount = function() {
734
735
  this.o = [];
735
- }, ct.prototype.render = function(e, t) {
736
+ }, at.prototype.render = function(e, t) {
736
737
  if (this.__b) {
737
738
  if (this.__v.__k) {
738
739
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
739
- this.__v.__k[0] = jr(this.__b, n, r.__O = r.__P);
740
+ this.__v.__k[0] = Hr(this.__b, n, r.__O = r.__P);
740
741
  }
741
742
  this.__b = null;
742
743
  }
743
744
  var o = t.__a && D(z, null, e.fallback);
744
745
  return o && (o.__u &= -33), [D(z, null, t.__a ? null : e.children), o];
745
746
  };
746
- var Gn = function(e, t, n) {
747
+ var Fn = function(e, t, n) {
747
748
  if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
748
749
  for (; n.length > 3; ) n.pop()();
749
750
  if (n[1] < n[0]) break;
750
751
  e.i = n = n[2];
751
752
  }
752
753
  };
753
- function ni(e) {
754
+ function Yo(e) {
754
755
  return this.getChildContext = function() {
755
756
  return e.context;
756
757
  }, e.children;
757
758
  }
758
- function ri(e) {
759
+ function qo(e) {
759
760
  var t = this, n = e.h;
760
761
  if (t.componentWillUnmount = function() {
761
- ae(null, t.v), t.v = null, t.h = null;
762
+ ce(null, t.v), t.v = null, t.h = null;
762
763
  }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
763
764
  for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
764
765
  t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
@@ -771,125 +772,125 @@ function ri(e) {
771
772
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
772
773
  } };
773
774
  }
774
- ae(D(ni, { context: t.context }, e.__v), t.v);
775
+ ce(D(Yo, { context: t.context }, e.__v), t.v);
775
776
  }
776
- function oi(e, t) {
777
- var n = D(ri, { __v: e, h: t });
777
+ function Zo(e, t) {
778
+ var n = D(qo, { __v: e, h: t });
778
779
  return n.containerInfo = t, n;
779
780
  }
780
- (Ue.prototype = new G()).__a = function(e) {
781
- var t = this, n = Vr(t.__v), r = t.l.get(e);
781
+ (Fe.prototype = new V()).__a = function(e) {
782
+ var t = this, n = Fr(t.__v), r = t.l.get(e);
782
783
  return r[0]++, function(o) {
783
784
  var i = function() {
784
- t.props.revealOrder ? (r.push(o), Gn(t, e, r)) : o();
785
+ t.props.revealOrder ? (r.push(o), Fn(t, e, r)) : o();
785
786
  };
786
787
  n ? n(i) : i();
787
788
  };
788
- }, Ue.prototype.render = function(e) {
789
+ }, Fe.prototype.render = function(e) {
789
790
  this.i = null, this.l = /* @__PURE__ */ new Map();
790
- var t = te(e.children);
791
+ var t = ne(e.children);
791
792
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
792
793
  for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
793
794
  return e.children;
794
- }, Ue.prototype.componentDidUpdate = Ue.prototype.componentDidMount = function() {
795
+ }, Fe.prototype.componentDidUpdate = Fe.prototype.componentDidMount = function() {
795
796
  var e = this;
796
797
  this.l.forEach(function(t, n) {
797
- Gn(e, n, t);
798
+ Fn(e, n, t);
798
799
  });
799
800
  };
800
- var Yr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ii = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, si = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ai = /[A-Z0-9]/g, ci = typeof document < "u", li = function(e) {
801
+ var Br = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Xo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ko = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Qo = /[A-Z0-9]/g, Jo = typeof document < "u", ei = function(e) {
801
802
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
802
803
  };
803
- function ui(e, t, n) {
804
- return t.__k == null && (t.textContent = ""), ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
804
+ function ti(e, t, n) {
805
+ return t.__k == null && (t.textContent = ""), ce(e, t), typeof n == "function" && n(), e ? e.__c : null;
805
806
  }
806
- function fi(e, t, n) {
807
- return dn(e, t), typeof n == "function" && n(), e ? e.__c : null;
807
+ function ni(e, t, n) {
808
+ return cn(e, t), typeof n == "function" && n(), e ? e.__c : null;
808
809
  }
809
- G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
810
- Object.defineProperty(G.prototype, e, { configurable: !0, get: function() {
810
+ V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
811
+ Object.defineProperty(V.prototype, e, { configurable: !0, get: function() {
811
812
  return this["UNSAFE_" + e];
812
813
  }, set: function(t) {
813
814
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
814
815
  } });
815
816
  });
816
- var Vn = v.event;
817
- function di() {
817
+ var Bn = S.event;
818
+ function ri() {
818
819
  }
819
- function hi() {
820
+ function oi() {
820
821
  return this.cancelBubble;
821
822
  }
822
- function _i() {
823
+ function ii() {
823
824
  return this.defaultPrevented;
824
825
  }
825
- v.event = function(e) {
826
- return Vn && (e = Vn(e)), e.persist = di, e.isPropagationStopped = hi, e.isDefaultPrevented = _i, e.nativeEvent = e;
826
+ S.event = function(e) {
827
+ return Bn && (e = Bn(e)), e.persist = ri, e.isPropagationStopped = oi, e.isDefaultPrevented = ii, e.nativeEvent = e;
827
828
  };
828
- var yn, pi = { enumerable: !1, configurable: !0, get: function() {
829
+ var _n, si = { enumerable: !1, configurable: !0, get: function() {
829
830
  return this.class;
830
- } }, Yn = v.vnode;
831
- v.vnode = function(e) {
831
+ } }, Wn = S.vnode;
832
+ S.vnode = function(e) {
832
833
  typeof e.type == "string" && function(t) {
833
834
  var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
834
835
  for (var s in n) {
835
- var c = n[s];
836
- if (!(s === "value" && "defaultValue" in n && c == null || ci && s === "children" && r === "noscript" || s === "class" || s === "className")) {
837
- var a = s.toLowerCase();
838
- s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && c === !0 ? c = "" : a === "translate" && c === "no" ? c = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? s = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || li(n.type) ? a === "onfocus" ? s = "onfocusin" : a === "onblur" ? s = "onfocusout" : si.test(s) && (s = a) : a = s = "oninput" : i && ii.test(s) ? s = s.replace(ai, "-$&").toLowerCase() : c === null && (c = void 0), a === "oninput" && o[s = a] && (s = "oninputCapture"), o[s] = c;
836
+ var a = n[s];
837
+ if (!(s === "value" && "defaultValue" in n && a == null || Jo && s === "children" && r === "noscript" || s === "class" || s === "className")) {
838
+ var l = s.toLowerCase();
839
+ s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? s = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ei(n.type) ? l === "onfocus" ? s = "onfocusin" : l === "onblur" ? s = "onfocusout" : Ko.test(s) && (s = l) : l = s = "oninput" : i && Xo.test(s) ? s = s.replace(Qo, "-$&").toLowerCase() : a === null && (a = void 0), l === "oninput" && o[s = l] && (s = "oninputCapture"), o[s] = a;
839
840
  }
840
841
  }
841
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = te(n.children).forEach(function(u) {
842
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(u) {
842
843
  u.props.selected = o.value.indexOf(u.props.value) != -1;
843
- })), r == "select" && o.defaultValue != null && (o.value = te(n.children).forEach(function(u) {
844
+ })), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(u) {
844
845
  u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
845
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", pi)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
846
- }(e), e.$$typeof = Yr, Yn && Yn(e);
846
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", si)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
847
+ }(e), e.$$typeof = Br, Wn && Wn(e);
847
848
  };
848
- var qn = v.__r;
849
- v.__r = function(e) {
850
- qn && qn(e), yn = e.__c;
849
+ var jn = S.__r;
850
+ S.__r = function(e) {
851
+ jn && jn(e), _n = e.__c;
851
852
  };
852
- var Zn = v.diffed;
853
- v.diffed = function(e) {
854
- Zn && Zn(e);
853
+ var zn = S.diffed;
854
+ S.diffed = function(e) {
855
+ zn && zn(e);
855
856
  var t = e.props, n = e.__e;
856
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), yn = null;
857
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null;
857
858
  };
858
- var mi = { ReactCurrentDispatcher: { current: { readContext: function(e) {
859
- return yn.__n[e.__c].props.value;
860
- }, useCallback: ge, useContext: Ke, useDebugValue: mt, useDeferredValue: Br, useEffect: X, useId: Dr, useImperativeHandle: Pr, useInsertionEffect: zr, useLayoutEffect: Ae, useMemo: re, useReducer: mn, useRef: St, useState: M, useSyncExternalStore: Ur, useTransition: Wr } } };
861
- function gi(e) {
859
+ var ai = { ReactCurrentDispatcher: { current: { readContext: function(e) {
860
+ return _n.__n[e.__c].props.value;
861
+ }, useCallback: ae, useContext: Ke, useDebugValue: pt, useDeferredValue: Lr, useEffect: Q, useId: Tr, useImperativeHandle: Or, useInsertionEffect: Mr, useLayoutEffect: Re, useMemo: re, useReducer: fn, useRef: vt, useState: L, useSyncExternalStore: Rr, useTransition: Dr } } };
862
+ function ci(e) {
862
863
  return D.bind(null, e);
863
864
  }
864
- function wt(e) {
865
- return !!e && e.$$typeof === Yr;
865
+ function Ct(e) {
866
+ return !!e && e.$$typeof === Br;
866
867
  }
867
- function yi(e) {
868
- return wt(e) && e.type === z;
868
+ function li(e) {
869
+ return Ct(e) && e.type === z;
869
870
  }
870
- function vi(e) {
871
+ function ui(e) {
871
872
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
872
873
  }
873
- function Ci(e) {
874
- return wt(e) ? hn.apply(null, arguments) : e;
874
+ function fi(e) {
875
+ return Ct(e) ? ln.apply(null, arguments) : e;
875
876
  }
876
- function Si(e) {
877
- return !!e.__k && (ae(null, e), !0);
877
+ function di(e) {
878
+ return !!e.__k && (ce(null, e), !0);
878
879
  }
879
- function wi(e) {
880
+ function _i(e) {
880
881
  return e && (e.base || e.nodeType === 1 && e) || null;
881
882
  }
882
- var Ei = function(e, t) {
883
+ var hi = function(e, t) {
883
884
  return e(t);
884
- }, bi = function(e, t) {
885
+ }, pi = function(e, t) {
885
886
  return e(t);
886
- }, $i = z, ki = wt, oe = { useState: M, useId: Dr, useReducer: mn, useEffect: X, useLayoutEffect: Ae, useInsertionEffect: zr, useTransition: Wr, useDeferredValue: Br, useSyncExternalStore: Ur, startTransition: Fr, useRef: St, useImperativeHandle: Pr, useMemo: re, useCallback: ge, useContext: Ke, useDebugValue: mt, version: "18.3.1", Children: Jo, render: ui, hydrate: fi, unmountComponentAtNode: Si, createPortal: oi, createElement: D, createContext: Ar, createFactory: gi, cloneElement: Ci, createRef: Ao, Fragment: z, isValidElement: wt, isElement: ki, isFragment: yi, isMemo: vi, findDOMNode: wi, Component: G, PureComponent: Vt, memo: Xo, forwardRef: Qo, flushSync: bi, unstable_batchedUpdates: Ei, StrictMode: $i, Suspense: ct, SuspenseList: Ue, lazy: ti, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: mi };
887
- function Oi(e) {
887
+ }, mi = z, gi = Ct, oe = { useState: L, useId: Tr, useReducer: fn, useEffect: Q, useLayoutEffect: Re, useInsertionEffect: Mr, useTransition: Dr, useDeferredValue: Lr, useSyncExternalStore: Rr, startTransition: Pr, useRef: vt, useImperativeHandle: Or, useMemo: re, useCallback: ae, useContext: Ke, useDebugValue: pt, version: "18.3.1", Children: zo, render: ti, hydrate: ni, unmountComponentAtNode: di, createPortal: Zo, createElement: D, createContext: kr, createFactory: ci, cloneElement: fi, createRef: bo, Fragment: z, isValidElement: Ct, isElement: gi, isFragment: li, isMemo: ui, findDOMNode: _i, Component: V, PureComponent: zt, memo: Bo, forwardRef: jo, flushSync: pi, unstable_batchedUpdates: hi, StrictMode: mi, Suspense: at, SuspenseList: Fe, lazy: Vo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ai };
888
+ function yi(e) {
888
889
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
889
890
  }
890
- var Pt, Xn;
891
- function Ni() {
892
- return Xn || (Xn = 1, Pt = function(t, n, r, o) {
891
+ var Rt, Gn;
892
+ function vi() {
893
+ return Gn || (Gn = 1, Rt = function(t, n, r, o) {
893
894
  var i = r ? r.call(o, t, n) : void 0;
894
895
  if (i !== void 0)
895
896
  return !!i;
@@ -897,92 +898,92 @@ function Ni() {
897
898
  return !0;
898
899
  if (typeof t != "object" || !t || typeof n != "object" || !n)
899
900
  return !1;
900
- var s = Object.keys(t), c = Object.keys(n);
901
- if (s.length !== c.length)
901
+ var s = Object.keys(t), a = Object.keys(n);
902
+ if (s.length !== a.length)
902
903
  return !1;
903
- for (var a = Object.prototype.hasOwnProperty.bind(n), u = 0; u < s.length; u++) {
904
+ for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < s.length; u++) {
904
905
  var d = s[u];
905
- if (!a(d))
906
+ if (!l(d))
906
907
  return !1;
907
- var l = t[d], _ = n[d];
908
- if (i = r ? r.call(o, l, _, d) : void 0, i === !1 || i === void 0 && l !== _)
908
+ var c = t[d], h = n[d];
909
+ if (i = r ? r.call(o, c, h, d) : void 0, i === !1 || i === void 0 && c !== h)
909
910
  return !1;
910
911
  }
911
912
  return !0;
912
- }), Pt;
913
+ }), Rt;
913
914
  }
914
- var Ii = Ni();
915
- const Ti = /* @__PURE__ */ Oi(Ii);
916
- var I = "-ms-", ze = "-moz-", O = "-webkit-", qr = "comm", Et = "rule", vn = "decl", xi = "@import", Zr = "@keyframes", Ai = "@layer", Xr = Math.abs, Cn = String.fromCharCode, Yt = Object.assign;
917
- function Ri(e, t) {
915
+ var Ci = vi();
916
+ const Si = /* @__PURE__ */ yi(Ci);
917
+ var O = "-ms-", ze = "-moz-", N = "-webkit-", Wr = "comm", St = "rule", hn = "decl", Ei = "@import", jr = "@keyframes", wi = "@layer", zr = Math.abs, pn = String.fromCharCode, Gt = Object.assign;
918
+ function bi(e, t) {
918
919
  return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
919
920
  }
920
- function Kr(e) {
921
+ function Gr(e) {
921
922
  return e.trim();
922
923
  }
923
- function J(e, t) {
924
+ function ee(e, t) {
924
925
  return (e = t.exec(e)) ? e[0] : e;
925
926
  }
926
- function C(e, t, n) {
927
+ function E(e, t, n) {
927
928
  return e.replace(t, n);
928
929
  }
929
- function lt(e, t, n) {
930
+ function ct(e, t, n) {
930
931
  return e.indexOf(t, n);
931
932
  }
932
933
  function R(e, t) {
933
934
  return e.charCodeAt(t) | 0;
934
935
  }
935
- function Oe(e, t, n) {
936
+ function Ie(e, t, n) {
936
937
  return e.slice(t, n);
937
938
  }
938
- function Y(e) {
939
+ function q(e) {
939
940
  return e.length;
940
941
  }
941
- function Qr(e) {
942
+ function Vr(e) {
942
943
  return e.length;
943
944
  }
944
- function Fe(e, t) {
945
+ function Be(e, t) {
945
946
  return t.push(e), e;
946
947
  }
947
- function Li(e, t) {
948
+ function $i(e, t) {
948
949
  return e.map(t).join("");
949
950
  }
950
- function Kn(e, t) {
951
+ function Vn(e, t) {
951
952
  return e.filter(function(n) {
952
- return !J(n, t);
953
+ return !ee(n, t);
953
954
  });
954
955
  }
955
- var bt = 1, Ne = 1, Jr = 0, j = 0, A = 0, Re = "";
956
- function $t(e, t, n, r, o, i, s, c) {
957
- return { value: e, root: t, parent: n, type: r, props: o, children: i, line: bt, column: Ne, length: s, return: "", siblings: c };
956
+ var Et = 1, Oe = 1, Yr = 0, G = 0, A = 0, Pe = "";
957
+ function wt(e, t, n, r, o, i, s, a) {
958
+ return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Et, column: Oe, length: s, return: "", siblings: a };
958
959
  }
959
960
  function se(e, t) {
960
- return Yt($t("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
961
+ return Gt(wt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
961
962
  }
962
- function Ee(e) {
963
+ function we(e) {
963
964
  for (; e.root; )
964
965
  e = se(e.root, { children: [e] });
965
- Fe(e, e.siblings);
966
+ Be(e, e.siblings);
966
967
  }
967
- function Pi() {
968
+ function ki() {
968
969
  return A;
969
970
  }
970
- function Di() {
971
- return A = j > 0 ? R(Re, --j) : 0, Ne--, A === 10 && (Ne = 1, bt--), A;
971
+ function Ni() {
972
+ return A = G > 0 ? R(Pe, --G) : 0, Oe--, A === 10 && (Oe = 1, Et--), A;
972
973
  }
973
- function V() {
974
- return A = j < Jr ? R(Re, j++) : 0, Ne++, A === 10 && (Ne = 1, bt++), A;
974
+ function Y() {
975
+ return A = G < Yr ? R(Pe, G++) : 0, Oe++, A === 10 && (Oe = 1, Et++), A;
975
976
  }
976
- function pe() {
977
- return R(Re, j);
977
+ function me() {
978
+ return R(Pe, G);
978
979
  }
979
- function ut() {
980
- return j;
980
+ function lt() {
981
+ return G;
981
982
  }
982
- function kt(e, t) {
983
- return Oe(Re, e, t);
983
+ function bt(e, t) {
984
+ return Ie(Pe, e, t);
984
985
  }
985
- function qt(e) {
986
+ function Vt(e) {
986
987
  switch (e) {
987
988
  // \0 \t \n \r \s whitespace token
988
989
  case 0:
@@ -1020,184 +1021,184 @@ function qt(e) {
1020
1021
  }
1021
1022
  return 0;
1022
1023
  }
1023
- function Mi(e) {
1024
- return bt = Ne = 1, Jr = Y(Re = e), j = 0, [];
1024
+ function Ii(e) {
1025
+ return Et = Oe = 1, Yr = q(Pe = e), G = 0, [];
1025
1026
  }
1026
- function Hi(e) {
1027
- return Re = "", e;
1027
+ function Oi(e) {
1028
+ return Pe = "", e;
1028
1029
  }
1029
- function Dt(e) {
1030
- return Kr(kt(j - 1, Zt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1030
+ function Pt(e) {
1031
+ return Gr(bt(G - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1031
1032
  }
1032
- function Ui(e) {
1033
- for (; (A = pe()) && A < 33; )
1034
- V();
1035
- return qt(e) > 2 || qt(A) > 3 ? "" : " ";
1033
+ function Ti(e) {
1034
+ for (; (A = me()) && A < 33; )
1035
+ Y();
1036
+ return Vt(e) > 2 || Vt(A) > 3 ? "" : " ";
1036
1037
  }
1037
- function Fi(e, t) {
1038
- for (; --t && V() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1038
+ function xi(e, t) {
1039
+ for (; --t && Y() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1039
1040
  ;
1040
- return kt(e, ut() + (t < 6 && pe() == 32 && V() == 32));
1041
+ return bt(e, lt() + (t < 6 && me() == 32 && Y() == 32));
1041
1042
  }
1042
- function Zt(e) {
1043
- for (; V(); )
1043
+ function Yt(e) {
1044
+ for (; Y(); )
1044
1045
  switch (A) {
1045
1046
  // ] ) " '
1046
1047
  case e:
1047
- return j;
1048
+ return G;
1048
1049
  // " '
1049
1050
  case 34:
1050
1051
  case 39:
1051
- e !== 34 && e !== 39 && Zt(A);
1052
+ e !== 34 && e !== 39 && Yt(A);
1052
1053
  break;
1053
1054
  // (
1054
1055
  case 40:
1055
- e === 41 && Zt(e);
1056
+ e === 41 && Yt(e);
1056
1057
  break;
1057
1058
  // \
1058
1059
  case 92:
1059
- V();
1060
+ Y();
1060
1061
  break;
1061
1062
  }
1062
- return j;
1063
+ return G;
1063
1064
  }
1064
- function Bi(e, t) {
1065
- for (; V() && e + A !== 57; )
1066
- if (e + A === 84 && pe() === 47)
1065
+ function Ai(e, t) {
1066
+ for (; Y() && e + A !== 57; )
1067
+ if (e + A === 84 && me() === 47)
1067
1068
  break;
1068
- return "/*" + kt(t, j - 1) + "*" + Cn(e === 47 ? e : V());
1069
+ return "/*" + bt(t, G - 1) + "*" + pn(e === 47 ? e : Y());
1069
1070
  }
1070
- function Wi(e) {
1071
- for (; !qt(pe()); )
1072
- V();
1073
- return kt(e, j);
1071
+ function Ri(e) {
1072
+ for (; !Vt(me()); )
1073
+ Y();
1074
+ return bt(e, G);
1074
1075
  }
1075
- function zi(e) {
1076
- return Hi(ft("", null, null, null, [""], e = Mi(e), 0, [0], e));
1076
+ function Pi(e) {
1077
+ return Oi(ut("", null, null, null, [""], e = Ii(e), 0, [0], e));
1077
1078
  }
1078
- function ft(e, t, n, r, o, i, s, c, a) {
1079
- for (var u = 0, d = 0, l = s, _ = 0, h = 0, g = 0, w = 1, $ = 1, m = 1, p = 0, k = "", E = o, N = i, S = r, y = k; $; )
1080
- switch (g = p, p = V()) {
1079
+ function ut(e, t, n, r, o, i, s, a, l) {
1080
+ for (var u = 0, d = 0, c = s, h = 0, _ = 0, v = 0, g = 1, y = 1, m = 1, p = 0, k = "", b = o, I = i, w = r, C = k; y; )
1081
+ switch (v = p, p = Y()) {
1081
1082
  // (
1082
1083
  case 40:
1083
- if (g != 108 && R(y, l - 1) == 58) {
1084
- lt(y += C(Dt(p), "&", "&\f"), "&\f", Xr(u ? c[u - 1] : 0)) != -1 && (m = -1);
1084
+ if (v != 108 && R(C, c - 1) == 58) {
1085
+ ct(C += E(Pt(p), "&", "&\f"), "&\f", zr(u ? a[u - 1] : 0)) != -1 && (m = -1);
1085
1086
  break;
1086
1087
  }
1087
1088
  // " ' [
1088
1089
  case 34:
1089
1090
  case 39:
1090
1091
  case 91:
1091
- y += Dt(p);
1092
+ C += Pt(p);
1092
1093
  break;
1093
1094
  // \t \n \r \s
1094
1095
  case 9:
1095
1096
  case 10:
1096
1097
  case 13:
1097
1098
  case 32:
1098
- y += Ui(g);
1099
+ C += Ti(v);
1099
1100
  break;
1100
1101
  // \
1101
1102
  case 92:
1102
- y += Fi(ut() - 1, 7);
1103
+ C += xi(lt() - 1, 7);
1103
1104
  continue;
1104
1105
  // /
1105
1106
  case 47:
1106
- switch (pe()) {
1107
+ switch (me()) {
1107
1108
  case 42:
1108
1109
  case 47:
1109
- Fe(ji(Bi(V(), ut()), t, n, a), a);
1110
+ Be(Li(Ai(Y(), lt()), t, n, l), l);
1110
1111
  break;
1111
1112
  default:
1112
- y += "/";
1113
+ C += "/";
1113
1114
  }
1114
1115
  break;
1115
1116
  // {
1116
- case 123 * w:
1117
- c[u++] = Y(y) * m;
1117
+ case 123 * g:
1118
+ a[u++] = q(C) * m;
1118
1119
  // } ; \0
1119
- case 125 * w:
1120
+ case 125 * g:
1120
1121
  case 59:
1121
1122
  case 0:
1122
1123
  switch (p) {
1123
1124
  // \0 }
1124
1125
  case 0:
1125
1126
  case 125:
1126
- $ = 0;
1127
+ y = 0;
1127
1128
  // ;
1128
1129
  case 59 + d:
1129
- m == -1 && (y = C(y, /\f/g, "")), h > 0 && Y(y) - l && Fe(h > 32 ? Jn(y + ";", r, n, l - 1, a) : Jn(C(y, " ", "") + ";", r, n, l - 2, a), a);
1130
+ m == -1 && (C = E(C, /\f/g, "")), _ > 0 && q(C) - c && Be(_ > 32 ? qn(C + ";", r, n, c - 1, l) : qn(E(C, " ", "") + ";", r, n, c - 2, l), l);
1130
1131
  break;
1131
1132
  // @ ;
1132
1133
  case 59:
1133
- y += ";";
1134
+ C += ";";
1134
1135
  // { rule/at-rule
1135
1136
  default:
1136
- if (Fe(S = Qn(y, t, n, u, d, o, c, k, E = [], N = [], l, i), i), p === 123)
1137
+ if (Be(w = Yn(C, t, n, u, d, o, a, k, b = [], I = [], c, i), i), p === 123)
1137
1138
  if (d === 0)
1138
- ft(y, t, S, S, E, i, l, c, N);
1139
+ ut(C, t, w, w, b, i, c, a, I);
1139
1140
  else
1140
- switch (_ === 99 && R(y, 3) === 110 ? 100 : _) {
1141
+ switch (h === 99 && R(C, 3) === 110 ? 100 : h) {
1141
1142
  // d l m s
1142
1143
  case 100:
1143
1144
  case 108:
1144
1145
  case 109:
1145
1146
  case 115:
1146
- ft(e, S, S, r && Fe(Qn(e, S, S, 0, 0, o, c, k, o, E = [], l, N), N), o, N, l, c, r ? E : N);
1147
+ ut(e, w, w, r && Be(Yn(e, w, w, 0, 0, o, a, k, o, b = [], c, I), I), o, I, c, a, r ? b : I);
1147
1148
  break;
1148
1149
  default:
1149
- ft(y, S, S, S, [""], N, 0, c, N);
1150
+ ut(C, w, w, w, [""], I, 0, a, I);
1150
1151
  }
1151
1152
  }
1152
- u = d = h = 0, w = m = 1, k = y = "", l = s;
1153
+ u = d = _ = 0, g = m = 1, k = C = "", c = s;
1153
1154
  break;
1154
1155
  // :
1155
1156
  case 58:
1156
- l = 1 + Y(y), h = g;
1157
+ c = 1 + q(C), _ = v;
1157
1158
  default:
1158
- if (w < 1) {
1159
+ if (g < 1) {
1159
1160
  if (p == 123)
1160
- --w;
1161
- else if (p == 125 && w++ == 0 && Di() == 125)
1161
+ --g;
1162
+ else if (p == 125 && g++ == 0 && Ni() == 125)
1162
1163
  continue;
1163
1164
  }
1164
- switch (y += Cn(p), p * w) {
1165
+ switch (C += pn(p), p * g) {
1165
1166
  // &
1166
1167
  case 38:
1167
- m = d > 0 ? 1 : (y += "\f", -1);
1168
+ m = d > 0 ? 1 : (C += "\f", -1);
1168
1169
  break;
1169
1170
  // ,
1170
1171
  case 44:
1171
- c[u++] = (Y(y) - 1) * m, m = 1;
1172
+ a[u++] = (q(C) - 1) * m, m = 1;
1172
1173
  break;
1173
1174
  // @
1174
1175
  case 64:
1175
- pe() === 45 && (y += Dt(V())), _ = pe(), d = l = Y(k = y += Wi(ut())), p++;
1176
+ me() === 45 && (C += Pt(Y())), h = me(), d = c = q(k = C += Ri(lt())), p++;
1176
1177
  break;
1177
1178
  // -
1178
1179
  case 45:
1179
- g === 45 && Y(y) == 2 && (w = 0);
1180
+ v === 45 && q(C) == 2 && (g = 0);
1180
1181
  }
1181
1182
  }
1182
1183
  return i;
1183
1184
  }
1184
- function Qn(e, t, n, r, o, i, s, c, a, u, d, l) {
1185
- for (var _ = o - 1, h = o === 0 ? i : [""], g = Qr(h), w = 0, $ = 0, m = 0; w < r; ++w)
1186
- for (var p = 0, k = Oe(e, _ + 1, _ = Xr($ = s[w])), E = e; p < g; ++p)
1187
- (E = Kr($ > 0 ? h[p] + " " + k : C(k, /&\f/g, h[p]))) && (a[m++] = E);
1188
- return $t(e, t, n, o === 0 ? Et : c, a, u, d, l);
1185
+ function Yn(e, t, n, r, o, i, s, a, l, u, d, c) {
1186
+ for (var h = o - 1, _ = o === 0 ? i : [""], v = Vr(_), g = 0, y = 0, m = 0; g < r; ++g)
1187
+ for (var p = 0, k = Ie(e, h + 1, h = zr(y = s[g])), b = e; p < v; ++p)
1188
+ (b = Gr(y > 0 ? _[p] + " " + k : E(k, /&\f/g, _[p]))) && (l[m++] = b);
1189
+ return wt(e, t, n, o === 0 ? St : a, l, u, d, c);
1189
1190
  }
1190
- function ji(e, t, n, r) {
1191
- return $t(e, t, n, qr, Cn(Pi()), Oe(e, 2, -2), 0, r);
1191
+ function Li(e, t, n, r) {
1192
+ return wt(e, t, n, Wr, pn(ki()), Ie(e, 2, -2), 0, r);
1192
1193
  }
1193
- function Jn(e, t, n, r, o) {
1194
- return $t(e, t, n, vn, Oe(e, 0, r), Oe(e, r + 1, -1), r, o);
1194
+ function qn(e, t, n, r, o) {
1195
+ return wt(e, t, n, hn, Ie(e, 0, r), Ie(e, r + 1, -1), r, o);
1195
1196
  }
1196
- function eo(e, t, n) {
1197
- switch (Ri(e, t)) {
1197
+ function qr(e, t, n) {
1198
+ switch (bi(e, t)) {
1198
1199
  // color-adjust
1199
1200
  case 5103:
1200
- return O + "print-" + e + e;
1201
+ return N + "print-" + e + e;
1201
1202
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1202
1203
  case 5737:
1203
1204
  case 4201:
@@ -1227,7 +1228,7 @@ function eo(e, t, n) {
1227
1228
  case 5365:
1228
1229
  case 5621:
1229
1230
  case 3829:
1230
- return O + e + e;
1231
+ return N + e + e;
1231
1232
  // tab-size
1232
1233
  case 4789:
1233
1234
  return ze + e + e;
@@ -1237,85 +1238,85 @@ function eo(e, t, n) {
1237
1238
  case 4810:
1238
1239
  case 6968:
1239
1240
  case 2756:
1240
- return O + e + ze + e + I + e + e;
1241
+ return N + e + ze + e + O + e + e;
1241
1242
  // writing-mode
1242
1243
  case 5936:
1243
1244
  switch (R(e, t + 11)) {
1244
1245
  // vertical-l(r)
1245
1246
  case 114:
1246
- return O + e + I + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1247
+ return N + e + O + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1247
1248
  // vertical-r(l)
1248
1249
  case 108:
1249
- return O + e + I + C(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1250
+ return N + e + O + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1250
1251
  // horizontal(-)tb
1251
1252
  case 45:
1252
- return O + e + I + C(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1253
+ return N + e + O + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1253
1254
  }
1254
1255
  // flex, flex-direction, scroll-snap-type, writing-mode
1255
1256
  case 6828:
1256
1257
  case 4268:
1257
1258
  case 2903:
1258
- return O + e + I + e + e;
1259
+ return N + e + O + e + e;
1259
1260
  // order
1260
1261
  case 6165:
1261
- return O + e + I + "flex-" + e + e;
1262
+ return N + e + O + "flex-" + e + e;
1262
1263
  // align-items
1263
1264
  case 5187:
1264
- return O + e + C(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + I + "flex-$1$2") + e;
1265
+ return N + e + E(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + O + "flex-$1$2") + e;
1265
1266
  // align-self
1266
1267
  case 5443:
1267
- return O + e + I + "flex-item-" + C(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : I + "grid-row-" + C(e, /flex-|-self/g, "")) + e;
1268
+ return N + e + O + "flex-item-" + E(e, /flex-|-self/g, "") + (ee(e, /flex-|baseline/) ? "" : O + "grid-row-" + E(e, /flex-|-self/g, "")) + e;
1268
1269
  // align-content
1269
1270
  case 4675:
1270
- return O + e + I + "flex-line-pack" + C(e, /align-content|flex-|-self/g, "") + e;
1271
+ return N + e + O + "flex-line-pack" + E(e, /align-content|flex-|-self/g, "") + e;
1271
1272
  // flex-shrink
1272
1273
  case 5548:
1273
- return O + e + I + C(e, "shrink", "negative") + e;
1274
+ return N + e + O + E(e, "shrink", "negative") + e;
1274
1275
  // flex-basis
1275
1276
  case 5292:
1276
- return O + e + I + C(e, "basis", "preferred-size") + e;
1277
+ return N + e + O + E(e, "basis", "preferred-size") + e;
1277
1278
  // flex-grow
1278
1279
  case 6060:
1279
- return O + "box-" + C(e, "-grow", "") + O + e + I + C(e, "grow", "positive") + e;
1280
+ return N + "box-" + E(e, "-grow", "") + N + e + O + E(e, "grow", "positive") + e;
1280
1281
  // transition
1281
1282
  case 4554:
1282
- return O + C(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
1283
+ return N + E(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
1283
1284
  // cursor
1284
1285
  case 6187:
1285
- return C(C(C(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
1286
+ return E(E(E(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
1286
1287
  // background, background-image
1287
1288
  case 5495:
1288
1289
  case 3959:
1289
- return C(e, /(image-set\([^]*)/, O + "$1$`$1");
1290
+ return E(e, /(image-set\([^]*)/, N + "$1$`$1");
1290
1291
  // justify-content
1291
1292
  case 4968:
1292
- return C(C(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + I + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
1293
+ return E(E(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + O + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
1293
1294
  // justify-self
1294
1295
  case 4200:
1295
- if (!J(e, /flex-|baseline/)) return I + "grid-column-align" + Oe(e, t) + e;
1296
+ if (!ee(e, /flex-|baseline/)) return O + "grid-column-align" + Ie(e, t) + e;
1296
1297
  break;
1297
1298
  // grid-template-(columns|rows)
1298
1299
  case 2592:
1299
1300
  case 3360:
1300
- return I + C(e, "template-", "") + e;
1301
+ return O + E(e, "template-", "") + e;
1301
1302
  // grid-(row|column)-start
1302
1303
  case 4384:
1303
1304
  case 3616:
1304
1305
  return n && n.some(function(r, o) {
1305
- return t = o, J(r.props, /grid-\w+-end/);
1306
- }) ? ~lt(e + (n = n[t].value), "span", 0) ? e : I + C(e, "-start", "") + e + I + "grid-row-span:" + (~lt(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : I + C(e, "-start", "") + e;
1306
+ return t = o, ee(r.props, /grid-\w+-end/);
1307
+ }) ? ~ct(e + (n = n[t].value), "span", 0) ? e : O + E(e, "-start", "") + e + O + "grid-row-span:" + (~ct(n, "span", 0) ? ee(n, /\d+/) : +ee(n, /\d+/) - +ee(e, /\d+/)) + ";" : O + E(e, "-start", "") + e;
1307
1308
  // grid-(row|column)-end
1308
1309
  case 4896:
1309
1310
  case 4128:
1310
1311
  return n && n.some(function(r) {
1311
- return J(r.props, /grid-\w+-start/);
1312
- }) ? e : I + C(C(e, "-end", "-span"), "span ", "") + e;
1312
+ return ee(r.props, /grid-\w+-start/);
1313
+ }) ? e : O + E(E(e, "-end", "-span"), "span ", "") + e;
1313
1314
  // (margin|padding)-inline-(start|end)
1314
1315
  case 4095:
1315
1316
  case 3583:
1316
1317
  case 4068:
1317
1318
  case 2532:
1318
- return C(e, /(.+)-inline(.+)/, O + "$1$2") + e;
1319
+ return E(e, /(.+)-inline(.+)/, N + "$1$2") + e;
1319
1320
  // (min|max)?(width|height|inline-size|block-size)
1320
1321
  case 8116:
1321
1322
  case 7059:
@@ -1329,7 +1330,7 @@ function eo(e, t, n) {
1329
1330
  case 5789:
1330
1331
  case 5021:
1331
1332
  case 4765:
1332
- if (Y(e) - 1 - t > 6)
1333
+ if (q(e) - 1 - t > 6)
1333
1334
  switch (R(e, t + 1)) {
1334
1335
  // (m)ax-content, (m)in-content
1335
1336
  case 109:
@@ -1337,32 +1338,32 @@ function eo(e, t, n) {
1337
1338
  break;
1338
1339
  // (f)ill-available, (f)it-content
1339
1340
  case 102:
1340
- return C(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + ze + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1341
+ return E(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + ze + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1341
1342
  // (s)tretch
1342
1343
  case 115:
1343
- return ~lt(e, "stretch", 0) ? eo(C(e, "stretch", "fill-available"), t, n) + e : e;
1344
+ return ~ct(e, "stretch", 0) ? qr(E(e, "stretch", "fill-available"), t, n) + e : e;
1344
1345
  }
1345
1346
  break;
1346
1347
  // grid-(column|row)
1347
1348
  case 5152:
1348
1349
  case 5920:
1349
- return C(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, s, c, a, u) {
1350
- return I + o + ":" + i + u + (s ? I + o + "-span:" + (c ? a : +a - +i) + u : "") + e;
1350
+ return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, s, a, l, u) {
1351
+ return O + o + ":" + i + u + (s ? O + o + "-span:" + (a ? l : +l - +i) + u : "") + e;
1351
1352
  });
1352
1353
  // position: sticky
1353
1354
  case 4949:
1354
1355
  if (R(e, t + 6) === 121)
1355
- return C(e, ":", ":" + O) + e;
1356
+ return E(e, ":", ":" + N) + e;
1356
1357
  break;
1357
1358
  // display: (flex|inline-flex|grid|inline-grid)
1358
1359
  case 6444:
1359
1360
  switch (R(e, R(e, 14) === 45 ? 18 : 11)) {
1360
1361
  // (inline-)?fle(x)
1361
1362
  case 120:
1362
- return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + I + "$2box$3") + e;
1363
+ return E(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + O + "$2box$3") + e;
1363
1364
  // (inline-)?gri(d)
1364
1365
  case 100:
1365
- return C(e, ":", ":" + I) + e;
1366
+ return E(e, ":", ":" + O) + e;
1366
1367
  }
1367
1368
  break;
1368
1369
  // scroll-margin, scroll-margin-(top|right|bottom|left)
@@ -1371,71 +1372,71 @@ function eo(e, t, n) {
1371
1372
  case 2135:
1372
1373
  case 3927:
1373
1374
  case 2391:
1374
- return C(e, "scroll-", "scroll-snap-") + e;
1375
+ return E(e, "scroll-", "scroll-snap-") + e;
1375
1376
  }
1376
1377
  return e;
1377
1378
  }
1378
- function gt(e, t) {
1379
+ function mt(e, t) {
1379
1380
  for (var n = "", r = 0; r < e.length; r++)
1380
1381
  n += t(e[r], r, e, t) || "";
1381
1382
  return n;
1382
1383
  }
1383
- function Gi(e, t, n, r) {
1384
+ function Di(e, t, n, r) {
1384
1385
  switch (e.type) {
1385
- case Ai:
1386
+ case wi:
1386
1387
  if (e.children.length) break;
1387
- case xi:
1388
- case vn:
1388
+ case Ei:
1389
+ case hn:
1389
1390
  return e.return = e.return || e.value;
1390
- case qr:
1391
+ case Wr:
1391
1392
  return "";
1392
- case Zr:
1393
- return e.return = e.value + "{" + gt(e.children, r) + "}";
1394
- case Et:
1395
- if (!Y(e.value = e.props.join(","))) return "";
1393
+ case jr:
1394
+ return e.return = e.value + "{" + mt(e.children, r) + "}";
1395
+ case St:
1396
+ if (!q(e.value = e.props.join(","))) return "";
1396
1397
  }
1397
- return Y(n = gt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1398
+ return q(n = mt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1398
1399
  }
1399
- function Vi(e) {
1400
- var t = Qr(e);
1400
+ function Mi(e) {
1401
+ var t = Vr(e);
1401
1402
  return function(n, r, o, i) {
1402
- for (var s = "", c = 0; c < t; c++)
1403
- s += e[c](n, r, o, i) || "";
1403
+ for (var s = "", a = 0; a < t; a++)
1404
+ s += e[a](n, r, o, i) || "";
1404
1405
  return s;
1405
1406
  };
1406
1407
  }
1407
- function Yi(e) {
1408
+ function Hi(e) {
1408
1409
  return function(t) {
1409
1410
  t.root || (t = t.return) && e(t);
1410
1411
  };
1411
1412
  }
1412
- function qi(e, t, n, r) {
1413
+ function Ui(e, t, n, r) {
1413
1414
  if (e.length > -1 && !e.return)
1414
1415
  switch (e.type) {
1415
- case vn:
1416
- e.return = eo(e.value, e.length, n);
1416
+ case hn:
1417
+ e.return = qr(e.value, e.length, n);
1417
1418
  return;
1418
- case Zr:
1419
- return gt([se(e, { value: C(e.value, "@", "@" + O) })], r);
1420
- case Et:
1419
+ case jr:
1420
+ return mt([se(e, { value: E(e.value, "@", "@" + N) })], r);
1421
+ case St:
1421
1422
  if (e.length)
1422
- return Li(n = e.props, function(o) {
1423
- switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
1423
+ return $i(n = e.props, function(o) {
1424
+ switch (ee(o, r = /(::plac\w+|:read-\w+)/)) {
1424
1425
  // :read-(only|write)
1425
1426
  case ":read-only":
1426
1427
  case ":read-write":
1427
- Ee(se(e, { props: [C(o, /:(read-\w+)/, ":" + ze + "$1")] })), Ee(se(e, { props: [o] })), Yt(e, { props: Kn(n, r) });
1428
+ we(se(e, { props: [E(o, /:(read-\w+)/, ":" + ze + "$1")] })), we(se(e, { props: [o] })), Gt(e, { props: Vn(n, r) });
1428
1429
  break;
1429
1430
  // :placeholder
1430
1431
  case "::placeholder":
1431
- Ee(se(e, { props: [C(o, /:(plac\w+)/, ":" + O + "input-$1")] })), Ee(se(e, { props: [C(o, /:(plac\w+)/, ":" + ze + "$1")] })), Ee(se(e, { props: [C(o, /:(plac\w+)/, I + "input-$1")] })), Ee(se(e, { props: [o] })), Yt(e, { props: Kn(n, r) });
1432
+ we(se(e, { props: [E(o, /:(plac\w+)/, ":" + N + "input-$1")] })), we(se(e, { props: [E(o, /:(plac\w+)/, ":" + ze + "$1")] })), we(se(e, { props: [E(o, /:(plac\w+)/, O + "input-$1")] })), we(se(e, { props: [o] })), Gt(e, { props: Vn(n, r) });
1432
1433
  break;
1433
1434
  }
1434
1435
  return "";
1435
1436
  });
1436
1437
  }
1437
1438
  }
1438
- var Zi = {
1439
+ var Fi = {
1439
1440
  animationIterationCount: 1,
1440
1441
  aspectRatio: 1,
1441
1442
  borderImageOutset: 1,
@@ -1483,9 +1484,9 @@ var Zi = {
1483
1484
  strokeMiterlimit: 1,
1484
1485
  strokeOpacity: 1,
1485
1486
  strokeWidth: 1
1486
- }, b = {}, ve = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled", to = "active", no = "data-styled-version", Ot = "6.1.18", Sn = `/*!sc*/
1487
- `, yt = typeof window < "u" && typeof document < "u", Xi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && b !== void 0 && b.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && b.REACT_APP_SC_DISABLE_SPEEDY !== "" ? b.REACT_APP_SC_DISABLE_SPEEDY !== "false" && b.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && b !== void 0 && b.SC_DISABLE_SPEEDY !== void 0 && b.SC_DISABLE_SPEEDY !== "" ? b.SC_DISABLE_SPEEDY !== "false" && b.SC_DISABLE_SPEEDY : b.NODE_ENV !== "production"), er = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Ki = function(e, t) {
1488
- if (b.NODE_ENV !== "production") {
1487
+ }, $ = {}, ve = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Zr = "active", Xr = "data-styled-version", $t = "6.1.18", mn = `/*!sc*/
1488
+ `, gt = typeof window < "u" && typeof document < "u", Bi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Zn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Wi = function(e, t) {
1489
+ if ($.NODE_ENV !== "production") {
1489
1490
  var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1490
1491
  `) + `You may see this warning because you've called styled inside another component.
1491
1492
  To resolve this only create new StyledComponents outside of any render method and function component.
@@ -1494,66 +1495,66 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1494
1495
  try {
1495
1496
  var i = !0;
1496
1497
  console.error = function(s) {
1497
- for (var c = [], a = 1; a < arguments.length; a++) c[a - 1] = arguments[a];
1498
- er.test(s) ? (i = !1, rt.delete(r)) : o.apply(void 0, ye([s], c, !1));
1499
- }, St(), i && !rt.has(r) && (console.warn(r), rt.add(r));
1498
+ for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
1499
+ Zn.test(s) ? (i = !1, nt.delete(r)) : o.apply(void 0, ye([s], a, !1));
1500
+ }, vt(), i && !nt.has(r) && (console.warn(r), nt.add(r));
1500
1501
  } catch (s) {
1501
- er.test(s.message) && rt.delete(r);
1502
+ Zn.test(s.message) && nt.delete(r);
1502
1503
  } finally {
1503
1504
  console.error = o;
1504
1505
  }
1505
1506
  }
1506
- }, Nt = Object.freeze([]), Ie = Object.freeze({});
1507
- function Qi(e, t, n) {
1508
- return n === void 0 && (n = Ie), e.theme !== n.theme && e.theme || t || n.theme;
1507
+ }, kt = Object.freeze([]), Te = Object.freeze({});
1508
+ function ji(e, t, n) {
1509
+ return n === void 0 && (n = Te), e.theme !== n.theme && e.theme || t || n.theme;
1509
1510
  }
1510
- var Xt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ji = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, es = /(^-|-$)/g;
1511
- function tr(e) {
1512
- return e.replace(Ji, "-").replace(es, "");
1511
+ var qt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), zi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Gi = /(^-|-$)/g;
1512
+ function Xn(e) {
1513
+ return e.replace(zi, "-").replace(Gi, "");
1513
1514
  }
1514
- var ts = /(a)(d)/gi, ot = 52, nr = function(e) {
1515
+ var Vi = /(a)(d)/gi, rt = 52, Kn = function(e) {
1515
1516
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1516
1517
  };
1517
- function Kt(e) {
1518
+ function Zt(e) {
1518
1519
  var t, n = "";
1519
- for (t = Math.abs(e); t > ot; t = t / ot | 0) n = nr(t % ot) + n;
1520
- return (nr(t % ot) + n).replace(ts, "$1-$2");
1520
+ for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Kn(t % rt) + n;
1521
+ return (Kn(t % rt) + n).replace(Vi, "$1-$2");
1521
1522
  }
1522
- var Mt, ro = 5381, he = function(e, t) {
1523
+ var Lt, Kr = 5381, he = function(e, t) {
1523
1524
  for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1524
1525
  return e;
1525
- }, oo = function(e) {
1526
- return he(ro, e);
1526
+ }, Qr = function(e) {
1527
+ return he(Kr, e);
1527
1528
  };
1528
- function io(e) {
1529
- return Kt(oo(e) >>> 0);
1529
+ function Jr(e) {
1530
+ return Zt(Qr(e) >>> 0);
1530
1531
  }
1531
- function so(e) {
1532
- return b.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1532
+ function eo(e) {
1533
+ return $.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1533
1534
  }
1534
- function Ht(e) {
1535
- return typeof e == "string" && (b.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1535
+ function Dt(e) {
1536
+ return typeof e == "string" && ($.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1536
1537
  }
1537
- var ao = typeof Symbol == "function" && Symbol.for, co = ao ? Symbol.for("react.memo") : 60115, ns = ao ? Symbol.for("react.forward_ref") : 60112, rs = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, os = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, lo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, is = ((Mt = {})[ns] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Mt[co] = lo, Mt);
1538
- function rr(e) {
1539
- return ("type" in (t = e) && t.type.$$typeof) === co ? lo : "$$typeof" in e ? is[e.$$typeof] : rs;
1538
+ var to = typeof Symbol == "function" && Symbol.for, no = to ? Symbol.for("react.memo") : 60115, Yi = to ? Symbol.for("react.forward_ref") : 60112, qi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Zi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ro = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Xi = ((Lt = {})[Yi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[no] = ro, Lt);
1539
+ function Qn(e) {
1540
+ return ("type" in (t = e) && t.type.$$typeof) === no ? ro : "$$typeof" in e ? Xi[e.$$typeof] : qi;
1540
1541
  var t;
1541
1542
  }
1542
- var ss = Object.defineProperty, as = Object.getOwnPropertyNames, or = Object.getOwnPropertySymbols, cs = Object.getOwnPropertyDescriptor, ls = Object.getPrototypeOf, ir = Object.prototype;
1543
- function uo(e, t, n) {
1543
+ var Ki = Object.defineProperty, Qi = Object.getOwnPropertyNames, Jn = Object.getOwnPropertySymbols, Ji = Object.getOwnPropertyDescriptor, es = Object.getPrototypeOf, er = Object.prototype;
1544
+ function oo(e, t, n) {
1544
1545
  if (typeof t != "string") {
1545
- if (ir) {
1546
- var r = ls(t);
1547
- r && r !== ir && uo(e, r, n);
1546
+ if (er) {
1547
+ var r = es(t);
1548
+ r && r !== er && oo(e, r, n);
1548
1549
  }
1549
- var o = as(t);
1550
- or && (o = o.concat(or(t)));
1551
- for (var i = rr(e), s = rr(t), c = 0; c < o.length; ++c) {
1552
- var a = o[c];
1553
- if (!(a in os || n && n[a] || s && a in s || i && a in i)) {
1554
- var u = cs(t, a);
1550
+ var o = Qi(t);
1551
+ Jn && (o = o.concat(Jn(t)));
1552
+ for (var i = Qn(e), s = Qn(t), a = 0; a < o.length; ++a) {
1553
+ var l = o[a];
1554
+ if (!(l in Zi || n && n[l] || s && l in s || i && l in i)) {
1555
+ var u = Ji(t, l);
1555
1556
  try {
1556
- ss(e, a, u);
1557
+ Ki(e, l, u);
1557
1558
  } catch {
1558
1559
  }
1559
1560
  }
@@ -1564,30 +1565,30 @@ function uo(e, t, n) {
1564
1565
  function Ce(e) {
1565
1566
  return typeof e == "function";
1566
1567
  }
1567
- function wn(e) {
1568
+ function gn(e) {
1568
1569
  return typeof e == "object" && "styledComponentId" in e;
1569
1570
  }
1570
- function _e(e, t) {
1571
+ function pe(e, t) {
1571
1572
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1572
1573
  }
1573
- function Qt(e, t) {
1574
+ function Xt(e, t) {
1574
1575
  if (e.length === 0) return "";
1575
1576
  for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1576
1577
  return n;
1577
1578
  }
1578
- function Te(e) {
1579
+ function xe(e) {
1579
1580
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1580
1581
  }
1581
- function Jt(e, t, n) {
1582
- if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
1583
- if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Jt(e[r], t[r]);
1584
- else if (Te(t)) for (var r in t) e[r] = Jt(e[r], t[r]);
1582
+ function Kt(e, t, n) {
1583
+ if (n === void 0 && (n = !1), !n && !xe(e) && !Array.isArray(e)) return t;
1584
+ if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Kt(e[r], t[r]);
1585
+ else if (xe(t)) for (var r in t) e[r] = Kt(e[r], t[r]);
1585
1586
  return e;
1586
1587
  }
1587
- function En(e, t) {
1588
+ function yn(e, t) {
1588
1589
  Object.defineProperty(e, "toString", { value: t });
1589
1590
  }
1590
- var us = b.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1591
+ var ts = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1591
1592
 
1592
1593
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1593
1594
 
@@ -1629,18 +1630,18 @@ as for instance in your render method then you may be running into this limitati
1629
1630
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1630
1631
  Has styled-components' style tag been unmounted or altered by another script?
1631
1632
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1632
- function fs() {
1633
+ function ns() {
1633
1634
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1634
1635
  for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
1635
1636
  return r.forEach(function(s) {
1636
1637
  n = n.replace(/%[a-z]/, s);
1637
1638
  }), n;
1638
1639
  }
1639
- function Z(e) {
1640
+ function K(e) {
1640
1641
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1641
- return b.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(fs.apply(void 0, ye([us[e]], t, !1)).trim());
1642
+ return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ns.apply(void 0, ye([ts[e]], t, !1)).trim());
1642
1643
  }
1643
- var ds = function() {
1644
+ var rs = function() {
1644
1645
  function e(t) {
1645
1646
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1646
1647
  }
@@ -1649,11 +1650,11 @@ var ds = function() {
1649
1650
  return n;
1650
1651
  }, e.prototype.insertRules = function(t, n) {
1651
1652
  if (t >= this.groupSizes.length) {
1652
- for (var r = this.groupSizes, o = r.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw Z(16, "".concat(t));
1653
+ for (var r = this.groupSizes, o = r.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw K(16, "".concat(t));
1653
1654
  this.groupSizes = new Uint32Array(i), this.groupSizes.set(r), this.length = i;
1654
1655
  for (var s = o; s < i; s++) this.groupSizes[s] = 0;
1655
1656
  }
1656
- for (var c = this.indexOfGroup(t + 1), a = (s = 0, n.length); s < a; s++) this.tag.insertRule(c, n[s]) && (this.groupSizes[t]++, c++);
1657
+ for (var a = this.indexOfGroup(t + 1), l = (s = 0, n.length); s < l; s++) this.tag.insertRule(a, n[s]) && (this.groupSizes[t]++, a++);
1657
1658
  }, e.prototype.clearGroup = function(t) {
1658
1659
  if (t < this.length) {
1659
1660
  var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
@@ -1663,56 +1664,56 @@ var ds = function() {
1663
1664
  }, e.prototype.getGroup = function(t) {
1664
1665
  var n = "";
1665
1666
  if (t >= this.length || this.groupSizes[t] === 0) return n;
1666
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, s = o; s < i; s++) n += "".concat(this.tag.getRule(s)).concat(Sn);
1667
+ for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, s = o; s < i; s++) n += "".concat(this.tag.getRule(s)).concat(mn);
1667
1668
  return n;
1668
1669
  }, e;
1669
- }(), hs = 1 << 30, dt = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new Map(), ht = 1, it = function(e) {
1670
- if (dt.has(e)) return dt.get(e);
1671
- for (; vt.has(ht); ) ht++;
1672
- var t = ht++;
1673
- if (b.NODE_ENV !== "production" && ((0 | t) < 0 || t > hs)) throw Z(16, "".concat(t));
1674
- return dt.set(e, t), vt.set(t, e), t;
1675
- }, _s = function(e, t) {
1676
- ht = t + 1, dt.set(e, t), vt.set(t, e);
1677
- }, ps = "style[".concat(ve, "][").concat(no, '="').concat(Ot, '"]'), ms = new RegExp("^".concat(ve, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), gs = function(e, t, n) {
1670
+ }(), os = 1 << 30, ft = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
1671
+ if (ft.has(e)) return ft.get(e);
1672
+ for (; yt.has(dt); ) dt++;
1673
+ var t = dt++;
1674
+ if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > os)) throw K(16, "".concat(t));
1675
+ return ft.set(e, t), yt.set(t, e), t;
1676
+ }, is = function(e, t) {
1677
+ dt = t + 1, ft.set(e, t), yt.set(t, e);
1678
+ }, ss = "style[".concat(ve, "][").concat(Xr, '="').concat($t, '"]'), as = new RegExp("^".concat(ve, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), cs = function(e, t, n) {
1678
1679
  for (var r, o = n.split(","), i = 0, s = o.length; i < s; i++) (r = o[i]) && e.registerName(t, r);
1679
- }, ys = function(e, t) {
1680
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Sn), o = [], i = 0, s = r.length; i < s; i++) {
1681
- var c = r[i].trim();
1682
- if (c) {
1683
- var a = c.match(ms);
1684
- if (a) {
1685
- var u = 0 | parseInt(a[1], 10), d = a[2];
1686
- u !== 0 && (_s(d, u), gs(e, d, a[3]), e.getTag().insertRules(u, o)), o.length = 0;
1687
- } else o.push(c);
1680
+ }, ls = function(e, t) {
1681
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(mn), o = [], i = 0, s = r.length; i < s; i++) {
1682
+ var a = r[i].trim();
1683
+ if (a) {
1684
+ var l = a.match(as);
1685
+ if (l) {
1686
+ var u = 0 | parseInt(l[1], 10), d = l[2];
1687
+ u !== 0 && (is(d, u), cs(e, d, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
1688
+ } else o.push(a);
1688
1689
  }
1689
1690
  }
1690
- }, sr = function(e) {
1691
- for (var t = document.querySelectorAll(ps), n = 0, r = t.length; n < r; n++) {
1691
+ }, tr = function(e) {
1692
+ for (var t = document.querySelectorAll(ss), n = 0, r = t.length; n < r; n++) {
1692
1693
  var o = t[n];
1693
- o && o.getAttribute(ve) !== to && (ys(e, o), o.parentNode && o.parentNode.removeChild(o));
1694
+ o && o.getAttribute(ve) !== Zr && (ls(e, o), o.parentNode && o.parentNode.removeChild(o));
1694
1695
  }
1695
1696
  };
1696
- function vs() {
1697
+ function us() {
1697
1698
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1698
1699
  }
1699
- var fo = function(e) {
1700
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
1701
- var a = Array.from(c.querySelectorAll("style[".concat(ve, "]")));
1702
- return a[a.length - 1];
1700
+ var io = function(e) {
1701
+ var t = document.head, n = e || t, r = document.createElement("style"), o = function(a) {
1702
+ var l = Array.from(a.querySelectorAll("style[".concat(ve, "]")));
1703
+ return l[l.length - 1];
1703
1704
  }(n), i = o !== void 0 ? o.nextSibling : null;
1704
- r.setAttribute(ve, to), r.setAttribute(no, Ot);
1705
- var s = vs();
1705
+ r.setAttribute(ve, Zr), r.setAttribute(Xr, $t);
1706
+ var s = us();
1706
1707
  return s && r.setAttribute("nonce", s), n.insertBefore(r, i), r;
1707
- }, Cs = function() {
1708
+ }, fs = function() {
1708
1709
  function e(t) {
1709
- this.element = fo(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1710
+ this.element = io(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1710
1711
  if (n.sheet) return n.sheet;
1711
1712
  for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
1712
1713
  var s = r[o];
1713
1714
  if (s.ownerNode === n) return s;
1714
1715
  }
1715
- throw Z(17);
1716
+ throw K(17);
1716
1717
  }(this.element), this.length = 0;
1717
1718
  }
1718
1719
  return e.prototype.insertRule = function(t, n) {
@@ -1727,9 +1728,9 @@ var fo = function(e) {
1727
1728
  var n = this.sheet.cssRules[t];
1728
1729
  return n && n.cssText ? n.cssText : "";
1729
1730
  }, e;
1730
- }(), Ss = function() {
1731
+ }(), ds = function() {
1731
1732
  function e(t) {
1732
- this.element = fo(t), this.nodes = this.element.childNodes, this.length = 0;
1733
+ this.element = io(t), this.nodes = this.element.childNodes, this.length = 0;
1733
1734
  }
1734
1735
  return e.prototype.insertRule = function(t, n) {
1735
1736
  if (t <= this.length && t >= 0) {
@@ -1742,7 +1743,7 @@ var fo = function(e) {
1742
1743
  }, e.prototype.getRule = function(t) {
1743
1744
  return t < this.length ? this.nodes[t].textContent : "";
1744
1745
  }, e;
1745
- }(), ws = function() {
1746
+ }(), _s = function() {
1746
1747
  function e(t) {
1747
1748
  this.rules = [], this.length = 0;
1748
1749
  }
@@ -1753,32 +1754,32 @@ var fo = function(e) {
1753
1754
  }, e.prototype.getRule = function(t) {
1754
1755
  return t < this.length ? this.rules[t] : "";
1755
1756
  }, e;
1756
- }(), ar = yt, Es = { isServer: !yt, useCSSOMInjection: !Xi }, ho = function() {
1757
+ }(), nr = gt, hs = { isServer: !gt, useCSSOMInjection: !Bi }, so = function() {
1757
1758
  function e(t, n, r) {
1758
- t === void 0 && (t = Ie), n === void 0 && (n = {});
1759
+ t === void 0 && (t = Te), n === void 0 && (n = {});
1759
1760
  var o = this;
1760
- this.options = P(P({}, Es), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && yt && ar && (ar = !1, sr(this)), En(this, function() {
1761
+ this.options = P(P({}, hs), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && gt && nr && (nr = !1, tr(this)), yn(this, function() {
1761
1762
  return function(i) {
1762
- for (var s = i.getTag(), c = s.length, a = "", u = function(l) {
1763
- var _ = function(m) {
1764
- return vt.get(m);
1765
- }(l);
1766
- if (_ === void 0) return "continue";
1767
- var h = i.names.get(_), g = s.getGroup(l);
1768
- if (h === void 0 || !h.size || g.length === 0) return "continue";
1769
- var w = "".concat(ve, ".g").concat(l, '[id="').concat(_, '"]'), $ = "";
1770
- h !== void 0 && h.forEach(function(m) {
1771
- m.length > 0 && ($ += "".concat(m, ","));
1772
- }), a += "".concat(g).concat(w, '{content:"').concat($, '"}').concat(Sn);
1773
- }, d = 0; d < c; d++) u(d);
1774
- return a;
1763
+ for (var s = i.getTag(), a = s.length, l = "", u = function(c) {
1764
+ var h = function(m) {
1765
+ return yt.get(m);
1766
+ }(c);
1767
+ if (h === void 0) return "continue";
1768
+ var _ = i.names.get(h), v = s.getGroup(c);
1769
+ if (_ === void 0 || !_.size || v.length === 0) return "continue";
1770
+ var g = "".concat(ve, ".g").concat(c, '[id="').concat(h, '"]'), y = "";
1771
+ _ !== void 0 && _.forEach(function(m) {
1772
+ m.length > 0 && (y += "".concat(m, ","));
1773
+ }), l += "".concat(v).concat(g, '{content:"').concat(y, '"}').concat(mn);
1774
+ }, d = 0; d < a; d++) u(d);
1775
+ return l;
1775
1776
  }(o);
1776
1777
  });
1777
1778
  }
1778
1779
  return e.registerId = function(t) {
1779
- return it(t);
1780
+ return ot(t);
1780
1781
  }, e.prototype.rehydrate = function() {
1781
- !this.server && yt && sr(this);
1782
+ !this.server && gt && tr(this);
1782
1783
  }, e.prototype.reconstructWithOptions = function(t, n) {
1783
1784
  return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
1784
1785
  }, e.prototype.allocateGSInstance = function(t) {
@@ -1786,240 +1787,240 @@ var fo = function(e) {
1786
1787
  }, e.prototype.getTag = function() {
1787
1788
  return this.tag || (this.tag = (t = function(n) {
1788
1789
  var r = n.useCSSOMInjection, o = n.target;
1789
- return n.isServer ? new ws(o) : r ? new Cs(o) : new Ss(o);
1790
- }(this.options), new ds(t)));
1790
+ return n.isServer ? new _s(o) : r ? new fs(o) : new ds(o);
1791
+ }(this.options), new rs(t)));
1791
1792
  var t;
1792
1793
  }, e.prototype.hasNameForId = function(t, n) {
1793
1794
  return this.names.has(t) && this.names.get(t).has(n);
1794
1795
  }, e.prototype.registerName = function(t, n) {
1795
- if (it(t), this.names.has(t)) this.names.get(t).add(n);
1796
+ if (ot(t), this.names.has(t)) this.names.get(t).add(n);
1796
1797
  else {
1797
1798
  var r = /* @__PURE__ */ new Set();
1798
1799
  r.add(n), this.names.set(t, r);
1799
1800
  }
1800
1801
  }, e.prototype.insertRules = function(t, n, r) {
1801
- this.registerName(t, n), this.getTag().insertRules(it(t), r);
1802
+ this.registerName(t, n), this.getTag().insertRules(ot(t), r);
1802
1803
  }, e.prototype.clearNames = function(t) {
1803
1804
  this.names.has(t) && this.names.get(t).clear();
1804
1805
  }, e.prototype.clearRules = function(t) {
1805
- this.getTag().clearGroup(it(t)), this.clearNames(t);
1806
+ this.getTag().clearGroup(ot(t)), this.clearNames(t);
1806
1807
  }, e.prototype.clearTag = function() {
1807
1808
  this.tag = void 0;
1808
1809
  }, e;
1809
- }(), bs = /&/g, $s = /^\s*\/\/.*$/gm;
1810
- function _o(e, t) {
1810
+ }(), ps = /&/g, ms = /^\s*\/\/.*$/gm;
1811
+ function ao(e, t) {
1811
1812
  return e.map(function(n) {
1812
1813
  return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1813
1814
  return "".concat(t, " ").concat(r);
1814
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = _o(n.children, t)), n;
1815
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = ao(n.children, t)), n;
1815
1816
  });
1816
1817
  }
1817
- function po(e) {
1818
- var t, n, r, o = e === void 0 ? Ie : e, i = o.options, s = i === void 0 ? Ie : i, c = o.plugins, a = c === void 0 ? Nt : c, u = function(_, h, g) {
1819
- return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
1820
- }, d = a.slice();
1821
- d.push(function(_) {
1822
- _.type === Et && _.value.includes("&") && (_.props[0] = _.props[0].replace(bs, n).replace(r, u));
1823
- }), s.prefix && d.push(qi), d.push(Gi);
1824
- var l = function(_, h, g, w) {
1825
- h === void 0 && (h = ""), g === void 0 && (g = ""), w === void 0 && (w = "&"), t = w, n = h, r = new RegExp("\\".concat(n, "\\b"), "g");
1826
- var $ = _.replace($s, ""), m = zi(g || h ? "".concat(g, " ").concat(h, " { ").concat($, " }") : $);
1827
- s.namespace && (m = _o(m, s.namespace));
1818
+ function co(e) {
1819
+ var t, n, r, o = e === void 0 ? Te : e, i = o.options, s = i === void 0 ? Te : i, a = o.plugins, l = a === void 0 ? kt : a, u = function(h, _, v) {
1820
+ return v.startsWith(n) && v.endsWith(n) && v.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
1821
+ }, d = l.slice();
1822
+ d.push(function(h) {
1823
+ h.type === St && h.value.includes("&") && (h.props[0] = h.props[0].replace(ps, n).replace(r, u));
1824
+ }), s.prefix && d.push(Ui), d.push(Di);
1825
+ var c = function(h, _, v, g) {
1826
+ _ === void 0 && (_ = ""), v === void 0 && (v = ""), g === void 0 && (g = "&"), t = g, n = _, r = new RegExp("\\".concat(n, "\\b"), "g");
1827
+ var y = h.replace(ms, ""), m = Pi(v || _ ? "".concat(v, " ").concat(_, " { ").concat(y, " }") : y);
1828
+ s.namespace && (m = ao(m, s.namespace));
1828
1829
  var p = [];
1829
- return gt(m, Vi(d.concat(Yi(function(k) {
1830
+ return mt(m, Mi(d.concat(Hi(function(k) {
1830
1831
  return p.push(k);
1831
1832
  })))), p;
1832
1833
  };
1833
- return l.hash = a.length ? a.reduce(function(_, h) {
1834
- return h.name || Z(15), he(_, h.name);
1835
- }, ro).toString() : "", l;
1836
- }
1837
- var ks = new ho(), en = po(), bn = oe.createContext({ shouldForwardProp: void 0, styleSheet: ks, stylis: en });
1838
- bn.Consumer;
1839
- var Os = oe.createContext(void 0);
1840
- function tn() {
1841
- return Ke(bn);
1842
- }
1843
- function Ns(e) {
1844
- var t = M(e.stylisPlugins), n = t[0], r = t[1], o = tn().styleSheet, i = re(function() {
1845
- var a = o;
1846
- return e.sheet ? a = e.sheet : e.target && (a = a.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (a = a.reconstructWithOptions({ useCSSOMInjection: !1 })), a;
1834
+ return c.hash = l.length ? l.reduce(function(h, _) {
1835
+ return _.name || K(15), he(h, _.name);
1836
+ }, Kr).toString() : "", c;
1837
+ }
1838
+ var gs = new so(), Qt = co(), vn = oe.createContext({ shouldForwardProp: void 0, styleSheet: gs, stylis: Qt });
1839
+ vn.Consumer;
1840
+ var ys = oe.createContext(void 0);
1841
+ function Jt() {
1842
+ return Ke(vn);
1843
+ }
1844
+ function vs(e) {
1845
+ var t = L(e.stylisPlugins), n = t[0], r = t[1], o = Jt().styleSheet, i = re(function() {
1846
+ var l = o;
1847
+ return e.sheet ? l = e.sheet : e.target && (l = l.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l;
1847
1848
  }, [e.disableCSSOMInjection, e.sheet, e.target, o]), s = re(function() {
1848
- return po({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1849
+ return co({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1849
1850
  }, [e.enableVendorPrefixes, e.namespace, n]);
1850
- X(function() {
1851
- Ti(n, e.stylisPlugins) || r(e.stylisPlugins);
1851
+ Q(function() {
1852
+ Si(n, e.stylisPlugins) || r(e.stylisPlugins);
1852
1853
  }, [e.stylisPlugins]);
1853
- var c = re(function() {
1854
+ var a = re(function() {
1854
1855
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: s };
1855
1856
  }, [e.shouldForwardProp, i, s]);
1856
- return oe.createElement(bn.Provider, { value: c }, oe.createElement(Os.Provider, { value: s }, e.children));
1857
+ return oe.createElement(vn.Provider, { value: a }, oe.createElement(ys.Provider, { value: s }, e.children));
1857
1858
  }
1858
- var nn = function() {
1859
+ var en = function() {
1859
1860
  function e(t, n) {
1860
1861
  var r = this;
1861
1862
  this.inject = function(o, i) {
1862
- i === void 0 && (i = en);
1863
+ i === void 0 && (i = Qt);
1863
1864
  var s = r.name + i.hash;
1864
1865
  o.hasNameForId(r.id, s) || o.insertRules(r.id, s, i(r.rules, s, "@keyframes"));
1865
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, En(this, function() {
1866
- throw Z(12, String(r.name));
1866
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, yn(this, function() {
1867
+ throw K(12, String(r.name));
1867
1868
  });
1868
1869
  }
1869
1870
  return e.prototype.getName = function(t) {
1870
- return t === void 0 && (t = en), this.name + t.hash;
1871
+ return t === void 0 && (t = Qt), this.name + t.hash;
1871
1872
  }, e;
1872
- }(), Is = function(e) {
1873
+ }(), Cs = function(e) {
1873
1874
  return e >= "A" && e <= "Z";
1874
1875
  };
1875
- function cr(e) {
1876
+ function rr(e) {
1876
1877
  for (var t = "", n = 0; n < e.length; n++) {
1877
1878
  var r = e[n];
1878
1879
  if (n === 1 && r === "-" && e[0] === "-") return e;
1879
- Is(r) ? t += "-" + r.toLowerCase() : t += r;
1880
+ Cs(r) ? t += "-" + r.toLowerCase() : t += r;
1880
1881
  }
1881
1882
  return t.startsWith("ms-") ? "-" + t : t;
1882
1883
  }
1883
- var mo = function(e) {
1884
+ var lo = function(e) {
1884
1885
  return e == null || e === !1 || e === "";
1885
- }, go = function(e) {
1886
+ }, uo = function(e) {
1886
1887
  var t, n, r = [];
1887
1888
  for (var o in e) {
1888
1889
  var i = e[o];
1889
- e.hasOwnProperty(o) && !mo(i) && (Array.isArray(i) && i.isCss || Ce(i) ? r.push("".concat(cr(o), ":"), i, ";") : Te(i) ? r.push.apply(r, ye(ye(["".concat(o, " {")], go(i), !1), ["}"], !1)) : r.push("".concat(cr(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Zi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1890
+ e.hasOwnProperty(o) && !lo(i) && (Array.isArray(i) && i.isCss || Ce(i) ? r.push("".concat(rr(o), ":"), i, ";") : xe(i) ? r.push.apply(r, ye(ye(["".concat(o, " {")], uo(i), !1), ["}"], !1)) : r.push("".concat(rr(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Fi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1890
1891
  }
1891
1892
  return r;
1892
1893
  };
1893
- function me(e, t, n, r) {
1894
- if (mo(e)) return [];
1895
- if (wn(e)) return [".".concat(e.styledComponentId)];
1894
+ function ge(e, t, n, r) {
1895
+ if (lo(e)) return [];
1896
+ if (gn(e)) return [".".concat(e.styledComponentId)];
1896
1897
  if (Ce(e)) {
1897
1898
  if (!Ce(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1898
1899
  var o = e(t);
1899
- return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof nn || Te(o) || o === null || console.error("".concat(so(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), me(o, t, n, r);
1900
+ return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof en || xe(o) || o === null || console.error("".concat(eo(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ge(o, t, n, r);
1900
1901
  }
1901
1902
  var i;
1902
- return e instanceof nn ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? go(e) : Array.isArray(e) ? Array.prototype.concat.apply(Nt, e.map(function(s) {
1903
- return me(s, t, n, r);
1903
+ return e instanceof en ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : xe(e) ? uo(e) : Array.isArray(e) ? Array.prototype.concat.apply(kt, e.map(function(s) {
1904
+ return ge(s, t, n, r);
1904
1905
  })) : [e.toString()];
1905
1906
  }
1906
- function Ts(e) {
1907
+ function Ss(e) {
1907
1908
  for (var t = 0; t < e.length; t += 1) {
1908
1909
  var n = e[t];
1909
- if (Ce(n) && !wn(n)) return !1;
1910
+ if (Ce(n) && !gn(n)) return !1;
1910
1911
  }
1911
1912
  return !0;
1912
1913
  }
1913
- var xs = oo(Ot), As = function() {
1914
+ var Es = Qr($t), ws = function() {
1914
1915
  function e(t, n, r) {
1915
- this.rules = t, this.staticRulesId = "", this.isStatic = b.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ts(t), this.componentId = n, this.baseHash = he(xs, n), this.baseStyle = r, ho.registerId(n);
1916
+ this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ss(t), this.componentId = n, this.baseHash = he(Es, n), this.baseStyle = r, so.registerId(n);
1916
1917
  }
1917
1918
  return e.prototype.generateAndInjectStyles = function(t, n, r) {
1918
1919
  var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1919
- if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = _e(o, this.staticRulesId);
1920
+ if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = pe(o, this.staticRulesId);
1920
1921
  else {
1921
- var i = Qt(me(this.rules, t, n, r)), s = Kt(he(this.baseHash, i) >>> 0);
1922
+ var i = Xt(ge(this.rules, t, n, r)), s = Zt(he(this.baseHash, i) >>> 0);
1922
1923
  if (!n.hasNameForId(this.componentId, s)) {
1923
- var c = r(i, ".".concat(s), void 0, this.componentId);
1924
- n.insertRules(this.componentId, s, c);
1924
+ var a = r(i, ".".concat(s), void 0, this.componentId);
1925
+ n.insertRules(this.componentId, s, a);
1925
1926
  }
1926
- o = _e(o, s), this.staticRulesId = s;
1927
+ o = pe(o, s), this.staticRulesId = s;
1927
1928
  }
1928
1929
  else {
1929
- for (var a = he(this.baseHash, r.hash), u = "", d = 0; d < this.rules.length; d++) {
1930
- var l = this.rules[d];
1931
- if (typeof l == "string") u += l, b.NODE_ENV !== "production" && (a = he(a, l));
1932
- else if (l) {
1933
- var _ = Qt(me(l, t, n, r));
1934
- a = he(a, _ + d), u += _;
1930
+ for (var l = he(this.baseHash, r.hash), u = "", d = 0; d < this.rules.length; d++) {
1931
+ var c = this.rules[d];
1932
+ if (typeof c == "string") u += c, $.NODE_ENV !== "production" && (l = he(l, c));
1933
+ else if (c) {
1934
+ var h = Xt(ge(c, t, n, r));
1935
+ l = he(l, h + d), u += h;
1935
1936
  }
1936
1937
  }
1937
1938
  if (u) {
1938
- var h = Kt(a >>> 0);
1939
- n.hasNameForId(this.componentId, h) || n.insertRules(this.componentId, h, r(u, ".".concat(h), void 0, this.componentId)), o = _e(o, h);
1939
+ var _ = Zt(l >>> 0);
1940
+ n.hasNameForId(this.componentId, _) || n.insertRules(this.componentId, _, r(u, ".".concat(_), void 0, this.componentId)), o = pe(o, _);
1940
1941
  }
1941
1942
  }
1942
1943
  return o;
1943
1944
  }, e;
1944
- }(), Ye = oe.createContext(void 0);
1945
- Ye.Consumer;
1946
- function Rs() {
1947
- var e = Ke(Ye);
1948
- if (!e) throw Z(18);
1945
+ }(), qe = oe.createContext(void 0);
1946
+ qe.Consumer;
1947
+ function bs() {
1948
+ var e = Ke(qe);
1949
+ if (!e) throw K(18);
1949
1950
  return e;
1950
1951
  }
1951
- function Ls(e) {
1952
- var t = oe.useContext(Ye), n = re(function() {
1952
+ function $s(e) {
1953
+ var t = oe.useContext(qe), n = re(function() {
1953
1954
  return function(r, o) {
1954
- if (!r) throw Z(14);
1955
+ if (!r) throw K(14);
1955
1956
  if (Ce(r)) {
1956
1957
  var i = r(o);
1957
- if (b.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw Z(7);
1958
+ if ($.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw K(7);
1958
1959
  return i;
1959
1960
  }
1960
- if (Array.isArray(r) || typeof r != "object") throw Z(8);
1961
+ if (Array.isArray(r) || typeof r != "object") throw K(8);
1961
1962
  return o ? P(P({}, o), r) : r;
1962
1963
  }(e.theme, t);
1963
1964
  }, [e.theme, t]);
1964
- return e.children ? oe.createElement(Ye.Provider, { value: n }, e.children) : null;
1965
- }
1966
- var Ut = {}, lr = /* @__PURE__ */ new Set();
1967
- function Ps(e, t, n) {
1968
- var r = wn(e), o = e, i = !Ht(e), s = t.attrs, c = s === void 0 ? Nt : s, a = t.componentId, u = a === void 0 ? function(E, N) {
1969
- var S = typeof E != "string" ? "sc" : tr(E);
1970
- Ut[S] = (Ut[S] || 0) + 1;
1971
- var y = "".concat(S, "-").concat(io(Ot + S + Ut[S]));
1972
- return N ? "".concat(N, "-").concat(y) : y;
1973
- }(t.displayName, t.parentComponentId) : a, d = t.displayName, l = d === void 0 ? function(E) {
1974
- return Ht(E) ? "styled.".concat(E) : "Styled(".concat(so(E), ")");
1975
- }(e) : d, _ = t.displayName && t.componentId ? "".concat(tr(t.displayName), "-").concat(t.componentId) : t.componentId || u, h = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
1965
+ return e.children ? oe.createElement(qe.Provider, { value: n }, e.children) : null;
1966
+ }
1967
+ var Mt = {}, or = /* @__PURE__ */ new Set();
1968
+ function ks(e, t, n) {
1969
+ var r = gn(e), o = e, i = !Dt(e), s = t.attrs, a = s === void 0 ? kt : s, l = t.componentId, u = l === void 0 ? function(b, I) {
1970
+ var w = typeof b != "string" ? "sc" : Xn(b);
1971
+ Mt[w] = (Mt[w] || 0) + 1;
1972
+ var C = "".concat(w, "-").concat(Jr($t + w + Mt[w]));
1973
+ return I ? "".concat(I, "-").concat(C) : C;
1974
+ }(t.displayName, t.parentComponentId) : l, d = t.displayName, c = d === void 0 ? function(b) {
1975
+ return Dt(b) ? "styled.".concat(b) : "Styled(".concat(eo(b), ")");
1976
+ }(e) : d, h = t.displayName && t.componentId ? "".concat(Xn(t.displayName), "-").concat(t.componentId) : t.componentId || u, _ = r && o.attrs ? o.attrs.concat(a).filter(Boolean) : a, v = t.shouldForwardProp;
1976
1977
  if (r && o.shouldForwardProp) {
1977
- var w = o.shouldForwardProp;
1978
+ var g = o.shouldForwardProp;
1978
1979
  if (t.shouldForwardProp) {
1979
- var $ = t.shouldForwardProp;
1980
- g = function(E, N) {
1981
- return w(E, N) && $(E, N);
1980
+ var y = t.shouldForwardProp;
1981
+ v = function(b, I) {
1982
+ return g(b, I) && y(b, I);
1982
1983
  };
1983
- } else g = w;
1984
- }
1985
- var m = new As(n, _, r ? o.componentStyle : void 0);
1986
- function p(E, N) {
1987
- return function(S, y, H) {
1988
- var F = S.attrs, Le = S.componentStyle, B = S.defaultProps, ue = S.foldedComponentIds, kn = S.styledComponentId, ko = S.target, Oo = oe.useContext(Ye), No = tn(), It = S.shouldForwardProp || No.shouldForwardProp;
1989
- b.NODE_ENV !== "production" && mt(kn);
1990
- var On = Qi(y, Oo, B) || Ie, K = function(Qe, Me, Je) {
1991
- for (var we, fe = P(P({}, Me), { className: void 0, theme: Je }), At = 0; At < Qe.length; At += 1) {
1992
- var et = Ce(we = Qe[At]) ? we(fe) : we;
1993
- for (var ie in et) fe[ie] = ie === "className" ? _e(fe[ie], et[ie]) : ie === "style" ? P(P({}, fe[ie]), et[ie]) : et[ie];
1984
+ } else v = g;
1985
+ }
1986
+ var m = new ws(n, h, r ? o.componentStyle : void 0);
1987
+ function p(b, I) {
1988
+ return function(w, C, H) {
1989
+ var B = w.attrs, Le = w.componentStyle, W = w.defaultProps, fe = w.foldedComponentIds, Sn = w.styledComponentId, Co = w.target, So = oe.useContext(qe), Eo = Jt(), Nt = w.shouldForwardProp || Eo.shouldForwardProp;
1990
+ $.NODE_ENV !== "production" && pt(Sn);
1991
+ var En = ji(C, So, W) || Te, J = function(Qe, He, Je) {
1992
+ for (var Ee, de = P(P({}, He), { className: void 0, theme: Je }), Tt = 0; Tt < Qe.length; Tt += 1) {
1993
+ var et = Ce(Ee = Qe[Tt]) ? Ee(de) : Ee;
1994
+ for (var ie in et) de[ie] = ie === "className" ? pe(de[ie], et[ie]) : ie === "style" ? P(P({}, de[ie]), et[ie]) : et[ie];
1994
1995
  }
1995
- return Me.className && (fe.className = _e(fe.className, Me.className)), fe;
1996
- }(F, y, On), Pe = K.as || ko, De = {};
1997
- for (var W in K) K[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && K.theme === On || (W === "forwardedAs" ? De.as = K.forwardedAs : It && !It(W, Pe) || (De[W] = K[W], It || b.NODE_ENV !== "development" || Zo(W) || lr.has(W) || !Xt.has(Pe) || (lr.add(W), console.warn('styled-components: it looks like an unknown prop "'.concat(W, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1998
- var Tt = function(Qe, Me) {
1999
- var Je = tn(), we = Qe.generateAndInjectStyles(Me, Je.styleSheet, Je.stylis);
2000
- return b.NODE_ENV !== "production" && mt(we), we;
2001
- }(Le, K);
2002
- b.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(Tt);
2003
- var xt = _e(ue, kn);
2004
- return Tt && (xt += " " + Tt), K.className && (xt += " " + K.className), De[Ht(Pe) && !Xt.has(Pe) ? "class" : "className"] = xt, H && (De.ref = H), D(Pe, De);
2005
- }(k, E, N);
2006
- }
2007
- p.displayName = l;
1996
+ return He.className && (de.className = pe(de.className, He.className)), de;
1997
+ }(B, C, En), De = J.as || Co, Me = {};
1998
+ for (var j in J) J[j] === void 0 || j[0] === "$" || j === "as" || j === "theme" && J.theme === En || (j === "forwardedAs" ? Me.as = J.forwardedAs : Nt && !Nt(j, De) || (Me[j] = J[j], Nt || $.NODE_ENV !== "development" || Fo(j) || or.has(j) || !qt.has(De) || (or.add(j), console.warn('styled-components: it looks like an unknown prop "'.concat(j, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1999
+ var It = function(Qe, He) {
2000
+ var Je = Jt(), Ee = Qe.generateAndInjectStyles(He, Je.styleSheet, Je.stylis);
2001
+ return $.NODE_ENV !== "production" && pt(Ee), Ee;
2002
+ }(Le, J);
2003
+ $.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(It);
2004
+ var Ot = pe(fe, Sn);
2005
+ return It && (Ot += " " + It), J.className && (Ot += " " + J.className), Me[Dt(De) && !qt.has(De) ? "class" : "className"] = Ot, H && (Me.ref = H), D(De, Me);
2006
+ }(k, b, I);
2007
+ }
2008
+ p.displayName = c;
2008
2009
  var k = oe.forwardRef(p);
2009
- return k.attrs = h, k.componentStyle = m, k.displayName = l, k.shouldForwardProp = g, k.foldedComponentIds = r ? _e(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = _, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
2010
+ return k.attrs = _, k.componentStyle = m, k.displayName = c, k.shouldForwardProp = v, k.foldedComponentIds = r ? pe(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = h, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
2010
2011
  return this._foldedDefaultProps;
2011
- }, set: function(E) {
2012
- this._foldedDefaultProps = r ? function(N) {
2013
- for (var S = [], y = 1; y < arguments.length; y++) S[y - 1] = arguments[y];
2014
- for (var H = 0, F = S; H < F.length; H++) Jt(N, F[H], !0);
2015
- return N;
2016
- }({}, o.defaultProps, E) : E;
2017
- } }), b.NODE_ENV !== "production" && (Ki(l, _), k.warnTooManyClasses = /* @__PURE__ */ function(E, N) {
2018
- var S = {}, y = !1;
2012
+ }, set: function(b) {
2013
+ this._foldedDefaultProps = r ? function(I) {
2014
+ for (var w = [], C = 1; C < arguments.length; C++) w[C - 1] = arguments[C];
2015
+ for (var H = 0, B = w; H < B.length; H++) Kt(I, B[H], !0);
2016
+ return I;
2017
+ }({}, o.defaultProps, b) : b;
2018
+ } }), $.NODE_ENV !== "production" && (Wi(c, h), k.warnTooManyClasses = /* @__PURE__ */ function(b, I) {
2019
+ var w = {}, C = !1;
2019
2020
  return function(H) {
2020
- if (!y && (S[H] = !0, Object.keys(S).length >= 200)) {
2021
- var F = N ? ' with the id of "'.concat(N, '"') : "";
2022
- console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(F, `.
2021
+ if (!C && (w[H] = !0, Object.keys(w).length >= 200)) {
2022
+ var B = I ? ' with the id of "'.concat(I, '"') : "";
2023
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(B, `.
2023
2024
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
2024
2025
  Example:
2025
2026
  const Component = styled.div.attrs(props => ({
@@ -2028,78 +2029,66 @@ Example:
2028
2029
  },
2029
2030
  }))\`width: 100%;\`
2030
2031
 
2031
- <Component />`), y = !0, S = {};
2032
+ <Component />`), C = !0, w = {};
2032
2033
  }
2033
2034
  };
2034
- }(l, _)), En(k, function() {
2035
+ }(c, h)), yn(k, function() {
2035
2036
  return ".".concat(k.styledComponentId);
2036
- }), i && uo(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2037
+ }), i && oo(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2037
2038
  }
2038
- function ur(e, t) {
2039
+ function ir(e, t) {
2039
2040
  for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2040
2041
  return n;
2041
2042
  }
2042
- var fr = function(e) {
2043
+ var sr = function(e) {
2043
2044
  return Object.assign(e, { isCss: !0 });
2044
2045
  };
2045
- function $n(e) {
2046
+ function Cn(e) {
2046
2047
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2047
- if (Ce(e) || Te(e)) return fr(me(ur(Nt, ye([e], t, !0))));
2048
+ if (Ce(e) || xe(e)) return sr(ge(ir(kt, ye([e], t, !0))));
2048
2049
  var r = e;
2049
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? me(r) : fr(me(ur(r, t)));
2050
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? ge(r) : sr(ge(ir(r, t)));
2050
2051
  }
2051
- function rn(e, t, n) {
2052
- if (n === void 0 && (n = Ie), !t) throw Z(1, t);
2052
+ function tn(e, t, n) {
2053
+ if (n === void 0 && (n = Te), !t) throw K(1, t);
2053
2054
  var r = function(o) {
2054
2055
  for (var i = [], s = 1; s < arguments.length; s++) i[s - 1] = arguments[s];
2055
- return e(t, n, $n.apply(void 0, ye([o], i, !1)));
2056
+ return e(t, n, Cn.apply(void 0, ye([o], i, !1)));
2056
2057
  };
2057
2058
  return r.attrs = function(o) {
2058
- return rn(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2059
+ return tn(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2059
2060
  }, r.withConfig = function(o) {
2060
- return rn(e, t, P(P({}, n), o));
2061
+ return tn(e, t, P(P({}, n), o));
2061
2062
  }, r;
2062
2063
  }
2063
- var yo = function(e) {
2064
- return rn(Ps, e);
2065
- }, U = yo;
2066
- Xt.forEach(function(e) {
2067
- U[e] = yo(e);
2064
+ var fo = function(e) {
2065
+ return tn(ks, e);
2066
+ }, F = fo;
2067
+ qt.forEach(function(e) {
2068
+ F[e] = fo(e);
2068
2069
  });
2069
- function le(e) {
2070
+ function ue(e) {
2070
2071
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2071
- b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
2072
- var r = Qt($n.apply(void 0, ye([e], t, !1))), o = io(r);
2073
- return new nn(o, r);
2072
+ $.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
2073
+ var r = Xt(Cn.apply(void 0, ye([e], t, !1))), o = Jr(r);
2074
+ return new en(o, r);
2074
2075
  }
2075
- b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2076
+ $.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2076
2077
  Perhaps you're looking to import 'styled-components/native'?
2077
2078
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2078
- var st = "__sc-".concat(ve, "__");
2079
- b.NODE_ENV !== "production" && b.NODE_ENV !== "test" && typeof window < "u" && (window[st] || (window[st] = 0), window[st] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2079
+ var it = "__sc-".concat(ve, "__");
2080
+ $.NODE_ENV !== "production" && $.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2080
2081
 
2081
- See https://s-c.sh/2BAXzed for more info.`), window[st] += 1);
2082
- const Q = {
2082
+ See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2083
+ const be = {
2083
2084
  CIRCLE_SOLID: "circle-solid",
2084
- /**
2085
- * @deprecated This placeholder will be removed in future release.
2086
- */
2087
- ELLIPSE_SOLID: "ellipse-solid",
2088
- /**
2089
- * @deprecated This placeholder will be removed in future release.
2090
- */
2091
- MAN_SOLID: "man-solid",
2092
- /**
2093
- * @deprecated This placeholder will be removed in future release.
2094
- */
2095
- WOMAN_SOLID: "woman-solid",
2096
2085
  SQUARE_ROUNDED_DASH: "square-rounded-dash",
2097
2086
  SQUARE_ROUNDED_SOLID: "square-rounded-solid",
2098
2087
  SQUARE_DASH: "square-dash",
2099
2088
  SQUARE_SOLID: "square-solid"
2100
- }, vo = 14, Ds = 0.0276;
2101
- var ee = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(ee || {});
2102
- const Be = {
2089
+ }, _o = 14, Ns = 0.0276;
2090
+ var te = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(te || {});
2091
+ const We = {
2103
2092
  300: {
2104
2093
  iconSize: 40,
2105
2094
  marginLeft: 12,
@@ -2120,45 +2109,45 @@ const Be = {
2120
2109
  marginLeft: 12,
2121
2110
  buttonPadding: 24
2122
2111
  }
2123
- }, dr = {
2112
+ }, Ht = {
2124
2113
  loading: { text: "Loading. Please wait.", visible: !0 },
2125
- done: { text: "Waiting for input...", visible: !0 }
2126
- }, Ms = {
2127
- [L.CANDIDATE_SELECTION]: "Stay still…",
2128
- [L.FACE_TOO_CLOSE]: "Move back",
2129
- [L.FACE_TOO_FAR]: "Move closer",
2130
- [L.FACE_CENTERING]: "Center your face",
2131
- [L.FACE_NOT_PRESENT]: "Position your face into the circle",
2132
- [L.SHARPNESS_TOO_LOW]: "Turn face against light",
2133
- [L.BRIGHTNESS_TOO_LOW]: "Turn face against light",
2134
- [L.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2135
- [L.DEVICE_PITCHED]: "Hold your phone at eye level",
2136
- [L.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
2137
- [L.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
2138
- [L.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
2139
- [L.MOUTH_SCORE_TOO_LOW]: "Smile :)",
2140
- [L.MOUTH_NOT_PRESENT]: "Position your face into the circle"
2141
- }, Hs = {
2142
- ...Ms,
2143
- [ne.SMILE]: "Smile :)",
2144
- [ne.SMILE_CANDIDATE_SELECTION]: "Smile :)",
2145
- [ne.KEEP_NEUTRAL_EXPRESSION]: "Keep neutral expression"
2146
- }, Us = {
2147
- [ne.SMILE]: "Smile more!",
2148
- [ne.KEEP_NEUTRAL_EXPRESSION]: "Don't smile"
2149
- }, Fs = "rgba(19, 19, 19, 0.5)", Bs = 34;
2150
- function hr(e, t) {
2151
- return Math.max(t, t + (e - 400) * Ds + 2);
2152
- }
2153
- const Ws = (e, t = vo) => e ? e.width < e.height ? hr(e.width, t) : hr(e.height, t) : t, zs = (e) => e > ee.Default ? Be[ee.Default] : e > ee.L ? Be[ee.L] : e > ee.M ? Be[ee.M] : Be[ee.S], js = (e) => e ? zs(e.width) : Be[ee.Default];
2154
- function Gs() {
2114
+ waiting: { text: "Waiting for input...", visible: !0 }
2115
+ }, Is = {
2116
+ [M.CANDIDATE_SELECTION]: "Stay still…",
2117
+ [M.FACE_TOO_CLOSE]: "Move back",
2118
+ [M.FACE_TOO_FAR]: "Move closer",
2119
+ [M.FACE_CENTERING]: "Center your face",
2120
+ [M.FACE_NOT_PRESENT]: "Position your face into the circle",
2121
+ [M.SHARPNESS_TOO_LOW]: "Turn face against light",
2122
+ [M.BRIGHTNESS_TOO_LOW]: "Turn face against light",
2123
+ [M.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2124
+ [M.DEVICE_PITCHED]: "Hold your phone at eye level",
2125
+ [M.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
2126
+ [M.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
2127
+ [M.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
2128
+ [M.MOUTH_SCORE_TOO_LOW]: "Smile :)",
2129
+ [M.MOUTH_NOT_PRESENT]: "Position your face into the circle"
2130
+ }, Os = {
2131
+ ...Is,
2132
+ [X.SMILE]: "Smile :)",
2133
+ [X.SMILE_CANDIDATE_SELECTION]: "Smile :)",
2134
+ [X.KEEP_NEUTRAL_EXPRESSION]: "Keep neutral expression"
2135
+ }, Ts = {
2136
+ [X.SMILE]: "Smile more!",
2137
+ [X.KEEP_NEUTRAL_EXPRESSION]: "Don't smile"
2138
+ }, xs = "rgba(19, 19, 19, 0.5)", As = 34;
2139
+ function ar(e, t) {
2140
+ return Math.max(t, t + (e - 400) * Ns + 2);
2141
+ }
2142
+ const Rs = (e, t = _o) => e ? e.width < e.height ? ar(e.width, t) : ar(e.height, t) : t, Ps = (e) => e > te.Default ? We[te.Default] : e > te.L ? We[te.L] : e > te.M ? We[te.M] : We[te.S], Ls = (e) => e ? Ps(e.width) : We[te.Default];
2143
+ function Ds() {
2155
2144
  const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2156
2145
  if (!document.querySelector(`link[href="${e}"]`)) {
2157
2146
  const n = document.createElement("link");
2158
2147
  n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
2159
2148
  }
2160
2149
  }
2161
- function Vs({
2150
+ function Ms({
2162
2151
  currentInstruction: e,
2163
2152
  escalatedInstructions: t,
2164
2153
  instructions: n
@@ -2167,24 +2156,28 @@ function Vs({
2167
2156
  if (r)
2168
2157
  return o && t && r in t ? t[r] : n[r];
2169
2158
  }
2170
- const je = Ar(void 0);
2171
- je.displayName = "UiCustomizationContext";
2159
+ const Ge = kr(void 0);
2160
+ Ge.displayName = "ConfigurationContext";
2172
2161
  function Se() {
2173
- const e = Ke(je);
2162
+ const e = Ke(Ge);
2174
2163
  if (!e)
2175
2164
  throw new Error(
2176
- `${je.displayName} must be used within a ${je.displayName} Provider`
2165
+ `${Ge.displayName} must be used within a ${Ge.displayName} Provider`
2177
2166
  );
2178
2167
  return e;
2179
2168
  }
2180
- function Ys({ children: e, props: t, videoElementSize: n }) {
2181
- const { font: r } = Rs(), o = re(
2182
- () => ({ ...t, videoElementSize: n, fontSize: Ws(n, r.minimumSize) }),
2169
+ function Hs({
2170
+ children: e,
2171
+ configuration: t,
2172
+ videoElementSize: n
2173
+ }) {
2174
+ const { font: r } = bs(), o = re(
2175
+ () => ({ ...t, videoElementSize: n, fontSize: Rs(n, r.minimumSize) }),
2183
2176
  [t, r.minimumSize, n]
2184
2177
  );
2185
- return /* @__PURE__ */ f(je.Provider, { value: o, children: e });
2178
+ return /* @__PURE__ */ f(Ge.Provider, { value: o, children: e });
2186
2179
  }
2187
- const Co = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2180
+ const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2188
2181
  "path",
2189
2182
  {
2190
2183
  clipRule: "evenodd",
@@ -2192,7 +2185,7 @@ const Co = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2192
2185
  fill: "currentColor",
2193
2186
  fillRule: "evenodd"
2194
2187
  }
2195
- ) }), qs = U.div`
2188
+ ) }), Us = F.div`
2196
2189
  width: 100%;
2197
2190
  height: 100%;
2198
2191
  top: 0;
@@ -2211,14 +2204,14 @@ const Co = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2211
2204
  aspect-ratio: 9/16;
2212
2205
  }
2213
2206
  `}
2214
- `, Zs = U.div`
2207
+ `, Fs = F.div`
2215
2208
  width: 100%;
2216
2209
  display: flex;
2217
2210
  flex-direction: column;
2218
2211
  justify-content: center;
2219
2212
  align-items: center;
2220
2213
  color: ${(e) => e.theme.colors.instructionTextColor};
2221
- `, Xs = U.p`
2214
+ `, Bs = F.p`
2222
2215
  background: ${(e) => e.theme.colors.instructionColor};
2223
2216
  border-radius: 0.25em;
2224
2217
  padding: 0.583em 0.666em;
@@ -2226,14 +2219,14 @@ const Co = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
2226
2219
  font-size: ${(e) => `${e.$fontSize}px`};
2227
2220
  line-height: 1em;
2228
2221
  max-width: 80%;
2229
- `, on = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2222
+ `, nn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2230
2223
  const { fontSize: o } = Se();
2231
- return /* @__PURE__ */ f(qs, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ f(Zs, { children: [
2224
+ return /* @__PURE__ */ f(Us, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ f(Fs, { children: [
2232
2225
  e ? /* @__PURE__ */ f(e, { svgSize: o * 2 }) : null,
2233
- /* @__PURE__ */ f(Xs, { $fontSize: o, children: r })
2226
+ /* @__PURE__ */ f(Bs, { $fontSize: o, children: r })
2234
2227
  ] }) });
2235
- }, So = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ f(on, { Icon: Co, position: "relative", text: e });
2236
- class Ks extends G {
2228
+ }, po = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ f(nn, { Icon: ho, position: "relative", text: e });
2229
+ class Ws extends V {
2237
2230
  constructor(t) {
2238
2231
  super(t), this.state = { hasError: !1 };
2239
2232
  }
@@ -2244,21 +2237,32 @@ class Ks extends G {
2244
2237
  console.error(t, n);
2245
2238
  }
2246
2239
  render() {
2247
- return this.state.hasError ? /* @__PURE__ */ f(So, { Icon: Co, isCameraReady: !1 }) : this.props.children;
2240
+ return this.state.hasError ? /* @__PURE__ */ f(po, { Icon: ho, isCameraReady: !1 }) : this.props.children;
2248
2241
  }
2249
2242
  }
2250
- const Qs = U.div`
2243
+ const js = F.div`
2251
2244
  font-family: ${(e) => e.theme.font.family};
2252
2245
  font-style: ${(e) => e.theme.font.style};
2253
2246
  font-weight: ${(e) => e.theme.font.weight};
2254
- `, Js = ({ children: e, uiProps: t, videoElementSize: n }) => (X(() => {
2255
- Gs();
2256
- }, []), /* @__PURE__ */ f(Ns, { target: t.styleTarget, children: /* @__PURE__ */ f(Ls, { theme: t.theme, children: /* @__PURE__ */ f(Qs, { children: /* @__PURE__ */ f(Ks, { videoElementSize: n, children: /* @__PURE__ */ f(Ys, { props: t, videoElementSize: n, children: e }) }) }) }) })), ea = 0.75, ta = "dot-auto-capture-video", qe = (e, t) => {
2257
- const n = St(t);
2258
- X(() => {
2247
+ `;
2248
+ function zs({
2249
+ children: e,
2250
+ uiConfiguration: t,
2251
+ videoElementSize: n
2252
+ }) {
2253
+ return Q(() => {
2254
+ Ds();
2255
+ }, []), /* @__PURE__ */ f(vs, { target: t.styleTarget, children: /* @__PURE__ */ f($s, { theme: t.styling.theme, children: /* @__PURE__ */ f(js, { children: /* @__PURE__ */ f(Ws, { videoElementSize: n, children: /* @__PURE__ */ f(Hs, { configuration: t, videoElementSize: n, children: e }) }) }) }) });
2256
+ }
2257
+ const Gs = 0.75, Vs = "dot-auto-capture-video";
2258
+ function $e(e, t) {
2259
+ const n = vt(t);
2260
+ Q(() => {
2259
2261
  n.current = t;
2260
- }, [t]), X(
2262
+ }, [t]), Q(
2261
2263
  () => {
2264
+ if (!e)
2265
+ return;
2262
2266
  const r = (o) => n.current(o);
2263
2267
  return document.addEventListener(e, r), () => {
2264
2268
  document.removeEventListener(e, r);
@@ -2267,64 +2271,64 @@ const Qs = U.div`
2267
2271
  [e]
2268
2272
  // Re-run if eventName
2269
2273
  );
2270
- };
2271
- function na(e) {
2272
- const [t, n] = M(), r = ge(
2274
+ }
2275
+ function Ys(e) {
2276
+ const [t, n] = L(), r = ae(
2273
2277
  (o) => {
2274
2278
  var i;
2275
2279
  n((i = o.detail) == null ? void 0 : i.size);
2276
2280
  },
2277
2281
  [n]
2278
2282
  );
2279
- return qe(e, r), Ae(() => {
2283
+ return $e(e, r), Re(() => {
2280
2284
  if (!t) {
2281
- const o = document.getElementById(ta);
2285
+ const o = document.getElementById(Vs);
2282
2286
  o && n(o.getBoundingClientRect());
2283
2287
  }
2284
2288
  }, [t, n]), t;
2285
2289
  }
2286
- function ra(e, t) {
2290
+ function qs(e, t) {
2287
2291
  return e ? `${e}, ${t}` : t;
2288
2292
  }
2289
- const oa = {
2293
+ const Zs = {
2290
2294
  placeholderColor: "white",
2291
2295
  placeholderColorSuccess: "#00BFB2",
2292
2296
  instructionColor: "#F8FBFB",
2293
2297
  instructionColorSuccess: "#00BFB2",
2294
2298
  instructionTextColor: "#021B41;"
2295
- }, ia = {
2299
+ }, Xs = {
2296
2300
  family: "Montserrat, Arial, sans-serif",
2297
2301
  weight: "600",
2298
2302
  style: "normal",
2299
- minimumSize: vo
2300
- }, He = {
2301
- colors: oa,
2302
- font: ia
2303
- }, sa = (e) => {
2303
+ minimumSize: _o
2304
+ }, Ue = {
2305
+ colors: Zs,
2306
+ font: Xs
2307
+ }, Ks = (e) => {
2304
2308
  var t;
2305
2309
  return e ? {
2306
- ...He,
2310
+ ...Ue,
2307
2311
  ...e,
2308
2312
  colors: {
2309
- ...He.colors,
2313
+ ...Ue.colors,
2310
2314
  ...e.colors
2311
2315
  },
2312
2316
  font: {
2313
- ...He.font,
2317
+ ...Ue.font,
2314
2318
  ...e.font,
2315
- family: ra((t = e.font) == null ? void 0 : t.family, He.font.family)
2319
+ family: qs((t = e.font) == null ? void 0 : t.family, Ue.font.family)
2316
2320
  }
2317
- } : He;
2318
- }, wo = (e, t) => Math.min(e, t), aa = ({ height: e, width: t }, n) => {
2319
- const r = wo(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2321
+ } : Ue;
2322
+ }, mo = (e, t) => Math.min(e, t), Qs = ({ height: e, width: t }, n) => {
2323
+ const r = mo(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2320
2324
  return {
2321
2325
  shiftX: o,
2322
2326
  shiftY: i,
2323
2327
  width: r,
2324
2328
  height: r
2325
2329
  };
2326
- }, ca = (e, t) => {
2327
- const { height: n, shiftX: r, shiftY: o, width: i } = aa(e, t);
2330
+ }, Js = (e, t) => {
2331
+ const { height: n, shiftX: r, shiftY: o, width: i } = Qs(e, t);
2328
2332
  return {
2329
2333
  shiftX: r / e.width,
2330
2334
  shiftY: o / e.height,
@@ -2332,84 +2336,34 @@ const oa = {
2332
2336
  height: n / e.height
2333
2337
  };
2334
2338
  };
2335
- function la(e) {
2336
- return ca(e, ea);
2339
+ function ea(e) {
2340
+ return Js(e, Gs);
2337
2341
  }
2338
- const sn = (e, t) => {
2342
+ const ta = (e, t) => {
2339
2343
  document.dispatchEvent(
2340
2344
  new CustomEvent(e, {
2341
2345
  detail: t
2342
2346
  })
2343
2347
  );
2344
- }, Ct = class Ct {
2345
- constructor() {
2346
- tt(this, "lastDetails");
2347
- tt(this, "delayedTime");
2348
- this.lastDetails = {}, this.delayedTime = 0;
2349
- }
2350
- // TODO remove singleton
2351
- static getInstance() {
2352
- return this._instance || (this._instance = new Ct()), this._instance;
2353
- }
2354
- restart() {
2355
- this.lastDetails = {}, this.delayedTime = 0;
2356
- }
2357
- /**
2358
- * If the detail object has changed, save the new detail object and return true. Otherwise, return
2359
- * false
2360
- * @param {string} eventName - The name of the event.
2361
- * @param detail - This is the data that is passed to the event.
2362
- * @returns a boolean value.
2363
- */
2364
- isDetailChanged(t, n) {
2365
- return JSON.stringify(n) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = n, !0) : !1;
2366
- }
2367
- /**
2368
- * If the detail of the event has changed, dispatch the event
2369
- * @param {string} eventName - The name of the event to dispatch.
2370
- * @param detail - Record<string, unknown>
2371
- */
2372
- dispatchCustomEventOnChange(t, n) {
2373
- this.isDetailChanged(t, n) && sn(t, n);
2374
- }
2375
- /**
2376
- * If the detail of the event has changed, delay time has passed, dispatch the event
2377
- * @param {string} eventName - The name of the event to dispatch.
2378
- * @param detail - Record<string, unknown>
2379
- * @param {number} delay - How long dispatch should be delayed.
2380
- */
2381
- dispatchDelayedCustomEventOnChange(t, n, r) {
2382
- const o = performance.now();
2383
- o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
2384
- }
2385
- // implement this method in the class
2386
- dispatchCustomEvent(t, n) {
2387
- sn(t, n);
2388
- }
2389
- };
2390
- // TODO remove singleton
2391
- tt(Ct, "_instance");
2392
- let an = Ct;
2393
- an.getInstance();
2394
- const _r = (e, t) => {
2395
- sn(e, {
2348
+ }, cr = (e, t) => {
2349
+ ta(e, {
2396
2350
  instruction: t
2397
2351
  });
2398
2352
  };
2399
- async function ua() {
2353
+ async function na() {
2400
2354
  return navigator.mediaDevices.enumerateDevices();
2401
2355
  }
2402
- async function fa() {
2403
- return (await ua()).filter((t) => t.kind === "videoinput");
2356
+ async function ra() {
2357
+ return (await na()).filter((t) => t.kind === "videoinput");
2404
2358
  }
2405
- const da = () => {
2406
- const [e, t] = M(!1);
2407
- return X(() => {
2359
+ const oa = () => {
2360
+ const [e, t] = L(!1);
2361
+ return Q(() => {
2408
2362
  (async () => {
2409
- (await fa()).length > 1 && t(!0);
2363
+ (await ra()).length > 1 && t(!0);
2410
2364
  })();
2411
2365
  }, []), e;
2412
- }, ha = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2366
+ }, ia = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2413
2367
  /* @__PURE__ */ f(
2414
2368
  "path",
2415
2369
  {
@@ -2436,7 +2390,7 @@ const da = () => {
2436
2390
  strokeWidth: "2"
2437
2391
  }
2438
2392
  )
2439
- ] }), _a = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2393
+ ] }), sa = ({ size: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2440
2394
  /* @__PURE__ */ f("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2441
2395
  /* @__PURE__ */ f(
2442
2396
  "path",
@@ -2445,7 +2399,7 @@ const da = () => {
2445
2399
  fill: "white"
2446
2400
  }
2447
2401
  )
2448
- ] }), Eo = U.button`
2402
+ ] }), go = F.button`
2449
2403
  background: none;
2450
2404
  border: none;
2451
2405
  padding: 0;
@@ -2455,36 +2409,39 @@ const da = () => {
2455
2409
  &:disabled {
2456
2410
  cursor: not-allowed;
2457
2411
  }
2458
- `, pa = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(Eo, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(ha, { size: t }) }), ma = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(Eo, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(_a, { size: t }) }), ga = U.div`
2412
+ `, aa = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(go, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(ia, { size: t }) }), ca = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ f(go, { $marginLeft: e, ...n, children: /* @__PURE__ */ f(sa, { size: t }) }), la = F.div`
2459
2413
  position: absolute;
2460
2414
  top: 0;
2461
2415
  right: 0;
2462
2416
  padding: ${(e) => `${e.$padding}px`};
2463
2417
  z-index: 2;
2464
- `, ya = ({
2418
+ `, ua = ({
2465
2419
  customControlEvent: e,
2466
2420
  isSwitchCameraDisabled: t
2467
2421
  }) => {
2468
- const { showCameraButtons: n, videoElementSize: r } = Se(), o = da();
2422
+ const {
2423
+ control: { showCameraButtons: n },
2424
+ videoElementSize: r
2425
+ } = Se(), o = oa();
2469
2426
  if (!n)
2470
2427
  return null;
2471
- const { buttonPadding: i, iconSize: s, marginLeft: c } = js(r);
2472
- return /* @__PURE__ */ f(ga, { $padding: i, children: [
2473
- o && /* @__PURE__ */ f(ma, { disabled: t, onClick: () => {
2474
- _r(e, An.SWITCH_CAMERA);
2428
+ const { buttonPadding: i, iconSize: s, marginLeft: a } = Ls(r);
2429
+ return /* @__PURE__ */ f(la, { $padding: i, children: [
2430
+ o && /* @__PURE__ */ f(ca, { disabled: t, onClick: () => {
2431
+ cr(e, Nn.SWITCH_CAMERA);
2475
2432
  }, size: s }),
2476
2433
  /* @__PURE__ */ f(
2477
- pa,
2434
+ aa,
2478
2435
  {
2479
- marginLeft: o ? c : 0,
2436
+ marginLeft: o ? a : 0,
2480
2437
  onClick: () => {
2481
- _r(e, An.TOGGLE_MIRROR);
2438
+ cr(e, Nn.TOGGLE_MIRROR);
2482
2439
  },
2483
2440
  size: s
2484
2441
  }
2485
2442
  )
2486
2443
  ] });
2487
- }, va = "2.5s", Ca = "0.3s", Sa = "linear", wa = le`
2444
+ }, fa = "2.5s", da = "0.3s", _a = "linear", ha = ue`
2488
2445
  0% {
2489
2446
  opacity: 0;
2490
2447
  }
@@ -2492,14 +2449,14 @@ const da = () => {
2492
2449
  opacity: 1;
2493
2450
  }
2494
2451
  `;
2495
- le`
2452
+ ue`
2496
2453
  100% {
2497
2454
  transform: translate(-50%, -50%) scale(2.6);
2498
2455
  top: 50%;
2499
2456
  left: 50%;
2500
2457
  }
2501
2458
  `;
2502
- le`
2459
+ ue`
2503
2460
  5% {
2504
2461
  transform: translate(-50%, -50%) scale(0.7);
2505
2462
  opacity: 1;
@@ -2523,7 +2480,7 @@ le`
2523
2480
  opacity: 0.5;
2524
2481
  }
2525
2482
  `;
2526
- le`
2483
+ ue`
2527
2484
  5% {
2528
2485
  opacity: 1;
2529
2486
  }
@@ -2536,16 +2493,16 @@ le`
2536
2493
  opacity: 1;
2537
2494
  }
2538
2495
  `;
2539
- const Ea = U.div`
2496
+ const pa = F.div`
2540
2497
  position: absolute;
2541
2498
  left: 50%;
2542
2499
 
2543
2500
  ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2544
2501
  ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2545
- ${(e) => e.$isAnimating && $n`
2546
- animation: ${wa} ${Ca}
2547
- ${Sa} both;
2548
- animation-delay: ${va};
2502
+ ${(e) => e.$isAnimating && Cn`
2503
+ animation: ${ha} ${da}
2504
+ ${_a} both;
2505
+ animation-delay: ${fa};
2549
2506
 
2550
2507
  @media (orientation: landscape) {
2551
2508
  bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
@@ -2569,7 +2526,7 @@ const Ea = U.div`
2569
2526
  ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2570
2527
  );
2571
2528
  z-index: 2;
2572
- `, ba = U.div`
2529
+ `, ma = F.div`
2573
2530
  display: flex;
2574
2531
  align-items: center;
2575
2532
  justify-content: center;
@@ -2583,7 +2540,7 @@ const Ea = U.div`
2583
2540
  line-height: 1em;
2584
2541
  font-size: ${(e) => `${e.$fontSize}px`};
2585
2542
  white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
2586
- `, $a = ({
2543
+ `, ga = ({
2587
2544
  children: e,
2588
2545
  cssBottom: t,
2589
2546
  cssTop: n,
@@ -2592,16 +2549,16 @@ const Ea = U.div`
2592
2549
  isPortrait: i
2593
2550
  }) => {
2594
2551
  const { fontSize: s } = Se();
2595
- return /* @__PURE__ */ f(Ea, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ f(
2596
- ba,
2552
+ return /* @__PURE__ */ f(pa, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ f(
2553
+ ma,
2597
2554
  {
2598
2555
  $fontSize: s,
2599
2556
  $isInCandidateSelection: o,
2600
- $wrap: e.length > Bs,
2557
+ $wrap: e.length > As,
2601
2558
  children: e
2602
2559
  }
2603
2560
  ) });
2604
- }, ka = U.div`
2561
+ }, ya = F.div`
2605
2562
  color: ${(e) => e.theme.colors.instructionTextColor};
2606
2563
  animation: spin 2s linear infinite;
2607
2564
 
@@ -2610,7 +2567,7 @@ const Ea = U.div`
2610
2567
  transform: rotate(-360deg);
2611
2568
  }
2612
2569
  }
2613
- `, Oa = ({ svgSize: e }) => /* @__PURE__ */ f(ka, { children: /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2570
+ `, va = ({ svgSize: e }) => /* @__PURE__ */ f(ya, { children: /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2614
2571
  /* @__PURE__ */ f(
2615
2572
  "path",
2616
2573
  {
@@ -2667,7 +2624,7 @@ const Ea = U.div`
2667
2624
  fill: "currentColor"
2668
2625
  }
2669
2626
  )
2670
- ] }) }), Na = U.div`
2627
+ ] }) }), Ca = F.div`
2671
2628
  z-index: 1;
2672
2629
  position: absolute;
2673
2630
  // Scale up the backdrop to have space when placeholder is scaled below 1
@@ -2684,9 +2641,11 @@ const Ea = U.div`
2684
2641
  transform: scale(0.5);
2685
2642
  translate: 25% 25%;
2686
2643
  }
2687
- `, bo = ({ children: e, height: t, scale: n, width: r }) => {
2688
- const { backdropColor: o } = Se(), i = wo(r, t);
2689
- return /* @__PURE__ */ f(Na, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ f("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2644
+ `, yo = ({ children: e, height: t, scale: n, width: r }) => {
2645
+ const {
2646
+ styling: { backdropColor: o }
2647
+ } = Se(), i = mo(r, t);
2648
+ return /* @__PURE__ */ f(Ca, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ f("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2690
2649
  /* @__PURE__ */ f("defs", { children: /* @__PURE__ */ f("mask", { id: "mask", children: [
2691
2650
  /* @__PURE__ */ f("rect", { fill: "#fff", height: "100%", width: "100%" }),
2692
2651
  /* @__PURE__ */ f("g", { children: e })
@@ -2694,18 +2653,17 @@ const Ea = U.div`
2694
2653
  /* @__PURE__ */ f("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2695
2654
  ] }) });
2696
2655
  };
2697
- function Ia({ cameraHeight: e, cameraWidth: t, state: n }) {
2698
- var o;
2699
- const { appStateInstructions: r } = Se();
2700
- return !n || n === zt.ERROR || !((o = r == null ? void 0 : r[n]) != null && o.visible) ? null : n === zt.DONE ? /* @__PURE__ */ f(z, { children: [
2701
- e && t && /* @__PURE__ */ f(bo, { height: e, width: t }),
2702
- /* @__PURE__ */ f(on, { isCameraReady: !0, text: r[n].text })
2703
- ] }) : /* @__PURE__ */ f(on, { Icon: Oa, isCameraReady: !0, text: r[n].text });
2704
- }
2705
- function Ta({ isRounded: e, isSquare: t, ...n }) {
2656
+ function Sa({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2657
+ const { appStateInstructions: o } = Se(), i = r === U.ERROR || r === U.RUNNING;
2658
+ return !r || i || !(o != null && o[r].visible) ? null : r === U.WAITING || r === U.COMPLETE ? /* @__PURE__ */ f(z, { children: [
2659
+ n && e && t && /* @__PURE__ */ f(yo, { height: e, width: t }),
2660
+ /* @__PURE__ */ f(nn, { isCameraReady: !0, text: o[U.WAITING].text })
2661
+ ] }) : /* @__PURE__ */ f(nn, { Icon: va, isCameraReady: !0, text: o[U.LOADING].text });
2662
+ }
2663
+ function Ea({ isRounded: e, isSquare: t, ...n }) {
2706
2664
  return e ? /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: "2%" }) : /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: t ? "0" : "50%" });
2707
2665
  }
2708
- const xa = () => /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2666
+ const wa = () => /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2709
2667
  "path",
2710
2668
  {
2711
2669
  d: "M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",
@@ -2714,29 +2672,7 @@ const xa = () => /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox
2714
2672
  strokeWidth: "4"
2715
2673
  }
2716
2674
  ) });
2717
- function Aa() {
2718
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2719
- "path",
2720
- {
2721
- d: "M38.9231 240C38.9231 108.23 129.248 2 240 2C350.752 2 441.077 108.23 441.077 240C441.077 371.77 350.752 478 240 478C129.248 478 38.9231 371.77 38.9231 240Z",
2722
- stroke: "currentColor",
2723
- strokeLinecap: "round",
2724
- strokeWidth: "4"
2725
- }
2726
- ) });
2727
- }
2728
- function Ra() {
2729
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2730
- "path",
2731
- {
2732
- clipRule: "evenodd",
2733
- d: "M123.592 81.0326C143.203 50.4946 180.289 34 240 34C299.711 34 336.797 50.4946 356.408 81.0326C375.742 111.138 377.681 154.313 368.661 207.051C371.545 208.577 374.834 210.748 377.278 215.028C380.075 219.925 381.612 227.297 380.77 239.048C379.202 260.93 372.883 270.75 366.157 276.198C363.521 278.333 360.842 279.765 358.659 280.932C358.141 281.209 357.651 281.471 357.196 281.724C354.727 283.097 353.459 284.114 352.94 285.588C346.115 312.745 335.656 325.235 326.992 335.581C325.711 337.111 324.469 338.595 323.283 340.072C318.736 345.738 315.077 351.244 313.058 359.018C311.036 366.806 310.62 377.042 312.887 392.189C323.28 427.534 349.601 445.607 379.548 458.155C380.567 458.582 381.047 459.754 380.62 460.773C380.193 461.792 379.021 462.271 378.002 461.845C347.548 449.083 319.871 430.304 309.01 393.182L308.972 393.052L308.952 392.918C306.617 377.396 306.974 366.534 309.187 358.012C311.409 349.454 315.459 343.431 320.164 337.568C321.377 336.057 322.636 334.552 323.926 333.011C332.525 322.737 342.484 310.837 349.08 284.533L349.099 284.458L349.124 284.385C350.161 281.284 352.747 279.621 355.253 278.228C355.794 277.927 356.344 277.632 356.902 277.333C359.061 276.176 361.329 274.961 363.639 273.09C369.248 268.547 375.264 259.921 376.78 238.762C377.594 227.404 376.048 220.94 373.805 217.012C371.594 213.141 368.56 211.453 365.547 209.952L364.214 209.287L364.469 207.818C373.737 154.637 371.701 112.248 353.043 83.194C334.485 54.2962 299.065 38 240 38C180.935 38 145.516 54.2962 126.958 83.194C108.3 112.248 106.264 154.637 115.531 207.818L115.787 209.287L114.453 209.952C111.441 211.453 108.406 213.141 106.196 217.012C103.953 220.94 102.406 227.404 103.22 238.762C104.736 259.921 110.753 268.547 116.361 273.09C118.672 274.961 120.94 276.176 123.099 277.333C123.656 277.632 124.206 277.927 124.748 278.228C127.254 279.621 129.84 281.284 130.877 284.385L130.901 284.458L130.92 284.533C137.517 310.837 147.476 322.737 156.074 333.011C157.364 334.552 158.624 336.057 159.837 337.568C164.542 343.431 168.592 349.454 170.814 358.012C173.026 366.534 173.384 377.396 171.048 392.918L171.028 393.052L170.99 393.182C160.129 430.304 132.452 449.083 101.998 461.845C100.979 462.271 99.8075 461.792 99.3806 460.773C98.9537 459.754 99.4335 458.582 100.452 458.155C130.399 445.607 156.721 427.534 167.113 392.189C169.381 377.042 168.964 366.806 166.942 359.018C164.924 351.244 161.264 345.738 156.717 340.072C155.532 338.595 154.29 337.111 153.008 335.581C144.345 325.235 133.886 312.745 127.061 285.588C126.541 284.114 125.273 283.097 122.804 281.724C122.349 281.471 121.859 281.209 121.341 280.932C119.159 279.765 116.479 278.333 113.844 276.198C107.117 270.75 100.798 260.93 99.2303 239.048C98.3883 227.297 99.9259 219.925 102.722 215.028C105.166 210.748 108.455 208.577 111.339 207.051C102.319 154.313 104.259 111.138 123.592 81.0326Z",
2734
- fill: "currentColor",
2735
- fillRule: "evenodd"
2736
- }
2737
- ) });
2738
- }
2739
- function La() {
2675
+ function ba() {
2740
2676
  return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2741
2677
  "rect",
2742
2678
  {
@@ -2752,7 +2688,7 @@ function La() {
2752
2688
  }
2753
2689
  ) });
2754
2690
  }
2755
- function Pa() {
2691
+ function $a() {
2756
2692
  return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2757
2693
  "rect",
2758
2694
  {
@@ -2768,24 +2704,13 @@ function Pa() {
2768
2704
  }
2769
2705
  ) });
2770
2706
  }
2771
- function Da() {
2707
+ function ka() {
2772
2708
  return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("rect", { height: "476", rx: "14", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2773
2709
  }
2774
- function Ma() {
2710
+ function Na() {
2775
2711
  return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("rect", { height: "476", rx: "2", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "4", width: "476", x: "2", y: "2" }) });
2776
2712
  }
2777
- function Ha() {
2778
- return /* @__PURE__ */ f("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
2779
- "path",
2780
- {
2781
- clipRule: "evenodd",
2782
- d: "M126.126 87.8654C147.739 56.7835 184.591 34.0001 239.665 34.0001C239.779 34.0001 239.891 34.0096 240 34.0279C240.109 34.0096 240.221 34.0001 240.335 34.0001C295.41 34.0001 332.261 56.7835 353.874 87.8654C375.428 118.862 381.724 157.957 376.086 190.544C373.539 205.262 371.039 233.823 376.056 253.971C380.828 273.135 387.879 290.154 393.431 303.54L393.491 303.685C396.23 310.287 398.627 316.064 400.16 320.726C400.933 323.077 401.511 325.214 401.797 327.079C402.073 328.879 402.11 330.618 401.637 332.107C399.79 339.478 396.615 344.943 392.398 348.881C388.174 352.825 383.031 355.122 377.446 356.355C366.388 358.799 353.231 357.133 341.237 355.551C340.93 355.51 340.623 355.47 340.317 355.43C334.586 354.672 329.126 353.951 324.151 353.668C318.894 353.368 314.374 353.574 310.799 354.649C307.298 355.702 304.789 357.558 303.304 360.596C301.785 363.704 301.203 368.322 302.207 375.153C309.297 399.432 323.779 413.44 341.432 422.745C356.457 430.665 373.692 435.144 390.741 439.575C393.916 440.401 397.085 441.224 400.232 442.068C401.298 442.354 401.931 443.451 401.645 444.518C401.359 445.585 400.262 446.218 399.196 445.932C396.115 445.106 392.991 444.294 389.842 443.477C372.804 439.052 355.041 434.44 339.567 426.283C321.093 416.546 305.757 401.713 298.328 376.139L298.29 376.01L298.271 375.877C297.181 368.587 297.678 362.998 299.71 358.839C301.787 354.59 305.326 352.119 309.647 350.819C313.895 349.541 318.973 349.366 324.378 349.674C329.508 349.966 335.107 350.706 340.788 351.457C341.112 351.5 341.436 351.543 341.76 351.585C353.925 353.19 366.342 354.713 376.583 352.45C381.65 351.33 386.088 349.3 389.668 345.957C393.241 342.621 396.083 337.86 397.773 331.072L397.791 330.998L397.815 330.925C398.022 330.302 398.087 329.272 397.843 327.686C397.605 326.133 397.102 324.232 396.36 321.976C394.875 317.458 392.525 311.794 389.74 305.081L389.737 305.073C384.19 291.701 377.028 274.428 372.174 254.937C366.952 233.964 369.571 204.733 372.144 189.862C377.623 158.197 371.48 120.191 350.59 90.149C329.759 60.1924 294.162 38.0001 240.335 38.0001C240.221 38.0001 240.109 37.9905 240 37.9722C239.891 37.9905 239.779 38.0001 239.665 38.0001C185.838 38.0001 150.241 60.1924 129.41 90.149C108.52 120.191 102.377 158.197 107.856 189.862C110.429 204.733 113.048 233.964 107.826 254.937C102.972 274.428 95.8101 291.701 90.2633 305.073L90.2607 305.079C87.4756 311.793 85.1256 317.458 83.6398 321.976C82.8977 324.232 82.3951 326.133 82.1567 327.686C81.9133 329.272 81.9778 330.302 82.1847 330.925L82.2088 330.998L82.2273 331.072C83.9176 337.86 86.7592 342.621 90.3324 345.957C93.9121 349.3 98.3505 351.33 103.417 352.45C113.658 354.713 126.075 353.19 138.24 351.585C138.564 351.543 138.888 351.5 139.212 351.457C144.893 350.706 150.492 349.966 155.622 349.674C161.027 349.366 166.105 349.541 170.353 350.819C174.674 352.119 178.213 354.59 180.29 358.839C182.323 362.998 182.819 368.587 181.73 375.877L181.71 376.01L181.672 376.139C174.243 401.713 158.907 416.546 140.433 426.283C124.959 434.44 107.196 439.052 90.1584 443.477C87.0093 444.294 83.8851 445.106 80.8046 445.932C79.7377 446.218 78.6409 445.585 78.3548 444.518C78.0687 443.451 78.7017 442.354 79.7685 442.068C82.9154 441.224 86.0842 440.401 89.2594 439.575C106.308 435.144 123.543 430.665 138.568 422.745C156.221 413.44 170.703 399.432 177.793 375.153C178.797 368.322 178.215 363.704 176.696 360.596C175.211 357.558 172.702 355.702 169.201 354.649C165.626 353.574 161.106 353.368 155.849 353.668C150.874 353.951 145.414 354.672 139.683 355.43C139.377 355.47 139.07 355.51 138.763 355.551C126.769 357.133 113.613 358.799 102.554 356.355C96.9695 355.122 91.8259 352.825 87.6024 348.881C83.3855 344.943 80.2095 339.478 78.3628 332.107C77.8896 330.618 77.9268 328.879 78.203 327.079C78.4892 325.214 79.0667 323.077 79.84 320.726C81.3732 316.064 83.7701 310.286 86.5089 303.684L86.5686 303.54C92.1215 290.154 99.1722 273.135 103.944 253.971C108.961 233.823 106.461 205.262 103.914 190.544C98.2759 157.957 104.572 118.862 126.126 87.8654Z",
2783
- fill: "currentColor",
2784
- fillRule: "evenodd"
2785
- }
2786
- ) });
2787
- }
2788
- const Ua = U.div`
2713
+ const Ia = F.div`
2789
2714
  z-index: 1;
2790
2715
  position: absolute;
2791
2716
  top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
@@ -2799,7 +2724,7 @@ const Ua = U.div`
2799
2724
  width: 100%;
2800
2725
  height: 100%;
2801
2726
  }
2802
- `, Fa = ({
2727
+ `, Oa = ({
2803
2728
  children: e,
2804
2729
  className: t,
2805
2730
  isInCandidateSelection: n,
@@ -2807,7 +2732,7 @@ const Ua = U.div`
2807
2732
  placeholderRectangle: o,
2808
2733
  scale: i
2809
2734
  }) => /* @__PURE__ */ f(
2810
- Ua,
2735
+ Ia,
2811
2736
  {
2812
2737
  $isInCandidateSelection: n,
2813
2738
  $placeholderRectangle: o,
@@ -2816,84 +2741,110 @@ const Ua = U.div`
2816
2741
  onAnimationEnd: r,
2817
2742
  children: e
2818
2743
  }
2819
- ), Ba = {
2820
- [Q.CIRCLE_SOLID]: /* @__PURE__ */ f(xa, {}),
2821
- [Q.ELLIPSE_SOLID]: /* @__PURE__ */ f(Aa, {}),
2822
- [Q.MAN_SOLID]: /* @__PURE__ */ f(Ra, {}),
2823
- [Q.WOMAN_SOLID]: /* @__PURE__ */ f(Ha, {}),
2824
- [Q.SQUARE_ROUNDED_DASH]: /* @__PURE__ */ f(Pa, {}),
2825
- [Q.SQUARE_ROUNDED_SOLID]: /* @__PURE__ */ f(Da, {}),
2826
- [Q.SQUARE_DASH]: /* @__PURE__ */ f(La, {}),
2827
- [Q.SQUARE_SOLID]: /* @__PURE__ */ f(Ma, {})
2744
+ ), Ta = {
2745
+ [be.CIRCLE_SOLID]: /* @__PURE__ */ f(wa, {}),
2746
+ [be.SQUARE_ROUNDED_DASH]: /* @__PURE__ */ f($a, {}),
2747
+ [be.SQUARE_ROUNDED_SOLID]: /* @__PURE__ */ f(ka, {}),
2748
+ [be.SQUARE_DASH]: /* @__PURE__ */ f(ba, {}),
2749
+ [be.SQUARE_SOLID]: /* @__PURE__ */ f(Na, {})
2828
2750
  };
2829
- function Wa({ backdropHeight: e, backdropWidth: t, isBackdrop: n, placeholderRectangle: r, ...o }) {
2830
- const { placeholder: i } = Se(), s = i.toLowerCase().includes("square"), c = i.toLowerCase().includes("rounded");
2751
+ function xa({ backdropHeight: e, backdropWidth: t, isBackdrop: n, placeholderRectangle: r, ...o }) {
2752
+ const { placeholder: i } = Se(), s = i.toLowerCase().includes("square"), a = i.toLowerCase().includes("rounded");
2831
2753
  return /* @__PURE__ */ f(z, { children: [
2832
- n && /* @__PURE__ */ f(bo, { height: e, width: t, children: /* @__PURE__ */ f(
2833
- Ta,
2754
+ n && /* @__PURE__ */ f(yo, { height: e, width: t, children: /* @__PURE__ */ f(
2755
+ Ea,
2834
2756
  {
2835
2757
  height: `${r.height * 100}%`,
2836
- isRounded: c,
2758
+ isRounded: a,
2837
2759
  isSquare: s,
2838
2760
  width: `${r.width * 100}%`,
2839
2761
  x: `${r.shiftX * 100}%`,
2840
2762
  y: `${r.shiftY * 100}%`
2841
2763
  }
2842
2764
  ) }),
2843
- /* @__PURE__ */ f(Fa, { placeholderRectangle: r, ...o, children: Ba[i] })
2765
+ /* @__PURE__ */ f(Oa, { placeholderRectangle: r, ...o, children: Ta[i] })
2844
2766
  ] });
2845
2767
  }
2846
- const za = () => {
2847
- const [e, t] = M(), [n, r] = M(!1), o = ge(
2848
- (a) => {
2849
- var d, l;
2850
- t((d = a == null ? void 0 : a.detail) == null ? void 0 : d.cameraResolution);
2851
- const u = (l = a == null ? void 0 : a.detail) == null ? void 0 : l.isMirroring;
2852
- u !== void 0 && r(u);
2768
+ function Aa({ eventName: e }) {
2769
+ const [t, n] = L([]), r = ae(
2770
+ (o) => {
2771
+ var s;
2772
+ const i = (s = o.detail) == null ? void 0 : s.instructionCode;
2773
+ i && n((a) => [...a, i]);
2853
2774
  },
2854
- [t]
2775
+ [n]
2855
2776
  );
2856
- qe(Ve.CAMERA_PROPS_CHANGED, o);
2857
- const [i, s] = M({
2858
- code: L.FACE_NOT_PRESENT,
2859
- // FIXME Default instruction should not be here
2777
+ return $e(e, r), {
2778
+ escalatedInstructionCodes: t
2779
+ };
2780
+ }
2781
+ function Ra({
2782
+ customEvents: e,
2783
+ defaultInstructionCode: t
2784
+ }) {
2785
+ const [n, r] = L(), [o, i] = L(!1), s = ae(
2786
+ (g) => {
2787
+ var m, p;
2788
+ r((m = g == null ? void 0 : g.detail) == null ? void 0 : m.cameraResolution);
2789
+ const y = (p = g == null ? void 0 : g.detail) == null ? void 0 : p.isMirroring;
2790
+ y !== void 0 && i(y);
2791
+ },
2792
+ [r]
2793
+ );
2794
+ $e(e.CAMERA_PROPS_CHANGED, s);
2795
+ const [a, l] = L({
2796
+ code: t,
2860
2797
  isEscalated: !1
2861
- }), c = ge(
2862
- (a) => {
2863
- var u, d;
2864
- s({
2865
- code: (u = a == null ? void 0 : a.detail) == null ? void 0 : u.instructionCode,
2866
- isEscalated: ((d = a == null ? void 0 : a.detail) == null ? void 0 : d.isEscalated) ?? !1
2798
+ }), u = ae(
2799
+ (g) => {
2800
+ var m, p;
2801
+ const y = g;
2802
+ l({
2803
+ code: (m = y == null ? void 0 : y.detail) == null ? void 0 : m.instructionCode,
2804
+ isEscalated: ((p = y == null ? void 0 : y.detail) == null ? void 0 : p.isEscalated) ?? !1
2867
2805
  });
2868
2806
  },
2869
- [s]
2807
+ [l]
2870
2808
  );
2871
- return qe(Ve.INSTRUCTION_CHANGED, c), {
2872
- cameraResolution: e,
2873
- instruction: i,
2874
- isMirroring: n
2875
- };
2876
- }, ja = () => {
2877
- const [e, t] = M(pt.NEUTRAL), [n, r] = M(be.LOADING), [o, i] = M(), s = ge(
2878
- (c) => {
2879
- const { error: a, phase: u, state: d } = c.detail || {};
2880
- u && t(u), d && r(d), a && i(a);
2809
+ $e(e.INSTRUCTION_CHANGED, u);
2810
+ const [d, c] = L(U.LOADING), [h, _] = L(), v = ae(
2811
+ (g) => {
2812
+ var m, p;
2813
+ c((m = g.detail) == null ? void 0 : m.appState);
2814
+ const y = (p = g == null ? void 0 : g.detail) == null ? void 0 : p.error;
2815
+ y && _(y);
2881
2816
  },
2882
- [t, r, i]
2817
+ [c, _]
2883
2818
  );
2884
- return qe(pn.STATUS_CHANGED, s), {
2885
- smilePhase: e,
2886
- smileState: n,
2887
- smileError: o
2819
+ return $e(e.STATE_CHANGED, v), {
2820
+ cameraResolution: n,
2821
+ instruction: a,
2822
+ isMirroring: o,
2823
+ appState: d,
2824
+ error: h
2825
+ };
2826
+ }
2827
+ function Pa() {
2828
+ const e = Ra({
2829
+ customEvents: Ye,
2830
+ defaultInstructionCode: X.FACE_NOT_PRESENT
2831
+ }), [t, n] = L(ht.NEUTRAL), r = ae((o) => {
2832
+ const i = o, { phaseName: s } = i.detail;
2833
+ n(s);
2834
+ }, []);
2835
+ return $e(Ye.PHASE_CHANGED, r), {
2836
+ ...e,
2837
+ phase: t
2888
2838
  };
2889
- }, pr = ".3s", Ga = ".2s", Va = ".8s", mr = ".4s", gr = ".4s", Ya = ".5s", qa = "1.5s", Za = 2e3, yr = le`
2839
+ }
2840
+ const lr = ".3s", La = ".2s", Da = ".8s", ur = ".4s", fr = ".4s", Ma = ".5s", Ha = "1.5s", Ua = 2e3, dr = ue`
2890
2841
  0%, 100% {
2891
2842
  transform: scale(1);
2892
2843
  }
2893
2844
  50% {
2894
2845
  transform: scale(2);
2895
2846
  }
2896
- `, Xa = le`
2847
+ `, Fa = ue`
2897
2848
  0%, 100% {
2898
2849
  transform: scale(1,1);
2899
2850
  opacity: 1;
@@ -2902,50 +2853,40 @@ const za = () => {
2902
2853
  transform: scale(1,0.1);
2903
2854
  opacity: 0.5;
2904
2855
  }
2905
- `, vr = le`
2856
+ `, _r = ue`
2906
2857
  0% {
2907
2858
  stroke-dashoffset: 100;
2908
2859
  }
2909
2860
  100% {
2910
2861
  stroke-dashoffset: 200;
2911
2862
  }
2912
- `, $o = le`
2863
+ `, vo = ue`
2913
2864
  from {
2914
2865
  opacity: 1;
2915
2866
  }
2916
2867
  to {
2917
2868
  opacity: 0;
2918
2869
  }
2919
- `, Ka = (e, t) => {
2920
- const [n, r] = M(!1);
2921
- return X(() => {
2922
- t === pt.SMILE && r(!0);
2870
+ `, Ba = (e, t) => {
2871
+ const [n, r] = L(!1);
2872
+ return Q(() => {
2873
+ if (t !== ht.SMILE) {
2874
+ r(!1);
2875
+ return;
2876
+ }
2877
+ r(!0);
2923
2878
  const o = setTimeout(() => {
2924
2879
  r(!1);
2925
- }, Za);
2880
+ }, Ua);
2926
2881
  return () => clearTimeout(o);
2927
- }, [t]), t === pt.SMILE && e === ne.CANDIDATE_SELECTION ? ne.SMILE_CANDIDATE_SELECTION : n ? ne.SMILE : e;
2928
- };
2929
- function Qa({ eventName: e }) {
2930
- const [t, n] = M([]), r = ge(
2931
- (o) => {
2932
- var s;
2933
- const i = (s = o.detail) == null ? void 0 : s.instructionCode;
2934
- i && n((c) => [...c, i]);
2935
- },
2936
- [n]
2937
- );
2938
- return qe(e, r), {
2939
- escalatedInstructionCodes: t
2940
- };
2941
- }
2942
- const Ja = U.div`
2882
+ }, [t]), t === ht.SMILE && e === X.CANDIDATE_SELECTION ? X.SMILE_CANDIDATE_SELECTION : n ? X.SMILE : e;
2883
+ }, Wa = F.div`
2943
2884
  position: absolute;
2944
2885
  top: ${(e) => e.$initialPosition.shiftY * 100}%;
2945
2886
  bottom: ${(e) => (1 - e.$initialPosition.shiftY - e.$initialPosition.height) * 100}%;
2946
2887
  left: ${(e) => e.$initialPosition.shiftX * 100}%;
2947
2888
  right: ${(e) => (1 - e.$initialPosition.shiftX - e.$initialPosition.width) * 100}%;
2948
- animation: ${$o} ${Ya} ${qa} ease-in-out;
2889
+ animation: ${vo} ${Ma} ${Ha} ease-in-out;
2949
2890
  animation-fill-mode: forwards;
2950
2891
  z-index: 1;
2951
2892
 
@@ -2956,7 +2897,7 @@ const Ja = U.div`
2956
2897
  stroke-linecap: round;
2957
2898
  stroke-dasharray: 100;
2958
2899
  stroke-dashoffset: 100;
2959
- animation: ${vr} ${mr} ${gr} forwards;
2900
+ animation: ${_r} ${ur} ${fr} forwards;
2960
2901
  }
2961
2902
  #right-mouth {
2962
2903
  fill: none;
@@ -2967,29 +2908,29 @@ const Ja = U.div`
2967
2908
  stroke-dashoffset: 100;
2968
2909
  transform: scale(-1, 1);
2969
2910
  transform-origin: 119.4px 191.7px;
2970
- animation: ${vr} ${mr} ${gr} forwards;
2911
+ animation: ${_r} ${ur} ${fr} forwards;
2971
2912
  }
2972
2913
  #left-eye {
2973
2914
  transform-origin: 86.8px 96px;
2974
2915
  fill: #ffffff;
2975
- animation: ${yr} ${pr} forwards;
2916
+ animation: ${dr} ${lr} forwards;
2976
2917
  }
2977
2918
  #right-eye {
2978
2919
  transform-origin: 173.2px 96px;
2979
2920
  fill: #ffffff;
2980
2921
  animation:
2981
- ${yr} ${pr} forwards,
2982
- ${Xa} ${Ga} ${Va} forwards;
2983
- }
2984
- `, ec = ({ animate: e, initialPosition: t, show: n }) => {
2985
- const [r, o] = M(!0);
2986
- return X(() => {
2987
- e && o(!0);
2988
- }, [e]), !r || !n ? null : /* @__PURE__ */ f(
2989
- Ja,
2922
+ ${dr} ${lr} forwards,
2923
+ ${Fa} ${La} ${Da} forwards;
2924
+ }
2925
+ `, ja = ({ animate: e, initialPosition: t, show: n }) => {
2926
+ const [r, o] = L(!0);
2927
+ return Q(() => {
2928
+ (e || n) && o(!0);
2929
+ }, [e, n]), !r || !n ? null : /* @__PURE__ */ f(
2930
+ Wa,
2990
2931
  {
2991
2932
  $initialPosition: t,
2992
- onAnimationEnd: (i) => i.animationName === $o.getName() && o(!1),
2933
+ onAnimationEnd: (i) => i.animationName === vo.getName() && o(!1),
2993
2934
  children: /* @__PURE__ */ f("svg", { viewBox: "0 0 260 260", children: [
2994
2935
  /* @__PURE__ */ f("circle", { cx: "86.8", cy: "96", id: "left-eye", r: "9.6" }),
2995
2936
  /* @__PURE__ */ f("circle", { cx: "173.2", cy: "96", id: "right-eye", r: "9.6" }),
@@ -2998,89 +2939,104 @@ const Ja = U.div`
2998
2939
  ] })
2999
2940
  }
3000
2941
  );
3001
- }, tc = () => {
3002
- const { cameraResolution: e, instruction: t } = za(), { smileError: n, smilePhase: r, smileState: o } = ja(), i = Ka(t.code, r), { escalatedInstructionCodes: s } = Qa({
3003
- eventName: pn.INSTRUCTION_ESCALATED
3004
- }), { escalatedInstructions: c, instructions: a } = Se(), u = t.code === ne.CANDIDATE_SELECTION, d = Vs({
3005
- escalatedInstructions: c,
3006
- instructions: a,
2942
+ }, za = () => {
2943
+ const { appState: e, cameraResolution: t, error: n, instruction: r, phase: o } = Pa(), i = Ba(r.code, o), { escalatedInstructionCodes: s } = Aa({
2944
+ eventName: Ye.INSTRUCTION_ESCALATED
2945
+ }), { escalatedInstructions: a, instructions: l } = Se(), u = r.code === X.CANDIDATE_SELECTION, d = Ms({
2946
+ escalatedInstructions: a,
2947
+ instructions: l,
3007
2948
  currentInstruction: {
3008
- ...t,
2949
+ ...r,
3009
2950
  code: i
3010
2951
  }
3011
2952
  });
3012
- if (o === be.ERROR)
3013
- return /* @__PURE__ */ f(So, { text: n == null ? void 0 : n.message });
3014
- if ((o === be.RUNNING || o === be.WAITING) && e) {
3015
- const l = la(e);
2953
+ if (e === U.ERROR)
2954
+ return /* @__PURE__ */ f(po, { text: n == null ? void 0 : n.message });
2955
+ if ((e === U.RUNNING || e === U.WAITING) && t) {
2956
+ const c = ea(t);
3016
2957
  return /* @__PURE__ */ f(z, { children: [
3017
2958
  /* @__PURE__ */ f(
3018
- Wa,
2959
+ xa,
3019
2960
  {
3020
- backdropHeight: e.height,
3021
- backdropWidth: e.width,
2961
+ backdropHeight: t.height,
2962
+ backdropWidth: t.width,
3022
2963
  isBackdrop: !0,
3023
2964
  isInCandidateSelection: u,
3024
- placeholderRectangle: l
2965
+ placeholderRectangle: c
3025
2966
  }
3026
2967
  ),
3027
2968
  /* @__PURE__ */ f(
3028
- ec,
2969
+ ja,
3029
2970
  {
3030
2971
  animate: s.includes("mouth_score_too_low"),
3031
- initialPosition: l,
3032
- show: r === pt.SMILE
2972
+ initialPosition: c,
2973
+ show: o === ht.SMILE
3033
2974
  }
3034
2975
  ),
3035
2976
  d && /* @__PURE__ */ f(
3036
- $a,
2977
+ ga,
3037
2978
  {
3038
- cssBottom: (l.height + l.shiftY) * 100,
2979
+ cssBottom: (c.height + c.shiftY) * 100,
3039
2980
  isAnimating: !1,
3040
2981
  isInCandidateSelection: u,
3041
- isPortrait: e.width < e.height,
2982
+ isPortrait: t.width < t.height,
3042
2983
  children: d
3043
2984
  }
3044
2985
  ),
3045
- /* @__PURE__ */ f(ya, { customControlEvent: Ve.CONTROL, isSwitchCameraDisabled: u })
2986
+ /* @__PURE__ */ f(ua, { customControlEvent: Ye.CONTROL, isSwitchCameraDisabled: u })
3046
2987
  ] });
3047
2988
  }
3048
2989
  return /* @__PURE__ */ f(
3049
- Ia,
2990
+ Sa,
3050
2991
  {
3051
- cameraHeight: e == null ? void 0 : e.height,
3052
- cameraWidth: e == null ? void 0 : e.width,
3053
- state: o
2992
+ cameraHeight: t == null ? void 0 : t.height,
2993
+ cameraWidth: t == null ? void 0 : t.width,
2994
+ isBackdrop: !0,
2995
+ state: e
3054
2996
  }
3055
2997
  );
3056
- }, nc = (e) => {
3057
- var c, a;
2998
+ };
2999
+ function Ga(e) {
3000
+ var s, a, l, u, d, c;
3058
3001
  const t = {
3059
- ...Hs,
3002
+ ...Os,
3060
3003
  ...e == null ? void 0 : e.instructions
3061
3004
  }, n = {
3062
- ...Us,
3005
+ ...Ts,
3063
3006
  ...e == null ? void 0 : e.escalatedInstructions
3064
3007
  };
3065
3008
  t.mouth_score_too_low = t.smile, n.mouth_score_too_low = n.smile, t.mouth_score_too_high = t.keep_neutral_expression, n.mouth_score_too_high = n.keep_neutral_expression;
3066
3009
  const r = {
3067
- [be.LOADING]: {
3068
- ...dr.loading,
3069
- ...(c = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : c.loading
3010
+ [U.LOADING]: {
3011
+ ...Ht.loading,
3012
+ ...(s = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : s.loading
3013
+ },
3014
+ [U.WAITING]: {
3015
+ ...Ht.waiting,
3016
+ ...(a = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : a.waiting
3070
3017
  },
3071
- [be.DONE]: { ...dr.done, ...(a = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : a.done }
3072
- }, o = (e == null ? void 0 : e.backdropColor) ?? Fs, i = (e == null ? void 0 : e.showCameraButtons) ?? !1, s = sa(e == null ? void 0 : e.theme);
3018
+ [U.COMPLETE]: {
3019
+ ...Ht.waiting,
3020
+ ...(l = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : l.waiting
3021
+ }
3022
+ }, o = {
3023
+ ...e == null ? void 0 : e.styling,
3024
+ backdropColor: ((u = e == null ? void 0 : e.styling) == null ? void 0 : u.backdropColor) ?? xs,
3025
+ theme: Ks((d = e == null ? void 0 : e.styling) == null ? void 0 : d.theme)
3026
+ }, i = {
3027
+ showCameraButtons: ((c = e == null ? void 0 : e.control) == null ? void 0 : c.showCameraButtons) ?? !1
3028
+ };
3073
3029
  return {
3074
- placeholder: Q.CIRCLE_SOLID,
3075
- backdropColor: o,
3030
+ placeholder: be.CIRCLE_SOLID,
3076
3031
  instructions: t,
3077
3032
  appStateInstructions: r,
3078
- showCameraButtons: i,
3079
- theme: s,
3080
- escalatedInstructions: n
3033
+ escalatedInstructions: n,
3034
+ styling: o,
3035
+ control: i
3081
3036
  };
3082
- }, rc = ({ props: e }) => {
3083
- const t = na(Ve.VIDEO_ELEMENT_SIZE);
3084
- return /* @__PURE__ */ f(Js, { uiProps: nc(e), videoElementSize: t, children: /* @__PURE__ */ f(tc, {}) });
3037
+ }
3038
+ const Va = ({ configuration: e }) => {
3039
+ const t = Ys(Ye.VIDEO_ELEMENT_SIZE);
3040
+ return /* @__PURE__ */ f(zs, { uiConfiguration: Ga(e), videoElementSize: t, children: /* @__PURE__ */ f(za, {}) });
3085
3041
  };
3086
- Wo(rc, "x-dot-smile-liveness-ui", ["props"]);
3042
+ Po(Va, "x-dot-smile-liveness-ui", ["configuration"]);