@regulaforensics/idv-gui 3.2.260-nightly → 3.2.262-nightly
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/index.d.ts +1 -0
- package/dist/main.iife.js +4 -4
- package/dist/main.js +800 -795
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var xs = Object.defineProperty, Es = Object.defineProperties;
|
|
2
2
|
var Ss = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var er = Object.getOwnPropertySymbols;
|
|
4
4
|
var Dn = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Mn = (e, t, r) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
5
|
+
var Mn = (e, t, r) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, y = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
Dn.call(t, r) && Mn(e, r, t[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (er)
|
|
9
|
+
for (var r of er(t))
|
|
10
10
|
Pn.call(t, r) && Mn(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Z = (e, t) => Es(e, Ss(t));
|
|
13
13
|
var _t = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in e)
|
|
16
16
|
Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var n of
|
|
17
|
+
if (e != null && er)
|
|
18
|
+
for (var n of er(e))
|
|
19
19
|
t.indexOf(n) < 0 && Pn.call(e, n) && (r[n] = e[n]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
@@ -35,7 +35,7 @@ var _e = (e, t, r) => new Promise((n, i) => {
|
|
|
35
35
|
}, l = (_) => _.done ? n(_.value) : Promise.resolve(_.value).then(o, a);
|
|
36
36
|
l((r = r.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var zt, Y, Ci, mt, Nn, yi, xi, Ei, Mr, xr, Er, Si, $t = {}, ki = [], ks = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, qt = Array.isArray;
|
|
39
39
|
function Qe(e, t) {
|
|
40
40
|
for (var r in t) e[r] = t[r];
|
|
41
41
|
return e;
|
|
@@ -46,10 +46,10 @@ function Dr(e) {
|
|
|
46
46
|
function et(e, t, r) {
|
|
47
47
|
var n, i, o, a = {};
|
|
48
48
|
for (o in t) o == "key" ? n = t[o] : o == "ref" ? i = t[o] : a[o] = t[o];
|
|
49
|
-
if (arguments.length > 2 && (a.children = arguments.length > 3 ?
|
|
50
|
-
return
|
|
49
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? zt.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) a[o] === void 0 && (a[o] = e.defaultProps[o]);
|
|
50
|
+
return Bt(e, a, n, i, null);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Bt(e, t, r, n, i) {
|
|
53
53
|
var o = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i == null ? ++Ci : i, __i: -1, __u: 0 };
|
|
54
54
|
return i == null && Y.vnode != null && Y.vnode(o), o;
|
|
55
55
|
}
|
|
@@ -84,15 +84,15 @@ function or() {
|
|
|
84
84
|
for (var e, t, r, n, i, o, a, l = 1; mt.length; ) mt.length > l && mt.sort(xi), e = mt.shift(), l = mt.length, e.__d && (r = void 0, n = void 0, i = (n = (t = e).__v).__e, o = [], a = [], t.__P && ((r = Qe({}, n)).__v = n.__v + 1, Y.vnode && Y.vnode(r), Pr(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [i] : null, o, i == null ? It(n) : i, !!(32 & n.__u), a), r.__v = n.__v, r.__.__k[r.__i] = r, Ii(o, r, a), n.__e = n.__ = null, r.__e != i && Ti(r)));
|
|
85
85
|
or.__r = 0;
|
|
86
86
|
}
|
|
87
|
-
function Fi(e, t, r, n, i, o, a, l, _, g,
|
|
88
|
-
var h, c, v, p, m,
|
|
89
|
-
for (_ = Os(r, t, I, _, k), h = 0; h < k; h++) (v = r.__k[h]) != null && (c = v.__i == -1 ?
|
|
87
|
+
function Fi(e, t, r, n, i, o, a, l, _, g, w) {
|
|
88
|
+
var h, c, v, p, m, x, T, I = n && n.__k || ki, k = t.length;
|
|
89
|
+
for (_ = Os(r, t, I, _, k), h = 0; h < k; h++) (v = r.__k[h]) != null && (c = v.__i == -1 ? $t : I[v.__i] || $t, v.__i = h, x = Pr(e, v, c, i, o, a, l, _, g, w), p = v.__e, v.ref && c.ref != v.ref && (c.ref && Nr(c.ref, null, v), w.push(v.ref, v.__c || p, v)), m == null && p != null && (m = p), (T = !!(4 & v.__u)) || c.__k === v.__k ? _ = Ai(v, _, e, T) : typeof v.type == "function" && x !== void 0 ? _ = x : p && (_ = p.nextSibling), v.__u &= -7);
|
|
90
90
|
return r.__e = m, _;
|
|
91
91
|
}
|
|
92
92
|
function Os(e, t, r, n, i) {
|
|
93
|
-
var o, a, l, _, g,
|
|
94
|
-
for (e.__k = new Array(i), o = 0; o < i; o++) (a = t[o]) != null && typeof a != "boolean" && typeof a != "function" ? (_ = o + c, (a = e.__k[o] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ?
|
|
95
|
-
if (h) for (o = 0; o <
|
|
93
|
+
var o, a, l, _, g, w = r.length, h = w, c = 0;
|
|
94
|
+
for (e.__k = new Array(i), o = 0; o < i; o++) (a = t[o]) != null && typeof a != "boolean" && typeof a != "function" ? (_ = o + c, (a = e.__k[o] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Bt(null, a, null, null, null) : qt(a) ? Bt(Ie, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Bt(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, l = null, (g = a.__i = Ts(a, r, _, h)) != -1 && (h--, (l = r[g]) && (l.__u |= 2)), l == null || l.__v == null ? (g == -1 && (i > w ? c-- : i < w && c++), typeof a.type != "function" && (a.__u |= 4)) : g != _ && (g == _ - 1 ? c-- : g == _ + 1 ? c++ : (g > _ ? c-- : c++, a.__u |= 4))) : e.__k[o] = null;
|
|
95
|
+
if (h) for (o = 0; o < w; o++) (l = r[o]) != null && (2 & l.__u) == 0 && (l.__e == n && (n = It(l)), Ri(l, l));
|
|
96
96
|
return n;
|
|
97
97
|
}
|
|
98
98
|
function Ai(e, t, r, n) {
|
|
@@ -108,14 +108,14 @@ function Ai(e, t, r, n) {
|
|
|
108
108
|
return t;
|
|
109
109
|
}
|
|
110
110
|
function ot(e, t) {
|
|
111
|
-
return t = t || [], e == null || typeof e == "boolean" || (
|
|
111
|
+
return t = t || [], e == null || typeof e == "boolean" || (qt(e) ? e.some(function(r) {
|
|
112
112
|
ot(r, t);
|
|
113
113
|
}) : t.push(e)), t;
|
|
114
114
|
}
|
|
115
115
|
function Ts(e, t, r, n) {
|
|
116
|
-
var i, o, a, l = e.key, _ = e.type, g = t[r],
|
|
117
|
-
if (g === null && e.key == null ||
|
|
118
|
-
if (n > (
|
|
116
|
+
var i, o, a, l = e.key, _ = e.type, g = t[r], w = g != null && (2 & g.__u) == 0;
|
|
117
|
+
if (g === null && e.key == null || w && l == g.key && _ == g.type) return r;
|
|
118
|
+
if (n > (w ? 1 : 0)) {
|
|
119
119
|
for (i = r - 1, o = r + 1; i >= 0 || o < t.length; ) if ((g = t[a = i >= 0 ? i-- : o++]) != null && (2 & g.__u) == 0 && l == g.key && _ == g.type) return a;
|
|
120
120
|
}
|
|
121
121
|
return -1;
|
|
@@ -123,7 +123,7 @@ function Ts(e, t, r, n) {
|
|
|
123
123
|
function Bn(e, t, r) {
|
|
124
124
|
t[0] == "-" ? e.setProperty(t, r == null ? "" : r) : e[t] = r == null ? "" : typeof r != "number" || ks.test(t) ? r : r + "px";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function tr(e, t, r, n, i) {
|
|
127
127
|
var o, a;
|
|
128
128
|
e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
|
|
129
129
|
else {
|
|
@@ -152,30 +152,30 @@ function Ln(e) {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
function Pr(e, t, r, n, i, o, a, l, _, g) {
|
|
155
|
-
var
|
|
155
|
+
var w, h, c, v, p, m, x, T, I, k, F, V, z, B, ae, ce, re, J = t.type;
|
|
156
156
|
if (t.constructor != null) return null;
|
|
157
|
-
128 & r.__u && (_ = !!(32 & r.__u), o = [l = t.__e = r.__e]), (
|
|
157
|
+
128 & r.__u && (_ = !!(32 & r.__u), o = [l = t.__e = r.__e]), (w = Y.__b) && w(t);
|
|
158
158
|
e: if (typeof J == "function") try {
|
|
159
|
-
if (
|
|
159
|
+
if (T = t.props, I = "prototype" in J && J.prototype.render, k = (w = J.contextType) && n[w.__c], F = w ? k ? k.props.value : w.__ : n, r.__c ? x = (h = t.__c = r.__c).__ = h.__E : (I ? t.__c = h = new J(T, F) : (t.__c = h = new Ye(T, F), h.constructor = J, h.render = As), k && k.sub(h), h.props = T, h.state || (h.state = {}), h.context = F, h.__n = n, c = h.__d = !0, h.__h = [], h._sb = []), I && h.__s == null && (h.__s = h.state), I && J.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = Qe({}, h.__s)), Qe(h.__s, J.getDerivedStateFromProps(T, h.__s))), v = h.props, p = h.state, h.__v = t, c) I && J.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), I && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
160
160
|
else {
|
|
161
|
-
if (I && J.getDerivedStateFromProps == null &&
|
|
162
|
-
for (t.__v != r.__v && (h.props =
|
|
161
|
+
if (I && J.getDerivedStateFromProps == null && T !== v && h.componentWillReceiveProps != null && h.componentWillReceiveProps(T, F), !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(T, h.__s, F) === !1 || t.__v == r.__v) {
|
|
162
|
+
for (t.__v != r.__v && (h.props = T, h.state = h.__s, h.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(H) {
|
|
163
163
|
H && (H.__ = t);
|
|
164
|
-
}),
|
|
164
|
+
}), V = 0; V < h._sb.length; V++) h.__h.push(h._sb[V]);
|
|
165
165
|
h._sb = [], h.__h.length && a.push(h);
|
|
166
166
|
break e;
|
|
167
167
|
}
|
|
168
|
-
h.componentWillUpdate != null && h.componentWillUpdate(
|
|
168
|
+
h.componentWillUpdate != null && h.componentWillUpdate(T, h.__s, F), I && h.componentDidUpdate != null && h.__h.push(function() {
|
|
169
169
|
h.componentDidUpdate(v, p, m);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (h.context =
|
|
173
|
-
for (h.state = h.__s, h.__d = !1,
|
|
172
|
+
if (h.context = F, h.props = T, h.__P = e, h.__e = !1, z = Y.__r, B = 0, I) {
|
|
173
|
+
for (h.state = h.__s, h.__d = !1, z && z(t), w = h.render(h.props, h.state, h.context), ae = 0; ae < h._sb.length; ae++) h.__h.push(h._sb[ae]);
|
|
174
174
|
h._sb = [];
|
|
175
175
|
} else do
|
|
176
|
-
h.__d = !1,
|
|
177
|
-
while (h.__d && ++
|
|
178
|
-
h.state = h.__s, h.getChildContext != null && (n = Qe(Qe({}, n), h.getChildContext())), I && !c && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(v, p)),
|
|
176
|
+
h.__d = !1, z && z(t), w = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
177
|
+
while (h.__d && ++B < 25);
|
|
178
|
+
h.state = h.__s, h.getChildContext != null && (n = Qe(Qe({}, n), h.getChildContext())), I && !c && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(v, p)), ce = w, w != null && w.type === Ie && w.key == null && (ce = Vi(w.props.children)), l = Fi(e, qt(ce) ? ce : [ce], t, r, n, i, o, a, l, _, g), h.base = t.__e, t.__u &= -161, h.__h.length && a.push(h), x && (h.__E = h.__ = null);
|
|
179
179
|
} catch (H) {
|
|
180
180
|
if (t.__v = null, _ || o != null) if (H.then) {
|
|
181
181
|
for (t.__u |= _ ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
@@ -188,7 +188,7 @@ function Pr(e, t, r, n, i, o, a, l, _, g) {
|
|
|
188
188
|
Y.__e(H, t, r);
|
|
189
189
|
}
|
|
190
190
|
else o == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : l = t.__e = Fs(r.__e, t, r, n, i, o, a, _, g);
|
|
191
|
-
return (
|
|
191
|
+
return (w = Y.diffed) && w(t), 128 & t.__u ? void 0 : l;
|
|
192
192
|
}
|
|
193
193
|
function kr(e) {
|
|
194
194
|
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(kr);
|
|
@@ -206,10 +206,10 @@ function Ii(e, t, r) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
function Vi(e) {
|
|
209
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e :
|
|
209
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : qt(e) ? e.map(Vi) : Qe({}, e);
|
|
210
210
|
}
|
|
211
211
|
function Fs(e, t, r, n, i, o, a, l, _) {
|
|
212
|
-
var g,
|
|
212
|
+
var g, w, h, c, v, p, m, x = r.props, T = t.props, I = t.type;
|
|
213
213
|
if (I == "svg" ? i = "http://www.w3.org/2000/svg" : I == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
214
214
|
for (g = 0; g < o.length; g++) if ((v = o[g]) && "setAttribute" in v == !!I && (I ? v.localName == I : v.nodeType == 3)) {
|
|
215
215
|
e = v, o[g] = null;
|
|
@@ -217,23 +217,23 @@ function Fs(e, t, r, n, i, o, a, l, _) {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
if (e == null) {
|
|
220
|
-
if (I == null) return document.createTextNode(
|
|
221
|
-
e = document.createElementNS(i, I,
|
|
220
|
+
if (I == null) return document.createTextNode(T);
|
|
221
|
+
e = document.createElementNS(i, I, T.is && T), l && (Y.__m && Y.__m(t, o), l = !1), o = null;
|
|
222
222
|
}
|
|
223
|
-
if (I == null)
|
|
223
|
+
if (I == null) x === T || l && e.data == T || (e.data = T);
|
|
224
224
|
else {
|
|
225
|
-
if (o = o &&
|
|
226
|
-
for (g in
|
|
225
|
+
if (o = o && zt.call(e.childNodes), x = r.props || $t, !l && o != null) for (x = {}, g = 0; g < e.attributes.length; g++) x[(v = e.attributes[g]).name] = v.value;
|
|
226
|
+
for (g in x) if (v = x[g], g != "children") {
|
|
227
227
|
if (g == "dangerouslySetInnerHTML") h = v;
|
|
228
|
-
else if (!(g in
|
|
229
|
-
if (g == "value" && "defaultValue" in
|
|
230
|
-
|
|
228
|
+
else if (!(g in T)) {
|
|
229
|
+
if (g == "value" && "defaultValue" in T || g == "checked" && "defaultChecked" in T) continue;
|
|
230
|
+
tr(e, g, null, v, i);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
for (g in
|
|
234
|
-
if (
|
|
235
|
-
else if (h && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e,
|
|
236
|
-
l || (g = "value", I == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[g] || I == "progress" && !p || I == "option" && p !=
|
|
233
|
+
for (g in T) v = T[g], g == "children" ? c = v : g == "dangerouslySetInnerHTML" ? w = v : g == "value" ? p = v : g == "checked" ? m = v : l && typeof v != "function" || x[g] === v || tr(e, g, v, x[g], i);
|
|
234
|
+
if (w) l || h && (w.__html == h.__html || w.__html == e.innerHTML) || (e.innerHTML = w.__html), t.__k = [];
|
|
235
|
+
else if (h && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e, qt(c) ? c : [c], t, r, n, I == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, a, o ? o[0] : r.__k && It(r, 0), l, _), o != null) for (g = o.length; g--; ) Dr(o[g]);
|
|
236
|
+
l || (g = "value", I == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[g] || I == "progress" && !p || I == "option" && p != x[g]) && tr(e, g, p, x[g], i), g = "checked", m != null && m != e[g] && tr(e, g, m, x[g], i));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
@@ -265,7 +265,7 @@ function As(e, t, r) {
|
|
|
265
265
|
}
|
|
266
266
|
function wt(e, t, r) {
|
|
267
267
|
var n, i, o, a;
|
|
268
|
-
t == document && (t = document.documentElement), Y.__ && Y.__(e, t), i = (n = typeof r == "function") ? null : r && r.__k || t.__k, o = [], a = [], Pr(t, e = (!n && r || t).__k = et(Ie, null, [e]), i ||
|
|
268
|
+
t == document && (t = document.documentElement), Y.__ && Y.__(e, t), i = (n = typeof r == "function") ? null : r && r.__k || t.__k, o = [], a = [], Pr(t, e = (!n && r || t).__k = et(Ie, null, [e]), i || $t, $t, t.namespaceURI, !n && r ? [r] : i ? null : t.firstChild ? zt.call(t.childNodes) : null, o, !n && r ? r : i ? i.__e : t.firstChild, n, a), Ii(o, e, a);
|
|
269
269
|
}
|
|
270
270
|
function Mi(e, t) {
|
|
271
271
|
wt(e, t, Mi);
|
|
@@ -273,7 +273,7 @@ function Mi(e, t) {
|
|
|
273
273
|
function Is(e, t, r) {
|
|
274
274
|
var n, i, o, a, l = Qe({}, e.props);
|
|
275
275
|
for (o in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) o == "key" ? n = t[o] : o == "ref" ? i = t[o] : l[o] = t[o] === void 0 && a != null ? a[o] : t[o];
|
|
276
|
-
return arguments.length > 2 && (l.children = arguments.length > 3 ?
|
|
276
|
+
return arguments.length > 2 && (l.children = arguments.length > 3 ? zt.call(arguments, 2) : r), Bt(e.type, l, n || e.key, i || e.ref, null);
|
|
277
277
|
}
|
|
278
278
|
function Br(e) {
|
|
279
279
|
function t(r) {
|
|
@@ -298,7 +298,7 @@ function Br(e) {
|
|
|
298
298
|
return r.children(n);
|
|
299
299
|
}).contextType = t, t;
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
zt = ki.slice, Y = { __e: function(e, t, r, n) {
|
|
302
302
|
for (var i, o, a; t = t.__; ) if ((i = t.__c) && !i.__) try {
|
|
303
303
|
if ((o = i.constructor) && o.getDerivedStateFromError != null && (i.setState(o.getDerivedStateFromError(e)), a = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, n || {}), a = i.__d), a) return i.__E = i;
|
|
304
304
|
} catch (l) {
|
|
@@ -405,14 +405,14 @@ function pr(e, t, r) {
|
|
|
405
405
|
}], n.__c = he, !he.__f)) {
|
|
406
406
|
var i = function(l, _, g) {
|
|
407
407
|
if (!n.__c.__H) return !0;
|
|
408
|
-
var
|
|
408
|
+
var w = n.__c.__H.__.filter(function(c) {
|
|
409
409
|
return !!c.__c;
|
|
410
410
|
});
|
|
411
|
-
if (
|
|
411
|
+
if (w.every(function(c) {
|
|
412
412
|
return !c.__N;
|
|
413
413
|
})) return !o || o.call(this, l, _, g);
|
|
414
414
|
var h = n.__c.props !== l;
|
|
415
|
-
return
|
|
415
|
+
return w.forEach(function(c) {
|
|
416
416
|
if (c.__N) {
|
|
417
417
|
var v = c.__[0];
|
|
418
418
|
c.__ = c.__N, c.__N = void 0, v !== c.__[0] && (h = !0);
|
|
@@ -423,8 +423,8 @@ function pr(e, t, r) {
|
|
|
423
423
|
var o = he.shouldComponentUpdate, a = he.componentWillUpdate;
|
|
424
424
|
he.componentWillUpdate = function(l, _, g) {
|
|
425
425
|
if (this.__e) {
|
|
426
|
-
var
|
|
427
|
-
o = void 0, i(l, _, g), o =
|
|
426
|
+
var w = o;
|
|
427
|
+
o = void 0, i(l, _, g), o = w;
|
|
428
428
|
}
|
|
429
429
|
a && a.call(this, l, _, g);
|
|
430
430
|
}, he.shouldComponentUpdate = i;
|
|
@@ -440,7 +440,7 @@ function dt(e, t) {
|
|
|
440
440
|
!ve.__s && $r(r.__H, t) && (r.__ = e, r.u = t, he.__h.push(r));
|
|
441
441
|
}
|
|
442
442
|
function $e(e) {
|
|
443
|
-
return Vt = 5,
|
|
443
|
+
return Vt = 5, Zt(function() {
|
|
444
444
|
return { current: e };
|
|
445
445
|
}, []);
|
|
446
446
|
}
|
|
@@ -457,16 +457,16 @@ function Lr(e, t, r) {
|
|
|
457
457
|
};
|
|
458
458
|
}, r == null ? r : r.concat(e));
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Zt(e, t) {
|
|
461
461
|
var r = Ct(st++, 7);
|
|
462
462
|
return $r(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
|
|
463
463
|
}
|
|
464
464
|
function Ur(e, t) {
|
|
465
|
-
return Vt = 8,
|
|
465
|
+
return Vt = 8, Zt(function() {
|
|
466
466
|
return e;
|
|
467
467
|
}, t);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Gt(e) {
|
|
470
470
|
var t = he.context[e.__c], r = Ct(st++, 9);
|
|
471
471
|
return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(he)), t.props.value) : e.__;
|
|
472
472
|
}
|
|
@@ -560,12 +560,12 @@ function Pi(e, t) {
|
|
|
560
560
|
return typeof t == "function" ? t(e) : t;
|
|
561
561
|
}
|
|
562
562
|
const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback: r }) => /* @__PURE__ */ s(jr.Provider, { value: { perform: e, setIsProcessingCallback: r }, children: t }), yt = () => {
|
|
563
|
-
const e =
|
|
563
|
+
const e = Gt(jr);
|
|
564
564
|
if (!e)
|
|
565
565
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
566
566
|
return { perform: e.perform };
|
|
567
567
|
}, Bs = () => {
|
|
568
|
-
const e =
|
|
568
|
+
const e = Gt(jr);
|
|
569
569
|
if (!e)
|
|
570
570
|
throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
|
|
571
571
|
return { setIsProcessingCallback: e.setIsProcessingCallback };
|
|
@@ -591,7 +591,7 @@ const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
591
591
|
LEFT: "LEFT",
|
|
592
592
|
CENTER: "CENTER",
|
|
593
593
|
RIGHT: "RIGHT"
|
|
594
|
-
},
|
|
594
|
+
}, rr = {
|
|
595
595
|
ASPECT_FILL: "ASPECT_FILL",
|
|
596
596
|
ASPECT_FIT: "ASPECT_FIT",
|
|
597
597
|
FILL: "FILL"
|
|
@@ -602,12 +602,12 @@ const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
602
602
|
SELECTOR_BUTTONS: "selector_buttons",
|
|
603
603
|
SELECTOR_DROPDOWN: "selector_dropdown",
|
|
604
604
|
MULTI_SELECTOR_DROPDOWN: "multi_selector_dropdown"
|
|
605
|
-
},
|
|
605
|
+
}, nr = {
|
|
606
606
|
FREE_TEXT: "FREE_TEXT",
|
|
607
607
|
EMAIL: "EMAIL",
|
|
608
608
|
NUMBER: "NUMBER",
|
|
609
609
|
SECURE: "SECURE"
|
|
610
|
-
},
|
|
610
|
+
}, Yt = "#005fcc", ar = "idv-gui", lr = {
|
|
611
611
|
DECODING_FAILED: "DECODING_FAILED"
|
|
612
612
|
}, vr = {
|
|
613
613
|
text: "text",
|
|
@@ -641,17 +641,17 @@ const Ws = (e, t) => e.reduce((r, n) => {
|
|
|
641
641
|
if (n.answerType === vr.text && (i = n.property) != null && i.id) {
|
|
642
642
|
const l = t.find((_) => _.name === n.property.id);
|
|
643
643
|
if (l != null && l.string)
|
|
644
|
-
return
|
|
644
|
+
return Z(y({}, r), { [n.id]: l.string });
|
|
645
645
|
}
|
|
646
646
|
if (n.answerType === vr.selector && (o = n.property) != null && o.id) {
|
|
647
647
|
const l = t.find((_) => _.name === n.property.id);
|
|
648
648
|
if (l != null && l.string)
|
|
649
|
-
return
|
|
649
|
+
return Z(y({}, r), { [n.id]: l.string });
|
|
650
650
|
}
|
|
651
651
|
if (n.answerType === vr.multiSelector && (a = n.property) != null && a.id) {
|
|
652
652
|
const l = t.find((_) => _.name === n.property.id);
|
|
653
653
|
if (l != null && l.array)
|
|
654
|
-
return
|
|
654
|
+
return Z(y({}, r), { [n.id]: l.array });
|
|
655
655
|
}
|
|
656
656
|
return r;
|
|
657
657
|
}, {}), Bi = (e) => new Promise((t, r) => {
|
|
@@ -674,14 +674,14 @@ const Ws = (e, t) => e.reduce((r, n) => {
|
|
|
674
674
|
const t = $e(null), r = X(e) || "#000000", n = 60, i = 5, o = 0.75, a = (n - i) / 2, l = 2 * Math.PI * a, _ = 1 - o, g = 360 / 1e3;
|
|
675
675
|
return We(() => {
|
|
676
676
|
if (!t.current) return;
|
|
677
|
-
let
|
|
677
|
+
let w = !0, h = 0, c = performance.now();
|
|
678
678
|
function v(p) {
|
|
679
|
-
if (!
|
|
679
|
+
if (!w) return;
|
|
680
680
|
const m = p - c;
|
|
681
681
|
c = p, h = (h + g * m) % 360, t.current && (t.current.style.transform = `rotate(${h}deg)`), requestAnimationFrame(v);
|
|
682
682
|
}
|
|
683
683
|
return requestAnimationFrame(v), () => {
|
|
684
|
-
|
|
684
|
+
w = !1;
|
|
685
685
|
};
|
|
686
686
|
}, []), /* @__PURE__ */ s("svg", { ref: t, width: n, height: n, viewBox: `0 0 ${n} ${n}`, children: /* @__PURE__ */ s(
|
|
687
687
|
"circle",
|
|
@@ -1162,15 +1162,15 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1162
1162
|
imageId: e,
|
|
1163
1163
|
imageURL: t,
|
|
1164
1164
|
base64: r,
|
|
1165
|
-
contentMode: n =
|
|
1165
|
+
contentMode: n = rr.ASPECT_FILL,
|
|
1166
1166
|
cornerRadius: i,
|
|
1167
1167
|
backgroundColor: o
|
|
1168
1168
|
}) => {
|
|
1169
1169
|
const a = (h) => {
|
|
1170
|
-
if (h ===
|
|
1171
|
-
if (h ===
|
|
1172
|
-
if (h ===
|
|
1173
|
-
}, [l, _] = Fe(!0), g = l && t,
|
|
1170
|
+
if (h === rr.ASPECT_FILL) return "cover";
|
|
1171
|
+
if (h === rr.ASPECT_FIT) return "contain";
|
|
1172
|
+
if (h === rr.FILL) return "fill";
|
|
1173
|
+
}, [l, _] = Fe(!0), g = l && t, w = () => {
|
|
1174
1174
|
_(!1);
|
|
1175
1175
|
};
|
|
1176
1176
|
if (r)
|
|
@@ -1217,7 +1217,7 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1217
1217
|
display: g ? "none" : "block"
|
|
1218
1218
|
},
|
|
1219
1219
|
src: t,
|
|
1220
|
-
onLoad:
|
|
1220
|
+
onLoad: w
|
|
1221
1221
|
}
|
|
1222
1222
|
)
|
|
1223
1223
|
] });
|
|
@@ -1234,7 +1234,7 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1234
1234
|
height: "100%",
|
|
1235
1235
|
width: "100%"
|
|
1236
1236
|
},
|
|
1237
|
-
children: /* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Ae,
|
|
1237
|
+
children: /* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Ae, y({}, e)) })
|
|
1238
1238
|
}
|
|
1239
1239
|
), ga = {
|
|
1240
1240
|
display: "flex",
|
|
@@ -1255,7 +1255,7 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1255
1255
|
highlightColor: a
|
|
1256
1256
|
}) => {
|
|
1257
1257
|
var c;
|
|
1258
|
-
const [l, _] = Fe(!1), g = l && a ? a : i, { perform:
|
|
1258
|
+
const [l, _] = Fe(!1), g = l && a ? a : i, { perform: w } = yt();
|
|
1259
1259
|
return /* @__PURE__ */ s(
|
|
1260
1260
|
"button",
|
|
1261
1261
|
{
|
|
@@ -1264,10 +1264,10 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1264
1264
|
"data-test": e,
|
|
1265
1265
|
onClick: () => {
|
|
1266
1266
|
const v = JSON.parse(JSON.stringify(t));
|
|
1267
|
-
zr(v),
|
|
1267
|
+
zr(v), w(v);
|
|
1268
1268
|
},
|
|
1269
1269
|
className: "hover-button",
|
|
1270
|
-
style:
|
|
1270
|
+
style: Z(y(y({}, ga), o && { borderRadius: o }), {
|
|
1271
1271
|
backgroundColor: (c = X(g)) != null ? c : "transparent"
|
|
1272
1272
|
}),
|
|
1273
1273
|
onMouseEnter: () => _(!0),
|
|
@@ -1283,10 +1283,10 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1283
1283
|
width: "24px",
|
|
1284
1284
|
height: "24px"
|
|
1285
1285
|
},
|
|
1286
|
-
children: /* @__PURE__ */ s(Ae,
|
|
1286
|
+
children: /* @__PURE__ */ s(Ae, y({}, r))
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
|
-
n && /* @__PURE__ */ s("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ s(be,
|
|
1289
|
+
n && /* @__PURE__ */ s("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ s(be, y({}, n)) })
|
|
1290
1290
|
]
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
@@ -1303,7 +1303,7 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1303
1303
|
},
|
|
1304
1304
|
"data-ui": "gui-header",
|
|
1305
1305
|
part: "gui-header",
|
|
1306
|
-
children: /* @__PURE__ */ s("div", { children: e && /* @__PURE__ */ s(ma,
|
|
1306
|
+
children: /* @__PURE__ */ s("div", { children: e && /* @__PURE__ */ s(ma, y({ dataTestId: "close-btn" }, e)) })
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
1309
|
function ba(e) {
|
|
@@ -1313,9 +1313,9 @@ function ba(e) {
|
|
|
1313
1313
|
for (const o of e.matchAll(t)) {
|
|
1314
1314
|
const [a, l, _] = o, g = (i = o.index) != null ? i : 0;
|
|
1315
1315
|
g > n && r.push(e.slice(n, g));
|
|
1316
|
-
const
|
|
1316
|
+
const w = _.startsWith("http") ? _ : `https://${_}`;
|
|
1317
1317
|
r.push(
|
|
1318
|
-
/* @__PURE__ */ s("a", { href:
|
|
1318
|
+
/* @__PURE__ */ s("a", { href: w, target: "_blank", rel: "noopener noreferrer", children: l }, g)
|
|
1319
1319
|
), n = g + a.length;
|
|
1320
1320
|
}
|
|
1321
1321
|
return n < e.length && r.push(e.slice(n)), r;
|
|
@@ -1358,14 +1358,14 @@ const be = ({
|
|
|
1358
1358
|
borderColor: l,
|
|
1359
1359
|
borderWidth: _,
|
|
1360
1360
|
type: g = "RESPONSE_BODY",
|
|
1361
|
-
onClick:
|
|
1361
|
+
onClick: w
|
|
1362
1362
|
}) => {
|
|
1363
|
-
var
|
|
1363
|
+
var T, I;
|
|
1364
1364
|
const [h, c] = Fe(!1), v = h && X(o) ? o : n, { perform: p } = yt(), m = (k) => {
|
|
1365
|
-
if (
|
|
1366
|
-
const
|
|
1367
|
-
zr(
|
|
1368
|
-
},
|
|
1365
|
+
if (w && w(k), g !== "RESPONSE_BODY") return;
|
|
1366
|
+
const F = JSON.parse(JSON.stringify(r));
|
|
1367
|
+
zr(F), p(F, Or.DATA);
|
|
1368
|
+
}, x = {
|
|
1369
1369
|
height: "50px",
|
|
1370
1370
|
width: "100%",
|
|
1371
1371
|
padding: "10px 16px",
|
|
@@ -1380,12 +1380,12 @@ const be = ({
|
|
|
1380
1380
|
gap: 5,
|
|
1381
1381
|
borderRadius: i || 0,
|
|
1382
1382
|
borderStyle: l && _ ? "solid" : void 0,
|
|
1383
|
-
backgroundColor: (
|
|
1383
|
+
backgroundColor: (T = X(v)) != null ? T : "transparent",
|
|
1384
1384
|
borderColor: (I = X(l)) != null ? I : "none",
|
|
1385
1385
|
borderWidth: _ != null ? _ : 0,
|
|
1386
1386
|
overflow: "hidden",
|
|
1387
1387
|
transition: ".3s",
|
|
1388
|
-
outlineColor:
|
|
1388
|
+
outlineColor: Yt
|
|
1389
1389
|
};
|
|
1390
1390
|
return /* @__PURE__ */ s(
|
|
1391
1391
|
"button",
|
|
@@ -1395,18 +1395,18 @@ const be = ({
|
|
|
1395
1395
|
type: g === "FORM" ? "submit" : "button",
|
|
1396
1396
|
"data-test": a,
|
|
1397
1397
|
onClick: m,
|
|
1398
|
-
style:
|
|
1398
|
+
style: x,
|
|
1399
1399
|
onMouseEnter: () => c(!0),
|
|
1400
1400
|
onMouseLeave: () => c(!1),
|
|
1401
1401
|
children: [
|
|
1402
|
-
t && /* @__PURE__ */ s(Ae,
|
|
1402
|
+
t && /* @__PURE__ */ s(Ae, y({}, t)),
|
|
1403
1403
|
e && /* @__PURE__ */ s(
|
|
1404
1404
|
"div",
|
|
1405
1405
|
{
|
|
1406
1406
|
style: {
|
|
1407
1407
|
flexGrow: t ? 0 : 1
|
|
1408
1408
|
},
|
|
1409
|
-
children: /* @__PURE__ */ s(be,
|
|
1409
|
+
children: /* @__PURE__ */ s(be, y({}, e))
|
|
1410
1410
|
}
|
|
1411
1411
|
)
|
|
1412
1412
|
]
|
|
@@ -1414,7 +1414,7 @@ const be = ({
|
|
|
1414
1414
|
);
|
|
1415
1415
|
}, wa = (r) => {
|
|
1416
1416
|
var n = r, { items: e } = n, t = _t(n, ["items"]);
|
|
1417
|
-
return /* @__PURE__ */ s("div", { part: "gui-buttons", "data-ui": "gui-buttons", style:
|
|
1417
|
+
return /* @__PURE__ */ s("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: y(y({}, {
|
|
1418
1418
|
display: "flex",
|
|
1419
1419
|
flexDirection: "row",
|
|
1420
1420
|
flexWrap: "wrap",
|
|
@@ -1428,7 +1428,7 @@ const be = ({
|
|
|
1428
1428
|
paddingTop: "20px"
|
|
1429
1429
|
}), t), children: e.map((o) => {
|
|
1430
1430
|
var a;
|
|
1431
|
-
return /* @__PURE__ */ s(cr,
|
|
1431
|
+
return /* @__PURE__ */ s(cr, y({ dataTestId: "button-" + ((a = o.title) == null ? void 0 : a.text) }, o), js());
|
|
1432
1432
|
}) });
|
|
1433
1433
|
}, ut = ({
|
|
1434
1434
|
children: e,
|
|
@@ -1460,7 +1460,7 @@ const be = ({
|
|
|
1460
1460
|
part: "gui-base-container",
|
|
1461
1461
|
"data-ui": "gui-base-container",
|
|
1462
1462
|
id: "base-container",
|
|
1463
|
-
style:
|
|
1463
|
+
style: y({}, l),
|
|
1464
1464
|
children: [
|
|
1465
1465
|
t && /* @__PURE__ */ s(
|
|
1466
1466
|
"div",
|
|
@@ -1487,7 +1487,7 @@ const be = ({
|
|
|
1487
1487
|
width: "100%",
|
|
1488
1488
|
height: a
|
|
1489
1489
|
},
|
|
1490
|
-
children: /* @__PURE__ */ s(_a,
|
|
1490
|
+
children: /* @__PURE__ */ s(_a, y({}, r))
|
|
1491
1491
|
}
|
|
1492
1492
|
)
|
|
1493
1493
|
]
|
|
@@ -1543,7 +1543,7 @@ const be = ({
|
|
|
1543
1543
|
flexDirection: "column"
|
|
1544
1544
|
},
|
|
1545
1545
|
children: [
|
|
1546
|
-
r && /* @__PURE__ */ s("div", { style: Ls, children: /* @__PURE__ */ s(Ae,
|
|
1546
|
+
r && /* @__PURE__ */ s("div", { style: Ls, children: /* @__PURE__ */ s(Ae, y({}, r)) }),
|
|
1547
1547
|
(n == null ? void 0 : n.text) && /* @__PURE__ */ s(
|
|
1548
1548
|
"div",
|
|
1549
1549
|
{
|
|
@@ -1568,12 +1568,12 @@ const be = ({
|
|
|
1568
1568
|
alignItems: "center",
|
|
1569
1569
|
alignContent: "center"
|
|
1570
1570
|
},
|
|
1571
|
-
children: n && /* @__PURE__ */ s(be,
|
|
1571
|
+
children: n && /* @__PURE__ */ s(be, y({}, n))
|
|
1572
1572
|
}
|
|
1573
1573
|
)
|
|
1574
1574
|
}
|
|
1575
1575
|
),
|
|
1576
|
-
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ s(_r,
|
|
1576
|
+
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ s(_r, y({}, i)) })
|
|
1577
1577
|
]
|
|
1578
1578
|
}
|
|
1579
1579
|
) });
|
|
@@ -1607,13 +1607,13 @@ const be = ({
|
|
|
1607
1607
|
part: "gui-info-screen-container",
|
|
1608
1608
|
"data-ui": "gui-info-screen-container",
|
|
1609
1609
|
id: "info-screen-container",
|
|
1610
|
-
style:
|
|
1610
|
+
style: Z(y({}, xa), {
|
|
1611
1611
|
justifyContent: n ? "flex-start" : "center"
|
|
1612
1612
|
}),
|
|
1613
1613
|
children: [
|
|
1614
|
-
n && /* @__PURE__ */ s("div", { style: ya, children: /* @__PURE__ */ s(Ae,
|
|
1615
|
-
e && /* @__PURE__ */ s("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ s(be,
|
|
1616
|
-
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ s(_r,
|
|
1614
|
+
n && /* @__PURE__ */ s("div", { style: ya, children: /* @__PURE__ */ s(Ae, y({}, n)) }),
|
|
1615
|
+
e && /* @__PURE__ */ s("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
1616
|
+
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ s(_r, y({}, i)) })
|
|
1617
1617
|
]
|
|
1618
1618
|
}
|
|
1619
1619
|
) }) }), Sa = ({ indicatorColor: e = "black" }) => /* @__PURE__ */ s(Ie, { children: /* @__PURE__ */ s(Ui, { indicatorColor: e }) }), Xn = ({
|
|
@@ -1647,7 +1647,7 @@ const be = ({
|
|
|
1647
1647
|
"div",
|
|
1648
1648
|
{
|
|
1649
1649
|
className: "details-item",
|
|
1650
|
-
style:
|
|
1650
|
+
style: Z(y({}, {
|
|
1651
1651
|
display: "flex",
|
|
1652
1652
|
alignItems: "flex-start",
|
|
1653
1653
|
justifyContent: "space-between",
|
|
@@ -1666,12 +1666,12 @@ const be = ({
|
|
|
1666
1666
|
flex: "0 1 auto"
|
|
1667
1667
|
},
|
|
1668
1668
|
children: [
|
|
1669
|
-
/* @__PURE__ */ s("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ s(be,
|
|
1670
|
-
/* @__PURE__ */ s("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ s(_r,
|
|
1669
|
+
/* @__PURE__ */ s("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
1670
|
+
/* @__PURE__ */ s("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ s(_r, y({}, t)) })
|
|
1671
1671
|
]
|
|
1672
1672
|
}
|
|
1673
1673
|
),
|
|
1674
|
-
/* @__PURE__ */ s("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ s(Ae,
|
|
1674
|
+
/* @__PURE__ */ s("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ s(Ae, y({}, r)) })
|
|
1675
1675
|
]
|
|
1676
1676
|
}
|
|
1677
1677
|
), Oa = {
|
|
@@ -1682,11 +1682,11 @@ const be = ({
|
|
|
1682
1682
|
"div",
|
|
1683
1683
|
{
|
|
1684
1684
|
className: "details",
|
|
1685
|
-
style:
|
|
1685
|
+
style: Z(y({}, Oa), {
|
|
1686
1686
|
backgroundColor: X(t) || "white",
|
|
1687
1687
|
borderRadius: r
|
|
1688
1688
|
}),
|
|
1689
|
-
children: e.map((n, i) => /* @__PURE__ */ s(ka,
|
|
1689
|
+
children: e.map((n, i) => /* @__PURE__ */ s(ka, y({ isLastChild: i === e.length - 1 }, n), i))
|
|
1690
1690
|
}
|
|
1691
1691
|
), Fa = ({
|
|
1692
1692
|
title: e,
|
|
@@ -1712,8 +1712,8 @@ const be = ({
|
|
|
1712
1712
|
},
|
|
1713
1713
|
ref: a,
|
|
1714
1714
|
children: [
|
|
1715
|
-
/* @__PURE__ */ s("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ s(be,
|
|
1716
|
-
n && /* @__PURE__ */ s(Ta,
|
|
1715
|
+
/* @__PURE__ */ s("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ s(be, y({}, e)) }),
|
|
1716
|
+
n && /* @__PURE__ */ s(Ta, y({}, n))
|
|
1717
1717
|
]
|
|
1718
1718
|
}
|
|
1719
1719
|
) });
|
|
@@ -1812,7 +1812,7 @@ function Zi(e, t, r) {
|
|
|
1812
1812
|
return Zi(n, t, r);
|
|
1813
1813
|
}), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function Lt() {
|
|
1816
1816
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1817
1817
|
}
|
|
1818
1818
|
function Gi(e) {
|
|
@@ -1838,7 +1838,7 @@ function At() {
|
|
|
1838
1838
|
Y.unmount = function(e) {
|
|
1839
1839
|
var t = e.__c;
|
|
1840
1840
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), ei && ei(e);
|
|
1841
|
-
}, (
|
|
1841
|
+
}, (Lt.prototype = new Ye()).__c = function(e, t) {
|
|
1842
1842
|
var r = t.__c, n = this;
|
|
1843
1843
|
n.o == null && (n.o = []), n.o.push(r);
|
|
1844
1844
|
var i = Gi(n.__v), o = !1, a = function() {
|
|
@@ -1856,9 +1856,9 @@ Y.unmount = function(e) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
1858
|
n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
|
|
1859
|
-
},
|
|
1859
|
+
}, Lt.prototype.componentWillUnmount = function() {
|
|
1860
1860
|
this.o = [];
|
|
1861
|
-
},
|
|
1861
|
+
}, Lt.prototype.render = function(e, t) {
|
|
1862
1862
|
if (this.__b) {
|
|
1863
1863
|
if (this.__v.__k) {
|
|
1864
1864
|
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
@@ -1981,21 +1981,21 @@ Y.diffed = function(e) {
|
|
|
1981
1981
|
};
|
|
1982
1982
|
var eo = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1983
1983
|
return Xr.__n[e.__c].props.value;
|
|
1984
|
-
}, useCallback: Ur, useContext:
|
|
1984
|
+
}, useCallback: Ur, useContext: Gt, useDebugValue: Hr, useDeferredValue: Gr, useEffect: We, useId: Wr, useImperativeHandle: Lr, useInsertionEffect: Kr, useLayoutEffect: dt, useMemo: Zt, useReducer: pr, useRef: $e, useState: Fe, useSyncExternalStore: qr, useTransition: Yr } } }, $a = "18.3.1";
|
|
1985
1985
|
function to(e) {
|
|
1986
1986
|
return et.bind(null, e);
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Kt(e) {
|
|
1989
1989
|
return !!e && e.$$typeof === Xi;
|
|
1990
1990
|
}
|
|
1991
1991
|
function ro(e) {
|
|
1992
|
-
return
|
|
1992
|
+
return Kt(e) && e.type === Ie;
|
|
1993
1993
|
}
|
|
1994
1994
|
function no(e) {
|
|
1995
1995
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
1996
1996
|
}
|
|
1997
1997
|
function io(e) {
|
|
1998
|
-
return
|
|
1998
|
+
return Kt(e) ? Is.apply(null, arguments) : e;
|
|
1999
1999
|
}
|
|
2000
2000
|
function oo(e) {
|
|
2001
2001
|
return !!e.__k && (wt(null, e), !0);
|
|
@@ -2007,7 +2007,7 @@ var ao = function(e, t) {
|
|
|
2007
2007
|
return e(t);
|
|
2008
2008
|
}, lo = function(e, t) {
|
|
2009
2009
|
return e(t);
|
|
2010
|
-
}, co = Ie, uo =
|
|
2010
|
+
}, co = Ie, uo = Kt, te = { useState: Fe, useId: Wr, useReducer: pr, useEffect: We, useLayoutEffect: dt, useInsertionEffect: Kr, useTransition: Yr, useDeferredValue: Gr, useSyncExternalStore: qr, startTransition: Zr, useRef: $e, useImperativeHandle: Lr, useMemo: Zt, useCallback: Ur, useContext: Gt, useDebugValue: Hr, version: "18.3.1", Children: zi, render: Ji, hydrate: Qi, unmountComponentAtNode: oo, createPortal: Ki, createElement: et, createContext: Br, createFactory: to, cloneElement: io, createRef: Oi, Fragment: Ie, isValidElement: Kt, isElement: uo, isFragment: ro, isMemo: no, findDOMNode: so, Component: Ye, PureComponent: dr, memo: $i, forwardRef: ji, flushSync: lo, unstable_batchedUpdates: ao, StrictMode: co, Suspense: Lt, SuspenseList: At, lazy: Yi, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: eo };
|
|
2011
2011
|
const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2012
2012
|
__proto__: null,
|
|
2013
2013
|
Children: zi,
|
|
@@ -2015,7 +2015,7 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2015
2015
|
Fragment: Ie,
|
|
2016
2016
|
PureComponent: dr,
|
|
2017
2017
|
StrictMode: co,
|
|
2018
|
-
Suspense:
|
|
2018
|
+
Suspense: Lt,
|
|
2019
2019
|
SuspenseList: At,
|
|
2020
2020
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: eo,
|
|
2021
2021
|
cloneElement: io,
|
|
@@ -2032,7 +2032,7 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2032
2032
|
isElement: uo,
|
|
2033
2033
|
isFragment: ro,
|
|
2034
2034
|
isMemo: no,
|
|
2035
|
-
isValidElement:
|
|
2035
|
+
isValidElement: Kt,
|
|
2036
2036
|
lazy: Yi,
|
|
2037
2037
|
memo: $i,
|
|
2038
2038
|
render: Ji,
|
|
@@ -2040,7 +2040,7 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2040
2040
|
unmountComponentAtNode: oo,
|
|
2041
2041
|
unstable_batchedUpdates: ao,
|
|
2042
2042
|
useCallback: Ur,
|
|
2043
|
-
useContext:
|
|
2043
|
+
useContext: Gt,
|
|
2044
2044
|
useDebugValue: Hr,
|
|
2045
2045
|
useDeferredValue: Gr,
|
|
2046
2046
|
useEffect: We,
|
|
@@ -2049,7 +2049,7 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2049
2049
|
useImperativeHandle: Lr,
|
|
2050
2050
|
useInsertionEffect: Kr,
|
|
2051
2051
|
useLayoutEffect: dt,
|
|
2052
|
-
useMemo:
|
|
2052
|
+
useMemo: Zt,
|
|
2053
2053
|
useReducer: pr,
|
|
2054
2054
|
useRef: $e,
|
|
2055
2055
|
useState: Fe,
|
|
@@ -2057,9 +2057,9 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2057
2057
|
useTransition: Yr,
|
|
2058
2058
|
version: $a
|
|
2059
2059
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2060
|
-
var
|
|
2060
|
+
var Xt = (e) => e.type === "checkbox", bt = (e) => e instanceof Date, Re = (e) => e == null;
|
|
2061
2061
|
const fo = (e) => typeof e == "object";
|
|
2062
|
-
var Se = (e) => !Re(e) && !Array.isArray(e) && fo(e) && !bt(e), ho = (e) => Se(e) && e.target ?
|
|
2062
|
+
var Se = (e) => !Re(e) && !Array.isArray(e) && fo(e) && !bt(e), ho = (e) => Se(e) && e.target ? Xt(e.target) ? e.target.checked : e.target.value : e, za = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, po = (e, t) => e.has(za(t)), qa = (e) => {
|
|
2063
2063
|
const t = e.constructor && e.constructor.prototype;
|
|
2064
2064
|
return Se(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2065
2065
|
}, Jr = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
@@ -2078,7 +2078,7 @@ function Oe(e) {
|
|
|
2078
2078
|
return e;
|
|
2079
2079
|
return t;
|
|
2080
2080
|
}
|
|
2081
|
-
var gr = (e) => /^\w*$/.test(e), Ce = (e) => e === void 0, Qr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], en = (e) => Qr(e.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
2081
|
+
var gr = (e) => /^\w*$/.test(e), Ce = (e) => e === void 0, Qr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], en = (e) => Qr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), M = (e, t, r) => {
|
|
2082
2082
|
if (!t || !Se(e))
|
|
2083
2083
|
return r;
|
|
2084
2084
|
const n = (gr(t) ? [t] : en(t)).reduce((i, o) => Re(i) ? i : i[o], e);
|
|
@@ -2149,13 +2149,13 @@ function Za(e) {
|
|
|
2149
2149
|
formState: _.current,
|
|
2150
2150
|
exact: o,
|
|
2151
2151
|
callback: (g) => {
|
|
2152
|
-
!n && l(
|
|
2152
|
+
!n && l(y(y({}, r._formState), g));
|
|
2153
2153
|
}
|
|
2154
2154
|
}), [i, n, o]), te.useEffect(() => {
|
|
2155
2155
|
_.current.isValid && r._setValid(!0);
|
|
2156
2156
|
}, [r]), te.useMemo(() => go(a, r, _.current, !1), [a, r]);
|
|
2157
2157
|
}
|
|
2158
|
-
var He = (e) => typeof e == "string", mo = (e, t, r, n, i) => He(e) ? (n && t.watch.add(e),
|
|
2158
|
+
var He = (e) => typeof e == "string", mo = (e, t, r, n, i) => He(e) ? (n && t.watch.add(e), M(r, e, i)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), M(r, o))) : (n && (t.watchAll = !0), r), Ir = (e) => Re(e) || !fo(e);
|
|
2159
2159
|
function it(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
2160
2160
|
if (Ir(e) || Ir(t))
|
|
2161
2161
|
return e === t;
|
|
@@ -2180,7 +2180,7 @@ function it(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
2180
2180
|
return !0;
|
|
2181
2181
|
}
|
|
2182
2182
|
function Ga(e) {
|
|
2183
|
-
const t = tn(), { control: r = t.control, name: n, defaultValue: i, disabled: o, exact: a, compute: l } = e || {}, _ = te.useRef(i), g = te.useRef(l),
|
|
2183
|
+
const t = tn(), { control: r = t.control, name: n, defaultValue: i, disabled: o, exact: a, compute: l } = e || {}, _ = te.useRef(i), g = te.useRef(l), w = te.useRef(void 0);
|
|
2184
2184
|
g.current = l;
|
|
2185
2185
|
const h = te.useMemo(() => r._getWatch(n, _.current), [r, n]), [c, v] = te.useState(g.current ? g.current(h) : h);
|
|
2186
2186
|
return rn(() => r._subscribe({
|
|
@@ -2193,8 +2193,8 @@ function Ga(e) {
|
|
|
2193
2193
|
if (!o) {
|
|
2194
2194
|
const m = mo(n, r._names, p.values || r._formValues, !1, _.current);
|
|
2195
2195
|
if (g.current) {
|
|
2196
|
-
const
|
|
2197
|
-
it(
|
|
2196
|
+
const x = g.current(m);
|
|
2197
|
+
it(x, w.current) || (v(x), w.current = x);
|
|
2198
2198
|
} else
|
|
2199
2199
|
v(m);
|
|
2200
2200
|
}
|
|
@@ -2202,81 +2202,81 @@ function Ga(e) {
|
|
|
2202
2202
|
}), [r, o, n, a]), te.useEffect(() => r._removeUnmounted()), c;
|
|
2203
2203
|
}
|
|
2204
2204
|
function Ya(e) {
|
|
2205
|
-
const t = tn(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o, defaultValue: a } = e, l = po(i._names.array, r), _ = te.useMemo(() =>
|
|
2205
|
+
const t = tn(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o, defaultValue: a } = e, l = po(i._names.array, r), _ = te.useMemo(() => M(i._formValues, r, M(i._defaultValues, r, a)), [i, r, a]), g = Ga({
|
|
2206
2206
|
control: i,
|
|
2207
2207
|
name: r,
|
|
2208
2208
|
defaultValue: _,
|
|
2209
2209
|
exact: !0
|
|
2210
|
-
}),
|
|
2210
|
+
}), w = Za({
|
|
2211
2211
|
control: i,
|
|
2212
2212
|
name: r,
|
|
2213
2213
|
exact: !0
|
|
2214
|
-
}), h = te.useRef(e), c = te.useRef(void 0), v = te.useRef(i.register(r,
|
|
2214
|
+
}), h = te.useRef(e), c = te.useRef(void 0), v = te.useRef(i.register(r, y(Z(y({}, e.rules), {
|
|
2215
2215
|
value: g
|
|
2216
2216
|
}), Ue(e.disabled) ? { disabled: e.disabled } : {})));
|
|
2217
2217
|
h.current = e;
|
|
2218
2218
|
const p = te.useMemo(() => Object.defineProperties({}, {
|
|
2219
2219
|
invalid: {
|
|
2220
2220
|
enumerable: !0,
|
|
2221
|
-
get: () => !!
|
|
2221
|
+
get: () => !!M(w.errors, r)
|
|
2222
2222
|
},
|
|
2223
2223
|
isDirty: {
|
|
2224
2224
|
enumerable: !0,
|
|
2225
|
-
get: () => !!
|
|
2225
|
+
get: () => !!M(w.dirtyFields, r)
|
|
2226
2226
|
},
|
|
2227
2227
|
isTouched: {
|
|
2228
2228
|
enumerable: !0,
|
|
2229
|
-
get: () => !!
|
|
2229
|
+
get: () => !!M(w.touchedFields, r)
|
|
2230
2230
|
},
|
|
2231
2231
|
isValidating: {
|
|
2232
2232
|
enumerable: !0,
|
|
2233
|
-
get: () => !!
|
|
2233
|
+
get: () => !!M(w.validatingFields, r)
|
|
2234
2234
|
},
|
|
2235
2235
|
error: {
|
|
2236
2236
|
enumerable: !0,
|
|
2237
|
-
get: () =>
|
|
2237
|
+
get: () => M(w.errors, r)
|
|
2238
2238
|
}
|
|
2239
|
-
}), [
|
|
2239
|
+
}), [w, r]), m = te.useCallback((k) => v.current.onChange({
|
|
2240
2240
|
target: {
|
|
2241
2241
|
value: ho(k),
|
|
2242
2242
|
name: r
|
|
2243
2243
|
},
|
|
2244
2244
|
type: ur.CHANGE
|
|
2245
|
-
}), [r]),
|
|
2245
|
+
}), [r]), x = te.useCallback(() => v.current.onBlur({
|
|
2246
2246
|
target: {
|
|
2247
|
-
value:
|
|
2247
|
+
value: M(i._formValues, r),
|
|
2248
2248
|
name: r
|
|
2249
2249
|
},
|
|
2250
2250
|
type: ur.BLUR
|
|
2251
|
-
}), [r, i._formValues]),
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2251
|
+
}), [r, i._formValues]), T = te.useCallback((k) => {
|
|
2252
|
+
const F = M(i._fields, r);
|
|
2253
|
+
F && k && (F._f.ref = {
|
|
2254
2254
|
focus: () => k.focus && k.focus(),
|
|
2255
2255
|
select: () => k.select && k.select(),
|
|
2256
|
-
setCustomValidity: (
|
|
2256
|
+
setCustomValidity: (V) => k.setCustomValidity(V),
|
|
2257
2257
|
reportValidity: () => k.reportValidity()
|
|
2258
2258
|
});
|
|
2259
|
-
}, [i._fields, r]), I = te.useMemo(() =>
|
|
2259
|
+
}, [i._fields, r]), I = te.useMemo(() => Z(y({
|
|
2260
2260
|
name: r,
|
|
2261
2261
|
value: g
|
|
2262
|
-
}, Ue(n) ||
|
|
2262
|
+
}, Ue(n) || w.disabled ? { disabled: w.disabled || n } : {}), {
|
|
2263
2263
|
onChange: m,
|
|
2264
|
-
onBlur:
|
|
2265
|
-
ref:
|
|
2266
|
-
}), [r, n,
|
|
2264
|
+
onBlur: x,
|
|
2265
|
+
ref: T
|
|
2266
|
+
}), [r, n, w.disabled, m, x, T, g]);
|
|
2267
2267
|
return te.useEffect(() => {
|
|
2268
|
-
const k = i._options.shouldUnregister || o,
|
|
2269
|
-
|
|
2270
|
-
const
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2268
|
+
const k = i._options.shouldUnregister || o, F = c.current;
|
|
2269
|
+
F && F !== r && !l && i.unregister(F), i.register(r, y(y({}, h.current.rules), Ue(h.current.disabled) ? { disabled: h.current.disabled } : {}));
|
|
2270
|
+
const V = (z, B) => {
|
|
2271
|
+
const ae = M(i._fields, z);
|
|
2272
|
+
ae && ae._f && (ae._f.mount = B);
|
|
2273
2273
|
};
|
|
2274
|
-
if (
|
|
2275
|
-
const
|
|
2276
|
-
pe(i._defaultValues, r,
|
|
2274
|
+
if (V(r, !0), k) {
|
|
2275
|
+
const z = Oe(M(i._options.defaultValues, r, h.current.defaultValue));
|
|
2276
|
+
pe(i._defaultValues, r, z), Ce(M(i._formValues, r)) && pe(i._formValues, r, z);
|
|
2277
2277
|
}
|
|
2278
2278
|
return !l && i.register(r), c.current = r, () => {
|
|
2279
|
-
(l ? k && !i._state.action : k) ? i.unregister(r) :
|
|
2279
|
+
(l ? k && !i._state.action : k) ? i.unregister(r) : V(r, !1);
|
|
2280
2280
|
};
|
|
2281
2281
|
}, [r, i, l, o]), te.useEffect(() => {
|
|
2282
2282
|
i._setDisabledField({
|
|
@@ -2285,16 +2285,16 @@ function Ya(e) {
|
|
|
2285
2285
|
});
|
|
2286
2286
|
}, [n, r, i]), te.useMemo(() => ({
|
|
2287
2287
|
field: I,
|
|
2288
|
-
formState:
|
|
2288
|
+
formState: w,
|
|
2289
2289
|
fieldState: p
|
|
2290
|
-
}), [I,
|
|
2290
|
+
}), [I, w, p]);
|
|
2291
2291
|
}
|
|
2292
2292
|
const vo = (e) => e.render(Ya(e));
|
|
2293
|
-
var Ka = (e, t, r, n, i) => t ?
|
|
2294
|
-
types:
|
|
2293
|
+
var Ka = (e, t, r, n, i) => t ? Z(y({}, r[e]), {
|
|
2294
|
+
types: Z(y({}, r[e] && r[e].types ? r[e].types : {}), {
|
|
2295
2295
|
[n]: i || !0
|
|
2296
2296
|
})
|
|
2297
|
-
}) : {},
|
|
2297
|
+
}) : {}, Ut = (e) => Array.isArray(e) ? e : [e], si = () => {
|
|
2298
2298
|
let e = [];
|
|
2299
2299
|
return {
|
|
2300
2300
|
get observers() {
|
|
@@ -2331,7 +2331,7 @@ var Ne = (e) => Se(e) && !Object.keys(e).length, nn = (e) => e.type === "file",
|
|
|
2331
2331
|
return !1;
|
|
2332
2332
|
const t = e ? e.ownerDocument : 0;
|
|
2333
2333
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
2334
|
-
}, wo = (e) => e.type === "select-multiple", on = (e) => e.type === "radio", Xa = (e) => on(e) ||
|
|
2334
|
+
}, wo = (e) => e.type === "select-multiple", on = (e) => e.type === "radio", Xa = (e) => on(e) || Xt(e), wr = (e) => fr(e) && e.isConnected;
|
|
2335
2335
|
function Ja(e, t) {
|
|
2336
2336
|
const r = t.slice(0, -1).length;
|
|
2337
2337
|
let n = 0;
|
|
@@ -2396,12 +2396,12 @@ var Eo = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disab
|
|
|
2396
2396
|
} : t, ci) : ci;
|
|
2397
2397
|
function di(e) {
|
|
2398
2398
|
const t = e.ref;
|
|
2399
|
-
return nn(t) ? t.files : on(t) ? Eo(e.refs).value : wo(t) ? [...t.selectedOptions].map(({ value: r }) => r) :
|
|
2399
|
+
return nn(t) ? t.files : on(t) ? Eo(e.refs).value : wo(t) ? [...t.selectedOptions].map(({ value: r }) => r) : Xt(t) ? yo(e.refs).value : xo(Ce(t.value) ? e.ref.value : t.value, e);
|
|
2400
2400
|
}
|
|
2401
2401
|
var tl = (e, t, r, n) => {
|
|
2402
2402
|
const i = {};
|
|
2403
2403
|
for (const o of e) {
|
|
2404
|
-
const a =
|
|
2404
|
+
const a = M(t, o);
|
|
2405
2405
|
a && pe(i, o, a._f);
|
|
2406
2406
|
}
|
|
2407
2407
|
return {
|
|
@@ -2419,9 +2419,9 @@ var tl = (e, t, r, n) => {
|
|
|
2419
2419
|
});
|
|
2420
2420
|
const fi = "AsyncFunction";
|
|
2421
2421
|
var rl = (e) => !!e && !!e.validate && !!(Ge(e.validate) && e.validate.constructor.name === fi || Se(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === fi)), nl = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), hi = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
|
|
2422
|
-
const
|
|
2422
|
+
const Ht = (e, t, r, n) => {
|
|
2423
2423
|
for (const o of r || Object.keys(e)) {
|
|
2424
|
-
const a =
|
|
2424
|
+
const a = M(e, o);
|
|
2425
2425
|
if (a) {
|
|
2426
2426
|
const i = a, { _f: l } = i, _ = _t(i, ["_f"]);
|
|
2427
2427
|
if (l) {
|
|
@@ -2429,15 +2429,15 @@ const Ut = (e, t, r, n) => {
|
|
|
2429
2429
|
return !0;
|
|
2430
2430
|
if (l.ref && t(l.ref, l.name) && !n)
|
|
2431
2431
|
return !0;
|
|
2432
|
-
if (
|
|
2432
|
+
if (Ht(_, t))
|
|
2433
2433
|
break;
|
|
2434
|
-
} else if (Se(_) &&
|
|
2434
|
+
} else if (Se(_) && Ht(_, t))
|
|
2435
2435
|
break;
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
2439
|
function pi(e, t, r) {
|
|
2440
|
-
const n =
|
|
2440
|
+
const n = M(e, r);
|
|
2441
2441
|
if (n || gr(r))
|
|
2442
2442
|
return {
|
|
2443
2443
|
error: n,
|
|
@@ -2445,7 +2445,7 @@ function pi(e, t, r) {
|
|
|
2445
2445
|
};
|
|
2446
2446
|
const i = r.split(".");
|
|
2447
2447
|
for (; i.length; ) {
|
|
2448
|
-
const o = i.join("."), a =
|
|
2448
|
+
const o = i.join("."), a = M(t, o), l = M(e, o);
|
|
2449
2449
|
if (a && !Array.isArray(a) && r !== o)
|
|
2450
2450
|
return { name: r };
|
|
2451
2451
|
if (l && l.type)
|
|
@@ -2468,8 +2468,8 @@ var il = (e, t, r, n) => {
|
|
|
2468
2468
|
r(e);
|
|
2469
2469
|
const a = e, { name: i } = a, o = _t(a, ["name"]);
|
|
2470
2470
|
return Ne(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((l) => t[l] === (!n || Ze.all));
|
|
2471
|
-
}, ol = (e, t, r) => !e || !t || e === t ||
|
|
2472
|
-
const n =
|
|
2471
|
+
}, ol = (e, t, r) => !e || !t || e === t || Ut(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), sl = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, al = (e, t) => !Qr(M(e, t)).length && Ee(e, t), ll = (e, t, r) => {
|
|
2472
|
+
const n = Ut(M(e, r));
|
|
2473
2473
|
return pe(n, "root", t[r]), pe(e, r, n), e;
|
|
2474
2474
|
};
|
|
2475
2475
|
function _i(e, t, r = "validate") {
|
|
@@ -2484,75 +2484,75 @@ var Tt = (e) => Se(e) && !hr(e) ? e : {
|
|
|
2484
2484
|
value: e,
|
|
2485
2485
|
message: ""
|
|
2486
2486
|
}, gi = (e, t, r, n, i, o) => _e(null, null, function* () {
|
|
2487
|
-
const { ref: a, refs: l, required: _, maxLength: g, minLength:
|
|
2488
|
-
if (!
|
|
2487
|
+
const { ref: a, refs: l, required: _, maxLength: g, minLength: w, min: h, max: c, pattern: v, validate: p, name: m, valueAsNumber: x, mount: T } = e._f, I = M(r, m);
|
|
2488
|
+
if (!T || t.has(m))
|
|
2489
2489
|
return {};
|
|
2490
|
-
const k = l ? l[0] : a,
|
|
2490
|
+
const k = l ? l[0] : a, F = (H) => {
|
|
2491
2491
|
i && k.reportValidity && (k.setCustomValidity(Ue(H) ? "" : H || ""), k.reportValidity());
|
|
2492
|
-
},
|
|
2492
|
+
}, V = {}, z = on(a), B = Xt(a), ae = z || B, ce = (x || nn(a)) && Ce(a.value) && Ce(I) || fr(a) && a.value === "" || I === "" || Array.isArray(I) && !I.length, re = Ka.bind(null, m, n, V), J = (H, G, oe, ge = rt.maxLength, me = rt.minLength) => {
|
|
2493
2493
|
const we = H ? G : oe;
|
|
2494
|
-
|
|
2494
|
+
V[m] = y({
|
|
2495
2495
|
type: H ? ge : me,
|
|
2496
2496
|
message: we,
|
|
2497
2497
|
ref: a
|
|
2498
2498
|
}, re(H ? ge : me, we));
|
|
2499
2499
|
};
|
|
2500
|
-
if (o ? !Array.isArray(I) || !I.length : _ && (!
|
|
2500
|
+
if (o ? !Array.isArray(I) || !I.length : _ && (!ae && (ce || Re(I)) || Ue(I) && !I || B && !yo(l).isValid || z && !Eo(l).isValid)) {
|
|
2501
2501
|
const { value: H, message: G } = He(_) ? { value: !!_, message: _ } : Tt(_);
|
|
2502
|
-
if (H && (
|
|
2502
|
+
if (H && (V[m] = y({
|
|
2503
2503
|
type: rt.required,
|
|
2504
2504
|
message: G,
|
|
2505
2505
|
ref: k
|
|
2506
2506
|
}, re(rt.required, G)), !n))
|
|
2507
|
-
return
|
|
2507
|
+
return F(G), V;
|
|
2508
2508
|
}
|
|
2509
|
-
if (!
|
|
2509
|
+
if (!ce && (!Re(h) || !Re(c))) {
|
|
2510
2510
|
let H, G;
|
|
2511
2511
|
const oe = Tt(c), ge = Tt(h);
|
|
2512
2512
|
if (!Re(I) && !isNaN(I)) {
|
|
2513
2513
|
const me = a.valueAsNumber || I && +I;
|
|
2514
2514
|
Re(oe.value) || (H = me > oe.value), Re(ge.value) || (G = me < ge.value);
|
|
2515
2515
|
} else {
|
|
2516
|
-
const me = a.valueAsDate || new Date(I), we = (
|
|
2516
|
+
const me = a.valueAsDate || new Date(I), we = (q) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + q), Be = a.type == "time", de = a.type == "week";
|
|
2517
2517
|
He(oe.value) && I && (H = Be ? we(I) > we(oe.value) : de ? I > oe.value : me > new Date(oe.value)), He(ge.value) && I && (G = Be ? we(I) < we(ge.value) : de ? I < ge.value : me < new Date(ge.value));
|
|
2518
2518
|
}
|
|
2519
2519
|
if ((H || G) && (J(!!H, oe.message, ge.message, rt.max, rt.min), !n))
|
|
2520
|
-
return
|
|
2520
|
+
return F(V[m].message), V;
|
|
2521
2521
|
}
|
|
2522
|
-
if ((g ||
|
|
2523
|
-
const H = Tt(g), G = Tt(
|
|
2522
|
+
if ((g || w) && !ce && (He(I) || o && Array.isArray(I))) {
|
|
2523
|
+
const H = Tt(g), G = Tt(w), oe = !Re(H.value) && I.length > +H.value, ge = !Re(G.value) && I.length < +G.value;
|
|
2524
2524
|
if ((oe || ge) && (J(oe, H.message, G.message), !n))
|
|
2525
|
-
return
|
|
2525
|
+
return F(V[m].message), V;
|
|
2526
2526
|
}
|
|
2527
|
-
if (v && !
|
|
2527
|
+
if (v && !ce && He(I)) {
|
|
2528
2528
|
const { value: H, message: G } = Tt(v);
|
|
2529
|
-
if (hr(H) && !I.match(H) && (
|
|
2529
|
+
if (hr(H) && !I.match(H) && (V[m] = y({
|
|
2530
2530
|
type: rt.pattern,
|
|
2531
2531
|
message: G,
|
|
2532
2532
|
ref: a
|
|
2533
2533
|
}, re(rt.pattern, G)), !n))
|
|
2534
|
-
return
|
|
2534
|
+
return F(G), V;
|
|
2535
2535
|
}
|
|
2536
2536
|
if (p) {
|
|
2537
2537
|
if (Ge(p)) {
|
|
2538
2538
|
const H = yield p(I, r), G = _i(H, k);
|
|
2539
|
-
if (G && (
|
|
2540
|
-
return
|
|
2539
|
+
if (G && (V[m] = y(y({}, G), re(rt.validate, G.message)), !n))
|
|
2540
|
+
return F(G.message), V;
|
|
2541
2541
|
} else if (Se(p)) {
|
|
2542
2542
|
let H = {};
|
|
2543
2543
|
for (const G in p) {
|
|
2544
2544
|
if (!Ne(H) && !n)
|
|
2545
2545
|
break;
|
|
2546
2546
|
const oe = _i(yield p[G](I, r), k, G);
|
|
2547
|
-
oe && (H =
|
|
2547
|
+
oe && (H = y(y({}, oe), re(G, oe.message)), F(oe.message), n && (V[m] = H));
|
|
2548
2548
|
}
|
|
2549
|
-
if (!Ne(H) && (
|
|
2549
|
+
if (!Ne(H) && (V[m] = y({
|
|
2550
2550
|
ref: k
|
|
2551
2551
|
}, H), !n))
|
|
2552
|
-
return
|
|
2552
|
+
return V;
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
|
-
return
|
|
2555
|
+
return F(!0), V;
|
|
2556
2556
|
});
|
|
2557
2557
|
const cl = {
|
|
2558
2558
|
mode: Ze.onSubmit,
|
|
@@ -2560,7 +2560,7 @@ const cl = {
|
|
|
2560
2560
|
shouldFocusError: !0
|
|
2561
2561
|
};
|
|
2562
2562
|
function dl(e = {}) {
|
|
2563
|
-
let t =
|
|
2563
|
+
let t = y(y({}, cl), e), r = {
|
|
2564
2564
|
submitCount: 0,
|
|
2565
2565
|
isDirty: !1,
|
|
2566
2566
|
isReady: !1,
|
|
@@ -2586,7 +2586,7 @@ function dl(e = {}) {
|
|
|
2586
2586
|
array: /* @__PURE__ */ new Set(),
|
|
2587
2587
|
watch: /* @__PURE__ */ new Set()
|
|
2588
2588
|
}, _, g = 0;
|
|
2589
|
-
const
|
|
2589
|
+
const w = {
|
|
2590
2590
|
isDirty: !1,
|
|
2591
2591
|
dirtyFields: !1,
|
|
2592
2592
|
validatingFields: !1,
|
|
@@ -2595,41 +2595,41 @@ function dl(e = {}) {
|
|
|
2595
2595
|
isValid: !1,
|
|
2596
2596
|
errors: !1
|
|
2597
2597
|
};
|
|
2598
|
-
let h =
|
|
2598
|
+
let h = y({}, w);
|
|
2599
2599
|
const c = {
|
|
2600
2600
|
array: si(),
|
|
2601
2601
|
state: si()
|
|
2602
2602
|
}, v = t.criteriaMode === Ze.all, p = (f) => (C) => {
|
|
2603
2603
|
clearTimeout(g), g = setTimeout(f, C);
|
|
2604
2604
|
}, m = (f) => _e(null, null, function* () {
|
|
2605
|
-
if (!t.disabled && (
|
|
2606
|
-
const C = t.resolver ? Ne((yield
|
|
2605
|
+
if (!t.disabled && (w.isValid || h.isValid || f)) {
|
|
2606
|
+
const C = t.resolver ? Ne((yield B()).errors) : yield ce(n, !0);
|
|
2607
2607
|
C !== r.isValid && c.state.next({
|
|
2608
2608
|
isValid: C
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
|
-
}),
|
|
2612
|
-
!t.disabled && (
|
|
2611
|
+
}), x = (f, C) => {
|
|
2612
|
+
!t.disabled && (w.isValidating || w.validatingFields || h.isValidating || h.validatingFields) && ((f || Array.from(l.mount)).forEach((S) => {
|
|
2613
2613
|
S && (C ? pe(r.validatingFields, S, C) : Ee(r.validatingFields, S));
|
|
2614
2614
|
}), c.state.next({
|
|
2615
2615
|
validatingFields: r.validatingFields,
|
|
2616
2616
|
isValidating: !Ne(r.validatingFields)
|
|
2617
2617
|
}));
|
|
2618
|
-
},
|
|
2618
|
+
}, T = (f, C = [], S, D, A = !0, R = !0) => {
|
|
2619
2619
|
if (D && S && !t.disabled) {
|
|
2620
|
-
if (a.action = !0,
|
|
2621
|
-
const
|
|
2622
|
-
A && pe(n, f,
|
|
2620
|
+
if (a.action = !0, R && Array.isArray(M(n, f))) {
|
|
2621
|
+
const L = S(M(n, f), D.argA, D.argB);
|
|
2622
|
+
A && pe(n, f, L);
|
|
2623
2623
|
}
|
|
2624
|
-
if (
|
|
2625
|
-
const
|
|
2626
|
-
A && pe(r.errors, f,
|
|
2624
|
+
if (R && Array.isArray(M(r.errors, f))) {
|
|
2625
|
+
const L = S(M(r.errors, f), D.argA, D.argB);
|
|
2626
|
+
A && pe(r.errors, f, L), al(r.errors, f);
|
|
2627
2627
|
}
|
|
2628
|
-
if ((
|
|
2629
|
-
const
|
|
2630
|
-
A && pe(r.touchedFields, f,
|
|
2628
|
+
if ((w.touchedFields || h.touchedFields) && R && Array.isArray(M(r.touchedFields, f))) {
|
|
2629
|
+
const L = S(M(r.touchedFields, f), D.argA, D.argB);
|
|
2630
|
+
A && pe(r.touchedFields, f, L);
|
|
2631
2631
|
}
|
|
2632
|
-
(
|
|
2632
|
+
(w.dirtyFields || h.dirtyFields) && (r.dirtyFields = Ft(i, o)), c.state.next({
|
|
2633
2633
|
name: f,
|
|
2634
2634
|
isDirty: J(f, C),
|
|
2635
2635
|
dirtyFields: r.dirtyFields,
|
|
@@ -2647,108 +2647,108 @@ function dl(e = {}) {
|
|
|
2647
2647
|
errors: r.errors,
|
|
2648
2648
|
isValid: !1
|
|
2649
2649
|
});
|
|
2650
|
-
},
|
|
2651
|
-
const A =
|
|
2650
|
+
}, F = (f, C, S, D) => {
|
|
2651
|
+
const A = M(n, f);
|
|
2652
2652
|
if (A) {
|
|
2653
|
-
const
|
|
2654
|
-
Ce(
|
|
2653
|
+
const R = M(o, f, Ce(S) ? M(i, f) : S);
|
|
2654
|
+
Ce(R) || D && D.defaultChecked || C ? pe(o, f, C ? R : di(A._f)) : oe(f, R), a.mount && m();
|
|
2655
2655
|
}
|
|
2656
|
-
},
|
|
2657
|
-
let
|
|
2656
|
+
}, V = (f, C, S, D, A) => {
|
|
2657
|
+
let R = !1, L = !1;
|
|
2658
2658
|
const K = {
|
|
2659
2659
|
name: f
|
|
2660
2660
|
};
|
|
2661
2661
|
if (!t.disabled) {
|
|
2662
2662
|
if (!S || D) {
|
|
2663
|
-
(
|
|
2664
|
-
const W = it(
|
|
2665
|
-
|
|
2663
|
+
(w.isDirty || h.isDirty) && (L = r.isDirty, r.isDirty = K.isDirty = J(), R = L !== K.isDirty);
|
|
2664
|
+
const W = it(M(i, f), C);
|
|
2665
|
+
L = !!M(r.dirtyFields, f), W ? Ee(r.dirtyFields, f) : pe(r.dirtyFields, f, !0), K.dirtyFields = r.dirtyFields, R = R || (w.dirtyFields || h.dirtyFields) && L !== !W;
|
|
2666
2666
|
}
|
|
2667
2667
|
if (S) {
|
|
2668
|
-
const W =
|
|
2669
|
-
W || (pe(r.touchedFields, f, S), K.touchedFields = r.touchedFields,
|
|
2668
|
+
const W = M(r.touchedFields, f);
|
|
2669
|
+
W || (pe(r.touchedFields, f, S), K.touchedFields = r.touchedFields, R = R || (w.touchedFields || h.touchedFields) && W !== S);
|
|
2670
2670
|
}
|
|
2671
|
-
|
|
2671
|
+
R && A && c.state.next(K);
|
|
2672
2672
|
}
|
|
2673
|
-
return
|
|
2674
|
-
},
|
|
2675
|
-
const A =
|
|
2676
|
-
if (t.delayError && S ? (_ = p(() => I(f, S)), _(t.delayError)) : (clearTimeout(g), _ = null, S ? pe(r.errors, f, S) : Ee(r.errors, f)), (S ? !it(A, S) : A) || !Ne(D) ||
|
|
2677
|
-
const
|
|
2673
|
+
return R ? K : {};
|
|
2674
|
+
}, z = (f, C, S, D) => {
|
|
2675
|
+
const A = M(r.errors, f), R = (w.isValid || h.isValid) && Ue(C) && r.isValid !== C;
|
|
2676
|
+
if (t.delayError && S ? (_ = p(() => I(f, S)), _(t.delayError)) : (clearTimeout(g), _ = null, S ? pe(r.errors, f, S) : Ee(r.errors, f)), (S ? !it(A, S) : A) || !Ne(D) || R) {
|
|
2677
|
+
const L = Z(y(y({}, D), R && Ue(C) ? { isValid: C } : {}), {
|
|
2678
2678
|
errors: r.errors,
|
|
2679
2679
|
name: f
|
|
2680
2680
|
});
|
|
2681
|
-
r =
|
|
2681
|
+
r = y(y({}, r), L), c.state.next(L);
|
|
2682
2682
|
}
|
|
2683
|
-
},
|
|
2684
|
-
|
|
2683
|
+
}, B = (f) => _e(null, null, function* () {
|
|
2684
|
+
x(f, !0);
|
|
2685
2685
|
const C = yield t.resolver(o, t.context, tl(f || l.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
|
|
2686
|
-
return
|
|
2687
|
-
}),
|
|
2688
|
-
const { errors: C } = yield
|
|
2686
|
+
return x(f), C;
|
|
2687
|
+
}), ae = (f) => _e(null, null, function* () {
|
|
2688
|
+
const { errors: C } = yield B(f);
|
|
2689
2689
|
if (f)
|
|
2690
2690
|
for (const S of f) {
|
|
2691
|
-
const D =
|
|
2691
|
+
const D = M(C, S);
|
|
2692
2692
|
D ? pe(r.errors, S, D) : Ee(r.errors, S);
|
|
2693
2693
|
}
|
|
2694
2694
|
else
|
|
2695
2695
|
r.errors = C;
|
|
2696
2696
|
return C;
|
|
2697
|
-
}),
|
|
2697
|
+
}), ce = (D, A, ...R) => _e(null, [D, A, ...R], function* (f, C, S = {
|
|
2698
2698
|
valid: !0
|
|
2699
2699
|
}) {
|
|
2700
2700
|
for (const K in f) {
|
|
2701
2701
|
const W = f[K];
|
|
2702
2702
|
if (W) {
|
|
2703
|
-
const
|
|
2704
|
-
if (
|
|
2705
|
-
const j = l.array.has(
|
|
2706
|
-
Q &&
|
|
2707
|
-
const
|
|
2708
|
-
if (Q &&
|
|
2703
|
+
const L = W, { _f: le } = L, Ve = _t(L, ["_f"]);
|
|
2704
|
+
if (le) {
|
|
2705
|
+
const j = l.array.has(le.name), Q = W._f && rl(W._f);
|
|
2706
|
+
Q && w.validatingFields && x([le.name], !0);
|
|
2707
|
+
const U = yield gi(W, l.disabled, o, v, t.shouldUseNativeValidation && !C, j);
|
|
2708
|
+
if (Q && w.validatingFields && x([le.name]), U[le.name] && (S.valid = !1, C))
|
|
2709
2709
|
break;
|
|
2710
|
-
!C && (
|
|
2710
|
+
!C && (M(U, le.name) ? j ? ll(r.errors, U, le.name) : pe(r.errors, le.name, U[le.name]) : Ee(r.errors, le.name));
|
|
2711
2711
|
}
|
|
2712
|
-
!Ne(Ve) && (yield
|
|
2712
|
+
!Ne(Ve) && (yield ce(Ve, C, S));
|
|
2713
2713
|
}
|
|
2714
2714
|
}
|
|
2715
2715
|
return S.valid;
|
|
2716
2716
|
}), re = () => {
|
|
2717
2717
|
for (const f of l.unMount) {
|
|
2718
|
-
const C =
|
|
2718
|
+
const C = M(n, f);
|
|
2719
2719
|
C && (C._f.refs ? C._f.refs.every((S) => !wr(S)) : !wr(C._f.ref)) && je(f);
|
|
2720
2720
|
}
|
|
2721
2721
|
l.unMount = /* @__PURE__ */ new Set();
|
|
2722
|
-
}, J = (f, C) => !t.disabled && (f && C && pe(o, f, C), !it(
|
|
2723
|
-
const D =
|
|
2722
|
+
}, J = (f, C) => !t.disabled && (f && C && pe(o, f, C), !it(q(), i)), H = (f, C, S) => mo(f, l, y({}, a.mount ? o : Ce(C) ? i : He(f) ? { [f]: C } : C), S, C), G = (f) => Qr(M(a.mount ? o : i, f, t.shouldUnregister ? M(i, f, []) : [])), oe = (f, C, S = {}) => {
|
|
2723
|
+
const D = M(n, f);
|
|
2724
2724
|
let A = C;
|
|
2725
2725
|
if (D) {
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
(!
|
|
2729
|
-
}) :
|
|
2726
|
+
const R = D._f;
|
|
2727
|
+
R && (!R.disabled && pe(o, f, xo(C, R)), A = fr(R.ref) && Re(C) ? "" : C, wo(R.ref) ? [...R.ref.options].forEach((L) => L.selected = A.includes(L.value)) : R.refs ? Xt(R.ref) ? R.refs.forEach((L) => {
|
|
2728
|
+
(!L.defaultChecked || !L.disabled) && (Array.isArray(A) ? L.checked = !!A.find((K) => K === L.value) : L.checked = A === L.value || !!A);
|
|
2729
|
+
}) : R.refs.forEach((L) => L.checked = L.value === A) : nn(R.ref) ? R.ref.value = "" : (R.ref.value = A, R.ref.type || c.state.next({
|
|
2730
2730
|
name: f,
|
|
2731
2731
|
values: Oe(o)
|
|
2732
2732
|
})));
|
|
2733
2733
|
}
|
|
2734
|
-
(S.shouldDirty || S.shouldTouch) &&
|
|
2734
|
+
(S.shouldDirty || S.shouldTouch) && V(f, A, S.shouldTouch, S.shouldDirty, !0), S.shouldValidate && de(f);
|
|
2735
2735
|
}, ge = (f, C, S) => {
|
|
2736
2736
|
for (const D in C) {
|
|
2737
2737
|
if (!C.hasOwnProperty(D))
|
|
2738
2738
|
return;
|
|
2739
|
-
const A = C[D],
|
|
2740
|
-
(l.array.has(f) || Se(A) ||
|
|
2739
|
+
const A = C[D], R = f + "." + D, L = M(n, R);
|
|
2740
|
+
(l.array.has(f) || Se(A) || L && !L._f) && !bt(A) ? ge(R, A, S) : oe(R, A, S);
|
|
2741
2741
|
}
|
|
2742
2742
|
}, me = (f, C, S = {}) => {
|
|
2743
|
-
const D =
|
|
2744
|
-
pe(o, f,
|
|
2743
|
+
const D = M(n, f), A = l.array.has(f), R = Oe(C);
|
|
2744
|
+
pe(o, f, R), A ? (c.array.next({
|
|
2745
2745
|
name: f,
|
|
2746
2746
|
values: Oe(o)
|
|
2747
|
-
}), (
|
|
2747
|
+
}), (w.isDirty || w.dirtyFields || h.isDirty || h.dirtyFields) && S.shouldDirty && c.state.next({
|
|
2748
2748
|
name: f,
|
|
2749
2749
|
dirtyFields: Ft(i, o),
|
|
2750
|
-
isDirty: J(f,
|
|
2751
|
-
})) : D && !D._f && !Re(
|
|
2750
|
+
isDirty: J(f, R)
|
|
2751
|
+
})) : D && !D._f && !Re(R) ? ge(f, R, S) : oe(f, R, S), hi(f, l) && c.state.next(Z(y({}, r), { name: f })), c.state.next({
|
|
2752
2752
|
name: a.mount ? f : void 0,
|
|
2753
2753
|
values: Oe(o)
|
|
2754
2754
|
});
|
|
@@ -2756,62 +2756,62 @@ function dl(e = {}) {
|
|
|
2756
2756
|
a.mount = !0;
|
|
2757
2757
|
const C = f.target;
|
|
2758
2758
|
let S = C.name, D = !0;
|
|
2759
|
-
const A =
|
|
2760
|
-
D = Number.isNaN(W) || bt(W) && isNaN(W.getTime()) || it(W,
|
|
2761
|
-
},
|
|
2759
|
+
const A = M(n, S), R = (W) => {
|
|
2760
|
+
D = Number.isNaN(W) || bt(W) && isNaN(W.getTime()) || it(W, M(o, S, W));
|
|
2761
|
+
}, L = ui(t.mode), K = ui(t.reValidateMode);
|
|
2762
2762
|
if (A) {
|
|
2763
|
-
let W,
|
|
2764
|
-
const Ve = C.type ? di(A._f) : ho(f), j = f.type === ur.BLUR || f.type === ur.FOCUS_OUT, Q = !nl(A._f) && !t.resolver && !
|
|
2763
|
+
let W, le;
|
|
2764
|
+
const Ve = C.type ? di(A._f) : ho(f), j = f.type === ur.BLUR || f.type === ur.FOCUS_OUT, Q = !nl(A._f) && !t.resolver && !M(r.errors, S) && !A._f.deps || sl(j, M(r.touchedFields, S), r.isSubmitted, K, L), U = hi(S, l, j);
|
|
2765
2765
|
pe(o, S, Ve), j ? (!C || !C.readOnly) && (A._f.onBlur && A._f.onBlur(f), _ && _(0)) : A._f.onChange && A._f.onChange(f);
|
|
2766
|
-
const se =
|
|
2766
|
+
const se = V(S, Ve, j), De = !Ne(se) || U;
|
|
2767
2767
|
if (!j && c.state.next({
|
|
2768
2768
|
name: S,
|
|
2769
2769
|
type: f.type,
|
|
2770
2770
|
values: Oe(o)
|
|
2771
2771
|
}), Q)
|
|
2772
|
-
return (
|
|
2773
|
-
if (!j &&
|
|
2774
|
-
const { errors: Te } = yield
|
|
2775
|
-
if (
|
|
2772
|
+
return (w.isValid || h.isValid) && (t.mode === "onBlur" ? j && m() : j || m()), De && c.state.next(y({ name: S }, U ? {} : se));
|
|
2773
|
+
if (!j && U && c.state.next(y({}, r)), t.resolver) {
|
|
2774
|
+
const { errors: Te } = yield B([S]);
|
|
2775
|
+
if (R(Ve), D) {
|
|
2776
2776
|
const ie = pi(r.errors, n, S), $ = pi(Te, n, ie.name || S);
|
|
2777
|
-
W = $.error, S = $.name,
|
|
2777
|
+
W = $.error, S = $.name, le = Ne(Te);
|
|
2778
2778
|
}
|
|
2779
2779
|
} else
|
|
2780
|
-
|
|
2781
|
-
D && (A._f.deps && (!Array.isArray(A._f.deps) || A._f.deps.length > 0) && de(A._f.deps),
|
|
2780
|
+
x([S], !0), W = (yield gi(A, l.disabled, o, v, t.shouldUseNativeValidation))[S], x([S]), R(Ve), D && (W ? le = !1 : (w.isValid || h.isValid) && (le = yield ce(n, !0)));
|
|
2781
|
+
D && (A._f.deps && (!Array.isArray(A._f.deps) || A._f.deps.length > 0) && de(A._f.deps), z(S, le, W, se));
|
|
2782
2782
|
}
|
|
2783
2783
|
}), Be = (f, C) => {
|
|
2784
|
-
if (
|
|
2784
|
+
if (M(r.errors, C) && f.focus)
|
|
2785
2785
|
return f.focus(), 1;
|
|
2786
2786
|
}, de = (S, ...D) => _e(null, [S, ...D], function* (f, C = {}) {
|
|
2787
|
-
let A,
|
|
2788
|
-
const
|
|
2787
|
+
let A, R;
|
|
2788
|
+
const L = Ut(f);
|
|
2789
2789
|
if (t.resolver) {
|
|
2790
|
-
const K = yield
|
|
2791
|
-
A = Ne(K),
|
|
2792
|
-
} else f ? (
|
|
2793
|
-
const W =
|
|
2794
|
-
return yield
|
|
2795
|
-
})))).every(Boolean), !(!
|
|
2796
|
-
return c.state.next(
|
|
2790
|
+
const K = yield ae(Ce(f) ? f : L);
|
|
2791
|
+
A = Ne(K), R = f ? !L.some((W) => M(K, W)) : A;
|
|
2792
|
+
} else f ? (R = (yield Promise.all(L.map((K) => _e(null, null, function* () {
|
|
2793
|
+
const W = M(n, K);
|
|
2794
|
+
return yield ce(W && W._f ? { [K]: W } : W);
|
|
2795
|
+
})))).every(Boolean), !(!R && !r.isValid) && m()) : R = A = yield ce(n);
|
|
2796
|
+
return c.state.next(Z(y(y({}, !He(f) || (w.isValid || h.isValid) && A !== r.isValid ? {} : { name: f }), t.resolver || !f ? { isValid: A } : {}), {
|
|
2797
2797
|
errors: r.errors
|
|
2798
|
-
})), C.shouldFocus && !
|
|
2799
|
-
}),
|
|
2800
|
-
let S =
|
|
2801
|
-
return C && (S = bo(C.dirtyFields ? r.dirtyFields : r.touchedFields, S)), Ce(f) ? S : He(f) ?
|
|
2798
|
+
})), C.shouldFocus && !R && Ht(n, Be, f ? L : l.mount), R;
|
|
2799
|
+
}), q = (f, C) => {
|
|
2800
|
+
let S = y({}, a.mount ? o : i);
|
|
2801
|
+
return C && (S = bo(C.dirtyFields ? r.dirtyFields : r.touchedFields, S)), Ce(f) ? S : He(f) ? M(S, f) : f.map((D) => M(S, D));
|
|
2802
2802
|
}, ue = (f, C) => ({
|
|
2803
|
-
invalid: !!
|
|
2804
|
-
isDirty: !!
|
|
2805
|
-
error:
|
|
2806
|
-
isValidating: !!
|
|
2807
|
-
isTouched: !!
|
|
2803
|
+
invalid: !!M((C || r).errors, f),
|
|
2804
|
+
isDirty: !!M((C || r).dirtyFields, f),
|
|
2805
|
+
error: M((C || r).errors, f),
|
|
2806
|
+
isValidating: !!M(r.validatingFields, f),
|
|
2807
|
+
isTouched: !!M((C || r).touchedFields, f)
|
|
2808
2808
|
}), ye = (f) => {
|
|
2809
|
-
f &&
|
|
2809
|
+
f && Ut(f).forEach((C) => Ee(r.errors, C)), c.state.next({
|
|
2810
2810
|
errors: f ? r.errors : {}
|
|
2811
2811
|
});
|
|
2812
2812
|
}, ke = (f, C, S) => {
|
|
2813
|
-
const D = (
|
|
2814
|
-
pe(r.errors, f,
|
|
2813
|
+
const D = (M(n, f, { _f: {} })._f || {}).ref, le = M(r.errors, f) || {}, { ref: R, message: L, type: K } = le, W = _t(le, ["ref", "message", "type"]);
|
|
2814
|
+
pe(r.errors, f, Z(y(y({}, W), C), {
|
|
2815
2815
|
ref: D
|
|
2816
2816
|
})), c.state.next({
|
|
2817
2817
|
name: f,
|
|
@@ -2822,34 +2822,34 @@ function dl(e = {}) {
|
|
|
2822
2822
|
next: (S) => "values" in S && f(H(void 0, C), S)
|
|
2823
2823
|
}) : H(f, C, !0), N = (f) => c.state.subscribe({
|
|
2824
2824
|
next: (C) => {
|
|
2825
|
-
ol(f.name, C.name, f.exact) && il(C, f.formState ||
|
|
2826
|
-
values:
|
|
2825
|
+
ol(f.name, C.name, f.exact) && il(C, f.formState || w, Et, f.reRenderRoot) && f.callback(Z(y(y({
|
|
2826
|
+
values: y({}, o)
|
|
2827
2827
|
}, r), C), {
|
|
2828
2828
|
defaultValues: i
|
|
2829
2829
|
}));
|
|
2830
2830
|
}
|
|
2831
|
-
}).unsubscribe, ne = (f) => (a.mount = !0, h =
|
|
2831
|
+
}).unsubscribe, ne = (f) => (a.mount = !0, h = y(y({}, h), f.formState), N(Z(y({}, f), {
|
|
2832
2832
|
formState: h
|
|
2833
2833
|
}))), je = (f, C = {}) => {
|
|
2834
|
-
for (const S of f ?
|
|
2834
|
+
for (const S of f ? Ut(f) : l.mount)
|
|
2835
2835
|
l.mount.delete(S), l.array.delete(S), C.keepValue || (Ee(n, S), Ee(o, S)), !C.keepError && Ee(r.errors, S), !C.keepDirty && Ee(r.dirtyFields, S), !C.keepTouched && Ee(r.touchedFields, S), !C.keepIsValidating && Ee(r.validatingFields, S), !t.shouldUnregister && !C.keepDefaultValue && Ee(i, S);
|
|
2836
2836
|
c.state.next({
|
|
2837
2837
|
values: Oe(o)
|
|
2838
|
-
}), c.state.next(
|
|
2838
|
+
}), c.state.next(y(y({}, r), C.keepDirty ? { isDirty: J() } : {})), !C.keepIsValid && m();
|
|
2839
2839
|
}, Ke = ({ disabled: f, name: C }) => {
|
|
2840
2840
|
(Ue(f) && a.mount || f || l.disabled.has(C)) && (f ? l.disabled.add(C) : l.disabled.delete(C));
|
|
2841
2841
|
}, tt = (f, C = {}) => {
|
|
2842
|
-
let S =
|
|
2842
|
+
let S = M(n, f);
|
|
2843
2843
|
const D = Ue(C.disabled) || Ue(t.disabled);
|
|
2844
|
-
return pe(n, f,
|
|
2845
|
-
_f:
|
|
2844
|
+
return pe(n, f, Z(y({}, S || {}), {
|
|
2845
|
+
_f: y(Z(y({}, S && S._f ? S._f : { ref: { name: f } }), {
|
|
2846
2846
|
name: f,
|
|
2847
2847
|
mount: !0
|
|
2848
2848
|
}), C)
|
|
2849
2849
|
})), l.mount.add(f), S ? Ke({
|
|
2850
2850
|
disabled: Ue(C.disabled) ? C.disabled : t.disabled,
|
|
2851
2851
|
name: f
|
|
2852
|
-
}) :
|
|
2852
|
+
}) : F(f, !0, C.value), Z(y(y({}, D ? { disabled: C.disabled || t.disabled } : {}), t.progressive ? {
|
|
2853
2853
|
required: !!C.required,
|
|
2854
2854
|
min: Dt(C.min),
|
|
2855
2855
|
max: Dt(C.max),
|
|
@@ -2862,27 +2862,27 @@ function dl(e = {}) {
|
|
|
2862
2862
|
onBlur: we,
|
|
2863
2863
|
ref: (A) => {
|
|
2864
2864
|
if (A) {
|
|
2865
|
-
tt(f, C), S =
|
|
2866
|
-
const
|
|
2867
|
-
if (
|
|
2865
|
+
tt(f, C), S = M(n, f);
|
|
2866
|
+
const R = Ce(A.value) && A.querySelectorAll && A.querySelectorAll("input,select,textarea")[0] || A, L = Xa(R), K = S._f.refs || [];
|
|
2867
|
+
if (L ? K.find((W) => W === R) : R === S._f.ref)
|
|
2868
2868
|
return;
|
|
2869
2869
|
pe(n, f, {
|
|
2870
|
-
_f:
|
|
2870
|
+
_f: y(y({}, S._f), L ? {
|
|
2871
2871
|
refs: [
|
|
2872
2872
|
...K.filter(wr),
|
|
2873
|
-
|
|
2874
|
-
...Array.isArray(
|
|
2873
|
+
R,
|
|
2874
|
+
...Array.isArray(M(i, f)) ? [{}] : []
|
|
2875
2875
|
],
|
|
2876
|
-
ref: { type:
|
|
2877
|
-
} : { ref:
|
|
2878
|
-
}),
|
|
2876
|
+
ref: { type: R.type, name: f }
|
|
2877
|
+
} : { ref: R })
|
|
2878
|
+
}), F(f, !1, void 0, R);
|
|
2879
2879
|
} else
|
|
2880
|
-
S =
|
|
2880
|
+
S = M(n, f, {}), S._f && (S._f.mount = !1), (t.shouldUnregister || C.shouldUnregister) && !(po(l.array, f) && a.action) && l.unMount.add(f);
|
|
2881
2881
|
}
|
|
2882
2882
|
});
|
|
2883
|
-
}, ze = () => t.shouldFocusError &&
|
|
2884
|
-
Ue(f) && (c.state.next({ disabled: f }),
|
|
2885
|
-
const D =
|
|
2883
|
+
}, ze = () => t.shouldFocusError && Ht(n, Be, l.mount), ft = (f) => {
|
|
2884
|
+
Ue(f) && (c.state.next({ disabled: f }), Ht(n, (C, S) => {
|
|
2885
|
+
const D = M(n, S);
|
|
2886
2886
|
D && (C.disabled = D._f.disabled || f, Array.isArray(D._f.refs) && D._f.refs.forEach((A) => {
|
|
2887
2887
|
A.disabled = D._f.disabled || f;
|
|
2888
2888
|
}));
|
|
@@ -2894,24 +2894,24 @@ function dl(e = {}) {
|
|
|
2894
2894
|
if (c.state.next({
|
|
2895
2895
|
isSubmitting: !0
|
|
2896
2896
|
}), t.resolver) {
|
|
2897
|
-
const { errors:
|
|
2898
|
-
r.errors =
|
|
2897
|
+
const { errors: R, values: L } = yield B();
|
|
2898
|
+
r.errors = R, A = Oe(L);
|
|
2899
2899
|
} else
|
|
2900
|
-
yield
|
|
2900
|
+
yield ce(n);
|
|
2901
2901
|
if (l.disabled.size)
|
|
2902
|
-
for (const
|
|
2903
|
-
Ee(A,
|
|
2902
|
+
for (const R of l.disabled)
|
|
2903
|
+
Ee(A, R);
|
|
2904
2904
|
if (Ee(r.errors, "root"), Ne(r.errors)) {
|
|
2905
2905
|
c.state.next({
|
|
2906
2906
|
errors: {}
|
|
2907
2907
|
});
|
|
2908
2908
|
try {
|
|
2909
2909
|
yield f(A, S);
|
|
2910
|
-
} catch (
|
|
2911
|
-
D =
|
|
2910
|
+
} catch (R) {
|
|
2911
|
+
D = R;
|
|
2912
2912
|
}
|
|
2913
2913
|
} else
|
|
2914
|
-
C && (yield C(
|
|
2914
|
+
C && (yield C(y({}, r.errors), S)), ze(), setTimeout(ze);
|
|
2915
2915
|
if (c.state.next({
|
|
2916
2916
|
isSubmitted: !0,
|
|
2917
2917
|
isSubmitting: !1,
|
|
@@ -2921,42 +2921,42 @@ function dl(e = {}) {
|
|
|
2921
2921
|
}), D)
|
|
2922
2922
|
throw D;
|
|
2923
2923
|
}), xt = (f, C = {}) => {
|
|
2924
|
-
|
|
2924
|
+
M(n, f) && (Ce(C.defaultValue) ? me(f, Oe(M(i, f))) : (me(f, C.defaultValue), pe(i, f, Oe(C.defaultValue))), C.keepTouched || Ee(r.touchedFields, f), C.keepDirty || (Ee(r.dirtyFields, f), r.isDirty = C.defaultValue ? J(f, Oe(M(i, f))) : J()), C.keepError || (Ee(r.errors, f), w.isValid && m()), c.state.next(y({}, r)));
|
|
2925
2925
|
}, ht = (f, C = {}) => {
|
|
2926
|
-
const S = f ? Oe(f) : i, D = Oe(S), A = Ne(f),
|
|
2926
|
+
const S = f ? Oe(f) : i, D = Oe(S), A = Ne(f), R = A ? i : D;
|
|
2927
2927
|
if (C.keepDefaultValues || (i = S), !C.keepValues) {
|
|
2928
2928
|
if (C.keepDirtyValues) {
|
|
2929
|
-
const
|
|
2929
|
+
const L = /* @__PURE__ */ new Set([
|
|
2930
2930
|
...l.mount,
|
|
2931
2931
|
...Object.keys(Ft(i, o))
|
|
2932
2932
|
]);
|
|
2933
|
-
for (const K of Array.from(
|
|
2934
|
-
|
|
2933
|
+
for (const K of Array.from(L))
|
|
2934
|
+
M(r.dirtyFields, K) ? pe(R, K, M(o, K)) : me(K, M(R, K));
|
|
2935
2935
|
} else {
|
|
2936
2936
|
if (Jr && Ce(f))
|
|
2937
|
-
for (const
|
|
2938
|
-
const K =
|
|
2937
|
+
for (const L of l.mount) {
|
|
2938
|
+
const K = M(n, L);
|
|
2939
2939
|
if (K && K._f) {
|
|
2940
2940
|
const W = Array.isArray(K._f.refs) ? K._f.refs[0] : K._f.ref;
|
|
2941
2941
|
if (fr(W)) {
|
|
2942
|
-
const
|
|
2943
|
-
if (
|
|
2944
|
-
|
|
2942
|
+
const le = W.closest("form");
|
|
2943
|
+
if (le) {
|
|
2944
|
+
le.reset();
|
|
2945
2945
|
break;
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
2948
|
}
|
|
2949
2949
|
}
|
|
2950
2950
|
if (C.keepFieldsRef)
|
|
2951
|
-
for (const
|
|
2952
|
-
me(
|
|
2951
|
+
for (const L of l.mount)
|
|
2952
|
+
me(L, M(R, L));
|
|
2953
2953
|
else
|
|
2954
2954
|
n = {};
|
|
2955
2955
|
}
|
|
2956
|
-
o = t.shouldUnregister ? C.keepDefaultValues ? Oe(i) : {} : Oe(
|
|
2957
|
-
values:
|
|
2956
|
+
o = t.shouldUnregister ? C.keepDefaultValues ? Oe(i) : {} : Oe(R), c.array.next({
|
|
2957
|
+
values: y({}, R)
|
|
2958
2958
|
}), c.state.next({
|
|
2959
|
-
values:
|
|
2959
|
+
values: y({}, R)
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
2962
|
l = {
|
|
@@ -2967,7 +2967,7 @@ function dl(e = {}) {
|
|
|
2967
2967
|
watch: /* @__PURE__ */ new Set(),
|
|
2968
2968
|
watchAll: !1,
|
|
2969
2969
|
focus: ""
|
|
2970
|
-
}, a.mount = !
|
|
2970
|
+
}, a.mount = !w.isValid || !!C.keepIsValid || !!C.keepDirtyValues, a.watch = !!t.shouldUnregister, c.state.next({
|
|
2971
2971
|
submitCount: C.keepSubmitCount ? r.submitCount : 0,
|
|
2972
2972
|
isDirty: A ? !1 : C.keepDirty ? r.isDirty : !!(C.keepDefaultValues && !it(f, i)),
|
|
2973
2973
|
isSubmitted: C.keepIsSubmitted ? r.isSubmitted : !1,
|
|
@@ -2979,13 +2979,13 @@ function dl(e = {}) {
|
|
|
2979
2979
|
defaultValues: i
|
|
2980
2980
|
});
|
|
2981
2981
|
}, lt = (f, C) => ht(Ge(f) ? f(o) : f, C), pt = (f, C = {}) => {
|
|
2982
|
-
const S =
|
|
2982
|
+
const S = M(n, f), D = S && S._f;
|
|
2983
2983
|
if (D) {
|
|
2984
2984
|
const A = D.refs ? D.refs[0] : D.ref;
|
|
2985
2985
|
A.focus && (A.focus(), C.shouldSelect && Ge(A.select) && A.select());
|
|
2986
2986
|
}
|
|
2987
2987
|
}, Et = (f) => {
|
|
2988
|
-
r =
|
|
2988
|
+
r = y(y({}, r), f);
|
|
2989
2989
|
}, Xe = {
|
|
2990
2990
|
control: {
|
|
2991
2991
|
register: tt,
|
|
@@ -2994,12 +2994,12 @@ function dl(e = {}) {
|
|
|
2994
2994
|
handleSubmit: at,
|
|
2995
2995
|
setError: ke,
|
|
2996
2996
|
_subscribe: N,
|
|
2997
|
-
_runSchema:
|
|
2997
|
+
_runSchema: B,
|
|
2998
2998
|
_focusError: ze,
|
|
2999
2999
|
_getWatch: H,
|
|
3000
3000
|
_getDirty: J,
|
|
3001
3001
|
_setValid: m,
|
|
3002
|
-
_setFieldArray:
|
|
3002
|
+
_setFieldArray: T,
|
|
3003
3003
|
_setDisabledField: Ke,
|
|
3004
3004
|
_setErrors: k,
|
|
3005
3005
|
_getFieldArray: G,
|
|
@@ -3012,7 +3012,7 @@ function dl(e = {}) {
|
|
|
3012
3012
|
_removeUnmounted: re,
|
|
3013
3013
|
_disableForm: ft,
|
|
3014
3014
|
_subjects: c,
|
|
3015
|
-
_proxyFormState:
|
|
3015
|
+
_proxyFormState: w,
|
|
3016
3016
|
get _fields() {
|
|
3017
3017
|
return n;
|
|
3018
3018
|
},
|
|
@@ -3041,7 +3041,7 @@ function dl(e = {}) {
|
|
|
3041
3041
|
return t;
|
|
3042
3042
|
},
|
|
3043
3043
|
set _options(f) {
|
|
3044
|
-
t =
|
|
3044
|
+
t = y(y({}, t), f);
|
|
3045
3045
|
}
|
|
3046
3046
|
},
|
|
3047
3047
|
subscribe: ne,
|
|
@@ -3050,7 +3050,7 @@ function dl(e = {}) {
|
|
|
3050
3050
|
handleSubmit: at,
|
|
3051
3051
|
watch: Me,
|
|
3052
3052
|
setValue: me,
|
|
3053
|
-
getValues:
|
|
3053
|
+
getValues: q,
|
|
3054
3054
|
reset: lt,
|
|
3055
3055
|
resetField: xt,
|
|
3056
3056
|
clearErrors: ye,
|
|
@@ -3059,7 +3059,7 @@ function dl(e = {}) {
|
|
|
3059
3059
|
setFocus: pt,
|
|
3060
3060
|
getFieldState: ue
|
|
3061
3061
|
};
|
|
3062
|
-
return
|
|
3062
|
+
return Z(y({}, Xe), {
|
|
3063
3063
|
formControl: Xe
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
@@ -3083,12 +3083,12 @@ function ul(e = {}) {
|
|
|
3083
3083
|
});
|
|
3084
3084
|
if (!t.current)
|
|
3085
3085
|
if (e.formControl)
|
|
3086
|
-
t.current =
|
|
3086
|
+
t.current = Z(y({}, e.formControl), {
|
|
3087
3087
|
formState: n
|
|
3088
3088
|
}), e.defaultValues && !Ge(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
3089
3089
|
else {
|
|
3090
3090
|
const a = dl(e), { formControl: l } = a, _ = _t(a, ["formControl"]);
|
|
3091
|
-
t.current =
|
|
3091
|
+
t.current = Z(y({}, _), {
|
|
3092
3092
|
formState: n
|
|
3093
3093
|
});
|
|
3094
3094
|
}
|
|
@@ -3096,10 +3096,10 @@ function ul(e = {}) {
|
|
|
3096
3096
|
return o._options = e, rn(() => {
|
|
3097
3097
|
const l = o._subscribe({
|
|
3098
3098
|
formState: o._proxyFormState,
|
|
3099
|
-
callback: () => i(
|
|
3099
|
+
callback: () => i(y({}, o._formState)),
|
|
3100
3100
|
reRenderRoot: !0
|
|
3101
3101
|
});
|
|
3102
|
-
return i((_) =>
|
|
3102
|
+
return i((_) => Z(y({}, _), {
|
|
3103
3103
|
isReady: !0
|
|
3104
3104
|
})), o._formState.isReady = !0, l;
|
|
3105
3105
|
}, [o]), te.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), te.useEffect(() => {
|
|
@@ -3118,11 +3118,11 @@ function ul(e = {}) {
|
|
|
3118
3118
|
});
|
|
3119
3119
|
}
|
|
3120
3120
|
}, [o, n.isDirty]), te.useEffect(() => {
|
|
3121
|
-
e.values && !it(e.values, r.current) ? (o._reset(e.values,
|
|
3121
|
+
e.values && !it(e.values, r.current) ? (o._reset(e.values, y({
|
|
3122
3122
|
keepFieldsRef: !0
|
|
3123
|
-
}, o._options.resetOptions)), r.current = e.values, i((l) =>
|
|
3123
|
+
}, o._options.resetOptions)), r.current = e.values, i((l) => y({}, l))) : o._resetDefaultValues();
|
|
3124
3124
|
}, [o, e.values]), te.useEffect(() => {
|
|
3125
|
-
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(
|
|
3125
|
+
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(y({}, o._formState))), o._removeUnmounted();
|
|
3126
3126
|
}), t.current.formState = go(n, o), t.current;
|
|
3127
3127
|
}
|
|
3128
3128
|
const Rt = (e, t) => {
|
|
@@ -3148,7 +3148,7 @@ const Rt = (e, t) => {
|
|
|
3148
3148
|
transition: ".2s",
|
|
3149
3149
|
flexShrink: 0
|
|
3150
3150
|
},
|
|
3151
|
-
children: t ? /* @__PURE__ */ s(Ae,
|
|
3151
|
+
children: t ? /* @__PURE__ */ s(Ae, y({}, t)) : /* @__PURE__ */ s(Ae, { imageId: "chevronDown" })
|
|
3152
3152
|
}
|
|
3153
3153
|
), hl = ({
|
|
3154
3154
|
isChosen: e,
|
|
@@ -3165,8 +3165,8 @@ const Rt = (e, t) => {
|
|
|
3165
3165
|
style: {
|
|
3166
3166
|
padding: "5px 8px",
|
|
3167
3167
|
background: ((_, g) => {
|
|
3168
|
-
var
|
|
3169
|
-
if (!_ && !g) return (
|
|
3168
|
+
var w, h, c, v;
|
|
3169
|
+
if (!_ && !g) return (w = X(t.layout.backgroundColor)) != null ? w : "transparent";
|
|
3170
3170
|
if (!_ && g) return (h = X(t.layoutSelected.backgroundColor)) != null ? h : "transparent";
|
|
3171
3171
|
if (_ && !g) return (c = X(t.layout.highlightColor)) != null ? c : "#F4F4F4";
|
|
3172
3172
|
if (_ && g) return (v = X(t.layoutSelected.highlightColor)) != null ? v : "#F4F4F4";
|
|
@@ -3184,7 +3184,7 @@ const Rt = (e, t) => {
|
|
|
3184
3184
|
onMouseEnter: i,
|
|
3185
3185
|
onMouseLeave: o,
|
|
3186
3186
|
children: [
|
|
3187
|
-
/* @__PURE__ */ s(be,
|
|
3187
|
+
/* @__PURE__ */ s(be, Z(y({}, t.layout.title), { text: t.label })),
|
|
3188
3188
|
/* @__PURE__ */ s(
|
|
3189
3189
|
"div",
|
|
3190
3190
|
{
|
|
@@ -3192,7 +3192,7 @@ const Rt = (e, t) => {
|
|
|
3192
3192
|
display: "flex",
|
|
3193
3193
|
flexShrink: 0
|
|
3194
3194
|
},
|
|
3195
|
-
children: /* @__PURE__ */ s(Ae,
|
|
3195
|
+
children: /* @__PURE__ */ s(Ae, y({}, a))
|
|
3196
3196
|
}
|
|
3197
3197
|
)
|
|
3198
3198
|
]
|
|
@@ -3210,41 +3210,41 @@ const Rt = (e, t) => {
|
|
|
3210
3210
|
closeMenuOnSelect: l = !0,
|
|
3211
3211
|
onBlur: _,
|
|
3212
3212
|
parentElementRef: g,
|
|
3213
|
-
controlLayout:
|
|
3213
|
+
controlLayout: w,
|
|
3214
3214
|
pickerLayout: h
|
|
3215
3215
|
}) => {
|
|
3216
3216
|
var H, G, oe, ge, me, we, Be, de;
|
|
3217
|
-
const [c, v] = Fe(!1), [p, m] = Fe(i), [
|
|
3217
|
+
const [c, v] = Fe(!1), [p, m] = Fe(i), [x, T] = Fe("down"), [I, k] = Fe(null), F = $e(null), V = $e(null);
|
|
3218
3218
|
dt(() => {
|
|
3219
3219
|
var Me, N, ne;
|
|
3220
3220
|
if (!c) return;
|
|
3221
|
-
const
|
|
3222
|
-
if (!
|
|
3223
|
-
const ke =
|
|
3224
|
-
|
|
3221
|
+
const q = (Me = F.current) == null ? void 0 : Me.getBoundingClientRect(), ue = (N = V.current) == null ? void 0 : N.getBoundingClientRect(), ye = (ne = g.current) == null ? void 0 : ne.getBoundingClientRect();
|
|
3222
|
+
if (!q || !ue || !ye) return;
|
|
3223
|
+
const ke = q.bottom + ue.height < ye.bottom;
|
|
3224
|
+
T(ke ? "down" : "up");
|
|
3225
3225
|
}, [c]), We(() => {
|
|
3226
3226
|
o(p);
|
|
3227
3227
|
}, [p]);
|
|
3228
|
-
const
|
|
3228
|
+
const z = (q) => (ue) => {
|
|
3229
3229
|
var ye;
|
|
3230
|
-
ue.stopPropagation(), (ue.type === "touchend" || ((ye = ue.nativeEvent) == null ? void 0 : ye.pointerType) === "touch") && k(null), l && v(!1), m((ke) => r ? ke.some((N) => N.value ===
|
|
3231
|
-
},
|
|
3230
|
+
ue.stopPropagation(), (ue.type === "touchend" || ((ye = ue.nativeEvent) == null ? void 0 : ye.pointerType) === "touch") && k(null), l && v(!1), m((ke) => r ? ke.some((N) => N.value === q.value) ? ke.filter((N) => N.value !== q.value) : [...ke, q] : [q]);
|
|
3231
|
+
}, B = () => {
|
|
3232
3232
|
_ && _(), v(!1);
|
|
3233
|
-
},
|
|
3234
|
-
ue.stopPropagation(), m((ye) => ye.filter((ke) => ke.value !==
|
|
3235
|
-
},
|
|
3236
|
-
|
|
3237
|
-
}, re = (H = X(
|
|
3238
|
-
return /* @__PURE__ */ s("div", { "data-ui": "gui-custom-select", ref:
|
|
3233
|
+
}, ae = (q) => (ue) => {
|
|
3234
|
+
ue.stopPropagation(), m((ye) => ye.filter((ke) => ke.value !== q.value));
|
|
3235
|
+
}, ce = (q) => {
|
|
3236
|
+
q.stopPropagation(), m([]);
|
|
3237
|
+
}, re = (H = X(w == null ? void 0 : w.borderColor)) != null ? H : "#D9D9D9", J = (G = X(w == null ? void 0 : w.highlightBorderColor)) != null ? G : "#7E57C5";
|
|
3238
|
+
return /* @__PURE__ */ s("div", { "data-ui": "gui-custom-select", ref: F, children: /* @__PURE__ */ s(
|
|
3239
3239
|
"div",
|
|
3240
3240
|
{
|
|
3241
3241
|
"data-ui": "gui-select-name-" + e,
|
|
3242
3242
|
style: {
|
|
3243
|
-
backgroundColor: X(
|
|
3243
|
+
backgroundColor: X(w == null ? void 0 : w.backgroundColor),
|
|
3244
3244
|
borderStyle: "solid",
|
|
3245
3245
|
borderColor: c ? J : re,
|
|
3246
|
-
borderWidth: (oe =
|
|
3247
|
-
borderRadius: (ge =
|
|
3246
|
+
borderWidth: (oe = w == null ? void 0 : w.borderWidth) != null ? oe : 1,
|
|
3247
|
+
borderRadius: (ge = w == null ? void 0 : w.cornerRadius) != null ? ge : 8,
|
|
3248
3248
|
minHeight: "41px",
|
|
3249
3249
|
position: "relative",
|
|
3250
3250
|
zIndex: "auto",
|
|
@@ -3255,7 +3255,7 @@ const Rt = (e, t) => {
|
|
|
3255
3255
|
gap: 10
|
|
3256
3256
|
},
|
|
3257
3257
|
tabIndex: 0,
|
|
3258
|
-
onBlur:
|
|
3258
|
+
onBlur: B,
|
|
3259
3259
|
onClick: () => v(!c),
|
|
3260
3260
|
children: [
|
|
3261
3261
|
/* @__PURE__ */ s(
|
|
@@ -3281,10 +3281,10 @@ const Rt = (e, t) => {
|
|
|
3281
3281
|
children: a
|
|
3282
3282
|
}
|
|
3283
3283
|
),
|
|
3284
|
-
p.map((
|
|
3284
|
+
p.map((q) => {
|
|
3285
3285
|
var ue, ye, ke, Me, N;
|
|
3286
3286
|
if (r) {
|
|
3287
|
-
const ne =
|
|
3287
|
+
const ne = w == null ? void 0 : w.chip;
|
|
3288
3288
|
return /* @__PURE__ */ s(
|
|
3289
3289
|
"div",
|
|
3290
3290
|
{
|
|
@@ -3300,9 +3300,9 @@ const Rt = (e, t) => {
|
|
|
3300
3300
|
children: [
|
|
3301
3301
|
/* @__PURE__ */ s(
|
|
3302
3302
|
be,
|
|
3303
|
-
|
|
3303
|
+
Z(y({}, ne == null ? void 0 : ne.title), {
|
|
3304
3304
|
fontSize: (Me = (ke = ne == null ? void 0 : ne.title) == null ? void 0 : ke.fontSize) != null ? Me : 13,
|
|
3305
|
-
text:
|
|
3305
|
+
text: q.label
|
|
3306
3306
|
})
|
|
3307
3307
|
),
|
|
3308
3308
|
/* @__PURE__ */ s(
|
|
@@ -3315,16 +3315,16 @@ const Rt = (e, t) => {
|
|
|
3315
3315
|
width: "16px",
|
|
3316
3316
|
height: "16px"
|
|
3317
3317
|
},
|
|
3318
|
-
onClick:
|
|
3319
|
-
children: ne != null && ne.removeImage ? /* @__PURE__ */ s(Ae,
|
|
3318
|
+
onClick: ae(q),
|
|
3319
|
+
children: ne != null && ne.removeImage ? /* @__PURE__ */ s(Ae, y({}, ne.removeImage)) : /* @__PURE__ */ s(Ae, { imageId: "cross" })
|
|
3320
3320
|
}
|
|
3321
3321
|
)
|
|
3322
3322
|
]
|
|
3323
3323
|
},
|
|
3324
|
-
|
|
3324
|
+
q.value
|
|
3325
3325
|
);
|
|
3326
3326
|
} else {
|
|
3327
|
-
const ne =
|
|
3327
|
+
const ne = w == null ? void 0 : w.title;
|
|
3328
3328
|
return /* @__PURE__ */ s(
|
|
3329
3329
|
"div",
|
|
3330
3330
|
{
|
|
@@ -3332,9 +3332,9 @@ const Rt = (e, t) => {
|
|
|
3332
3332
|
display: "flex",
|
|
3333
3333
|
userSelect: "none"
|
|
3334
3334
|
},
|
|
3335
|
-
children: /* @__PURE__ */ s(be,
|
|
3335
|
+
children: /* @__PURE__ */ s(be, Z(y({}, ne), { fontSize: (N = ne == null ? void 0 : ne.fontSize) != null ? N : 13, text: q.label }))
|
|
3336
3336
|
},
|
|
3337
|
-
|
|
3337
|
+
q.value
|
|
3338
3338
|
);
|
|
3339
3339
|
}
|
|
3340
3340
|
})
|
|
@@ -3352,8 +3352,8 @@ const Rt = (e, t) => {
|
|
|
3352
3352
|
height: "16px",
|
|
3353
3353
|
zIndex: 1
|
|
3354
3354
|
},
|
|
3355
|
-
onClick:
|
|
3356
|
-
children:
|
|
3355
|
+
onClick: ce,
|
|
3356
|
+
children: w != null && w.clearButton ? /* @__PURE__ */ s(Ae, y({}, w.clearButton)) : /* @__PURE__ */ s(Ae, { imageId: "cross" })
|
|
3357
3357
|
}
|
|
3358
3358
|
) : null,
|
|
3359
3359
|
n ? /* @__PURE__ */ s(
|
|
@@ -3366,15 +3366,15 @@ const Rt = (e, t) => {
|
|
|
3366
3366
|
}
|
|
3367
3367
|
}
|
|
3368
3368
|
) : null,
|
|
3369
|
-
/* @__PURE__ */ s(fl, { isOpen: c, image:
|
|
3369
|
+
/* @__PURE__ */ s(fl, { isOpen: c, image: w == null ? void 0 : w.expandButton }),
|
|
3370
3370
|
c && /* @__PURE__ */ s(
|
|
3371
3371
|
"div",
|
|
3372
3372
|
{
|
|
3373
3373
|
"data-ui": "gui-custom-select-dropdown-menu",
|
|
3374
|
-
ref:
|
|
3375
|
-
style:
|
|
3374
|
+
ref: V,
|
|
3375
|
+
style: Z(y({
|
|
3376
3376
|
position: "absolute"
|
|
3377
|
-
},
|
|
3377
|
+
}, x === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
3378
3378
|
left: 0,
|
|
3379
3379
|
border: "1px solid #e8e8e8",
|
|
3380
3380
|
width: "100%",
|
|
@@ -3393,20 +3393,20 @@ const Rt = (e, t) => {
|
|
|
3393
3393
|
gap: "2px",
|
|
3394
3394
|
cursor: "default"
|
|
3395
3395
|
}),
|
|
3396
|
-
onClick: (
|
|
3397
|
-
children: t.map((
|
|
3398
|
-
const ue = p.some((ye) => ye.value ===
|
|
3396
|
+
onClick: (q) => q.stopPropagation(),
|
|
3397
|
+
children: t.map((q) => {
|
|
3398
|
+
const ue = p.some((ye) => ye.value === q.value);
|
|
3399
3399
|
return /* @__PURE__ */ s(
|
|
3400
3400
|
hl,
|
|
3401
3401
|
{
|
|
3402
3402
|
isChosen: ue,
|
|
3403
|
-
option:
|
|
3404
|
-
onOptionClickCallback:
|
|
3405
|
-
isHovered: I ===
|
|
3406
|
-
onHover: () => k(
|
|
3403
|
+
option: q,
|
|
3404
|
+
onOptionClickCallback: z,
|
|
3405
|
+
isHovered: I === q.value,
|
|
3406
|
+
onHover: () => k(q.value),
|
|
3407
3407
|
onHoverEnd: () => k(null)
|
|
3408
3408
|
},
|
|
3409
|
-
|
|
3409
|
+
q.label
|
|
3410
3410
|
);
|
|
3411
3411
|
})
|
|
3412
3412
|
}
|
|
@@ -3436,7 +3436,7 @@ const Rt = (e, t) => {
|
|
|
3436
3436
|
boxSizing: "border-box"
|
|
3437
3437
|
},
|
|
3438
3438
|
children: [
|
|
3439
|
-
t.title && /* @__PURE__ */ s(be,
|
|
3439
|
+
t.title && /* @__PURE__ */ s(be, Z(y({}, t.title), { text: r.text, htmlFor: o })),
|
|
3440
3440
|
/* @__PURE__ */ s(
|
|
3441
3441
|
vo,
|
|
3442
3442
|
{
|
|
@@ -3495,7 +3495,7 @@ const Rt = (e, t) => {
|
|
|
3495
3495
|
boxSizing: "border-box"
|
|
3496
3496
|
},
|
|
3497
3497
|
children: [
|
|
3498
|
-
t.title && /* @__PURE__ */ s(be,
|
|
3498
|
+
t.title && /* @__PURE__ */ s(be, Z(y({}, t.title), { text: r.text, htmlFor: o })),
|
|
3499
3499
|
/* @__PURE__ */ s(
|
|
3500
3500
|
vo,
|
|
3501
3501
|
{
|
|
@@ -3519,7 +3519,7 @@ const Rt = (e, t) => {
|
|
|
3519
3519
|
closeMenuOnSelect: !1,
|
|
3520
3520
|
value: l,
|
|
3521
3521
|
onChange: (_) => {
|
|
3522
|
-
const g = _.map((
|
|
3522
|
+
const g = _.map((w) => w.value);
|
|
3523
3523
|
a.onChange(g);
|
|
3524
3524
|
},
|
|
3525
3525
|
parentElementRef: n,
|
|
@@ -3550,39 +3550,39 @@ const Rt = (e, t) => {
|
|
|
3550
3550
|
register: n,
|
|
3551
3551
|
watch: i
|
|
3552
3552
|
}) => {
|
|
3553
|
-
const [o, a] = Fe(!1), l = ko(), _ = String(r.id),
|
|
3553
|
+
const [o, a] = Fe(!1), l = ko(), _ = String(r.id), w = i(_) === String(e.id), h = t.option, c = t.optionSelected, v = {
|
|
3554
3554
|
backgroundColor: X(c.backgroundColor),
|
|
3555
3555
|
borderRadius: c.cornerRadius
|
|
3556
3556
|
}, p = {
|
|
3557
3557
|
backgroundColor: X(h.backgroundColor),
|
|
3558
3558
|
borderRadius: h.cornerRadius
|
|
3559
|
-
}, m = o && l ? { filter: `drop-shadow(0 0 1px ${
|
|
3559
|
+
}, m = o && l ? { filter: `drop-shadow(0 0 1px ${Yt})` } : {};
|
|
3560
3560
|
return /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
3561
3561
|
"label",
|
|
3562
3562
|
{
|
|
3563
|
-
style:
|
|
3563
|
+
style: y({
|
|
3564
3564
|
display: "flex",
|
|
3565
3565
|
alignItems: "center",
|
|
3566
3566
|
alignContent: "center",
|
|
3567
3567
|
gap: 8,
|
|
3568
3568
|
cursor: "pointer"
|
|
3569
|
-
},
|
|
3569
|
+
}, w ? v : p),
|
|
3570
3570
|
children: [
|
|
3571
3571
|
/* @__PURE__ */ s(
|
|
3572
3572
|
"div",
|
|
3573
3573
|
{
|
|
3574
|
-
style:
|
|
3574
|
+
style: y({
|
|
3575
3575
|
display: "flex",
|
|
3576
3576
|
alignItems: "center",
|
|
3577
3577
|
alignContent: "center"
|
|
3578
3578
|
}, m),
|
|
3579
|
-
children: /* @__PURE__ */ s(Ae,
|
|
3579
|
+
children: /* @__PURE__ */ s(Ae, y({}, w ? c.image : h.image))
|
|
3580
3580
|
}
|
|
3581
3581
|
),
|
|
3582
|
-
/* @__PURE__ */ s(be,
|
|
3582
|
+
/* @__PURE__ */ s(be, Z(y({}, w ? c.title : h.title), { text: e.text })),
|
|
3583
3583
|
/* @__PURE__ */ s(
|
|
3584
3584
|
"input",
|
|
3585
|
-
|
|
3585
|
+
Z(y({
|
|
3586
3586
|
style: {
|
|
3587
3587
|
width: 1,
|
|
3588
3588
|
height: 1,
|
|
@@ -3631,7 +3631,7 @@ const Rt = (e, t) => {
|
|
|
3631
3631
|
padding: 0,
|
|
3632
3632
|
marginBottom: "16px"
|
|
3633
3633
|
},
|
|
3634
|
-
children: /* @__PURE__ */ s(be,
|
|
3634
|
+
children: /* @__PURE__ */ s(be, Z(y({}, e.title), { text: n.text }))
|
|
3635
3635
|
}
|
|
3636
3636
|
),
|
|
3637
3637
|
n.options.map((i) => /* @__PURE__ */ s(
|
|
@@ -3654,7 +3654,7 @@ const Rt = (e, t) => {
|
|
|
3654
3654
|
register: n,
|
|
3655
3655
|
watch: i
|
|
3656
3656
|
}) => {
|
|
3657
|
-
const [o, a] = Fe(!1), l = ko(), _ = String(r.id),
|
|
3657
|
+
const [o, a] = Fe(!1), l = ko(), _ = String(r.id), w = i(_) === String(e.id), h = t.option, c = t.optionSelected, v = {
|
|
3658
3658
|
borderRadius: h.cornerRadius,
|
|
3659
3659
|
background: X(h.backgroundColor),
|
|
3660
3660
|
borderColor: X(h.borderColor),
|
|
@@ -3664,7 +3664,7 @@ const Rt = (e, t) => {
|
|
|
3664
3664
|
background: X(c.backgroundColor),
|
|
3665
3665
|
borderColor: X(c.borderColor),
|
|
3666
3666
|
borderWidth: c.borderWidth
|
|
3667
|
-
}, m = o && l ? { outline: `2px solid ${
|
|
3667
|
+
}, m = o && l ? { outline: `2px solid ${Yt}` } : {};
|
|
3668
3668
|
return /* @__PURE__ */ s(
|
|
3669
3669
|
"div",
|
|
3670
3670
|
{
|
|
@@ -3675,17 +3675,17 @@ const Rt = (e, t) => {
|
|
|
3675
3675
|
children: /* @__PURE__ */ s(
|
|
3676
3676
|
"label",
|
|
3677
3677
|
{
|
|
3678
|
-
style:
|
|
3678
|
+
style: y(y({
|
|
3679
3679
|
width: "100%",
|
|
3680
3680
|
padding: "8px 16px",
|
|
3681
3681
|
cursor: "pointer",
|
|
3682
3682
|
borderStyle: "solid",
|
|
3683
3683
|
position: "relative"
|
|
3684
|
-
},
|
|
3684
|
+
}, w ? p : v), m),
|
|
3685
3685
|
children: [
|
|
3686
3686
|
/* @__PURE__ */ s(
|
|
3687
3687
|
"input",
|
|
3688
|
-
|
|
3688
|
+
Z(y({
|
|
3689
3689
|
style: {
|
|
3690
3690
|
width: 1,
|
|
3691
3691
|
height: 1,
|
|
@@ -3706,7 +3706,7 @@ const Rt = (e, t) => {
|
|
|
3706
3706
|
onBlur: () => a(!1)
|
|
3707
3707
|
})
|
|
3708
3708
|
),
|
|
3709
|
-
/* @__PURE__ */ s(be,
|
|
3709
|
+
/* @__PURE__ */ s(be, Z(y({}, w ? c.title : h.title), { text: e.text }))
|
|
3710
3710
|
]
|
|
3711
3711
|
}
|
|
3712
3712
|
)
|
|
@@ -3735,7 +3735,7 @@ const Rt = (e, t) => {
|
|
|
3735
3735
|
padding: 0,
|
|
3736
3736
|
marginBottom: "16px"
|
|
3737
3737
|
},
|
|
3738
|
-
children: /* @__PURE__ */ s(be,
|
|
3738
|
+
children: /* @__PURE__ */ s(be, Z(y({}, e.title), { text: n.text }))
|
|
3739
3739
|
}
|
|
3740
3740
|
),
|
|
3741
3741
|
/* @__PURE__ */ s("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: n.options.map((i) => /* @__PURE__ */ s(
|
|
@@ -3760,7 +3760,7 @@ const Rt = (e, t) => {
|
|
|
3760
3760
|
validationBorderColor: o,
|
|
3761
3761
|
validationBorderWidth: a
|
|
3762
3762
|
}) => {
|
|
3763
|
-
const l =
|
|
3763
|
+
const l = y({
|
|
3764
3764
|
position: "relative",
|
|
3765
3765
|
flexShrink: 0,
|
|
3766
3766
|
width: "100%",
|
|
@@ -3771,7 +3771,7 @@ const Rt = (e, t) => {
|
|
|
3771
3771
|
padding: "16px",
|
|
3772
3772
|
boxSizing: "border-box",
|
|
3773
3773
|
height: "auto"
|
|
3774
|
-
}, n &&
|
|
3774
|
+
}, n && y(y({}, X(o) && {
|
|
3775
3775
|
borderColor: o,
|
|
3776
3776
|
borderStyle: "solid"
|
|
3777
3777
|
}), a && { borderWidth: a }));
|
|
@@ -3790,13 +3790,13 @@ const Rt = (e, t) => {
|
|
|
3790
3790
|
),
|
|
3791
3791
|
e
|
|
3792
3792
|
] });
|
|
3793
|
-
}, Cl = ({ validationErrorsTypes: e, title: t }) => e ? /* @__PURE__ */ s("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([r, n]) => /* @__PURE__ */ s(be,
|
|
3793
|
+
}, Cl = ({ validationErrorsTypes: e, title: t }) => e ? /* @__PURE__ */ s("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([r, n]) => /* @__PURE__ */ s(be, Z(y({}, t), { text: n }), r)) }) : null, yl = ({
|
|
3794
3794
|
layout: e,
|
|
3795
3795
|
dataSourceQuestion: t,
|
|
3796
3796
|
register: r
|
|
3797
3797
|
}) => {
|
|
3798
|
-
var o, a, l, _, g,
|
|
3799
|
-
const n = String(t.id), i = (
|
|
3798
|
+
var o, a, l, _, g, w, h, c, v, p, m, x, T, I, k, F;
|
|
3799
|
+
const n = String(t.id), i = (V) => V ? V === nr.EMAIL ? "email" : V === nr.FREE_TEXT ? "text" : V === nr.NUMBER ? "number" : V === nr.SECURE ? "password" : "text" : "text";
|
|
3800
3800
|
return /* @__PURE__ */ s(
|
|
3801
3801
|
"div",
|
|
3802
3802
|
{
|
|
@@ -3806,10 +3806,10 @@ const Rt = (e, t) => {
|
|
|
3806
3806
|
gap: "16px"
|
|
3807
3807
|
},
|
|
3808
3808
|
children: [
|
|
3809
|
-
/* @__PURE__ */ s(be,
|
|
3809
|
+
/* @__PURE__ */ s(be, Z(y({}, e.title), { text: t.text, htmlFor: n })),
|
|
3810
3810
|
/* @__PURE__ */ s(
|
|
3811
3811
|
"input",
|
|
3812
|
-
|
|
3812
|
+
Z(y({}, r(n, {
|
|
3813
3813
|
required: !!t.required,
|
|
3814
3814
|
validate: Rt(t.validators, !!t.required)
|
|
3815
3815
|
})), {
|
|
@@ -3818,18 +3818,18 @@ const Rt = (e, t) => {
|
|
|
3818
3818
|
style: {
|
|
3819
3819
|
fontFamily: (l = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.fontName) != null ? l : "sans-serif",
|
|
3820
3820
|
fontSize: (g = (_ = e == null ? void 0 : e.textField) == null ? void 0 : _.fontSize) != null ? g : 15,
|
|
3821
|
-
color: (h = X((
|
|
3821
|
+
color: (h = X((w = e == null ? void 0 : e.textField) == null ? void 0 : w.fontColor)) != null ? h : "#000000",
|
|
3822
3822
|
height: "42px",
|
|
3823
3823
|
borderWidth: (v = (c = e == null ? void 0 : e.textField) == null ? void 0 : c.borderWidth) != null ? v : 1,
|
|
3824
3824
|
borderColor: (m = X((p = e == null ? void 0 : e.textField) == null ? void 0 : p.borderColor)) != null ? m : "#d9d9d9",
|
|
3825
3825
|
borderStyle: "solid",
|
|
3826
|
-
borderRadius: (
|
|
3826
|
+
borderRadius: (T = (x = e == null ? void 0 : e.textField) == null ? void 0 : x.cornerRadius) != null ? T : 8,
|
|
3827
3827
|
padding: "11px",
|
|
3828
3828
|
boxSizing: "border-box",
|
|
3829
3829
|
backgroundColor: (k = X((I = e == null ? void 0 : e.textField) == null ? void 0 : I.backgroundColor)) != null ? k : "#FFFFFF",
|
|
3830
|
-
outlineColor:
|
|
3830
|
+
outlineColor: Yt
|
|
3831
3831
|
},
|
|
3832
|
-
placeholder: (
|
|
3832
|
+
placeholder: (F = t.placeholder) != null ? F : "",
|
|
3833
3833
|
"data-id": n
|
|
3834
3834
|
})
|
|
3835
3835
|
)
|
|
@@ -3841,7 +3841,7 @@ const Rt = (e, t) => {
|
|
|
3841
3841
|
dataSourceQuestion: t,
|
|
3842
3842
|
register: r
|
|
3843
3843
|
}) => {
|
|
3844
|
-
var i, o, a, l, _, g,
|
|
3844
|
+
var i, o, a, l, _, g, w, h, c, v, p, m, x;
|
|
3845
3845
|
const n = String(t.id);
|
|
3846
3846
|
return /* @__PURE__ */ s(
|
|
3847
3847
|
"div",
|
|
@@ -3852,17 +3852,17 @@ const Rt = (e, t) => {
|
|
|
3852
3852
|
gap: "16px"
|
|
3853
3853
|
},
|
|
3854
3854
|
children: [
|
|
3855
|
-
/* @__PURE__ */ s(be,
|
|
3855
|
+
/* @__PURE__ */ s(be, Z(y({}, e.title), { text: t.text, htmlFor: n })),
|
|
3856
3856
|
/* @__PURE__ */ s(
|
|
3857
3857
|
"textarea",
|
|
3858
|
-
|
|
3858
|
+
Z(y({}, r(n, {
|
|
3859
3859
|
required: !!t.required,
|
|
3860
3860
|
validate: Rt(t.validators, !!t.required)
|
|
3861
3861
|
})), {
|
|
3862
3862
|
id: n,
|
|
3863
3863
|
placeholder: (i = t.placeholder) != null ? i : "",
|
|
3864
|
-
onInput: (
|
|
3865
|
-
|
|
3864
|
+
onInput: (T) => {
|
|
3865
|
+
T.currentTarget.style.height = "auto", T.currentTarget.style.height = `${T.currentTarget.scrollHeight - 15}px`;
|
|
3866
3866
|
},
|
|
3867
3867
|
"data-id": n,
|
|
3868
3868
|
style: {
|
|
@@ -3873,14 +3873,14 @@ const Rt = (e, t) => {
|
|
|
3873
3873
|
overflow: "hidden",
|
|
3874
3874
|
height: "42px",
|
|
3875
3875
|
minHeight: "42px",
|
|
3876
|
-
borderWidth: (
|
|
3876
|
+
borderWidth: (w = (g = e == null ? void 0 : e.textField) == null ? void 0 : g.borderWidth) != null ? w : 1,
|
|
3877
3877
|
borderColor: (c = X((h = e == null ? void 0 : e.textField) == null ? void 0 : h.borderColor)) != null ? c : "#d9d9d9",
|
|
3878
3878
|
borderStyle: "solid",
|
|
3879
3879
|
borderRadius: (p = (v = e == null ? void 0 : e.textField) == null ? void 0 : v.cornerRadius) != null ? p : 8,
|
|
3880
3880
|
padding: "11px",
|
|
3881
3881
|
boxSizing: "border-box",
|
|
3882
|
-
backgroundColor: (
|
|
3883
|
-
outlineColor:
|
|
3882
|
+
backgroundColor: (x = X((m = e == null ? void 0 : e.textField) == null ? void 0 : m.backgroundColor)) != null ? x : "#FFFFFF",
|
|
3883
|
+
outlineColor: Yt
|
|
3884
3884
|
}
|
|
3885
3885
|
})
|
|
3886
3886
|
)
|
|
@@ -3909,18 +3909,18 @@ const Rt = (e, t) => {
|
|
|
3909
3909
|
}
|
|
3910
3910
|
};
|
|
3911
3911
|
nt.MODULE = ar, nt.ERROR_ENUM_NAME = "GuiModuleError", nt.SHORT_CODE = "GM";
|
|
3912
|
-
let
|
|
3912
|
+
let jt = nt;
|
|
3913
3913
|
const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSource: o, properties: a, backgroundColor: l }) => {
|
|
3914
|
-
const _ = Li(r), { perform: g } = yt(),
|
|
3914
|
+
const _ = Li(r), { perform: g } = yt(), w = a ? Ws(o.questions, a) : {}, h = $e(null), {
|
|
3915
3915
|
register: c,
|
|
3916
3916
|
handleSubmit: v,
|
|
3917
3917
|
formState: { errors: p },
|
|
3918
3918
|
reset: m,
|
|
3919
|
-
watch:
|
|
3920
|
-
control:
|
|
3919
|
+
watch: x,
|
|
3920
|
+
control: T
|
|
3921
3921
|
} = ul({
|
|
3922
3922
|
criteriaMode: "all",
|
|
3923
|
-
defaultValues:
|
|
3923
|
+
defaultValues: w
|
|
3924
3924
|
});
|
|
3925
3925
|
return /* @__PURE__ */ s(ut, { header: e, footer: n, backgroundColor: l, children: /* @__PURE__ */ s(
|
|
3926
3926
|
"form",
|
|
@@ -3957,7 +3957,7 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
3957
3957
|
ref: h,
|
|
3958
3958
|
children: [
|
|
3959
3959
|
t && /** Screen title */
|
|
3960
|
-
/* @__PURE__ */ s("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ s(be,
|
|
3960
|
+
/* @__PURE__ */ s("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ s(be, y({}, t)) }),
|
|
3961
3961
|
/* @__PURE__ */ s(
|
|
3962
3962
|
"div",
|
|
3963
3963
|
{
|
|
@@ -3966,81 +3966,81 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
3966
3966
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3967
3967
|
children: o.questions.map((k) => {
|
|
3968
3968
|
var re;
|
|
3969
|
-
const
|
|
3969
|
+
const F = o.static, V = (J, H) => H.find((G) => {
|
|
3970
3970
|
var oe;
|
|
3971
3971
|
if ((oe = G.questionIds) != null && oe.length)
|
|
3972
3972
|
return G.questionIds.find((ge) => J === ge);
|
|
3973
|
-
}),
|
|
3974
|
-
if (!
|
|
3975
|
-
const J = new
|
|
3973
|
+
}), z = (J, H) => H.find((G) => !G.questionIds && G.answerType === J), B = F ? V(String(k.id), i.itemTypes) || z(k.answerType, i.itemTypes) : i.itemTypes.find((J) => J.answerType === k.answerType);
|
|
3974
|
+
if (!B) {
|
|
3975
|
+
const J = new jt({
|
|
3976
3976
|
errorCode: lr.DECODING_FAILED,
|
|
3977
3977
|
message: "The question template has not been found"
|
|
3978
3978
|
});
|
|
3979
3979
|
g(J);
|
|
3980
3980
|
return;
|
|
3981
3981
|
}
|
|
3982
|
-
const
|
|
3982
|
+
const ae = B == null ? void 0 : B.displayType, ce = k.id in p && ((re = p[k.id]) == null ? void 0 : re.types);
|
|
3983
3983
|
return (
|
|
3984
3984
|
/** Question */
|
|
3985
3985
|
/* @__PURE__ */ s(Ie, { children: [
|
|
3986
3986
|
/* @__PURE__ */ s(
|
|
3987
3987
|
wl,
|
|
3988
3988
|
{
|
|
3989
|
-
backgroundColor:
|
|
3990
|
-
cornerRadius:
|
|
3991
|
-
isError: !!
|
|
3989
|
+
backgroundColor: B == null ? void 0 : B.backgroundColor,
|
|
3990
|
+
cornerRadius: B == null ? void 0 : B.cornerRadius,
|
|
3991
|
+
isError: !!ce,
|
|
3992
3992
|
isRequired: k.required,
|
|
3993
|
-
validationBorderColor:
|
|
3994
|
-
validationBorderWidth:
|
|
3993
|
+
validationBorderColor: B == null ? void 0 : B.validationBorderColor,
|
|
3994
|
+
validationBorderWidth: B == null ? void 0 : B.validationBorderWidth,
|
|
3995
3995
|
children: [
|
|
3996
|
-
|
|
3996
|
+
ae === Ot.TEXT_EXPANDABLE && /* @__PURE__ */ s(
|
|
3997
3997
|
xl,
|
|
3998
3998
|
{
|
|
3999
|
-
layout:
|
|
3999
|
+
layout: B,
|
|
4000
4000
|
dataSourceQuestion: k,
|
|
4001
4001
|
register: c
|
|
4002
4002
|
}
|
|
4003
4003
|
),
|
|
4004
|
-
|
|
4004
|
+
ae === Ot.TEXT_SINGLE_LINE && /* @__PURE__ */ s(
|
|
4005
4005
|
yl,
|
|
4006
4006
|
{
|
|
4007
|
-
layout:
|
|
4007
|
+
layout: B,
|
|
4008
4008
|
dataSourceQuestion: k,
|
|
4009
4009
|
register: c
|
|
4010
4010
|
}
|
|
4011
4011
|
),
|
|
4012
|
-
|
|
4012
|
+
ae === Ot.SELECTOR_OPTIONS && /* @__PURE__ */ s(
|
|
4013
4013
|
ml,
|
|
4014
4014
|
{
|
|
4015
|
-
layout:
|
|
4015
|
+
layout: B,
|
|
4016
4016
|
dataSourceQuestion: k,
|
|
4017
|
-
watch:
|
|
4017
|
+
watch: x,
|
|
4018
4018
|
register: c
|
|
4019
4019
|
}
|
|
4020
4020
|
),
|
|
4021
|
-
|
|
4021
|
+
ae === Ot.SELECTOR_BUTTONS && /* @__PURE__ */ s(
|
|
4022
4022
|
bl,
|
|
4023
4023
|
{
|
|
4024
|
-
layout:
|
|
4024
|
+
layout: B,
|
|
4025
4025
|
dataSourceQuestion: k,
|
|
4026
|
-
watch:
|
|
4026
|
+
watch: x,
|
|
4027
4027
|
register: c
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
|
|
4030
|
+
ae === Ot.SELECTOR_DROPDOWN && /* @__PURE__ */ s(
|
|
4031
4031
|
pl,
|
|
4032
4032
|
{
|
|
4033
|
-
control:
|
|
4034
|
-
layout:
|
|
4033
|
+
control: T,
|
|
4034
|
+
layout: B,
|
|
4035
4035
|
dataSourceQuestion: k,
|
|
4036
4036
|
parentElementRef: h
|
|
4037
4037
|
}
|
|
4038
4038
|
),
|
|
4039
|
-
|
|
4039
|
+
ae === Ot.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ s(
|
|
4040
4040
|
_l,
|
|
4041
4041
|
{
|
|
4042
|
-
control:
|
|
4043
|
-
layout:
|
|
4042
|
+
control: T,
|
|
4043
|
+
layout: B,
|
|
4044
4044
|
dataSourceQuestion: k,
|
|
4045
4045
|
parentElementRef: h
|
|
4046
4046
|
}
|
|
@@ -4048,11 +4048,11 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4048
4048
|
]
|
|
4049
4049
|
}
|
|
4050
4050
|
),
|
|
4051
|
-
|
|
4051
|
+
ce && /* @__PURE__ */ s(
|
|
4052
4052
|
Cl,
|
|
4053
4053
|
{
|
|
4054
|
-
validationErrorsTypes:
|
|
4055
|
-
title:
|
|
4054
|
+
validationErrorsTypes: ce,
|
|
4055
|
+
title: B.validationMessage
|
|
4056
4056
|
}
|
|
4057
4057
|
)
|
|
4058
4058
|
] }, k.id)
|
|
@@ -4078,7 +4078,7 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4078
4078
|
alignItems: "flex-end",
|
|
4079
4079
|
padding: "2px"
|
|
4080
4080
|
},
|
|
4081
|
-
children: r.map((k,
|
|
4081
|
+
children: r.map((k, F) => /* @__PURE__ */ s(cr, y({ dataTestId: "question-button" }, k), F))
|
|
4082
4082
|
}
|
|
4083
4083
|
)
|
|
4084
4084
|
]
|
|
@@ -4115,31 +4115,31 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4115
4115
|
backgroundColor: n,
|
|
4116
4116
|
selectionLimit: i
|
|
4117
4117
|
}) => {
|
|
4118
|
-
var
|
|
4118
|
+
var w, h;
|
|
4119
4119
|
const { perform: o } = yt(), a = $e(null), l = typeof i == "number" && (i === 0 || i > 1), _ = (c) => _e(null, null, function* () {
|
|
4120
4120
|
var p;
|
|
4121
4121
|
const v = Array.from((p = c.currentTarget.files) != null ? p : []);
|
|
4122
4122
|
if (v.length)
|
|
4123
4123
|
try {
|
|
4124
|
-
const
|
|
4125
|
-
v.map((
|
|
4124
|
+
const x = (yield Promise.allSettled(
|
|
4125
|
+
v.map((T) => _e(null, null, function* () {
|
|
4126
4126
|
return {
|
|
4127
|
-
content: yield Bi(
|
|
4127
|
+
content: yield Bi(T),
|
|
4128
4128
|
metadata: {
|
|
4129
|
-
name:
|
|
4130
|
-
type:
|
|
4131
|
-
size:
|
|
4132
|
-
lastModified:
|
|
4129
|
+
name: T.name,
|
|
4130
|
+
type: T.type,
|
|
4131
|
+
size: T.size,
|
|
4132
|
+
lastModified: T.lastModified
|
|
4133
4133
|
}
|
|
4134
4134
|
};
|
|
4135
4135
|
}))
|
|
4136
4136
|
)).filter(
|
|
4137
|
-
(
|
|
4138
|
-
).map((
|
|
4137
|
+
(T) => T.status === "fulfilled"
|
|
4138
|
+
).map((T) => T.value);
|
|
4139
4139
|
o({
|
|
4140
4140
|
cancel: !1,
|
|
4141
4141
|
permissionDenied: !1,
|
|
4142
|
-
files:
|
|
4142
|
+
files: x
|
|
4143
4143
|
});
|
|
4144
4144
|
} catch (m) {
|
|
4145
4145
|
console.error("Error: ", m);
|
|
@@ -4151,13 +4151,13 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4151
4151
|
return /* @__PURE__ */ s(ut, { header: e, footer: t, backgroundColor: n, children: /* @__PURE__ */ s(Ie, { children: /* @__PURE__ */ s(
|
|
4152
4152
|
"div",
|
|
4153
4153
|
{
|
|
4154
|
-
style:
|
|
4154
|
+
style: Z(y({}, Ol), {
|
|
4155
4155
|
justifyContent: "center"
|
|
4156
4156
|
}),
|
|
4157
4157
|
children: [
|
|
4158
4158
|
/* @__PURE__ */ s(
|
|
4159
4159
|
"input",
|
|
4160
|
-
|
|
4160
|
+
Z(y({
|
|
4161
4161
|
style: Sl,
|
|
4162
4162
|
ref: a,
|
|
4163
4163
|
type: "file",
|
|
@@ -4166,7 +4166,7 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4166
4166
|
onInput: _
|
|
4167
4167
|
})
|
|
4168
4168
|
),
|
|
4169
|
-
/* @__PURE__ */ s("button", { style: kl, onClick: g, children: /* @__PURE__ */ s(Ae, { imageId: (h = (
|
|
4169
|
+
/* @__PURE__ */ s("button", { style: kl, onClick: g, children: /* @__PURE__ */ s(Ae, { imageId: (h = (w = r == null ? void 0 : r[0]) == null ? void 0 : w.image) == null ? void 0 : h.imageId }) })
|
|
4170
4170
|
]
|
|
4171
4171
|
}
|
|
4172
4172
|
) }) });
|
|
@@ -4197,97 +4197,97 @@ function Fl(e) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
var P = {};
|
|
4199
4199
|
const Al = /* @__PURE__ */ Fl(ja);
|
|
4200
|
-
var
|
|
4200
|
+
var Nt = { exports: {} }, Il = Nt.exports, mi;
|
|
4201
4201
|
function Vl() {
|
|
4202
4202
|
return mi || (mi = 1, (function(e, t) {
|
|
4203
4203
|
(function(r, n) {
|
|
4204
|
-
var i = "1.0.41", o = "", a = "?", l = "function", _ = "undefined", g = "object",
|
|
4205
|
-
var
|
|
4204
|
+
var i = "1.0.41", o = "", a = "?", l = "function", _ = "undefined", g = "object", w = "string", h = "major", c = "model", v = "name", p = "type", m = "vendor", x = "version", T = "architecture", I = "console", k = "mobile", F = "tablet", V = "smarttv", z = "wearable", B = "embedded", ae = 500, ce = "Amazon", re = "Apple", J = "ASUS", H = "BlackBerry", G = "Browser", oe = "Chrome", ge = "Edge", me = "Firefox", we = "Google", Be = "Honor", de = "Huawei", q = "Lenovo", ue = "LG", ye = "Microsoft", ke = "Motorola", Me = "Nvidia", N = "OnePlus", ne = "Opera", je = "OPPO", Ke = "Samsung", tt = "Sharp", ze = "Sony", ft = "Xiaomi", at = "Zebra", xt = "Facebook", ht = "Chromium OS", lt = "Mac OS", pt = " Browser", Et = function(j, Q) {
|
|
4205
|
+
var U = {};
|
|
4206
4206
|
for (var se in j)
|
|
4207
|
-
Q[se] && Q[se].length % 2 === 0 ?
|
|
4208
|
-
return
|
|
4207
|
+
Q[se] && Q[se].length % 2 === 0 ? U[se] = Q[se].concat(j[se]) : U[se] = j[se];
|
|
4208
|
+
return U;
|
|
4209
4209
|
}, ct = function(j) {
|
|
4210
|
-
for (var Q = {},
|
|
4211
|
-
Q[j[
|
|
4210
|
+
for (var Q = {}, U = 0; U < j.length; U++)
|
|
4211
|
+
Q[j[U].toUpperCase()] = j[U];
|
|
4212
4212
|
return Q;
|
|
4213
4213
|
}, Xe = function(j, Q) {
|
|
4214
|
-
return typeof j ===
|
|
4214
|
+
return typeof j === w ? f(Q).indexOf(f(j)) !== -1 : !1;
|
|
4215
4215
|
}, f = function(j) {
|
|
4216
4216
|
return j.toLowerCase();
|
|
4217
4217
|
}, C = function(j) {
|
|
4218
|
-
return typeof j ===
|
|
4218
|
+
return typeof j === w ? j.replace(/[^\d\.]/g, o).split(".")[0] : n;
|
|
4219
4219
|
}, S = function(j, Q) {
|
|
4220
|
-
if (typeof j ===
|
|
4221
|
-
return j = j.replace(/^\s\s*/, o), typeof Q === _ ? j : j.substring(0,
|
|
4220
|
+
if (typeof j === w)
|
|
4221
|
+
return j = j.replace(/^\s\s*/, o), typeof Q === _ ? j : j.substring(0, ae);
|
|
4222
4222
|
}, D = function(j, Q) {
|
|
4223
|
-
for (var
|
|
4224
|
-
var St = Q[
|
|
4223
|
+
for (var U = 0, se, De, Te, ie, $, Le; U < Q.length && !$; ) {
|
|
4224
|
+
var St = Q[U], Mt = Q[U + 1];
|
|
4225
4225
|
for (se = De = 0; se < St.length && !$ && St[se]; )
|
|
4226
4226
|
if ($ = St[se++].exec(j), $)
|
|
4227
4227
|
for (Te = 0; Te < Mt.length; Te++)
|
|
4228
4228
|
Le = $[++De], ie = Mt[Te], typeof ie === g && ie.length > 0 ? ie.length === 2 ? typeof ie[1] == l ? this[ie[0]] = ie[1].call(this, Le) : this[ie[0]] = ie[1] : ie.length === 3 ? typeof ie[1] === l && !(ie[1].exec && ie[1].test) ? this[ie[0]] = Le ? ie[1].call(this, Le, ie[2]) : n : this[ie[0]] = Le ? Le.replace(ie[1], ie[2]) : n : ie.length === 4 && (this[ie[0]] = Le ? ie[3].call(this, Le.replace(ie[1], ie[2])) : n) : this[ie] = Le || n;
|
|
4229
|
-
|
|
4229
|
+
U += 2;
|
|
4230
4230
|
}
|
|
4231
4231
|
}, A = function(j, Q) {
|
|
4232
|
-
for (var
|
|
4233
|
-
if (typeof Q[
|
|
4234
|
-
for (var se = 0; se < Q[
|
|
4235
|
-
if (Xe(Q[
|
|
4236
|
-
return
|
|
4237
|
-
} else if (Xe(Q[
|
|
4238
|
-
return
|
|
4232
|
+
for (var U in Q)
|
|
4233
|
+
if (typeof Q[U] === g && Q[U].length > 0) {
|
|
4234
|
+
for (var se = 0; se < Q[U].length; se++)
|
|
4235
|
+
if (Xe(Q[U][se], j))
|
|
4236
|
+
return U === a ? n : U;
|
|
4237
|
+
} else if (Xe(Q[U], j))
|
|
4238
|
+
return U === a ? n : U;
|
|
4239
4239
|
return Q.hasOwnProperty("*") ? Q["*"] : j;
|
|
4240
|
-
}, V = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, B = { 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], [y, [v, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [y, [v, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [v, y], [/opios[\/ ]+([\w\.]+)/i], [y, [v, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [y, [v, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [y, [v, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [y, [v, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [y, [v, "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], [v, y], [/quark(?:pc)?\/([-\w\.]+)/i], [y, [v, "Quark"]], [/\bddg\/([\w\.]+)/i], [y, [v, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [y, [v, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [y, [v, "WeChat"]], [/konqueror\/([\w\.]+)/i], [y, [v, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [y, [v, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [y, [v, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [y, [v, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[v, /(.+)/, "$1 Secure " + G], y], [/\bfocus\/([\w\.]+)/i], [y, [v, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [y, [v, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [y, [v, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [y, [v, "Dolphin"]], [/coast\/([\w\.]+)/i], [y, [v, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [y, [v, "MIUI" + pt]], [/fxios\/([\w\.-]+)/i], [y, [v, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [y, [v, "360"]], [/\b(qq)\/([\w\.]+)/i], [[v, /(.+)/, "$1Browser"], y], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[v, /(.+)/, "$1" + pt], y], [/samsungbrowser\/([\w\.]+)/i], [y, [v, Ke + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [y, [v, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[v, "Sogou Mobile"], y], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [v, y], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [v], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [y, v], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[v, xt], y], [/(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], [v, y], [/\bgsa\/([\w\.]+) .*safari\//i], [y, [v, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [y, [v, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [y, [v, oe + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[v, oe + " WebView"], y], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [y, [v, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [v, y], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [y, [v, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [y, v], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [v, [y, A, V]], [/(webkit|khtml)\/([\w\.]+)/i], [v, y], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[v, "Netscape"], y], [/(wolvic|librewolf)\/([\w\.]+)/i], [v, y], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [y, [v, me + " 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], [v, [y, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [v, [y, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[F, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[F, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[F, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[F, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[F, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[F, /ower/, o, f]], [/ sun4\w[;\)]/i], [[F, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[F, f]]], 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], [c, [m, Ke], [p, O]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [m, Ke], [p, k]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [m, re], [p, k]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [m, re], [p, O]], [/(macintosh);/i], [c, [m, re]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [m, tt], [p, k]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [m, Be], [p, O]], [/honor([-\w ]+)[;\)]/i], [c, [m, Be], [p, k]], [/\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], [c, [m, de], [p, O]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [m, de], [p, k]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [m, ft], [p, O]], [/\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], [[c, /_/g, " "], [m, ft], [p, k]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [m, je], [p, k]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [m, A, { OnePlus: ["304", "403", "203"], "*": je }], [p, O]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [m, "Vivo"], [p, k]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [m, "Realme"], [p, k]], [/\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], [c, [m, ke], [p, k]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [m, ke], [p, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [m, ue], [p, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [m, ue], [p, k]], [/(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], [c, [m, z], [p, O]], [/(nokia) (t[12][01])/i], [m, c, [p, O]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [p, k], [m, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [m, we], [p, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [m, we], [p, k]], [/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], [c, [m, ze], [p, k]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [m, ze], [p, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [m, N], [p, k]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [m, le], [p, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [m, le], [p, k]], [/(playbook);[-\w\),; ]+(rim)/i], [c, m, [p, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [m, H], [p, k]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [m, J], [p, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [m, J], [p, k]], [/(nexus 9)/i], [c, [m, "HTC"], [p, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [c, /_/g, " "], [p, k]], [/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], [c, [m, "TCL"], [p, O]], [/(itel) ((\w+))/i], [[m, f], c, [p, A, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [m, "Acer"], [p, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [m, "Meizu"], [p, k]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [m, "Ulefone"], [p, k]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [m, "Energizer"], [p, k]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [m, "Cat"], [p, k]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [m, "Smartfren"], [p, k]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [m, "Nothing"], [p, k]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [m, "Archos"], [p, O]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [m, "Archos"], [p, k]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [m, c, [p, O]], [/(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], [m, c, [p, k]], [/(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], [m, c, [p, O]], [/(surface duo)/i], [c, [m, ye], [p, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [m, "Fairphone"], [p, k]], [/(u304aa)/i], [c, [m, "AT&T"], [p, k]], [/\bsie-(\w*)/i], [c, [m, "Siemens"], [p, k]], [/\b(rct\w+) b/i], [c, [m, "RCA"], [p, O]], [/\b(venue[\d ]{2,7}) b/i], [c, [m, "Dell"], [p, O]], [/\b(q(?:mv|ta)\w+) b/i], [c, [m, "Verizon"], [p, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [m, "Barnes & Noble"], [p, O]], [/\b(tm\d{3}\w+) b/i], [c, [m, "NuVision"], [p, O]], [/\b(k88) b/i], [c, [m, "ZTE"], [p, O]], [/\b(nx\d{3}j) b/i], [c, [m, "ZTE"], [p, k]], [/\b(gen\d{3}) b.+49h/i], [c, [m, "Swiss"], [p, k]], [/\b(zur\d{3}) b/i], [c, [m, "Swiss"], [p, O]], [/\b((zeki)?tb.*\b) b/i], [c, [m, "Zeki"], [p, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], c, [p, O]], [/\b(ns-?\w{0,9}) b/i], [c, [m, "Insignia"], [p, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [m, "NextBook"], [p, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], c, [p, k]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], c, [p, k]], [/\b(ph-1) /i], [c, [m, "Essential"], [p, k]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [m, "Envizen"], [p, O]], [/\b(trio[-\w\. ]+) b/i], [c, [m, "MachSpeed"], [p, O]], [/\btu_(1491) b/i], [c, [m, "Rotor"], [p, O]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [m, Me], [p, O]], [/(sprint) (\w+)/i], [m, c, [p, k]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [m, ye], [p, k]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [m, at], [p, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [m, at], [p, k]], [/smart-tv.+(samsung)/i], [m, [p, M]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [m, Ke], [p, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, ue], [p, M]], [/(apple) ?tv/i], [m, [c, re + " TV"], [p, M]], [/crkey/i], [[c, oe + "cast"], [m, we], [p, M]], [/droid.+aft(\w+)( bui|\))/i], [c, [m, le], [p, M]], [/(shield \w+ tv)/i], [c, [m, Me], [p, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [m, tt], [p, M]], [/(bravia[\w ]+)( bui|\))/i], [c, [m, ze], [p, M]], [/(mi(tv|box)-?\w+) bui/i], [c, [m, ft], [p, M]], [/Hbbtv.*(technisat) (.*);/i], [m, c, [p, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, S], [c, S], [p, M]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [p, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, c, [p, I]], [/droid.+; (shield)( bui|\))/i], [c, [m, Me], [p, I]], [/(playstation \w+)/i], [c, [m, ze], [p, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [m, ye], [p, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [m, Ke], [p, Z]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [m, c, [p, Z]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [m, je], [p, Z]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [m, re], [p, Z]], [/(opwwe\d{3})/i], [c, [m, N], [p, Z]], [/(moto 360)/i], [c, [m, ke], [p, Z]], [/(smartwatch 3)/i], [c, [m, ze], [p, Z]], [/(g watch r)/i], [c, [m, ue], [p, Z]], [/droid.+; (wt63?0{2,3})\)/i], [c, [m, at], [p, Z]], [/droid.+; (glass) \d/i], [c, [m, we], [p, Z]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, c, [p, Z]], [/; (quest( \d| pro)?)/i], [c, [m, xt], [p, Z]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [p, U]], [/(aeobc)\b/i], [c, [m, le], [p, U]], [/(homepod).+mac os/i], [c, [m, re], [p, U]], [/windows iot/i], [[p, U]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [p, k]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [p, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, k]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [y, [v, ge + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [v, y], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [y, [v, "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], [v, y], [/ladybird\//i], [[v, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [y, v]], os: [[/microsoft (windows) (vista|xp)/i], [v, y], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [v, [y, A, B]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[y, A, B], [v, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[y, /_/g, "."], [v, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[v, lt], [y, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [y, v], [/(ubuntu) ([\w\.]+) like android/i], [[v, /(.+)/, "$1 Touch"], y], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [v, y], [/\(bb(10);/i], [y, [v, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [y, [v, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [y, [v, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [y, [v, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [y, [v, "watchOS"]], [/crkey\/([\d\.]+)/i], [y, [v, oe + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[v, ht], y], [/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], [v, y], [/(sunos) ?([\w\.\d]*)/i], [[v, "Solaris"], y], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [v, y]] }, W = function(j, Q) {
|
|
4240
|
+
}, R = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, L = { 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], [x, [v, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [x, [v, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [v, x], [/opios[\/ ]+([\w\.]+)/i], [x, [v, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [x, [v, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [x, [v, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [x, [v, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [x, [v, "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], [v, x], [/quark(?:pc)?\/([-\w\.]+)/i], [x, [v, "Quark"]], [/\bddg\/([\w\.]+)/i], [x, [v, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [x, [v, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [x, [v, "WeChat"]], [/konqueror\/([\w\.]+)/i], [x, [v, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [x, [v, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [x, [v, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [x, [v, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[v, /(.+)/, "$1 Secure " + G], x], [/\bfocus\/([\w\.]+)/i], [x, [v, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [x, [v, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [x, [v, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [x, [v, "Dolphin"]], [/coast\/([\w\.]+)/i], [x, [v, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [x, [v, "MIUI" + pt]], [/fxios\/([\w\.-]+)/i], [x, [v, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [x, [v, "360"]], [/\b(qq)\/([\w\.]+)/i], [[v, /(.+)/, "$1Browser"], x], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[v, /(.+)/, "$1" + pt], x], [/samsungbrowser\/([\w\.]+)/i], [x, [v, Ke + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [x, [v, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[v, "Sogou Mobile"], x], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [v, x], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [v], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [x, v], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[v, xt], x], [/(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], [v, x], [/\bgsa\/([\w\.]+) .*safari\//i], [x, [v, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [x, [v, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [x, [v, oe + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[v, oe + " WebView"], x], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [x, [v, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [v, x], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [x, [v, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [x, v], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [v, [x, A, R]], [/(webkit|khtml)\/([\w\.]+)/i], [v, x], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[v, "Netscape"], x], [/(wolvic|librewolf)\/([\w\.]+)/i], [v, x], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [x, [v, me + " 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], [v, [x, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [v, [x, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[T, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[T, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[T, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[T, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[T, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[T, /ower/, o, f]], [/ sun4\w[;\)]/i], [[T, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[T, f]]], 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], [c, [m, Ke], [p, F]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [m, Ke], [p, k]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [m, re], [p, k]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [m, re], [p, F]], [/(macintosh);/i], [c, [m, re]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [m, tt], [p, k]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [m, Be], [p, F]], [/honor([-\w ]+)[;\)]/i], [c, [m, Be], [p, k]], [/\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], [c, [m, de], [p, F]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [m, de], [p, k]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [m, ft], [p, F]], [/\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], [[c, /_/g, " "], [m, ft], [p, k]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [m, je], [p, k]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [m, A, { OnePlus: ["304", "403", "203"], "*": je }], [p, F]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [m, "Vivo"], [p, k]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [m, "Realme"], [p, k]], [/\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], [c, [m, ke], [p, k]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [m, ke], [p, F]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [m, ue], [p, F]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [m, ue], [p, k]], [/(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], [c, [m, q], [p, F]], [/(nokia) (t[12][01])/i], [m, c, [p, F]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [p, k], [m, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [m, we], [p, F]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [m, we], [p, k]], [/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], [c, [m, ze], [p, k]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [m, ze], [p, F]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [m, N], [p, k]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [m, ce], [p, F]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [m, ce], [p, k]], [/(playbook);[-\w\),; ]+(rim)/i], [c, m, [p, F]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [m, H], [p, k]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [m, J], [p, F]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [m, J], [p, k]], [/(nexus 9)/i], [c, [m, "HTC"], [p, F]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [c, /_/g, " "], [p, k]], [/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], [c, [m, "TCL"], [p, F]], [/(itel) ((\w+))/i], [[m, f], c, [p, A, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [m, "Acer"], [p, F]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [m, "Meizu"], [p, k]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [m, "Ulefone"], [p, k]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [m, "Energizer"], [p, k]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [m, "Cat"], [p, k]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [m, "Smartfren"], [p, k]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [m, "Nothing"], [p, k]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [m, "Archos"], [p, F]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [m, "Archos"], [p, k]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [m, c, [p, F]], [/(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], [m, c, [p, k]], [/(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], [m, c, [p, F]], [/(surface duo)/i], [c, [m, ye], [p, F]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [m, "Fairphone"], [p, k]], [/(u304aa)/i], [c, [m, "AT&T"], [p, k]], [/\bsie-(\w*)/i], [c, [m, "Siemens"], [p, k]], [/\b(rct\w+) b/i], [c, [m, "RCA"], [p, F]], [/\b(venue[\d ]{2,7}) b/i], [c, [m, "Dell"], [p, F]], [/\b(q(?:mv|ta)\w+) b/i], [c, [m, "Verizon"], [p, F]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [m, "Barnes & Noble"], [p, F]], [/\b(tm\d{3}\w+) b/i], [c, [m, "NuVision"], [p, F]], [/\b(k88) b/i], [c, [m, "ZTE"], [p, F]], [/\b(nx\d{3}j) b/i], [c, [m, "ZTE"], [p, k]], [/\b(gen\d{3}) b.+49h/i], [c, [m, "Swiss"], [p, k]], [/\b(zur\d{3}) b/i], [c, [m, "Swiss"], [p, F]], [/\b((zeki)?tb.*\b) b/i], [c, [m, "Zeki"], [p, F]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], c, [p, F]], [/\b(ns-?\w{0,9}) b/i], [c, [m, "Insignia"], [p, F]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [m, "NextBook"], [p, F]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], c, [p, k]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], c, [p, k]], [/\b(ph-1) /i], [c, [m, "Essential"], [p, k]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [m, "Envizen"], [p, F]], [/\b(trio[-\w\. ]+) b/i], [c, [m, "MachSpeed"], [p, F]], [/\btu_(1491) b/i], [c, [m, "Rotor"], [p, F]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [m, Me], [p, F]], [/(sprint) (\w+)/i], [m, c, [p, k]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [m, ye], [p, k]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [m, at], [p, F]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [m, at], [p, k]], [/smart-tv.+(samsung)/i], [m, [p, V]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [m, Ke], [p, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, ue], [p, V]], [/(apple) ?tv/i], [m, [c, re + " TV"], [p, V]], [/crkey/i], [[c, oe + "cast"], [m, we], [p, V]], [/droid.+aft(\w+)( bui|\))/i], [c, [m, ce], [p, V]], [/(shield \w+ tv)/i], [c, [m, Me], [p, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [m, tt], [p, V]], [/(bravia[\w ]+)( bui|\))/i], [c, [m, ze], [p, V]], [/(mi(tv|box)-?\w+) bui/i], [c, [m, ft], [p, V]], [/Hbbtv.*(technisat) (.*);/i], [m, c, [p, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, S], [c, S], [p, V]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [p, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, c, [p, I]], [/droid.+; (shield)( bui|\))/i], [c, [m, Me], [p, I]], [/(playstation \w+)/i], [c, [m, ze], [p, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [m, ye], [p, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [m, Ke], [p, z]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [m, c, [p, z]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [m, je], [p, z]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [m, re], [p, z]], [/(opwwe\d{3})/i], [c, [m, N], [p, z]], [/(moto 360)/i], [c, [m, ke], [p, z]], [/(smartwatch 3)/i], [c, [m, ze], [p, z]], [/(g watch r)/i], [c, [m, ue], [p, z]], [/droid.+; (wt63?0{2,3})\)/i], [c, [m, at], [p, z]], [/droid.+; (glass) \d/i], [c, [m, we], [p, z]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, c, [p, z]], [/; (quest( \d| pro)?)/i], [c, [m, xt], [p, z]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [p, B]], [/(aeobc)\b/i], [c, [m, ce], [p, B]], [/(homepod).+mac os/i], [c, [m, re], [p, B]], [/windows iot/i], [[p, B]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [p, k]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [p, F]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, F]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, k]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [x, [v, ge + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [v, x], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [x, [v, "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], [v, x], [/ladybird\//i], [[v, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [x, v]], os: [[/microsoft (windows) (vista|xp)/i], [v, x], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [v, [x, A, L]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[x, A, L], [v, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[x, /_/g, "."], [v, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[v, lt], [x, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [x, v], [/(ubuntu) ([\w\.]+) like android/i], [[v, /(.+)/, "$1 Touch"], x], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [v, x], [/\(bb(10);/i], [x, [v, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [x, [v, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [x, [v, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [x, [v, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [x, [v, "watchOS"]], [/crkey\/([\d\.]+)/i], [x, [v, oe + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[v, ht], x], [/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], [v, x], [/(sunos) ?([\w\.\d]*)/i], [[v, "Solaris"], x], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [v, x]] }, W = function(j, Q) {
|
|
4241
4241
|
if (typeof j === g && (Q = j, j = n), !(this instanceof W))
|
|
4242
4242
|
return new W(j, Q).getResult();
|
|
4243
|
-
var
|
|
4243
|
+
var U = typeof r !== _ && r.navigator ? r.navigator : n, se = j || (U && U.userAgent ? U.userAgent : o), De = U && U.userAgentData ? U.userAgentData : n, Te = Q ? Et(K, Q) : K, ie = U && U.userAgent == se;
|
|
4244
4244
|
return this.getBrowser = function() {
|
|
4245
4245
|
var $ = {};
|
|
4246
|
-
return $[v] = n, $[
|
|
4246
|
+
return $[v] = n, $[x] = n, D.call($, se, Te.browser), $[h] = C($[x]), ie && U && U.brave && typeof U.brave.isBrave == l && ($[v] = "Brave"), $;
|
|
4247
4247
|
}, this.getCPU = function() {
|
|
4248
4248
|
var $ = {};
|
|
4249
|
-
return $[
|
|
4249
|
+
return $[T] = n, D.call($, se, Te.cpu), $;
|
|
4250
4250
|
}, this.getDevice = function() {
|
|
4251
4251
|
var $ = {};
|
|
4252
|
-
return $[m] = n, $[c] = n, $[p] = n, D.call($, se, Te.device), ie && !$[p] && De && De.mobile && ($[p] = k), ie && $[c] == "Macintosh" &&
|
|
4252
|
+
return $[m] = n, $[c] = n, $[p] = n, D.call($, se, Te.device), ie && !$[p] && De && De.mobile && ($[p] = k), ie && $[c] == "Macintosh" && U && typeof U.standalone !== _ && U.maxTouchPoints && U.maxTouchPoints > 2 && ($[c] = "iPad", $[p] = F), $;
|
|
4253
4253
|
}, this.getEngine = function() {
|
|
4254
4254
|
var $ = {};
|
|
4255
|
-
return $[v] = n, $[
|
|
4255
|
+
return $[v] = n, $[x] = n, D.call($, se, Te.engine), $;
|
|
4256
4256
|
}, this.getOS = function() {
|
|
4257
4257
|
var $ = {};
|
|
4258
|
-
return $[v] = n, $[
|
|
4258
|
+
return $[v] = n, $[x] = n, D.call($, se, Te.os), ie && !$[v] && De && De.platform && De.platform != "Unknown" && ($[v] = De.platform.replace(/chrome os/i, ht).replace(/macos/i, lt)), $;
|
|
4259
4259
|
}, this.getResult = function() {
|
|
4260
4260
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
4261
4261
|
}, this.getUA = function() {
|
|
4262
4262
|
return se;
|
|
4263
4263
|
}, this.setUA = function($) {
|
|
4264
|
-
return se = typeof $ ===
|
|
4264
|
+
return se = typeof $ === w && $.length > ae ? S($, ae) : $, this;
|
|
4265
4265
|
}, this.setUA(se), this;
|
|
4266
4266
|
};
|
|
4267
|
-
W.VERSION = i, W.BROWSER = ct([v,
|
|
4268
|
-
var
|
|
4269
|
-
if (
|
|
4267
|
+
W.VERSION = i, W.BROWSER = ct([v, x, h]), W.CPU = ct([T]), W.DEVICE = ct([c, m, p, I, k, V, F, z, B]), W.ENGINE = W.OS = ct([v, x]), e.exports && (t = e.exports = W), t.UAParser = W;
|
|
4268
|
+
var le = typeof r !== _ && (r.jQuery || r.Zepto);
|
|
4269
|
+
if (le && !le.ua) {
|
|
4270
4270
|
var Ve = new W();
|
|
4271
|
-
|
|
4271
|
+
le.ua = Ve.getResult(), le.ua.get = function() {
|
|
4272
4272
|
return Ve.getUA();
|
|
4273
|
-
},
|
|
4273
|
+
}, le.ua.set = function(j) {
|
|
4274
4274
|
Ve.setUA(j);
|
|
4275
4275
|
var Q = Ve.getResult();
|
|
4276
|
-
for (var
|
|
4277
|
-
|
|
4276
|
+
for (var U in Q)
|
|
4277
|
+
le.ua[U] = Q[U];
|
|
4278
4278
|
};
|
|
4279
4279
|
}
|
|
4280
4280
|
})(typeof window == "object" ? window : Il);
|
|
4281
|
-
})(
|
|
4281
|
+
})(Nt, Nt.exports)), Nt.exports;
|
|
4282
4282
|
}
|
|
4283
4283
|
var vi;
|
|
4284
4284
|
function Rl() {
|
|
4285
4285
|
if (vi) return P;
|
|
4286
4286
|
vi = 1, Object.defineProperty(P, "__esModule", { value: !0 });
|
|
4287
|
-
function e(
|
|
4288
|
-
return
|
|
4287
|
+
function e(b) {
|
|
4288
|
+
return b && typeof b == "object" && "default" in b ? b.default : b;
|
|
4289
4289
|
}
|
|
4290
|
-
var t = Al, r = e(t), n = Vl(), i = new n(), o = i.getBrowser(), a = i.getCPU(), l = i.getDevice(), _ = i.getEngine(), g = i.getOS(),
|
|
4290
|
+
var t = Al, r = e(t), n = Vl(), i = new n(), o = i.getBrowser(), a = i.getCPU(), l = i.getDevice(), _ = i.getEngine(), g = i.getOS(), w = i.getUA(), h = function(d) {
|
|
4291
4291
|
return i.setUA(d);
|
|
4292
4292
|
}, c = function(d) {
|
|
4293
4293
|
if (!d) {
|
|
@@ -4303,8 +4303,8 @@ function Rl() {
|
|
|
4303
4303
|
engine: u.getEngine(),
|
|
4304
4304
|
os: u.getOS(),
|
|
4305
4305
|
ua: u.getUA(),
|
|
4306
|
-
setUserAgent: function(
|
|
4307
|
-
return u.setUA(
|
|
4306
|
+
setUserAgent: function(O) {
|
|
4307
|
+
return u.setUA(O);
|
|
4308
4308
|
}
|
|
4309
4309
|
};
|
|
4310
4310
|
}, v = /* @__PURE__ */ Object.freeze({
|
|
@@ -4314,138 +4314,138 @@ function Rl() {
|
|
|
4314
4314
|
device: l,
|
|
4315
4315
|
engine: _,
|
|
4316
4316
|
os: g,
|
|
4317
|
-
ua:
|
|
4317
|
+
ua: w,
|
|
4318
4318
|
setUa: h,
|
|
4319
4319
|
parseUserAgent: c
|
|
4320
4320
|
});
|
|
4321
|
-
function p(
|
|
4322
|
-
var u = Object.keys(
|
|
4321
|
+
function p(b, d) {
|
|
4322
|
+
var u = Object.keys(b);
|
|
4323
4323
|
if (Object.getOwnPropertySymbols) {
|
|
4324
|
-
var E = Object.getOwnPropertySymbols(
|
|
4325
|
-
d && (E = E.filter(function(
|
|
4326
|
-
return Object.getOwnPropertyDescriptor(
|
|
4324
|
+
var E = Object.getOwnPropertySymbols(b);
|
|
4325
|
+
d && (E = E.filter(function(O) {
|
|
4326
|
+
return Object.getOwnPropertyDescriptor(b, O).enumerable;
|
|
4327
4327
|
})), u.push.apply(u, E);
|
|
4328
4328
|
}
|
|
4329
4329
|
return u;
|
|
4330
4330
|
}
|
|
4331
|
-
function m(
|
|
4331
|
+
function m(b) {
|
|
4332
4332
|
for (var d = 1; d < arguments.length; d++) {
|
|
4333
4333
|
var u = arguments[d] != null ? arguments[d] : {};
|
|
4334
4334
|
d % 2 ? p(Object(u), !0).forEach(function(E) {
|
|
4335
|
-
|
|
4336
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
4337
|
-
Object.defineProperty(
|
|
4335
|
+
F(b, E, u[E]);
|
|
4336
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(b, Object.getOwnPropertyDescriptors(u)) : p(Object(u)).forEach(function(E) {
|
|
4337
|
+
Object.defineProperty(b, E, Object.getOwnPropertyDescriptor(u, E));
|
|
4338
4338
|
});
|
|
4339
4339
|
}
|
|
4340
|
-
return
|
|
4340
|
+
return b;
|
|
4341
4341
|
}
|
|
4342
|
-
function
|
|
4342
|
+
function x(b) {
|
|
4343
4343
|
"@babel/helpers - typeof";
|
|
4344
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
4344
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? x = function(d) {
|
|
4345
4345
|
return typeof d;
|
|
4346
|
-
} :
|
|
4346
|
+
} : x = function(d) {
|
|
4347
4347
|
return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
|
|
4348
|
-
},
|
|
4348
|
+
}, x(b);
|
|
4349
4349
|
}
|
|
4350
|
-
function
|
|
4351
|
-
if (!(
|
|
4350
|
+
function T(b, d) {
|
|
4351
|
+
if (!(b instanceof d))
|
|
4352
4352
|
throw new TypeError("Cannot call a class as a function");
|
|
4353
4353
|
}
|
|
4354
|
-
function I(
|
|
4354
|
+
function I(b, d) {
|
|
4355
4355
|
for (var u = 0; u < d.length; u++) {
|
|
4356
4356
|
var E = d[u];
|
|
4357
|
-
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(
|
|
4357
|
+
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(b, E.key, E);
|
|
4358
4358
|
}
|
|
4359
4359
|
}
|
|
4360
|
-
function k(
|
|
4361
|
-
return d && I(
|
|
4360
|
+
function k(b, d, u) {
|
|
4361
|
+
return d && I(b.prototype, d), b;
|
|
4362
4362
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return d in
|
|
4363
|
+
function F(b, d, u) {
|
|
4364
|
+
return d in b ? Object.defineProperty(b, d, {
|
|
4365
4365
|
value: u,
|
|
4366
4366
|
enumerable: !0,
|
|
4367
4367
|
configurable: !0,
|
|
4368
4368
|
writable: !0
|
|
4369
|
-
}) :
|
|
4369
|
+
}) : b[d] = u, b;
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4372
|
-
return
|
|
4371
|
+
function V() {
|
|
4372
|
+
return V = Object.assign || function(b) {
|
|
4373
4373
|
for (var d = 1; d < arguments.length; d++) {
|
|
4374
4374
|
var u = arguments[d];
|
|
4375
4375
|
for (var E in u)
|
|
4376
|
-
Object.prototype.hasOwnProperty.call(u, E) && (
|
|
4376
|
+
Object.prototype.hasOwnProperty.call(u, E) && (b[E] = u[E]);
|
|
4377
4377
|
}
|
|
4378
|
-
return
|
|
4379
|
-
},
|
|
4378
|
+
return b;
|
|
4379
|
+
}, V.apply(this, arguments);
|
|
4380
4380
|
}
|
|
4381
|
-
function
|
|
4381
|
+
function z(b, d) {
|
|
4382
4382
|
if (typeof d != "function" && d !== null)
|
|
4383
4383
|
throw new TypeError("Super expression must either be null or a function");
|
|
4384
|
-
|
|
4384
|
+
b.prototype = Object.create(d && d.prototype, {
|
|
4385
4385
|
constructor: {
|
|
4386
|
-
value:
|
|
4386
|
+
value: b,
|
|
4387
4387
|
writable: !0,
|
|
4388
4388
|
configurable: !0
|
|
4389
4389
|
}
|
|
4390
|
-
}), d &&
|
|
4390
|
+
}), d && ae(b, d);
|
|
4391
4391
|
}
|
|
4392
|
-
function
|
|
4393
|
-
return
|
|
4392
|
+
function B(b) {
|
|
4393
|
+
return B = Object.setPrototypeOf ? Object.getPrototypeOf : function(u) {
|
|
4394
4394
|
return u.__proto__ || Object.getPrototypeOf(u);
|
|
4395
|
-
},
|
|
4395
|
+
}, B(b);
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4398
|
-
return
|
|
4399
|
-
return E.__proto__ =
|
|
4400
|
-
},
|
|
4397
|
+
function ae(b, d) {
|
|
4398
|
+
return ae = Object.setPrototypeOf || function(E, O) {
|
|
4399
|
+
return E.__proto__ = O, E;
|
|
4400
|
+
}, ae(b, d);
|
|
4401
4401
|
}
|
|
4402
|
-
function
|
|
4403
|
-
if (
|
|
4404
|
-
var u = {}, E = Object.keys(
|
|
4402
|
+
function ce(b, d) {
|
|
4403
|
+
if (b == null) return {};
|
|
4404
|
+
var u = {}, E = Object.keys(b), O, ee;
|
|
4405
4405
|
for (ee = 0; ee < E.length; ee++)
|
|
4406
|
-
|
|
4406
|
+
O = E[ee], !(d.indexOf(O) >= 0) && (u[O] = b[O]);
|
|
4407
4407
|
return u;
|
|
4408
4408
|
}
|
|
4409
|
-
function re(
|
|
4410
|
-
if (
|
|
4411
|
-
var u =
|
|
4409
|
+
function re(b, d) {
|
|
4410
|
+
if (b == null) return {};
|
|
4411
|
+
var u = ce(b, d), E, O;
|
|
4412
4412
|
if (Object.getOwnPropertySymbols) {
|
|
4413
|
-
var ee = Object.getOwnPropertySymbols(
|
|
4414
|
-
for (
|
|
4415
|
-
E = ee[
|
|
4413
|
+
var ee = Object.getOwnPropertySymbols(b);
|
|
4414
|
+
for (O = 0; O < ee.length; O++)
|
|
4415
|
+
E = ee[O], !(d.indexOf(E) >= 0) && Object.prototype.propertyIsEnumerable.call(b, E) && (u[E] = b[E]);
|
|
4416
4416
|
}
|
|
4417
4417
|
return u;
|
|
4418
4418
|
}
|
|
4419
|
-
function J(
|
|
4420
|
-
if (
|
|
4419
|
+
function J(b) {
|
|
4420
|
+
if (b === void 0)
|
|
4421
4421
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4422
|
-
return
|
|
4422
|
+
return b;
|
|
4423
4423
|
}
|
|
4424
|
-
function H(
|
|
4424
|
+
function H(b, d) {
|
|
4425
4425
|
if (d && (typeof d == "object" || typeof d == "function"))
|
|
4426
4426
|
return d;
|
|
4427
4427
|
if (d !== void 0)
|
|
4428
4428
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4429
|
-
return J(
|
|
4429
|
+
return J(b);
|
|
4430
4430
|
}
|
|
4431
|
-
function G(
|
|
4432
|
-
return oe(
|
|
4431
|
+
function G(b, d) {
|
|
4432
|
+
return oe(b) || ge(b, d) || me(b, d) || Be();
|
|
4433
4433
|
}
|
|
4434
|
-
function oe(
|
|
4435
|
-
if (Array.isArray(
|
|
4434
|
+
function oe(b) {
|
|
4435
|
+
if (Array.isArray(b)) return b;
|
|
4436
4436
|
}
|
|
4437
|
-
function ge(
|
|
4438
|
-
var u =
|
|
4437
|
+
function ge(b, d) {
|
|
4438
|
+
var u = b == null ? null : typeof Symbol != "undefined" && b[Symbol.iterator] || b["@@iterator"];
|
|
4439
4439
|
if (u != null) {
|
|
4440
|
-
var E = [],
|
|
4440
|
+
var E = [], O = !0, ee = !1, xe, Pe;
|
|
4441
4441
|
try {
|
|
4442
|
-
for (u = u.call(
|
|
4442
|
+
for (u = u.call(b); !(O = (xe = u.next()).done) && (E.push(xe.value), !(d && E.length === d)); O = !0)
|
|
4443
4443
|
;
|
|
4444
|
-
} catch (
|
|
4445
|
-
ee = !0, Pe =
|
|
4444
|
+
} catch (Qt) {
|
|
4445
|
+
ee = !0, Pe = Qt;
|
|
4446
4446
|
} finally {
|
|
4447
4447
|
try {
|
|
4448
|
-
!
|
|
4448
|
+
!O && u.return != null && u.return();
|
|
4449
4449
|
} finally {
|
|
4450
4450
|
if (ee) throw Pe;
|
|
4451
4451
|
}
|
|
@@ -4453,17 +4453,17 @@ function Rl() {
|
|
|
4453
4453
|
return E;
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
|
-
function me(
|
|
4457
|
-
if (
|
|
4458
|
-
if (typeof
|
|
4459
|
-
var u = Object.prototype.toString.call(
|
|
4460
|
-
if (u === "Object" &&
|
|
4461
|
-
if (u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)) return we(
|
|
4456
|
+
function me(b, d) {
|
|
4457
|
+
if (b) {
|
|
4458
|
+
if (typeof b == "string") return we(b, d);
|
|
4459
|
+
var u = Object.prototype.toString.call(b).slice(8, -1);
|
|
4460
|
+
if (u === "Object" && b.constructor && (u = b.constructor.name), u === "Map" || u === "Set") return Array.from(b);
|
|
4461
|
+
if (u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)) return we(b, d);
|
|
4462
4462
|
}
|
|
4463
4463
|
}
|
|
4464
|
-
function we(
|
|
4465
|
-
(d == null || d >
|
|
4466
|
-
for (var u = 0, E = new Array(d); u < d; u++) E[u] =
|
|
4464
|
+
function we(b, d) {
|
|
4465
|
+
(d == null || d > b.length) && (d = b.length);
|
|
4466
|
+
for (var u = 0, E = new Array(d); u < d; u++) E[u] = b[u];
|
|
4467
4467
|
return E;
|
|
4468
4468
|
}
|
|
4469
4469
|
function Be() {
|
|
@@ -4478,7 +4478,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4478
4478
|
Wearable: "wearable",
|
|
4479
4479
|
Embedded: "embedded",
|
|
4480
4480
|
Browser: void 0
|
|
4481
|
-
},
|
|
4481
|
+
}, q = {
|
|
4482
4482
|
Chrome: "Chrome",
|
|
4483
4483
|
Firefox: "Firefox",
|
|
4484
4484
|
Opera: "Opera",
|
|
@@ -4548,7 +4548,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4548
4548
|
}, je = function(d) {
|
|
4549
4549
|
var u = ne();
|
|
4550
4550
|
return u && u.platform && (u.platform.indexOf(d) !== -1 || u.platform === "MacIntel" && u.maxTouchPoints > 1 && !window.MSStream);
|
|
4551
|
-
}, Ke = function(d, u, E,
|
|
4551
|
+
}, Ke = function(d, u, E, O, ee) {
|
|
4552
4552
|
return {
|
|
4553
4553
|
isBrowser: d,
|
|
4554
4554
|
browserMajorVersion: N(u.major),
|
|
@@ -4556,71 +4556,71 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4556
4556
|
browserName: N(u.name),
|
|
4557
4557
|
engineName: N(E.name),
|
|
4558
4558
|
engineVersion: N(E.version),
|
|
4559
|
-
osName: N(
|
|
4560
|
-
osVersion: N(
|
|
4559
|
+
osName: N(O.name),
|
|
4560
|
+
osVersion: N(O.version),
|
|
4561
4561
|
userAgent: N(ee)
|
|
4562
4562
|
};
|
|
4563
|
-
}, tt = function(d, u, E,
|
|
4563
|
+
}, tt = function(d, u, E, O) {
|
|
4564
4564
|
return m({}, d, {
|
|
4565
4565
|
vendor: N(u.vendor),
|
|
4566
4566
|
model: N(u.model),
|
|
4567
4567
|
os: N(E.name),
|
|
4568
4568
|
osVersion: N(E.version),
|
|
4569
|
-
ua: N(
|
|
4569
|
+
ua: N(O)
|
|
4570
4570
|
});
|
|
4571
|
-
}, ze = function(d, u, E,
|
|
4571
|
+
}, ze = function(d, u, E, O) {
|
|
4572
4572
|
return {
|
|
4573
4573
|
isSmartTV: d,
|
|
4574
4574
|
engineName: N(u.name),
|
|
4575
4575
|
engineVersion: N(u.version),
|
|
4576
4576
|
osName: N(E.name),
|
|
4577
4577
|
osVersion: N(E.version),
|
|
4578
|
-
userAgent: N(
|
|
4578
|
+
userAgent: N(O)
|
|
4579
4579
|
};
|
|
4580
|
-
}, ft = function(d, u, E,
|
|
4580
|
+
}, ft = function(d, u, E, O) {
|
|
4581
4581
|
return {
|
|
4582
4582
|
isConsole: d,
|
|
4583
4583
|
engineName: N(u.name),
|
|
4584
4584
|
engineVersion: N(u.version),
|
|
4585
4585
|
osName: N(E.name),
|
|
4586
4586
|
osVersion: N(E.version),
|
|
4587
|
-
userAgent: N(
|
|
4587
|
+
userAgent: N(O)
|
|
4588
4588
|
};
|
|
4589
|
-
}, at = function(d, u, E,
|
|
4589
|
+
}, at = function(d, u, E, O) {
|
|
4590
4590
|
return {
|
|
4591
4591
|
isWearable: d,
|
|
4592
4592
|
engineName: N(u.name),
|
|
4593
4593
|
engineVersion: N(u.version),
|
|
4594
4594
|
osName: N(E.name),
|
|
4595
4595
|
osVersion: N(E.version),
|
|
4596
|
-
userAgent: N(
|
|
4596
|
+
userAgent: N(O)
|
|
4597
4597
|
};
|
|
4598
|
-
}, xt = function(d, u, E,
|
|
4598
|
+
}, xt = function(d, u, E, O, ee) {
|
|
4599
4599
|
return {
|
|
4600
4600
|
isEmbedded: d,
|
|
4601
4601
|
vendor: N(u.vendor),
|
|
4602
4602
|
model: N(u.model),
|
|
4603
4603
|
engineName: N(E.name),
|
|
4604
4604
|
engineVersion: N(E.version),
|
|
4605
|
-
osName: N(
|
|
4606
|
-
osVersion: N(
|
|
4605
|
+
osName: N(O.name),
|
|
4606
|
+
osVersion: N(O.version),
|
|
4607
4607
|
userAgent: N(ee)
|
|
4608
4608
|
};
|
|
4609
4609
|
};
|
|
4610
|
-
function ht(
|
|
4611
|
-
var d =
|
|
4612
|
-
if (
|
|
4613
|
-
return Ke(
|
|
4610
|
+
function ht(b) {
|
|
4611
|
+
var d = b ? c(b) : v, u = d.device, E = d.browser, O = d.engine, ee = d.os, xe = d.ua, Pe = ke(u.type), Qt = Pe.isBrowser, Cs = Pe.isMobile, ys = Pe.isTablet, An = Pe.isSmartTV, In = Pe.isConsole, Vn = Pe.isWearable, Rn = Pe.isEmbedded;
|
|
4612
|
+
if (Qt)
|
|
4613
|
+
return Ke(Qt, E, O, ee, xe);
|
|
4614
4614
|
if (An)
|
|
4615
|
-
return ze(An,
|
|
4615
|
+
return ze(An, O, ee, xe);
|
|
4616
4616
|
if (In)
|
|
4617
|
-
return ft(In,
|
|
4617
|
+
return ft(In, O, ee, xe);
|
|
4618
4618
|
if (Cs || ys)
|
|
4619
4619
|
return tt(Pe, u, ee, xe);
|
|
4620
4620
|
if (Vn)
|
|
4621
|
-
return at(Vn,
|
|
4621
|
+
return at(Vn, O, ee, xe);
|
|
4622
4622
|
if (Rn)
|
|
4623
|
-
return xt(Rn, u,
|
|
4623
|
+
return xt(Rn, u, O, ee, xe);
|
|
4624
4624
|
}
|
|
4625
4625
|
var lt = function(d) {
|
|
4626
4626
|
var u = d.type;
|
|
@@ -4652,10 +4652,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4652
4652
|
}, A = function(d) {
|
|
4653
4653
|
var u = d.model;
|
|
4654
4654
|
return N(u);
|
|
4655
|
-
},
|
|
4655
|
+
}, R = function(d) {
|
|
4656
4656
|
var u = d.type;
|
|
4657
4657
|
return N(u, "browser");
|
|
4658
|
-
},
|
|
4658
|
+
}, L = function(d) {
|
|
4659
4659
|
var u = d.name;
|
|
4660
4660
|
return u === ue.Android;
|
|
4661
4661
|
}, K = function(d) {
|
|
@@ -4664,7 +4664,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4664
4664
|
}, W = function(d) {
|
|
4665
4665
|
var u = d.name;
|
|
4666
4666
|
return u === ue.MAC_OS;
|
|
4667
|
-
},
|
|
4667
|
+
}, le = function(d) {
|
|
4668
4668
|
var u = d.name;
|
|
4669
4669
|
return u === ue.WindowsPhone;
|
|
4670
4670
|
}, Ve = function(d) {
|
|
@@ -4676,39 +4676,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4676
4676
|
}, Q = function(d) {
|
|
4677
4677
|
var u = d.name;
|
|
4678
4678
|
return N(u);
|
|
4679
|
-
},
|
|
4679
|
+
}, U = function(d) {
|
|
4680
4680
|
var u = d.name;
|
|
4681
|
-
return u ===
|
|
4681
|
+
return u === q.Chrome;
|
|
4682
4682
|
}, se = function(d) {
|
|
4683
4683
|
var u = d.name;
|
|
4684
|
-
return u ===
|
|
4684
|
+
return u === q.Firefox;
|
|
4685
4685
|
}, De = function(d) {
|
|
4686
4686
|
var u = d.name;
|
|
4687
|
-
return u ===
|
|
4687
|
+
return u === q.Chromium;
|
|
4688
4688
|
}, Te = function(d) {
|
|
4689
4689
|
var u = d.name;
|
|
4690
|
-
return u ===
|
|
4690
|
+
return u === q.Edge;
|
|
4691
4691
|
}, ie = function(d) {
|
|
4692
4692
|
var u = d.name;
|
|
4693
|
-
return u ===
|
|
4693
|
+
return u === q.Yandex;
|
|
4694
4694
|
}, $ = function(d) {
|
|
4695
4695
|
var u = d.name;
|
|
4696
|
-
return u ===
|
|
4696
|
+
return u === q.Safari || u === q.MobileSafari;
|
|
4697
4697
|
}, Le = function(d) {
|
|
4698
4698
|
var u = d.name;
|
|
4699
|
-
return u ===
|
|
4699
|
+
return u === q.MobileSafari;
|
|
4700
4700
|
}, St = function(d) {
|
|
4701
4701
|
var u = d.name;
|
|
4702
|
-
return u ===
|
|
4702
|
+
return u === q.Opera;
|
|
4703
4703
|
}, Mt = function(d) {
|
|
4704
4704
|
var u = d.name;
|
|
4705
|
-
return u ===
|
|
4705
|
+
return u === q.InternetExplorer || u === q.Ie;
|
|
4706
4706
|
}, sn = function(d) {
|
|
4707
4707
|
var u = d.name;
|
|
4708
|
-
return u ===
|
|
4708
|
+
return u === q.MIUI;
|
|
4709
4709
|
}, an = function(d) {
|
|
4710
4710
|
var u = d.name;
|
|
4711
|
-
return u ===
|
|
4711
|
+
return u === q.SamsungBrowser;
|
|
4712
4712
|
}, ln = function(d) {
|
|
4713
4713
|
var u = d.version;
|
|
4714
4714
|
return N(u);
|
|
@@ -4741,8 +4741,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4741
4741
|
}, mn = function(d) {
|
|
4742
4742
|
return N(d);
|
|
4743
4743
|
};
|
|
4744
|
-
function vn(
|
|
4745
|
-
var d =
|
|
4744
|
+
function vn(b) {
|
|
4745
|
+
var d = b || v, u = d.device, E = d.browser, O = d.os, ee = d.engine, xe = d.ua;
|
|
4746
4746
|
return {
|
|
4747
4747
|
isSmartTV: ct(u),
|
|
4748
4748
|
isConsole: C(u),
|
|
@@ -4755,16 +4755,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4755
4755
|
isTablet: pt(u) || Je(),
|
|
4756
4756
|
isBrowser: Xe(u),
|
|
4757
4757
|
isDesktop: Xe(u),
|
|
4758
|
-
isAndroid:
|
|
4759
|
-
isWinPhone:
|
|
4760
|
-
isIOS: Ve(
|
|
4761
|
-
isChrome:
|
|
4758
|
+
isAndroid: L(O),
|
|
4759
|
+
isWinPhone: le(O),
|
|
4760
|
+
isIOS: Ve(O) || Je(),
|
|
4761
|
+
isChrome: U(E),
|
|
4762
4762
|
isFirefox: se(E),
|
|
4763
4763
|
isSafari: $(E),
|
|
4764
4764
|
isOpera: St(E),
|
|
4765
4765
|
isIE: Mt(E),
|
|
4766
|
-
osVersion: j(
|
|
4767
|
-
osName: Q(
|
|
4766
|
+
osVersion: j(O),
|
|
4767
|
+
osName: Q(O),
|
|
4768
4768
|
fullBrowserVersion: ln(E),
|
|
4769
4769
|
browserVersion: cn(E),
|
|
4770
4770
|
browserName: dn(E),
|
|
@@ -4775,7 +4775,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4775
4775
|
getUA: mn(xe),
|
|
4776
4776
|
isEdge: Te(E) || kt(xe),
|
|
4777
4777
|
isYandex: ie(E),
|
|
4778
|
-
deviceType:
|
|
4778
|
+
deviceType: R(u),
|
|
4779
4779
|
isIOS13: pn(),
|
|
4780
4780
|
isIPad13: Je(),
|
|
4781
4781
|
isIPhone13: _n(),
|
|
@@ -4783,84 +4783,84 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4783
4783
|
isElectron: hn(),
|
|
4784
4784
|
isEdgeChromium: kt(xe),
|
|
4785
4785
|
isLegacyEdge: Te(E) && !kt(xe),
|
|
4786
|
-
isWindows: K(
|
|
4787
|
-
isMacOs: W(
|
|
4786
|
+
isWindows: K(O),
|
|
4787
|
+
isMacOs: W(O),
|
|
4788
4788
|
isMIUI: sn(E),
|
|
4789
4789
|
isSamsungBrowser: an(E)
|
|
4790
4790
|
};
|
|
4791
4791
|
}
|
|
4792
|
-
var bn = ct(l), wn = C(l), Cn = f(l), Oo = S(l), To = Le(o) || Je(), Fo = De(o),
|
|
4792
|
+
var bn = ct(l), wn = C(l), Cn = f(l), Oo = S(l), To = Le(o) || Je(), Fo = De(o), Jt = Et(l) || Je(), yn = lt(l), xn = pt(l) || Je(), En = Xe(l), Ao = Xe(l), Sn = L(g), kn = le(g), On = Ve(g) || Je(), Io = U(o), Vo = se(o), Ro = $(o), Mo = St(o), Tn = Mt(o), Do = j(g), Po = Q(g), No = ln(o), Bo = cn(o), Lo = dn(o), Uo = D(l), Ho = A(l), Wo = un(_), $o = fn(_), jo = mn(w), zo = Te(o) || kt(w), qo = ie(o), Zo = R(l), Go = pn(), Yo = Je(), Ko = _n(), Xo = gn(), Jo = hn(), Qo = kt(w), es = Te(o) && !kt(w), ts = K(g), rs = W(g), ns = sn(o), is = an(o), os = function(d) {
|
|
4793
4793
|
if (!d || typeof d != "string") {
|
|
4794
4794
|
console.error("No valid user agent string was provided");
|
|
4795
4795
|
return;
|
|
4796
4796
|
}
|
|
4797
|
-
var u = c(d), E = u.device,
|
|
4797
|
+
var u = c(d), E = u.device, O = u.browser, ee = u.os, xe = u.engine, Pe = u.ua;
|
|
4798
4798
|
return vn({
|
|
4799
4799
|
device: E,
|
|
4800
|
-
browser:
|
|
4800
|
+
browser: O,
|
|
4801
4801
|
os: ee,
|
|
4802
4802
|
engine: xe,
|
|
4803
4803
|
ua: Pe
|
|
4804
4804
|
});
|
|
4805
4805
|
}, ss = function(d) {
|
|
4806
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4807
|
-
return Sn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4806
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4807
|
+
return Sn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4808
4808
|
}, as = function(d) {
|
|
4809
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4810
|
-
return En ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4809
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4810
|
+
return En ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4811
4811
|
}, ls = function(d) {
|
|
4812
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4813
|
-
return Tn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4812
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4813
|
+
return Tn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4814
4814
|
}, cs = function(d) {
|
|
4815
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4816
|
-
return On ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4815
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4816
|
+
return On ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4817
4817
|
}, ds = function(d) {
|
|
4818
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4819
|
-
return
|
|
4818
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4819
|
+
return Jt ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4820
4820
|
}, us = function(d) {
|
|
4821
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4822
|
-
return xn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4821
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4822
|
+
return xn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4823
4823
|
}, fs = function(d) {
|
|
4824
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4825
|
-
return kn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4824
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4825
|
+
return kn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4826
4826
|
}, hs = function(d) {
|
|
4827
4827
|
var u = d.renderWithFragment, E = d.children;
|
|
4828
4828
|
d.viewClassName, d.style;
|
|
4829
|
-
var
|
|
4830
|
-
return yn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4829
|
+
var O = re(d, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
4830
|
+
return yn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4831
4831
|
}, ps = function(d) {
|
|
4832
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4833
|
-
return bn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4832
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4833
|
+
return bn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4834
4834
|
}, _s = function(d) {
|
|
4835
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4836
|
-
return wn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4835
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4836
|
+
return wn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4837
4837
|
}, gs = function(d) {
|
|
4838
|
-
var u = d.renderWithFragment, E = d.children,
|
|
4839
|
-
return Cn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div",
|
|
4838
|
+
var u = d.renderWithFragment, E = d.children, O = re(d, ["renderWithFragment", "children"]);
|
|
4839
|
+
return Cn ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", O, E) : null;
|
|
4840
4840
|
}, ms = function(d) {
|
|
4841
4841
|
var u = d.renderWithFragment, E = d.children;
|
|
4842
4842
|
d.viewClassName, d.style;
|
|
4843
|
-
var
|
|
4844
|
-
return
|
|
4843
|
+
var O = d.condition, ee = re(d, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
4844
|
+
return O ? u ? r.createElement(t.Fragment, null, E) : r.createElement("div", ee, E) : null;
|
|
4845
4845
|
};
|
|
4846
|
-
function vs(
|
|
4846
|
+
function vs(b) {
|
|
4847
4847
|
return /* @__PURE__ */ (function(d) {
|
|
4848
|
-
|
|
4848
|
+
z(u, d);
|
|
4849
4849
|
function u(E) {
|
|
4850
|
-
var
|
|
4851
|
-
return
|
|
4850
|
+
var O;
|
|
4851
|
+
return T(this, u), O = H(this, B(u).call(this, E)), O.isEventListenerAdded = !1, O.handleOrientationChange = O.handleOrientationChange.bind(J(O)), O.onOrientationChange = O.onOrientationChange.bind(J(O)), O.onPageLoad = O.onPageLoad.bind(J(O)), O.state = {
|
|
4852
4852
|
isLandscape: !1,
|
|
4853
4853
|
isPortrait: !1
|
|
4854
|
-
},
|
|
4854
|
+
}, O;
|
|
4855
4855
|
}
|
|
4856
4856
|
return k(u, [{
|
|
4857
4857
|
key: "handleOrientationChange",
|
|
4858
4858
|
value: function() {
|
|
4859
4859
|
this.isEventListenerAdded || (this.isEventListenerAdded = !0);
|
|
4860
|
-
var
|
|
4860
|
+
var O = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
4861
4861
|
this.setState({
|
|
4862
|
-
isPortrait:
|
|
4863
|
-
isLandscape:
|
|
4862
|
+
isPortrait: O === 0,
|
|
4863
|
+
isLandscape: O === 90
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
4866
|
}, {
|
|
@@ -4876,7 +4876,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4876
4876
|
}, {
|
|
4877
4877
|
key: "componentDidMount",
|
|
4878
4878
|
value: function() {
|
|
4879
|
-
(typeof window == "undefined" ? "undefined" :
|
|
4879
|
+
(typeof window == "undefined" ? "undefined" : x(window)) !== void 0 && Jt && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
4880
4880
|
}
|
|
4881
4881
|
}, {
|
|
4882
4882
|
key: "componentWillUnmount",
|
|
@@ -4886,7 +4886,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4886
4886
|
}, {
|
|
4887
4887
|
key: "render",
|
|
4888
4888
|
value: function() {
|
|
4889
|
-
return r.createElement(
|
|
4889
|
+
return r.createElement(b, V({}, this.props, {
|
|
4890
4890
|
isLandscape: this.state.isLandscape,
|
|
4891
4891
|
isPortrait: this.state.isPortrait
|
|
4892
4892
|
}));
|
|
@@ -4895,14 +4895,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4895
4895
|
})(r.Component);
|
|
4896
4896
|
}
|
|
4897
4897
|
function bs() {
|
|
4898
|
-
var
|
|
4898
|
+
var b = t.useState(function() {
|
|
4899
4899
|
var ee = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
4900
4900
|
return {
|
|
4901
4901
|
isPortrait: ee === 0,
|
|
4902
4902
|
isLandscape: ee === 90,
|
|
4903
4903
|
orientation: ee === 0 ? "portrait" : "landscape"
|
|
4904
4904
|
};
|
|
4905
|
-
}), d = G(
|
|
4905
|
+
}), d = G(b, 2), u = d[0], E = d[1], O = t.useCallback(function() {
|
|
4906
4906
|
var ee = window.innerWidth > window.innerHeight ? 90 : 0, xe = {
|
|
4907
4907
|
isPortrait: ee === 0,
|
|
4908
4908
|
isLandscape: ee === 90,
|
|
@@ -4911,20 +4911,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4911
4911
|
u.orientation !== xe.orientation && E(xe);
|
|
4912
4912
|
}, [u.orientation]);
|
|
4913
4913
|
return t.useEffect(function() {
|
|
4914
|
-
return (typeof window == "undefined" ? "undefined" :
|
|
4915
|
-
window.removeEventListener("resize",
|
|
4914
|
+
return (typeof window == "undefined" ? "undefined" : x(window)) !== void 0 && Jt && (O(), window.addEventListener("load", O, !1), window.addEventListener("resize", O, !1)), function() {
|
|
4915
|
+
window.removeEventListener("resize", O, !1), window.removeEventListener("load", O, !1);
|
|
4916
4916
|
};
|
|
4917
|
-
}, [
|
|
4917
|
+
}, [O]), u;
|
|
4918
4918
|
}
|
|
4919
|
-
function Fn(
|
|
4920
|
-
var d =
|
|
4919
|
+
function Fn(b) {
|
|
4920
|
+
var d = b || window.navigator.userAgent;
|
|
4921
4921
|
return c(d);
|
|
4922
4922
|
}
|
|
4923
|
-
function ws(
|
|
4924
|
-
var d =
|
|
4923
|
+
function ws(b) {
|
|
4924
|
+
var d = b || window.navigator.userAgent, u = Fn(d), E = vn(u);
|
|
4925
4925
|
return [E, u];
|
|
4926
4926
|
}
|
|
4927
|
-
return P.AndroidView = ss, P.BrowserTypes =
|
|
4927
|
+
return P.AndroidView = ss, P.BrowserTypes = q, P.BrowserView = as, P.ConsoleView = _s, P.CustomView = ms, P.IEView = ls, P.IOSView = cs, P.MobileOnlyView = hs, P.MobileView = ds, P.OsTypes = ue, P.SmartTVView = ps, P.TabletView = us, P.WearableView = gs, P.WinPhoneView = fs, P.browserName = Lo, P.browserVersion = Bo, P.deviceDetect = ht, P.deviceType = Zo, P.engineName = Wo, P.engineVersion = $o, P.fullBrowserVersion = No, P.getSelectorsByUserAgent = os, P.getUA = jo, P.isAndroid = Sn, P.isBrowser = En, P.isChrome = Io, P.isChromium = Fo, P.isConsole = wn, P.isDesktop = Ao, P.isEdge = zo, P.isEdgeChromium = Qo, P.isElectron = Jo, P.isEmbedded = Oo, P.isFirefox = Vo, P.isIE = Tn, P.isIOS = On, P.isIOS13 = Go, P.isIPad13 = Yo, P.isIPhone13 = Ko, P.isIPod13 = Xo, P.isLegacyEdge = es, P.isMIUI = ns, P.isMacOs = rs, P.isMobile = Jt, P.isMobileOnly = yn, P.isMobileSafari = To, P.isOpera = Mo, P.isSafari = Ro, P.isSamsungBrowser = is, P.isSmartTV = bn, P.isTablet = xn, P.isWearable = Cn, P.isWinPhone = kn, P.isWindows = ts, P.isYandex = qo, P.mobileModel = Ho, P.mobileVendor = Uo, P.osName = Po, P.osVersion = Do, P.parseUserAgent = c, P.setUserAgent = Me, P.useDeviceData = Fn, P.useDeviceSelectors = ws, P.useMobileOrientation = bs, P.withOrientationChange = vs, P;
|
|
4928
4928
|
}
|
|
4929
4929
|
var gt = Rl();
|
|
4930
4930
|
const Ml = {
|
|
@@ -4955,31 +4955,31 @@ const Ml = {
|
|
|
4955
4955
|
buttons: n,
|
|
4956
4956
|
selectionLimit: i
|
|
4957
4957
|
}) => {
|
|
4958
|
-
var
|
|
4958
|
+
var w, h;
|
|
4959
4959
|
const { perform: o } = yt(), a = $e(null), l = typeof i == "number" && (i === 0 || i > 1), _ = (c) => _e(null, null, function* () {
|
|
4960
4960
|
var p;
|
|
4961
4961
|
const v = Array.from((p = c.currentTarget.files) != null ? p : []);
|
|
4962
4962
|
if (v.length)
|
|
4963
4963
|
try {
|
|
4964
|
-
const
|
|
4965
|
-
v.map((
|
|
4964
|
+
const x = (yield Promise.allSettled(
|
|
4965
|
+
v.map((T) => _e(null, null, function* () {
|
|
4966
4966
|
return {
|
|
4967
|
-
content: yield Bi(
|
|
4967
|
+
content: yield Bi(T),
|
|
4968
4968
|
metadata: {
|
|
4969
|
-
name:
|
|
4970
|
-
type:
|
|
4971
|
-
size:
|
|
4972
|
-
lastModified:
|
|
4969
|
+
name: T.name,
|
|
4970
|
+
type: T.type,
|
|
4971
|
+
size: T.size,
|
|
4972
|
+
lastModified: T.lastModified
|
|
4973
4973
|
}
|
|
4974
4974
|
};
|
|
4975
4975
|
}))
|
|
4976
4976
|
)).filter(
|
|
4977
|
-
(
|
|
4978
|
-
).map((
|
|
4977
|
+
(T) => T.status === "fulfilled"
|
|
4978
|
+
).map((T) => T.value);
|
|
4979
4979
|
o({
|
|
4980
4980
|
cancel: !1,
|
|
4981
4981
|
permissionDenied: !1,
|
|
4982
|
-
files:
|
|
4982
|
+
files: x
|
|
4983
4983
|
});
|
|
4984
4984
|
} catch (m) {
|
|
4985
4985
|
console.error("Error: ", m);
|
|
@@ -5001,13 +5001,13 @@ const Ml = {
|
|
|
5001
5001
|
}, []), /* @__PURE__ */ s(ut, { header: e, footer: t, backgroundColor: r, children: /* @__PURE__ */ s(Ie, { children: /* @__PURE__ */ s(
|
|
5002
5002
|
"div",
|
|
5003
5003
|
{
|
|
5004
|
-
style:
|
|
5004
|
+
style: Z(y({}, Pl), {
|
|
5005
5005
|
justifyContent: "center"
|
|
5006
5006
|
}),
|
|
5007
5007
|
children: [
|
|
5008
5008
|
/* @__PURE__ */ s(
|
|
5009
5009
|
"input",
|
|
5010
|
-
|
|
5010
|
+
Z(y({
|
|
5011
5011
|
style: Ml,
|
|
5012
5012
|
ref: a,
|
|
5013
5013
|
type: "file",
|
|
@@ -5017,7 +5017,7 @@ const Ml = {
|
|
|
5017
5017
|
onInput: _
|
|
5018
5018
|
})
|
|
5019
5019
|
),
|
|
5020
|
-
/* @__PURE__ */ s("button", { style: Dl, onClick: g, children: /* @__PURE__ */ s(Ae, { imageId: (h = (
|
|
5020
|
+
/* @__PURE__ */ s("button", { style: Dl, onClick: g, children: /* @__PURE__ */ s(Ae, { imageId: (h = (w = n == null ? void 0 : n[0]) == null ? void 0 : w.image) == null ? void 0 : h.imageId }) })
|
|
5021
5021
|
]
|
|
5022
5022
|
}
|
|
5023
5023
|
) }) });
|
|
@@ -5046,7 +5046,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5046
5046
|
} catch (e) {
|
|
5047
5047
|
return null;
|
|
5048
5048
|
}
|
|
5049
|
-
}),
|
|
5049
|
+
}), Pt = (e) => _e(null, null, function* () {
|
|
5050
5050
|
return new Promise((t) => {
|
|
5051
5051
|
if (!navigator.geolocation)
|
|
5052
5052
|
return t({
|
|
@@ -5161,35 +5161,36 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5161
5161
|
description: i,
|
|
5162
5162
|
buttons: o,
|
|
5163
5163
|
backgroundColor: a,
|
|
5164
|
-
popups: l
|
|
5164
|
+
popups: l,
|
|
5165
|
+
askEveryTime: _
|
|
5165
5166
|
}) => {
|
|
5166
|
-
const
|
|
5167
|
+
const g = Li(o), { perform: w } = yt(), { setIsProcessingCallback: h } = Bs(), { ref: c, isPopoverOpen: v, openPopover: p, closePopover: m } = Bl(), x = {
|
|
5167
5168
|
enableHighAccuracy: !0,
|
|
5168
5169
|
timeout: 15e3,
|
|
5169
5170
|
maximumAge: 6e4
|
|
5170
|
-
},
|
|
5171
|
+
}, T = l == null ? void 0 : l.find((V) => V.reason === "system_restricted");
|
|
5171
5172
|
dt(() => {
|
|
5172
|
-
gt.isSafari ||
|
|
5173
|
+
gt.isSafari || _ || h == null || h(!0);
|
|
5173
5174
|
}, []), We(() => {
|
|
5174
|
-
if (gt.isSafari) return;
|
|
5175
|
-
let
|
|
5175
|
+
if (gt.isSafari || _) return;
|
|
5176
|
+
let V = !0;
|
|
5176
5177
|
return _e(null, null, function* () {
|
|
5177
5178
|
if ((yield Cr()) !== "granted") {
|
|
5178
|
-
|
|
5179
|
+
h == null || h(!1);
|
|
5179
5180
|
return;
|
|
5180
5181
|
}
|
|
5181
|
-
const
|
|
5182
|
-
|
|
5182
|
+
const B = yield Pt(x);
|
|
5183
|
+
V && w(B, g);
|
|
5183
5184
|
}), () => {
|
|
5184
|
-
gt.isSafari || (
|
|
5185
|
+
gt.isSafari || _ || (V = !1);
|
|
5185
5186
|
};
|
|
5186
5187
|
}, []), We(() => {
|
|
5187
5188
|
if (gt.isSafari) return;
|
|
5188
|
-
let
|
|
5189
|
+
let V = !0, z = null;
|
|
5189
5190
|
return _e(null, null, function* () {
|
|
5190
|
-
const
|
|
5191
|
-
|
|
5192
|
-
if (
|
|
5191
|
+
const B = yield Ll();
|
|
5192
|
+
B && (z = B, B.onchange = () => _e(null, null, function* () {
|
|
5193
|
+
if (B.state === "denied" && (h == null || h(!0), w(
|
|
5193
5194
|
{
|
|
5194
5195
|
location: {
|
|
5195
5196
|
locationState: "application_location_restricted",
|
|
@@ -5198,43 +5199,46 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5198
5199
|
error: "Application location services restricted or unavailable"
|
|
5199
5200
|
}
|
|
5200
5201
|
},
|
|
5201
|
-
|
|
5202
|
-
)),
|
|
5203
|
-
|
|
5204
|
-
const
|
|
5205
|
-
if (!
|
|
5206
|
-
|
|
5202
|
+
g
|
|
5203
|
+
)), B.state === "granted") {
|
|
5204
|
+
h == null || h(!0);
|
|
5205
|
+
const ae = yield Pt(x);
|
|
5206
|
+
if (!V) return;
|
|
5207
|
+
w(ae, g);
|
|
5207
5208
|
}
|
|
5208
5209
|
}));
|
|
5209
5210
|
}), () => {
|
|
5210
|
-
gt.isSafari || (
|
|
5211
|
+
gt.isSafari || (V = !1, z && (z.onchange = null));
|
|
5211
5212
|
};
|
|
5212
5213
|
}, []);
|
|
5213
|
-
const
|
|
5214
|
-
|
|
5215
|
-
const
|
|
5216
|
-
if (
|
|
5217
|
-
|
|
5214
|
+
const I = (V) => _e(null, null, function* () {
|
|
5215
|
+
V.preventDefault();
|
|
5216
|
+
const z = yield Cr();
|
|
5217
|
+
if (z === "denied") {
|
|
5218
|
+
p();
|
|
5218
5219
|
return;
|
|
5219
5220
|
}
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5221
|
+
if (z === "prompt" && (yield Pt()), z === "granted") {
|
|
5222
|
+
const B = yield Pt(x);
|
|
5223
|
+
w(B, g);
|
|
5224
|
+
}
|
|
5225
|
+
}), k = (V) => _e(null, null, function* () {
|
|
5226
|
+
if (V.preventDefault(), (yield Cr()) === "denied") {
|
|
5227
|
+
p();
|
|
5224
5228
|
return;
|
|
5225
5229
|
}
|
|
5226
|
-
|
|
5227
|
-
const
|
|
5228
|
-
|
|
5229
|
-
}),
|
|
5230
|
-
|
|
5230
|
+
h == null || h(!0);
|
|
5231
|
+
const B = yield Pt(x);
|
|
5232
|
+
w(B, g);
|
|
5233
|
+
}), F = (V) => {
|
|
5234
|
+
V.preventDefault(), m();
|
|
5231
5235
|
};
|
|
5232
5236
|
return /* @__PURE__ */ s(ut, { header: t, footer: r, backgroundColor: a, children: [
|
|
5233
5237
|
/* @__PURE__ */ s("div", { style: Ul, children: [
|
|
5234
5238
|
/* @__PURE__ */ s("div", { style: Hl, children: [
|
|
5235
|
-
n && /* @__PURE__ */ s("div", { style: $l, children: /* @__PURE__ */ s(Ae,
|
|
5236
|
-
e && /* @__PURE__ */ s("div", { style: jl, children: /* @__PURE__ */ s(be,
|
|
5237
|
-
i && /* @__PURE__ */ s("div", { style: zl, children: /* @__PURE__ */ s(_r,
|
|
5239
|
+
n && /* @__PURE__ */ s("div", { style: $l, children: /* @__PURE__ */ s(Ae, y({}, n)) }),
|
|
5240
|
+
e && /* @__PURE__ */ s("div", { style: jl, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
5241
|
+
i && /* @__PURE__ */ s("div", { style: zl, children: /* @__PURE__ */ s(_r, y({}, i)) })
|
|
5238
5242
|
] }),
|
|
5239
5243
|
!!(o != null && o.length) && /* @__PURE__ */ s(
|
|
5240
5244
|
"div",
|
|
@@ -5243,46 +5247,46 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5243
5247
|
display: "flex",
|
|
5244
5248
|
flexDirection: "column"
|
|
5245
5249
|
},
|
|
5246
|
-
children: o.map((
|
|
5250
|
+
children: o.map((V, z) => /* @__PURE__ */ s("div", { style: { padding: "5px" }, children: /* @__PURE__ */ s(
|
|
5247
5251
|
cr,
|
|
5248
|
-
|
|
5252
|
+
y(y({
|
|
5249
5253
|
dataTestId: "question-button"
|
|
5250
|
-
},
|
|
5251
|
-
onClick: gt.isSafari ?
|
|
5254
|
+
}, V), V.type === "FORM" ? {
|
|
5255
|
+
onClick: gt.isSafari ? k : I
|
|
5252
5256
|
} : {})
|
|
5253
|
-
) },
|
|
5257
|
+
) }, z))
|
|
5254
5258
|
}
|
|
5255
5259
|
)
|
|
5256
5260
|
] }),
|
|
5257
|
-
|
|
5261
|
+
T && /* @__PURE__ */ s(
|
|
5258
5262
|
"div",
|
|
5259
5263
|
{
|
|
5260
|
-
ref:
|
|
5264
|
+
ref: c,
|
|
5261
5265
|
popover: "manual",
|
|
5262
5266
|
role: "dialog",
|
|
5263
5267
|
"aria-modal": "true",
|
|
5264
|
-
style:
|
|
5265
|
-
borderRadius:
|
|
5266
|
-
backgroundColor:
|
|
5268
|
+
style: Z(y({}, ql), {
|
|
5269
|
+
borderRadius: T.cornerRadius || "27px",
|
|
5270
|
+
backgroundColor: T.backgroundColor || "#ffffff"
|
|
5267
5271
|
}),
|
|
5268
5272
|
children: [
|
|
5269
|
-
/* @__PURE__ */ s("div", { style: Zl, children: /* @__PURE__ */ s(be,
|
|
5270
|
-
/* @__PURE__ */ s("div", { style: Gl, children: /* @__PURE__ */ s("div", { style: Yl, children: /* @__PURE__ */ s(be,
|
|
5271
|
-
|
|
5273
|
+
/* @__PURE__ */ s("div", { style: Zl, children: /* @__PURE__ */ s(be, y({}, y({ fontSize: "24px" }, T.title))) }),
|
|
5274
|
+
/* @__PURE__ */ s("div", { style: Gl, children: /* @__PURE__ */ s("div", { style: Yl, children: /* @__PURE__ */ s(be, y({}, y({ fontSize: "17px" }, T.message))) }) }),
|
|
5275
|
+
T.actionButton1 && /* @__PURE__ */ s("div", { style: Kl, children: /* @__PURE__ */ s(
|
|
5272
5276
|
cr,
|
|
5273
|
-
|
|
5277
|
+
y(y({
|
|
5274
5278
|
dataTestId: "question-button"
|
|
5275
|
-
},
|
|
5279
|
+
}, T.actionButton1), T.actionButton1.type === "FORM" ? { onClick: F } : {})
|
|
5276
5280
|
) })
|
|
5277
5281
|
]
|
|
5278
5282
|
}
|
|
5279
5283
|
),
|
|
5280
|
-
|
|
5284
|
+
v && /* @__PURE__ */ s(
|
|
5281
5285
|
"div",
|
|
5282
5286
|
{
|
|
5283
5287
|
style: Wl,
|
|
5284
|
-
onPointerDown: (
|
|
5285
|
-
|
|
5288
|
+
onPointerDown: (V) => {
|
|
5289
|
+
V.preventDefault(), V.stopPropagation(), m();
|
|
5286
5290
|
}
|
|
5287
5291
|
}
|
|
5288
5292
|
)
|
|
@@ -5328,7 +5332,8 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5328
5332
|
description: r.description,
|
|
5329
5333
|
buttons: r.buttons,
|
|
5330
5334
|
backgroundColor: r.backgroundColor,
|
|
5331
|
-
popups: r.popups
|
|
5335
|
+
popups: r.popups,
|
|
5336
|
+
askEveryTime: r.askEveryTime
|
|
5332
5337
|
}
|
|
5333
5338
|
);
|
|
5334
5339
|
if (t === qe.PROGRESS)
|
|
@@ -5391,13 +5396,13 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5391
5396
|
a
|
|
5392
5397
|
);
|
|
5393
5398
|
if (t === qe.QUESTIONS && !n) {
|
|
5394
|
-
const _ = new
|
|
5399
|
+
const _ = new jt({
|
|
5395
5400
|
errorCode: lr.DECODING_FAILED,
|
|
5396
5401
|
message: "No data for questions"
|
|
5397
5402
|
});
|
|
5398
5403
|
return o(_), null;
|
|
5399
5404
|
}
|
|
5400
|
-
const l = new
|
|
5405
|
+
const l = new jt({
|
|
5401
5406
|
errorCode: lr.DECODING_FAILED,
|
|
5402
5407
|
message: "Unsupported step template"
|
|
5403
5408
|
});
|
|
@@ -5421,12 +5426,12 @@ const e1 = ({ children: e }) => /* @__PURE__ */ s(Ie, { children: [
|
|
|
5421
5426
|
}
|
|
5422
5427
|
) }) }) : /* @__PURE__ */ s(Gn, { perform: l, setIsProcessingCallback: e, children: /* @__PURE__ */ s(wi, { children: /* @__PURE__ */ s(
|
|
5423
5428
|
bi,
|
|
5424
|
-
|
|
5429
|
+
y(y({
|
|
5425
5430
|
templateId: n,
|
|
5426
5431
|
templateLayout: i
|
|
5427
5432
|
}, t.backgroundColor ? { backgroundColor: t.backgroundColor } : {}), typeof t.selectionLimit == "number" ? { selectionLimit: t.selectionLimit } : {})
|
|
5428
5433
|
) }) });
|
|
5429
|
-
},
|
|
5434
|
+
}, Wt = class Wt extends Rs {
|
|
5430
5435
|
constructor() {
|
|
5431
5436
|
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
5432
5437
|
}
|
|
@@ -5494,8 +5499,8 @@ const e1 = ({ children: e }) => /* @__PURE__ */ s(Ie, { children: [
|
|
|
5494
5499
|
yr = !1;
|
|
5495
5500
|
}
|
|
5496
5501
|
};
|
|
5497
|
-
|
|
5498
|
-
let Rr =
|
|
5502
|
+
Wt.displayName = ar, Wt.getSupportedTemplates = () => Object.values(qe), Wt.getIdentifier = () => ar;
|
|
5503
|
+
let Rr = Wt;
|
|
5499
5504
|
Ms(ar, Rr);
|
|
5500
5505
|
export {
|
|
5501
5506
|
Rr as GuiIdv,
|