@regulaforensics/idv-gui 3.2.284-nightly → 3.2.285-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/main.js CHANGED
@@ -1,41 +1,41 @@
1
1
  var Ts = Object.defineProperty, zs = Object.defineProperties;
2
2
  var Os = Object.getOwnPropertyDescriptors;
3
- var et = Object.getOwnPropertySymbols;
3
+ var it = Object.getOwnPropertySymbols;
4
4
  var vr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable;
5
- var Cr = (e, i, t) => i in e ? Ts(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, O = (e, i) => {
5
+ var Cr = (e, i, t) => i in e ? Ts(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, z = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
7
  vr.call(i, t) && Cr(e, t, i[t]);
8
- if (et)
9
- for (var t of et(i))
8
+ if (it)
9
+ for (var t of it(i))
10
10
  Lr.call(i, t) && Cr(e, t, i[t]);
11
11
  return e;
12
- }, J = (e, i) => zs(e, Os(i));
12
+ }, H = (e, i) => zs(e, Os(i));
13
13
  var Di = (e, i) => {
14
14
  var t = {};
15
15
  for (var r in e)
16
16
  vr.call(e, r) && i.indexOf(r) < 0 && (t[r] = e[r]);
17
- if (e != null && et)
18
- for (var r of et(e))
17
+ if (e != null && it)
18
+ for (var r of it(e))
19
19
  i.indexOf(r) < 0 && Lr.call(e, r) && (t[r] = e[r]);
20
20
  return t;
21
21
  };
22
- var De = (e, i, t) => new Promise((r, n) => {
22
+ var je = (e, i, t) => new Promise((r, n) => {
23
23
  var o = (D) => {
24
24
  try {
25
- M(t.next(D));
25
+ a(t.next(D));
26
26
  } catch (j) {
27
27
  n(j);
28
28
  }
29
29
  }, s = (D) => {
30
30
  try {
31
- M(t.throw(D));
31
+ a(t.throw(D));
32
32
  } catch (j) {
33
33
  n(j);
34
34
  }
35
- }, M = (D) => D.done ? r(D.value) : Promise.resolve(D.value).then(o, s);
36
- M((t = t.apply(e, i)).next());
35
+ }, a = (D) => D.done ? r(D.value) : Promise.resolve(D.value).then(o, s);
36
+ a((t = t.apply(e, i)).next());
37
37
  });
38
- var Zi, X, An, ji, kr, Tn, zn, On, Lt, Et, ht, xn, Bi = {}, En = [], xs = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Hi = Array.isArray;
38
+ var Hi, $, An, ji, kr, Tn, zn, On, Lt, Et, ht, xn, Zi = {}, En = [], xs = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gi = Array.isArray;
39
39
  function qe(e, i) {
40
40
  for (var t in i) e[t] = i[t];
41
41
  return e;
@@ -46,12 +46,12 @@ function kt(e) {
46
46
  function ei(e, i, t) {
47
47
  var r, n, o, s = {};
48
48
  for (o in i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : s[o] = i[o];
49
- if (arguments.length > 2 && (s.children = arguments.length > 3 ? Zi.call(arguments, 2) : t), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
50
- return Yi(e, s, r, n, null);
49
+ if (arguments.length > 2 && (s.children = arguments.length > 3 ? Hi.call(arguments, 2) : t), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
50
+ return Pi(e, s, r, n, null);
51
51
  }
52
- function Yi(e, i, t, r, n) {
52
+ function Pi(e, i, t, r, n) {
53
53
  var o = { type: e, props: i, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++An : n, __i: -1, __u: 0 };
54
- return n == null && X.vnode != null && X.vnode(o), o;
54
+ return n == null && $.vnode != null && $.vnode(o), o;
55
55
  }
56
56
  function hn() {
57
57
  return { current: null };
@@ -59,13 +59,13 @@ function hn() {
59
59
  function be(e) {
60
60
  return e.children;
61
61
  }
62
- function Ge(e, i) {
62
+ function He(e, i) {
63
63
  this.props = e, this.context = i;
64
64
  }
65
- function bi(e, i) {
66
- if (i == null) return e.__ ? bi(e.__, e.__i + 1) : null;
65
+ function Si(e, i) {
66
+ if (i == null) return e.__ ? Si(e.__, e.__i + 1) : null;
67
67
  for (var t; i < e.__k.length; i++) if ((t = e.__k[i]) != null && t.__e != null) return t.__e;
68
- return typeof e.type == "function" ? bi(e) : null;
68
+ return typeof e.type == "function" ? Si(e) : null;
69
69
  }
70
70
  function mn(e) {
71
71
  var i, t;
@@ -78,21 +78,21 @@ function mn(e) {
78
78
  }
79
79
  }
80
80
  function mt(e) {
81
- (!e.__d && (e.__d = !0) && ji.push(e) && !ot.__r++ || kr != X.debounceRendering) && ((kr = X.debounceRendering) || Tn)(ot);
81
+ (!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ || kr != $.debounceRendering) && ((kr = $.debounceRendering) || Tn)(st);
82
82
  }
83
- function ot() {
84
- for (var e, i, t, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(zn), e = ji.shift(), M = ji.length, e.__d && (t = void 0, r = void 0, n = (r = (i = e).__v).__e, o = [], s = [], i.__P && ((t = qe({}, r)).__v = r.__v + 1, X.vnode && X.vnode(t), Ut(i.__P, t, r, i.__n, i.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? bi(r) : n, !!(32 & r.__u), s), t.__v = r.__v, t.__.__k[t.__i] = t, _n(o, t, s), r.__e = r.__ = null, t.__e != n && mn(t)));
85
- ot.__r = 0;
83
+ function st() {
84
+ for (var e, i, t, r, n, o, s, a = 1; ji.length; ) ji.length > a && ji.sort(zn), e = ji.shift(), a = ji.length, e.__d && (t = void 0, r = void 0, n = (r = (i = e).__v).__e, o = [], s = [], i.__P && ((t = qe({}, r)).__v = r.__v + 1, $.vnode && $.vnode(t), Ut(i.__P, t, r, i.__n, i.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? Si(r) : n, !!(32 & r.__u), s), t.__v = r.__v, t.__.__k[t.__i] = t, _n(o, t, s), r.__e = r.__ = null, t.__e != n && mn(t)));
85
+ st.__r = 0;
86
86
  }
87
- function wn(e, i, t, r, n, o, s, M, D, j, A) {
88
- var c, a, y, N, I, z, w, _ = r && r.__k || En, h = i.length;
89
- for (D = Es(t, i, _, D, h), c = 0; c < h; c++) (y = t.__k[c]) != null && (a = y.__i == -1 ? Bi : _[y.__i] || Bi, y.__i = c, z = Ut(e, y, a, n, o, s, M, D, j, A), N = y.__e, y.ref && a.ref != y.ref && (a.ref && Qt(a.ref, null, y), A.push(y.ref, y.__c || N, y)), I == null && N != null && (I = N), (w = !!(4 & y.__u)) || a.__k === y.__k ? D = pn(y, D, e, w) : typeof y.type == "function" && z !== void 0 ? D = z : N && (D = N.nextSibling), y.__u &= -7);
87
+ function wn(e, i, t, r, n, o, s, a, D, j, A) {
88
+ var g, M, y, N, I, O, w, _ = r && r.__k || En, p = i.length;
89
+ for (D = Es(t, i, _, D, p), g = 0; g < p; g++) (y = t.__k[g]) != null && (M = y.__i == -1 ? Zi : _[y.__i] || Zi, y.__i = g, O = Ut(e, y, M, n, o, s, a, D, j, A), N = y.__e, y.ref && M.ref != y.ref && (M.ref && Qt(M.ref, null, y), A.push(y.ref, y.__c || N, y)), I == null && N != null && (I = N), (w = !!(4 & y.__u)) || M.__k === y.__k ? D = pn(y, D, e, w) : typeof y.type == "function" && O !== void 0 ? D = O : N && (D = N.nextSibling), y.__u &= -7);
90
90
  return t.__e = I, D;
91
91
  }
92
92
  function Es(e, i, t, r, n) {
93
- var o, s, M, D, j, A = t.length, c = A, a = 0;
94
- for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Yi(null, s, null, null, null) : Hi(s) ? s = e.__k[o] = Yi(be, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Yi(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, D = o + a, s.__ = e, s.__b = e.__b + 1, M = null, (j = s.__i = hs(s, t, D, c)) != -1 && (c--, (M = t[j]) && (M.__u |= 2)), M == null || M.__v == null ? (j == -1 && (n > A ? a-- : n < A && a++), typeof s.type != "function" && (s.__u |= 4)) : j != D && (j == D - 1 ? a-- : j == D + 1 ? a++ : (j > D ? a-- : a++, s.__u |= 4))) : e.__k[o] = null;
95
- if (c) for (o = 0; o < A; o++) (M = t[o]) != null && (2 & M.__u) == 0 && (M.__e == r && (r = bi(M)), Sn(M, M));
93
+ var o, s, a, D, j, A = t.length, g = A, M = 0;
94
+ for (e.__k = new Array(n), o = 0; o < n; o++) (s = i[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Pi(null, s, null, null, null) : Gi(s) ? s = e.__k[o] = Pi(be, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Pi(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, D = o + M, s.__ = e, s.__b = e.__b + 1, a = null, (j = s.__i = hs(s, t, D, g)) != -1 && (g--, (a = t[j]) && (a.__u |= 2)), a == null || a.__v == null ? (j == -1 && (n > A ? M-- : n < A && M++), typeof s.type != "function" && (s.__u |= 4)) : j != D && (j == D - 1 ? M-- : j == D + 1 ? M++ : (j > D ? M-- : M++, s.__u |= 4))) : e.__k[o] = null;
95
+ if (g) for (o = 0; o < A; o++) (a = t[o]) != null && (2 & a.__u) == 0 && (a.__e == r && (r = Si(a)), Sn(a, a));
96
96
  return r;
97
97
  }
98
98
  function pn(e, i, t, r) {
@@ -101,29 +101,29 @@ function pn(e, i, t, r) {
101
101
  for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, i = pn(n[o], i, t, r));
102
102
  return i;
103
103
  }
104
- e.__e != i && (r && (i && e.type && !i.parentNode && (i = bi(e)), t.insertBefore(e.__e, i || null)), i = e.__e);
104
+ e.__e != i && (r && (i && e.type && !i.parentNode && (i = Si(e)), t.insertBefore(e.__e, i || null)), i = e.__e);
105
105
  do
106
106
  i = i && i.nextSibling;
107
107
  while (i != null && i.nodeType == 8);
108
108
  return i;
109
109
  }
110
110
  function oi(e, i) {
111
- return i = i || [], e == null || typeof e == "boolean" || (Hi(e) ? e.some(function(t) {
111
+ return i = i || [], e == null || typeof e == "boolean" || (Gi(e) ? e.some(function(t) {
112
112
  oi(t, i);
113
113
  }) : i.push(e)), i;
114
114
  }
115
115
  function hs(e, i, t, r) {
116
- var n, o, s, M = e.key, D = e.type, j = i[t], A = j != null && (2 & j.__u) == 0;
117
- if (j === null && M == null || A && M == j.key && D == j.type) return t;
116
+ var n, o, s, a = e.key, D = e.type, j = i[t], A = j != null && (2 & j.__u) == 0;
117
+ if (j === null && a == null || A && a == j.key && D == j.type) return t;
118
118
  if (r > (A ? 1 : 0)) {
119
- for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((j = i[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 && M == j.key && D == j.type) return s;
119
+ for (n = t - 1, o = t + 1; n >= 0 || o < i.length; ) if ((j = i[s = n >= 0 ? n-- : o++]) != null && (2 & j.__u) == 0 && a == j.key && D == j.type) return s;
120
120
  }
121
121
  return -1;
122
122
  }
123
123
  function Ur(e, i, t) {
124
124
  i[0] == "-" ? e.setProperty(i, t == null ? "" : t) : e[i] = t == null ? "" : typeof t != "number" || xs.test(i) ? t : t + "px";
125
125
  }
126
- function it(e, i, t, r, n) {
126
+ function tt(e, i, t, r, n) {
127
127
  var o, s;
128
128
  e: if (i == "style") if (typeof t == "string") e.style.cssText = t;
129
129
  else {
@@ -136,7 +136,7 @@ function it(e, i, t, r, n) {
136
136
  else if (i != "width" && i != "height" && i != "href" && i != "list" && i != "form" && i != "tabIndex" && i != "download" && i != "rowSpan" && i != "colSpan" && i != "role" && i != "popover" && i in e) try {
137
137
  e[i] = t == null ? "" : t;
138
138
  break e;
139
- } catch (M) {
139
+ } catch (a) {
140
140
  }
141
141
  typeof t == "function" || (t == null || t === !1 && i[4] != "-" ? e.removeAttribute(i) : e.setAttribute(i, i == "popover" && t == 1 ? "" : t));
142
142
  }
@@ -147,69 +147,69 @@ function Qr(e) {
147
147
  var t = this.l[i.type + e];
148
148
  if (i.t == null) i.t = Lt++;
149
149
  else if (i.t < t.u) return;
150
- return t(X.event ? X.event(i) : i);
150
+ return t($.event ? $.event(i) : i);
151
151
  }
152
152
  };
153
153
  }
154
- function Ut(e, i, t, r, n, o, s, M, D, j) {
155
- var A, c, a, y, N, I, z, w, _, h, p, k, ie, F, ae, Y, H, V = i.type;
154
+ function Ut(e, i, t, r, n, o, s, a, D, j) {
155
+ var A, g, M, y, N, I, O, w, _, p, h, U, ee, ue, W, ne, Q, G = i.type;
156
156
  if (i.constructor !== void 0) return null;
157
- 128 & t.__u && (D = !!(32 & t.__u), o = [M = i.__e = t.__e]), (A = X.__b) && A(i);
158
- e: if (typeof V == "function") try {
159
- if (w = i.props, _ = "prototype" in V && V.prototype.render, h = (A = V.contextType) && r[A.__c], p = A ? h ? h.props.value : A.__ : r, t.__c ? z = (c = i.__c = t.__c).__ = c.__E : (_ ? i.__c = c = new V(w, p) : (i.__c = c = new Ge(w, p), c.constructor = V, c.render = ws), h && h.sub(c), c.state || (c.state = {}), c.__n = r, a = c.__d = !0, c.__h = [], c._sb = []), _ && c.__s == null && (c.__s = c.state), _ && V.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = qe({}, c.__s)), qe(c.__s, V.getDerivedStateFromProps(w, c.__s))), y = c.props, N = c.state, c.__v = i, a) _ && V.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), _ && c.componentDidMount != null && c.__h.push(c.componentDidMount);
157
+ 128 & t.__u && (D = !!(32 & t.__u), o = [a = i.__e = t.__e]), (A = $.__b) && A(i);
158
+ e: if (typeof G == "function") try {
159
+ if (w = i.props, _ = "prototype" in G && G.prototype.render, p = (A = G.contextType) && r[A.__c], h = A ? p ? p.props.value : A.__ : r, t.__c ? O = (g = i.__c = t.__c).__ = g.__E : (_ ? i.__c = g = new G(w, h) : (i.__c = g = new He(w, h), g.constructor = G, g.render = ws), p && p.sub(g), g.state || (g.state = {}), g.__n = r, M = g.__d = !0, g.__h = [], g._sb = []), _ && g.__s == null && (g.__s = g.state), _ && G.getDerivedStateFromProps != null && (g.__s == g.state && (g.__s = qe({}, g.__s)), qe(g.__s, G.getDerivedStateFromProps(w, g.__s))), y = g.props, N = g.state, g.__v = i, M) _ && G.getDerivedStateFromProps == null && g.componentWillMount != null && g.componentWillMount(), _ && g.componentDidMount != null && g.__h.push(g.componentDidMount);
160
160
  else {
161
- if (_ && V.getDerivedStateFromProps == null && w !== y && c.componentWillReceiveProps != null && c.componentWillReceiveProps(w, p), i.__v == t.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(w, c.__s, p) === !1) {
162
- for (i.__v != t.__v && (c.props = w, c.state = c.__s, c.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(R) {
163
- R && (R.__ = i);
164
- }), k = 0; k < c._sb.length; k++) c.__h.push(c._sb[k]);
165
- c._sb = [], c.__h.length && s.push(c);
161
+ if (_ && G.getDerivedStateFromProps == null && w !== y && g.componentWillReceiveProps != null && g.componentWillReceiveProps(w, h), i.__v == t.__v || !g.__e && g.shouldComponentUpdate != null && g.shouldComponentUpdate(w, g.__s, h) === !1) {
162
+ for (i.__v != t.__v && (g.props = w, g.state = g.__s, g.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(k) {
163
+ k && (k.__ = i);
164
+ }), U = 0; U < g._sb.length; U++) g.__h.push(g._sb[U]);
165
+ g._sb = [], g.__h.length && s.push(g);
166
166
  break e;
167
167
  }
168
- c.componentWillUpdate != null && c.componentWillUpdate(w, c.__s, p), _ && c.componentDidUpdate != null && c.__h.push(function() {
169
- c.componentDidUpdate(y, N, I);
168
+ g.componentWillUpdate != null && g.componentWillUpdate(w, g.__s, h), _ && g.componentDidUpdate != null && g.__h.push(function() {
169
+ g.componentDidUpdate(y, N, I);
170
170
  });
171
171
  }
172
- if (c.context = p, c.props = w, c.__P = e, c.__e = !1, ie = X.__r, F = 0, _) {
173
- for (c.state = c.__s, c.__d = !1, ie && ie(i), A = c.render(c.props, c.state, c.context), ae = 0; ae < c._sb.length; ae++) c.__h.push(c._sb[ae]);
174
- c._sb = [];
172
+ if (g.context = h, g.props = w, g.__P = e, g.__e = !1, ee = $.__r, ue = 0, _) {
173
+ for (g.state = g.__s, g.__d = !1, ee && ee(i), A = g.render(g.props, g.state, g.context), W = 0; W < g._sb.length; W++) g.__h.push(g._sb[W]);
174
+ g._sb = [];
175
175
  } else do
176
- c.__d = !1, ie && ie(i), A = c.render(c.props, c.state, c.context), c.state = c.__s;
177
- while (c.__d && ++F < 25);
178
- c.state = c.__s, c.getChildContext != null && (r = qe(qe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (I = c.getSnapshotBeforeUpdate(y, N)), Y = A, A != null && A.type === be && A.key == null && (Y = bn(A.props.children)), M = wn(e, Hi(Y) ? Y : [Y], i, t, r, n, o, s, M, D, j), c.base = i.__e, i.__u &= -161, c.__h.length && s.push(c), z && (c.__E = c.__ = null);
179
- } catch (R) {
180
- if (i.__v = null, D || o != null) if (R.then) {
181
- for (i.__u |= D ? 160 : 128; M && M.nodeType == 8 && M.nextSibling; ) M = M.nextSibling;
182
- o[o.indexOf(M)] = null, i.__e = M;
176
+ g.__d = !1, ee && ee(i), A = g.render(g.props, g.state, g.context), g.state = g.__s;
177
+ while (g.__d && ++ue < 25);
178
+ g.state = g.__s, g.getChildContext != null && (r = qe(qe({}, r), g.getChildContext())), _ && !M && g.getSnapshotBeforeUpdate != null && (I = g.getSnapshotBeforeUpdate(y, N)), ne = A, A != null && A.type === be && A.key == null && (ne = bn(A.props.children)), a = wn(e, Gi(ne) ? ne : [ne], i, t, r, n, o, s, a, D, j), g.base = i.__e, i.__u &= -161, g.__h.length && s.push(g), O && (g.__E = g.__ = null);
179
+ } catch (k) {
180
+ if (i.__v = null, D || o != null) if (k.then) {
181
+ for (i.__u |= D ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
182
+ o[o.indexOf(a)] = null, i.__e = a;
183
183
  } else {
184
- for (H = o.length; H--; ) kt(o[H]);
184
+ for (Q = o.length; Q--; ) kt(o[Q]);
185
185
  wt(i);
186
186
  }
187
- else i.__e = t.__e, i.__k = t.__k, R.then || wt(i);
188
- X.__e(R, i, t);
187
+ else i.__e = t.__e, i.__k = t.__k, k.then || wt(i);
188
+ $.__e(k, i, t);
189
189
  }
190
- else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : M = i.__e = ms(t.__e, i, t, r, n, o, s, D, j);
191
- return (A = X.diffed) && A(i), 128 & i.__u ? void 0 : M;
190
+ else o == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : a = i.__e = ms(t.__e, i, t, r, n, o, s, D, j);
191
+ return (A = $.diffed) && A(i), 128 & i.__u ? void 0 : a;
192
192
  }
193
193
  function wt(e) {
194
194
  e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(wt);
195
195
  }
196
196
  function _n(e, i, t) {
197
197
  for (var r = 0; r < t.length; r++) Qt(t[r], t[++r], t[++r]);
198
- X.__c && X.__c(i, e), e.some(function(n) {
198
+ $.__c && $.__c(i, e), e.some(function(n) {
199
199
  try {
200
200
  e = n.__h, n.__h = [], e.some(function(o) {
201
201
  o.call(n);
202
202
  });
203
203
  } catch (o) {
204
- X.__e(o, n.__v);
204
+ $.__e(o, n.__v);
205
205
  }
206
206
  });
207
207
  }
208
208
  function bn(e) {
209
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Hi(e) ? e.map(bn) : qe({}, e);
209
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(bn) : qe({}, e);
210
210
  }
211
- function ms(e, i, t, r, n, o, s, M, D) {
212
- var j, A, c, a, y, N, I, z = t.props || Bi, w = i.props, _ = i.type;
211
+ function ms(e, i, t, r, n, o, s, a, D) {
212
+ var j, A, g, M, y, N, I, O = t.props || Zi, w = i.props, _ = i.type;
213
213
  if (_ == "svg" ? n = "http://www.w3.org/2000/svg" : _ == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), o != null) {
214
214
  for (j = 0; j < o.length; j++) if ((y = o[j]) && "setAttribute" in y == !!_ && (_ ? y.localName == _ : y.nodeType == 3)) {
215
215
  e = y, o[j] = null;
@@ -218,22 +218,22 @@ function ms(e, i, t, r, n, o, s, M, D) {
218
218
  }
219
219
  if (e == null) {
220
220
  if (_ == null) return document.createTextNode(w);
221
- e = document.createElementNS(n, _, w.is && w), M && (X.__m && X.__m(i, o), M = !1), o = null;
221
+ e = document.createElementNS(n, _, w.is && w), a && ($.__m && $.__m(i, o), a = !1), o = null;
222
222
  }
223
- if (_ == null) z === w || M && e.data == w || (e.data = w);
223
+ if (_ == null) O === w || a && e.data == w || (e.data = w);
224
224
  else {
225
- if (o = o && Zi.call(e.childNodes), !M && o != null) for (z = {}, j = 0; j < e.attributes.length; j++) z[(y = e.attributes[j]).name] = y.value;
226
- for (j in z) if (y = z[j], j != "children") {
227
- if (j == "dangerouslySetInnerHTML") c = y;
225
+ if (o = o && Hi.call(e.childNodes), !a && o != null) for (O = {}, j = 0; j < e.attributes.length; j++) O[(y = e.attributes[j]).name] = y.value;
226
+ for (j in O) if (y = O[j], j != "children") {
227
+ if (j == "dangerouslySetInnerHTML") g = y;
228
228
  else if (!(j in w)) {
229
229
  if (j == "value" && "defaultValue" in w || j == "checked" && "defaultChecked" in w) continue;
230
- it(e, j, null, y, n);
230
+ tt(e, j, null, y, n);
231
231
  }
232
232
  }
233
- for (j in w) y = w[j], j == "children" ? a = y : j == "dangerouslySetInnerHTML" ? A = y : j == "value" ? N = y : j == "checked" ? I = y : M && typeof y != "function" || z[j] === y || it(e, j, y, z[j], n);
234
- if (A) M || c && (A.__html == c.__html || A.__html == e.innerHTML) || (e.innerHTML = A.__html), i.__k = [];
235
- else if (c && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Hi(a) ? a : [a], i, t, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : t.__k && bi(t, 0), M, D), o != null) for (j = o.length; j--; ) kt(o[j]);
236
- M || (j = "value", _ == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[j] || _ == "progress" && !N || _ == "option" && N != z[j]) && it(e, j, N, z[j], n), j = "checked", I != null && I != e[j] && it(e, j, I, z[j], n));
233
+ for (j in w) y = w[j], j == "children" ? M = y : j == "dangerouslySetInnerHTML" ? A = y : j == "value" ? N = y : j == "checked" ? I = y : a && typeof y != "function" || O[j] === y || tt(e, j, y, O[j], n);
234
+ if (A) a || g && (A.__html == g.__html || A.__html == e.innerHTML) || (e.innerHTML = A.__html), i.__k = [];
235
+ else if (g && (e.innerHTML = ""), wn(i.type == "template" ? e.content : e, Gi(M) ? M : [M], i, t, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : t.__k && Si(t, 0), a, D), o != null) for (j = o.length; j--; ) kt(o[j]);
236
+ a || (j = "value", _ == "progress" && N == null ? e.removeAttribute("value") : N != null && (N !== e[j] || _ == "progress" && !N || _ == "option" && N != O[j]) && tt(e, j, N, O[j], n), j = "checked", I != null && I != e[j] && tt(e, j, I, O[j], n));
237
237
  }
238
238
  return e;
239
239
  }
@@ -244,16 +244,16 @@ function Qt(e, i, t) {
244
244
  r && e.__u(), r && i == null || (e.__u = e(i));
245
245
  } else e.current = i;
246
246
  } catch (n) {
247
- X.__e(n, t);
247
+ $.__e(n, t);
248
248
  }
249
249
  }
250
250
  function Sn(e, i, t) {
251
251
  var r, n;
252
- if (X.unmount && X.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Qt(r, null, i)), (r = e.__c) != null) {
252
+ if ($.unmount && $.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Qt(r, null, i)), (r = e.__c) != null) {
253
253
  if (r.componentWillUnmount) try {
254
254
  r.componentWillUnmount();
255
255
  } catch (o) {
256
- X.__e(o, i);
256
+ $.__e(o, i);
257
257
  }
258
258
  r.base = r.__P = null;
259
259
  }
@@ -265,15 +265,15 @@ function ws(e, i, t) {
265
265
  }
266
266
  function Ai(e, i, t) {
267
267
  var r, n, o, s;
268
- i == document && (i = document.documentElement), X.__ && X.__(e, i), n = (r = typeof t == "function") ? null : t && t.__k || i.__k, o = [], s = [], Ut(i, e = (!r && t || i).__k = ei(be, null, [e]), n || Bi, Bi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Zi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s), _n(o, e, s);
268
+ i == document && (i = document.documentElement), $.__ && $.__(e, i), n = (r = typeof t == "function") ? null : t && t.__k || i.__k, o = [], s = [], Ut(i, e = (!r && t || i).__k = ei(be, null, [e]), n || Zi, Zi, i.namespaceURI, !r && t ? [t] : n ? null : i.firstChild ? Hi.call(i.childNodes) : null, o, !r && t ? t : n ? n.__e : i.firstChild, r, s), _n(o, e, s);
269
269
  }
270
270
  function Cn(e, i) {
271
271
  Ai(e, i, Cn);
272
272
  }
273
273
  function ps(e, i, t) {
274
- var r, n, o, s, M = qe({}, e.props);
275
- for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : M[o] = i[o] === void 0 && s != null ? s[o] : i[o];
276
- return arguments.length > 2 && (M.children = arguments.length > 3 ? Zi.call(arguments, 2) : t), Yi(e.type, M, r || e.key, n || e.ref, null);
274
+ var r, n, o, s, a = qe({}, e.props);
275
+ for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), i) o == "key" ? r = i[o] : o == "ref" ? n = i[o] : a[o] = i[o] === void 0 && s != null ? s[o] : i[o];
276
+ return arguments.length > 2 && (a.children = arguments.length > 3 ? Hi.call(arguments, 2) : t), Pi(e.type, a, r || e.key, n || e.ref, null);
277
277
  }
278
278
  function Yt(e) {
279
279
  function i(t) {
@@ -298,29 +298,29 @@ function Yt(e) {
298
298
  return t.children(r);
299
299
  }).contextType = i, i;
300
300
  }
301
- Zi = En.slice, X = { __e: function(e, i, t, r) {
301
+ Hi = En.slice, $ = { __e: function(e, i, t, r) {
302
302
  for (var n, o, s; i = i.__; ) if ((n = i.__c) && !n.__) try {
303
303
  if ((o = n.constructor) && o.getDerivedStateFromError != null && (n.setState(o.getDerivedStateFromError(e)), s = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e, r || {}), s = n.__d), s) return n.__E = n;
304
- } catch (M) {
305
- e = M;
304
+ } catch (a) {
305
+ e = a;
306
306
  }
307
307
  throw e;
308
- } }, An = 0, Ge.prototype.setState = function(e, i) {
308
+ } }, An = 0, He.prototype.setState = function(e, i) {
309
309
  var t;
310
310
  t = this.__s != null && this.__s != this.state ? this.__s : this.__s = qe({}, this.state), typeof e == "function" && (e = e(qe({}, t), this.props)), e && qe(t, e), e != null && this.__v && (i && this._sb.push(i), mt(this));
311
- }, Ge.prototype.forceUpdate = function(e) {
311
+ }, He.prototype.forceUpdate = function(e) {
312
312
  this.__v && (this.__e = !0, e && this.__h.push(e), mt(this));
313
- }, Ge.prototype.render = be, ji = [], Tn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, zn = function(e, i) {
313
+ }, He.prototype.render = be, ji = [], Tn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, zn = function(e, i) {
314
314
  return e.__v.__b - i.__v.__b;
315
- }, ot.__r = 0, On = /(PointerCapture)$|Capture$/i, Lt = 0, Et = Qr(!1), ht = Qr(!0), xn = 0;
315
+ }, st.__r = 0, On = /(PointerCapture)$|Capture$/i, Lt = 0, Et = Qr(!1), ht = Qr(!0), xn = 0;
316
316
  var _s = 0;
317
317
  function d(e, i, t, r, n, o) {
318
318
  i || (i = {});
319
- var s, M, D = i;
320
- if ("ref" in D) for (M in D = {}, i) M == "ref" ? s = i[M] : D[M] = i[M];
319
+ var s, a, D = i;
320
+ if ("ref" in D) for (a in D = {}, i) a == "ref" ? s = i[a] : D[a] = i[a];
321
321
  var j = { type: e, props: D, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --_s, __i: -1, __u: 0, __source: n, __self: o };
322
- if (typeof e == "function" && (s = e.defaultProps)) for (M in s) D[M] === void 0 && (D[M] = s[M]);
323
- return X.vnode && X.vnode(j), j;
322
+ if (typeof e == "function" && (s = e.defaultProps)) for (a in s) D[a] === void 0 && (D[a] = s[a]);
323
+ return $.vnode && $.vnode(j), j;
324
324
  }
325
325
  class yi {
326
326
  constructor({
@@ -330,11 +330,11 @@ class yi {
330
330
  underlyingError: n,
331
331
  underlyingBaseError: o,
332
332
  domain: s,
333
- module: M,
333
+ module: a,
334
334
  errorEnumName: D,
335
335
  shortDomainCode: j
336
336
  }) {
337
- this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = M, this.domain = s, this.errorEnumName = D, this.shortDomainCode = j;
337
+ this.errorCode = i, this.errorCodeKey = t, this.message = r, this.underlyingError = n, this.underlyingBaseError = o, this.module = a, this.domain = s, this.errorEnumName = D, this.shortDomainCode = j;
338
338
  }
339
339
  static getErrorKey(i, t) {
340
340
  const r = Object.keys(t).find((n) => t[n] === i);
@@ -388,45 +388,45 @@ const Nt = {
388
388
  FORM: "form",
389
389
  DATA: "data"
390
390
  };
391
- var si, de, ft, Yr, Si = 0, vn = [], ye = X, Pr = ye.__b, Rr = ye.__r, Fr = ye.diffed, Vr = ye.__c, Br = ye.unmount, Wr = ye.__;
391
+ var si, de, ft, Yr, Ci = 0, vn = [], ye = $, Pr = ye.__b, Rr = ye.__r, Fr = ye.diffed, Vr = ye.__c, Br = ye.unmount, Wr = ye.__;
392
392
  function Ti(e, i) {
393
- ye.__h && ye.__h(de, e, Si || i), Si = 0;
393
+ ye.__h && ye.__h(de, e, Ci || i), Ci = 0;
394
394
  var t = de.__H || (de.__H = { __: [], __h: [] });
395
395
  return e >= t.__.length && t.__.push({}), t.__[e];
396
396
  }
397
397
  function pe(e) {
398
- return Si = 1, Dt(Ln, e);
398
+ return Ci = 1, Dt(Ln, e);
399
399
  }
400
400
  function Dt(e, i, t) {
401
401
  var r = Ti(si++, 2);
402
- if (r.t = e, !r.__c && (r.__ = [t ? t(i) : Ln(void 0, i), function(M) {
403
- var D = r.__N ? r.__N[0] : r.__[0], j = r.t(D, M);
402
+ if (r.t = e, !r.__c && (r.__ = [t ? t(i) : Ln(void 0, i), function(a) {
403
+ var D = r.__N ? r.__N[0] : r.__[0], j = r.t(D, a);
404
404
  D !== j && (r.__N = [j, r.__[1]], r.__c.setState({}));
405
405
  }], r.__c = de, !de.__f)) {
406
- var n = function(M, D, j) {
406
+ var n = function(a, D, j) {
407
407
  if (!r.__c.__H) return !0;
408
- var A = r.__c.__H.__.filter(function(a) {
409
- return !!a.__c;
408
+ var A = r.__c.__H.__.filter(function(M) {
409
+ return !!M.__c;
410
410
  });
411
- if (A.every(function(a) {
412
- return !a.__N;
413
- })) return !o || o.call(this, M, D, j);
414
- var c = r.__c.props !== M;
415
- return A.forEach(function(a) {
416
- if (a.__N) {
417
- var y = a.__[0];
418
- a.__ = a.__N, a.__N = void 0, y !== a.__[0] && (c = !0);
411
+ if (A.every(function(M) {
412
+ return !M.__N;
413
+ })) return !o || o.call(this, a, D, j);
414
+ var g = r.__c.props !== a;
415
+ return A.forEach(function(M) {
416
+ if (M.__N) {
417
+ var y = M.__[0];
418
+ M.__ = M.__N, M.__N = void 0, y !== M.__[0] && (g = !0);
419
419
  }
420
- }), o && o.call(this, M, D, j) || c;
420
+ }), o && o.call(this, a, D, j) || g;
421
421
  };
422
422
  de.__f = !0;
423
423
  var o = de.shouldComponentUpdate, s = de.componentWillUpdate;
424
- de.componentWillUpdate = function(M, D, j) {
424
+ de.componentWillUpdate = function(a, D, j) {
425
425
  if (this.__e) {
426
426
  var A = o;
427
- o = void 0, n(M, D, j), o = A;
427
+ o = void 0, n(a, D, j), o = A;
428
428
  }
429
- s && s.call(this, M, D, j);
429
+ s && s.call(this, a, D, j);
430
430
  }, de.shouldComponentUpdate = n;
431
431
  }
432
432
  return r.__N || r.__;
@@ -439,13 +439,13 @@ function li(e, i) {
439
439
  var t = Ti(si++, 4);
440
440
  !ye.__s && Bt(t.__H, i) && (t.__ = e, t.u = i, de.__h.push(t));
441
441
  }
442
- function Je(e) {
443
- return Si = 5, Gi(function() {
442
+ function Ge(e) {
443
+ return Ci = 5, Ji(function() {
444
444
  return { current: e };
445
445
  }, []);
446
446
  }
447
447
  function Pt(e, i, t) {
448
- Si = 6, li(function() {
448
+ Ci = 6, li(function() {
449
449
  if (typeof e == "function") {
450
450
  var r = e(i());
451
451
  return function() {
@@ -457,16 +457,16 @@ function Pt(e, i, t) {
457
457
  };
458
458
  }, t == null ? t : t.concat(e));
459
459
  }
460
- function Gi(e, i) {
460
+ function Ji(e, i) {
461
461
  var t = Ti(si++, 7);
462
462
  return Bt(t.__H, i) && (t.__ = e(), t.__H = i, t.__h = e), t.__;
463
463
  }
464
464
  function Rt(e, i) {
465
- return Si = 8, Gi(function() {
465
+ return Ci = 8, Ji(function() {
466
466
  return e;
467
467
  }, i);
468
468
  }
469
- function Ci(e) {
469
+ function vi(e) {
470
470
  var i = de.context[e.__c], t = Ti(si++, 9);
471
471
  return t.c = e, i ? (t.__ == null && (t.__ = !0, i.sub(de)), i.props.value) : e.__;
472
472
  }
@@ -492,7 +492,7 @@ function Vt() {
492
492
  }
493
493
  function vs() {
494
494
  for (var e; e = vn.shift(); ) if (e.__P && e.__H) try {
495
- e.__H.__h.forEach(nt), e.__H.__h.forEach(pt), e.__H.__h = [];
495
+ e.__H.__h.forEach(ot), e.__H.__h.forEach(pt), e.__H.__h = [];
496
496
  } catch (i) {
497
497
  e.__H.__h = [], ye.__e(i, e.__v);
498
498
  }
@@ -506,7 +506,7 @@ ye.__b = function(e) {
506
506
  var i = (de = e.__c).__H;
507
507
  i && (ft === de ? (i.__h = [], de.__h = [], i.__.forEach(function(t) {
508
508
  t.__N && (t.__ = t.__N), t.u = t.__N = void 0;
509
- })) : (i.__h.forEach(nt), i.__h.forEach(pt), i.__h = [], si = 0)), ft = de;
509
+ })) : (i.__h.forEach(ot), i.__h.forEach(pt), i.__h = [], si = 0)), ft = de;
510
510
  }, ye.diffed = function(e) {
511
511
  Fr && Fr(e);
512
512
  var i = e.__c;
@@ -516,7 +516,7 @@ ye.__b = function(e) {
516
516
  }, ye.__c = function(e, i) {
517
517
  i.some(function(t) {
518
518
  try {
519
- t.__h.forEach(nt), t.__h = t.__h.filter(function(r) {
519
+ t.__h.forEach(ot), t.__h = t.__h.filter(function(r) {
520
520
  return !r.__ || pt(r);
521
521
  });
522
522
  } catch (r) {
@@ -530,7 +530,7 @@ ye.__b = function(e) {
530
530
  var i, t = e.__c;
531
531
  t && t.__H && (t.__H.__.forEach(function(r) {
532
532
  try {
533
- nt(r);
533
+ ot(r);
534
534
  } catch (n) {
535
535
  i = n;
536
536
  }
@@ -543,7 +543,7 @@ function Ls(e) {
543
543
  }, r = setTimeout(t, 35);
544
544
  Zr && (i = requestAnimationFrame(t));
545
545
  }
546
- function nt(e) {
546
+ function ot(e) {
547
547
  var i = de, t = e.__c;
548
548
  typeof t == "function" && (e.__c = void 0, t()), de = i;
549
549
  }
@@ -560,17 +560,17 @@ function Ln(e, i) {
560
560
  return typeof i == "function" ? i(e) : i;
561
561
  }
562
562
  const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback: t, devSettings: r }) => /* @__PURE__ */ d(It.Provider, { value: { perform: e, setIsProcessingCallback: t, devSettings: r }, children: i }), ks = () => {
563
- const e = Ci(It);
563
+ const e = vi(It);
564
564
  if (!e)
565
565
  throw new Error("useDevSettings must be used within a Context Provider");
566
566
  return { devSettings: e == null ? void 0 : e.devSettings };
567
567
  }, zi = () => {
568
- const e = Ci(It);
568
+ const e = vi(It);
569
569
  if (!e)
570
570
  throw new Error("usePerform must be used within a PerformProvider");
571
571
  return { perform: e.perform };
572
572
  }, Us = () => {
573
- const e = Ci(It);
573
+ const e = vi(It);
574
574
  if (!e)
575
575
  throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
576
576
  return { setIsProcessingCallback: e.setIsProcessingCallback };
@@ -583,7 +583,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
583
583
  justifyContent: "center",
584
584
  alignItems: "center",
585
585
  alignContent: "center"
586
- }, We = {
586
+ }, Ke = {
587
587
  INFO: "INFO",
588
588
  INFO_DETAILS: "INFO_DETAILS",
589
589
  STATUS: "STATUS",
@@ -592,11 +592,11 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
592
592
  CAMERA: "CAMERA",
593
593
  GALLERY: "GALLERY",
594
594
  GEOLOCATION: "GEOLOCATION"
595
- }, st = {
595
+ }, Mt = {
596
596
  LEFT: "LEFT",
597
597
  CENTER: "CENTER",
598
598
  RIGHT: "RIGHT"
599
- }, tt = {
599
+ }, rt = {
600
600
  ASPECT_FILL: "ASPECT_FILL",
601
601
  ASPECT_FIT: "ASPECT_FIT",
602
602
  FILL: "FILL"
@@ -607,20 +607,20 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
607
607
  SELECTOR_BUTTONS: "selector_buttons",
608
608
  SELECTOR_DROPDOWN: "selector_dropdown",
609
609
  MULTI_SELECTOR_DROPDOWN: "multi_selector_dropdown"
610
- }, rt = {
610
+ }, nt = {
611
611
  FREE_TEXT: "FREE_TEXT",
612
612
  EMAIL: "EMAIL",
613
613
  NUMBER: "NUMBER",
614
614
  SECURE: "SECURE"
615
615
  }, Ys = ({ dataUrl: e }) => {
616
- const i = Je(null), t = 360 / 1e3;
616
+ const i = Ge(null), t = 360 / 1e3;
617
617
  return Fe(() => {
618
618
  if (!i.current) return;
619
619
  let r = !0, n = 0, o = performance.now();
620
- function s(M) {
620
+ function s(a) {
621
621
  if (!r) return;
622
- const D = M - o;
623
- o = M, n = (n + t * D) % 360, i.current && (i.current.style.transform = `rotate(${n}deg)`), requestAnimationFrame(s);
622
+ const D = a - o;
623
+ o = a, n = (n + t * D) % 360, i.current && (i.current.style.transform = `rotate(${n}deg)`), requestAnimationFrame(s);
624
624
  }
625
625
  return requestAnimationFrame(s), () => {
626
626
  r = !1;
@@ -691,7 +691,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
691
691
  }, kn = ({ type: e, color: i }) => {
692
692
  const t = _t[e] || _t[ce.DEFAULT], r = t == null ? void 0 : t(i);
693
693
  return e === ce.SPINNER ? /* @__PURE__ */ d(Ys, { dataUrl: r }) : /* @__PURE__ */ d("img", { src: r, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
694
- }, Ji = "#005fcc", Mt = "idv-gui", at = {
694
+ }, $i = "#005fcc", at = "idv-gui", Ri = {
695
695
  DECODING_FAILED: "DECODING_FAILED"
696
696
  }, At = {
697
697
  text: "text",
@@ -705,7 +705,7 @@ const It = Yt(void 0), Hr = ({ perform: e, children: i, setIsProcessingCallback:
705
705
  SYSTEM_RESTRICTED: "system_restricted"
706
706
  };
707
707
  function Un(e) {
708
- return e === st.CENTER ? "center" : e === st.RIGHT ? "right" : "left";
708
+ return e === Mt.CENTER ? "center" : e === Mt.RIGHT ? "right" : "left";
709
709
  }
710
710
  function Wt(e) {
711
711
  if (typeof e == "object" && e !== null)
@@ -720,25 +720,25 @@ function Rs(e) {
720
720
  })).filter((i) => !!i.value);
721
721
  }
722
722
  const Fs = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
723
- function ee(e) {
723
+ function q(e) {
724
724
  return e && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e) ? e : void 0;
725
725
  }
726
726
  const Vs = (e, i) => e.reduce((t, r) => {
727
727
  var n, o, s;
728
728
  if (r.answerType === At.text && (n = r.property) != null && n.id) {
729
- const M = i.find((D) => D.name === r.property.id);
730
- if (M != null && M.string)
731
- return J(O({}, t), { [r.id]: M.string });
729
+ const a = i.find((D) => D.name === r.property.id);
730
+ if (a != null && a.string)
731
+ return H(z({}, t), { [r.id]: a.string });
732
732
  }
733
733
  if (r.answerType === At.selector && (o = r.property) != null && o.id) {
734
- const M = i.find((D) => D.name === r.property.id);
735
- if (M != null && M.string)
736
- return J(O({}, t), { [r.id]: M.string });
734
+ const a = i.find((D) => D.name === r.property.id);
735
+ if (a != null && a.string)
736
+ return H(z({}, t), { [r.id]: a.string });
737
737
  }
738
738
  if (r.answerType === At.multiSelector && (s = r.property) != null && s.id) {
739
- const M = i.find((D) => D.name === r.property.id);
740
- if (M != null && M.array)
741
- return J(O({}, t), { [r.id]: M.array });
739
+ const a = i.find((D) => D.name === r.property.id);
740
+ if (a != null && a.array)
741
+ return H(z({}, t), { [r.id]: a.array });
742
742
  }
743
743
  return t;
744
744
  }, {}), Qn = (e) => new Promise((i, t) => {
@@ -751,7 +751,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
751
751
  } else
752
752
  t(new Error("Unexpected result type"));
753
753
  }, r.onerror = () => t(r.error), r.readAsDataURL(e);
754
- }), Bs = () => De(null, null, function* () {
754
+ }), Bs = () => je(null, null, function* () {
755
755
  try {
756
756
  return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((i) => i.stop()), "allowed";
757
757
  } catch (e) {
@@ -761,15 +761,15 @@ const Vs = (e, i) => e.reduce((t, r) => {
761
761
  imageId: e,
762
762
  imageURL: i,
763
763
  base64: t,
764
- contentMode: r = tt.ASPECT_FILL,
764
+ contentMode: r = rt.ASPECT_FILL,
765
765
  cornerRadius: n,
766
766
  backgroundColor: o
767
767
  }) => {
768
- const s = (c) => {
769
- if (c === tt.ASPECT_FILL) return "cover";
770
- if (c === tt.ASPECT_FIT) return "contain";
771
- if (c === tt.FILL) return "fill";
772
- }, [M, D] = pe(!0), j = M && i, A = () => {
768
+ const s = (g) => {
769
+ if (g === rt.ASPECT_FILL) return "cover";
770
+ if (g === rt.ASPECT_FIT) return "contain";
771
+ if (g === rt.FILL) return "fill";
772
+ }, [a, D] = pe(!0), j = a && i, A = () => {
773
773
  D(!1);
774
774
  };
775
775
  if (t)
@@ -783,15 +783,15 @@ const Vs = (e, i) => e.reduce((t, r) => {
783
783
  maxHeight: "100%",
784
784
  objectFit: s(r),
785
785
  borderRadius: n,
786
- backgroundColor: ee(o) || "transparent",
786
+ backgroundColor: q(o) || "transparent",
787
787
  display: j ? "none" : "block"
788
788
  },
789
789
  src: t
790
790
  }
791
791
  );
792
792
  if (e) {
793
- const c = e in _t ? e : "default";
794
- return /* @__PURE__ */ d(kn, { type: c });
793
+ const g = e in _t ? e : "default";
794
+ return /* @__PURE__ */ d(kn, { type: g });
795
795
  }
796
796
  if (i)
797
797
  return /* @__PURE__ */ d(be, { children: [
@@ -837,7 +837,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
837
837
  height: "100%",
838
838
  width: "100%"
839
839
  },
840
- children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, O({}, e)) })
840
+ children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, z({}, e)) })
841
841
  }
842
842
  ), Hs = {
843
843
  display: "flex",
@@ -857,8 +857,8 @@ const Vs = (e, i) => e.reduce((t, r) => {
857
857
  cornerRadius: o,
858
858
  highlightColor: s
859
859
  }) => {
860
- var a;
861
- const [M, D] = pe(!1), j = M && s ? s : n, { perform: A } = zi();
860
+ var M;
861
+ const [a, D] = pe(!1), j = a && s ? s : n, { perform: A } = zi();
862
862
  return /* @__PURE__ */ d(
863
863
  "button",
864
864
  {
@@ -870,8 +870,8 @@ const Vs = (e, i) => e.reduce((t, r) => {
870
870
  Wt(y), A(y, Nt.DATA);
871
871
  },
872
872
  className: "hover-button",
873
- style: J(O(O({}, Hs), o && { borderRadius: o }), {
874
- backgroundColor: (a = ee(j)) != null ? a : "transparent"
873
+ style: H(z(z({}, Hs), o && { borderRadius: o }), {
874
+ backgroundColor: (M = q(j)) != null ? M : "transparent"
875
875
  }),
876
876
  onMouseEnter: () => D(!0),
877
877
  onMouseLeave: () => D(!1),
@@ -886,10 +886,10 @@ const Vs = (e, i) => e.reduce((t, r) => {
886
886
  width: "24px",
887
887
  height: "24px"
888
888
  },
889
- children: /* @__PURE__ */ d(_e, O({}, t))
889
+ children: /* @__PURE__ */ d(_e, z({}, t))
890
890
  }
891
891
  ),
892
- r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe, O({}, r)) })
892
+ r && /* @__PURE__ */ d("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ d(fe, z({}, r)) })
893
893
  ]
894
894
  }
895
895
  );
@@ -906,7 +906,7 @@ const Vs = (e, i) => e.reduce((t, r) => {
906
906
  },
907
907
  "data-ui": "gui-header",
908
908
  part: "gui-header",
909
- children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Gs, O({ dataTestId: "close-btn" }, e)) })
909
+ children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Gs, z({ dataTestId: "close-btn" }, e)) })
910
910
  }
911
911
  );
912
912
  function $s(e) {
@@ -914,11 +914,11 @@ function $s(e) {
914
914
  const i = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, t = [];
915
915
  let r = 0;
916
916
  for (const o of e.matchAll(i)) {
917
- const [s, M, D] = o, j = (n = o.index) != null ? n : 0;
917
+ const [s, a, D] = o, j = (n = o.index) != null ? n : 0;
918
918
  j > r && t.push(e.slice(r, j));
919
919
  const A = D.startsWith("http") ? D : `https://${D}`;
920
920
  t.push(
921
- /* @__PURE__ */ d("a", { href: A, target: "_blank", rel: "noopener noreferrer", children: M }, j)
921
+ /* @__PURE__ */ d("a", { href: A, target: "_blank", rel: "noopener noreferrer", children: a }, j)
922
922
  ), r = j + s.length;
923
923
  }
924
924
  return r < e.length && t.push(e.slice(r)), t;
@@ -936,20 +936,20 @@ const fe = ({
936
936
  fontName: i = "",
937
937
  fontSize: t = "17px",
938
938
  fontColor: r,
939
- alignment: n = st.LEFT,
939
+ alignment: n = Mt.LEFT,
940
940
  backgroundColor: o,
941
941
  cornerRadius: s = 0,
942
- htmlFor: M
942
+ htmlFor: a
943
943
  }) => {
944
944
  const D = {
945
945
  fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
946
946
  fontSize: t,
947
- color: ee(r) || "#000000",
947
+ color: q(r) || "#000000",
948
948
  textAlign: Un(n),
949
- backgroundColor: ee(o) || "transparent",
949
+ backgroundColor: q(o) || "transparent",
950
950
  borderRadius: s
951
951
  }, j = typeof e == "string" && e.trim() && Yn(e);
952
- return M ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: D, htmlFor: M, children: j }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: D, children: j });
952
+ return a ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: D, htmlFor: a, children: j }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: D, children: j });
953
953
  }, ut = ({
954
954
  title: e,
955
955
  image: i,
@@ -958,17 +958,17 @@ const fe = ({
958
958
  cornerRadius: n,
959
959
  highlightColor: o,
960
960
  dataTestId: s,
961
- borderColor: M,
961
+ borderColor: a,
962
962
  borderWidth: D,
963
963
  type: j = "RESPONSE_BODY",
964
964
  onClick: A
965
965
  }) => {
966
966
  var w, _;
967
- const [c, a] = pe(!1), y = c && ee(o) ? o : r, { perform: N } = zi(), I = (h) => {
968
- if (A && A(h), j !== "RESPONSE_BODY") return;
969
- const p = JSON.parse(JSON.stringify(t));
970
- Wt(p), N(p, Nt.DATA);
971
- }, z = {
967
+ const [g, M] = pe(!1), y = g && q(o) ? o : r, { perform: N } = zi(), I = (p) => {
968
+ if (A && A(p), j !== "RESPONSE_BODY") return;
969
+ const h = JSON.parse(JSON.stringify(t));
970
+ Wt(h), N(h, Nt.DATA);
971
+ }, O = {
972
972
  height: "50px",
973
973
  width: "100%",
974
974
  padding: "10px 16px",
@@ -982,13 +982,13 @@ const fe = ({
982
982
  justifyContent: "center",
983
983
  gap: 5,
984
984
  borderRadius: n || 0,
985
- borderStyle: M && D ? "solid" : void 0,
986
- backgroundColor: (w = ee(y)) != null ? w : "transparent",
987
- borderColor: (_ = ee(M)) != null ? _ : "none",
985
+ borderStyle: a && D ? "solid" : void 0,
986
+ backgroundColor: (w = q(y)) != null ? w : "transparent",
987
+ borderColor: (_ = q(a)) != null ? _ : "none",
988
988
  borderWidth: D != null ? D : 0,
989
989
  overflow: "hidden",
990
990
  transition: ".3s",
991
- outlineColor: Ji
991
+ outlineColor: $i
992
992
  };
993
993
  return /* @__PURE__ */ d(
994
994
  "button",
@@ -998,18 +998,18 @@ const fe = ({
998
998
  type: j === "FORM" ? "submit" : "button",
999
999
  "data-test": s,
1000
1000
  onClick: I,
1001
- style: z,
1002
- onMouseEnter: () => a(!0),
1003
- onMouseLeave: () => a(!1),
1001
+ style: O,
1002
+ onMouseEnter: () => M(!0),
1003
+ onMouseLeave: () => M(!1),
1004
1004
  children: [
1005
- i && /* @__PURE__ */ d(_e, O({}, i)),
1005
+ i && /* @__PURE__ */ d(_e, z({}, i)),
1006
1006
  e && /* @__PURE__ */ d(
1007
1007
  "div",
1008
1008
  {
1009
1009
  style: {
1010
1010
  flexGrow: i ? 0 : 1
1011
1011
  },
1012
- children: /* @__PURE__ */ d(fe, O({}, e))
1012
+ children: /* @__PURE__ */ d(fe, z({}, e))
1013
1013
  }
1014
1014
  )
1015
1015
  ]
@@ -1017,7 +1017,7 @@ const fe = ({
1017
1017
  );
1018
1018
  }, Xs = (t) => {
1019
1019
  var r = t, { items: e } = r, i = Di(r, ["items"]);
1020
- return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: O(O({}, {
1020
+ return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: z(z({}, {
1021
1021
  display: "flex",
1022
1022
  flexDirection: "row",
1023
1023
  flexWrap: "wrap",
@@ -1031,7 +1031,7 @@ const fe = ({
1031
1031
  paddingTop: "20px"
1032
1032
  }), i), children: e.map((o) => {
1033
1033
  var s;
1034
- return /* @__PURE__ */ d(ut, O({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Ws());
1034
+ return /* @__PURE__ */ d(ut, z({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Ws());
1035
1035
  }) });
1036
1036
  }, ci = ({
1037
1037
  children: e,
@@ -1040,7 +1040,7 @@ const fe = ({
1040
1040
  backgroundColor: r = "white",
1041
1041
  buttons: n
1042
1042
  }) => {
1043
- const o = i ? 60 : 10, s = t ? 30 : 10, M = {
1043
+ const o = i ? 60 : 10, s = t ? 30 : 10, a = {
1044
1044
  position: "relative",
1045
1045
  display: "flex",
1046
1046
  flexGrow: 1,
@@ -1055,7 +1055,7 @@ const fe = ({
1055
1055
  paddingRight: "20px",
1056
1056
  height: "100%",
1057
1057
  width: "100%",
1058
- backgroundColor: ee(r)
1058
+ backgroundColor: q(r)
1059
1059
  };
1060
1060
  return /* @__PURE__ */ d(
1061
1061
  "div",
@@ -1063,7 +1063,7 @@ const fe = ({
1063
1063
  part: "gui-base-container",
1064
1064
  "data-ui": "gui-base-container",
1065
1065
  id: "base-container",
1066
- style: O({}, M),
1066
+ style: z({}, a),
1067
1067
  children: [
1068
1068
  i && /* @__PURE__ */ d(
1069
1069
  "div",
@@ -1090,7 +1090,7 @@ const fe = ({
1090
1090
  width: "100%",
1091
1091
  height: s
1092
1092
  },
1093
- children: /* @__PURE__ */ d(Zs, O({}, t))
1093
+ children: /* @__PURE__ */ d(Zs, z({}, t))
1094
1094
  }
1095
1095
  )
1096
1096
  ]
@@ -1100,7 +1100,7 @@ const fe = ({
1100
1100
  text: e,
1101
1101
  fontName: i = "",
1102
1102
  fontColor: t,
1103
- alignment: r = st.LEFT,
1103
+ alignment: r = Mt.LEFT,
1104
1104
  fontSize: n = 17,
1105
1105
  backgroundColor: o,
1106
1106
  cornerRadius: s = 0
@@ -1113,9 +1113,9 @@ const fe = ({
1113
1113
  fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
1114
1114
  fontSize: n,
1115
1115
  textAlign: Un(r),
1116
- color: ee(t) || "#000000",
1116
+ color: q(t) || "#000000",
1117
1117
  borderRadius: s,
1118
- backgroundColor: ee(o) || "transparent",
1118
+ backgroundColor: q(o) || "transparent",
1119
1119
  whiteSpace: "pre-line"
1120
1120
  },
1121
1121
  children: e && Yn(e)
@@ -1129,9 +1129,9 @@ const fe = ({
1129
1129
  buttons: o,
1130
1130
  backgroundColor: s
1131
1131
  }) => {
1132
- const M = Je(null), [D, j] = pe(!1);
1132
+ const a = Ge(null), [D, j] = pe(!1);
1133
1133
  return Fe(() => {
1134
- M.current && j(M.current.scrollHeight > M.current.clientHeight + 2);
1134
+ a.current && j(a.current.scrollHeight > a.current.clientHeight + 2);
1135
1135
  }, []), /* @__PURE__ */ d(ci, { header: e, buttons: o, footer: i, backgroundColor: s, children: /* @__PURE__ */ d(
1136
1136
  "div",
1137
1137
  {
@@ -1146,11 +1146,11 @@ const fe = ({
1146
1146
  flexDirection: "column"
1147
1147
  },
1148
1148
  children: [
1149
- t && /* @__PURE__ */ d("div", { style: Qs, children: /* @__PURE__ */ d(_e, O({}, t)) }),
1149
+ t && /* @__PURE__ */ d("div", { style: Qs, children: /* @__PURE__ */ d(_e, z({}, t)) }),
1150
1150
  (r == null ? void 0 : r.text) && /* @__PURE__ */ d(
1151
1151
  "div",
1152
1152
  {
1153
- ref: M,
1153
+ ref: a,
1154
1154
  style: {
1155
1155
  width: "100%",
1156
1156
  overflow: D ? "auto" : "hidden"
@@ -1171,12 +1171,12 @@ const fe = ({
1171
1171
  alignItems: "center",
1172
1172
  alignContent: "center"
1173
1173
  },
1174
- children: r && /* @__PURE__ */ d(fe, O({}, r))
1174
+ children: r && /* @__PURE__ */ d(fe, z({}, r))
1175
1175
  }
1176
1176
  )
1177
1177
  }
1178
1178
  ),
1179
- n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt, O({}, n)) })
1179
+ n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ d(jt, z({}, n)) })
1180
1180
  ]
1181
1181
  }
1182
1182
  ) });
@@ -1210,13 +1210,13 @@ const fe = ({
1210
1210
  part: "gui-info-screen-container",
1211
1211
  "data-ui": "gui-info-screen-container",
1212
1212
  id: "info-screen-container",
1213
- style: J(O({}, eM), {
1213
+ style: H(z({}, eM), {
1214
1214
  justifyContent: r ? "flex-start" : "center"
1215
1215
  }),
1216
1216
  children: [
1217
- r && /* @__PURE__ */ d("div", { style: qs, children: /* @__PURE__ */ d(_e, O({}, r)) }),
1218
- e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe, O({}, e)) }),
1219
- n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, O({}, n)) })
1217
+ r && /* @__PURE__ */ d("div", { style: qs, children: /* @__PURE__ */ d(_e, z({}, r)) }),
1218
+ e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(fe, z({}, e)) }),
1219
+ n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, z({}, n)) })
1220
1220
  ]
1221
1221
  }
1222
1222
  ) }) }), tM = ({ indicatorColor: e = "#7E57C5" }) => /* @__PURE__ */ d(kn, { type: ce.SPINNER, color: e }), Jr = ({
@@ -1237,7 +1237,7 @@ const fe = ({
1237
1237
  height: "100%",
1238
1238
  width: "100%"
1239
1239
  },
1240
- children: /* @__PURE__ */ d(tM, { indicatorColor: ee(e == null ? void 0 : e.indicatorColor) || "#000000" })
1240
+ children: /* @__PURE__ */ d(tM, { indicatorColor: q(e == null ? void 0 : e.indicatorColor) || "#000000" })
1241
1241
  }
1242
1242
  ) }), rM = ({
1243
1243
  title: e,
@@ -1250,7 +1250,7 @@ const fe = ({
1250
1250
  "div",
1251
1251
  {
1252
1252
  className: "details-item",
1253
- style: J(O({}, {
1253
+ style: H(z({}, {
1254
1254
  display: "flex",
1255
1255
  alignItems: "flex-start",
1256
1256
  justifyContent: "space-between",
@@ -1258,7 +1258,7 @@ const fe = ({
1258
1258
  padding: "16px 0",
1259
1259
  gap: 16
1260
1260
  }), {
1261
- backgroundColor: ee(r) || "transparent",
1261
+ backgroundColor: q(r) || "transparent",
1262
1262
  borderRadius: n
1263
1263
  }),
1264
1264
  children: [
@@ -1269,12 +1269,12 @@ const fe = ({
1269
1269
  flex: "0 1 auto"
1270
1270
  },
1271
1271
  children: [
1272
- /* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe, O({}, e)) }),
1273
- /* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, O({}, i)) })
1272
+ /* @__PURE__ */ d("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ d(fe, z({}, e)) }),
1273
+ /* @__PURE__ */ d("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, z({}, i)) })
1274
1274
  ]
1275
1275
  }
1276
1276
  ),
1277
- /* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, O({}, t)) })
1277
+ /* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, z({}, t)) })
1278
1278
  ]
1279
1279
  }
1280
1280
  ), nM = {
@@ -1285,11 +1285,11 @@ const fe = ({
1285
1285
  "div",
1286
1286
  {
1287
1287
  className: "details",
1288
- style: J(O({}, nM), {
1289
- backgroundColor: ee(i) || "white",
1288
+ style: H(z({}, nM), {
1289
+ backgroundColor: q(i) || "white",
1290
1290
  borderRadius: t
1291
1291
  }),
1292
- children: e.map((r, n) => /* @__PURE__ */ d(rM, O({ isLastChild: n === e.length - 1 }, r), n))
1292
+ children: e.map((r, n) => /* @__PURE__ */ d(rM, z({ isLastChild: n === e.length - 1 }, r), n))
1293
1293
  }
1294
1294
  ), sM = ({
1295
1295
  title: e,
@@ -1299,7 +1299,7 @@ const fe = ({
1299
1299
  buttons: n,
1300
1300
  backgroundColor: o
1301
1301
  }) => {
1302
- const s = Je(null), [M, D] = pe(!1);
1302
+ const s = Ge(null), [a, D] = pe(!1);
1303
1303
  return Fe(() => {
1304
1304
  s.current && D(s.current.scrollHeight > s.current.clientHeight);
1305
1305
  }, []), /* @__PURE__ */ d(ci, { header: i, buttons: n, footer: t, backgroundColor: o, children: /* @__PURE__ */ d(
@@ -1308,15 +1308,15 @@ const fe = ({
1308
1308
  style: {
1309
1309
  display: "flex",
1310
1310
  flexDirection: "column",
1311
- justifyContent: M ? "flex-start" : "center",
1311
+ justifyContent: a ? "flex-start" : "center",
1312
1312
  height: "100%",
1313
1313
  minHeight: "100%",
1314
1314
  overflow: "auto"
1315
1315
  },
1316
1316
  ref: s,
1317
1317
  children: [
1318
- /* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe, O({}, e)) }),
1319
- r && /* @__PURE__ */ d(oM, O({}, r))
1318
+ /* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(fe, z({}, e)) }),
1319
+ r && /* @__PURE__ */ d(oM, z({}, r))
1320
1320
  ]
1321
1321
  }
1322
1322
  ) });
@@ -1372,11 +1372,11 @@ function Rn(e, i) {
1372
1372
  }
1373
1373
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
1374
1374
  }
1375
- (lt.prototype = new Ge()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, i) {
1375
+ (lt.prototype = new He()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, i) {
1376
1376
  return bt(this.props, e) || bt(this.state, i);
1377
1377
  };
1378
- var $r = X.__b;
1379
- X.__b = function(e) {
1378
+ var $r = $.__b;
1379
+ $.__b = function(e) {
1380
1380
  e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $r && $r(e);
1381
1381
  };
1382
1382
  var MM = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
@@ -1395,14 +1395,14 @@ var Xr = function(e, i) {
1395
1395
  var i = oi(e);
1396
1396
  if (i.length !== 1) throw "Children.only";
1397
1397
  return i[0];
1398
- }, toArray: oi }, aM = X.__e;
1399
- X.__e = function(e, i, t, r) {
1398
+ }, toArray: oi }, aM = $.__e;
1399
+ $.__e = function(e, i, t, r) {
1400
1400
  if (e.then) {
1401
1401
  for (var n, o = i; o = o.__; ) if ((n = o.__c) && n.__c) return i.__e == null && (i.__e = t.__e, i.__k = t.__k), n.__c(e, i);
1402
1402
  }
1403
1403
  aM(e, i, t, r);
1404
1404
  };
1405
- var Kr = X.unmount;
1405
+ var Kr = $.unmount;
1406
1406
  function Bn(e, i, t) {
1407
1407
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
1408
1408
  typeof r.__c == "function" && r.__c();
@@ -1415,7 +1415,7 @@ function Wn(e, i, t) {
1415
1415
  return Wn(r, i, t);
1416
1416
  }), e.__c && e.__c.__P === i && (e.__e && t.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = t)), e;
1417
1417
  }
1418
- function Pi() {
1418
+ function Fi() {
1419
1419
  this.__u = 0, this.o = null, this.__b = null;
1420
1420
  }
1421
1421
  function Zn(e) {
@@ -1425,10 +1425,10 @@ function Zn(e) {
1425
1425
  function Hn(e) {
1426
1426
  var i, t, r, n = null;
1427
1427
  function o(s) {
1428
- if (i || (i = e()).then(function(M) {
1429
- M && (n = M.default || M), r = !0;
1430
- }, function(M) {
1431
- t = M, r = !0;
1428
+ if (i || (i = e()).then(function(a) {
1429
+ a && (n = a.default || a), r = !0;
1430
+ }, function(a) {
1431
+ t = a, r = !0;
1432
1432
  }), t) throw t;
1433
1433
  if (!r) throw i;
1434
1434
  return n ? ei(n, s) : null;
@@ -1438,17 +1438,17 @@ function Hn(e) {
1438
1438
  function _i() {
1439
1439
  this.i = null, this.l = null;
1440
1440
  }
1441
- X.unmount = function(e) {
1441
+ $.unmount = function(e) {
1442
1442
  var i = e.__c;
1443
1443
  i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), Kr && Kr(e);
1444
- }, (Pi.prototype = new Ge()).__c = function(e, i) {
1444
+ }, (Fi.prototype = new He()).__c = function(e, i) {
1445
1445
  var t = i.__c, r = this;
1446
1446
  r.o == null && (r.o = []), r.o.push(t);
1447
1447
  var n = Zn(r.__v), o = !1, s = function() {
1448
- o || (o = !0, t.__R = null, n ? n(M) : M());
1448
+ o || (o = !0, t.__R = null, n ? n(a) : a());
1449
1449
  };
1450
1450
  t.__R = s;
1451
- var M = function() {
1451
+ var a = function() {
1452
1452
  if (!--r.__u) {
1453
1453
  if (r.state.__a) {
1454
1454
  var D = r.state.__a;
@@ -1459,9 +1459,9 @@ X.unmount = function(e) {
1459
1459
  }
1460
1460
  };
1461
1461
  r.__u++ || 32 & i.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
1462
- }, Pi.prototype.componentWillUnmount = function() {
1462
+ }, Fi.prototype.componentWillUnmount = function() {
1463
1463
  this.o = [];
1464
- }, Pi.prototype.render = function(e, i) {
1464
+ }, Fi.prototype.render = function(e, i) {
1465
1465
  if (this.__b) {
1466
1466
  if (this.__v.__k) {
1467
1467
  var t = document.createElement("div"), r = this.__v.__k[0].__c;
@@ -1504,7 +1504,7 @@ function Gn(e, i) {
1504
1504
  var t = ei(lM, { __v: e, h: i });
1505
1505
  return t.containerInfo = i, t;
1506
1506
  }
1507
- (_i.prototype = new Ge()).__a = function(e) {
1507
+ (_i.prototype = new He()).__a = function(e) {
1508
1508
  var i = this, t = Zn(i.__v), r = i.l.get(e);
1509
1509
  return r[0]++, function(n) {
1510
1510
  var o = function() {
@@ -1533,14 +1533,14 @@ function $n(e, i, t) {
1533
1533
  function Xn(e, i, t) {
1534
1534
  return Cn(e, i), typeof t == "function" && t(), e ? e.__c : null;
1535
1535
  }
1536
- Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
1537
- Object.defineProperty(Ge.prototype, e, { configurable: !0, get: function() {
1536
+ He.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
1537
+ Object.defineProperty(He.prototype, e, { configurable: !0, get: function() {
1538
1538
  return this["UNSAFE_" + e];
1539
1539
  }, set: function(i) {
1540
1540
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: i });
1541
1541
  } });
1542
1542
  });
1543
- var en = X.event;
1543
+ var en = $.event;
1544
1544
  function IM() {
1545
1545
  }
1546
1546
  function jM() {
@@ -1549,20 +1549,20 @@ function jM() {
1549
1549
  function yM() {
1550
1550
  return this.defaultPrevented;
1551
1551
  }
1552
- X.event = function(e) {
1552
+ $.event = function(e) {
1553
1553
  return en && (e = en(e)), e.persist = IM, e.isPropagationStopped = jM, e.isDefaultPrevented = yM, e.nativeEvent = e;
1554
1554
  };
1555
1555
  var Xt, fM = { enumerable: !1, configurable: !0, get: function() {
1556
1556
  return this.class;
1557
- } }, tn = X.vnode;
1558
- X.vnode = function(e) {
1557
+ } }, tn = $.vnode;
1558
+ $.vnode = function(e) {
1559
1559
  typeof e.type == "string" && (function(i) {
1560
1560
  var t = i.props, r = i.type, n = {}, o = r.indexOf("-") === -1;
1561
1561
  for (var s in t) {
1562
- var M = t[s];
1563
- if (!(s === "value" && "defaultValue" in t && M == null || NM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
1562
+ var a = t[s];
1563
+ if (!(s === "value" && "defaultValue" in t && a == null || NM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
1564
1564
  var D = s.toLowerCase();
1565
- s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : D === "translate" && M === "no" ? M = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" || DM(t.type) ? D === "onfocus" ? s = "onfocusin" : D === "onblur" ? s = "onfocusout" : gM.test(s) && (s = D) : D = s = "oninput" : o && cM.test(s) ? s = s.replace(dM, "-$&").toLowerCase() : M === null && (M = void 0), D === "oninput" && n[s = D] && (s = "oninputCapture"), n[s] = M;
1565
+ s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : D === "translate" && a === "no" ? a = !1 : D[0] === "o" && D[1] === "n" ? D === "ondoubleclick" ? s = "ondblclick" : D !== "onchange" || r !== "input" && r !== "textarea" || DM(t.type) ? D === "onfocus" ? s = "onfocusin" : D === "onblur" ? s = "onfocusout" : gM.test(s) && (s = D) : D = s = "oninput" : o && cM.test(s) ? s = s.replace(dM, "-$&").toLowerCase() : a === null && (a = void 0), D === "oninput" && n[s = D] && (s = "oninputCapture"), n[s] = a;
1566
1566
  }
1567
1567
  }
1568
1568
  r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(t.children).forEach(function(j) {
@@ -1572,33 +1572,33 @@ X.vnode = function(e) {
1572
1572
  })), t.class && !t.className ? (n.class = t.class, Object.defineProperty(n, "className", fM)) : (t.className && !t.class || t.class && t.className) && (n.class = n.className = t.className), i.props = n;
1573
1573
  })(e), e.$$typeof = Jn, tn && tn(e);
1574
1574
  };
1575
- var rn = X.__r;
1576
- X.__r = function(e) {
1575
+ var rn = $.__r;
1576
+ $.__r = function(e) {
1577
1577
  rn && rn(e), Xt = e.__c;
1578
1578
  };
1579
- var nn = X.diffed;
1580
- X.diffed = function(e) {
1579
+ var nn = $.diffed;
1580
+ $.diffed = function(e) {
1581
1581
  nn && nn(e);
1582
1582
  var i = e.props, t = e.__e;
1583
1583
  t != null && e.type === "textarea" && "value" in i && i.value !== t.value && (t.value = i.value == null ? "" : i.value), Xt = null;
1584
1584
  };
1585
1585
  var Kn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
1586
1586
  return Xt.__n[e.__c].props.value;
1587
- }, useCallback: Rt, useContext: Ci, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Gi, useReducer: Dt, useRef: Je, useState: pe, useSyncExternalStore: Zt, useTransition: Jt } } }, AM = "18.3.1";
1587
+ }, useCallback: Rt, useContext: vi, useDebugValue: Ft, useDeferredValue: Gt, useEffect: Fe, useId: Vt, useImperativeHandle: Pt, useInsertionEffect: $t, useLayoutEffect: li, useMemo: Ji, useReducer: Dt, useRef: Ge, useState: pe, useSyncExternalStore: Zt, useTransition: Jt } } }, AM = "18.3.1";
1588
1588
  function qn(e) {
1589
1589
  return ei.bind(null, e);
1590
1590
  }
1591
- function $i(e) {
1591
+ function Xi(e) {
1592
1592
  return !!e && e.$$typeof === Jn;
1593
1593
  }
1594
1594
  function eo(e) {
1595
- return $i(e) && e.type === be;
1595
+ return Xi(e) && e.type === be;
1596
1596
  }
1597
1597
  function io(e) {
1598
1598
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
1599
1599
  }
1600
1600
  function to(e) {
1601
- return $i(e) ? ps.apply(null, arguments) : e;
1601
+ return Xi(e) ? ps.apply(null, arguments) : e;
1602
1602
  }
1603
1603
  function ro(e) {
1604
1604
  return !!e.__k && (Ai(null, e), !0);
@@ -1610,15 +1610,15 @@ var oo = function(e, i) {
1610
1610
  return e(i);
1611
1611
  }, so = function(e, i) {
1612
1612
  return e(i);
1613
- }, Mo = be, ao = $i, re = { useState: pe, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef: Je, useImperativeHandle: Pt, useMemo: Gi, useCallback: Rt, useContext: Ci, useDebugValue: Ft, version: "18.3.1", Children: Vn, render: $n, hydrate: Xn, unmountComponentAtNode: ro, createPortal: Gn, createElement: ei, createContext: Yt, createFactory: qn, cloneElement: to, createRef: hn, Fragment: be, isValidElement: $i, isElement: ao, isFragment: eo, isMemo: io, findDOMNode: no, Component: Ge, PureComponent: lt, memo: Rn, forwardRef: Fn, flushSync: so, unstable_batchedUpdates: oo, StrictMode: Mo, Suspense: Pi, SuspenseList: _i, lazy: Hn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Kn };
1613
+ }, Mo = be, ao = Xi, re = { useState: pe, useId: Vt, useReducer: Dt, useEffect: Fe, useLayoutEffect: li, useInsertionEffect: $t, useTransition: Jt, useDeferredValue: Gt, useSyncExternalStore: Zt, startTransition: Ht, useRef: Ge, useImperativeHandle: Pt, useMemo: Ji, useCallback: Rt, useContext: vi, useDebugValue: Ft, version: "18.3.1", Children: Vn, render: $n, hydrate: Xn, unmountComponentAtNode: ro, createPortal: Gn, createElement: ei, createContext: Yt, createFactory: qn, cloneElement: to, createRef: hn, Fragment: be, isValidElement: Xi, isElement: ao, isFragment: eo, isMemo: io, findDOMNode: no, Component: He, PureComponent: lt, memo: Rn, forwardRef: Fn, flushSync: so, unstable_batchedUpdates: oo, StrictMode: Mo, Suspense: Fi, SuspenseList: _i, lazy: Hn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Kn };
1614
1614
  const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1615
1615
  __proto__: null,
1616
1616
  Children: Vn,
1617
- Component: Ge,
1617
+ Component: He,
1618
1618
  Fragment: be,
1619
1619
  PureComponent: lt,
1620
1620
  StrictMode: Mo,
1621
- Suspense: Pi,
1621
+ Suspense: Fi,
1622
1622
  SuspenseList: _i,
1623
1623
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Kn,
1624
1624
  cloneElement: to,
@@ -1635,7 +1635,7 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1635
1635
  isElement: ao,
1636
1636
  isFragment: eo,
1637
1637
  isMemo: io,
1638
- isValidElement: $i,
1638
+ isValidElement: Xi,
1639
1639
  lazy: Hn,
1640
1640
  memo: Rn,
1641
1641
  render: $n,
@@ -1643,7 +1643,7 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1643
1643
  unmountComponentAtNode: ro,
1644
1644
  unstable_batchedUpdates: oo,
1645
1645
  useCallback: Rt,
1646
- useContext: Ci,
1646
+ useContext: vi,
1647
1647
  useDebugValue: Ft,
1648
1648
  useDeferredValue: Gt,
1649
1649
  useEffect: Fe,
@@ -1652,17 +1652,17 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1652
1652
  useImperativeHandle: Pt,
1653
1653
  useInsertionEffect: $t,
1654
1654
  useLayoutEffect: li,
1655
- useMemo: Gi,
1655
+ useMemo: Ji,
1656
1656
  useReducer: Dt,
1657
- useRef: Je,
1657
+ useRef: Ge,
1658
1658
  useState: pe,
1659
1659
  useSyncExternalStore: Zt,
1660
1660
  useTransition: Jt,
1661
1661
  version: AM
1662
1662
  }, Symbol.toStringTag, { value: "Module" }));
1663
- var Xi = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Ce = (e) => e == null;
1663
+ var Ki = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Ce = (e) => e == null;
1664
1664
  const uo = (e) => typeof e == "object";
1665
- var Ee = (e) => !Ce(e) && !Array.isArray(e) && uo(e) && !fi(e), lo = (e) => Ee(e) && e.target ? Xi(e.target) ? e.target.checked : e.target.value : e, zM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, co = (e, i) => e.has(zM(i)), OM = (e) => {
1665
+ var Ee = (e) => !Ce(e) && !Array.isArray(e) && uo(e) && !fi(e), lo = (e) => Ee(e) && e.target ? Ki(e.target) ? e.target.checked : e.target.value : e, zM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, co = (e, i) => e.has(zM(i)), OM = (e) => {
1666
1666
  const i = e.constructor && e.constructor.prototype;
1667
1667
  return Ee(i) && i.hasOwnProperty("isPrototypeOf");
1668
1668
  }, Kt = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
@@ -1686,26 +1686,26 @@ var yt = (e) => /^\w*$/.test(e), Te = (e) => e === void 0, qt = (e) => Array.isA
1686
1686
  return t;
1687
1687
  const r = (yt(i) ? [i] : er(i)).reduce((n, o) => Ce(n) ? n : n[o], e);
1688
1688
  return Te(r) || r === e ? Te(e[i]) ? t : e[i] : r;
1689
- }, Pe = (e) => typeof e == "boolean", Ne = (e, i, t) => {
1689
+ }, Pe = (e) => typeof e == "boolean", De = (e, i, t) => {
1690
1690
  let r = -1;
1691
1691
  const n = yt(i) ? [i] : er(i), o = n.length, s = o - 1;
1692
1692
  for (; ++r < o; ) {
1693
- const M = n[r];
1693
+ const a = n[r];
1694
1694
  let D = t;
1695
1695
  if (r !== s) {
1696
- const j = e[M];
1696
+ const j = e[a];
1697
1697
  D = Ee(j) || Array.isArray(j) ? j : isNaN(+n[r + 1]) ? {} : [];
1698
1698
  }
1699
- if (M === "__proto__" || M === "constructor" || M === "prototype")
1699
+ if (a === "__proto__" || a === "constructor" || a === "prototype")
1700
1700
  return;
1701
- e[M] = D, e = e[M];
1701
+ e[a] = D, e = e[a];
1702
1702
  }
1703
1703
  };
1704
1704
  const ct = {
1705
1705
  BLUR: "blur",
1706
1706
  FOCUS_OUT: "focusout",
1707
1707
  CHANGE: "change"
1708
- }, Ze = {
1708
+ }, We = {
1709
1709
  onBlur: "onBlur",
1710
1710
  onChange: "onChange",
1711
1711
  onSubmit: "onSubmit",
@@ -1730,14 +1730,14 @@ var No = (e, i, t, r = !0) => {
1730
1730
  Object.defineProperty(n, o, {
1731
1731
  get: () => {
1732
1732
  const s = o;
1733
- return i._proxyFormState[s] !== Ze.all && (i._proxyFormState[s] = !r || Ze.all), t && (t[s] = !0), e[s];
1733
+ return i._proxyFormState[s] !== We.all && (i._proxyFormState[s] = !r || We.all), t && (t[s] = !0), e[s];
1734
1734
  }
1735
1735
  });
1736
1736
  return n;
1737
1737
  };
1738
1738
  const tr = typeof window != "undefined" ? re.useLayoutEffect : re.useEffect;
1739
1739
  function xM(e) {
1740
- const i = ir(), { control: t = i.control, disabled: r, name: n, exact: o } = e || {}, [s, M] = re.useState(t._formState), D = re.useRef({
1740
+ const i = ir(), { control: t = i.control, disabled: r, name: n, exact: o } = e || {}, [s, a] = re.useState(t._formState), D = re.useRef({
1741
1741
  isDirty: !1,
1742
1742
  isLoading: !1,
1743
1743
  dirtyFields: !1,
@@ -1752,7 +1752,7 @@ function xM(e) {
1752
1752
  formState: D.current,
1753
1753
  exact: o,
1754
1754
  callback: (j) => {
1755
- !r && M(O(O({}, t._formState), j));
1755
+ !r && a(z(z({}, t._formState), j));
1756
1756
  }
1757
1757
  }), [n, r, o]), re.useEffect(() => {
1758
1758
  D.current.isValid && t._setValid(!0);
@@ -1775,17 +1775,17 @@ function ni(e, i, t = /* @__PURE__ */ new WeakSet()) {
1775
1775
  if (!n.includes(o))
1776
1776
  return !1;
1777
1777
  if (o !== "ref") {
1778
- const M = i[o];
1779
- if (fi(s) && fi(M) || Ee(s) && Ee(M) || Array.isArray(s) && Array.isArray(M) ? !ni(s, M, t) : s !== M)
1778
+ const a = i[o];
1779
+ if (fi(s) && fi(a) || Ee(s) && Ee(a) || Array.isArray(s) && Array.isArray(a) ? !ni(s, a, t) : s !== a)
1780
1780
  return !1;
1781
1781
  }
1782
1782
  }
1783
1783
  return !0;
1784
1784
  }
1785
1785
  function EM(e) {
1786
- const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, D = re.useRef(n), j = re.useRef(M), A = re.useRef(void 0);
1787
- j.current = M;
1788
- const c = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [a, y] = re.useState(j.current ? j.current(c) : c);
1786
+ const i = ir(), { control: t = i.control, name: r, defaultValue: n, disabled: o, exact: s, compute: a } = e || {}, D = re.useRef(n), j = re.useRef(a), A = re.useRef(void 0);
1787
+ j.current = a;
1788
+ const g = re.useMemo(() => t._getWatch(r, D.current), [t, r]), [M, y] = re.useState(j.current ? j.current(g) : g);
1789
1789
  return tr(() => t._subscribe({
1790
1790
  name: r,
1791
1791
  formState: {
@@ -1796,16 +1796,16 @@ function EM(e) {
1796
1796
  if (!o) {
1797
1797
  const I = Do(r, t._names, N.values || t._formValues, !1, D.current);
1798
1798
  if (j.current) {
1799
- const z = j.current(I);
1800
- ni(z, A.current) || (y(z), A.current = z);
1799
+ const O = j.current(I);
1800
+ ni(O, A.current) || (y(O), A.current = O);
1801
1801
  } else
1802
1802
  y(I);
1803
1803
  }
1804
1804
  }
1805
- }), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()), a;
1805
+ }), [t, o, r, s]), re.useEffect(() => t._removeUnmounted()), M;
1806
1806
  }
1807
1807
  function hM(e) {
1808
- const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, M = co(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]), j = EM({
1808
+ const i = ir(), { name: t, disabled: r, control: n = i.control, shouldUnregister: o, defaultValue: s } = e, a = co(n._names.array, t), D = re.useMemo(() => C(n._formValues, t, C(n._defaultValues, t, s)), [n, t, s]), j = EM({
1809
1809
  control: n,
1810
1810
  name: t,
1811
1811
  defaultValue: D,
@@ -1814,10 +1814,10 @@ function hM(e) {
1814
1814
  control: n,
1815
1815
  name: t,
1816
1816
  exact: !0
1817
- }), c = re.useRef(e), a = re.useRef(void 0), y = re.useRef(n.register(t, O(J(O({}, e.rules), {
1817
+ }), g = re.useRef(e), M = re.useRef(void 0), y = re.useRef(n.register(t, z(H(z({}, e.rules), {
1818
1818
  value: j
1819
1819
  }), Pe(e.disabled) ? { disabled: e.disabled } : {})));
1820
- c.current = e;
1820
+ g.current = e;
1821
1821
  const N = re.useMemo(() => Object.defineProperties({}, {
1822
1822
  invalid: {
1823
1823
  enumerable: !0,
@@ -1839,49 +1839,49 @@ function hM(e) {
1839
1839
  enumerable: !0,
1840
1840
  get: () => C(A.errors, t)
1841
1841
  }
1842
- }), [A, t]), I = re.useCallback((h) => y.current.onChange({
1842
+ }), [A, t]), I = re.useCallback((p) => y.current.onChange({
1843
1843
  target: {
1844
- value: lo(h),
1844
+ value: lo(p),
1845
1845
  name: t
1846
1846
  },
1847
1847
  type: ct.CHANGE
1848
- }), [t]), z = re.useCallback(() => y.current.onBlur({
1848
+ }), [t]), O = re.useCallback(() => y.current.onBlur({
1849
1849
  target: {
1850
1850
  value: C(n._formValues, t),
1851
1851
  name: t
1852
1852
  },
1853
1853
  type: ct.BLUR
1854
- }), [t, n._formValues]), w = re.useCallback((h) => {
1855
- const p = C(n._fields, t);
1856
- p && h && (p._f.ref = {
1857
- focus: () => h.focus && h.focus(),
1858
- select: () => h.select && h.select(),
1859
- setCustomValidity: (k) => h.setCustomValidity(k),
1860
- reportValidity: () => h.reportValidity()
1854
+ }), [t, n._formValues]), w = re.useCallback((p) => {
1855
+ const h = C(n._fields, t);
1856
+ h && p && (h._f.ref = {
1857
+ focus: () => p.focus && p.focus(),
1858
+ select: () => p.select && p.select(),
1859
+ setCustomValidity: (U) => p.setCustomValidity(U),
1860
+ reportValidity: () => p.reportValidity()
1861
1861
  });
1862
- }, [n._fields, t]), _ = re.useMemo(() => J(O({
1862
+ }, [n._fields, t]), _ = re.useMemo(() => H(z({
1863
1863
  name: t,
1864
1864
  value: j
1865
1865
  }, Pe(r) || A.disabled ? { disabled: A.disabled || r } : {}), {
1866
1866
  onChange: I,
1867
- onBlur: z,
1867
+ onBlur: O,
1868
1868
  ref: w
1869
- }), [t, r, A.disabled, I, z, w, j]);
1869
+ }), [t, r, A.disabled, I, O, w, j]);
1870
1870
  return re.useEffect(() => {
1871
- const h = n._options.shouldUnregister || o, p = a.current;
1872
- p && p !== t && !M && n.unregister(p), n.register(t, O(O({}, c.current.rules), Pe(c.current.disabled) ? { disabled: c.current.disabled } : {}));
1873
- const k = (ie, F) => {
1874
- const ae = C(n._fields, ie);
1875
- ae && ae._f && (ae._f.mount = F);
1871
+ const p = n._options.shouldUnregister || o, h = M.current;
1872
+ h && h !== t && !a && n.unregister(h), n.register(t, z(z({}, g.current.rules), Pe(g.current.disabled) ? { disabled: g.current.disabled } : {}));
1873
+ const U = (ee, ue) => {
1874
+ const W = C(n._fields, ee);
1875
+ W && W._f && (W._f.mount = ue);
1876
1876
  };
1877
- if (k(t, !0), h) {
1878
- const ie = me(C(n._options.defaultValues, t, c.current.defaultValue));
1879
- Ne(n._defaultValues, t, ie), Te(C(n._formValues, t)) && Ne(n._formValues, t, ie);
1877
+ if (U(t, !0), p) {
1878
+ const ee = me(C(n._options.defaultValues, t, g.current.defaultValue));
1879
+ De(n._defaultValues, t, ee), Te(C(n._formValues, t)) && De(n._formValues, t, ee);
1880
1880
  }
1881
- return !M && n.register(t), a.current = t, () => {
1882
- (M ? h && !n._state.action : h) ? n.unregister(t) : k(t, !1);
1881
+ return !a && n.register(t), M.current = t, () => {
1882
+ (a ? p && !n._state.action : p) ? n.unregister(t) : U(t, !1);
1883
1883
  };
1884
- }, [t, n, M, o]), re.useEffect(() => {
1884
+ }, [t, n, a, o]), re.useEffect(() => {
1885
1885
  n._setDisabledField({
1886
1886
  disabled: r,
1887
1887
  name: t
@@ -1893,11 +1893,11 @@ function hM(e) {
1893
1893
  }), [_, A, N]);
1894
1894
  }
1895
1895
  const Io = (e) => e.render(hM(e));
1896
- var mM = (e, i, t, r, n) => i ? J(O({}, t[e]), {
1897
- types: J(O({}, t[e] && t[e].types ? t[e].types : {}), {
1896
+ var mM = (e, i, t, r, n) => i ? H(z({}, t[e]), {
1897
+ types: H(z({}, t[e] && t[e].types ? t[e].types : {}), {
1898
1898
  [r]: n || !0
1899
1899
  })
1900
- }) : {}, Ri = (e) => Array.isArray(e) ? e : [e], on = () => {
1900
+ }) : {}, Vi = (e) => Array.isArray(e) ? e : [e], on = () => {
1901
1901
  let e = [];
1902
1902
  return {
1903
1903
  get observers() {
@@ -1929,12 +1929,12 @@ function jo(e, i) {
1929
1929
  }
1930
1930
  return t;
1931
1931
  }
1932
- var Ue = (e) => Ee(e) && !Object.keys(e).length, rr = (e) => e.type === "file", He = (e) => typeof e == "function", gt = (e) => {
1932
+ var Ue = (e) => Ee(e) && !Object.keys(e).length, rr = (e) => e.type === "file", Ze = (e) => typeof e == "function", gt = (e) => {
1933
1933
  if (!Kt)
1934
1934
  return !1;
1935
1935
  const i = e ? e.ownerDocument : 0;
1936
1936
  return e instanceof (i && i.defaultView ? i.defaultView.HTMLElement : HTMLElement);
1937
- }, yo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", wM = (e) => nr(e) || Xi(e), zt = (e) => gt(e) && e.isConnected;
1937
+ }, yo = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", wM = (e) => nr(e) || Ki(e), zt = (e) => gt(e) && e.isConnected;
1938
1938
  function pM(e, i) {
1939
1939
  const t = i.slice(0, -1).length;
1940
1940
  let r = 0;
@@ -1954,7 +1954,7 @@ function xe(e, i) {
1954
1954
  }
1955
1955
  var bM = (e) => {
1956
1956
  for (const i in e)
1957
- if (He(e[i]))
1957
+ if (Ze(e[i]))
1958
1958
  return !0;
1959
1959
  return !1;
1960
1960
  };
@@ -1999,13 +1999,13 @@ var zo = (e) => Array.isArray(e) ? e.reduce((i, t) => t && t.checked && !t.disab
1999
1999
  } : i, an) : an;
2000
2000
  function un(e) {
2001
2001
  const i = e.ref;
2002
- return rr(i) ? i.files : nr(i) ? zo(e.refs).value : yo(i) ? [...i.selectedOptions].map(({ value: t }) => t) : Xi(i) ? Ao(e.refs).value : To(Te(i.value) ? e.ref.value : i.value, e);
2002
+ return rr(i) ? i.files : nr(i) ? zo(e.refs).value : yo(i) ? [...i.selectedOptions].map(({ value: t }) => t) : Ki(i) ? Ao(e.refs).value : To(Te(i.value) ? e.ref.value : i.value, e);
2003
2003
  }
2004
2004
  var SM = (e, i, t, r) => {
2005
2005
  const n = {};
2006
2006
  for (const o of e) {
2007
2007
  const s = C(i, o);
2008
- s && Ne(n, o, s._f);
2008
+ s && De(n, o, s._f);
2009
2009
  }
2010
2010
  return {
2011
2011
  criteriaMode: t,
@@ -2013,28 +2013,28 @@ var SM = (e, i, t, r) => {
2013
2013
  fields: n,
2014
2014
  shouldUseNativeValidation: r
2015
2015
  };
2016
- }, dt = (e) => e instanceof RegExp, ki = (e) => Te(e) ? e : dt(e) ? e.source : Ee(e) ? dt(e.value) ? e.value.source : e.value : e, ln = (e) => ({
2017
- isOnSubmit: !e || e === Ze.onSubmit,
2018
- isOnBlur: e === Ze.onBlur,
2019
- isOnChange: e === Ze.onChange,
2020
- isOnAll: e === Ze.all,
2021
- isOnTouch: e === Ze.onTouched
2016
+ }, dt = (e) => e instanceof RegExp, Ui = (e) => Te(e) ? e : dt(e) ? e.source : Ee(e) ? dt(e.value) ? e.value.source : e.value : e, ln = (e) => ({
2017
+ isOnSubmit: !e || e === We.onSubmit,
2018
+ isOnBlur: e === We.onBlur,
2019
+ isOnChange: e === We.onChange,
2020
+ isOnAll: e === We.all,
2021
+ isOnTouch: e === We.onTouched
2022
2022
  });
2023
2023
  const cn = "AsyncFunction";
2024
- var CM = (e) => !!e && !!e.validate && !!(He(e.validate) && e.validate.constructor.name === cn || Ee(e.validate) && Object.values(e.validate).find((i) => i.constructor.name === cn)), vM = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, i, t) => !t && (i.watchAll || i.watch.has(e) || [...i.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
2025
- const Fi = (e, i, t, r) => {
2024
+ var CM = (e) => !!e && !!e.validate && !!(Ze(e.validate) && e.validate.constructor.name === cn || Ee(e.validate) && Object.values(e.validate).find((i) => i.constructor.name === cn)), vM = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), gn = (e, i, t) => !t && (i.watchAll || i.watch.has(e) || [...i.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
2025
+ const Bi = (e, i, t, r) => {
2026
2026
  for (const o of t || Object.keys(e)) {
2027
2027
  const s = C(e, o);
2028
2028
  if (s) {
2029
- const n = s, { _f: M } = n, D = Di(n, ["_f"]);
2030
- if (M) {
2031
- if (M.refs && M.refs[0] && i(M.refs[0], o) && !r)
2029
+ const n = s, { _f: a } = n, D = Di(n, ["_f"]);
2030
+ if (a) {
2031
+ if (a.refs && a.refs[0] && i(a.refs[0], o) && !r)
2032
2032
  return !0;
2033
- if (M.ref && i(M.ref, M.name) && !r)
2033
+ if (a.ref && i(a.ref, a.name) && !r)
2034
2034
  return !0;
2035
- if (Fi(D, i))
2035
+ if (Bi(D, i))
2036
2036
  break;
2037
- } else if (Ee(D) && Fi(D, i))
2037
+ } else if (Ee(D) && Bi(D, i))
2038
2038
  break;
2039
2039
  }
2040
2040
  }
@@ -2048,18 +2048,18 @@ function dn(e, i, t) {
2048
2048
  };
2049
2049
  const n = t.split(".");
2050
2050
  for (; n.length; ) {
2051
- const o = n.join("."), s = C(i, o), M = C(e, o);
2051
+ const o = n.join("."), s = C(i, o), a = C(e, o);
2052
2052
  if (s && !Array.isArray(s) && t !== o)
2053
2053
  return { name: t };
2054
- if (M && M.type)
2054
+ if (a && a.type)
2055
2055
  return {
2056
2056
  name: o,
2057
- error: M
2057
+ error: a
2058
2058
  };
2059
- if (M && M.root && M.root.type)
2059
+ if (a && a.root && a.root.type)
2060
2060
  return {
2061
2061
  name: `${o}.root`,
2062
- error: M.root
2062
+ error: a.root
2063
2063
  };
2064
2064
  n.pop();
2065
2065
  }
@@ -2070,10 +2070,10 @@ function dn(e, i, t) {
2070
2070
  var LM = (e, i, t, r) => {
2071
2071
  t(e);
2072
2072
  const s = e, { name: n } = s, o = Di(s, ["name"]);
2073
- return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((M) => i[M] === (!r || Ze.all));
2074
- }, kM = (e, i, t) => !e || !i || e === i || Ri(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), UM = (e, i, t, r, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(i || e) : (t ? r.isOnBlur : n.isOnBlur) ? !e : (t ? r.isOnChange : n.isOnChange) ? e : !0, QM = (e, i) => !qt(C(e, i)).length && xe(e, i), YM = (e, i, t) => {
2075
- const r = Ri(C(e, t));
2076
- return Ne(r, "root", i[t]), Ne(e, t, r), e;
2073
+ return Ue(o) || Object.keys(o).length >= Object.keys(i).length || Object.keys(o).find((a) => i[a] === (!r || We.all));
2074
+ }, kM = (e, i, t) => !e || !i || e === i || Vi(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), UM = (e, i, t, r, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(i || e) : (t ? r.isOnBlur : n.isOnBlur) ? !e : (t ? r.isOnChange : n.isOnChange) ? e : !0, QM = (e, i) => !qt(C(e, i)).length && xe(e, i), YM = (e, i, t) => {
2075
+ const r = Vi(C(e, t));
2076
+ return De(r, "root", i[t]), De(e, t, r), e;
2077
2077
  };
2078
2078
  function Nn(e, i, t = "validate") {
2079
2079
  if (Re(e) || Array.isArray(e) && e.every(Re) || Pe(e) && !e)
@@ -2086,88 +2086,88 @@ function Nn(e, i, t = "validate") {
2086
2086
  var wi = (e) => Ee(e) && !dt(e) ? e : {
2087
2087
  value: e,
2088
2088
  message: ""
2089
- }, Dn = (e, i, t, r, n, o) => De(null, null, function* () {
2090
- const { ref: s, refs: M, required: D, maxLength: j, minLength: A, min: c, max: a, pattern: y, validate: N, name: I, valueAsNumber: z, mount: w } = e._f, _ = C(t, I);
2089
+ }, Dn = (e, i, t, r, n, o) => je(null, null, function* () {
2090
+ const { ref: s, refs: a, required: D, maxLength: j, minLength: A, min: g, max: M, pattern: y, validate: N, name: I, valueAsNumber: O, mount: w } = e._f, _ = C(t, I);
2091
2091
  if (!w || i.has(I))
2092
2092
  return {};
2093
- const h = M ? M[0] : s, p = (R) => {
2094
- n && h.reportValidity && (h.setCustomValidity(Pe(R) ? "" : R || ""), h.reportValidity());
2095
- }, k = {}, ie = nr(s), F = Xi(s), ae = ie || F, Y = (z || rr(s)) && Te(s.value) && Te(_) || gt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, H = mM.bind(null, I, r, k), V = (R, $, se, Ie = ti.maxLength, je = ti.minLength) => {
2096
- const Ae = R ? $ : se;
2097
- k[I] = O({
2098
- type: R ? Ie : je,
2093
+ const p = a ? a[0] : s, h = (k) => {
2094
+ n && p.reportValidity && (p.setCustomValidity(Pe(k) ? "" : k || ""), p.reportValidity());
2095
+ }, U = {}, ee = nr(s), ue = Ki(s), W = ee || ue, ne = (O || rr(s)) && Te(s.value) && Te(_) || gt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, Q = mM.bind(null, I, r, U), G = (k, J, ie, Ie = ti.maxLength, Ne = ti.minLength) => {
2096
+ const Ae = k ? J : ie;
2097
+ U[I] = z({
2098
+ type: k ? Ie : Ne,
2099
2099
  message: Ae,
2100
2100
  ref: s
2101
- }, H(R ? Ie : je, Ae));
2101
+ }, Q(k ? Ie : Ne, Ae));
2102
2102
  };
2103
- if (o ? !Array.isArray(_) || !_.length : D && (!ae && (Y || Ce(_)) || Pe(_) && !_ || F && !Ao(M).isValid || ie && !zo(M).isValid)) {
2104
- const { value: R, message: $ } = Re(D) ? { value: !!D, message: D } : wi(D);
2105
- if (R && (k[I] = O({
2103
+ if (o ? !Array.isArray(_) || !_.length : D && (!W && (ne || Ce(_)) || Pe(_) && !_ || ue && !Ao(a).isValid || ee && !zo(a).isValid)) {
2104
+ const { value: k, message: J } = Re(D) ? { value: !!D, message: D } : wi(D);
2105
+ if (k && (U[I] = z({
2106
2106
  type: ti.required,
2107
- message: $,
2108
- ref: h
2109
- }, H(ti.required, $)), !r))
2110
- return p($), k;
2107
+ message: J,
2108
+ ref: p
2109
+ }, Q(ti.required, J)), !r))
2110
+ return h(J), U;
2111
2111
  }
2112
- if (!Y && (!Ce(c) || !Ce(a))) {
2113
- let R, $;
2114
- const se = wi(a), Ie = wi(c);
2112
+ if (!ne && (!Ce(g) || !Ce(M))) {
2113
+ let k, J;
2114
+ const ie = wi(M), Ie = wi(g);
2115
2115
  if (!Ce(_) && !isNaN(_)) {
2116
- const je = s.valueAsNumber || _ && +_;
2117
- Ce(se.value) || (R = je > se.value), Ce(Ie.value) || ($ = je < Ie.value);
2116
+ const Ne = s.valueAsNumber || _ && +_;
2117
+ Ce(ie.value) || (k = Ne > ie.value), Ce(Ie.value) || (J = Ne < Ie.value);
2118
2118
  } else {
2119
- const je = s.valueAsDate || new Date(_), Ae = (G) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + G), Qe = s.type == "time", le = s.type == "week";
2120
- Re(se.value) && _ && (R = Qe ? Ae(_) > Ae(se.value) : le ? _ > se.value : je > new Date(se.value)), Re(Ie.value) && _ && ($ = Qe ? Ae(_) < Ae(Ie.value) : le ? _ < Ie.value : je < new Date(Ie.value));
2119
+ const Ne = s.valueAsDate || new Date(_), Ae = (Z) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Z), Qe = s.type == "time", le = s.type == "week";
2120
+ Re(ie.value) && _ && (k = Qe ? Ae(_) > Ae(ie.value) : le ? _ > ie.value : Ne > new Date(ie.value)), Re(Ie.value) && _ && (J = Qe ? Ae(_) < Ae(Ie.value) : le ? _ < Ie.value : Ne < new Date(Ie.value));
2121
2121
  }
2122
- if ((R || $) && (V(!!R, se.message, Ie.message, ti.max, ti.min), !r))
2123
- return p(k[I].message), k;
2122
+ if ((k || J) && (G(!!k, ie.message, Ie.message, ti.max, ti.min), !r))
2123
+ return h(U[I].message), U;
2124
2124
  }
2125
- if ((j || A) && !Y && (Re(_) || o && Array.isArray(_))) {
2126
- const R = wi(j), $ = wi(A), se = !Ce(R.value) && _.length > +R.value, Ie = !Ce($.value) && _.length < +$.value;
2127
- if ((se || Ie) && (V(se, R.message, $.message), !r))
2128
- return p(k[I].message), k;
2125
+ if ((j || A) && !ne && (Re(_) || o && Array.isArray(_))) {
2126
+ const k = wi(j), J = wi(A), ie = !Ce(k.value) && _.length > +k.value, Ie = !Ce(J.value) && _.length < +J.value;
2127
+ if ((ie || Ie) && (G(ie, k.message, J.message), !r))
2128
+ return h(U[I].message), U;
2129
2129
  }
2130
- if (y && !Y && Re(_)) {
2131
- const { value: R, message: $ } = wi(y);
2132
- if (dt(R) && !_.match(R) && (k[I] = O({
2130
+ if (y && !ne && Re(_)) {
2131
+ const { value: k, message: J } = wi(y);
2132
+ if (dt(k) && !_.match(k) && (U[I] = z({
2133
2133
  type: ti.pattern,
2134
- message: $,
2134
+ message: J,
2135
2135
  ref: s
2136
- }, H(ti.pattern, $)), !r))
2137
- return p($), k;
2136
+ }, Q(ti.pattern, J)), !r))
2137
+ return h(J), U;
2138
2138
  }
2139
2139
  if (N) {
2140
- if (He(N)) {
2141
- const R = yield N(_, t), $ = Nn(R, h);
2142
- if ($ && (k[I] = O(O({}, $), H(ti.validate, $.message)), !r))
2143
- return p($.message), k;
2140
+ if (Ze(N)) {
2141
+ const k = yield N(_, t), J = Nn(k, p);
2142
+ if (J && (U[I] = z(z({}, J), Q(ti.validate, J.message)), !r))
2143
+ return h(J.message), U;
2144
2144
  } else if (Ee(N)) {
2145
- let R = {};
2146
- for (const $ in N) {
2147
- if (!Ue(R) && !r)
2145
+ let k = {};
2146
+ for (const J in N) {
2147
+ if (!Ue(k) && !r)
2148
2148
  break;
2149
- const se = Nn(yield N[$](_, t), h, $);
2150
- se && (R = O(O({}, se), H($, se.message)), p(se.message), r && (k[I] = R));
2149
+ const ie = Nn(yield N[J](_, t), p, J);
2150
+ ie && (k = z(z({}, ie), Q(J, ie.message)), h(ie.message), r && (U[I] = k));
2151
2151
  }
2152
- if (!Ue(R) && (k[I] = O({
2153
- ref: h
2154
- }, R), !r))
2155
- return k;
2152
+ if (!Ue(k) && (U[I] = z({
2153
+ ref: p
2154
+ }, k), !r))
2155
+ return U;
2156
2156
  }
2157
2157
  }
2158
- return p(!0), k;
2158
+ return h(!0), U;
2159
2159
  });
2160
2160
  const PM = {
2161
- mode: Ze.onSubmit,
2162
- reValidateMode: Ze.onChange,
2161
+ mode: We.onSubmit,
2162
+ reValidateMode: We.onChange,
2163
2163
  shouldFocusError: !0
2164
2164
  };
2165
2165
  function RM(e = {}) {
2166
- let i = O(O({}, PM), e), t = {
2166
+ let i = z(z({}, PM), e), t = {
2167
2167
  submitCount: 0,
2168
2168
  isDirty: !1,
2169
2169
  isReady: !1,
2170
- isLoading: He(i.defaultValues),
2170
+ isLoading: Ze(i.defaultValues),
2171
2171
  isValidating: !1,
2172
2172
  isSubmitted: !1,
2173
2173
  isSubmitting: !1,
@@ -2182,7 +2182,7 @@ function RM(e = {}) {
2182
2182
  action: !1,
2183
2183
  mount: !1,
2184
2184
  watch: !1
2185
- }, M = {
2185
+ }, a = {
2186
2186
  mount: /* @__PURE__ */ new Set(),
2187
2187
  disabled: /* @__PURE__ */ new Set(),
2188
2188
  unMount: /* @__PURE__ */ new Set(),
@@ -2198,324 +2198,324 @@ function RM(e = {}) {
2198
2198
  isValid: !1,
2199
2199
  errors: !1
2200
2200
  };
2201
- let c = O({}, A);
2202
- const a = {
2201
+ let g = z({}, A);
2202
+ const M = {
2203
2203
  array: on(),
2204
2204
  state: on()
2205
- }, y = i.criteriaMode === Ze.all, N = (g) => (T) => {
2206
- clearTimeout(j), j = setTimeout(g, T);
2207
- }, I = (g) => De(null, null, function* () {
2208
- if (!i.disabled && (A.isValid || c.isValid || g)) {
2209
- const T = i.resolver ? Ue((yield F()).errors) : yield Y(r, !0);
2210
- T !== t.isValid && a.state.next({
2205
+ }, y = i.criteriaMode === We.all, N = (c) => (T) => {
2206
+ clearTimeout(j), j = setTimeout(c, T);
2207
+ }, I = (c) => je(null, null, function* () {
2208
+ if (!i.disabled && (A.isValid || g.isValid || c)) {
2209
+ const T = i.resolver ? Ue((yield ue()).errors) : yield ne(r, !0);
2210
+ T !== t.isValid && M.state.next({
2211
2211
  isValid: T
2212
2212
  });
2213
2213
  }
2214
- }), z = (g, T) => {
2215
- !i.disabled && (A.isValidating || A.validatingFields || c.isValidating || c.validatingFields) && ((g || Array.from(M.mount)).forEach((E) => {
2216
- E && (T ? Ne(t.validatingFields, E, T) : xe(t.validatingFields, E));
2217
- }), a.state.next({
2214
+ }), O = (c, T) => {
2215
+ !i.disabled && (A.isValidating || A.validatingFields || g.isValidating || g.validatingFields) && ((c || Array.from(a.mount)).forEach((E) => {
2216
+ E && (T ? De(t.validatingFields, E, T) : xe(t.validatingFields, E));
2217
+ }), M.state.next({
2218
2218
  validatingFields: t.validatingFields,
2219
2219
  isValidating: !Ue(t.validatingFields)
2220
2220
  }));
2221
- }, w = (g, T = [], E, v, b = !0, S = !0) => {
2221
+ }, w = (c, T = [], E, v, b = !0, S = !0) => {
2222
2222
  if (v && E && !i.disabled) {
2223
- if (s.action = !0, S && Array.isArray(C(r, g))) {
2224
- const Q = E(C(r, g), v.argA, v.argB);
2225
- b && Ne(r, g, Q);
2223
+ if (s.action = !0, S && Array.isArray(C(r, c))) {
2224
+ const P = E(C(r, c), v.argA, v.argB);
2225
+ b && De(r, c, P);
2226
2226
  }
2227
- if (S && Array.isArray(C(t.errors, g))) {
2228
- const Q = E(C(t.errors, g), v.argA, v.argB);
2229
- b && Ne(t.errors, g, Q), QM(t.errors, g);
2227
+ if (S && Array.isArray(C(t.errors, c))) {
2228
+ const P = E(C(t.errors, c), v.argA, v.argB);
2229
+ b && De(t.errors, c, P), QM(t.errors, c);
2230
2230
  }
2231
- if ((A.touchedFields || c.touchedFields) && S && Array.isArray(C(t.touchedFields, g))) {
2232
- const Q = E(C(t.touchedFields, g), v.argA, v.argB);
2233
- b && Ne(t.touchedFields, g, Q);
2231
+ if ((A.touchedFields || g.touchedFields) && S && Array.isArray(C(t.touchedFields, c))) {
2232
+ const P = E(C(t.touchedFields, c), v.argA, v.argB);
2233
+ b && De(t.touchedFields, c, P);
2234
2234
  }
2235
- (A.dirtyFields || c.dirtyFields) && (t.dirtyFields = pi(n, o)), a.state.next({
2236
- name: g,
2237
- isDirty: V(g, T),
2235
+ (A.dirtyFields || g.dirtyFields) && (t.dirtyFields = pi(n, o)), M.state.next({
2236
+ name: c,
2237
+ isDirty: G(c, T),
2238
2238
  dirtyFields: t.dirtyFields,
2239
2239
  errors: t.errors,
2240
2240
  isValid: t.isValid
2241
2241
  });
2242
2242
  } else
2243
- Ne(o, g, T);
2244
- }, _ = (g, T) => {
2245
- Ne(t.errors, g, T), a.state.next({
2243
+ De(o, c, T);
2244
+ }, _ = (c, T) => {
2245
+ De(t.errors, c, T), M.state.next({
2246
2246
  errors: t.errors
2247
2247
  });
2248
- }, h = (g) => {
2249
- t.errors = g, a.state.next({
2248
+ }, p = (c) => {
2249
+ t.errors = c, M.state.next({
2250
2250
  errors: t.errors,
2251
2251
  isValid: !1
2252
2252
  });
2253
- }, p = (g, T, E, v) => {
2254
- const b = C(r, g);
2253
+ }, h = (c, T, E, v) => {
2254
+ const b = C(r, c);
2255
2255
  if (b) {
2256
- const S = C(o, g, Te(E) ? C(n, g) : E);
2257
- Te(S) || v && v.defaultChecked || T ? Ne(o, g, T ? S : un(b._f)) : se(g, S), s.mount && I();
2256
+ const S = C(o, c, Te(E) ? C(n, c) : E);
2257
+ Te(S) || v && v.defaultChecked || T ? De(o, c, T ? S : un(b._f)) : ie(c, S), s.mount && I();
2258
2258
  }
2259
- }, k = (g, T, E, v, b) => {
2260
- let S = !1, Q = !1;
2261
- const K = {
2262
- name: g
2259
+ }, U = (c, T, E, v, b) => {
2260
+ let S = !1, P = !1;
2261
+ const X = {
2262
+ name: c
2263
2263
  };
2264
2264
  if (!i.disabled) {
2265
2265
  if (!E || v) {
2266
- (A.isDirty || c.isDirty) && (Q = t.isDirty, t.isDirty = K.isDirty = V(), S = Q !== K.isDirty);
2267
- const B = ni(C(n, g), T);
2268
- Q = !!C(t.dirtyFields, g), B ? xe(t.dirtyFields, g) : Ne(t.dirtyFields, g, !0), K.dirtyFields = t.dirtyFields, S = S || (A.dirtyFields || c.dirtyFields) && Q !== !B;
2266
+ (A.isDirty || g.isDirty) && (P = t.isDirty, t.isDirty = X.isDirty = G(), S = P !== X.isDirty);
2267
+ const F = ni(C(n, c), T);
2268
+ P = !!C(t.dirtyFields, c), F ? xe(t.dirtyFields, c) : De(t.dirtyFields, c, !0), X.dirtyFields = t.dirtyFields, S = S || (A.dirtyFields || g.dirtyFields) && P !== !F;
2269
2269
  }
2270
2270
  if (E) {
2271
- const B = C(t.touchedFields, g);
2272
- B || (Ne(t.touchedFields, g, E), K.touchedFields = t.touchedFields, S = S || (A.touchedFields || c.touchedFields) && B !== E);
2271
+ const F = C(t.touchedFields, c);
2272
+ F || (De(t.touchedFields, c, E), X.touchedFields = t.touchedFields, S = S || (A.touchedFields || g.touchedFields) && F !== E);
2273
2273
  }
2274
- S && b && a.state.next(K);
2274
+ S && b && M.state.next(X);
2275
2275
  }
2276
- return S ? K : {};
2277
- }, ie = (g, T, E, v) => {
2278
- const b = C(t.errors, g), S = (A.isValid || c.isValid) && Pe(T) && t.isValid !== T;
2279
- if (i.delayError && E ? (D = N(() => _(g, E)), D(i.delayError)) : (clearTimeout(j), D = null, E ? Ne(t.errors, g, E) : xe(t.errors, g)), (E ? !ni(b, E) : b) || !Ue(v) || S) {
2280
- const Q = J(O(O({}, v), S && Pe(T) ? { isValid: T } : {}), {
2276
+ return S ? X : {};
2277
+ }, ee = (c, T, E, v) => {
2278
+ const b = C(t.errors, c), S = (A.isValid || g.isValid) && Pe(T) && t.isValid !== T;
2279
+ if (i.delayError && E ? (D = N(() => _(c, E)), D(i.delayError)) : (clearTimeout(j), D = null, E ? De(t.errors, c, E) : xe(t.errors, c)), (E ? !ni(b, E) : b) || !Ue(v) || S) {
2280
+ const P = H(z(z({}, v), S && Pe(T) ? { isValid: T } : {}), {
2281
2281
  errors: t.errors,
2282
- name: g
2282
+ name: c
2283
2283
  });
2284
- t = O(O({}, t), Q), a.state.next(Q);
2284
+ t = z(z({}, t), P), M.state.next(P);
2285
2285
  }
2286
- }, F = (g) => De(null, null, function* () {
2287
- z(g, !0);
2288
- const T = yield i.resolver(o, i.context, SM(g || M.mount, r, i.criteriaMode, i.shouldUseNativeValidation));
2289
- return z(g), T;
2290
- }), ae = (g) => De(null, null, function* () {
2291
- const { errors: T } = yield F(g);
2292
- if (g)
2293
- for (const E of g) {
2286
+ }, ue = (c) => je(null, null, function* () {
2287
+ O(c, !0);
2288
+ const T = yield i.resolver(o, i.context, SM(c || a.mount, r, i.criteriaMode, i.shouldUseNativeValidation));
2289
+ return O(c), T;
2290
+ }), W = (c) => je(null, null, function* () {
2291
+ const { errors: T } = yield ue(c);
2292
+ if (c)
2293
+ for (const E of c) {
2294
2294
  const v = C(T, E);
2295
- v ? Ne(t.errors, E, v) : xe(t.errors, E);
2295
+ v ? De(t.errors, E, v) : xe(t.errors, E);
2296
2296
  }
2297
2297
  else
2298
2298
  t.errors = T;
2299
2299
  return T;
2300
- }), Y = (v, b, ...S) => De(null, [v, b, ...S], function* (g, T, E = {
2300
+ }), ne = (v, b, ...S) => je(null, [v, b, ...S], function* (c, T, E = {
2301
2301
  valid: !0
2302
2302
  }) {
2303
- for (const K in g) {
2304
- const B = g[K];
2305
- if (B) {
2306
- const Q = B, { _f: ue } = Q, Se = Di(Q, ["_f"]);
2307
- if (ue) {
2308
- const Z = M.array.has(ue.name), q = B._f && CM(B._f);
2309
- q && A.validatingFields && z([ue.name], !0);
2310
- const P = yield Dn(B, M.disabled, o, y, i.shouldUseNativeValidation && !T, Z);
2311
- if (q && A.validatingFields && z([ue.name]), P[ue.name] && (E.valid = !1, T))
2303
+ for (const X in c) {
2304
+ const F = c[X];
2305
+ if (F) {
2306
+ const P = F, { _f: ae } = P, Se = Di(P, ["_f"]);
2307
+ if (ae) {
2308
+ const B = a.array.has(ae.name), K = F._f && CM(F._f);
2309
+ K && A.validatingFields && O([ae.name], !0);
2310
+ const R = yield Dn(F, a.disabled, o, y, i.shouldUseNativeValidation && !T, B);
2311
+ if (K && A.validatingFields && O([ae.name]), R[ae.name] && (E.valid = !1, T))
2312
2312
  break;
2313
- !T && (C(P, ue.name) ? Z ? YM(t.errors, P, ue.name) : Ne(t.errors, ue.name, P[ue.name]) : xe(t.errors, ue.name));
2313
+ !T && (C(R, ae.name) ? B ? YM(t.errors, R, ae.name) : De(t.errors, ae.name, R[ae.name]) : xe(t.errors, ae.name));
2314
2314
  }
2315
- !Ue(Se) && (yield Y(Se, T, E));
2315
+ !Ue(Se) && (yield ne(Se, T, E));
2316
2316
  }
2317
2317
  }
2318
2318
  return E.valid;
2319
- }), H = () => {
2320
- for (const g of M.unMount) {
2321
- const T = C(r, g);
2322
- T && (T._f.refs ? T._f.refs.every((E) => !zt(E)) : !zt(T._f.ref)) && Ve(g);
2319
+ }), Q = () => {
2320
+ for (const c of a.unMount) {
2321
+ const T = C(r, c);
2322
+ T && (T._f.refs ? T._f.refs.every((E) => !zt(E)) : !zt(T._f.ref)) && Ve(c);
2323
2323
  }
2324
- M.unMount = /* @__PURE__ */ new Set();
2325
- }, V = (g, T) => !i.disabled && (g && T && Ne(o, g, T), !ni(G(), n)), R = (g, T, E) => Do(g, M, O({}, s.mount ? o : Te(T) ? n : Re(g) ? { [g]: T } : T), E, T), $ = (g) => qt(C(s.mount ? o : n, g, i.shouldUnregister ? C(n, g, []) : [])), se = (g, T, E = {}) => {
2326
- const v = C(r, g);
2324
+ a.unMount = /* @__PURE__ */ new Set();
2325
+ }, G = (c, T) => !i.disabled && (c && T && De(o, c, T), !ni(Z(), n)), k = (c, T, E) => Do(c, a, z({}, s.mount ? o : Te(T) ? n : Re(c) ? { [c]: T } : T), E, T), J = (c) => qt(C(s.mount ? o : n, c, i.shouldUnregister ? C(n, c, []) : [])), ie = (c, T, E = {}) => {
2326
+ const v = C(r, c);
2327
2327
  let b = T;
2328
2328
  if (v) {
2329
2329
  const S = v._f;
2330
- S && (!S.disabled && Ne(o, g, To(T, S)), b = gt(S.ref) && Ce(T) ? "" : T, yo(S.ref) ? [...S.ref.options].forEach((Q) => Q.selected = b.includes(Q.value)) : S.refs ? Xi(S.ref) ? S.refs.forEach((Q) => {
2331
- (!Q.defaultChecked || !Q.disabled) && (Array.isArray(b) ? Q.checked = !!b.find((K) => K === Q.value) : Q.checked = b === Q.value || !!b);
2332
- }) : S.refs.forEach((Q) => Q.checked = Q.value === b) : rr(S.ref) ? S.ref.value = "" : (S.ref.value = b, S.ref.type || a.state.next({
2333
- name: g,
2330
+ S && (!S.disabled && De(o, c, To(T, S)), b = gt(S.ref) && Ce(T) ? "" : T, yo(S.ref) ? [...S.ref.options].forEach((P) => P.selected = b.includes(P.value)) : S.refs ? Ki(S.ref) ? S.refs.forEach((P) => {
2331
+ (!P.defaultChecked || !P.disabled) && (Array.isArray(b) ? P.checked = !!b.find((X) => X === P.value) : P.checked = b === P.value || !!b);
2332
+ }) : S.refs.forEach((P) => P.checked = P.value === b) : rr(S.ref) ? S.ref.value = "" : (S.ref.value = b, S.ref.type || M.state.next({
2333
+ name: c,
2334
2334
  values: me(o)
2335
2335
  })));
2336
2336
  }
2337
- (E.shouldDirty || E.shouldTouch) && k(g, b, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && le(g);
2338
- }, Ie = (g, T, E) => {
2337
+ (E.shouldDirty || E.shouldTouch) && U(c, b, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && le(c);
2338
+ }, Ie = (c, T, E) => {
2339
2339
  for (const v in T) {
2340
2340
  if (!T.hasOwnProperty(v))
2341
2341
  return;
2342
- const b = T[v], S = g + "." + v, Q = C(r, S);
2343
- (M.array.has(g) || Ee(b) || Q && !Q._f) && !fi(b) ? Ie(S, b, E) : se(S, b, E);
2342
+ const b = T[v], S = c + "." + v, P = C(r, S);
2343
+ (a.array.has(c) || Ee(b) || P && !P._f) && !fi(b) ? Ie(S, b, E) : ie(S, b, E);
2344
2344
  }
2345
- }, je = (g, T, E = {}) => {
2346
- const v = C(r, g), b = M.array.has(g), S = me(T);
2347
- Ne(o, g, S), b ? (a.array.next({
2348
- name: g,
2345
+ }, Ne = (c, T, E = {}) => {
2346
+ const v = C(r, c), b = a.array.has(c), S = me(T);
2347
+ De(o, c, S), b ? (M.array.next({
2348
+ name: c,
2349
2349
  values: me(o)
2350
- }), (A.isDirty || A.dirtyFields || c.isDirty || c.dirtyFields) && E.shouldDirty && a.state.next({
2351
- name: g,
2350
+ }), (A.isDirty || A.dirtyFields || g.isDirty || g.dirtyFields) && E.shouldDirty && M.state.next({
2351
+ name: c,
2352
2352
  dirtyFields: pi(n, o),
2353
- isDirty: V(g, S)
2354
- })) : v && !v._f && !Ce(S) ? Ie(g, S, E) : se(g, S, E), gn(g, M) && a.state.next(J(O({}, t), { name: g })), a.state.next({
2355
- name: s.mount ? g : void 0,
2353
+ isDirty: G(c, S)
2354
+ })) : v && !v._f && !Ce(S) ? Ie(c, S, E) : ie(c, S, E), gn(c, a) && M.state.next(H(z({}, t), { name: c })), M.state.next({
2355
+ name: s.mount ? c : void 0,
2356
2356
  values: me(o)
2357
2357
  });
2358
- }, Ae = (g) => De(null, null, function* () {
2358
+ }, Ae = (c) => je(null, null, function* () {
2359
2359
  s.mount = !0;
2360
- const T = g.target;
2360
+ const T = c.target;
2361
2361
  let E = T.name, v = !0;
2362
- const b = C(r, E), S = (B) => {
2363
- v = Number.isNaN(B) || fi(B) && isNaN(B.getTime()) || ni(B, C(o, E, B));
2364
- }, Q = ln(i.mode), K = ln(i.reValidateMode);
2362
+ const b = C(r, E), S = (F) => {
2363
+ v = Number.isNaN(F) || fi(F) && isNaN(F.getTime()) || ni(F, C(o, E, F));
2364
+ }, P = ln(i.mode), X = ln(i.reValidateMode);
2365
2365
  if (b) {
2366
- let B, ue;
2367
- const Se = T.type ? un(b._f) : lo(g), Z = g.type === ct.BLUR || g.type === ct.FOCUS_OUT, q = !vM(b._f) && !i.resolver && !C(t.errors, E) && !b._f.deps || UM(Z, C(t.touchedFields, E), t.isSubmitted, K, Q), P = gn(E, M, Z);
2368
- Ne(o, E, Se), Z ? (!T || !T.readOnly) && (b._f.onBlur && b._f.onBlur(g), D && D(0)) : b._f.onChange && b._f.onChange(g);
2369
- const Me = k(E, Se, Z), Le = !Ue(Me) || P;
2370
- if (!Z && a.state.next({
2366
+ let F, ae;
2367
+ const Se = T.type ? un(b._f) : lo(c), B = c.type === ct.BLUR || c.type === ct.FOCUS_OUT, K = !vM(b._f) && !i.resolver && !C(t.errors, E) && !b._f.deps || UM(B, C(t.touchedFields, E), t.isSubmitted, X, P), R = gn(E, a, B);
2368
+ De(o, E, Se), B ? (!T || !T.readOnly) && (b._f.onBlur && b._f.onBlur(c), D && D(0)) : b._f.onChange && b._f.onChange(c);
2369
+ const Me = U(E, Se, B), Le = !Ue(Me) || R;
2370
+ if (!B && M.state.next({
2371
2371
  name: E,
2372
- type: g.type,
2372
+ type: c.type,
2373
2373
  values: me(o)
2374
- }), q)
2375
- return (A.isValid || c.isValid) && (i.mode === "onBlur" ? Z && I() : Z || I()), Le && a.state.next(O({ name: E }, P ? {} : Me));
2376
- if (!Z && P && a.state.next(O({}, t)), i.resolver) {
2377
- const { errors: we } = yield F([E]);
2374
+ }), K)
2375
+ return (A.isValid || g.isValid) && (i.mode === "onBlur" ? B && I() : B || I()), Le && M.state.next(z({ name: E }, R ? {} : Me));
2376
+ if (!B && R && M.state.next(z({}, t)), i.resolver) {
2377
+ const { errors: we } = yield ue([E]);
2378
2378
  if (S(Se), v) {
2379
- const oe = dn(t.errors, r, E), W = dn(we, r, oe.name || E);
2380
- B = W.error, E = W.name, ue = Ue(we);
2379
+ const se = dn(t.errors, r, E), V = dn(we, r, se.name || E);
2380
+ F = V.error, E = V.name, ae = Ue(we);
2381
2381
  }
2382
2382
  } else
2383
- z([E], !0), B = (yield Dn(b, M.disabled, o, y, i.shouldUseNativeValidation))[E], z([E]), S(Se), v && (B ? ue = !1 : (A.isValid || c.isValid) && (ue = yield Y(r, !0)));
2384
- v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps), ie(E, ue, B, Me));
2383
+ O([E], !0), F = (yield Dn(b, a.disabled, o, y, i.shouldUseNativeValidation))[E], O([E]), S(Se), v && (F ? ae = !1 : (A.isValid || g.isValid) && (ae = yield ne(r, !0)));
2384
+ v && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && le(b._f.deps), ee(E, ae, F, Me));
2385
2385
  }
2386
- }), Qe = (g, T) => {
2387
- if (C(t.errors, T) && g.focus)
2388
- return g.focus(), 1;
2389
- }, le = (E, ...v) => De(null, [E, ...v], function* (g, T = {}) {
2386
+ }), Qe = (c, T) => {
2387
+ if (C(t.errors, T) && c.focus)
2388
+ return c.focus(), 1;
2389
+ }, le = (E, ...v) => je(null, [E, ...v], function* (c, T = {}) {
2390
2390
  let b, S;
2391
- const Q = Ri(g);
2391
+ const P = Vi(c);
2392
2392
  if (i.resolver) {
2393
- const K = yield ae(Te(g) ? g : Q);
2394
- b = Ue(K), S = g ? !Q.some((B) => C(K, B)) : b;
2395
- } else g ? (S = (yield Promise.all(Q.map((K) => De(null, null, function* () {
2396
- const B = C(r, K);
2397
- return yield Y(B && B._f ? { [K]: B } : B);
2398
- })))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield Y(r);
2399
- return a.state.next(J(O(O({}, !Re(g) || (A.isValid || c.isValid) && b !== t.isValid ? {} : { name: g }), i.resolver || !g ? { isValid: b } : {}), {
2393
+ const X = yield W(Te(c) ? c : P);
2394
+ b = Ue(X), S = c ? !P.some((F) => C(X, F)) : b;
2395
+ } else c ? (S = (yield Promise.all(P.map((X) => je(null, null, function* () {
2396
+ const F = C(r, X);
2397
+ return yield ne(F && F._f ? { [X]: F } : F);
2398
+ })))).every(Boolean), !(!S && !t.isValid) && I()) : S = b = yield ne(r);
2399
+ return M.state.next(H(z(z({}, !Re(c) || (A.isValid || g.isValid) && b !== t.isValid ? {} : { name: c }), i.resolver || !c ? { isValid: b } : {}), {
2400
2400
  errors: t.errors
2401
- })), T.shouldFocus && !S && Fi(r, Qe, g ? Q : M.mount), S;
2402
- }), G = (g, T) => {
2403
- let E = O({}, s.mount ? o : n);
2404
- return T && (E = jo(T.dirtyFields ? t.dirtyFields : t.touchedFields, E)), Te(g) ? E : Re(g) ? C(E, g) : g.map((v) => C(E, v));
2405
- }, ge = (g, T) => ({
2406
- invalid: !!C((T || t).errors, g),
2407
- isDirty: !!C((T || t).dirtyFields, g),
2408
- error: C((T || t).errors, g),
2409
- isValidating: !!C(t.validatingFields, g),
2410
- isTouched: !!C((T || t).touchedFields, g)
2411
- }), ze = (g) => {
2412
- g && Ri(g).forEach((T) => xe(t.errors, T)), a.state.next({
2413
- errors: g ? t.errors : {}
2401
+ })), T.shouldFocus && !S && Bi(r, Qe, c ? P : a.mount), S;
2402
+ }), Z = (c, T) => {
2403
+ let E = z({}, s.mount ? o : n);
2404
+ return T && (E = jo(T.dirtyFields ? t.dirtyFields : t.touchedFields, E)), Te(c) ? E : Re(c) ? C(E, c) : c.map((v) => C(E, v));
2405
+ }, ge = (c, T) => ({
2406
+ invalid: !!C((T || t).errors, c),
2407
+ isDirty: !!C((T || t).dirtyFields, c),
2408
+ error: C((T || t).errors, c),
2409
+ isValidating: !!C(t.validatingFields, c),
2410
+ isTouched: !!C((T || t).touchedFields, c)
2411
+ }), ze = (c) => {
2412
+ c && Vi(c).forEach((T) => xe(t.errors, T)), M.state.next({
2413
+ errors: c ? t.errors : {}
2414
2414
  });
2415
- }, he = (g, T, E) => {
2416
- const v = (C(r, g, { _f: {} })._f || {}).ref, ue = C(t.errors, g) || {}, { ref: S, message: Q, type: K } = ue, B = Di(ue, ["ref", "message", "type"]);
2417
- Ne(t.errors, g, J(O(O({}, B), T), {
2415
+ }, he = (c, T, E) => {
2416
+ const v = (C(r, c, { _f: {} })._f || {}).ref, ae = C(t.errors, c) || {}, { ref: S, message: P, type: X } = ae, F = Di(ae, ["ref", "message", "type"]);
2417
+ De(t.errors, c, H(z(z({}, F), T), {
2418
2418
  ref: v
2419
- })), a.state.next({
2420
- name: g,
2419
+ })), M.state.next({
2420
+ name: c,
2421
2421
  errors: t.errors,
2422
2422
  isValid: !1
2423
2423
  }), E && E.shouldFocus && v && v.focus && v.focus();
2424
- }, ve = (g, T) => He(g) ? a.state.subscribe({
2425
- next: (E) => "values" in E && g(R(void 0, T), E)
2426
- }) : R(g, T, !0), U = (g) => a.state.subscribe({
2424
+ }, ve = (c, T) => Ze(c) ? M.state.subscribe({
2425
+ next: (E) => "values" in E && c(k(void 0, T), E)
2426
+ }) : k(c, T, !0), Y = (c) => M.state.subscribe({
2427
2427
  next: (T) => {
2428
- kM(g.name, T.name, g.exact) && LM(T, g.formState || A, xi, g.reRenderRoot) && g.callback(J(O(O({
2429
- values: O({}, o)
2428
+ kM(c.name, T.name, c.exact) && LM(T, c.formState || A, xi, c.reRenderRoot) && c.callback(H(z(z({
2429
+ values: z({}, o)
2430
2430
  }, t), T), {
2431
2431
  defaultValues: n
2432
2432
  }));
2433
2433
  }
2434
- }).unsubscribe, ne = (g) => (s.mount = !0, c = O(O({}, c), g.formState), U(J(O({}, g), {
2435
- formState: c
2436
- }))), Ve = (g, T = {}) => {
2437
- for (const E of g ? Ri(g) : M.mount)
2438
- M.mount.delete(E), M.array.delete(E), T.keepValue || (xe(r, E), xe(o, E)), !T.keepError && xe(t.errors, E), !T.keepDirty && xe(t.dirtyFields, E), !T.keepTouched && xe(t.touchedFields, E), !T.keepIsValidating && xe(t.validatingFields, E), !i.shouldUnregister && !T.keepDefaultValue && xe(n, E);
2439
- a.state.next({
2434
+ }).unsubscribe, oe = (c) => (s.mount = !0, g = z(z({}, g), c.formState), Y(H(z({}, c), {
2435
+ formState: g
2436
+ }))), Ve = (c, T = {}) => {
2437
+ for (const E of c ? Vi(c) : a.mount)
2438
+ a.mount.delete(E), a.array.delete(E), T.keepValue || (xe(r, E), xe(o, E)), !T.keepError && xe(t.errors, E), !T.keepDirty && xe(t.dirtyFields, E), !T.keepTouched && xe(t.touchedFields, E), !T.keepIsValidating && xe(t.validatingFields, E), !i.shouldUnregister && !T.keepDefaultValue && xe(n, E);
2439
+ M.state.next({
2440
2440
  values: me(o)
2441
- }), a.state.next(O(O({}, t), T.keepDirty ? { isDirty: V() } : {})), !T.keepIsValid && I();
2442
- }, $e = ({ disabled: g, name: T }) => {
2443
- (Pe(g) && s.mount || g || M.disabled.has(T)) && (g ? M.disabled.add(T) : M.disabled.delete(T));
2444
- }, ii = (g, T = {}) => {
2445
- let E = C(r, g);
2441
+ }), M.state.next(z(z({}, t), T.keepDirty ? { isDirty: G() } : {})), !T.keepIsValid && I();
2442
+ }, Je = ({ disabled: c, name: T }) => {
2443
+ (Pe(c) && s.mount || c || a.disabled.has(T)) && (c ? a.disabled.add(T) : a.disabled.delete(T));
2444
+ }, ii = (c, T = {}) => {
2445
+ let E = C(r, c);
2446
2446
  const v = Pe(T.disabled) || Pe(i.disabled);
2447
- return Ne(r, g, J(O({}, E || {}), {
2448
- _f: O(J(O({}, E && E._f ? E._f : { ref: { name: g } }), {
2449
- name: g,
2447
+ return De(r, c, H(z({}, E || {}), {
2448
+ _f: z(H(z({}, E && E._f ? E._f : { ref: { name: c } }), {
2449
+ name: c,
2450
2450
  mount: !0
2451
2451
  }), T)
2452
- })), M.mount.add(g), E ? $e({
2452
+ })), a.mount.add(c), E ? Je({
2453
2453
  disabled: Pe(T.disabled) ? T.disabled : i.disabled,
2454
- name: g
2455
- }) : p(g, !0, T.value), J(O(O({}, v ? { disabled: T.disabled || i.disabled } : {}), i.progressive ? {
2454
+ name: c
2455
+ }) : h(c, !0, T.value), H(z(z({}, v ? { disabled: T.disabled || i.disabled } : {}), i.progressive ? {
2456
2456
  required: !!T.required,
2457
- min: ki(T.min),
2458
- max: ki(T.max),
2459
- minLength: ki(T.minLength),
2460
- maxLength: ki(T.maxLength),
2461
- pattern: ki(T.pattern)
2457
+ min: Ui(T.min),
2458
+ max: Ui(T.max),
2459
+ minLength: Ui(T.minLength),
2460
+ maxLength: Ui(T.maxLength),
2461
+ pattern: Ui(T.pattern)
2462
2462
  } : {}), {
2463
- name: g,
2463
+ name: c,
2464
2464
  onChange: Ae,
2465
2465
  onBlur: Ae,
2466
2466
  ref: (b) => {
2467
2467
  if (b) {
2468
- ii(g, T), E = C(r, g);
2469
- const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, Q = wM(S), K = E._f.refs || [];
2470
- if (Q ? K.find((B) => B === S) : S === E._f.ref)
2468
+ ii(c, T), E = C(r, c);
2469
+ const S = Te(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, P = wM(S), X = E._f.refs || [];
2470
+ if (P ? X.find((F) => F === S) : S === E._f.ref)
2471
2471
  return;
2472
- Ne(r, g, {
2473
- _f: O(O({}, E._f), Q ? {
2472
+ De(r, c, {
2473
+ _f: z(z({}, E._f), P ? {
2474
2474
  refs: [
2475
- ...K.filter(zt),
2475
+ ...X.filter(zt),
2476
2476
  S,
2477
- ...Array.isArray(C(n, g)) ? [{}] : []
2477
+ ...Array.isArray(C(n, c)) ? [{}] : []
2478
2478
  ],
2479
- ref: { type: S.type, name: g }
2479
+ ref: { type: S.type, name: c }
2480
2480
  } : { ref: S })
2481
- }), p(g, !1, void 0, S);
2481
+ }), h(c, !1, void 0, S);
2482
2482
  } else
2483
- E = C(r, g, {}), E._f && (E._f.mount = !1), (i.shouldUnregister || T.shouldUnregister) && !(co(M.array, g) && s.action) && M.unMount.add(g);
2483
+ E = C(r, c, {}), E._f && (E._f.mount = !1), (i.shouldUnregister || T.shouldUnregister) && !(co(a.array, c) && s.action) && a.unMount.add(c);
2484
2484
  }
2485
2485
  });
2486
- }, Be = () => i.shouldFocusError && Fi(r, Qe, M.mount), gi = (g) => {
2487
- Pe(g) && (a.state.next({ disabled: g }), Fi(r, (T, E) => {
2486
+ }, Be = () => i.shouldFocusError && Bi(r, Qe, a.mount), gi = (c) => {
2487
+ Pe(c) && (M.state.next({ disabled: c }), Bi(r, (T, E) => {
2488
2488
  const v = C(r, E);
2489
- v && (T.disabled = v._f.disabled || g, Array.isArray(v._f.refs) && v._f.refs.forEach((b) => {
2490
- b.disabled = v._f.disabled || g;
2489
+ v && (T.disabled = v._f.disabled || c, Array.isArray(v._f.refs) && v._f.refs.forEach((b) => {
2490
+ b.disabled = v._f.disabled || c;
2491
2491
  }));
2492
2492
  }, 0, !1));
2493
- }, Mi = (g, T) => (E) => De(null, null, function* () {
2493
+ }, Mi = (c, T) => (E) => je(null, null, function* () {
2494
2494
  let v;
2495
2495
  E && (E.preventDefault && E.preventDefault(), E.persist && E.persist());
2496
2496
  let b = me(o);
2497
- if (a.state.next({
2497
+ if (M.state.next({
2498
2498
  isSubmitting: !0
2499
2499
  }), i.resolver) {
2500
- const { errors: S, values: Q } = yield F();
2501
- t.errors = S, b = me(Q);
2500
+ const { errors: S, values: P } = yield ue();
2501
+ t.errors = S, b = me(P);
2502
2502
  } else
2503
- yield Y(r);
2504
- if (M.disabled.size)
2505
- for (const S of M.disabled)
2503
+ yield ne(r);
2504
+ if (a.disabled.size)
2505
+ for (const S of a.disabled)
2506
2506
  xe(b, S);
2507
2507
  if (xe(t.errors, "root"), Ue(t.errors)) {
2508
- a.state.next({
2508
+ M.state.next({
2509
2509
  errors: {}
2510
2510
  });
2511
2511
  try {
2512
- yield g(b, E);
2512
+ yield c(b, E);
2513
2513
  } catch (S) {
2514
2514
  v = S;
2515
2515
  }
2516
2516
  } else
2517
- T && (yield T(O({}, t.errors), E)), Be(), setTimeout(Be);
2518
- if (a.state.next({
2517
+ T && (yield T(z({}, t.errors), E)), Be(), setTimeout(Be);
2518
+ if (M.state.next({
2519
2519
  isSubmitted: !0,
2520
2520
  isSubmitting: !1,
2521
2521
  isSubmitSuccessful: Ue(t.errors) && !v,
@@ -2523,98 +2523,98 @@ function RM(e = {}) {
2523
2523
  errors: t.errors
2524
2524
  }), v)
2525
2525
  throw v;
2526
- }), Oi = (g, T = {}) => {
2527
- C(r, g) && (Te(T.defaultValue) ? je(g, me(C(n, g))) : (je(g, T.defaultValue), Ne(n, g, me(T.defaultValue))), T.keepTouched || xe(t.touchedFields, g), T.keepDirty || (xe(t.dirtyFields, g), t.isDirty = T.defaultValue ? V(g, me(C(n, g))) : V()), T.keepError || (xe(t.errors, g), A.isValid && I()), a.state.next(O({}, t)));
2528
- }, di = (g, T = {}) => {
2529
- const E = g ? me(g) : n, v = me(E), b = Ue(g), S = b ? n : v;
2526
+ }), Oi = (c, T = {}) => {
2527
+ C(r, c) && (Te(T.defaultValue) ? Ne(c, me(C(n, c))) : (Ne(c, T.defaultValue), De(n, c, me(T.defaultValue))), T.keepTouched || xe(t.touchedFields, c), T.keepDirty || (xe(t.dirtyFields, c), t.isDirty = T.defaultValue ? G(c, me(C(n, c))) : G()), T.keepError || (xe(t.errors, c), A.isValid && I()), M.state.next(z({}, t)));
2528
+ }, di = (c, T = {}) => {
2529
+ const E = c ? me(c) : n, v = me(E), b = Ue(c), S = b ? n : v;
2530
2530
  if (T.keepDefaultValues || (n = E), !T.keepValues) {
2531
2531
  if (T.keepDirtyValues) {
2532
- const Q = /* @__PURE__ */ new Set([
2533
- ...M.mount,
2532
+ const P = /* @__PURE__ */ new Set([
2533
+ ...a.mount,
2534
2534
  ...Object.keys(pi(n, o))
2535
2535
  ]);
2536
- for (const K of Array.from(Q))
2537
- C(t.dirtyFields, K) ? Ne(S, K, C(o, K)) : je(K, C(S, K));
2536
+ for (const X of Array.from(P))
2537
+ C(t.dirtyFields, X) ? De(S, X, C(o, X)) : Ne(X, C(S, X));
2538
2538
  } else {
2539
- if (Kt && Te(g))
2540
- for (const Q of M.mount) {
2541
- const K = C(r, Q);
2542
- if (K && K._f) {
2543
- const B = Array.isArray(K._f.refs) ? K._f.refs[0] : K._f.ref;
2544
- if (gt(B)) {
2545
- const ue = B.closest("form");
2546
- if (ue) {
2547
- ue.reset();
2539
+ if (Kt && Te(c))
2540
+ for (const P of a.mount) {
2541
+ const X = C(r, P);
2542
+ if (X && X._f) {
2543
+ const F = Array.isArray(X._f.refs) ? X._f.refs[0] : X._f.ref;
2544
+ if (gt(F)) {
2545
+ const ae = F.closest("form");
2546
+ if (ae) {
2547
+ ae.reset();
2548
2548
  break;
2549
2549
  }
2550
2550
  }
2551
2551
  }
2552
2552
  }
2553
2553
  if (T.keepFieldsRef)
2554
- for (const Q of M.mount)
2555
- je(Q, C(S, Q));
2554
+ for (const P of a.mount)
2555
+ Ne(P, C(S, P));
2556
2556
  else
2557
2557
  r = {};
2558
2558
  }
2559
- o = i.shouldUnregister ? T.keepDefaultValues ? me(n) : {} : me(S), a.array.next({
2560
- values: O({}, S)
2561
- }), a.state.next({
2562
- values: O({}, S)
2559
+ o = i.shouldUnregister ? T.keepDefaultValues ? me(n) : {} : me(S), M.array.next({
2560
+ values: z({}, S)
2561
+ }), M.state.next({
2562
+ values: z({}, S)
2563
2563
  });
2564
2564
  }
2565
- M = {
2566
- mount: T.keepDirtyValues ? M.mount : /* @__PURE__ */ new Set(),
2565
+ a = {
2566
+ mount: T.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
2567
2567
  unMount: /* @__PURE__ */ new Set(),
2568
2568
  array: /* @__PURE__ */ new Set(),
2569
2569
  disabled: /* @__PURE__ */ new Set(),
2570
2570
  watch: /* @__PURE__ */ new Set(),
2571
2571
  watchAll: !1,
2572
2572
  focus: ""
2573
- }, s.mount = !A.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!i.shouldUnregister, a.state.next({
2573
+ }, s.mount = !A.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!i.shouldUnregister, M.state.next({
2574
2574
  submitCount: T.keepSubmitCount ? t.submitCount : 0,
2575
- isDirty: b ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !ni(g, n)),
2575
+ isDirty: b ? !1 : T.keepDirty ? t.isDirty : !!(T.keepDefaultValues && !ni(c, n)),
2576
2576
  isSubmitted: T.keepIsSubmitted ? t.isSubmitted : !1,
2577
- dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? pi(n, o) : t.dirtyFields : T.keepDefaultValues && g ? pi(n, g) : T.keepDirty ? t.dirtyFields : {},
2577
+ dirtyFields: b ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? pi(n, o) : t.dirtyFields : T.keepDefaultValues && c ? pi(n, c) : T.keepDirty ? t.dirtyFields : {},
2578
2578
  touchedFields: T.keepTouched ? t.touchedFields : {},
2579
2579
  errors: T.keepErrors ? t.errors : {},
2580
2580
  isSubmitSuccessful: T.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
2581
2581
  isSubmitting: !1,
2582
2582
  defaultValues: n
2583
2583
  });
2584
- }, ai = (g, T) => di(He(g) ? g(o) : g, T), Ni = (g, T = {}) => {
2585
- const E = C(r, g), v = E && E._f;
2584
+ }, ai = (c, T) => di(Ze(c) ? c(o) : c, T), Ni = (c, T = {}) => {
2585
+ const E = C(r, c), v = E && E._f;
2586
2586
  if (v) {
2587
2587
  const b = v.refs ? v.refs[0] : v.ref;
2588
- b.focus && (b.focus(), T.shouldSelect && He(b.select) && b.select());
2588
+ b.focus && (b.focus(), T.shouldSelect && Ze(b.select) && b.select());
2589
2589
  }
2590
- }, xi = (g) => {
2591
- t = O(O({}, t), g);
2592
- }, Xe = {
2590
+ }, xi = (c) => {
2591
+ t = z(z({}, t), c);
2592
+ }, $e = {
2593
2593
  control: {
2594
2594
  register: ii,
2595
2595
  unregister: Ve,
2596
2596
  getFieldState: ge,
2597
2597
  handleSubmit: Mi,
2598
2598
  setError: he,
2599
- _subscribe: U,
2600
- _runSchema: F,
2599
+ _subscribe: Y,
2600
+ _runSchema: ue,
2601
2601
  _focusError: Be,
2602
- _getWatch: R,
2603
- _getDirty: V,
2602
+ _getWatch: k,
2603
+ _getDirty: G,
2604
2604
  _setValid: I,
2605
2605
  _setFieldArray: w,
2606
- _setDisabledField: $e,
2607
- _setErrors: h,
2608
- _getFieldArray: $,
2606
+ _setDisabledField: Je,
2607
+ _setErrors: p,
2608
+ _getFieldArray: J,
2609
2609
  _reset: di,
2610
- _resetDefaultValues: () => He(i.defaultValues) && i.defaultValues().then((g) => {
2611
- ai(g, i.resetOptions), a.state.next({
2610
+ _resetDefaultValues: () => Ze(i.defaultValues) && i.defaultValues().then((c) => {
2611
+ ai(c, i.resetOptions), M.state.next({
2612
2612
  isLoading: !1
2613
2613
  });
2614
2614
  }),
2615
- _removeUnmounted: H,
2615
+ _removeUnmounted: Q,
2616
2616
  _disableForm: gi,
2617
- _subjects: a,
2617
+ _subjects: M,
2618
2618
  _proxyFormState: A,
2619
2619
  get _fields() {
2620
2620
  return r;
@@ -2625,17 +2625,17 @@ function RM(e = {}) {
2625
2625
  get _state() {
2626
2626
  return s;
2627
2627
  },
2628
- set _state(g) {
2629
- s = g;
2628
+ set _state(c) {
2629
+ s = c;
2630
2630
  },
2631
2631
  get _defaultValues() {
2632
2632
  return n;
2633
2633
  },
2634
2634
  get _names() {
2635
- return M;
2635
+ return a;
2636
2636
  },
2637
- set _names(g) {
2638
- M = g;
2637
+ set _names(c) {
2638
+ a = c;
2639
2639
  },
2640
2640
  get _formState() {
2641
2641
  return t;
@@ -2643,17 +2643,17 @@ function RM(e = {}) {
2643
2643
  get _options() {
2644
2644
  return i;
2645
2645
  },
2646
- set _options(g) {
2647
- i = O(O({}, i), g);
2646
+ set _options(c) {
2647
+ i = z(z({}, i), c);
2648
2648
  }
2649
2649
  },
2650
- subscribe: ne,
2650
+ subscribe: oe,
2651
2651
  trigger: le,
2652
2652
  register: ii,
2653
2653
  handleSubmit: Mi,
2654
2654
  watch: ve,
2655
- setValue: je,
2656
- getValues: G,
2655
+ setValue: Ne,
2656
+ getValues: Z,
2657
2657
  reset: ai,
2658
2658
  resetField: Oi,
2659
2659
  clearErrors: ze,
@@ -2662,15 +2662,15 @@ function RM(e = {}) {
2662
2662
  setFocus: Ni,
2663
2663
  getFieldState: ge
2664
2664
  };
2665
- return J(O({}, Xe), {
2666
- formControl: Xe
2665
+ return H(z({}, $e), {
2666
+ formControl: $e
2667
2667
  });
2668
2668
  }
2669
2669
  function FM(e = {}) {
2670
2670
  const i = re.useRef(void 0), t = re.useRef(void 0), [r, n] = re.useState({
2671
2671
  isDirty: !1,
2672
2672
  isValidating: !1,
2673
- isLoading: He(e.defaultValues),
2673
+ isLoading: Ze(e.defaultValues),
2674
2674
  isSubmitted: !1,
2675
2675
  isSubmitting: !1,
2676
2676
  isSubmitSuccessful: !1,
@@ -2682,29 +2682,29 @@ function FM(e = {}) {
2682
2682
  errors: e.errors || {},
2683
2683
  disabled: e.disabled || !1,
2684
2684
  isReady: !1,
2685
- defaultValues: He(e.defaultValues) ? void 0 : e.defaultValues
2685
+ defaultValues: Ze(e.defaultValues) ? void 0 : e.defaultValues
2686
2686
  });
2687
2687
  if (!i.current)
2688
2688
  if (e.formControl)
2689
- i.current = J(O({}, e.formControl), {
2689
+ i.current = H(z({}, e.formControl), {
2690
2690
  formState: r
2691
- }), e.defaultValues && !He(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
2691
+ }), e.defaultValues && !Ze(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
2692
2692
  else {
2693
- const s = RM(e), { formControl: M } = s, D = Di(s, ["formControl"]);
2694
- i.current = J(O({}, D), {
2693
+ const s = RM(e), { formControl: a } = s, D = Di(s, ["formControl"]);
2694
+ i.current = H(z({}, D), {
2695
2695
  formState: r
2696
2696
  });
2697
2697
  }
2698
2698
  const o = i.current.control;
2699
2699
  return o._options = e, tr(() => {
2700
- const M = o._subscribe({
2700
+ const a = o._subscribe({
2701
2701
  formState: o._proxyFormState,
2702
- callback: () => n(O({}, o._formState)),
2702
+ callback: () => n(z({}, o._formState)),
2703
2703
  reRenderRoot: !0
2704
2704
  });
2705
- return n((D) => J(O({}, D), {
2705
+ return n((D) => H(z({}, D), {
2706
2706
  isReady: !0
2707
- })), o._formState.isReady = !0, M;
2707
+ })), o._formState.isReady = !0, a;
2708
2708
  }, [o]), re.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), re.useEffect(() => {
2709
2709
  e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
2710
2710
  }, [o, e.mode, e.reValidateMode]), re.useEffect(() => {
@@ -2715,20 +2715,20 @@ function FM(e = {}) {
2715
2715
  });
2716
2716
  }, [o, e.shouldUnregister]), re.useEffect(() => {
2717
2717
  if (o._proxyFormState.isDirty) {
2718
- const M = o._getDirty();
2719
- M !== r.isDirty && o._subjects.state.next({
2720
- isDirty: M
2718
+ const a = o._getDirty();
2719
+ a !== r.isDirty && o._subjects.state.next({
2720
+ isDirty: a
2721
2721
  });
2722
2722
  }
2723
2723
  }, [o, r.isDirty]), re.useEffect(() => {
2724
- e.values && !ni(e.values, t.current) ? (o._reset(e.values, O({
2724
+ e.values && !ni(e.values, t.current) ? (o._reset(e.values, z({
2725
2725
  keepFieldsRef: !0
2726
- }, o._options.resetOptions)), t.current = e.values, n((M) => O({}, M))) : o._resetDefaultValues();
2726
+ }, o._options.resetOptions)), t.current = e.values, n((a) => z({}, a))) : o._resetDefaultValues();
2727
2727
  }, [o, e.values]), re.useEffect(() => {
2728
- o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(O({}, o._formState))), o._removeUnmounted();
2728
+ o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(z({}, o._formState))), o._removeUnmounted();
2729
2729
  }), i.current.formState = No(r, o), i.current;
2730
2730
  }
2731
- const vi = (e, i) => {
2731
+ const Li = (e, i) => {
2732
2732
  const t = {};
2733
2733
  return e.forEach((r, n) => {
2734
2734
  if (r.type === Gr.NOT_EMPTY && (t.required = (o) => i && Fs(o) ? r.message : !0), r.type === Gr.REGEX) {
@@ -2751,7 +2751,7 @@ const vi = (e, i) => {
2751
2751
  transition: ".2s",
2752
2752
  flexShrink: 0
2753
2753
  },
2754
- children: i ? /* @__PURE__ */ d(_e, O({}, i)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
2754
+ children: i ? /* @__PURE__ */ d(_e, z({}, i)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
2755
2755
  }
2756
2756
  ), BM = ({
2757
2757
  isChosen: e,
@@ -2768,11 +2768,11 @@ const vi = (e, i) => {
2768
2768
  style: {
2769
2769
  padding: "5px 8px",
2770
2770
  background: ((D, j) => {
2771
- var A, c, a, y, N, I, z, w;
2772
- if (!D && !j) return (c = ee((A = i.layout) == null ? void 0 : A.backgroundColor)) != null ? c : "transparent";
2773
- if (!D && j) return (y = ee((a = i.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? y : "transparent";
2774
- if (D && !j) return (I = ee((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? I : "#F4F4F4";
2775
- if (D && j) return (w = ee((z = i.layoutSelected) == null ? void 0 : z.highlightColor)) != null ? w : "#F4F4F4";
2771
+ var A, g, M, y, N, I, O, w;
2772
+ if (!D && !j) return (g = q((A = i.layout) == null ? void 0 : A.backgroundColor)) != null ? g : "transparent";
2773
+ if (!D && j) return (y = q((M = i.layoutSelected) == null ? void 0 : M.backgroundColor)) != null ? y : "transparent";
2774
+ if (D && !j) return (I = q((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? I : "#F4F4F4";
2775
+ if (D && j) return (w = q((O = i.layoutSelected) == null ? void 0 : O.highlightColor)) != null ? w : "#F4F4F4";
2776
2776
  })(r, e),
2777
2777
  fontSize: 13,
2778
2778
  display: "flex",
@@ -2787,7 +2787,7 @@ const vi = (e, i) => {
2787
2787
  onMouseEnter: n,
2788
2788
  onMouseLeave: o,
2789
2789
  children: [
2790
- /* @__PURE__ */ d(fe, J(O({}, i.layout.title), { text: i.label })),
2790
+ /* @__PURE__ */ d(fe, H(z({}, i.layout.title), { text: i.label })),
2791
2791
  /* @__PURE__ */ d(
2792
2792
  "div",
2793
2793
  {
@@ -2795,7 +2795,7 @@ const vi = (e, i) => {
2795
2795
  display: "flex",
2796
2796
  flexShrink: 0
2797
2797
  },
2798
- children: /* @__PURE__ */ d(_e, O({}, s))
2798
+ children: /* @__PURE__ */ d(_e, z({}, s))
2799
2799
  }
2800
2800
  )
2801
2801
  ]
@@ -2810,43 +2810,43 @@ const vi = (e, i) => {
2810
2810
  value: n,
2811
2811
  onChange: o,
2812
2812
  placeholder: s,
2813
- closeMenuOnSelect: M = !0,
2813
+ closeMenuOnSelect: a = !0,
2814
2814
  onBlur: D,
2815
2815
  parentElementRef: j,
2816
2816
  controlLayout: A,
2817
- pickerLayout: c
2817
+ pickerLayout: g
2818
2818
  }) => {
2819
- var R, $, se, Ie, je, Ae, Qe, le;
2820
- const [a, y] = pe(!1), [N, I] = pe(n), [z, w] = pe("down"), [_, h] = pe(null), p = Je(null), k = Je(null);
2819
+ var k, J, ie, Ie, Ne, Ae, Qe, le;
2820
+ const [M, y] = pe(!1), [N, I] = pe(n), [O, w] = pe("down"), [_, p] = pe(null), h = Ge(null), U = Ge(null);
2821
2821
  li(() => {
2822
- var ve, U, ne;
2823
- if (!a) return;
2824
- const G = (ve = p.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (U = k.current) == null ? void 0 : U.getBoundingClientRect(), ze = (ne = j.current) == null ? void 0 : ne.getBoundingClientRect();
2825
- if (!G || !ge || !ze) return;
2826
- const he = G.bottom + ge.height < ze.bottom;
2822
+ var ve, Y, oe;
2823
+ if (!M) return;
2824
+ const Z = (ve = h.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (Y = U.current) == null ? void 0 : Y.getBoundingClientRect(), ze = (oe = j.current) == null ? void 0 : oe.getBoundingClientRect();
2825
+ if (!Z || !ge || !ze) return;
2826
+ const he = Z.bottom + ge.height < ze.bottom;
2827
2827
  w(he ? "down" : "up");
2828
- }, [a]), Fe(() => {
2828
+ }, [M]), Fe(() => {
2829
2829
  o(N);
2830
2830
  }, [N]);
2831
- const ie = (G) => (ge) => {
2831
+ const ee = (Z) => (ge) => {
2832
2832
  var ze;
2833
- ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && h(null), M && y(!1), I((he) => t ? he.some((U) => U.value === G.value) ? he.filter((U) => U.value !== G.value) : [...he, G] : [G]);
2834
- }, F = () => {
2833
+ ge.stopPropagation(), (ge.type === "touchend" || ((ze = ge.nativeEvent) == null ? void 0 : ze.pointerType) === "touch") && p(null), a && y(!1), I((he) => t ? he.some((Y) => Y.value === Z.value) ? he.filter((Y) => Y.value !== Z.value) : [...he, Z] : [Z]);
2834
+ }, ue = () => {
2835
2835
  D && D(), y(!1);
2836
- }, ae = (G) => (ge) => {
2837
- ge.stopPropagation(), I((ze) => ze.filter((he) => he.value !== G.value));
2838
- }, Y = (G) => {
2839
- G.stopPropagation(), I([]);
2840
- }, H = (R = ee(A == null ? void 0 : A.borderColor)) != null ? R : "#D9D9D9", V = ($ = ee(A == null ? void 0 : A.highlightBorderColor)) != null ? $ : "#7E57C5";
2841
- return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: p, children: /* @__PURE__ */ d(
2836
+ }, W = (Z) => (ge) => {
2837
+ ge.stopPropagation(), I((ze) => ze.filter((he) => he.value !== Z.value));
2838
+ }, ne = (Z) => {
2839
+ Z.stopPropagation(), I([]);
2840
+ }, Q = (k = q(A == null ? void 0 : A.borderColor)) != null ? k : "#D9D9D9", G = (J = q(A == null ? void 0 : A.highlightBorderColor)) != null ? J : "#7E57C5";
2841
+ return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: h, children: /* @__PURE__ */ d(
2842
2842
  "div",
2843
2843
  {
2844
2844
  "data-ui": "gui-select-name-" + e,
2845
2845
  style: {
2846
- backgroundColor: ee(A == null ? void 0 : A.backgroundColor),
2846
+ backgroundColor: q(A == null ? void 0 : A.backgroundColor),
2847
2847
  borderStyle: "solid",
2848
- borderColor: a ? V : H,
2849
- borderWidth: (se = A == null ? void 0 : A.borderWidth) != null ? se : 1,
2848
+ borderColor: M ? G : Q,
2849
+ borderWidth: (ie = A == null ? void 0 : A.borderWidth) != null ? ie : 1,
2850
2850
  borderRadius: (Ie = A == null ? void 0 : A.cornerRadius) != null ? Ie : 8,
2851
2851
  minHeight: "41px",
2852
2852
  position: "relative",
@@ -2858,8 +2858,8 @@ const vi = (e, i) => {
2858
2858
  gap: 10
2859
2859
  },
2860
2860
  tabIndex: 0,
2861
- onBlur: F,
2862
- onClick: () => y(!a),
2861
+ onBlur: ue,
2862
+ onClick: () => y(!M),
2863
2863
  children: [
2864
2864
  /* @__PURE__ */ d(
2865
2865
  "div",
@@ -2884,10 +2884,10 @@ const vi = (e, i) => {
2884
2884
  children: s
2885
2885
  }
2886
2886
  ),
2887
- N.map((G) => {
2888
- var ge, ze, he, ve, U;
2887
+ N.map((Z) => {
2888
+ var ge, ze, he, ve, Y;
2889
2889
  if (t) {
2890
- const ne = A == null ? void 0 : A.chip;
2890
+ const oe = A == null ? void 0 : A.chip;
2891
2891
  return /* @__PURE__ */ d(
2892
2892
  "div",
2893
2893
  {
@@ -2895,17 +2895,17 @@ const vi = (e, i) => {
2895
2895
  padding: "0px 5px",
2896
2896
  display: "flex",
2897
2897
  gap: 8,
2898
- backgroundColor: (ge = ee(ne == null ? void 0 : ne.backgroundColor)) != null ? ge : "#F2F2F2",
2899
- borderRadius: (ze = ne == null ? void 0 : ne.cornerRadius) != null ? ze : 4,
2898
+ backgroundColor: (ge = q(oe == null ? void 0 : oe.backgroundColor)) != null ? ge : "#F2F2F2",
2899
+ borderRadius: (ze = oe == null ? void 0 : oe.cornerRadius) != null ? ze : 4,
2900
2900
  userSelect: "none",
2901
2901
  alignItems: "center"
2902
2902
  },
2903
2903
  children: [
2904
2904
  /* @__PURE__ */ d(
2905
2905
  fe,
2906
- J(O({}, ne == null ? void 0 : ne.title), {
2907
- fontSize: (ve = (he = ne == null ? void 0 : ne.title) == null ? void 0 : he.fontSize) != null ? ve : 13,
2908
- text: G.label
2906
+ H(z({}, oe == null ? void 0 : oe.title), {
2907
+ fontSize: (ve = (he = oe == null ? void 0 : oe.title) == null ? void 0 : he.fontSize) != null ? ve : 13,
2908
+ text: Z.label
2909
2909
  })
2910
2910
  ),
2911
2911
  /* @__PURE__ */ d(
@@ -2918,16 +2918,16 @@ const vi = (e, i) => {
2918
2918
  width: "16px",
2919
2919
  height: "16px"
2920
2920
  },
2921
- onClick: ae(G),
2922
- children: ne != null && ne.removeImage ? /* @__PURE__ */ d(_e, O({}, ne.removeImage)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
2921
+ onClick: W(Z),
2922
+ children: oe != null && oe.removeImage ? /* @__PURE__ */ d(_e, z({}, oe.removeImage)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
2923
2923
  }
2924
2924
  )
2925
2925
  ]
2926
2926
  },
2927
- G.value
2927
+ Z.value
2928
2928
  );
2929
2929
  } else {
2930
- const ne = A == null ? void 0 : A.title;
2930
+ const oe = A == null ? void 0 : A.title;
2931
2931
  return /* @__PURE__ */ d(
2932
2932
  "div",
2933
2933
  {
@@ -2935,9 +2935,9 @@ const vi = (e, i) => {
2935
2935
  display: "flex",
2936
2936
  userSelect: "none"
2937
2937
  },
2938
- children: /* @__PURE__ */ d(fe, J(O({}, ne), { fontSize: (U = ne == null ? void 0 : ne.fontSize) != null ? U : 13, text: G.label }))
2938
+ children: /* @__PURE__ */ d(fe, H(z({}, oe), { fontSize: (Y = oe == null ? void 0 : oe.fontSize) != null ? Y : 13, text: Z.label }))
2939
2939
  },
2940
- G.value
2940
+ Z.value
2941
2941
  );
2942
2942
  }
2943
2943
  })
@@ -2955,8 +2955,8 @@ const vi = (e, i) => {
2955
2955
  height: "16px",
2956
2956
  zIndex: 1
2957
2957
  },
2958
- onClick: Y,
2959
- children: A != null && A.clearButton ? /* @__PURE__ */ d(_e, O({}, A.clearButton)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
2958
+ onClick: ne,
2959
+ children: A != null && A.clearButton ? /* @__PURE__ */ d(_e, z({}, A.clearButton)) : /* @__PURE__ */ d(_e, { imageId: "cross" })
2960
2960
  }
2961
2961
  ) : null,
2962
2962
  r ? /* @__PURE__ */ d(
@@ -2969,23 +2969,23 @@ const vi = (e, i) => {
2969
2969
  }
2970
2970
  }
2971
2971
  ) : null,
2972
- /* @__PURE__ */ d(VM, { isOpen: a, image: A == null ? void 0 : A.expandButton }),
2973
- a && /* @__PURE__ */ d(
2972
+ /* @__PURE__ */ d(VM, { isOpen: M, image: A == null ? void 0 : A.expandButton }),
2973
+ M && /* @__PURE__ */ d(
2974
2974
  "div",
2975
2975
  {
2976
2976
  "data-ui": "gui-custom-select-dropdown-menu",
2977
- ref: k,
2978
- style: J(O({
2977
+ ref: U,
2978
+ style: H(z({
2979
2979
  position: "absolute"
2980
- }, z === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
2980
+ }, O === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
2981
2981
  left: 0,
2982
2982
  border: "1px solid #e8e8e8",
2983
2983
  width: "100%",
2984
- backgroundColor: (je = ee(c == null ? void 0 : c.backgroundColor)) != null ? je : "#ffffff",
2985
- borderRadius: (Ae = c == null ? void 0 : c.cornerRadius) != null ? Ae : 8,
2984
+ backgroundColor: (Ne = q(g == null ? void 0 : g.backgroundColor)) != null ? Ne : "#ffffff",
2985
+ borderRadius: (Ae = g == null ? void 0 : g.cornerRadius) != null ? Ae : 8,
2986
2986
  borderStyle: "solid",
2987
- borderColor: (Qe = ee(c == null ? void 0 : c.borderColor)) != null ? Qe : "#D9D9D9",
2988
- borderWidth: (le = c == null ? void 0 : c.borderWidth) != null ? le : 1,
2987
+ borderColor: (Qe = q(g == null ? void 0 : g.borderColor)) != null ? Qe : "#D9D9D9",
2988
+ borderWidth: (le = g == null ? void 0 : g.borderWidth) != null ? le : 1,
2989
2989
  maxHeight: "500px",
2990
2990
  overflow: "auto",
2991
2991
  zIndex: 2,
@@ -2996,20 +2996,20 @@ const vi = (e, i) => {
2996
2996
  gap: "2px",
2997
2997
  cursor: "default"
2998
2998
  }),
2999
- onClick: (G) => G.stopPropagation(),
3000
- children: i.map((G) => {
3001
- const ge = N.some((ze) => ze.value === G.value);
2999
+ onClick: (Z) => Z.stopPropagation(),
3000
+ children: i.map((Z) => {
3001
+ const ge = N.some((ze) => ze.value === Z.value);
3002
3002
  return /* @__PURE__ */ d(
3003
3003
  BM,
3004
3004
  {
3005
3005
  isChosen: ge,
3006
- option: G,
3007
- onOptionClickCallback: ie,
3008
- isHovered: _ === G.value,
3009
- onHover: () => h(G.value),
3010
- onHoverEnd: () => h(null)
3006
+ option: Z,
3007
+ onOptionClickCallback: ee,
3008
+ isHovered: _ === Z.value,
3009
+ onHover: () => p(Z.value),
3010
+ onHoverEnd: () => p(null)
3011
3011
  },
3012
- G.label
3012
+ Z.label
3013
3013
  );
3014
3014
  })
3015
3015
  }
@@ -3039,7 +3039,7 @@ const vi = (e, i) => {
3039
3039
  boxSizing: "border-box"
3040
3040
  },
3041
3041
  children: [
3042
- i.title && /* @__PURE__ */ d(fe, J(O({}, i.title), { text: t.text, htmlFor: o })),
3042
+ i.title && /* @__PURE__ */ d(fe, H(z({}, i.title), { text: t.text, htmlFor: o })),
3043
3043
  /* @__PURE__ */ d(
3044
3044
  Io,
3045
3045
  {
@@ -3047,10 +3047,10 @@ const vi = (e, i) => {
3047
3047
  control: e,
3048
3048
  rules: {
3049
3049
  required: !!t.required,
3050
- validate: vi(t.validators, !!t.required)
3050
+ validate: Li(t.validators, !!t.required)
3051
3051
  },
3052
3052
  render: ({ field: s }) => {
3053
- const M = n.find((D) => D.value === s.value);
3053
+ const a = n.find((D) => D.value === s.value);
3054
3054
  return /* @__PURE__ */ d(
3055
3055
  Oo,
3056
3056
  {
@@ -3058,7 +3058,7 @@ const vi = (e, i) => {
3058
3058
  placeholder: t.placeholder,
3059
3059
  closeMenuOnSelect: !0,
3060
3060
  name: s.name,
3061
- value: M ? [M] : [],
3061
+ value: a ? [a] : [],
3062
3062
  onChange: (D) => {
3063
3063
  const j = D && Array.isArray(D) && D.length ? D[0].value : null;
3064
3064
  s.onChange(j);
@@ -3098,7 +3098,7 @@ const vi = (e, i) => {
3098
3098
  boxSizing: "border-box"
3099
3099
  },
3100
3100
  children: [
3101
- i.title && /* @__PURE__ */ d(fe, J(O({}, i.title), { text: t.text, htmlFor: o })),
3101
+ i.title && /* @__PURE__ */ d(fe, H(z({}, i.title), { text: t.text, htmlFor: o })),
3102
3102
  /* @__PURE__ */ d(
3103
3103
  Io,
3104
3104
  {
@@ -3106,10 +3106,10 @@ const vi = (e, i) => {
3106
3106
  control: e,
3107
3107
  rules: {
3108
3108
  required: !!t.required,
3109
- validate: vi(t.validators, !!t.required)
3109
+ validate: Li(t.validators, !!t.required)
3110
3110
  },
3111
3111
  render: ({ field: s }) => {
3112
- const M = n.filter((D) => {
3112
+ const a = n.filter((D) => {
3113
3113
  var j;
3114
3114
  return (j = s.value) == null ? void 0 : j.includes(D.value);
3115
3115
  });
@@ -3120,7 +3120,7 @@ const vi = (e, i) => {
3120
3120
  options: n,
3121
3121
  placeholder: t.placeholder,
3122
3122
  closeMenuOnSelect: !1,
3123
- value: M,
3123
+ value: a,
3124
3124
  onChange: (D) => {
3125
3125
  const j = D.map((A) => A.value);
3126
3126
  s.onChange(j);
@@ -3153,17 +3153,17 @@ const vi = (e, i) => {
3153
3153
  register: r,
3154
3154
  watch: n
3155
3155
  }) => {
3156
- const [o, s] = pe(!1), M = xo(), D = String(t.id), A = n(D) === String(e.id), c = i.option, a = i.optionSelected, y = {
3157
- backgroundColor: ee(a == null ? void 0 : a.backgroundColor),
3158
- borderRadius: a.cornerRadius
3156
+ const [o, s] = pe(!1), a = xo(), D = String(t.id), A = n(D) === String(e.id), g = i.option, M = i.optionSelected, y = {
3157
+ backgroundColor: q(M == null ? void 0 : M.backgroundColor),
3158
+ borderRadius: M.cornerRadius
3159
3159
  }, N = {
3160
- backgroundColor: ee(c == null ? void 0 : c.backgroundColor),
3161
- borderRadius: c.cornerRadius
3162
- }, I = o && M ? { filter: `drop-shadow(0 0 1px ${Ji})` } : {};
3160
+ backgroundColor: q(g == null ? void 0 : g.backgroundColor),
3161
+ borderRadius: g.cornerRadius
3162
+ }, I = o && a ? { filter: `drop-shadow(0 0 1px ${$i})` } : {};
3163
3163
  return /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
3164
3164
  "label",
3165
3165
  {
3166
- style: O({
3166
+ style: z({
3167
3167
  display: "flex",
3168
3168
  alignItems: "center",
3169
3169
  alignContent: "center",
@@ -3174,19 +3174,19 @@ const vi = (e, i) => {
3174
3174
  /* @__PURE__ */ d(
3175
3175
  "div",
3176
3176
  {
3177
- style: O({
3177
+ style: z({
3178
3178
  display: "flex",
3179
3179
  alignItems: "center",
3180
3180
  alignContent: "center",
3181
3181
  flexShrink: 0
3182
3182
  }, I),
3183
- children: /* @__PURE__ */ d(_e, O({}, A ? a.image : c.image))
3183
+ children: /* @__PURE__ */ d(_e, z({}, A ? M.image : g.image))
3184
3184
  }
3185
3185
  ),
3186
- /* @__PURE__ */ d(fe, J(O({}, A ? a.title : c.title), { text: e.text })),
3186
+ /* @__PURE__ */ d(fe, H(z({}, A ? M.title : g.title), { text: e.text })),
3187
3187
  /* @__PURE__ */ d(
3188
3188
  "input",
3189
- J(O({
3189
+ H(z({
3190
3190
  style: {
3191
3191
  width: 1,
3192
3192
  height: 1,
@@ -3196,7 +3196,7 @@ const vi = (e, i) => {
3196
3196
  }
3197
3197
  }, r(D, {
3198
3198
  required: !!t.required,
3199
- validate: vi(
3199
+ validate: Li(
3200
3200
  t.validators,
3201
3201
  !!t.required
3202
3202
  )
@@ -3235,7 +3235,7 @@ const vi = (e, i) => {
3235
3235
  padding: 0,
3236
3236
  marginBottom: "16px"
3237
3237
  },
3238
- children: /* @__PURE__ */ d(fe, J(O({}, e.title), { text: r.text }))
3238
+ children: /* @__PURE__ */ d(fe, H(z({}, e.title), { text: r.text }))
3239
3239
  }
3240
3240
  ),
3241
3241
  r.options.map((n) => /* @__PURE__ */ d(
@@ -3258,17 +3258,17 @@ const vi = (e, i) => {
3258
3258
  register: r,
3259
3259
  watch: n
3260
3260
  }) => {
3261
- const [o, s] = pe(!1), M = xo(), D = String(t.id), A = n(D) === String(e.id), c = i.option, a = i.optionSelected, y = {
3262
- borderRadius: c == null ? void 0 : c.cornerRadius,
3263
- background: ee(c == null ? void 0 : c.backgroundColor),
3264
- borderColor: ee(c == null ? void 0 : c.borderColor),
3265
- borderWidth: c == null ? void 0 : c.borderWidth
3261
+ const [o, s] = pe(!1), a = xo(), D = String(t.id), A = n(D) === String(e.id), g = i.option, M = i.optionSelected, y = {
3262
+ borderRadius: g == null ? void 0 : g.cornerRadius,
3263
+ background: q(g == null ? void 0 : g.backgroundColor),
3264
+ borderColor: q(g == null ? void 0 : g.borderColor),
3265
+ borderWidth: g == null ? void 0 : g.borderWidth
3266
3266
  }, N = {
3267
- borderRadius: a == null ? void 0 : a.cornerRadius,
3268
- background: ee(a == null ? void 0 : a.backgroundColor),
3269
- borderColor: ee(a == null ? void 0 : a.borderColor),
3270
- borderWidth: a == null ? void 0 : a.borderWidth
3271
- }, I = o && M ? { outline: `2px solid ${Ji}` } : {};
3267
+ borderRadius: M == null ? void 0 : M.cornerRadius,
3268
+ background: q(M == null ? void 0 : M.backgroundColor),
3269
+ borderColor: q(M == null ? void 0 : M.borderColor),
3270
+ borderWidth: M == null ? void 0 : M.borderWidth
3271
+ }, I = o && a ? { outline: `2px solid ${$i}` } : {};
3272
3272
  return /* @__PURE__ */ d(
3273
3273
  "div",
3274
3274
  {
@@ -3279,7 +3279,7 @@ const vi = (e, i) => {
3279
3279
  children: /* @__PURE__ */ d(
3280
3280
  "label",
3281
3281
  {
3282
- style: O(O({
3282
+ style: z(z({
3283
3283
  width: "100%",
3284
3284
  padding: "8px 16px",
3285
3285
  cursor: "pointer",
@@ -3289,7 +3289,7 @@ const vi = (e, i) => {
3289
3289
  children: [
3290
3290
  /* @__PURE__ */ d(
3291
3291
  "input",
3292
- J(O({
3292
+ H(z({
3293
3293
  style: {
3294
3294
  width: 1,
3295
3295
  height: 1,
@@ -3299,7 +3299,7 @@ const vi = (e, i) => {
3299
3299
  }
3300
3300
  }, r(D, {
3301
3301
  required: !!t.required,
3302
- validate: vi(
3302
+ validate: Li(
3303
3303
  t.validators,
3304
3304
  !!t.required
3305
3305
  )
@@ -3310,7 +3310,7 @@ const vi = (e, i) => {
3310
3310
  onBlur: () => s(!1)
3311
3311
  })
3312
3312
  ),
3313
- /* @__PURE__ */ d(fe, J(O({}, A ? a.title : c.title), { text: e.text }))
3313
+ /* @__PURE__ */ d(fe, H(z({}, A ? M.title : g.title), { text: e.text }))
3314
3314
  ]
3315
3315
  }
3316
3316
  )
@@ -3339,7 +3339,7 @@ const vi = (e, i) => {
3339
3339
  padding: 0,
3340
3340
  marginBottom: "16px"
3341
3341
  },
3342
- children: /* @__PURE__ */ d(fe, J(O({}, e.title), { text: r.text }))
3342
+ children: /* @__PURE__ */ d(fe, H(z({}, e.title), { text: r.text }))
3343
3343
  }
3344
3344
  ),
3345
3345
  /* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((n) => /* @__PURE__ */ d(
@@ -3364,27 +3364,27 @@ const vi = (e, i) => {
3364
3364
  validationBorderColor: o,
3365
3365
  validationBorderWidth: s
3366
3366
  }) => {
3367
- const M = O({
3367
+ const a = z({
3368
3368
  position: "relative",
3369
3369
  flexShrink: 0,
3370
3370
  width: "100%",
3371
3371
  fontWeight: 300,
3372
3372
  lineHeight: "140%",
3373
- backgroundColor: ee(i) || "transparent",
3373
+ backgroundColor: q(i) || "transparent",
3374
3374
  borderRadius: t,
3375
3375
  padding: "16px",
3376
3376
  boxSizing: "border-box",
3377
3377
  height: "auto"
3378
- }, r && O(O({}, ee(o) && {
3378
+ }, r && z(z({}, q(o) && {
3379
3379
  borderColor: o,
3380
3380
  borderStyle: "solid"
3381
3381
  }), s && { borderWidth: s }));
3382
- return /* @__PURE__ */ d("div", { style: M, children: [
3382
+ return /* @__PURE__ */ d("div", { style: a, children: [
3383
3383
  n && /* @__PURE__ */ d(
3384
3384
  "span",
3385
3385
  {
3386
3386
  style: {
3387
- color: ee(o),
3387
+ color: q(o),
3388
3388
  position: "absolute",
3389
3389
  left: "6px",
3390
3390
  top: "18px"
@@ -3394,13 +3394,13 @@ const vi = (e, i) => {
3394
3394
  ),
3395
3395
  e
3396
3396
  ] });
3397
- }, KM = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ d(fe, J(O({}, i), { text: r }), t)) }) : null, qM = ({
3397
+ }, KM = ({ validationErrorsTypes: e, title: i }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([t, r]) => /* @__PURE__ */ d(fe, H(z({}, i), { text: r }), t)) }) : null, qM = ({
3398
3398
  layout: e,
3399
3399
  dataSourceQuestion: i,
3400
3400
  register: t
3401
3401
  }) => {
3402
- var o, s, M, D, j, A, c, a, y, N, I, z, w, _, h, p;
3403
- const r = String(i.id), n = (k) => k ? k === rt.EMAIL ? "email" : k === rt.FREE_TEXT ? "text" : k === rt.NUMBER ? "number" : k === rt.SECURE ? "password" : "text" : "text";
3402
+ var o, s, a, D, j, A, g, M, y, N, I, O, w, _, p, h;
3403
+ const r = String(i.id), n = (U) => U ? U === nt.EMAIL ? "email" : U === nt.FREE_TEXT ? "text" : U === nt.NUMBER ? "number" : U === nt.SECURE ? "password" : "text" : "text";
3404
3404
  return /* @__PURE__ */ d(
3405
3405
  "div",
3406
3406
  {
@@ -3410,30 +3410,30 @@ const vi = (e, i) => {
3410
3410
  gap: "16px"
3411
3411
  },
3412
3412
  children: [
3413
- /* @__PURE__ */ d(fe, J(O({}, e.title), { text: i.text, htmlFor: r })),
3413
+ /* @__PURE__ */ d(fe, H(z({}, e.title), { text: i.text, htmlFor: r })),
3414
3414
  /* @__PURE__ */ d(
3415
3415
  "input",
3416
- J(O({}, t(r, {
3416
+ H(z({}, t(r, {
3417
3417
  required: !!i.required,
3418
- validate: vi(i.validators, !!i.required)
3418
+ validate: Li(i.validators, !!i.required)
3419
3419
  })), {
3420
3420
  id: r,
3421
3421
  type: n((o = e.textField) == null ? void 0 : o.inputType),
3422
3422
  style: {
3423
- fontFamily: (M = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontName) != null ? M : "sans-serif",
3423
+ fontFamily: (a = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontName) != null ? a : "sans-serif",
3424
3424
  fontSize: (j = (D = e == null ? void 0 : e.textField) == null ? void 0 : D.fontSize) != null ? j : 15,
3425
- color: (c = ee((A = e == null ? void 0 : e.textField) == null ? void 0 : A.fontColor)) != null ? c : "#000000",
3425
+ color: (g = q((A = e == null ? void 0 : e.textField) == null ? void 0 : A.fontColor)) != null ? g : "#000000",
3426
3426
  height: "42px",
3427
- borderWidth: (y = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.borderWidth) != null ? y : 1,
3428
- borderColor: (I = ee((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? I : "#d9d9d9",
3427
+ borderWidth: (y = (M = e == null ? void 0 : e.textField) == null ? void 0 : M.borderWidth) != null ? y : 1,
3428
+ borderColor: (I = q((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? I : "#d9d9d9",
3429
3429
  borderStyle: "solid",
3430
- borderRadius: (w = (z = e == null ? void 0 : e.textField) == null ? void 0 : z.cornerRadius) != null ? w : 8,
3430
+ borderRadius: (w = (O = e == null ? void 0 : e.textField) == null ? void 0 : O.cornerRadius) != null ? w : 8,
3431
3431
  padding: "11px",
3432
3432
  boxSizing: "border-box",
3433
- backgroundColor: (h = ee((_ = e == null ? void 0 : e.textField) == null ? void 0 : _.backgroundColor)) != null ? h : "#FFFFFF",
3434
- outlineColor: Ji
3433
+ backgroundColor: (p = q((_ = e == null ? void 0 : e.textField) == null ? void 0 : _.backgroundColor)) != null ? p : "#FFFFFF",
3434
+ outlineColor: $i
3435
3435
  },
3436
- placeholder: (p = i.placeholder) != null ? p : "",
3436
+ placeholder: (h = i.placeholder) != null ? h : "",
3437
3437
  "data-id": r
3438
3438
  })
3439
3439
  )
@@ -3445,7 +3445,7 @@ const vi = (e, i) => {
3445
3445
  dataSourceQuestion: i,
3446
3446
  register: t
3447
3447
  }) => {
3448
- var n, o, s, M, D, j, A, c, a, y, N, I, z;
3448
+ var n, o, s, a, D, j, A, g, M, y, N, I, O;
3449
3449
  const r = String(i.id);
3450
3450
  return /* @__PURE__ */ d(
3451
3451
  "div",
@@ -3456,12 +3456,12 @@ const vi = (e, i) => {
3456
3456
  gap: "16px"
3457
3457
  },
3458
3458
  children: [
3459
- /* @__PURE__ */ d(fe, J(O({}, e.title), { text: i.text, htmlFor: r })),
3459
+ /* @__PURE__ */ d(fe, H(z({}, e.title), { text: i.text, htmlFor: r })),
3460
3460
  /* @__PURE__ */ d(
3461
3461
  "textarea",
3462
- J(O({}, t(r, {
3462
+ H(z({}, t(r, {
3463
3463
  required: !!i.required,
3464
- validate: vi(i.validators, !!i.required)
3464
+ validate: Li(i.validators, !!i.required)
3465
3465
  })), {
3466
3466
  id: r,
3467
3467
  placeholder: (n = i.placeholder) != null ? n : "",
@@ -3472,19 +3472,19 @@ const vi = (e, i) => {
3472
3472
  style: {
3473
3473
  fontFamily: "sans-serif",
3474
3474
  fontSize: (s = (o = e == null ? void 0 : e.textField) == null ? void 0 : o.fontSize) != null ? s : 15,
3475
- color: (D = ee((M = e == null ? void 0 : e.textField) == null ? void 0 : M.fontColor)) != null ? D : "#000000",
3475
+ color: (D = q((a = e == null ? void 0 : e.textField) == null ? void 0 : a.fontColor)) != null ? D : "#000000",
3476
3476
  resize: "none",
3477
3477
  overflow: "hidden",
3478
3478
  height: "42px",
3479
3479
  minHeight: "42px",
3480
3480
  borderWidth: (A = (j = e == null ? void 0 : e.textField) == null ? void 0 : j.borderWidth) != null ? A : 1,
3481
- borderColor: (a = ee((c = e == null ? void 0 : e.textField) == null ? void 0 : c.borderColor)) != null ? a : "#d9d9d9",
3481
+ borderColor: (M = q((g = e == null ? void 0 : e.textField) == null ? void 0 : g.borderColor)) != null ? M : "#d9d9d9",
3482
3482
  borderStyle: "solid",
3483
3483
  borderRadius: (N = (y = e == null ? void 0 : e.textField) == null ? void 0 : y.cornerRadius) != null ? N : 8,
3484
3484
  padding: "11px",
3485
3485
  boxSizing: "border-box",
3486
- backgroundColor: (z = ee((I = e == null ? void 0 : e.textField) == null ? void 0 : I.backgroundColor)) != null ? z : "#FFFFFF",
3487
- outlineColor: Ji
3486
+ backgroundColor: (O = q((I = e == null ? void 0 : e.textField) == null ? void 0 : I.backgroundColor)) != null ? O : "#FFFFFF",
3487
+ outlineColor: $i
3488
3488
  }
3489
3489
  })
3490
3490
  )
@@ -3498,7 +3498,7 @@ const vi = (e, i) => {
3498
3498
  underlyingError: r,
3499
3499
  underlyingBaseError: n
3500
3500
  }) {
3501
- const o = yi.getErrorKey(i, at);
3501
+ const o = yi.getErrorKey(i, Ri);
3502
3502
  super({
3503
3503
  errorCode: i,
3504
3504
  errorCodeKey: o,
@@ -3512,21 +3512,37 @@ const vi = (e, i) => {
3512
3512
  });
3513
3513
  }
3514
3514
  };
3515
- ri.MODULE = Mt, ri.ERROR_ENUM_NAME = "GuiModuleError", ri.SHORT_CODE = "GM";
3516
- let Wi = ri;
3517
- const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: M }) => {
3518
- const D = Nt.FORM, { perform: j } = zi(), A = s ? Vs(o.questions, s) : {}, c = Je(null), {
3519
- register: a,
3515
+ ri.MODULE = at, ri.ERROR_ENUM_NAME = "GuiModuleError", ri.SHORT_CODE = "GM";
3516
+ let bi = ri;
3517
+ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: a }) => {
3518
+ var p;
3519
+ const D = Nt.FORM, { perform: j } = zi();
3520
+ if (!o || (o == null ? void 0 : o.questions.length) === 0) {
3521
+ const h = new bi({
3522
+ errorCode: Ri.DECODING_FAILED,
3523
+ message: "No dataSource or no data for questions in the dataSource"
3524
+ });
3525
+ return j(h), null;
3526
+ }
3527
+ if (!(n != null && n.itemTypes) || Array.isArray(n == null ? void 0 : n.itemTypes) && ((p = n == null ? void 0 : n.itemTypes) == null ? void 0 : p.length) === 0) {
3528
+ const h = new bi({
3529
+ errorCode: Ri.DECODING_FAILED,
3530
+ message: "No questions in the itemTypes field or itemTypes is not an array"
3531
+ });
3532
+ return j(h), null;
3533
+ }
3534
+ const A = s ? Vs(o.questions, s) : {}, g = Ge(null), {
3535
+ register: M,
3520
3536
  handleSubmit: y,
3521
3537
  formState: { errors: N },
3522
3538
  reset: I,
3523
- watch: z,
3539
+ watch: O,
3524
3540
  control: w
3525
3541
  } = FM({
3526
3542
  criteriaMode: "all",
3527
3543
  defaultValues: A
3528
3544
  });
3529
- return /* @__PURE__ */ d(ci, { header: e, footer: r, backgroundColor: M, children: /* @__PURE__ */ d(
3545
+ return /* @__PURE__ */ d(ci, { header: e, footer: r, backgroundColor: a, children: /* @__PURE__ */ d(
3530
3546
  "form",
3531
3547
  {
3532
3548
  onSubmit: y((h) => {
@@ -3556,12 +3572,12 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
3556
3572
  width: "100%",
3557
3573
  overflow: "auto",
3558
3574
  position: "relative",
3559
- backgroundColor: ee(n == null ? void 0 : n.backgroundColor) || "transparent"
3575
+ backgroundColor: q(n == null ? void 0 : n.backgroundColor) || "transparent"
3560
3576
  },
3561
- ref: c,
3577
+ ref: g,
3562
3578
  children: [
3563
3579
  i && /** Screen title */
3564
- /* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe, O({}, i)) }),
3580
+ /* @__PURE__ */ d("div", { style: { lineHeight: "39.2px", width: "100%" }, children: /* @__PURE__ */ d(fe, z({}, i)) }),
3565
3581
  /* @__PURE__ */ d(
3566
3582
  "div",
3567
3583
  {
@@ -3569,94 +3585,94 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
3569
3585
  part: "gui-questions",
3570
3586
  style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
3571
3587
  children: o.questions.map((h) => {
3572
- var H;
3573
- const p = o.static, k = (V, R) => R.find(($) => {
3574
- var se;
3575
- if ((se = $.questionIds) != null && se.length)
3576
- return $.questionIds.find((Ie) => V === Ie);
3577
- }), ie = (V, R) => R.find(($) => !$.questionIds && $.answerType === V), F = p ? k(String(h.id), n.itemTypes) || ie(h.answerType, n.itemTypes) : n.itemTypes.find((V) => V.answerType === h.answerType);
3578
- if (!F) {
3579
- const V = new Wi({
3580
- errorCode: at.DECODING_FAILED,
3588
+ var G;
3589
+ const U = o.static, ee = (k, J) => J.find((ie) => {
3590
+ var Ie;
3591
+ if ((Ie = ie.questionIds) != null && Ie.length)
3592
+ return ie.questionIds.find((Ne) => k === Ne);
3593
+ }), ue = (k, J) => J.find((ie) => !ie.questionIds && ie.answerType === k), W = U ? ee(String(h.id), n.itemTypes) || ue(h.answerType, n.itemTypes) : n.itemTypes.find((k) => k.answerType === h.answerType);
3594
+ if (!W) {
3595
+ const k = new bi({
3596
+ errorCode: Ri.DECODING_FAILED,
3581
3597
  message: "The question template has not been found"
3582
3598
  });
3583
- j(V);
3599
+ j(k);
3584
3600
  return;
3585
3601
  }
3586
- const ae = F == null ? void 0 : F.displayType, Y = h.id in N && ((H = N[h.id]) == null ? void 0 : H.types);
3602
+ const ne = W == null ? void 0 : W.displayType, Q = h.id in N && ((G = N[h.id]) == null ? void 0 : G.types);
3587
3603
  return (
3588
3604
  /** Question */
3589
3605
  /* @__PURE__ */ d(be, { children: [
3590
3606
  /* @__PURE__ */ d(
3591
3607
  XM,
3592
3608
  {
3593
- backgroundColor: F == null ? void 0 : F.backgroundColor,
3594
- cornerRadius: F == null ? void 0 : F.cornerRadius,
3595
- isError: !!Y,
3609
+ backgroundColor: W == null ? void 0 : W.backgroundColor,
3610
+ cornerRadius: W == null ? void 0 : W.cornerRadius,
3611
+ isError: !!Q,
3596
3612
  isRequired: h.required,
3597
- validationBorderColor: F == null ? void 0 : F.validationBorderColor,
3598
- validationBorderWidth: F == null ? void 0 : F.validationBorderWidth,
3613
+ validationBorderColor: W == null ? void 0 : W.validationBorderColor,
3614
+ validationBorderWidth: W == null ? void 0 : W.validationBorderWidth,
3599
3615
  children: [
3600
- ae === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
3616
+ ne === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
3601
3617
  ea,
3602
3618
  {
3603
- layout: F,
3619
+ layout: W,
3604
3620
  dataSourceQuestion: h,
3605
- register: a
3621
+ register: M
3606
3622
  }
3607
3623
  ),
3608
- ae === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
3624
+ ne === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
3609
3625
  qM,
3610
3626
  {
3611
- layout: F,
3627
+ layout: W,
3612
3628
  dataSourceQuestion: h,
3613
- register: a
3629
+ register: M
3614
3630
  }
3615
3631
  ),
3616
- ae === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
3632
+ ne === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
3617
3633
  GM,
3618
3634
  {
3619
- layout: F,
3635
+ layout: W,
3620
3636
  dataSourceQuestion: h,
3621
- watch: z,
3622
- register: a
3637
+ watch: O,
3638
+ register: M
3623
3639
  }
3624
3640
  ),
3625
- ae === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
3641
+ ne === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
3626
3642
  $M,
3627
3643
  {
3628
- layout: F,
3644
+ layout: W,
3629
3645
  dataSourceQuestion: h,
3630
- watch: z,
3631
- register: a
3646
+ watch: O,
3647
+ register: M
3632
3648
  }
3633
3649
  ),
3634
- ae === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
3650
+ ne === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
3635
3651
  WM,
3636
3652
  {
3637
3653
  control: w,
3638
- layout: F,
3654
+ layout: W,
3639
3655
  dataSourceQuestion: h,
3640
- parentElementRef: c
3656
+ parentElementRef: g
3641
3657
  }
3642
3658
  ),
3643
- ae === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
3659
+ ne === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
3644
3660
  ZM,
3645
3661
  {
3646
3662
  control: w,
3647
- layout: F,
3663
+ layout: W,
3648
3664
  dataSourceQuestion: h,
3649
- parentElementRef: c
3665
+ parentElementRef: g
3650
3666
  }
3651
3667
  )
3652
3668
  ]
3653
3669
  }
3654
3670
  ),
3655
- Y && /* @__PURE__ */ d(
3671
+ Q && /* @__PURE__ */ d(
3656
3672
  KM,
3657
3673
  {
3658
- validationErrorsTypes: Y,
3659
- title: F.validationMessage
3674
+ validationErrorsTypes: Q,
3675
+ title: W.validationMessage
3660
3676
  }
3661
3677
  )
3662
3678
  ] }, h.id)
@@ -3682,7 +3698,7 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
3682
3698
  alignItems: "flex-end",
3683
3699
  padding: "2px"
3684
3700
  },
3685
- children: t.map((h, p) => /* @__PURE__ */ d(ut, O({ dataTestId: "question-button" }, h), p))
3701
+ children: t.map((h, U) => /* @__PURE__ */ d(ut, z({ dataTestId: "question-button" }, h), U))
3686
3702
  }
3687
3703
  )
3688
3704
  ]
@@ -3719,14 +3735,14 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
3719
3735
  backgroundColor: r,
3720
3736
  selectionLimit: n
3721
3737
  }) => {
3722
- var A, c;
3723
- const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
3738
+ var A, g;
3739
+ const { perform: o } = zi(), s = Ge(null), a = typeof n == "number" && (n === 0 || n > 1), D = (M) => je(null, null, function* () {
3724
3740
  var N;
3725
- const y = Array.from((N = a.currentTarget.files) != null ? N : []);
3741
+ const y = Array.from((N = M.currentTarget.files) != null ? N : []);
3726
3742
  if (y.length)
3727
3743
  try {
3728
- const z = (yield Promise.allSettled(
3729
- y.map((w) => De(null, null, function* () {
3744
+ const O = (yield Promise.allSettled(
3745
+ y.map((w) => je(null, null, function* () {
3730
3746
  return {
3731
3747
  content: yield Qn(w),
3732
3748
  metadata: {
@@ -3743,34 +3759,34 @@ const ia = ({ header: e, title: i, buttons: t, footer: r, questions: n, dataSour
3743
3759
  o({
3744
3760
  cancel: !1,
3745
3761
  permissionDenied: !1,
3746
- files: z
3762
+ files: O
3747
3763
  });
3748
3764
  } catch (I) {
3749
3765
  console.error("Error: ", I);
3750
3766
  }
3751
3767
  }), j = () => {
3752
- var a;
3753
- (a = s.current) == null || a.showPicker();
3768
+ var M;
3769
+ (M = s.current) == null || M.showPicker();
3754
3770
  };
3755
3771
  return /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: r, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
3756
3772
  "div",
3757
3773
  {
3758
- style: J(O({}, na), {
3774
+ style: H(z({}, na), {
3759
3775
  justifyContent: "center"
3760
3776
  }),
3761
3777
  children: [
3762
3778
  /* @__PURE__ */ d(
3763
3779
  "input",
3764
- J(O({
3780
+ H(z({
3765
3781
  style: ta,
3766
3782
  ref: s,
3767
3783
  type: "file",
3768
3784
  accept: "image/*"
3769
- }, M ? { multiple: !0 } : {}), {
3785
+ }, a ? { multiple: !0 } : {}), {
3770
3786
  onInput: D
3771
3787
  })
3772
3788
  ),
3773
- /* @__PURE__ */ d("button", { style: ra, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (A = t == null ? void 0 : t[0]) == null ? void 0 : A.image) == null ? void 0 : c.imageId }) })
3789
+ /* @__PURE__ */ d("button", { style: ra, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (g = (A = t == null ? void 0 : t[0]) == null ? void 0 : A.image) == null ? void 0 : g.imageId }) })
3774
3790
  ]
3775
3791
  }
3776
3792
  ) }) });
@@ -3801,88 +3817,88 @@ function sa(e) {
3801
3817
  }
3802
3818
  var L = {};
3803
3819
  const Ma = /* @__PURE__ */ sa(TM);
3804
- var Qi = { exports: {} }, aa = Qi.exports, In;
3820
+ var Yi = { exports: {} }, aa = Yi.exports, In;
3805
3821
  function ua() {
3806
3822
  return In || (In = 1, (function(e, i) {
3807
3823
  (function(t, r) {
3808
- var n = "1.0.41", o = "", s = "?", M = "function", D = "undefined", j = "object", A = "string", c = "major", a = "model", y = "name", N = "type", I = "vendor", z = "version", w = "architecture", _ = "console", h = "mobile", p = "tablet", k = "smarttv", ie = "wearable", F = "embedded", ae = 500, Y = "Amazon", H = "Apple", V = "ASUS", R = "BlackBerry", $ = "Browser", se = "Chrome", Ie = "Edge", je = "Firefox", Ae = "Google", Qe = "Honor", le = "Huawei", G = "Lenovo", ge = "LG", ze = "Microsoft", he = "Motorola", ve = "Nvidia", U = "OnePlus", ne = "Opera", Ve = "OPPO", $e = "Samsung", ii = "Sharp", Be = "Sony", gi = "Xiaomi", Mi = "Zebra", Oi = "Facebook", di = "Chromium OS", ai = "Mac OS", Ni = " Browser", xi = function(Z, q) {
3809
- var P = {};
3810
- for (var Me in Z)
3811
- q[Me] && q[Me].length % 2 === 0 ? P[Me] = q[Me].concat(Z[Me]) : P[Me] = Z[Me];
3812
- return P;
3813
- }, ui = function(Z) {
3814
- for (var q = {}, P = 0; P < Z.length; P++)
3815
- q[Z[P].toUpperCase()] = Z[P];
3816
- return q;
3817
- }, Xe = function(Z, q) {
3818
- return typeof Z === A ? g(q).indexOf(g(Z)) !== -1 : !1;
3819
- }, g = function(Z) {
3820
- return Z.toLowerCase();
3821
- }, T = function(Z) {
3822
- return typeof Z === A ? Z.replace(/[^\d\.]/g, o).split(".")[0] : r;
3823
- }, E = function(Z, q) {
3824
- if (typeof Z === A)
3825
- return Z = Z.replace(/^\s\s*/, o), typeof q === D ? Z : Z.substring(0, ae);
3826
- }, v = function(Z, q) {
3827
- for (var P = 0, Me, Le, we, oe, W, Ye; P < q.length && !W; ) {
3828
- var Ei = q[P], Li = q[P + 1];
3829
- for (Me = Le = 0; Me < Ei.length && !W && Ei[Me]; )
3830
- if (W = Ei[Me++].exec(Z), W)
3831
- for (we = 0; we < Li.length; we++)
3832
- Ye = W[++Le], oe = Li[we], typeof oe === j && oe.length > 0 ? oe.length === 2 ? typeof oe[1] == M ? this[oe[0]] = oe[1].call(this, Ye) : this[oe[0]] = oe[1] : oe.length === 3 ? typeof oe[1] === M && !(oe[1].exec && oe[1].test) ? this[oe[0]] = Ye ? oe[1].call(this, Ye, oe[2]) : r : this[oe[0]] = Ye ? Ye.replace(oe[1], oe[2]) : r : oe.length === 4 && (this[oe[0]] = Ye ? oe[3].call(this, Ye.replace(oe[1], oe[2])) : r) : this[oe] = Ye || r;
3833
- P += 2;
3824
+ var n = "1.0.41", o = "", s = "?", a = "function", D = "undefined", j = "object", A = "string", g = "major", M = "model", y = "name", N = "type", I = "vendor", O = "version", w = "architecture", _ = "console", p = "mobile", h = "tablet", U = "smarttv", ee = "wearable", ue = "embedded", W = 500, ne = "Amazon", Q = "Apple", G = "ASUS", k = "BlackBerry", J = "Browser", ie = "Chrome", Ie = "Edge", Ne = "Firefox", Ae = "Google", Qe = "Honor", le = "Huawei", Z = "Lenovo", ge = "LG", ze = "Microsoft", he = "Motorola", ve = "Nvidia", Y = "OnePlus", oe = "Opera", Ve = "OPPO", Je = "Samsung", ii = "Sharp", Be = "Sony", gi = "Xiaomi", Mi = "Zebra", Oi = "Facebook", di = "Chromium OS", ai = "Mac OS", Ni = " Browser", xi = function(B, K) {
3825
+ var R = {};
3826
+ for (var Me in B)
3827
+ K[Me] && K[Me].length % 2 === 0 ? R[Me] = K[Me].concat(B[Me]) : R[Me] = B[Me];
3828
+ return R;
3829
+ }, ui = function(B) {
3830
+ for (var K = {}, R = 0; R < B.length; R++)
3831
+ K[B[R].toUpperCase()] = B[R];
3832
+ return K;
3833
+ }, $e = function(B, K) {
3834
+ return typeof B === A ? c(K).indexOf(c(B)) !== -1 : !1;
3835
+ }, c = function(B) {
3836
+ return B.toLowerCase();
3837
+ }, T = function(B) {
3838
+ return typeof B === A ? B.replace(/[^\d\.]/g, o).split(".")[0] : r;
3839
+ }, E = function(B, K) {
3840
+ if (typeof B === A)
3841
+ return B = B.replace(/^\s\s*/, o), typeof K === D ? B : B.substring(0, W);
3842
+ }, v = function(B, K) {
3843
+ for (var R = 0, Me, Le, we, se, V, Ye; R < K.length && !V; ) {
3844
+ var Ei = K[R], ki = K[R + 1];
3845
+ for (Me = Le = 0; Me < Ei.length && !V && Ei[Me]; )
3846
+ if (V = Ei[Me++].exec(B), V)
3847
+ for (we = 0; we < ki.length; we++)
3848
+ Ye = V[++Le], se = ki[we], typeof se === j && se.length > 0 ? se.length === 2 ? typeof se[1] == a ? this[se[0]] = se[1].call(this, Ye) : this[se[0]] = se[1] : se.length === 3 ? typeof se[1] === a && !(se[1].exec && se[1].test) ? this[se[0]] = Ye ? se[1].call(this, Ye, se[2]) : r : this[se[0]] = Ye ? Ye.replace(se[1], se[2]) : r : se.length === 4 && (this[se[0]] = Ye ? se[3].call(this, Ye.replace(se[1], se[2])) : r) : this[se] = Ye || r;
3849
+ R += 2;
3834
3850
  }
3835
- }, b = function(Z, q) {
3836
- for (var P in q)
3837
- if (typeof q[P] === j && q[P].length > 0) {
3838
- for (var Me = 0; Me < q[P].length; Me++)
3839
- if (Xe(q[P][Me], Z))
3840
- return P === s ? r : P;
3841
- } else if (Xe(q[P], Z))
3842
- return P === s ? r : P;
3843
- return q.hasOwnProperty("*") ? q["*"] : Z;
3844
- }, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Q = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, z], [/opios[\/ ]+([\w\.]+)/i], [z, [y, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [y, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [y, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [y, "UC" + $]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [y, "Smart Lenovo " + $]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + $], z], [/\bfocus\/([\w\.]+)/i], [z, [y, je + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [y, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [y, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [z, [y, je]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], z], [/samsungbrowser\/([\w\.]+)/i], [z, [y, $e + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [y, se + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, se + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [y, "Android " + $]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [z, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [y, je + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, g]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, g]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [I, $e], [N, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [I, $e], [N, h]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [I, H], [N, h]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [I, H], [N, p]], [/(macintosh);/i], [a, [I, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [I, ii], [N, h]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [I, Qe], [N, p]], [/honor([-\w ]+)[;\)]/i], [a, [I, Qe], [N, h]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [I, le], [N, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [I, le], [N, h]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [I, gi], [N, p]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [I, gi], [N, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [I, Ve], [N, h]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [I, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [I, "Vivo"], [N, h]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [I, "Realme"], [N, h]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [I, he], [N, h]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [I, he], [N, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [I, ge], [N, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [I, ge], [N, h]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [I, G], [N, p]], [/(nokia) (t[12][01])/i], [I, a, [N, p]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, h], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [I, Ae], [N, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [I, Ae], [N, h]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [I, Be], [N, h]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [I, Be], [N, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [I, U], [N, h]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [I, Y], [N, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [I, Y], [N, h]], [/(playbook);[-\w\),; ]+(rim)/i], [a, I, [N, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [I, R], [N, h]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [I, V], [N, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [I, V], [N, h]], [/(nexus 9)/i], [a, [I, "HTC"], [N, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [a, /_/g, " "], [N, h]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [I, "TCL"], [N, p]], [/(itel) ((\w+))/i], [[I, g], a, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [I, "Acer"], [N, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [I, "Meizu"], [N, h]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [I, "Ulefone"], [N, h]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [I, "Energizer"], [N, h]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [I, "Cat"], [N, h]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [I, "Smartfren"], [N, h]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [I, "Nothing"], [N, h]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [I, "Archos"], [N, p]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [I, "Archos"], [N, h]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, a, [N, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [I, a, [N, h]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [I, a, [N, p]], [/(surface duo)/i], [a, [I, ze], [N, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [I, "Fairphone"], [N, h]], [/(u304aa)/i], [a, [I, "AT&T"], [N, h]], [/\bsie-(\w*)/i], [a, [I, "Siemens"], [N, h]], [/\b(rct\w+) b/i], [a, [I, "RCA"], [N, p]], [/\b(venue[\d ]{2,7}) b/i], [a, [I, "Dell"], [N, p]], [/\b(q(?:mv|ta)\w+) b/i], [a, [I, "Verizon"], [N, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [I, "Barnes & Noble"], [N, p]], [/\b(tm\d{3}\w+) b/i], [a, [I, "NuVision"], [N, p]], [/\b(k88) b/i], [a, [I, "ZTE"], [N, p]], [/\b(nx\d{3}j) b/i], [a, [I, "ZTE"], [N, h]], [/\b(gen\d{3}) b.+49h/i], [a, [I, "Swiss"], [N, h]], [/\b(zur\d{3}) b/i], [a, [I, "Swiss"], [N, p]], [/\b((zeki)?tb.*\b) b/i], [a, [I, "Zeki"], [N, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], a, [N, p]], [/\b(ns-?\w{0,9}) b/i], [a, [I, "Insignia"], [N, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [I, "NextBook"], [N, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], a, [N, h]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], a, [N, h]], [/\b(ph-1) /i], [a, [I, "Essential"], [N, h]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [I, "Envizen"], [N, p]], [/\b(trio[-\w\. ]+) b/i], [a, [I, "MachSpeed"], [N, p]], [/\btu_(1491) b/i], [a, [I, "Rotor"], [N, p]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [I, ve], [N, p]], [/(sprint) (\w+)/i], [I, a, [N, h]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [I, ze], [N, h]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [I, Mi], [N, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [I, Mi], [N, h]], [/smart-tv.+(samsung)/i], [I, [N, k]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [I, $e], [N, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, k]], [/(apple) ?tv/i], [I, [a, H + " TV"], [N, k]], [/crkey/i], [[a, se + "cast"], [I, Ae], [N, k]], [/droid.+aft(\w+)( bui|\))/i], [a, [I, Y], [N, k]], [/(shield \w+ tv)/i], [a, [I, ve], [N, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [I, ii], [N, k]], [/(bravia[\w ]+)( bui|\))/i], [a, [I, Be], [N, k]], [/(mi(tv|box)-?\w+) bui/i], [a, [I, gi], [N, k]], [/Hbbtv.*(technisat) (.*);/i], [I, a, [N, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, E], [a, E], [N, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, a, [N, _]], [/droid.+; (shield)( bui|\))/i], [a, [I, ve], [N, _]], [/(playstation \w+)/i], [a, [I, Be], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [I, $e], [N, ie]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, a, [N, ie]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [I, Ve], [N, ie]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [I, H], [N, ie]], [/(opwwe\d{3})/i], [a, [I, U], [N, ie]], [/(moto 360)/i], [a, [I, he], [N, ie]], [/(smartwatch 3)/i], [a, [I, Be], [N, ie]], [/(g watch r)/i], [a, [I, ge], [N, ie]], [/droid.+; (wt63?0{2,3})\)/i], [a, [I, Mi], [N, ie]], [/droid.+; (glass) \d/i], [a, [I, Ae], [N, ie]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, a, [N, ie]], [/; (quest( \d| pro)?)/i], [a, [I, Oi], [N, ie]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, F]], [/(aeobc)\b/i], [a, [I, Y], [N, F]], [/(homepod).+mac os/i], [a, [I, H], [N, F]], [/windows iot/i], [[N, F]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, h]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, h]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [I, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, z], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [z, b, Q]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, b, Q], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, z], [/\(bb(10);/i], [z, [y, R]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [y, je + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [y, se + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, z], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, z]] }, B = function(Z, q) {
3845
- if (typeof Z === j && (q = Z, Z = r), !(this instanceof B))
3846
- return new B(Z, q).getResult();
3847
- var P = typeof t !== D && t.navigator ? t.navigator : r, Me = Z || (P && P.userAgent ? P.userAgent : o), Le = P && P.userAgentData ? P.userAgentData : r, we = q ? xi(K, q) : K, oe = P && P.userAgent == Me;
3851
+ }, b = function(B, K) {
3852
+ for (var R in K)
3853
+ if (typeof K[R] === j && K[R].length > 0) {
3854
+ for (var Me = 0; Me < K[R].length; Me++)
3855
+ if ($e(K[R][Me], B))
3856
+ return R === s ? r : R;
3857
+ } else if ($e(K[R], B))
3858
+ return R === s ? r : R;
3859
+ return K.hasOwnProperty("*") ? K["*"] : B;
3860
+ }, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, P = { 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" }, X = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [O, [y, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [O, [y, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [y, O], [/opios[\/ ]+([\w\.]+)/i], [O, [y, oe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [O, [y, oe + " GX"]], [/\bopr\/([\w\.]+)/i], [O, [y, oe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [O, [y, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [O, [y, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [y, O], [/quark(?:pc)?\/([-\w\.]+)/i], [O, [y, "Quark"]], [/\bddg\/([\w\.]+)/i], [O, [y, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [O, [y, "UC" + J]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [O, [y, "WeChat"]], [/konqueror\/([\w\.]+)/i], [O, [y, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [O, [y, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [O, [y, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [O, [y, "Smart Lenovo " + J]], [/(avast|avg)\/([\w\.]+)/i], [[y, /(.+)/, "$1 Secure " + J], O], [/\bfocus\/([\w\.]+)/i], [O, [y, Ne + " Focus"]], [/\bopt\/([\w\.]+)/i], [O, [y, oe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [O, [y, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [O, [y, "Dolphin"]], [/coast\/([\w\.]+)/i], [O, [y, oe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [O, [y, "MIUI" + Ni]], [/fxios\/([\w\.-]+)/i], [O, [y, Ne]], [/\bqihoobrowser\/?([\w\.]*)/i], [O, [y, "360"]], [/\b(qq)\/([\w\.]+)/i], [[y, /(.+)/, "$1Browser"], O], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[y, /(.+)/, "$1" + Ni], O], [/samsungbrowser\/([\w\.]+)/i], [O, [y, Je + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [O, [y, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[y, "Sogou Mobile"], O], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [y, O], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [y], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [O, y], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[y, Oi], O], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [y, O], [/\bgsa\/([\w\.]+) .*safari\//i], [O, [y, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [O, [y, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [O, [y, ie + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[y, ie + " WebView"], O], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [O, [y, "Android " + J]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [y, O], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [O, [y, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [O, y], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [y, [O, b, S]], [/(webkit|khtml)\/([\w\.]+)/i], [y, O], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[y, "Netscape"], O], [/(wolvic|librewolf)\/([\w\.]+)/i], [y, O], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [O, [y, Ne + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [y, [O, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [y, [O, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[w, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[w, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[w, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[w, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[w, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[w, /ower/, o, c]], [/ sun4\w[;\)]/i], [[w, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[w, c]]], 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], [M, [I, Je], [N, h]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [M, [I, Je], [N, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [M, [I, Q], [N, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [M, [I, Q], [N, h]], [/(macintosh);/i], [M, [I, Q]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [M, [I, ii], [N, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [M, [I, Qe], [N, h]], [/honor([-\w ]+)[;\)]/i], [M, [I, Qe], [N, p]], [/\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], [M, [I, le], [N, h]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [M, [I, le], [N, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[M, /_/g, " "], [I, gi], [N, h]], [/\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], [[M, /_/g, " "], [I, gi], [N, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [M, [I, Ve], [N, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [M, [I, b, { OnePlus: ["304", "403", "203"], "*": Ve }], [N, h]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [M, [I, "Vivo"], [N, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [M, [I, "Realme"], [N, p]], [/\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], [M, [I, he], [N, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [M, [I, he], [N, h]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [M, [I, ge], [N, h]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [M, [I, ge], [N, p]], [/(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], [M, [I, Z], [N, h]], [/(nokia) (t[12][01])/i], [I, M, [N, h]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[M, /_/g, " "], [N, p], [I, "Nokia"]], [/(pixel (c|tablet))\b/i], [M, [I, Ae], [N, h]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [M, [I, Ae], [N, p]], [/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], [M, [I, Be], [N, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[M, "Xperia Tablet"], [I, Be], [N, h]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [M, [I, Y], [N, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [M, [I, ne], [N, h]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[M, /(.+)/g, "Fire Phone $1"], [I, ne], [N, p]], [/(playbook);[-\w\),; ]+(rim)/i], [M, I, [N, h]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [M, [I, k], [N, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [M, [I, G], [N, h]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [M, [I, G], [N, p]], [/(nexus 9)/i], [M, [I, "HTC"], [N, h]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [I, [M, /_/g, " "], [N, p]], [/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], [M, [I, "TCL"], [N, h]], [/(itel) ((\w+))/i], [[I, c], M, [N, b, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [M, [I, "Acer"], [N, h]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [M, [I, "Meizu"], [N, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [M, [I, "Ulefone"], [N, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [M, [I, "Energizer"], [N, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [M, [I, "Cat"], [N, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [M, [I, "Smartfren"], [N, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [M, [I, "Nothing"], [N, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [M, [I, "Archos"], [N, h]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [M, [I, "Archos"], [N, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [I, M, [N, h]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [I, M, [N, p]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [I, M, [N, h]], [/(surface duo)/i], [M, [I, ze], [N, h]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [M, [I, "Fairphone"], [N, p]], [/(u304aa)/i], [M, [I, "AT&T"], [N, p]], [/\bsie-(\w*)/i], [M, [I, "Siemens"], [N, p]], [/\b(rct\w+) b/i], [M, [I, "RCA"], [N, h]], [/\b(venue[\d ]{2,7}) b/i], [M, [I, "Dell"], [N, h]], [/\b(q(?:mv|ta)\w+) b/i], [M, [I, "Verizon"], [N, h]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [M, [I, "Barnes & Noble"], [N, h]], [/\b(tm\d{3}\w+) b/i], [M, [I, "NuVision"], [N, h]], [/\b(k88) b/i], [M, [I, "ZTE"], [N, h]], [/\b(nx\d{3}j) b/i], [M, [I, "ZTE"], [N, p]], [/\b(gen\d{3}) b.+49h/i], [M, [I, "Swiss"], [N, p]], [/\b(zur\d{3}) b/i], [M, [I, "Swiss"], [N, h]], [/\b((zeki)?tb.*\b) b/i], [M, [I, "Zeki"], [N, h]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[I, "Dragon Touch"], M, [N, h]], [/\b(ns-?\w{0,9}) b/i], [M, [I, "Insignia"], [N, h]], [/\b((nxa|next)-?\w{0,9}) b/i], [M, [I, "NextBook"], [N, h]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[I, "Voice"], M, [N, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[I, "LvTel"], M, [N, p]], [/\b(ph-1) /i], [M, [I, "Essential"], [N, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [M, [I, "Envizen"], [N, h]], [/\b(trio[-\w\. ]+) b/i], [M, [I, "MachSpeed"], [N, h]], [/\btu_(1491) b/i], [M, [I, "Rotor"], [N, h]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [M, [I, ve], [N, h]], [/(sprint) (\w+)/i], [I, M, [N, p]], [/(kin\.[onetw]{3})/i], [[M, /\./g, " "], [I, ze], [N, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [M, [I, Mi], [N, h]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [M, [I, Mi], [N, p]], [/smart-tv.+(samsung)/i], [I, [N, U]], [/hbbtv.+maple;(\d+)/i], [[M, /^/, "SmartTV"], [I, Je], [N, U]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[I, ge], [N, U]], [/(apple) ?tv/i], [I, [M, Q + " TV"], [N, U]], [/crkey/i], [[M, ie + "cast"], [I, Ae], [N, U]], [/droid.+aft(\w+)( bui|\))/i], [M, [I, ne], [N, U]], [/(shield \w+ tv)/i], [M, [I, ve], [N, U]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [M, [I, ii], [N, U]], [/(bravia[\w ]+)( bui|\))/i], [M, [I, Be], [N, U]], [/(mi(tv|box)-?\w+) bui/i], [M, [I, gi], [N, U]], [/Hbbtv.*(technisat) (.*);/i], [I, M, [N, U]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[I, E], [M, E], [N, U]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [M, [N, U]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, U]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [I, M, [N, _]], [/droid.+; (shield)( bui|\))/i], [M, [I, ve], [N, _]], [/(playstation \w+)/i], [M, [I, Be], [N, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [M, [I, ze], [N, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [M, [I, Je], [N, ee]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [I, M, [N, ee]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [M, [I, Ve], [N, ee]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [M, [I, Q], [N, ee]], [/(opwwe\d{3})/i], [M, [I, Y], [N, ee]], [/(moto 360)/i], [M, [I, he], [N, ee]], [/(smartwatch 3)/i], [M, [I, Be], [N, ee]], [/(g watch r)/i], [M, [I, ge], [N, ee]], [/droid.+; (wt63?0{2,3})\)/i], [M, [I, Mi], [N, ee]], [/droid.+; (glass) \d/i], [M, [I, Ae], [N, ee]], [/(pico) (4|neo3(?: link|pro)?)/i], [I, M, [N, ee]], [/; (quest( \d| pro)?)/i], [M, [I, Oi], [N, ee]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [I, [N, ue]], [/(aeobc)\b/i], [M, [I, ne], [N, ue]], [/(homepod).+mac os/i], [M, [I, Q], [N, ue]], [/windows iot/i], [[N, ue]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [M, [N, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [M, [N, h]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, h]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [M, [I, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [O, [y, Ie + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [y, O], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [O, [y, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [y, O], [/ladybird\//i], [[y, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [O, y]], os: [[/microsoft (windows) (vista|xp)/i], [y, O], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [y, [O, b, P]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[O, b, P], [y, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[O, /_/g, "."], [y, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[y, ai], [O, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [O, y], [/(ubuntu) ([\w\.]+) like android/i], [[y, /(.+)/, "$1 Touch"], O], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [y, O], [/\(bb(10);/i], [O, [y, k]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [O, [y, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [O, [y, Ne + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [O, [y, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [O, [y, "watchOS"]], [/crkey\/([\d\.]+)/i], [O, [y, ie + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[y, di], O], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [y, O], [/(sunos) ?([\w\.\d]*)/i], [[y, "Solaris"], O], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [y, O]] }, F = function(B, K) {
3861
+ if (typeof B === j && (K = B, B = r), !(this instanceof F))
3862
+ return new F(B, K).getResult();
3863
+ var R = typeof t !== D && t.navigator ? t.navigator : r, Me = B || (R && R.userAgent ? R.userAgent : o), Le = R && R.userAgentData ? R.userAgentData : r, we = K ? xi(X, K) : X, se = R && R.userAgent == Me;
3848
3864
  return this.getBrowser = function() {
3849
- var W = {};
3850
- return W[y] = r, W[z] = r, v.call(W, Me, we.browser), W[c] = T(W[z]), oe && P && P.brave && typeof P.brave.isBrave == M && (W[y] = "Brave"), W;
3865
+ var V = {};
3866
+ return V[y] = r, V[O] = r, v.call(V, Me, we.browser), V[g] = T(V[O]), se && R && R.brave && typeof R.brave.isBrave == a && (V[y] = "Brave"), V;
3851
3867
  }, this.getCPU = function() {
3852
- var W = {};
3853
- return W[w] = r, v.call(W, Me, we.cpu), W;
3868
+ var V = {};
3869
+ return V[w] = r, v.call(V, Me, we.cpu), V;
3854
3870
  }, this.getDevice = function() {
3855
- var W = {};
3856
- return W[I] = r, W[a] = r, W[N] = r, v.call(W, Me, we.device), oe && !W[N] && Le && Le.mobile && (W[N] = h), oe && W[a] == "Macintosh" && P && typeof P.standalone !== D && P.maxTouchPoints && P.maxTouchPoints > 2 && (W[a] = "iPad", W[N] = p), W;
3871
+ var V = {};
3872
+ return V[I] = r, V[M] = r, V[N] = r, v.call(V, Me, we.device), se && !V[N] && Le && Le.mobile && (V[N] = p), se && V[M] == "Macintosh" && R && typeof R.standalone !== D && R.maxTouchPoints && R.maxTouchPoints > 2 && (V[M] = "iPad", V[N] = h), V;
3857
3873
  }, this.getEngine = function() {
3858
- var W = {};
3859
- return W[y] = r, W[z] = r, v.call(W, Me, we.engine), W;
3874
+ var V = {};
3875
+ return V[y] = r, V[O] = r, v.call(V, Me, we.engine), V;
3860
3876
  }, this.getOS = function() {
3861
- var W = {};
3862
- return W[y] = r, W[z] = r, v.call(W, Me, we.os), oe && !W[y] && Le && Le.platform && Le.platform != "Unknown" && (W[y] = Le.platform.replace(/chrome os/i, di).replace(/macos/i, ai)), W;
3877
+ var V = {};
3878
+ return V[y] = r, V[O] = r, v.call(V, Me, we.os), se && !V[y] && Le && Le.platform && Le.platform != "Unknown" && (V[y] = Le.platform.replace(/chrome os/i, di).replace(/macos/i, ai)), V;
3863
3879
  }, this.getResult = function() {
3864
3880
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
3865
3881
  }, this.getUA = function() {
3866
3882
  return Me;
3867
- }, this.setUA = function(W) {
3868
- return Me = typeof W === A && W.length > ae ? E(W, ae) : W, this;
3883
+ }, this.setUA = function(V) {
3884
+ return Me = typeof V === A && V.length > W ? E(V, W) : V, this;
3869
3885
  }, this.setUA(Me), this;
3870
3886
  };
3871
- B.VERSION = n, B.BROWSER = ui([y, z, c]), B.CPU = ui([w]), B.DEVICE = ui([a, I, N, _, h, k, p, ie, F]), B.ENGINE = B.OS = ui([y, z]), e.exports && (i = e.exports = B), i.UAParser = B;
3872
- var ue = typeof t !== D && (t.jQuery || t.Zepto);
3873
- if (ue && !ue.ua) {
3874
- var Se = new B();
3875
- ue.ua = Se.getResult(), ue.ua.get = function() {
3887
+ F.VERSION = n, F.BROWSER = ui([y, O, g]), F.CPU = ui([w]), F.DEVICE = ui([M, I, N, _, p, U, h, ee, ue]), F.ENGINE = F.OS = ui([y, O]), e.exports && (i = e.exports = F), i.UAParser = F;
3888
+ var ae = typeof t !== D && (t.jQuery || t.Zepto);
3889
+ if (ae && !ae.ua) {
3890
+ var Se = new F();
3891
+ ae.ua = Se.getResult(), ae.ua.get = function() {
3876
3892
  return Se.getUA();
3877
- }, ue.ua.set = function(Z) {
3878
- Se.setUA(Z);
3879
- var q = Se.getResult();
3880
- for (var P in q)
3881
- ue.ua[P] = q[P];
3893
+ }, ae.ua.set = function(B) {
3894
+ Se.setUA(B);
3895
+ var K = Se.getResult();
3896
+ for (var R in K)
3897
+ ae.ua[R] = K[R];
3882
3898
  };
3883
3899
  }
3884
3900
  })(typeof window == "object" ? window : aa);
3885
- })(Qi, Qi.exports)), Qi.exports;
3901
+ })(Yi, Yi.exports)), Yi.exports;
3886
3902
  }
3887
3903
  var jn;
3888
3904
  function la() {
@@ -3891,9 +3907,9 @@ function la() {
3891
3907
  function e(f) {
3892
3908
  return f && typeof f == "object" && "default" in f ? f.default : f;
3893
3909
  }
3894
- var i = Ma, t = e(i), r = ua(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), D = n.getEngine(), j = n.getOS(), A = n.getUA(), c = function(u) {
3910
+ var i = Ma, t = e(i), r = ua(), n = new r(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), D = n.getEngine(), j = n.getOS(), A = n.getUA(), g = function(u) {
3895
3911
  return n.setUA(u);
3896
- }, a = function(u) {
3912
+ }, M = function(u) {
3897
3913
  if (!u) {
3898
3914
  console.error("No userAgent string was provided");
3899
3915
  return;
@@ -3915,12 +3931,12 @@ function la() {
3915
3931
  ClientUAInstance: n,
3916
3932
  browser: o,
3917
3933
  cpu: s,
3918
- device: M,
3934
+ device: a,
3919
3935
  engine: D,
3920
3936
  os: j,
3921
3937
  ua: A,
3922
- setUa: c,
3923
- parseUserAgent: a
3938
+ setUa: g,
3939
+ parseUserAgent: M
3924
3940
  });
3925
3941
  function N(f, u) {
3926
3942
  var l = Object.keys(f);
@@ -3936,20 +3952,20 @@ function la() {
3936
3952
  for (var u = 1; u < arguments.length; u++) {
3937
3953
  var l = arguments[u] != null ? arguments[u] : {};
3938
3954
  u % 2 ? N(Object(l), !0).forEach(function(x) {
3939
- p(f, x, l[x]);
3955
+ h(f, x, l[x]);
3940
3956
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(f, Object.getOwnPropertyDescriptors(l)) : N(Object(l)).forEach(function(x) {
3941
3957
  Object.defineProperty(f, x, Object.getOwnPropertyDescriptor(l, x));
3942
3958
  });
3943
3959
  }
3944
3960
  return f;
3945
3961
  }
3946
- function z(f) {
3962
+ function O(f) {
3947
3963
  "@babel/helpers - typeof";
3948
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? z = function(u) {
3964
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? O = function(u) {
3949
3965
  return typeof u;
3950
- } : z = function(u) {
3966
+ } : O = function(u) {
3951
3967
  return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
3952
- }, z(f);
3968
+ }, O(f);
3953
3969
  }
3954
3970
  function w(f, u) {
3955
3971
  if (!(f instanceof u))
@@ -3961,10 +3977,10 @@ function la() {
3961
3977
  x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(f, x.key, x);
3962
3978
  }
3963
3979
  }
3964
- function h(f, u, l) {
3980
+ function p(f, u, l) {
3965
3981
  return u && _(f.prototype, u), f;
3966
3982
  }
3967
- function p(f, u, l) {
3983
+ function h(f, u, l) {
3968
3984
  return u in f ? Object.defineProperty(f, u, {
3969
3985
  value: l,
3970
3986
  enumerable: !0,
@@ -3972,17 +3988,17 @@ function la() {
3972
3988
  writable: !0
3973
3989
  }) : f[u] = l, f;
3974
3990
  }
3975
- function k() {
3976
- return k = Object.assign || function(f) {
3991
+ function U() {
3992
+ return U = Object.assign || function(f) {
3977
3993
  for (var u = 1; u < arguments.length; u++) {
3978
3994
  var l = arguments[u];
3979
3995
  for (var x in l)
3980
3996
  Object.prototype.hasOwnProperty.call(l, x) && (f[x] = l[x]);
3981
3997
  }
3982
3998
  return f;
3983
- }, k.apply(this, arguments);
3999
+ }, U.apply(this, arguments);
3984
4000
  }
3985
- function ie(f, u) {
4001
+ function ee(f, u) {
3986
4002
  if (typeof u != "function" && u !== null)
3987
4003
  throw new TypeError("Super expression must either be null or a function");
3988
4004
  f.prototype = Object.create(u && u.prototype, {
@@ -3991,28 +4007,28 @@ function la() {
3991
4007
  writable: !0,
3992
4008
  configurable: !0
3993
4009
  }
3994
- }), u && ae(f, u);
4010
+ }), u && W(f, u);
3995
4011
  }
3996
- function F(f) {
3997
- return F = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
4012
+ function ue(f) {
4013
+ return ue = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
3998
4014
  return l.__proto__ || Object.getPrototypeOf(l);
3999
- }, F(f);
4015
+ }, ue(f);
4000
4016
  }
4001
- function ae(f, u) {
4002
- return ae = Object.setPrototypeOf || function(x, m) {
4017
+ function W(f, u) {
4018
+ return W = Object.setPrototypeOf || function(x, m) {
4003
4019
  return x.__proto__ = m, x;
4004
- }, ae(f, u);
4020
+ }, W(f, u);
4005
4021
  }
4006
- function Y(f, u) {
4022
+ function ne(f, u) {
4007
4023
  if (f == null) return {};
4008
4024
  var l = {}, x = Object.keys(f), m, te;
4009
4025
  for (te = 0; te < x.length; te++)
4010
4026
  m = x[te], !(u.indexOf(m) >= 0) && (l[m] = f[m]);
4011
4027
  return l;
4012
4028
  }
4013
- function H(f, u) {
4029
+ function Q(f, u) {
4014
4030
  if (f == null) return {};
4015
- var l = Y(f, u), x, m;
4031
+ var l = ne(f, u), x, m;
4016
4032
  if (Object.getOwnPropertySymbols) {
4017
4033
  var te = Object.getOwnPropertySymbols(f);
4018
4034
  for (m = 0; m < te.length; m++)
@@ -4020,22 +4036,22 @@ function la() {
4020
4036
  }
4021
4037
  return l;
4022
4038
  }
4023
- function V(f) {
4039
+ function G(f) {
4024
4040
  if (f === void 0)
4025
4041
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4026
4042
  return f;
4027
4043
  }
4028
- function R(f, u) {
4044
+ function k(f, u) {
4029
4045
  if (u && (typeof u == "object" || typeof u == "function"))
4030
4046
  return u;
4031
4047
  if (u !== void 0)
4032
4048
  throw new TypeError("Derived constructors may only return object or undefined");
4033
- return V(f);
4049
+ return G(f);
4034
4050
  }
4035
- function $(f, u) {
4036
- return se(f) || Ie(f, u) || je(f, u) || Qe();
4051
+ function J(f, u) {
4052
+ return ie(f) || Ie(f, u) || Ne(f, u) || Qe();
4037
4053
  }
4038
- function se(f) {
4054
+ function ie(f) {
4039
4055
  if (Array.isArray(f)) return f;
4040
4056
  }
4041
4057
  function Ie(f, u) {
@@ -4045,8 +4061,8 @@ function la() {
4045
4061
  try {
4046
4062
  for (l = l.call(f); !(m = (Oe = l.next()).done) && (x.push(Oe.value), !(u && x.length === u)); m = !0)
4047
4063
  ;
4048
- } catch (qi) {
4049
- te = !0, ke = qi;
4064
+ } catch (et) {
4065
+ te = !0, ke = et;
4050
4066
  } finally {
4051
4067
  try {
4052
4068
  !m && l.return != null && l.return();
@@ -4057,7 +4073,7 @@ function la() {
4057
4073
  return x;
4058
4074
  }
4059
4075
  }
4060
- function je(f, u) {
4076
+ function Ne(f, u) {
4061
4077
  if (f) {
4062
4078
  if (typeof f == "string") return Ae(f, u);
4063
4079
  var l = Object.prototype.toString.call(f).slice(8, -1);
@@ -4082,7 +4098,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4082
4098
  Wearable: "wearable",
4083
4099
  Embedded: "embedded",
4084
4100
  Browser: void 0
4085
- }, G = {
4101
+ }, Z = {
4086
4102
  Chrome: "Chrome",
4087
4103
  Firefox: "Firefox",
4088
4104
  Opera: "Opera",
@@ -4143,78 +4159,78 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4143
4159
  return ze;
4144
4160
  }
4145
4161
  }, ve = function(u) {
4146
- return c(u);
4147
- }, U = function(u) {
4162
+ return g(u);
4163
+ }, Y = function(u) {
4148
4164
  var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
4149
4165
  return u || l;
4150
- }, ne = function() {
4166
+ }, oe = function() {
4151
4167
  return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
4152
4168
  }, Ve = function(u) {
4153
- var l = ne();
4169
+ var l = oe();
4154
4170
  return l && l.platform && (l.platform.indexOf(u) !== -1 || l.platform === "MacIntel" && l.maxTouchPoints > 1 && !window.MSStream);
4155
- }, $e = function(u, l, x, m, te) {
4171
+ }, Je = function(u, l, x, m, te) {
4156
4172
  return {
4157
4173
  isBrowser: u,
4158
- browserMajorVersion: U(l.major),
4159
- browserFullVersion: U(l.version),
4160
- browserName: U(l.name),
4161
- engineName: U(x.name),
4162
- engineVersion: U(x.version),
4163
- osName: U(m.name),
4164
- osVersion: U(m.version),
4165
- userAgent: U(te)
4174
+ browserMajorVersion: Y(l.major),
4175
+ browserFullVersion: Y(l.version),
4176
+ browserName: Y(l.name),
4177
+ engineName: Y(x.name),
4178
+ engineVersion: Y(x.version),
4179
+ osName: Y(m.name),
4180
+ osVersion: Y(m.version),
4181
+ userAgent: Y(te)
4166
4182
  };
4167
4183
  }, ii = function(u, l, x, m) {
4168
4184
  return I({}, u, {
4169
- vendor: U(l.vendor),
4170
- model: U(l.model),
4171
- os: U(x.name),
4172
- osVersion: U(x.version),
4173
- ua: U(m)
4185
+ vendor: Y(l.vendor),
4186
+ model: Y(l.model),
4187
+ os: Y(x.name),
4188
+ osVersion: Y(x.version),
4189
+ ua: Y(m)
4174
4190
  });
4175
4191
  }, Be = function(u, l, x, m) {
4176
4192
  return {
4177
4193
  isSmartTV: u,
4178
- engineName: U(l.name),
4179
- engineVersion: U(l.version),
4180
- osName: U(x.name),
4181
- osVersion: U(x.version),
4182
- userAgent: U(m)
4194
+ engineName: Y(l.name),
4195
+ engineVersion: Y(l.version),
4196
+ osName: Y(x.name),
4197
+ osVersion: Y(x.version),
4198
+ userAgent: Y(m)
4183
4199
  };
4184
4200
  }, gi = function(u, l, x, m) {
4185
4201
  return {
4186
4202
  isConsole: u,
4187
- engineName: U(l.name),
4188
- engineVersion: U(l.version),
4189
- osName: U(x.name),
4190
- osVersion: U(x.version),
4191
- userAgent: U(m)
4203
+ engineName: Y(l.name),
4204
+ engineVersion: Y(l.version),
4205
+ osName: Y(x.name),
4206
+ osVersion: Y(x.version),
4207
+ userAgent: Y(m)
4192
4208
  };
4193
4209
  }, Mi = function(u, l, x, m) {
4194
4210
  return {
4195
4211
  isWearable: u,
4196
- engineName: U(l.name),
4197
- engineVersion: U(l.version),
4198
- osName: U(x.name),
4199
- osVersion: U(x.version),
4200
- userAgent: U(m)
4212
+ engineName: Y(l.name),
4213
+ engineVersion: Y(l.version),
4214
+ osName: Y(x.name),
4215
+ osVersion: Y(x.version),
4216
+ userAgent: Y(m)
4201
4217
  };
4202
4218
  }, Oi = function(u, l, x, m, te) {
4203
4219
  return {
4204
4220
  isEmbedded: u,
4205
- vendor: U(l.vendor),
4206
- model: U(l.model),
4207
- engineName: U(x.name),
4208
- engineVersion: U(x.version),
4209
- osName: U(m.name),
4210
- osVersion: U(m.version),
4211
- userAgent: U(te)
4221
+ vendor: Y(l.vendor),
4222
+ model: Y(l.model),
4223
+ engineName: Y(x.name),
4224
+ engineVersion: Y(x.version),
4225
+ osName: Y(m.name),
4226
+ osVersion: Y(m.version),
4227
+ userAgent: Y(te)
4212
4228
  };
4213
4229
  };
4214
4230
  function di(f) {
4215
- var u = f ? a(f) : y, l = u.device, x = u.browser, m = u.engine, te = u.os, Oe = u.ua, ke = he(l.type), qi = ke.isBrowser, fs = ke.isMobile, As = ke.isTablet, pr = ke.isSmartTV, _r = ke.isConsole, br = ke.isWearable, Sr = ke.isEmbedded;
4216
- if (qi)
4217
- return $e(qi, x, m, te, Oe);
4231
+ var u = f ? M(f) : y, l = u.device, x = u.browser, m = u.engine, te = u.os, Oe = u.ua, ke = he(l.type), et = ke.isBrowser, fs = ke.isMobile, As = ke.isTablet, pr = ke.isSmartTV, _r = ke.isConsole, br = ke.isWearable, Sr = ke.isEmbedded;
4232
+ if (et)
4233
+ return Je(et, x, m, te, Oe);
4218
4234
  if (pr)
4219
4235
  return Be(pr, m, te, Oe);
4220
4236
  if (_r)
@@ -4238,10 +4254,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4238
4254
  }, ui = function(u) {
4239
4255
  var l = u.type;
4240
4256
  return l === le.SmartTv;
4241
- }, Xe = function(u) {
4257
+ }, $e = function(u) {
4242
4258
  var l = u.type;
4243
4259
  return l === le.Browser;
4244
- }, g = function(u) {
4260
+ }, c = function(u) {
4245
4261
  var l = u.type;
4246
4262
  return l === le.Wearable;
4247
4263
  }, T = function(u) {
@@ -4252,123 +4268,123 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4252
4268
  return l === le.Embedded;
4253
4269
  }, v = function(u) {
4254
4270
  var l = u.vendor;
4255
- return U(l);
4271
+ return Y(l);
4256
4272
  }, b = function(u) {
4257
4273
  var l = u.model;
4258
- return U(l);
4274
+ return Y(l);
4259
4275
  }, S = function(u) {
4260
4276
  var l = u.type;
4261
- return U(l, "browser");
4262
- }, Q = function(u) {
4277
+ return Y(l, "browser");
4278
+ }, P = function(u) {
4263
4279
  var l = u.name;
4264
4280
  return l === ge.Android;
4265
- }, K = function(u) {
4281
+ }, X = function(u) {
4266
4282
  var l = u.name;
4267
4283
  return l === ge.Windows;
4268
- }, B = function(u) {
4284
+ }, F = function(u) {
4269
4285
  var l = u.name;
4270
4286
  return l === ge.MAC_OS;
4271
- }, ue = function(u) {
4287
+ }, ae = function(u) {
4272
4288
  var l = u.name;
4273
4289
  return l === ge.WindowsPhone;
4274
4290
  }, Se = function(u) {
4275
4291
  var l = u.name;
4276
4292
  return l === ge.IOS;
4277
- }, Z = function(u) {
4293
+ }, B = function(u) {
4278
4294
  var l = u.version;
4279
- return U(l);
4280
- }, q = function(u) {
4295
+ return Y(l);
4296
+ }, K = function(u) {
4281
4297
  var l = u.name;
4282
- return U(l);
4283
- }, P = function(u) {
4298
+ return Y(l);
4299
+ }, R = function(u) {
4284
4300
  var l = u.name;
4285
- return l === G.Chrome;
4301
+ return l === Z.Chrome;
4286
4302
  }, Me = function(u) {
4287
4303
  var l = u.name;
4288
- return l === G.Firefox;
4304
+ return l === Z.Firefox;
4289
4305
  }, Le = function(u) {
4290
4306
  var l = u.name;
4291
- return l === G.Chromium;
4307
+ return l === Z.Chromium;
4292
4308
  }, we = function(u) {
4293
4309
  var l = u.name;
4294
- return l === G.Edge;
4295
- }, oe = function(u) {
4310
+ return l === Z.Edge;
4311
+ }, se = function(u) {
4296
4312
  var l = u.name;
4297
- return l === G.Yandex;
4298
- }, W = function(u) {
4313
+ return l === Z.Yandex;
4314
+ }, V = function(u) {
4299
4315
  var l = u.name;
4300
- return l === G.Safari || l === G.MobileSafari;
4316
+ return l === Z.Safari || l === Z.MobileSafari;
4301
4317
  }, Ye = function(u) {
4302
4318
  var l = u.name;
4303
- return l === G.MobileSafari;
4319
+ return l === Z.MobileSafari;
4304
4320
  }, Ei = function(u) {
4305
4321
  var l = u.name;
4306
- return l === G.Opera;
4307
- }, Li = function(u) {
4322
+ return l === Z.Opera;
4323
+ }, ki = function(u) {
4308
4324
  var l = u.name;
4309
- return l === G.InternetExplorer || l === G.Ie;
4325
+ return l === Z.InternetExplorer || l === Z.Ie;
4310
4326
  }, or = function(u) {
4311
4327
  var l = u.name;
4312
- return l === G.MIUI;
4328
+ return l === Z.MIUI;
4313
4329
  }, sr = function(u) {
4314
4330
  var l = u.name;
4315
- return l === G.SamsungBrowser;
4331
+ return l === Z.SamsungBrowser;
4316
4332
  }, Mr = function(u) {
4317
4333
  var l = u.version;
4318
- return U(l);
4334
+ return Y(l);
4319
4335
  }, ar = function(u) {
4320
4336
  var l = u.major;
4321
- return U(l);
4337
+ return Y(l);
4322
4338
  }, ur = function(u) {
4323
4339
  var l = u.name;
4324
- return U(l);
4340
+ return Y(l);
4325
4341
  }, lr = function(u) {
4326
4342
  var l = u.name;
4327
- return U(l);
4343
+ return Y(l);
4328
4344
  }, cr = function(u) {
4329
4345
  var l = u.version;
4330
- return U(l);
4346
+ return Y(l);
4331
4347
  }, gr = function() {
4332
- var u = ne(), l = u && u.userAgent && u.userAgent.toLowerCase();
4348
+ var u = oe(), l = u && u.userAgent && u.userAgent.toLowerCase();
4333
4349
  return typeof l == "string" ? /electron/.test(l) : !1;
4334
4350
  }, hi = function(u) {
4335
4351
  return typeof u == "string" && u.indexOf("Edg/") !== -1;
4336
4352
  }, dr = function() {
4337
- var u = ne();
4353
+ var u = oe();
4338
4354
  return u && (/iPad|iPhone|iPod/.test(u.platform) || u.platform === "MacIntel" && u.maxTouchPoints > 1) && !window.MSStream;
4339
- }, Ke = function() {
4355
+ }, Xe = function() {
4340
4356
  return Ve("iPad");
4341
4357
  }, Nr = function() {
4342
4358
  return Ve("iPhone");
4343
4359
  }, Dr = function() {
4344
4360
  return Ve("iPod");
4345
4361
  }, Ir = function(u) {
4346
- return U(u);
4362
+ return Y(u);
4347
4363
  };
4348
4364
  function jr(f) {
4349
4365
  var u = f || y, l = u.device, x = u.browser, m = u.os, te = u.engine, Oe = u.ua;
4350
4366
  return {
4351
4367
  isSmartTV: ui(l),
4352
4368
  isConsole: T(l),
4353
- isWearable: g(l),
4369
+ isWearable: c(l),
4354
4370
  isEmbedded: E(l),
4355
- isMobileSafari: Ye(x) || Ke(),
4371
+ isMobileSafari: Ye(x) || Xe(),
4356
4372
  isChromium: Le(x),
4357
- isMobile: xi(l) || Ke(),
4373
+ isMobile: xi(l) || Xe(),
4358
4374
  isMobileOnly: ai(l),
4359
- isTablet: Ni(l) || Ke(),
4360
- isBrowser: Xe(l),
4361
- isDesktop: Xe(l),
4362
- isAndroid: Q(m),
4363
- isWinPhone: ue(m),
4364
- isIOS: Se(m) || Ke(),
4365
- isChrome: P(x),
4375
+ isTablet: Ni(l) || Xe(),
4376
+ isBrowser: $e(l),
4377
+ isDesktop: $e(l),
4378
+ isAndroid: P(m),
4379
+ isWinPhone: ae(m),
4380
+ isIOS: Se(m) || Xe(),
4381
+ isChrome: R(x),
4366
4382
  isFirefox: Me(x),
4367
- isSafari: W(x),
4383
+ isSafari: V(x),
4368
4384
  isOpera: Ei(x),
4369
- isIE: Li(x),
4370
- osVersion: Z(m),
4371
- osName: q(m),
4385
+ isIE: ki(x),
4386
+ osVersion: B(m),
4387
+ osName: K(m),
4372
4388
  fullBrowserVersion: Mr(x),
4373
4389
  browserVersion: ar(x),
4374
4390
  browserName: ur(x),
@@ -4378,27 +4394,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4378
4394
  engineVersion: cr(te),
4379
4395
  getUA: Ir(Oe),
4380
4396
  isEdge: we(x) || hi(Oe),
4381
- isYandex: oe(x),
4397
+ isYandex: se(x),
4382
4398
  deviceType: S(l),
4383
4399
  isIOS13: dr(),
4384
- isIPad13: Ke(),
4400
+ isIPad13: Xe(),
4385
4401
  isIPhone13: Nr(),
4386
4402
  isIPod13: Dr(),
4387
4403
  isElectron: gr(),
4388
4404
  isEdgeChromium: hi(Oe),
4389
4405
  isLegacyEdge: we(x) && !hi(Oe),
4390
- isWindows: K(m),
4391
- isMacOs: B(m),
4406
+ isWindows: X(m),
4407
+ isMacOs: F(m),
4392
4408
  isMIUI: or(x),
4393
4409
  isSamsungBrowser: sr(x)
4394
4410
  };
4395
4411
  }
4396
- var yr = ui(M), fr = T(M), Ar = g(M), Eo = E(M), ho = Ye(o) || Ke(), mo = Le(o), Ki = xi(M) || Ke(), Tr = ai(M), zr = Ni(M) || Ke(), Or = Xe(M), wo = Xe(M), xr = Q(j), Er = ue(j), hr = Se(j) || Ke(), po = P(o), _o = Me(o), bo = W(o), So = Ei(o), mr = Li(o), Co = Z(j), vo = q(j), Lo = Mr(o), ko = ar(o), Uo = ur(o), Qo = v(M), Yo = b(M), Po = lr(D), Ro = cr(D), Fo = Ir(A), Vo = we(o) || hi(A), Bo = oe(o), Wo = S(M), Zo = dr(), Ho = Ke(), Go = Nr(), Jo = Dr(), $o = gr(), Xo = hi(A), Ko = we(o) && !hi(A), qo = K(j), es = B(j), is = or(o), ts = sr(o), rs = function(u) {
4412
+ var yr = ui(a), fr = T(a), Ar = c(a), Eo = E(a), ho = Ye(o) || Xe(), mo = Le(o), qi = xi(a) || Xe(), Tr = ai(a), zr = Ni(a) || Xe(), Or = $e(a), wo = $e(a), xr = P(j), Er = ae(j), hr = Se(j) || Xe(), po = R(o), _o = Me(o), bo = V(o), So = Ei(o), mr = ki(o), Co = B(j), vo = K(j), Lo = Mr(o), ko = ar(o), Uo = ur(o), Qo = v(a), Yo = b(a), Po = lr(D), Ro = cr(D), Fo = Ir(A), Vo = we(o) || hi(A), Bo = se(o), Wo = S(a), Zo = dr(), Ho = Xe(), Go = Nr(), Jo = Dr(), $o = gr(), Xo = hi(A), Ko = we(o) && !hi(A), qo = X(j), es = F(j), is = or(o), ts = sr(o), rs = function(u) {
4397
4413
  if (!u || typeof u != "string") {
4398
4414
  console.error("No valid user agent string was provided");
4399
4415
  return;
4400
4416
  }
4401
- var l = a(u), x = l.device, m = l.browser, te = l.os, Oe = l.engine, ke = l.ua;
4417
+ var l = M(u), x = l.device, m = l.browser, te = l.os, Oe = l.engine, ke = l.ua;
4402
4418
  return jr({
4403
4419
  device: x,
4404
4420
  browser: m,
@@ -4407,57 +4423,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4407
4423
  ua: ke
4408
4424
  });
4409
4425
  }, ns = function(u) {
4410
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4426
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4411
4427
  return xr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4412
4428
  }, os = function(u) {
4413
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4429
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4414
4430
  return Or ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4415
4431
  }, ss = function(u) {
4416
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4432
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4417
4433
  return mr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4418
4434
  }, Ms = function(u) {
4419
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4435
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4420
4436
  return hr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4421
4437
  }, as = function(u) {
4422
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4423
- return Ki ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4438
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4439
+ return qi ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4424
4440
  }, us = function(u) {
4425
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4441
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4426
4442
  return zr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4427
4443
  }, ls = function(u) {
4428
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4444
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4429
4445
  return Er ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4430
4446
  }, cs = function(u) {
4431
4447
  var l = u.renderWithFragment, x = u.children;
4432
4448
  u.viewClassName, u.style;
4433
- var m = H(u, ["renderWithFragment", "children", "viewClassName", "style"]);
4449
+ var m = Q(u, ["renderWithFragment", "children", "viewClassName", "style"]);
4434
4450
  return Tr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4435
4451
  }, gs = function(u) {
4436
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4452
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4437
4453
  return yr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4438
4454
  }, ds = function(u) {
4439
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4455
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4440
4456
  return fr ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4441
4457
  }, Ns = function(u) {
4442
- var l = u.renderWithFragment, x = u.children, m = H(u, ["renderWithFragment", "children"]);
4458
+ var l = u.renderWithFragment, x = u.children, m = Q(u, ["renderWithFragment", "children"]);
4443
4459
  return Ar ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", m, x) : null;
4444
4460
  }, Ds = function(u) {
4445
4461
  var l = u.renderWithFragment, x = u.children;
4446
4462
  u.viewClassName, u.style;
4447
- var m = u.condition, te = H(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
4463
+ var m = u.condition, te = Q(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
4448
4464
  return m ? l ? t.createElement(i.Fragment, null, x) : t.createElement("div", te, x) : null;
4449
4465
  };
4450
4466
  function Is(f) {
4451
4467
  return /* @__PURE__ */ (function(u) {
4452
- ie(l, u);
4468
+ ee(l, u);
4453
4469
  function l(x) {
4454
4470
  var m;
4455
- return w(this, l), m = R(this, F(l).call(this, x)), m.isEventListenerAdded = !1, m.handleOrientationChange = m.handleOrientationChange.bind(V(m)), m.onOrientationChange = m.onOrientationChange.bind(V(m)), m.onPageLoad = m.onPageLoad.bind(V(m)), m.state = {
4471
+ return w(this, l), m = k(this, ue(l).call(this, x)), m.isEventListenerAdded = !1, m.handleOrientationChange = m.handleOrientationChange.bind(G(m)), m.onOrientationChange = m.onOrientationChange.bind(G(m)), m.onPageLoad = m.onPageLoad.bind(G(m)), m.state = {
4456
4472
  isLandscape: !1,
4457
4473
  isPortrait: !1
4458
4474
  }, m;
4459
4475
  }
4460
- return h(l, [{
4476
+ return p(l, [{
4461
4477
  key: "handleOrientationChange",
4462
4478
  value: function() {
4463
4479
  this.isEventListenerAdded || (this.isEventListenerAdded = !0);
@@ -4480,7 +4496,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4480
4496
  }, {
4481
4497
  key: "componentDidMount",
4482
4498
  value: function() {
4483
- (typeof window == "undefined" ? "undefined" : z(window)) !== void 0 && Ki && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
4499
+ (typeof window == "undefined" ? "undefined" : O(window)) !== void 0 && qi && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
4484
4500
  }
4485
4501
  }, {
4486
4502
  key: "componentWillUnmount",
@@ -4490,7 +4506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4490
4506
  }, {
4491
4507
  key: "render",
4492
4508
  value: function() {
4493
- return t.createElement(f, k({}, this.props, {
4509
+ return t.createElement(f, U({}, this.props, {
4494
4510
  isLandscape: this.state.isLandscape,
4495
4511
  isPortrait: this.state.isPortrait
4496
4512
  }));
@@ -4506,7 +4522,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4506
4522
  isLandscape: te === 90,
4507
4523
  orientation: te === 0 ? "portrait" : "landscape"
4508
4524
  };
4509
- }), u = $(f, 2), l = u[0], x = u[1], m = i.useCallback(function() {
4525
+ }), u = J(f, 2), l = u[0], x = u[1], m = i.useCallback(function() {
4510
4526
  var te = window.innerWidth > window.innerHeight ? 90 : 0, Oe = {
4511
4527
  isPortrait: te === 0,
4512
4528
  isLandscape: te === 90,
@@ -4515,20 +4531,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4515
4531
  l.orientation !== Oe.orientation && x(Oe);
4516
4532
  }, [l.orientation]);
4517
4533
  return i.useEffect(function() {
4518
- return (typeof window == "undefined" ? "undefined" : z(window)) !== void 0 && Ki && (m(), window.addEventListener("load", m, !1), window.addEventListener("resize", m, !1)), function() {
4534
+ return (typeof window == "undefined" ? "undefined" : O(window)) !== void 0 && qi && (m(), window.addEventListener("load", m, !1), window.addEventListener("resize", m, !1)), function() {
4519
4535
  window.removeEventListener("resize", m, !1), window.removeEventListener("load", m, !1);
4520
4536
  };
4521
4537
  }, [m]), l;
4522
4538
  }
4523
4539
  function wr(f) {
4524
4540
  var u = f || window.navigator.userAgent;
4525
- return a(u);
4541
+ return M(u);
4526
4542
  }
4527
4543
  function ys(f) {
4528
4544
  var u = f || window.navigator.userAgent, l = wr(u), x = jr(l);
4529
4545
  return [x, l];
4530
4546
  }
4531
- return L.AndroidView = ns, L.BrowserTypes = G, L.BrowserView = os, L.ConsoleView = ds, L.CustomView = Ds, L.IEView = ss, L.IOSView = Ms, L.MobileOnlyView = cs, L.MobileView = as, L.OsTypes = ge, L.SmartTVView = gs, L.TabletView = us, L.WearableView = Ns, L.WinPhoneView = ls, L.browserName = Uo, L.browserVersion = ko, L.deviceDetect = di, L.deviceType = Wo, L.engineName = Po, L.engineVersion = Ro, L.fullBrowserVersion = Lo, L.getSelectorsByUserAgent = rs, L.getUA = Fo, L.isAndroid = xr, L.isBrowser = Or, L.isChrome = po, L.isChromium = mo, L.isConsole = fr, L.isDesktop = wo, L.isEdge = Vo, L.isEdgeChromium = Xo, L.isElectron = $o, L.isEmbedded = Eo, L.isFirefox = _o, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Zo, L.isIPad13 = Ho, L.isIPhone13 = Go, L.isIPod13 = Jo, L.isLegacyEdge = Ko, L.isMIUI = is, L.isMacOs = es, L.isMobile = Ki, L.isMobileOnly = Tr, L.isMobileSafari = ho, L.isOpera = So, L.isSafari = bo, L.isSamsungBrowser = ts, L.isSmartTV = yr, L.isTablet = zr, L.isWearable = Ar, L.isWinPhone = Er, L.isWindows = qo, L.isYandex = Bo, L.mobileModel = Yo, L.mobileVendor = Qo, L.osName = vo, L.osVersion = Co, L.parseUserAgent = a, L.setUserAgent = ve, L.useDeviceData = wr, L.useDeviceSelectors = ys, L.useMobileOrientation = js, L.withOrientationChange = Is, L;
4547
+ return L.AndroidView = ns, L.BrowserTypes = Z, L.BrowserView = os, L.ConsoleView = ds, L.CustomView = Ds, L.IEView = ss, L.IOSView = Ms, L.MobileOnlyView = cs, L.MobileView = as, L.OsTypes = ge, L.SmartTVView = gs, L.TabletView = us, L.WearableView = Ns, L.WinPhoneView = ls, L.browserName = Uo, L.browserVersion = ko, L.deviceDetect = di, L.deviceType = Wo, L.engineName = Po, L.engineVersion = Ro, L.fullBrowserVersion = Lo, L.getSelectorsByUserAgent = rs, L.getUA = Fo, L.isAndroid = xr, L.isBrowser = Or, L.isChrome = po, L.isChromium = mo, L.isConsole = fr, L.isDesktop = wo, L.isEdge = Vo, L.isEdgeChromium = Xo, L.isElectron = $o, L.isEmbedded = Eo, L.isFirefox = _o, L.isIE = mr, L.isIOS = hr, L.isIOS13 = Zo, L.isIPad13 = Ho, L.isIPhone13 = Go, L.isIPod13 = Jo, L.isLegacyEdge = Ko, L.isMIUI = is, L.isMacOs = es, L.isMobile = qi, L.isMobileOnly = Tr, L.isMobileSafari = ho, L.isOpera = So, L.isSafari = bo, L.isSamsungBrowser = ts, L.isSmartTV = yr, L.isTablet = zr, L.isWearable = Ar, L.isWinPhone = Er, L.isWindows = qo, L.isYandex = Bo, L.mobileModel = Yo, L.mobileVendor = Qo, L.osName = vo, L.osVersion = Co, L.parseUserAgent = M, L.setUserAgent = ve, L.useDeviceData = wr, L.useDeviceSelectors = ys, L.useMobileOrientation = js, L.withOrientationChange = Is, L;
4532
4548
  }
4533
4549
  var Ii = la();
4534
4550
  const ca = {
@@ -4559,14 +4575,14 @@ const ca = {
4559
4575
  buttons: r,
4560
4576
  selectionLimit: n
4561
4577
  }) => {
4562
- var A, c;
4563
- const { perform: o } = zi(), s = Je(null), M = typeof n == "number" && (n === 0 || n > 1), D = (a) => De(null, null, function* () {
4578
+ var A, g;
4579
+ const { perform: o } = zi(), s = Ge(null), a = typeof n == "number" && (n === 0 || n > 1), D = (M) => je(null, null, function* () {
4564
4580
  var N;
4565
- const y = Array.from((N = a.currentTarget.files) != null ? N : []);
4581
+ const y = Array.from((N = M.currentTarget.files) != null ? N : []);
4566
4582
  if (y.length)
4567
4583
  try {
4568
- const z = (yield Promise.allSettled(
4569
- y.map((w) => De(null, null, function* () {
4584
+ const O = (yield Promise.allSettled(
4585
+ y.map((w) => je(null, null, function* () {
4570
4586
  return {
4571
4587
  content: yield Qn(w),
4572
4588
  metadata: {
@@ -4583,20 +4599,20 @@ const ca = {
4583
4599
  o({
4584
4600
  cancel: !1,
4585
4601
  permissionDenied: !1,
4586
- files: z
4602
+ files: O
4587
4603
  });
4588
4604
  } catch (I) {
4589
4605
  console.error("Error: ", I);
4590
4606
  }
4591
- }), j = () => De(null, null, function* () {
4592
- var a;
4593
- (a = s.current) == null || a.showPicker();
4607
+ }), j = () => je(null, null, function* () {
4608
+ var M;
4609
+ (M = s.current) == null || M.showPicker();
4594
4610
  });
4595
4611
  return Fe(() => {
4596
- De(null, null, function* () {
4612
+ je(null, null, function* () {
4597
4613
  if (Ii.isDesktop) return;
4598
- const a = yield Bs();
4599
- (a === "denied" || a === "error") && o({
4614
+ const M = yield Bs();
4615
+ (M === "denied" || M === "error") && o({
4600
4616
  cancel: !1,
4601
4617
  permissionDenied: !0,
4602
4618
  files: []
@@ -4605,27 +4621,27 @@ const ca = {
4605
4621
  }, []), /* @__PURE__ */ d(ci, { header: e, footer: i, backgroundColor: t, children: /* @__PURE__ */ d(be, { children: /* @__PURE__ */ d(
4606
4622
  "div",
4607
4623
  {
4608
- style: J(O({}, da), {
4624
+ style: H(z({}, da), {
4609
4625
  justifyContent: "center"
4610
4626
  }),
4611
4627
  children: [
4612
4628
  /* @__PURE__ */ d(
4613
4629
  "input",
4614
- J(O({
4630
+ H(z({
4615
4631
  style: ca,
4616
4632
  ref: s,
4617
4633
  type: "file",
4618
4634
  accept: "image/*",
4619
4635
  capture: "user"
4620
- }, M ? { multiple: !0 } : {}), {
4636
+ }, a ? { multiple: !0 } : {}), {
4621
4637
  onInput: D
4622
4638
  })
4623
4639
  ),
4624
- /* @__PURE__ */ d("button", { style: ga, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (A = r == null ? void 0 : r[0]) == null ? void 0 : A.image) == null ? void 0 : c.imageId }) })
4640
+ /* @__PURE__ */ d("button", { style: ga, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (g = (A = r == null ? void 0 : r[0]) == null ? void 0 : A.image) == null ? void 0 : g.imageId }) })
4625
4641
  ]
4626
4642
  }
4627
4643
  ) }) });
4628
- }, Ot = () => De(null, null, function* () {
4644
+ }, Ot = () => je(null, null, function* () {
4629
4645
  var e;
4630
4646
  try {
4631
4647
  const i = yield navigator.permissions.query({ name: "geolocation" });
@@ -4633,13 +4649,13 @@ const ca = {
4633
4649
  } catch (i) {
4634
4650
  return "unknown";
4635
4651
  }
4636
- }), Da = () => De(null, null, function* () {
4652
+ }), Da = () => je(null, null, function* () {
4637
4653
  try {
4638
4654
  return yield navigator.permissions.query({ name: "geolocation" });
4639
4655
  } catch (e) {
4640
4656
  return null;
4641
4657
  }
4642
- }), Ui = (e) => De(null, null, function* () {
4658
+ }), Qi = (e) => je(null, null, function* () {
4643
4659
  return new Promise((i) => {
4644
4660
  if (!navigator.geolocation)
4645
4661
  return i({
@@ -4760,47 +4776,48 @@ const ca = {
4760
4776
  description: n,
4761
4777
  buttons: o,
4762
4778
  backgroundColor: s,
4763
- popups: M,
4764
- askEveryTime: D
4779
+ popups: a,
4780
+ askEveryTime: D,
4781
+ getLocationTimeout: j
4765
4782
  }) => {
4766
- var F, ae;
4767
- const j = Nt.FORM, { perform: A } = zi(), { setIsProcessingCallback: c } = Us(), [a, y] = pe(!1), N = () => {
4768
- var Y;
4769
- (Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!0);
4770
- }, I = () => {
4771
- var Y;
4772
- (Y = z == null ? void 0 : z.popups) != null && Y.system_restricted || y(!1);
4773
- }, { devSettings: z } = ks(), w = !!((ae = (F = z == null ? void 0 : z.popups) == null ? void 0 : F.system_restricted) != null && ae.isOpen);
4783
+ var W, ne;
4784
+ const A = Nt.FORM, { perform: g } = zi(), { setIsProcessingCallback: M } = Us(), [y, N] = pe(!1), I = () => {
4785
+ var Q;
4786
+ (Q = w == null ? void 0 : w.popups) != null && Q.system_restricted || N(!0);
4787
+ }, O = () => {
4788
+ var Q;
4789
+ (Q = w == null ? void 0 : w.popups) != null && Q.system_restricted || N(!1);
4790
+ }, { devSettings: w } = ks(), _ = !!((ne = (W = w == null ? void 0 : w.popups) == null ? void 0 : W.system_restricted) != null && ne.isOpen);
4774
4791
  Fe(() => {
4775
- z && y(w);
4776
- }, [w, z]);
4777
- const _ = {
4792
+ w && N(_);
4793
+ }, [_, w]);
4794
+ const p = {
4778
4795
  enableHighAccuracy: !0,
4779
- timeout: 15e3,
4796
+ timeout: typeof j == "number" && j > 0 ? j * 1e3 : 15e3,
4780
4797
  maximumAge: 6e4
4781
- }, h = M == null ? void 0 : M.find((Y) => Y.reason === Ps.SYSTEM_RESTRICTED);
4798
+ }, h = a == null ? void 0 : a.find((Q) => Q.reason === Ps.SYSTEM_RESTRICTED);
4782
4799
  li(() => {
4783
- Ii.isSafari || D || c == null || c(!0);
4800
+ Ii.isSafari || D || M == null || M(!0);
4784
4801
  }, []), Fe(() => {
4785
4802
  if (Ii.isSafari || D) return;
4786
- let Y = !0;
4787
- return De(null, null, function* () {
4803
+ let Q = !0;
4804
+ return je(null, null, function* () {
4788
4805
  if ((yield Ot()) !== "granted") {
4789
- c == null || c(!1);
4806
+ M == null || M(!1);
4790
4807
  return;
4791
4808
  }
4792
- const V = yield Ui(_);
4793
- Y && A(V, j);
4809
+ const k = yield Qi(p);
4810
+ Q && g(k, A);
4794
4811
  }), () => {
4795
- Ii.isSafari || D || (Y = !1);
4812
+ Ii.isSafari || D || (Q = !1);
4796
4813
  };
4797
4814
  }, []), Fe(() => {
4798
4815
  if (Ii.isSafari) return;
4799
- let Y = !0, H = null;
4800
- return De(null, null, function* () {
4801
- const V = yield Da();
4802
- V && (H = V, V.onchange = () => De(null, null, function* () {
4803
- if (V.state === "denied" && (c == null || c(!0), A(
4816
+ let Q = !0, G = null;
4817
+ return je(null, null, function* () {
4818
+ const k = yield Da();
4819
+ k && (G = k, k.onchange = () => je(null, null, function* () {
4820
+ if (k.state === "denied" && (M == null || M(!0), g(
4804
4821
  {
4805
4822
  location: {
4806
4823
  locationState: "application_location_restricted",
@@ -4809,46 +4826,46 @@ const ca = {
4809
4826
  error: "Application location services restricted or unavailable"
4810
4827
  }
4811
4828
  },
4812
- j
4813
- )), V.state === "granted") {
4814
- c == null || c(!0);
4815
- const R = yield Ui(_);
4816
- if (!Y) return;
4817
- A(R, j);
4829
+ A
4830
+ )), k.state === "granted") {
4831
+ M == null || M(!0);
4832
+ const J = yield Qi(p);
4833
+ if (!Q) return;
4834
+ g(J, A);
4818
4835
  }
4819
4836
  }));
4820
4837
  }), () => {
4821
- Ii.isSafari || (Y = !1, H && (H.onchange = null));
4838
+ Ii.isSafari || (Q = !1, G && (G.onchange = null));
4822
4839
  };
4823
4840
  }, []);
4824
- const p = (Y) => De(null, null, function* () {
4825
- Y.preventDefault();
4826
- const H = yield Ot();
4827
- if (H === "denied") {
4828
- N();
4841
+ const U = (Q) => je(null, null, function* () {
4842
+ Q.preventDefault();
4843
+ const G = yield Ot();
4844
+ if (G === "denied") {
4845
+ I();
4829
4846
  return;
4830
4847
  }
4831
- if (H === "prompt" && (yield Ui()), H === "granted") {
4832
- const V = yield Ui(_);
4833
- A(V, j);
4848
+ if (G === "prompt" && (yield Qi()), G === "granted") {
4849
+ const k = yield Qi(p);
4850
+ g(k, A);
4834
4851
  }
4835
- }), k = (Y) => De(null, null, function* () {
4836
- if (Y.preventDefault(), (yield Ot()) === "denied") {
4837
- N();
4852
+ }), ee = (Q) => je(null, null, function* () {
4853
+ if (Q.preventDefault(), (yield Ot()) === "denied") {
4854
+ I();
4838
4855
  return;
4839
4856
  }
4840
- c == null || c(!0);
4841
- const V = yield Ui(_);
4842
- A(V, j);
4843
- }), ie = (Y) => {
4844
- Y.preventDefault(), I();
4857
+ M == null || M(!0);
4858
+ const k = yield Qi(p);
4859
+ g(k, A);
4860
+ }), ue = (Q) => {
4861
+ Q.preventDefault(), O();
4845
4862
  };
4846
4863
  return /* @__PURE__ */ d(ci, { header: i, footer: t, backgroundColor: s, children: [
4847
4864
  /* @__PURE__ */ d("div", { style: Ia, children: [
4848
4865
  /* @__PURE__ */ d("div", { style: ja, children: [
4849
- r && /* @__PURE__ */ d("div", { style: fa, children: /* @__PURE__ */ d(_e, O({}, r)) }),
4850
- e && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(fe, O({}, e)) }),
4851
- n && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(jt, O({}, n)) })
4866
+ r && /* @__PURE__ */ d("div", { style: fa, children: /* @__PURE__ */ d(_e, z({}, r)) }),
4867
+ e && /* @__PURE__ */ d("div", { style: Aa, children: /* @__PURE__ */ d(fe, z({}, e)) }),
4868
+ n && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(jt, z({}, n)) })
4852
4869
  ] }),
4853
4870
  !!(o != null && o.length) && /* @__PURE__ */ d(
4854
4871
  "div",
@@ -4857,39 +4874,39 @@ const ca = {
4857
4874
  display: "flex",
4858
4875
  flexDirection: "column"
4859
4876
  },
4860
- children: o.map((Y, H) => /* @__PURE__ */ d("div", { style: { padding: "5px" }, children: /* @__PURE__ */ d(
4877
+ children: o.map((Q, G) => /* @__PURE__ */ d("div", { style: { padding: "5px" }, children: /* @__PURE__ */ d(
4861
4878
  ut,
4862
- O(O({
4879
+ z(z({
4863
4880
  dataTestId: "question-button"
4864
- }, Y), Y.type === "FORM" ? {
4865
- onClick: Ii.isSafari ? k : p
4881
+ }, Q), Q.type === "FORM" ? {
4882
+ onClick: Ii.isSafari ? ee : U
4866
4883
  } : {})
4867
- ) }, H))
4884
+ ) }, G))
4868
4885
  }
4869
4886
  )
4870
4887
  ] }),
4871
- h && a && /* @__PURE__ */ d(
4888
+ h && y && /* @__PURE__ */ d(
4872
4889
  "div",
4873
4890
  {
4874
4891
  style: ya,
4875
- onPointerDown: (Y) => {
4876
- Y.preventDefault(), Y.stopPropagation(), I();
4892
+ onPointerDown: (Q) => {
4893
+ Q.preventDefault(), Q.stopPropagation(), O();
4877
4894
  },
4878
4895
  children: /* @__PURE__ */ d(
4879
4896
  "div",
4880
4897
  {
4881
- style: J(O({}, za), {
4898
+ style: H(z({}, za), {
4882
4899
  borderRadius: (h == null ? void 0 : h.cornerRadius) || "27px",
4883
4900
  backgroundColor: (h == null ? void 0 : h.backgroundColor) || "#ffffff"
4884
4901
  }),
4885
4902
  children: [
4886
- /* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d(fe, O({}, O({ fontSize: "24px" }, h.title))) }),
4887
- /* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe, O({}, O({ fontSize: "17px" }, h.message))) }) }),
4903
+ /* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "24px" }, h.title))) }),
4904
+ /* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d("div", { style: Ea, children: /* @__PURE__ */ d(fe, z({}, z({ fontSize: "17px" }, h.message))) }) }),
4888
4905
  h.actionButton1 && /* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d(
4889
4906
  ut,
4890
- O(O({
4907
+ z(z({
4891
4908
  dataTestId: "question-button"
4892
- }, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick: ie } : {})
4909
+ }, h.actionButton1), h.actionButton1.type === "FORM" ? { onClick: ue } : {})
4893
4910
  ) })
4894
4911
  ]
4895
4912
  }
@@ -4898,10 +4915,10 @@ const ca = {
4898
4915
  )
4899
4916
  ] });
4900
4917
  }, yn = (e) => {
4901
- const { templateId: i, templateLayout: t, dataSource: r, properties: n } = e, { perform: o } = zi();
4918
+ const { templateId: i, templateLayout: t, dataSource: r, properties: n, getLocationTimeout: o } = e, { perform: s } = zi();
4902
4919
  if (!i || !t) return /* @__PURE__ */ d(Jr, {});
4903
- const s = n != null && n.length ? JSON.stringify(n) : "default-key";
4904
- if (i === We.STATUS)
4920
+ const a = n != null && n.length ? JSON.stringify(n) : "default-key";
4921
+ if (i === Ke.STATUS)
4905
4922
  return /* @__PURE__ */ d(
4906
4923
  Ks,
4907
4924
  {
@@ -4914,7 +4931,7 @@ const ca = {
4914
4931
  backgroundColor: t == null ? void 0 : t.backgroundColor
4915
4932
  }
4916
4933
  );
4917
- if (i === We.INFO)
4934
+ if (i === Ke.INFO)
4918
4935
  return /* @__PURE__ */ d(
4919
4936
  iM,
4920
4937
  {
@@ -4927,7 +4944,7 @@ const ca = {
4927
4944
  backgroundColor: t == null ? void 0 : t.backgroundColor
4928
4945
  }
4929
4946
  );
4930
- if (i === We.GEOLOCATION)
4947
+ if (i === Ke.GEOLOCATION)
4931
4948
  return /* @__PURE__ */ d(
4932
4949
  ma,
4933
4950
  {
@@ -4939,10 +4956,11 @@ const ca = {
4939
4956
  buttons: t.buttons,
4940
4957
  backgroundColor: t == null ? void 0 : t.backgroundColor,
4941
4958
  popups: t.popups,
4942
- askEveryTime: t.askEveryTime
4959
+ askEveryTime: t.askEveryTime,
4960
+ getLocationTimeout: o
4943
4961
  }
4944
4962
  );
4945
- if (i === We.PROGRESS)
4963
+ if (i === Ke.PROGRESS)
4946
4964
  return /* @__PURE__ */ d(
4947
4965
  Jr,
4948
4966
  {
@@ -4952,7 +4970,7 @@ const ca = {
4952
4970
  backgroundColor: t == null ? void 0 : t.backgroundColor
4953
4971
  }
4954
4972
  );
4955
- if (i === We.INFO_DETAILS)
4973
+ if (i === Ke.INFO_DETAILS)
4956
4974
  return /* @__PURE__ */ d(
4957
4975
  sM,
4958
4976
  {
@@ -4964,7 +4982,7 @@ const ca = {
4964
4982
  backgroundColor: t == null ? void 0 : t.backgroundColor
4965
4983
  }
4966
4984
  );
4967
- if (i === We.CAMERA)
4985
+ if (i === Ke.CAMERA)
4968
4986
  return /* @__PURE__ */ d(
4969
4987
  Na,
4970
4988
  {
@@ -4975,7 +4993,7 @@ const ca = {
4975
4993
  selectionLimit: e == null ? void 0 : e.selectionLimit
4976
4994
  }
4977
4995
  );
4978
- if (i === We.GALLERY)
4996
+ if (i === Ke.GALLERY)
4979
4997
  return /* @__PURE__ */ d(
4980
4998
  oa,
4981
4999
  {
@@ -4986,7 +5004,7 @@ const ca = {
4986
5004
  selectionLimit: e == null ? void 0 : e.selectionLimit
4987
5005
  }
4988
5006
  );
4989
- if (r && (r != null && r.questions.length) && i === We.QUESTIONS)
5007
+ if (i === Ke.QUESTIONS)
4990
5008
  return /* @__PURE__ */ d(
4991
5009
  ia,
4992
5010
  {
@@ -4999,33 +5017,26 @@ const ca = {
4999
5017
  buttons: t == null ? void 0 : t.buttons,
5000
5018
  backgroundColor: t == null ? void 0 : t.backgroundColor
5001
5019
  },
5002
- s
5020
+ a
5003
5021
  );
5004
- if (i === We.QUESTIONS && !r) {
5005
- const D = new Wi({
5006
- errorCode: at.DECODING_FAILED,
5007
- message: "No data for questions"
5008
- });
5009
- return o(D), null;
5010
- }
5011
- const M = new Wi({
5012
- errorCode: at.DECODING_FAILED,
5013
- message: "Unsupported step template"
5022
+ const D = new bi({
5023
+ errorCode: Ri.DECODING_FAILED,
5024
+ message: "Unsupported step template id"
5014
5025
  });
5015
- return o(M), null;
5026
+ return s(D), null;
5016
5027
  };
5017
5028
  let xt = !1;
5018
5029
  const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
5019
5030
  /* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
5020
5031
  e
5021
5032
  ] }), fn = ({ children: e }) => /* @__PURE__ */ d("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: e }), wa = ({ isProcessing: e, moduleProps: i, perform: t, devSettings: r }) => {
5022
- const { templateId: n, templateLayout: o, dataSource: s, properties: M } = i, D = (j, A) => {
5033
+ const { templateId: n, templateLayout: o, dataSource: s, properties: a } = i, D = (j, A) => {
5023
5034
  t && t(j, A);
5024
5035
  };
5025
- return n === We.QUESTIONS ? /* @__PURE__ */ d(Hr, { perform: D, children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
5036
+ return n === Ke.QUESTIONS ? /* @__PURE__ */ d(Hr, { perform: D, children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
5026
5037
  yn,
5027
5038
  {
5028
- properties: M,
5039
+ properties: a,
5029
5040
  dataSource: s,
5030
5041
  templateId: n,
5031
5042
  templateLayout: o
@@ -5038,14 +5049,14 @@ const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
5038
5049
  devSettings: r,
5039
5050
  children: /* @__PURE__ */ d(fn, { children: /* @__PURE__ */ d(
5040
5051
  yn,
5041
- O(O({
5052
+ z(z(z({
5042
5053
  templateId: n,
5043
5054
  templateLayout: o
5044
- }, i.backgroundColor ? { backgroundColor: i.backgroundColor } : {}), typeof i.selectionLimit == "number" ? { selectionLimit: i.selectionLimit } : {})
5055
+ }, i.backgroundColor ? { backgroundColor: i.backgroundColor } : {}), typeof i.selectionLimit == "number" ? { selectionLimit: i.selectionLimit } : {}), typeof i.getLocationTimeout == "number" ? { getLocationTimeout: i.getLocationTimeout } : {})
5045
5056
  ) })
5046
5057
  }
5047
5058
  );
5048
- }, Vi = class Vi extends bs {
5059
+ }, Wi = class Wi extends bs {
5049
5060
  constructor() {
5050
5061
  super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
5051
5062
  }
@@ -5115,15 +5126,15 @@ const _a = ({ children: e }) => /* @__PURE__ */ d(be, { children: [
5115
5126
  xt = !1;
5116
5127
  }
5117
5128
  };
5118
- Vi.displayName = Mt, Vi.getSupportedTemplates = () => Object.values(We), Vi.getIdentifier = () => Mt;
5119
- let vt = Vi;
5120
- Ss(Mt, vt);
5129
+ Wi.displayName = at, Wi.getSupportedTemplates = () => Object.values(Ke), Wi.getIdentifier = () => at;
5130
+ let vt = Wi;
5131
+ Ss(at, vt);
5121
5132
  export {
5122
5133
  vt as GuiIdv,
5123
5134
  wa as GuiIdvReactComponent,
5124
- We as GuiIdvSteps,
5135
+ Ke as GuiIdvSteps,
5125
5136
  _a as GuiIdvStyleInjectionWrapper,
5126
- at as GuiModuleError,
5137
+ Ri as GuiModuleError,
5127
5138
  ce as IDV_UI_ICONS,
5128
5139
  Ps as PopupReason,
5129
5140
  _t as idvIconDataUrlMap