@ahmed_hani/dot-auto-capture-ui 7.4.0 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -7
- package/document.mjs +607 -584
- package/document.umd.js +35 -24
- package/face.mjs +410 -379
- package/face.umd.js +28 -17
- package/magnifeye-liveness.mjs +457 -430
- package/magnifeye-liveness.umd.js +36 -26
- package/multi-range-liveness.mjs +2953 -0
- package/multi-range-liveness.umd.js +257 -0
- package/package.json +14 -9
- package/palm.mjs +750 -687
- package/palm.umd.js +36 -25
- package/smile-liveness.mjs +584 -558
- package/smile-liveness.umd.js +44 -33
- package/ui/src/types/multi-range.d.ts +28 -0
- package/ui/src/types/palm.d.ts +2 -1
- package/ui-common/src/types/common.d.ts +14 -4
- package/ui-common/src/types/events/common.d.ts +41 -0
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/multi-range.d.ts +16 -0
- package/ui-common/src/types/eye-gaze.d.ts +1 -0
- package/ui-common/src/types/index.d.ts +1 -0
- package/ui-common/src/types/magnifeye.d.ts +1 -0
- package/ui-common/src/types/multi-range.d.ts +37 -0
- package/ui-common/src/types/smile.d.ts +1 -0
- package/tsconfig.production.json +0 -22
package/face.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Co = Object.defineProperty;
|
|
2
2
|
var wo = (e, t, n) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var et = (e, t, n) => wo(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
var qe, v,
|
|
4
|
+
var qe, v, dr, fe, $n, hr, _r, pr, on, Ht, Ft, mr, je = {}, gr = [], So = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
|
|
5
5
|
function X(e, t) {
|
|
6
6
|
for (var n in t) e[n] = t[n];
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function an(e) {
|
|
10
10
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
11
11
|
}
|
|
12
12
|
function M(e, t, n) {
|
|
@@ -16,7 +16,7 @@ function M(e, t, n) {
|
|
|
16
16
|
return Be(e, a, r, o, null);
|
|
17
17
|
}
|
|
18
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 ?? ++
|
|
19
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++dr, __i: -1, __u: 0 };
|
|
20
20
|
return o == null && v.vnode != null && v.vnode(i), i;
|
|
21
21
|
}
|
|
22
22
|
function Eo() {
|
|
@@ -25,7 +25,7 @@ function Eo() {
|
|
|
25
25
|
function j(e) {
|
|
26
26
|
return e.children;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function q(e, t) {
|
|
29
29
|
this.props = e, this.context = t;
|
|
30
30
|
}
|
|
31
31
|
function be(e, t) {
|
|
@@ -33,38 +33,38 @@ function be(e, t) {
|
|
|
33
33
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
34
34
|
return typeof e.type == "function" ? be(e) : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function yr(e) {
|
|
37
37
|
var t, n;
|
|
38
38
|
if ((e = e.__) != null && e.__c != null) {
|
|
39
39
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
40
40
|
e.__e = e.__c.base = n.__e;
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return yr(e);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function Ut(e) {
|
|
47
|
-
(!e.__d && (e.__d = !0) && fe.push(e) && !ht.__r++ ||
|
|
47
|
+
(!e.__d && (e.__d = !0) && fe.push(e) && !ht.__r++ || $n != v.debounceRendering) && (($n = v.debounceRendering) || hr)(ht);
|
|
48
48
|
}
|
|
49
49
|
function ht() {
|
|
50
|
-
for (var e, t, n, r, o, i, a, c = 1; fe.length; ) fe.length > c && fe.sort(
|
|
50
|
+
for (var e, t, n, r, o, i, a, c = 1; fe.length; ) fe.length > c && fe.sort(_r), 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), sn(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, wr(i, n, a), n.__e != o && yr(n)));
|
|
51
51
|
ht.__r = 0;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
var l, _, h, g, S, $, m = r && r.__k ||
|
|
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, $ =
|
|
53
|
+
function vr(e, t, n, r, o, i, a, c, s, u, d) {
|
|
54
|
+
var l, _, h, g, S, $, m = r && r.__k || gr, 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, $ = sn(e, h, _, o, i, a, c, s, u, d), g = h.__e, h.ref && _.ref != h.ref && (_.ref && cn(_.ref, null, h), d.push(h.ref, h.__c || g, h)), S == null && g != null && (S = g), 4 & h.__u || _.__k === h.__k ? s = Cr(h, s, e) : typeof h.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), h.__u &= -7);
|
|
56
56
|
return n.__e = S, s;
|
|
57
57
|
}
|
|
58
58
|
function bo(e, t, n, r, o) {
|
|
59
59
|
var i, a, c, s, u, d = n.length, l = d, _ = 0;
|
|
60
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)),
|
|
61
|
+
if (l) for (i = 0; i < d; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = be(c)), Er(c, c));
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Cr(e, t, n) {
|
|
65
65
|
var r, o;
|
|
66
66
|
if (typeof e.type == "function") {
|
|
67
|
-
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t =
|
|
67
|
+
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Cr(r[o], t, n));
|
|
68
68
|
return t;
|
|
69
69
|
}
|
|
70
70
|
e.__e != t && (t && e.type && !n.contains(t) && (t = be(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
@@ -93,17 +93,17 @@ function $o(e, t, n, r) {
|
|
|
93
93
|
}
|
|
94
94
|
return -1;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function kn(e, t, n) {
|
|
97
97
|
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || So.test(t) ? n : n + "px";
|
|
98
98
|
}
|
|
99
99
|
function tt(e, t, n, r, o) {
|
|
100
100
|
var i;
|
|
101
101
|
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
102
102
|
else {
|
|
103
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n ||
|
|
104
|
-
if (n) for (t in n) r && n[t] == r[t] ||
|
|
103
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || kn(e.style, t, "");
|
|
104
|
+
if (n) for (t in n) r && n[t] == r[t] || kn(e.style, t, n[t]);
|
|
105
105
|
}
|
|
106
|
-
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(
|
|
106
|
+
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = on, e.addEventListener(t, i ? Ft : Ht, i)) : e.removeEventListener(t, i ? Ft : Ht, i);
|
|
107
107
|
else {
|
|
108
108
|
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
109
109
|
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
@@ -114,22 +114,22 @@ function tt(e, t, n, r, o) {
|
|
|
114
114
|
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function On(e) {
|
|
118
118
|
return function(t) {
|
|
119
119
|
if (this.l) {
|
|
120
120
|
var n = this.l[t.type + e];
|
|
121
|
-
if (t.t == null) t.t =
|
|
121
|
+
if (t.t == null) t.t = on++;
|
|
122
122
|
else if (t.t < n.u) return;
|
|
123
123
|
return n(v.event ? v.event(t) : t);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function sn(e, t, n, r, o, i, a, c, s, u) {
|
|
128
128
|
var d, l, _, h, g, S, $, m, p, k, E, N, w, y, H, U, Ae, B = t.type;
|
|
129
129
|
if (t.constructor != null) return null;
|
|
130
130
|
128 & n.__u && (s = !!(32 & n.__u), i = [c = t.__e = n.__e]), (d = v.__b) && d(t);
|
|
131
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
|
|
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 q(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
133
|
else {
|
|
134
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
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) {
|
|
@@ -148,20 +148,20 @@ function an(e, t, n, r, o, i, a, c, s, u) {
|
|
|
148
148
|
} else do
|
|
149
149
|
l.__d = !1, w && w(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
150
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 =
|
|
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 = Sr(d.props.children)), c = vr(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
152
|
} catch (le) {
|
|
153
153
|
if (t.__v = null, s || i != null) if (le.then) {
|
|
154
154
|
for (t.__u |= s ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
|
|
155
155
|
i[i.indexOf(c)] = null, t.__e = c;
|
|
156
|
-
} else for (Ae = i.length; Ae--; )
|
|
156
|
+
} else for (Ae = i.length; Ae--; ) an(i[Ae]);
|
|
157
157
|
else t.__e = n.__e, t.__k = n.__k;
|
|
158
158
|
v.__e(le, t, n);
|
|
159
159
|
}
|
|
160
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
161
|
return (d = v.diffed) && d(t), 128 & t.__u ? void 0 : c;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
for (var r = 0; r < n.length; r++)
|
|
163
|
+
function wr(e, t, n) {
|
|
164
|
+
for (var r = 0; r < n.length; r++) cn(n[r], n[++r], n[++r]);
|
|
165
165
|
v.__c && v.__c(t, e), e.some(function(o) {
|
|
166
166
|
try {
|
|
167
167
|
e = o.__h, o.__h = [], e.some(function(i) {
|
|
@@ -172,8 +172,8 @@ function vr(e, t, n) {
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ze(e) ? e.map(
|
|
175
|
+
function Sr(e) {
|
|
176
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ze(e) ? e.map(Sr) : X({}, e);
|
|
177
177
|
}
|
|
178
178
|
function ko(e, t, n, r, o, i, a, c, s) {
|
|
179
179
|
var u, d, l, _, h, g, S, $ = n.props, m = t.props, p = t.type;
|
|
@@ -199,12 +199,12 @@ function ko(e, t, n, r, o, i, a, c, s) {
|
|
|
199
199
|
}
|
|
200
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
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 = ""),
|
|
202
|
+
else if (l && (e.innerHTML = ""), vr(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--; ) an(i[u]);
|
|
203
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
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function cn(e, t, n) {
|
|
208
208
|
try {
|
|
209
209
|
if (typeof e == "function") {
|
|
210
210
|
var r = typeof e.__u == "function";
|
|
@@ -214,9 +214,9 @@ function sn(e, t, n) {
|
|
|
214
214
|
v.__e(o, n);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Er(e, t, n) {
|
|
218
218
|
var r, o;
|
|
219
|
-
if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e ||
|
|
219
|
+
if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || cn(r, null, t)), (r = e.__c) != null) {
|
|
220
220
|
if (r.componentWillUnmount) try {
|
|
221
221
|
r.componentWillUnmount();
|
|
222
222
|
} catch (i) {
|
|
@@ -224,25 +224,25 @@ function wr(e, t, n) {
|
|
|
224
224
|
}
|
|
225
225
|
r.base = r.__P = null;
|
|
226
226
|
}
|
|
227
|
-
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] &&
|
|
228
|
-
n ||
|
|
227
|
+
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Er(r[o], t, n || typeof e.type != "function");
|
|
228
|
+
n || an(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
229
229
|
}
|
|
230
230
|
function Oo(e, t, n) {
|
|
231
231
|
return this.constructor(e, n);
|
|
232
232
|
}
|
|
233
233
|
function se(e, t, n) {
|
|
234
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 = [],
|
|
235
|
+
t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], sn(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), wr(i, e, a);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
se(e, t,
|
|
237
|
+
function ln(e, t) {
|
|
238
|
+
se(e, t, ln);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function un(e, t, n) {
|
|
241
241
|
var r, o, i, a, c = X({}, e.props);
|
|
242
242
|
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && a != null ? a[i] : t[i];
|
|
243
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
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function br(e) {
|
|
246
246
|
function t(n) {
|
|
247
247
|
var r, o;
|
|
248
248
|
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -261,27 +261,27 @@ function Sr(e) {
|
|
|
261
261
|
};
|
|
262
262
|
}), n.children;
|
|
263
263
|
}
|
|
264
|
-
return t.__c = "__cC" +
|
|
264
|
+
return t.__c = "__cC" + mr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
|
|
265
265
|
return n.children(r);
|
|
266
266
|
}).contextType = t, t;
|
|
267
267
|
}
|
|
268
|
-
qe =
|
|
268
|
+
qe = gr.slice, v = { __e: function(e, t, n, r) {
|
|
269
269
|
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
270
270
|
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
|
|
271
271
|
} catch (c) {
|
|
272
272
|
e = c;
|
|
273
273
|
}
|
|
274
274
|
throw e;
|
|
275
|
-
} },
|
|
275
|
+
} }, dr = 0, q.prototype.setState = function(e, t) {
|
|
276
276
|
var n;
|
|
277
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
|
-
},
|
|
278
|
+
}, q.prototype.forceUpdate = function(e) {
|
|
279
279
|
this.__v && (this.__e = !0, e && this.__h.push(e), Ut(this));
|
|
280
|
-
},
|
|
280
|
+
}, q.prototype.render = j, fe = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, _r = function(e, t) {
|
|
281
281
|
return e.__v.__b - t.__v.__b;
|
|
282
|
-
}, ht.__r = 0,
|
|
283
|
-
function
|
|
284
|
-
return (
|
|
282
|
+
}, ht.__r = 0, pr = /(PointerCapture)$|Capture$/i, on = 0, Ht = On(!1), Ft = On(!0), mr = 0;
|
|
283
|
+
function fn() {
|
|
284
|
+
return (fn = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
285
|
for (var t = 1; t < arguments.length; t++) {
|
|
286
286
|
var n = arguments[t];
|
|
287
287
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
@@ -300,40 +300,40 @@ function xo(e) {
|
|
|
300
300
|
for (a = 0; a < s.length; a++) o.indexOf(i = s[a]) >= 0 || (c[i] = r[i]);
|
|
301
301
|
return c;
|
|
302
302
|
}(e, No);
|
|
303
|
-
return
|
|
303
|
+
return un(t, n);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function To() {
|
|
306
306
|
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
307
|
-
this.dispatchEvent(e), this._vdom = M(xo,
|
|
307
|
+
this.dispatchEvent(e), this._vdom = M(xo, fn({}, this._props, { context: e.detail.context }), function t(n, r) {
|
|
308
308
|
if (n.nodeType === 3) return n.data;
|
|
309
309
|
if (n.nodeType !== 1) return null;
|
|
310
310
|
var o = [], i = {}, a = 0, c = n.attributes, s = n.childNodes;
|
|
311
|
-
for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[
|
|
311
|
+
for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[$r(c[a].name)] = c[a].value);
|
|
312
312
|
for (a = s.length; a--; ) {
|
|
313
313
|
var u = t(s[a], null), d = s[a].slot;
|
|
314
|
-
d ? i[d] = M(
|
|
314
|
+
d ? i[d] = M(Nn, { name: d }, u) : o[a] = u;
|
|
315
315
|
}
|
|
316
|
-
var l = r ? M(
|
|
316
|
+
var l = r ? M(Nn, null, o) : o;
|
|
317
317
|
return M(r || n.nodeName.toLowerCase(), i, l);
|
|
318
|
-
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ?
|
|
318
|
+
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? ln : se)(this._vdom, this._root);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function $r(e) {
|
|
321
321
|
return e.replace(/-(\w)/g, function(t, n) {
|
|
322
322
|
return n ? n.toUpperCase() : "";
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Io(e, t, n) {
|
|
326
326
|
if (this._vdom) {
|
|
327
327
|
var r = {};
|
|
328
|
-
r[e] = n = n ?? void 0, r[
|
|
328
|
+
r[e] = n = n ?? void 0, r[$r(e)] = n, this._vdom = un(this._vdom, r), se(this._vdom, this._root);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
function Ro() {
|
|
332
332
|
se(this._vdom = null, this._root);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Nn(e, t) {
|
|
335
335
|
var n = this;
|
|
336
|
-
return M("slot",
|
|
336
|
+
return M("slot", fn({}, e, { ref: function(r) {
|
|
337
337
|
r ? (n.ref = r, n._listener || (n._listener = function(o) {
|
|
338
338
|
o.stopPropagation(), o.detail.context = t;
|
|
339
339
|
}, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
|
|
@@ -344,7 +344,7 @@ function Ao(e, t, n, r) {
|
|
|
344
344
|
var i = Reflect.construct(HTMLElement, [], o);
|
|
345
345
|
return i._vdomComponent = e, i._root = i, i;
|
|
346
346
|
}
|
|
347
|
-
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback =
|
|
347
|
+
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = To, o.prototype.attributeChangedCallback = Io, o.prototype.disconnectedCallback = Ro, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
|
|
348
348
|
Object.defineProperty(o.prototype, i, { get: function() {
|
|
349
349
|
return this._vdom.props[i];
|
|
350
350
|
}, set: function(a) {
|
|
@@ -363,12 +363,18 @@ function f(e, t, n, r, o, i) {
|
|
|
363
363
|
if (typeof e == "function" && (a = e.defaultProps)) for (c in a) s[c] === void 0 && (s[c] = a[c]);
|
|
364
364
|
return v.vnode && v.vnode(u), u;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const xn = {
|
|
367
367
|
SWITCH_CAMERA: "switch-camera",
|
|
368
368
|
TOGGLE_MIRROR: "toggle-mirror"
|
|
369
369
|
};
|
|
370
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
|
|
371
|
+
const V = {
|
|
372
|
+
LOADING: "LOADING",
|
|
373
|
+
ERROR: "ERROR",
|
|
374
|
+
WAITING: "WAITING",
|
|
375
|
+
RUNNING: "RUNNING",
|
|
376
|
+
COMPLETE: "COMPLETE"
|
|
377
|
+
}, Tn = {
|
|
372
378
|
EYE_NOT_PRESENT: "eye_not_present"
|
|
373
379
|
}, L = {
|
|
374
380
|
CANDIDATE_SELECTION: "candidate_selection",
|
|
@@ -380,32 +386,27 @@ const Nn = {
|
|
|
380
386
|
BRIGHTNESS_TOO_LOW: "brightness_too_low",
|
|
381
387
|
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
|
|
382
388
|
DEVICE_PITCHED: "device_pitched",
|
|
383
|
-
LEFT_EYE_NOT_PRESENT: `left_${
|
|
384
|
-
RIGHT_EYE_NOT_PRESENT: `right_${
|
|
389
|
+
LEFT_EYE_NOT_PRESENT: `left_${Tn.EYE_NOT_PRESENT}`,
|
|
390
|
+
RIGHT_EYE_NOT_PRESENT: `right_${Tn.EYE_NOT_PRESENT}`,
|
|
385
391
|
MOUTH_NOT_PRESENT: "mouth_not_present",
|
|
386
392
|
MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
|
|
387
393
|
MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
|
|
388
|
-
}, Y = {
|
|
389
|
-
LOADING: "LOADING",
|
|
390
|
-
ERROR: "ERROR",
|
|
391
|
-
WAITING: "WAITING",
|
|
392
|
-
RUNNING: "RUNNING"
|
|
393
394
|
};
|
|
394
|
-
var ce,
|
|
395
|
-
function
|
|
396
|
-
|
|
397
|
-
var n =
|
|
395
|
+
var ce, T, It, In, $e = 0, kr = [], I = v, Rn = I.__b, An = I.__r, Ln = I.diffed, Pn = I.__c, Dn = I.unmount, Mn = I.__;
|
|
396
|
+
function Te(e, t) {
|
|
397
|
+
I.__h && I.__h(T, e, $e || t), $e = 0;
|
|
398
|
+
var n = T.__H || (T.__H = { __: [], __h: [] });
|
|
398
399
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
399
400
|
}
|
|
400
401
|
function z(e) {
|
|
401
|
-
return $e = 1,
|
|
402
|
+
return $e = 1, dn(xr, e);
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
var r =
|
|
405
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
404
|
+
function dn(e, t, n) {
|
|
405
|
+
var r = Te(ce++, 2);
|
|
406
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xr(void 0, t), function(c) {
|
|
406
407
|
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, c);
|
|
407
408
|
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
408
|
-
}], r.__c =
|
|
409
|
+
}], r.__c = T, !T.__f)) {
|
|
409
410
|
var o = function(c, s, u) {
|
|
410
411
|
if (!r.__c.__H) return !0;
|
|
411
412
|
var d = r.__c.__H.__.filter(function(_) {
|
|
@@ -422,33 +423,33 @@ function fn(e, t, n) {
|
|
|
422
423
|
}
|
|
423
424
|
}), i && i.call(this, c, s, u) || l;
|
|
424
425
|
};
|
|
425
|
-
|
|
426
|
-
var i =
|
|
427
|
-
|
|
426
|
+
T.__f = !0;
|
|
427
|
+
var i = T.shouldComponentUpdate, a = T.componentWillUpdate;
|
|
428
|
+
T.componentWillUpdate = function(c, s, u) {
|
|
428
429
|
if (this.__e) {
|
|
429
430
|
var d = i;
|
|
430
431
|
i = void 0, o(c, s, u), i = d;
|
|
431
432
|
}
|
|
432
433
|
a && a.call(this, c, s, u);
|
|
433
|
-
},
|
|
434
|
+
}, T.shouldComponentUpdate = o;
|
|
434
435
|
}
|
|
435
436
|
return r.__N || r.__;
|
|
436
437
|
}
|
|
437
438
|
function re(e, t) {
|
|
438
|
-
var n =
|
|
439
|
-
!
|
|
439
|
+
var n = Te(ce++, 3);
|
|
440
|
+
!I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, T.__H.__h.push(n));
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
-
var n =
|
|
443
|
-
!
|
|
442
|
+
function Ie(e, t) {
|
|
443
|
+
var n = Te(ce++, 4);
|
|
444
|
+
!I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, T.__h.push(n));
|
|
444
445
|
}
|
|
445
446
|
function Ye(e) {
|
|
446
447
|
return $e = 5, ne(function() {
|
|
447
448
|
return { current: e };
|
|
448
449
|
}, []);
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
-
$e = 6,
|
|
451
|
+
function Or(e, t, n) {
|
|
452
|
+
$e = 6, Ie(function() {
|
|
452
453
|
if (typeof e == "function") {
|
|
453
454
|
var r = e(t());
|
|
454
455
|
return function() {
|
|
@@ -461,8 +462,8 @@ function $r(e, t, n) {
|
|
|
461
462
|
}, n == null ? n : n.concat(e));
|
|
462
463
|
}
|
|
463
464
|
function ne(e, t) {
|
|
464
|
-
var n =
|
|
465
|
-
return
|
|
465
|
+
var n = Te(ce++, 7);
|
|
466
|
+
return hn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
466
467
|
}
|
|
467
468
|
function ge(e, t) {
|
|
468
469
|
return $e = 8, ne(function() {
|
|
@@ -470,45 +471,45 @@ function ge(e, t) {
|
|
|
470
471
|
}, t);
|
|
471
472
|
}
|
|
472
473
|
function Xe(e) {
|
|
473
|
-
var t =
|
|
474
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
474
|
+
var t = T.context[e.__c], n = Te(ce++, 9);
|
|
475
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(T)), t.props.value) : e.__;
|
|
475
476
|
}
|
|
476
477
|
function _t(e, t) {
|
|
477
|
-
|
|
478
|
+
I.useDebugValue && I.useDebugValue(t ? t(e) : e);
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
-
var e =
|
|
480
|
+
function Nr() {
|
|
481
|
+
var e = Te(ce++, 11);
|
|
481
482
|
if (!e.__) {
|
|
482
|
-
for (var t =
|
|
483
|
+
for (var t = T.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
483
484
|
var n = t.__m || (t.__m = [0, 0]);
|
|
484
485
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
485
486
|
}
|
|
486
487
|
return e.__;
|
|
487
488
|
}
|
|
488
489
|
function Po() {
|
|
489
|
-
for (var e; e =
|
|
490
|
+
for (var e; e = kr.shift(); ) if (e.__P && e.__H) try {
|
|
490
491
|
e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
|
|
491
492
|
} catch (t) {
|
|
492
|
-
e.__H.__h = [],
|
|
493
|
+
e.__H.__h = [], I.__e(t, e.__v);
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
},
|
|
498
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
499
|
-
},
|
|
500
|
-
|
|
501
|
-
var t = (
|
|
502
|
-
t && (
|
|
496
|
+
I.__b = function(e) {
|
|
497
|
+
T = null, Rn && Rn(e);
|
|
498
|
+
}, I.__ = function(e, t) {
|
|
499
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t);
|
|
500
|
+
}, I.__r = function(e) {
|
|
501
|
+
An && An(e), ce = 0;
|
|
502
|
+
var t = (T = e.__c).__H;
|
|
503
|
+
t && (It === T ? (t.__h = [], T.__h = [], t.__.forEach(function(n) {
|
|
503
504
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
504
|
-
})) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], ce = 0)),
|
|
505
|
-
},
|
|
506
|
-
|
|
505
|
+
})) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], ce = 0)), It = T;
|
|
506
|
+
}, I.diffed = function(e) {
|
|
507
|
+
Ln && Ln(e);
|
|
507
508
|
var t = e.__c;
|
|
508
|
-
t && t.__H && (t.__H.__h.length && (
|
|
509
|
+
t && t.__H && (t.__H.__h.length && (kr.push(t) !== 1 && In === I.requestAnimationFrame || ((In = I.requestAnimationFrame) || Do)(Po)), t.__H.__.forEach(function(n) {
|
|
509
510
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
510
|
-
})),
|
|
511
|
-
},
|
|
511
|
+
})), It = T = null;
|
|
512
|
+
}, I.__c = function(e, t) {
|
|
512
513
|
t.some(function(n) {
|
|
513
514
|
try {
|
|
514
515
|
n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
|
|
@@ -517,11 +518,11 @@ T.__b = function(e) {
|
|
|
517
518
|
} catch (r) {
|
|
518
519
|
t.some(function(o) {
|
|
519
520
|
o.__h && (o.__h = []);
|
|
520
|
-
}), t = [],
|
|
521
|
+
}), t = [], I.__e(r, n.__v);
|
|
521
522
|
}
|
|
522
|
-
}),
|
|
523
|
-
},
|
|
524
|
-
|
|
523
|
+
}), Pn && Pn(e, t);
|
|
524
|
+
}, I.unmount = function(e) {
|
|
525
|
+
Dn && Dn(e);
|
|
525
526
|
var t, n = e.__c;
|
|
526
527
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
527
528
|
try {
|
|
@@ -529,29 +530,29 @@ T.__b = function(e) {
|
|
|
529
530
|
} catch (o) {
|
|
530
531
|
t = o;
|
|
531
532
|
}
|
|
532
|
-
}), n.__H = void 0, t &&
|
|
533
|
+
}), n.__H = void 0, t && I.__e(t, n.__v));
|
|
533
534
|
};
|
|
534
|
-
var
|
|
535
|
+
var Hn = typeof requestAnimationFrame == "function";
|
|
535
536
|
function Do(e) {
|
|
536
537
|
var t, n = function() {
|
|
537
|
-
clearTimeout(r),
|
|
538
|
+
clearTimeout(r), Hn && cancelAnimationFrame(t), setTimeout(e);
|
|
538
539
|
}, r = setTimeout(n, 100);
|
|
539
|
-
|
|
540
|
+
Hn && (t = requestAnimationFrame(n));
|
|
540
541
|
}
|
|
541
542
|
function at(e) {
|
|
542
|
-
var t =
|
|
543
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
543
|
+
var t = T, n = e.__c;
|
|
544
|
+
typeof n == "function" && (e.__c = void 0, n()), T = t;
|
|
544
545
|
}
|
|
545
546
|
function Bt(e) {
|
|
546
|
-
var t =
|
|
547
|
-
e.__c = e.__(),
|
|
547
|
+
var t = T;
|
|
548
|
+
e.__c = e.__(), T = t;
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
+
function hn(e, t) {
|
|
550
551
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
551
552
|
return n !== e[r];
|
|
552
553
|
});
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
+
function xr(e, t) {
|
|
555
556
|
return typeof t == "function" ? t(e) : t;
|
|
556
557
|
}
|
|
557
558
|
var P = function() {
|
|
@@ -580,7 +581,7 @@ var Ho = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
580
581
|
}
|
|
581
582
|
/* Z+1 */
|
|
582
583
|
);
|
|
583
|
-
function
|
|
584
|
+
function Tr(e, t) {
|
|
584
585
|
for (var n in t) e[n] = t[n];
|
|
585
586
|
return e;
|
|
586
587
|
}
|
|
@@ -589,9 +590,9 @@ function Wt(e, t) {
|
|
|
589
590
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
590
591
|
return !1;
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
+
function Ir(e, t) {
|
|
593
594
|
var n = t(), r = z({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
594
|
-
return
|
|
595
|
+
return Ie(function() {
|
|
595
596
|
o.__ = n, o.u = t, Rt(o) && i({ t: o });
|
|
596
597
|
}, [e, n, t]), re(function() {
|
|
597
598
|
return Rt(o) && i({ t: o }), e(function() {
|
|
@@ -608,16 +609,16 @@ function Rt(e) {
|
|
|
608
609
|
return !0;
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
+
function Rr(e) {
|
|
612
613
|
e();
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function Ar(e) {
|
|
615
616
|
return e;
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
return [!1,
|
|
618
|
+
function Lr() {
|
|
619
|
+
return [!1, Rr];
|
|
619
620
|
}
|
|
620
|
-
var
|
|
621
|
+
var Pr = Ie;
|
|
621
622
|
function zt(e, t) {
|
|
622
623
|
this.props = e, this.context = t;
|
|
623
624
|
}
|
|
@@ -631,24 +632,24 @@ function Uo(e, t) {
|
|
|
631
632
|
}
|
|
632
633
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
633
634
|
}
|
|
634
|
-
(zt.prototype = new
|
|
635
|
+
(zt.prototype = new q()).isPureReactComponent = !0, zt.prototype.shouldComponentUpdate = function(e, t) {
|
|
635
636
|
return Wt(this.props, e) || Wt(this.state, t);
|
|
636
637
|
};
|
|
637
|
-
var
|
|
638
|
+
var Fn = v.__b;
|
|
638
639
|
v.__b = function(e) {
|
|
639
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
640
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Fn && Fn(e);
|
|
640
641
|
};
|
|
641
642
|
var Bo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
642
643
|
function Wo(e) {
|
|
643
644
|
function t(n) {
|
|
644
|
-
var r =
|
|
645
|
+
var r = Tr({}, n);
|
|
645
646
|
return delete r.ref, e(r, n.ref || null);
|
|
646
647
|
}
|
|
647
648
|
return t.$$typeof = Bo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
648
649
|
}
|
|
649
|
-
var
|
|
650
|
+
var Un = function(e, t) {
|
|
650
651
|
return e == null ? null : te(te(e).map(t));
|
|
651
|
-
}, zo = { map:
|
|
652
|
+
}, zo = { map: Un, forEach: Un, count: function(e) {
|
|
652
653
|
return e ? te(e).length : 0;
|
|
653
654
|
}, only: function(e) {
|
|
654
655
|
var t = te(e);
|
|
@@ -661,23 +662,23 @@ v.__e = function(e, t, n, r) {
|
|
|
661
662
|
}
|
|
662
663
|
jo(e, t, n, r);
|
|
663
664
|
};
|
|
664
|
-
var
|
|
665
|
-
function
|
|
665
|
+
var Bn = v.unmount;
|
|
666
|
+
function Dr(e, t, n) {
|
|
666
667
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
667
668
|
typeof r.__c == "function" && r.__c();
|
|
668
|
-
}), e.__c.__H = null), (e =
|
|
669
|
-
return
|
|
669
|
+
}), e.__c.__H = null), (e = Tr({}, 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) {
|
|
670
|
+
return Dr(r, t, n);
|
|
670
671
|
})), e;
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function Mr(e, t, n) {
|
|
673
674
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
674
|
-
return
|
|
675
|
+
return Mr(r, t, n);
|
|
675
676
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
676
677
|
}
|
|
677
678
|
function st() {
|
|
678
679
|
this.__u = 0, this.o = null, this.__b = null;
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
+
function Hr(e) {
|
|
681
682
|
var t = e.__.__c;
|
|
682
683
|
return t && t.__a && t.__a(e);
|
|
683
684
|
}
|
|
@@ -699,11 +700,11 @@ function He() {
|
|
|
699
700
|
}
|
|
700
701
|
v.unmount = function(e) {
|
|
701
702
|
var t = e.__c;
|
|
702
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
703
|
-
}, (st.prototype = new
|
|
703
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Bn && Bn(e);
|
|
704
|
+
}, (st.prototype = new q()).__c = function(e, t) {
|
|
704
705
|
var n = t.__c, r = this;
|
|
705
706
|
r.o == null && (r.o = []), r.o.push(n);
|
|
706
|
-
var o =
|
|
707
|
+
var o = Hr(r.__v), i = !1, a = function() {
|
|
707
708
|
i || (i = !0, n.__R = null, o ? o(c) : c());
|
|
708
709
|
};
|
|
709
710
|
n.__R = a;
|
|
@@ -711,7 +712,7 @@ v.unmount = function(e) {
|
|
|
711
712
|
if (!--r.__u) {
|
|
712
713
|
if (r.state.__a) {
|
|
713
714
|
var s = r.state.__a;
|
|
714
|
-
r.__v.__k[0] =
|
|
715
|
+
r.__v.__k[0] = Mr(s, s.__c.__P, s.__c.__O);
|
|
715
716
|
}
|
|
716
717
|
var u;
|
|
717
718
|
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
|
|
@@ -724,14 +725,14 @@ v.unmount = function(e) {
|
|
|
724
725
|
if (this.__b) {
|
|
725
726
|
if (this.__v.__k) {
|
|
726
727
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
727
|
-
this.__v.__k[0] =
|
|
728
|
+
this.__v.__k[0] = Dr(this.__b, n, r.__O = r.__P);
|
|
728
729
|
}
|
|
729
730
|
this.__b = null;
|
|
730
731
|
}
|
|
731
732
|
var o = t.__a && M(j, null, e.fallback);
|
|
732
733
|
return o && (o.__u &= -33), [M(j, null, t.__a ? null : e.children), o];
|
|
733
734
|
};
|
|
734
|
-
var
|
|
735
|
+
var Wn = function(e, t, n) {
|
|
735
736
|
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
737
|
for (; n.length > 3; ) n.pop()();
|
|
737
738
|
if (n[1] < n[0]) break;
|
|
@@ -765,11 +766,11 @@ function Zo(e, t) {
|
|
|
765
766
|
var n = M(qo, { __v: e, h: t });
|
|
766
767
|
return n.containerInfo = t, n;
|
|
767
768
|
}
|
|
768
|
-
(He.prototype = new
|
|
769
|
-
var t = this, n =
|
|
769
|
+
(He.prototype = new q()).__a = function(e) {
|
|
770
|
+
var t = this, n = Hr(t.__v), r = t.l.get(e);
|
|
770
771
|
return r[0]++, function(o) {
|
|
771
772
|
var i = function() {
|
|
772
|
-
t.props.revealOrder ? (r.push(o),
|
|
773
|
+
t.props.revealOrder ? (r.push(o), Wn(t, e, r)) : o();
|
|
773
774
|
};
|
|
774
775
|
n ? n(i) : i();
|
|
775
776
|
};
|
|
@@ -782,26 +783,26 @@ function Zo(e, t) {
|
|
|
782
783
|
}, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
|
|
783
784
|
var e = this;
|
|
784
785
|
this.l.forEach(function(t, n) {
|
|
785
|
-
|
|
786
|
+
Wn(e, n, t);
|
|
786
787
|
});
|
|
787
788
|
};
|
|
788
|
-
var
|
|
789
|
+
var Fr = 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
790
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
790
791
|
};
|
|
791
792
|
function ei(e, t, n) {
|
|
792
793
|
return t.__k == null && (t.textContent = ""), se(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
793
794
|
}
|
|
794
795
|
function ti(e, t, n) {
|
|
795
|
-
return
|
|
796
|
+
return ln(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
796
797
|
}
|
|
797
|
-
|
|
798
|
-
Object.defineProperty(
|
|
798
|
+
q.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
799
|
+
Object.defineProperty(q.prototype, e, { configurable: !0, get: function() {
|
|
799
800
|
return this["UNSAFE_" + e];
|
|
800
801
|
}, set: function(t) {
|
|
801
802
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
802
803
|
} });
|
|
803
804
|
});
|
|
804
|
-
var
|
|
805
|
+
var zn = v.event;
|
|
805
806
|
function ni() {
|
|
806
807
|
}
|
|
807
808
|
function ri() {
|
|
@@ -811,11 +812,11 @@ function oi() {
|
|
|
811
812
|
return this.defaultPrevented;
|
|
812
813
|
}
|
|
813
814
|
v.event = function(e) {
|
|
814
|
-
return
|
|
815
|
+
return zn && (e = zn(e)), e.persist = ni, e.isPropagationStopped = ri, e.isDefaultPrevented = oi, e.nativeEvent = e;
|
|
815
816
|
};
|
|
816
|
-
var
|
|
817
|
+
var _n, ii = { enumerable: !1, configurable: !0, get: function() {
|
|
817
818
|
return this.class;
|
|
818
|
-
} },
|
|
819
|
+
} }, jn = v.vnode;
|
|
819
820
|
v.vnode = function(e) {
|
|
820
821
|
typeof e.type == "string" && function(t) {
|
|
821
822
|
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
|
|
@@ -831,26 +832,26 @@ v.vnode = function(e) {
|
|
|
831
832
|
})), r == "select" && o.defaultValue != null && (o.value = te(n.children).forEach(function(u) {
|
|
832
833
|
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
833
834
|
})), 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 =
|
|
835
|
+
}(e), e.$$typeof = Fr, jn && jn(e);
|
|
835
836
|
};
|
|
836
|
-
var
|
|
837
|
+
var Gn = v.__r;
|
|
837
838
|
v.__r = function(e) {
|
|
838
|
-
|
|
839
|
+
Gn && Gn(e), _n = e.__c;
|
|
839
840
|
};
|
|
840
|
-
var
|
|
841
|
+
var Vn = v.diffed;
|
|
841
842
|
v.diffed = function(e) {
|
|
842
|
-
|
|
843
|
+
Vn && Vn(e);
|
|
843
844
|
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),
|
|
845
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), _n = null;
|
|
845
846
|
};
|
|
846
847
|
var ai = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
847
|
-
return
|
|
848
|
-
}, useCallback: ge, useContext: Xe, useDebugValue: _t, useDeferredValue:
|
|
848
|
+
return _n.__n[e.__c].props.value;
|
|
849
|
+
}, useCallback: ge, useContext: Xe, useDebugValue: _t, useDeferredValue: Ar, useEffect: re, useId: Nr, useImperativeHandle: Or, useInsertionEffect: Pr, useLayoutEffect: Ie, useMemo: ne, useReducer: dn, useRef: Ye, useState: z, useSyncExternalStore: Ir, useTransition: Lr } } };
|
|
849
850
|
function si(e) {
|
|
850
851
|
return M.bind(null, e);
|
|
851
852
|
}
|
|
852
853
|
function vt(e) {
|
|
853
|
-
return !!e && e.$$typeof ===
|
|
854
|
+
return !!e && e.$$typeof === Fr;
|
|
854
855
|
}
|
|
855
856
|
function ci(e) {
|
|
856
857
|
return vt(e) && e.type === j;
|
|
@@ -859,7 +860,7 @@ function li(e) {
|
|
|
859
860
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
860
861
|
}
|
|
861
862
|
function ui(e) {
|
|
862
|
-
return vt(e) ?
|
|
863
|
+
return vt(e) ? un.apply(null, arguments) : e;
|
|
863
864
|
}
|
|
864
865
|
function fi(e) {
|
|
865
866
|
return !!e.__k && (se(null, e), !0);
|
|
@@ -871,13 +872,13 @@ var hi = function(e, t) {
|
|
|
871
872
|
return e(t);
|
|
872
873
|
}, _i = function(e, t) {
|
|
873
874
|
return e(t);
|
|
874
|
-
}, pi = j, mi = vt, oe = { useState: z, useId:
|
|
875
|
+
}, pi = j, mi = vt, oe = { useState: z, useId: Nr, useReducer: dn, useEffect: re, useLayoutEffect: Ie, useInsertionEffect: Pr, useTransition: Lr, useDeferredValue: Ar, useSyncExternalStore: Ir, startTransition: Rr, useRef: Ye, useImperativeHandle: Or, 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: br, createFactory: si, cloneElement: ui, createRef: Eo, Fragment: j, isValidElement: vt, isElement: mi, isFragment: ci, isMemo: li, findDOMNode: di, Component: q, 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
876
|
function gi(e) {
|
|
876
877
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
877
878
|
}
|
|
878
|
-
var At,
|
|
879
|
+
var At, qn;
|
|
879
880
|
function yi() {
|
|
880
|
-
return
|
|
881
|
+
return qn || (qn = 1, At = function(t, n, r, o) {
|
|
881
882
|
var i = r ? r.call(o, t, n) : void 0;
|
|
882
883
|
if (i !== void 0)
|
|
883
884
|
return !!i;
|
|
@@ -901,11 +902,11 @@ function yi() {
|
|
|
901
902
|
}
|
|
902
903
|
var vi = yi();
|
|
903
904
|
const Ci = /* @__PURE__ */ gi(vi);
|
|
904
|
-
var x = "-ms-", We = "-moz-", O = "-webkit-",
|
|
905
|
+
var x = "-ms-", We = "-moz-", O = "-webkit-", Ur = "comm", Ct = "rule", pn = "decl", wi = "@import", Br = "@keyframes", Si = "@layer", Wr = Math.abs, mn = String.fromCharCode, jt = Object.assign;
|
|
905
906
|
function Ei(e, t) {
|
|
906
907
|
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
|
}
|
|
908
|
-
function
|
|
909
|
+
function zr(e) {
|
|
909
910
|
return e.trim();
|
|
910
911
|
}
|
|
911
912
|
function J(e, t) {
|
|
@@ -923,10 +924,10 @@ function A(e, t) {
|
|
|
923
924
|
function ke(e, t, n) {
|
|
924
925
|
return e.slice(t, n);
|
|
925
926
|
}
|
|
926
|
-
function
|
|
927
|
+
function Y(e) {
|
|
927
928
|
return e.length;
|
|
928
929
|
}
|
|
929
|
-
function
|
|
930
|
+
function jr(e) {
|
|
930
931
|
return e.length;
|
|
931
932
|
}
|
|
932
933
|
function Fe(e, t) {
|
|
@@ -935,12 +936,12 @@ function Fe(e, t) {
|
|
|
935
936
|
function bi(e, t) {
|
|
936
937
|
return e.map(t).join("");
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function Zn(e, t) {
|
|
939
940
|
return e.filter(function(n) {
|
|
940
941
|
return !J(n, t);
|
|
941
942
|
});
|
|
942
943
|
}
|
|
943
|
-
var wt = 1, Oe = 1,
|
|
944
|
+
var wt = 1, Oe = 1, Gr = 0, G = 0, R = 0, Re = "";
|
|
944
945
|
function St(e, t, n, r, o, i, a, c) {
|
|
945
946
|
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Oe, length: a, return: "", siblings: c };
|
|
946
947
|
}
|
|
@@ -958,8 +959,8 @@ function $i() {
|
|
|
958
959
|
function ki() {
|
|
959
960
|
return R = G > 0 ? A(Re, --G) : 0, Oe--, R === 10 && (Oe = 1, wt--), R;
|
|
960
961
|
}
|
|
961
|
-
function
|
|
962
|
-
return R = G <
|
|
962
|
+
function Z() {
|
|
963
|
+
return R = G < Gr ? A(Re, G++) : 0, Oe++, R === 10 && (Oe = 1, wt++), R;
|
|
963
964
|
}
|
|
964
965
|
function _e() {
|
|
965
966
|
return A(Re, G);
|
|
@@ -1009,26 +1010,26 @@ function Gt(e) {
|
|
|
1009
1010
|
return 0;
|
|
1010
1011
|
}
|
|
1011
1012
|
function Oi(e) {
|
|
1012
|
-
return wt = Oe = 1,
|
|
1013
|
+
return wt = Oe = 1, Gr = Y(Re = e), G = 0, [];
|
|
1013
1014
|
}
|
|
1014
1015
|
function Ni(e) {
|
|
1015
1016
|
return Re = "", e;
|
|
1016
1017
|
}
|
|
1017
1018
|
function Lt(e) {
|
|
1018
|
-
return
|
|
1019
|
+
return zr(Et(G - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1019
1020
|
}
|
|
1020
1021
|
function xi(e) {
|
|
1021
1022
|
for (; (R = _e()) && R < 33; )
|
|
1022
|
-
|
|
1023
|
+
Z();
|
|
1023
1024
|
return Gt(e) > 2 || Gt(R) > 3 ? "" : " ";
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
-
for (; --t &&
|
|
1026
|
+
function Ti(e, t) {
|
|
1027
|
+
for (; --t && Z() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
|
|
1027
1028
|
;
|
|
1028
|
-
return Et(e, lt() + (t < 6 && _e() == 32 &&
|
|
1029
|
+
return Et(e, lt() + (t < 6 && _e() == 32 && Z() == 32));
|
|
1029
1030
|
}
|
|
1030
1031
|
function Vt(e) {
|
|
1031
|
-
for (;
|
|
1032
|
+
for (; Z(); )
|
|
1032
1033
|
switch (R) {
|
|
1033
1034
|
// ] ) " '
|
|
1034
1035
|
case e:
|
|
@@ -1044,20 +1045,20 @@ function Vt(e) {
|
|
|
1044
1045
|
break;
|
|
1045
1046
|
// \
|
|
1046
1047
|
case 92:
|
|
1047
|
-
|
|
1048
|
+
Z();
|
|
1048
1049
|
break;
|
|
1049
1050
|
}
|
|
1050
1051
|
return G;
|
|
1051
1052
|
}
|
|
1052
|
-
function
|
|
1053
|
-
for (;
|
|
1053
|
+
function Ii(e, t) {
|
|
1054
|
+
for (; Z() && e + R !== 57; )
|
|
1054
1055
|
if (e + R === 84 && _e() === 47)
|
|
1055
1056
|
break;
|
|
1056
|
-
return "/*" + Et(t, G - 1) + "*" +
|
|
1057
|
+
return "/*" + Et(t, G - 1) + "*" + mn(e === 47 ? e : Z());
|
|
1057
1058
|
}
|
|
1058
1059
|
function Ri(e) {
|
|
1059
1060
|
for (; !Gt(_e()); )
|
|
1060
|
-
|
|
1061
|
+
Z();
|
|
1061
1062
|
return Et(e, G);
|
|
1062
1063
|
}
|
|
1063
1064
|
function Ai(e) {
|
|
@@ -1065,11 +1066,11 @@ function Ai(e) {
|
|
|
1065
1066
|
}
|
|
1066
1067
|
function ut(e, t, n, r, o, i, a, c, s) {
|
|
1067
1068
|
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 =
|
|
1069
|
+
switch (g = p, p = Z()) {
|
|
1069
1070
|
// (
|
|
1070
1071
|
case 40:
|
|
1071
1072
|
if (g != 108 && A(y, l - 1) == 58) {
|
|
1072
|
-
ct(y += C(Lt(p), "&", "&\f"), "&\f",
|
|
1073
|
+
ct(y += C(Lt(p), "&", "&\f"), "&\f", Wr(u ? c[u - 1] : 0)) != -1 && (m = -1);
|
|
1073
1074
|
break;
|
|
1074
1075
|
}
|
|
1075
1076
|
// " ' [
|
|
@@ -1087,14 +1088,14 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1087
1088
|
break;
|
|
1088
1089
|
// \
|
|
1089
1090
|
case 92:
|
|
1090
|
-
y +=
|
|
1091
|
+
y += Ti(lt() - 1, 7);
|
|
1091
1092
|
continue;
|
|
1092
1093
|
// /
|
|
1093
1094
|
case 47:
|
|
1094
1095
|
switch (_e()) {
|
|
1095
1096
|
case 42:
|
|
1096
1097
|
case 47:
|
|
1097
|
-
Fe(Li(
|
|
1098
|
+
Fe(Li(Ii(Z(), lt()), t, n, s), s);
|
|
1098
1099
|
break;
|
|
1099
1100
|
default:
|
|
1100
1101
|
y += "/";
|
|
@@ -1102,7 +1103,7 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1102
1103
|
break;
|
|
1103
1104
|
// {
|
|
1104
1105
|
case 123 * S:
|
|
1105
|
-
c[u++] =
|
|
1106
|
+
c[u++] = Y(y) * m;
|
|
1106
1107
|
// } ; \0
|
|
1107
1108
|
case 125 * S:
|
|
1108
1109
|
case 59:
|
|
@@ -1114,14 +1115,14 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1114
1115
|
$ = 0;
|
|
1115
1116
|
// ;
|
|
1116
1117
|
case 59 + d:
|
|
1117
|
-
m == -1 && (y = C(y, /\f/g, "")), h > 0 &&
|
|
1118
|
+
m == -1 && (y = C(y, /\f/g, "")), h > 0 && Y(y) - l && Fe(h > 32 ? Xn(y + ";", r, n, l - 1, s) : Xn(C(y, " ", "") + ";", r, n, l - 2, s), s);
|
|
1118
1119
|
break;
|
|
1119
1120
|
// @ ;
|
|
1120
1121
|
case 59:
|
|
1121
1122
|
y += ";";
|
|
1122
1123
|
// { rule/at-rule
|
|
1123
1124
|
default:
|
|
1124
|
-
if (Fe(w =
|
|
1125
|
+
if (Fe(w = Yn(y, t, n, u, d, o, c, k, E = [], N = [], l, i), i), p === 123)
|
|
1125
1126
|
if (d === 0)
|
|
1126
1127
|
ut(y, t, w, w, E, i, l, c, N);
|
|
1127
1128
|
else
|
|
@@ -1131,7 +1132,7 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1131
1132
|
case 108:
|
|
1132
1133
|
case 109:
|
|
1133
1134
|
case 115:
|
|
1134
|
-
ut(e, w, w, r && Fe(
|
|
1135
|
+
ut(e, w, w, r && Fe(Yn(e, w, w, 0, 0, o, c, k, o, E = [], l, N), N), o, N, l, c, r ? E : N);
|
|
1135
1136
|
break;
|
|
1136
1137
|
default:
|
|
1137
1138
|
ut(y, w, w, w, [""], N, 0, c, N);
|
|
@@ -1141,7 +1142,7 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1141
1142
|
break;
|
|
1142
1143
|
// :
|
|
1143
1144
|
case 58:
|
|
1144
|
-
l = 1 +
|
|
1145
|
+
l = 1 + Y(y), h = g;
|
|
1145
1146
|
default:
|
|
1146
1147
|
if (S < 1) {
|
|
1147
1148
|
if (p == 123)
|
|
@@ -1149,39 +1150,39 @@ function ut(e, t, n, r, o, i, a, c, s) {
|
|
|
1149
1150
|
else if (p == 125 && S++ == 0 && ki() == 125)
|
|
1150
1151
|
continue;
|
|
1151
1152
|
}
|
|
1152
|
-
switch (y +=
|
|
1153
|
+
switch (y += mn(p), p * S) {
|
|
1153
1154
|
// &
|
|
1154
1155
|
case 38:
|
|
1155
1156
|
m = d > 0 ? 1 : (y += "\f", -1);
|
|
1156
1157
|
break;
|
|
1157
1158
|
// ,
|
|
1158
1159
|
case 44:
|
|
1159
|
-
c[u++] = (
|
|
1160
|
+
c[u++] = (Y(y) - 1) * m, m = 1;
|
|
1160
1161
|
break;
|
|
1161
1162
|
// @
|
|
1162
1163
|
case 64:
|
|
1163
|
-
_e() === 45 && (y += Lt(
|
|
1164
|
+
_e() === 45 && (y += Lt(Z())), _ = _e(), d = l = Y(k = y += Ri(lt())), p++;
|
|
1164
1165
|
break;
|
|
1165
1166
|
// -
|
|
1166
1167
|
case 45:
|
|
1167
|
-
g === 45 &&
|
|
1168
|
+
g === 45 && Y(y) == 2 && (S = 0);
|
|
1168
1169
|
}
|
|
1169
1170
|
}
|
|
1170
1171
|
return i;
|
|
1171
1172
|
}
|
|
1172
|
-
function
|
|
1173
|
-
for (var _ = o - 1, h = o === 0 ? i : [""], g =
|
|
1174
|
-
for (var p = 0, k = ke(e, _ + 1, _ =
|
|
1175
|
-
(E =
|
|
1173
|
+
function Yn(e, t, n, r, o, i, a, c, s, u, d, l) {
|
|
1174
|
+
for (var _ = o - 1, h = o === 0 ? i : [""], g = jr(h), S = 0, $ = 0, m = 0; S < r; ++S)
|
|
1175
|
+
for (var p = 0, k = ke(e, _ + 1, _ = Wr($ = a[S])), E = e; p < g; ++p)
|
|
1176
|
+
(E = zr($ > 0 ? h[p] + " " + k : C(k, /&\f/g, h[p]))) && (s[m++] = E);
|
|
1176
1177
|
return St(e, t, n, o === 0 ? Ct : c, s, u, d, l);
|
|
1177
1178
|
}
|
|
1178
1179
|
function Li(e, t, n, r) {
|
|
1179
|
-
return St(e, t, n,
|
|
1180
|
+
return St(e, t, n, Ur, mn($i()), ke(e, 2, -2), 0, r);
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return St(e, t, n,
|
|
1182
|
+
function Xn(e, t, n, r, o) {
|
|
1183
|
+
return St(e, t, n, pn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
|
|
1183
1184
|
}
|
|
1184
|
-
function
|
|
1185
|
+
function Vr(e, t, n) {
|
|
1185
1186
|
switch (Ei(e, t)) {
|
|
1186
1187
|
// color-adjust
|
|
1187
1188
|
case 5103:
|
|
@@ -1317,7 +1318,7 @@ function jr(e, t, n) {
|
|
|
1317
1318
|
case 5789:
|
|
1318
1319
|
case 5021:
|
|
1319
1320
|
case 4765:
|
|
1320
|
-
if (
|
|
1321
|
+
if (Y(e) - 1 - t > 6)
|
|
1321
1322
|
switch (A(e, t + 1)) {
|
|
1322
1323
|
// (m)ax-content, (m)in-content
|
|
1323
1324
|
case 109:
|
|
@@ -1328,7 +1329,7 @@ function jr(e, t, n) {
|
|
|
1328
1329
|
return C(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + We + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1329
1330
|
// (s)tretch
|
|
1330
1331
|
case 115:
|
|
1331
|
-
return ~ct(e, "stretch", 0) ?
|
|
1332
|
+
return ~ct(e, "stretch", 0) ? Vr(C(e, "stretch", "fill-available"), t, n) + e : e;
|
|
1332
1333
|
}
|
|
1333
1334
|
break;
|
|
1334
1335
|
// grid-(column|row)
|
|
@@ -1373,19 +1374,19 @@ function Pi(e, t, n, r) {
|
|
|
1373
1374
|
case Si:
|
|
1374
1375
|
if (e.children.length) break;
|
|
1375
1376
|
case wi:
|
|
1376
|
-
case
|
|
1377
|
+
case pn:
|
|
1377
1378
|
return e.return = e.return || e.value;
|
|
1378
|
-
case
|
|
1379
|
+
case Ur:
|
|
1379
1380
|
return "";
|
|
1380
|
-
case
|
|
1381
|
+
case Br:
|
|
1381
1382
|
return e.return = e.value + "{" + pt(e.children, r) + "}";
|
|
1382
1383
|
case Ct:
|
|
1383
|
-
if (!
|
|
1384
|
+
if (!Y(e.value = e.props.join(","))) return "";
|
|
1384
1385
|
}
|
|
1385
|
-
return
|
|
1386
|
+
return Y(n = pt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1386
1387
|
}
|
|
1387
1388
|
function Di(e) {
|
|
1388
|
-
var t =
|
|
1389
|
+
var t = jr(e);
|
|
1389
1390
|
return function(n, r, o, i) {
|
|
1390
1391
|
for (var a = "", c = 0; c < t; c++)
|
|
1391
1392
|
a += e[c](n, r, o, i) || "";
|
|
@@ -1400,10 +1401,10 @@ function Mi(e) {
|
|
|
1400
1401
|
function Hi(e, t, n, r) {
|
|
1401
1402
|
if (e.length > -1 && !e.return)
|
|
1402
1403
|
switch (e.type) {
|
|
1403
|
-
case
|
|
1404
|
-
e.return =
|
|
1404
|
+
case pn:
|
|
1405
|
+
e.return = Vr(e.value, e.length, n);
|
|
1405
1406
|
return;
|
|
1406
|
-
case
|
|
1407
|
+
case Br:
|
|
1407
1408
|
return pt([ae(e, { value: C(e.value, "@", "@" + O) })], r);
|
|
1408
1409
|
case Ct:
|
|
1409
1410
|
if (e.length)
|
|
@@ -1412,11 +1413,11 @@ function Hi(e, t, n, r) {
|
|
|
1412
1413
|
// :read-(only|write)
|
|
1413
1414
|
case ":read-only":
|
|
1414
1415
|
case ":read-write":
|
|
1415
|
-
Ee(ae(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(ae(e, { props: [o] })), jt(e, { props:
|
|
1416
|
+
Ee(ae(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(ae(e, { props: [o] })), jt(e, { props: Zn(n, r) });
|
|
1416
1417
|
break;
|
|
1417
1418
|
// :placeholder
|
|
1418
1419
|
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:
|
|
1420
|
+
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: Zn(n, r) });
|
|
1420
1421
|
break;
|
|
1421
1422
|
}
|
|
1422
1423
|
return "";
|
|
@@ -1471,8 +1472,8 @@ var Fi = {
|
|
|
1471
1472
|
strokeMiterlimit: 1,
|
|
1472
1473
|
strokeOpacity: 1,
|
|
1473
1474
|
strokeWidth: 1
|
|
1474
|
-
}, b = {}, ve = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled",
|
|
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"),
|
|
1475
|
+
}, b = {}, ve = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled", qr = "active", Zr = "data-styled-version", bt = "6.1.18", gn = `/*!sc*/
|
|
1476
|
+
`, 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"), Qn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Bi = function(e, t) {
|
|
1476
1477
|
if (b.NODE_ENV !== "production") {
|
|
1477
1478
|
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1478
1479
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -1483,10 +1484,10 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1483
1484
|
var i = !0;
|
|
1484
1485
|
console.error = function(a) {
|
|
1485
1486
|
for (var c = [], s = 1; s < arguments.length; s++) c[s - 1] = arguments[s];
|
|
1486
|
-
|
|
1487
|
+
Qn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, ye([a], c, !1));
|
|
1487
1488
|
}, Ye(), i && !nt.has(r) && (console.warn(r), nt.add(r));
|
|
1488
1489
|
} catch (a) {
|
|
1489
|
-
|
|
1490
|
+
Qn.test(a.message) && nt.delete(r);
|
|
1490
1491
|
} finally {
|
|
1491
1492
|
console.error = o;
|
|
1492
1493
|
}
|
|
@@ -1496,47 +1497,47 @@ function Wi(e, t, n) {
|
|
|
1496
1497
|
return n === void 0 && (n = Ne), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1497
1498
|
}
|
|
1498
1499
|
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
|
|
1500
|
+
function Kn(e) {
|
|
1500
1501
|
return e.replace(zi, "-").replace(ji, "");
|
|
1501
1502
|
}
|
|
1502
|
-
var Gi = /(a)(d)/gi, rt = 52,
|
|
1503
|
+
var Gi = /(a)(d)/gi, rt = 52, Jn = function(e) {
|
|
1503
1504
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1504
1505
|
};
|
|
1505
1506
|
function Zt(e) {
|
|
1506
1507
|
var t, n = "";
|
|
1507
|
-
for (t = Math.abs(e); t > rt; t = t / rt | 0) n =
|
|
1508
|
-
return (
|
|
1508
|
+
for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Jn(t % rt) + n;
|
|
1509
|
+
return (Jn(t % rt) + n).replace(Gi, "$1-$2");
|
|
1509
1510
|
}
|
|
1510
|
-
var Pt,
|
|
1511
|
+
var Pt, Yr = 5381, de = function(e, t) {
|
|
1511
1512
|
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1512
1513
|
return e;
|
|
1513
|
-
},
|
|
1514
|
-
return de(
|
|
1514
|
+
}, Xr = function(e) {
|
|
1515
|
+
return de(Yr, e);
|
|
1515
1516
|
};
|
|
1516
|
-
function
|
|
1517
|
-
return Zt(
|
|
1517
|
+
function Qr(e) {
|
|
1518
|
+
return Zt(Xr(e) >>> 0);
|
|
1518
1519
|
}
|
|
1519
|
-
function
|
|
1520
|
+
function Kr(e) {
|
|
1520
1521
|
return b.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1521
1522
|
}
|
|
1522
1523
|
function Dt(e) {
|
|
1523
1524
|
return typeof e == "string" && (b.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1524
1525
|
}
|
|
1525
|
-
var
|
|
1526
|
-
function
|
|
1527
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
1526
|
+
var Jr = typeof Symbol == "function" && Symbol.for, eo = Jr ? Symbol.for("react.memo") : 60115, Vi = Jr ? 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 }, to = { $$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[eo] = to, Pt);
|
|
1527
|
+
function er(e) {
|
|
1528
|
+
return ("type" in (t = e) && t.type.$$typeof) === eo ? to : "$$typeof" in e ? Yi[e.$$typeof] : qi;
|
|
1528
1529
|
var t;
|
|
1529
1530
|
}
|
|
1530
|
-
var Xi = Object.defineProperty, Qi = Object.getOwnPropertyNames,
|
|
1531
|
-
function
|
|
1531
|
+
var Xi = Object.defineProperty, Qi = Object.getOwnPropertyNames, tr = Object.getOwnPropertySymbols, Ki = Object.getOwnPropertyDescriptor, Ji = Object.getPrototypeOf, nr = Object.prototype;
|
|
1532
|
+
function no(e, t, n) {
|
|
1532
1533
|
if (typeof t != "string") {
|
|
1533
|
-
if (
|
|
1534
|
+
if (nr) {
|
|
1534
1535
|
var r = Ji(t);
|
|
1535
|
-
r && r !==
|
|
1536
|
+
r && r !== nr && no(e, r, n);
|
|
1536
1537
|
}
|
|
1537
1538
|
var o = Qi(t);
|
|
1538
|
-
|
|
1539
|
-
for (var i =
|
|
1539
|
+
tr && (o = o.concat(tr(t)));
|
|
1540
|
+
for (var i = er(e), a = er(t), c = 0; c < o.length; ++c) {
|
|
1540
1541
|
var s = o[c];
|
|
1541
1542
|
if (!(s in Zi || n && n[s] || a && s in a || i && s in i)) {
|
|
1542
1543
|
var u = Ki(t, s);
|
|
@@ -1552,7 +1553,7 @@ function eo(e, t, n) {
|
|
|
1552
1553
|
function Ce(e) {
|
|
1553
1554
|
return typeof e == "function";
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function yn(e) {
|
|
1556
1557
|
return typeof e == "object" && "styledComponentId" in e;
|
|
1557
1558
|
}
|
|
1558
1559
|
function he(e, t) {
|
|
@@ -1572,7 +1573,7 @@ function Xt(e, t, n) {
|
|
|
1572
1573
|
else if (xe(t)) for (var r in t) e[r] = Xt(e[r], t[r]);
|
|
1573
1574
|
return e;
|
|
1574
1575
|
}
|
|
1575
|
-
function
|
|
1576
|
+
function vn(e, t) {
|
|
1576
1577
|
Object.defineProperty(e, "toString", { value: t });
|
|
1577
1578
|
}
|
|
1578
1579
|
var ea = b.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
@@ -1651,7 +1652,7 @@ var na = function() {
|
|
|
1651
1652
|
}, e.prototype.getGroup = function(t) {
|
|
1652
1653
|
var n = "";
|
|
1653
1654
|
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(
|
|
1655
|
+
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(gn);
|
|
1655
1656
|
return n;
|
|
1656
1657
|
}, e;
|
|
1657
1658
|
}(), ra = 1 << 30, ft = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
|
|
@@ -1662,10 +1663,10 @@ var na = function() {
|
|
|
1662
1663
|
return ft.set(e, t), gt.set(t, e), t;
|
|
1663
1664
|
}, oa = function(e, t) {
|
|
1664
1665
|
dt = t + 1, ft.set(e, t), gt.set(t, e);
|
|
1665
|
-
}, ia = "style[".concat(ve, "][").concat(
|
|
1666
|
+
}, ia = "style[".concat(ve, "][").concat(Zr, '="').concat(bt, '"]'), aa = new RegExp("^".concat(ve, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), sa = function(e, t, n) {
|
|
1666
1667
|
for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
|
|
1667
1668
|
}, ca = function(e, t) {
|
|
1668
|
-
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(
|
|
1669
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(gn), o = [], i = 0, a = r.length; i < a; i++) {
|
|
1669
1670
|
var c = r[i].trim();
|
|
1670
1671
|
if (c) {
|
|
1671
1672
|
var s = c.match(aa);
|
|
@@ -1675,26 +1676,26 @@ var na = function() {
|
|
|
1675
1676
|
} else o.push(c);
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1678
|
-
},
|
|
1679
|
+
}, rr = function(e) {
|
|
1679
1680
|
for (var t = document.querySelectorAll(ia), n = 0, r = t.length; n < r; n++) {
|
|
1680
1681
|
var o = t[n];
|
|
1681
|
-
o && o.getAttribute(ve) !==
|
|
1682
|
+
o && o.getAttribute(ve) !== qr && (ca(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1682
1683
|
}
|
|
1683
1684
|
};
|
|
1684
1685
|
function la() {
|
|
1685
1686
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1686
1687
|
}
|
|
1687
|
-
var
|
|
1688
|
+
var ro = function(e) {
|
|
1688
1689
|
var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
|
|
1689
1690
|
var s = Array.from(c.querySelectorAll("style[".concat(ve, "]")));
|
|
1690
1691
|
return s[s.length - 1];
|
|
1691
1692
|
}(n), i = o !== void 0 ? o.nextSibling : null;
|
|
1692
|
-
r.setAttribute(ve,
|
|
1693
|
+
r.setAttribute(ve, qr), r.setAttribute(Zr, bt);
|
|
1693
1694
|
var a = la();
|
|
1694
1695
|
return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
|
|
1695
1696
|
}, ua = function() {
|
|
1696
1697
|
function e(t) {
|
|
1697
|
-
this.element =
|
|
1698
|
+
this.element = ro(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
|
|
1698
1699
|
if (n.sheet) return n.sheet;
|
|
1699
1700
|
for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
|
|
1700
1701
|
var a = r[o];
|
|
@@ -1717,7 +1718,7 @@ var to = function(e) {
|
|
|
1717
1718
|
}, e;
|
|
1718
1719
|
}(), fa = function() {
|
|
1719
1720
|
function e(t) {
|
|
1720
|
-
this.element =
|
|
1721
|
+
this.element = ro(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1721
1722
|
}
|
|
1722
1723
|
return e.prototype.insertRule = function(t, n) {
|
|
1723
1724
|
if (t <= this.length && t >= 0) {
|
|
@@ -1741,11 +1742,11 @@ var to = function(e) {
|
|
|
1741
1742
|
}, e.prototype.getRule = function(t) {
|
|
1742
1743
|
return t < this.length ? this.rules[t] : "";
|
|
1743
1744
|
}, e;
|
|
1744
|
-
}(),
|
|
1745
|
+
}(), or = mt, ha = { isServer: !mt, useCSSOMInjection: !Ui }, oo = function() {
|
|
1745
1746
|
function e(t, n, r) {
|
|
1746
1747
|
t === void 0 && (t = Ne), n === void 0 && (n = {});
|
|
1747
1748
|
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 &&
|
|
1749
|
+
this.options = P(P({}, ha), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && mt && or && (or = !1, rr(this)), vn(this, function() {
|
|
1749
1750
|
return function(i) {
|
|
1750
1751
|
for (var a = i.getTag(), c = a.length, s = "", u = function(l) {
|
|
1751
1752
|
var _ = function(m) {
|
|
@@ -1757,7 +1758,7 @@ var to = function(e) {
|
|
|
1757
1758
|
var S = "".concat(ve, ".g").concat(l, '[id="').concat(_, '"]'), $ = "";
|
|
1758
1759
|
h !== void 0 && h.forEach(function(m) {
|
|
1759
1760
|
m.length > 0 && ($ += "".concat(m, ","));
|
|
1760
|
-
}), s += "".concat(g).concat(S, '{content:"').concat($, '"}').concat(
|
|
1761
|
+
}), s += "".concat(g).concat(S, '{content:"').concat($, '"}').concat(gn);
|
|
1761
1762
|
}, d = 0; d < c; d++) u(d);
|
|
1762
1763
|
return s;
|
|
1763
1764
|
}(o);
|
|
@@ -1766,7 +1767,7 @@ var to = function(e) {
|
|
|
1766
1767
|
return e.registerId = function(t) {
|
|
1767
1768
|
return ot(t);
|
|
1768
1769
|
}, e.prototype.rehydrate = function() {
|
|
1769
|
-
!this.server && mt &&
|
|
1770
|
+
!this.server && mt && rr(this);
|
|
1770
1771
|
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1771
1772
|
return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1772
1773
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -1795,14 +1796,14 @@ var to = function(e) {
|
|
|
1795
1796
|
this.tag = void 0;
|
|
1796
1797
|
}, e;
|
|
1797
1798
|
}(), _a = /&/g, pa = /^\s*\/\/.*$/gm;
|
|
1798
|
-
function
|
|
1799
|
+
function io(e, t) {
|
|
1799
1800
|
return e.map(function(n) {
|
|
1800
1801
|
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
1802
|
return "".concat(t, " ").concat(r);
|
|
1802
|
-
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children =
|
|
1803
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = io(n.children, t)), n;
|
|
1803
1804
|
});
|
|
1804
1805
|
}
|
|
1805
|
-
function
|
|
1806
|
+
function ao(e) {
|
|
1806
1807
|
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
1808
|
return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
|
|
1808
1809
|
}, d = s.slice();
|
|
@@ -1812,7 +1813,7 @@ function oo(e) {
|
|
|
1812
1813
|
var l = function(_, h, g, S) {
|
|
1813
1814
|
h === void 0 && (h = ""), g === void 0 && (g = ""), S === void 0 && (S = "&"), t = S, n = h, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1814
1815
|
var $ = _.replace(pa, ""), m = Ai(g || h ? "".concat(g, " ").concat(h, " { ").concat($, " }") : $);
|
|
1815
|
-
a.namespace && (m =
|
|
1816
|
+
a.namespace && (m = io(m, a.namespace));
|
|
1816
1817
|
var p = [];
|
|
1817
1818
|
return pt(m, Di(d.concat(Mi(function(k) {
|
|
1818
1819
|
return p.push(k);
|
|
@@ -1820,20 +1821,20 @@ function oo(e) {
|
|
|
1820
1821
|
};
|
|
1821
1822
|
return l.hash = s.length ? s.reduce(function(_, h) {
|
|
1822
1823
|
return h.name || Q(15), de(_, h.name);
|
|
1823
|
-
},
|
|
1824
|
+
}, Yr).toString() : "", l;
|
|
1824
1825
|
}
|
|
1825
|
-
var ma = new
|
|
1826
|
-
|
|
1826
|
+
var ma = new oo(), Qt = ao(), Cn = oe.createContext({ shouldForwardProp: void 0, styleSheet: ma, stylis: Qt });
|
|
1827
|
+
Cn.Consumer;
|
|
1827
1828
|
var ga = oe.createContext(void 0);
|
|
1828
1829
|
function Kt() {
|
|
1829
|
-
return Xe(
|
|
1830
|
+
return Xe(Cn);
|
|
1830
1831
|
}
|
|
1831
1832
|
function ya(e) {
|
|
1832
1833
|
var t = z(e.stylisPlugins), n = t[0], r = t[1], o = Kt().styleSheet, i = ne(function() {
|
|
1833
1834
|
var s = o;
|
|
1834
1835
|
return e.sheet ? s = e.sheet : e.target && (s = s.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (s = s.reconstructWithOptions({ useCSSOMInjection: !1 })), s;
|
|
1835
1836
|
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = ne(function() {
|
|
1836
|
-
return
|
|
1837
|
+
return ao({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
|
|
1837
1838
|
}, [e.enableVendorPrefixes, e.namespace, n]);
|
|
1838
1839
|
re(function() {
|
|
1839
1840
|
Ci(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
@@ -1841,7 +1842,7 @@ function ya(e) {
|
|
|
1841
1842
|
var c = ne(function() {
|
|
1842
1843
|
return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
|
|
1843
1844
|
}, [e.shouldForwardProp, i, a]);
|
|
1844
|
-
return oe.createElement(
|
|
1845
|
+
return oe.createElement(Cn.Provider, { value: c }, oe.createElement(ga.Provider, { value: a }, e.children));
|
|
1845
1846
|
}
|
|
1846
1847
|
var Jt = function() {
|
|
1847
1848
|
function e(t, n) {
|
|
@@ -1850,7 +1851,7 @@ var Jt = function() {
|
|
|
1850
1851
|
i === void 0 && (i = Qt);
|
|
1851
1852
|
var a = r.name + i.hash;
|
|
1852
1853
|
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,
|
|
1854
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, vn(this, function() {
|
|
1854
1855
|
throw Q(12, String(r.name));
|
|
1855
1856
|
});
|
|
1856
1857
|
}
|
|
@@ -1860,7 +1861,7 @@ var Jt = function() {
|
|
|
1860
1861
|
}(), va = function(e) {
|
|
1861
1862
|
return e >= "A" && e <= "Z";
|
|
1862
1863
|
};
|
|
1863
|
-
function
|
|
1864
|
+
function ir(e) {
|
|
1864
1865
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
1865
1866
|
var r = e[n];
|
|
1866
1867
|
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
@@ -1868,39 +1869,39 @@ function rr(e) {
|
|
|
1868
1869
|
}
|
|
1869
1870
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1870
1871
|
}
|
|
1871
|
-
var
|
|
1872
|
+
var so = function(e) {
|
|
1872
1873
|
return e == null || e === !1 || e === "";
|
|
1873
|
-
},
|
|
1874
|
+
}, co = function(e) {
|
|
1874
1875
|
var t, n, r = [];
|
|
1875
1876
|
for (var o in e) {
|
|
1876
1877
|
var i = e[o];
|
|
1877
|
-
e.hasOwnProperty(o) && !
|
|
1878
|
+
e.hasOwnProperty(o) && !so(i) && (Array.isArray(i) && i.isCss || Ce(i) ? r.push("".concat(ir(o), ":"), i, ";") : xe(i) ? r.push.apply(r, ye(ye(["".concat(o, " {")], co(i), !1), ["}"], !1)) : r.push("".concat(ir(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
|
}
|
|
1879
1880
|
return r;
|
|
1880
1881
|
};
|
|
1881
1882
|
function pe(e, t, n, r) {
|
|
1882
|
-
if (
|
|
1883
|
-
if (
|
|
1883
|
+
if (so(e)) return [];
|
|
1884
|
+
if (yn(e)) return [".".concat(e.styledComponentId)];
|
|
1884
1885
|
if (Ce(e)) {
|
|
1885
1886
|
if (!Ce(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1886
1887
|
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(
|
|
1888
|
+
return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Jt || xe(o) || o === null || console.error("".concat(Kr(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
|
}
|
|
1889
1890
|
var i;
|
|
1890
|
-
return e instanceof Jt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : xe(e) ?
|
|
1891
|
+
return e instanceof Jt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : xe(e) ? co(e) : Array.isArray(e) ? Array.prototype.concat.apply($t, e.map(function(a) {
|
|
1891
1892
|
return pe(a, t, n, r);
|
|
1892
1893
|
})) : [e.toString()];
|
|
1893
1894
|
}
|
|
1894
1895
|
function Ca(e) {
|
|
1895
1896
|
for (var t = 0; t < e.length; t += 1) {
|
|
1896
1897
|
var n = e[t];
|
|
1897
|
-
if (Ce(n) && !
|
|
1898
|
+
if (Ce(n) && !yn(n)) return !1;
|
|
1898
1899
|
}
|
|
1899
1900
|
return !0;
|
|
1900
1901
|
}
|
|
1901
|
-
var wa =
|
|
1902
|
+
var wa = Xr(bt), Sa = function() {
|
|
1902
1903
|
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,
|
|
1904
|
+
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, oo.registerId(n);
|
|
1904
1905
|
}
|
|
1905
1906
|
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1906
1907
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
@@ -1931,7 +1932,7 @@ var wa = Zr(bt), Sa = function() {
|
|
|
1931
1932
|
}, e;
|
|
1932
1933
|
}(), Ge = oe.createContext(void 0);
|
|
1933
1934
|
Ge.Consumer;
|
|
1934
|
-
function
|
|
1935
|
+
function lo() {
|
|
1935
1936
|
var e = Xe(Ge);
|
|
1936
1937
|
if (!e) throw Q(18);
|
|
1937
1938
|
return e;
|
|
@@ -1951,16 +1952,16 @@ function Ea(e) {
|
|
|
1951
1952
|
}, [e.theme, t]);
|
|
1952
1953
|
return e.children ? oe.createElement(Ge.Provider, { value: n }, e.children) : null;
|
|
1953
1954
|
}
|
|
1954
|
-
var Mt = {},
|
|
1955
|
+
var Mt = {}, ar = /* @__PURE__ */ new Set();
|
|
1955
1956
|
function ba(e, t, n) {
|
|
1956
|
-
var r =
|
|
1957
|
-
var w = typeof E != "string" ? "sc" :
|
|
1957
|
+
var r = yn(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) {
|
|
1958
|
+
var w = typeof E != "string" ? "sc" : Kn(E);
|
|
1958
1959
|
Mt[w] = (Mt[w] || 0) + 1;
|
|
1959
|
-
var y = "".concat(w, "-").concat(
|
|
1960
|
+
var y = "".concat(w, "-").concat(Qr(bt + w + Mt[w]));
|
|
1960
1961
|
return N ? "".concat(N, "-").concat(y) : y;
|
|
1961
1962
|
}(t.displayName, t.parentComponentId) : s, d = t.displayName, l = d === void 0 ? function(E) {
|
|
1962
|
-
return Dt(E) ? "styled.".concat(E) : "Styled(".concat(
|
|
1963
|
-
}(e) : d, _ = t.displayName && t.componentId ? "".concat(
|
|
1963
|
+
return Dt(E) ? "styled.".concat(E) : "Styled(".concat(Kr(E), ")");
|
|
1964
|
+
}(e) : d, _ = t.displayName && t.componentId ? "".concat(Kn(t.displayName), "-").concat(t.componentId) : t.componentId || u, h = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
|
|
1964
1965
|
if (r && o.shouldForwardProp) {
|
|
1965
1966
|
var S = o.shouldForwardProp;
|
|
1966
1967
|
if (t.shouldForwardProp) {
|
|
@@ -1973,22 +1974,22 @@ function ba(e, t, n) {
|
|
|
1973
1974
|
var m = new Sa(n, _, r ? o.componentStyle : void 0);
|
|
1974
1975
|
function p(E, N) {
|
|
1975
1976
|
return function(w, y, H) {
|
|
1976
|
-
var U = w.attrs, Ae = w.componentStyle, B = w.defaultProps, le = w.foldedComponentIds,
|
|
1977
|
-
b.NODE_ENV !== "production" && _t(
|
|
1978
|
-
var
|
|
1979
|
-
for (var Se, ue = P(P({}, De), { className: void 0, theme: Ke }),
|
|
1980
|
-
var Je = Ce(Se = Qe[
|
|
1977
|
+
var U = w.attrs, Ae = w.componentStyle, B = w.defaultProps, le = w.foldedComponentIds, En = w.styledComponentId, go = w.target, yo = oe.useContext(Ge), vo = Kt(), Ot = w.shouldForwardProp || vo.shouldForwardProp;
|
|
1978
|
+
b.NODE_ENV !== "production" && _t(En);
|
|
1979
|
+
var bn = Wi(y, yo, B) || Ne, K = function(Qe, De, Ke) {
|
|
1980
|
+
for (var Se, ue = P(P({}, De), { className: void 0, theme: Ke }), Tt = 0; Tt < Qe.length; Tt += 1) {
|
|
1981
|
+
var Je = Ce(Se = Qe[Tt]) ? Se(ue) : Se;
|
|
1981
1982
|
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
|
}
|
|
1983
1984
|
return De.className && (ue.className = he(ue.className, De.className)), ue;
|
|
1984
|
-
}(U, y,
|
|
1985
|
-
for (var W in K) K[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && K.theme ===
|
|
1985
|
+
}(U, y, bn), Le = K.as || go, Pe = {};
|
|
1986
|
+
for (var W in K) K[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && K.theme === bn || (W === "forwardedAs" ? Pe.as = K.forwardedAs : Ot && !Ot(W, Le) || (Pe[W] = K[W], Ot || b.NODE_ENV !== "development" || Fo(W) || ar.has(W) || !qt.has(Le) || (ar.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
1987
|
var Nt = function(Qe, De) {
|
|
1987
1988
|
var Ke = Kt(), Se = Qe.generateAndInjectStyles(De, Ke.styleSheet, Ke.stylis);
|
|
1988
1989
|
return b.NODE_ENV !== "production" && _t(Se), Se;
|
|
1989
1990
|
}(Ae, K);
|
|
1990
1991
|
b.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(Nt);
|
|
1991
|
-
var xt = he(le,
|
|
1992
|
+
var xt = he(le, En);
|
|
1992
1993
|
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
1994
|
}(k, E, N);
|
|
1994
1995
|
}
|
|
@@ -2019,28 +2020,28 @@ Example:
|
|
|
2019
2020
|
<Component />`), y = !0, w = {};
|
|
2020
2021
|
}
|
|
2021
2022
|
};
|
|
2022
|
-
}(l, _)),
|
|
2023
|
+
}(l, _)), vn(k, function() {
|
|
2023
2024
|
return ".".concat(k.styledComponentId);
|
|
2024
|
-
}), i &&
|
|
2025
|
+
}), i && no(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
|
|
2025
2026
|
}
|
|
2026
|
-
function
|
|
2027
|
+
function sr(e, t) {
|
|
2027
2028
|
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
2028
2029
|
return n;
|
|
2029
2030
|
}
|
|
2030
|
-
var
|
|
2031
|
+
var cr = function(e) {
|
|
2031
2032
|
return Object.assign(e, { isCss: !0 });
|
|
2032
2033
|
};
|
|
2033
|
-
function
|
|
2034
|
+
function wn(e) {
|
|
2034
2035
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2035
|
-
if (Ce(e) || xe(e)) return
|
|
2036
|
+
if (Ce(e) || xe(e)) return cr(pe(sr($t, ye([e], t, !0))));
|
|
2036
2037
|
var r = e;
|
|
2037
|
-
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? pe(r) :
|
|
2038
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? pe(r) : cr(pe(sr(r, t)));
|
|
2038
2039
|
}
|
|
2039
2040
|
function en(e, t, n) {
|
|
2040
2041
|
if (n === void 0 && (n = Ne), !t) throw Q(1, t);
|
|
2041
2042
|
var r = function(o) {
|
|
2042
2043
|
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
2043
|
-
return e(t, n,
|
|
2044
|
+
return e(t, n, wn.apply(void 0, ye([o], i, !1)));
|
|
2044
2045
|
};
|
|
2045
2046
|
return r.attrs = function(o) {
|
|
2046
2047
|
return en(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
@@ -2048,16 +2049,16 @@ function en(e, t, n) {
|
|
|
2048
2049
|
return en(e, t, P(P({}, n), o));
|
|
2049
2050
|
}, r;
|
|
2050
2051
|
}
|
|
2051
|
-
var
|
|
2052
|
+
var uo = function(e) {
|
|
2052
2053
|
return en(ba, e);
|
|
2053
|
-
}, F =
|
|
2054
|
+
}, F = uo;
|
|
2054
2055
|
qt.forEach(function(e) {
|
|
2055
|
-
F[e] =
|
|
2056
|
+
F[e] = uo(e);
|
|
2056
2057
|
});
|
|
2057
2058
|
function kt(e) {
|
|
2058
2059
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2059
2060
|
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(
|
|
2061
|
+
var r = Yt(wn.apply(void 0, ye([e], t, !1))), o = Qr(r);
|
|
2061
2062
|
return new Jt(o, r);
|
|
2062
2063
|
}
|
|
2063
2064
|
b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -2085,7 +2086,7 @@ const D = {
|
|
|
2085
2086
|
SQUARE_ROUNDED_SOLID: "square-rounded-solid",
|
|
2086
2087
|
SQUARE_DASH: "square-dash",
|
|
2087
2088
|
SQUARE_SOLID: "square-solid"
|
|
2088
|
-
}, $a = 2,
|
|
2089
|
+
}, $a = 2, fo = 14, ka = 0.0276;
|
|
2089
2090
|
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
2091
|
const Ue = {
|
|
2091
2092
|
300: {
|
|
@@ -2108,7 +2109,7 @@ const Ue = {
|
|
|
2108
2109
|
marginLeft: 12,
|
|
2109
2110
|
buttonPadding: 24
|
|
2110
2111
|
}
|
|
2111
|
-
},
|
|
2112
|
+
}, lr = {
|
|
2112
2113
|
loading: { text: "Loading. Please wait.", visible: !0 },
|
|
2113
2114
|
waiting: { text: "Waiting for input...", visible: !0 }
|
|
2114
2115
|
}, Oa = {
|
|
@@ -2126,11 +2127,11 @@ const Ue = {
|
|
|
2126
2127
|
[L.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
|
|
2127
2128
|
[L.MOUTH_SCORE_TOO_LOW]: "Smile :)",
|
|
2128
2129
|
[L.MOUTH_NOT_PRESENT]: "Position your face into the circle"
|
|
2129
|
-
}, Na = D.CIRCLE_SOLID, xa = "rgba(19, 19, 19, 0.5)",
|
|
2130
|
-
function
|
|
2130
|
+
}, Na = D.CIRCLE_SOLID, xa = "rgba(19, 19, 19, 0.5)", Ta = 34;
|
|
2131
|
+
function ur(e, t) {
|
|
2131
2132
|
return Math.max(t, t + (e - 400) * ka + 2);
|
|
2132
2133
|
}
|
|
2133
|
-
const
|
|
2134
|
+
const Ia = (e, t = fo) => e ? e.width < e.height ? ur(e.width, t) : ur(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
2135
|
function La() {
|
|
2135
2136
|
const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
|
|
2136
2137
|
if (!document.querySelector(`link[href="${e}"]`)) {
|
|
@@ -2138,7 +2139,7 @@ function La() {
|
|
|
2138
2139
|
n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
|
|
2139
2140
|
}
|
|
2140
2141
|
}
|
|
2141
|
-
const ze =
|
|
2142
|
+
const ze = br(void 0);
|
|
2142
2143
|
ze.displayName = "UiCustomizationContext";
|
|
2143
2144
|
function we() {
|
|
2144
2145
|
const e = Xe(ze);
|
|
@@ -2149,13 +2150,13 @@ function we() {
|
|
|
2149
2150
|
return e;
|
|
2150
2151
|
}
|
|
2151
2152
|
function Pa({ children: e, props: t, videoElementSize: n }) {
|
|
2152
|
-
const { font: r } =
|
|
2153
|
-
() => ({ ...t, videoElementSize: n, fontSize:
|
|
2153
|
+
const { font: r } = lo(), o = ne(
|
|
2154
|
+
() => ({ ...t, videoElementSize: n, fontSize: Ia(n, r.minimumSize) }),
|
|
2154
2155
|
[t, r.minimumSize, n]
|
|
2155
2156
|
);
|
|
2156
2157
|
return /* @__PURE__ */ f(ze.Provider, { value: o, children: e });
|
|
2157
2158
|
}
|
|
2158
|
-
const
|
|
2159
|
+
const ho = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f(
|
|
2159
2160
|
"path",
|
|
2160
2161
|
{
|
|
2161
2162
|
clipRule: "evenodd",
|
|
@@ -2203,8 +2204,8 @@ const uo = ({ svgSize: e }) => /* @__PURE__ */ f("svg", { fill: "none", height:
|
|
|
2203
2204
|
e ? /* @__PURE__ */ f(e, { svgSize: o * 2 }) : null,
|
|
2204
2205
|
/* @__PURE__ */ f(Ha, { $fontSize: o, children: r })
|
|
2205
2206
|
] }) });
|
|
2206
|
-
},
|
|
2207
|
-
class Fa extends
|
|
2207
|
+
}, _o = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ f(tn, { Icon: ho, position: "relative", text: e });
|
|
2208
|
+
class Fa extends q {
|
|
2208
2209
|
constructor(t) {
|
|
2209
2210
|
super(t), this.state = { hasError: !1 };
|
|
2210
2211
|
}
|
|
@@ -2215,7 +2216,7 @@ class Fa extends V {
|
|
|
2215
2216
|
console.error(t, n);
|
|
2216
2217
|
}
|
|
2217
2218
|
render() {
|
|
2218
|
-
return this.state.hasError ? /* @__PURE__ */ f(
|
|
2219
|
+
return this.state.hasError ? /* @__PURE__ */ f(_o, { Icon: ho, isCameraReady: !1 }) : this.props.children;
|
|
2219
2220
|
}
|
|
2220
2221
|
}
|
|
2221
2222
|
const Ua = F.div`
|
|
@@ -2247,7 +2248,7 @@ function Ga(e) {
|
|
|
2247
2248
|
},
|
|
2248
2249
|
[n]
|
|
2249
2250
|
);
|
|
2250
|
-
return Ve(e, r),
|
|
2251
|
+
return Ve(e, r), Ie(() => {
|
|
2251
2252
|
if (!t) {
|
|
2252
2253
|
const o = document.getElementById(ja);
|
|
2253
2254
|
o && n(o.getBoundingClientRect());
|
|
@@ -2267,7 +2268,7 @@ const qa = {
|
|
|
2267
2268
|
family: "Montserrat, Arial, sans-serif",
|
|
2268
2269
|
weight: "600",
|
|
2269
2270
|
style: "normal",
|
|
2270
|
-
minimumSize:
|
|
2271
|
+
minimumSize: fo
|
|
2271
2272
|
}, Me = {
|
|
2272
2273
|
colors: qa,
|
|
2273
2274
|
font: Za
|
|
@@ -2286,8 +2287,8 @@ const qa = {
|
|
|
2286
2287
|
family: Va((t = e.font) == null ? void 0 : t.family, Me.font.family)
|
|
2287
2288
|
}
|
|
2288
2289
|
} : Me;
|
|
2289
|
-
}, Xa = (e) => Number.parseFloat(e.toFixed(3)),
|
|
2290
|
-
const r =
|
|
2290
|
+
}, Xa = (e) => Number.parseFloat(e.toFixed(3)), Sn = (e, t) => Math.min(e, t), Qa = ({ height: e, width: t }, n) => {
|
|
2291
|
+
const r = Sn(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
|
|
2291
2292
|
return {
|
|
2292
2293
|
shiftX: o,
|
|
2293
2294
|
shiftY: i,
|
|
@@ -2302,10 +2303,18 @@ const qa = {
|
|
|
2302
2303
|
width: i / e.width,
|
|
2303
2304
|
height: n / e.height
|
|
2304
2305
|
};
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2306
|
+
};
|
|
2307
|
+
function Ja(e, t) {
|
|
2308
|
+
const n = Sn(t.width, t.height);
|
|
2307
2309
|
return Xa(e * n);
|
|
2308
|
-
}
|
|
2310
|
+
}
|
|
2311
|
+
function es(e) {
|
|
2312
|
+
return Ka(e, Wa);
|
|
2313
|
+
}
|
|
2314
|
+
function ts(e, t) {
|
|
2315
|
+
return Ja(e, t) * za;
|
|
2316
|
+
}
|
|
2317
|
+
const nn = (e, t) => {
|
|
2309
2318
|
document.dispatchEvent(
|
|
2310
2319
|
new CustomEvent(e, {
|
|
2311
2320
|
detail: t
|
|
@@ -2313,9 +2322,11 @@ const qa = {
|
|
|
2313
2322
|
);
|
|
2314
2323
|
}, yt = class yt {
|
|
2315
2324
|
constructor() {
|
|
2316
|
-
et(this, "lastDetails"
|
|
2317
|
-
et(this, "delayedTime"
|
|
2325
|
+
et(this, "lastDetails");
|
|
2326
|
+
et(this, "delayedTime");
|
|
2327
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2318
2328
|
}
|
|
2329
|
+
// TODO remove singleton
|
|
2319
2330
|
static getInstance() {
|
|
2320
2331
|
return this._instance || (this._instance = new yt()), this._instance;
|
|
2321
2332
|
}
|
|
@@ -2338,7 +2349,7 @@ const qa = {
|
|
|
2338
2349
|
* @param detail - Record<string, unknown>
|
|
2339
2350
|
*/
|
|
2340
2351
|
dispatchCustomEventOnChange(t, n) {
|
|
2341
|
-
this.isDetailChanged(t, n) &&
|
|
2352
|
+
this.isDetailChanged(t, n) && nn(t, n);
|
|
2342
2353
|
}
|
|
2343
2354
|
/**
|
|
2344
2355
|
* If the detail of the event has changed, delay time has passed, dispatch the event
|
|
@@ -2350,12 +2361,17 @@ const qa = {
|
|
|
2350
2361
|
const o = performance.now();
|
|
2351
2362
|
o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
|
|
2352
2363
|
}
|
|
2364
|
+
// implement this method in the class
|
|
2365
|
+
dispatchCustomEvent(t, n) {
|
|
2366
|
+
nn(t, n);
|
|
2367
|
+
}
|
|
2353
2368
|
};
|
|
2369
|
+
// TODO remove singleton
|
|
2354
2370
|
et(yt, "_instance");
|
|
2355
|
-
let
|
|
2356
|
-
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2371
|
+
let rn = yt;
|
|
2372
|
+
rn.getInstance();
|
|
2373
|
+
const fr = (e, t) => {
|
|
2374
|
+
nn(e, {
|
|
2359
2375
|
instruction: t
|
|
2360
2376
|
});
|
|
2361
2377
|
};
|
|
@@ -2434,14 +2450,14 @@ const os = () => {
|
|
|
2434
2450
|
const { buttonPadding: i, iconSize: a, marginLeft: c } = Aa(r);
|
|
2435
2451
|
return /* @__PURE__ */ f(ls, { $padding: i, children: [
|
|
2436
2452
|
o && /* @__PURE__ */ f(cs, { disabled: t, onClick: () => {
|
|
2437
|
-
|
|
2453
|
+
fr(e, xn.SWITCH_CAMERA);
|
|
2438
2454
|
}, size: a }),
|
|
2439
2455
|
/* @__PURE__ */ f(
|
|
2440
2456
|
ss,
|
|
2441
2457
|
{
|
|
2442
2458
|
marginLeft: o ? c : 0,
|
|
2443
2459
|
onClick: () => {
|
|
2444
|
-
|
|
2460
|
+
fr(e, xn.TOGGLE_MIRROR);
|
|
2445
2461
|
},
|
|
2446
2462
|
size: a
|
|
2447
2463
|
}
|
|
@@ -2505,7 +2521,7 @@ const ps = F.div`
|
|
|
2505
2521
|
|
|
2506
2522
|
${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
|
|
2507
2523
|
${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
|
|
2508
|
-
${(e) => e.$isAnimating &&
|
|
2524
|
+
${(e) => e.$isAnimating && wn`
|
|
2509
2525
|
animation: ${_s} ${ds}
|
|
2510
2526
|
${hs} both;
|
|
2511
2527
|
animation-delay: ${fs};
|
|
@@ -2560,7 +2576,7 @@ const ps = F.div`
|
|
|
2560
2576
|
{
|
|
2561
2577
|
$fontSize: a,
|
|
2562
2578
|
$isInCandidateSelection: o,
|
|
2563
|
-
$wrap: e.length >
|
|
2579
|
+
$wrap: e.length > Ta,
|
|
2564
2580
|
children: e
|
|
2565
2581
|
}
|
|
2566
2582
|
) });
|
|
@@ -2633,26 +2649,36 @@ const ps = F.div`
|
|
|
2633
2649
|
] }) }), Cs = F.div`
|
|
2634
2650
|
z-index: 1;
|
|
2635
2651
|
position: absolute;
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2652
|
+
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
2653
|
+
top: -50%;
|
|
2654
|
+
left: -50%;
|
|
2655
|
+
width: 200%;
|
|
2656
|
+
height: 200%;
|
|
2657
|
+
outline: ${({ $backdropColor: e, $shorterSide: t = 1e3 }) => `${t * 0.2}px solid ${e}`};
|
|
2658
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2659
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2660
|
+
|
|
2661
|
+
// Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
|
|
2662
|
+
g {
|
|
2663
|
+
transform: scale(0.5);
|
|
2664
|
+
translate: 25% 25%;
|
|
2665
|
+
}
|
|
2666
|
+
`, mo = ({ children: e, height: t, scale: n, width: r }) => {
|
|
2667
|
+
const { backdropColor: o } = we(), i = Sn(r, t);
|
|
2668
|
+
return /* @__PURE__ */ f(Cs, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ f("svg", { viewBox: `0 0 ${r} ${t}`, children: [
|
|
2643
2669
|
/* @__PURE__ */ f("defs", { children: /* @__PURE__ */ f("mask", { id: "mask", children: [
|
|
2644
2670
|
/* @__PURE__ */ f("rect", { fill: "#fff", height: "100%", width: "100%" }),
|
|
2645
|
-
e
|
|
2671
|
+
/* @__PURE__ */ f("g", { children: e })
|
|
2646
2672
|
] }) }),
|
|
2647
|
-
/* @__PURE__ */ f("rect", { fill:
|
|
2673
|
+
/* @__PURE__ */ f("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
|
|
2648
2674
|
] }) });
|
|
2649
2675
|
};
|
|
2650
2676
|
function ws({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
|
|
2651
|
-
const { appStateInstructions: o } = we(), i = r ===
|
|
2652
|
-
return !r || i || !(o != null && o[r].visible) ? null : r ===
|
|
2677
|
+
const { appStateInstructions: o } = we(), i = r === V.ERROR || r === V.RUNNING;
|
|
2678
|
+
return !r || i || !(o != null && o[r].visible) ? null : r === V.WAITING || r === V.COMPLETE ? /* @__PURE__ */ f(j, { children: [
|
|
2653
2679
|
n && e && t && /* @__PURE__ */ f(mo, { height: e, width: t }),
|
|
2654
|
-
/* @__PURE__ */ f(tn, { isCameraReady: !0, text: o[
|
|
2655
|
-
] }) : /* @__PURE__ */ f(tn, { Icon: vs, isCameraReady: !0, text: o[
|
|
2680
|
+
/* @__PURE__ */ f(tn, { isCameraReady: !0, text: o[V.WAITING].text })
|
|
2681
|
+
] }) : /* @__PURE__ */ f(tn, { Icon: vs, isCameraReady: !0, text: o[V.LOADING].text });
|
|
2656
2682
|
}
|
|
2657
2683
|
function Ss({ isRounded: e, isSquare: t, ...n }) {
|
|
2658
2684
|
return e ? /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: "2%" }) : /* @__PURE__ */ f("rect", { fill: "#000", ...n, rx: t ? "0" : "50%" });
|
|
@@ -2726,7 +2752,7 @@ function Ns() {
|
|
|
2726
2752
|
function xs() {
|
|
2727
2753
|
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
2754
|
}
|
|
2729
|
-
function
|
|
2755
|
+
function Ts() {
|
|
2730
2756
|
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
2757
|
"path",
|
|
2732
2758
|
{
|
|
@@ -2737,7 +2763,7 @@ function Is() {
|
|
|
2737
2763
|
}
|
|
2738
2764
|
) });
|
|
2739
2765
|
}
|
|
2740
|
-
const
|
|
2766
|
+
const Is = F.div`
|
|
2741
2767
|
z-index: 1;
|
|
2742
2768
|
position: absolute;
|
|
2743
2769
|
top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
|
|
@@ -2745,7 +2771,8 @@ const Ts = F.div`
|
|
|
2745
2771
|
left: ${(e) => e.$placeholderRectangle.shiftX * 100}%;
|
|
2746
2772
|
right: ${(e) => (1 - e.$placeholderRectangle.shiftX - e.$placeholderRectangle.width) * 100}%;
|
|
2747
2773
|
color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
|
|
2748
|
-
|
|
2774
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2775
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2749
2776
|
svg {
|
|
2750
2777
|
width: 100%;
|
|
2751
2778
|
height: 100%;
|
|
@@ -2755,12 +2782,14 @@ const Ts = F.div`
|
|
|
2755
2782
|
className: t,
|
|
2756
2783
|
isInCandidateSelection: n,
|
|
2757
2784
|
onAnimationEnd: r,
|
|
2758
|
-
placeholderRectangle: o
|
|
2785
|
+
placeholderRectangle: o,
|
|
2786
|
+
scale: i
|
|
2759
2787
|
}) => /* @__PURE__ */ f(
|
|
2760
|
-
|
|
2788
|
+
Is,
|
|
2761
2789
|
{
|
|
2762
2790
|
$isInCandidateSelection: n,
|
|
2763
2791
|
$placeholderRectangle: o,
|
|
2792
|
+
$scale: i,
|
|
2764
2793
|
className: t,
|
|
2765
2794
|
onAnimationEnd: r,
|
|
2766
2795
|
children: e
|
|
@@ -2769,7 +2798,7 @@ const Ts = F.div`
|
|
|
2769
2798
|
[D.CIRCLE_SOLID]: /* @__PURE__ */ f(Es, {}),
|
|
2770
2799
|
[D.ELLIPSE_SOLID]: /* @__PURE__ */ f(bs, {}),
|
|
2771
2800
|
[D.MAN_SOLID]: /* @__PURE__ */ f($s, {}),
|
|
2772
|
-
[D.WOMAN_SOLID]: /* @__PURE__ */ f(
|
|
2801
|
+
[D.WOMAN_SOLID]: /* @__PURE__ */ f(Ts, {}),
|
|
2773
2802
|
[D.SQUARE_ROUNDED_DASH]: /* @__PURE__ */ f(Os, {}),
|
|
2774
2803
|
[D.SQUARE_ROUNDED_SOLID]: /* @__PURE__ */ f(Ns, {}),
|
|
2775
2804
|
[D.SQUARE_DASH]: /* @__PURE__ */ f(ks, {}),
|
|
@@ -2823,7 +2852,7 @@ const Ps = () => {
|
|
|
2823
2852
|
isMirroring: n
|
|
2824
2853
|
};
|
|
2825
2854
|
}, Ds = () => {
|
|
2826
|
-
const [e, t] = z(
|
|
2855
|
+
const [e, t] = z(V.LOADING), [n, r] = z(), o = ge(
|
|
2827
2856
|
(i) => {
|
|
2828
2857
|
var c, s;
|
|
2829
2858
|
t((c = i.detail) == null ? void 0 : c.appState);
|
|
@@ -2844,11 +2873,13 @@ const Ps = () => {
|
|
|
2844
2873
|
width: 100%;
|
|
2845
2874
|
height: 100%;
|
|
2846
2875
|
z-index: 1;
|
|
2847
|
-
|
|
2876
|
+
`;
|
|
2877
|
+
function Hs(e) {
|
|
2848
2878
|
const t = e.getContext("2d");
|
|
2849
2879
|
t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
|
|
2850
|
-
}
|
|
2851
|
-
|
|
2880
|
+
}
|
|
2881
|
+
const Fs = ({ cameraResolution: e, isImageMirror: t }) => {
|
|
2882
|
+
const n = Ye(null), r = lo(), [o, i] = z(), a = ge(
|
|
2852
2883
|
(c) => {
|
|
2853
2884
|
var s;
|
|
2854
2885
|
i((s = c == null ? void 0 : c.detail) == null ? void 0 : s.detectedObject);
|
|
@@ -2877,9 +2908,9 @@ function Us() {
|
|
|
2877
2908
|
D.ELLIPSE_SOLID,
|
|
2878
2909
|
D.MAN_SOLID
|
|
2879
2910
|
].includes(c);
|
|
2880
|
-
if (e ===
|
|
2881
|
-
return /* @__PURE__ */ f(
|
|
2882
|
-
if (e ===
|
|
2911
|
+
if (e === V.ERROR)
|
|
2912
|
+
return /* @__PURE__ */ f(_o, { text: t == null ? void 0 : t.message });
|
|
2913
|
+
if (e === V.RUNNING && n) {
|
|
2883
2914
|
const l = es(n);
|
|
2884
2915
|
return /* @__PURE__ */ f(j, { children: [
|
|
2885
2916
|
s && /* @__PURE__ */ f(Fs, { cameraResolution: n, isImageMirror: o }),
|
|
@@ -2918,11 +2949,11 @@ function Us() {
|
|
|
2918
2949
|
const Bs = (e) => {
|
|
2919
2950
|
var s, u;
|
|
2920
2951
|
const t = { ...Oa, ...e == null ? void 0 : e.instructions }, n = {
|
|
2921
|
-
[
|
|
2922
|
-
[
|
|
2952
|
+
[V.LOADING]: { ...lr.loading, ...(s = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : s.loading },
|
|
2953
|
+
[V.WAITING]: { ...lr.waiting, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.waiting }
|
|
2923
2954
|
}, 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
2955
|
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."
|
|
2956
|
+
"The placeholder icon you are currently using is deprecated. Please use one of our alternative placeholders instead. Read more here: https://developers.innovatrics.com/digital-onboarding/technical/remote/dot-web-face/latest/documentation/#ui-component"
|
|
2926
2957
|
), {
|
|
2927
2958
|
instructions: t,
|
|
2928
2959
|
appStateInstructions: n,
|