@regulaforensics/idv-gui 3.2.288-rc → 3.2.290
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/dist/main.iife.js +3 -3
- package/dist/main.js +437 -434
- package/dist/main.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -23,14 +23,14 @@ var De = (e, i, t) => new Promise((r, n) => {
|
|
|
23
23
|
var o = (D) => {
|
|
24
24
|
try {
|
|
25
25
|
M(t.next(D));
|
|
26
|
-
} catch (
|
|
27
|
-
n(
|
|
26
|
+
} catch (I) {
|
|
27
|
+
n(I);
|
|
28
28
|
}
|
|
29
29
|
}, s = (D) => {
|
|
30
30
|
try {
|
|
31
31
|
M(t.throw(D));
|
|
32
|
-
} catch (
|
|
33
|
-
n(
|
|
32
|
+
} catch (I) {
|
|
33
|
+
n(I);
|
|
34
34
|
}
|
|
35
35
|
}, M = (D) => D.done ? r(D.value) : Promise.resolve(D.value).then(o, s);
|
|
36
36
|
M((t = t.apply(e, i)).next());
|
|
@@ -81,24 +81,24 @@ function mt(e) {
|
|
|
81
81
|
(!e.__d && (e.__d = !0) && ji.push(e) && !ot.__r++ || kr != X.debounceRendering) && ((kr = X.debounceRendering) || Tn)(ot);
|
|
82
82
|
}
|
|
83
83
|
function ot() {
|
|
84
|
-
for (var e, i, t, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(zn), e = ji.shift(), M = ji.length, e.__d && (t = void 0, r = void 0, n = (r = (i = e).__v).__e, o = [], s = [], i.__P && ((t = qe({}, r)).__v = r.__v + 1, X.vnode && X.vnode(t), Ut(i.__P, t, r, i.__n, i.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? bi(r) : n, !!(32 & r.__u), s), t.__v = r.__v, t.__.__k[t.__i] = t,
|
|
84
|
+
for (var e, i, t, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(zn), e = ji.shift(), M = ji.length, e.__d && (t = void 0, r = void 0, n = (r = (i = e).__v).__e, o = [], s = [], i.__P && ((t = qe({}, r)).__v = r.__v + 1, X.vnode && X.vnode(t), Ut(i.__P, t, r, i.__n, i.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? bi(r) : n, !!(32 & r.__u), s), t.__v = r.__v, t.__.__k[t.__i] = t, pn(o, t, s), r.__e = r.__ = null, t.__e != n && mn(t)));
|
|
85
85
|
ot.__r = 0;
|
|
86
86
|
}
|
|
87
|
-
function wn(e, i, t, r, n, o, s, M, D,
|
|
88
|
-
var c, a, y, N,
|
|
89
|
-
for (D = hs(t, i,
|
|
90
|
-
return t.__e =
|
|
87
|
+
function wn(e, i, t, r, n, o, s, M, D, I, f) {
|
|
88
|
+
var c, a, y, N, j, z, w, p = r && r.__k || En, h = i.length;
|
|
89
|
+
for (D = hs(t, i, p, D, h), c = 0; c < h; c++) (y = t.__k[c]) != null && (a = y.__i == -1 ? Bi : p[y.__i] || Bi, y.__i = c, z = Ut(e, y, a, n, o, s, M, D, I, f), N = y.__e, y.ref && a.ref != y.ref && (a.ref && Qt(a.ref, null, y), f.push(y.ref, y.__c || N, y)), j == null && N != null && (j = N), (w = !!(4 & y.__u)) || a.__k === y.__k ? D = _n(y, D, e, w) : typeof y.type == "function" && z !== void 0 ? D = z : N && (D = N.nextSibling), y.__u &= -7);
|
|
90
|
+
return t.__e = j, D;
|
|
91
91
|
}
|
|
92
92
|
function hs(e, i, t, r, n) {
|
|
93
|
-
var o, s, M, D,
|
|
94
|
-
for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (
|
|
95
|
-
if (c) for (o = 0; o <
|
|
93
|
+
var o, s, M, D, I, f = t.length, c = f, a = 0;
|
|
94
|
+
for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Yi(null, s, null, null, null) : Hi(s) ? s = e.__k[o] = Yi(be, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Yi(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, D = o + a, s.__ = e, s.__b = e.__b + 1, M = null, (I = s.__i = ms(s, t, D, c)) != -1 && (c--, (M = t[I]) && (M.__u |= 2)), M == null || M.__v == null ? (I == -1 && (n > f ? a-- : n < f && a++), typeof s.type != "function" && (s.__u |= 4)) : I != D && (I == D - 1 ? a-- : I == D + 1 ? a++ : (I > D ? a-- : a++, s.__u |= 4))) : e.__k[o] = null;
|
|
95
|
+
if (c) for (o = 0; o < f; o++) (M = t[o]) != null && (2 & M.__u) == 0 && (M.__e == r && (r = bi(M)), Sn(M, M));
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function _n(e, i, t, r) {
|
|
99
99
|
var n, o;
|
|
100
100
|
if (typeof e.type == "function") {
|
|
101
|
-
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, i =
|
|
101
|
+
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, i = _n(n[o], i, t, r));
|
|
102
102
|
return i;
|
|
103
103
|
}
|
|
104
104
|
e.__e != i && (r && (i && e.type && !i.parentNode && (i = bi(e)), t.insertBefore(e.__e, i || null)), i = e.__e);
|
|
@@ -113,10 +113,10 @@ function oi(e, i) {
|
|
|
113
113
|
}) : i.push(e)), i;
|
|
114
114
|
}
|
|
115
115
|
function ms(e, i, t, r) {
|
|
116
|
-
var n, o, s, M = e.key, D = e.type,
|
|
117
|
-
if (
|
|
118
|
-
if (r > (
|
|
119
|
-
for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((
|
|
116
|
+
var n, o, s, M = e.key, D = e.type, I = i[t], f = I != null && (2 & I.__u) == 0;
|
|
117
|
+
if (I === null && M == null || f && M == I.key && D == I.type) return t;
|
|
118
|
+
if (r > (f ? 1 : 0)) {
|
|
119
|
+
for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((I = i[s = n >= 0 ? n-- : o++]) != null && (2 & I.__u) == 0 && M == I.key && D == I.type) return s;
|
|
120
120
|
}
|
|
121
121
|
return -1;
|
|
122
122
|
}
|
|
@@ -151,31 +151,31 @@ function Qr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function Ut(e, i, t, r, n, o, s, M, D,
|
|
155
|
-
var
|
|
156
|
-
if (i.constructor
|
|
157
|
-
128 & t.__u && (D = !!(32 & t.__u), o = [M = i.__e = t.__e]), (
|
|
154
|
+
function Ut(e, i, t, r, n, o, s, M, D, I) {
|
|
155
|
+
var f, c, a, y, N, j, z, w, p, h, _, k, ie, F, ae, Y, H, V = i.type;
|
|
156
|
+
if (i.constructor !== void 0) return null;
|
|
157
|
+
128 & t.__u && (D = !!(32 & t.__u), o = [M = i.__e = t.__e]), (f = X.__b) && f(i);
|
|
158
158
|
e: if (typeof V == "function") try {
|
|
159
|
-
if (w = i.props,
|
|
159
|
+
if (w = i.props, p = "prototype" in V && V.prototype.render, h = (f = V.contextType) && r[f.__c], _ = f ? h ? h.props.value : f.__ : r, t.__c ? z = (c = i.__c = t.__c).__ = c.__E : (p ? i.__c = c = new V(w, _) : (i.__c = c = new Ge(w, _), c.constructor = V, c.render = _s), h && h.sub(c), c.state || (c.state = {}), c.__n = r, a = c.__d = !0, c.__h = [], c._sb = []), p && c.__s == null && (c.__s = c.state), p && V.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = qe({}, c.__s)), qe(c.__s, V.getDerivedStateFromProps(w, c.__s))), y = c.props, N = c.state, c.__v = i, a) p && V.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), p && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
160
160
|
else {
|
|
161
|
-
if (
|
|
161
|
+
if (p && V.getDerivedStateFromProps == null && w !== y && c.componentWillReceiveProps != null && c.componentWillReceiveProps(w, _), i.__v == t.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(w, c.__s, _) === !1) {
|
|
162
162
|
for (i.__v != t.__v && (c.props = w, c.state = c.__s, c.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(R) {
|
|
163
163
|
R && (R.__ = i);
|
|
164
164
|
}), k = 0; k < c._sb.length; k++) c.__h.push(c._sb[k]);
|
|
165
165
|
c._sb = [], c.__h.length && s.push(c);
|
|
166
166
|
break e;
|
|
167
167
|
}
|
|
168
|
-
c.componentWillUpdate != null && c.componentWillUpdate(w, c.__s,
|
|
169
|
-
c.componentDidUpdate(y, N,
|
|
168
|
+
c.componentWillUpdate != null && c.componentWillUpdate(w, c.__s, _), p && c.componentDidUpdate != null && c.__h.push(function() {
|
|
169
|
+
c.componentDidUpdate(y, N, j);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (c.context =
|
|
173
|
-
for (c.state = c.__s, c.__d = !1, ie && ie(i),
|
|
172
|
+
if (c.context = _, c.props = w, c.__P = e, c.__e = !1, ie = X.__r, F = 0, p) {
|
|
173
|
+
for (c.state = c.__s, c.__d = !1, ie && ie(i), f = c.render(c.props, c.state, c.context), ae = 0; ae < c._sb.length; ae++) c.__h.push(c._sb[ae]);
|
|
174
174
|
c._sb = [];
|
|
175
175
|
} else do
|
|
176
|
-
c.__d = !1, ie && ie(i),
|
|
176
|
+
c.__d = !1, ie && ie(i), f = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
177
177
|
while (c.__d && ++F < 25);
|
|
178
|
-
c.state = c.__s, c.getChildContext != null && (r = qe(qe({}, r), c.getChildContext())),
|
|
178
|
+
c.state = c.__s, c.getChildContext != null && (r = qe(qe({}, r), c.getChildContext())), p && !a && c.getSnapshotBeforeUpdate != null && (j = c.getSnapshotBeforeUpdate(y, N)), Y = f, f != null && f.type === be && f.key == null && (Y = bn(f.props.children)), M = wn(e, Hi(Y) ? Y : [Y], i, t, r, n, o, s, M, D, I), c.base = i.__e, i.__u &= -161, c.__h.length && s.push(c), z && (c.__E = c.__ = null);
|
|
179
179
|
} catch (R) {
|
|
180
180
|
if (i.__v = null, D || o != null) if (R.then) {
|
|
181
181
|
for (i.__u |= D ? 160 : 128; M && M.nodeType == 8 && M.nextSibling; ) M = M.nextSibling;
|
|
@@ -187,13 +187,13 @@ function Ut(e, i, t, r, n, o, s, M, D, j) {
|
|
|
187
187
|
else i.__e = t.__e, i.__k = t.__k, R.then || wt(i);
|
|
188
188
|
X.__e(R, i, t);
|
|
189
189
|
}
|
|
190
|
-
else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : M = i.__e = ws(t.__e, i, t, r, n, o, s, D,
|
|
191
|
-
return (
|
|
190
|
+
else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : M = i.__e = ws(t.__e, i, t, r, n, o, s, D, I);
|
|
191
|
+
return (f = X.diffed) && f(i), 128 & i.__u ? void 0 : M;
|
|
192
192
|
}
|
|
193
193
|
function wt(e) {
|
|
194
194
|
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(wt);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function pn(e, i, t) {
|
|
197
197
|
for (var r = 0; r < t.length; r++) Qt(t[r], t[++r], t[++r]);
|
|
198
198
|
X.__c && X.__c(i, e), e.some(function(n) {
|
|
199
199
|
try {
|
|
@@ -209,31 +209,31 @@ function bn(e) {
|
|
|
209
209
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Hi(e) ? e.map(bn) : qe({}, e);
|
|
210
210
|
}
|
|
211
211
|
function ws(e, i, t, r, n, o, s, M, D) {
|
|
212
|
-
var
|
|
213
|
-
if (
|
|
214
|
-
for (
|
|
215
|
-
e = y, o[
|
|
212
|
+
var I, f, c, a, y, N, j, z = t.props || Bi, w = i.props, p = i.type;
|
|
213
|
+
if (p == "svg" ? n = "http://www.w3.org/2000/svg" : p == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
214
|
+
for (I = 0; I < o.length; I++) if ((y = o[I]) && "setAttribute" in y == !!p && (p ? y.localName == p : y.nodeType == 3)) {
|
|
215
|
+
e = y, o[I] = null;
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
if (e == null) {
|
|
220
|
-
if (
|
|
221
|
-
e = document.createElementNS(n,
|
|
220
|
+
if (p == null) return document.createTextNode(w);
|
|
221
|
+
e = document.createElementNS(n, p, w.is && w), M && (X.__m && X.__m(i, o), M = !1), o = null;
|
|
222
222
|
}
|
|
223
|
-
if (
|
|
223
|
+
if (p == null) z === w || M && e.data == w || (e.data = w);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o && Zi.call(e.childNodes),
|
|
226
|
-
for (
|
|
227
|
-
if (
|
|
228
|
-
else if (!(
|
|
229
|
-
if (
|
|
230
|
-
it(e,
|
|
225
|
+
if (o = o && Zi.call(e.childNodes), !M && o != null) for (z = {}, I = 0; I < e.attributes.length; I++) z[(y = e.attributes[I]).name] = y.value;
|
|
226
|
+
for (I in z) if (y = z[I], I != "children") {
|
|
227
|
+
if (I == "dangerouslySetInnerHTML") c = y;
|
|
228
|
+
else if (!(I in w)) {
|
|
229
|
+
if (I == "value" && "defaultValue" in w || I == "checked" && "defaultChecked" in w) continue;
|
|
230
|
+
it(e, I, null, y, n);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
for (
|
|
234
|
-
if (
|
|
235
|
-
else if (c && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Hi(a) ? a : [a], i, t, r,
|
|
236
|
-
M || (
|
|
233
|
+
for (I in w) y = w[I], I == "children" ? a = y : I == "dangerouslySetInnerHTML" ? f = y : I == "value" ? N = y : I == "checked" ? j = y : M && typeof y != "function" || z[I] === y || it(e, I, y, z[I], n);
|
|
234
|
+
if (f) M || c && (f.__html == c.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), i.__k = [];
|
|
235
|
+
else if (c && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Hi(a) ? a : [a], i, t, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : t.__k && bi(t, 0), M, D), o != null) for (I = o.length; I--; ) kt(o[I]);
|
|
236
|
+
M || (I = "value", p == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[I] || p == "progress" && !N || p == "option" && N != z[I]) && it(e, I, N, z[I], n), I = "checked", j != null && j != e[I] && it(e, I, j, z[I], n));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
@@ -260,17 +260,17 @@ function Sn(e, i, t) {
|
|
|
260
260
|
if (r = e.__k) for (n = 0; n < r.length; n++) r[n] && Sn(r[n], i, t || typeof e.type != "function");
|
|
261
261
|
t || kt(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function _s(e, i, t) {
|
|
264
264
|
return this.constructor(e, t);
|
|
265
265
|
}
|
|
266
266
|
function Ai(e, i, t) {
|
|
267
267
|
var r, n, o, s;
|
|
268
|
-
i == document && (i = document.documentElement), X.__ && X.__(e, i), n = (r = typeof t == "function") ? null : t && t.__k || i.__k, o = [], s = [], Ut(i, e = (!r && t || i).__k = ei(be, null, [e]), n || Bi, Bi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Zi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s),
|
|
268
|
+
i == document && (i = document.documentElement), X.__ && X.__(e, i), n = (r = typeof t == "function") ? null : t && t.__k || i.__k, o = [], s = [], Ut(i, e = (!r && t || i).__k = ei(be, null, [e]), n || Bi, Bi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Zi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s), pn(o, e, s);
|
|
269
269
|
}
|
|
270
270
|
function Cn(e, i) {
|
|
271
271
|
Ai(e, i, Cn);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function ps(e, i, t) {
|
|
274
274
|
var r, n, o, s, M = qe({}, e.props);
|
|
275
275
|
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : M[o] = i[o] === void 0 && s != null ? s[o] : i[o];
|
|
276
276
|
return arguments.length > 2 && (M.children = arguments.length > 3 ? Zi.call(arguments, 2) : t), Yi(e.type, M, r || e.key, n || e.ref, null);
|
|
@@ -318,9 +318,9 @@ function d(e, i, t, r, n, o) {
|
|
|
318
318
|
i || (i = {});
|
|
319
319
|
var s, M, D = i;
|
|
320
320
|
if ("ref" in D) for (M in D = {}, i) M == "ref" ? s = i[M] : D[M] = i[M];
|
|
321
|
-
var
|
|
321
|
+
var I = { type: e, props: D, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --bs, __i: -1, __u: 0, __source: n, __self: o };
|
|
322
322
|
if (typeof e == "function" && (s = e.defaultProps)) for (M in s) D[M] === void 0 && (D[M] = s[M]);
|
|
323
|
-
return X.vnode && X.vnode(
|
|
323
|
+
return X.vnode && X.vnode(I), I;
|
|
324
324
|
}
|
|
325
325
|
class yi {
|
|
326
326
|
constructor({
|
|
@@ -332,9 +332,9 @@ class yi {
|
|
|
332
332
|
domain: s,
|
|
333
333
|
module: M,
|
|
334
334
|
errorEnumName: D,
|
|
335
|
-
shortDomainCode:
|
|
335
|
+
shortDomainCode: I
|
|
336
336
|
}) {
|
|
337
|
-
this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = M, this.domain = s, this.errorEnumName = D, this.shortDomainCode =
|
|
337
|
+
this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = M, this.domain = s, this.errorEnumName = D, this.shortDomainCode = I;
|
|
338
338
|
}
|
|
339
339
|
static getErrorKey(i, t) {
|
|
340
340
|
const r = Object.keys(t).find((n) => t[n] === i);
|
|
@@ -394,39 +394,39 @@ function Ti(e, i) {
|
|
|
394
394
|
var t = de.__H || (de.__H = { __: [], __h: [] });
|
|
395
395
|
return e >= t.__.length && t.__.push({}), t.__[e];
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function _e(e) {
|
|
398
398
|
return Si = 1, Dt(Ln, e);
|
|
399
399
|
}
|
|
400
400
|
function Dt(e, i, t) {
|
|
401
401
|
var r = Ti(si++, 2);
|
|
402
402
|
if (r.t = e, !r.__c && (r.__ = [t ? t(i) : Ln(void 0, i), function(M) {
|
|
403
|
-
var D = r.__N ? r.__N[0] : r.__[0],
|
|
404
|
-
D !==
|
|
403
|
+
var D = r.__N ? r.__N[0] : r.__[0], I = r.t(D, M);
|
|
404
|
+
D !== I && (r.__N = [I, r.__[1]], r.__c.setState({}));
|
|
405
405
|
}], r.__c = de, !de.__f)) {
|
|
406
|
-
var n = function(M, D,
|
|
406
|
+
var n = function(M, D, I) {
|
|
407
407
|
if (!r.__c.__H) return !0;
|
|
408
|
-
var
|
|
408
|
+
var f = r.__c.__H.__.filter(function(a) {
|
|
409
409
|
return !!a.__c;
|
|
410
410
|
});
|
|
411
|
-
if (
|
|
411
|
+
if (f.every(function(a) {
|
|
412
412
|
return !a.__N;
|
|
413
|
-
})) return !o || o.call(this, M, D,
|
|
413
|
+
})) return !o || o.call(this, M, D, I);
|
|
414
414
|
var c = r.__c.props !== M;
|
|
415
|
-
return
|
|
415
|
+
return f.forEach(function(a) {
|
|
416
416
|
if (a.__N) {
|
|
417
417
|
var y = a.__[0];
|
|
418
418
|
a.__ = a.__N, a.__N = void 0, y !== a.__[0] && (c = !0);
|
|
419
419
|
}
|
|
420
|
-
}), o && o.call(this, M, D,
|
|
420
|
+
}), o && o.call(this, M, D, I) || c;
|
|
421
421
|
};
|
|
422
422
|
de.__f = !0;
|
|
423
423
|
var o = de.shouldComponentUpdate, s = de.componentWillUpdate;
|
|
424
|
-
de.componentWillUpdate = function(M, D,
|
|
424
|
+
de.componentWillUpdate = function(M, D, I) {
|
|
425
425
|
if (this.__e) {
|
|
426
|
-
var
|
|
427
|
-
o = void 0, n(M, D,
|
|
426
|
+
var f = o;
|
|
427
|
+
o = void 0, n(M, D, I), o = f;
|
|
428
428
|
}
|
|
429
|
-
s && s.call(this, M, D,
|
|
429
|
+
s && s.call(this, M, D, I);
|
|
430
430
|
}, de.shouldComponentUpdate = n;
|
|
431
431
|
}
|
|
432
432
|
return r.__N || r.__;
|
|
@@ -474,7 +474,7 @@ function Ft(e, i) {
|
|
|
474
474
|
ye.useDebugValue && ye.useDebugValue(i ? i(e) : e);
|
|
475
475
|
}
|
|
476
476
|
function vs(e) {
|
|
477
|
-
var i = Ti(si++, 10), t =
|
|
477
|
+
var i = Ti(si++, 10), t = _e();
|
|
478
478
|
return i.__ = e, de.componentDidCatch || (de.componentDidCatch = function(r, n) {
|
|
479
479
|
i.__ && i.__(r, n), t[1](r);
|
|
480
480
|
}), [t[0], function() {
|
|
@@ -492,7 +492,7 @@ function Vt() {
|
|
|
492
492
|
}
|
|
493
493
|
function Ls() {
|
|
494
494
|
for (var e; e = vn.shift(); ) if (e.__P && e.__H) try {
|
|
495
|
-
e.__H.__h.forEach(nt), e.__H.__h.forEach(
|
|
495
|
+
e.__H.__h.forEach(nt), e.__H.__h.forEach(_t), e.__H.__h = [];
|
|
496
496
|
} catch (i) {
|
|
497
497
|
e.__H.__h = [], ye.__e(i, e.__v);
|
|
498
498
|
}
|
|
@@ -506,7 +506,7 @@ ye.__b = function(e) {
|
|
|
506
506
|
var i = (de = e.__c).__H;
|
|
507
507
|
i && (ft === de ? (i.__h = [], de.__h = [], i.__.forEach(function(t) {
|
|
508
508
|
t.__N && (t.__ = t.__N), t.u = t.__N = void 0;
|
|
509
|
-
})) : (i.__h.forEach(nt), i.__h.forEach(
|
|
509
|
+
})) : (i.__h.forEach(nt), i.__h.forEach(_t), i.__h = [], si = 0)), ft = de;
|
|
510
510
|
}, ye.diffed = function(e) {
|
|
511
511
|
Fr && Fr(e);
|
|
512
512
|
var i = e.__c;
|
|
@@ -517,7 +517,7 @@ ye.__b = function(e) {
|
|
|
517
517
|
i.some(function(t) {
|
|
518
518
|
try {
|
|
519
519
|
t.__h.forEach(nt), t.__h = t.__h.filter(function(r) {
|
|
520
|
-
return !r.__ ||
|
|
520
|
+
return !r.__ || _t(r);
|
|
521
521
|
});
|
|
522
522
|
} catch (r) {
|
|
523
523
|
i.some(function(n) {
|
|
@@ -547,7 +547,7 @@ function nt(e) {
|
|
|
547
547
|
var i = de, t = e.__c;
|
|
548
548
|
typeof t == "function" && (e.__c = void 0, t()), de = i;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function _t(e) {
|
|
551
551
|
var i = de;
|
|
552
552
|
e.__c = e.__(), de = i;
|
|
553
553
|
}
|
|
@@ -653,7 +653,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
653
653
|
CLOSE_ICON: "close_icon",
|
|
654
654
|
GALLERY_ICON: "gallery",
|
|
655
655
|
CAMERA_ICON: "camera"
|
|
656
|
-
},
|
|
656
|
+
}, pt = {
|
|
657
657
|
[ce.SPINNER]: (e) => {
|
|
658
658
|
const i = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHlsZT0idHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7Ij4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyNy41IiBmaWxsPSJub25lIiBzdHJva2U9IiM3RTU3QzUiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTI5LjU5MDY5Njk2MDU3ODk4IDQzLjE5Njg5ODk4Njg1OTY2IiBzdHJva2UtZGFzaG9mZnNldD0iMCIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAzMCAzMCkiLz4KPC9zdmc+Cg==";
|
|
659
659
|
if (!e) return i;
|
|
@@ -689,7 +689,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
|
|
|
689
689
|
[ce.WARNING]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODYiIHZpZXdCb3g9IjAgMCA4NiA4NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZWxsaXBzZSBjeD0iNDMiIGN5PSI0MyIgcng9IjQwIiByeT0iNDAiIHRyYW5zZm9ybT0icm90YXRlKDkwIDQzIDQzKSIgc3Ryb2tlPSIjRkNCOTM3IiBzdHJva2Utd2lkdGg9IjMiLz4KICA8cGF0aCBkPSJNNDAuODc4OSA0OC41MzUyTDQwLjU4NTkgMjVINDQuOTgwNUw0NC42ODc1IDQ4LjUzNTJINDAuODc4OVpNNDIuNzgzMiA2MC40NzM2QzQyLjAwMiA2MC40NzM2IDQxLjM0MjggNjAuMjA1MSA0MC44MDU3IDU5LjY2OEM0MC4yNjg2IDU5LjEzMDkgNDAgNTguNDcxNyA0MCA1Ny42OTA0QzQwIDU2Ljg5MjkgNDAuMjY4NiA1Ni4yMzM3IDQwLjgwNTcgNTUuNzEyOUM0MS4zNDI4IDU1LjE3NTggNDIuMDAyIDU0LjkwNzIgNDIuNzgzMiA1NC45MDcyQzQzLjU4MDcgNTQuOTA3MiA0NC4yMzk5IDU1LjE3NTggNDQuNzYwNyA1NS43MTI5QzQ1LjI5NzkgNTYuMjMzNyA0NS41NjY0IDU2Ljg5MjkgNDUuNTY2NCA1Ny42OTA0QzQ1LjU2NjQgNTguNDcxNyA0NS4yOTc5IDU5LjEzMDkgNDQuNzYwNyA1OS42NjhDNDQuMjM5OSA2MC4yMDUxIDQzLjU4MDcgNjAuNDczNiA0Mi43ODMyIDYwLjQ3MzZaIiBmaWxsPSIjRkNCOTM3Ii8+Cjwvc3ZnPgo=",
|
|
690
690
|
[ce.DEFAULT]: () => ""
|
|
691
691
|
}, kn = ({ type: e, color: i }) => {
|
|
692
|
-
const t =
|
|
692
|
+
const t = pt[e] || pt[ce.DEFAULT], r = t == null ? void 0 : t(i);
|
|
693
693
|
return e === ce.SPINNER ? /* @__PURE__ */ d(Ps, { dataUrl: r }) : /* @__PURE__ */ d("img", { src: r, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
|
|
694
694
|
}, Ji = "#005fcc", at = "idv-gui", ut = {
|
|
695
695
|
DECODING_FAILED: "DECODING_FAILED"
|
|
@@ -757,7 +757,7 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
757
757
|
} catch (e) {
|
|
758
758
|
return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
|
|
759
759
|
}
|
|
760
|
-
}), Zs = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Yn = (e) => (e == null ? void 0 : e.some((t) => t.type === "FORM")) ? st.FORM : st.DATA,
|
|
760
|
+
}), Zs = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Yn = (e) => (e == null ? void 0 : e.some((t) => t.type === "FORM")) ? st.FORM : st.DATA, pe = ({
|
|
761
761
|
imageId: e,
|
|
762
762
|
imageURL: i,
|
|
763
763
|
base64: t,
|
|
@@ -769,7 +769,7 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
769
769
|
if (c === tt.ASPECT_FILL) return "cover";
|
|
770
770
|
if (c === tt.ASPECT_FIT) return "contain";
|
|
771
771
|
if (c === tt.FILL) return "fill";
|
|
772
|
-
}, [M, D] =
|
|
772
|
+
}, [M, D] = _e(!0), I = M && i, f = () => {
|
|
773
773
|
D(!1);
|
|
774
774
|
};
|
|
775
775
|
if (t)
|
|
@@ -784,18 +784,18 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
784
784
|
objectFit: s(r),
|
|
785
785
|
borderRadius: n,
|
|
786
786
|
backgroundColor: ee(o) || "transparent",
|
|
787
|
-
display:
|
|
787
|
+
display: I ? "none" : "block"
|
|
788
788
|
},
|
|
789
789
|
src: t
|
|
790
790
|
}
|
|
791
791
|
);
|
|
792
792
|
if (e) {
|
|
793
|
-
const c = e in
|
|
793
|
+
const c = e in pt ? e : "default";
|
|
794
794
|
return /* @__PURE__ */ d(kn, { type: c });
|
|
795
795
|
}
|
|
796
796
|
if (i)
|
|
797
797
|
return /* @__PURE__ */ d(be, { children: [
|
|
798
|
-
|
|
798
|
+
I && /* @__PURE__ */ d(
|
|
799
799
|
"div",
|
|
800
800
|
{
|
|
801
801
|
style: {
|
|
@@ -817,10 +817,10 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
817
817
|
objectFit: s(r),
|
|
818
818
|
borderRadius: n,
|
|
819
819
|
backgroundColor: o,
|
|
820
|
-
display:
|
|
820
|
+
display: I ? "none" : "block"
|
|
821
821
|
},
|
|
822
822
|
src: i,
|
|
823
|
-
onLoad:
|
|
823
|
+
onLoad: f
|
|
824
824
|
}
|
|
825
825
|
)
|
|
826
826
|
] });
|
|
@@ -837,7 +837,7 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
837
837
|
height: "100%",
|
|
838
838
|
width: "100%"
|
|
839
839
|
},
|
|
840
|
-
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(
|
|
840
|
+
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(pe, O({}, e)) })
|
|
841
841
|
}
|
|
842
842
|
), Gs = {
|
|
843
843
|
display: "flex",
|
|
@@ -858,7 +858,7 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
858
858
|
highlightColor: s
|
|
859
859
|
}) => {
|
|
860
860
|
var a;
|
|
861
|
-
const [M, D] =
|
|
861
|
+
const [M, D] = _e(!1), I = M && s ? s : n, { perform: f } = zi();
|
|
862
862
|
return /* @__PURE__ */ d(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
@@ -867,11 +867,11 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
867
867
|
"data-test": e,
|
|
868
868
|
onClick: () => {
|
|
869
869
|
const y = JSON.parse(JSON.stringify(i));
|
|
870
|
-
Wt(y),
|
|
870
|
+
Wt(y), f(y, st.DATA);
|
|
871
871
|
},
|
|
872
872
|
className: "hover-button",
|
|
873
873
|
style: J(O(O({}, Gs), o && { borderRadius: o }), {
|
|
874
|
-
backgroundColor: (a = ee(
|
|
874
|
+
backgroundColor: (a = ee(I)) != null ? a : "transparent"
|
|
875
875
|
}),
|
|
876
876
|
onMouseEnter: () => D(!0),
|
|
877
877
|
onMouseLeave: () => D(!1),
|
|
@@ -886,7 +886,7 @@ const Bs = (e, i) => e.reduce((t, r) => {
|
|
|
886
886
|
width: "24px",
|
|
887
887
|
height: "24px"
|
|
888
888
|
},
|
|
889
|
-
children: /* @__PURE__ */ d(
|
|
889
|
+
children: /* @__PURE__ */ d(pe, O({}, t))
|
|
890
890
|
}
|
|
891
891
|
),
|
|
892
892
|
r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe, O({}, r)) })
|
|
@@ -914,12 +914,12 @@ function Xs(e) {
|
|
|
914
914
|
const i = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, t = [];
|
|
915
915
|
let r = 0;
|
|
916
916
|
for (const o of e.matchAll(i)) {
|
|
917
|
-
const [s, M, D] = o,
|
|
918
|
-
|
|
919
|
-
const
|
|
917
|
+
const [s, M, D] = o, I = (n = o.index) != null ? n : 0;
|
|
918
|
+
I > r && t.push(e.slice(r, I));
|
|
919
|
+
const f = D.startsWith("http") ? D : `https://${D}`;
|
|
920
920
|
t.push(
|
|
921
|
-
/* @__PURE__ */ d("a", { href:
|
|
922
|
-
), r =
|
|
921
|
+
/* @__PURE__ */ d("a", { href: f, target: "_blank", rel: "noopener noreferrer", children: M }, I)
|
|
922
|
+
), r = I + s.length;
|
|
923
923
|
}
|
|
924
924
|
return r < e.length && t.push(e.slice(r)), t;
|
|
925
925
|
}
|
|
@@ -948,8 +948,8 @@ const fe = ({
|
|
|
948
948
|
textAlign: Un(n),
|
|
949
949
|
backgroundColor: ee(o) || "transparent",
|
|
950
950
|
borderRadius: s
|
|
951
|
-
},
|
|
952
|
-
return M ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: D, htmlFor: M, children:
|
|
951
|
+
}, I = typeof e == "string" && e.trim() && Pn(e);
|
|
952
|
+
return M ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: D, htmlFor: M, children: I }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: D, children: I });
|
|
953
953
|
}, lt = ({
|
|
954
954
|
title: e,
|
|
955
955
|
image: i,
|
|
@@ -960,14 +960,14 @@ const fe = ({
|
|
|
960
960
|
dataTestId: s,
|
|
961
961
|
borderColor: M,
|
|
962
962
|
borderWidth: D,
|
|
963
|
-
type:
|
|
964
|
-
onClick:
|
|
963
|
+
type: I = "RESPONSE_BODY",
|
|
964
|
+
onClick: f
|
|
965
965
|
}) => {
|
|
966
|
-
var w,
|
|
967
|
-
const [c, a] =
|
|
968
|
-
if (
|
|
969
|
-
const
|
|
970
|
-
Wt(
|
|
966
|
+
var w, p;
|
|
967
|
+
const [c, a] = _e(!1), y = c && ee(o) ? o : r, { perform: N } = zi(), j = (h) => {
|
|
968
|
+
if (f && f(h), I !== "RESPONSE_BODY") return;
|
|
969
|
+
const _ = JSON.parse(JSON.stringify(t));
|
|
970
|
+
Wt(_), N(_, st.DATA);
|
|
971
971
|
}, z = {
|
|
972
972
|
height: "50px",
|
|
973
973
|
width: "100%",
|
|
@@ -984,7 +984,7 @@ const fe = ({
|
|
|
984
984
|
borderRadius: n || 0,
|
|
985
985
|
borderStyle: M && D ? "solid" : void 0,
|
|
986
986
|
backgroundColor: (w = ee(y)) != null ? w : "transparent",
|
|
987
|
-
borderColor: (
|
|
987
|
+
borderColor: (p = ee(M)) != null ? p : "none",
|
|
988
988
|
borderWidth: D != null ? D : 0,
|
|
989
989
|
overflow: "hidden",
|
|
990
990
|
transition: ".3s",
|
|
@@ -995,14 +995,14 @@ const fe = ({
|
|
|
995
995
|
{
|
|
996
996
|
"data-ui": "gui-button",
|
|
997
997
|
part: "gui-button",
|
|
998
|
-
type:
|
|
998
|
+
type: I === "FORM" ? "submit" : "button",
|
|
999
999
|
"data-test": s,
|
|
1000
|
-
onClick:
|
|
1000
|
+
onClick: j,
|
|
1001
1001
|
style: z,
|
|
1002
1002
|
onMouseEnter: () => a(!0),
|
|
1003
1003
|
onMouseLeave: () => a(!1),
|
|
1004
1004
|
children: [
|
|
1005
|
-
i && /* @__PURE__ */ d(
|
|
1005
|
+
i && /* @__PURE__ */ d(pe, O({}, i)),
|
|
1006
1006
|
e && /* @__PURE__ */ d(
|
|
1007
1007
|
"div",
|
|
1008
1008
|
{
|
|
@@ -1129,9 +1129,9 @@ const fe = ({
|
|
|
1129
1129
|
buttons: o,
|
|
1130
1130
|
backgroundColor: s
|
|
1131
1131
|
}) => {
|
|
1132
|
-
const M = Je(null), [D,
|
|
1132
|
+
const M = Je(null), [D, I] = _e(!1);
|
|
1133
1133
|
return Fe(() => {
|
|
1134
|
-
M.current &&
|
|
1134
|
+
M.current && I(M.current.scrollHeight > M.current.clientHeight + 2);
|
|
1135
1135
|
}, []), /* @__PURE__ */ d(ci, { header: e, buttons: o, footer: i, backgroundColor: s, children: /* @__PURE__ */ d(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
@@ -1146,7 +1146,7 @@ const fe = ({
|
|
|
1146
1146
|
flexDirection: "column"
|
|
1147
1147
|
},
|
|
1148
1148
|
children: [
|
|
1149
|
-
t && /* @__PURE__ */ d("div", { style: Ys, children: /* @__PURE__ */ d(
|
|
1149
|
+
t && /* @__PURE__ */ d("div", { style: Ys, children: /* @__PURE__ */ d(pe, O({}, t)) }),
|
|
1150
1150
|
(r == null ? void 0 : r.text) && /* @__PURE__ */ d(
|
|
1151
1151
|
"div",
|
|
1152
1152
|
{
|
|
@@ -1214,7 +1214,7 @@ const fe = ({
|
|
|
1214
1214
|
justifyContent: r ? "flex-start" : "center"
|
|
1215
1215
|
}),
|
|
1216
1216
|
children: [
|
|
1217
|
-
r && /* @__PURE__ */ d("div", { style: eM, children: /* @__PURE__ */ d(
|
|
1217
|
+
r && /* @__PURE__ */ d("div", { style: eM, children: /* @__PURE__ */ d(pe, O({}, r)) }),
|
|
1218
1218
|
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
1219
1219
|
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, O({}, n)) })
|
|
1220
1220
|
]
|
|
@@ -1274,7 +1274,7 @@ const fe = ({
|
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
1276
1276
|
),
|
|
1277
|
-
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(
|
|
1277
|
+
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(pe, O({}, t)) })
|
|
1278
1278
|
]
|
|
1279
1279
|
}
|
|
1280
1280
|
), oM = {
|
|
@@ -1299,7 +1299,7 @@ const fe = ({
|
|
|
1299
1299
|
buttons: n,
|
|
1300
1300
|
backgroundColor: o
|
|
1301
1301
|
}) => {
|
|
1302
|
-
const s = Je(null), [M, D] =
|
|
1302
|
+
const s = Je(null), [M, D] = _e(!1);
|
|
1303
1303
|
return Fe(() => {
|
|
1304
1304
|
s.current && D(s.current.scrollHeight > s.current.clientHeight);
|
|
1305
1305
|
}, []), /* @__PURE__ */ d(ci, { header: i, buttons: n, footer: t, backgroundColor: o, children: /* @__PURE__ */ d(
|
|
@@ -1331,7 +1331,7 @@ function bt(e, i) {
|
|
|
1331
1331
|
return !1;
|
|
1332
1332
|
}
|
|
1333
1333
|
function Zt(e, i) {
|
|
1334
|
-
var t = i(), r =
|
|
1334
|
+
var t = i(), r = _e({ t: { __: t, u: i } }), n = r[0].t, o = r[1];
|
|
1335
1335
|
return li(function() {
|
|
1336
1336
|
n.__ = t, n.u = i, Tt(n) && o({ t: n });
|
|
1337
1337
|
}, [e, t, i]), Fe(function() {
|
|
@@ -1419,43 +1419,46 @@ function Pi() {
|
|
|
1419
1419
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1420
1420
|
}
|
|
1421
1421
|
function Hn(e) {
|
|
1422
|
+
if (!e.__) return null;
|
|
1422
1423
|
var i = e.__.__c;
|
|
1423
1424
|
return i && i.__a && i.__a(e);
|
|
1424
1425
|
}
|
|
1425
1426
|
function Gn(e) {
|
|
1426
|
-
var i, t, r;
|
|
1427
|
-
function
|
|
1428
|
-
if (i || (i = e()).then(function(
|
|
1429
|
-
|
|
1430
|
-
}, function(
|
|
1431
|
-
r =
|
|
1432
|
-
}),
|
|
1433
|
-
if (!
|
|
1434
|
-
return ei(
|
|
1427
|
+
var i, t, r, n = null;
|
|
1428
|
+
function o(s) {
|
|
1429
|
+
if (i || (i = e()).then(function(M) {
|
|
1430
|
+
M && (n = M.default || M), r = !0;
|
|
1431
|
+
}, function(M) {
|
|
1432
|
+
t = M, r = !0;
|
|
1433
|
+
}), t) throw t;
|
|
1434
|
+
if (!r) throw i;
|
|
1435
|
+
return n ? ei(n, s) : null;
|
|
1435
1436
|
}
|
|
1436
|
-
return
|
|
1437
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function pi() {
|
|
1439
1440
|
this.i = null, this.l = null;
|
|
1440
1441
|
}
|
|
1441
1442
|
X.unmount = function(e) {
|
|
1442
1443
|
var i = e.__c;
|
|
1443
|
-
i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), Kr && Kr(e);
|
|
1444
|
+
i && (i.__z = !0), i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), Kr && Kr(e);
|
|
1444
1445
|
}, (Pi.prototype = new Ge()).__c = function(e, i) {
|
|
1445
1446
|
var t = i.__c, r = this;
|
|
1446
1447
|
r.o == null && (r.o = []), r.o.push(t);
|
|
1447
1448
|
var n = Hn(r.__v), o = !1, s = function() {
|
|
1448
|
-
o || (o = !0, t.__R = null, n ? n(
|
|
1449
|
+
o || r.__z || (o = !0, t.__R = null, n ? n(D) : D());
|
|
1449
1450
|
};
|
|
1450
1451
|
t.__R = s;
|
|
1451
|
-
var M =
|
|
1452
|
+
var M = t.__P;
|
|
1453
|
+
t.__P = null;
|
|
1454
|
+
var D = function() {
|
|
1452
1455
|
if (!--r.__u) {
|
|
1453
1456
|
if (r.state.__a) {
|
|
1454
|
-
var
|
|
1455
|
-
r.__v.__k[0] = Zn(
|
|
1457
|
+
var I = r.state.__a;
|
|
1458
|
+
r.__v.__k[0] = Zn(I, I.__c.__P, I.__c.__O);
|
|
1456
1459
|
}
|
|
1457
|
-
var
|
|
1458
|
-
for (r.setState({ __a: r.__b = null });
|
|
1460
|
+
var f;
|
|
1461
|
+
for (r.setState({ __a: r.__b = null }); f = r.o.pop(); ) f.__P = M, f.forceUpdate();
|
|
1459
1462
|
}
|
|
1460
1463
|
};
|
|
1461
1464
|
r.__u++ || 32 & i.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
@@ -1492,7 +1495,7 @@ function cM(e) {
|
|
|
1492
1495
|
for (var r = i.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
1493
1496
|
i.h = t, i.v = { nodeType: 1, parentNode: t, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
1494
1497
|
return !0;
|
|
1495
|
-
}, insertBefore: function(n, o) {
|
|
1498
|
+
}, namespaceURI: t.namespaceURI, insertBefore: function(n, o) {
|
|
1496
1499
|
this.childNodes.push(n), i.h.insertBefore(n, o);
|
|
1497
1500
|
}, removeChild: function(n) {
|
|
1498
1501
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), i.h.removeChild(n);
|
|
@@ -1504,7 +1507,7 @@ function Jn(e, i) {
|
|
|
1504
1507
|
var t = ei(cM, { __v: e, h: i });
|
|
1505
1508
|
return t.containerInfo = i, t;
|
|
1506
1509
|
}
|
|
1507
|
-
(
|
|
1510
|
+
(pi.prototype = new Ge()).__a = function(e) {
|
|
1508
1511
|
var i = this, t = Hn(i.__v), r = i.l.get(e);
|
|
1509
1512
|
return r[0]++, function(n) {
|
|
1510
1513
|
var o = function() {
|
|
@@ -1512,13 +1515,13 @@ function Jn(e, i) {
|
|
|
1512
1515
|
};
|
|
1513
1516
|
t ? t(o) : o();
|
|
1514
1517
|
};
|
|
1515
|
-
},
|
|
1518
|
+
}, pi.prototype.render = function(e) {
|
|
1516
1519
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1517
1520
|
var i = oi(e.children);
|
|
1518
1521
|
e.revealOrder && e.revealOrder[0] === "b" && i.reverse();
|
|
1519
1522
|
for (var t = i.length; t--; ) this.l.set(i[t], this.i = [1, 0, this.i]);
|
|
1520
1523
|
return e.children;
|
|
1521
|
-
},
|
|
1524
|
+
}, pi.prototype.componentDidUpdate = pi.prototype.componentDidMount = function() {
|
|
1522
1525
|
var e = this;
|
|
1523
1526
|
this.l.forEach(function(i, t) {
|
|
1524
1527
|
qr(e, t, i);
|
|
@@ -1565,10 +1568,10 @@ X.vnode = function(e) {
|
|
|
1565
1568
|
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : D === "translate" && M === "no" ? M = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" || IM(t.type) ? D === "onfocus" ? s = "onfocusin" : D === "onblur" ? s = "onfocusout" : dM.test(s) && (s = D) : D = s = "oninput" : o && gM.test(s) ? s = s.replace(NM, "-$&").toLowerCase() : M === null && (M = void 0), D === "oninput" && n[s = D] && (s = "oninputCapture"), n[s] = M;
|
|
1566
1569
|
}
|
|
1567
1570
|
}
|
|
1568
|
-
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(t.children).forEach(function(
|
|
1569
|
-
|
|
1570
|
-
})), r == "select" && n.defaultValue != null && (n.value = oi(t.children).forEach(function(
|
|
1571
|
-
|
|
1571
|
+
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(t.children).forEach(function(I) {
|
|
1572
|
+
I.props.selected = n.value.indexOf(I.props.value) != -1;
|
|
1573
|
+
})), r == "select" && n.defaultValue != null && (n.value = oi(t.children).forEach(function(I) {
|
|
1574
|
+
I.props.selected = n.multiple ? n.defaultValue.indexOf(I.props.value) != -1 : n.defaultValue == I.props.value;
|
|
1572
1575
|
})), t.class && !t.className ? (n.class = t.class, Object.defineProperty(n, "className", AM)) : (t.className && !t.class || t.class && t.className) && (n.class = n.className = t.className), i.props = n;
|
|
1573
1576
|
})(e), e.$$typeof = $n, tn && tn(e);
|
|
1574
1577
|
};
|
|
@@ -1584,7 +1587,7 @@ X.diffed = function(e) {
|
|
|
1584
1587
|
};
|
|
1585
1588
|
var qn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1586
1589
|
return Xt.__n[e.__c].props.value;
|
|
1587
|
-
}, useCallback: Rt, useContext: Ci, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Gi, useReducer: Dt, useRef: Je, useState:
|
|
1590
|
+
}, useCallback: Rt, useContext: Ci, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Gi, useReducer: Dt, useRef: Je, useState: _e, useSyncExternalStore: Zt, useTransition: Jt } } }, TM = "18.3.1";
|
|
1588
1591
|
function eo(e) {
|
|
1589
1592
|
return ei.bind(null, e);
|
|
1590
1593
|
}
|
|
@@ -1598,7 +1601,7 @@ function to(e) {
|
|
|
1598
1601
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
1599
1602
|
}
|
|
1600
1603
|
function ro(e) {
|
|
1601
|
-
return $i(e) ?
|
|
1604
|
+
return $i(e) ? ps.apply(null, arguments) : e;
|
|
1602
1605
|
}
|
|
1603
1606
|
function no(e) {
|
|
1604
1607
|
return !!e.__k && (Ai(null, e), !0);
|
|
@@ -1610,7 +1613,7 @@ var so = function(e, i) {
|
|
|
1610
1613
|
return e(i);
|
|
1611
1614
|
}, Mo = function(e, i) {
|
|
1612
1615
|
return e(i);
|
|
1613
|
-
}, ao = be, uo = $i, re = { useState:
|
|
1616
|
+
}, ao = be, uo = $i, re = { useState: _e, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef: Je, useImperativeHandle: Pt, useMemo: Gi, useCallback: Rt, useContext: Ci, useDebugValue: Ft, version: "18.3.1", Children: Bn, render: Xn, hydrate: Kn, unmountComponentAtNode: no, createPortal: Jn, createElement: ei, createContext: Yt, createFactory: eo, cloneElement: ro, createRef: hn, Fragment: be, isValidElement: $i, isElement: uo, isFragment: io, isMemo: to, findDOMNode: oo, Component: Ge, PureComponent: ct, memo: Fn, forwardRef: Vn, flushSync: Mo, unstable_batchedUpdates: so, StrictMode: ao, Suspense: Pi, SuspenseList: pi, lazy: Gn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qn };
|
|
1614
1617
|
const zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1615
1618
|
__proto__: null,
|
|
1616
1619
|
Children: Bn,
|
|
@@ -1619,7 +1622,7 @@ const zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1619
1622
|
PureComponent: ct,
|
|
1620
1623
|
StrictMode: ao,
|
|
1621
1624
|
Suspense: Pi,
|
|
1622
|
-
SuspenseList:
|
|
1625
|
+
SuspenseList: pi,
|
|
1623
1626
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qn,
|
|
1624
1627
|
cloneElement: ro,
|
|
1625
1628
|
createContext: Yt,
|
|
@@ -1655,7 +1658,7 @@ const zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1655
1658
|
useMemo: Gi,
|
|
1656
1659
|
useReducer: Dt,
|
|
1657
1660
|
useRef: Je,
|
|
1658
|
-
useState:
|
|
1661
|
+
useState: _e,
|
|
1659
1662
|
useSyncExternalStore: Zt,
|
|
1660
1663
|
useTransition: Jt,
|
|
1661
1664
|
version: TM
|
|
@@ -1693,8 +1696,8 @@ var yt = (e) => /^\w*$/.test(e), Te = (e) => e === void 0, qt = (e) => Array.isA
|
|
|
1693
1696
|
const M = n[r];
|
|
1694
1697
|
let D = t;
|
|
1695
1698
|
if (r !== s) {
|
|
1696
|
-
const
|
|
1697
|
-
D = Ee(
|
|
1699
|
+
const I = e[M];
|
|
1700
|
+
D = Ee(I) || Array.isArray(I) ? I : isNaN(+n[r + 1]) ? {} : [];
|
|
1698
1701
|
}
|
|
1699
1702
|
if (M === "__proto__" || M === "constructor" || M === "prototype")
|
|
1700
1703
|
return;
|
|
@@ -1751,8 +1754,8 @@ function EM(e) {
|
|
|
1751
1754
|
name: n,
|
|
1752
1755
|
formState: D.current,
|
|
1753
1756
|
exact: o,
|
|
1754
|
-
callback: (
|
|
1755
|
-
!r && M(O(O({}, t._formState),
|
|
1757
|
+
callback: (I) => {
|
|
1758
|
+
!r && M(O(O({}, t._formState), I));
|
|
1756
1759
|
}
|
|
1757
1760
|
}), [n, r, o]), re.useEffect(() => {
|
|
1758
1761
|
D.current.isValid && t._setValid(!0);
|
|
@@ -1783,9 +1786,9 @@ function ni(e, i, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
1783
1786
|
return !0;
|
|
1784
1787
|
}
|
|
1785
1788
|
function hM(e) {
|
|
1786
|
-
const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, D = re.useRef(n),
|
|
1787
|
-
|
|
1788
|
-
const c = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [a, y] = re.useState(
|
|
1789
|
+
const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, D = re.useRef(n), I = re.useRef(M), f = re.useRef(void 0);
|
|
1790
|
+
I.current = M;
|
|
1791
|
+
const c = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [a, y] = re.useState(I.current ? I.current(c) : c);
|
|
1789
1792
|
return tr(() => t._subscribe({
|
|
1790
1793
|
name: r,
|
|
1791
1794
|
formState: {
|
|
@@ -1794,52 +1797,52 @@ function hM(e) {
|
|
|
1794
1797
|
exact: s,
|
|
1795
1798
|
callback: (N) => {
|
|
1796
1799
|
if (!o) {
|
|
1797
|
-
const
|
|
1798
|
-
if (
|
|
1799
|
-
const z =
|
|
1800
|
-
ni(z,
|
|
1800
|
+
const j = Io(r, t._names, N.values || t._formValues, !1, D.current);
|
|
1801
|
+
if (I.current) {
|
|
1802
|
+
const z = I.current(j);
|
|
1803
|
+
ni(z, f.current) || (y(z), f.current = z);
|
|
1801
1804
|
} else
|
|
1802
|
-
y(
|
|
1805
|
+
y(j);
|
|
1803
1806
|
}
|
|
1804
1807
|
}
|
|
1805
1808
|
}), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()), a;
|
|
1806
1809
|
}
|
|
1807
1810
|
function mM(e) {
|
|
1808
|
-
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, M = go(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]),
|
|
1811
|
+
const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, M = go(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]), I = hM({
|
|
1809
1812
|
control: n,
|
|
1810
1813
|
name: t,
|
|
1811
1814
|
defaultValue: D,
|
|
1812
1815
|
exact: !0
|
|
1813
|
-
}),
|
|
1816
|
+
}), f = EM({
|
|
1814
1817
|
control: n,
|
|
1815
1818
|
name: t,
|
|
1816
1819
|
exact: !0
|
|
1817
1820
|
}), c = re.useRef(e), a = re.useRef(void 0), y = re.useRef(n.register(t, O(J(O({}, e.rules), {
|
|
1818
|
-
value:
|
|
1821
|
+
value: I
|
|
1819
1822
|
}), Pe(e.disabled) ? { disabled: e.disabled } : {})));
|
|
1820
1823
|
c.current = e;
|
|
1821
1824
|
const N = re.useMemo(() => Object.defineProperties({}, {
|
|
1822
1825
|
invalid: {
|
|
1823
1826
|
enumerable: !0,
|
|
1824
|
-
get: () => !!C(
|
|
1827
|
+
get: () => !!C(f.errors, t)
|
|
1825
1828
|
},
|
|
1826
1829
|
isDirty: {
|
|
1827
1830
|
enumerable: !0,
|
|
1828
|
-
get: () => !!C(
|
|
1831
|
+
get: () => !!C(f.dirtyFields, t)
|
|
1829
1832
|
},
|
|
1830
1833
|
isTouched: {
|
|
1831
1834
|
enumerable: !0,
|
|
1832
|
-
get: () => !!C(
|
|
1835
|
+
get: () => !!C(f.touchedFields, t)
|
|
1833
1836
|
},
|
|
1834
1837
|
isValidating: {
|
|
1835
1838
|
enumerable: !0,
|
|
1836
|
-
get: () => !!C(
|
|
1839
|
+
get: () => !!C(f.validatingFields, t)
|
|
1837
1840
|
},
|
|
1838
1841
|
error: {
|
|
1839
1842
|
enumerable: !0,
|
|
1840
|
-
get: () => C(
|
|
1843
|
+
get: () => C(f.errors, t)
|
|
1841
1844
|
}
|
|
1842
|
-
}), [
|
|
1845
|
+
}), [f, t]), j = re.useCallback((h) => y.current.onChange({
|
|
1843
1846
|
target: {
|
|
1844
1847
|
value: co(h),
|
|
1845
1848
|
name: t
|
|
@@ -1852,24 +1855,24 @@ function mM(e) {
|
|
|
1852
1855
|
},
|
|
1853
1856
|
type: gt.BLUR
|
|
1854
1857
|
}), [t, n._formValues]), w = re.useCallback((h) => {
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1858
|
+
const _ = C(n._fields, t);
|
|
1859
|
+
_ && h && (_._f.ref = {
|
|
1857
1860
|
focus: () => h.focus && h.focus(),
|
|
1858
1861
|
select: () => h.select && h.select(),
|
|
1859
1862
|
setCustomValidity: (k) => h.setCustomValidity(k),
|
|
1860
1863
|
reportValidity: () => h.reportValidity()
|
|
1861
1864
|
});
|
|
1862
|
-
}, [n._fields, t]),
|
|
1865
|
+
}, [n._fields, t]), p = re.useMemo(() => J(O({
|
|
1863
1866
|
name: t,
|
|
1864
|
-
value:
|
|
1865
|
-
}, Pe(r) ||
|
|
1866
|
-
onChange:
|
|
1867
|
+
value: I
|
|
1868
|
+
}, Pe(r) || f.disabled ? { disabled: f.disabled || r } : {}), {
|
|
1869
|
+
onChange: j,
|
|
1867
1870
|
onBlur: z,
|
|
1868
1871
|
ref: w
|
|
1869
|
-
}), [t, r,
|
|
1872
|
+
}), [t, r, f.disabled, j, z, w, I]);
|
|
1870
1873
|
return re.useEffect(() => {
|
|
1871
|
-
const h = n._options.shouldUnregister || o,
|
|
1872
|
-
|
|
1874
|
+
const h = n._options.shouldUnregister || o, _ = a.current;
|
|
1875
|
+
_ && _ !== t && !M && n.unregister(_), n.register(t, O(O({}, c.current.rules), Pe(c.current.disabled) ? { disabled: c.current.disabled } : {}));
|
|
1873
1876
|
const k = (ie, F) => {
|
|
1874
1877
|
const ae = C(n._fields, ie);
|
|
1875
1878
|
ae && ae._f && (ae._f.mount = F);
|
|
@@ -1887,10 +1890,10 @@ function mM(e) {
|
|
|
1887
1890
|
name: t
|
|
1888
1891
|
});
|
|
1889
1892
|
}, [r, t, n]), re.useMemo(() => ({
|
|
1890
|
-
field:
|
|
1891
|
-
formState:
|
|
1893
|
+
field: p,
|
|
1894
|
+
formState: f,
|
|
1892
1895
|
fieldState: N
|
|
1893
|
-
}), [
|
|
1896
|
+
}), [p, f, N]);
|
|
1894
1897
|
}
|
|
1895
1898
|
const jo = (e) => e.render(mM(e));
|
|
1896
1899
|
var wM = (e, i, t, r, n) => i ? J(O({}, t[e]), {
|
|
@@ -1934,8 +1937,8 @@ var Ue = (e) => Ee(e) && !Object.keys(e).length, rr = (e) => e.type === "file",
|
|
|
1934
1937
|
return !1;
|
|
1935
1938
|
const i = e ? e.ownerDocument : 0;
|
|
1936
1939
|
return e instanceof (i && i.defaultView ? i.defaultView.HTMLElement : HTMLElement);
|
|
1937
|
-
}, fo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio",
|
|
1938
|
-
function
|
|
1940
|
+
}, fo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", _M = (e) => nr(e) || Xi(e), zt = (e) => dt(e) && e.isConnected;
|
|
1941
|
+
function pM(e, i) {
|
|
1939
1942
|
const t = i.slice(0, -1).length;
|
|
1940
1943
|
let r = 0;
|
|
1941
1944
|
for (; r < t; )
|
|
@@ -1949,7 +1952,7 @@ function bM(e) {
|
|
|
1949
1952
|
return !0;
|
|
1950
1953
|
}
|
|
1951
1954
|
function xe(e, i) {
|
|
1952
|
-
const t = Array.isArray(i) ? i : yt(i) ? [i] : er(i), r = t.length === 1 ? e :
|
|
1955
|
+
const t = Array.isArray(i) ? i : yt(i) ? [i] : er(i), r = t.length === 1 ? e : pM(e, t), n = t.length - 1, o = t[n];
|
|
1953
1956
|
return r && delete r[o], n !== 0 && (Ee(r) && Ue(r) || Array.isArray(r) && bM(r)) && xe(e, t.slice(0, -1)), e;
|
|
1954
1957
|
}
|
|
1955
1958
|
var SM = (e) => {
|
|
@@ -1966,10 +1969,10 @@ function Ct(e, i = {}) {
|
|
|
1966
1969
|
Ao(e[t]) ? (i[t] = Array.isArray(e[t]) ? [] : {}, Ct(e[t], i[t])) : Ce(e[t]) || (i[t] = !0);
|
|
1967
1970
|
return i;
|
|
1968
1971
|
}
|
|
1969
|
-
function
|
|
1972
|
+
function _i(e, i, t) {
|
|
1970
1973
|
t || (t = Ct(i));
|
|
1971
1974
|
for (const r in e)
|
|
1972
|
-
Ao(e[r]) ? Te(i) || St(t[r]) ? t[r] = Ct(e[r], Array.isArray(e[r]) ? [] : {}) :
|
|
1975
|
+
Ao(e[r]) ? Te(i) || St(t[r]) ? t[r] = Ct(e[r], Array.isArray(e[r]) ? [] : {}) : _i(e[r], Ce(i) ? {} : i[r], t[r]) : t[r] = !ni(e[r], i[r]);
|
|
1973
1976
|
return t;
|
|
1974
1977
|
}
|
|
1975
1978
|
const sn = {
|
|
@@ -2087,75 +2090,75 @@ var wi = (e) => Ee(e) && !Nt(e) ? e : {
|
|
|
2087
2090
|
value: e,
|
|
2088
2091
|
message: ""
|
|
2089
2092
|
}, Dn = (e, i, t, r, n, o) => De(null, null, function* () {
|
|
2090
|
-
const { ref: s, refs: M, required: D, maxLength:
|
|
2091
|
-
if (!w || i.has(
|
|
2093
|
+
const { ref: s, refs: M, required: D, maxLength: I, minLength: f, min: c, max: a, pattern: y, validate: N, name: j, valueAsNumber: z, mount: w } = e._f, p = C(t, j);
|
|
2094
|
+
if (!w || i.has(j))
|
|
2092
2095
|
return {};
|
|
2093
|
-
const h = M ? M[0] : s,
|
|
2096
|
+
const h = M ? M[0] : s, _ = (R) => {
|
|
2094
2097
|
n && h.reportValidity && (h.setCustomValidity(Pe(R) ? "" : R || ""), h.reportValidity());
|
|
2095
|
-
}, k = {}, ie = nr(s), F = Xi(s), ae = ie || F, Y = (z || rr(s)) && Te(s.value) && Te(
|
|
2098
|
+
}, k = {}, ie = nr(s), F = Xi(s), ae = ie || F, Y = (z || rr(s)) && Te(s.value) && Te(p) || dt(s) && s.value === "" || p === "" || Array.isArray(p) && !p.length, H = wM.bind(null, j, r, k), V = (R, $, se, Ie = ti.maxLength, je = ti.minLength) => {
|
|
2096
2099
|
const Ae = R ? $ : se;
|
|
2097
|
-
k[
|
|
2100
|
+
k[j] = O({
|
|
2098
2101
|
type: R ? Ie : je,
|
|
2099
2102
|
message: Ae,
|
|
2100
2103
|
ref: s
|
|
2101
2104
|
}, H(R ? Ie : je, Ae));
|
|
2102
2105
|
};
|
|
2103
|
-
if (o ? !Array.isArray(
|
|
2106
|
+
if (o ? !Array.isArray(p) || !p.length : D && (!ae && (Y || Ce(p)) || Pe(p) && !p || F && !To(M).isValid || ie && !Oo(M).isValid)) {
|
|
2104
2107
|
const { value: R, message: $ } = Re(D) ? { value: !!D, message: D } : wi(D);
|
|
2105
|
-
if (R && (k[
|
|
2108
|
+
if (R && (k[j] = O({
|
|
2106
2109
|
type: ti.required,
|
|
2107
2110
|
message: $,
|
|
2108
2111
|
ref: h
|
|
2109
2112
|
}, H(ti.required, $)), !r))
|
|
2110
|
-
return
|
|
2113
|
+
return _($), k;
|
|
2111
2114
|
}
|
|
2112
2115
|
if (!Y && (!Ce(c) || !Ce(a))) {
|
|
2113
2116
|
let R, $;
|
|
2114
2117
|
const se = wi(a), Ie = wi(c);
|
|
2115
|
-
if (!Ce(
|
|
2116
|
-
const je = s.valueAsNumber ||
|
|
2118
|
+
if (!Ce(p) && !isNaN(p)) {
|
|
2119
|
+
const je = s.valueAsNumber || p && +p;
|
|
2117
2120
|
Ce(se.value) || (R = je > se.value), Ce(Ie.value) || ($ = je < Ie.value);
|
|
2118
2121
|
} else {
|
|
2119
|
-
const je = s.valueAsDate || new Date(
|
|
2120
|
-
Re(se.value) &&
|
|
2122
|
+
const je = s.valueAsDate || new Date(p), Ae = (G) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + G), Qe = s.type == "time", le = s.type == "week";
|
|
2123
|
+
Re(se.value) && p && (R = Qe ? Ae(p) > Ae(se.value) : le ? p > se.value : je > new Date(se.value)), Re(Ie.value) && p && ($ = Qe ? Ae(p) < Ae(Ie.value) : le ? p < Ie.value : je < new Date(Ie.value));
|
|
2121
2124
|
}
|
|
2122
2125
|
if ((R || $) && (V(!!R, se.message, Ie.message, ti.max, ti.min), !r))
|
|
2123
|
-
return
|
|
2126
|
+
return _(k[j].message), k;
|
|
2124
2127
|
}
|
|
2125
|
-
if ((
|
|
2126
|
-
const R = wi(
|
|
2128
|
+
if ((I || f) && !Y && (Re(p) || o && Array.isArray(p))) {
|
|
2129
|
+
const R = wi(I), $ = wi(f), se = !Ce(R.value) && p.length > +R.value, Ie = !Ce($.value) && p.length < +$.value;
|
|
2127
2130
|
if ((se || Ie) && (V(se, R.message, $.message), !r))
|
|
2128
|
-
return
|
|
2131
|
+
return _(k[j].message), k;
|
|
2129
2132
|
}
|
|
2130
|
-
if (y && !Y && Re(
|
|
2133
|
+
if (y && !Y && Re(p)) {
|
|
2131
2134
|
const { value: R, message: $ } = wi(y);
|
|
2132
|
-
if (Nt(R) && !
|
|
2135
|
+
if (Nt(R) && !p.match(R) && (k[j] = O({
|
|
2133
2136
|
type: ti.pattern,
|
|
2134
2137
|
message: $,
|
|
2135
2138
|
ref: s
|
|
2136
2139
|
}, H(ti.pattern, $)), !r))
|
|
2137
|
-
return
|
|
2140
|
+
return _($), k;
|
|
2138
2141
|
}
|
|
2139
2142
|
if (N) {
|
|
2140
2143
|
if (He(N)) {
|
|
2141
|
-
const R = yield N(
|
|
2142
|
-
if ($ && (k[
|
|
2143
|
-
return
|
|
2144
|
+
const R = yield N(p, t), $ = Nn(R, h);
|
|
2145
|
+
if ($ && (k[j] = O(O({}, $), H(ti.validate, $.message)), !r))
|
|
2146
|
+
return _($.message), k;
|
|
2144
2147
|
} else if (Ee(N)) {
|
|
2145
2148
|
let R = {};
|
|
2146
2149
|
for (const $ in N) {
|
|
2147
2150
|
if (!Ue(R) && !r)
|
|
2148
2151
|
break;
|
|
2149
|
-
const se = Nn(yield N[$](
|
|
2150
|
-
se && (R = O(O({}, se), H($, se.message)),
|
|
2152
|
+
const se = Nn(yield N[$](p, t), h, $);
|
|
2153
|
+
se && (R = O(O({}, se), H($, se.message)), _(se.message), r && (k[j] = R));
|
|
2151
2154
|
}
|
|
2152
|
-
if (!Ue(R) && (k[
|
|
2155
|
+
if (!Ue(R) && (k[j] = O({
|
|
2153
2156
|
ref: h
|
|
2154
2157
|
}, R), !r))
|
|
2155
2158
|
return k;
|
|
2156
2159
|
}
|
|
2157
2160
|
}
|
|
2158
|
-
return
|
|
2161
|
+
return _(!0), k;
|
|
2159
2162
|
});
|
|
2160
2163
|
const RM = {
|
|
2161
2164
|
mode: Ze.onSubmit,
|
|
@@ -2188,8 +2191,8 @@ function FM(e = {}) {
|
|
|
2188
2191
|
unMount: /* @__PURE__ */ new Set(),
|
|
2189
2192
|
array: /* @__PURE__ */ new Set(),
|
|
2190
2193
|
watch: /* @__PURE__ */ new Set()
|
|
2191
|
-
}, D,
|
|
2192
|
-
const
|
|
2194
|
+
}, D, I = 0;
|
|
2195
|
+
const f = {
|
|
2193
2196
|
isDirty: !1,
|
|
2194
2197
|
dirtyFields: !1,
|
|
2195
2198
|
validatingFields: !1,
|
|
@@ -2198,21 +2201,21 @@ function FM(e = {}) {
|
|
|
2198
2201
|
isValid: !1,
|
|
2199
2202
|
errors: !1
|
|
2200
2203
|
};
|
|
2201
|
-
let c = O({},
|
|
2204
|
+
let c = O({}, f);
|
|
2202
2205
|
const a = {
|
|
2203
2206
|
array: on(),
|
|
2204
2207
|
state: on()
|
|
2205
2208
|
}, y = i.criteriaMode === Ze.all, N = (g) => (T) => {
|
|
2206
|
-
clearTimeout(
|
|
2207
|
-
},
|
|
2208
|
-
if (!i.disabled && (
|
|
2209
|
+
clearTimeout(I), I = setTimeout(g, T);
|
|
2210
|
+
}, j = (g) => De(null, null, function* () {
|
|
2211
|
+
if (!i.disabled && (f.isValid || c.isValid || g)) {
|
|
2209
2212
|
const T = i.resolver ? Ue((yield F()).errors) : yield Y(r, !0);
|
|
2210
2213
|
T !== t.isValid && a.state.next({
|
|
2211
2214
|
isValid: T
|
|
2212
2215
|
});
|
|
2213
2216
|
}
|
|
2214
2217
|
}), z = (g, T) => {
|
|
2215
|
-
!i.disabled && (
|
|
2218
|
+
!i.disabled && (f.isValidating || f.validatingFields || c.isValidating || c.validatingFields) && ((g || Array.from(M.mount)).forEach((E) => {
|
|
2216
2219
|
E && (T ? Ne(t.validatingFields, E, T) : xe(t.validatingFields, E));
|
|
2217
2220
|
}), a.state.next({
|
|
2218
2221
|
validatingFields: t.validatingFields,
|
|
@@ -2228,11 +2231,11 @@ function FM(e = {}) {
|
|
|
2228
2231
|
const Q = E(C(t.errors, g), v.argA, v.argB);
|
|
2229
2232
|
b && Ne(t.errors, g, Q), YM(t.errors, g);
|
|
2230
2233
|
}
|
|
2231
|
-
if ((
|
|
2234
|
+
if ((f.touchedFields || c.touchedFields) && S && Array.isArray(C(t.touchedFields, g))) {
|
|
2232
2235
|
const Q = E(C(t.touchedFields, g), v.argA, v.argB);
|
|
2233
2236
|
b && Ne(t.touchedFields, g, Q);
|
|
2234
2237
|
}
|
|
2235
|
-
(
|
|
2238
|
+
(f.dirtyFields || c.dirtyFields) && (t.dirtyFields = _i(n, o)), a.state.next({
|
|
2236
2239
|
name: g,
|
|
2237
2240
|
isDirty: V(g, T),
|
|
2238
2241
|
dirtyFields: t.dirtyFields,
|
|
@@ -2241,7 +2244,7 @@ function FM(e = {}) {
|
|
|
2241
2244
|
});
|
|
2242
2245
|
} else
|
|
2243
2246
|
Ne(o, g, T);
|
|
2244
|
-
},
|
|
2247
|
+
}, p = (g, T) => {
|
|
2245
2248
|
Ne(t.errors, g, T), a.state.next({
|
|
2246
2249
|
errors: t.errors
|
|
2247
2250
|
});
|
|
@@ -2250,11 +2253,11 @@ function FM(e = {}) {
|
|
|
2250
2253
|
errors: t.errors,
|
|
2251
2254
|
isValid: !1
|
|
2252
2255
|
});
|
|
2253
|
-
},
|
|
2256
|
+
}, _ = (g, T, E, v) => {
|
|
2254
2257
|
const b = C(r, g);
|
|
2255
2258
|
if (b) {
|
|
2256
2259
|
const S = C(o, g, Te(E) ? C(n, g) : E);
|
|
2257
|
-
Te(S) || v && v.defaultChecked || T ? Ne(o, g, T ? S : un(b._f)) : se(g, S), s.mount &&
|
|
2260
|
+
Te(S) || v && v.defaultChecked || T ? Ne(o, g, T ? S : un(b._f)) : se(g, S), s.mount && j();
|
|
2258
2261
|
}
|
|
2259
2262
|
}, k = (g, T, E, v, b) => {
|
|
2260
2263
|
let S = !1, Q = !1;
|
|
@@ -2263,20 +2266,20 @@ function FM(e = {}) {
|
|
|
2263
2266
|
};
|
|
2264
2267
|
if (!i.disabled) {
|
|
2265
2268
|
if (!E || v) {
|
|
2266
|
-
(
|
|
2269
|
+
(f.isDirty || c.isDirty) && (Q = t.isDirty, t.isDirty = K.isDirty = V(), S = Q !== K.isDirty);
|
|
2267
2270
|
const B = ni(C(n, g), T);
|
|
2268
|
-
Q = !!C(t.dirtyFields, g), B ? xe(t.dirtyFields, g) : Ne(t.dirtyFields, g, !0), K.dirtyFields = t.dirtyFields, S = S || (
|
|
2271
|
+
Q = !!C(t.dirtyFields, g), B ? xe(t.dirtyFields, g) : Ne(t.dirtyFields, g, !0), K.dirtyFields = t.dirtyFields, S = S || (f.dirtyFields || c.dirtyFields) && Q !== !B;
|
|
2269
2272
|
}
|
|
2270
2273
|
if (E) {
|
|
2271
2274
|
const B = C(t.touchedFields, g);
|
|
2272
|
-
B || (Ne(t.touchedFields, g, E), K.touchedFields = t.touchedFields, S = S || (
|
|
2275
|
+
B || (Ne(t.touchedFields, g, E), K.touchedFields = t.touchedFields, S = S || (f.touchedFields || c.touchedFields) && B !== E);
|
|
2273
2276
|
}
|
|
2274
2277
|
S && b && a.state.next(K);
|
|
2275
2278
|
}
|
|
2276
2279
|
return S ? K : {};
|
|
2277
2280
|
}, ie = (g, T, E, v) => {
|
|
2278
|
-
const b = C(t.errors, g), S = (
|
|
2279
|
-
if (i.delayError && E ? (D = N(() =>
|
|
2281
|
+
const b = C(t.errors, g), S = (f.isValid || c.isValid) && Pe(T) && t.isValid !== T;
|
|
2282
|
+
if (i.delayError && E ? (D = N(() => p(g, E)), D(i.delayError)) : (clearTimeout(I), D = null, E ? Ne(t.errors, g, E) : xe(t.errors, g)), (E ? !ni(b, E) : b) || !Ue(v) || S) {
|
|
2280
2283
|
const Q = J(O(O({}, v), S && Pe(T) ? { isValid: T } : {}), {
|
|
2281
2284
|
errors: t.errors,
|
|
2282
2285
|
name: g
|
|
@@ -2306,9 +2309,9 @@ function FM(e = {}) {
|
|
|
2306
2309
|
const Q = B, { _f: ue } = Q, Se = Di(Q, ["_f"]);
|
|
2307
2310
|
if (ue) {
|
|
2308
2311
|
const Z = M.array.has(ue.name), q = B._f && vM(B._f);
|
|
2309
|
-
q &&
|
|
2312
|
+
q && f.validatingFields && z([ue.name], !0);
|
|
2310
2313
|
const P = yield Dn(B, M.disabled, o, y, i.shouldUseNativeValidation && !T, Z);
|
|
2311
|
-
if (q &&
|
|
2314
|
+
if (q && f.validatingFields && z([ue.name]), P[ue.name] && (E.valid = !1, T))
|
|
2312
2315
|
break;
|
|
2313
2316
|
!T && (C(P, ue.name) ? Z ? PM(t.errors, P, ue.name) : Ne(t.errors, ue.name, P[ue.name]) : xe(t.errors, ue.name));
|
|
2314
2317
|
}
|
|
@@ -2347,9 +2350,9 @@ function FM(e = {}) {
|
|
|
2347
2350
|
Ne(o, g, S), b ? (a.array.next({
|
|
2348
2351
|
name: g,
|
|
2349
2352
|
values: me(o)
|
|
2350
|
-
}), (
|
|
2353
|
+
}), (f.isDirty || f.dirtyFields || c.isDirty || c.dirtyFields) && E.shouldDirty && a.state.next({
|
|
2351
2354
|
name: g,
|
|
2352
|
-
dirtyFields:
|
|
2355
|
+
dirtyFields: _i(n, o),
|
|
2353
2356
|
isDirty: V(g, S)
|
|
2354
2357
|
})) : v && !v._f && !Ce(S) ? Ie(g, S, E) : se(g, S, E), gn(g, M) && a.state.next(J(O({}, t), { name: g })), a.state.next({
|
|
2355
2358
|
name: s.mount ? g : void 0,
|
|
@@ -2372,7 +2375,7 @@ function FM(e = {}) {
|
|
|
2372
2375
|
type: g.type,
|
|
2373
2376
|
values: me(o)
|
|
2374
2377
|
}), q)
|
|
2375
|
-
return (
|
|
2378
|
+
return (f.isValid || c.isValid) && (i.mode === "onBlur" ? Z && j() : Z || j()), Le && a.state.next(O({ name: E }, P ? {} : Me));
|
|
2376
2379
|
if (!Z && P && a.state.next(O({}, t)), i.resolver) {
|
|
2377
2380
|
const { errors: we } = yield F([E]);
|
|
2378
2381
|
if (S(Se), v) {
|
|
@@ -2380,7 +2383,7 @@ function FM(e = {}) {
|
|
|
2380
2383
|
B = W.error, E = W.name, ue = Ue(we);
|
|
2381
2384
|
}
|
|
2382
2385
|
} else
|
|
2383
|
-
z([E], !0), B = (yield Dn(b, M.disabled, o, y, i.shouldUseNativeValidation))[E], z([E]), S(Se), v && (B ? ue = !1 : (
|
|
2386
|
+
z([E], !0), B = (yield Dn(b, M.disabled, o, y, i.shouldUseNativeValidation))[E], z([E]), S(Se), v && (B ? ue = !1 : (f.isValid || c.isValid) && (ue = yield Y(r, !0)));
|
|
2384
2387
|
v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps), ie(E, ue, B, Me));
|
|
2385
2388
|
}
|
|
2386
2389
|
}), Qe = (g, T) => {
|
|
@@ -2395,8 +2398,8 @@ function FM(e = {}) {
|
|
|
2395
2398
|
} else g ? (S = (yield Promise.all(Q.map((K) => De(null, null, function* () {
|
|
2396
2399
|
const B = C(r, K);
|
|
2397
2400
|
return yield Y(B && B._f ? { [K]: B } : B);
|
|
2398
|
-
})))).every(Boolean), !(!S && !t.isValid) &&
|
|
2399
|
-
return a.state.next(J(O(O({}, !Re(g) || (
|
|
2401
|
+
})))).every(Boolean), !(!S && !t.isValid) && j()) : S = b = yield Y(r);
|
|
2402
|
+
return a.state.next(J(O(O({}, !Re(g) || (f.isValid || c.isValid) && b !== t.isValid ? {} : { name: g }), i.resolver || !g ? { isValid: b } : {}), {
|
|
2400
2403
|
errors: t.errors
|
|
2401
2404
|
})), T.shouldFocus && !S && Fi(r, Qe, g ? Q : M.mount), S;
|
|
2402
2405
|
}), G = (g, T) => {
|
|
@@ -2425,7 +2428,7 @@ function FM(e = {}) {
|
|
|
2425
2428
|
next: (E) => "values" in E && g(R(void 0, T), E)
|
|
2426
2429
|
}) : R(g, T, !0), U = (g) => a.state.subscribe({
|
|
2427
2430
|
next: (T) => {
|
|
2428
|
-
UM(g.name, T.name, g.exact) && kM(T, g.formState ||
|
|
2431
|
+
UM(g.name, T.name, g.exact) && kM(T, g.formState || f, xi, g.reRenderRoot) && g.callback(J(O(O({
|
|
2429
2432
|
values: O({}, o)
|
|
2430
2433
|
}, t), T), {
|
|
2431
2434
|
defaultValues: n
|
|
@@ -2438,7 +2441,7 @@ function FM(e = {}) {
|
|
|
2438
2441
|
M.mount.delete(E), M.array.delete(E), T.keepValue || (xe(r, E), xe(o, E)), !T.keepError && xe(t.errors, E), !T.keepDirty && xe(t.dirtyFields, E), !T.keepTouched && xe(t.touchedFields, E), !T.keepIsValidating && xe(t.validatingFields, E), !i.shouldUnregister && !T.keepDefaultValue && xe(n, E);
|
|
2439
2442
|
a.state.next({
|
|
2440
2443
|
values: me(o)
|
|
2441
|
-
}), a.state.next(O(O({}, t), T.keepDirty ? { isDirty: V() } : {})), !T.keepIsValid &&
|
|
2444
|
+
}), a.state.next(O(O({}, t), T.keepDirty ? { isDirty: V() } : {})), !T.keepIsValid && j();
|
|
2442
2445
|
}, $e = ({ disabled: g, name: T }) => {
|
|
2443
2446
|
(Pe(g) && s.mount || g || M.disabled.has(T)) && (g ? M.disabled.add(T) : M.disabled.delete(T));
|
|
2444
2447
|
}, ii = (g, T = {}) => {
|
|
@@ -2452,7 +2455,7 @@ function FM(e = {}) {
|
|
|
2452
2455
|
})), M.mount.add(g), E ? $e({
|
|
2453
2456
|
disabled: Pe(T.disabled) ? T.disabled : i.disabled,
|
|
2454
2457
|
name: g
|
|
2455
|
-
}) :
|
|
2458
|
+
}) : _(g, !0, T.value), J(O(O({}, v ? { disabled: T.disabled || i.disabled } : {}), i.progressive ? {
|
|
2456
2459
|
required: !!T.required,
|
|
2457
2460
|
min: ki(T.min),
|
|
2458
2461
|
max: ki(T.max),
|
|
@@ -2466,7 +2469,7 @@ function FM(e = {}) {
|
|
|
2466
2469
|
ref: (b) => {
|
|
2467
2470
|
if (b) {
|
|
2468
2471
|
ii(g, T), E = C(r, g);
|
|
2469
|
-
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, Q =
|
|
2472
|
+
const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, Q = _M(S), K = E._f.refs || [];
|
|
2470
2473
|
if (Q ? K.find((B) => B === S) : S === E._f.ref)
|
|
2471
2474
|
return;
|
|
2472
2475
|
Ne(r, g, {
|
|
@@ -2478,7 +2481,7 @@ function FM(e = {}) {
|
|
|
2478
2481
|
],
|
|
2479
2482
|
ref: { type: S.type, name: g }
|
|
2480
2483
|
} : { ref: S })
|
|
2481
|
-
}),
|
|
2484
|
+
}), _(g, !1, void 0, S);
|
|
2482
2485
|
} else
|
|
2483
2486
|
E = C(r, g, {}), E._f && (E._f.mount = !1), (i.shouldUnregister || T.shouldUnregister) && !(go(M.array, g) && s.action) && M.unMount.add(g);
|
|
2484
2487
|
}
|
|
@@ -2524,14 +2527,14 @@ function FM(e = {}) {
|
|
|
2524
2527
|
}), v)
|
|
2525
2528
|
throw v;
|
|
2526
2529
|
}), Oi = (g, T = {}) => {
|
|
2527
|
-
C(r, g) && (Te(T.defaultValue) ? je(g, me(C(n, g))) : (je(g, T.defaultValue), Ne(n, g, me(T.defaultValue))), T.keepTouched || xe(t.touchedFields, g), T.keepDirty || (xe(t.dirtyFields, g), t.isDirty = T.defaultValue ? V(g, me(C(n, g))) : V()), T.keepError || (xe(t.errors, g),
|
|
2530
|
+
C(r, g) && (Te(T.defaultValue) ? je(g, me(C(n, g))) : (je(g, T.defaultValue), Ne(n, g, me(T.defaultValue))), T.keepTouched || xe(t.touchedFields, g), T.keepDirty || (xe(t.dirtyFields, g), t.isDirty = T.defaultValue ? V(g, me(C(n, g))) : V()), T.keepError || (xe(t.errors, g), f.isValid && j()), a.state.next(O({}, t)));
|
|
2528
2531
|
}, di = (g, T = {}) => {
|
|
2529
2532
|
const E = g ? me(g) : n, v = me(E), b = Ue(g), S = b ? n : v;
|
|
2530
2533
|
if (T.keepDefaultValues || (n = E), !T.keepValues) {
|
|
2531
2534
|
if (T.keepDirtyValues) {
|
|
2532
2535
|
const Q = /* @__PURE__ */ new Set([
|
|
2533
2536
|
...M.mount,
|
|
2534
|
-
...Object.keys(
|
|
2537
|
+
...Object.keys(_i(n, o))
|
|
2535
2538
|
]);
|
|
2536
2539
|
for (const K of Array.from(Q))
|
|
2537
2540
|
C(t.dirtyFields, K) ? Ne(S, K, C(o, K)) : je(K, C(S, K));
|
|
@@ -2570,11 +2573,11 @@ function FM(e = {}) {
|
|
|
2570
2573
|
watch: /* @__PURE__ */ new Set(),
|
|
2571
2574
|
watchAll: !1,
|
|
2572
2575
|
focus: ""
|
|
2573
|
-
}, s.mount = !
|
|
2576
|
+
}, s.mount = !f.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!i.shouldUnregister, a.state.next({
|
|
2574
2577
|
submitCount: T.keepSubmitCount ? t.submitCount : 0,
|
|
2575
2578
|
isDirty: b ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !ni(g, n)),
|
|
2576
2579
|
isSubmitted: T.keepIsSubmitted ? t.isSubmitted : !1,
|
|
2577
|
-
dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ?
|
|
2580
|
+
dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? _i(n, o) : t.dirtyFields : T.keepDefaultValues && g ? _i(n, g) : T.keepDirty ? t.dirtyFields : {},
|
|
2578
2581
|
touchedFields: T.keepTouched ? t.touchedFields : {},
|
|
2579
2582
|
errors: T.keepErrors ? t.errors : {},
|
|
2580
2583
|
isSubmitSuccessful: T.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
@@ -2601,7 +2604,7 @@ function FM(e = {}) {
|
|
|
2601
2604
|
_focusError: Be,
|
|
2602
2605
|
_getWatch: R,
|
|
2603
2606
|
_getDirty: V,
|
|
2604
|
-
_setValid:
|
|
2607
|
+
_setValid: j,
|
|
2605
2608
|
_setFieldArray: w,
|
|
2606
2609
|
_setDisabledField: $e,
|
|
2607
2610
|
_setErrors: h,
|
|
@@ -2615,7 +2618,7 @@ function FM(e = {}) {
|
|
|
2615
2618
|
_removeUnmounted: H,
|
|
2616
2619
|
_disableForm: gi,
|
|
2617
2620
|
_subjects: a,
|
|
2618
|
-
_proxyFormState:
|
|
2621
|
+
_proxyFormState: f,
|
|
2619
2622
|
get _fields() {
|
|
2620
2623
|
return r;
|
|
2621
2624
|
},
|
|
@@ -2751,7 +2754,7 @@ const vi = (e, i) => {
|
|
|
2751
2754
|
transition: ".2s",
|
|
2752
2755
|
flexShrink: 0
|
|
2753
2756
|
},
|
|
2754
|
-
children: i ? /* @__PURE__ */ d(
|
|
2757
|
+
children: i ? /* @__PURE__ */ d(pe, O({}, i)) : /* @__PURE__ */ d(pe, { imageId: "chevronDown" })
|
|
2755
2758
|
}
|
|
2756
2759
|
), WM = ({
|
|
2757
2760
|
isChosen: e,
|
|
@@ -2767,12 +2770,12 @@ const vi = (e, i) => {
|
|
|
2767
2770
|
{
|
|
2768
2771
|
style: {
|
|
2769
2772
|
padding: "5px 8px",
|
|
2770
|
-
background: ((D,
|
|
2771
|
-
var
|
|
2772
|
-
if (!D && !
|
|
2773
|
-
if (!D &&
|
|
2774
|
-
if (D && !
|
|
2775
|
-
if (D &&
|
|
2773
|
+
background: ((D, I) => {
|
|
2774
|
+
var f, c, a, y, N, j, z, w;
|
|
2775
|
+
if (!D && !I) return (c = ee((f = i.layout) == null ? void 0 : f.backgroundColor)) != null ? c : "transparent";
|
|
2776
|
+
if (!D && I) return (y = ee((a = i.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? y : "transparent";
|
|
2777
|
+
if (D && !I) return (j = ee((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? j : "#F4F4F4";
|
|
2778
|
+
if (D && I) return (w = ee((z = i.layoutSelected) == null ? void 0 : z.highlightColor)) != null ? w : "#F4F4F4";
|
|
2776
2779
|
})(r, e),
|
|
2777
2780
|
fontSize: 13,
|
|
2778
2781
|
display: "flex",
|
|
@@ -2795,7 +2798,7 @@ const vi = (e, i) => {
|
|
|
2795
2798
|
display: "flex",
|
|
2796
2799
|
flexShrink: 0
|
|
2797
2800
|
},
|
|
2798
|
-
children: /* @__PURE__ */ d(
|
|
2801
|
+
children: /* @__PURE__ */ d(pe, O({}, s))
|
|
2799
2802
|
}
|
|
2800
2803
|
)
|
|
2801
2804
|
]
|
|
@@ -2812,16 +2815,16 @@ const vi = (e, i) => {
|
|
|
2812
2815
|
placeholder: s,
|
|
2813
2816
|
closeMenuOnSelect: M = !0,
|
|
2814
2817
|
onBlur: D,
|
|
2815
|
-
parentElementRef:
|
|
2816
|
-
controlLayout:
|
|
2818
|
+
parentElementRef: I,
|
|
2819
|
+
controlLayout: f,
|
|
2817
2820
|
pickerLayout: c
|
|
2818
2821
|
}) => {
|
|
2819
2822
|
var R, $, se, Ie, je, Ae, Qe, le;
|
|
2820
|
-
const [a, y] =
|
|
2823
|
+
const [a, y] = _e(!1), [N, j] = _e(n), [z, w] = _e("down"), [p, h] = _e(null), _ = Je(null), k = Je(null);
|
|
2821
2824
|
li(() => {
|
|
2822
2825
|
var ve, U, ne;
|
|
2823
2826
|
if (!a) return;
|
|
2824
|
-
const G = (ve =
|
|
2827
|
+
const G = (ve = _.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (U = k.current) == null ? void 0 : U.getBoundingClientRect(), ze = (ne = I.current) == null ? void 0 : ne.getBoundingClientRect();
|
|
2825
2828
|
if (!G || !ge || !ze) return;
|
|
2826
2829
|
const he = G.bottom + ge.height < ze.bottom;
|
|
2827
2830
|
w(he ? "down" : "up");
|
|
@@ -2830,24 +2833,24 @@ const vi = (e, i) => {
|
|
|
2830
2833
|
}, [N]);
|
|
2831
2834
|
const ie = (G) => (ge) => {
|
|
2832
2835
|
var ze;
|
|
2833
|
-
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && h(null), M && y(!1),
|
|
2836
|
+
ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && h(null), M && y(!1), j((he) => t ? he.some((U) => U.value === G.value) ? he.filter((U) => U.value !== G.value) : [...he, G] : [G]);
|
|
2834
2837
|
}, F = () => {
|
|
2835
2838
|
D && D(), y(!1);
|
|
2836
2839
|
}, ae = (G) => (ge) => {
|
|
2837
|
-
ge.stopPropagation(),
|
|
2840
|
+
ge.stopPropagation(), j((ze) => ze.filter((he) => he.value !== G.value));
|
|
2838
2841
|
}, Y = (G) => {
|
|
2839
|
-
G.stopPropagation(),
|
|
2840
|
-
}, H = (R = ee(
|
|
2841
|
-
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref:
|
|
2842
|
+
G.stopPropagation(), j([]);
|
|
2843
|
+
}, H = (R = ee(f == null ? void 0 : f.borderColor)) != null ? R : "#D9D9D9", V = ($ = ee(f == null ? void 0 : f.highlightBorderColor)) != null ? $ : "#7E57C5";
|
|
2844
|
+
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: _, children: /* @__PURE__ */ d(
|
|
2842
2845
|
"div",
|
|
2843
2846
|
{
|
|
2844
2847
|
"data-ui": "gui-select-name-" + e,
|
|
2845
2848
|
style: {
|
|
2846
|
-
backgroundColor: ee(
|
|
2849
|
+
backgroundColor: ee(f == null ? void 0 : f.backgroundColor),
|
|
2847
2850
|
borderStyle: "solid",
|
|
2848
2851
|
borderColor: a ? V : H,
|
|
2849
|
-
borderWidth: (se =
|
|
2850
|
-
borderRadius: (Ie =
|
|
2852
|
+
borderWidth: (se = f == null ? void 0 : f.borderWidth) != null ? se : 1,
|
|
2853
|
+
borderRadius: (Ie = f == null ? void 0 : f.cornerRadius) != null ? Ie : 8,
|
|
2851
2854
|
minHeight: "41px",
|
|
2852
2855
|
position: "relative",
|
|
2853
2856
|
zIndex: "auto",
|
|
@@ -2887,7 +2890,7 @@ const vi = (e, i) => {
|
|
|
2887
2890
|
N.map((G) => {
|
|
2888
2891
|
var ge, ze, he, ve, U;
|
|
2889
2892
|
if (t) {
|
|
2890
|
-
const ne =
|
|
2893
|
+
const ne = f == null ? void 0 : f.chip;
|
|
2891
2894
|
return /* @__PURE__ */ d(
|
|
2892
2895
|
"div",
|
|
2893
2896
|
{
|
|
@@ -2919,7 +2922,7 @@ const vi = (e, i) => {
|
|
|
2919
2922
|
height: "16px"
|
|
2920
2923
|
},
|
|
2921
2924
|
onClick: ae(G),
|
|
2922
|
-
children: ne != null && ne.removeImage ? /* @__PURE__ */ d(
|
|
2925
|
+
children: ne != null && ne.removeImage ? /* @__PURE__ */ d(pe, O({}, ne.removeImage)) : /* @__PURE__ */ d(pe, { imageId: "cross" })
|
|
2923
2926
|
}
|
|
2924
2927
|
)
|
|
2925
2928
|
]
|
|
@@ -2927,7 +2930,7 @@ const vi = (e, i) => {
|
|
|
2927
2930
|
G.value
|
|
2928
2931
|
);
|
|
2929
2932
|
} else {
|
|
2930
|
-
const ne =
|
|
2933
|
+
const ne = f == null ? void 0 : f.title;
|
|
2931
2934
|
return /* @__PURE__ */ d(
|
|
2932
2935
|
"div",
|
|
2933
2936
|
{
|
|
@@ -2956,7 +2959,7 @@ const vi = (e, i) => {
|
|
|
2956
2959
|
zIndex: 1
|
|
2957
2960
|
},
|
|
2958
2961
|
onClick: Y,
|
|
2959
|
-
children:
|
|
2962
|
+
children: f != null && f.clearButton ? /* @__PURE__ */ d(pe, O({}, f.clearButton)) : /* @__PURE__ */ d(pe, { imageId: "cross" })
|
|
2960
2963
|
}
|
|
2961
2964
|
) : null,
|
|
2962
2965
|
r ? /* @__PURE__ */ d(
|
|
@@ -2969,7 +2972,7 @@ const vi = (e, i) => {
|
|
|
2969
2972
|
}
|
|
2970
2973
|
}
|
|
2971
2974
|
) : null,
|
|
2972
|
-
/* @__PURE__ */ d(BM, { isOpen: a, image:
|
|
2975
|
+
/* @__PURE__ */ d(BM, { isOpen: a, image: f == null ? void 0 : f.expandButton }),
|
|
2973
2976
|
a && /* @__PURE__ */ d(
|
|
2974
2977
|
"div",
|
|
2975
2978
|
{
|
|
@@ -3005,7 +3008,7 @@ const vi = (e, i) => {
|
|
|
3005
3008
|
isChosen: ge,
|
|
3006
3009
|
option: G,
|
|
3007
3010
|
onOptionClickCallback: ie,
|
|
3008
|
-
isHovered:
|
|
3011
|
+
isHovered: p === G.value,
|
|
3009
3012
|
onHover: () => h(G.value),
|
|
3010
3013
|
onHoverEnd: () => h(null)
|
|
3011
3014
|
},
|
|
@@ -3060,8 +3063,8 @@ const vi = (e, i) => {
|
|
|
3060
3063
|
name: s.name,
|
|
3061
3064
|
value: M ? [M] : [],
|
|
3062
3065
|
onChange: (D) => {
|
|
3063
|
-
const
|
|
3064
|
-
s.onChange(
|
|
3066
|
+
const I = D && Array.isArray(D) && D.length ? D[0].value : null;
|
|
3067
|
+
s.onChange(I);
|
|
3065
3068
|
},
|
|
3066
3069
|
parentElementRef: r,
|
|
3067
3070
|
isMulti: !1,
|
|
@@ -3110,8 +3113,8 @@ const vi = (e, i) => {
|
|
|
3110
3113
|
},
|
|
3111
3114
|
render: ({ field: s }) => {
|
|
3112
3115
|
const M = n.filter((D) => {
|
|
3113
|
-
var
|
|
3114
|
-
return (
|
|
3116
|
+
var I;
|
|
3117
|
+
return (I = s.value) == null ? void 0 : I.includes(D.value);
|
|
3115
3118
|
});
|
|
3116
3119
|
return /* @__PURE__ */ d(
|
|
3117
3120
|
xo,
|
|
@@ -3122,8 +3125,8 @@ const vi = (e, i) => {
|
|
|
3122
3125
|
closeMenuOnSelect: !1,
|
|
3123
3126
|
value: M,
|
|
3124
3127
|
onChange: (D) => {
|
|
3125
|
-
const
|
|
3126
|
-
s.onChange(
|
|
3128
|
+
const I = D.map((f) => f.value);
|
|
3129
|
+
s.onChange(I);
|
|
3127
3130
|
},
|
|
3128
3131
|
parentElementRef: r,
|
|
3129
3132
|
isMulti: !0,
|
|
@@ -3139,7 +3142,7 @@ const vi = (e, i) => {
|
|
|
3139
3142
|
}
|
|
3140
3143
|
);
|
|
3141
3144
|
}, Eo = () => {
|
|
3142
|
-
const [e, i] =
|
|
3145
|
+
const [e, i] = _e(!1);
|
|
3143
3146
|
return Fe(() => {
|
|
3144
3147
|
const t = () => i(!0), r = () => i(!1);
|
|
3145
3148
|
return window.addEventListener("keydown", t), window.addEventListener("mousedown", r), () => {
|
|
@@ -3153,13 +3156,13 @@ const vi = (e, i) => {
|
|
|
3153
3156
|
register: r,
|
|
3154
3157
|
watch: n
|
|
3155
3158
|
}) => {
|
|
3156
|
-
const [o, s] =
|
|
3159
|
+
const [o, s] = _e(!1), M = Eo(), D = String(t.id), f = n(D) === String(e.id), c = i.option, a = i.optionSelected, y = {
|
|
3157
3160
|
backgroundColor: ee(a == null ? void 0 : a.backgroundColor),
|
|
3158
3161
|
borderRadius: a.cornerRadius
|
|
3159
3162
|
}, N = {
|
|
3160
3163
|
backgroundColor: ee(c == null ? void 0 : c.backgroundColor),
|
|
3161
3164
|
borderRadius: c.cornerRadius
|
|
3162
|
-
},
|
|
3165
|
+
}, j = o && M ? { filter: `drop-shadow(0 0 1px ${Ji})` } : {};
|
|
3163
3166
|
return /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
3164
3167
|
"label",
|
|
3165
3168
|
{
|
|
@@ -3169,7 +3172,7 @@ const vi = (e, i) => {
|
|
|
3169
3172
|
alignContent: "center",
|
|
3170
3173
|
gap: 8,
|
|
3171
3174
|
cursor: "pointer"
|
|
3172
|
-
},
|
|
3175
|
+
}, f ? y : N),
|
|
3173
3176
|
children: [
|
|
3174
3177
|
/* @__PURE__ */ d(
|
|
3175
3178
|
"div",
|
|
@@ -3179,11 +3182,11 @@ const vi = (e, i) => {
|
|
|
3179
3182
|
alignItems: "center",
|
|
3180
3183
|
alignContent: "center",
|
|
3181
3184
|
flexShrink: 0
|
|
3182
|
-
},
|
|
3183
|
-
children: /* @__PURE__ */ d(
|
|
3185
|
+
}, j),
|
|
3186
|
+
children: /* @__PURE__ */ d(pe, O({}, f ? a.image : c.image))
|
|
3184
3187
|
}
|
|
3185
3188
|
),
|
|
3186
|
-
/* @__PURE__ */ d(fe, J(O({},
|
|
3189
|
+
/* @__PURE__ */ d(fe, J(O({}, f ? a.title : c.title), { text: e.text })),
|
|
3187
3190
|
/* @__PURE__ */ d(
|
|
3188
3191
|
"input",
|
|
3189
3192
|
J(O({
|
|
@@ -3258,7 +3261,7 @@ const vi = (e, i) => {
|
|
|
3258
3261
|
register: r,
|
|
3259
3262
|
watch: n
|
|
3260
3263
|
}) => {
|
|
3261
|
-
const [o, s] =
|
|
3264
|
+
const [o, s] = _e(!1), M = Eo(), D = String(t.id), f = n(D) === String(e.id), c = i.option, a = i.optionSelected, y = {
|
|
3262
3265
|
borderRadius: c == null ? void 0 : c.cornerRadius,
|
|
3263
3266
|
background: ee(c == null ? void 0 : c.backgroundColor),
|
|
3264
3267
|
borderColor: ee(c == null ? void 0 : c.borderColor),
|
|
@@ -3268,7 +3271,7 @@ const vi = (e, i) => {
|
|
|
3268
3271
|
background: ee(a == null ? void 0 : a.backgroundColor),
|
|
3269
3272
|
borderColor: ee(a == null ? void 0 : a.borderColor),
|
|
3270
3273
|
borderWidth: a == null ? void 0 : a.borderWidth
|
|
3271
|
-
},
|
|
3274
|
+
}, j = o && M ? { outline: `2px solid ${Ji}` } : {};
|
|
3272
3275
|
return /* @__PURE__ */ d(
|
|
3273
3276
|
"div",
|
|
3274
3277
|
{
|
|
@@ -3285,7 +3288,7 @@ const vi = (e, i) => {
|
|
|
3285
3288
|
cursor: "pointer",
|
|
3286
3289
|
borderStyle: "solid",
|
|
3287
3290
|
position: "relative"
|
|
3288
|
-
},
|
|
3291
|
+
}, f ? N : y), j),
|
|
3289
3292
|
children: [
|
|
3290
3293
|
/* @__PURE__ */ d(
|
|
3291
3294
|
"input",
|
|
@@ -3310,7 +3313,7 @@ const vi = (e, i) => {
|
|
|
3310
3313
|
onBlur: () => s(!1)
|
|
3311
3314
|
})
|
|
3312
3315
|
),
|
|
3313
|
-
/* @__PURE__ */ d(fe, J(O({},
|
|
3316
|
+
/* @__PURE__ */ d(fe, J(O({}, f ? a.title : c.title), { text: e.text }))
|
|
3314
3317
|
]
|
|
3315
3318
|
}
|
|
3316
3319
|
)
|
|
@@ -3399,7 +3402,7 @@ const vi = (e, i) => {
|
|
|
3399
3402
|
dataSourceQuestion: i,
|
|
3400
3403
|
register: t
|
|
3401
3404
|
}) => {
|
|
3402
|
-
var o, s, M, D,
|
|
3405
|
+
var o, s, M, D, I, f, c, a, y, N, j, z, w, p, h, _;
|
|
3403
3406
|
const r = String(i.id), n = (k) => k ? k === rt.EMAIL ? "email" : k === rt.FREE_TEXT ? "text" : k === rt.NUMBER ? "number" : k === rt.SECURE ? "password" : "text" : "text";
|
|
3404
3407
|
return /* @__PURE__ */ d(
|
|
3405
3408
|
"div",
|
|
@@ -3421,19 +3424,19 @@ const vi = (e, i) => {
|
|
|
3421
3424
|
type: n((o = e.textField) == null ? void 0 : o.inputType),
|
|
3422
3425
|
style: {
|
|
3423
3426
|
fontFamily: (M = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontName) != null ? M : "sans-serif",
|
|
3424
|
-
fontSize: (
|
|
3425
|
-
color: (c = ee((
|
|
3427
|
+
fontSize: (I = (D = e == null ? void 0 : e.textField) == null ? void 0 : D.fontSize) != null ? I : 15,
|
|
3428
|
+
color: (c = ee((f = e == null ? void 0 : e.textField) == null ? void 0 : f.fontColor)) != null ? c : "#000000",
|
|
3426
3429
|
height: "42px",
|
|
3427
3430
|
borderWidth: (y = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.borderWidth) != null ? y : 1,
|
|
3428
|
-
borderColor: (
|
|
3431
|
+
borderColor: (j = ee((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? j : "#d9d9d9",
|
|
3429
3432
|
borderStyle: "solid",
|
|
3430
3433
|
borderRadius: (w = (z = e == null ? void 0 : e.textField) == null ? void 0 : z.cornerRadius) != null ? w : 8,
|
|
3431
3434
|
padding: "11px",
|
|
3432
3435
|
boxSizing: "border-box",
|
|
3433
|
-
backgroundColor: (h = ee((
|
|
3436
|
+
backgroundColor: (h = ee((p = e == null ? void 0 : e.textField) == null ? void 0 : p.backgroundColor)) != null ? h : "#FFFFFF",
|
|
3434
3437
|
outlineColor: Ji
|
|
3435
3438
|
},
|
|
3436
|
-
placeholder: (
|
|
3439
|
+
placeholder: (_ = i.placeholder) != null ? _ : "",
|
|
3437
3440
|
"data-id": r
|
|
3438
3441
|
})
|
|
3439
3442
|
)
|
|
@@ -3445,7 +3448,7 @@ const vi = (e, i) => {
|
|
|
3445
3448
|
dataSourceQuestion: i,
|
|
3446
3449
|
register: t
|
|
3447
3450
|
}) => {
|
|
3448
|
-
var n, o, s, M, D,
|
|
3451
|
+
var n, o, s, M, D, I, f, c, a, y, N, j, z;
|
|
3449
3452
|
const r = String(i.id);
|
|
3450
3453
|
return /* @__PURE__ */ d(
|
|
3451
3454
|
"div",
|
|
@@ -3477,13 +3480,13 @@ const vi = (e, i) => {
|
|
|
3477
3480
|
overflow: "hidden",
|
|
3478
3481
|
height: "42px",
|
|
3479
3482
|
minHeight: "42px",
|
|
3480
|
-
borderWidth: (
|
|
3483
|
+
borderWidth: (f = (I = e == null ? void 0 : e.textField) == null ? void 0 : I.borderWidth) != null ? f : 1,
|
|
3481
3484
|
borderColor: (a = ee((c = e == null ? void 0 : e.textField) == null ? void 0 : c.borderColor)) != null ? a : "#d9d9d9",
|
|
3482
3485
|
borderStyle: "solid",
|
|
3483
3486
|
borderRadius: (N = (y = e == null ? void 0 : e.textField) == null ? void 0 : y.cornerRadius) != null ? N : 8,
|
|
3484
3487
|
padding: "11px",
|
|
3485
3488
|
boxSizing: "border-box",
|
|
3486
|
-
backgroundColor: (z = ee((
|
|
3489
|
+
backgroundColor: (z = ee((j = e == null ? void 0 : e.textField) == null ? void 0 : j.backgroundColor)) != null ? z : "#FFFFFF",
|
|
3487
3490
|
outlineColor: Ji
|
|
3488
3491
|
}
|
|
3489
3492
|
})
|
|
@@ -3515,22 +3518,22 @@ const vi = (e, i) => {
|
|
|
3515
3518
|
ri.MODULE = at, ri.ERROR_ENUM_NAME = "GuiModuleError", ri.SHORT_CODE = "GM";
|
|
3516
3519
|
let Wi = ri;
|
|
3517
3520
|
const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: M }) => {
|
|
3518
|
-
const D = Yn(t), { perform:
|
|
3521
|
+
const D = Yn(t), { perform: I } = zi(), f = s ? Bs(o.questions, s) : {}, c = Je(null), {
|
|
3519
3522
|
register: a,
|
|
3520
3523
|
handleSubmit: y,
|
|
3521
3524
|
formState: { errors: N },
|
|
3522
|
-
reset:
|
|
3525
|
+
reset: j,
|
|
3523
3526
|
watch: z,
|
|
3524
3527
|
control: w
|
|
3525
3528
|
} = VM({
|
|
3526
3529
|
criteriaMode: "all",
|
|
3527
|
-
defaultValues:
|
|
3530
|
+
defaultValues: f
|
|
3528
3531
|
});
|
|
3529
3532
|
return /* @__PURE__ */ d(ci, { header: e, footer: r, backgroundColor: M, children: /* @__PURE__ */ d(
|
|
3530
3533
|
"form",
|
|
3531
3534
|
{
|
|
3532
3535
|
onSubmit: y((h) => {
|
|
3533
|
-
|
|
3536
|
+
I(Fs(h), D), j();
|
|
3534
3537
|
}),
|
|
3535
3538
|
style: {
|
|
3536
3539
|
height: "100%",
|
|
@@ -3570,17 +3573,17 @@ const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3570
3573
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3571
3574
|
children: o.questions.map((h) => {
|
|
3572
3575
|
var H;
|
|
3573
|
-
const
|
|
3576
|
+
const _ = o.static, k = (V, R) => R.find(($) => {
|
|
3574
3577
|
var se;
|
|
3575
3578
|
if ((se = $.questionIds) != null && se.length)
|
|
3576
3579
|
return $.questionIds.find((Ie) => V === Ie);
|
|
3577
|
-
}), ie = (V, R) => R.find(($) => !$.questionIds && $.answerType === V), F =
|
|
3580
|
+
}), ie = (V, R) => R.find(($) => !$.questionIds && $.answerType === V), F = _ ? k(String(h.id), n.itemTypes) || ie(h.answerType, n.itemTypes) : n.itemTypes.find((V) => V.answerType === h.answerType);
|
|
3578
3581
|
if (!F) {
|
|
3579
3582
|
const V = new Wi({
|
|
3580
3583
|
errorCode: ut.DECODING_FAILED,
|
|
3581
3584
|
message: "The question template has not been found"
|
|
3582
3585
|
});
|
|
3583
|
-
|
|
3586
|
+
I(V);
|
|
3584
3587
|
return;
|
|
3585
3588
|
}
|
|
3586
3589
|
const ae = F == null ? void 0 : F.displayType, Y = h.id in N && ((H = N[h.id]) == null ? void 0 : H.types);
|
|
@@ -3682,7 +3685,7 @@ const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3682
3685
|
alignItems: "flex-end",
|
|
3683
3686
|
padding: "2px"
|
|
3684
3687
|
},
|
|
3685
|
-
children: t.map((h,
|
|
3688
|
+
children: t.map((h, _) => /* @__PURE__ */ d(lt, O({ dataTestId: "question-button" }, h), _))
|
|
3686
3689
|
}
|
|
3687
3690
|
)
|
|
3688
3691
|
]
|
|
@@ -3719,7 +3722,7 @@ const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3719
3722
|
backgroundColor: r,
|
|
3720
3723
|
selectionLimit: n
|
|
3721
3724
|
}) => {
|
|
3722
|
-
var
|
|
3725
|
+
var f, c;
|
|
3723
3726
|
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
|
|
3724
3727
|
var N;
|
|
3725
3728
|
const y = Array.from((N = a.currentTarget.files) != null ? N : []);
|
|
@@ -3745,10 +3748,10 @@ const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3745
3748
|
permissionDenied: !1,
|
|
3746
3749
|
files: z
|
|
3747
3750
|
});
|
|
3748
|
-
} catch (
|
|
3749
|
-
console.error("Error: ",
|
|
3751
|
+
} catch (j) {
|
|
3752
|
+
console.error("Error: ", j);
|
|
3750
3753
|
}
|
|
3751
|
-
}),
|
|
3754
|
+
}), I = () => {
|
|
3752
3755
|
var a;
|
|
3753
3756
|
(a = s.current) == null || a.showPicker();
|
|
3754
3757
|
};
|
|
@@ -3770,7 +3773,7 @@ const ta = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
|
|
|
3770
3773
|
onInput: D
|
|
3771
3774
|
})
|
|
3772
3775
|
),
|
|
3773
|
-
/* @__PURE__ */ d("button", { style: na, onClick:
|
|
3776
|
+
/* @__PURE__ */ d("button", { style: na, onClick: I, children: /* @__PURE__ */ d(pe, { imageId: (c = (f = t == null ? void 0 : t[0]) == null ? void 0 : f.image) == null ? void 0 : c.imageId }) })
|
|
3774
3777
|
]
|
|
3775
3778
|
}
|
|
3776
3779
|
) }) });
|
|
@@ -3805,7 +3808,7 @@ var Qi = { exports: {} }, ua = Qi.exports, In;
|
|
|
3805
3808
|
function la() {
|
|
3806
3809
|
return In || (In = 1, (function(e, i) {
|
|
3807
3810
|
(function(t, r) {
|
|
3808
|
-
var n = "1.0.41", o = "", s = "?", M = "function", D = "undefined",
|
|
3811
|
+
var n = "1.0.41", o = "", s = "?", M = "function", D = "undefined", I = "object", f = "string", c = "major", a = "model", y = "name", N = "type", j = "vendor", z = "version", w = "architecture", p = "console", h = "mobile", _ = "tablet", k = "smarttv", ie = "wearable", F = "embedded", ae = 500, Y = "Amazon", H = "Apple", V = "ASUS", R = "BlackBerry", $ = "Browser", se = "Chrome", Ie = "Edge", je = "Firefox", Ae = "Google", Qe = "Honor", le = "Huawei", G = "Lenovo", ge = "LG", ze = "Microsoft", he = "Motorola", ve = "Nvidia", U = "OnePlus", ne = "Opera", Ve = "OPPO", $e = "Samsung", ii = "Sharp", Be = "Sony", gi = "Xiaomi", Mi = "Zebra", Oi = "Facebook", di = "Chromium OS", ai = "Mac OS", Ni = " Browser", xi = function(Z, q) {
|
|
3809
3812
|
var P = {};
|
|
3810
3813
|
for (var Me in Z)
|
|
3811
3814
|
q[Me] && q[Me].length % 2 === 0 ? P[Me] = q[Me].concat(Z[Me]) : P[Me] = Z[Me];
|
|
@@ -3815,13 +3818,13 @@ function la() {
|
|
|
3815
3818
|
q[Z[P].toUpperCase()] = Z[P];
|
|
3816
3819
|
return q;
|
|
3817
3820
|
}, Xe = function(Z, q) {
|
|
3818
|
-
return typeof Z ===
|
|
3821
|
+
return typeof Z === f ? g(q).indexOf(g(Z)) !== -1 : !1;
|
|
3819
3822
|
}, g = function(Z) {
|
|
3820
3823
|
return Z.toLowerCase();
|
|
3821
3824
|
}, T = function(Z) {
|
|
3822
|
-
return typeof Z ===
|
|
3825
|
+
return typeof Z === f ? Z.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
3823
3826
|
}, E = function(Z, q) {
|
|
3824
|
-
if (typeof Z ===
|
|
3827
|
+
if (typeof Z === f)
|
|
3825
3828
|
return Z = Z.replace(/^\s\s*/, o), typeof q === D ? Z : Z.substring(0, ae);
|
|
3826
3829
|
}, v = function(Z, q) {
|
|
3827
3830
|
for (var P = 0, Me, Le, we, oe, W, Ye; P < q.length && !W; ) {
|
|
@@ -3829,20 +3832,20 @@ function la() {
|
|
|
3829
3832
|
for (Me = Le = 0; Me < Ei.length && !W && Ei[Me]; )
|
|
3830
3833
|
if (W = Ei[Me++].exec(Z), W)
|
|
3831
3834
|
for (we = 0; we < Li.length; we++)
|
|
3832
|
-
Ye = W[++Le], oe = Li[we], typeof oe ===
|
|
3835
|
+
Ye = W[++Le], oe = Li[we], typeof oe === I && oe.length > 0 ? oe.length === 2 ? typeof oe[1] == M ? this[oe[0]] = oe[1].call(this, Ye) : this[oe[0]] = oe[1] : oe.length === 3 ? typeof oe[1] === M && !(oe[1].exec && oe[1].test) ? this[oe[0]] = Ye ? oe[1].call(this, Ye, oe[2]) : r : this[oe[0]] = Ye ? Ye.replace(oe[1], oe[2]) : r : oe.length === 4 && (this[oe[0]] = Ye ? oe[3].call(this, Ye.replace(oe[1], oe[2])) : r) : this[oe] = Ye || r;
|
|
3833
3836
|
P += 2;
|
|
3834
3837
|
}
|
|
3835
3838
|
}, b = function(Z, q) {
|
|
3836
3839
|
for (var P in q)
|
|
3837
|
-
if (typeof q[P] ===
|
|
3840
|
+
if (typeof q[P] === I && q[P].length > 0) {
|
|
3838
3841
|
for (var Me = 0; Me < q[P].length; Me++)
|
|
3839
3842
|
if (Xe(q[P][Me], Z))
|
|
3840
3843
|
return P === s ? r : P;
|
|
3841
3844
|
} else if (Xe(q[P], Z))
|
|
3842
3845
|
return P === s ? r : P;
|
|
3843
3846
|
return q.hasOwnProperty("*") ? q["*"] : Z;
|
|
3844
|
-
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Q = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, z], [/opios[\/ ]+([\w\.]+)/i], [z, [y, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [y, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [y, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [y, "UC" + $]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [y, "Smart Lenovo " + $]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + $], z], [/\bfocus\/([\w\.]+)/i], [z, [y, je + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [y, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [y, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [z, [y, je]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], z], [/samsungbrowser\/([\w\.]+)/i], [z, [y, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [y, se + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, se + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [y, "Android " + $]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [z, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [y, je + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, g]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, g]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [I, $e], [N, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [I, $e], [N, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [I, H], [N, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [I, H], [N, p]], [/(macintosh);/i], [a, [I, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [I, ii], [N, h]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [I, Qe], [N, p]], [/honor([-\w ]+)[;\)]/i], [a, [I, Qe], [N, h]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [I, le], [N, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [I, le], [N, h]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [I, gi], [N, p]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [I, gi], [N, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [I, Ve], [N, h]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [I, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [I, "Vivo"], [N, h]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [I, "Realme"], [N, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [I, he], [N, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [I, he], [N, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [I, ge], [N, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [I, ge], [N, h]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [I, G], [N, p]], [/(nokia) (t[12][01])/i], [I, a, [N, p]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, h], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [I, Ae], [N, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [I, Ae], [N, h]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [I, Be], [N, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [I, Be], [N, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [I, U], [N, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [I, Y], [N, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [I, Y], [N, h]], [/(playbook);[-\w\),; ]+(rim)/i], [a, I, [N, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [I, R], [N, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [I, V], [N, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [I, V], [N, h]], [/(nexus 9)/i], [a, [I, "HTC"], [N, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [a, /_/g, " "], [N, h]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [I, "TCL"], [N, p]], [/(itel) ((\w+))/i], [[I, g], a, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [I, "Acer"], [N, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [I, "Meizu"], [N, h]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [I, "Ulefone"], [N, h]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [I, "Energizer"], [N, h]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [I, "Cat"], [N, h]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [I, "Smartfren"], [N, h]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [I, "Nothing"], [N, h]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [I, "Archos"], [N, p]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [I, "Archos"], [N, h]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, a, [N, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [I, a, [N, h]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [I, a, [N, p]], [/(surface duo)/i], [a, [I, ze], [N, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [I, "Fairphone"], [N, h]], [/(u304aa)/i], [a, [I, "AT&T"], [N, h]], [/\bsie-(\w*)/i], [a, [I, "Siemens"], [N, h]], [/\b(rct\w+) b/i], [a, [I, "RCA"], [N, p]], [/\b(venue[\d ]{2,7}) b/i], [a, [I, "Dell"], [N, p]], [/\b(q(?:mv|ta)\w+) b/i], [a, [I, "Verizon"], [N, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [I, "Barnes & Noble"], [N, p]], [/\b(tm\d{3}\w+) b/i], [a, [I, "NuVision"], [N, p]], [/\b(k88) b/i], [a, [I, "ZTE"], [N, p]], [/\b(nx\d{3}j) b/i], [a, [I, "ZTE"], [N, h]], [/\b(gen\d{3}) b.+49h/i], [a, [I, "Swiss"], [N, h]], [/\b(zur\d{3}) b/i], [a, [I, "Swiss"], [N, p]], [/\b((zeki)?tb.*\b) b/i], [a, [I, "Zeki"], [N, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], a, [N, p]], [/\b(ns-?\w{0,9}) b/i], [a, [I, "Insignia"], [N, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [I, "NextBook"], [N, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], a, [N, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], a, [N, h]], [/\b(ph-1) /i], [a, [I, "Essential"], [N, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [I, "Envizen"], [N, p]], [/\b(trio[-\w\. ]+) b/i], [a, [I, "MachSpeed"], [N, p]], [/\btu_(1491) b/i], [a, [I, "Rotor"], [N, p]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [I, ve], [N, p]], [/(sprint) (\w+)/i], [I, a, [N, h]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [I, ze], [N, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [I, Mi], [N, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [I, Mi], [N, h]], [/smart-tv.+(samsung)/i], [I, [N, k]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [I, $e], [N, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, k]], [/(apple) ?tv/i], [I, [a, H + " TV"], [N, k]], [/crkey/i], [[a, se + "cast"], [I, Ae], [N, k]], [/droid.+aft(\w+)( bui|\))/i], [a, [I, Y], [N, k]], [/(shield \w+ tv)/i], [a, [I, ve], [N, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [I, ii], [N, k]], [/(bravia[\w ]+)( bui|\))/i], [a, [I, Be], [N, k]], [/(mi(tv|box)-?\w+) bui/i], [a, [I, gi], [N, k]], [/Hbbtv.*(technisat) (.*);/i], [I, a, [N, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, E], [a, E], [N, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, a, [N, _]], [/droid.+; (shield)( bui|\))/i], [a, [I, ve], [N, _]], [/(playstation \w+)/i], [a, [I, Be], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [I, $e], [N, ie]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, a, [N, ie]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [I, Ve], [N, ie]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [I, H], [N, ie]], [/(opwwe\d{3})/i], [a, [I, U], [N, ie]], [/(moto 360)/i], [a, [I, he], [N, ie]], [/(smartwatch 3)/i], [a, [I, Be], [N, ie]], [/(g watch r)/i], [a, [I, ge], [N, ie]], [/droid.+; (wt63?0{2,3})\)/i], [a, [I, Mi], [N, ie]], [/droid.+; (glass) \d/i], [a, [I, Ae], [N, ie]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, a, [N, ie]], [/; (quest( \d| pro)?)/i], [a, [I, Oi], [N, ie]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, F]], [/(aeobc)\b/i], [a, [I, Y], [N, F]], [/(homepod).+mac os/i], [a, [I, H], [N, F]], [/windows iot/i], [[N, F]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, h]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [I, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, z], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [z, b, Q]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, b, Q], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, z], [/\(bb(10);/i], [z, [y, R]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [y, je + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [y, se + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, z], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, z]] }, B = function(Z, q) {
|
|
3845
|
-
if (typeof Z ===
|
|
3847
|
+
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Q = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, z], [/opios[\/ ]+([\w\.]+)/i], [z, [y, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [y, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [y, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [y, "UC" + $]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [y, "Smart Lenovo " + $]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + $], z], [/\bfocus\/([\w\.]+)/i], [z, [y, je + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [y, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [y, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [z, [y, je]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], z], [/samsungbrowser\/([\w\.]+)/i], [z, [y, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [y, se + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, se + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [y, "Android " + $]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [z, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [y, je + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, g]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, g]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [j, $e], [N, _]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [j, $e], [N, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [j, H], [N, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [j, H], [N, _]], [/(macintosh);/i], [a, [j, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [j, ii], [N, h]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [j, Qe], [N, _]], [/honor([-\w ]+)[;\)]/i], [a, [j, Qe], [N, h]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [j, le], [N, _]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [j, le], [N, h]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [j, gi], [N, _]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [j, gi], [N, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [j, Ve], [N, h]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [j, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, _]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [j, "Vivo"], [N, h]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [j, "Realme"], [N, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [j, he], [N, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [j, he], [N, _]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [j, ge], [N, _]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [j, ge], [N, h]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [j, G], [N, _]], [/(nokia) (t[12][01])/i], [j, a, [N, _]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, h], [j, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [j, Ae], [N, _]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [j, Ae], [N, h]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [j, Be], [N, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [j, Be], [N, _]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [j, U], [N, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [j, Y], [N, _]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [j, Y], [N, h]], [/(playbook);[-\w\),; ]+(rim)/i], [a, j, [N, _]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [j, R], [N, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [j, V], [N, _]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [j, V], [N, h]], [/(nexus 9)/i], [a, [j, "HTC"], [N, _]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [j, [a, /_/g, " "], [N, h]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [j, "TCL"], [N, _]], [/(itel) ((\w+))/i], [[j, g], a, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [j, "Acer"], [N, _]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [j, "Meizu"], [N, h]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [j, "Ulefone"], [N, h]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [j, "Energizer"], [N, h]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [j, "Cat"], [N, h]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [j, "Smartfren"], [N, h]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [j, "Nothing"], [N, h]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [j, "Archos"], [N, _]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [j, "Archos"], [N, h]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [j, a, [N, _]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [j, a, [N, h]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [j, a, [N, _]], [/(surface duo)/i], [a, [j, ze], [N, _]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [j, "Fairphone"], [N, h]], [/(u304aa)/i], [a, [j, "AT&T"], [N, h]], [/\bsie-(\w*)/i], [a, [j, "Siemens"], [N, h]], [/\b(rct\w+) b/i], [a, [j, "RCA"], [N, _]], [/\b(venue[\d ]{2,7}) b/i], [a, [j, "Dell"], [N, _]], [/\b(q(?:mv|ta)\w+) b/i], [a, [j, "Verizon"], [N, _]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [j, "Barnes & Noble"], [N, _]], [/\b(tm\d{3}\w+) b/i], [a, [j, "NuVision"], [N, _]], [/\b(k88) b/i], [a, [j, "ZTE"], [N, _]], [/\b(nx\d{3}j) b/i], [a, [j, "ZTE"], [N, h]], [/\b(gen\d{3}) b.+49h/i], [a, [j, "Swiss"], [N, h]], [/\b(zur\d{3}) b/i], [a, [j, "Swiss"], [N, _]], [/\b((zeki)?tb.*\b) b/i], [a, [j, "Zeki"], [N, _]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[j, "Dragon Touch"], a, [N, _]], [/\b(ns-?\w{0,9}) b/i], [a, [j, "Insignia"], [N, _]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [j, "NextBook"], [N, _]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[j, "Voice"], a, [N, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[j, "LvTel"], a, [N, h]], [/\b(ph-1) /i], [a, [j, "Essential"], [N, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [j, "Envizen"], [N, _]], [/\b(trio[-\w\. ]+) b/i], [a, [j, "MachSpeed"], [N, _]], [/\btu_(1491) b/i], [a, [j, "Rotor"], [N, _]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [j, ve], [N, _]], [/(sprint) (\w+)/i], [j, a, [N, h]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [j, ze], [N, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [j, Mi], [N, _]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [j, Mi], [N, h]], [/smart-tv.+(samsung)/i], [j, [N, k]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [j, $e], [N, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[j, ge], [N, k]], [/(apple) ?tv/i], [j, [a, H + " TV"], [N, k]], [/crkey/i], [[a, se + "cast"], [j, Ae], [N, k]], [/droid.+aft(\w+)( bui|\))/i], [a, [j, Y], [N, k]], [/(shield \w+ tv)/i], [a, [j, ve], [N, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [j, ii], [N, k]], [/(bravia[\w ]+)( bui|\))/i], [a, [j, Be], [N, k]], [/(mi(tv|box)-?\w+) bui/i], [a, [j, gi], [N, k]], [/Hbbtv.*(technisat) (.*);/i], [j, a, [N, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[j, E], [a, E], [N, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [j, a, [N, p]], [/droid.+; (shield)( bui|\))/i], [a, [j, ve], [N, p]], [/(playstation \w+)/i], [a, [j, Be], [N, p]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [j, ze], [N, p]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [j, $e], [N, ie]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [j, a, [N, ie]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [j, Ve], [N, ie]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [j, H], [N, ie]], [/(opwwe\d{3})/i], [a, [j, U], [N, ie]], [/(moto 360)/i], [a, [j, he], [N, ie]], [/(smartwatch 3)/i], [a, [j, Be], [N, ie]], [/(g watch r)/i], [a, [j, ge], [N, ie]], [/droid.+; (wt63?0{2,3})\)/i], [a, [j, Mi], [N, ie]], [/droid.+; (glass) \d/i], [a, [j, Ae], [N, ie]], [/(pico) (4|neo3(?: link|pro)?)/i], [j, a, [N, ie]], [/; (quest( \d| pro)?)/i], [a, [j, Oi], [N, ie]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [j, [N, F]], [/(aeobc)\b/i], [a, [j, Y], [N, F]], [/(homepod).+mac os/i], [a, [j, H], [N, F]], [/windows iot/i], [[N, F]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, _]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, _]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, h]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [j, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, z], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [z, b, Q]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, b, Q], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, z], [/\(bb(10);/i], [z, [y, R]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [y, je + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [y, se + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, z], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, z]] }, B = function(Z, q) {
|
|
3848
|
+
if (typeof Z === I && (q = Z, Z = r), !(this instanceof B))
|
|
3846
3849
|
return new B(Z, q).getResult();
|
|
3847
3850
|
var P = typeof t !== D && t.navigator ? t.navigator : r, Me = Z || (P && P.userAgent ? P.userAgent : o), Le = P && P.userAgentData ? P.userAgentData : r, we = q ? xi(K, q) : K, oe = P && P.userAgent == Me;
|
|
3848
3851
|
return this.getBrowser = function() {
|
|
@@ -3853,7 +3856,7 @@ function la() {
|
|
|
3853
3856
|
return W[w] = r, v.call(W, Me, we.cpu), W;
|
|
3854
3857
|
}, this.getDevice = function() {
|
|
3855
3858
|
var W = {};
|
|
3856
|
-
return W[
|
|
3859
|
+
return W[j] = r, W[a] = r, W[N] = r, v.call(W, Me, we.device), oe && !W[N] && Le && Le.mobile && (W[N] = h), oe && W[a] == "Macintosh" && P && typeof P.standalone !== D && P.maxTouchPoints && P.maxTouchPoints > 2 && (W[a] = "iPad", W[N] = _), W;
|
|
3857
3860
|
}, this.getEngine = function() {
|
|
3858
3861
|
var W = {};
|
|
3859
3862
|
return W[y] = r, W[z] = r, v.call(W, Me, we.engine), W;
|
|
@@ -3865,10 +3868,10 @@ function la() {
|
|
|
3865
3868
|
}, this.getUA = function() {
|
|
3866
3869
|
return Me;
|
|
3867
3870
|
}, this.setUA = function(W) {
|
|
3868
|
-
return Me = typeof W ===
|
|
3871
|
+
return Me = typeof W === f && W.length > ae ? E(W, ae) : W, this;
|
|
3869
3872
|
}, this.setUA(Me), this;
|
|
3870
3873
|
};
|
|
3871
|
-
B.VERSION = n, B.BROWSER = ui([y, z, c]), B.CPU = ui([w]), B.DEVICE = ui([a,
|
|
3874
|
+
B.VERSION = n, B.BROWSER = ui([y, z, c]), B.CPU = ui([w]), B.DEVICE = ui([a, j, N, p, h, k, _, ie, F]), B.ENGINE = B.OS = ui([y, z]), e.exports && (i = e.exports = B), i.UAParser = B;
|
|
3872
3875
|
var ue = typeof t !== D && (t.jQuery || t.Zepto);
|
|
3873
3876
|
if (ue && !ue.ua) {
|
|
3874
3877
|
var Se = new B();
|
|
@@ -3888,10 +3891,10 @@ var jn;
|
|
|
3888
3891
|
function ca() {
|
|
3889
3892
|
if (jn) return L;
|
|
3890
3893
|
jn = 1, Object.defineProperty(L, "__esModule", { value: !0 });
|
|
3891
|
-
function e(
|
|
3892
|
-
return
|
|
3894
|
+
function e(A) {
|
|
3895
|
+
return A && typeof A == "object" && "default" in A ? A.default : A;
|
|
3893
3896
|
}
|
|
3894
|
-
var i = aa, t = e(i), r = la(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), D = n.getEngine(),
|
|
3897
|
+
var i = aa, t = e(i), r = la(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), D = n.getEngine(), I = n.getOS(), f = n.getUA(), c = function(u) {
|
|
3895
3898
|
return n.setUA(u);
|
|
3896
3899
|
}, a = function(u) {
|
|
3897
3900
|
if (!u) {
|
|
@@ -3917,133 +3920,133 @@ function ca() {
|
|
|
3917
3920
|
cpu: s,
|
|
3918
3921
|
device: M,
|
|
3919
3922
|
engine: D,
|
|
3920
|
-
os:
|
|
3921
|
-
ua:
|
|
3923
|
+
os: I,
|
|
3924
|
+
ua: f,
|
|
3922
3925
|
setUa: c,
|
|
3923
3926
|
parseUserAgent: a
|
|
3924
3927
|
});
|
|
3925
|
-
function N(
|
|
3926
|
-
var l = Object.keys(
|
|
3928
|
+
function N(A, u) {
|
|
3929
|
+
var l = Object.keys(A);
|
|
3927
3930
|
if (Object.getOwnPropertySymbols) {
|
|
3928
|
-
var x = Object.getOwnPropertySymbols(
|
|
3931
|
+
var x = Object.getOwnPropertySymbols(A);
|
|
3929
3932
|
u && (x = x.filter(function(m) {
|
|
3930
|
-
return Object.getOwnPropertyDescriptor(
|
|
3933
|
+
return Object.getOwnPropertyDescriptor(A, m).enumerable;
|
|
3931
3934
|
})), l.push.apply(l, x);
|
|
3932
3935
|
}
|
|
3933
3936
|
return l;
|
|
3934
3937
|
}
|
|
3935
|
-
function
|
|
3938
|
+
function j(A) {
|
|
3936
3939
|
for (var u = 1; u < arguments.length; u++) {
|
|
3937
3940
|
var l = arguments[u] != null ? arguments[u] : {};
|
|
3938
3941
|
u % 2 ? N(Object(l), !0).forEach(function(x) {
|
|
3939
|
-
|
|
3940
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
3941
|
-
Object.defineProperty(
|
|
3942
|
+
_(A, x, l[x]);
|
|
3943
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(l)) : N(Object(l)).forEach(function(x) {
|
|
3944
|
+
Object.defineProperty(A, x, Object.getOwnPropertyDescriptor(l, x));
|
|
3942
3945
|
});
|
|
3943
3946
|
}
|
|
3944
|
-
return
|
|
3947
|
+
return A;
|
|
3945
3948
|
}
|
|
3946
|
-
function z(
|
|
3949
|
+
function z(A) {
|
|
3947
3950
|
"@babel/helpers - typeof";
|
|
3948
3951
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? z = function(u) {
|
|
3949
3952
|
return typeof u;
|
|
3950
3953
|
} : z = function(u) {
|
|
3951
3954
|
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
3952
|
-
}, z(
|
|
3955
|
+
}, z(A);
|
|
3953
3956
|
}
|
|
3954
|
-
function w(
|
|
3955
|
-
if (!(
|
|
3957
|
+
function w(A, u) {
|
|
3958
|
+
if (!(A instanceof u))
|
|
3956
3959
|
throw new TypeError("Cannot call a class as a function");
|
|
3957
3960
|
}
|
|
3958
|
-
function
|
|
3961
|
+
function p(A, u) {
|
|
3959
3962
|
for (var l = 0; l < u.length; l++) {
|
|
3960
3963
|
var x = u[l];
|
|
3961
|
-
x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(
|
|
3964
|
+
x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(A, x.key, x);
|
|
3962
3965
|
}
|
|
3963
3966
|
}
|
|
3964
|
-
function h(
|
|
3965
|
-
return u &&
|
|
3967
|
+
function h(A, u, l) {
|
|
3968
|
+
return u && p(A.prototype, u), A;
|
|
3966
3969
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return u in
|
|
3970
|
+
function _(A, u, l) {
|
|
3971
|
+
return u in A ? Object.defineProperty(A, u, {
|
|
3969
3972
|
value: l,
|
|
3970
3973
|
enumerable: !0,
|
|
3971
3974
|
configurable: !0,
|
|
3972
3975
|
writable: !0
|
|
3973
|
-
}) :
|
|
3976
|
+
}) : A[u] = l, A;
|
|
3974
3977
|
}
|
|
3975
3978
|
function k() {
|
|
3976
|
-
return k = Object.assign || function(
|
|
3979
|
+
return k = Object.assign || function(A) {
|
|
3977
3980
|
for (var u = 1; u < arguments.length; u++) {
|
|
3978
3981
|
var l = arguments[u];
|
|
3979
3982
|
for (var x in l)
|
|
3980
|
-
Object.prototype.hasOwnProperty.call(l, x) && (
|
|
3983
|
+
Object.prototype.hasOwnProperty.call(l, x) && (A[x] = l[x]);
|
|
3981
3984
|
}
|
|
3982
|
-
return
|
|
3985
|
+
return A;
|
|
3983
3986
|
}, k.apply(this, arguments);
|
|
3984
3987
|
}
|
|
3985
|
-
function ie(
|
|
3988
|
+
function ie(A, u) {
|
|
3986
3989
|
if (typeof u != "function" && u !== null)
|
|
3987
3990
|
throw new TypeError("Super expression must either be null or a function");
|
|
3988
|
-
|
|
3991
|
+
A.prototype = Object.create(u && u.prototype, {
|
|
3989
3992
|
constructor: {
|
|
3990
|
-
value:
|
|
3993
|
+
value: A,
|
|
3991
3994
|
writable: !0,
|
|
3992
3995
|
configurable: !0
|
|
3993
3996
|
}
|
|
3994
|
-
}), u && ae(
|
|
3997
|
+
}), u && ae(A, u);
|
|
3995
3998
|
}
|
|
3996
|
-
function F(
|
|
3999
|
+
function F(A) {
|
|
3997
4000
|
return F = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
|
|
3998
4001
|
return l.__proto__ || Object.getPrototypeOf(l);
|
|
3999
|
-
}, F(
|
|
4002
|
+
}, F(A);
|
|
4000
4003
|
}
|
|
4001
|
-
function ae(
|
|
4004
|
+
function ae(A, u) {
|
|
4002
4005
|
return ae = Object.setPrototypeOf || function(x, m) {
|
|
4003
4006
|
return x.__proto__ = m, x;
|
|
4004
|
-
}, ae(
|
|
4007
|
+
}, ae(A, u);
|
|
4005
4008
|
}
|
|
4006
|
-
function Y(
|
|
4007
|
-
if (
|
|
4008
|
-
var l = {}, x = Object.keys(
|
|
4009
|
+
function Y(A, u) {
|
|
4010
|
+
if (A == null) return {};
|
|
4011
|
+
var l = {}, x = Object.keys(A), m, te;
|
|
4009
4012
|
for (te = 0; te < x.length; te++)
|
|
4010
|
-
m = x[te], !(u.indexOf(m) >= 0) && (l[m] =
|
|
4013
|
+
m = x[te], !(u.indexOf(m) >= 0) && (l[m] = A[m]);
|
|
4011
4014
|
return l;
|
|
4012
4015
|
}
|
|
4013
|
-
function H(
|
|
4014
|
-
if (
|
|
4015
|
-
var l = Y(
|
|
4016
|
+
function H(A, u) {
|
|
4017
|
+
if (A == null) return {};
|
|
4018
|
+
var l = Y(A, u), x, m;
|
|
4016
4019
|
if (Object.getOwnPropertySymbols) {
|
|
4017
|
-
var te = Object.getOwnPropertySymbols(
|
|
4020
|
+
var te = Object.getOwnPropertySymbols(A);
|
|
4018
4021
|
for (m = 0; m < te.length; m++)
|
|
4019
|
-
x = te[m], !(u.indexOf(x) >= 0) && Object.prototype.propertyIsEnumerable.call(
|
|
4022
|
+
x = te[m], !(u.indexOf(x) >= 0) && Object.prototype.propertyIsEnumerable.call(A, x) && (l[x] = A[x]);
|
|
4020
4023
|
}
|
|
4021
4024
|
return l;
|
|
4022
4025
|
}
|
|
4023
|
-
function V(
|
|
4024
|
-
if (
|
|
4026
|
+
function V(A) {
|
|
4027
|
+
if (A === void 0)
|
|
4025
4028
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4026
|
-
return
|
|
4029
|
+
return A;
|
|
4027
4030
|
}
|
|
4028
|
-
function R(
|
|
4031
|
+
function R(A, u) {
|
|
4029
4032
|
if (u && (typeof u == "object" || typeof u == "function"))
|
|
4030
4033
|
return u;
|
|
4031
4034
|
if (u !== void 0)
|
|
4032
4035
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4033
|
-
return V(
|
|
4036
|
+
return V(A);
|
|
4034
4037
|
}
|
|
4035
|
-
function $(
|
|
4036
|
-
return se(
|
|
4038
|
+
function $(A, u) {
|
|
4039
|
+
return se(A) || Ie(A, u) || je(A, u) || Qe();
|
|
4037
4040
|
}
|
|
4038
|
-
function se(
|
|
4039
|
-
if (Array.isArray(
|
|
4041
|
+
function se(A) {
|
|
4042
|
+
if (Array.isArray(A)) return A;
|
|
4040
4043
|
}
|
|
4041
|
-
function Ie(
|
|
4042
|
-
var l =
|
|
4044
|
+
function Ie(A, u) {
|
|
4045
|
+
var l = A == null ? null : typeof Symbol != "undefined" && A[Symbol.iterator] || A["@@iterator"];
|
|
4043
4046
|
if (l != null) {
|
|
4044
4047
|
var x = [], m = !0, te = !1, Oe, ke;
|
|
4045
4048
|
try {
|
|
4046
|
-
for (l = l.call(
|
|
4049
|
+
for (l = l.call(A); !(m = (Oe = l.next()).done) && (x.push(Oe.value), !(u && x.length === u)); m = !0)
|
|
4047
4050
|
;
|
|
4048
4051
|
} catch (qi) {
|
|
4049
4052
|
te = !0, ke = qi;
|
|
@@ -4057,17 +4060,17 @@ function ca() {
|
|
|
4057
4060
|
return x;
|
|
4058
4061
|
}
|
|
4059
4062
|
}
|
|
4060
|
-
function je(
|
|
4061
|
-
if (
|
|
4062
|
-
if (typeof
|
|
4063
|
-
var l = Object.prototype.toString.call(
|
|
4064
|
-
if (l === "Object" &&
|
|
4065
|
-
if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return Ae(
|
|
4063
|
+
function je(A, u) {
|
|
4064
|
+
if (A) {
|
|
4065
|
+
if (typeof A == "string") return Ae(A, u);
|
|
4066
|
+
var l = Object.prototype.toString.call(A).slice(8, -1);
|
|
4067
|
+
if (l === "Object" && A.constructor && (l = A.constructor.name), l === "Map" || l === "Set") return Array.from(A);
|
|
4068
|
+
if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return Ae(A, u);
|
|
4066
4069
|
}
|
|
4067
4070
|
}
|
|
4068
|
-
function Ae(
|
|
4069
|
-
(u == null || u >
|
|
4070
|
-
for (var l = 0, x = new Array(u); l < u; l++) x[l] =
|
|
4071
|
+
function Ae(A, u) {
|
|
4072
|
+
(u == null || u > A.length) && (u = A.length);
|
|
4073
|
+
for (var l = 0, x = new Array(u); l < u; l++) x[l] = A[l];
|
|
4071
4074
|
return x;
|
|
4072
4075
|
}
|
|
4073
4076
|
function Qe() {
|
|
@@ -4165,7 +4168,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4165
4168
|
userAgent: U(te)
|
|
4166
4169
|
};
|
|
4167
4170
|
}, ii = function(u, l, x, m) {
|
|
4168
|
-
return
|
|
4171
|
+
return j({}, u, {
|
|
4169
4172
|
vendor: U(l.vendor),
|
|
4170
4173
|
model: U(l.model),
|
|
4171
4174
|
os: U(x.name),
|
|
@@ -4211,14 +4214,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4211
4214
|
userAgent: U(te)
|
|
4212
4215
|
};
|
|
4213
4216
|
};
|
|
4214
|
-
function di(
|
|
4215
|
-
var u =
|
|
4217
|
+
function di(A) {
|
|
4218
|
+
var u = A ? a(A) : y, l = u.device, x = u.browser, m = u.engine, te = u.os, Oe = u.ua, ke = he(l.type), qi = ke.isBrowser, As = ke.isMobile, Ts = ke.isTablet, _r = ke.isSmartTV, pr = ke.isConsole, br = ke.isWearable, Sr = ke.isEmbedded;
|
|
4216
4219
|
if (qi)
|
|
4217
4220
|
return $e(qi, x, m, te, Oe);
|
|
4218
|
-
if (pr)
|
|
4219
|
-
return Be(pr, m, te, Oe);
|
|
4220
4221
|
if (_r)
|
|
4221
|
-
return
|
|
4222
|
+
return Be(_r, m, te, Oe);
|
|
4223
|
+
if (pr)
|
|
4224
|
+
return gi(pr, m, te, Oe);
|
|
4222
4225
|
if (As || Ts)
|
|
4223
4226
|
return ii(ke, l, te, Oe);
|
|
4224
4227
|
if (br)
|
|
@@ -4345,8 +4348,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4345
4348
|
}, Ir = function(u) {
|
|
4346
4349
|
return U(u);
|
|
4347
4350
|
};
|
|
4348
|
-
function jr(
|
|
4349
|
-
var u =
|
|
4351
|
+
function jr(A) {
|
|
4352
|
+
var u = A || y, l = u.device, x = u.browser, m = u.os, te = u.engine, Oe = u.ua;
|
|
4350
4353
|
return {
|
|
4351
4354
|
isSmartTV: ui(l),
|
|
4352
4355
|
isConsole: T(l),
|
|
@@ -4393,7 +4396,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4393
4396
|
isSamsungBrowser: sr(x)
|
|
4394
4397
|
};
|
|
4395
4398
|
}
|
|
4396
|
-
var yr = ui(M), fr = T(M), Ar = g(M), ho = E(M), mo = Ye(o) || Ke(), wo = Le(o), Ki = xi(M) || Ke(), Tr = ai(M), zr = Ni(M) || Ke(), Or = Xe(M),
|
|
4399
|
+
var yr = ui(M), fr = T(M), Ar = g(M), ho = E(M), mo = Ye(o) || Ke(), wo = Le(o), Ki = xi(M) || Ke(), Tr = ai(M), zr = Ni(M) || Ke(), Or = Xe(M), _o = Xe(M), xr = Q(I), Er = ue(I), hr = Se(I) || Ke(), po = P(o), bo = Me(o), So = W(o), Co = Ei(o), mr = Li(o), vo = Z(I), Lo = q(I), ko = Mr(o), Uo = ar(o), Qo = ur(o), Yo = v(M), Po = b(M), Ro = lr(D), Fo = cr(D), Vo = Ir(f), Bo = we(o) || hi(f), Wo = oe(o), Zo = S(M), Ho = dr(), Go = Ke(), Jo = Nr(), $o = Dr(), Xo = gr(), Ko = hi(f), qo = we(o) && !hi(f), es = K(I), is = B(I), ts = or(o), rs = sr(o), ns = function(u) {
|
|
4397
4400
|
if (!u || typeof u != "string") {
|
|
4398
4401
|
console.error("No valid user agent string was provided");
|
|
4399
4402
|
return;
|
|
@@ -4447,7 +4450,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4447
4450
|
var m = u.condition, te = H(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
4448
4451
|
return m ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", te, x) : null;
|
|
4449
4452
|
};
|
|
4450
|
-
function js(
|
|
4453
|
+
function js(A) {
|
|
4451
4454
|
return /* @__PURE__ */ (function(u) {
|
|
4452
4455
|
ie(l, u);
|
|
4453
4456
|
function l(x) {
|
|
@@ -4490,7 +4493,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4490
4493
|
}, {
|
|
4491
4494
|
key: "render",
|
|
4492
4495
|
value: function() {
|
|
4493
|
-
return t.createElement(
|
|
4496
|
+
return t.createElement(A, k({}, this.props, {
|
|
4494
4497
|
isLandscape: this.state.isLandscape,
|
|
4495
4498
|
isPortrait: this.state.isPortrait
|
|
4496
4499
|
}));
|
|
@@ -4499,14 +4502,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4499
4502
|
})(t.Component);
|
|
4500
4503
|
}
|
|
4501
4504
|
function ys() {
|
|
4502
|
-
var
|
|
4505
|
+
var A = i.useState(function() {
|
|
4503
4506
|
var te = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
4504
4507
|
return {
|
|
4505
4508
|
isPortrait: te === 0,
|
|
4506
4509
|
isLandscape: te === 90,
|
|
4507
4510
|
orientation: te === 0 ? "portrait" : "landscape"
|
|
4508
4511
|
};
|
|
4509
|
-
}), u = $(
|
|
4512
|
+
}), u = $(A, 2), l = u[0], x = u[1], m = i.useCallback(function() {
|
|
4510
4513
|
var te = window.innerWidth > window.innerHeight ? 90 : 0, Oe = {
|
|
4511
4514
|
isPortrait: te === 0,
|
|
4512
4515
|
isLandscape: te === 90,
|
|
@@ -4520,15 +4523,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4520
4523
|
};
|
|
4521
4524
|
}, [m]), l;
|
|
4522
4525
|
}
|
|
4523
|
-
function wr(
|
|
4524
|
-
var u =
|
|
4526
|
+
function wr(A) {
|
|
4527
|
+
var u = A || window.navigator.userAgent;
|
|
4525
4528
|
return a(u);
|
|
4526
4529
|
}
|
|
4527
|
-
function fs(
|
|
4528
|
-
var u =
|
|
4530
|
+
function fs(A) {
|
|
4531
|
+
var u = A || window.navigator.userAgent, l = wr(u), x = jr(l);
|
|
4529
4532
|
return [x, l];
|
|
4530
4533
|
}
|
|
4531
|
-
return L.AndroidView = os, L.BrowserTypes = G, L.BrowserView = ss, L.ConsoleView = Ns, L.CustomView = Is, L.IEView = Ms, L.IOSView = as, L.MobileOnlyView = gs, L.MobileView = us, L.OsTypes = ge, L.SmartTVView = ds, L.TabletView = ls, L.WearableView = Ds, L.WinPhoneView = cs, L.browserName = Qo, L.browserVersion = Uo, L.deviceDetect = di, L.deviceType = Zo, L.engineName = Ro, L.engineVersion = Fo, L.fullBrowserVersion = ko, L.getSelectorsByUserAgent = ns, L.getUA = Vo, L.isAndroid = xr, L.isBrowser = Or, L.isChrome =
|
|
4534
|
+
return L.AndroidView = os, L.BrowserTypes = G, L.BrowserView = ss, L.ConsoleView = Ns, L.CustomView = Is, L.IEView = Ms, L.IOSView = as, L.MobileOnlyView = gs, L.MobileView = us, L.OsTypes = ge, L.SmartTVView = ds, L.TabletView = ls, L.WearableView = Ds, L.WinPhoneView = cs, L.browserName = Qo, L.browserVersion = Uo, L.deviceDetect = di, L.deviceType = Zo, L.engineName = Ro, L.engineVersion = Fo, L.fullBrowserVersion = ko, L.getSelectorsByUserAgent = ns, L.getUA = Vo, L.isAndroid = xr, L.isBrowser = Or, L.isChrome = po, L.isChromium = wo, L.isConsole = fr, L.isDesktop = _o, L.isEdge = Bo, L.isEdgeChromium = Ko, L.isElectron = Xo, L.isEmbedded = ho, L.isFirefox = bo, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Ho, L.isIPad13 = Go, L.isIPhone13 = Jo, L.isIPod13 = $o, L.isLegacyEdge = qo, L.isMIUI = ts, L.isMacOs = is, L.isMobile = Ki, L.isMobileOnly = Tr, L.isMobileSafari = mo, L.isOpera = Co, L.isSafari = So, L.isSamsungBrowser = rs, L.isSmartTV = yr, L.isTablet = zr, L.isWearable = Ar, L.isWinPhone = Er, L.isWindows = es, L.isYandex = Wo, L.mobileModel = Po, L.mobileVendor = Yo, L.osName = Lo, L.osVersion = vo, L.parseUserAgent = a, L.setUserAgent = ve, L.useDeviceData = wr, L.useDeviceSelectors = fs, L.useMobileOrientation = ys, L.withOrientationChange = js, L;
|
|
4532
4535
|
}
|
|
4533
4536
|
var Ii = ca();
|
|
4534
4537
|
const ga = {
|
|
@@ -4559,7 +4562,7 @@ const ga = {
|
|
|
4559
4562
|
buttons: r,
|
|
4560
4563
|
selectionLimit: n
|
|
4561
4564
|
}) => {
|
|
4562
|
-
var
|
|
4565
|
+
var f, c;
|
|
4563
4566
|
const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
|
|
4564
4567
|
var N;
|
|
4565
4568
|
const y = Array.from((N = a.currentTarget.files) != null ? N : []);
|
|
@@ -4585,10 +4588,10 @@ const ga = {
|
|
|
4585
4588
|
permissionDenied: !1,
|
|
4586
4589
|
files: z
|
|
4587
4590
|
});
|
|
4588
|
-
} catch (
|
|
4589
|
-
console.error("Error: ",
|
|
4591
|
+
} catch (j) {
|
|
4592
|
+
console.error("Error: ", j);
|
|
4590
4593
|
}
|
|
4591
|
-
}),
|
|
4594
|
+
}), I = () => De(null, null, function* () {
|
|
4592
4595
|
var a;
|
|
4593
4596
|
(a = s.current) == null || a.showPicker();
|
|
4594
4597
|
});
|
|
@@ -4621,7 +4624,7 @@ const ga = {
|
|
|
4621
4624
|
onInput: D
|
|
4622
4625
|
})
|
|
4623
4626
|
),
|
|
4624
|
-
/* @__PURE__ */ d("button", { style: da, onClick:
|
|
4627
|
+
/* @__PURE__ */ d("button", { style: da, onClick: I, children: /* @__PURE__ */ d(pe, { imageId: (c = (f = r == null ? void 0 : r[0]) == null ? void 0 : f.image) == null ? void 0 : c.imageId }) })
|
|
4625
4628
|
]
|
|
4626
4629
|
}
|
|
4627
4630
|
) }) });
|
|
@@ -4764,17 +4767,17 @@ const ga = {
|
|
|
4764
4767
|
askEveryTime: D
|
|
4765
4768
|
}) => {
|
|
4766
4769
|
var F, ae;
|
|
4767
|
-
const
|
|
4770
|
+
const I = Yn(o), { perform: f } = zi(), { setIsProcessingCallback: c } = Qs(), [a, y] = _e(!1), N = () => {
|
|
4768
4771
|
var Y;
|
|
4769
4772
|
(Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!0);
|
|
4770
|
-
},
|
|
4773
|
+
}, j = () => {
|
|
4771
4774
|
var Y;
|
|
4772
4775
|
(Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!1);
|
|
4773
4776
|
}, { devSettings: z } = Us(), w = !!((ae = (F = z == null ? void 0 : z.popups) == null ? void 0 : F.system_restricted) != null && ae.isOpen);
|
|
4774
4777
|
Fe(() => {
|
|
4775
4778
|
z && y(w);
|
|
4776
4779
|
}, [w, z]);
|
|
4777
|
-
const
|
|
4780
|
+
const p = {
|
|
4778
4781
|
enableHighAccuracy: !0,
|
|
4779
4782
|
timeout: 15e3,
|
|
4780
4783
|
maximumAge: 6e4
|
|
@@ -4789,8 +4792,8 @@ const ga = {
|
|
|
4789
4792
|
c == null || c(!1);
|
|
4790
4793
|
return;
|
|
4791
4794
|
}
|
|
4792
|
-
const V = yield Ui(
|
|
4793
|
-
Y &&
|
|
4795
|
+
const V = yield Ui(p);
|
|
4796
|
+
Y && f(V, I);
|
|
4794
4797
|
}), () => {
|
|
4795
4798
|
Ii.isSafari || D || (Y = !1);
|
|
4796
4799
|
};
|
|
@@ -4800,7 +4803,7 @@ const ga = {
|
|
|
4800
4803
|
return De(null, null, function* () {
|
|
4801
4804
|
const V = yield Ia();
|
|
4802
4805
|
V && (H = V, V.onchange = () => De(null, null, function* () {
|
|
4803
|
-
if (V.state === "denied" && (c == null || c(!0),
|
|
4806
|
+
if (V.state === "denied" && (c == null || c(!0), f(
|
|
4804
4807
|
{
|
|
4805
4808
|
location: {
|
|
4806
4809
|
locationState: "application_location_restricted",
|
|
@@ -4809,19 +4812,19 @@ const ga = {
|
|
|
4809
4812
|
error: "Application location services restricted or unavailable"
|
|
4810
4813
|
}
|
|
4811
4814
|
},
|
|
4812
|
-
|
|
4815
|
+
I
|
|
4813
4816
|
)), V.state === "granted") {
|
|
4814
4817
|
c == null || c(!0);
|
|
4815
|
-
const R = yield Ui(
|
|
4818
|
+
const R = yield Ui(p);
|
|
4816
4819
|
if (!Y) return;
|
|
4817
|
-
|
|
4820
|
+
f(R, I);
|
|
4818
4821
|
}
|
|
4819
4822
|
}));
|
|
4820
4823
|
}), () => {
|
|
4821
4824
|
Ii.isSafari || (Y = !1, H && (H.onchange = null));
|
|
4822
4825
|
};
|
|
4823
4826
|
}, []);
|
|
4824
|
-
const
|
|
4827
|
+
const _ = (Y) => De(null, null, function* () {
|
|
4825
4828
|
Y.preventDefault();
|
|
4826
4829
|
const H = yield Ot();
|
|
4827
4830
|
if (H === "denied") {
|
|
@@ -4829,8 +4832,8 @@ const ga = {
|
|
|
4829
4832
|
return;
|
|
4830
4833
|
}
|
|
4831
4834
|
if (H === "prompt" && (yield Ui()), H === "granted") {
|
|
4832
|
-
const V = yield Ui(
|
|
4833
|
-
|
|
4835
|
+
const V = yield Ui(p);
|
|
4836
|
+
f(V, I);
|
|
4834
4837
|
}
|
|
4835
4838
|
}), k = (Y) => De(null, null, function* () {
|
|
4836
4839
|
if (Y.preventDefault(), (yield Ot()) === "denied") {
|
|
@@ -4838,15 +4841,15 @@ const ga = {
|
|
|
4838
4841
|
return;
|
|
4839
4842
|
}
|
|
4840
4843
|
c == null || c(!0);
|
|
4841
|
-
const V = yield Ui(
|
|
4842
|
-
|
|
4844
|
+
const V = yield Ui(p);
|
|
4845
|
+
f(V, I);
|
|
4843
4846
|
}), ie = (Y) => {
|
|
4844
|
-
Y.preventDefault(),
|
|
4847
|
+
Y.preventDefault(), j();
|
|
4845
4848
|
};
|
|
4846
4849
|
return /* @__PURE__ */ d(ci, { header: i, footer: t, backgroundColor: s, children: [
|
|
4847
4850
|
/* @__PURE__ */ d("div", { style: ja, children: [
|
|
4848
4851
|
/* @__PURE__ */ d("div", { style: ya, children: [
|
|
4849
|
-
r && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(
|
|
4852
|
+
r && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(pe, O({}, r)) }),
|
|
4850
4853
|
e && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(fe, O({}, e)) }),
|
|
4851
4854
|
n && /* @__PURE__ */ d("div", { style: za, children: /* @__PURE__ */ d(jt, O({}, n)) })
|
|
4852
4855
|
] }),
|
|
@@ -4862,7 +4865,7 @@ const ga = {
|
|
|
4862
4865
|
O(O({
|
|
4863
4866
|
dataTestId: "question-button"
|
|
4864
4867
|
}, Y), Y.type === "FORM" ? {
|
|
4865
|
-
onClick: Ii.isSafari ? k :
|
|
4868
|
+
onClick: Ii.isSafari ? k : _
|
|
4866
4869
|
} : {})
|
|
4867
4870
|
) }, H))
|
|
4868
4871
|
}
|
|
@@ -4873,7 +4876,7 @@ const ga = {
|
|
|
4873
4876
|
{
|
|
4874
4877
|
style: fa,
|
|
4875
4878
|
onPointerDown: (Y) => {
|
|
4876
|
-
Y.preventDefault(), Y.stopPropagation(),
|
|
4879
|
+
Y.preventDefault(), Y.stopPropagation(), j();
|
|
4877
4880
|
},
|
|
4878
4881
|
children: /* @__PURE__ */ d(
|
|
4879
4882
|
"div",
|
|
@@ -5018,9 +5021,9 @@ let xt = !1;
|
|
|
5018
5021
|
const ba = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
5019
5022
|
/* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5020
5023
|
e
|
|
5021
|
-
] }), fn = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }),
|
|
5022
|
-
const { templateId: n, templateLayout: o, dataSource: s, properties: M } = i, D = (
|
|
5023
|
-
t && t(
|
|
5024
|
+
] }), fn = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }), _a = ({ isProcessing: e, moduleProps: i, perform: t, devSettings: r }) => {
|
|
5025
|
+
const { templateId: n, templateLayout: o, dataSource: s, properties: M } = i, D = (I, f) => {
|
|
5026
|
+
t && t(I, f);
|
|
5024
5027
|
};
|
|
5025
5028
|
return n === We.QUESTIONS ? /* @__PURE__ */ d(Hr, { perform: D, children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
|
|
5026
5029
|
yn,
|
|
@@ -5087,7 +5090,7 @@ const ba = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
|
|
|
5087
5090
|
}
|
|
5088
5091
|
Ai(
|
|
5089
5092
|
/* @__PURE__ */ d(
|
|
5090
|
-
|
|
5093
|
+
_a,
|
|
5091
5094
|
{
|
|
5092
5095
|
moduleProps: this.props.moduleProps,
|
|
5093
5096
|
perform: this.props.perform,
|
|
@@ -5120,11 +5123,11 @@ let vt = Vi;
|
|
|
5120
5123
|
Cs(at, vt);
|
|
5121
5124
|
export {
|
|
5122
5125
|
vt as GuiIdv,
|
|
5123
|
-
|
|
5126
|
+
_a as GuiIdvReactComponent,
|
|
5124
5127
|
We as GuiIdvSteps,
|
|
5125
5128
|
ba as GuiIdvStyleInjectionWrapper,
|
|
5126
5129
|
ut as GuiModuleError,
|
|
5127
5130
|
ce as IDV_UI_ICONS,
|
|
5128
5131
|
Rs as PopupReason,
|
|
5129
|
-
|
|
5132
|
+
pt as idvIconDataUrlMap
|
|
5130
5133
|
};
|