@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
package/document.mjs CHANGED
@@ -1,25 +1,22 @@
1
- var bo = Object.defineProperty;
2
- var Eo = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var tt = (e, t, r) => Eo(e, typeof t != "symbol" ? t + "" : t, r);
4
- var qe, C, _n, de, Er, mn, gn, Ln, ar, Zt, Bt, yn, Ge = {}, vn = [], Vo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
1
+ var qe, C, dn, de, Cr, hn, fn, pn, rr, Pt, Ht, _n, Ge = {}, mn = [], vo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
5
2
  function X(e, t) {
6
3
  for (var r in t) e[r] = t[r];
7
4
  return e;
8
5
  }
9
- function sr(e) {
6
+ function nr(e) {
10
7
  e && e.parentNode && e.parentNode.removeChild(e);
11
8
  }
12
- function T(e, t, r) {
9
+ function D(e, t, r) {
13
10
  var n, o, i, a = {};
14
11
  for (i in t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
15
12
  if (arguments.length > 2 && (a.children = arguments.length > 3 ? qe.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
16
13
  return We(e, a, n, o, null);
17
14
  }
18
15
  function We(e, t, r, n, o) {
19
- var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++_n, __i: -1, __u: 0 };
16
+ var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++dn, __i: -1, __u: 0 };
20
17
  return o == null && C.vnode != null && C.vnode(i), i;
21
18
  }
22
- function ko() {
19
+ function Co() {
23
20
  return { current: null };
24
21
  }
25
22
  function H(e) {
@@ -28,46 +25,46 @@ function H(e) {
28
25
  function j(e, t) {
29
26
  this.props = e, this.context = t;
30
27
  }
31
- function Ee(e, t) {
32
- if (t == null) return e.__ ? Ee(e.__, e.__i + 1) : null;
28
+ function Ve(e, t) {
29
+ if (t == null) return e.__ ? Ve(e.__, e.__i + 1) : null;
33
30
  for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
34
- return typeof e.type == "function" ? Ee(e) : null;
31
+ return typeof e.type == "function" ? Ve(e) : null;
35
32
  }
36
- function Cn(e) {
33
+ function gn(e) {
37
34
  var t, r;
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 ((r = e.__k[t]) != null && r.__e != null) {
40
37
  e.__e = e.__c.base = r.__e;
41
38
  break;
42
39
  }
43
- return Cn(e);
40
+ return gn(e);
44
41
  }
45
42
  }
46
- function Ut(e) {
47
- (!e.__d && (e.__d = !0) && de.push(e) && !pt.__r++ || Er != C.debounceRendering) && ((Er = C.debounceRendering) || mn)(pt);
43
+ function Zt(e) {
44
+ (!e.__d && (e.__d = !0) && de.push(e) && !ft.__r++ || Cr != C.debounceRendering) && ((Cr = C.debounceRendering) || hn)(ft);
48
45
  }
49
- function pt() {
50
- for (var e, t, r, n, o, i, a, c = 1; de.length; ) de.length > c && de.sort(gn), e = de.shift(), c = de.length, e.__d && (r = void 0, o = (n = (t = e).__v).__e, i = [], a = [], t.__P && ((r = X({}, n)).__v = n.__v + 1, C.vnode && C.vnode(r), cr(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o ?? Ee(n), !!(32 & n.__u), a), r.__v = n.__v, r.__.__k[r.__i] = r, bn(i, r, a), r.__e != o && Cn(r)));
51
- pt.__r = 0;
46
+ function ft() {
47
+ for (var e, t, r, n, o, i, a, c = 1; de.length; ) de.length > c && de.sort(fn), e = de.shift(), c = de.length, e.__d && (r = void 0, o = (n = (t = e).__v).__e, i = [], a = [], t.__P && ((r = X({}, n)).__v = n.__v + 1, C.vnode && C.vnode(r), or(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o ?? Ve(n), !!(32 & n.__u), a), r.__v = n.__v, r.__.__k[r.__i] = r, vn(i, r, a), r.__e != o && gn(r)));
48
+ ft.__r = 0;
52
49
  }
53
- function wn(e, t, r, n, o, i, a, c, u, d, h) {
54
- var l, p, f, _, L, y, m = n && n.__k || vn, g = t.length;
55
- for (u = xo(r, t, m, u, g), l = 0; l < g; l++) (f = r.__k[l]) != null && (p = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = l, y = cr(e, f, p, o, i, a, c, u, d, h), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && lr(p.ref, null, f), h.push(f.ref, f.__c || _, f)), L == null && _ != null && (L = _), 4 & f.__u || p.__k === f.__k ? u = Sn(f, u, e) : typeof f.type == "function" && y !== void 0 ? u = y : _ && (u = _.nextSibling), f.__u &= -7);
50
+ function Ln(e, t, r, n, o, i, a, c, u, d, f) {
51
+ var l, p, h, _, L, y, m = n && n.__k || mn, g = t.length;
52
+ for (u = wo(r, t, m, u, g), l = 0; l < g; l++) (h = r.__k[l]) != null && (p = h.__i == -1 ? Ge : m[h.__i] || Ge, h.__i = l, y = or(e, h, p, o, i, a, c, u, d, f), _ = h.__e, h.ref && p.ref != h.ref && (p.ref && ir(p.ref, null, h), f.push(h.ref, h.__c || _, h)), L == null && _ != null && (L = _), 4 & h.__u || p.__k === h.__k ? u = yn(h, u, e) : typeof h.type == "function" && y !== void 0 ? u = y : _ && (u = _.nextSibling), h.__u &= -7);
56
53
  return r.__e = L, u;
57
54
  }
58
- function xo(e, t, r, n, o) {
59
- var i, a, c, u, d, h = r.length, l = h, p = 0;
60
- for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (u = i + p, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? We(null, a, null, null, null) : Ye(a) ? We(H, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? We(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (d = a.__i = $o(a, r, u, l)) != -1 && (l--, (c = r[d]) && (c.__u |= 2)), c == null || c.__v == null ? (d == -1 && (o > h ? p-- : o < h && p++), typeof a.type != "function" && (a.__u |= 4)) : d != u && (d == u - 1 ? p-- : d == u + 1 ? p++ : (d > u ? p-- : p++, a.__u |= 4))) : e.__k[i] = null;
61
- if (l) for (i = 0; i < h; i++) (c = r[i]) != null && (2 & c.__u) == 0 && (c.__e == n && (n = Ee(c)), Vn(c, c));
55
+ function wo(e, t, r, n, o) {
56
+ var i, a, c, u, d, f = r.length, l = f, p = 0;
57
+ for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (u = i + p, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? We(null, a, null, null, null) : Ye(a) ? We(H, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? We(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (d = a.__i = So(a, r, u, l)) != -1 && (l--, (c = r[d]) && (c.__u |= 2)), c == null || c.__v == null ? (d == -1 && (o > f ? p-- : o < f && p++), typeof a.type != "function" && (a.__u |= 4)) : d != u && (d == u - 1 ? p-- : d == u + 1 ? p++ : (d > u ? p-- : p++, a.__u |= 4))) : e.__k[i] = null;
58
+ if (l) for (i = 0; i < f; i++) (c = r[i]) != null && (2 & c.__u) == 0 && (c.__e == n && (n = Ve(c)), wn(c, c));
62
59
  return n;
63
60
  }
64
- function Sn(e, t, r) {
61
+ function yn(e, t, r) {
65
62
  var n, o;
66
63
  if (typeof e.type == "function") {
67
- for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = Sn(n[o], t, r));
64
+ for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = yn(n[o], t, r));
68
65
  return t;
69
66
  }
70
- e.__e != t && (t && e.type && !r.contains(t) && (t = Ee(e)), r.insertBefore(e.__e, t || null), t = e.__e);
67
+ e.__e != t && (t && e.type && !r.contains(t) && (t = Ve(e)), r.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);
@@ -78,7 +75,7 @@ function te(e, t) {
78
75
  te(r, t);
79
76
  }) : t.push(e)), t;
80
77
  }
81
- function $o(e, t, r, n) {
78
+ function So(e, t, r, n) {
82
79
  var o, i, a = e.key, c = e.type, u = t[r];
83
80
  if (u === null && e.key == null || u && a == u.key && c == u.type && (2 & u.__u) == 0) return r;
84
81
  if (n > (u != null && (2 & u.__u) == 0 ? 1 : 0)) for (o = r - 1, i = r + 1; o >= 0 || i < t.length; ) {
@@ -93,17 +90,17 @@ function $o(e, t, r, n) {
93
90
  }
94
91
  return -1;
95
92
  }
96
- function Vr(e, t, r) {
97
- t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || Vo.test(t) ? r : r + "px";
93
+ function wr(e, t, r) {
94
+ t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || vo.test(t) ? r : r + "px";
98
95
  }
99
- function rt(e, t, r, n, o) {
96
+ function tt(e, t, r, n, o) {
100
97
  var i;
101
98
  e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
102
99
  else {
103
- if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Vr(e.style, t, "");
104
- if (r) for (t in r) n && r[t] == n[t] || Vr(e.style, t, r[t]);
100
+ if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || wr(e.style, t, "");
101
+ if (r) for (t in r) n && r[t] == n[t] || wr(e.style, t, r[t]);
105
102
  }
106
- else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(Ln, "$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] = r, r ? n ? r.u = n.u : (r.u = ar, e.addEventListener(t, i ? Bt : Zt, i)) : e.removeEventListener(t, i ? Bt : Zt, i);
103
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pn, "$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] = r, r ? n ? r.u = n.u : (r.u = rr, e.addEventListener(t, i ? Ht : Pt, i)) : e.removeEventListener(t, i ? Ht : Pt, 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,24 +111,24 @@ function rt(e, t, r, n, o) {
114
111
  typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
115
112
  }
116
113
  }
117
- function kr(e) {
114
+ function Sr(e) {
118
115
  return function(t) {
119
116
  if (this.l) {
120
117
  var r = this.l[t.type + e];
121
- if (t.t == null) t.t = ar++;
118
+ if (t.t == null) t.t = rr++;
122
119
  else if (t.t < r.u) return;
123
120
  return r(C.event ? C.event(t) : t);
124
121
  }
125
122
  };
126
123
  }
127
- function cr(e, t, r, n, o, i, a, c, u, d) {
128
- var h, l, p, f, _, L, y, m, g, V, b, x, S, v, A, B, De, U = t.type;
124
+ function or(e, t, r, n, o, i, a, c, u, d) {
125
+ var f, l, p, h, _, L, y, m, g, E, b, x, S, v, A, B, Re, U = t.type;
129
126
  if (t.constructor != null) return null;
130
- 128 & r.__u && (u = !!(32 & r.__u), i = [c = t.__e = r.__e]), (h = C.__b) && h(t);
127
+ 128 & r.__u && (u = !!(32 & r.__u), i = [c = t.__e = r.__e]), (f = C.__b) && f(t);
131
128
  e: if (typeof U == "function") try {
132
- if (m = t.props, g = "prototype" in U && U.prototype.render, V = (h = U.contextType) && n[h.__c], b = h ? V ? V.props.value : h.__ : n, r.__c ? y = (l = t.__c = r.__c).__ = l.__E : (g ? t.__c = l = new U(m, b) : (t.__c = l = new j(m, b), l.constructor = U, l.render = Mo), V && V.sub(l), l.props = m, l.state || (l.state = {}), l.context = b, l.__n = n, p = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && U.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = X({}, l.__s)), X(l.__s, U.getDerivedStateFromProps(m, l.__s))), f = l.props, _ = l.state, l.__v = t, p) g && U.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
129
+ if (m = t.props, g = "prototype" in U && U.prototype.render, E = (f = U.contextType) && n[f.__c], b = f ? E ? E.props.value : f.__ : n, r.__c ? y = (l = t.__c = r.__c).__ = l.__E : (g ? t.__c = l = new U(m, b) : (t.__c = l = new j(m, b), l.constructor = U, l.render = Vo), E && E.sub(l), l.props = m, l.state || (l.state = {}), l.context = b, l.__n = n, p = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && U.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = X({}, l.__s)), X(l.__s, U.getDerivedStateFromProps(m, l.__s))), h = l.props, _ = l.state, l.__v = t, p) g && U.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
133
130
  else {
134
- if (g && U.getDerivedStateFromProps == null && m !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, b), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, b) === !1 || t.__v == r.__v) {
131
+ if (g && U.getDerivedStateFromProps == null && m !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, b), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, b) === !1 || t.__v == r.__v) {
135
132
  for (t.__v != r.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(le) {
136
133
  le && (le.__ = t);
137
134
  }), x = 0; x < l._sb.length; x++) l.__h.push(l._sb[x]);
@@ -139,29 +136,29 @@ function cr(e, t, r, n, o, i, a, c, u, d) {
139
136
  break e;
140
137
  }
141
138
  l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, b), g && l.componentDidUpdate != null && l.__h.push(function() {
142
- l.componentDidUpdate(f, _, L);
139
+ l.componentDidUpdate(h, _, L);
143
140
  });
144
141
  }
145
142
  if (l.context = b, l.props = m, l.__P = e, l.__e = !1, S = C.__r, v = 0, g) {
146
- for (l.state = l.__s, l.__d = !1, S && S(t), h = l.render(l.props, l.state, l.context), A = 0; A < l._sb.length; A++) l.__h.push(l._sb[A]);
143
+ for (l.state = l.__s, l.__d = !1, S && S(t), f = l.render(l.props, l.state, l.context), A = 0; A < l._sb.length; A++) l.__h.push(l._sb[A]);
147
144
  l._sb = [];
148
145
  } else do
149
- l.__d = !1, S && S(t), h = l.render(l.props, l.state, l.context), l.state = l.__s;
146
+ l.__d = !1, S && S(t), f = l.render(l.props, l.state, l.context), l.state = l.__s;
150
147
  while (l.__d && ++v < 25);
151
- l.state = l.__s, l.getChildContext != null && (n = X(X({}, n), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (L = l.getSnapshotBeforeUpdate(f, _)), B = h, h != null && h.type === H && h.key == null && (B = En(h.props.children)), c = wn(e, Ye(B) ? B : [B], t, r, n, o, i, a, c, u, d), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), y && (l.__E = l.__ = null);
148
+ l.state = l.__s, l.getChildContext != null && (n = X(X({}, n), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (L = l.getSnapshotBeforeUpdate(h, _)), B = f, f != null && f.type === H && f.key == null && (B = Cn(f.props.children)), c = Ln(e, Ye(B) ? B : [B], t, r, n, o, i, a, c, u, d), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), y && (l.__E = l.__ = null);
152
149
  } catch (le) {
153
150
  if (t.__v = null, u || i != null) if (le.then) {
154
151
  for (t.__u |= u ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
155
152
  i[i.indexOf(c)] = null, t.__e = c;
156
- } else for (De = i.length; De--; ) sr(i[De]);
153
+ } else for (Re = i.length; Re--; ) nr(i[Re]);
157
154
  else t.__e = r.__e, t.__k = r.__k;
158
155
  C.__e(le, t, r);
159
156
  }
160
- else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e = Oo(r.__e, t, r, n, o, i, a, u, d);
161
- return (h = C.diffed) && h(t), 128 & t.__u ? void 0 : c;
157
+ else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : c = t.__e = bo(r.__e, t, r, n, o, i, a, u, d);
158
+ return (f = C.diffed) && f(t), 128 & t.__u ? void 0 : c;
162
159
  }
163
- function bn(e, t, r) {
164
- for (var n = 0; n < r.length; n++) lr(r[n], r[++n], r[++n]);
160
+ function vn(e, t, r) {
161
+ for (var n = 0; n < r.length; n++) ir(r[n], r[++n], r[++n]);
165
162
  C.__c && C.__c(t, e), e.some(function(o) {
166
163
  try {
167
164
  e = o.__h, o.__h = [], e.some(function(i) {
@@ -172,14 +169,14 @@ function bn(e, t, r) {
172
169
  }
173
170
  });
174
171
  }
175
- function En(e) {
176
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(En) : X({}, e);
172
+ function Cn(e) {
173
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Cn) : X({}, e);
177
174
  }
178
- function Oo(e, t, r, n, o, i, a, c, u) {
179
- var d, h, l, p, f, _, L, y = r.props, m = t.props, g = t.type;
175
+ function bo(e, t, r, n, o, i, a, c, u) {
176
+ var d, f, l, p, h, _, L, y = r.props, m = t.props, g = t.type;
180
177
  if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
181
- for (d = 0; d < i.length; d++) if ((f = i[d]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
182
- e = f, i[d] = null;
178
+ for (d = 0; d < i.length; d++) if ((h = i[d]) && "setAttribute" in h == !!g && (g ? h.localName == g : h.nodeType == 3)) {
179
+ e = h, i[d] = null;
183
180
  break;
184
181
  }
185
182
  }
@@ -189,22 +186,22 @@ function Oo(e, t, r, n, o, i, a, c, u) {
189
186
  }
190
187
  if (g == null) y === m || c && e.data == m || (e.data = m);
191
188
  else {
192
- if (i = i && qe.call(e.childNodes), y = r.props || Ge, !c && i != null) for (y = {}, d = 0; d < e.attributes.length; d++) y[(f = e.attributes[d]).name] = f.value;
193
- for (d in y) if (f = y[d], d != "children") {
194
- if (d == "dangerouslySetInnerHTML") l = f;
189
+ if (i = i && qe.call(e.childNodes), y = r.props || Ge, !c && i != null) for (y = {}, d = 0; d < e.attributes.length; d++) y[(h = e.attributes[d]).name] = h.value;
190
+ for (d in y) if (h = y[d], d != "children") {
191
+ if (d == "dangerouslySetInnerHTML") l = h;
195
192
  else if (!(d in m)) {
196
193
  if (d == "value" && "defaultValue" in m || d == "checked" && "defaultChecked" in m) continue;
197
- rt(e, d, null, f, o);
194
+ tt(e, d, null, h, o);
198
195
  }
199
196
  }
200
- for (d in m) f = m[d], d == "children" ? p = f : d == "dangerouslySetInnerHTML" ? h = f : d == "value" ? _ = f : d == "checked" ? L = f : c && typeof f != "function" || y[d] === f || rt(e, d, f, y[d], o);
201
- if (h) c || l && (h.__html == l.__html || h.__html == e.innerHTML) || (e.innerHTML = h.__html), t.__k = [];
202
- else if (l && (e.innerHTML = ""), wn(t.type == "template" ? e.content : e, Ye(p) ? p : [p], t, r, n, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : r.__k && Ee(r, 0), c, u), i != null) for (d = i.length; d--; ) sr(i[d]);
203
- c || (d = "value", g == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || g == "progress" && !_ || g == "option" && _ != y[d]) && rt(e, d, _, y[d], o), d = "checked", L != null && L != e[d] && rt(e, d, L, y[d], o));
197
+ for (d in m) h = m[d], d == "children" ? p = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? _ = h : d == "checked" ? L = h : c && typeof h != "function" || y[d] === h || tt(e, d, h, y[d], o);
198
+ if (f) c || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
199
+ else if (l && (e.innerHTML = ""), Ln(t.type == "template" ? e.content : e, Ye(p) ? p : [p], t, r, n, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : r.__k && Ve(r, 0), c, u), i != null) for (d = i.length; d--; ) nr(i[d]);
200
+ c || (d = "value", g == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || g == "progress" && !_ || g == "option" && _ != y[d]) && tt(e, d, _, y[d], o), d = "checked", L != null && L != e[d] && tt(e, d, L, y[d], o));
204
201
  }
205
202
  return e;
206
203
  }
207
- function lr(e, t, r) {
204
+ function ir(e, t, r) {
208
205
  try {
209
206
  if (typeof e == "function") {
210
207
  var n = typeof e.__u == "function";
@@ -214,9 +211,9 @@ function lr(e, t, r) {
214
211
  C.__e(o, r);
215
212
  }
216
213
  }
217
- function Vn(e, t, r) {
214
+ function wn(e, t, r) {
218
215
  var n, o;
219
- if (C.unmount && C.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || lr(n, null, t)), (n = e.__c) != null) {
216
+ if (C.unmount && C.unmount(e), (n = e.ref) && (n.current && n.current != e.__e || ir(n, null, t)), (n = e.__c) != null) {
220
217
  if (n.componentWillUnmount) try {
221
218
  n.componentWillUnmount();
222
219
  } catch (i) {
@@ -224,25 +221,25 @@ function Vn(e, t, r) {
224
221
  }
225
222
  n.base = n.__P = null;
226
223
  }
227
- if (n = e.__k) for (o = 0; o < n.length; o++) n[o] && Vn(n[o], t, r || typeof e.type != "function");
228
- r || sr(e.__e), e.__c = e.__ = e.__e = void 0;
224
+ if (n = e.__k) for (o = 0; o < n.length; o++) n[o] && wn(n[o], t, r || typeof e.type != "function");
225
+ r || nr(e.__e), e.__c = e.__ = e.__e = void 0;
229
226
  }
230
- function Mo(e, t, r) {
227
+ function Vo(e, t, r) {
231
228
  return this.constructor(e, r);
232
229
  }
233
230
  function se(e, t, r) {
234
231
  var n, o, i, a;
235
- t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], cr(t, e = (!n && r || t).__k = T(H, null, [e]), o || Ge, Ge, t.namespaceURI, !n && r ? [r] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), bn(i, e, a);
232
+ t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], or(t, e = (!n && r || t).__k = D(H, null, [e]), o || Ge, Ge, t.namespaceURI, !n && r ? [r] : o ? null : t.firstChild ? qe.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), vn(i, e, a);
236
233
  }
237
- function ur(e, t) {
238
- se(e, t, ur);
234
+ function ar(e, t) {
235
+ se(e, t, ar);
239
236
  }
240
- function dr(e, t, r) {
237
+ function sr(e, t, r) {
241
238
  var n, o, i, a, c = X({}, e.props);
242
239
  for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? n = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && a != null ? a[i] : t[i];
243
240
  return arguments.length > 2 && (c.children = arguments.length > 3 ? qe.call(arguments, 2) : r), We(e.type, c, n || e.key, o || e.ref, null);
244
241
  }
245
- function kn(e) {
242
+ function Sn(e) {
246
243
  function t(r) {
247
244
  var n, o;
248
245
  return this.getChildContext || (n = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
@@ -251,7 +248,7 @@ function kn(e) {
251
248
  n = null;
252
249
  }, this.shouldComponentUpdate = function(i) {
253
250
  this.props.value != i.value && n.forEach(function(a) {
254
- a.__e = !0, Ut(a);
251
+ a.__e = !0, Zt(a);
255
252
  });
256
253
  }, this.sub = function(i) {
257
254
  n.add(i);
@@ -261,27 +258,27 @@ function kn(e) {
261
258
  };
262
259
  }), r.children;
263
260
  }
264
- return t.__c = "__cC" + yn++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, n) {
261
+ return t.__c = "__cC" + _n++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, n) {
265
262
  return r.children(n);
266
263
  }).contextType = t, t;
267
264
  }
268
- qe = vn.slice, C = { __e: function(e, t, r, n) {
265
+ qe = mn.slice, C = { __e: function(e, t, r, n) {
269
266
  for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
270
267
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), a = o.__d), a) return o.__E = o;
271
268
  } catch (c) {
272
269
  e = c;
273
270
  }
274
271
  throw e;
275
- } }, _n = 0, j.prototype.setState = function(e, t) {
272
+ } }, dn = 0, j.prototype.setState = function(e, t) {
276
273
  var r;
277
- r = this.__s != null && this.__s != this.state ? this.__s : this.__s = X({}, this.state), typeof e == "function" && (e = e(X({}, r), this.props)), e && X(r, e), e != null && this.__v && (t && this._sb.push(t), Ut(this));
274
+ r = this.__s != null && this.__s != this.state ? this.__s : this.__s = X({}, this.state), typeof e == "function" && (e = e(X({}, r), this.props)), e && X(r, e), e != null && this.__v && (t && this._sb.push(t), Zt(this));
278
275
  }, j.prototype.forceUpdate = function(e) {
279
- this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this));
280
- }, j.prototype.render = H, de = [], mn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, gn = function(e, t) {
276
+ this.__v && (this.__e = !0, e && this.__h.push(e), Zt(this));
277
+ }, j.prototype.render = H, de = [], hn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, fn = function(e, t) {
281
278
  return e.__v.__b - t.__v.__b;
282
- }, pt.__r = 0, Ln = /(PointerCapture)$|Capture$/i, ar = 0, Zt = kr(!1), Bt = kr(!0), yn = 0;
283
- function fr() {
284
- return (fr = Object.assign ? Object.assign.bind() : function(e) {
279
+ }, ft.__r = 0, pn = /(PointerCapture)$|Capture$/i, rr = 0, Pt = Sr(!1), Ht = Sr(!0), _n = 0;
280
+ function cr() {
281
+ return (cr = Object.assign ? Object.assign.bind() : function(e) {
285
282
  for (var t = 1; t < arguments.length; t++) {
286
283
  var r = arguments[t];
287
284
  for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
@@ -289,8 +286,8 @@ function fr() {
289
286
  return e;
290
287
  }).apply(this, arguments);
291
288
  }
292
- var No = ["context", "children"];
293
- function Io(e) {
289
+ var Eo = ["context", "children"];
290
+ function ko(e) {
294
291
  this.getChildContext = function() {
295
292
  return e.context;
296
293
  };
@@ -299,52 +296,52 @@ function Io(e) {
299
296
  var i, a, c = {}, u = Object.keys(n);
300
297
  for (a = 0; a < u.length; a++) o.indexOf(i = u[a]) >= 0 || (c[i] = n[i]);
301
298
  return c;
302
- }(e, No);
303
- return dr(t, r);
299
+ }(e, Eo);
300
+ return sr(t, r);
304
301
  }
305
- function Do() {
302
+ function xo() {
306
303
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
- this.dispatchEvent(e), this._vdom = T(Io, fr({}, this._props, { context: e.detail.context }), function t(r, n) {
304
+ this.dispatchEvent(e), this._vdom = D(ko, cr({}, this._props, { context: e.detail.context }), function t(r, n) {
308
305
  if (r.nodeType === 3) return r.data;
309
306
  if (r.nodeType !== 1) return null;
310
307
  var o = [], i = {}, a = 0, c = r.attributes, u = r.childNodes;
311
- for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[xn(c[a].name)] = c[a].value);
308
+ for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[bn(c[a].name)] = c[a].value);
312
309
  for (a = u.length; a--; ) {
313
- var d = t(u[a], null), h = u[a].slot;
314
- h ? i[h] = T(xr, { name: h }, d) : o[a] = d;
310
+ var d = t(u[a], null), f = u[a].slot;
311
+ f ? i[f] = D(br, { name: f }, d) : o[a] = d;
315
312
  }
316
- var l = n ? T(xr, null, o) : o;
317
- return T(n || r.nodeName.toLowerCase(), i, l);
318
- }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? ur : se)(this._vdom, this._root);
313
+ var l = n ? D(br, null, o) : o;
314
+ return D(n || r.nodeName.toLowerCase(), i, l);
315
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? ar : se)(this._vdom, this._root);
319
316
  }
320
- function xn(e) {
317
+ function bn(e) {
321
318
  return e.replace(/-(\w)/g, function(t, r) {
322
319
  return r ? r.toUpperCase() : "";
323
320
  });
324
321
  }
325
- function To(e, t, r) {
322
+ function $o(e, t, r) {
326
323
  if (this._vdom) {
327
324
  var n = {};
328
- n[e] = r = r ?? void 0, n[xn(e)] = r, this._vdom = dr(this._vdom, n), se(this._vdom, this._root);
325
+ n[e] = r = r ?? void 0, n[bn(e)] = r, this._vdom = sr(this._vdom, n), se(this._vdom, this._root);
329
326
  }
330
327
  }
331
- function Ro() {
328
+ function Oo() {
332
329
  se(this._vdom = null, this._root);
333
330
  }
334
- function xr(e, t) {
331
+ function br(e, t) {
335
332
  var r = this;
336
- return T("slot", fr({}, e, { ref: function(n) {
333
+ return D("slot", cr({}, e, { ref: function(n) {
337
334
  n ? (r.ref = n, r._listener || (r._listener = function(o) {
338
335
  o.stopPropagation(), o.detail.context = t;
339
336
  }, n.addEventListener("_preact", r._listener))) : r.ref.removeEventListener("_preact", r._listener);
340
337
  } }));
341
338
  }
342
- function Ao(e, t, r, n) {
339
+ function Io(e, t, r, n) {
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 = Do, o.prototype.attributeChangedCallback = To, o.prototype.disconnectedCallback = Ro, r = r || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) {
344
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = xo, o.prototype.attributeChangedCallback = $o, o.prototype.disconnectedCallback = Oo, r = r || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) {
348
345
  Object.defineProperty(o.prototype, i, { get: function() {
349
346
  return this._vdom.props[i];
350
347
  }, set: function(a) {
@@ -354,21 +351,21 @@ function Ao(e, t, r, n) {
354
351
  } });
355
352
  }), customElements.define(t, o);
356
353
  }
357
- var Po = 0;
354
+ var Mo = 0;
358
355
  function s(e, t, r, n, o, i) {
359
356
  t || (t = {});
360
357
  var a, c, u = t;
361
358
  if ("ref" in u) for (c in u = {}, t) c == "ref" ? a = t[c] : u[c] = t[c];
362
- var d = { type: e, props: u, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Po, __i: -1, __u: 0, __source: o, __self: i };
359
+ var d = { type: e, props: u, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Mo, __i: -1, __u: 0, __source: o, __self: i };
363
360
  if (typeof e == "function" && (a = e.defaultProps)) for (c in a) u[c] === void 0 && (u[c] = a[c]);
364
361
  return C.vnode && C.vnode(d), d;
365
362
  }
366
- const $r = {
363
+ const Vr = {
367
364
  SWITCH_CAMERA: "switch-camera",
368
365
  TOGGLE_MIRROR: "toggle-mirror"
369
366
  };
370
- var pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", e.DOCUMENT_DETECTION = "document-auto-capture:document-detection", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(pe || {}), $n = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))($n || {});
371
- const R = {
367
+ var pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTION_CHANGED = "document-auto-capture:detection-changed", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(pe || {}), Vn = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTION_CHANGED = "palm-capture:detection-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))(Vn || {});
368
+ const T = {
372
369
  CANDIDATE_SELECTION: "candidate_selection",
373
370
  DOCUMENT_CENTERING: "document_centering",
374
371
  DOCUMENT_NOT_PRESENT: "document_not_present",
@@ -378,40 +375,40 @@ const R = {
378
375
  BRIGHTNESS_TOO_HIGH: "brightness_too_high",
379
376
  HOTSPOTS_PRESENT: "hotspots_present"
380
377
  }, G = {
381
- LOADING: "LOADING",
382
- ERROR: "ERROR",
383
- WAITING: "WAITING",
384
- RUNNING: "RUNNING",
385
- COMPLETE: "COMPLETE"
378
+ LOADING: "loading",
379
+ ERROR: "error",
380
+ WAITING: "waiting",
381
+ RUNNING: "running",
382
+ COMPLETE: "complete"
386
383
  };
387
- var ce, O, Nt, Or, Ve = 0, On = [], M = C, Mr = M.__b, Nr = M.__r, Ir = M.diffed, Dr = M.__c, Tr = M.unmount, Rr = M.__;
388
- function Me(e, t) {
389
- M.__h && M.__h(O, e, Ve || t), Ve = 0;
384
+ var ce, O, Ot, Er, Ee = 0, En = [], I = C, kr = I.__b, xr = I.__r, $r = I.diffed, Or = I.__c, Ir = I.unmount, Mr = I.__;
385
+ function Ie(e, t) {
386
+ I.__h && I.__h(O, e, Ee || t), Ee = 0;
390
387
  var r = O.__H || (O.__H = { __: [], __h: [] });
391
388
  return e >= r.__.length && r.__.push({}), r.__[e];
392
389
  }
393
- function z(e) {
394
- return Ve = 1, hr(In, e);
390
+ function F(e) {
391
+ return Ee = 1, lr($n, e);
395
392
  }
396
- function hr(e, t, r) {
397
- var n = Me(ce++, 2);
398
- if (n.t = e, !n.__c && (n.__ = [r ? r(t) : In(void 0, t), function(c) {
393
+ function lr(e, t, r) {
394
+ var n = Ie(ce++, 2);
395
+ if (n.t = e, !n.__c && (n.__ = [r ? r(t) : $n(void 0, t), function(c) {
399
396
  var u = n.__N ? n.__N[0] : n.__[0], d = n.t(u, c);
400
397
  u !== d && (n.__N = [d, n.__[1]], n.__c.setState({}));
401
398
  }], n.__c = O, !O.__f)) {
402
399
  var o = function(c, u, d) {
403
400
  if (!n.__c.__H) return !0;
404
- var h = n.__c.__H.__.filter(function(p) {
401
+ var f = n.__c.__H.__.filter(function(p) {
405
402
  return !!p.__c;
406
403
  });
407
- if (h.every(function(p) {
404
+ if (f.every(function(p) {
408
405
  return !p.__N;
409
406
  })) return !i || i.call(this, c, u, d);
410
407
  var l = n.__c.props !== c;
411
- return h.forEach(function(p) {
408
+ return f.forEach(function(p) {
412
409
  if (p.__N) {
413
- var f = p.__[0];
414
- p.__ = p.__N, p.__N = void 0, f !== p.__[0] && (l = !0);
410
+ var h = p.__[0];
411
+ p.__ = p.__N, p.__N = void 0, h !== p.__[0] && (l = !0);
415
412
  }
416
413
  }), i && i.call(this, c, u, d) || l;
417
414
  };
@@ -419,8 +416,8 @@ function hr(e, t, r) {
419
416
  var i = O.shouldComponentUpdate, a = O.componentWillUpdate;
420
417
  O.componentWillUpdate = function(c, u, d) {
421
418
  if (this.__e) {
422
- var h = i;
423
- i = void 0, o(c, u, d), i = h;
419
+ var f = i;
420
+ i = void 0, o(c, u, d), i = f;
424
421
  }
425
422
  a && a.call(this, c, u, d);
426
423
  }, O.shouldComponentUpdate = o;
@@ -428,20 +425,20 @@ function hr(e, t, r) {
428
425
  return n.__N || n.__;
429
426
  }
430
427
  function ne(e, t) {
431
- var r = Me(ce++, 3);
432
- !M.__s && pr(r.__H, t) && (r.__ = e, r.u = t, O.__H.__h.push(r));
428
+ var r = Ie(ce++, 3);
429
+ !I.__s && ur(r.__H, t) && (r.__ = e, r.u = t, O.__H.__h.push(r));
433
430
  }
434
- function Ne(e, t) {
435
- var r = Me(ce++, 4);
436
- !M.__s && pr(r.__H, t) && (r.__ = e, r.u = t, O.__h.push(r));
431
+ function Me(e, t) {
432
+ var r = Ie(ce++, 4);
433
+ !I.__s && ur(r.__H, t) && (r.__ = e, r.u = t, O.__h.push(r));
437
434
  }
438
435
  function Xe(e) {
439
- return Ve = 5, re(function() {
436
+ return Ee = 5, re(function() {
440
437
  return { current: e };
441
438
  }, []);
442
439
  }
443
- function Mn(e, t, r) {
444
- Ve = 6, Ne(function() {
440
+ function kn(e, t, r) {
441
+ Ee = 6, Me(function() {
445
442
  if (typeof e == "function") {
446
443
  var n = e(t());
447
444
  return function() {
@@ -454,23 +451,23 @@ function Mn(e, t, r) {
454
451
  }, r == null ? r : r.concat(e));
455
452
  }
456
453
  function re(e, t) {
457
- var r = Me(ce++, 7);
458
- return pr(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
454
+ var r = Ie(ce++, 7);
455
+ return ur(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
459
456
  }
460
457
  function _e(e, t) {
461
- return Ve = 8, re(function() {
458
+ return Ee = 8, re(function() {
462
459
  return e;
463
460
  }, t);
464
461
  }
465
462
  function Ke(e) {
466
- var t = O.context[e.__c], r = Me(ce++, 9);
463
+ var t = O.context[e.__c], r = Ie(ce++, 9);
467
464
  return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(O)), t.props.value) : e.__;
468
465
  }
469
- function _t(e, t) {
470
- M.useDebugValue && M.useDebugValue(t ? t(e) : e);
466
+ function pt(e, t) {
467
+ I.useDebugValue && I.useDebugValue(t ? t(e) : e);
471
468
  }
472
- function Nn() {
473
- var e = Me(ce++, 11);
469
+ function xn() {
470
+ var e = Ie(ce++, 11);
474
471
  if (!e.__) {
475
472
  for (var t = O.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
476
473
  var r = t.__m || (t.__m = [0, 0]);
@@ -478,113 +475,113 @@ function Nn() {
478
475
  }
479
476
  return e.__;
480
477
  }
481
- function Ho() {
482
- for (var e; e = On.shift(); ) if (e.__P && e.__H) try {
483
- e.__H.__h.forEach(st), e.__H.__h.forEach(Wt), e.__H.__h = [];
478
+ function No() {
479
+ for (var e; e = En.shift(); ) if (e.__P && e.__H) try {
480
+ e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
484
481
  } catch (t) {
485
- e.__H.__h = [], M.__e(t, e.__v);
482
+ e.__H.__h = [], I.__e(t, e.__v);
486
483
  }
487
484
  }
488
- M.__b = function(e) {
489
- O = null, Mr && Mr(e);
490
- }, M.__ = function(e, t) {
491
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Rr && Rr(e, t);
492
- }, M.__r = function(e) {
493
- Nr && Nr(e), ce = 0;
485
+ I.__b = function(e) {
486
+ O = null, kr && kr(e);
487
+ }, I.__ = function(e, t) {
488
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mr && Mr(e, t);
489
+ }, I.__r = function(e) {
490
+ xr && xr(e), ce = 0;
494
491
  var t = (O = e.__c).__H;
495
- t && (Nt === O ? (t.__h = [], O.__h = [], t.__.forEach(function(r) {
492
+ t && (Ot === O ? (t.__h = [], O.__h = [], t.__.forEach(function(r) {
496
493
  r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
497
- })) : (t.__h.forEach(st), t.__h.forEach(Wt), t.__h = [], ce = 0)), Nt = O;
498
- }, M.diffed = function(e) {
499
- Ir && Ir(e);
494
+ })) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], ce = 0)), Ot = O;
495
+ }, I.diffed = function(e) {
496
+ $r && $r(e);
500
497
  var t = e.__c;
501
- t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Or === M.requestAnimationFrame || ((Or = M.requestAnimationFrame) || Zo)(Ho)), t.__H.__.forEach(function(r) {
498
+ t && t.__H && (t.__H.__h.length && (En.push(t) !== 1 && Er === I.requestAnimationFrame || ((Er = I.requestAnimationFrame) || Ro)(No)), t.__H.__.forEach(function(r) {
502
499
  r.u && (r.__H = r.u), r.u = void 0;
503
- })), Nt = O = null;
504
- }, M.__c = function(e, t) {
500
+ })), Ot = O = null;
501
+ }, I.__c = function(e, t) {
505
502
  t.some(function(r) {
506
503
  try {
507
- r.__h.forEach(st), r.__h = r.__h.filter(function(n) {
508
- return !n.__ || Wt(n);
504
+ r.__h.forEach(at), r.__h = r.__h.filter(function(n) {
505
+ return !n.__ || Bt(n);
509
506
  });
510
507
  } catch (n) {
511
508
  t.some(function(o) {
512
509
  o.__h && (o.__h = []);
513
- }), t = [], M.__e(n, r.__v);
510
+ }), t = [], I.__e(n, r.__v);
514
511
  }
515
- }), Dr && Dr(e, t);
516
- }, M.unmount = function(e) {
517
- Tr && Tr(e);
512
+ }), Or && Or(e, t);
513
+ }, I.unmount = function(e) {
514
+ Ir && Ir(e);
518
515
  var t, r = e.__c;
519
516
  r && r.__H && (r.__H.__.forEach(function(n) {
520
517
  try {
521
- st(n);
518
+ at(n);
522
519
  } catch (o) {
523
520
  t = o;
524
521
  }
525
- }), r.__H = void 0, t && M.__e(t, r.__v));
522
+ }), r.__H = void 0, t && I.__e(t, r.__v));
526
523
  };
527
- var Ar = typeof requestAnimationFrame == "function";
528
- function Zo(e) {
524
+ var Nr = typeof requestAnimationFrame == "function";
525
+ function Ro(e) {
529
526
  var t, r = function() {
530
- clearTimeout(n), Ar && cancelAnimationFrame(t), setTimeout(e);
527
+ clearTimeout(n), Nr && cancelAnimationFrame(t), setTimeout(e);
531
528
  }, n = setTimeout(r, 100);
532
- Ar && (t = requestAnimationFrame(r));
529
+ Nr && (t = requestAnimationFrame(r));
533
530
  }
534
- function st(e) {
531
+ function at(e) {
535
532
  var t = O, r = e.__c;
536
533
  typeof r == "function" && (e.__c = void 0, r()), O = t;
537
534
  }
538
- function Wt(e) {
535
+ function Bt(e) {
539
536
  var t = O;
540
537
  e.__c = e.__(), O = t;
541
538
  }
542
- function pr(e, t) {
539
+ function ur(e, t) {
543
540
  return !e || e.length !== t.length || t.some(function(r, n) {
544
541
  return r !== e[n];
545
542
  });
546
543
  }
547
- function In(e, t) {
544
+ function $n(e, t) {
548
545
  return typeof t == "function" ? t(e) : t;
549
546
  }
550
- var D = function() {
551
- return D = Object.assign || function(t) {
547
+ var R = function() {
548
+ return R = Object.assign || function(t) {
552
549
  for (var r, n = 1, o = arguments.length; n < o; n++) {
553
550
  r = arguments[n];
554
551
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
555
552
  }
556
553
  return t;
557
- }, D.apply(this, arguments);
554
+ }, R.apply(this, arguments);
558
555
  };
559
556
  function Le(e, t, r) {
560
557
  if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
561
558
  (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
562
559
  return e.concat(i || Array.prototype.slice.call(t));
563
560
  }
564
- function Bo(e) {
561
+ function Do(e) {
565
562
  var t = /* @__PURE__ */ Object.create(null);
566
563
  return function(r) {
567
564
  return t[r] === void 0 && (t[r] = e(r)), t[r];
568
565
  };
569
566
  }
570
- 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)-.*))$/, Wo = /* @__PURE__ */ Bo(
567
+ var To = /^((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)-.*))$/, Ao = /* @__PURE__ */ Do(
571
568
  function(e) {
572
- return Uo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
569
+ return To.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
573
570
  }
574
571
  /* Z+1 */
575
572
  );
576
- function Dn(e, t) {
573
+ function On(e, t) {
577
574
  for (var r in t) e[r] = t[r];
578
575
  return e;
579
576
  }
580
- function zt(e, t) {
577
+ function Ut(e, t) {
581
578
  for (var r in e) if (r !== "__source" && !(r in t)) return !0;
582
579
  for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
583
580
  return !1;
584
581
  }
585
- function Tn(e, t) {
586
- var r = t(), n = z({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
587
- return Ne(function() {
582
+ function In(e, t) {
583
+ var r = t(), n = F({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
584
+ return Me(function() {
588
585
  o.__ = r, o.u = t, It(o) && i({ t: o });
589
586
  }, [e, r, t]), ne(function() {
590
587
  return It(o) && i({ t: o }), e(function() {
@@ -601,80 +598,80 @@ function It(e) {
601
598
  return !0;
602
599
  }
603
600
  }
604
- function Rn(e) {
601
+ function Mn(e) {
605
602
  e();
606
603
  }
607
- function An(e) {
604
+ function Nn(e) {
608
605
  return e;
609
606
  }
610
- function Pn() {
611
- return [!1, Rn];
607
+ function Rn() {
608
+ return [!1, Mn];
612
609
  }
613
- var Hn = Ne;
614
- function Ft(e, t) {
610
+ var Dn = Me;
611
+ function Wt(e, t) {
615
612
  this.props = e, this.context = t;
616
613
  }
617
- function zo(e, t) {
614
+ function Po(e, t) {
618
615
  function r(o) {
619
616
  var i = this.props.ref, a = i == o.ref;
620
- return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : zt(this.props, o);
617
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ut(this.props, o);
621
618
  }
622
619
  function n(o) {
623
- return this.shouldComponentUpdate = r, T(e, o);
620
+ return this.shouldComponentUpdate = r, D(e, o);
624
621
  }
625
622
  return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
626
623
  }
627
- (Ft.prototype = new j()).isPureReactComponent = !0, Ft.prototype.shouldComponentUpdate = function(e, t) {
628
- return zt(this.props, e) || zt(this.state, t);
624
+ (Wt.prototype = new j()).isPureReactComponent = !0, Wt.prototype.shouldComponentUpdate = function(e, t) {
625
+ return Ut(this.props, e) || Ut(this.state, t);
629
626
  };
630
- var Pr = C.__b;
627
+ var Rr = C.__b;
631
628
  C.__b = function(e) {
632
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Pr && Pr(e);
629
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Rr && Rr(e);
633
630
  };
634
- var Fo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
635
- function Go(e) {
631
+ var Ho = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
632
+ function Zo(e) {
636
633
  function t(r) {
637
- var n = Dn({}, r);
634
+ var n = On({}, r);
638
635
  return delete n.ref, e(n, r.ref || null);
639
636
  }
640
- return t.$$typeof = Fo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
637
+ return t.$$typeof = Ho, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
641
638
  }
642
- var Hr = function(e, t) {
639
+ var Dr = function(e, t) {
643
640
  return e == null ? null : te(te(e).map(t));
644
- }, jo = { map: Hr, forEach: Hr, count: function(e) {
641
+ }, Bo = { map: Dr, forEach: Dr, count: function(e) {
645
642
  return e ? te(e).length : 0;
646
643
  }, only: function(e) {
647
644
  var t = te(e);
648
645
  if (t.length !== 1) throw "Children.only";
649
646
  return t[0];
650
- }, toArray: te }, qo = C.__e;
647
+ }, toArray: te }, Uo = C.__e;
651
648
  C.__e = function(e, t, r, n) {
652
649
  if (e.then) {
653
650
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
654
651
  }
655
- qo(e, t, r, n);
652
+ Uo(e, t, r, n);
656
653
  };
657
- var Zr = C.unmount;
658
- function Zn(e, t, r) {
654
+ var Tr = C.unmount;
655
+ function Tn(e, t, r) {
659
656
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
660
657
  typeof n.__c == "function" && n.__c();
661
- }), e.__c.__H = null), (e = Dn({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
662
- return Zn(n, t, r);
658
+ }), e.__c.__H = null), (e = On({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
659
+ return Tn(n, t, r);
663
660
  })), e;
664
661
  }
665
- function Bn(e, t, r) {
662
+ function An(e, t, r) {
666
663
  return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
667
- return Bn(n, t, r);
664
+ return An(n, t, r);
668
665
  }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
669
666
  }
670
- function ct() {
667
+ function st() {
671
668
  this.__u = 0, this.o = null, this.__b = null;
672
669
  }
673
- function Un(e) {
670
+ function Pn(e) {
674
671
  var t = e.__.__c;
675
672
  return t && t.__a && t.__a(e);
676
673
  }
677
- function Yo(e) {
674
+ function Wo(e) {
678
675
  var t, r, n;
679
676
  function o(i) {
680
677
  if (t || (t = e()).then(function(a) {
@@ -683,7 +680,7 @@ function Yo(e) {
683
680
  n = a;
684
681
  }), n) throw n;
685
682
  if (!r) throw t;
686
- return T(r, i);
683
+ return D(r, i);
687
684
  }
688
685
  return o.displayName = "Lazy", o.__f = !0, o;
689
686
  }
@@ -692,11 +689,11 @@ function He() {
692
689
  }
693
690
  C.unmount = function(e) {
694
691
  var t = e.__c;
695
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Zr && Zr(e);
696
- }, (ct.prototype = new j()).__c = function(e, t) {
692
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Tr && Tr(e);
693
+ }, (st.prototype = new j()).__c = function(e, t) {
697
694
  var r = t.__c, n = this;
698
695
  n.o == null && (n.o = []), n.o.push(r);
699
- var o = Un(n.__v), i = !1, a = function() {
696
+ var o = Pn(n.__v), i = !1, a = function() {
700
697
  i || (i = !0, r.__R = null, o ? o(c) : c());
701
698
  };
702
699
  r.__R = a;
@@ -704,39 +701,39 @@ C.unmount = function(e) {
704
701
  if (!--n.__u) {
705
702
  if (n.state.__a) {
706
703
  var u = n.state.__a;
707
- n.__v.__k[0] = Bn(u, u.__c.__P, u.__c.__O);
704
+ n.__v.__k[0] = An(u, u.__c.__P, u.__c.__O);
708
705
  }
709
706
  var d;
710
707
  for (n.setState({ __a: n.__b = null }); d = n.o.pop(); ) d.forceUpdate();
711
708
  }
712
709
  };
713
710
  n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
714
- }, ct.prototype.componentWillUnmount = function() {
711
+ }, st.prototype.componentWillUnmount = function() {
715
712
  this.o = [];
716
- }, ct.prototype.render = function(e, t) {
713
+ }, st.prototype.render = function(e, t) {
717
714
  if (this.__b) {
718
715
  if (this.__v.__k) {
719
716
  var r = document.createElement("div"), n = this.__v.__k[0].__c;
720
- this.__v.__k[0] = Zn(this.__b, r, n.__O = n.__P);
717
+ this.__v.__k[0] = Tn(this.__b, r, n.__O = n.__P);
721
718
  }
722
719
  this.__b = null;
723
720
  }
724
- var o = t.__a && T(H, null, e.fallback);
725
- return o && (o.__u &= -33), [T(H, null, t.__a ? null : e.children), o];
721
+ var o = t.__a && D(H, null, e.fallback);
722
+ return o && (o.__u &= -33), [D(H, null, t.__a ? null : e.children), o];
726
723
  };
727
- var Br = function(e, t, r) {
724
+ var Ar = function(e, t, r) {
728
725
  if (++r[1] === r[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (r = e.i; r; ) {
729
726
  for (; r.length > 3; ) r.pop()();
730
727
  if (r[1] < r[0]) break;
731
728
  e.i = r = r[2];
732
729
  }
733
730
  };
734
- function Xo(e) {
731
+ function Fo(e) {
735
732
  return this.getChildContext = function() {
736
733
  return e.context;
737
734
  }, e.children;
738
735
  }
739
- function Ko(e) {
736
+ function zo(e) {
740
737
  var t = this, r = e.h;
741
738
  if (t.componentWillUnmount = function() {
742
739
  se(null, t.v), t.v = null, t.h = null;
@@ -752,17 +749,17 @@ function Ko(e) {
752
749
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
753
750
  } };
754
751
  }
755
- se(T(Xo, { context: t.context }, e.__v), t.v);
752
+ se(D(Fo, { context: t.context }, e.__v), t.v);
756
753
  }
757
- function Jo(e, t) {
758
- var r = T(Ko, { __v: e, h: t });
754
+ function Go(e, t) {
755
+ var r = D(zo, { __v: e, h: t });
759
756
  return r.containerInfo = t, r;
760
757
  }
761
758
  (He.prototype = new j()).__a = function(e) {
762
- var t = this, r = Un(t.__v), n = t.l.get(e);
759
+ var t = this, r = Pn(t.__v), n = t.l.get(e);
763
760
  return n[0]++, function(o) {
764
761
  var i = function() {
765
- t.props.revealOrder ? (n.push(o), Br(t, e, n)) : o();
762
+ t.props.revealOrder ? (n.push(o), Ar(t, e, n)) : o();
766
763
  };
767
764
  r ? r(i) : i();
768
765
  };
@@ -775,17 +772,17 @@ function Jo(e, t) {
775
772
  }, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
776
773
  var e = this;
777
774
  this.l.forEach(function(t, r) {
778
- Br(e, r, t);
775
+ Ar(e, r, t);
779
776
  });
780
777
  };
781
- var Wn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Qo = /^(?: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]/, ei = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ti = /[A-Z0-9]/g, ri = typeof document < "u", ni = function(e) {
778
+ var Hn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, jo = /^(?: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]/, qo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Yo = /[A-Z0-9]/g, Xo = typeof document < "u", Ko = function(e) {
782
779
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
783
780
  };
784
- function oi(e, t, r) {
781
+ function Jo(e, t, r) {
785
782
  return t.__k == null && (t.textContent = ""), se(e, t), typeof r == "function" && r(), e ? e.__c : null;
786
783
  }
787
- function ii(e, t, r) {
788
- return ur(e, t), typeof r == "function" && r(), e ? e.__c : null;
784
+ function Qo(e, t, r) {
785
+ return ar(e, t), typeof r == "function" && r(), e ? e.__c : null;
789
786
  }
790
787
  j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
791
788
  Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
@@ -794,83 +791,83 @@ j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
794
791
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
795
792
  } });
796
793
  });
797
- var Ur = C.event;
798
- function ai() {
794
+ var Pr = C.event;
795
+ function ei() {
799
796
  }
800
- function si() {
797
+ function ti() {
801
798
  return this.cancelBubble;
802
799
  }
803
- function ci() {
800
+ function ri() {
804
801
  return this.defaultPrevented;
805
802
  }
806
803
  C.event = function(e) {
807
- return Ur && (e = Ur(e)), e.persist = ai, e.isPropagationStopped = si, e.isDefaultPrevented = ci, e.nativeEvent = e;
804
+ return Pr && (e = Pr(e)), e.persist = ei, e.isPropagationStopped = ti, e.isDefaultPrevented = ri, e.nativeEvent = e;
808
805
  };
809
- var _r, li = { enumerable: !1, configurable: !0, get: function() {
806
+ var dr, ni = { enumerable: !1, configurable: !0, get: function() {
810
807
  return this.class;
811
- } }, Wr = C.vnode;
808
+ } }, Hr = C.vnode;
812
809
  C.vnode = function(e) {
813
810
  typeof e.type == "string" && function(t) {
814
811
  var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
815
812
  for (var a in r) {
816
813
  var c = r[a];
817
- if (!(a === "value" && "defaultValue" in r && c == null || ri && a === "children" && n === "noscript" || a === "class" || a === "className")) {
814
+ if (!(a === "value" && "defaultValue" in r && c == null || Xo && a === "children" && n === "noscript" || a === "class" || a === "className")) {
818
815
  var u = a.toLowerCase();
819
- a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : u === "translate" && c === "no" ? c = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || n !== "input" && n !== "textarea" || ni(r.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : ei.test(a) && (a = u) : u = a = "oninput" : i && Qo.test(a) ? a = a.replace(ti, "-$&").toLowerCase() : c === null && (c = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = c;
816
+ a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : u === "translate" && c === "no" ? c = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || n !== "input" && n !== "textarea" || Ko(r.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : qo.test(a) && (a = u) : u = a = "oninput" : i && jo.test(a) ? a = a.replace(Yo, "-$&").toLowerCase() : c === null && (c = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = c;
820
817
  }
821
818
  }
822
819
  n == "select" && o.multiple && Array.isArray(o.value) && (o.value = te(r.children).forEach(function(d) {
823
820
  d.props.selected = o.value.indexOf(d.props.value) != -1;
824
821
  })), n == "select" && o.defaultValue != null && (o.value = te(r.children).forEach(function(d) {
825
822
  d.props.selected = o.multiple ? o.defaultValue.indexOf(d.props.value) != -1 : o.defaultValue == d.props.value;
826
- })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", li)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
827
- }(e), e.$$typeof = Wn, Wr && Wr(e);
823
+ })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", ni)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
824
+ }(e), e.$$typeof = Hn, Hr && Hr(e);
828
825
  };
829
- var zr = C.__r;
826
+ var Zr = C.__r;
830
827
  C.__r = function(e) {
831
- zr && zr(e), _r = e.__c;
828
+ Zr && Zr(e), dr = e.__c;
832
829
  };
833
- var Fr = C.diffed;
830
+ var Br = C.diffed;
834
831
  C.diffed = function(e) {
835
- Fr && Fr(e);
832
+ Br && Br(e);
836
833
  var t = e.props, r = e.__e;
837
- r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), _r = null;
834
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), dr = null;
838
835
  };
839
- var ui = { ReactCurrentDispatcher: { current: { readContext: function(e) {
840
- return _r.__n[e.__c].props.value;
841
- }, useCallback: _e, useContext: Ke, useDebugValue: _t, useDeferredValue: An, useEffect: ne, useId: Nn, useImperativeHandle: Mn, useInsertionEffect: Hn, useLayoutEffect: Ne, useMemo: re, useReducer: hr, useRef: Xe, useState: z, useSyncExternalStore: Tn, useTransition: Pn } } };
842
- function di(e) {
843
- return T.bind(null, e);
836
+ var oi = { ReactCurrentDispatcher: { current: { readContext: function(e) {
837
+ return dr.__n[e.__c].props.value;
838
+ }, useCallback: _e, useContext: Ke, useDebugValue: pt, useDeferredValue: Nn, useEffect: ne, useId: xn, useImperativeHandle: kn, useInsertionEffect: Dn, useLayoutEffect: Me, useMemo: re, useReducer: lr, useRef: Xe, useState: F, useSyncExternalStore: In, useTransition: Rn } } };
839
+ function ii(e) {
840
+ return D.bind(null, e);
844
841
  }
845
- function vt(e) {
846
- return !!e && e.$$typeof === Wn;
842
+ function Lt(e) {
843
+ return !!e && e.$$typeof === Hn;
847
844
  }
848
- function fi(e) {
849
- return vt(e) && e.type === H;
845
+ function ai(e) {
846
+ return Lt(e) && e.type === H;
850
847
  }
851
- function hi(e) {
848
+ function si(e) {
852
849
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
853
850
  }
854
- function pi(e) {
855
- return vt(e) ? dr.apply(null, arguments) : e;
851
+ function ci(e) {
852
+ return Lt(e) ? sr.apply(null, arguments) : e;
856
853
  }
857
- function _i(e) {
854
+ function li(e) {
858
855
  return !!e.__k && (se(null, e), !0);
859
856
  }
860
- function mi(e) {
857
+ function ui(e) {
861
858
  return e && (e.base || e.nodeType === 1 && e) || null;
862
859
  }
863
- var gi = function(e, t) {
860
+ var di = function(e, t) {
864
861
  return e(t);
865
- }, Li = function(e, t) {
862
+ }, hi = function(e, t) {
866
863
  return e(t);
867
- }, yi = H, vi = vt, oe = { useState: z, useId: Nn, useReducer: hr, useEffect: ne, useLayoutEffect: Ne, useInsertionEffect: Hn, useTransition: Pn, useDeferredValue: An, useSyncExternalStore: Tn, startTransition: Rn, useRef: Xe, useImperativeHandle: Mn, useMemo: re, useCallback: _e, useContext: Ke, useDebugValue: _t, version: "18.3.1", Children: jo, render: oi, hydrate: ii, unmountComponentAtNode: _i, createPortal: Jo, createElement: T, createContext: kn, createFactory: di, cloneElement: pi, createRef: ko, Fragment: H, isValidElement: vt, isElement: vi, isFragment: fi, isMemo: hi, findDOMNode: mi, Component: j, PureComponent: Ft, memo: zo, forwardRef: Go, flushSync: Li, unstable_batchedUpdates: gi, StrictMode: yi, Suspense: ct, SuspenseList: He, lazy: Yo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ui };
868
- function Ci(e) {
864
+ }, fi = H, pi = Lt, oe = { useState: F, useId: xn, useReducer: lr, useEffect: ne, useLayoutEffect: Me, useInsertionEffect: Dn, useTransition: Rn, useDeferredValue: Nn, useSyncExternalStore: In, startTransition: Mn, useRef: Xe, useImperativeHandle: kn, useMemo: re, useCallback: _e, useContext: Ke, useDebugValue: pt, version: "18.3.1", Children: Bo, render: Jo, hydrate: Qo, unmountComponentAtNode: li, createPortal: Go, createElement: D, createContext: Sn, createFactory: ii, cloneElement: ci, createRef: Co, Fragment: H, isValidElement: Lt, isElement: pi, isFragment: ai, isMemo: si, findDOMNode: ui, Component: j, PureComponent: Wt, memo: Po, forwardRef: Zo, flushSync: hi, unstable_batchedUpdates: di, StrictMode: fi, Suspense: st, SuspenseList: He, lazy: Wo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: oi };
865
+ function _i(e) {
869
866
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
870
867
  }
871
- var Dt, Gr;
872
- function wi() {
873
- return Gr || (Gr = 1, Dt = function(t, r, n, o) {
868
+ var Mt, Ur;
869
+ function mi() {
870
+ return Ur || (Ur = 1, Mt = function(t, r, n, o) {
874
871
  var i = n ? n.call(o, t, r) : void 0;
875
872
  if (i !== void 0)
876
873
  return !!i;
@@ -882,23 +879,23 @@ function wi() {
882
879
  if (a.length !== c.length)
883
880
  return !1;
884
881
  for (var u = Object.prototype.hasOwnProperty.bind(r), d = 0; d < a.length; d++) {
885
- var h = a[d];
886
- if (!u(h))
882
+ var f = a[d];
883
+ if (!u(f))
887
884
  return !1;
888
- var l = t[h], p = r[h];
889
- if (i = n ? n.call(o, l, p, h) : void 0, i === !1 || i === void 0 && l !== p)
885
+ var l = t[f], p = r[f];
886
+ if (i = n ? n.call(o, l, p, f) : void 0, i === !1 || i === void 0 && l !== p)
890
887
  return !1;
891
888
  }
892
889
  return !0;
893
- }), Dt;
890
+ }), Mt;
894
891
  }
895
- var Si = wi();
896
- const bi = /* @__PURE__ */ Ci(Si);
897
- var $ = "-ms-", ze = "-moz-", k = "-webkit-", zn = "comm", Ct = "rule", mr = "decl", Ei = "@import", Fn = "@keyframes", Vi = "@layer", Gn = Math.abs, gr = String.fromCharCode, Gt = Object.assign;
898
- function ki(e, t) {
899
- return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
892
+ var gi = mi();
893
+ const Li = /* @__PURE__ */ _i(gi);
894
+ var $ = "-ms-", Fe = "-moz-", k = "-webkit-", Zn = "comm", yt = "rule", hr = "decl", yi = "@import", Bn = "@keyframes", vi = "@layer", Un = Math.abs, fr = String.fromCharCode, Ft = Object.assign;
895
+ function Ci(e, t) {
896
+ return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
900
897
  }
901
- function jn(e) {
898
+ function Wn(e) {
902
899
  return e.trim();
903
900
  }
904
901
  function Q(e, t) {
@@ -907,10 +904,10 @@ function Q(e, t) {
907
904
  function w(e, t, r) {
908
905
  return e.replace(t, r);
909
906
  }
910
- function lt(e, t, r) {
907
+ function ct(e, t, r) {
911
908
  return e.indexOf(t, r);
912
909
  }
913
- function I(e, t) {
910
+ function N(e, t) {
914
911
  return e.charCodeAt(t) | 0;
915
912
  }
916
913
  function ke(e, t, r) {
@@ -919,51 +916,51 @@ function ke(e, t, r) {
919
916
  function Y(e) {
920
917
  return e.length;
921
918
  }
922
- function qn(e) {
919
+ function Fn(e) {
923
920
  return e.length;
924
921
  }
925
922
  function Ze(e, t) {
926
923
  return t.push(e), e;
927
924
  }
928
- function xi(e, t) {
925
+ function wi(e, t) {
929
926
  return e.map(t).join("");
930
927
  }
931
- function jr(e, t) {
928
+ function Wr(e, t) {
932
929
  return e.filter(function(r) {
933
930
  return !Q(r, t);
934
931
  });
935
932
  }
936
- var wt = 1, xe = 1, Yn = 0, F = 0, N = 0, Ie = "";
937
- function St(e, t, r, n, o, i, a, c) {
938
- return { value: e, root: t, parent: r, type: n, props: o, children: i, line: wt, column: xe, length: a, return: "", siblings: c };
933
+ var vt = 1, xe = 1, zn = 0, z = 0, M = 0, Ne = "";
934
+ function Ct(e, t, r, n, o, i, a, c) {
935
+ return { value: e, root: t, parent: r, type: n, props: o, children: i, line: vt, column: xe, length: a, return: "", siblings: c };
939
936
  }
940
937
  function ae(e, t) {
941
- return Gt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
938
+ return Ft(Ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
942
939
  }
943
940
  function Se(e) {
944
941
  for (; e.root; )
945
942
  e = ae(e.root, { children: [e] });
946
943
  Ze(e, e.siblings);
947
944
  }
948
- function $i() {
949
- return N;
945
+ function Si() {
946
+ return M;
950
947
  }
951
- function Oi() {
952
- return N = F > 0 ? I(Ie, --F) : 0, xe--, N === 10 && (xe = 1, wt--), N;
948
+ function bi() {
949
+ return M = z > 0 ? N(Ne, --z) : 0, xe--, M === 10 && (xe = 1, vt--), M;
953
950
  }
954
951
  function q() {
955
- return N = F < Yn ? I(Ie, F++) : 0, xe++, N === 10 && (xe = 1, wt++), N;
952
+ return M = z < zn ? N(Ne, z++) : 0, xe++, M === 10 && (xe = 1, vt++), M;
956
953
  }
957
954
  function me() {
958
- return I(Ie, F);
955
+ return N(Ne, z);
959
956
  }
960
- function ut() {
961
- return F;
957
+ function lt() {
958
+ return z;
962
959
  }
963
- function bt(e, t) {
964
- return ke(Ie, e, t);
960
+ function wt(e, t) {
961
+ return ke(Ne, e, t);
965
962
  }
966
- function jt(e) {
963
+ function zt(e) {
967
964
  switch (e) {
968
965
  // \0 \t \n \r \s whitespace token
969
966
  case 0:
@@ -1001,93 +998,93 @@ function jt(e) {
1001
998
  }
1002
999
  return 0;
1003
1000
  }
1004
- function Mi(e) {
1005
- return wt = xe = 1, Yn = Y(Ie = e), F = 0, [];
1001
+ function Vi(e) {
1002
+ return vt = xe = 1, zn = Y(Ne = e), z = 0, [];
1006
1003
  }
1007
- function Ni(e) {
1008
- return Ie = "", e;
1004
+ function Ei(e) {
1005
+ return Ne = "", e;
1009
1006
  }
1010
- function Tt(e) {
1011
- return jn(bt(F - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1007
+ function Nt(e) {
1008
+ return Wn(wt(z - 1, Gt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1012
1009
  }
1013
- function Ii(e) {
1014
- for (; (N = me()) && N < 33; )
1010
+ function ki(e) {
1011
+ for (; (M = me()) && M < 33; )
1015
1012
  q();
1016
- return jt(e) > 2 || jt(N) > 3 ? "" : " ";
1013
+ return zt(e) > 2 || zt(M) > 3 ? "" : " ";
1017
1014
  }
1018
- function Di(e, t) {
1019
- for (; --t && q() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
1015
+ function xi(e, t) {
1016
+ for (; --t && q() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
1020
1017
  ;
1021
- return bt(e, ut() + (t < 6 && me() == 32 && q() == 32));
1018
+ return wt(e, lt() + (t < 6 && me() == 32 && q() == 32));
1022
1019
  }
1023
- function qt(e) {
1020
+ function Gt(e) {
1024
1021
  for (; q(); )
1025
- switch (N) {
1022
+ switch (M) {
1026
1023
  // ] ) " '
1027
1024
  case e:
1028
- return F;
1025
+ return z;
1029
1026
  // " '
1030
1027
  case 34:
1031
1028
  case 39:
1032
- e !== 34 && e !== 39 && qt(N);
1029
+ e !== 34 && e !== 39 && Gt(M);
1033
1030
  break;
1034
1031
  // (
1035
1032
  case 40:
1036
- e === 41 && qt(e);
1033
+ e === 41 && Gt(e);
1037
1034
  break;
1038
1035
  // \
1039
1036
  case 92:
1040
1037
  q();
1041
1038
  break;
1042
1039
  }
1043
- return F;
1040
+ return z;
1044
1041
  }
1045
- function Ti(e, t) {
1046
- for (; q() && e + N !== 57; )
1047
- if (e + N === 84 && me() === 47)
1042
+ function $i(e, t) {
1043
+ for (; q() && e + M !== 57; )
1044
+ if (e + M === 84 && me() === 47)
1048
1045
  break;
1049
- return "/*" + bt(t, F - 1) + "*" + gr(e === 47 ? e : q());
1046
+ return "/*" + wt(t, z - 1) + "*" + fr(e === 47 ? e : q());
1050
1047
  }
1051
- function Ri(e) {
1052
- for (; !jt(me()); )
1048
+ function Oi(e) {
1049
+ for (; !zt(me()); )
1053
1050
  q();
1054
- return bt(e, F);
1051
+ return wt(e, z);
1055
1052
  }
1056
- function Ai(e) {
1057
- return Ni(dt("", null, null, null, [""], e = Mi(e), 0, [0], e));
1053
+ function Ii(e) {
1054
+ return Ei(ut("", null, null, null, [""], e = Vi(e), 0, [0], e));
1058
1055
  }
1059
- function dt(e, t, r, n, o, i, a, c, u) {
1060
- for (var d = 0, h = 0, l = a, p = 0, f = 0, _ = 0, L = 1, y = 1, m = 1, g = 0, V = "", b = o, x = i, S = n, v = V; y; )
1056
+ function ut(e, t, r, n, o, i, a, c, u) {
1057
+ for (var d = 0, f = 0, l = a, p = 0, h = 0, _ = 0, L = 1, y = 1, m = 1, g = 0, E = "", b = o, x = i, S = n, v = E; y; )
1061
1058
  switch (_ = g, g = q()) {
1062
1059
  // (
1063
1060
  case 40:
1064
- if (_ != 108 && I(v, l - 1) == 58) {
1065
- lt(v += w(Tt(g), "&", "&\f"), "&\f", Gn(d ? c[d - 1] : 0)) != -1 && (m = -1);
1061
+ if (_ != 108 && N(v, l - 1) == 58) {
1062
+ ct(v += w(Nt(g), "&", "&\f"), "&\f", Un(d ? c[d - 1] : 0)) != -1 && (m = -1);
1066
1063
  break;
1067
1064
  }
1068
1065
  // " ' [
1069
1066
  case 34:
1070
1067
  case 39:
1071
1068
  case 91:
1072
- v += Tt(g);
1069
+ v += Nt(g);
1073
1070
  break;
1074
1071
  // \t \n \r \s
1075
1072
  case 9:
1076
1073
  case 10:
1077
1074
  case 13:
1078
1075
  case 32:
1079
- v += Ii(_);
1076
+ v += ki(_);
1080
1077
  break;
1081
1078
  // \
1082
1079
  case 92:
1083
- v += Di(ut() - 1, 7);
1080
+ v += xi(lt() - 1, 7);
1084
1081
  continue;
1085
1082
  // /
1086
1083
  case 47:
1087
1084
  switch (me()) {
1088
1085
  case 42:
1089
1086
  case 47:
1090
- Ze(Pi(Ti(q(), ut()), t, r, u), u);
1087
+ Ze(Mi($i(q(), lt()), t, r, u), u);
1091
1088
  break;
1092
1089
  default:
1093
1090
  v += "/";
@@ -1106,46 +1103,46 @@ function dt(e, t, r, n, o, i, a, c, u) {
1106
1103
  case 125:
1107
1104
  y = 0;
1108
1105
  // ;
1109
- case 59 + h:
1110
- m == -1 && (v = w(v, /\f/g, "")), f > 0 && Y(v) - l && Ze(f > 32 ? Yr(v + ";", n, r, l - 1, u) : Yr(w(v, " ", "") + ";", n, r, l - 2, u), u);
1106
+ case 59 + f:
1107
+ m == -1 && (v = w(v, /\f/g, "")), h > 0 && Y(v) - l && Ze(h > 32 ? zr(v + ";", n, r, l - 1, u) : zr(w(v, " ", "") + ";", n, r, l - 2, u), u);
1111
1108
  break;
1112
1109
  // @ ;
1113
1110
  case 59:
1114
1111
  v += ";";
1115
1112
  // { rule/at-rule
1116
1113
  default:
1117
- if (Ze(S = qr(v, t, r, d, h, o, c, V, b = [], x = [], l, i), i), g === 123)
1118
- if (h === 0)
1119
- dt(v, t, S, S, b, i, l, c, x);
1114
+ if (Ze(S = Fr(v, t, r, d, f, o, c, E, b = [], x = [], l, i), i), g === 123)
1115
+ if (f === 0)
1116
+ ut(v, t, S, S, b, i, l, c, x);
1120
1117
  else
1121
- switch (p === 99 && I(v, 3) === 110 ? 100 : p) {
1118
+ switch (p === 99 && N(v, 3) === 110 ? 100 : p) {
1122
1119
  // d l m s
1123
1120
  case 100:
1124
1121
  case 108:
1125
1122
  case 109:
1126
1123
  case 115:
1127
- dt(e, S, S, n && Ze(qr(e, S, S, 0, 0, o, c, V, o, b = [], l, x), x), o, x, l, c, n ? b : x);
1124
+ ut(e, S, S, n && Ze(Fr(e, S, S, 0, 0, o, c, E, o, b = [], l, x), x), o, x, l, c, n ? b : x);
1128
1125
  break;
1129
1126
  default:
1130
- dt(v, S, S, S, [""], x, 0, c, x);
1127
+ ut(v, S, S, S, [""], x, 0, c, x);
1131
1128
  }
1132
1129
  }
1133
- d = h = f = 0, L = m = 1, V = v = "", l = a;
1130
+ d = f = h = 0, L = m = 1, E = v = "", l = a;
1134
1131
  break;
1135
1132
  // :
1136
1133
  case 58:
1137
- l = 1 + Y(v), f = _;
1134
+ l = 1 + Y(v), h = _;
1138
1135
  default:
1139
1136
  if (L < 1) {
1140
1137
  if (g == 123)
1141
1138
  --L;
1142
- else if (g == 125 && L++ == 0 && Oi() == 125)
1139
+ else if (g == 125 && L++ == 0 && bi() == 125)
1143
1140
  continue;
1144
1141
  }
1145
- switch (v += gr(g), g * L) {
1142
+ switch (v += fr(g), g * L) {
1146
1143
  // &
1147
1144
  case 38:
1148
- m = h > 0 ? 1 : (v += "\f", -1);
1145
+ m = f > 0 ? 1 : (v += "\f", -1);
1149
1146
  break;
1150
1147
  // ,
1151
1148
  case 44:
@@ -1153,7 +1150,7 @@ function dt(e, t, r, n, o, i, a, c, u) {
1153
1150
  break;
1154
1151
  // @
1155
1152
  case 64:
1156
- me() === 45 && (v += Tt(q())), p = me(), h = l = Y(V = v += Ri(ut())), g++;
1153
+ me() === 45 && (v += Nt(q())), p = me(), f = l = Y(E = v += Oi(lt())), g++;
1157
1154
  break;
1158
1155
  // -
1159
1156
  case 45:
@@ -1162,20 +1159,20 @@ function dt(e, t, r, n, o, i, a, c, u) {
1162
1159
  }
1163
1160
  return i;
1164
1161
  }
1165
- function qr(e, t, r, n, o, i, a, c, u, d, h, l) {
1166
- for (var p = o - 1, f = o === 0 ? i : [""], _ = qn(f), L = 0, y = 0, m = 0; L < n; ++L)
1167
- for (var g = 0, V = ke(e, p + 1, p = Gn(y = a[L])), b = e; g < _; ++g)
1168
- (b = jn(y > 0 ? f[g] + " " + V : w(V, /&\f/g, f[g]))) && (u[m++] = b);
1169
- return St(e, t, r, o === 0 ? Ct : c, u, d, h, l);
1162
+ function Fr(e, t, r, n, o, i, a, c, u, d, f, l) {
1163
+ for (var p = o - 1, h = o === 0 ? i : [""], _ = Fn(h), L = 0, y = 0, m = 0; L < n; ++L)
1164
+ for (var g = 0, E = ke(e, p + 1, p = Un(y = a[L])), b = e; g < _; ++g)
1165
+ (b = Wn(y > 0 ? h[g] + " " + E : w(E, /&\f/g, h[g]))) && (u[m++] = b);
1166
+ return Ct(e, t, r, o === 0 ? yt : c, u, d, f, l);
1170
1167
  }
1171
- function Pi(e, t, r, n) {
1172
- return St(e, t, r, zn, gr($i()), ke(e, 2, -2), 0, n);
1168
+ function Mi(e, t, r, n) {
1169
+ return Ct(e, t, r, Zn, fr(Si()), ke(e, 2, -2), 0, n);
1173
1170
  }
1174
- function Yr(e, t, r, n, o) {
1175
- return St(e, t, r, mr, ke(e, 0, n), ke(e, n + 1, -1), n, o);
1171
+ function zr(e, t, r, n, o) {
1172
+ return Ct(e, t, r, hr, ke(e, 0, n), ke(e, n + 1, -1), n, o);
1176
1173
  }
1177
- function Xn(e, t, r) {
1178
- switch (ki(e, t)) {
1174
+ function Gn(e, t, r) {
1175
+ switch (Ci(e, t)) {
1179
1176
  // color-adjust
1180
1177
  case 5103:
1181
1178
  return k + "print-" + e + e;
@@ -1211,17 +1208,17 @@ function Xn(e, t, r) {
1211
1208
  return k + e + e;
1212
1209
  // tab-size
1213
1210
  case 4789:
1214
- return ze + e + e;
1211
+ return Fe + e + e;
1215
1212
  // appearance, user-select, transform, hyphens, text-size-adjust
1216
1213
  case 5349:
1217
1214
  case 4246:
1218
1215
  case 4810:
1219
1216
  case 6968:
1220
1217
  case 2756:
1221
- return k + e + ze + e + $ + e + e;
1218
+ return k + e + Fe + e + $ + e + e;
1222
1219
  // writing-mode
1223
1220
  case 5936:
1224
- switch (I(e, t + 11)) {
1221
+ switch (N(e, t + 11)) {
1225
1222
  // vertical-l(r)
1226
1223
  case 114:
1227
1224
  return k + e + $ + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
@@ -1284,7 +1281,7 @@ function Xn(e, t, r) {
1284
1281
  case 3616:
1285
1282
  return r && r.some(function(n, o) {
1286
1283
  return t = o, Q(n.props, /grid-\w+-end/);
1287
- }) ? ~lt(e + (r = r[t].value), "span", 0) ? e : $ + w(e, "-start", "") + e + $ + "grid-row-span:" + (~lt(r, "span", 0) ? Q(r, /\d+/) : +Q(r, /\d+/) - +Q(e, /\d+/)) + ";" : $ + w(e, "-start", "") + e;
1284
+ }) ? ~ct(e + (r = r[t].value), "span", 0) ? e : $ + w(e, "-start", "") + e + $ + "grid-row-span:" + (~ct(r, "span", 0) ? Q(r, /\d+/) : +Q(r, /\d+/) - +Q(e, /\d+/)) + ";" : $ + w(e, "-start", "") + e;
1288
1285
  // grid-(row|column)-end
1289
1286
  case 4896:
1290
1287
  case 4128:
@@ -1311,17 +1308,17 @@ function Xn(e, t, r) {
1311
1308
  case 5021:
1312
1309
  case 4765:
1313
1310
  if (Y(e) - 1 - t > 6)
1314
- switch (I(e, t + 1)) {
1311
+ switch (N(e, t + 1)) {
1315
1312
  // (m)ax-content, (m)in-content
1316
1313
  case 109:
1317
- if (I(e, t + 4) !== 45)
1314
+ if (N(e, t + 4) !== 45)
1318
1315
  break;
1319
1316
  // (f)ill-available, (f)it-content
1320
1317
  case 102:
1321
- return w(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + ze + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1318
+ return w(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + Fe + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1322
1319
  // (s)tretch
1323
1320
  case 115:
1324
- return ~lt(e, "stretch", 0) ? Xn(w(e, "stretch", "fill-available"), t, r) + e : e;
1321
+ return ~ct(e, "stretch", 0) ? Gn(w(e, "stretch", "fill-available"), t, r) + e : e;
1325
1322
  }
1326
1323
  break;
1327
1324
  // grid-(column|row)
@@ -1332,15 +1329,15 @@ function Xn(e, t, r) {
1332
1329
  });
1333
1330
  // position: sticky
1334
1331
  case 4949:
1335
- if (I(e, t + 6) === 121)
1332
+ if (N(e, t + 6) === 121)
1336
1333
  return w(e, ":", ":" + k) + e;
1337
1334
  break;
1338
1335
  // display: (flex|inline-flex|grid|inline-grid)
1339
1336
  case 6444:
1340
- switch (I(e, I(e, 14) === 45 ? 18 : 11)) {
1337
+ switch (N(e, N(e, 14) === 45 ? 18 : 11)) {
1341
1338
  // (inline-)?fle(x)
1342
1339
  case 120:
1343
- return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + $ + "$2box$3") + e;
1340
+ return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + $ + "$2box$3") + e;
1344
1341
  // (inline-)?gri(d)
1345
1342
  case 100:
1346
1343
  return w(e, ":", ":" + $) + e;
@@ -1356,67 +1353,67 @@ function Xn(e, t, r) {
1356
1353
  }
1357
1354
  return e;
1358
1355
  }
1359
- function mt(e, t) {
1356
+ function _t(e, t) {
1360
1357
  for (var r = "", n = 0; n < e.length; n++)
1361
1358
  r += t(e[n], n, e, t) || "";
1362
1359
  return r;
1363
1360
  }
1364
- function Hi(e, t, r, n) {
1361
+ function Ni(e, t, r, n) {
1365
1362
  switch (e.type) {
1366
- case Vi:
1363
+ case vi:
1367
1364
  if (e.children.length) break;
1368
- case Ei:
1369
- case mr:
1365
+ case yi:
1366
+ case hr:
1370
1367
  return e.return = e.return || e.value;
1371
- case zn:
1368
+ case Zn:
1372
1369
  return "";
1373
- case Fn:
1374
- return e.return = e.value + "{" + mt(e.children, n) + "}";
1375
- case Ct:
1370
+ case Bn:
1371
+ return e.return = e.value + "{" + _t(e.children, n) + "}";
1372
+ case yt:
1376
1373
  if (!Y(e.value = e.props.join(","))) return "";
1377
1374
  }
1378
- return Y(r = mt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1375
+ return Y(r = _t(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1379
1376
  }
1380
- function Zi(e) {
1381
- var t = qn(e);
1377
+ function Ri(e) {
1378
+ var t = Fn(e);
1382
1379
  return function(r, n, o, i) {
1383
1380
  for (var a = "", c = 0; c < t; c++)
1384
1381
  a += e[c](r, n, o, i) || "";
1385
1382
  return a;
1386
1383
  };
1387
1384
  }
1388
- function Bi(e) {
1385
+ function Di(e) {
1389
1386
  return function(t) {
1390
1387
  t.root || (t = t.return) && e(t);
1391
1388
  };
1392
1389
  }
1393
- function Ui(e, t, r, n) {
1390
+ function Ti(e, t, r, n) {
1394
1391
  if (e.length > -1 && !e.return)
1395
1392
  switch (e.type) {
1396
- case mr:
1397
- e.return = Xn(e.value, e.length, r);
1393
+ case hr:
1394
+ e.return = Gn(e.value, e.length, r);
1398
1395
  return;
1399
- case Fn:
1400
- return mt([ae(e, { value: w(e.value, "@", "@" + k) })], n);
1401
- case Ct:
1396
+ case Bn:
1397
+ return _t([ae(e, { value: w(e.value, "@", "@" + k) })], n);
1398
+ case yt:
1402
1399
  if (e.length)
1403
- return xi(r = e.props, function(o) {
1400
+ return wi(r = e.props, function(o) {
1404
1401
  switch (Q(o, n = /(::plac\w+|:read-\w+)/)) {
1405
1402
  // :read-(only|write)
1406
1403
  case ":read-only":
1407
1404
  case ":read-write":
1408
- Se(ae(e, { props: [w(o, /:(read-\w+)/, ":" + ze + "$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: jr(r, n) });
1405
+ Se(ae(e, { props: [w(o, /:(read-\w+)/, ":" + Fe + "$1")] })), Se(ae(e, { props: [o] })), Ft(e, { props: Wr(r, n) });
1409
1406
  break;
1410
1407
  // :placeholder
1411
1408
  case "::placeholder":
1412
- Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + ze + "$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, $ + "input-$1")] })), Se(ae(e, { props: [o] })), Gt(e, { props: jr(r, n) });
1409
+ Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, ":" + Fe + "$1")] })), Se(ae(e, { props: [w(o, /:(plac\w+)/, $ + "input-$1")] })), Se(ae(e, { props: [o] })), Ft(e, { props: Wr(r, n) });
1413
1410
  break;
1414
1411
  }
1415
1412
  return "";
1416
1413
  });
1417
1414
  }
1418
1415
  }
1419
- var Wi = {
1416
+ var Ai = {
1420
1417
  animationIterationCount: 1,
1421
1418
  aspectRatio: 1,
1422
1419
  borderImageOutset: 1,
@@ -1464,9 +1461,9 @@ var Wi = {
1464
1461
  strokeMiterlimit: 1,
1465
1462
  strokeOpacity: 1,
1466
1463
  strokeWidth: 1
1467
- }, E = {}, ye = typeof process < "u" && E !== void 0 && (E.REACT_APP_SC_ATTR || E.SC_ATTR) || "data-styled", Kn = "active", Jn = "data-styled-version", Et = "6.1.18", Lr = `/*!sc*/
1468
- `, gt = typeof window < "u" && typeof document < "u", zi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && E !== void 0 && E.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && E.REACT_APP_SC_DISABLE_SPEEDY !== "" ? E.REACT_APP_SC_DISABLE_SPEEDY !== "false" && E.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && E !== void 0 && E.SC_DISABLE_SPEEDY !== void 0 && E.SC_DISABLE_SPEEDY !== "" ? E.SC_DISABLE_SPEEDY !== "false" && E.SC_DISABLE_SPEEDY : E.NODE_ENV !== "production"), Xr = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Fi = function(e, t) {
1469
- if (E.NODE_ENV !== "production") {
1464
+ }, V = {}, ye = typeof process < "u" && V !== void 0 && (V.REACT_APP_SC_ATTR || V.SC_ATTR) || "data-styled", jn = "active", qn = "data-styled-version", St = "6.1.18", pr = `/*!sc*/
1465
+ `, mt = typeof window < "u" && typeof document < "u", Pi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && V !== void 0 && V.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && V.REACT_APP_SC_DISABLE_SPEEDY !== "" ? V.REACT_APP_SC_DISABLE_SPEEDY !== "false" && V.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && V !== void 0 && V.SC_DISABLE_SPEEDY !== void 0 && V.SC_DISABLE_SPEEDY !== "" ? V.SC_DISABLE_SPEEDY !== "false" && V.SC_DISABLE_SPEEDY : V.NODE_ENV !== "production"), Gr = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Hi = function(e, t) {
1466
+ if (V.NODE_ENV !== "production") {
1470
1467
  var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
1471
1468
  `) + `You may see this warning because you've called styled inside another component.
1472
1469
  To resolve this only create new StyledComponents outside of any render method and function component.
@@ -1476,65 +1473,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1476
1473
  var i = !0;
1477
1474
  console.error = function(a) {
1478
1475
  for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
1479
- Xr.test(a) ? (i = !1, nt.delete(n)) : o.apply(void 0, Le([a], c, !1));
1480
- }, Xe(), i && !nt.has(n) && (console.warn(n), nt.add(n));
1476
+ Gr.test(a) ? (i = !1, rt.delete(n)) : o.apply(void 0, Le([a], c, !1));
1477
+ }, Xe(), i && !rt.has(n) && (console.warn(n), rt.add(n));
1481
1478
  } catch (a) {
1482
- Xr.test(a.message) && nt.delete(n);
1479
+ Gr.test(a.message) && rt.delete(n);
1483
1480
  } finally {
1484
1481
  console.error = o;
1485
1482
  }
1486
1483
  }
1487
- }, Vt = Object.freeze([]), $e = Object.freeze({});
1488
- function Gi(e, t, r) {
1484
+ }, bt = Object.freeze([]), $e = Object.freeze({});
1485
+ function Zi(e, t, r) {
1489
1486
  return r === void 0 && (r = $e), e.theme !== r.theme && e.theme || t || r.theme;
1490
1487
  }
1491
- var Yt = /* @__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, qi = /(^-|-$)/g;
1492
- function Kr(e) {
1493
- return e.replace(ji, "-").replace(qi, "");
1488
+ var jt = /* @__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"]), Bi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ui = /(^-|-$)/g;
1489
+ function jr(e) {
1490
+ return e.replace(Bi, "-").replace(Ui, "");
1494
1491
  }
1495
- var Yi = /(a)(d)/gi, ot = 52, Jr = function(e) {
1492
+ var Wi = /(a)(d)/gi, nt = 52, qr = function(e) {
1496
1493
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1497
1494
  };
1498
- function Xt(e) {
1495
+ function qt(e) {
1499
1496
  var t, r = "";
1500
- for (t = Math.abs(e); t > ot; t = t / ot | 0) r = Jr(t % ot) + r;
1501
- return (Jr(t % ot) + r).replace(Yi, "$1-$2");
1497
+ for (t = Math.abs(e); t > nt; t = t / nt | 0) r = qr(t % nt) + r;
1498
+ return (qr(t % nt) + r).replace(Wi, "$1-$2");
1502
1499
  }
1503
- var Rt, Qn = 5381, fe = function(e, t) {
1500
+ var Rt, Yn = 5381, he = function(e, t) {
1504
1501
  for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
1505
1502
  return e;
1506
- }, eo = function(e) {
1507
- return fe(Qn, e);
1503
+ }, Xn = function(e) {
1504
+ return he(Yn, e);
1508
1505
  };
1509
- function to(e) {
1510
- return Xt(eo(e) >>> 0);
1506
+ function Kn(e) {
1507
+ return qt(Xn(e) >>> 0);
1511
1508
  }
1512
- function ro(e) {
1513
- return E.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1509
+ function Jn(e) {
1510
+ return V.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1514
1511
  }
1515
- function At(e) {
1516
- return typeof e == "string" && (E.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1512
+ function Dt(e) {
1513
+ return typeof e == "string" && (V.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1517
1514
  }
1518
- var no = typeof Symbol == "function" && Symbol.for, oo = no ? Symbol.for("react.memo") : 60115, Xi = no ? Symbol.for("react.forward_ref") : 60112, Ki = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ji = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, io = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Qi = ((Rt = {})[Xi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Rt[oo] = io, Rt);
1519
- function Qr(e) {
1520
- return ("type" in (t = e) && t.type.$$typeof) === oo ? io : "$$typeof" in e ? Qi[e.$$typeof] : Ki;
1515
+ var Qn = typeof Symbol == "function" && Symbol.for, eo = Qn ? Symbol.for("react.memo") : 60115, Fi = Qn ? Symbol.for("react.forward_ref") : 60112, zi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Gi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, to = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ji = ((Rt = {})[Fi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Rt[eo] = to, Rt);
1516
+ function Yr(e) {
1517
+ return ("type" in (t = e) && t.type.$$typeof) === eo ? to : "$$typeof" in e ? ji[e.$$typeof] : zi;
1521
1518
  var t;
1522
1519
  }
1523
- var ea = Object.defineProperty, ta = Object.getOwnPropertyNames, en = Object.getOwnPropertySymbols, ra = Object.getOwnPropertyDescriptor, na = Object.getPrototypeOf, tn = Object.prototype;
1524
- function ao(e, t, r) {
1520
+ var qi = Object.defineProperty, Yi = Object.getOwnPropertyNames, Xr = Object.getOwnPropertySymbols, Xi = Object.getOwnPropertyDescriptor, Ki = Object.getPrototypeOf, Kr = Object.prototype;
1521
+ function ro(e, t, r) {
1525
1522
  if (typeof t != "string") {
1526
- if (tn) {
1527
- var n = na(t);
1528
- n && n !== tn && ao(e, n, r);
1523
+ if (Kr) {
1524
+ var n = Ki(t);
1525
+ n && n !== Kr && ro(e, n, r);
1529
1526
  }
1530
- var o = ta(t);
1531
- en && (o = o.concat(en(t)));
1532
- for (var i = Qr(e), a = Qr(t), c = 0; c < o.length; ++c) {
1527
+ var o = Yi(t);
1528
+ Xr && (o = o.concat(Xr(t)));
1529
+ for (var i = Yr(e), a = Yr(t), c = 0; c < o.length; ++c) {
1533
1530
  var u = o[c];
1534
- if (!(u in Ji || r && r[u] || a && u in a || i && u in i)) {
1535
- var d = ra(t, u);
1531
+ if (!(u in Gi || r && r[u] || a && u in a || i && u in i)) {
1532
+ var d = Xi(t, u);
1536
1533
  try {
1537
- ea(e, u, d);
1534
+ qi(e, u, d);
1538
1535
  } catch {
1539
1536
  }
1540
1537
  }
@@ -1545,13 +1542,13 @@ function ao(e, t, r) {
1545
1542
  function ve(e) {
1546
1543
  return typeof e == "function";
1547
1544
  }
1548
- function yr(e) {
1545
+ function _r(e) {
1549
1546
  return typeof e == "object" && "styledComponentId" in e;
1550
1547
  }
1551
- function he(e, t) {
1548
+ function fe(e, t) {
1552
1549
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1553
1550
  }
1554
- function Kt(e, t) {
1551
+ function Yt(e, t) {
1555
1552
  if (e.length === 0) return "";
1556
1553
  for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
1557
1554
  return r;
@@ -1559,16 +1556,16 @@ function Kt(e, t) {
1559
1556
  function Oe(e) {
1560
1557
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1561
1558
  }
1562
- function Jt(e, t, r) {
1559
+ function Xt(e, t, r) {
1563
1560
  if (r === void 0 && (r = !1), !r && !Oe(e) && !Array.isArray(e)) return t;
1564
- if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Jt(e[n], t[n]);
1565
- else if (Oe(t)) for (var n in t) e[n] = Jt(e[n], t[n]);
1561
+ if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Xt(e[n], t[n]);
1562
+ else if (Oe(t)) for (var n in t) e[n] = Xt(e[n], t[n]);
1566
1563
  return e;
1567
1564
  }
1568
- function vr(e, t) {
1565
+ function mr(e, t) {
1569
1566
  Object.defineProperty(e, "toString", { value: t });
1570
1567
  }
1571
- var oa = E.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1568
+ var Ji = V.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1572
1569
 
1573
1570
  `, 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.
1574
1571
 
@@ -1610,7 +1607,7 @@ as for instance in your render method then you may be running into this limitati
1610
1607
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1611
1608
  Has styled-components' style tag been unmounted or altered by another script?
1612
1609
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1613
- function ia() {
1610
+ function Qi() {
1614
1611
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1615
1612
  for (var r = e[0], n = [], o = 1, i = e.length; o < i; o += 1) n.push(e[o]);
1616
1613
  return n.forEach(function(a) {
@@ -1619,9 +1616,9 @@ function ia() {
1619
1616
  }
1620
1617
  function K(e) {
1621
1618
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1622
- return E.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(ia.apply(void 0, Le([oa[e]], t, !1)).trim());
1619
+ return V.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(Qi.apply(void 0, Le([Ji[e]], t, !1)).trim());
1623
1620
  }
1624
- var aa = function() {
1621
+ var ea = function() {
1625
1622
  function e(t) {
1626
1623
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1627
1624
  }
@@ -1644,50 +1641,50 @@ var aa = function() {
1644
1641
  }, e.prototype.getGroup = function(t) {
1645
1642
  var r = "";
1646
1643
  if (t >= this.length || this.groupSizes[t] === 0) return r;
1647
- for (var n = this.groupSizes[t], o = this.indexOfGroup(t), i = o + n, a = o; a < i; a++) r += "".concat(this.tag.getRule(a)).concat(Lr);
1644
+ for (var n = this.groupSizes[t], o = this.indexOfGroup(t), i = o + n, a = o; a < i; a++) r += "".concat(this.tag.getRule(a)).concat(pr);
1648
1645
  return r;
1649
1646
  }, e;
1650
- }(), sa = 1 << 30, ft = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), ht = 1, it = function(e) {
1651
- if (ft.has(e)) return ft.get(e);
1652
- for (; Lt.has(ht); ) ht++;
1647
+ }(), ta = 1 << 30, dt = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), ht = 1, ot = function(e) {
1648
+ if (dt.has(e)) return dt.get(e);
1649
+ for (; gt.has(ht); ) ht++;
1653
1650
  var t = ht++;
1654
- if (E.NODE_ENV !== "production" && ((0 | t) < 0 || t > sa)) throw K(16, "".concat(t));
1655
- return ft.set(e, t), Lt.set(t, e), t;
1656
- }, ca = function(e, t) {
1657
- ht = t + 1, ft.set(e, t), Lt.set(t, e);
1658
- }, la = "style[".concat(ye, "][").concat(Jn, '="').concat(Et, '"]'), ua = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), da = function(e, t, r) {
1651
+ if (V.NODE_ENV !== "production" && ((0 | t) < 0 || t > ta)) throw K(16, "".concat(t));
1652
+ return dt.set(e, t), gt.set(t, e), t;
1653
+ }, ra = function(e, t) {
1654
+ ht = t + 1, dt.set(e, t), gt.set(t, e);
1655
+ }, na = "style[".concat(ye, "][").concat(qn, '="').concat(St, '"]'), oa = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ia = function(e, t, r) {
1659
1656
  for (var n, o = r.split(","), i = 0, a = o.length; i < a; i++) (n = o[i]) && e.registerName(t, n);
1660
- }, fa = function(e, t) {
1661
- for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Lr), o = [], i = 0, a = n.length; i < a; i++) {
1657
+ }, aa = function(e, t) {
1658
+ for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(pr), o = [], i = 0, a = n.length; i < a; i++) {
1662
1659
  var c = n[i].trim();
1663
1660
  if (c) {
1664
- var u = c.match(ua);
1661
+ var u = c.match(oa);
1665
1662
  if (u) {
1666
- var d = 0 | parseInt(u[1], 10), h = u[2];
1667
- d !== 0 && (ca(h, d), da(e, h, u[3]), e.getTag().insertRules(d, o)), o.length = 0;
1663
+ var d = 0 | parseInt(u[1], 10), f = u[2];
1664
+ d !== 0 && (ra(f, d), ia(e, f, u[3]), e.getTag().insertRules(d, o)), o.length = 0;
1668
1665
  } else o.push(c);
1669
1666
  }
1670
1667
  }
1671
- }, rn = function(e) {
1672
- for (var t = document.querySelectorAll(la), r = 0, n = t.length; r < n; r++) {
1668
+ }, Jr = function(e) {
1669
+ for (var t = document.querySelectorAll(na), r = 0, n = t.length; r < n; r++) {
1673
1670
  var o = t[r];
1674
- o && o.getAttribute(ye) !== Kn && (fa(e, o), o.parentNode && o.parentNode.removeChild(o));
1671
+ o && o.getAttribute(ye) !== jn && (aa(e, o), o.parentNode && o.parentNode.removeChild(o));
1675
1672
  }
1676
1673
  };
1677
- function ha() {
1674
+ function sa() {
1678
1675
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1679
1676
  }
1680
- var so = function(e) {
1677
+ var no = function(e) {
1681
1678
  var t = document.head, r = e || t, n = document.createElement("style"), o = function(c) {
1682
1679
  var u = Array.from(c.querySelectorAll("style[".concat(ye, "]")));
1683
1680
  return u[u.length - 1];
1684
1681
  }(r), i = o !== void 0 ? o.nextSibling : null;
1685
- n.setAttribute(ye, Kn), n.setAttribute(Jn, Et);
1686
- var a = ha();
1682
+ n.setAttribute(ye, jn), n.setAttribute(qn, St);
1683
+ var a = sa();
1687
1684
  return a && n.setAttribute("nonce", a), r.insertBefore(n, i), n;
1688
- }, pa = function() {
1685
+ }, ca = function() {
1689
1686
  function e(t) {
1690
- this.element = so(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1687
+ this.element = no(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
1691
1688
  if (r.sheet) return r.sheet;
1692
1689
  for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
1693
1690
  var a = n[o];
@@ -1708,9 +1705,9 @@ var so = function(e) {
1708
1705
  var r = this.sheet.cssRules[t];
1709
1706
  return r && r.cssText ? r.cssText : "";
1710
1707
  }, e;
1711
- }(), _a = function() {
1708
+ }(), la = function() {
1712
1709
  function e(t) {
1713
- this.element = so(t), this.nodes = this.element.childNodes, this.length = 0;
1710
+ this.element = no(t), this.nodes = this.element.childNodes, this.length = 0;
1714
1711
  }
1715
1712
  return e.prototype.insertRule = function(t, r) {
1716
1713
  if (t <= this.length && t >= 0) {
@@ -1723,7 +1720,7 @@ var so = function(e) {
1723
1720
  }, e.prototype.getRule = function(t) {
1724
1721
  return t < this.length ? this.nodes[t].textContent : "";
1725
1722
  }, e;
1726
- }(), ma = function() {
1723
+ }(), ua = function() {
1727
1724
  function e(t) {
1728
1725
  this.rules = [], this.length = 0;
1729
1726
  }
@@ -1734,226 +1731,226 @@ var so = function(e) {
1734
1731
  }, e.prototype.getRule = function(t) {
1735
1732
  return t < this.length ? this.rules[t] : "";
1736
1733
  }, e;
1737
- }(), nn = gt, ga = { isServer: !gt, useCSSOMInjection: !zi }, co = function() {
1734
+ }(), Qr = mt, da = { isServer: !mt, useCSSOMInjection: !Pi }, oo = function() {
1738
1735
  function e(t, r, n) {
1739
1736
  t === void 0 && (t = $e), r === void 0 && (r = {});
1740
1737
  var o = this;
1741
- this.options = D(D({}, ga), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && gt && nn && (nn = !1, rn(this)), vr(this, function() {
1738
+ this.options = R(R({}, da), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && mt && Qr && (Qr = !1, Jr(this)), mr(this, function() {
1742
1739
  return function(i) {
1743
1740
  for (var a = i.getTag(), c = a.length, u = "", d = function(l) {
1744
1741
  var p = function(m) {
1745
- return Lt.get(m);
1742
+ return gt.get(m);
1746
1743
  }(l);
1747
1744
  if (p === void 0) return "continue";
1748
- var f = i.names.get(p), _ = a.getGroup(l);
1749
- if (f === void 0 || !f.size || _.length === 0) return "continue";
1745
+ var h = i.names.get(p), _ = a.getGroup(l);
1746
+ if (h === void 0 || !h.size || _.length === 0) return "continue";
1750
1747
  var L = "".concat(ye, ".g").concat(l, '[id="').concat(p, '"]'), y = "";
1751
- f !== void 0 && f.forEach(function(m) {
1748
+ h !== void 0 && h.forEach(function(m) {
1752
1749
  m.length > 0 && (y += "".concat(m, ","));
1753
- }), u += "".concat(_).concat(L, '{content:"').concat(y, '"}').concat(Lr);
1754
- }, h = 0; h < c; h++) d(h);
1750
+ }), u += "".concat(_).concat(L, '{content:"').concat(y, '"}').concat(pr);
1751
+ }, f = 0; f < c; f++) d(f);
1755
1752
  return u;
1756
1753
  }(o);
1757
1754
  });
1758
1755
  }
1759
1756
  return e.registerId = function(t) {
1760
- return it(t);
1757
+ return ot(t);
1761
1758
  }, e.prototype.rehydrate = function() {
1762
- !this.server && gt && rn(this);
1759
+ !this.server && mt && Jr(this);
1763
1760
  }, e.prototype.reconstructWithOptions = function(t, r) {
1764
- return r === void 0 && (r = !0), new e(D(D({}, this.options), t), this.gs, r && this.names || void 0);
1761
+ return r === void 0 && (r = !0), new e(R(R({}, this.options), t), this.gs, r && this.names || void 0);
1765
1762
  }, e.prototype.allocateGSInstance = function(t) {
1766
1763
  return this.gs[t] = (this.gs[t] || 0) + 1;
1767
1764
  }, e.prototype.getTag = function() {
1768
1765
  return this.tag || (this.tag = (t = function(r) {
1769
1766
  var n = r.useCSSOMInjection, o = r.target;
1770
- return r.isServer ? new ma(o) : n ? new pa(o) : new _a(o);
1771
- }(this.options), new aa(t)));
1767
+ return r.isServer ? new ua(o) : n ? new ca(o) : new la(o);
1768
+ }(this.options), new ea(t)));
1772
1769
  var t;
1773
1770
  }, e.prototype.hasNameForId = function(t, r) {
1774
1771
  return this.names.has(t) && this.names.get(t).has(r);
1775
1772
  }, e.prototype.registerName = function(t, r) {
1776
- if (it(t), this.names.has(t)) this.names.get(t).add(r);
1773
+ if (ot(t), this.names.has(t)) this.names.get(t).add(r);
1777
1774
  else {
1778
1775
  var n = /* @__PURE__ */ new Set();
1779
1776
  n.add(r), this.names.set(t, n);
1780
1777
  }
1781
1778
  }, e.prototype.insertRules = function(t, r, n) {
1782
- this.registerName(t, r), this.getTag().insertRules(it(t), n);
1779
+ this.registerName(t, r), this.getTag().insertRules(ot(t), n);
1783
1780
  }, e.prototype.clearNames = function(t) {
1784
1781
  this.names.has(t) && this.names.get(t).clear();
1785
1782
  }, e.prototype.clearRules = function(t) {
1786
- this.getTag().clearGroup(it(t)), this.clearNames(t);
1783
+ this.getTag().clearGroup(ot(t)), this.clearNames(t);
1787
1784
  }, e.prototype.clearTag = function() {
1788
1785
  this.tag = void 0;
1789
1786
  }, e;
1790
- }(), La = /&/g, ya = /^\s*\/\/.*$/gm;
1791
- function lo(e, t) {
1787
+ }(), ha = /&/g, fa = /^\s*\/\/.*$/gm;
1788
+ function io(e, t) {
1792
1789
  return e.map(function(r) {
1793
1790
  return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
1794
1791
  return "".concat(t, " ").concat(n);
1795
- })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = lo(r.children, t)), r;
1792
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = io(r.children, t)), r;
1796
1793
  });
1797
1794
  }
1798
- function uo(e) {
1799
- var t, r, n, o = e === void 0 ? $e : e, i = o.options, a = i === void 0 ? $e : i, c = o.plugins, u = c === void 0 ? Vt : c, d = function(p, f, _) {
1795
+ function ao(e) {
1796
+ var t, r, n, o = e === void 0 ? $e : e, i = o.options, a = i === void 0 ? $e : i, c = o.plugins, u = c === void 0 ? bt : c, d = function(p, h, _) {
1800
1797
  return _.startsWith(r) && _.endsWith(r) && _.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
1801
- }, h = u.slice();
1802
- h.push(function(p) {
1803
- p.type === Ct && p.value.includes("&") && (p.props[0] = p.props[0].replace(La, r).replace(n, d));
1804
- }), a.prefix && h.push(Ui), h.push(Hi);
1805
- var l = function(p, f, _, L) {
1806
- f === void 0 && (f = ""), _ === void 0 && (_ = ""), L === void 0 && (L = "&"), t = L, r = f, n = new RegExp("\\".concat(r, "\\b"), "g");
1807
- var y = p.replace(ya, ""), m = Ai(_ || f ? "".concat(_, " ").concat(f, " { ").concat(y, " }") : y);
1808
- a.namespace && (m = lo(m, a.namespace));
1798
+ }, f = u.slice();
1799
+ f.push(function(p) {
1800
+ p.type === yt && p.value.includes("&") && (p.props[0] = p.props[0].replace(ha, r).replace(n, d));
1801
+ }), a.prefix && f.push(Ti), f.push(Ni);
1802
+ var l = function(p, h, _, L) {
1803
+ h === void 0 && (h = ""), _ === void 0 && (_ = ""), L === void 0 && (L = "&"), t = L, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
1804
+ var y = p.replace(fa, ""), m = Ii(_ || h ? "".concat(_, " ").concat(h, " { ").concat(y, " }") : y);
1805
+ a.namespace && (m = io(m, a.namespace));
1809
1806
  var g = [];
1810
- return mt(m, Zi(h.concat(Bi(function(V) {
1811
- return g.push(V);
1807
+ return _t(m, Ri(f.concat(Di(function(E) {
1808
+ return g.push(E);
1812
1809
  })))), g;
1813
1810
  };
1814
- return l.hash = u.length ? u.reduce(function(p, f) {
1815
- return f.name || K(15), fe(p, f.name);
1816
- }, Qn).toString() : "", l;
1817
- }
1818
- var va = new co(), Qt = uo(), Cr = oe.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: Qt });
1819
- Cr.Consumer;
1820
- var Ca = oe.createContext(void 0);
1821
- function er() {
1822
- return Ke(Cr);
1823
- }
1824
- function wa(e) {
1825
- var t = z(e.stylisPlugins), r = t[0], n = t[1], o = er().styleSheet, i = re(function() {
1811
+ return l.hash = u.length ? u.reduce(function(p, h) {
1812
+ return h.name || K(15), he(p, h.name);
1813
+ }, Yn).toString() : "", l;
1814
+ }
1815
+ var pa = new oo(), Kt = ao(), gr = oe.createContext({ shouldForwardProp: void 0, styleSheet: pa, stylis: Kt });
1816
+ gr.Consumer;
1817
+ var _a = oe.createContext(void 0);
1818
+ function Jt() {
1819
+ return Ke(gr);
1820
+ }
1821
+ function ma(e) {
1822
+ var t = F(e.stylisPlugins), r = t[0], n = t[1], o = Jt().styleSheet, i = re(function() {
1826
1823
  var u = o;
1827
1824
  return e.sheet ? u = e.sheet : e.target && (u = u.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (u = u.reconstructWithOptions({ useCSSOMInjection: !1 })), u;
1828
1825
  }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = re(function() {
1829
- return uo({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
1826
+ return ao({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: r });
1830
1827
  }, [e.enableVendorPrefixes, e.namespace, r]);
1831
1828
  ne(function() {
1832
- bi(r, e.stylisPlugins) || n(e.stylisPlugins);
1829
+ Li(r, e.stylisPlugins) || n(e.stylisPlugins);
1833
1830
  }, [e.stylisPlugins]);
1834
1831
  var c = re(function() {
1835
1832
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
1836
1833
  }, [e.shouldForwardProp, i, a]);
1837
- return oe.createElement(Cr.Provider, { value: c }, oe.createElement(Ca.Provider, { value: a }, e.children));
1834
+ return oe.createElement(gr.Provider, { value: c }, oe.createElement(_a.Provider, { value: a }, e.children));
1838
1835
  }
1839
- var tr = function() {
1836
+ var Qt = function() {
1840
1837
  function e(t, r) {
1841
1838
  var n = this;
1842
1839
  this.inject = function(o, i) {
1843
- i === void 0 && (i = Qt);
1840
+ i === void 0 && (i = Kt);
1844
1841
  var a = n.name + i.hash;
1845
1842
  o.hasNameForId(n.id, a) || o.insertRules(n.id, a, i(n.rules, a, "@keyframes"));
1846
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, vr(this, function() {
1843
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, mr(this, function() {
1847
1844
  throw K(12, String(n.name));
1848
1845
  });
1849
1846
  }
1850
1847
  return e.prototype.getName = function(t) {
1851
- return t === void 0 && (t = Qt), this.name + t.hash;
1848
+ return t === void 0 && (t = Kt), this.name + t.hash;
1852
1849
  }, e;
1853
- }(), Sa = function(e) {
1850
+ }(), ga = function(e) {
1854
1851
  return e >= "A" && e <= "Z";
1855
1852
  };
1856
- function on(e) {
1853
+ function en(e) {
1857
1854
  for (var t = "", r = 0; r < e.length; r++) {
1858
1855
  var n = e[r];
1859
1856
  if (r === 1 && n === "-" && e[0] === "-") return e;
1860
- Sa(n) ? t += "-" + n.toLowerCase() : t += n;
1857
+ ga(n) ? t += "-" + n.toLowerCase() : t += n;
1861
1858
  }
1862
1859
  return t.startsWith("ms-") ? "-" + t : t;
1863
1860
  }
1864
- var fo = function(e) {
1861
+ var so = function(e) {
1865
1862
  return e == null || e === !1 || e === "";
1866
- }, ho = function(e) {
1863
+ }, co = function(e) {
1867
1864
  var t, r, n = [];
1868
1865
  for (var o in e) {
1869
1866
  var i = e[o];
1870
- e.hasOwnProperty(o) && !fo(i) && (Array.isArray(i) && i.isCss || ve(i) ? n.push("".concat(on(o), ":"), i, ";") : Oe(i) ? n.push.apply(n, Le(Le(["".concat(o, " {")], ho(i), !1), ["}"], !1)) : n.push("".concat(on(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Wi || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1867
+ e.hasOwnProperty(o) && !so(i) && (Array.isArray(i) && i.isCss || ve(i) ? n.push("".concat(en(o), ":"), i, ";") : Oe(i) ? n.push.apply(n, Le(Le(["".concat(o, " {")], co(i), !1), ["}"], !1)) : n.push("".concat(en(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Ai || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1871
1868
  }
1872
1869
  return n;
1873
1870
  };
1874
1871
  function ge(e, t, r, n) {
1875
- if (fo(e)) return [];
1876
- if (yr(e)) return [".".concat(e.styledComponentId)];
1872
+ if (so(e)) return [];
1873
+ if (_r(e)) return [".".concat(e.styledComponentId)];
1877
1874
  if (ve(e)) {
1878
1875
  if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1879
1876
  var o = e(t);
1880
- return E.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof tr || Oe(o) || o === null || console.error("".concat(ro(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, r, n);
1877
+ return V.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Qt || Oe(o) || o === null || console.error("".concat(Jn(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, r, n);
1881
1878
  }
1882
1879
  var i;
1883
- return e instanceof tr ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Oe(e) ? ho(e) : Array.isArray(e) ? Array.prototype.concat.apply(Vt, e.map(function(a) {
1880
+ return e instanceof Qt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Oe(e) ? co(e) : Array.isArray(e) ? Array.prototype.concat.apply(bt, e.map(function(a) {
1884
1881
  return ge(a, t, r, n);
1885
1882
  })) : [e.toString()];
1886
1883
  }
1887
- function ba(e) {
1884
+ function La(e) {
1888
1885
  for (var t = 0; t < e.length; t += 1) {
1889
1886
  var r = e[t];
1890
- if (ve(r) && !yr(r)) return !1;
1887
+ if (ve(r) && !_r(r)) return !1;
1891
1888
  }
1892
1889
  return !0;
1893
1890
  }
1894
- var Ea = eo(Et), Va = function() {
1891
+ var ya = Xn(St), va = function() {
1895
1892
  function e(t, r, n) {
1896
- this.rules = t, this.staticRulesId = "", this.isStatic = E.NODE_ENV === "production" && (n === void 0 || n.isStatic) && ba(t), this.componentId = r, this.baseHash = fe(Ea, r), this.baseStyle = n, co.registerId(r);
1893
+ this.rules = t, this.staticRulesId = "", this.isStatic = V.NODE_ENV === "production" && (n === void 0 || n.isStatic) && La(t), this.componentId = r, this.baseHash = he(ya, r), this.baseStyle = n, oo.registerId(r);
1897
1894
  }
1898
1895
  return e.prototype.generateAndInjectStyles = function(t, r, n) {
1899
1896
  var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
1900
- if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = he(o, this.staticRulesId);
1897
+ if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = fe(o, this.staticRulesId);
1901
1898
  else {
1902
- var i = Kt(ge(this.rules, t, r, n)), a = Xt(fe(this.baseHash, i) >>> 0);
1899
+ var i = Yt(ge(this.rules, t, r, n)), a = qt(he(this.baseHash, i) >>> 0);
1903
1900
  if (!r.hasNameForId(this.componentId, a)) {
1904
1901
  var c = n(i, ".".concat(a), void 0, this.componentId);
1905
1902
  r.insertRules(this.componentId, a, c);
1906
1903
  }
1907
- o = he(o, a), this.staticRulesId = a;
1904
+ o = fe(o, a), this.staticRulesId = a;
1908
1905
  }
1909
1906
  else {
1910
- for (var u = fe(this.baseHash, n.hash), d = "", h = 0; h < this.rules.length; h++) {
1911
- var l = this.rules[h];
1912
- if (typeof l == "string") d += l, E.NODE_ENV !== "production" && (u = fe(u, l));
1907
+ for (var u = he(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
1908
+ var l = this.rules[f];
1909
+ if (typeof l == "string") d += l, V.NODE_ENV !== "production" && (u = he(u, l));
1913
1910
  else if (l) {
1914
- var p = Kt(ge(l, t, r, n));
1915
- u = fe(u, p + h), d += p;
1911
+ var p = Yt(ge(l, t, r, n));
1912
+ u = he(u, p + f), d += p;
1916
1913
  }
1917
1914
  }
1918
1915
  if (d) {
1919
- var f = Xt(u >>> 0);
1920
- r.hasNameForId(this.componentId, f) || r.insertRules(this.componentId, f, n(d, ".".concat(f), void 0, this.componentId)), o = he(o, f);
1916
+ var h = qt(u >>> 0);
1917
+ r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), o = fe(o, h);
1921
1918
  }
1922
1919
  }
1923
1920
  return o;
1924
1921
  }, e;
1925
1922
  }(), je = oe.createContext(void 0);
1926
1923
  je.Consumer;
1927
- function po() {
1924
+ function lo() {
1928
1925
  var e = Ke(je);
1929
1926
  if (!e) throw K(18);
1930
1927
  return e;
1931
1928
  }
1932
- function ka(e) {
1929
+ function Ca(e) {
1933
1930
  var t = oe.useContext(je), r = re(function() {
1934
1931
  return function(n, o) {
1935
1932
  if (!n) throw K(14);
1936
1933
  if (ve(n)) {
1937
1934
  var i = n(o);
1938
- if (E.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw K(7);
1935
+ if (V.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw K(7);
1939
1936
  return i;
1940
1937
  }
1941
1938
  if (Array.isArray(n) || typeof n != "object") throw K(8);
1942
- return o ? D(D({}, o), n) : n;
1939
+ return o ? R(R({}, o), n) : n;
1943
1940
  }(e.theme, t);
1944
1941
  }, [e.theme, t]);
1945
1942
  return e.children ? oe.createElement(je.Provider, { value: r }, e.children) : null;
1946
1943
  }
1947
- var Pt = {}, an = /* @__PURE__ */ new Set();
1948
- function xa(e, t, r) {
1949
- var n = yr(e), o = e, i = !At(e), a = t.attrs, c = a === void 0 ? Vt : a, u = t.componentId, d = u === void 0 ? function(b, x) {
1950
- var S = typeof b != "string" ? "sc" : Kr(b);
1951
- Pt[S] = (Pt[S] || 0) + 1;
1952
- var v = "".concat(S, "-").concat(to(Et + S + Pt[S]));
1944
+ var Tt = {}, tn = /* @__PURE__ */ new Set();
1945
+ function wa(e, t, r) {
1946
+ var n = _r(e), o = e, i = !Dt(e), a = t.attrs, c = a === void 0 ? bt : a, u = t.componentId, d = u === void 0 ? function(b, x) {
1947
+ var S = typeof b != "string" ? "sc" : jr(b);
1948
+ Tt[S] = (Tt[S] || 0) + 1;
1949
+ var v = "".concat(S, "-").concat(Kn(St + S + Tt[S]));
1953
1950
  return x ? "".concat(x, "-").concat(v) : v;
1954
- }(t.displayName, t.parentComponentId) : u, h = t.displayName, l = h === void 0 ? function(b) {
1955
- return At(b) ? "styled.".concat(b) : "Styled(".concat(ro(b), ")");
1956
- }(e) : h, p = t.displayName && t.componentId ? "".concat(Kr(t.displayName), "-").concat(t.componentId) : t.componentId || d, f = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, _ = t.shouldForwardProp;
1951
+ }(t.displayName, t.parentComponentId) : u, f = t.displayName, l = f === void 0 ? function(b) {
1952
+ return Dt(b) ? "styled.".concat(b) : "Styled(".concat(Jn(b), ")");
1953
+ }(e) : f, p = t.displayName && t.componentId ? "".concat(jr(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, _ = t.shouldForwardProp;
1957
1954
  if (n && o.shouldForwardProp) {
1958
1955
  var L = o.shouldForwardProp;
1959
1956
  if (t.shouldForwardProp) {
@@ -1963,39 +1960,39 @@ function xa(e, t, r) {
1963
1960
  };
1964
1961
  } else _ = L;
1965
1962
  }
1966
- var m = new Va(r, p, n ? o.componentStyle : void 0);
1963
+ var m = new va(r, p, n ? o.componentStyle : void 0);
1967
1964
  function g(b, x) {
1968
1965
  return function(S, v, A) {
1969
- var B = S.attrs, De = S.componentStyle, U = S.defaultProps, le = S.foldedComponentIds, Sr = S.styledComponentId, Co = S.target, wo = oe.useContext(je), So = er(), xt = S.shouldForwardProp || So.shouldForwardProp;
1970
- E.NODE_ENV !== "production" && _t(Sr);
1971
- var br = Gi(v, wo, U) || $e, J = function(Je, Ae, Qe) {
1972
- for (var we, ue = D(D({}, Ae), { className: void 0, theme: Qe }), Mt = 0; Mt < Je.length; Mt += 1) {
1973
- var et = ve(we = Je[Mt]) ? we(ue) : we;
1974
- for (var ie in et) ue[ie] = ie === "className" ? he(ue[ie], et[ie]) : ie === "style" ? D(D({}, ue[ie]), et[ie]) : et[ie];
1966
+ var B = S.attrs, Re = S.componentStyle, U = S.defaultProps, le = S.foldedComponentIds, yr = S.styledComponentId, go = S.target, Lo = oe.useContext(je), yo = Jt(), Et = S.shouldForwardProp || yo.shouldForwardProp;
1967
+ V.NODE_ENV !== "production" && pt(yr);
1968
+ var vr = Zi(v, Lo, U) || $e, J = function(Je, Ae, Qe) {
1969
+ for (var we, ue = R(R({}, Ae), { className: void 0, theme: Qe }), $t = 0; $t < Je.length; $t += 1) {
1970
+ var et = ve(we = Je[$t]) ? we(ue) : we;
1971
+ for (var ie in et) ue[ie] = ie === "className" ? fe(ue[ie], et[ie]) : ie === "style" ? R(R({}, ue[ie]), et[ie]) : et[ie];
1975
1972
  }
1976
- return Ae.className && (ue.className = he(ue.className, Ae.className)), ue;
1977
- }(B, v, br), Te = J.as || Co, Re = {};
1978
- for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme === br || (W === "forwardedAs" ? Re.as = J.forwardedAs : xt && !xt(W, Te) || (Re[W] = J[W], xt || E.NODE_ENV !== "development" || Wo(W) || an.has(W) || !Yt.has(Te) || (an.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.)')))));
1979
- var $t = function(Je, Ae) {
1980
- var Qe = er(), we = Je.generateAndInjectStyles(Ae, Qe.styleSheet, Qe.stylis);
1981
- return E.NODE_ENV !== "production" && _t(we), we;
1982
- }(De, J);
1983
- E.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses($t);
1984
- var Ot = he(le, Sr);
1985
- return $t && (Ot += " " + $t), J.className && (Ot += " " + J.className), Re[At(Te) && !Yt.has(Te) ? "class" : "className"] = Ot, A && (Re.ref = A), T(Te, Re);
1986
- }(V, b, x);
1973
+ return Ae.className && (ue.className = fe(ue.className, Ae.className)), ue;
1974
+ }(B, v, vr), De = J.as || go, Te = {};
1975
+ for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme === vr || (W === "forwardedAs" ? Te.as = J.forwardedAs : Et && !Et(W, De) || (Te[W] = J[W], Et || V.NODE_ENV !== "development" || Ao(W) || tn.has(W) || !jt.has(De) || (tn.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.)')))));
1976
+ var kt = function(Je, Ae) {
1977
+ var Qe = Jt(), we = Je.generateAndInjectStyles(Ae, Qe.styleSheet, Qe.stylis);
1978
+ return V.NODE_ENV !== "production" && pt(we), we;
1979
+ }(Re, J);
1980
+ V.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(kt);
1981
+ var xt = fe(le, yr);
1982
+ return kt && (xt += " " + kt), J.className && (xt += " " + J.className), Te[Dt(De) && !jt.has(De) ? "class" : "className"] = xt, A && (Te.ref = A), D(De, Te);
1983
+ }(E, b, x);
1987
1984
  }
1988
1985
  g.displayName = l;
1989
- var V = oe.forwardRef(g);
1990
- return V.attrs = f, V.componentStyle = m, V.displayName = l, V.shouldForwardProp = _, V.foldedComponentIds = n ? he(o.foldedComponentIds, o.styledComponentId) : "", V.styledComponentId = p, V.target = n ? o.target : e, Object.defineProperty(V, "defaultProps", { get: function() {
1986
+ var E = oe.forwardRef(g);
1987
+ return E.attrs = h, E.componentStyle = m, E.displayName = l, E.shouldForwardProp = _, E.foldedComponentIds = n ? fe(o.foldedComponentIds, o.styledComponentId) : "", E.styledComponentId = p, E.target = n ? o.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
1991
1988
  return this._foldedDefaultProps;
1992
1989
  }, set: function(b) {
1993
1990
  this._foldedDefaultProps = n ? function(x) {
1994
1991
  for (var S = [], v = 1; v < arguments.length; v++) S[v - 1] = arguments[v];
1995
- for (var A = 0, B = S; A < B.length; A++) Jt(x, B[A], !0);
1992
+ for (var A = 0, B = S; A < B.length; A++) Xt(x, B[A], !0);
1996
1993
  return x;
1997
1994
  }({}, o.defaultProps, b) : b;
1998
- } }), E.NODE_ENV !== "production" && (Fi(l, p), V.warnTooManyClasses = /* @__PURE__ */ function(b, x) {
1995
+ } }), V.NODE_ENV !== "production" && (Hi(l, p), E.warnTooManyClasses = /* @__PURE__ */ function(b, x) {
1999
1996
  var S = {}, v = !1;
2000
1997
  return function(A) {
2001
1998
  if (!v && (S[A] = !0, Object.keys(S).length >= 200)) {
@@ -2012,54 +2009,54 @@ Example:
2012
2009
  <Component />`), v = !0, S = {};
2013
2010
  }
2014
2011
  };
2015
- }(l, p)), vr(V, function() {
2016
- return ".".concat(V.styledComponentId);
2017
- }), i && ao(V, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), V;
2012
+ }(l, p)), mr(E, function() {
2013
+ return ".".concat(E.styledComponentId);
2014
+ }), i && ro(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), E;
2018
2015
  }
2019
- function sn(e, t) {
2016
+ function rn(e, t) {
2020
2017
  for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
2021
2018
  return r;
2022
2019
  }
2023
- var cn = function(e) {
2020
+ var nn = function(e) {
2024
2021
  return Object.assign(e, { isCss: !0 });
2025
2022
  };
2026
- function wr(e) {
2023
+ function Lr(e) {
2027
2024
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
2028
- if (ve(e) || Oe(e)) return cn(ge(sn(Vt, Le([e], t, !0))));
2025
+ if (ve(e) || Oe(e)) return nn(ge(rn(bt, Le([e], t, !0))));
2029
2026
  var n = e;
2030
- return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ge(n) : cn(ge(sn(n, t)));
2027
+ return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ge(n) : nn(ge(rn(n, t)));
2031
2028
  }
2032
- function rr(e, t, r) {
2029
+ function er(e, t, r) {
2033
2030
  if (r === void 0 && (r = $e), !t) throw K(1, t);
2034
2031
  var n = function(o) {
2035
2032
  for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
2036
- return e(t, r, wr.apply(void 0, Le([o], i, !1)));
2033
+ return e(t, r, Lr.apply(void 0, Le([o], i, !1)));
2037
2034
  };
2038
2035
  return n.attrs = function(o) {
2039
- return rr(e, t, D(D({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
2036
+ return er(e, t, R(R({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
2040
2037
  }, n.withConfig = function(o) {
2041
- return rr(e, t, D(D({}, r), o));
2038
+ return er(e, t, R(R({}, r), o));
2042
2039
  }, n;
2043
2040
  }
2044
- var _o = function(e) {
2045
- return rr(xa, e);
2046
- }, Z = _o;
2047
- Yt.forEach(function(e) {
2048
- Z[e] = _o(e);
2041
+ var uo = function(e) {
2042
+ return er(wa, e);
2043
+ }, Z = uo;
2044
+ jt.forEach(function(e) {
2045
+ Z[e] = uo(e);
2049
2046
  });
2050
- function kt(e) {
2047
+ function Vt(e) {
2051
2048
  for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
2052
- E.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.");
2053
- var n = Kt(wr.apply(void 0, Le([e], t, !1))), o = to(n);
2054
- return new tr(o, n);
2049
+ V.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.");
2050
+ var n = Yt(Lr.apply(void 0, Le([e], t, !1))), o = Kn(n);
2051
+ return new Qt(o, n);
2055
2052
  }
2056
- E.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2053
+ V.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2057
2054
  Perhaps you're looking to import 'styled-components/native'?
2058
2055
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2059
- var at = "__sc-".concat(ye, "__");
2060
- E.NODE_ENV !== "production" && E.NODE_ENV !== "test" && typeof window < "u" && (window[at] || (window[at] = 0), window[at] === 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.
2056
+ var it = "__sc-".concat(ye, "__");
2057
+ V.NODE_ENV !== "production" && V.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.
2061
2058
 
2062
- See https://s-c.sh/2BAXzed for more info.`), window[at] += 1);
2059
+ See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2063
2060
  const P = {
2064
2061
  ID_CORNERS: "id-corners",
2065
2062
  ID_DASH: "id-dash",
@@ -2073,7 +2070,7 @@ const P = {
2073
2070
  ID_SOLID_ROUNDED: "id-solid-rounded",
2074
2071
  PASSPORT_SOLID_BACK: "passport-solid-back",
2075
2072
  PASSPORT_SOLID_BACK_BLANK: "passport-solid-back-blank"
2076
- }, ln = 0.24, $a = 24, Oa = 2, mo = 14, Ma = 0.0276;
2073
+ }, on = 0.24, Sa = 24, ba = 2, ho = 14, Va = 0.0276;
2077
2074
  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 || {});
2078
2075
  const Be = {
2079
2076
  300: {
@@ -2096,36 +2093,36 @@ const Be = {
2096
2093
  marginLeft: 12,
2097
2094
  buttonPadding: 24
2098
2095
  }
2099
- }, Na = {
2100
- [R.CANDIDATE_SELECTION]: "Hold still…",
2101
- [R.DOCUMENT_CENTERING]: "Center document",
2102
- [R.DOCUMENT_NOT_PRESENT]: "Scan document",
2103
- [R.DOCUMENT_TOO_FAR]: "Move closer",
2104
- [R.SHARPNESS_TOO_LOW]: "More light needed",
2105
- [R.BRIGHTNESS_TOO_LOW]: "More light needed",
2106
- [R.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2107
- [R.HOTSPOTS_PRESENT]: "Avoid reflections"
2108
- }, Ia = {
2109
- [R.BRIGHTNESS_TOO_LOW]: "Move document to brighter area",
2110
- [R.SHARPNESS_TOO_LOW]: "Move document to brighter area",
2111
- [R.BRIGHTNESS_TOO_HIGH]: "Move document to darker area",
2112
- [R.DOCUMENT_TOO_FAR]: "Move document closer"
2113
- }, un = {
2096
+ }, Ea = {
2097
+ [T.CANDIDATE_SELECTION]: "Hold still…",
2098
+ [T.DOCUMENT_CENTERING]: "Center document",
2099
+ [T.DOCUMENT_NOT_PRESENT]: "Scan document",
2100
+ [T.DOCUMENT_TOO_FAR]: "Move closer",
2101
+ [T.SHARPNESS_TOO_LOW]: "More light needed",
2102
+ [T.BRIGHTNESS_TOO_LOW]: "More light needed",
2103
+ [T.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2104
+ [T.HOTSPOTS_PRESENT]: "Avoid reflections"
2105
+ }, ka = {
2106
+ [T.BRIGHTNESS_TOO_LOW]: "Move document to brighter area",
2107
+ [T.SHARPNESS_TOO_LOW]: "Move document to brighter area",
2108
+ [T.BRIGHTNESS_TOO_HIGH]: "Move document to darker area",
2109
+ [T.DOCUMENT_TOO_FAR]: "Move document closer"
2110
+ }, an = {
2114
2111
  loading: { text: "Loading. Please wait.", visible: !0 },
2115
2112
  waiting: { text: "Waiting for input...", visible: !0 }
2116
- }, Da = P.ID_CORNERS_ROUNDED, Ta = "rgba(19, 19, 19, 0.5)", Ra = 34;
2117
- function dn(e, t) {
2118
- return Math.max(t, t + (e - 400) * Ma + 2);
2113
+ }, xa = P.ID_CORNERS_ROUNDED, $a = "rgba(19, 19, 19, 0.5)", Oa = 34;
2114
+ function sn(e, t) {
2115
+ return Math.max(t, t + (e - 400) * Va + 2);
2119
2116
  }
2120
- const Aa = (e, t = mo) => e ? e.width < e.height ? dn(e.width, t) : dn(e.height, t) : t, Pa = (e) => e > ee.Default ? Be[ee.Default] : e > ee.L ? Be[ee.L] : e > ee.M ? Be[ee.M] : Be[ee.S], Ha = (e) => e ? Pa(e.width) : Be[ee.Default];
2121
- function Za() {
2117
+ const Ia = (e, t = ho) => e ? e.width < e.height ? sn(e.width, t) : sn(e.height, t) : t, Ma = (e) => e > ee.Default ? Be[ee.Default] : e > ee.L ? Be[ee.L] : e > ee.M ? Be[ee.M] : Be[ee.S], Na = (e) => e ? Ma(e.width) : Be[ee.Default];
2118
+ function Ra() {
2122
2119
  const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2123
2120
  if (!document.querySelector(`link[href="${e}"]`)) {
2124
2121
  const r = document.createElement("link");
2125
2122
  r.href = e, r.rel = "stylesheet", document.head.appendChild(r);
2126
2123
  }
2127
2124
  }
2128
- function Ba({
2125
+ function Da({
2129
2126
  currentInstruction: e,
2130
2127
  escalatedInstructions: t,
2131
2128
  instructions: r
@@ -2134,24 +2131,28 @@ function Ba({
2134
2131
  if (n)
2135
2132
  return o && t && n in t ? t[n] : r[n];
2136
2133
  }
2137
- const Fe = kn(void 0);
2138
- Fe.displayName = "UiCustomizationContext";
2134
+ const ze = Sn(void 0);
2135
+ ze.displayName = "ConfigurationContext";
2139
2136
  function Ce() {
2140
- const e = Ke(Fe);
2137
+ const e = Ke(ze);
2141
2138
  if (!e)
2142
2139
  throw new Error(
2143
- `${Fe.displayName} must be used within a ${Fe.displayName} Provider`
2140
+ `${ze.displayName} must be used within a ${ze.displayName} Provider`
2144
2141
  );
2145
2142
  return e;
2146
2143
  }
2147
- function Ua({ children: e, props: t, videoElementSize: r }) {
2148
- const { font: n } = po(), o = re(
2149
- () => ({ ...t, videoElementSize: r, fontSize: Aa(r, n.minimumSize) }),
2144
+ function Ta({
2145
+ children: e,
2146
+ configuration: t,
2147
+ videoElementSize: r
2148
+ }) {
2149
+ const { font: n } = lo(), o = re(
2150
+ () => ({ ...t, videoElementSize: r, fontSize: Ia(r, n.minimumSize) }),
2150
2151
  [t, n.minimumSize, r]
2151
2152
  );
2152
- return /* @__PURE__ */ s(Fe.Provider, { value: o, children: e });
2153
+ return /* @__PURE__ */ s(ze.Provider, { value: o, children: e });
2153
2154
  }
2154
- const go = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
2155
+ const fo = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
2155
2156
  "path",
2156
2157
  {
2157
2158
  clipRule: "evenodd",
@@ -2159,7 +2160,7 @@ const go = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height:
2159
2160
  fill: "currentColor",
2160
2161
  fillRule: "evenodd"
2161
2162
  }
2162
- ) }), Wa = Z.div`
2163
+ ) }), Aa = Z.div`
2163
2164
  width: 100%;
2164
2165
  height: 100%;
2165
2166
  top: 0;
@@ -2178,14 +2179,14 @@ const go = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height:
2178
2179
  aspect-ratio: 9/16;
2179
2180
  }
2180
2181
  `}
2181
- `, za = Z.div`
2182
+ `, Pa = Z.div`
2182
2183
  width: 100%;
2183
2184
  display: flex;
2184
2185
  flex-direction: column;
2185
2186
  justify-content: center;
2186
2187
  align-items: center;
2187
2188
  color: ${(e) => e.theme.colors.instructionTextColor};
2188
- `, Fa = Z.p`
2189
+ `, Ha = Z.p`
2189
2190
  background: ${(e) => e.theme.colors.instructionColor};
2190
2191
  border-radius: 0.25em;
2191
2192
  padding: 0.583em 0.666em;
@@ -2193,14 +2194,14 @@ const go = ({ svgSize: e }) => /* @__PURE__ */ s("svg", { fill: "none", height:
2193
2194
  font-size: ${(e) => `${e.$fontSize}px`};
2194
2195
  line-height: 1em;
2195
2196
  max-width: 80%;
2196
- `, nr = ({ Icon: e, isCameraReady: t, position: r = "absolute", text: n }) => {
2197
+ `, tr = ({ Icon: e, isCameraReady: t, position: r = "absolute", text: n }) => {
2197
2198
  const { fontSize: o } = Ce();
2198
- return /* @__PURE__ */ s(Wa, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ s(za, { children: [
2199
+ return /* @__PURE__ */ s(Aa, { $isCameraReady: t, $position: r, children: /* @__PURE__ */ s(Pa, { children: [
2199
2200
  e ? /* @__PURE__ */ s(e, { svgSize: o * 2 }) : null,
2200
- /* @__PURE__ */ s(Fa, { $fontSize: o, children: n })
2201
+ /* @__PURE__ */ s(Ha, { $fontSize: o, children: n })
2201
2202
  ] }) });
2202
- }, Lo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ s(nr, { Icon: go, position: "relative", text: e });
2203
- class Ga extends j {
2203
+ }, po = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ s(tr, { Icon: fo, position: "relative", text: e });
2204
+ class Za extends j {
2204
2205
  constructor(t) {
2205
2206
  super(t), this.state = { hasError: !1 };
2206
2207
  }
@@ -2211,21 +2212,32 @@ class Ga extends j {
2211
2212
  console.error(t, r);
2212
2213
  }
2213
2214
  render() {
2214
- return this.state.hasError ? /* @__PURE__ */ s(Lo, { Icon: go, isCameraReady: !1 }) : this.props.children;
2215
+ return this.state.hasError ? /* @__PURE__ */ s(po, { Icon: fo, isCameraReady: !1 }) : this.props.children;
2215
2216
  }
2216
2217
  }
2217
- const ja = Z.div`
2218
+ const Ba = Z.div`
2218
2219
  font-family: ${(e) => e.theme.font.family};
2219
2220
  font-style: ${(e) => e.theme.font.style};
2220
2221
  font-weight: ${(e) => e.theme.font.weight};
2221
- `, qa = ({ children: e, uiProps: t, videoElementSize: r }) => (ne(() => {
2222
- Za();
2223
- }, []), /* @__PURE__ */ s(wa, { target: t.styleTarget, children: /* @__PURE__ */ s(ka, { theme: t.theme, children: /* @__PURE__ */ s(ja, { children: /* @__PURE__ */ s(Ga, { videoElementSize: r, children: /* @__PURE__ */ s(Ua, { props: t, videoElementSize: r, children: e }) }) }) }) })), Ya = 1.5, Xa = 0.85, Ht = 1e3, Ka = "dot-auto-capture-video", be = (e, t) => {
2222
+ `;
2223
+ function Ua({
2224
+ children: e,
2225
+ uiConfiguration: t,
2226
+ videoElementSize: r
2227
+ }) {
2228
+ return ne(() => {
2229
+ Ra();
2230
+ }, []), /* @__PURE__ */ s(ma, { target: t.styleTarget, children: /* @__PURE__ */ s(Ca, { theme: t.styling.theme, children: /* @__PURE__ */ s(Ba, { children: /* @__PURE__ */ s(Za, { videoElementSize: r, children: /* @__PURE__ */ s(Ta, { configuration: t, videoElementSize: r, children: e }) }) }) }) });
2231
+ }
2232
+ const Wa = 1.5, Fa = 0.85, At = 1e3, za = "dot-auto-capture-video";
2233
+ function be(e, t) {
2224
2234
  const r = Xe(t);
2225
2235
  ne(() => {
2226
2236
  r.current = t;
2227
2237
  }, [t]), ne(
2228
2238
  () => {
2239
+ if (!e)
2240
+ return;
2229
2241
  const n = (o) => r.current(o);
2230
2242
  return document.addEventListener(e, n), () => {
2231
2243
  document.removeEventListener(e, n);
@@ -2234,40 +2246,40 @@ const ja = Z.div`
2234
2246
  [e]
2235
2247
  // Re-run if eventName
2236
2248
  );
2237
- };
2238
- function Ja(e) {
2239
- const [t, r] = z(), n = _e(
2249
+ }
2250
+ function Ga(e) {
2251
+ const [t, r] = F(), n = _e(
2240
2252
  (o) => {
2241
2253
  var i;
2242
2254
  r((i = o.detail) == null ? void 0 : i.size);
2243
2255
  },
2244
2256
  [r]
2245
2257
  );
2246
- return be(e, n), Ne(() => {
2258
+ return be(e, n), Me(() => {
2247
2259
  if (!t) {
2248
- const o = document.getElementById(Ka);
2260
+ const o = document.getElementById(za);
2249
2261
  o && r(o.getBoundingClientRect());
2250
2262
  }
2251
2263
  }, [t, r]), t;
2252
2264
  }
2253
- function Qa(e, t) {
2265
+ function ja(e, t) {
2254
2266
  return e ? `${e}, ${t}` : t;
2255
2267
  }
2256
- const es = {
2268
+ const qa = {
2257
2269
  placeholderColor: "white",
2258
2270
  placeholderColorSuccess: "#00BFB2",
2259
2271
  instructionColor: "#F8FBFB",
2260
2272
  instructionColorSuccess: "#00BFB2",
2261
2273
  instructionTextColor: "#021B41;"
2262
- }, ts = {
2274
+ }, Ya = {
2263
2275
  family: "Montserrat, Arial, sans-serif",
2264
2276
  weight: "600",
2265
2277
  style: "normal",
2266
- minimumSize: mo
2278
+ minimumSize: ho
2267
2279
  }, Pe = {
2268
- colors: es,
2269
- font: ts
2270
- }, rs = (e) => {
2280
+ colors: qa,
2281
+ font: Ya
2282
+ }, Xa = (e) => {
2271
2283
  var t;
2272
2284
  return e ? {
2273
2285
  ...Pe,
@@ -2279,114 +2291,64 @@ const es = {
2279
2291
  font: {
2280
2292
  ...Pe.font,
2281
2293
  ...e.font,
2282
- family: Qa((t = e.font) == null ? void 0 : t.family, Pe.font.family)
2294
+ family: ja((t = e.font) == null ? void 0 : t.family, Pe.font.family)
2283
2295
  }
2284
2296
  } : Pe;
2285
2297
  };
2286
- function ns(e, t) {
2287
- return e < Ht && t >= Ht ? Ht : e;
2298
+ function Ka(e, t) {
2299
+ return e < At && t >= At ? At : e;
2288
2300
  }
2289
- function os(e, t) {
2301
+ function Ja(e, t) {
2290
2302
  return e < t ? e : t;
2291
2303
  }
2292
- function is({ height: e, width: t }) {
2304
+ function Qa({ height: e, width: t }) {
2293
2305
  let r;
2294
- return t > e ? r = ns(e, t) : r = t, {
2306
+ return t > e ? r = Ka(e, t) : r = t, {
2295
2307
  width: r,
2296
- height: os(e, r)
2308
+ height: Ja(e, r)
2297
2309
  };
2298
2310
  }
2299
- const as = (e, t) => Math.min(e, t), ss = (e) => {
2300
- const r = is(e).width * Xa, n = (e.width - r) / 2, o = r / Ya, i = (e.height - o) / 2;
2311
+ const es = (e, t) => Math.min(e, t), ts = (e) => {
2312
+ const r = Qa(e).width * Fa, n = (e.width - r) / 2, o = r / Wa, i = (e.height - o) / 2;
2301
2313
  return {
2302
2314
  shiftX: n,
2303
2315
  shiftY: i,
2304
2316
  width: r,
2305
2317
  height: o
2306
2318
  };
2307
- }, cs = (e) => {
2308
- const { height: t, shiftX: r, shiftY: n, width: o } = ss(e);
2319
+ }, rs = (e) => {
2320
+ const { height: t, shiftX: r, shiftY: n, width: o } = ts(e);
2309
2321
  return {
2310
2322
  shiftX: r / e.width,
2311
2323
  shiftY: n / e.height,
2312
2324
  width: o / e.width,
2313
2325
  height: t / e.height
2314
2326
  };
2315
- }, or = (e, t) => {
2327
+ }, ns = (e, t) => {
2316
2328
  document.dispatchEvent(
2317
2329
  new CustomEvent(e, {
2318
2330
  detail: t
2319
2331
  })
2320
2332
  );
2321
- }, yt = class yt {
2322
- constructor() {
2323
- tt(this, "lastDetails");
2324
- tt(this, "delayedTime");
2325
- this.lastDetails = {}, this.delayedTime = 0;
2326
- }
2327
- // TODO remove singleton
2328
- static getInstance() {
2329
- return this._instance || (this._instance = new yt()), this._instance;
2330
- }
2331
- restart() {
2332
- this.lastDetails = {}, this.delayedTime = 0;
2333
- }
2334
- /**
2335
- * If the detail object has changed, save the new detail object and return true. Otherwise, return
2336
- * false
2337
- * @param {string} eventName - The name of the event.
2338
- * @param detail - This is the data that is passed to the event.
2339
- * @returns a boolean value.
2340
- */
2341
- isDetailChanged(t, r) {
2342
- return JSON.stringify(r) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = r, !0) : !1;
2343
- }
2344
- /**
2345
- * If the detail of the event has changed, dispatch the event
2346
- * @param {string} eventName - The name of the event to dispatch.
2347
- * @param detail - Record<string, unknown>
2348
- */
2349
- dispatchCustomEventOnChange(t, r) {
2350
- this.isDetailChanged(t, r) && or(t, r);
2351
- }
2352
- /**
2353
- * If the detail of the event has changed, delay time has passed, dispatch the event
2354
- * @param {string} eventName - The name of the event to dispatch.
2355
- * @param detail - Record<string, unknown>
2356
- * @param {number} delay - How long dispatch should be delayed.
2357
- */
2358
- dispatchDelayedCustomEventOnChange(t, r, n) {
2359
- const o = performance.now();
2360
- o - this.delayedTime > n && (this.dispatchCustomEventOnChange(t, r), this.delayedTime = o);
2361
- }
2362
- // implement this method in the class
2363
- dispatchCustomEvent(t, r) {
2364
- or(t, r);
2365
- }
2366
- };
2367
- // TODO remove singleton
2368
- tt(yt, "_instance");
2369
- let ir = yt;
2370
- ir.getInstance();
2371
- const fn = (e, t) => {
2372
- or(e, {
2333
+ }, cn = (e, t) => {
2334
+ ns(e, {
2373
2335
  instruction: t
2374
2336
  });
2375
2337
  };
2376
- async function ls() {
2338
+ async function os() {
2377
2339
  return navigator.mediaDevices.enumerateDevices();
2378
2340
  }
2379
- async function us() {
2380
- return (await ls()).filter((t) => t.kind === "videoinput");
2341
+ async function is() {
2342
+ return (await os()).filter((t) => t.kind === "videoinput");
2381
2343
  }
2382
- const ds = () => {
2383
- const [e, t] = z(!1);
2344
+ const as = () => {
2345
+ const [e, t] = F(!1);
2384
2346
  return ne(() => {
2385
2347
  (async () => {
2386
- (await us()).length > 1 && t(!0);
2348
+ (await is()).length > 1 && t(!0);
2387
2349
  })();
2388
2350
  }, []), e;
2389
- }, fs = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2351
+ }, ss = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2390
2352
  /* @__PURE__ */ s(
2391
2353
  "path",
2392
2354
  {
@@ -2413,7 +2375,7 @@ const ds = () => {
2413
2375
  strokeWidth: "2"
2414
2376
  }
2415
2377
  )
2416
- ] }), hs = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2378
+ ] }), cs = ({ size: e }) => /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2417
2379
  /* @__PURE__ */ s("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2418
2380
  /* @__PURE__ */ s(
2419
2381
  "path",
@@ -2422,7 +2384,7 @@ const ds = () => {
2422
2384
  fill: "white"
2423
2385
  }
2424
2386
  )
2425
- ] }), yo = Z.button`
2387
+ ] }), _o = Z.button`
2426
2388
  background: none;
2427
2389
  border: none;
2428
2390
  padding: 0;
@@ -2432,36 +2394,39 @@ const ds = () => {
2432
2394
  &:disabled {
2433
2395
  cursor: not-allowed;
2434
2396
  }
2435
- `, ps = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(fs, { size: t }) }), _s = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(yo, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(hs, { size: t }) }), ms = Z.div`
2397
+ `, ls = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(_o, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(ss, { size: t }) }), us = ({ marginLeft: e, size: t, ...r }) => /* @__PURE__ */ s(_o, { $marginLeft: e, ...r, children: /* @__PURE__ */ s(cs, { size: t }) }), ds = Z.div`
2436
2398
  position: absolute;
2437
2399
  top: 0;
2438
2400
  right: 0;
2439
2401
  padding: ${(e) => `${e.$padding}px`};
2440
2402
  z-index: 2;
2441
- `, gs = ({
2403
+ `, hs = ({
2442
2404
  customControlEvent: e,
2443
2405
  isSwitchCameraDisabled: t
2444
2406
  }) => {
2445
- const { showCameraButtons: r, videoElementSize: n } = Ce(), o = ds();
2407
+ const {
2408
+ control: { showCameraButtons: r },
2409
+ videoElementSize: n
2410
+ } = Ce(), o = as();
2446
2411
  if (!r)
2447
2412
  return null;
2448
- const { buttonPadding: i, iconSize: a, marginLeft: c } = Ha(n);
2449
- return /* @__PURE__ */ s(ms, { $padding: i, children: [
2450
- o && /* @__PURE__ */ s(_s, { disabled: t, onClick: () => {
2451
- fn(e, $r.SWITCH_CAMERA);
2413
+ const { buttonPadding: i, iconSize: a, marginLeft: c } = Na(n);
2414
+ return /* @__PURE__ */ s(ds, { $padding: i, children: [
2415
+ o && /* @__PURE__ */ s(us, { disabled: t, onClick: () => {
2416
+ cn(e, Vr.SWITCH_CAMERA);
2452
2417
  }, size: a }),
2453
2418
  /* @__PURE__ */ s(
2454
- ps,
2419
+ ls,
2455
2420
  {
2456
2421
  marginLeft: o ? c : 0,
2457
2422
  onClick: () => {
2458
- fn(e, $r.TOGGLE_MIRROR);
2423
+ cn(e, Vr.TOGGLE_MIRROR);
2459
2424
  },
2460
2425
  size: a
2461
2426
  }
2462
2427
  )
2463
2428
  ] });
2464
- }, Ls = "2.5s", ys = "0.3s", vs = "linear", Cs = kt`
2429
+ }, fs = "2.5s", ps = "0.3s", _s = "linear", ms = Vt`
2465
2430
  0% {
2466
2431
  opacity: 0;
2467
2432
  }
@@ -2469,14 +2434,14 @@ const ds = () => {
2469
2434
  opacity: 1;
2470
2435
  }
2471
2436
  `;
2472
- kt`
2437
+ Vt`
2473
2438
  100% {
2474
2439
  transform: translate(-50%, -50%) scale(2.6);
2475
2440
  top: 50%;
2476
2441
  left: 50%;
2477
2442
  }
2478
2443
  `;
2479
- kt`
2444
+ Vt`
2480
2445
  5% {
2481
2446
  transform: translate(-50%, -50%) scale(0.7);
2482
2447
  opacity: 1;
@@ -2500,7 +2465,7 @@ kt`
2500
2465
  opacity: 0.5;
2501
2466
  }
2502
2467
  `;
2503
- kt`
2468
+ Vt`
2504
2469
  5% {
2505
2470
  opacity: 1;
2506
2471
  }
@@ -2513,16 +2478,16 @@ kt`
2513
2478
  opacity: 1;
2514
2479
  }
2515
2480
  `;
2516
- const ws = Z.div`
2481
+ const gs = Z.div`
2517
2482
  position: absolute;
2518
2483
  left: 50%;
2519
2484
 
2520
2485
  ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2521
2486
  ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2522
- ${(e) => e.$isAnimating && wr`
2523
- animation: ${Cs} ${ys}
2524
- ${vs} both;
2525
- animation-delay: ${Ls};
2487
+ ${(e) => e.$isAnimating && Lr`
2488
+ animation: ${ms} ${ps}
2489
+ ${_s} both;
2490
+ animation-delay: ${fs};
2526
2491
 
2527
2492
  @media (orientation: landscape) {
2528
2493
  bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
@@ -2546,7 +2511,7 @@ const ws = Z.div`
2546
2511
  ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2547
2512
  );
2548
2513
  z-index: 2;
2549
- `, Ss = Z.div`
2514
+ `, Ls = Z.div`
2550
2515
  display: flex;
2551
2516
  align-items: center;
2552
2517
  justify-content: center;
@@ -2560,7 +2525,7 @@ const ws = Z.div`
2560
2525
  line-height: 1em;
2561
2526
  font-size: ${(e) => `${e.$fontSize}px`};
2562
2527
  white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
2563
- `, bs = ({
2528
+ `, ys = ({
2564
2529
  children: e,
2565
2530
  cssBottom: t,
2566
2531
  cssTop: r,
@@ -2569,16 +2534,16 @@ const ws = Z.div`
2569
2534
  isPortrait: i
2570
2535
  }) => {
2571
2536
  const { fontSize: a } = Ce();
2572
- return /* @__PURE__ */ s(ws, { $cssBottom: t, $cssTop: r, $isAnimating: n, $isPortrait: i, children: /* @__PURE__ */ s(
2573
- Ss,
2537
+ return /* @__PURE__ */ s(gs, { $cssBottom: t, $cssTop: r, $isAnimating: n, $isPortrait: i, children: /* @__PURE__ */ s(
2538
+ Ls,
2574
2539
  {
2575
2540
  $fontSize: a,
2576
2541
  $isInCandidateSelection: o,
2577
- $wrap: e.length > Ra,
2542
+ $wrap: e.length > Oa,
2578
2543
  children: e
2579
2544
  }
2580
2545
  ) });
2581
- }, Es = Z.canvas`
2546
+ }, vs = Z.canvas`
2582
2547
  transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
2583
2548
  position: absolute;
2584
2549
  top: 0;
@@ -2587,58 +2552,58 @@ const ws = Z.div`
2587
2552
  height: 100%;
2588
2553
  z-index: 1;
2589
2554
  `;
2590
- function Vs(e) {
2555
+ function Cs(e) {
2591
2556
  const t = e.getContext("2d");
2592
2557
  t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
2593
2558
  }
2594
- const Ue = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), hn = (e, t, r) => {
2559
+ const Ue = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), ln = (e, t, r) => {
2595
2560
  const n = (t.x - e.x) * r, o = (t.y - e.y) * r;
2596
2561
  return {
2597
2562
  x: e.x + n,
2598
2563
  y: e.y + o
2599
2564
  };
2600
- }, pn = (e, t, r, n) => {
2565
+ }, un = (e, t, r, n) => {
2601
2566
  const o = Ue(e, t);
2602
2567
  return r * n / o;
2603
- }, ks = (e) => {
2568
+ }, ws = (e) => {
2604
2569
  const { bottomLeft: t, bottomRight: r, topLeft: n, topRight: o } = e, i = Ue(n, o), a = Ue(o, r), c = Ue(t, r), u = Ue(n, t);
2605
2570
  return Math.min(i, a, c, u);
2606
2571
  };
2607
- function xs({ cameraResolution: e, isImageMirror: t }) {
2608
- const r = Xe(null), n = po(), [o, i] = z(), a = _e(
2572
+ function Ss({ cameraResolution: e, isImageMirror: t }) {
2573
+ const r = Xe(null), n = lo(), [o, i] = F(), a = _e(
2609
2574
  (c) => {
2610
2575
  var u;
2611
2576
  i((u = c == null ? void 0 : c.detail) == null ? void 0 : u.detectedObject);
2612
2577
  },
2613
2578
  [i]
2614
2579
  );
2615
- return be(pe.DETECTED_DOCUMENT_CHANGED, a), be($n.DETECTED_PALM_CHANGED, a), ne(() => {
2580
+ return be(pe.DETECTION_CHANGED, a), be(Vn.DETECTION_CHANGED, a), ne(() => {
2616
2581
  if (!r.current)
2617
2582
  return;
2618
- const c = (d, h, l, p) => {
2583
+ const c = (d, f, l, p) => {
2619
2584
  var g;
2620
- const f = pn(
2621
- h,
2585
+ const h = un(
2586
+ f,
2622
2587
  d,
2623
2588
  p,
2624
- ln
2625
- ), _ = pn(
2626
- h,
2589
+ on
2590
+ ), _ = un(
2591
+ f,
2627
2592
  l,
2628
2593
  p,
2629
- ln
2630
- ), L = hn(h, d, f), y = hn(h, l, _), m = (g = r == null ? void 0 : r.current) == null ? void 0 : g.getContext("2d");
2631
- m && (m.beginPath(), m.lineWidth = Oa, m.strokeStyle = n.colors.placeholderColor, m.moveTo(L.x, L.y), m.arcTo(h.x, h.y, y.x, y.y, $a), m.lineTo(y.x, y.y), m.stroke());
2594
+ on
2595
+ ), L = ln(f, d, h), y = ln(f, l, _), m = (g = r == null ? void 0 : r.current) == null ? void 0 : g.getContext("2d");
2596
+ m && (m.beginPath(), m.lineWidth = ba, m.strokeStyle = n.colors.placeholderColor, m.moveTo(L.x, L.y), m.arcTo(f.x, f.y, y.x, y.y, Sa), m.lineTo(y.x, y.y), m.stroke());
2632
2597
  }, u = (d) => {
2633
2598
  if (!d)
2634
2599
  return;
2635
- const { bottomLeft: h, bottomRight: l, topLeft: p, topRight: f } = d, _ = ks(d);
2636
- c(h, p, f, _), c(p, f, l, _), c(f, l, h, _), c(l, h, p, _);
2600
+ const { bottomLeft: f, bottomRight: l, topLeft: p, topRight: h } = d, _ = ws(d);
2601
+ c(f, p, h, _), c(p, h, l, _), c(h, l, f, _), c(l, f, p, _);
2637
2602
  };
2638
- r.current.width = e.width, r.current.height = e.height, Vs(r.current), u(o);
2639
- }, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ s(Es, { ref: r, $isImageMirror: t });
2603
+ r.current.width = e.width, r.current.height = e.height, Cs(r.current), u(o);
2604
+ }, [e, o, n.colors.placeholderColor]), /* @__PURE__ */ s(vs, { ref: r, $isImageMirror: t });
2640
2605
  }
2641
- const $s = Z.div`
2606
+ const bs = Z.div`
2642
2607
  color: ${(e) => e.theme.colors.instructionTextColor};
2643
2608
  animation: spin 2s linear infinite;
2644
2609
 
@@ -2647,7 +2612,7 @@ const $s = Z.div`
2647
2612
  transform: rotate(-360deg);
2648
2613
  }
2649
2614
  }
2650
- `, Os = ({ svgSize: e }) => /* @__PURE__ */ s($s, { children: /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2615
+ `, Vs = ({ svgSize: e }) => /* @__PURE__ */ s(bs, { children: /* @__PURE__ */ s("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2651
2616
  /* @__PURE__ */ s(
2652
2617
  "path",
2653
2618
  {
@@ -2704,7 +2669,7 @@ const $s = Z.div`
2704
2669
  fill: "currentColor"
2705
2670
  }
2706
2671
  )
2707
- ] }) }), Ms = Z.div`
2672
+ ] }) }), Es = Z.div`
2708
2673
  z-index: 1;
2709
2674
  position: absolute;
2710
2675
  // Scale up the backdrop to have space when placeholder is scaled below 1
@@ -2721,9 +2686,11 @@ const $s = Z.div`
2721
2686
  transform: scale(0.5);
2722
2687
  translate: 25% 25%;
2723
2688
  }
2724
- `, vo = ({ children: e, height: t, scale: r, width: n }) => {
2725
- const { backdropColor: o } = Ce(), i = as(n, t);
2726
- return /* @__PURE__ */ s(Ms, { $backdropColor: o, $scale: r, $shorterSide: i, children: /* @__PURE__ */ s("svg", { viewBox: `0 0 ${n} ${t}`, children: [
2689
+ `, mo = ({ children: e, height: t, scale: r, width: n }) => {
2690
+ const {
2691
+ styling: { backdropColor: o }
2692
+ } = Ce(), i = es(n, t);
2693
+ return /* @__PURE__ */ s(Es, { $backdropColor: o, $scale: r, $shorterSide: i, children: /* @__PURE__ */ s("svg", { viewBox: `0 0 ${n} ${t}`, children: [
2727
2694
  /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: "mask", children: [
2728
2695
  /* @__PURE__ */ s("rect", { fill: "#fff", height: "100%", width: "100%" }),
2729
2696
  /* @__PURE__ */ s("g", { children: e })
@@ -2731,14 +2698,14 @@ const $s = Z.div`
2731
2698
  /* @__PURE__ */ s("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2732
2699
  ] }) });
2733
2700
  };
2734
- function Ns({ cameraHeight: e, cameraWidth: t, isBackdrop: r, state: n }) {
2701
+ function ks({ cameraHeight: e, cameraWidth: t, isBackdrop: r, state: n }) {
2735
2702
  const { appStateInstructions: o } = Ce(), i = n === G.ERROR || n === G.RUNNING;
2736
2703
  return !n || i || !(o != null && o[n].visible) ? null : n === G.WAITING || n === G.COMPLETE ? /* @__PURE__ */ s(H, { children: [
2737
- r && e && t && /* @__PURE__ */ s(vo, { height: e, width: t }),
2738
- /* @__PURE__ */ s(nr, { isCameraReady: !0, text: o[G.WAITING].text })
2739
- ] }) : /* @__PURE__ */ s(nr, { Icon: Os, isCameraReady: !0, text: o[G.LOADING].text });
2704
+ r && e && t && /* @__PURE__ */ s(mo, { height: e, width: t }),
2705
+ /* @__PURE__ */ s(tr, { isCameraReady: !0, text: o[G.WAITING].text })
2706
+ ] }) : /* @__PURE__ */ s(tr, { Icon: Vs, isCameraReady: !0, text: o[G.LOADING].text });
2740
2707
  }
2741
- function Is({ isPassport: e, isRounded: t, ...r }) {
2708
+ function xs({ isPassport: e, isRounded: t, ...r }) {
2742
2709
  if (t)
2743
2710
  return /* @__PURE__ */ s("rect", { fill: "#000", ...r, rx: "2%" });
2744
2711
  if (e) {
@@ -2771,7 +2738,7 @@ function Is({ isPassport: e, isRounded: t, ...r }) {
2771
2738
  }
2772
2739
  return /* @__PURE__ */ s("rect", { fill: "#000", ...r, rx: "0%" });
2773
2740
  }
2774
- function Ds() {
2741
+ function $s() {
2775
2742
  return /* @__PURE__ */ s(
2776
2743
  "svg",
2777
2744
  {
@@ -2796,7 +2763,7 @@ function Ds() {
2796
2763
  }
2797
2764
  );
2798
2765
  }
2799
- const Ts = () => /* @__PURE__ */ s(
2766
+ const Os = () => /* @__PURE__ */ s(
2800
2767
  "svg",
2801
2768
  {
2802
2769
  fill: "none",
@@ -2819,7 +2786,7 @@ const Ts = () => /* @__PURE__ */ s(
2819
2786
  ]
2820
2787
  }
2821
2788
  );
2822
- function Rs() {
2789
+ function Is() {
2823
2790
  return /* @__PURE__ */ s(
2824
2791
  "svg",
2825
2792
  {
@@ -2848,7 +2815,7 @@ function Rs() {
2848
2815
  }
2849
2816
  );
2850
2817
  }
2851
- function As() {
2818
+ function Ms() {
2852
2819
  return /* @__PURE__ */ s(
2853
2820
  "svg",
2854
2821
  {
@@ -2878,7 +2845,7 @@ function As() {
2878
2845
  }
2879
2846
  );
2880
2847
  }
2881
- function Ps() {
2848
+ function Ns() {
2882
2849
  return /* @__PURE__ */ s(
2883
2850
  "svg",
2884
2851
  {
@@ -2904,7 +2871,7 @@ function Ps() {
2904
2871
  }
2905
2872
  );
2906
2873
  }
2907
- function Hs() {
2874
+ function Rs() {
2908
2875
  return /* @__PURE__ */ s(
2909
2876
  "svg",
2910
2877
  {
@@ -2931,7 +2898,7 @@ function Hs() {
2931
2898
  }
2932
2899
  );
2933
2900
  }
2934
- function Zs() {
2901
+ function Ds() {
2935
2902
  return /* @__PURE__ */ s(
2936
2903
  "svg",
2937
2904
  {
@@ -2957,7 +2924,7 @@ function Zs() {
2957
2924
  }
2958
2925
  );
2959
2926
  }
2960
- function Bs() {
2927
+ function Ts() {
2961
2928
  return /* @__PURE__ */ s(
2962
2929
  "svg",
2963
2930
  {
@@ -2986,7 +2953,7 @@ function Bs() {
2986
2953
  }
2987
2954
  );
2988
2955
  }
2989
- function Us() {
2956
+ function As() {
2990
2957
  return /* @__PURE__ */ s(
2991
2958
  "svg",
2992
2959
  {
@@ -3003,7 +2970,7 @@ function Us() {
3003
2970
  }
3004
2971
  );
3005
2972
  }
3006
- function Ws() {
2973
+ function Ps() {
3007
2974
  return /* @__PURE__ */ s(
3008
2975
  "svg",
3009
2976
  {
@@ -3034,7 +3001,7 @@ function Ws() {
3034
3001
  }
3035
3002
  );
3036
3003
  }
3037
- function zs() {
3004
+ function Hs() {
3038
3005
  return /* @__PURE__ */ s(
3039
3006
  "svg",
3040
3007
  {
@@ -3704,7 +3671,7 @@ function zs() {
3704
3671
  }
3705
3672
  );
3706
3673
  }
3707
- function Fs() {
3674
+ function Zs() {
3708
3675
  return /* @__PURE__ */ s(
3709
3676
  "svg",
3710
3677
  {
@@ -3757,7 +3724,7 @@ function Fs() {
3757
3724
  }
3758
3725
  );
3759
3726
  }
3760
- const Gs = Z.div`
3727
+ const Bs = Z.div`
3761
3728
  z-index: 1;
3762
3729
  position: absolute;
3763
3730
  top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
@@ -3771,7 +3738,7 @@ const Gs = Z.div`
3771
3738
  width: 100%;
3772
3739
  height: 100%;
3773
3740
  }
3774
- `, js = ({
3741
+ `, Us = ({
3775
3742
  children: e,
3776
3743
  className: t,
3777
3744
  isInCandidateSelection: r,
@@ -3779,7 +3746,7 @@ const Gs = Z.div`
3779
3746
  placeholderRectangle: o,
3780
3747
  scale: i
3781
3748
  }) => /* @__PURE__ */ s(
3782
- Gs,
3749
+ Bs,
3783
3750
  {
3784
3751
  $isInCandidateSelection: r,
3785
3752
  $placeholderRectangle: o,
@@ -3788,25 +3755,25 @@ const Gs = Z.div`
3788
3755
  onAnimationEnd: n,
3789
3756
  children: e
3790
3757
  }
3791
- ), qs = {
3792
- [P.ID_CORNERS]: /* @__PURE__ */ s(Ds, {}),
3793
- [P.ID_DASH]: /* @__PURE__ */ s(Rs, {}),
3794
- [P.ID_DOT]: /* @__PURE__ */ s(Ps, {}),
3795
- [P.ID_SOLID]: /* @__PURE__ */ s(Bs, {}),
3796
- [P.ID_PHOTO_ROUNDED]: /* @__PURE__ */ s(Zs, {}),
3797
- [P.ID_CORNERS_ROUNDED]: /* @__PURE__ */ s(Ts, {}),
3798
- [P.ID_DASH_ROUNDED]: /* @__PURE__ */ s(As, {}),
3799
- [P.ID_DOT_ROUNDED]: /* @__PURE__ */ s(Hs, {}),
3800
- [P.ID_SOLID_ROUNDED]: /* @__PURE__ */ s(Us, {}),
3801
- [P.ID_SOLID_ROUNDED_BACK]: /* @__PURE__ */ s(Ws, {}),
3802
- [P.PASSPORT_SOLID_BACK]: /* @__PURE__ */ s(zs, {}),
3803
- [P.PASSPORT_SOLID_BACK_BLANK]: /* @__PURE__ */ s(Fs, {})
3758
+ ), Ws = {
3759
+ [P.ID_CORNERS]: /* @__PURE__ */ s($s, {}),
3760
+ [P.ID_DASH]: /* @__PURE__ */ s(Is, {}),
3761
+ [P.ID_DOT]: /* @__PURE__ */ s(Ns, {}),
3762
+ [P.ID_SOLID]: /* @__PURE__ */ s(Ts, {}),
3763
+ [P.ID_PHOTO_ROUNDED]: /* @__PURE__ */ s(Ds, {}),
3764
+ [P.ID_CORNERS_ROUNDED]: /* @__PURE__ */ s(Os, {}),
3765
+ [P.ID_DASH_ROUNDED]: /* @__PURE__ */ s(Ms, {}),
3766
+ [P.ID_DOT_ROUNDED]: /* @__PURE__ */ s(Rs, {}),
3767
+ [P.ID_SOLID_ROUNDED]: /* @__PURE__ */ s(As, {}),
3768
+ [P.ID_SOLID_ROUNDED_BACK]: /* @__PURE__ */ s(Ps, {}),
3769
+ [P.PASSPORT_SOLID_BACK]: /* @__PURE__ */ s(Hs, {}),
3770
+ [P.PASSPORT_SOLID_BACK_BLANK]: /* @__PURE__ */ s(Zs, {})
3804
3771
  };
3805
- function Ys({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n }) {
3772
+ function Fs({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n }) {
3806
3773
  const { placeholder: o } = Ce(), i = o.toLowerCase().includes("passport"), a = o.toLowerCase().includes("rounded");
3807
3774
  return /* @__PURE__ */ s(H, { children: [
3808
- /* @__PURE__ */ s(vo, { height: e, width: t, children: /* @__PURE__ */ s(
3809
- Is,
3775
+ /* @__PURE__ */ s(mo, { height: e, width: t, children: /* @__PURE__ */ s(
3776
+ xs,
3810
3777
  {
3811
3778
  height: `${r.height * 100}%`,
3812
3779
  isPassport: i,
@@ -3816,40 +3783,40 @@ function Ys({ backdropHeight: e, backdropWidth: t, placeholderRectangle: r, ...n
3816
3783
  y: `${r.shiftY * 100}%`
3817
3784
  }
3818
3785
  ) }),
3819
- /* @__PURE__ */ s(js, { placeholderRectangle: r, ...n, children: qs[o] })
3786
+ /* @__PURE__ */ s(Us, { placeholderRectangle: r, ...n, children: Ws[o] })
3820
3787
  ] });
3821
3788
  }
3822
- const Xs = () => {
3823
- const [e, t] = z(), [r, n] = z(!1), o = _e(
3824
- (f) => {
3789
+ const zs = () => {
3790
+ const [e, t] = F(), [r, n] = F(!1), o = _e(
3791
+ (h) => {
3825
3792
  var L, y;
3826
- t((L = f == null ? void 0 : f.detail) == null ? void 0 : L.cameraResolution);
3827
- const _ = (y = f == null ? void 0 : f.detail) == null ? void 0 : y.isMirroring;
3793
+ t((L = h == null ? void 0 : h.detail) == null ? void 0 : L.cameraResolution);
3794
+ const _ = (y = h == null ? void 0 : h.detail) == null ? void 0 : y.isMirroring;
3828
3795
  _ !== void 0 && n(_);
3829
3796
  },
3830
3797
  [t]
3831
3798
  );
3832
3799
  be(pe.CAMERA_PROPS_CHANGED, o);
3833
- const [i, a] = z({
3834
- code: R.DOCUMENT_NOT_PRESENT,
3800
+ const [i, a] = F({
3801
+ code: T.DOCUMENT_NOT_PRESENT,
3835
3802
  // FIXME Default instruction should not be here
3836
3803
  isEscalated: !1
3837
3804
  }), c = _e(
3838
- (f) => {
3805
+ (h) => {
3839
3806
  var _, L;
3840
3807
  a({
3841
- code: (_ = f == null ? void 0 : f.detail) == null ? void 0 : _.instructionCode,
3842
- isEscalated: ((L = f == null ? void 0 : f.detail) == null ? void 0 : L.isEscalated) ?? !1
3808
+ code: (_ = h == null ? void 0 : h.detail) == null ? void 0 : _.instructionCode,
3809
+ isEscalated: ((L = h == null ? void 0 : h.detail) == null ? void 0 : L.isEscalated) ?? !1
3843
3810
  });
3844
3811
  },
3845
3812
  [a]
3846
3813
  );
3847
3814
  be(pe.INSTRUCTION_CHANGED, c);
3848
- const [u, d] = z(G.LOADING), [h, l] = z(), p = _e(
3849
- (f) => {
3815
+ const [u, d] = F(G.LOADING), [f, l] = F(), p = _e(
3816
+ (h) => {
3850
3817
  var L, y;
3851
- d((L = f.detail) == null ? void 0 : L.appState);
3852
- const _ = (y = f == null ? void 0 : f.detail) == null ? void 0 : y.error;
3818
+ d((L = h.detail) == null ? void 0 : L.appState);
3819
+ const _ = (y = h == null ? void 0 : h.detail) == null ? void 0 : y.error;
3853
3820
  _ && l(_);
3854
3821
  },
3855
3822
  [d, l]
@@ -3857,38 +3824,42 @@ const Xs = () => {
3857
3824
  return be(pe.STATE_CHANGED, p), {
3858
3825
  cameraResolution: e,
3859
3826
  appState: u,
3860
- error: h,
3827
+ error: f,
3861
3828
  instruction: i,
3862
3829
  isMirroring: r
3863
3830
  };
3864
3831
  };
3865
- function Ks() {
3866
- const { appState: e, cameraResolution: t, error: r, instruction: n, isMirroring: o } = Xs(), i = n.code === R.CANDIDATE_SELECTION, { escalatedInstructions: a, instructions: c, showDetectionLayer: u } = Ce(), d = Ba({
3867
- escalatedInstructions: a,
3868
- instructions: c,
3832
+ function Gs() {
3833
+ const { appState: e, cameraResolution: t, error: r, instruction: n, isMirroring: o } = zs(), i = n.code === T.CANDIDATE_SELECTION, {
3834
+ control: { showDetectionLayer: a },
3835
+ escalatedInstructions: c,
3836
+ instructions: u
3837
+ } = Ce(), d = Da({
3838
+ escalatedInstructions: c,
3839
+ instructions: u,
3869
3840
  currentInstruction: n
3870
3841
  });
3871
- return e === G.ERROR ? /* @__PURE__ */ s(Lo, { text: r == null ? void 0 : r.message }) : e === G.RUNNING && t ? /* @__PURE__ */ s(H, { children: [
3872
- u && /* @__PURE__ */ s(xs, { cameraResolution: t, isImageMirror: o }),
3842
+ return e === G.ERROR ? /* @__PURE__ */ s(po, { text: r == null ? void 0 : r.message }) : e === G.RUNNING && t ? /* @__PURE__ */ s(H, { children: [
3843
+ a && /* @__PURE__ */ s(Ss, { cameraResolution: t, isImageMirror: o }),
3873
3844
  /* @__PURE__ */ s(
3874
- Ys,
3845
+ Fs,
3875
3846
  {
3876
3847
  backdropHeight: t.height,
3877
3848
  backdropWidth: t.width,
3878
3849
  isInCandidateSelection: i,
3879
- placeholderRectangle: cs(t)
3850
+ placeholderRectangle: rs(t)
3880
3851
  }
3881
3852
  ),
3882
- d && /* @__PURE__ */ s(bs, { cssTop: 50, isInCandidateSelection: i, children: d }),
3853
+ d && /* @__PURE__ */ s(ys, { cssTop: 50, isInCandidateSelection: i, children: d }),
3883
3854
  /* @__PURE__ */ s(
3884
- gs,
3855
+ hs,
3885
3856
  {
3886
3857
  customControlEvent: pe.CONTROL,
3887
3858
  isSwitchCameraDisabled: i
3888
3859
  }
3889
3860
  )
3890
3861
  ] }) : /* @__PURE__ */ s(
3891
- Ns,
3862
+ ks,
3892
3863
  {
3893
3864
  cameraHeight: t == null ? void 0 : t.height,
3894
3865
  cameraWidth: t == null ? void 0 : t.width,
@@ -3897,27 +3868,47 @@ function Ks() {
3897
3868
  }
3898
3869
  );
3899
3870
  }
3900
- const Js = (e) => {
3901
- var d, h;
3902
- const t = { ...Na, ...e == null ? void 0 : e.instructions }, r = {
3903
- ...Ia,
3871
+ function js(e) {
3872
+ var u, d, f, l, p, h;
3873
+ const t = { ...Ea, ...e == null ? void 0 : e.instructions }, r = {
3874
+ ...ka,
3904
3875
  ...e == null ? void 0 : e.escalatedInstructions
3905
3876
  }, n = {
3906
- [G.LOADING]: { ...un.loading, ...(d = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : d.loading },
3907
- [G.WAITING]: { ...un.waiting, ...(h = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : h.waiting }
3908
- }, o = (e == null ? void 0 : e.placeholder) ?? Da, i = (e == null ? void 0 : e.backdropColor) ?? Ta, a = (e == null ? void 0 : e.showDetectionLayer) ?? !1, c = (e == null ? void 0 : e.showCameraButtons) ?? !1, u = rs(e == null ? void 0 : e.theme);
3877
+ [G.LOADING]: {
3878
+ ...an.loading,
3879
+ ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.loading
3880
+ },
3881
+ [G.WAITING]: {
3882
+ ...an.waiting,
3883
+ ...(d = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : d.waiting
3884
+ }
3885
+ }, o = Xa((f = e == null ? void 0 : e.styling) == null ? void 0 : f.theme), i = {
3886
+ ...e == null ? void 0 : e.styling,
3887
+ backdropColor: ((l = e == null ? void 0 : e.styling) == null ? void 0 : l.backdropColor) ?? $a,
3888
+ theme: o
3889
+ }, a = {
3890
+ showDetectionLayer: ((p = e == null ? void 0 : e.control) == null ? void 0 : p.showDetectionLayer) ?? !1,
3891
+ showCameraButtons: ((h = e == null ? void 0 : e.control) == null ? void 0 : h.showCameraButtons) ?? !1
3892
+ }, c = (e == null ? void 0 : e.placeholder) ?? xa;
3909
3893
  return {
3894
+ ...e,
3910
3895
  instructions: t,
3911
3896
  appStateInstructions: n,
3912
- placeholder: o,
3913
- backdropColor: i,
3914
- showDetectionLayer: a,
3915
- showCameraButtons: c,
3916
- theme: u,
3917
- escalatedInstructions: r
3897
+ placeholder: c,
3898
+ escalatedInstructions: r,
3899
+ styling: i,
3900
+ control: a
3918
3901
  };
3919
- }, Qs = ({ props: e }) => {
3920
- const t = Ja(pe.VIDEO_ELEMENT_SIZE);
3921
- return /* @__PURE__ */ s(qa, { uiProps: Js(e), videoElementSize: t, children: /* @__PURE__ */ s(Ks, {}) });
3902
+ }
3903
+ const qs = ({ configuration: e }) => {
3904
+ const t = Ga(pe.VIDEO_ELEMENT_SIZE);
3905
+ return /* @__PURE__ */ s(
3906
+ Ua,
3907
+ {
3908
+ uiConfiguration: js(e),
3909
+ videoElementSize: t,
3910
+ children: /* @__PURE__ */ s(Gs, {})
3911
+ }
3912
+ );
3922
3913
  };
3923
- Ao(Qs, "x-dot-document-auto-capture-ui", ["props"]);
3914
+ Io(qs, "x-dot-document-auto-capture-ui", ["configuration"]);