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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/palm.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  var So = Object.defineProperty;
2
- var bo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var et = (e, t, n) => bo(e, typeof t != "symbol" ? t + "" : t, n);
4
- var Ze, w, dr, ue, bn, _r, hr, pr, rn, Ht, Ut, mr, Ge = {}, gr = [], Eo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2
+ var Eo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var et = (e, t, n) => Eo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ var Ze, w, hr, ue, $n, pr, mr, gr, an, Ht, Ut, yr, Ge = {}, vr = [], $o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
5
5
  function q(e, t) {
6
6
  for (var n in t) e[n] = t[n];
7
7
  return e;
8
8
  }
9
- function on(e) {
9
+ function sn(e) {
10
10
  e && e.parentNode && e.parentNode.removeChild(e);
11
11
  }
12
12
  function L(e, t, n) {
@@ -16,16 +16,16 @@ function L(e, t, n) {
16
16
  return Fe(e, a, r, o, null);
17
17
  }
18
18
  function Fe(e, t, n, r, o) {
19
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++dr, __i: -1, __u: 0 };
19
+ var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++hr, __i: -1, __u: 0 };
20
20
  return o == null && w.vnode != null && w.vnode(i), i;
21
21
  }
22
- function $o() {
22
+ function ko() {
23
23
  return { current: null };
24
24
  }
25
- function V(e) {
25
+ function Z(e) {
26
26
  return e.children;
27
27
  }
28
- function j(e, t) {
28
+ function G(e, t) {
29
29
  this.props = e, this.context = t;
30
30
  }
31
31
  function Ee(e, t) {
@@ -33,38 +33,38 @@ function Ee(e, t) {
33
33
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
34
34
  return typeof e.type == "function" ? Ee(e) : null;
35
35
  }
36
- function yr(e) {
36
+ function Cr(e) {
37
37
  var t, n;
38
38
  if ((e = e.__) != null && e.__c != null) {
39
39
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
40
40
  e.__e = e.__c.base = n.__e;
41
41
  break;
42
42
  }
43
- return yr(e);
43
+ return Cr(e);
44
44
  }
45
45
  }
46
46
  function zt(e) {
47
- (!e.__d && (e.__d = !0) && ue.push(e) && !_t.__r++ || bn != w.debounceRendering) && ((bn = w.debounceRendering) || _r)(_t);
47
+ (!e.__d && (e.__d = !0) && ue.push(e) && !_t.__r++ || $n != w.debounceRendering) && (($n = w.debounceRendering) || pr)(_t);
48
48
  }
49
49
  function _t() {
50
- for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(hr), e = ue.shift(), s = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, w.vnode && w.vnode(n), an(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Ee(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, wr(i, n, a), n.__e != o && yr(n)));
50
+ for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(mr), e = ue.shift(), s = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, w.vnode && w.vnode(n), cn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Ee(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Sr(i, n, a), n.__e != o && Cr(n)));
51
51
  _t.__r = 0;
52
52
  }
53
- function vr(e, t, n, r, o, i, a, s, l, u, d) {
54
- var c, _, f, p, y, v, m = r && r.__k || gr, g = t.length;
55
- for (l = No(n, t, m, l, g), c = 0; c < g; c++) (f = n.__k[c]) != null && (_ = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = c, v = an(e, f, _, o, i, a, s, l, u, d), p = f.__e, f.ref && _.ref != f.ref && (_.ref && sn(_.ref, null, f), d.push(f.ref, f.__c || p, f)), y == null && p != null && (y = p), 4 & f.__u || _.__k === f.__k ? l = Cr(f, l, e) : typeof f.type == "function" && v !== void 0 ? l = v : p && (l = p.nextSibling), f.__u &= -7);
53
+ function wr(e, t, n, r, o, i, a, s, l, u, _) {
54
+ var c, h, f, p, y, v, m = r && r.__k || vr, g = t.length;
55
+ for (l = No(n, t, m, l, g), c = 0; c < g; c++) (f = n.__k[c]) != null && (h = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = c, v = cn(e, f, h, o, i, a, s, l, u, _), p = f.__e, f.ref && h.ref != f.ref && (h.ref && ln(h.ref, null, f), _.push(f.ref, f.__c || p, f)), y == null && p != null && (y = p), 4 & f.__u || h.__k === f.__k ? l = br(f, l, e) : typeof f.type == "function" && v !== void 0 ? l = v : p && (l = p.nextSibling), f.__u &= -7);
56
56
  return n.__e = y, l;
57
57
  }
58
58
  function No(e, t, n, r, o) {
59
- var i, a, s, l, u, d = n.length, c = d, _ = 0;
60
- for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + _, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Fe(null, a, null, null, null) : Ye(a) ? Fe(V, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Fe(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = ko(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > d ? _-- : o < d && _++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? _-- : u == l + 1 ? _++ : (u > l ? _-- : _++, a.__u |= 4))) : e.__k[i] = null;
61
- if (c) for (i = 0; i < d; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), br(s, s));
59
+ var i, a, s, l, u, _ = n.length, c = _, h = 0;
60
+ for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Fe(null, a, null, null, null) : Ye(a) ? Fe(Z, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Fe(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = xo(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > _ ? h-- : o < _ && h++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? h-- : u == l + 1 ? h++ : (u > l ? h-- : h++, a.__u |= 4))) : e.__k[i] = null;
61
+ if (c) for (i = 0; i < _; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), $r(s, s));
62
62
  return r;
63
63
  }
64
- function Cr(e, t, n) {
64
+ function br(e, t, n) {
65
65
  var r, o;
66
66
  if (typeof e.type == "function") {
67
- for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Cr(r[o], t, n));
67
+ for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = br(r[o], t, n));
68
68
  return t;
69
69
  }
70
70
  e.__e != t && (t && e.type && !n.contains(t) && (t = Ee(e)), n.insertBefore(e.__e, t || null), t = e.__e);
@@ -78,7 +78,7 @@ function ee(e, t) {
78
78
  ee(n, t);
79
79
  }) : t.push(e)), t;
80
80
  }
81
- function ko(e, t, n, r) {
81
+ function xo(e, t, n, r) {
82
82
  var o, i, a = e.key, s = e.type, l = t[n];
83
83
  if (l === null && e.key == null || l && a == l.key && s == l.type && (2 & l.__u) == 0) return n;
84
84
  if (r > (l != null && (2 & l.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
@@ -93,17 +93,17 @@ function ko(e, t, n, r) {
93
93
  }
94
94
  return -1;
95
95
  }
96
- function En(e, t, n) {
97
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Eo.test(t) ? n : n + "px";
96
+ function kn(e, t, n) {
97
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || $o.test(t) ? n : n + "px";
98
98
  }
99
99
  function tt(e, t, n, r, o) {
100
100
  var i;
101
101
  e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
102
102
  else {
103
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || En(e.style, t, "");
104
- if (n) for (t in n) r && n[t] == r[t] || En(e.style, t, n[t]);
103
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || kn(e.style, t, "");
104
+ if (n) for (t in n) r && n[t] == r[t] || kn(e.style, t, n[t]);
105
105
  }
106
- else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = rn, e.addEventListener(t, i ? Ut : Ht, i)) : e.removeEventListener(t, i ? Ut : Ht, i);
106
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(gr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = an, e.addEventListener(t, i ? Ut : Ht, i)) : e.removeEventListener(t, i ? Ut : Ht, i);
107
107
  else {
108
108
  if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
109
109
  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,27 +114,27 @@ function tt(e, t, n, r, o) {
114
114
  typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
115
115
  }
116
116
  }
117
- function $n(e) {
117
+ function Nn(e) {
118
118
  return function(t) {
119
119
  if (this.l) {
120
120
  var n = this.l[t.type + e];
121
- if (t.t == null) t.t = rn++;
121
+ if (t.t == null) t.t = an++;
122
122
  else if (t.t < n.u) return;
123
123
  return n(w.event ? w.event(t) : t);
124
124
  }
125
125
  };
126
126
  }
127
- function an(e, t, n, r, o, i, a, s, l, u) {
128
- var d, c, _, f, p, y, v, m, g, N, E, T, b, C, D, H, Re, U = t.type;
127
+ function cn(e, t, n, r, o, i, a, s, l, u) {
128
+ var _, c, h, f, p, y, v, m, g, k, E, x, S, C, M, H, Re, U = t.type;
129
129
  if (t.constructor != null) return null;
130
- 128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = w.__b) && d(t);
130
+ 128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (_ = w.__b) && _(t);
131
131
  e: if (typeof U == "function") try {
132
- if (m = t.props, g = "prototype" in U && U.prototype.render, N = (d = U.contextType) && r[d.__c], E = d ? N ? N.props.value : d.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new U(m, E) : (t.__c = c = new j(m, E), c.constructor = U, c.render = xo), N && N.sub(c), c.props = m, c.state || (c.state = {}), c.context = E, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && U.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, U.getDerivedStateFromProps(m, c.__s))), f = c.props, p = c.state, c.__v = t, _) g && U.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
132
+ if (m = t.props, g = "prototype" in U && U.prototype.render, k = (_ = U.contextType) && r[_.__c], E = _ ? k ? k.props.value : _.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new U(m, E) : (t.__c = c = new G(m, E), c.constructor = U, c.render = Oo), k && k.sub(c), c.props = m, c.state || (c.state = {}), c.context = E, c.__n = r, h = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && U.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, U.getDerivedStateFromProps(m, c.__s))), f = c.props, p = c.state, c.__v = t, h) g && U.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
133
133
  else {
134
134
  if (g && U.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, E), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, E) === !1 || t.__v == n.__v) {
135
135
  for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ce) {
136
136
  ce && (ce.__ = t);
137
- }), T = 0; T < c._sb.length; T++) c.__h.push(c._sb[T]);
137
+ }), x = 0; x < c._sb.length; x++) c.__h.push(c._sb[x]);
138
138
  c._sb = [], c.__h.length && a.push(c);
139
139
  break e;
140
140
  }
@@ -142,26 +142,26 @@ function an(e, t, n, r, o, i, a, s, l, u) {
142
142
  c.componentDidUpdate(f, p, y);
143
143
  });
144
144
  }
145
- if (c.context = E, c.props = m, c.__P = e, c.__e = !1, b = w.__r, C = 0, g) {
146
- for (c.state = c.__s, c.__d = !1, b && b(t), d = c.render(c.props, c.state, c.context), D = 0; D < c._sb.length; D++) c.__h.push(c._sb[D]);
145
+ if (c.context = E, c.props = m, c.__P = e, c.__e = !1, S = w.__r, C = 0, g) {
146
+ for (c.state = c.__s, c.__d = !1, S && S(t), _ = c.render(c.props, c.state, c.context), M = 0; M < c._sb.length; M++) c.__h.push(c._sb[M]);
147
147
  c._sb = [];
148
148
  } else do
149
- c.__d = !1, b && b(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
149
+ c.__d = !1, S && S(t), _ = c.render(c.props, c.state, c.context), c.state = c.__s;
150
150
  while (c.__d && ++C < 25);
151
- c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), g && !_ && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, p)), H = d, d != null && d.type === V && d.key == null && (H = Sr(d.props.children)), s = vr(e, Ye(H) ? H : [H], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
151
+ c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), g && !h && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, p)), H = _, _ != null && _.type === Z && _.key == null && (H = Er(_.props.children)), s = wr(e, Ye(H) ? H : [H], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
152
152
  } catch (ce) {
153
153
  if (t.__v = null, l || i != null) if (ce.then) {
154
154
  for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
155
155
  i[i.indexOf(s)] = null, t.__e = s;
156
- } else for (Re = i.length; Re--; ) on(i[Re]);
156
+ } else for (Re = i.length; Re--; ) sn(i[Re]);
157
157
  else t.__e = n.__e, t.__k = n.__k;
158
158
  w.__e(ce, t, n);
159
159
  }
160
160
  else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = To(n.__e, t, n, r, o, i, a, l, u);
161
- return (d = w.diffed) && d(t), 128 & t.__u ? void 0 : s;
161
+ return (_ = w.diffed) && _(t), 128 & t.__u ? void 0 : s;
162
162
  }
163
- function wr(e, t, n) {
164
- for (var r = 0; r < n.length; r++) sn(n[r], n[++r], n[++r]);
163
+ function Sr(e, t, n) {
164
+ for (var r = 0; r < n.length; r++) ln(n[r], n[++r], n[++r]);
165
165
  w.__c && w.__c(t, e), e.some(function(o) {
166
166
  try {
167
167
  e = o.__h, o.__h = [], e.some(function(i) {
@@ -172,11 +172,11 @@ function wr(e, t, n) {
172
172
  }
173
173
  });
174
174
  }
175
- function Sr(e) {
176
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Sr) : q({}, e);
175
+ function Er(e) {
176
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Er) : q({}, e);
177
177
  }
178
178
  function To(e, t, n, r, o, i, a, s, l) {
179
- var u, d, c, _, f, p, y, v = n.props, m = t.props, g = t.type;
179
+ var u, _, c, h, f, p, y, v = n.props, m = t.props, g = t.type;
180
180
  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
181
  for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
182
182
  e = f, i[u] = null;
@@ -197,14 +197,14 @@ function To(e, t, n, r, o, i, a, s, l) {
197
197
  tt(e, u, null, f, o);
198
198
  }
199
199
  }
200
- for (u in m) f = m[u], u == "children" ? _ = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? p = f : u == "checked" ? y = f : s && typeof f != "function" || v[u] === f || tt(e, u, f, v[u], o);
201
- if (d) s || c && (d.__html == c.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
202
- else if (c && (e.innerHTML = ""), vr(t.type == "template" ? e.content : e, Ye(_) ? _ : [_], t, n, r, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Ee(n, 0), s, l), i != null) for (u = i.length; u--; ) on(i[u]);
200
+ for (u in m) f = m[u], u == "children" ? h = f : u == "dangerouslySetInnerHTML" ? _ = f : u == "value" ? p = f : u == "checked" ? y = f : s && typeof f != "function" || v[u] === f || tt(e, u, f, v[u], o);
201
+ if (_) s || c && (_.__html == c.__html || _.__html == e.innerHTML) || (e.innerHTML = _.__html), t.__k = [];
202
+ else if (c && (e.innerHTML = ""), wr(t.type == "template" ? e.content : e, Ye(h) ? h : [h], t, n, r, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Ee(n, 0), s, l), i != null) for (u = i.length; u--; ) sn(i[u]);
203
203
  s || (u = "value", g == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[u] || g == "progress" && !p || g == "option" && p != v[u]) && tt(e, u, p, v[u], o), u = "checked", y != null && y != e[u] && tt(e, u, y, v[u], o));
204
204
  }
205
205
  return e;
206
206
  }
207
- function sn(e, t, n) {
207
+ function ln(e, t, n) {
208
208
  try {
209
209
  if (typeof e == "function") {
210
210
  var r = typeof e.__u == "function";
@@ -214,9 +214,9 @@ function sn(e, t, n) {
214
214
  w.__e(o, n);
215
215
  }
216
216
  }
217
- function br(e, t, n) {
217
+ function $r(e, t, n) {
218
218
  var r, o;
219
- if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || sn(r, null, t)), (r = e.__c) != null) {
219
+ if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ln(r, null, t)), (r = e.__c) != null) {
220
220
  if (r.componentWillUnmount) try {
221
221
  r.componentWillUnmount();
222
222
  } catch (i) {
@@ -224,25 +224,25 @@ function br(e, t, n) {
224
224
  }
225
225
  r.base = r.__P = null;
226
226
  }
227
- if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && br(r[o], t, n || typeof e.type != "function");
228
- n || on(e.__e), e.__c = e.__ = e.__e = void 0;
227
+ if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && $r(r[o], t, n || typeof e.type != "function");
228
+ n || sn(e.__e), e.__c = e.__ = e.__e = void 0;
229
229
  }
230
- function xo(e, t, n) {
230
+ function Oo(e, t, n) {
231
231
  return this.constructor(e, n);
232
232
  }
233
233
  function ae(e, t, n) {
234
234
  var r, o, i, a;
235
- t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], an(t, e = (!r && n || t).__k = L(V, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), wr(i, e, a);
235
+ t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], cn(t, e = (!r && n || t).__k = L(Z, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Sr(i, e, a);
236
236
  }
237
- function cn(e, t) {
238
- ae(e, t, cn);
237
+ function un(e, t) {
238
+ ae(e, t, un);
239
239
  }
240
- function ln(e, t, n) {
240
+ function fn(e, t, n) {
241
241
  var r, o, i, a, s = q({}, e.props);
242
242
  for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] == null && a != null ? a[i] : t[i];
243
243
  return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), Fe(e.type, s, r || e.key, o || e.ref, null);
244
244
  }
245
- function Er(e) {
245
+ function kr(e) {
246
246
  function t(n) {
247
247
  var r, o;
248
248
  return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
@@ -261,27 +261,27 @@ function Er(e) {
261
261
  };
262
262
  }), n.children;
263
263
  }
264
- return t.__c = "__cC" + mr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
264
+ return t.__c = "__cC" + yr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
265
265
  return n.children(r);
266
266
  }).contextType = t, t;
267
267
  }
268
- Ze = gr.slice, w = { __e: function(e, t, n, r) {
268
+ Ze = vr.slice, w = { __e: function(e, t, n, r) {
269
269
  for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
270
270
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
271
271
  } catch (s) {
272
272
  e = s;
273
273
  }
274
274
  throw e;
275
- } }, dr = 0, j.prototype.setState = function(e, t) {
275
+ } }, hr = 0, G.prototype.setState = function(e, t) {
276
276
  var n;
277
277
  n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), zt(this));
278
- }, j.prototype.forceUpdate = function(e) {
278
+ }, G.prototype.forceUpdate = function(e) {
279
279
  this.__v && (this.__e = !0, e && this.__h.push(e), zt(this));
280
- }, j.prototype.render = V, ue = [], _r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, hr = function(e, t) {
280
+ }, G.prototype.render = Z, ue = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mr = function(e, t) {
281
281
  return e.__v.__b - t.__v.__b;
282
- }, _t.__r = 0, pr = /(PointerCapture)$|Capture$/i, rn = 0, Ht = $n(!1), Ut = $n(!0), mr = 0;
283
- function un() {
284
- return (un = Object.assign ? Object.assign.bind() : function(e) {
282
+ }, _t.__r = 0, gr = /(PointerCapture)$|Capture$/i, an = 0, Ht = Nn(!1), Ut = Nn(!0), yr = 0;
283
+ function dn() {
284
+ return (dn = Object.assign ? Object.assign.bind() : function(e) {
285
285
  for (var t = 1; t < arguments.length; t++) {
286
286
  var n = arguments[t];
287
287
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
@@ -289,8 +289,8 @@ function un() {
289
289
  return e;
290
290
  }).apply(this, arguments);
291
291
  }
292
- var Oo = ["context", "children"];
293
- function Io(e) {
292
+ var Io = ["context", "children"];
293
+ function Ao(e) {
294
294
  this.getChildContext = function() {
295
295
  return e.context;
296
296
  };
@@ -299,52 +299,52 @@ function Io(e) {
299
299
  var i, a, s = {}, l = Object.keys(r);
300
300
  for (a = 0; a < l.length; a++) o.indexOf(i = l[a]) >= 0 || (s[i] = r[i]);
301
301
  return s;
302
- }(e, Oo);
303
- return ln(t, n);
302
+ }(e, Io);
303
+ return fn(t, n);
304
304
  }
305
- function Ao() {
305
+ function Ro() {
306
306
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
- this.dispatchEvent(e), this._vdom = L(Io, un({}, this._props, { context: e.detail.context }), function t(n, r) {
307
+ this.dispatchEvent(e), this._vdom = L(Ao, dn({}, this._props, { context: e.detail.context }), function t(n, r) {
308
308
  if (n.nodeType === 3) return n.data;
309
309
  if (n.nodeType !== 1) return null;
310
310
  var o = [], i = {}, a = 0, s = n.attributes, l = n.childNodes;
311
- for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[$r(s[a].name)] = s[a].value);
311
+ for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[Nr(s[a].name)] = s[a].value);
312
312
  for (a = l.length; a--; ) {
313
- var u = t(l[a], null), d = l[a].slot;
314
- d ? i[d] = L(Nn, { name: d }, u) : o[a] = u;
313
+ var u = t(l[a], null), _ = l[a].slot;
314
+ _ ? i[_] = L(xn, { name: _ }, u) : o[a] = u;
315
315
  }
316
- var c = r ? L(Nn, null, o) : o;
316
+ var c = r ? L(xn, null, o) : o;
317
317
  return L(r || n.nodeName.toLowerCase(), i, c);
318
- }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? cn : ae)(this._vdom, this._root);
318
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? un : ae)(this._vdom, this._root);
319
319
  }
320
- function $r(e) {
320
+ function Nr(e) {
321
321
  return e.replace(/-(\w)/g, function(t, n) {
322
322
  return n ? n.toUpperCase() : "";
323
323
  });
324
324
  }
325
- function Ro(e, t, n) {
325
+ function Po(e, t, n) {
326
326
  if (this._vdom) {
327
327
  var r = {};
328
- r[e] = n = n ?? void 0, r[$r(e)] = n, this._vdom = ln(this._vdom, r), ae(this._vdom, this._root);
328
+ r[e] = n = n ?? void 0, r[Nr(e)] = n, this._vdom = fn(this._vdom, r), ae(this._vdom, this._root);
329
329
  }
330
330
  }
331
- function Po() {
331
+ function Lo() {
332
332
  ae(this._vdom = null, this._root);
333
333
  }
334
- function Nn(e, t) {
334
+ function xn(e, t) {
335
335
  var n = this;
336
- return L("slot", un({}, e, { ref: function(r) {
336
+ return L("slot", dn({}, e, { ref: function(r) {
337
337
  r ? (n.ref = r, n._listener || (n._listener = function(o) {
338
338
  o.stopPropagation(), o.detail.context = t;
339
339
  }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
340
340
  } }));
341
341
  }
342
- function Lo(e, t, n, r) {
342
+ function Mo(e, t, n, r) {
343
343
  function o() {
344
344
  var i = Reflect.construct(HTMLElement, [], o);
345
345
  return i._vdomComponent = e, i._root = i, i;
346
346
  }
347
- return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Ao, o.prototype.attributeChangedCallback = Ro, o.prototype.disconnectedCallback = Po, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
347
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Ro, o.prototype.attributeChangedCallback = Po, o.prototype.disconnectedCallback = Lo, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
348
348
  Object.defineProperty(o.prototype, i, { get: function() {
349
349
  return this._vdom.props[i];
350
350
  }, set: function(a) {
@@ -355,7 +355,7 @@ function Lo(e, t, n, r) {
355
355
  }), customElements.define(t, o);
356
356
  }
357
357
  var Do = 0;
358
- function h(e, t, n, r, o, i) {
358
+ function d(e, t, n, r, o, i) {
359
359
  t || (t = {});
360
360
  var a, s, l = t;
361
361
  if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
@@ -363,16 +363,17 @@ function h(e, t, n, r, o, i) {
363
363
  if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
364
364
  return w.vnode && w.vnode(u), u;
365
365
  }
366
- const kn = {
366
+ const Tn = {
367
367
  SWITCH_CAMERA: "switch-camera",
368
368
  TOGGLE_MIRROR: "toggle-mirror"
369
369
  };
370
- var Nr = /* @__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))(Nr || {}), _e = /* @__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))(_e || {});
371
- const Y = {
370
+ var xr = /* @__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))(xr || {}), _e = /* @__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))(_e || {});
371
+ const j = {
372
372
  LOADING: "LOADING",
373
373
  ERROR: "ERROR",
374
374
  WAITING: "WAITING",
375
- RUNNING: "RUNNING"
375
+ RUNNING: "RUNNING",
376
+ COMPLETE: "COMPLETE"
376
377
  }, B = {
377
378
  CANDIDATE_SELECTION: "candidate_selection",
378
379
  PALM_CENTERING: "palm_centering",
@@ -385,34 +386,34 @@ const Y = {
385
386
  DEVICE_PITCHED: "device_pitched",
386
387
  TEMPLATE_EXTRACTION_QUALITY_TOO_LOW: "template_extraction_quality_too_low"
387
388
  };
388
- var se, O, It, Tn, $e = 0, kr = [], I = w, xn = I.__b, On = I.__r, In = I.diffed, An = I.__c, Rn = I.unmount, Pn = I.__;
389
+ var se, O, It, On, $e = 0, Tr = [], I = w, In = I.__b, An = I.__r, Rn = I.diffed, Pn = I.__c, Ln = I.unmount, Mn = I.__;
389
390
  function Oe(e, t) {
390
391
  I.__h && I.__h(O, e, $e || t), $e = 0;
391
392
  var n = O.__H || (O.__H = { __: [], __h: [] });
392
393
  return e >= n.__.length && n.__.push({}), n.__[e];
393
394
  }
394
395
  function F(e) {
395
- return $e = 1, fn(Or, e);
396
+ return $e = 1, _n(Ar, e);
396
397
  }
397
- function fn(e, t, n) {
398
+ function _n(e, t, n) {
398
399
  var r = Oe(se++, 2);
399
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Or(void 0, t), function(s) {
400
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ar(void 0, t), function(s) {
400
401
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
401
402
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
402
403
  }], r.__c = O, !O.__f)) {
403
404
  var o = function(s, l, u) {
404
405
  if (!r.__c.__H) return !0;
405
- var d = r.__c.__H.__.filter(function(_) {
406
- return !!_.__c;
406
+ var _ = r.__c.__H.__.filter(function(h) {
407
+ return !!h.__c;
407
408
  });
408
- if (d.every(function(_) {
409
- return !_.__N;
409
+ if (_.every(function(h) {
410
+ return !h.__N;
410
411
  })) return !i || i.call(this, s, l, u);
411
412
  var c = r.__c.props !== s;
412
- return d.forEach(function(_) {
413
- if (_.__N) {
414
- var f = _.__[0];
415
- _.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0);
413
+ return _.forEach(function(h) {
414
+ if (h.__N) {
415
+ var f = h.__[0];
416
+ h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (c = !0);
416
417
  }
417
418
  }), i && i.call(this, s, l, u) || c;
418
419
  };
@@ -420,8 +421,8 @@ function fn(e, t, n) {
420
421
  var i = O.shouldComponentUpdate, a = O.componentWillUpdate;
421
422
  O.componentWillUpdate = function(s, l, u) {
422
423
  if (this.__e) {
423
- var d = i;
424
- i = void 0, o(s, l, u), i = d;
424
+ var _ = i;
425
+ i = void 0, o(s, l, u), i = _;
425
426
  }
426
427
  a && a.call(this, s, l, u);
427
428
  }, O.shouldComponentUpdate = o;
@@ -430,18 +431,18 @@ function fn(e, t, n) {
430
431
  }
431
432
  function ne(e, t) {
432
433
  var n = Oe(se++, 3);
433
- !I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n));
434
+ !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n));
434
435
  }
435
436
  function Ie(e, t) {
436
437
  var n = Oe(se++, 4);
437
- !I.__s && dn(n.__H, t) && (n.__ = e, n.u = t, O.__h.push(n));
438
+ !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, O.__h.push(n));
438
439
  }
439
440
  function qe(e) {
440
441
  return $e = 5, te(function() {
441
442
  return { current: e };
442
443
  }, []);
443
444
  }
444
- function Tr(e, t, n) {
445
+ function Or(e, t, n) {
445
446
  $e = 6, Ie(function() {
446
447
  if (typeof e == "function") {
447
448
  var r = e(t());
@@ -456,7 +457,7 @@ function Tr(e, t, n) {
456
457
  }
457
458
  function te(e, t) {
458
459
  var n = Oe(se++, 7);
459
- return dn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
460
+ return hn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
460
461
  }
461
462
  function he(e, t) {
462
463
  return $e = 8, te(function() {
@@ -470,7 +471,7 @@ function Xe(e) {
470
471
  function ht(e, t) {
471
472
  I.useDebugValue && I.useDebugValue(t ? t(e) : e);
472
473
  }
473
- function xr() {
474
+ function Ir() {
474
475
  var e = Oe(se++, 11);
475
476
  if (!e.__) {
476
477
  for (var t = O.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
@@ -479,27 +480,27 @@ function xr() {
479
480
  }
480
481
  return e.__;
481
482
  }
482
- function Mo() {
483
- for (var e; e = kr.shift(); ) if (e.__P && e.__H) try {
483
+ function Ho() {
484
+ for (var e; e = Tr.shift(); ) if (e.__P && e.__H) try {
484
485
  e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
485
486
  } catch (t) {
486
487
  e.__H.__h = [], I.__e(t, e.__v);
487
488
  }
488
489
  }
489
490
  I.__b = function(e) {
490
- O = null, xn && xn(e);
491
+ O = null, In && In(e);
491
492
  }, I.__ = function(e, t) {
492
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Pn && Pn(e, t);
493
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t);
493
494
  }, I.__r = function(e) {
494
- On && On(e), se = 0;
495
+ An && An(e), se = 0;
495
496
  var t = (O = e.__c).__H;
496
497
  t && (It === O ? (t.__h = [], O.__h = [], t.__.forEach(function(n) {
497
498
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
498
499
  })) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], se = 0)), It = O;
499
500
  }, I.diffed = function(e) {
500
- In && In(e);
501
+ Rn && Rn(e);
501
502
  var t = e.__c;
502
- t && t.__H && (t.__H.__h.length && (kr.push(t) !== 1 && Tn === I.requestAnimationFrame || ((Tn = I.requestAnimationFrame) || Ho)(Mo)), t.__H.__.forEach(function(n) {
503
+ t && t.__H && (t.__H.__h.length && (Tr.push(t) !== 1 && On === I.requestAnimationFrame || ((On = I.requestAnimationFrame) || Uo)(Ho)), t.__H.__.forEach(function(n) {
503
504
  n.u && (n.__H = n.u), n.u = void 0;
504
505
  })), It = O = null;
505
506
  }, I.__c = function(e, t) {
@@ -513,9 +514,9 @@ I.__b = function(e) {
513
514
  o.__h && (o.__h = []);
514
515
  }), t = [], I.__e(r, n.__v);
515
516
  }
516
- }), An && An(e, t);
517
+ }), Pn && Pn(e, t);
517
518
  }, I.unmount = function(e) {
518
- Rn && Rn(e);
519
+ Ln && Ln(e);
519
520
  var t, n = e.__c;
520
521
  n && n.__H && (n.__H.__.forEach(function(r) {
521
522
  try {
@@ -525,12 +526,12 @@ I.__b = function(e) {
525
526
  }
526
527
  }), n.__H = void 0, t && I.__e(t, n.__v));
527
528
  };
528
- var Ln = typeof requestAnimationFrame == "function";
529
- function Ho(e) {
529
+ var Dn = typeof requestAnimationFrame == "function";
530
+ function Uo(e) {
530
531
  var t, n = function() {
531
- clearTimeout(r), Ln && cancelAnimationFrame(t), setTimeout(e);
532
+ clearTimeout(r), Dn && cancelAnimationFrame(t), setTimeout(e);
532
533
  }, r = setTimeout(n, 100);
533
- Ln && (t = requestAnimationFrame(n));
534
+ Dn && (t = requestAnimationFrame(n));
534
535
  }
535
536
  function at(e) {
536
537
  var t = O, n = e.__c;
@@ -540,12 +541,12 @@ function Bt(e) {
540
541
  var t = O;
541
542
  e.__c = e.__(), O = t;
542
543
  }
543
- function dn(e, t) {
544
+ function hn(e, t) {
544
545
  return !e || e.length !== t.length || t.some(function(n, r) {
545
546
  return n !== e[r];
546
547
  });
547
548
  }
548
- function Or(e, t) {
549
+ function Ar(e, t) {
549
550
  return typeof t == "function" ? t(e) : t;
550
551
  }
551
552
  var P = function() {
@@ -562,19 +563,19 @@ function ge(e, t, n) {
562
563
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
563
564
  return e.concat(i || Array.prototype.slice.call(t));
564
565
  }
565
- function Uo(e) {
566
+ function zo(e) {
566
567
  var t = /* @__PURE__ */ Object.create(null);
567
568
  return function(n) {
568
569
  return t[n] === void 0 && (t[n] = e(n)), t[n];
569
570
  };
570
571
  }
571
- var zo = /^((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)-.*))$/, Bo = /* @__PURE__ */ Uo(
572
+ var Bo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Fo = /* @__PURE__ */ zo(
572
573
  function(e) {
573
- return zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
574
+ return Bo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
574
575
  }
575
576
  /* Z+1 */
576
577
  );
577
- function Ir(e, t) {
578
+ function Rr(e, t) {
578
579
  for (var n in t) e[n] = t[n];
579
580
  return e;
580
581
  }
@@ -583,7 +584,7 @@ function Ft(e, t) {
583
584
  for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
584
585
  return !1;
585
586
  }
586
- function Ar(e, t) {
587
+ function Pr(e, t) {
587
588
  var n = t(), r = F({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
588
589
  return Ie(function() {
589
590
  o.__ = n, o.u = t, At(o) && i({ t: o });
@@ -602,20 +603,20 @@ function At(e) {
602
603
  return !0;
603
604
  }
604
605
  }
605
- function Rr(e) {
606
+ function Lr(e) {
606
607
  e();
607
608
  }
608
- function Pr(e) {
609
+ function Mr(e) {
609
610
  return e;
610
611
  }
611
- function Lr() {
612
- return [!1, Rr];
612
+ function Dr() {
613
+ return [!1, Lr];
613
614
  }
614
- var Dr = Ie;
615
+ var Hr = Ie;
615
616
  function Wt(e, t) {
616
617
  this.props = e, this.context = t;
617
618
  }
618
- function Fo(e, t) {
619
+ function Wo(e, t) {
619
620
  function n(o) {
620
621
  var i = this.props.ref, a = i == o.ref;
621
622
  return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ft(this.props, o);
@@ -625,57 +626,57 @@ function Fo(e, t) {
625
626
  }
626
627
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
627
628
  }
628
- (Wt.prototype = new j()).isPureReactComponent = !0, Wt.prototype.shouldComponentUpdate = function(e, t) {
629
+ (Wt.prototype = new G()).isPureReactComponent = !0, Wt.prototype.shouldComponentUpdate = function(e, t) {
629
630
  return Ft(this.props, e) || Ft(this.state, t);
630
631
  };
631
- var Dn = w.__b;
632
+ var Hn = w.__b;
632
633
  w.__b = function(e) {
633
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Dn && Dn(e);
634
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e);
634
635
  };
635
- var Wo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
636
- function jo(e) {
636
+ var jo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
637
+ function Go(e) {
637
638
  function t(n) {
638
- var r = Ir({}, n);
639
+ var r = Rr({}, n);
639
640
  return delete r.ref, e(r, n.ref || null);
640
641
  }
641
- return t.$$typeof = Wo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
642
+ return t.$$typeof = jo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
642
643
  }
643
- var Mn = function(e, t) {
644
+ var Un = function(e, t) {
644
645
  return e == null ? null : ee(ee(e).map(t));
645
- }, Go = { map: Mn, forEach: Mn, count: function(e) {
646
+ }, Vo = { map: Un, forEach: Un, count: function(e) {
646
647
  return e ? ee(e).length : 0;
647
648
  }, only: function(e) {
648
649
  var t = ee(e);
649
650
  if (t.length !== 1) throw "Children.only";
650
651
  return t[0];
651
- }, toArray: ee }, Vo = w.__e;
652
+ }, toArray: ee }, Zo = w.__e;
652
653
  w.__e = function(e, t, n, r) {
653
654
  if (e.then) {
654
655
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
655
656
  }
656
- Vo(e, t, n, r);
657
+ Zo(e, t, n, r);
657
658
  };
658
- var Hn = w.unmount;
659
- function Mr(e, t, n) {
659
+ var zn = w.unmount;
660
+ function Ur(e, t, n) {
660
661
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
661
662
  typeof r.__c == "function" && r.__c();
662
- }), e.__c.__H = null), (e = Ir({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
663
- return Mr(r, t, n);
663
+ }), e.__c.__H = null), (e = Rr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
664
+ return Ur(r, t, n);
664
665
  })), e;
665
666
  }
666
- function Hr(e, t, n) {
667
+ function zr(e, t, n) {
667
668
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
668
- return Hr(r, t, n);
669
+ return zr(r, t, n);
669
670
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
670
671
  }
671
672
  function st() {
672
673
  this.__u = 0, this.o = null, this.__b = null;
673
674
  }
674
- function Ur(e) {
675
+ function Br(e) {
675
676
  var t = e.__.__c;
676
677
  return t && t.__a && t.__a(e);
677
678
  }
678
- function Zo(e) {
679
+ function Yo(e) {
679
680
  var t, n, r;
680
681
  function o(i) {
681
682
  if (t || (t = e()).then(function(a) {
@@ -693,11 +694,11 @@ function He() {
693
694
  }
694
695
  w.unmount = function(e) {
695
696
  var t = e.__c;
696
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Hn && Hn(e);
697
- }, (st.prototype = new j()).__c = function(e, t) {
697
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), zn && zn(e);
698
+ }, (st.prototype = new G()).__c = function(e, t) {
698
699
  var n = t.__c, r = this;
699
700
  r.o == null && (r.o = []), r.o.push(n);
700
- var o = Ur(r.__v), i = !1, a = function() {
701
+ var o = Br(r.__v), i = !1, a = function() {
701
702
  i || (i = !0, n.__R = null, o ? o(s) : s());
702
703
  };
703
704
  n.__R = a;
@@ -705,7 +706,7 @@ w.unmount = function(e) {
705
706
  if (!--r.__u) {
706
707
  if (r.state.__a) {
707
708
  var l = r.state.__a;
708
- r.__v.__k[0] = Hr(l, l.__c.__P, l.__c.__O);
709
+ r.__v.__k[0] = zr(l, l.__c.__P, l.__c.__O);
709
710
  }
710
711
  var u;
711
712
  for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
@@ -718,26 +719,26 @@ w.unmount = function(e) {
718
719
  if (this.__b) {
719
720
  if (this.__v.__k) {
720
721
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
721
- this.__v.__k[0] = Mr(this.__b, n, r.__O = r.__P);
722
+ this.__v.__k[0] = Ur(this.__b, n, r.__O = r.__P);
722
723
  }
723
724
  this.__b = null;
724
725
  }
725
- var o = t.__a && L(V, null, e.fallback);
726
- return o && (o.__u &= -33), [L(V, null, t.__a ? null : e.children), o];
726
+ var o = t.__a && L(Z, null, e.fallback);
727
+ return o && (o.__u &= -33), [L(Z, null, t.__a ? null : e.children), o];
727
728
  };
728
- var Un = function(e, t, n) {
729
+ var Bn = function(e, t, n) {
729
730
  if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
730
731
  for (; n.length > 3; ) n.pop()();
731
732
  if (n[1] < n[0]) break;
732
733
  e.i = n = n[2];
733
734
  }
734
735
  };
735
- function Yo(e) {
736
+ function qo(e) {
736
737
  return this.getChildContext = function() {
737
738
  return e.context;
738
739
  }, e.children;
739
740
  }
740
- function qo(e) {
741
+ function Xo(e) {
741
742
  var t = this, n = e.h;
742
743
  if (t.componentWillUnmount = function() {
743
744
  ae(null, t.v), t.v = null, t.h = null;
@@ -753,17 +754,17 @@ function qo(e) {
753
754
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
754
755
  } };
755
756
  }
756
- ae(L(Yo, { context: t.context }, e.__v), t.v);
757
+ ae(L(qo, { context: t.context }, e.__v), t.v);
757
758
  }
758
- function Xo(e, t) {
759
- var n = L(qo, { __v: e, h: t });
759
+ function Ko(e, t) {
760
+ var n = L(Xo, { __v: e, h: t });
760
761
  return n.containerInfo = t, n;
761
762
  }
762
- (He.prototype = new j()).__a = function(e) {
763
- var t = this, n = Ur(t.__v), r = t.l.get(e);
763
+ (He.prototype = new G()).__a = function(e) {
764
+ var t = this, n = Br(t.__v), r = t.l.get(e);
764
765
  return r[0]++, function(o) {
765
766
  var i = function() {
766
- t.props.revealOrder ? (r.push(o), Un(t, e, r)) : o();
767
+ t.props.revealOrder ? (r.push(o), Bn(t, e, r)) : o();
767
768
  };
768
769
  n ? n(i) : i();
769
770
  };
@@ -776,102 +777,102 @@ function Xo(e, t) {
776
777
  }, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
777
778
  var e = this;
778
779
  this.l.forEach(function(t, n) {
779
- Un(e, n, t);
780
+ Bn(e, n, t);
780
781
  });
781
782
  };
782
- var zr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ko = /^(?: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]/, Jo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Qo = /[A-Z0-9]/g, ei = typeof document < "u", ti = function(e) {
783
+ var Fr = 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)/, ei = /[A-Z0-9]/g, ti = typeof document < "u", ni = function(e) {
783
784
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
784
785
  };
785
- function ni(e, t, n) {
786
+ function ri(e, t, n) {
786
787
  return t.__k == null && (t.textContent = ""), ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
787
788
  }
788
- function ri(e, t, n) {
789
- return cn(e, t), typeof n == "function" && n(), e ? e.__c : null;
789
+ function oi(e, t, n) {
790
+ return un(e, t), typeof n == "function" && n(), e ? e.__c : null;
790
791
  }
791
- j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
792
- Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
792
+ G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
793
+ Object.defineProperty(G.prototype, e, { configurable: !0, get: function() {
793
794
  return this["UNSAFE_" + e];
794
795
  }, set: function(t) {
795
796
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
796
797
  } });
797
798
  });
798
- var zn = w.event;
799
- function oi() {
800
- }
799
+ var Fn = w.event;
801
800
  function ii() {
802
- return this.cancelBubble;
803
801
  }
804
802
  function ai() {
803
+ return this.cancelBubble;
804
+ }
805
+ function si() {
805
806
  return this.defaultPrevented;
806
807
  }
807
808
  w.event = function(e) {
808
- return zn && (e = zn(e)), e.persist = oi, e.isPropagationStopped = ii, e.isDefaultPrevented = ai, e.nativeEvent = e;
809
+ return Fn && (e = Fn(e)), e.persist = ii, e.isPropagationStopped = ai, e.isDefaultPrevented = si, e.nativeEvent = e;
809
810
  };
810
- var _n, si = { enumerable: !1, configurable: !0, get: function() {
811
+ var pn, ci = { enumerable: !1, configurable: !0, get: function() {
811
812
  return this.class;
812
- } }, Bn = w.vnode;
813
+ } }, Wn = w.vnode;
813
814
  w.vnode = function(e) {
814
815
  typeof e.type == "string" && function(t) {
815
816
  var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
816
817
  for (var a in n) {
817
818
  var s = n[a];
818
- if (!(a === "value" && "defaultValue" in n && s == null || ei && a === "children" && r === "noscript" || a === "class" || a === "className")) {
819
+ if (!(a === "value" && "defaultValue" in n && s == null || ti && a === "children" && r === "noscript" || a === "class" || a === "className")) {
819
820
  var l = a.toLowerCase();
820
- a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ti(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Jo.test(a) && (a = l) : l = a = "oninput" : i && Ko.test(a) ? a = a.replace(Qo, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
821
+ a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ni(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Qo.test(a) && (a = l) : l = a = "oninput" : i && Jo.test(a) ? a = a.replace(ei, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
821
822
  }
822
823
  }
823
824
  r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(u) {
824
825
  u.props.selected = o.value.indexOf(u.props.value) != -1;
825
826
  })), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
826
827
  u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
827
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", si)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
828
- }(e), e.$$typeof = zr, Bn && Bn(e);
828
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ci)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
829
+ }(e), e.$$typeof = Fr, Wn && Wn(e);
829
830
  };
830
- var Fn = w.__r;
831
+ var jn = w.__r;
831
832
  w.__r = function(e) {
832
- Fn && Fn(e), _n = e.__c;
833
+ jn && jn(e), pn = e.__c;
833
834
  };
834
- var Wn = w.diffed;
835
+ var Gn = w.diffed;
835
836
  w.diffed = function(e) {
836
- Wn && Wn(e);
837
+ Gn && Gn(e);
837
838
  var t = e.props, n = e.__e;
838
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null;
839
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), pn = null;
839
840
  };
840
- var ci = { ReactCurrentDispatcher: { current: { readContext: function(e) {
841
- return _n.__n[e.__c].props.value;
842
- }, useCallback: he, useContext: Xe, useDebugValue: ht, useDeferredValue: Pr, useEffect: ne, useId: xr, useImperativeHandle: Tr, useInsertionEffect: Dr, useLayoutEffect: Ie, useMemo: te, useReducer: fn, useRef: qe, useState: F, useSyncExternalStore: Ar, useTransition: Lr } } };
843
- function li(e) {
841
+ var li = { ReactCurrentDispatcher: { current: { readContext: function(e) {
842
+ return pn.__n[e.__c].props.value;
843
+ }, useCallback: he, useContext: Xe, useDebugValue: ht, useDeferredValue: Mr, useEffect: ne, useId: Ir, useImperativeHandle: Or, useInsertionEffect: Hr, useLayoutEffect: Ie, useMemo: te, useReducer: _n, useRef: qe, useState: F, useSyncExternalStore: Pr, useTransition: Dr } } };
844
+ function ui(e) {
844
845
  return L.bind(null, e);
845
846
  }
846
847
  function vt(e) {
847
- return !!e && e.$$typeof === zr;
848
- }
849
- function ui(e) {
850
- return vt(e) && e.type === V;
848
+ return !!e && e.$$typeof === Fr;
851
849
  }
852
850
  function fi(e) {
853
- return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
851
+ return vt(e) && e.type === Z;
854
852
  }
855
853
  function di(e) {
856
- return vt(e) ? ln.apply(null, arguments) : e;
854
+ return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
857
855
  }
858
856
  function _i(e) {
859
- return !!e.__k && (ae(null, e), !0);
857
+ return vt(e) ? fn.apply(null, arguments) : e;
860
858
  }
861
859
  function hi(e) {
860
+ return !!e.__k && (ae(null, e), !0);
861
+ }
862
+ function pi(e) {
862
863
  return e && (e.base || e.nodeType === 1 && e) || null;
863
864
  }
864
- var pi = function(e, t) {
865
+ var mi = function(e, t) {
865
866
  return e(t);
866
- }, mi = function(e, t) {
867
+ }, gi = function(e, t) {
867
868
  return e(t);
868
- }, gi = V, yi = vt, re = { useState: F, useId: xr, useReducer: fn, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Dr, useTransition: Lr, useDeferredValue: Pr, useSyncExternalStore: Ar, startTransition: Rr, useRef: qe, useImperativeHandle: Tr, useMemo: te, useCallback: he, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Go, render: ni, hydrate: ri, unmountComponentAtNode: _i, createPortal: Xo, createElement: L, createContext: Er, createFactory: li, cloneElement: di, createRef: $o, Fragment: V, isValidElement: vt, isElement: yi, isFragment: ui, isMemo: fi, findDOMNode: hi, Component: j, PureComponent: Wt, memo: Fo, forwardRef: jo, flushSync: mi, unstable_batchedUpdates: pi, StrictMode: gi, Suspense: st, SuspenseList: He, lazy: Zo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ci };
869
- function vi(e) {
869
+ }, yi = Z, vi = vt, re = { useState: F, useId: Ir, useReducer: _n, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Hr, useTransition: Dr, useDeferredValue: Mr, useSyncExternalStore: Pr, startTransition: Lr, useRef: qe, useImperativeHandle: Or, useMemo: te, useCallback: he, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Vo, render: ri, hydrate: oi, unmountComponentAtNode: hi, createPortal: Ko, createElement: L, createContext: kr, createFactory: ui, cloneElement: _i, createRef: ko, Fragment: Z, isValidElement: vt, isElement: vi, isFragment: fi, isMemo: di, findDOMNode: pi, Component: G, PureComponent: Wt, memo: Wo, forwardRef: Go, flushSync: gi, unstable_batchedUpdates: mi, StrictMode: yi, Suspense: st, SuspenseList: He, lazy: Yo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: li };
870
+ function Ci(e) {
870
871
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
871
872
  }
872
- var Rt, jn;
873
- function Ci() {
874
- return jn || (jn = 1, Rt = function(t, n, r, o) {
873
+ var Rt, Vn;
874
+ function wi() {
875
+ return Vn || (Vn = 1, Rt = function(t, n, r, o) {
875
876
  var i = r ? r.call(o, t, n) : void 0;
876
877
  if (i !== void 0)
877
878
  return !!i;
@@ -883,29 +884,29 @@ function Ci() {
883
884
  if (a.length !== s.length)
884
885
  return !1;
885
886
  for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
886
- var d = a[u];
887
- if (!l(d))
887
+ var _ = a[u];
888
+ if (!l(_))
888
889
  return !1;
889
- var c = t[d], _ = n[d];
890
- if (i = r ? r.call(o, c, _, d) : void 0, i === !1 || i === void 0 && c !== _)
890
+ var c = t[_], h = n[_];
891
+ if (i = r ? r.call(o, c, h, _) : void 0, i === !1 || i === void 0 && c !== h)
891
892
  return !1;
892
893
  }
893
894
  return !0;
894
895
  }), Rt;
895
896
  }
896
- var wi = Ci();
897
- const Si = /* @__PURE__ */ vi(wi);
898
- var x = "-ms-", We = "-moz-", k = "-webkit-", Br = "comm", Ct = "rule", hn = "decl", bi = "@import", Fr = "@keyframes", Ei = "@layer", Wr = Math.abs, pn = String.fromCharCode, jt = Object.assign;
899
- function $i(e, t) {
897
+ var bi = wi();
898
+ const Si = /* @__PURE__ */ Ci(bi);
899
+ var T = "-ms-", We = "-moz-", N = "-webkit-", Wr = "comm", Ct = "rule", mn = "decl", Ei = "@import", jr = "@keyframes", $i = "@layer", Gr = Math.abs, gn = String.fromCharCode, jt = Object.assign;
900
+ function ki(e, t) {
900
901
  return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
901
902
  }
902
- function jr(e) {
903
+ function Vr(e) {
903
904
  return e.trim();
904
905
  }
905
906
  function J(e, t) {
906
907
  return (e = t.exec(e)) ? e[0] : e;
907
908
  }
908
- function S(e, t, n) {
909
+ function b(e, t, n) {
909
910
  return e.replace(t, n);
910
911
  }
911
912
  function ct(e, t, n) {
@@ -914,13 +915,13 @@ function ct(e, t, n) {
914
915
  function R(e, t) {
915
916
  return e.charCodeAt(t) | 0;
916
917
  }
917
- function Ne(e, t, n) {
918
+ function ke(e, t, n) {
918
919
  return e.slice(t, n);
919
920
  }
920
- function Z(e) {
921
+ function Y(e) {
921
922
  return e.length;
922
923
  }
923
- function Gr(e) {
924
+ function Zr(e) {
924
925
  return e.length;
925
926
  }
926
927
  function Ue(e, t) {
@@ -929,31 +930,31 @@ function Ue(e, t) {
929
930
  function Ni(e, t) {
930
931
  return e.map(t).join("");
931
932
  }
932
- function Gn(e, t) {
933
+ function Zn(e, t) {
933
934
  return e.filter(function(n) {
934
935
  return !J(n, t);
935
936
  });
936
937
  }
937
- var wt = 1, ke = 1, Vr = 0, W = 0, A = 0, Ae = "";
938
- function St(e, t, n, r, o, i, a, s) {
939
- return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: ke, length: a, return: "", siblings: s };
938
+ var wt = 1, Ne = 1, Yr = 0, W = 0, A = 0, Ae = "";
939
+ function bt(e, t, n, r, o, i, a, s) {
940
+ return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Ne, length: a, return: "", siblings: s };
940
941
  }
941
942
  function ie(e, t) {
942
- return jt(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
943
+ return jt(bt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
943
944
  }
944
- function Se(e) {
945
+ function be(e) {
945
946
  for (; e.root; )
946
947
  e = ie(e.root, { children: [e] });
947
948
  Ue(e, e.siblings);
948
949
  }
949
- function ki() {
950
+ function xi() {
950
951
  return A;
951
952
  }
952
953
  function Ti() {
953
- return A = W > 0 ? R(Ae, --W) : 0, ke--, A === 10 && (ke = 1, wt--), A;
954
+ return A = W > 0 ? R(Ae, --W) : 0, Ne--, A === 10 && (Ne = 1, wt--), A;
954
955
  }
955
- function G() {
956
- return A = W < Vr ? R(Ae, W++) : 0, ke++, A === 10 && (ke = 1, wt++), A;
956
+ function V() {
957
+ return A = W < Yr ? R(Ae, W++) : 0, Ne++, A === 10 && (Ne = 1, wt++), A;
957
958
  }
958
959
  function pe() {
959
960
  return R(Ae, W);
@@ -961,8 +962,8 @@ function pe() {
961
962
  function lt() {
962
963
  return W;
963
964
  }
964
- function bt(e, t) {
965
- return Ne(Ae, e, t);
965
+ function St(e, t) {
966
+ return ke(Ae, e, t);
966
967
  }
967
968
  function Gt(e) {
968
969
  switch (e) {
@@ -1002,27 +1003,27 @@ function Gt(e) {
1002
1003
  }
1003
1004
  return 0;
1004
1005
  }
1005
- function xi(e) {
1006
- return wt = ke = 1, Vr = Z(Ae = e), W = 0, [];
1007
- }
1008
1006
  function Oi(e) {
1007
+ return wt = Ne = 1, Yr = Y(Ae = e), W = 0, [];
1008
+ }
1009
+ function Ii(e) {
1009
1010
  return Ae = "", e;
1010
1011
  }
1011
1012
  function Pt(e) {
1012
- return jr(bt(W - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1013
+ return Vr(St(W - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1013
1014
  }
1014
- function Ii(e) {
1015
+ function Ai(e) {
1015
1016
  for (; (A = pe()) && A < 33; )
1016
- G();
1017
+ V();
1017
1018
  return Gt(e) > 2 || Gt(A) > 3 ? "" : " ";
1018
1019
  }
1019
- function Ai(e, t) {
1020
- for (; --t && G() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1020
+ function Ri(e, t) {
1021
+ for (; --t && V() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1021
1022
  ;
1022
- return bt(e, lt() + (t < 6 && pe() == 32 && G() == 32));
1023
+ return St(e, lt() + (t < 6 && pe() == 32 && V() == 32));
1023
1024
  }
1024
1025
  function Vt(e) {
1025
- for (; G(); )
1026
+ for (; V(); )
1026
1027
  switch (A) {
1027
1028
  // ] ) " '
1028
1029
  case e:
@@ -1038,32 +1039,32 @@ function Vt(e) {
1038
1039
  break;
1039
1040
  // \
1040
1041
  case 92:
1041
- G();
1042
+ V();
1042
1043
  break;
1043
1044
  }
1044
1045
  return W;
1045
1046
  }
1046
- function Ri(e, t) {
1047
- for (; G() && e + A !== 57; )
1047
+ function Pi(e, t) {
1048
+ for (; V() && e + A !== 57; )
1048
1049
  if (e + A === 84 && pe() === 47)
1049
1050
  break;
1050
- return "/*" + bt(t, W - 1) + "*" + pn(e === 47 ? e : G());
1051
+ return "/*" + St(t, W - 1) + "*" + gn(e === 47 ? e : V());
1051
1052
  }
1052
- function Pi(e) {
1053
+ function Li(e) {
1053
1054
  for (; !Gt(pe()); )
1054
- G();
1055
- return bt(e, W);
1055
+ V();
1056
+ return St(e, W);
1056
1057
  }
1057
- function Li(e) {
1058
- return Oi(ut("", null, null, null, [""], e = xi(e), 0, [0], e));
1058
+ function Mi(e) {
1059
+ return Ii(ut("", null, null, null, [""], e = Oi(e), 0, [0], e));
1059
1060
  }
1060
1061
  function ut(e, t, n, r, o, i, a, s, l) {
1061
- for (var u = 0, d = 0, c = a, _ = 0, f = 0, p = 0, y = 1, v = 1, m = 1, g = 0, N = "", E = o, T = i, b = r, C = N; v; )
1062
- switch (p = g, g = G()) {
1062
+ for (var u = 0, _ = 0, c = a, h = 0, f = 0, p = 0, y = 1, v = 1, m = 1, g = 0, k = "", E = o, x = i, S = r, C = k; v; )
1063
+ switch (p = g, g = V()) {
1063
1064
  // (
1064
1065
  case 40:
1065
1066
  if (p != 108 && R(C, c - 1) == 58) {
1066
- ct(C += S(Pt(g), "&", "&\f"), "&\f", Wr(u ? s[u - 1] : 0)) != -1 && (m = -1);
1067
+ ct(C += b(Pt(g), "&", "&\f"), "&\f", Gr(u ? s[u - 1] : 0)) != -1 && (m = -1);
1067
1068
  break;
1068
1069
  }
1069
1070
  // " ' [
@@ -1077,18 +1078,18 @@ function ut(e, t, n, r, o, i, a, s, l) {
1077
1078
  case 10:
1078
1079
  case 13:
1079
1080
  case 32:
1080
- C += Ii(p);
1081
+ C += Ai(p);
1081
1082
  break;
1082
1083
  // \
1083
1084
  case 92:
1084
- C += Ai(lt() - 1, 7);
1085
+ C += Ri(lt() - 1, 7);
1085
1086
  continue;
1086
1087
  // /
1087
1088
  case 47:
1088
1089
  switch (pe()) {
1089
1090
  case 42:
1090
1091
  case 47:
1091
- Ue(Di(Ri(G(), lt()), t, n, l), l);
1092
+ Ue(Di(Pi(V(), lt()), t, n, l), l);
1092
1093
  break;
1093
1094
  default:
1094
1095
  C += "/";
@@ -1096,7 +1097,7 @@ function ut(e, t, n, r, o, i, a, s, l) {
1096
1097
  break;
1097
1098
  // {
1098
1099
  case 123 * y:
1099
- s[u++] = Z(C) * m;
1100
+ s[u++] = Y(C) * m;
1100
1101
  // } ; \0
1101
1102
  case 125 * y:
1102
1103
  case 59:
@@ -1107,35 +1108,35 @@ function ut(e, t, n, r, o, i, a, s, l) {
1107
1108
  case 125:
1108
1109
  v = 0;
1109
1110
  // ;
1110
- case 59 + d:
1111
- m == -1 && (C = S(C, /\f/g, "")), f > 0 && Z(C) - c && Ue(f > 32 ? Zn(C + ";", r, n, c - 1, l) : Zn(S(C, " ", "") + ";", r, n, c - 2, l), l);
1111
+ case 59 + _:
1112
+ m == -1 && (C = b(C, /\f/g, "")), f > 0 && Y(C) - c && Ue(f > 32 ? qn(C + ";", r, n, c - 1, l) : qn(b(C, " ", "") + ";", r, n, c - 2, l), l);
1112
1113
  break;
1113
1114
  // @ ;
1114
1115
  case 59:
1115
1116
  C += ";";
1116
1117
  // { rule/at-rule
1117
1118
  default:
1118
- if (Ue(b = Vn(C, t, n, u, d, o, s, N, E = [], T = [], c, i), i), g === 123)
1119
- if (d === 0)
1120
- ut(C, t, b, b, E, i, c, s, T);
1119
+ if (Ue(S = Yn(C, t, n, u, _, o, s, k, E = [], x = [], c, i), i), g === 123)
1120
+ if (_ === 0)
1121
+ ut(C, t, S, S, E, i, c, s, x);
1121
1122
  else
1122
- switch (_ === 99 && R(C, 3) === 110 ? 100 : _) {
1123
+ switch (h === 99 && R(C, 3) === 110 ? 100 : h) {
1123
1124
  // d l m s
1124
1125
  case 100:
1125
1126
  case 108:
1126
1127
  case 109:
1127
1128
  case 115:
1128
- ut(e, b, b, r && Ue(Vn(e, b, b, 0, 0, o, s, N, o, E = [], c, T), T), o, T, c, s, r ? E : T);
1129
+ ut(e, S, S, r && Ue(Yn(e, S, S, 0, 0, o, s, k, o, E = [], c, x), x), o, x, c, s, r ? E : x);
1129
1130
  break;
1130
1131
  default:
1131
- ut(C, b, b, b, [""], T, 0, s, T);
1132
+ ut(C, S, S, S, [""], x, 0, s, x);
1132
1133
  }
1133
1134
  }
1134
- u = d = f = 0, y = m = 1, N = C = "", c = a;
1135
+ u = _ = f = 0, y = m = 1, k = C = "", c = a;
1135
1136
  break;
1136
1137
  // :
1137
1138
  case 58:
1138
- c = 1 + Z(C), f = p;
1139
+ c = 1 + Y(C), f = p;
1139
1140
  default:
1140
1141
  if (y < 1) {
1141
1142
  if (g == 123)
@@ -1143,43 +1144,43 @@ function ut(e, t, n, r, o, i, a, s, l) {
1143
1144
  else if (g == 125 && y++ == 0 && Ti() == 125)
1144
1145
  continue;
1145
1146
  }
1146
- switch (C += pn(g), g * y) {
1147
+ switch (C += gn(g), g * y) {
1147
1148
  // &
1148
1149
  case 38:
1149
- m = d > 0 ? 1 : (C += "\f", -1);
1150
+ m = _ > 0 ? 1 : (C += "\f", -1);
1150
1151
  break;
1151
1152
  // ,
1152
1153
  case 44:
1153
- s[u++] = (Z(C) - 1) * m, m = 1;
1154
+ s[u++] = (Y(C) - 1) * m, m = 1;
1154
1155
  break;
1155
1156
  // @
1156
1157
  case 64:
1157
- pe() === 45 && (C += Pt(G())), _ = pe(), d = c = Z(N = C += Pi(lt())), g++;
1158
+ pe() === 45 && (C += Pt(V())), h = pe(), _ = c = Y(k = C += Li(lt())), g++;
1158
1159
  break;
1159
1160
  // -
1160
1161
  case 45:
1161
- p === 45 && Z(C) == 2 && (y = 0);
1162
+ p === 45 && Y(C) == 2 && (y = 0);
1162
1163
  }
1163
1164
  }
1164
1165
  return i;
1165
1166
  }
1166
- function Vn(e, t, n, r, o, i, a, s, l, u, d, c) {
1167
- for (var _ = o - 1, f = o === 0 ? i : [""], p = Gr(f), y = 0, v = 0, m = 0; y < r; ++y)
1168
- for (var g = 0, N = Ne(e, _ + 1, _ = Wr(v = a[y])), E = e; g < p; ++g)
1169
- (E = jr(v > 0 ? f[g] + " " + N : S(N, /&\f/g, f[g]))) && (l[m++] = E);
1170
- return St(e, t, n, o === 0 ? Ct : s, l, u, d, c);
1167
+ function Yn(e, t, n, r, o, i, a, s, l, u, _, c) {
1168
+ for (var h = o - 1, f = o === 0 ? i : [""], p = Zr(f), y = 0, v = 0, m = 0; y < r; ++y)
1169
+ for (var g = 0, k = ke(e, h + 1, h = Gr(v = a[y])), E = e; g < p; ++g)
1170
+ (E = Vr(v > 0 ? f[g] + " " + k : b(k, /&\f/g, f[g]))) && (l[m++] = E);
1171
+ return bt(e, t, n, o === 0 ? Ct : s, l, u, _, c);
1171
1172
  }
1172
1173
  function Di(e, t, n, r) {
1173
- return St(e, t, n, Br, pn(ki()), Ne(e, 2, -2), 0, r);
1174
+ return bt(e, t, n, Wr, gn(xi()), ke(e, 2, -2), 0, r);
1174
1175
  }
1175
- function Zn(e, t, n, r, o) {
1176
- return St(e, t, n, hn, Ne(e, 0, r), Ne(e, r + 1, -1), r, o);
1176
+ function qn(e, t, n, r, o) {
1177
+ return bt(e, t, n, mn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
1177
1178
  }
1178
- function Zr(e, t, n) {
1179
- switch ($i(e, t)) {
1179
+ function qr(e, t, n) {
1180
+ switch (ki(e, t)) {
1180
1181
  // color-adjust
1181
1182
  case 5103:
1182
- return k + "print-" + e + e;
1183
+ return N + "print-" + e + e;
1183
1184
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1184
1185
  case 5737:
1185
1186
  case 4201:
@@ -1209,7 +1210,7 @@ function Zr(e, t, n) {
1209
1210
  case 5365:
1210
1211
  case 5621:
1211
1212
  case 3829:
1212
- return k + e + e;
1213
+ return N + e + e;
1213
1214
  // tab-size
1214
1215
  case 4789:
1215
1216
  return We + e + e;
@@ -1219,85 +1220,85 @@ function Zr(e, t, n) {
1219
1220
  case 4810:
1220
1221
  case 6968:
1221
1222
  case 2756:
1222
- return k + e + We + e + x + e + e;
1223
+ return N + e + We + e + T + e + e;
1223
1224
  // writing-mode
1224
1225
  case 5936:
1225
1226
  switch (R(e, t + 11)) {
1226
1227
  // vertical-l(r)
1227
1228
  case 114:
1228
- return k + e + x + S(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1229
+ return N + e + T + b(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1229
1230
  // vertical-r(l)
1230
1231
  case 108:
1231
- return k + e + x + S(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1232
+ return N + e + T + b(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1232
1233
  // horizontal(-)tb
1233
1234
  case 45:
1234
- return k + e + x + S(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1235
+ return N + e + T + b(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1235
1236
  }
1236
1237
  // flex, flex-direction, scroll-snap-type, writing-mode
1237
1238
  case 6828:
1238
1239
  case 4268:
1239
1240
  case 2903:
1240
- return k + e + x + e + e;
1241
+ return N + e + T + e + e;
1241
1242
  // order
1242
1243
  case 6165:
1243
- return k + e + x + "flex-" + e + e;
1244
+ return N + e + T + "flex-" + e + e;
1244
1245
  // align-items
1245
1246
  case 5187:
1246
- return k + e + S(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + x + "flex-$1$2") + e;
1247
+ return N + e + b(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + T + "flex-$1$2") + e;
1247
1248
  // align-self
1248
1249
  case 5443:
1249
- return k + e + x + "flex-item-" + S(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : x + "grid-row-" + S(e, /flex-|-self/g, "")) + e;
1250
+ return N + e + T + "flex-item-" + b(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : T + "grid-row-" + b(e, /flex-|-self/g, "")) + e;
1250
1251
  // align-content
1251
1252
  case 4675:
1252
- return k + e + x + "flex-line-pack" + S(e, /align-content|flex-|-self/g, "") + e;
1253
+ return N + e + T + "flex-line-pack" + b(e, /align-content|flex-|-self/g, "") + e;
1253
1254
  // flex-shrink
1254
1255
  case 5548:
1255
- return k + e + x + S(e, "shrink", "negative") + e;
1256
+ return N + e + T + b(e, "shrink", "negative") + e;
1256
1257
  // flex-basis
1257
1258
  case 5292:
1258
- return k + e + x + S(e, "basis", "preferred-size") + e;
1259
+ return N + e + T + b(e, "basis", "preferred-size") + e;
1259
1260
  // flex-grow
1260
1261
  case 6060:
1261
- return k + "box-" + S(e, "-grow", "") + k + e + x + S(e, "grow", "positive") + e;
1262
+ return N + "box-" + b(e, "-grow", "") + N + e + T + b(e, "grow", "positive") + e;
1262
1263
  // transition
1263
1264
  case 4554:
1264
- return k + S(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
1265
+ return N + b(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
1265
1266
  // cursor
1266
1267
  case 6187:
1267
- return S(S(S(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
1268
+ return b(b(b(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
1268
1269
  // background, background-image
1269
1270
  case 5495:
1270
1271
  case 3959:
1271
- return S(e, /(image-set\([^]*)/, k + "$1$`$1");
1272
+ return b(e, /(image-set\([^]*)/, N + "$1$`$1");
1272
1273
  // justify-content
1273
1274
  case 4968:
1274
- return S(S(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + x + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
1275
+ return b(b(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
1275
1276
  // justify-self
1276
1277
  case 4200:
1277
- if (!J(e, /flex-|baseline/)) return x + "grid-column-align" + Ne(e, t) + e;
1278
+ if (!J(e, /flex-|baseline/)) return T + "grid-column-align" + ke(e, t) + e;
1278
1279
  break;
1279
1280
  // grid-template-(columns|rows)
1280
1281
  case 2592:
1281
1282
  case 3360:
1282
- return x + S(e, "template-", "") + e;
1283
+ return T + b(e, "template-", "") + e;
1283
1284
  // grid-(row|column)-start
1284
1285
  case 4384:
1285
1286
  case 3616:
1286
1287
  return n && n.some(function(r, o) {
1287
1288
  return t = o, J(r.props, /grid-\w+-end/);
1288
- }) ? ~ct(e + (n = n[t].value), "span", 0) ? e : x + S(e, "-start", "") + e + x + "grid-row-span:" + (~ct(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : x + S(e, "-start", "") + e;
1289
+ }) ? ~ct(e + (n = n[t].value), "span", 0) ? e : T + b(e, "-start", "") + e + T + "grid-row-span:" + (~ct(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : T + b(e, "-start", "") + e;
1289
1290
  // grid-(row|column)-end
1290
1291
  case 4896:
1291
1292
  case 4128:
1292
1293
  return n && n.some(function(r) {
1293
1294
  return J(r.props, /grid-\w+-start/);
1294
- }) ? e : x + S(S(e, "-end", "-span"), "span ", "") + e;
1295
+ }) ? e : T + b(b(e, "-end", "-span"), "span ", "") + e;
1295
1296
  // (margin|padding)-inline-(start|end)
1296
1297
  case 4095:
1297
1298
  case 3583:
1298
1299
  case 4068:
1299
1300
  case 2532:
1300
- return S(e, /(.+)-inline(.+)/, k + "$1$2") + e;
1301
+ return b(e, /(.+)-inline(.+)/, N + "$1$2") + e;
1301
1302
  // (min|max)?(width|height|inline-size|block-size)
1302
1303
  case 8116:
1303
1304
  case 7059:
@@ -1311,7 +1312,7 @@ function Zr(e, t, n) {
1311
1312
  case 5789:
1312
1313
  case 5021:
1313
1314
  case 4765:
1314
- if (Z(e) - 1 - t > 6)
1315
+ if (Y(e) - 1 - t > 6)
1315
1316
  switch (R(e, t + 1)) {
1316
1317
  // (m)ax-content, (m)in-content
1317
1318
  case 109:
@@ -1319,32 +1320,32 @@ function Zr(e, t, n) {
1319
1320
  break;
1320
1321
  // (f)ill-available, (f)it-content
1321
1322
  case 102:
1322
- return S(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + We + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1323
+ return b(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + We + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1323
1324
  // (s)tretch
1324
1325
  case 115:
1325
- return ~ct(e, "stretch", 0) ? Zr(S(e, "stretch", "fill-available"), t, n) + e : e;
1326
+ return ~ct(e, "stretch", 0) ? qr(b(e, "stretch", "fill-available"), t, n) + e : e;
1326
1327
  }
1327
1328
  break;
1328
1329
  // grid-(column|row)
1329
1330
  case 5152:
1330
1331
  case 5920:
1331
- return S(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, a, s, l, u) {
1332
- return x + o + ":" + i + u + (a ? x + o + "-span:" + (s ? l : +l - +i) + u : "") + e;
1332
+ return b(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, a, s, l, u) {
1333
+ return T + o + ":" + i + u + (a ? T + o + "-span:" + (s ? l : +l - +i) + u : "") + e;
1333
1334
  });
1334
1335
  // position: sticky
1335
1336
  case 4949:
1336
1337
  if (R(e, t + 6) === 121)
1337
- return S(e, ":", ":" + k) + e;
1338
+ return b(e, ":", ":" + N) + e;
1338
1339
  break;
1339
1340
  // display: (flex|inline-flex|grid|inline-grid)
1340
1341
  case 6444:
1341
1342
  switch (R(e, R(e, 14) === 45 ? 18 : 11)) {
1342
1343
  // (inline-)?fle(x)
1343
1344
  case 120:
1344
- return S(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + x + "$2box$3") + e;
1345
+ return b(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + T + "$2box$3") + e;
1345
1346
  // (inline-)?gri(d)
1346
1347
  case 100:
1347
- return S(e, ":", ":" + x) + e;
1348
+ return b(e, ":", ":" + T) + e;
1348
1349
  }
1349
1350
  break;
1350
1351
  // scroll-margin, scroll-margin-(top|right|bottom|left)
@@ -1353,7 +1354,7 @@ function Zr(e, t, n) {
1353
1354
  case 2135:
1354
1355
  case 3927:
1355
1356
  case 2391:
1356
- return S(e, "scroll-", "scroll-snap-") + e;
1357
+ return b(e, "scroll-", "scroll-snap-") + e;
1357
1358
  }
1358
1359
  return e;
1359
1360
  }
@@ -1362,43 +1363,43 @@ function pt(e, t) {
1362
1363
  n += t(e[r], r, e, t) || "";
1363
1364
  return n;
1364
1365
  }
1365
- function Mi(e, t, n, r) {
1366
+ function Hi(e, t, n, r) {
1366
1367
  switch (e.type) {
1367
- case Ei:
1368
+ case $i:
1368
1369
  if (e.children.length) break;
1369
- case bi:
1370
- case hn:
1370
+ case Ei:
1371
+ case mn:
1371
1372
  return e.return = e.return || e.value;
1372
- case Br:
1373
+ case Wr:
1373
1374
  return "";
1374
- case Fr:
1375
+ case jr:
1375
1376
  return e.return = e.value + "{" + pt(e.children, r) + "}";
1376
1377
  case Ct:
1377
- if (!Z(e.value = e.props.join(","))) return "";
1378
+ if (!Y(e.value = e.props.join(","))) return "";
1378
1379
  }
1379
- return Z(n = pt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1380
+ return Y(n = pt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1380
1381
  }
1381
- function Hi(e) {
1382
- var t = Gr(e);
1382
+ function Ui(e) {
1383
+ var t = Zr(e);
1383
1384
  return function(n, r, o, i) {
1384
1385
  for (var a = "", s = 0; s < t; s++)
1385
1386
  a += e[s](n, r, o, i) || "";
1386
1387
  return a;
1387
1388
  };
1388
1389
  }
1389
- function Ui(e) {
1390
+ function zi(e) {
1390
1391
  return function(t) {
1391
1392
  t.root || (t = t.return) && e(t);
1392
1393
  };
1393
1394
  }
1394
- function zi(e, t, n, r) {
1395
+ function Bi(e, t, n, r) {
1395
1396
  if (e.length > -1 && !e.return)
1396
1397
  switch (e.type) {
1397
- case hn:
1398
- e.return = Zr(e.value, e.length, n);
1398
+ case mn:
1399
+ e.return = qr(e.value, e.length, n);
1399
1400
  return;
1400
- case Fr:
1401
- return pt([ie(e, { value: S(e.value, "@", "@" + k) })], r);
1401
+ case jr:
1402
+ return pt([ie(e, { value: b(e.value, "@", "@" + N) })], r);
1402
1403
  case Ct:
1403
1404
  if (e.length)
1404
1405
  return Ni(n = e.props, function(o) {
@@ -1406,18 +1407,18 @@ function zi(e, t, n, r) {
1406
1407
  // :read-(only|write)
1407
1408
  case ":read-only":
1408
1409
  case ":read-write":
1409
- Se(ie(e, { props: [S(o, /:(read-\w+)/, ":" + We + "$1")] })), Se(ie(e, { props: [o] })), jt(e, { props: Gn(n, r) });
1410
+ be(ie(e, { props: [b(o, /:(read-\w+)/, ":" + We + "$1")] })), be(ie(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1410
1411
  break;
1411
1412
  // :placeholder
1412
1413
  case "::placeholder":
1413
- Se(ie(e, { props: [S(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ie(e, { props: [S(o, /:(plac\w+)/, ":" + We + "$1")] })), Se(ie(e, { props: [S(o, /:(plac\w+)/, x + "input-$1")] })), Se(ie(e, { props: [o] })), jt(e, { props: Gn(n, r) });
1414
+ be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + N + "input-$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + We + "$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, T + "input-$1")] })), be(ie(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1414
1415
  break;
1415
1416
  }
1416
1417
  return "";
1417
1418
  });
1418
1419
  }
1419
1420
  }
1420
- var Bi = {
1421
+ var Fi = {
1421
1422
  animationIterationCount: 1,
1422
1423
  aspectRatio: 1,
1423
1424
  borderImageOutset: 1,
@@ -1465,8 +1466,8 @@ var Bi = {
1465
1466
  strokeMiterlimit: 1,
1466
1467
  strokeOpacity: 1,
1467
1468
  strokeWidth: 1
1468
- }, $ = {}, ye = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Yr = "active", qr = "data-styled-version", Et = "6.1.18", mn = `/*!sc*/
1469
- `, mt = typeof window < "u" && typeof document < "u", Fi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Yn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Wi = function(e, t) {
1469
+ }, $ = {}, ye = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Xr = "active", Kr = "data-styled-version", Et = "6.1.18", yn = `/*!sc*/
1470
+ `, mt = typeof window < "u" && typeof document < "u", Wi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Xn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), ji = function(e, t) {
1470
1471
  if ($.NODE_ENV !== "production") {
1471
1472
  var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1472
1473
  `) + `You may see this warning because you've called styled inside another component.
@@ -1477,65 +1478,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1477
1478
  var i = !0;
1478
1479
  console.error = function(a) {
1479
1480
  for (var s = [], l = 1; l < arguments.length; l++) s[l - 1] = arguments[l];
1480
- Yn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, ge([a], s, !1));
1481
+ Xn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, ge([a], s, !1));
1481
1482
  }, qe(), i && !nt.has(r) && (console.warn(r), nt.add(r));
1482
1483
  } catch (a) {
1483
- Yn.test(a.message) && nt.delete(r);
1484
+ Xn.test(a.message) && nt.delete(r);
1484
1485
  } finally {
1485
1486
  console.error = o;
1486
1487
  }
1487
1488
  }
1488
- }, $t = Object.freeze([]), Te = Object.freeze({});
1489
- function ji(e, t, n) {
1490
- return n === void 0 && (n = Te), e.theme !== n.theme && e.theme || t || n.theme;
1489
+ }, $t = Object.freeze([]), xe = Object.freeze({});
1490
+ function Gi(e, t, n) {
1491
+ return n === void 0 && (n = xe), e.theme !== n.theme && e.theme || t || n.theme;
1491
1492
  }
1492
- var Zt = /* @__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"]), Gi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Vi = /(^-|-$)/g;
1493
- function qn(e) {
1494
- return e.replace(Gi, "-").replace(Vi, "");
1493
+ var Zt = /* @__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"]), Vi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Zi = /(^-|-$)/g;
1494
+ function Kn(e) {
1495
+ return e.replace(Vi, "-").replace(Zi, "");
1495
1496
  }
1496
- var Zi = /(a)(d)/gi, rt = 52, Xn = function(e) {
1497
+ var Yi = /(a)(d)/gi, rt = 52, Jn = function(e) {
1497
1498
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1498
1499
  };
1499
1500
  function Yt(e) {
1500
1501
  var t, n = "";
1501
- for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Xn(t % rt) + n;
1502
- return (Xn(t % rt) + n).replace(Zi, "$1-$2");
1502
+ for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Jn(t % rt) + n;
1503
+ return (Jn(t % rt) + n).replace(Yi, "$1-$2");
1503
1504
  }
1504
- var Lt, Xr = 5381, fe = function(e, t) {
1505
+ var Lt, Jr = 5381, fe = function(e, t) {
1505
1506
  for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1506
1507
  return e;
1507
- }, Kr = function(e) {
1508
- return fe(Xr, e);
1508
+ }, Qr = function(e) {
1509
+ return fe(Jr, e);
1509
1510
  };
1510
- function Jr(e) {
1511
- return Yt(Kr(e) >>> 0);
1511
+ function eo(e) {
1512
+ return Yt(Qr(e) >>> 0);
1512
1513
  }
1513
- function Qr(e) {
1514
+ function to(e) {
1514
1515
  return $.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1515
1516
  }
1516
- function Dt(e) {
1517
+ function Mt(e) {
1517
1518
  return typeof e == "string" && ($.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1518
1519
  }
1519
- var eo = typeof Symbol == "function" && Symbol.for, to = eo ? Symbol.for("react.memo") : 60115, Yi = eo ? Symbol.for("react.forward_ref") : 60112, qi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Xi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, no = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ki = ((Lt = {})[Yi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[to] = no, Lt);
1520
- function Kn(e) {
1521
- return ("type" in (t = e) && t.type.$$typeof) === to ? no : "$$typeof" in e ? Ki[e.$$typeof] : qi;
1520
+ var no = typeof Symbol == "function" && Symbol.for, ro = no ? Symbol.for("react.memo") : 60115, qi = no ? Symbol.for("react.forward_ref") : 60112, Xi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ki = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, oo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ji = ((Lt = {})[qi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[ro] = oo, Lt);
1521
+ function Qn(e) {
1522
+ return ("type" in (t = e) && t.type.$$typeof) === ro ? oo : "$$typeof" in e ? Ji[e.$$typeof] : Xi;
1522
1523
  var t;
1523
1524
  }
1524
- var Ji = Object.defineProperty, Qi = Object.getOwnPropertyNames, Jn = Object.getOwnPropertySymbols, ea = Object.getOwnPropertyDescriptor, ta = Object.getPrototypeOf, Qn = Object.prototype;
1525
- function ro(e, t, n) {
1525
+ var Qi = Object.defineProperty, ea = Object.getOwnPropertyNames, er = Object.getOwnPropertySymbols, ta = Object.getOwnPropertyDescriptor, na = Object.getPrototypeOf, tr = Object.prototype;
1526
+ function io(e, t, n) {
1526
1527
  if (typeof t != "string") {
1527
- if (Qn) {
1528
- var r = ta(t);
1529
- r && r !== Qn && ro(e, r, n);
1528
+ if (tr) {
1529
+ var r = na(t);
1530
+ r && r !== tr && io(e, r, n);
1530
1531
  }
1531
- var o = Qi(t);
1532
- Jn && (o = o.concat(Jn(t)));
1533
- for (var i = Kn(e), a = Kn(t), s = 0; s < o.length; ++s) {
1532
+ var o = ea(t);
1533
+ er && (o = o.concat(er(t)));
1534
+ for (var i = Qn(e), a = Qn(t), s = 0; s < o.length; ++s) {
1534
1535
  var l = o[s];
1535
- if (!(l in Xi || n && n[l] || a && l in a || i && l in i)) {
1536
- var u = ea(t, l);
1536
+ if (!(l in Ki || n && n[l] || a && l in a || i && l in i)) {
1537
+ var u = ta(t, l);
1537
1538
  try {
1538
- Ji(e, l, u);
1539
+ Qi(e, l, u);
1539
1540
  } catch {
1540
1541
  }
1541
1542
  }
@@ -1546,7 +1547,7 @@ function ro(e, t, n) {
1546
1547
  function ve(e) {
1547
1548
  return typeof e == "function";
1548
1549
  }
1549
- function gn(e) {
1550
+ function vn(e) {
1550
1551
  return typeof e == "object" && "styledComponentId" in e;
1551
1552
  }
1552
1553
  function de(e, t) {
@@ -1557,19 +1558,19 @@ function qt(e, t) {
1557
1558
  for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1558
1559
  return n;
1559
1560
  }
1560
- function xe(e) {
1561
+ function Te(e) {
1561
1562
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1562
1563
  }
1563
1564
  function Xt(e, t, n) {
1564
- if (n === void 0 && (n = !1), !n && !xe(e) && !Array.isArray(e)) return t;
1565
+ if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
1565
1566
  if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Xt(e[r], t[r]);
1566
- else if (xe(t)) for (var r in t) e[r] = Xt(e[r], t[r]);
1567
+ else if (Te(t)) for (var r in t) e[r] = Xt(e[r], t[r]);
1567
1568
  return e;
1568
1569
  }
1569
- function yn(e, t) {
1570
+ function Cn(e, t) {
1570
1571
  Object.defineProperty(e, "toString", { value: t });
1571
1572
  }
1572
- var na = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1573
+ var ra = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1573
1574
 
1574
1575
  `, 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.
1575
1576
 
@@ -1611,7 +1612,7 @@ as for instance in your render method then you may be running into this limitati
1611
1612
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1612
1613
  Has styled-components' style tag been unmounted or altered by another script?
1613
1614
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1614
- function ra() {
1615
+ function oa() {
1615
1616
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1616
1617
  for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
1617
1618
  return r.forEach(function(a) {
@@ -1620,9 +1621,9 @@ function ra() {
1620
1621
  }
1621
1622
  function X(e) {
1622
1623
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1623
- return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ra.apply(void 0, ge([na[e]], t, !1)).trim());
1624
+ return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(oa.apply(void 0, ge([ra[e]], t, !1)).trim());
1624
1625
  }
1625
- var oa = function() {
1626
+ var ia = function() {
1626
1627
  function e(t) {
1627
1628
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1628
1629
  }
@@ -1645,50 +1646,50 @@ var oa = function() {
1645
1646
  }, e.prototype.getGroup = function(t) {
1646
1647
  var n = "";
1647
1648
  if (t >= this.length || this.groupSizes[t] === 0) return n;
1648
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(mn);
1649
+ for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(yn);
1649
1650
  return n;
1650
1651
  }, e;
1651
- }(), ia = 1 << 30, ft = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
1652
+ }(), aa = 1 << 30, ft = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
1652
1653
  if (ft.has(e)) return ft.get(e);
1653
1654
  for (; gt.has(dt); ) dt++;
1654
1655
  var t = dt++;
1655
- if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > ia)) throw X(16, "".concat(t));
1656
+ if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > aa)) throw X(16, "".concat(t));
1656
1657
  return ft.set(e, t), gt.set(t, e), t;
1657
- }, aa = function(e, t) {
1658
+ }, sa = function(e, t) {
1658
1659
  dt = t + 1, ft.set(e, t), gt.set(t, e);
1659
- }, sa = "style[".concat(ye, "][").concat(qr, '="').concat(Et, '"]'), ca = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), la = function(e, t, n) {
1660
+ }, ca = "style[".concat(ye, "][").concat(Kr, '="').concat(Et, '"]'), la = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ua = function(e, t, n) {
1660
1661
  for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
1661
- }, ua = function(e, t) {
1662
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(mn), o = [], i = 0, a = r.length; i < a; i++) {
1662
+ }, fa = function(e, t) {
1663
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(yn), o = [], i = 0, a = r.length; i < a; i++) {
1663
1664
  var s = r[i].trim();
1664
1665
  if (s) {
1665
- var l = s.match(ca);
1666
+ var l = s.match(la);
1666
1667
  if (l) {
1667
- var u = 0 | parseInt(l[1], 10), d = l[2];
1668
- u !== 0 && (aa(d, u), la(e, d, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
1668
+ var u = 0 | parseInt(l[1], 10), _ = l[2];
1669
+ u !== 0 && (sa(_, u), ua(e, _, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
1669
1670
  } else o.push(s);
1670
1671
  }
1671
1672
  }
1672
- }, er = function(e) {
1673
- for (var t = document.querySelectorAll(sa), n = 0, r = t.length; n < r; n++) {
1673
+ }, nr = function(e) {
1674
+ for (var t = document.querySelectorAll(ca), n = 0, r = t.length; n < r; n++) {
1674
1675
  var o = t[n];
1675
- o && o.getAttribute(ye) !== Yr && (ua(e, o), o.parentNode && o.parentNode.removeChild(o));
1676
+ o && o.getAttribute(ye) !== Xr && (fa(e, o), o.parentNode && o.parentNode.removeChild(o));
1676
1677
  }
1677
1678
  };
1678
- function fa() {
1679
+ function da() {
1679
1680
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1680
1681
  }
1681
- var oo = function(e) {
1682
+ var ao = function(e) {
1682
1683
  var t = document.head, n = e || t, r = document.createElement("style"), o = function(s) {
1683
1684
  var l = Array.from(s.querySelectorAll("style[".concat(ye, "]")));
1684
1685
  return l[l.length - 1];
1685
1686
  }(n), i = o !== void 0 ? o.nextSibling : null;
1686
- r.setAttribute(ye, Yr), r.setAttribute(qr, Et);
1687
- var a = fa();
1687
+ r.setAttribute(ye, Xr), r.setAttribute(Kr, Et);
1688
+ var a = da();
1688
1689
  return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
1689
- }, da = function() {
1690
+ }, _a = function() {
1690
1691
  function e(t) {
1691
- this.element = oo(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1692
+ this.element = ao(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1692
1693
  if (n.sheet) return n.sheet;
1693
1694
  for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
1694
1695
  var a = r[o];
@@ -1709,9 +1710,9 @@ var oo = function(e) {
1709
1710
  var n = this.sheet.cssRules[t];
1710
1711
  return n && n.cssText ? n.cssText : "";
1711
1712
  }, e;
1712
- }(), _a = function() {
1713
+ }(), ha = function() {
1713
1714
  function e(t) {
1714
- this.element = oo(t), this.nodes = this.element.childNodes, this.length = 0;
1715
+ this.element = ao(t), this.nodes = this.element.childNodes, this.length = 0;
1715
1716
  }
1716
1717
  return e.prototype.insertRule = function(t, n) {
1717
1718
  if (t <= this.length && t >= 0) {
@@ -1724,7 +1725,7 @@ var oo = function(e) {
1724
1725
  }, e.prototype.getRule = function(t) {
1725
1726
  return t < this.length ? this.nodes[t].textContent : "";
1726
1727
  }, e;
1727
- }(), ha = function() {
1728
+ }(), pa = function() {
1728
1729
  function e(t) {
1729
1730
  this.rules = [], this.length = 0;
1730
1731
  }
@@ -1735,24 +1736,24 @@ var oo = function(e) {
1735
1736
  }, e.prototype.getRule = function(t) {
1736
1737
  return t < this.length ? this.rules[t] : "";
1737
1738
  }, e;
1738
- }(), tr = mt, pa = { isServer: !mt, useCSSOMInjection: !Fi }, io = function() {
1739
+ }(), rr = mt, ma = { isServer: !mt, useCSSOMInjection: !Wi }, so = function() {
1739
1740
  function e(t, n, r) {
1740
- t === void 0 && (t = Te), n === void 0 && (n = {});
1741
+ t === void 0 && (t = xe), n === void 0 && (n = {});
1741
1742
  var o = this;
1742
- this.options = P(P({}, pa), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && mt && tr && (tr = !1, er(this)), yn(this, function() {
1743
+ this.options = P(P({}, ma), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && mt && rr && (rr = !1, nr(this)), Cn(this, function() {
1743
1744
  return function(i) {
1744
1745
  for (var a = i.getTag(), s = a.length, l = "", u = function(c) {
1745
- var _ = function(m) {
1746
+ var h = function(m) {
1746
1747
  return gt.get(m);
1747
1748
  }(c);
1748
- if (_ === void 0) return "continue";
1749
- var f = i.names.get(_), p = a.getGroup(c);
1749
+ if (h === void 0) return "continue";
1750
+ var f = i.names.get(h), p = a.getGroup(c);
1750
1751
  if (f === void 0 || !f.size || p.length === 0) return "continue";
1751
- var y = "".concat(ye, ".g").concat(c, '[id="').concat(_, '"]'), v = "";
1752
+ var y = "".concat(ye, ".g").concat(c, '[id="').concat(h, '"]'), v = "";
1752
1753
  f !== void 0 && f.forEach(function(m) {
1753
1754
  m.length > 0 && (v += "".concat(m, ","));
1754
- }), l += "".concat(p).concat(y, '{content:"').concat(v, '"}').concat(mn);
1755
- }, d = 0; d < s; d++) u(d);
1755
+ }), l += "".concat(p).concat(y, '{content:"').concat(v, '"}').concat(yn);
1756
+ }, _ = 0; _ < s; _++) u(_);
1756
1757
  return l;
1757
1758
  }(o);
1758
1759
  });
@@ -1760,7 +1761,7 @@ var oo = function(e) {
1760
1761
  return e.registerId = function(t) {
1761
1762
  return ot(t);
1762
1763
  }, e.prototype.rehydrate = function() {
1763
- !this.server && mt && er(this);
1764
+ !this.server && mt && nr(this);
1764
1765
  }, e.prototype.reconstructWithOptions = function(t, n) {
1765
1766
  return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
1766
1767
  }, e.prototype.allocateGSInstance = function(t) {
@@ -1768,8 +1769,8 @@ var oo = function(e) {
1768
1769
  }, e.prototype.getTag = function() {
1769
1770
  return this.tag || (this.tag = (t = function(n) {
1770
1771
  var r = n.useCSSOMInjection, o = n.target;
1771
- return n.isServer ? new ha(o) : r ? new da(o) : new _a(o);
1772
- }(this.options), new oa(t)));
1772
+ return n.isServer ? new pa(o) : r ? new _a(o) : new ha(o);
1773
+ }(this.options), new ia(t)));
1773
1774
  var t;
1774
1775
  }, e.prototype.hasNameForId = function(t, n) {
1775
1776
  return this.names.has(t) && this.names.get(t).has(n);
@@ -1788,46 +1789,46 @@ var oo = function(e) {
1788
1789
  }, e.prototype.clearTag = function() {
1789
1790
  this.tag = void 0;
1790
1791
  }, e;
1791
- }(), ma = /&/g, ga = /^\s*\/\/.*$/gm;
1792
- function ao(e, t) {
1792
+ }(), ga = /&/g, ya = /^\s*\/\/.*$/gm;
1793
+ function co(e, t) {
1793
1794
  return e.map(function(n) {
1794
1795
  return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1795
1796
  return "".concat(t, " ").concat(r);
1796
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = ao(n.children, t)), n;
1797
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = co(n.children, t)), n;
1797
1798
  });
1798
1799
  }
1799
- function so(e) {
1800
- var t, n, r, o = e === void 0 ? Te : e, i = o.options, a = i === void 0 ? Te : i, s = o.plugins, l = s === void 0 ? $t : s, u = function(_, f, p) {
1801
- return p.startsWith(n) && p.endsWith(n) && p.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
1802
- }, d = l.slice();
1803
- d.push(function(_) {
1804
- _.type === Ct && _.value.includes("&") && (_.props[0] = _.props[0].replace(ma, n).replace(r, u));
1805
- }), a.prefix && d.push(zi), d.push(Mi);
1806
- var c = function(_, f, p, y) {
1800
+ function lo(e) {
1801
+ var t, n, r, o = e === void 0 ? xe : e, i = o.options, a = i === void 0 ? xe : i, s = o.plugins, l = s === void 0 ? $t : s, u = function(h, f, p) {
1802
+ return p.startsWith(n) && p.endsWith(n) && p.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
1803
+ }, _ = l.slice();
1804
+ _.push(function(h) {
1805
+ h.type === Ct && h.value.includes("&") && (h.props[0] = h.props[0].replace(ga, n).replace(r, u));
1806
+ }), a.prefix && _.push(Bi), _.push(Hi);
1807
+ var c = function(h, f, p, y) {
1807
1808
  f === void 0 && (f = ""), p === void 0 && (p = ""), y === void 0 && (y = "&"), t = y, n = f, r = new RegExp("\\".concat(n, "\\b"), "g");
1808
- var v = _.replace(ga, ""), m = Li(p || f ? "".concat(p, " ").concat(f, " { ").concat(v, " }") : v);
1809
- a.namespace && (m = ao(m, a.namespace));
1809
+ var v = h.replace(ya, ""), m = Mi(p || f ? "".concat(p, " ").concat(f, " { ").concat(v, " }") : v);
1810
+ a.namespace && (m = co(m, a.namespace));
1810
1811
  var g = [];
1811
- return pt(m, Hi(d.concat(Ui(function(N) {
1812
- return g.push(N);
1812
+ return pt(m, Ui(_.concat(zi(function(k) {
1813
+ return g.push(k);
1813
1814
  })))), g;
1814
1815
  };
1815
- return c.hash = l.length ? l.reduce(function(_, f) {
1816
- return f.name || X(15), fe(_, f.name);
1817
- }, Xr).toString() : "", c;
1816
+ return c.hash = l.length ? l.reduce(function(h, f) {
1817
+ return f.name || X(15), fe(h, f.name);
1818
+ }, Jr).toString() : "", c;
1818
1819
  }
1819
- var ya = new io(), Kt = so(), vn = re.createContext({ shouldForwardProp: void 0, styleSheet: ya, stylis: Kt });
1820
- vn.Consumer;
1821
- var va = re.createContext(void 0);
1820
+ var va = new so(), Kt = lo(), wn = re.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: Kt });
1821
+ wn.Consumer;
1822
+ var Ca = re.createContext(void 0);
1822
1823
  function Jt() {
1823
- return Xe(vn);
1824
+ return Xe(wn);
1824
1825
  }
1825
- function Ca(e) {
1826
+ function wa(e) {
1826
1827
  var t = F(e.stylisPlugins), n = t[0], r = t[1], o = Jt().styleSheet, i = te(function() {
1827
1828
  var l = o;
1828
1829
  return e.sheet ? l = e.sheet : e.target && (l = l.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l;
1829
1830
  }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = te(function() {
1830
- return so({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1831
+ return lo({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1831
1832
  }, [e.enableVendorPrefixes, e.namespace, n]);
1832
1833
  ne(function() {
1833
1834
  Si(n, e.stylisPlugins) || r(e.stylisPlugins);
@@ -1835,7 +1836,7 @@ function Ca(e) {
1835
1836
  var s = te(function() {
1836
1837
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
1837
1838
  }, [e.shouldForwardProp, i, a]);
1838
- return re.createElement(vn.Provider, { value: s }, re.createElement(va.Provider, { value: a }, e.children));
1839
+ return re.createElement(wn.Provider, { value: s }, re.createElement(Ca.Provider, { value: a }, e.children));
1839
1840
  }
1840
1841
  var Qt = function() {
1841
1842
  function e(t, n) {
@@ -1844,57 +1845,57 @@ var Qt = function() {
1844
1845
  i === void 0 && (i = Kt);
1845
1846
  var a = r.name + i.hash;
1846
1847
  o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
1847
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, yn(this, function() {
1848
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Cn(this, function() {
1848
1849
  throw X(12, String(r.name));
1849
1850
  });
1850
1851
  }
1851
1852
  return e.prototype.getName = function(t) {
1852
1853
  return t === void 0 && (t = Kt), this.name + t.hash;
1853
1854
  }, e;
1854
- }(), wa = function(e) {
1855
+ }(), ba = function(e) {
1855
1856
  return e >= "A" && e <= "Z";
1856
1857
  };
1857
- function nr(e) {
1858
+ function or(e) {
1858
1859
  for (var t = "", n = 0; n < e.length; n++) {
1859
1860
  var r = e[n];
1860
1861
  if (n === 1 && r === "-" && e[0] === "-") return e;
1861
- wa(r) ? t += "-" + r.toLowerCase() : t += r;
1862
+ ba(r) ? t += "-" + r.toLowerCase() : t += r;
1862
1863
  }
1863
1864
  return t.startsWith("ms-") ? "-" + t : t;
1864
1865
  }
1865
- var co = function(e) {
1866
+ var uo = function(e) {
1866
1867
  return e == null || e === !1 || e === "";
1867
- }, lo = function(e) {
1868
+ }, fo = function(e) {
1868
1869
  var t, n, r = [];
1869
1870
  for (var o in e) {
1870
1871
  var i = e[o];
1871
- e.hasOwnProperty(o) && !co(i) && (Array.isArray(i) && i.isCss || ve(i) ? r.push("".concat(nr(o), ":"), i, ";") : xe(i) ? r.push.apply(r, ge(ge(["".concat(o, " {")], lo(i), !1), ["}"], !1)) : r.push("".concat(nr(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Bi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1872
+ e.hasOwnProperty(o) && !uo(i) && (Array.isArray(i) && i.isCss || ve(i) ? r.push("".concat(or(o), ":"), i, ";") : Te(i) ? r.push.apply(r, ge(ge(["".concat(o, " {")], fo(i), !1), ["}"], !1)) : r.push("".concat(or(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Fi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1872
1873
  }
1873
1874
  return r;
1874
1875
  };
1875
1876
  function me(e, t, n, r) {
1876
- if (co(e)) return [];
1877
- if (gn(e)) return [".".concat(e.styledComponentId)];
1877
+ if (uo(e)) return [];
1878
+ if (vn(e)) return [".".concat(e.styledComponentId)];
1878
1879
  if (ve(e)) {
1879
1880
  if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1880
1881
  var o = e(t);
1881
- return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Qt || xe(o) || o === null || console.error("".concat(Qr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), me(o, t, n, r);
1882
+ return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Qt || Te(o) || o === null || console.error("".concat(to(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), me(o, t, n, r);
1882
1883
  }
1883
1884
  var i;
1884
- return e instanceof Qt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : xe(e) ? lo(e) : Array.isArray(e) ? Array.prototype.concat.apply($t, e.map(function(a) {
1885
+ return e instanceof Qt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? fo(e) : Array.isArray(e) ? Array.prototype.concat.apply($t, e.map(function(a) {
1885
1886
  return me(a, t, n, r);
1886
1887
  })) : [e.toString()];
1887
1888
  }
1888
1889
  function Sa(e) {
1889
1890
  for (var t = 0; t < e.length; t += 1) {
1890
1891
  var n = e[t];
1891
- if (ve(n) && !gn(n)) return !1;
1892
+ if (ve(n) && !vn(n)) return !1;
1892
1893
  }
1893
1894
  return !0;
1894
1895
  }
1895
- var ba = Kr(Et), Ea = function() {
1896
+ var Ea = Qr(Et), $a = function() {
1896
1897
  function e(t, n, r) {
1897
- this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Sa(t), this.componentId = n, this.baseHash = fe(ba, n), this.baseStyle = r, io.registerId(n);
1898
+ this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Sa(t), this.componentId = n, this.baseHash = fe(Ea, n), this.baseStyle = r, so.registerId(n);
1898
1899
  }
1899
1900
  return e.prototype.generateAndInjectStyles = function(t, n, r) {
1900
1901
  var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
@@ -1908,12 +1909,12 @@ var ba = Kr(Et), Ea = function() {
1908
1909
  o = de(o, a), this.staticRulesId = a;
1909
1910
  }
1910
1911
  else {
1911
- for (var l = fe(this.baseHash, r.hash), u = "", d = 0; d < this.rules.length; d++) {
1912
- var c = this.rules[d];
1912
+ for (var l = fe(this.baseHash, r.hash), u = "", _ = 0; _ < this.rules.length; _++) {
1913
+ var c = this.rules[_];
1913
1914
  if (typeof c == "string") u += c, $.NODE_ENV !== "production" && (l = fe(l, c));
1914
1915
  else if (c) {
1915
- var _ = qt(me(c, t, n, r));
1916
- l = fe(l, _ + d), u += _;
1916
+ var h = qt(me(c, t, n, r));
1917
+ l = fe(l, h + _), u += h;
1917
1918
  }
1918
1919
  }
1919
1920
  if (u) {
@@ -1925,12 +1926,12 @@ var ba = Kr(Et), Ea = function() {
1925
1926
  }, e;
1926
1927
  }(), Ve = re.createContext(void 0);
1927
1928
  Ve.Consumer;
1928
- function uo() {
1929
+ function _o() {
1929
1930
  var e = Xe(Ve);
1930
1931
  if (!e) throw X(18);
1931
1932
  return e;
1932
1933
  }
1933
- function $a(e) {
1934
+ function ka(e) {
1934
1935
  var t = re.useContext(Ve), n = te(function() {
1935
1936
  return function(r, o) {
1936
1937
  if (!r) throw X(14);
@@ -1945,62 +1946,62 @@ function $a(e) {
1945
1946
  }, [e.theme, t]);
1946
1947
  return e.children ? re.createElement(Ve.Provider, { value: n }, e.children) : null;
1947
1948
  }
1948
- var Mt = {}, rr = /* @__PURE__ */ new Set();
1949
+ var Dt = {}, ir = /* @__PURE__ */ new Set();
1949
1950
  function Na(e, t, n) {
1950
- var r = gn(e), o = e, i = !Dt(e), a = t.attrs, s = a === void 0 ? $t : a, l = t.componentId, u = l === void 0 ? function(E, T) {
1951
- var b = typeof E != "string" ? "sc" : qn(E);
1952
- Mt[b] = (Mt[b] || 0) + 1;
1953
- var C = "".concat(b, "-").concat(Jr(Et + b + Mt[b]));
1954
- return T ? "".concat(T, "-").concat(C) : C;
1955
- }(t.displayName, t.parentComponentId) : l, d = t.displayName, c = d === void 0 ? function(E) {
1956
- return Dt(E) ? "styled.".concat(E) : "Styled(".concat(Qr(E), ")");
1957
- }(e) : d, _ = t.displayName && t.componentId ? "".concat(qn(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, p = t.shouldForwardProp;
1951
+ var r = vn(e), o = e, i = !Mt(e), a = t.attrs, s = a === void 0 ? $t : a, l = t.componentId, u = l === void 0 ? function(E, x) {
1952
+ var S = typeof E != "string" ? "sc" : Kn(E);
1953
+ Dt[S] = (Dt[S] || 0) + 1;
1954
+ var C = "".concat(S, "-").concat(eo(Et + S + Dt[S]));
1955
+ return x ? "".concat(x, "-").concat(C) : C;
1956
+ }(t.displayName, t.parentComponentId) : l, _ = t.displayName, c = _ === void 0 ? function(E) {
1957
+ return Mt(E) ? "styled.".concat(E) : "Styled(".concat(to(E), ")");
1958
+ }(e) : _, h = t.displayName && t.componentId ? "".concat(Kn(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, p = t.shouldForwardProp;
1958
1959
  if (r && o.shouldForwardProp) {
1959
1960
  var y = o.shouldForwardProp;
1960
1961
  if (t.shouldForwardProp) {
1961
1962
  var v = t.shouldForwardProp;
1962
- p = function(E, T) {
1963
- return y(E, T) && v(E, T);
1963
+ p = function(E, x) {
1964
+ return y(E, x) && v(E, x);
1964
1965
  };
1965
1966
  } else p = y;
1966
1967
  }
1967
- var m = new Ea(n, _, r ? o.componentStyle : void 0);
1968
- function g(E, T) {
1969
- return function(b, C, D) {
1970
- var H = b.attrs, Re = b.componentStyle, U = b.defaultProps, ce = b.foldedComponentIds, wn = b.styledComponentId, vo = b.target, Co = re.useContext(Ve), wo = Jt(), kt = b.shouldForwardProp || wo.shouldForwardProp;
1971
- $.NODE_ENV !== "production" && ht(wn);
1972
- var Sn = ji(C, Co, U) || Te, K = function(Ke, De, Je) {
1973
- for (var we, le = P(P({}, De), { className: void 0, theme: Je }), Ot = 0; Ot < Ke.length; Ot += 1) {
1968
+ var m = new $a(n, h, r ? o.componentStyle : void 0);
1969
+ function g(E, x) {
1970
+ return function(S, C, M) {
1971
+ var H = S.attrs, Re = S.componentStyle, U = S.defaultProps, ce = S.foldedComponentIds, Sn = S.styledComponentId, Co = S.target, wo = re.useContext(Ve), bo = Jt(), Nt = S.shouldForwardProp || bo.shouldForwardProp;
1972
+ $.NODE_ENV !== "production" && ht(Sn);
1973
+ var En = Gi(C, wo, U) || xe, K = function(Ke, Me, Je) {
1974
+ for (var we, le = P(P({}, Me), { className: void 0, theme: Je }), Ot = 0; Ot < Ke.length; Ot += 1) {
1974
1975
  var Qe = ve(we = Ke[Ot]) ? we(le) : we;
1975
1976
  for (var oe in Qe) le[oe] = oe === "className" ? de(le[oe], Qe[oe]) : oe === "style" ? P(P({}, le[oe]), Qe[oe]) : Qe[oe];
1976
1977
  }
1977
- return De.className && (le.className = de(le.className, De.className)), le;
1978
- }(H, C, Sn), Pe = K.as || vo, Le = {};
1979
- for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === Sn || (z === "forwardedAs" ? Le.as = K.forwardedAs : kt && !kt(z, Pe) || (Le[z] = K[z], kt || $.NODE_ENV !== "development" || Bo(z) || rr.has(z) || !Zt.has(Pe) || (rr.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" 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.)')))));
1980
- var Tt = function(Ke, De) {
1981
- var Je = Jt(), we = Ke.generateAndInjectStyles(De, Je.styleSheet, Je.stylis);
1978
+ return Me.className && (le.className = de(le.className, Me.className)), le;
1979
+ }(H, C, En), Pe = K.as || Co, Le = {};
1980
+ for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === En || (z === "forwardedAs" ? Le.as = K.forwardedAs : Nt && !Nt(z, Pe) || (Le[z] = K[z], Nt || $.NODE_ENV !== "development" || Fo(z) || ir.has(z) || !Zt.has(Pe) || (ir.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" 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.)')))));
1981
+ var xt = function(Ke, Me) {
1982
+ var Je = Jt(), we = Ke.generateAndInjectStyles(Me, Je.styleSheet, Je.stylis);
1982
1983
  return $.NODE_ENV !== "production" && ht(we), we;
1983
1984
  }(Re, K);
1984
- $.NODE_ENV !== "production" && b.warnTooManyClasses && b.warnTooManyClasses(Tt);
1985
- var xt = de(ce, wn);
1986
- return Tt && (xt += " " + Tt), K.className && (xt += " " + K.className), Le[Dt(Pe) && !Zt.has(Pe) ? "class" : "className"] = xt, D && (Le.ref = D), L(Pe, Le);
1987
- }(N, E, T);
1985
+ $.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(xt);
1986
+ var Tt = de(ce, Sn);
1987
+ return xt && (Tt += " " + xt), K.className && (Tt += " " + K.className), Le[Mt(Pe) && !Zt.has(Pe) ? "class" : "className"] = Tt, M && (Le.ref = M), L(Pe, Le);
1988
+ }(k, E, x);
1988
1989
  }
1989
1990
  g.displayName = c;
1990
- var N = re.forwardRef(g);
1991
- return N.attrs = f, N.componentStyle = m, N.displayName = c, N.shouldForwardProp = p, N.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", N.styledComponentId = _, N.target = r ? o.target : e, Object.defineProperty(N, "defaultProps", { get: function() {
1991
+ var k = re.forwardRef(g);
1992
+ return k.attrs = f, k.componentStyle = m, k.displayName = c, k.shouldForwardProp = p, k.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = h, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1992
1993
  return this._foldedDefaultProps;
1993
1994
  }, set: function(E) {
1994
- this._foldedDefaultProps = r ? function(T) {
1995
- for (var b = [], C = 1; C < arguments.length; C++) b[C - 1] = arguments[C];
1996
- for (var D = 0, H = b; D < H.length; D++) Xt(T, H[D], !0);
1997
- return T;
1995
+ this._foldedDefaultProps = r ? function(x) {
1996
+ for (var S = [], C = 1; C < arguments.length; C++) S[C - 1] = arguments[C];
1997
+ for (var M = 0, H = S; M < H.length; M++) Xt(x, H[M], !0);
1998
+ return x;
1998
1999
  }({}, o.defaultProps, E) : E;
1999
- } }), $.NODE_ENV !== "production" && (Wi(c, _), N.warnTooManyClasses = /* @__PURE__ */ function(E, T) {
2000
- var b = {}, C = !1;
2001
- return function(D) {
2002
- if (!C && (b[D] = !0, Object.keys(b).length >= 200)) {
2003
- var H = T ? ' with the id of "'.concat(T, '"') : "";
2000
+ } }), $.NODE_ENV !== "production" && (ji(c, h), k.warnTooManyClasses = /* @__PURE__ */ function(E, x) {
2001
+ var S = {}, C = !1;
2002
+ return function(M) {
2003
+ if (!C && (S[M] = !0, Object.keys(S).length >= 200)) {
2004
+ var H = x ? ' with the id of "'.concat(x, '"') : "";
2004
2005
  console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(H, `.
2005
2006
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
2006
2007
  Example:
@@ -2010,31 +2011,31 @@ Example:
2010
2011
  },
2011
2012
  }))\`width: 100%;\`
2012
2013
 
2013
- <Component />`), C = !0, b = {};
2014
+ <Component />`), C = !0, S = {};
2014
2015
  }
2015
2016
  };
2016
- }(c, _)), yn(N, function() {
2017
- return ".".concat(N.styledComponentId);
2018
- }), i && ro(N, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), N;
2017
+ }(c, h)), Cn(k, function() {
2018
+ return ".".concat(k.styledComponentId);
2019
+ }), i && io(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2019
2020
  }
2020
- function or(e, t) {
2021
+ function ar(e, t) {
2021
2022
  for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2022
2023
  return n;
2023
2024
  }
2024
- var ir = function(e) {
2025
+ var sr = function(e) {
2025
2026
  return Object.assign(e, { isCss: !0 });
2026
2027
  };
2027
- function Cn(e) {
2028
+ function bn(e) {
2028
2029
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2029
- if (ve(e) || xe(e)) return ir(me(or($t, ge([e], t, !0))));
2030
+ if (ve(e) || Te(e)) return sr(me(ar($t, ge([e], t, !0))));
2030
2031
  var r = e;
2031
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? me(r) : ir(me(or(r, t)));
2032
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? me(r) : sr(me(ar(r, t)));
2032
2033
  }
2033
2034
  function en(e, t, n) {
2034
- if (n === void 0 && (n = Te), !t) throw X(1, t);
2035
+ if (n === void 0 && (n = xe), !t) throw X(1, t);
2035
2036
  var r = function(o) {
2036
2037
  for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
2037
- return e(t, n, Cn.apply(void 0, ge([o], i, !1)));
2038
+ return e(t, n, bn.apply(void 0, ge([o], i, !1)));
2038
2039
  };
2039
2040
  return r.attrs = function(o) {
2040
2041
  return en(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
@@ -2042,16 +2043,16 @@ function en(e, t, n) {
2042
2043
  return en(e, t, P(P({}, n), o));
2043
2044
  }, r;
2044
2045
  }
2045
- var fo = function(e) {
2046
+ var ho = function(e) {
2046
2047
  return en(Na, e);
2047
- }, M = fo;
2048
+ }, D = ho;
2048
2049
  Zt.forEach(function(e) {
2049
- M[e] = fo(e);
2050
+ D[e] = ho(e);
2050
2051
  });
2051
- function Nt(e) {
2052
+ function kt(e) {
2052
2053
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2053
2054
  $.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.");
2054
- var r = qt(Cn.apply(void 0, ge([e], t, !1))), o = Jr(r);
2055
+ var r = qt(bn.apply(void 0, ge([e], t, !1))), o = eo(r);
2055
2056
  return new Qt(o, r);
2056
2057
  }
2057
2058
  $.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
@@ -2061,9 +2062,10 @@ var it = "__sc-".concat(ye, "__");
2061
2062
  $.NODE_ENV !== "production" && $.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2062
2063
 
2063
2064
  See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2064
- const _o = {
2065
- WITHOUT_FINGERS: "withoutFingers"
2066
- }, ar = 0.24, ka = 24, Ta = 2, ho = 14, xa = 0.0276;
2065
+ const tn = {
2066
+ LEFT: "left",
2067
+ RIGHT: "right"
2068
+ }, cr = 0.24, xa = 24, Ta = 2, po = 14, Oa = 0.0276;
2067
2069
  var Q = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(Q || {});
2068
2070
  const ze = {
2069
2071
  300: {
@@ -2086,10 +2088,10 @@ const ze = {
2086
2088
  marginLeft: 12,
2087
2089
  buttonPadding: 24
2088
2090
  }
2089
- }, sr = {
2091
+ }, lr = {
2090
2092
  loading: { text: "Loading. Please wait.", visible: !0 },
2091
2093
  waiting: { text: "Waiting for input...", visible: !0 }
2092
- }, Oa = "rgba(19, 19, 19, 0.5)", Ia = 34, Aa = {
2094
+ }, Ia = "rgba(19, 19, 19, 0.5)", Aa = 34, Ra = {
2093
2095
  [B.CANDIDATE_SELECTION]: "Hold still…",
2094
2096
  [B.PALM_CENTERING]: "Center your palm",
2095
2097
  [B.PALM_NOT_PRESENT]: "Position your palm",
@@ -2100,19 +2102,19 @@ const ze = {
2100
2102
  [B.DEVICE_PITCHED]: "Hold your phone at eye level",
2101
2103
  [B.PALM_TOO_CLOSE]: "Move back",
2102
2104
  [B.TEMPLATE_EXTRACTION_QUALITY_TOO_LOW]: "More light needed"
2103
- }, Ra = _o.WITHOUT_FINGERS;
2104
- function cr(e, t) {
2105
- return Math.max(t, t + (e - 400) * xa + 2);
2105
+ }, Pa = tn.LEFT;
2106
+ function ur(e, t) {
2107
+ return Math.max(t, t + (e - 400) * Oa + 2);
2106
2108
  }
2107
- const Pa = (e, t = ho) => e ? e.width < e.height ? cr(e.width, t) : cr(e.height, t) : t, La = (e) => e > Q.Default ? ze[Q.Default] : e > Q.L ? ze[Q.L] : e > Q.M ? ze[Q.M] : ze[Q.S], Da = (e) => e ? La(e.width) : ze[Q.Default];
2108
- function Ma() {
2109
+ const La = (e, t = po) => e ? e.width < e.height ? ur(e.width, t) : ur(e.height, t) : t, Ma = (e) => e > Q.Default ? ze[Q.Default] : e > Q.L ? ze[Q.L] : e > Q.M ? ze[Q.M] : ze[Q.S], Da = (e) => e ? Ma(e.width) : ze[Q.Default];
2110
+ function Ha() {
2109
2111
  const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2110
2112
  if (!document.querySelector(`link[href="${e}"]`)) {
2111
2113
  const n = document.createElement("link");
2112
2114
  n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
2113
2115
  }
2114
2116
  }
2115
- const je = Er(void 0);
2117
+ const je = kr(void 0);
2116
2118
  je.displayName = "UiCustomizationContext";
2117
2119
  function Ce() {
2118
2120
  const e = Xe(je);
@@ -2122,14 +2124,14 @@ function Ce() {
2122
2124
  );
2123
2125
  return e;
2124
2126
  }
2125
- function Ha({ children: e, props: t, videoElementSize: n }) {
2126
- const { font: r } = uo(), o = te(
2127
- () => ({ ...t, videoElementSize: n, fontSize: Pa(n, r.minimumSize) }),
2127
+ function Ua({ children: e, props: t, videoElementSize: n }) {
2128
+ const { font: r } = _o(), o = te(
2129
+ () => ({ ...t, videoElementSize: n, fontSize: La(n, r.minimumSize) }),
2128
2130
  [t, r.minimumSize, n]
2129
2131
  );
2130
- return /* @__PURE__ */ h(je.Provider, { value: o, children: e });
2132
+ return /* @__PURE__ */ d(je.Provider, { value: o, children: e });
2131
2133
  }
2132
- const po = ({ svgSize: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ h(
2134
+ const mo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2133
2135
  "path",
2134
2136
  {
2135
2137
  clipRule: "evenodd",
@@ -2137,7 +2139,7 @@ const po = ({ svgSize: e }) => /* @__PURE__ */ h("svg", { fill: "none", height:
2137
2139
  fill: "currentColor",
2138
2140
  fillRule: "evenodd"
2139
2141
  }
2140
- ) }), Ua = M.div`
2142
+ ) }), za = D.div`
2141
2143
  width: 100%;
2142
2144
  height: 100%;
2143
2145
  top: 0;
@@ -2156,14 +2158,14 @@ const po = ({ svgSize: e }) => /* @__PURE__ */ h("svg", { fill: "none", height:
2156
2158
  aspect-ratio: 9/16;
2157
2159
  }
2158
2160
  `}
2159
- `, za = M.div`
2161
+ `, Ba = D.div`
2160
2162
  width: 100%;
2161
2163
  display: flex;
2162
2164
  flex-direction: column;
2163
2165
  justify-content: center;
2164
2166
  align-items: center;
2165
2167
  color: ${(e) => e.theme.colors.instructionTextColor};
2166
- `, Ba = M.p`
2168
+ `, Fa = D.p`
2167
2169
  background: ${(e) => e.theme.colors.instructionColor};
2168
2170
  border-radius: 0.25em;
2169
2171
  padding: 0.583em 0.666em;
@@ -2171,14 +2173,14 @@ const po = ({ svgSize: e }) => /* @__PURE__ */ h("svg", { fill: "none", height:
2171
2173
  font-size: ${(e) => `${e.$fontSize}px`};
2172
2174
  line-height: 1em;
2173
2175
  max-width: 80%;
2174
- `, tn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2176
+ `, nn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2175
2177
  const { fontSize: o } = Ce();
2176
- return /* @__PURE__ */ h(Ua, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ h(za, { children: [
2177
- e ? /* @__PURE__ */ h(e, { svgSize: o * 2 }) : null,
2178
- /* @__PURE__ */ h(Ba, { $fontSize: o, children: r })
2178
+ return /* @__PURE__ */ d(za, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ d(Ba, { children: [
2179
+ e ? /* @__PURE__ */ d(e, { svgSize: o * 2 }) : null,
2180
+ /* @__PURE__ */ d(Fa, { $fontSize: o, children: r })
2179
2181
  ] }) });
2180
- }, mo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ h(tn, { Icon: po, position: "relative", text: e });
2181
- class Fa extends j {
2182
+ }, go = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ d(nn, { Icon: mo, position: "relative", text: e });
2183
+ class Wa extends G {
2182
2184
  constructor(t) {
2183
2185
  super(t), this.state = { hasError: !1 };
2184
2186
  }
@@ -2189,16 +2191,16 @@ class Fa extends j {
2189
2191
  console.error(t, n);
2190
2192
  }
2191
2193
  render() {
2192
- return this.state.hasError ? /* @__PURE__ */ h(mo, { Icon: po, isCameraReady: !1 }) : this.props.children;
2194
+ return this.state.hasError ? /* @__PURE__ */ d(go, { Icon: mo, isCameraReady: !1 }) : this.props.children;
2193
2195
  }
2194
2196
  }
2195
- const Wa = M.div`
2197
+ const ja = D.div`
2196
2198
  font-family: ${(e) => e.theme.font.family};
2197
2199
  font-style: ${(e) => e.theme.font.style};
2198
2200
  font-weight: ${(e) => e.theme.font.weight};
2199
- `, ja = ({ children: e, uiProps: t, videoElementSize: n }) => (ne(() => {
2200
- Ma();
2201
- }, []), /* @__PURE__ */ h(Ca, { target: t.styleTarget, children: /* @__PURE__ */ h($a, { theme: t.theme, children: /* @__PURE__ */ h(Wa, { children: /* @__PURE__ */ h(Fa, { videoElementSize: n, children: /* @__PURE__ */ h(Ha, { props: t, videoElementSize: n, children: e }) }) }) }) })), Ga = 0.85, Va = "dot-auto-capture-video", be = (e, t) => {
2201
+ `, Ga = ({ children: e, uiProps: t, videoElementSize: n }) => (ne(() => {
2202
+ Ha();
2203
+ }, []), /* @__PURE__ */ d(wa, { target: t.styleTarget, children: /* @__PURE__ */ d(ka, { theme: t.theme, children: /* @__PURE__ */ d(ja, { children: /* @__PURE__ */ d(Wa, { videoElementSize: n, children: /* @__PURE__ */ d(Ua, { props: t, videoElementSize: n, children: e }) }) }) }) })), Va = 0.85, Za = "dot-auto-capture-video", Se = (e, t) => {
2202
2204
  const n = qe(t);
2203
2205
  ne(() => {
2204
2206
  n.current = t;
@@ -2213,7 +2215,7 @@ const Wa = M.div`
2213
2215
  // Re-run if eventName
2214
2216
  );
2215
2217
  };
2216
- function Za(e) {
2218
+ function Ya(e) {
2217
2219
  const [t, n] = F(), r = he(
2218
2220
  (o) => {
2219
2221
  var i;
@@ -2221,47 +2223,47 @@ function Za(e) {
2221
2223
  },
2222
2224
  [n]
2223
2225
  );
2224
- return be(e, r), Ie(() => {
2226
+ return Se(e, r), Ie(() => {
2225
2227
  if (!t) {
2226
- const o = document.getElementById(Va);
2228
+ const o = document.getElementById(Za);
2227
2229
  o && n(o.getBoundingClientRect());
2228
2230
  }
2229
2231
  }, [t, n]), t;
2230
2232
  }
2231
- function Ya(e, t) {
2233
+ function qa(e, t) {
2232
2234
  return e ? `${e}, ${t}` : t;
2233
2235
  }
2234
- const qa = {
2236
+ const Xa = {
2235
2237
  placeholderColor: "white",
2236
2238
  placeholderColorSuccess: "#00BFB2",
2237
2239
  instructionColor: "#F8FBFB",
2238
2240
  instructionColorSuccess: "#00BFB2",
2239
2241
  instructionTextColor: "#021B41;"
2240
- }, Xa = {
2242
+ }, Ka = {
2241
2243
  family: "Montserrat, Arial, sans-serif",
2242
2244
  weight: "600",
2243
2245
  style: "normal",
2244
- minimumSize: ho
2245
- }, Me = {
2246
- colors: qa,
2247
- font: Xa
2248
- }, Ka = (e) => {
2246
+ minimumSize: po
2247
+ }, De = {
2248
+ colors: Xa,
2249
+ font: Ka
2250
+ }, Ja = (e) => {
2249
2251
  var t;
2250
2252
  return e ? {
2251
- ...Me,
2253
+ ...De,
2252
2254
  ...e,
2253
2255
  colors: {
2254
- ...Me.colors,
2256
+ ...De.colors,
2255
2257
  ...e.colors
2256
2258
  },
2257
2259
  font: {
2258
- ...Me.font,
2260
+ ...De.font,
2259
2261
  ...e.font,
2260
- family: Ya((t = e.font) == null ? void 0 : t.family, Me.font.family)
2262
+ family: qa((t = e.font) == null ? void 0 : t.family, De.font.family)
2261
2263
  }
2262
- } : Me;
2263
- }, Ja = (e, t) => Math.min(e, t), Qa = ({ height: e, width: t }, n) => {
2264
- const r = Ja(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2264
+ } : De;
2265
+ }, yo = (e, t) => Math.min(e, t), Qa = ({ height: e, width: t }, n) => {
2266
+ const r = yo(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2265
2267
  return {
2266
2268
  shiftX: o,
2267
2269
  shiftY: i,
@@ -2276,7 +2278,7 @@ const qa = {
2276
2278
  width: i / e.width,
2277
2279
  height: n / e.height
2278
2280
  };
2279
- }, ts = (e) => es(e, Ga), go = (e, t) => {
2281
+ }, ts = (e) => es(e, Va), rn = (e, t) => {
2280
2282
  document.dispatchEvent(
2281
2283
  new CustomEvent(e, {
2282
2284
  detail: t
@@ -2284,9 +2286,11 @@ const qa = {
2284
2286
  );
2285
2287
  }, yt = class yt {
2286
2288
  constructor() {
2287
- et(this, "lastDetails", {});
2288
- et(this, "delayedTime", 0);
2289
+ et(this, "lastDetails");
2290
+ et(this, "delayedTime");
2291
+ this.lastDetails = {}, this.delayedTime = 0;
2289
2292
  }
2293
+ // TODO remove singleton
2290
2294
  static getInstance() {
2291
2295
  return this._instance || (this._instance = new yt()), this._instance;
2292
2296
  }
@@ -2309,7 +2313,7 @@ const qa = {
2309
2313
  * @param detail - Record<string, unknown>
2310
2314
  */
2311
2315
  dispatchCustomEventOnChange(t, n) {
2312
- this.isDetailChanged(t, n) && go(t, n);
2316
+ this.isDetailChanged(t, n) && rn(t, n);
2313
2317
  }
2314
2318
  /**
2315
2319
  * If the detail of the event has changed, delay time has passed, dispatch the event
@@ -2321,12 +2325,17 @@ const qa = {
2321
2325
  const o = performance.now();
2322
2326
  o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
2323
2327
  }
2328
+ // implement this method in the class
2329
+ dispatchCustomEvent(t, n) {
2330
+ rn(t, n);
2331
+ }
2324
2332
  };
2333
+ // TODO remove singleton
2325
2334
  et(yt, "_instance");
2326
- let nn = yt;
2327
- nn.getInstance();
2328
- const lr = (e, t) => {
2329
- go(e, {
2335
+ let on = yt;
2336
+ on.getInstance();
2337
+ const fr = (e, t) => {
2338
+ rn(e, {
2330
2339
  instruction: t
2331
2340
  });
2332
2341
  };
@@ -2343,8 +2352,8 @@ const os = () => {
2343
2352
  (await rs()).length > 1 && t(!0);
2344
2353
  })();
2345
2354
  }, []), e;
2346
- }, is = ({ size: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2347
- /* @__PURE__ */ h(
2355
+ }, is = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2356
+ /* @__PURE__ */ d(
2348
2357
  "path",
2349
2358
  {
2350
2359
  d: "M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",
@@ -2352,8 +2361,8 @@ const os = () => {
2352
2361
  fillOpacity: "0.3"
2353
2362
  }
2354
2363
  ),
2355
- /* @__PURE__ */ h("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2356
- /* @__PURE__ */ h(
2364
+ /* @__PURE__ */ d("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2365
+ /* @__PURE__ */ d(
2357
2366
  "path",
2358
2367
  {
2359
2368
  d: "M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",
@@ -2361,8 +2370,8 @@ const os = () => {
2361
2370
  strokeWidth: "2"
2362
2371
  }
2363
2372
  ),
2364
- /* @__PURE__ */ h("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2365
- /* @__PURE__ */ h(
2373
+ /* @__PURE__ */ d("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2374
+ /* @__PURE__ */ d(
2366
2375
  "path",
2367
2376
  {
2368
2377
  d: "M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",
@@ -2370,16 +2379,16 @@ const os = () => {
2370
2379
  strokeWidth: "2"
2371
2380
  }
2372
2381
  )
2373
- ] }), as = ({ size: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2374
- /* @__PURE__ */ h("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2375
- /* @__PURE__ */ h(
2382
+ ] }), as = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2383
+ /* @__PURE__ */ d("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2384
+ /* @__PURE__ */ d(
2376
2385
  "path",
2377
2386
  {
2378
2387
  d: "M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",
2379
2388
  fill: "white"
2380
2389
  }
2381
2390
  )
2382
- ] }), yo = M.button`
2391
+ ] }), vo = D.button`
2383
2392
  background: none;
2384
2393
  border: none;
2385
2394
  padding: 0;
@@ -2389,7 +2398,7 @@ const os = () => {
2389
2398
  &:disabled {
2390
2399
  cursor: not-allowed;
2391
2400
  }
2392
- `, ss = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ h(yo, { $marginLeft: e, ...n, children: /* @__PURE__ */ h(is, { size: t }) }), cs = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ h(yo, { $marginLeft: e, ...n, children: /* @__PURE__ */ h(as, { size: t }) }), ls = M.div`
2401
+ `, ss = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(vo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(is, { size: t }) }), cs = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(vo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(as, { size: t }) }), ls = D.div`
2393
2402
  position: absolute;
2394
2403
  top: 0;
2395
2404
  right: 0;
@@ -2403,22 +2412,22 @@ const os = () => {
2403
2412
  if (!n)
2404
2413
  return null;
2405
2414
  const { buttonPadding: i, iconSize: a, marginLeft: s } = Da(r);
2406
- return /* @__PURE__ */ h(ls, { $padding: i, children: [
2407
- o && /* @__PURE__ */ h(cs, { disabled: t, onClick: () => {
2408
- lr(e, kn.SWITCH_CAMERA);
2415
+ return /* @__PURE__ */ d(ls, { $padding: i, children: [
2416
+ o && /* @__PURE__ */ d(cs, { disabled: t, onClick: () => {
2417
+ fr(e, Tn.SWITCH_CAMERA);
2409
2418
  }, size: a }),
2410
- /* @__PURE__ */ h(
2419
+ /* @__PURE__ */ d(
2411
2420
  ss,
2412
2421
  {
2413
2422
  marginLeft: o ? s : 0,
2414
2423
  onClick: () => {
2415
- lr(e, kn.TOGGLE_MIRROR);
2424
+ fr(e, Tn.TOGGLE_MIRROR);
2416
2425
  },
2417
2426
  size: a
2418
2427
  }
2419
2428
  )
2420
2429
  ] });
2421
- }, fs = "2.5s", ds = "0.3s", _s = "linear", hs = Nt`
2430
+ }, fs = "2.5s", ds = "0.3s", _s = "linear", hs = kt`
2422
2431
  0% {
2423
2432
  opacity: 0;
2424
2433
  }
@@ -2426,14 +2435,14 @@ const os = () => {
2426
2435
  opacity: 1;
2427
2436
  }
2428
2437
  `;
2429
- Nt`
2438
+ kt`
2430
2439
  100% {
2431
2440
  transform: translate(-50%, -50%) scale(2.6);
2432
2441
  top: 50%;
2433
2442
  left: 50%;
2434
2443
  }
2435
2444
  `;
2436
- Nt`
2445
+ kt`
2437
2446
  5% {
2438
2447
  transform: translate(-50%, -50%) scale(0.7);
2439
2448
  opacity: 1;
@@ -2457,7 +2466,7 @@ Nt`
2457
2466
  opacity: 0.5;
2458
2467
  }
2459
2468
  `;
2460
- Nt`
2469
+ kt`
2461
2470
  5% {
2462
2471
  opacity: 1;
2463
2472
  }
@@ -2470,13 +2479,13 @@ Nt`
2470
2479
  opacity: 1;
2471
2480
  }
2472
2481
  `;
2473
- const ps = M.div`
2482
+ const ps = D.div`
2474
2483
  position: absolute;
2475
2484
  left: 50%;
2476
2485
 
2477
2486
  ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2478
2487
  ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2479
- ${(e) => e.$isAnimating && Cn`
2488
+ ${(e) => e.$isAnimating && bn`
2480
2489
  animation: ${hs} ${ds}
2481
2490
  ${_s} both;
2482
2491
  animation-delay: ${fs};
@@ -2503,7 +2512,7 @@ const ps = M.div`
2503
2512
  ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2504
2513
  );
2505
2514
  z-index: 2;
2506
- `, ms = M.div`
2515
+ `, ms = D.div`
2507
2516
  display: flex;
2508
2517
  align-items: center;
2509
2518
  justify-content: center;
@@ -2526,16 +2535,16 @@ const ps = M.div`
2526
2535
  isPortrait: i
2527
2536
  }) => {
2528
2537
  const { fontSize: a } = Ce();
2529
- return /* @__PURE__ */ h(ps, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ h(
2538
+ return /* @__PURE__ */ d(ps, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ d(
2530
2539
  ms,
2531
2540
  {
2532
2541
  $fontSize: a,
2533
2542
  $isInCandidateSelection: o,
2534
- $wrap: e.length > Ia,
2543
+ $wrap: e.length > Aa,
2535
2544
  children: e
2536
2545
  }
2537
2546
  ) });
2538
- }, ys = M.canvas`
2547
+ }, ys = D.canvas`
2539
2548
  transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
2540
2549
  position: absolute;
2541
2550
  top: 0;
@@ -2543,16 +2552,18 @@ const ps = M.div`
2543
2552
  width: 100%;
2544
2553
  height: 100%;
2545
2554
  z-index: 1;
2546
- `, vs = (e) => {
2555
+ `;
2556
+ function vs(e) {
2547
2557
  const t = e.getContext("2d");
2548
2558
  t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
2549
- }, Be = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), ur = (e, t, n) => {
2559
+ }
2560
+ const Be = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), dr = (e, t, n) => {
2550
2561
  const r = (t.x - e.x) * n, o = (t.y - e.y) * n;
2551
2562
  return {
2552
2563
  x: e.x + r,
2553
2564
  y: e.y + o
2554
2565
  };
2555
- }, fr = (e, t, n, r) => {
2566
+ }, _r = (e, t, n, r) => {
2556
2567
  const o = Be(e, t);
2557
2568
  return n * r / o;
2558
2569
  }, Cs = (e) => {
@@ -2560,40 +2571,40 @@ const ps = M.div`
2560
2571
  return Math.min(i, a, s, l);
2561
2572
  };
2562
2573
  function ws({ cameraResolution: e, isImageMirror: t }) {
2563
- const n = qe(null), r = uo(), [o, i] = F(), a = he(
2574
+ const n = qe(null), r = _o(), [o, i] = F(), a = he(
2564
2575
  (s) => {
2565
2576
  var l;
2566
2577
  i((l = s == null ? void 0 : s.detail) == null ? void 0 : l.detectedObject);
2567
2578
  },
2568
2579
  [i]
2569
2580
  );
2570
- return be(Nr.DETECTED_DOCUMENT_CHANGED, a), be(_e.DETECTED_PALM_CHANGED, a), ne(() => {
2581
+ return Se(xr.DETECTED_DOCUMENT_CHANGED, a), Se(_e.DETECTED_PALM_CHANGED, a), ne(() => {
2571
2582
  if (!n.current)
2572
2583
  return;
2573
- const s = (u, d, c, _) => {
2584
+ const s = (u, _, c, h) => {
2574
2585
  var g;
2575
- const f = fr(
2576
- d,
2586
+ const f = _r(
2587
+ _,
2577
2588
  u,
2589
+ h,
2590
+ cr
2591
+ ), p = _r(
2578
2592
  _,
2579
- ar
2580
- ), p = fr(
2581
- d,
2582
2593
  c,
2583
- _,
2584
- ar
2585
- ), y = ur(d, u, f), v = ur(d, c, p), m = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
2586
- m && (m.beginPath(), m.lineWidth = Ta, m.strokeStyle = r.colors.placeholderColor, m.moveTo(y.x, y.y), m.arcTo(d.x, d.y, v.x, v.y, ka), m.lineTo(v.x, v.y), m.stroke());
2594
+ h,
2595
+ cr
2596
+ ), y = dr(_, u, f), v = dr(_, c, p), m = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
2597
+ m && (m.beginPath(), m.lineWidth = Ta, m.strokeStyle = r.colors.placeholderColor, m.moveTo(y.x, y.y), m.arcTo(_.x, _.y, v.x, v.y, xa), m.lineTo(v.x, v.y), m.stroke());
2587
2598
  }, l = (u) => {
2588
2599
  if (!u)
2589
2600
  return;
2590
- const { bottomLeft: d, bottomRight: c, topLeft: _, topRight: f } = u, p = Cs(u);
2591
- s(d, _, f, p), s(_, f, c, p), s(f, c, d, p), s(c, d, _, p);
2601
+ const { bottomLeft: _, bottomRight: c, topLeft: h, topRight: f } = u, p = Cs(u);
2602
+ s(_, h, f, p), s(h, f, c, p), s(f, c, _, p), s(c, _, h, p);
2592
2603
  };
2593
2604
  n.current.width = e.width, n.current.height = e.height, vs(n.current), l(o);
2594
- }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ h(ys, { ref: n, $isImageMirror: t });
2605
+ }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ d(ys, { ref: n, $isImageMirror: t });
2595
2606
  }
2596
- const Ss = M.div`
2607
+ const bs = D.div`
2597
2608
  color: ${(e) => e.theme.colors.instructionTextColor};
2598
2609
  animation: spin 2s linear infinite;
2599
2610
 
@@ -2602,89 +2613,137 @@ const Ss = M.div`
2602
2613
  transform: rotate(-360deg);
2603
2614
  }
2604
2615
  }
2605
- `, bs = ({ svgSize: e }) => /* @__PURE__ */ h(Ss, { children: /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2606
- /* @__PURE__ */ h(
2616
+ `, Ss = ({ svgSize: e }) => /* @__PURE__ */ d(bs, { children: /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2617
+ /* @__PURE__ */ d(
2607
2618
  "path",
2608
2619
  {
2609
2620
  d: "M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",
2610
2621
  fill: "currentColor"
2611
2622
  }
2612
2623
  ),
2613
- /* @__PURE__ */ h(
2624
+ /* @__PURE__ */ d(
2614
2625
  "path",
2615
2626
  {
2616
2627
  d: "M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",
2617
2628
  fill: "currentColor"
2618
2629
  }
2619
2630
  ),
2620
- /* @__PURE__ */ h(
2631
+ /* @__PURE__ */ d(
2621
2632
  "path",
2622
2633
  {
2623
2634
  d: "M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",
2624
2635
  fill: "currentColor"
2625
2636
  }
2626
2637
  ),
2627
- /* @__PURE__ */ h(
2638
+ /* @__PURE__ */ d(
2628
2639
  "path",
2629
2640
  {
2630
2641
  d: "M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",
2631
2642
  fill: "currentColor"
2632
2643
  }
2633
2644
  ),
2634
- /* @__PURE__ */ h(
2645
+ /* @__PURE__ */ d(
2635
2646
  "path",
2636
2647
  {
2637
2648
  d: "M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",
2638
2649
  fill: "currentColor"
2639
2650
  }
2640
2651
  ),
2641
- /* @__PURE__ */ h(
2652
+ /* @__PURE__ */ d(
2642
2653
  "path",
2643
2654
  {
2644
2655
  d: "M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",
2645
2656
  fill: "currentColor"
2646
2657
  }
2647
2658
  ),
2648
- /* @__PURE__ */ h(
2659
+ /* @__PURE__ */ d(
2649
2660
  "path",
2650
2661
  {
2651
2662
  d: "M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",
2652
2663
  fill: "currentColor"
2653
2664
  }
2654
2665
  ),
2655
- /* @__PURE__ */ h(
2666
+ /* @__PURE__ */ d(
2656
2667
  "path",
2657
2668
  {
2658
2669
  d: "M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",
2659
2670
  fill: "currentColor"
2660
2671
  }
2661
2672
  )
2662
- ] }) }), Es = M.div`
2673
+ ] }) }), Es = D.div`
2663
2674
  z-index: 1;
2664
2675
  position: absolute;
2665
- top: 0;
2666
- left: 0;
2667
- width: 100%;
2668
- height: 100%;
2669
- `, $s = ({ children: e, height: t, width: n }) => {
2670
- const { backdropColor: r } = Ce();
2671
- return /* @__PURE__ */ h(Es, { children: /* @__PURE__ */ h("svg", { viewBox: `0 0 ${n} ${t}`, children: [
2672
- /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("mask", { id: "mask", children: [
2673
- /* @__PURE__ */ h("rect", { fill: "#fff", height: "100%", width: "100%" }),
2674
- e
2676
+ // Scale up the backdrop to have space when placeholder is scaled below 1
2677
+ top: -50%;
2678
+ left: -50%;
2679
+ width: 200%;
2680
+ height: 200%;
2681
+ outline: ${({ $backdropColor: e, $shorterSide: t = 1e3 }) => `${t * 0.2}px solid ${e}`};
2682
+ transform: scale(${(e) => e.$scale || 1});
2683
+ transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
2684
+
2685
+ // Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
2686
+ g {
2687
+ transform: scale(0.5);
2688
+ translate: 25% 25%;
2689
+ }
2690
+ `, $s = ({ children: e, height: t, scale: n, width: r }) => {
2691
+ const { backdropColor: o } = Ce(), i = yo(r, t);
2692
+ return /* @__PURE__ */ d(Es, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2693
+ /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("mask", { id: "mask", children: [
2694
+ /* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
2695
+ /* @__PURE__ */ d("g", { children: e })
2675
2696
  ] }) }),
2676
- /* @__PURE__ */ h("rect", { fill: r, height: "100%", mask: "url(#mask)", width: "100%" })
2697
+ /* @__PURE__ */ d("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2677
2698
  ] }) });
2678
2699
  };
2679
- function Ns({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2680
- const { appStateInstructions: o } = Ce(), i = r === Y.ERROR || r === Y.RUNNING;
2681
- return !r || i || !(o != null && o[r].visible) ? null : r === Y.WAITING ? /* @__PURE__ */ h(V, { children: [
2682
- n && e && t && /* @__PURE__ */ h($s, { height: e, width: t }),
2683
- /* @__PURE__ */ h(tn, { isCameraReady: !0, text: o[Y.WAITING].text })
2684
- ] }) : /* @__PURE__ */ h(tn, { Icon: bs, isCameraReady: !0, text: o[Y.LOADING].text });
2685
- }
2686
- function ks() {
2687
- return /* @__PURE__ */ h(
2700
+ function ks({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2701
+ const { appStateInstructions: o } = Ce(), i = r === j.ERROR || r === j.RUNNING;
2702
+ return !r || i || !(o != null && o[r].visible) ? null : r === j.WAITING || r === j.COMPLETE ? /* @__PURE__ */ d(Z, { children: [
2703
+ n && e && t && /* @__PURE__ */ d($s, { height: e, width: t }),
2704
+ /* @__PURE__ */ d(nn, { isCameraReady: !0, text: o[j.WAITING].text })
2705
+ ] }) : /* @__PURE__ */ d(nn, { Icon: Ss, isCameraReady: !0, text: o[j.LOADING].text });
2706
+ }
2707
+ function Ns() {
2708
+ return /* @__PURE__ */ d(
2709
+ "svg",
2710
+ {
2711
+ fill: "none",
2712
+ id: "Layer_1",
2713
+ stroke: "currentColor",
2714
+ strokeLinecap: "round",
2715
+ strokeLinejoin: "round",
2716
+ strokeWidth: "4px",
2717
+ viewBox: "0 0 300 253.48",
2718
+ xmlns: "http://www.w3.org/2000/svg",
2719
+ children: [
2720
+ /* @__PURE__ */ d("path", { className: "cls-1", d: "M179.22,114.86c-5.07-.21-41.51-1.07-66.97,27.84-17.94,20.37-19.97,43.63-20.32,51.17" }),
2721
+ /* @__PURE__ */ d("path", { className: "cls-1", d: "M128.06,110.56c-11.36,2.45-25.72,4.46-42.32,4.23-11.24-.16-21.3-1.31-29.91-2.82" }),
2722
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "203.51", x2: "203.51", y1: "136.03", y2: "10.21" }),
2723
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "154.7", x2: "154.7", y1: "60.97", y2: "10.21" }),
2724
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "106.01", x2: "106.01", y1: "60.97", y2: "10.21" }),
2725
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "58.08", x2: "58.08", y1: "60.97", y2: "10.21" }),
2726
+ /* @__PURE__ */ d(
2727
+ "path",
2728
+ {
2729
+ className: "cls-1",
2730
+ d: "M286.73,114.94c3.95-3.75,6.41-9.05,6.41-14.92,0-11.36-9.21-20.56-20.56-20.56-2.84,0-5.54.58-8,1.62"
2731
+ }
2732
+ ),
2733
+ /* @__PURE__ */ d("polyline", { className: "cls-1", points: "203.51 113.13 261.92 82.44 264.57 81.08" }),
2734
+ /* @__PURE__ */ d(
2735
+ "path",
2736
+ {
2737
+ className: "cls-1",
2738
+ d: "M289.01,112.55l-3.31,3.31-33.68,33.68c-.57.73-1.44,1.84-2.47,3.19-12.6,16.55-19.33,29.31-23.35,36.07-3.96,6.65-12.58,21.1-27.6,32.97-21.04,16.62-48.91,23.63-64.22,21.28-1.73-.27-7.53-1.3-15.53-1.34-9.01-.05-15.46,1.23-17.64,1.53-18.31,2.56-40.72-12.22-44.86-14.95-24.73-16.31-34.26-39.92-37.95-49.46-5.51-14.21-6.05-33.85-7.28-49.84,0,0-.33-4.22-.57-8.69-1.72-31.65-.45-82.64-.1-110.1"
2739
+ }
2740
+ )
2741
+ ]
2742
+ }
2743
+ );
2744
+ }
2745
+ function xs() {
2746
+ return /* @__PURE__ */ d(
2688
2747
  "svg",
2689
2748
  {
2690
2749
  fill: "none",
@@ -2696,21 +2755,21 @@ function ks() {
2696
2755
  viewBox: "0 0 300 253.48",
2697
2756
  xmlns: "http://www.w3.org/2000/svg",
2698
2757
  children: [
2699
- /* @__PURE__ */ h("path", { className: "cls-1", d: "M120.78,114.86c5.07-.21,41.51-1.07,66.97,27.84,17.94,20.37,19.97,43.63,20.32,51.17" }),
2700
- /* @__PURE__ */ h("path", { className: "cls-1", d: "M171.94,110.56c11.36,2.45,25.72,4.46,42.32,4.23,11.24-.16,21.3-1.31,29.91-2.82" }),
2701
- /* @__PURE__ */ h("line", { className: "cls-1", x1: "96.49", x2: "96.49", y1: "136.03", y2: "10.21" }),
2702
- /* @__PURE__ */ h("line", { className: "cls-1", x1: "145.3", x2: "145.3", y1: "60.97", y2: "10.21" }),
2703
- /* @__PURE__ */ h("line", { className: "cls-1", x1: "193.99", x2: "193.99", y1: "60.97", y2: "10.21" }),
2704
- /* @__PURE__ */ h("line", { className: "cls-1", x1: "241.92", x2: "241.92", y1: "60.97", y2: "10.21" }),
2705
- /* @__PURE__ */ h(
2758
+ /* @__PURE__ */ d("path", { className: "cls-1", d: "M120.78,114.86c5.07-.21,41.51-1.07,66.97,27.84,17.94,20.37,19.97,43.63,20.32,51.17" }),
2759
+ /* @__PURE__ */ d("path", { className: "cls-1", d: "M171.94,110.56c11.36,2.45,25.72,4.46,42.32,4.23,11.24-.16,21.3-1.31,29.91-2.82" }),
2760
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "96.49", x2: "96.49", y1: "136.03", y2: "10.21" }),
2761
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "145.3", x2: "145.3", y1: "60.97", y2: "10.21" }),
2762
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "193.99", x2: "193.99", y1: "60.97", y2: "10.21" }),
2763
+ /* @__PURE__ */ d("line", { className: "cls-1", x1: "241.92", x2: "241.92", y1: "60.97", y2: "10.21" }),
2764
+ /* @__PURE__ */ d(
2706
2765
  "path",
2707
2766
  {
2708
2767
  className: "cls-1",
2709
2768
  d: "M13.27,114.94c-3.95-3.75-6.41-9.05-6.41-14.92,0-11.36,9.21-20.56,20.56-20.56,2.84,0,5.54.58,8,1.62"
2710
2769
  }
2711
2770
  ),
2712
- /* @__PURE__ */ h("polyline", { className: "cls-1", points: "96.49 113.13 38.08 82.44 35.43 81.08" }),
2713
- /* @__PURE__ */ h(
2771
+ /* @__PURE__ */ d("polyline", { className: "cls-1", points: "96.49 113.13 38.08 82.44 35.43 81.08" }),
2772
+ /* @__PURE__ */ d(
2714
2773
  "path",
2715
2774
  {
2716
2775
  className: "cls-1",
@@ -2721,7 +2780,7 @@ function ks() {
2721
2780
  }
2722
2781
  );
2723
2782
  }
2724
- const Ts = M.div`
2783
+ const Ts = D.div`
2725
2784
  z-index: 1;
2726
2785
  position: absolute;
2727
2786
  top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
@@ -2729,34 +2788,38 @@ const Ts = M.div`
2729
2788
  left: ${(e) => e.$placeholderRectangle.shiftX * 100}%;
2730
2789
  right: ${(e) => (1 - e.$placeholderRectangle.shiftX - e.$placeholderRectangle.width) * 100}%;
2731
2790
  color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
2732
-
2791
+ transform: scale(${(e) => e.$scale || 1});
2792
+ transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
2733
2793
  svg {
2734
2794
  width: 100%;
2735
2795
  height: 100%;
2736
2796
  }
2737
- `, xs = ({
2797
+ `, Os = ({
2738
2798
  children: e,
2739
2799
  className: t,
2740
2800
  isInCandidateSelection: n,
2741
2801
  onAnimationEnd: r,
2742
- placeholderRectangle: o
2743
- }) => /* @__PURE__ */ h(
2802
+ placeholderRectangle: o,
2803
+ scale: i
2804
+ }) => /* @__PURE__ */ d(
2744
2805
  Ts,
2745
2806
  {
2746
2807
  $isInCandidateSelection: n,
2747
2808
  $placeholderRectangle: o,
2809
+ $scale: i,
2748
2810
  className: t,
2749
2811
  onAnimationEnd: r,
2750
2812
  children: e
2751
2813
  }
2752
- ), Os = {
2753
- [_o.WITHOUT_FINGERS]: /* @__PURE__ */ h(ks, {})
2814
+ ), Is = {
2815
+ [tn.LEFT]: /* @__PURE__ */ d(Ns, {}),
2816
+ [tn.RIGHT]: /* @__PURE__ */ d(xs, {})
2754
2817
  };
2755
- function Is({ placeholderRectangle: e, ...t }) {
2818
+ function As({ placeholderRectangle: e, ...t }) {
2756
2819
  const { placeholder: n } = Ce();
2757
- return /* @__PURE__ */ h(xs, { placeholderRectangle: e, ...t, children: Os[n] });
2820
+ return /* @__PURE__ */ d(Os, { placeholderRectangle: e, ...t, children: Is[n] });
2758
2821
  }
2759
- function As() {
2822
+ function Rs() {
2760
2823
  const [e, t] = F(), [n, r] = F(!1), o = he(
2761
2824
  (f) => {
2762
2825
  var y, v;
@@ -2766,7 +2829,7 @@ function As() {
2766
2829
  },
2767
2830
  [t]
2768
2831
  );
2769
- be(_e.CAMERA_PROPS_CHANGED, o);
2832
+ Se(_e.CAMERA_PROPS_CHANGED, o);
2770
2833
  const [i, a] = F({
2771
2834
  code: B.PALM_NOT_PRESENT,
2772
2835
  // FIXME Default instruction should not be here
@@ -2781,8 +2844,8 @@ function As() {
2781
2844
  },
2782
2845
  [a]
2783
2846
  );
2784
- be(_e.INSTRUCTION_CHANGED, s);
2785
- const [l, u] = F(Y.LOADING), [d, c] = F(), _ = he(
2847
+ Se(_e.INSTRUCTION_CHANGED, s);
2848
+ const [l, u] = F(j.LOADING), [_, c] = F(), h = he(
2786
2849
  (f) => {
2787
2850
  var y, v;
2788
2851
  u((y = f.detail) == null ? void 0 : y.appState);
@@ -2791,35 +2854,35 @@ function As() {
2791
2854
  },
2792
2855
  [u, c]
2793
2856
  );
2794
- return be(_e.STATE_CHANGED, _), {
2857
+ return Se(_e.STATE_CHANGED, h), {
2795
2858
  cameraResolution: e,
2796
2859
  instruction: i,
2797
2860
  isMirroring: n,
2798
2861
  appState: l,
2799
- error: d
2862
+ error: _
2800
2863
  };
2801
2864
  }
2802
- function Rs() {
2803
- const { appState: e, cameraResolution: t, error: n, instruction: r, isMirroring: o } = As(), i = r.code === B.CANDIDATE_SELECTION, { instructions: a, showDetectionLayer: s } = Ce();
2804
- return e === Y.ERROR ? /* @__PURE__ */ h(mo, { text: n == null ? void 0 : n.message }) : e === Y.RUNNING && t ? /* @__PURE__ */ h(V, { children: [
2805
- s && /* @__PURE__ */ h(ws, { cameraResolution: t, isImageMirror: o }),
2806
- /* @__PURE__ */ h(
2807
- Is,
2865
+ function Ps() {
2866
+ const { appState: e, cameraResolution: t, error: n, instruction: r, isMirroring: o } = Rs(), i = r.code === B.CANDIDATE_SELECTION, { instructions: a, showDetectionLayer: s } = Ce();
2867
+ return e === j.ERROR ? /* @__PURE__ */ d(go, { text: n == null ? void 0 : n.message }) : e === j.RUNNING && t ? /* @__PURE__ */ d(Z, { children: [
2868
+ s && /* @__PURE__ */ d(ws, { cameraResolution: t, isImageMirror: o }),
2869
+ /* @__PURE__ */ d(
2870
+ As,
2808
2871
  {
2809
2872
  isInCandidateSelection: i,
2810
2873
  placeholderRectangle: ts(t)
2811
2874
  }
2812
2875
  ),
2813
- r.code && /* @__PURE__ */ h(gs, { cssTop: 50, isInCandidateSelection: i, children: a[r.code] }),
2814
- /* @__PURE__ */ h(us, { customControlEvent: _e.CONTROL, isSwitchCameraDisabled: i })
2815
- ] }) : /* @__PURE__ */ h(Ns, { cameraHeight: t == null ? void 0 : t.height, cameraWidth: t == null ? void 0 : t.width, state: e });
2876
+ r.code && /* @__PURE__ */ d(gs, { cssTop: 50, isInCandidateSelection: i, children: a[r.code] }),
2877
+ /* @__PURE__ */ d(us, { customControlEvent: _e.CONTROL, isSwitchCameraDisabled: i })
2878
+ ] }) : /* @__PURE__ */ d(ks, { cameraHeight: t == null ? void 0 : t.height, cameraWidth: t == null ? void 0 : t.width, state: e });
2816
2879
  }
2817
- const Ps = (e) => {
2880
+ const Ls = (e) => {
2818
2881
  var l, u;
2819
- const t = { ...Aa, ...e == null ? void 0 : e.instructions }, n = {
2820
- [Y.LOADING]: { ...sr.loading, ...(l = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : l.loading },
2821
- [Y.WAITING]: { ...sr.waiting, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.waiting }
2822
- }, r = (e == null ? void 0 : e.placeholder) ?? Ra, o = (e == null ? void 0 : e.backdropColor) ?? Oa, i = (e == null ? void 0 : e.showDetectionLayer) ?? !1, a = (e == null ? void 0 : e.showCameraButtons) ?? !1, s = Ka(e == null ? void 0 : e.theme);
2882
+ const t = { ...Ra, ...e == null ? void 0 : e.instructions }, n = {
2883
+ [j.LOADING]: { ...lr.loading, ...(l = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : l.loading },
2884
+ [j.WAITING]: { ...lr.waiting, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.waiting }
2885
+ }, r = (e == null ? void 0 : e.placeholder) ?? Pa, o = (e == null ? void 0 : e.backdropColor) ?? Ia, i = (e == null ? void 0 : e.showDetectionLayer) ?? !1, a = (e == null ? void 0 : e.showCameraButtons) ?? !1, s = Ja(e == null ? void 0 : e.theme);
2823
2886
  return {
2824
2887
  instructions: t,
2825
2888
  appStateInstructions: n,
@@ -2830,8 +2893,8 @@ const Ps = (e) => {
2830
2893
  theme: s
2831
2894
  };
2832
2895
  };
2833
- function Ls({ props: e }) {
2834
- const t = Za(_e.VIDEO_ELEMENT_SIZE);
2835
- return /* @__PURE__ */ h(ja, { uiProps: Ps(e), videoElementSize: t, children: /* @__PURE__ */ h(Rs, {}) });
2896
+ function Ms({ props: e }) {
2897
+ const t = Ya(_e.VIDEO_ELEMENT_SIZE);
2898
+ return /* @__PURE__ */ d(Ga, { uiProps: Ls(e), videoElementSize: t, children: /* @__PURE__ */ d(Ps, {}) });
2836
2899
  }
2837
- Lo(Ls, "x-dot-palm-capture-ui", ["props"]);
2900
+ Mo(Ms, "x-dot-palm-capture-ui", ["props"]);