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