@ahmed_hani/dot-auto-capture-ui 7.4.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +15 -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/palm.d.ts +1 -1
- package/ui-common/src/types/smile.d.ts +1 -0
- package/tsconfig.production.json +0 -22
package/magnifeye-liveness.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Oo = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var rt = (e, t, n) =>
|
|
4
|
-
var Xe, v,
|
|
2
|
+
var ko = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var rt = (e, t, n) => ko(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
var Xe, v, vr, ue, In, Cr, Er, wr, fn, Bt, zt, Sr, Ge = {}, br = [], No = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ke = Array.isArray;
|
|
5
5
|
function Z(e, t) {
|
|
6
6
|
for (var n in t) e[n] = t[n];
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function dn(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 ze(e, a, r, o, null);
|
|
17
17
|
}
|
|
18
18
|
function ze(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 ?? ++vr, __i: -1, __u: 0 };
|
|
20
20
|
return o == null && v.vnode != null && v.vnode(i), i;
|
|
21
21
|
}
|
|
22
22
|
function To() {
|
|
@@ -33,38 +33,38 @@ function Se(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" ? Se(e) : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function $r(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 $r(e);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
(!e.__d && (e.__d = !0) && ue.push(e) && !mt.__r++ ||
|
|
46
|
+
function Wt(e) {
|
|
47
|
+
(!e.__d && (e.__d = !0) && ue.push(e) && !mt.__r++ || In != v.debounceRendering) && ((In = v.debounceRendering) || Cr)(mt);
|
|
48
48
|
}
|
|
49
49
|
function mt() {
|
|
50
|
-
for (var e, t, n, r, o, i, a, c = 1; ue.length; ) ue.length > c && ue.sort(
|
|
50
|
+
for (var e, t, n, r, o, i, a, c = 1; ue.length; ) ue.length > c && ue.sort(Er), e = ue.shift(), c = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = Z({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), _n(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Se(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Nr(i, n, a), n.__e != o && $r(n)));
|
|
51
51
|
mt.__r = 0;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
var l, h, _, g, w, $, m = r && r.__k ||
|
|
55
|
-
for (s = xo(n, t, m, s, p), l = 0; l < p; l++) (_ = n.__k[l]) != null && (h = _.__i == -1 ? Ge : m[_.__i] || Ge, _.__i = l, $ =
|
|
53
|
+
function Or(e, t, n, r, o, i, a, c, s, u, f) {
|
|
54
|
+
var l, h, _, g, w, $, m = r && r.__k || br, p = t.length;
|
|
55
|
+
for (s = xo(n, t, m, s, p), l = 0; l < p; l++) (_ = n.__k[l]) != null && (h = _.__i == -1 ? Ge : m[_.__i] || Ge, _.__i = l, $ = _n(e, _, h, o, i, a, c, s, u, f), g = _.__e, _.ref && h.ref != _.ref && (h.ref && hn(h.ref, null, _), f.push(_.ref, _.__c || g, _)), w == null && g != null && (w = g), 4 & _.__u || h.__k === _.__k ? s = kr(_, s, e) : typeof _.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), _.__u &= -7);
|
|
56
56
|
return n.__e = w, s;
|
|
57
57
|
}
|
|
58
58
|
function xo(e, t, n, r, o) {
|
|
59
59
|
var i, a, c, s, u, f = n.length, l = f, h = 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 + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? ze(null, a, null, null, null) : Ke(a) ? ze(V, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? ze(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 = Io(a, n, s, l)) != -1 && (l--, (c = n[u]) && (c.__u |= 2)), c == null || c.__v == null ? (u == -1 && (o > f ? h-- : o < f && h++), typeof a.type != "function" && (a.__u |= 4)) : u != s && (u == s - 1 ? h-- : u == s + 1 ? h++ : (u > s ? h-- : h++, a.__u |= 4))) : e.__k[i] = null;
|
|
61
|
-
if (l) for (i = 0; i < f; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = Se(c)),
|
|
61
|
+
if (l) for (i = 0; i < f; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = Se(c)), xr(c, c));
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function kr(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 = kr(r[o], t, n));
|
|
68
68
|
return t;
|
|
69
69
|
}
|
|
70
70
|
e.__e != t && (t && e.type && !n.contains(t) && (t = Se(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
@@ -93,17 +93,17 @@ function Io(e, t, n, r) {
|
|
|
93
93
|
}
|
|
94
94
|
return -1;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
96
|
+
function An(e, t, n) {
|
|
97
|
+
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || No.test(t) ? n : n + "px";
|
|
98
98
|
}
|
|
99
99
|
function ot(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 || An(e.style, t, "");
|
|
104
|
+
if (n) for (t in n) r && n[t] == r[t] || An(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(wr, "$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 = fn, e.addEventListener(t, i ? zt : Bt, i)) : e.removeEventListener(t, i ? zt : Bt, 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,18 +114,18 @@ function ot(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 Rn(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 = fn++;
|
|
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
|
|
128
|
-
var f, l, h, _, g, w, $, m, p, O, S,
|
|
127
|
+
function _n(e, t, n, r, o, i, a, c, s, u) {
|
|
128
|
+
var f, l, h, _, g, w, $, m, p, O, S, N, E, y, F, U, Pe, 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]), (f = v.__b) && f(t);
|
|
131
131
|
e: if (typeof B == "function") try {
|
|
@@ -134,7 +134,7 @@ function dn(e, t, n, r, o, i, a, c, s, u) {
|
|
|
134
134
|
if (p && B.getDerivedStateFromProps == null && m !== _ && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, S), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, S) === !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(ce) {
|
|
136
136
|
ce && (ce.__ = t);
|
|
137
|
-
}),
|
|
137
|
+
}), N = 0; N < l._sb.length; N++) l.__h.push(l._sb[N]);
|
|
138
138
|
l._sb = [], l.__h.length && a.push(l);
|
|
139
139
|
break e;
|
|
140
140
|
}
|
|
@@ -148,12 +148,12 @@ function dn(e, t, n, r, o, i, a, c, s, u) {
|
|
|
148
148
|
} else do
|
|
149
149
|
l.__d = !1, E && E(t), f = 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 = Z(Z({}, r), l.getChildContext())), p && !h && l.getSnapshotBeforeUpdate != null && (w = l.getSnapshotBeforeUpdate(_, g)), U = f, f != null && f.type === V && f.key == null && (U =
|
|
151
|
+
l.state = l.__s, l.getChildContext != null && (r = Z(Z({}, r), l.getChildContext())), p && !h && l.getSnapshotBeforeUpdate != null && (w = l.getSnapshotBeforeUpdate(_, g)), U = f, f != null && f.type === V && f.key == null && (U = Tr(f.props.children)), c = Or(e, Ke(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 (ce) {
|
|
153
153
|
if (t.__v = null, s || i != null) if (ce.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 (Pe = i.length; Pe--; )
|
|
156
|
+
} else for (Pe = i.length; Pe--; ) dn(i[Pe]);
|
|
157
157
|
else t.__e = n.__e, t.__k = n.__k;
|
|
158
158
|
v.__e(ce, t, n);
|
|
159
159
|
}
|
|
@@ -161,7 +161,7 @@ function dn(e, t, n, r, o, i, a, c, s, u) {
|
|
|
161
161
|
return (f = v.diffed) && f(t), 128 & t.__u ? void 0 : c;
|
|
162
162
|
}
|
|
163
163
|
function Nr(e, t, n) {
|
|
164
|
-
for (var r = 0; r < n.length; r++)
|
|
164
|
+
for (var r = 0; r < n.length; r++) hn(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 Nr(e, t, n) {
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ke(e) ? e.map(
|
|
175
|
+
function Tr(e) {
|
|
176
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ke(e) ? e.map(Tr) : Z({}, e);
|
|
177
177
|
}
|
|
178
178
|
function Ao(e, t, n, r, o, i, a, c, s) {
|
|
179
179
|
var u, f, l, h, _, g, w, $ = n.props, m = t.props, p = t.type;
|
|
@@ -199,12 +199,12 @@ function Ao(e, t, n, r, o, i, a, c, s) {
|
|
|
199
199
|
}
|
|
200
200
|
for (u in m) _ = m[u], u == "children" ? h = _ : u == "dangerouslySetInnerHTML" ? f = _ : u == "value" ? g = _ : u == "checked" ? w = _ : c && typeof _ != "function" || $[u] === _ || ot(e, u, _, $[u], o);
|
|
201
201
|
if (f) c || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
202
|
-
else if (l && (e.innerHTML = ""),
|
|
202
|
+
else if (l && (e.innerHTML = ""), Or(t.type == "template" ? e.content : e, Ke(h) ? h : [h], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Se(n, 0), c, s), i != null) for (u = i.length; u--; ) dn(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]) && ot(e, u, g, $[u], o), u = "checked", w != null && w != e[u] && ot(e, u, w, $[u], o));
|
|
204
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function hn(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 _n(e, t, n) {
|
|
|
214
214
|
v.__e(o, n);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function xr(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 || hn(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 Tr(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] && xr(r[o], t, n || typeof e.type != "function");
|
|
228
|
+
n || dn(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
229
229
|
}
|
|
230
230
|
function Ro(e, t, n) {
|
|
231
231
|
return this.constructor(e, n);
|
|
232
232
|
}
|
|
233
233
|
function ie(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 = [], _n(t, e = (!r && n || t).__k = M(V, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Nr(i, e, a);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
ie(e, t,
|
|
237
|
+
function pn(e, t) {
|
|
238
|
+
ie(e, t, pn);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function mn(e, t, n) {
|
|
241
241
|
var r, o, i, a, c = Z({}, 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 ? Xe.call(arguments, 2) : n), ze(e.type, c, r || e.key, o || e.ref, null);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Ir(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() {
|
|
@@ -251,7 +251,7 @@ function xr(e) {
|
|
|
251
251
|
r = null;
|
|
252
252
|
}, this.shouldComponentUpdate = function(i) {
|
|
253
253
|
this.props.value != i.value && r.forEach(function(a) {
|
|
254
|
-
a.__e = !0,
|
|
254
|
+
a.__e = !0, Wt(a);
|
|
255
255
|
});
|
|
256
256
|
}, this.sub = function(i) {
|
|
257
257
|
r.add(i);
|
|
@@ -261,27 +261,27 @@ function xr(e) {
|
|
|
261
261
|
};
|
|
262
262
|
}), n.children;
|
|
263
263
|
}
|
|
264
|
-
return t.__c = "__cC" +
|
|
264
|
+
return t.__c = "__cC" + Sr++, 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
|
-
Xe =
|
|
268
|
+
Xe = br.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
|
+
} }, vr = 0, j.prototype.setState = function(e, t) {
|
|
276
276
|
var n;
|
|
277
|
-
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, n), this.props)), e && Z(n, e), e != null && this.__v && (t && this._sb.push(t),
|
|
277
|
+
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, n), this.props)), e && Z(n, e), e != null && this.__v && (t && this._sb.push(t), Wt(this));
|
|
278
278
|
}, j.prototype.forceUpdate = function(e) {
|
|
279
|
-
this.__v && (this.__e = !0, e && this.__h.push(e),
|
|
280
|
-
}, j.prototype.render = V, ue = [],
|
|
279
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Wt(this));
|
|
280
|
+
}, j.prototype.render = V, ue = [], Cr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Er = function(e, t) {
|
|
281
281
|
return e.__v.__b - t.__v.__b;
|
|
282
|
-
}, mt.__r = 0,
|
|
283
|
-
function
|
|
284
|
-
return (
|
|
282
|
+
}, mt.__r = 0, wr = /(PointerCapture)$|Capture$/i, fn = 0, Bt = Rn(!1), zt = Rn(!0), Sr = 0;
|
|
283
|
+
function gn() {
|
|
284
|
+
return (gn = 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,24 +300,24 @@ function Do(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, Po);
|
|
303
|
-
return
|
|
303
|
+
return mn(t, n);
|
|
304
304
|
}
|
|
305
305
|
function Lo() {
|
|
306
306
|
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
307
|
-
this.dispatchEvent(e), this._vdom = M(Do,
|
|
307
|
+
this.dispatchEvent(e), this._vdom = M(Do, gn({}, 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[Ar(c[a].name)] = c[a].value);
|
|
312
312
|
for (a = s.length; a--; ) {
|
|
313
313
|
var u = t(s[a], null), f = s[a].slot;
|
|
314
|
-
f ? i[f] = M(
|
|
314
|
+
f ? i[f] = M(Pn, { name: f }, u) : o[a] = u;
|
|
315
315
|
}
|
|
316
|
-
var l = r ? M(
|
|
316
|
+
var l = r ? M(Pn, 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") ? pn : ie)(this._vdom, this._root);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Ar(e) {
|
|
321
321
|
return e.replace(/-(\w)/g, function(t, n) {
|
|
322
322
|
return n ? n.toUpperCase() : "";
|
|
323
323
|
});
|
|
@@ -325,15 +325,15 @@ function Ir(e) {
|
|
|
325
325
|
function Mo(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[Ar(e)] = n, this._vdom = mn(this._vdom, r), ie(this._vdom, this._root);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
function Ho() {
|
|
332
332
|
ie(this._vdom = null, this._root);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Pn(e, t) {
|
|
335
335
|
var n = this;
|
|
336
|
-
return M("slot",
|
|
336
|
+
return M("slot", gn({}, 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);
|
|
@@ -363,12 +363,21 @@ function d(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 Dn = {
|
|
367
367
|
SWITCH_CAMERA: "switch-camera",
|
|
368
368
|
TOGGLE_MIRROR: "toggle-mirror"
|
|
369
369
|
};
|
|
370
|
-
var be = /* @__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))(be || {}),
|
|
371
|
-
const
|
|
370
|
+
var be = /* @__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))(be || {}), yn = /* @__PURE__ */ ((e) => (e.ANIMATION_END = "magnifeye-auto-capture:animation-end", e.CONTROL = "magnifeye-auto-capture:control", e.STATUS_CHANGED = "magnifeye-auto-capture:status-changed", e))(yn || {});
|
|
371
|
+
const Bo = {
|
|
372
|
+
LOADING: "LOADING",
|
|
373
|
+
ERROR: "ERROR",
|
|
374
|
+
WAITING: "WAITING",
|
|
375
|
+
RUNNING: "RUNNING",
|
|
376
|
+
COMPLETE: "COMPLETE"
|
|
377
|
+
}, jt = {
|
|
378
|
+
...Bo,
|
|
379
|
+
DONE: "DONE"
|
|
380
|
+
}, Ln = {
|
|
372
381
|
EYE_NOT_PRESENT: "eye_not_present"
|
|
373
382
|
}, P = {
|
|
374
383
|
CANDIDATE_SELECTION: "candidate_selection",
|
|
@@ -380,37 +389,29 @@ const Dn = {
|
|
|
380
389
|
BRIGHTNESS_TOO_LOW: "brightness_too_low",
|
|
381
390
|
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
|
|
382
391
|
DEVICE_PITCHED: "device_pitched",
|
|
383
|
-
LEFT_EYE_NOT_PRESENT: `left_${
|
|
384
|
-
RIGHT_EYE_NOT_PRESENT: `right_${
|
|
392
|
+
LEFT_EYE_NOT_PRESENT: `left_${Ln.EYE_NOT_PRESENT}`,
|
|
393
|
+
RIGHT_EYE_NOT_PRESENT: `right_${Ln.EYE_NOT_PRESENT}`,
|
|
385
394
|
MOUTH_NOT_PRESENT: "mouth_not_present",
|
|
386
395
|
MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
|
|
387
396
|
MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
|
|
388
|
-
}, Bo = {
|
|
389
|
-
LOADING: "LOADING",
|
|
390
|
-
ERROR: "ERROR",
|
|
391
|
-
WAITING: "WAITING",
|
|
392
|
-
RUNNING: "RUNNING"
|
|
393
|
-
}, Wt = {
|
|
394
|
-
...Bo,
|
|
395
|
-
DONE: "DONE"
|
|
396
397
|
}, Ve = {
|
|
397
398
|
...P,
|
|
398
399
|
FIT_YOUR_EYE: "fit_your_eye"
|
|
399
400
|
};
|
|
400
401
|
var Ye = /* @__PURE__ */ ((e) => (e.CLOSEUP = "CLOSEUP", e.DISTANT = "DISTANT", e.MIDDLE = "MIDDLE", e))(Ye || {});
|
|
401
|
-
const we =
|
|
402
|
-
var ae, x,
|
|
402
|
+
const we = jt;
|
|
403
|
+
var ae, x, Pt, Mn, $e = 0, Rr = [], I = v, Hn = I.__b, Fn = I.__r, Un = I.diffed, Bn = I.__c, zn = I.unmount, Wn = I.__;
|
|
403
404
|
function xe(e, t) {
|
|
404
405
|
I.__h && I.__h(x, e, $e || t), $e = 0;
|
|
405
406
|
var n = x.__H || (x.__H = { __: [], __h: [] });
|
|
406
407
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
407
408
|
}
|
|
408
409
|
function H(e) {
|
|
409
|
-
return $e = 1,
|
|
410
|
+
return $e = 1, vn(Lr, e);
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function vn(e, t, n) {
|
|
412
413
|
var r = xe(ae++, 2);
|
|
413
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
414
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Lr(void 0, t), function(c) {
|
|
414
415
|
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, c);
|
|
415
416
|
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
416
417
|
}], r.__c = x, !x.__f)) {
|
|
@@ -444,18 +445,18 @@ function yn(e, t, n) {
|
|
|
444
445
|
}
|
|
445
446
|
function X(e, t) {
|
|
446
447
|
var n = xe(ae++, 3);
|
|
447
|
-
!I.__s &&
|
|
448
|
+
!I.__s && Cn(n.__H, t) && (n.__ = e, n.u = t, x.__H.__h.push(n));
|
|
448
449
|
}
|
|
449
450
|
function Ie(e, t) {
|
|
450
451
|
var n = xe(ae++, 4);
|
|
451
|
-
!I.__s &&
|
|
452
|
+
!I.__s && Cn(n.__H, t) && (n.__ = e, n.u = t, x.__h.push(n));
|
|
452
453
|
}
|
|
453
454
|
function Je(e) {
|
|
454
455
|
return $e = 5, te(function() {
|
|
455
456
|
return { current: e };
|
|
456
457
|
}, []);
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function Pr(e, t, n) {
|
|
459
460
|
$e = 6, Ie(function() {
|
|
460
461
|
if (typeof e == "function") {
|
|
461
462
|
var r = e(t());
|
|
@@ -470,7 +471,7 @@ function Rr(e, t, n) {
|
|
|
470
471
|
}
|
|
471
472
|
function te(e, t) {
|
|
472
473
|
var n = xe(ae++, 7);
|
|
473
|
-
return
|
|
474
|
+
return Cn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
474
475
|
}
|
|
475
476
|
function pe(e, t) {
|
|
476
477
|
return $e = 8, te(function() {
|
|
@@ -484,7 +485,7 @@ function Qe(e) {
|
|
|
484
485
|
function gt(e, t) {
|
|
485
486
|
I.useDebugValue && I.useDebugValue(t ? t(e) : e);
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function Dr() {
|
|
488
489
|
var e = xe(ae++, 11);
|
|
489
490
|
if (!e.__) {
|
|
490
491
|
for (var t = x.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
@@ -494,42 +495,42 @@ function Pr() {
|
|
|
494
495
|
return e.__;
|
|
495
496
|
}
|
|
496
497
|
function zo() {
|
|
497
|
-
for (var e; e =
|
|
498
|
-
e.__H.__h.forEach(lt), e.__H.__h.forEach(
|
|
498
|
+
for (var e; e = Rr.shift(); ) if (e.__P && e.__H) try {
|
|
499
|
+
e.__H.__h.forEach(lt), e.__H.__h.forEach(Gt), e.__H.__h = [];
|
|
499
500
|
} catch (t) {
|
|
500
501
|
e.__H.__h = [], I.__e(t, e.__v);
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
504
|
I.__b = function(e) {
|
|
504
|
-
x = null,
|
|
505
|
+
x = null, Hn && Hn(e);
|
|
505
506
|
}, I.__ = function(e, t) {
|
|
506
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
507
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Wn && Wn(e, t);
|
|
507
508
|
}, I.__r = function(e) {
|
|
508
|
-
|
|
509
|
+
Fn && Fn(e), ae = 0;
|
|
509
510
|
var t = (x = e.__c).__H;
|
|
510
|
-
t && (
|
|
511
|
+
t && (Pt === x ? (t.__h = [], x.__h = [], t.__.forEach(function(n) {
|
|
511
512
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
512
|
-
})) : (t.__h.forEach(lt), t.__h.forEach(
|
|
513
|
+
})) : (t.__h.forEach(lt), t.__h.forEach(Gt), t.__h = [], ae = 0)), Pt = x;
|
|
513
514
|
}, I.diffed = function(e) {
|
|
514
|
-
|
|
515
|
+
Un && Un(e);
|
|
515
516
|
var t = e.__c;
|
|
516
|
-
t && t.__H && (t.__H.__h.length && (
|
|
517
|
+
t && t.__H && (t.__H.__h.length && (Rr.push(t) !== 1 && Mn === I.requestAnimationFrame || ((Mn = I.requestAnimationFrame) || Wo)(zo)), t.__H.__.forEach(function(n) {
|
|
517
518
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
518
|
-
})),
|
|
519
|
+
})), Pt = x = null;
|
|
519
520
|
}, I.__c = function(e, t) {
|
|
520
521
|
t.some(function(n) {
|
|
521
522
|
try {
|
|
522
523
|
n.__h.forEach(lt), n.__h = n.__h.filter(function(r) {
|
|
523
|
-
return !r.__ ||
|
|
524
|
+
return !r.__ || Gt(r);
|
|
524
525
|
});
|
|
525
526
|
} catch (r) {
|
|
526
527
|
t.some(function(o) {
|
|
527
528
|
o.__h && (o.__h = []);
|
|
528
529
|
}), t = [], I.__e(r, n.__v);
|
|
529
530
|
}
|
|
530
|
-
}),
|
|
531
|
+
}), Bn && Bn(e, t);
|
|
531
532
|
}, I.unmount = function(e) {
|
|
532
|
-
|
|
533
|
+
zn && zn(e);
|
|
533
534
|
var t, n = e.__c;
|
|
534
535
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
535
536
|
try {
|
|
@@ -539,27 +540,27 @@ I.__b = function(e) {
|
|
|
539
540
|
}
|
|
540
541
|
}), n.__H = void 0, t && I.__e(t, n.__v));
|
|
541
542
|
};
|
|
542
|
-
var
|
|
543
|
+
var jn = typeof requestAnimationFrame == "function";
|
|
543
544
|
function Wo(e) {
|
|
544
545
|
var t, n = function() {
|
|
545
|
-
clearTimeout(r),
|
|
546
|
+
clearTimeout(r), jn && cancelAnimationFrame(t), setTimeout(e);
|
|
546
547
|
}, r = setTimeout(n, 100);
|
|
547
|
-
|
|
548
|
+
jn && (t = requestAnimationFrame(n));
|
|
548
549
|
}
|
|
549
550
|
function lt(e) {
|
|
550
551
|
var t = x, n = e.__c;
|
|
551
552
|
typeof n == "function" && (e.__c = void 0, n()), x = t;
|
|
552
553
|
}
|
|
553
|
-
function
|
|
554
|
+
function Gt(e) {
|
|
554
555
|
var t = x;
|
|
555
556
|
e.__c = e.__(), x = t;
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
+
function Cn(e, t) {
|
|
558
559
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
559
560
|
return n !== e[r];
|
|
560
561
|
});
|
|
561
562
|
}
|
|
562
|
-
function
|
|
563
|
+
function Lr(e, t) {
|
|
563
564
|
return typeof t == "function" ? t(e) : t;
|
|
564
565
|
}
|
|
565
566
|
var D = function() {
|
|
@@ -588,26 +589,26 @@ var Go = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
588
589
|
}
|
|
589
590
|
/* Z+1 */
|
|
590
591
|
);
|
|
591
|
-
function
|
|
592
|
+
function Mr(e, t) {
|
|
592
593
|
for (var n in t) e[n] = t[n];
|
|
593
594
|
return e;
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
+
function Vt(e, t) {
|
|
596
597
|
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
597
598
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
598
599
|
return !1;
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
+
function Hr(e, t) {
|
|
601
602
|
var n = t(), r = H({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
602
603
|
return Ie(function() {
|
|
603
|
-
o.__ = n, o.u = t,
|
|
604
|
+
o.__ = n, o.u = t, Dt(o) && i({ t: o });
|
|
604
605
|
}, [e, n, t]), X(function() {
|
|
605
|
-
return
|
|
606
|
-
|
|
606
|
+
return Dt(o) && i({ t: o }), e(function() {
|
|
607
|
+
Dt(o) && i({ t: o });
|
|
607
608
|
});
|
|
608
609
|
}, [e]), n;
|
|
609
610
|
}
|
|
610
|
-
function
|
|
611
|
+
function Dt(e) {
|
|
611
612
|
var t, n, r = e.u, o = e.__;
|
|
612
613
|
try {
|
|
613
614
|
var i = r();
|
|
@@ -616,47 +617,47 @@ function Pt(e) {
|
|
|
616
617
|
return !0;
|
|
617
618
|
}
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function Fr(e) {
|
|
620
621
|
e();
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
+
function Ur(e) {
|
|
623
624
|
return e;
|
|
624
625
|
}
|
|
625
|
-
function
|
|
626
|
-
return [!1,
|
|
626
|
+
function Br() {
|
|
627
|
+
return [!1, Fr];
|
|
627
628
|
}
|
|
628
|
-
var
|
|
629
|
-
function
|
|
629
|
+
var zr = Ie;
|
|
630
|
+
function Yt(e, t) {
|
|
630
631
|
this.props = e, this.context = t;
|
|
631
632
|
}
|
|
632
633
|
function Yo(e, t) {
|
|
633
634
|
function n(o) {
|
|
634
635
|
var i = this.props.ref, a = i == o.ref;
|
|
635
|
-
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a :
|
|
636
|
+
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Vt(this.props, o);
|
|
636
637
|
}
|
|
637
638
|
function r(o) {
|
|
638
639
|
return this.shouldComponentUpdate = n, M(e, o);
|
|
639
640
|
}
|
|
640
641
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
641
642
|
}
|
|
642
|
-
(
|
|
643
|
-
return
|
|
643
|
+
(Yt.prototype = new j()).isPureReactComponent = !0, Yt.prototype.shouldComponentUpdate = function(e, t) {
|
|
644
|
+
return Vt(this.props, e) || Vt(this.state, t);
|
|
644
645
|
};
|
|
645
|
-
var
|
|
646
|
+
var Gn = v.__b;
|
|
646
647
|
v.__b = function(e) {
|
|
647
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
648
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Gn && Gn(e);
|
|
648
649
|
};
|
|
649
650
|
var Zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
650
651
|
function qo(e) {
|
|
651
652
|
function t(n) {
|
|
652
|
-
var r =
|
|
653
|
+
var r = Mr({}, n);
|
|
653
654
|
return delete r.ref, e(r, n.ref || null);
|
|
654
655
|
}
|
|
655
656
|
return t.$$typeof = Zo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
656
657
|
}
|
|
657
|
-
var
|
|
658
|
+
var Vn = function(e, t) {
|
|
658
659
|
return e == null ? null : ee(ee(e).map(t));
|
|
659
|
-
}, Xo = { map:
|
|
660
|
+
}, Xo = { map: Vn, forEach: Vn, count: function(e) {
|
|
660
661
|
return e ? ee(e).length : 0;
|
|
661
662
|
}, only: function(e) {
|
|
662
663
|
var t = ee(e);
|
|
@@ -669,23 +670,23 @@ v.__e = function(e, t, n, r) {
|
|
|
669
670
|
}
|
|
670
671
|
Ko(e, t, n, r);
|
|
671
672
|
};
|
|
672
|
-
var
|
|
673
|
-
function
|
|
673
|
+
var Yn = v.unmount;
|
|
674
|
+
function Wr(e, t, n) {
|
|
674
675
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
675
676
|
typeof r.__c == "function" && r.__c();
|
|
676
|
-
}), e.__c.__H = null), (e =
|
|
677
|
-
return
|
|
677
|
+
}), e.__c.__H = null), (e = Mr({}, 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) {
|
|
678
|
+
return Wr(r, t, n);
|
|
678
679
|
})), e;
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
+
function jr(e, t, n) {
|
|
681
682
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
682
|
-
return
|
|
683
|
+
return jr(r, t, n);
|
|
683
684
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
684
685
|
}
|
|
685
686
|
function ut() {
|
|
686
687
|
this.__u = 0, this.o = null, this.__b = null;
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
+
function Gr(e) {
|
|
689
690
|
var t = e.__.__c;
|
|
690
691
|
return t && t.__a && t.__a(e);
|
|
691
692
|
}
|
|
@@ -707,11 +708,11 @@ function Fe() {
|
|
|
707
708
|
}
|
|
708
709
|
v.unmount = function(e) {
|
|
709
710
|
var t = e.__c;
|
|
710
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
711
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Yn && Yn(e);
|
|
711
712
|
}, (ut.prototype = new j()).__c = function(e, t) {
|
|
712
713
|
var n = t.__c, r = this;
|
|
713
714
|
r.o == null && (r.o = []), r.o.push(n);
|
|
714
|
-
var o =
|
|
715
|
+
var o = Gr(r.__v), i = !1, a = function() {
|
|
715
716
|
i || (i = !0, n.__R = null, o ? o(c) : c());
|
|
716
717
|
};
|
|
717
718
|
n.__R = a;
|
|
@@ -719,7 +720,7 @@ v.unmount = function(e) {
|
|
|
719
720
|
if (!--r.__u) {
|
|
720
721
|
if (r.state.__a) {
|
|
721
722
|
var s = r.state.__a;
|
|
722
|
-
r.__v.__k[0] =
|
|
723
|
+
r.__v.__k[0] = jr(s, s.__c.__P, s.__c.__O);
|
|
723
724
|
}
|
|
724
725
|
var u;
|
|
725
726
|
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
|
|
@@ -732,14 +733,14 @@ v.unmount = function(e) {
|
|
|
732
733
|
if (this.__b) {
|
|
733
734
|
if (this.__v.__k) {
|
|
734
735
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
735
|
-
this.__v.__k[0] =
|
|
736
|
+
this.__v.__k[0] = Wr(this.__b, n, r.__O = r.__P);
|
|
736
737
|
}
|
|
737
738
|
this.__b = null;
|
|
738
739
|
}
|
|
739
740
|
var o = t.__a && M(V, null, e.fallback);
|
|
740
741
|
return o && (o.__u &= -33), [M(V, null, t.__a ? null : e.children), o];
|
|
741
742
|
};
|
|
742
|
-
var
|
|
743
|
+
var Zn = function(e, t, n) {
|
|
743
744
|
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; ) {
|
|
744
745
|
for (; n.length > 3; ) n.pop()();
|
|
745
746
|
if (n[1] < n[0]) break;
|
|
@@ -774,10 +775,10 @@ function ti(e, t) {
|
|
|
774
775
|
return n.containerInfo = t, n;
|
|
775
776
|
}
|
|
776
777
|
(Fe.prototype = new j()).__a = function(e) {
|
|
777
|
-
var t = this, n =
|
|
778
|
+
var t = this, n = Gr(t.__v), r = t.l.get(e);
|
|
778
779
|
return r[0]++, function(o) {
|
|
779
780
|
var i = function() {
|
|
780
|
-
t.props.revealOrder ? (r.push(o),
|
|
781
|
+
t.props.revealOrder ? (r.push(o), Zn(t, e, r)) : o();
|
|
781
782
|
};
|
|
782
783
|
n ? n(i) : i();
|
|
783
784
|
};
|
|
@@ -790,17 +791,17 @@ function ti(e, t) {
|
|
|
790
791
|
}, Fe.prototype.componentDidUpdate = Fe.prototype.componentDidMount = function() {
|
|
791
792
|
var e = this;
|
|
792
793
|
this.l.forEach(function(t, n) {
|
|
793
|
-
|
|
794
|
+
Zn(e, n, t);
|
|
794
795
|
});
|
|
795
796
|
};
|
|
796
|
-
var
|
|
797
|
+
var Vr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ni = /^(?: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]/, ri = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, oi = /[A-Z0-9]/g, ii = typeof document < "u", ai = function(e) {
|
|
797
798
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
798
799
|
};
|
|
799
800
|
function si(e, t, n) {
|
|
800
801
|
return t.__k == null && (t.textContent = ""), ie(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
801
802
|
}
|
|
802
803
|
function ci(e, t, n) {
|
|
803
|
-
return
|
|
804
|
+
return pn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
804
805
|
}
|
|
805
806
|
j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
806
807
|
Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
|
|
@@ -809,7 +810,7 @@ j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
809
810
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
810
811
|
} });
|
|
811
812
|
});
|
|
812
|
-
var
|
|
813
|
+
var qn = v.event;
|
|
813
814
|
function li() {
|
|
814
815
|
}
|
|
815
816
|
function ui() {
|
|
@@ -819,11 +820,11 @@ function fi() {
|
|
|
819
820
|
return this.defaultPrevented;
|
|
820
821
|
}
|
|
821
822
|
v.event = function(e) {
|
|
822
|
-
return
|
|
823
|
+
return qn && (e = qn(e)), e.persist = li, e.isPropagationStopped = ui, e.isDefaultPrevented = fi, e.nativeEvent = e;
|
|
823
824
|
};
|
|
824
|
-
var
|
|
825
|
+
var En, di = { enumerable: !1, configurable: !0, get: function() {
|
|
825
826
|
return this.class;
|
|
826
|
-
} },
|
|
827
|
+
} }, Xn = v.vnode;
|
|
827
828
|
v.vnode = function(e) {
|
|
828
829
|
typeof e.type == "string" && function(t) {
|
|
829
830
|
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
|
|
@@ -839,35 +840,35 @@ v.vnode = function(e) {
|
|
|
839
840
|
})), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
|
|
840
841
|
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
841
842
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", di)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
842
|
-
}(e), e.$$typeof =
|
|
843
|
+
}(e), e.$$typeof = Vr, Xn && Xn(e);
|
|
843
844
|
};
|
|
844
|
-
var
|
|
845
|
+
var Kn = v.__r;
|
|
845
846
|
v.__r = function(e) {
|
|
846
|
-
|
|
847
|
+
Kn && Kn(e), En = e.__c;
|
|
847
848
|
};
|
|
848
|
-
var
|
|
849
|
+
var Jn = v.diffed;
|
|
849
850
|
v.diffed = function(e) {
|
|
850
|
-
|
|
851
|
+
Jn && Jn(e);
|
|
851
852
|
var t = e.props, n = e.__e;
|
|
852
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
853
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), En = null;
|
|
853
854
|
};
|
|
854
855
|
var _i = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
855
|
-
return
|
|
856
|
-
}, useCallback: pe, useContext: Qe, useDebugValue: gt, useDeferredValue:
|
|
856
|
+
return En.__n[e.__c].props.value;
|
|
857
|
+
}, useCallback: pe, useContext: Qe, useDebugValue: gt, useDeferredValue: Ur, useEffect: X, useId: Dr, useImperativeHandle: Pr, useInsertionEffect: zr, useLayoutEffect: Ie, useMemo: te, useReducer: vn, useRef: Je, useState: H, useSyncExternalStore: Hr, useTransition: Br } } };
|
|
857
858
|
function hi(e) {
|
|
858
859
|
return M.bind(null, e);
|
|
859
860
|
}
|
|
860
|
-
function
|
|
861
|
-
return !!e && e.$$typeof ===
|
|
861
|
+
function St(e) {
|
|
862
|
+
return !!e && e.$$typeof === Vr;
|
|
862
863
|
}
|
|
863
864
|
function pi(e) {
|
|
864
|
-
return
|
|
865
|
+
return St(e) && e.type === V;
|
|
865
866
|
}
|
|
866
867
|
function mi(e) {
|
|
867
868
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
868
869
|
}
|
|
869
870
|
function gi(e) {
|
|
870
|
-
return
|
|
871
|
+
return St(e) ? mn.apply(null, arguments) : e;
|
|
871
872
|
}
|
|
872
873
|
function yi(e) {
|
|
873
874
|
return !!e.__k && (ie(null, e), !0);
|
|
@@ -879,13 +880,13 @@ var Ci = function(e, t) {
|
|
|
879
880
|
return e(t);
|
|
880
881
|
}, Ei = function(e, t) {
|
|
881
882
|
return e(t);
|
|
882
|
-
}, wi = V, Si =
|
|
883
|
+
}, wi = V, Si = St, ne = { useState: H, useId: Dr, useReducer: vn, useEffect: X, useLayoutEffect: Ie, useInsertionEffect: zr, useTransition: Br, useDeferredValue: Ur, useSyncExternalStore: Hr, startTransition: Fr, useRef: Je, useImperativeHandle: Pr, useMemo: te, useCallback: pe, useContext: Qe, useDebugValue: gt, version: "18.3.1", Children: Xo, render: si, hydrate: ci, unmountComponentAtNode: yi, createPortal: ti, createElement: M, createContext: Ir, createFactory: hi, cloneElement: gi, createRef: To, Fragment: V, isValidElement: St, isElement: Si, isFragment: pi, isMemo: mi, findDOMNode: vi, Component: j, PureComponent: Yt, memo: Yo, forwardRef: qo, flushSync: Ei, unstable_batchedUpdates: Ci, StrictMode: wi, Suspense: ut, SuspenseList: Fe, lazy: Jo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _i };
|
|
883
884
|
function bi(e) {
|
|
884
885
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
885
886
|
}
|
|
886
|
-
var
|
|
887
|
+
var Lt, Qn;
|
|
887
888
|
function $i() {
|
|
888
|
-
return
|
|
889
|
+
return Qn || (Qn = 1, Lt = function(t, n, r, o) {
|
|
889
890
|
var i = r ? r.call(o, t, n) : void 0;
|
|
890
891
|
if (i !== void 0)
|
|
891
892
|
return !!i;
|
|
@@ -905,15 +906,15 @@ function $i() {
|
|
|
905
906
|
return !1;
|
|
906
907
|
}
|
|
907
908
|
return !0;
|
|
908
|
-
}),
|
|
909
|
+
}), Lt;
|
|
909
910
|
}
|
|
910
911
|
var Oi = $i();
|
|
911
|
-
const
|
|
912
|
-
var T = "-ms-", We = "-moz-",
|
|
912
|
+
const ki = /* @__PURE__ */ bi(Oi);
|
|
913
|
+
var T = "-ms-", We = "-moz-", k = "-webkit-", Yr = "comm", bt = "rule", wn = "decl", Ni = "@import", Zr = "@keyframes", Ti = "@layer", qr = Math.abs, Sn = String.fromCharCode, Zt = Object.assign;
|
|
913
914
|
function xi(e, t) {
|
|
914
915
|
return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
+
function Xr(e) {
|
|
917
918
|
return e.trim();
|
|
918
919
|
}
|
|
919
920
|
function J(e, t) {
|
|
@@ -934,7 +935,7 @@ function Oe(e, t, n) {
|
|
|
934
935
|
function Y(e) {
|
|
935
936
|
return e.length;
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function Kr(e) {
|
|
938
939
|
return e.length;
|
|
939
940
|
}
|
|
940
941
|
function Ue(e, t) {
|
|
@@ -943,17 +944,17 @@ function Ue(e, t) {
|
|
|
943
944
|
function Ii(e, t) {
|
|
944
945
|
return e.map(t).join("");
|
|
945
946
|
}
|
|
946
|
-
function
|
|
947
|
+
function er(e, t) {
|
|
947
948
|
return e.filter(function(n) {
|
|
948
949
|
return !J(n, t);
|
|
949
950
|
});
|
|
950
951
|
}
|
|
951
|
-
var
|
|
952
|
-
function
|
|
953
|
-
return { value: e, root: t, parent: n, type: r, props: o, children: i, line:
|
|
952
|
+
var $t = 1, ke = 1, Jr = 0, W = 0, A = 0, Ae = "";
|
|
953
|
+
function Ot(e, t, n, r, o, i, a, c) {
|
|
954
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: $t, column: ke, length: a, return: "", siblings: c };
|
|
954
955
|
}
|
|
955
956
|
function oe(e, t) {
|
|
956
|
-
return
|
|
957
|
+
return Zt(Ot("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
957
958
|
}
|
|
958
959
|
function Ee(e) {
|
|
959
960
|
for (; e.root; )
|
|
@@ -964,10 +965,10 @@ function Ai() {
|
|
|
964
965
|
return A;
|
|
965
966
|
}
|
|
966
967
|
function Ri() {
|
|
967
|
-
return A = W > 0 ? R(Ae, --W) : 0,
|
|
968
|
+
return A = W > 0 ? R(Ae, --W) : 0, ke--, A === 10 && (ke = 1, $t--), A;
|
|
968
969
|
}
|
|
969
970
|
function G() {
|
|
970
|
-
return A = W <
|
|
971
|
+
return A = W < Jr ? R(Ae, W++) : 0, ke++, A === 10 && (ke = 1, $t++), A;
|
|
971
972
|
}
|
|
972
973
|
function _e() {
|
|
973
974
|
return R(Ae, W);
|
|
@@ -975,10 +976,10 @@ function _e() {
|
|
|
975
976
|
function dt() {
|
|
976
977
|
return W;
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
+
function kt(e, t) {
|
|
979
980
|
return Oe(Ae, e, t);
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function qt(e) {
|
|
982
983
|
switch (e) {
|
|
983
984
|
// \0 \t \n \r \s whitespace token
|
|
984
985
|
case 0:
|
|
@@ -1017,25 +1018,25 @@ function Zt(e) {
|
|
|
1017
1018
|
return 0;
|
|
1018
1019
|
}
|
|
1019
1020
|
function Pi(e) {
|
|
1020
|
-
return
|
|
1021
|
+
return $t = ke = 1, Jr = Y(Ae = e), W = 0, [];
|
|
1021
1022
|
}
|
|
1022
1023
|
function Di(e) {
|
|
1023
1024
|
return Ae = "", e;
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return
|
|
1026
|
+
function Mt(e) {
|
|
1027
|
+
return Xr(kt(W - 1, Xt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1027
1028
|
}
|
|
1028
1029
|
function Li(e) {
|
|
1029
1030
|
for (; (A = _e()) && A < 33; )
|
|
1030
1031
|
G();
|
|
1031
|
-
return
|
|
1032
|
+
return qt(e) > 2 || qt(A) > 3 ? "" : " ";
|
|
1032
1033
|
}
|
|
1033
1034
|
function Mi(e, t) {
|
|
1034
1035
|
for (; --t && G() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
|
|
1035
1036
|
;
|
|
1036
|
-
return
|
|
1037
|
+
return kt(e, dt() + (t < 6 && _e() == 32 && G() == 32));
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
+
function Xt(e) {
|
|
1039
1040
|
for (; G(); )
|
|
1040
1041
|
switch (A) {
|
|
1041
1042
|
// ] ) " '
|
|
@@ -1044,11 +1045,11 @@ function qt(e) {
|
|
|
1044
1045
|
// " '
|
|
1045
1046
|
case 34:
|
|
1046
1047
|
case 39:
|
|
1047
|
-
e !== 34 && e !== 39 &&
|
|
1048
|
+
e !== 34 && e !== 39 && Xt(A);
|
|
1048
1049
|
break;
|
|
1049
1050
|
// (
|
|
1050
1051
|
case 40:
|
|
1051
|
-
e === 41 &&
|
|
1052
|
+
e === 41 && Xt(e);
|
|
1052
1053
|
break;
|
|
1053
1054
|
// \
|
|
1054
1055
|
case 92:
|
|
@@ -1061,30 +1062,30 @@ function Hi(e, t) {
|
|
|
1061
1062
|
for (; G() && e + A !== 57; )
|
|
1062
1063
|
if (e + A === 84 && _e() === 47)
|
|
1063
1064
|
break;
|
|
1064
|
-
return "/*" +
|
|
1065
|
+
return "/*" + kt(t, W - 1) + "*" + Sn(e === 47 ? e : G());
|
|
1065
1066
|
}
|
|
1066
1067
|
function Fi(e) {
|
|
1067
|
-
for (; !
|
|
1068
|
+
for (; !qt(_e()); )
|
|
1068
1069
|
G();
|
|
1069
|
-
return
|
|
1070
|
+
return kt(e, W);
|
|
1070
1071
|
}
|
|
1071
1072
|
function Ui(e) {
|
|
1072
1073
|
return Di(_t("", null, null, null, [""], e = Pi(e), 0, [0], e));
|
|
1073
1074
|
}
|
|
1074
1075
|
function _t(e, t, n, r, o, i, a, c, s) {
|
|
1075
|
-
for (var u = 0, f = 0, l = a, h = 0, _ = 0, g = 0, w = 1, $ = 1, m = 1, p = 0, O = "", S = o,
|
|
1076
|
+
for (var u = 0, f = 0, l = a, h = 0, _ = 0, g = 0, w = 1, $ = 1, m = 1, p = 0, O = "", S = o, N = i, E = r, y = O; $; )
|
|
1076
1077
|
switch (g = p, p = G()) {
|
|
1077
1078
|
// (
|
|
1078
1079
|
case 40:
|
|
1079
1080
|
if (g != 108 && R(y, l - 1) == 58) {
|
|
1080
|
-
ft(y += C(
|
|
1081
|
+
ft(y += C(Mt(p), "&", "&\f"), "&\f", qr(u ? c[u - 1] : 0)) != -1 && (m = -1);
|
|
1081
1082
|
break;
|
|
1082
1083
|
}
|
|
1083
1084
|
// " ' [
|
|
1084
1085
|
case 34:
|
|
1085
1086
|
case 39:
|
|
1086
1087
|
case 91:
|
|
1087
|
-
y +=
|
|
1088
|
+
y += Mt(p);
|
|
1088
1089
|
break;
|
|
1089
1090
|
// \t \n \r \s
|
|
1090
1091
|
case 9:
|
|
@@ -1122,16 +1123,16 @@ function _t(e, t, n, r, o, i, a, c, s) {
|
|
|
1122
1123
|
$ = 0;
|
|
1123
1124
|
// ;
|
|
1124
1125
|
case 59 + f:
|
|
1125
|
-
m == -1 && (y = C(y, /\f/g, "")), _ > 0 && Y(y) - l && Ue(_ > 32 ?
|
|
1126
|
+
m == -1 && (y = C(y, /\f/g, "")), _ > 0 && Y(y) - l && Ue(_ > 32 ? nr(y + ";", r, n, l - 1, s) : nr(C(y, " ", "") + ";", r, n, l - 2, s), s);
|
|
1126
1127
|
break;
|
|
1127
1128
|
// @ ;
|
|
1128
1129
|
case 59:
|
|
1129
1130
|
y += ";";
|
|
1130
1131
|
// { rule/at-rule
|
|
1131
1132
|
default:
|
|
1132
|
-
if (Ue(E =
|
|
1133
|
+
if (Ue(E = tr(y, t, n, u, f, o, c, O, S = [], N = [], l, i), i), p === 123)
|
|
1133
1134
|
if (f === 0)
|
|
1134
|
-
_t(y, t, E, E, S, i, l, c,
|
|
1135
|
+
_t(y, t, E, E, S, i, l, c, N);
|
|
1135
1136
|
else
|
|
1136
1137
|
switch (h === 99 && R(y, 3) === 110 ? 100 : h) {
|
|
1137
1138
|
// d l m s
|
|
@@ -1139,10 +1140,10 @@ function _t(e, t, n, r, o, i, a, c, s) {
|
|
|
1139
1140
|
case 108:
|
|
1140
1141
|
case 109:
|
|
1141
1142
|
case 115:
|
|
1142
|
-
_t(e, E, E, r && Ue(
|
|
1143
|
+
_t(e, E, E, r && Ue(tr(e, E, E, 0, 0, o, c, O, o, S = [], l, N), N), o, N, l, c, r ? S : N);
|
|
1143
1144
|
break;
|
|
1144
1145
|
default:
|
|
1145
|
-
_t(y, E, E, E, [""],
|
|
1146
|
+
_t(y, E, E, E, [""], N, 0, c, N);
|
|
1146
1147
|
}
|
|
1147
1148
|
}
|
|
1148
1149
|
u = f = _ = 0, w = m = 1, O = y = "", l = a;
|
|
@@ -1157,7 +1158,7 @@ function _t(e, t, n, r, o, i, a, c, s) {
|
|
|
1157
1158
|
else if (p == 125 && w++ == 0 && Ri() == 125)
|
|
1158
1159
|
continue;
|
|
1159
1160
|
}
|
|
1160
|
-
switch (y +=
|
|
1161
|
+
switch (y += Sn(p), p * w) {
|
|
1161
1162
|
// &
|
|
1162
1163
|
case 38:
|
|
1163
1164
|
m = f > 0 ? 1 : (y += "\f", -1);
|
|
@@ -1168,7 +1169,7 @@ function _t(e, t, n, r, o, i, a, c, s) {
|
|
|
1168
1169
|
break;
|
|
1169
1170
|
// @
|
|
1170
1171
|
case 64:
|
|
1171
|
-
_e() === 45 && (y +=
|
|
1172
|
+
_e() === 45 && (y += Mt(G())), h = _e(), f = l = Y(O = y += Fi(dt())), p++;
|
|
1172
1173
|
break;
|
|
1173
1174
|
// -
|
|
1174
1175
|
case 45:
|
|
@@ -1177,23 +1178,23 @@ function _t(e, t, n, r, o, i, a, c, s) {
|
|
|
1177
1178
|
}
|
|
1178
1179
|
return i;
|
|
1179
1180
|
}
|
|
1180
|
-
function
|
|
1181
|
-
for (var h = o - 1, _ = o === 0 ? i : [""], g =
|
|
1182
|
-
for (var p = 0, O = Oe(e, h + 1, h =
|
|
1183
|
-
(S =
|
|
1184
|
-
return
|
|
1181
|
+
function tr(e, t, n, r, o, i, a, c, s, u, f, l) {
|
|
1182
|
+
for (var h = o - 1, _ = o === 0 ? i : [""], g = Kr(_), w = 0, $ = 0, m = 0; w < r; ++w)
|
|
1183
|
+
for (var p = 0, O = Oe(e, h + 1, h = qr($ = a[w])), S = e; p < g; ++p)
|
|
1184
|
+
(S = Xr($ > 0 ? _[p] + " " + O : C(O, /&\f/g, _[p]))) && (s[m++] = S);
|
|
1185
|
+
return Ot(e, t, n, o === 0 ? bt : c, s, u, f, l);
|
|
1185
1186
|
}
|
|
1186
1187
|
function Bi(e, t, n, r) {
|
|
1187
|
-
return
|
|
1188
|
+
return Ot(e, t, n, Yr, Sn(Ai()), Oe(e, 2, -2), 0, r);
|
|
1188
1189
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1190
|
+
function nr(e, t, n, r, o) {
|
|
1191
|
+
return Ot(e, t, n, wn, Oe(e, 0, r), Oe(e, r + 1, -1), r, o);
|
|
1191
1192
|
}
|
|
1192
|
-
function
|
|
1193
|
+
function Qr(e, t, n) {
|
|
1193
1194
|
switch (xi(e, t)) {
|
|
1194
1195
|
// color-adjust
|
|
1195
1196
|
case 5103:
|
|
1196
|
-
return
|
|
1197
|
+
return k + "print-" + e + e;
|
|
1197
1198
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1198
1199
|
case 5737:
|
|
1199
1200
|
case 4201:
|
|
@@ -1223,7 +1224,7 @@ function Jr(e, t, n) {
|
|
|
1223
1224
|
case 5365:
|
|
1224
1225
|
case 5621:
|
|
1225
1226
|
case 3829:
|
|
1226
|
-
return
|
|
1227
|
+
return k + e + e;
|
|
1227
1228
|
// tab-size
|
|
1228
1229
|
case 4789:
|
|
1229
1230
|
return We + e + e;
|
|
@@ -1233,59 +1234,59 @@ function Jr(e, t, n) {
|
|
|
1233
1234
|
case 4810:
|
|
1234
1235
|
case 6968:
|
|
1235
1236
|
case 2756:
|
|
1236
|
-
return
|
|
1237
|
+
return k + e + We + e + T + e + e;
|
|
1237
1238
|
// writing-mode
|
|
1238
1239
|
case 5936:
|
|
1239
1240
|
switch (R(e, t + 11)) {
|
|
1240
1241
|
// vertical-l(r)
|
|
1241
1242
|
case 114:
|
|
1242
|
-
return
|
|
1243
|
+
return k + e + T + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1243
1244
|
// vertical-r(l)
|
|
1244
1245
|
case 108:
|
|
1245
|
-
return
|
|
1246
|
+
return k + e + T + C(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1246
1247
|
// horizontal(-)tb
|
|
1247
1248
|
case 45:
|
|
1248
|
-
return
|
|
1249
|
+
return k + e + T + C(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1249
1250
|
}
|
|
1250
1251
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1251
1252
|
case 6828:
|
|
1252
1253
|
case 4268:
|
|
1253
1254
|
case 2903:
|
|
1254
|
-
return
|
|
1255
|
+
return k + e + T + e + e;
|
|
1255
1256
|
// order
|
|
1256
1257
|
case 6165:
|
|
1257
|
-
return
|
|
1258
|
+
return k + e + T + "flex-" + e + e;
|
|
1258
1259
|
// align-items
|
|
1259
1260
|
case 5187:
|
|
1260
|
-
return
|
|
1261
|
+
return k + e + C(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + T + "flex-$1$2") + e;
|
|
1261
1262
|
// align-self
|
|
1262
1263
|
case 5443:
|
|
1263
|
-
return
|
|
1264
|
+
return k + e + T + "flex-item-" + C(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : T + "grid-row-" + C(e, /flex-|-self/g, "")) + e;
|
|
1264
1265
|
// align-content
|
|
1265
1266
|
case 4675:
|
|
1266
|
-
return
|
|
1267
|
+
return k + e + T + "flex-line-pack" + C(e, /align-content|flex-|-self/g, "") + e;
|
|
1267
1268
|
// flex-shrink
|
|
1268
1269
|
case 5548:
|
|
1269
|
-
return
|
|
1270
|
+
return k + e + T + C(e, "shrink", "negative") + e;
|
|
1270
1271
|
// flex-basis
|
|
1271
1272
|
case 5292:
|
|
1272
|
-
return
|
|
1273
|
+
return k + e + T + C(e, "basis", "preferred-size") + e;
|
|
1273
1274
|
// flex-grow
|
|
1274
1275
|
case 6060:
|
|
1275
|
-
return
|
|
1276
|
+
return k + "box-" + C(e, "-grow", "") + k + e + T + C(e, "grow", "positive") + e;
|
|
1276
1277
|
// transition
|
|
1277
1278
|
case 4554:
|
|
1278
|
-
return
|
|
1279
|
+
return k + C(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
|
|
1279
1280
|
// cursor
|
|
1280
1281
|
case 6187:
|
|
1281
|
-
return C(C(C(e, /(zoom-|grab)/,
|
|
1282
|
+
return C(C(C(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
|
|
1282
1283
|
// background, background-image
|
|
1283
1284
|
case 5495:
|
|
1284
1285
|
case 3959:
|
|
1285
|
-
return C(e, /(image-set\([^]*)/,
|
|
1286
|
+
return C(e, /(image-set\([^]*)/, k + "$1$`$1");
|
|
1286
1287
|
// justify-content
|
|
1287
1288
|
case 4968:
|
|
1288
|
-
return C(C(e, /(.+:)(flex-)?(.*)/,
|
|
1289
|
+
return C(C(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
|
|
1289
1290
|
// justify-self
|
|
1290
1291
|
case 4200:
|
|
1291
1292
|
if (!J(e, /flex-|baseline/)) return T + "grid-column-align" + Oe(e, t) + e;
|
|
@@ -1311,7 +1312,7 @@ function Jr(e, t, n) {
|
|
|
1311
1312
|
case 3583:
|
|
1312
1313
|
case 4068:
|
|
1313
1314
|
case 2532:
|
|
1314
|
-
return C(e, /(.+)-inline(.+)/,
|
|
1315
|
+
return C(e, /(.+)-inline(.+)/, k + "$1$2") + e;
|
|
1315
1316
|
// (min|max)?(width|height|inline-size|block-size)
|
|
1316
1317
|
case 8116:
|
|
1317
1318
|
case 7059:
|
|
@@ -1333,10 +1334,10 @@ function Jr(e, t, n) {
|
|
|
1333
1334
|
break;
|
|
1334
1335
|
// (f)ill-available, (f)it-content
|
|
1335
1336
|
case 102:
|
|
1336
|
-
return C(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
1337
|
+
return C(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + We + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1337
1338
|
// (s)tretch
|
|
1338
1339
|
case 115:
|
|
1339
|
-
return ~ft(e, "stretch", 0) ?
|
|
1340
|
+
return ~ft(e, "stretch", 0) ? Qr(C(e, "stretch", "fill-available"), t, n) + e : e;
|
|
1340
1341
|
}
|
|
1341
1342
|
break;
|
|
1342
1343
|
// grid-(column|row)
|
|
@@ -1348,14 +1349,14 @@ function Jr(e, t, n) {
|
|
|
1348
1349
|
// position: sticky
|
|
1349
1350
|
case 4949:
|
|
1350
1351
|
if (R(e, t + 6) === 121)
|
|
1351
|
-
return C(e, ":", ":" +
|
|
1352
|
+
return C(e, ":", ":" + k) + e;
|
|
1352
1353
|
break;
|
|
1353
1354
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
1354
1355
|
case 6444:
|
|
1355
1356
|
switch (R(e, R(e, 14) === 45 ? 18 : 11)) {
|
|
1356
1357
|
// (inline-)?fle(x)
|
|
1357
1358
|
case 120:
|
|
1358
|
-
return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
|
1359
|
+
return C(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + T + "$2box$3") + e;
|
|
1359
1360
|
// (inline-)?gri(d)
|
|
1360
1361
|
case 100:
|
|
1361
1362
|
return C(e, ":", ":" + T) + e;
|
|
@@ -1380,20 +1381,20 @@ function zi(e, t, n, r) {
|
|
|
1380
1381
|
switch (e.type) {
|
|
1381
1382
|
case Ti:
|
|
1382
1383
|
if (e.children.length) break;
|
|
1383
|
-
case
|
|
1384
|
-
case
|
|
1384
|
+
case Ni:
|
|
1385
|
+
case wn:
|
|
1385
1386
|
return e.return = e.return || e.value;
|
|
1386
|
-
case Vr:
|
|
1387
|
-
return "";
|
|
1388
1387
|
case Yr:
|
|
1388
|
+
return "";
|
|
1389
|
+
case Zr:
|
|
1389
1390
|
return e.return = e.value + "{" + yt(e.children, r) + "}";
|
|
1390
|
-
case
|
|
1391
|
+
case bt:
|
|
1391
1392
|
if (!Y(e.value = e.props.join(","))) return "";
|
|
1392
1393
|
}
|
|
1393
1394
|
return Y(n = yt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1394
1395
|
}
|
|
1395
1396
|
function Wi(e) {
|
|
1396
|
-
var t =
|
|
1397
|
+
var t = Kr(e);
|
|
1397
1398
|
return function(n, r, o, i) {
|
|
1398
1399
|
for (var a = "", c = 0; c < t; c++)
|
|
1399
1400
|
a += e[c](n, r, o, i) || "";
|
|
@@ -1408,23 +1409,23 @@ function ji(e) {
|
|
|
1408
1409
|
function Gi(e, t, n, r) {
|
|
1409
1410
|
if (e.length > -1 && !e.return)
|
|
1410
1411
|
switch (e.type) {
|
|
1411
|
-
case
|
|
1412
|
-
e.return =
|
|
1412
|
+
case wn:
|
|
1413
|
+
e.return = Qr(e.value, e.length, n);
|
|
1413
1414
|
return;
|
|
1414
|
-
case
|
|
1415
|
-
return yt([oe(e, { value: C(e.value, "@", "@" +
|
|
1416
|
-
case
|
|
1415
|
+
case Zr:
|
|
1416
|
+
return yt([oe(e, { value: C(e.value, "@", "@" + k) })], r);
|
|
1417
|
+
case bt:
|
|
1417
1418
|
if (e.length)
|
|
1418
1419
|
return Ii(n = e.props, function(o) {
|
|
1419
1420
|
switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
1420
1421
|
// :read-(only|write)
|
|
1421
1422
|
case ":read-only":
|
|
1422
1423
|
case ":read-write":
|
|
1423
|
-
Ee(oe(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(oe(e, { props: [o] })),
|
|
1424
|
+
Ee(oe(e, { props: [C(o, /:(read-\w+)/, ":" + We + "$1")] })), Ee(oe(e, { props: [o] })), Zt(e, { props: er(n, r) });
|
|
1424
1425
|
break;
|
|
1425
1426
|
// :placeholder
|
|
1426
1427
|
case "::placeholder":
|
|
1427
|
-
Ee(oe(e, { props: [C(o, /:(plac\w+)/, ":" +
|
|
1428
|
+
Ee(oe(e, { props: [C(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Ee(oe(e, { props: [C(o, /:(plac\w+)/, ":" + We + "$1")] })), Ee(oe(e, { props: [C(o, /:(plac\w+)/, T + "input-$1")] })), Ee(oe(e, { props: [o] })), Zt(e, { props: er(n, r) });
|
|
1428
1429
|
break;
|
|
1429
1430
|
}
|
|
1430
1431
|
return "";
|
|
@@ -1479,8 +1480,8 @@ var Vi = {
|
|
|
1479
1480
|
strokeMiterlimit: 1,
|
|
1480
1481
|
strokeOpacity: 1,
|
|
1481
1482
|
strokeWidth: 1
|
|
1482
|
-
}, b = {}, ge = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled",
|
|
1483
|
-
`, vt = typeof window < "u" && typeof document < "u", Yi = !!(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"),
|
|
1483
|
+
}, b = {}, ge = typeof process < "u" && b !== void 0 && (b.REACT_APP_SC_ATTR || b.SC_ATTR) || "data-styled", eo = "active", to = "data-styled-version", Nt = "6.1.18", bn = `/*!sc*/
|
|
1484
|
+
`, vt = typeof window < "u" && typeof document < "u", Yi = !!(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"), rr = /invalid hook call/i, it = /* @__PURE__ */ new Set(), Zi = function(e, t) {
|
|
1484
1485
|
if (b.NODE_ENV !== "production") {
|
|
1485
1486
|
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1486
1487
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -1491,60 +1492,60 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1491
1492
|
var i = !0;
|
|
1492
1493
|
console.error = function(a) {
|
|
1493
1494
|
for (var c = [], s = 1; s < arguments.length; s++) c[s - 1] = arguments[s];
|
|
1494
|
-
|
|
1495
|
+
rr.test(a) ? (i = !1, it.delete(r)) : o.apply(void 0, me([a], c, !1));
|
|
1495
1496
|
}, Je(), i && !it.has(r) && (console.warn(r), it.add(r));
|
|
1496
1497
|
} catch (a) {
|
|
1497
|
-
|
|
1498
|
+
rr.test(a.message) && it.delete(r);
|
|
1498
1499
|
} finally {
|
|
1499
1500
|
console.error = o;
|
|
1500
1501
|
}
|
|
1501
1502
|
}
|
|
1502
|
-
},
|
|
1503
|
+
}, Tt = Object.freeze([]), Ne = Object.freeze({});
|
|
1503
1504
|
function qi(e, t, n) {
|
|
1504
|
-
return n === void 0 && (n =
|
|
1505
|
+
return n === void 0 && (n = Ne), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1505
1506
|
}
|
|
1506
|
-
var
|
|
1507
|
-
function
|
|
1507
|
+
var Kt = /* @__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"]), Xi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ki = /(^-|-$)/g;
|
|
1508
|
+
function or(e) {
|
|
1508
1509
|
return e.replace(Xi, "-").replace(Ki, "");
|
|
1509
1510
|
}
|
|
1510
|
-
var Ji = /(a)(d)/gi, at = 52,
|
|
1511
|
+
var Ji = /(a)(d)/gi, at = 52, ir = function(e) {
|
|
1511
1512
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1512
1513
|
};
|
|
1513
|
-
function
|
|
1514
|
+
function Jt(e) {
|
|
1514
1515
|
var t, n = "";
|
|
1515
|
-
for (t = Math.abs(e); t > at; t = t / at | 0) n =
|
|
1516
|
-
return (
|
|
1516
|
+
for (t = Math.abs(e); t > at; t = t / at | 0) n = ir(t % at) + n;
|
|
1517
|
+
return (ir(t % at) + n).replace(Ji, "$1-$2");
|
|
1517
1518
|
}
|
|
1518
|
-
var
|
|
1519
|
+
var Ht, no = 5381, fe = function(e, t) {
|
|
1519
1520
|
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1520
1521
|
return e;
|
|
1521
|
-
},
|
|
1522
|
-
return fe(
|
|
1522
|
+
}, ro = function(e) {
|
|
1523
|
+
return fe(no, e);
|
|
1523
1524
|
};
|
|
1524
|
-
function ro(e) {
|
|
1525
|
-
return Kt(no(e) >>> 0);
|
|
1526
|
-
}
|
|
1527
1525
|
function oo(e) {
|
|
1526
|
+
return Jt(ro(e) >>> 0);
|
|
1527
|
+
}
|
|
1528
|
+
function io(e) {
|
|
1528
1529
|
return b.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1529
1530
|
}
|
|
1530
|
-
function
|
|
1531
|
+
function Ft(e) {
|
|
1531
1532
|
return typeof e == "string" && (b.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1532
1533
|
}
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1535
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
1534
|
+
var ao = typeof Symbol == "function" && Symbol.for, so = ao ? Symbol.for("react.memo") : 60115, Qi = ao ? Symbol.for("react.forward_ref") : 60112, ea = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ta = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, co = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, na = ((Ht = {})[Qi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ht[so] = co, Ht);
|
|
1535
|
+
function ar(e) {
|
|
1536
|
+
return ("type" in (t = e) && t.type.$$typeof) === so ? co : "$$typeof" in e ? na[e.$$typeof] : ea;
|
|
1536
1537
|
var t;
|
|
1537
1538
|
}
|
|
1538
|
-
var ra = Object.defineProperty, oa = Object.getOwnPropertyNames,
|
|
1539
|
-
function
|
|
1539
|
+
var ra = Object.defineProperty, oa = Object.getOwnPropertyNames, sr = Object.getOwnPropertySymbols, ia = Object.getOwnPropertyDescriptor, aa = Object.getPrototypeOf, cr = Object.prototype;
|
|
1540
|
+
function lo(e, t, n) {
|
|
1540
1541
|
if (typeof t != "string") {
|
|
1541
|
-
if (
|
|
1542
|
+
if (cr) {
|
|
1542
1543
|
var r = aa(t);
|
|
1543
|
-
r && r !==
|
|
1544
|
+
r && r !== cr && lo(e, r, n);
|
|
1544
1545
|
}
|
|
1545
1546
|
var o = oa(t);
|
|
1546
|
-
|
|
1547
|
-
for (var i =
|
|
1547
|
+
sr && (o = o.concat(sr(t)));
|
|
1548
|
+
for (var i = ar(e), a = ar(t), c = 0; c < o.length; ++c) {
|
|
1548
1549
|
var s = o[c];
|
|
1549
1550
|
if (!(s in ta || n && n[s] || a && s in a || i && s in i)) {
|
|
1550
1551
|
var u = ia(t, s);
|
|
@@ -1560,13 +1561,13 @@ function co(e, t, n) {
|
|
|
1560
1561
|
function ye(e) {
|
|
1561
1562
|
return typeof e == "function";
|
|
1562
1563
|
}
|
|
1563
|
-
function
|
|
1564
|
+
function $n(e) {
|
|
1564
1565
|
return typeof e == "object" && "styledComponentId" in e;
|
|
1565
1566
|
}
|
|
1566
1567
|
function de(e, t) {
|
|
1567
1568
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1568
1569
|
}
|
|
1569
|
-
function
|
|
1570
|
+
function Qt(e, t) {
|
|
1570
1571
|
if (e.length === 0) return "";
|
|
1571
1572
|
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
1572
1573
|
return n;
|
|
@@ -1574,13 +1575,13 @@ function Jt(e, t) {
|
|
|
1574
1575
|
function Te(e) {
|
|
1575
1576
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1576
1577
|
}
|
|
1577
|
-
function
|
|
1578
|
+
function en(e, t, n) {
|
|
1578
1579
|
if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
|
|
1579
|
-
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] =
|
|
1580
|
-
else if (Te(t)) for (var r in t) e[r] =
|
|
1580
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = en(e[r], t[r]);
|
|
1581
|
+
else if (Te(t)) for (var r in t) e[r] = en(e[r], t[r]);
|
|
1581
1582
|
return e;
|
|
1582
1583
|
}
|
|
1583
|
-
function
|
|
1584
|
+
function On(e, t) {
|
|
1584
1585
|
Object.defineProperty(e, "toString", { value: t });
|
|
1585
1586
|
}
|
|
1586
1587
|
var sa = b.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
@@ -1659,7 +1660,7 @@ var la = function() {
|
|
|
1659
1660
|
}, e.prototype.getGroup = function(t) {
|
|
1660
1661
|
var n = "";
|
|
1661
1662
|
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1662
|
-
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(
|
|
1663
|
+
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(bn);
|
|
1663
1664
|
return n;
|
|
1664
1665
|
}, e;
|
|
1665
1666
|
}(), ua = 1 << 30, ht = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map(), pt = 1, st = function(e) {
|
|
@@ -1670,10 +1671,10 @@ var la = function() {
|
|
|
1670
1671
|
return ht.set(e, t), Ct.set(t, e), t;
|
|
1671
1672
|
}, fa = function(e, t) {
|
|
1672
1673
|
pt = t + 1, ht.set(e, t), Ct.set(t, e);
|
|
1673
|
-
}, da = "style[".concat(ge, "][").concat(
|
|
1674
|
+
}, da = "style[".concat(ge, "][").concat(to, '="').concat(Nt, '"]'), _a = new RegExp("^".concat(ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ha = function(e, t, n) {
|
|
1674
1675
|
for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
|
|
1675
1676
|
}, pa = function(e, t) {
|
|
1676
|
-
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(
|
|
1677
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(bn), o = [], i = 0, a = r.length; i < a; i++) {
|
|
1677
1678
|
var c = r[i].trim();
|
|
1678
1679
|
if (c) {
|
|
1679
1680
|
var s = c.match(_a);
|
|
@@ -1683,26 +1684,26 @@ var la = function() {
|
|
|
1683
1684
|
} else o.push(c);
|
|
1684
1685
|
}
|
|
1685
1686
|
}
|
|
1686
|
-
},
|
|
1687
|
+
}, lr = function(e) {
|
|
1687
1688
|
for (var t = document.querySelectorAll(da), n = 0, r = t.length; n < r; n++) {
|
|
1688
1689
|
var o = t[n];
|
|
1689
|
-
o && o.getAttribute(ge) !==
|
|
1690
|
+
o && o.getAttribute(ge) !== eo && (pa(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1690
1691
|
}
|
|
1691
1692
|
};
|
|
1692
1693
|
function ma() {
|
|
1693
1694
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1694
1695
|
}
|
|
1695
|
-
var
|
|
1696
|
+
var uo = function(e) {
|
|
1696
1697
|
var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
|
|
1697
1698
|
var s = Array.from(c.querySelectorAll("style[".concat(ge, "]")));
|
|
1698
1699
|
return s[s.length - 1];
|
|
1699
1700
|
}(n), i = o !== void 0 ? o.nextSibling : null;
|
|
1700
|
-
r.setAttribute(ge,
|
|
1701
|
+
r.setAttribute(ge, eo), r.setAttribute(to, Nt);
|
|
1701
1702
|
var a = ma();
|
|
1702
1703
|
return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
|
|
1703
1704
|
}, ga = function() {
|
|
1704
1705
|
function e(t) {
|
|
1705
|
-
this.element =
|
|
1706
|
+
this.element = uo(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
|
|
1706
1707
|
if (n.sheet) return n.sheet;
|
|
1707
1708
|
for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
|
|
1708
1709
|
var a = r[o];
|
|
@@ -1725,7 +1726,7 @@ var lo = function(e) {
|
|
|
1725
1726
|
}, e;
|
|
1726
1727
|
}(), ya = function() {
|
|
1727
1728
|
function e(t) {
|
|
1728
|
-
this.element =
|
|
1729
|
+
this.element = uo(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1729
1730
|
}
|
|
1730
1731
|
return e.prototype.insertRule = function(t, n) {
|
|
1731
1732
|
if (t <= this.length && t >= 0) {
|
|
@@ -1749,11 +1750,11 @@ var lo = function(e) {
|
|
|
1749
1750
|
}, e.prototype.getRule = function(t) {
|
|
1750
1751
|
return t < this.length ? this.rules[t] : "";
|
|
1751
1752
|
}, e;
|
|
1752
|
-
}(),
|
|
1753
|
+
}(), ur = vt, Ca = { isServer: !vt, useCSSOMInjection: !Yi }, fo = function() {
|
|
1753
1754
|
function e(t, n, r) {
|
|
1754
|
-
t === void 0 && (t =
|
|
1755
|
+
t === void 0 && (t = Ne), n === void 0 && (n = {});
|
|
1755
1756
|
var o = this;
|
|
1756
|
-
this.options = D(D({}, Ca), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && vt &&
|
|
1757
|
+
this.options = D(D({}, Ca), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && vt && ur && (ur = !1, lr(this)), On(this, function() {
|
|
1757
1758
|
return function(i) {
|
|
1758
1759
|
for (var a = i.getTag(), c = a.length, s = "", u = function(l) {
|
|
1759
1760
|
var h = function(m) {
|
|
@@ -1765,7 +1766,7 @@ var lo = function(e) {
|
|
|
1765
1766
|
var w = "".concat(ge, ".g").concat(l, '[id="').concat(h, '"]'), $ = "";
|
|
1766
1767
|
_ !== void 0 && _.forEach(function(m) {
|
|
1767
1768
|
m.length > 0 && ($ += "".concat(m, ","));
|
|
1768
|
-
}), s += "".concat(g).concat(w, '{content:"').concat($, '"}').concat(
|
|
1769
|
+
}), s += "".concat(g).concat(w, '{content:"').concat($, '"}').concat(bn);
|
|
1769
1770
|
}, f = 0; f < c; f++) u(f);
|
|
1770
1771
|
return s;
|
|
1771
1772
|
}(o);
|
|
@@ -1774,7 +1775,7 @@ var lo = function(e) {
|
|
|
1774
1775
|
return e.registerId = function(t) {
|
|
1775
1776
|
return st(t);
|
|
1776
1777
|
}, e.prototype.rehydrate = function() {
|
|
1777
|
-
!this.server && vt &&
|
|
1778
|
+
!this.server && vt && lr(this);
|
|
1778
1779
|
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1779
1780
|
return n === void 0 && (n = !0), new e(D(D({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1780
1781
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -1803,24 +1804,24 @@ var lo = function(e) {
|
|
|
1803
1804
|
this.tag = void 0;
|
|
1804
1805
|
}, e;
|
|
1805
1806
|
}(), Ea = /&/g, wa = /^\s*\/\/.*$/gm;
|
|
1806
|
-
function
|
|
1807
|
+
function _o(e, t) {
|
|
1807
1808
|
return e.map(function(n) {
|
|
1808
1809
|
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) {
|
|
1809
1810
|
return "".concat(t, " ").concat(r);
|
|
1810
|
-
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children =
|
|
1811
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = _o(n.children, t)), n;
|
|
1811
1812
|
});
|
|
1812
1813
|
}
|
|
1813
|
-
function
|
|
1814
|
-
var t, n, r, o = e === void 0 ?
|
|
1814
|
+
function ho(e) {
|
|
1815
|
+
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 ? Tt : c, u = function(h, _, g) {
|
|
1815
1816
|
return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
|
|
1816
1817
|
}, f = s.slice();
|
|
1817
1818
|
f.push(function(h) {
|
|
1818
|
-
h.type ===
|
|
1819
|
+
h.type === bt && h.value.includes("&") && (h.props[0] = h.props[0].replace(Ea, n).replace(r, u));
|
|
1819
1820
|
}), a.prefix && f.push(Gi), f.push(zi);
|
|
1820
1821
|
var l = function(h, _, g, w) {
|
|
1821
1822
|
_ === void 0 && (_ = ""), g === void 0 && (g = ""), w === void 0 && (w = "&"), t = w, n = _, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1822
1823
|
var $ = h.replace(wa, ""), m = Ui(g || _ ? "".concat(g, " ").concat(_, " { ").concat($, " }") : $);
|
|
1823
|
-
a.namespace && (m =
|
|
1824
|
+
a.namespace && (m = _o(m, a.namespace));
|
|
1824
1825
|
var p = [];
|
|
1825
1826
|
return yt(m, Wi(f.concat(ji(function(O) {
|
|
1826
1827
|
return p.push(O);
|
|
@@ -1828,47 +1829,47 @@ function _o(e) {
|
|
|
1828
1829
|
};
|
|
1829
1830
|
return l.hash = s.length ? s.reduce(function(h, _) {
|
|
1830
1831
|
return _.name || q(15), fe(h, _.name);
|
|
1831
|
-
},
|
|
1832
|
+
}, no).toString() : "", l;
|
|
1832
1833
|
}
|
|
1833
|
-
var Sa = new
|
|
1834
|
-
|
|
1834
|
+
var Sa = new fo(), tn = ho(), kn = ne.createContext({ shouldForwardProp: void 0, styleSheet: Sa, stylis: tn });
|
|
1835
|
+
kn.Consumer;
|
|
1835
1836
|
var ba = ne.createContext(void 0);
|
|
1836
|
-
function
|
|
1837
|
-
return Qe(
|
|
1837
|
+
function nn() {
|
|
1838
|
+
return Qe(kn);
|
|
1838
1839
|
}
|
|
1839
1840
|
function $a(e) {
|
|
1840
|
-
var t = H(e.stylisPlugins), n = t[0], r = t[1], o =
|
|
1841
|
+
var t = H(e.stylisPlugins), n = t[0], r = t[1], o = nn().styleSheet, i = te(function() {
|
|
1841
1842
|
var s = o;
|
|
1842
1843
|
return e.sheet ? s = e.sheet : e.target && (s = s.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (s = s.reconstructWithOptions({ useCSSOMInjection: !1 })), s;
|
|
1843
1844
|
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = te(function() {
|
|
1844
|
-
return
|
|
1845
|
+
return ho({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
|
|
1845
1846
|
}, [e.enableVendorPrefixes, e.namespace, n]);
|
|
1846
1847
|
X(function() {
|
|
1847
|
-
|
|
1848
|
+
ki(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
1848
1849
|
}, [e.stylisPlugins]);
|
|
1849
1850
|
var c = te(function() {
|
|
1850
1851
|
return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
|
|
1851
1852
|
}, [e.shouldForwardProp, i, a]);
|
|
1852
|
-
return ne.createElement(
|
|
1853
|
+
return ne.createElement(kn.Provider, { value: c }, ne.createElement(ba.Provider, { value: a }, e.children));
|
|
1853
1854
|
}
|
|
1854
|
-
var
|
|
1855
|
+
var rn = function() {
|
|
1855
1856
|
function e(t, n) {
|
|
1856
1857
|
var r = this;
|
|
1857
1858
|
this.inject = function(o, i) {
|
|
1858
|
-
i === void 0 && (i =
|
|
1859
|
+
i === void 0 && (i = tn);
|
|
1859
1860
|
var a = r.name + i.hash;
|
|
1860
1861
|
o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
|
|
1861
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n,
|
|
1862
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, On(this, function() {
|
|
1862
1863
|
throw q(12, String(r.name));
|
|
1863
1864
|
});
|
|
1864
1865
|
}
|
|
1865
1866
|
return e.prototype.getName = function(t) {
|
|
1866
|
-
return t === void 0 && (t =
|
|
1867
|
+
return t === void 0 && (t = tn), this.name + t.hash;
|
|
1867
1868
|
}, e;
|
|
1868
1869
|
}(), Oa = function(e) {
|
|
1869
1870
|
return e >= "A" && e <= "Z";
|
|
1870
1871
|
};
|
|
1871
|
-
function
|
|
1872
|
+
function fr(e) {
|
|
1872
1873
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
1873
1874
|
var r = e[n];
|
|
1874
1875
|
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
@@ -1876,45 +1877,45 @@ function ur(e) {
|
|
|
1876
1877
|
}
|
|
1877
1878
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1878
1879
|
}
|
|
1879
|
-
var
|
|
1880
|
+
var po = function(e) {
|
|
1880
1881
|
return e == null || e === !1 || e === "";
|
|
1881
|
-
},
|
|
1882
|
+
}, mo = function(e) {
|
|
1882
1883
|
var t, n, r = [];
|
|
1883
1884
|
for (var o in e) {
|
|
1884
1885
|
var i = e[o];
|
|
1885
|
-
e.hasOwnProperty(o) && !
|
|
1886
|
+
e.hasOwnProperty(o) && !po(i) && (Array.isArray(i) && i.isCss || ye(i) ? r.push("".concat(fr(o), ":"), i, ";") : Te(i) ? r.push.apply(r, me(me(["".concat(o, " {")], mo(i), !1), ["}"], !1)) : r.push("".concat(fr(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Vi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1886
1887
|
}
|
|
1887
1888
|
return r;
|
|
1888
1889
|
};
|
|
1889
1890
|
function he(e, t, n, r) {
|
|
1890
|
-
if (
|
|
1891
|
-
if (
|
|
1891
|
+
if (po(e)) return [];
|
|
1892
|
+
if ($n(e)) return [".".concat(e.styledComponentId)];
|
|
1892
1893
|
if (ye(e)) {
|
|
1893
1894
|
if (!ye(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1894
1895
|
var o = e(t);
|
|
1895
|
-
return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof
|
|
1896
|
+
return b.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof rn || Te(o) || o === null || console.error("".concat(io(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.")), he(o, t, n, r);
|
|
1896
1897
|
}
|
|
1897
1898
|
var i;
|
|
1898
|
-
return e instanceof
|
|
1899
|
+
return e instanceof rn ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? mo(e) : Array.isArray(e) ? Array.prototype.concat.apply(Tt, e.map(function(a) {
|
|
1899
1900
|
return he(a, t, n, r);
|
|
1900
1901
|
})) : [e.toString()];
|
|
1901
1902
|
}
|
|
1902
|
-
function
|
|
1903
|
+
function ka(e) {
|
|
1903
1904
|
for (var t = 0; t < e.length; t += 1) {
|
|
1904
1905
|
var n = e[t];
|
|
1905
|
-
if (ye(n) &&
|
|
1906
|
+
if (ye(n) && !$n(n)) return !1;
|
|
1906
1907
|
}
|
|
1907
1908
|
return !0;
|
|
1908
1909
|
}
|
|
1909
|
-
var
|
|
1910
|
+
var Na = ro(Nt), Ta = function() {
|
|
1910
1911
|
function e(t, n, r) {
|
|
1911
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = b.NODE_ENV === "production" && (r === void 0 || r.isStatic) &&
|
|
1912
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = b.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ka(t), this.componentId = n, this.baseHash = fe(Na, n), this.baseStyle = r, fo.registerId(n);
|
|
1912
1913
|
}
|
|
1913
1914
|
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1914
1915
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1915
1916
|
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = de(o, this.staticRulesId);
|
|
1916
1917
|
else {
|
|
1917
|
-
var i =
|
|
1918
|
+
var i = Qt(he(this.rules, t, n, r)), a = Jt(fe(this.baseHash, i) >>> 0);
|
|
1918
1919
|
if (!n.hasNameForId(this.componentId, a)) {
|
|
1919
1920
|
var c = r(i, ".".concat(a), void 0, this.componentId);
|
|
1920
1921
|
n.insertRules(this.componentId, a, c);
|
|
@@ -1926,12 +1927,12 @@ var ka = no(Nt), Ta = function() {
|
|
|
1926
1927
|
var l = this.rules[f];
|
|
1927
1928
|
if (typeof l == "string") u += l, b.NODE_ENV !== "production" && (s = fe(s, l));
|
|
1928
1929
|
else if (l) {
|
|
1929
|
-
var h =
|
|
1930
|
+
var h = Qt(he(l, t, n, r));
|
|
1930
1931
|
s = fe(s, h + f), u += h;
|
|
1931
1932
|
}
|
|
1932
1933
|
}
|
|
1933
1934
|
if (u) {
|
|
1934
|
-
var _ =
|
|
1935
|
+
var _ = Jt(s >>> 0);
|
|
1935
1936
|
n.hasNameForId(this.componentId, _) || n.insertRules(this.componentId, _, r(u, ".".concat(_), void 0, this.componentId)), o = de(o, _);
|
|
1936
1937
|
}
|
|
1937
1938
|
}
|
|
@@ -1939,7 +1940,7 @@ var ka = no(Nt), Ta = function() {
|
|
|
1939
1940
|
}, e;
|
|
1940
1941
|
}(), Ze = ne.createContext(void 0);
|
|
1941
1942
|
Ze.Consumer;
|
|
1942
|
-
function
|
|
1943
|
+
function go() {
|
|
1943
1944
|
var e = Qe(Ze);
|
|
1944
1945
|
if (!e) throw q(18);
|
|
1945
1946
|
return e;
|
|
@@ -1959,62 +1960,62 @@ function xa(e) {
|
|
|
1959
1960
|
}, [e.theme, t]);
|
|
1960
1961
|
return e.children ? ne.createElement(Ze.Provider, { value: n }, e.children) : null;
|
|
1961
1962
|
}
|
|
1962
|
-
var
|
|
1963
|
+
var Ut = {}, dr = /* @__PURE__ */ new Set();
|
|
1963
1964
|
function Ia(e, t, n) {
|
|
1964
|
-
var r =
|
|
1965
|
-
var E = typeof S != "string" ? "sc" :
|
|
1966
|
-
|
|
1967
|
-
var y = "".concat(E, "-").concat(
|
|
1968
|
-
return
|
|
1965
|
+
var r = $n(e), o = e, i = !Ft(e), a = t.attrs, c = a === void 0 ? Tt : a, s = t.componentId, u = s === void 0 ? function(S, N) {
|
|
1966
|
+
var E = typeof S != "string" ? "sc" : or(S);
|
|
1967
|
+
Ut[E] = (Ut[E] || 0) + 1;
|
|
1968
|
+
var y = "".concat(E, "-").concat(oo(Nt + E + Ut[E]));
|
|
1969
|
+
return N ? "".concat(N, "-").concat(y) : y;
|
|
1969
1970
|
}(t.displayName, t.parentComponentId) : s, f = t.displayName, l = f === void 0 ? function(S) {
|
|
1970
|
-
return
|
|
1971
|
-
}(e) : f, h = t.displayName && t.componentId ? "".concat(
|
|
1971
|
+
return Ft(S) ? "styled.".concat(S) : "Styled(".concat(io(S), ")");
|
|
1972
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(or(t.displayName), "-").concat(t.componentId) : t.componentId || u, _ = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, g = t.shouldForwardProp;
|
|
1972
1973
|
if (r && o.shouldForwardProp) {
|
|
1973
1974
|
var w = o.shouldForwardProp;
|
|
1974
1975
|
if (t.shouldForwardProp) {
|
|
1975
1976
|
var $ = t.shouldForwardProp;
|
|
1976
|
-
g = function(S,
|
|
1977
|
-
return w(S,
|
|
1977
|
+
g = function(S, N) {
|
|
1978
|
+
return w(S, N) && $(S, N);
|
|
1978
1979
|
};
|
|
1979
1980
|
} else g = w;
|
|
1980
1981
|
}
|
|
1981
1982
|
var m = new Ta(n, h, r ? o.componentStyle : void 0);
|
|
1982
|
-
function p(S,
|
|
1983
|
+
function p(S, N) {
|
|
1983
1984
|
return function(E, y, F) {
|
|
1984
|
-
var U = E.attrs, Pe = E.componentStyle, B = E.defaultProps, ce = E.foldedComponentIds,
|
|
1985
|
-
b.NODE_ENV !== "production" && gt(
|
|
1986
|
-
var
|
|
1987
|
-
for (var Ce, le = D(D({}, Me), { className: void 0, theme: tt }),
|
|
1988
|
-
var nt = ye(Ce = et[
|
|
1985
|
+
var U = E.attrs, Pe = E.componentStyle, B = E.defaultProps, ce = E.foldedComponentIds, Tn = E.styledComponentId, So = E.target, bo = ne.useContext(Ze), $o = nn(), xt = E.shouldForwardProp || $o.shouldForwardProp;
|
|
1986
|
+
b.NODE_ENV !== "production" && gt(Tn);
|
|
1987
|
+
var xn = qi(y, bo, B) || Ne, K = function(et, Me, tt) {
|
|
1988
|
+
for (var Ce, le = D(D({}, Me), { className: void 0, theme: tt }), Rt = 0; Rt < et.length; Rt += 1) {
|
|
1989
|
+
var nt = ye(Ce = et[Rt]) ? Ce(le) : Ce;
|
|
1989
1990
|
for (var re in nt) le[re] = re === "className" ? de(le[re], nt[re]) : re === "style" ? D(D({}, le[re]), nt[re]) : nt[re];
|
|
1990
1991
|
}
|
|
1991
1992
|
return Me.className && (le.className = de(le.className, Me.className)), le;
|
|
1992
|
-
}(U, y,
|
|
1993
|
-
for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme ===
|
|
1994
|
-
var
|
|
1995
|
-
var tt =
|
|
1993
|
+
}(U, y, xn), De = K.as || So, Le = {};
|
|
1994
|
+
for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === xn || (z === "forwardedAs" ? Le.as = K.forwardedAs : xt && !xt(z, De) || (Le[z] = K[z], xt || b.NODE_ENV !== "development" || Vo(z) || dr.has(z) || !Kt.has(De) || (dr.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1995
|
+
var It = function(et, Me) {
|
|
1996
|
+
var tt = nn(), Ce = et.generateAndInjectStyles(Me, tt.styleSheet, tt.stylis);
|
|
1996
1997
|
return b.NODE_ENV !== "production" && gt(Ce), Ce;
|
|
1997
1998
|
}(Pe, K);
|
|
1998
|
-
b.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(
|
|
1999
|
-
var
|
|
2000
|
-
return
|
|
2001
|
-
}(O, S,
|
|
1999
|
+
b.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(It);
|
|
2000
|
+
var At = de(ce, Tn);
|
|
2001
|
+
return It && (At += " " + It), K.className && (At += " " + K.className), Le[Ft(De) && !Kt.has(De) ? "class" : "className"] = At, F && (Le.ref = F), M(De, Le);
|
|
2002
|
+
}(O, S, N);
|
|
2002
2003
|
}
|
|
2003
2004
|
p.displayName = l;
|
|
2004
2005
|
var O = ne.forwardRef(p);
|
|
2005
2006
|
return O.attrs = _, O.componentStyle = m, O.displayName = l, O.shouldForwardProp = g, O.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", O.styledComponentId = h, O.target = r ? o.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
|
|
2006
2007
|
return this._foldedDefaultProps;
|
|
2007
2008
|
}, set: function(S) {
|
|
2008
|
-
this._foldedDefaultProps = r ? function(
|
|
2009
|
+
this._foldedDefaultProps = r ? function(N) {
|
|
2009
2010
|
for (var E = [], y = 1; y < arguments.length; y++) E[y - 1] = arguments[y];
|
|
2010
|
-
for (var F = 0, U = E; F < U.length; F++)
|
|
2011
|
-
return
|
|
2011
|
+
for (var F = 0, U = E; F < U.length; F++) en(N, U[F], !0);
|
|
2012
|
+
return N;
|
|
2012
2013
|
}({}, o.defaultProps, S) : S;
|
|
2013
|
-
} }), b.NODE_ENV !== "production" && (Zi(l, h), O.warnTooManyClasses = /* @__PURE__ */ function(S,
|
|
2014
|
+
} }), b.NODE_ENV !== "production" && (Zi(l, h), O.warnTooManyClasses = /* @__PURE__ */ function(S, N) {
|
|
2014
2015
|
var E = {}, y = !1;
|
|
2015
2016
|
return function(F) {
|
|
2016
2017
|
if (!y && (E[F] = !0, Object.keys(E).length >= 200)) {
|
|
2017
|
-
var U =
|
|
2018
|
+
var U = N ? ' with the id of "'.concat(N, '"') : "";
|
|
2018
2019
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(U, `.
|
|
2019
2020
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2020
2021
|
Example:
|
|
@@ -2027,46 +2028,46 @@ Example:
|
|
|
2027
2028
|
<Component />`), y = !0, E = {};
|
|
2028
2029
|
}
|
|
2029
2030
|
};
|
|
2030
|
-
}(l, h)),
|
|
2031
|
+
}(l, h)), On(O, function() {
|
|
2031
2032
|
return ".".concat(O.styledComponentId);
|
|
2032
|
-
}), i &&
|
|
2033
|
+
}), i && lo(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
|
|
2033
2034
|
}
|
|
2034
|
-
function
|
|
2035
|
+
function _r(e, t) {
|
|
2035
2036
|
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
2036
2037
|
return n;
|
|
2037
2038
|
}
|
|
2038
|
-
var
|
|
2039
|
+
var hr = function(e) {
|
|
2039
2040
|
return Object.assign(e, { isCss: !0 });
|
|
2040
2041
|
};
|
|
2041
2042
|
function se(e) {
|
|
2042
2043
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2043
|
-
if (ye(e) || Te(e)) return
|
|
2044
|
+
if (ye(e) || Te(e)) return hr(he(_r(Tt, me([e], t, !0))));
|
|
2044
2045
|
var r = e;
|
|
2045
|
-
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? he(r) :
|
|
2046
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? he(r) : hr(he(_r(r, t)));
|
|
2046
2047
|
}
|
|
2047
|
-
function
|
|
2048
|
-
if (n === void 0 && (n =
|
|
2048
|
+
function on(e, t, n) {
|
|
2049
|
+
if (n === void 0 && (n = Ne), !t) throw q(1, t);
|
|
2049
2050
|
var r = function(o) {
|
|
2050
2051
|
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
2051
2052
|
return e(t, n, se.apply(void 0, me([o], i, !1)));
|
|
2052
2053
|
};
|
|
2053
2054
|
return r.attrs = function(o) {
|
|
2054
|
-
return
|
|
2055
|
+
return on(e, t, D(D({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
2055
2056
|
}, r.withConfig = function(o) {
|
|
2056
|
-
return
|
|
2057
|
+
return on(e, t, D(D({}, n), o));
|
|
2057
2058
|
}, r;
|
|
2058
2059
|
}
|
|
2059
|
-
var
|
|
2060
|
-
return
|
|
2061
|
-
}, L =
|
|
2062
|
-
|
|
2063
|
-
L[e] =
|
|
2060
|
+
var yo = function(e) {
|
|
2061
|
+
return on(Ia, e);
|
|
2062
|
+
}, L = yo;
|
|
2063
|
+
Kt.forEach(function(e) {
|
|
2064
|
+
L[e] = yo(e);
|
|
2064
2065
|
});
|
|
2065
2066
|
function Re(e) {
|
|
2066
2067
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2067
2068
|
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.");
|
|
2068
|
-
var r =
|
|
2069
|
-
return new
|
|
2069
|
+
var r = Qt(se.apply(void 0, me([e], t, !1))), o = oo(r);
|
|
2070
|
+
return new rn(o, r);
|
|
2070
2071
|
}
|
|
2071
2072
|
b.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
2072
2073
|
Perhaps you're looking to import 'styled-components/native'?
|
|
@@ -2075,7 +2076,7 @@ var ct = "__sc-".concat(ge, "__");
|
|
|
2075
2076
|
b.NODE_ENV !== "production" && b.NODE_ENV !== "test" && typeof window < "u" && (window[ct] || (window[ct] = 0), window[ct] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
2076
2077
|
|
|
2077
2078
|
See https://s-c.sh/2BAXzed for more info.`), window[ct] += 1);
|
|
2078
|
-
const Aa = 2,
|
|
2079
|
+
const Aa = 2, vo = 14, Ra = 0.0276;
|
|
2079
2080
|
var Q = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(Q || {});
|
|
2080
2081
|
const Be = {
|
|
2081
2082
|
300: {
|
|
@@ -2098,7 +2099,7 @@ const Be = {
|
|
|
2098
2099
|
marginLeft: 12,
|
|
2099
2100
|
buttonPadding: 24
|
|
2100
2101
|
}
|
|
2101
|
-
},
|
|
2102
|
+
}, pr = {
|
|
2102
2103
|
loading: { text: "Loading. Please wait.", visible: !0 },
|
|
2103
2104
|
done: { text: "Waiting for input...", visible: !0 }
|
|
2104
2105
|
}, Pa = {
|
|
@@ -2121,10 +2122,10 @@ const Be = {
|
|
|
2121
2122
|
[Ve.FIT_YOUR_EYE]: "Fit your eye into square",
|
|
2122
2123
|
[Ve.DEVICE_PITCHED]: "Hold your phone at eye level"
|
|
2123
2124
|
}, La = "rgba(19, 19, 19, 0.5)", Ma = 34;
|
|
2124
|
-
function
|
|
2125
|
+
function mr(e, t) {
|
|
2125
2126
|
return Math.max(t, t + (e - 400) * Ra + 2);
|
|
2126
2127
|
}
|
|
2127
|
-
const Ha = (e, t =
|
|
2128
|
+
const Ha = (e, t = vo) => e ? e.width < e.height ? mr(e.width, t) : mr(e.height, t) : t, Fa = (e) => e > Q.Default ? Be[Q.Default] : e > Q.L ? Be[Q.L] : e > Q.M ? Be[Q.M] : Be[Q.S], Ua = (e) => e ? Fa(e.width) : Be[Q.Default];
|
|
2128
2129
|
function Ba() {
|
|
2129
2130
|
const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
|
|
2130
2131
|
if (!document.querySelector(`link[href="${e}"]`)) {
|
|
@@ -2132,7 +2133,7 @@ function Ba() {
|
|
|
2132
2133
|
n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
|
|
2133
2134
|
}
|
|
2134
2135
|
}
|
|
2135
|
-
const je =
|
|
2136
|
+
const je = Ir(void 0);
|
|
2136
2137
|
je.displayName = "UiCustomizationContext";
|
|
2137
2138
|
function ve() {
|
|
2138
2139
|
const e = Qe(je);
|
|
@@ -2143,13 +2144,13 @@ function ve() {
|
|
|
2143
2144
|
return e;
|
|
2144
2145
|
}
|
|
2145
2146
|
function za({ children: e, props: t, videoElementSize: n }) {
|
|
2146
|
-
const { font: r } =
|
|
2147
|
+
const { font: r } = go(), o = te(
|
|
2147
2148
|
() => ({ ...t, videoElementSize: n, fontSize: Ha(n, r.minimumSize) }),
|
|
2148
2149
|
[t, r.minimumSize, n]
|
|
2149
2150
|
);
|
|
2150
2151
|
return /* @__PURE__ */ d(je.Provider, { value: o, children: e });
|
|
2151
2152
|
}
|
|
2152
|
-
const
|
|
2153
|
+
const Co = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
|
|
2153
2154
|
"path",
|
|
2154
2155
|
{
|
|
2155
2156
|
clipRule: "evenodd",
|
|
@@ -2191,13 +2192,13 @@ const vo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height:
|
|
|
2191
2192
|
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2192
2193
|
line-height: 1em;
|
|
2193
2194
|
max-width: 80%;
|
|
2194
|
-
`,
|
|
2195
|
+
`, an = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
|
|
2195
2196
|
const { fontSize: o } = ve();
|
|
2196
2197
|
return /* @__PURE__ */ d(Wa, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ d(ja, { children: [
|
|
2197
2198
|
e ? /* @__PURE__ */ d(e, { svgSize: o * 2 }) : null,
|
|
2198
2199
|
/* @__PURE__ */ d(Ga, { $fontSize: o, children: r })
|
|
2199
2200
|
] }) });
|
|
2200
|
-
},
|
|
2201
|
+
}, Eo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ d(an, { Icon: Co, position: "relative", text: e });
|
|
2201
2202
|
class Va extends j {
|
|
2202
2203
|
constructor(t) {
|
|
2203
2204
|
super(t), this.state = { hasError: !1 };
|
|
@@ -2209,7 +2210,7 @@ class Va extends j {
|
|
|
2209
2210
|
console.error(t, n);
|
|
2210
2211
|
}
|
|
2211
2212
|
render() {
|
|
2212
|
-
return this.state.hasError ? /* @__PURE__ */ d(
|
|
2213
|
+
return this.state.hasError ? /* @__PURE__ */ d(Eo, { Icon: Co, isCameraReady: !1 }) : this.props.children;
|
|
2213
2214
|
}
|
|
2214
2215
|
}
|
|
2215
2216
|
const Ya = L.div`
|
|
@@ -2261,7 +2262,7 @@ const es = {
|
|
|
2261
2262
|
family: "Montserrat, Arial, sans-serif",
|
|
2262
2263
|
weight: "600",
|
|
2263
2264
|
style: "normal",
|
|
2264
|
-
minimumSize:
|
|
2265
|
+
minimumSize: vo
|
|
2265
2266
|
}, He = {
|
|
2266
2267
|
colors: es,
|
|
2267
2268
|
font: ts
|
|
@@ -2280,19 +2281,21 @@ const es = {
|
|
|
2280
2281
|
family: Qa((t = e.font) == null ? void 0 : t.family, He.font.family)
|
|
2281
2282
|
}
|
|
2282
2283
|
} : He;
|
|
2283
|
-
},
|
|
2284
|
+
}, Et = (e, t) => {
|
|
2284
2285
|
document.dispatchEvent(
|
|
2285
2286
|
new CustomEvent(e, {
|
|
2286
2287
|
detail: t
|
|
2287
2288
|
})
|
|
2288
2289
|
);
|
|
2289
|
-
},
|
|
2290
|
+
}, wt = class wt {
|
|
2290
2291
|
constructor() {
|
|
2291
|
-
rt(this, "lastDetails"
|
|
2292
|
-
rt(this, "delayedTime"
|
|
2292
|
+
rt(this, "lastDetails");
|
|
2293
|
+
rt(this, "delayedTime");
|
|
2294
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2293
2295
|
}
|
|
2296
|
+
// TODO remove singleton
|
|
2294
2297
|
static getInstance() {
|
|
2295
|
-
return this._instance || (this._instance = new
|
|
2298
|
+
return this._instance || (this._instance = new wt()), this._instance;
|
|
2296
2299
|
}
|
|
2297
2300
|
restart() {
|
|
2298
2301
|
this.lastDetails = {}, this.delayedTime = 0;
|
|
@@ -2313,7 +2316,7 @@ const es = {
|
|
|
2313
2316
|
* @param detail - Record<string, unknown>
|
|
2314
2317
|
*/
|
|
2315
2318
|
dispatchCustomEventOnChange(t, n) {
|
|
2316
|
-
this.isDetailChanged(t, n) &&
|
|
2319
|
+
this.isDetailChanged(t, n) && Et(t, n);
|
|
2317
2320
|
}
|
|
2318
2321
|
/**
|
|
2319
2322
|
* If the detail of the event has changed, delay time has passed, dispatch the event
|
|
@@ -2325,18 +2328,23 @@ const es = {
|
|
|
2325
2328
|
const o = performance.now();
|
|
2326
2329
|
o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
|
|
2327
2330
|
}
|
|
2331
|
+
// implement this method in the class
|
|
2332
|
+
dispatchCustomEvent(t, n) {
|
|
2333
|
+
Et(t, n);
|
|
2334
|
+
}
|
|
2328
2335
|
};
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2336
|
+
// TODO remove singleton
|
|
2337
|
+
rt(wt, "_instance");
|
|
2338
|
+
let sn = wt;
|
|
2339
|
+
sn.getInstance();
|
|
2340
|
+
const gr = (e, t) => {
|
|
2341
|
+
Et(e, {
|
|
2334
2342
|
instruction: t
|
|
2335
2343
|
});
|
|
2336
2344
|
}, rs = (e) => {
|
|
2337
|
-
|
|
2338
|
-
}, os = (e) => Number.parseFloat(e.toFixed(3)),
|
|
2339
|
-
const r =
|
|
2345
|
+
Et(e, { animationEnd: !0 });
|
|
2346
|
+
}, os = (e) => Number.parseFloat(e.toFixed(3)), Nn = (e, t) => Math.min(e, t), is = ({ height: e, width: t }, n) => {
|
|
2347
|
+
const r = Nn(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
|
|
2340
2348
|
return {
|
|
2341
2349
|
shiftX: o,
|
|
2342
2350
|
shiftY: i,
|
|
@@ -2351,10 +2359,17 @@ const mr = (e, t) => {
|
|
|
2351
2359
|
width: i / e.width,
|
|
2352
2360
|
height: n / e.height
|
|
2353
2361
|
};
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2362
|
+
};
|
|
2363
|
+
function ss(e, t) {
|
|
2364
|
+
const n = Nn(t.width, t.height);
|
|
2356
2365
|
return os(e * n);
|
|
2357
|
-
}
|
|
2366
|
+
}
|
|
2367
|
+
function cs(e) {
|
|
2368
|
+
return as(e, qa);
|
|
2369
|
+
}
|
|
2370
|
+
function ls(e, t) {
|
|
2371
|
+
return ss(e, t) * Xa;
|
|
2372
|
+
}
|
|
2358
2373
|
async function us() {
|
|
2359
2374
|
return navigator.mediaDevices.enumerateDevices();
|
|
2360
2375
|
}
|
|
@@ -2430,20 +2445,20 @@ const ds = () => {
|
|
|
2430
2445
|
const { buttonPadding: i, iconSize: a, marginLeft: c } = Ua(r);
|
|
2431
2446
|
return /* @__PURE__ */ d(gs, { $padding: i, children: [
|
|
2432
2447
|
o && /* @__PURE__ */ d(ms, { disabled: t, onClick: () => {
|
|
2433
|
-
|
|
2448
|
+
gr(e, Dn.SWITCH_CAMERA);
|
|
2434
2449
|
}, size: a }),
|
|
2435
2450
|
/* @__PURE__ */ d(
|
|
2436
2451
|
ps,
|
|
2437
2452
|
{
|
|
2438
2453
|
marginLeft: o ? c : 0,
|
|
2439
2454
|
onClick: () => {
|
|
2440
|
-
|
|
2455
|
+
gr(e, Dn.TOGGLE_MIRROR);
|
|
2441
2456
|
},
|
|
2442
2457
|
size: a
|
|
2443
2458
|
}
|
|
2444
2459
|
)
|
|
2445
2460
|
] });
|
|
2446
|
-
},
|
|
2461
|
+
}, yr = 2.6, cn = "1.5s", ln = "1.5s", un = "ease-in-out", vs = 2500, Cs = "2.5s", Es = "0.3s", ws = "linear", Ss = ".5s", bs = "3s", $s = "ease-in-out", Os = ".5s", ks = ".5s", Ns = "ease-out", Ts = (e) => Re`
|
|
2447
2462
|
100% {
|
|
2448
2463
|
transform: translateX(22%) scale(${e});
|
|
2449
2464
|
}
|
|
@@ -2633,27 +2648,37 @@ const ds = () => {
|
|
|
2633
2648
|
] }) }), Us = L.div`
|
|
2634
2649
|
z-index: 1;
|
|
2635
2650
|
position: absolute;
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2651
|
+
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
2652
|
+
top: -50%;
|
|
2653
|
+
left: -50%;
|
|
2654
|
+
width: 200%;
|
|
2655
|
+
height: 200%;
|
|
2656
|
+
outline: ${({ $backdropColor: e, $shorterSide: t = 1e3 }) => `${t * 0.2}px solid ${e}`};
|
|
2657
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2658
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2659
|
+
|
|
2660
|
+
// Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
|
|
2661
|
+
g {
|
|
2662
|
+
transform: scale(0.5);
|
|
2663
|
+
translate: 25% 25%;
|
|
2664
|
+
}
|
|
2665
|
+
`, Bs = ({ children: e, height: t, scale: n, width: r }) => {
|
|
2666
|
+
const { backdropColor: o } = ve(), i = Nn(r, t);
|
|
2667
|
+
return /* @__PURE__ */ d(Us, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${r} ${t}`, children: [
|
|
2643
2668
|
/* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("mask", { id: "mask", children: [
|
|
2644
2669
|
/* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
|
|
2645
|
-
e
|
|
2670
|
+
/* @__PURE__ */ d("g", { children: e })
|
|
2646
2671
|
] }) }),
|
|
2647
|
-
/* @__PURE__ */ d("rect", { fill:
|
|
2672
|
+
/* @__PURE__ */ d("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
|
|
2648
2673
|
] }) });
|
|
2649
2674
|
};
|
|
2650
2675
|
function zs({ cameraHeight: e, cameraWidth: t, state: n }) {
|
|
2651
2676
|
var o;
|
|
2652
2677
|
const { appStateInstructions: r } = ve();
|
|
2653
|
-
return !n || n ===
|
|
2678
|
+
return !n || n === jt.ERROR || !((o = r == null ? void 0 : r[n]) != null && o.visible) ? null : n === jt.DONE ? /* @__PURE__ */ d(V, { children: [
|
|
2654
2679
|
e && t && /* @__PURE__ */ d(Bs, { height: e, width: t }),
|
|
2655
|
-
/* @__PURE__ */ d(
|
|
2656
|
-
] }) : /* @__PURE__ */ d(
|
|
2680
|
+
/* @__PURE__ */ d(an, { isCameraReady: !0, text: r[n].text })
|
|
2681
|
+
] }) : /* @__PURE__ */ d(an, { Icon: Fs, isCameraReady: !0, text: r[n].text });
|
|
2657
2682
|
}
|
|
2658
2683
|
const Ws = L.canvas`
|
|
2659
2684
|
transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
|
|
@@ -2663,11 +2688,13 @@ const Ws = L.canvas`
|
|
|
2663
2688
|
width: 100%;
|
|
2664
2689
|
height: 100%;
|
|
2665
2690
|
z-index: 1;
|
|
2666
|
-
|
|
2691
|
+
`;
|
|
2692
|
+
function js(e) {
|
|
2667
2693
|
const t = e.getContext("2d");
|
|
2668
2694
|
t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2695
|
+
}
|
|
2696
|
+
const Gs = ({ cameraResolution: e, isImageMirror: t }) => {
|
|
2697
|
+
const n = Je(null), r = go(), [o, i] = H(), a = pe(
|
|
2671
2698
|
(c) => {
|
|
2672
2699
|
var s;
|
|
2673
2700
|
i((s = c == null ? void 0 : c.detail) == null ? void 0 : s.detectedObject);
|
|
@@ -2727,7 +2754,7 @@ const Ws = L.canvas`
|
|
|
2727
2754
|
},
|
|
2728
2755
|
[t, r, i]
|
|
2729
2756
|
);
|
|
2730
|
-
return qe(
|
|
2757
|
+
return qe(yn.STATUS_CHANGED, a), {
|
|
2731
2758
|
magnifEyePhase: e,
|
|
2732
2759
|
magnifEyeState: n,
|
|
2733
2760
|
magnifEyeError: o
|
|
@@ -2763,16 +2790,16 @@ const Ws = L.canvas`
|
|
|
2763
2790
|
transform-origin: center;
|
|
2764
2791
|
|
|
2765
2792
|
${(e) => e.$isAnimating && se`
|
|
2766
|
-
animation: ${Ts(
|
|
2767
|
-
${
|
|
2768
|
-
animation-delay: ${
|
|
2793
|
+
animation: ${Ts(yr)} ${ln}
|
|
2794
|
+
${un} both;
|
|
2795
|
+
animation-delay: ${cn};
|
|
2769
2796
|
`}
|
|
2770
2797
|
|
|
2771
2798
|
@media (max-width: 667px) {
|
|
2772
2799
|
${(e) => e.$isAnimating && se`
|
|
2773
|
-
animation: ${xs(
|
|
2774
|
-
${
|
|
2775
|
-
animation-delay: ${
|
|
2800
|
+
animation: ${xs(yr)} ${ln}
|
|
2801
|
+
${un} both;
|
|
2802
|
+
animation-delay: ${cn};
|
|
2776
2803
|
`}
|
|
2777
2804
|
}
|
|
2778
2805
|
}
|
|
@@ -2911,8 +2938,8 @@ const Qs = L.div`
|
|
|
2911
2938
|
}
|
|
2912
2939
|
|
|
2913
2940
|
${(e) => e.$isAnimating && se`
|
|
2914
|
-
animation: ${As} ${
|
|
2915
|
-
animation-delay: ${
|
|
2941
|
+
animation: ${As} ${ln} ${un} both;
|
|
2942
|
+
animation-delay: ${cn};
|
|
2916
2943
|
`}
|
|
2917
2944
|
`, ec = L.div`
|
|
2918
2945
|
z-index: 1;
|
|
@@ -2947,7 +2974,7 @@ const Qs = L.div`
|
|
|
2947
2974
|
opacity: 0;
|
|
2948
2975
|
|
|
2949
2976
|
${(e) => e.$isAnimating && se`
|
|
2950
|
-
animation: ${Ps} ${
|
|
2977
|
+
animation: ${Ps} ${ks} ${Ns} both;
|
|
2951
2978
|
animation-delay: ${Os};
|
|
2952
2979
|
`}
|
|
2953
2980
|
|
|
@@ -2963,7 +2990,7 @@ const Qs = L.div`
|
|
|
2963
2990
|
] }), rc = () => {
|
|
2964
2991
|
const { cameraResolution: e, instruction: t, isMirroring: n } = Vs(), { magnifEyeError: r, magnifEyePhase: o, magnifEyeState: i } = Ys(), { instructions: a } = ve(), c = Zs(t.code, o), s = c === Ve.CANDIDATE_SELECTION, u = o === Ye.MIDDLE || o === Ye.CLOSEUP;
|
|
2965
2992
|
if (i === we.ERROR)
|
|
2966
|
-
return /* @__PURE__ */ d(
|
|
2993
|
+
return /* @__PURE__ */ d(Eo, { text: r == null ? void 0 : r.message });
|
|
2967
2994
|
if ((i === we.RUNNING || i === we.WAITING) && e) {
|
|
2968
2995
|
const f = cs(e);
|
|
2969
2996
|
return /* @__PURE__ */ d(V, { children: [
|
|
@@ -2971,7 +2998,7 @@ const Qs = L.div`
|
|
|
2971
2998
|
/* @__PURE__ */ d(
|
|
2972
2999
|
Xs,
|
|
2973
3000
|
{
|
|
2974
|
-
handleAnimationEnd: () => rs(
|
|
3001
|
+
handleAnimationEnd: () => rs(yn.ANIMATION_END),
|
|
2975
3002
|
height: e.height,
|
|
2976
3003
|
initialPosition: f,
|
|
2977
3004
|
isAnimating: u,
|
|
@@ -3005,10 +3032,10 @@ const Qs = L.div`
|
|
|
3005
3032
|
var a, c;
|
|
3006
3033
|
const t = { ...Da, ...e == null ? void 0 : e.instructions }, n = {
|
|
3007
3034
|
[we.LOADING]: {
|
|
3008
|
-
...
|
|
3035
|
+
...pr.loading,
|
|
3009
3036
|
...(a = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : a.loading
|
|
3010
3037
|
},
|
|
3011
|
-
[we.DONE]: { ...
|
|
3038
|
+
[we.DONE]: { ...pr.done, ...(c = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : c.done }
|
|
3012
3039
|
}, r = (e == null ? void 0 : e.backdropColor) ?? La, o = (e == null ? void 0 : e.showCameraButtons) ?? !1, i = ns(e == null ? void 0 : e.theme);
|
|
3013
3040
|
return {
|
|
3014
3041
|
backdropColor: r,
|