stone-kit 0.0.676 → 0.0.680

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.
@@ -24,11 +24,11 @@ function Tr() {
24
24
  if (Ft)
25
25
  return se;
26
26
  Ft = 1;
27
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, k = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, te = e ? Symbol.for("react.memo") : 60115, ne = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
28
- function J(o) {
27
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, J = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
28
+ function ne(o) {
29
29
  if (typeof o == "object" && o !== null) {
30
- var E = o.$$typeof;
31
- switch (E) {
30
+ var _ = o.$$typeof;
31
+ switch (_) {
32
32
  case r:
33
33
  switch (o = o.type, o) {
34
34
  case X:
@@ -40,51 +40,51 @@ function Tr() {
40
40
  return o;
41
41
  default:
42
42
  switch (o = o && o.$$typeof, o) {
43
- case k:
43
+ case S:
44
44
  case L:
45
- case ne:
46
- case te:
45
+ case re:
46
+ case ee:
47
47
  case P:
48
48
  return o;
49
49
  default:
50
- return E;
50
+ return _;
51
51
  }
52
52
  }
53
53
  case t:
54
- return E;
54
+ return _;
55
55
  }
56
56
  }
57
57
  }
58
- function ee(o) {
59
- return J(o) === H;
58
+ function K(o) {
59
+ return ne(o) === H;
60
60
  }
61
- return se.AsyncMode = X, se.ConcurrentMode = H, se.ContextConsumer = k, se.ContextProvider = P, se.Element = r, se.ForwardRef = L, se.Fragment = l, se.Lazy = ne, se.Memo = te, se.Portal = t, se.Profiler = i, se.StrictMode = f, se.Suspense = D, se.isAsyncMode = function(o) {
62
- return ee(o) || J(o) === X;
63
- }, se.isConcurrentMode = ee, se.isContextConsumer = function(o) {
64
- return J(o) === k;
61
+ return se.AsyncMode = X, se.ConcurrentMode = H, se.ContextConsumer = S, se.ContextProvider = P, se.Element = r, se.ForwardRef = L, se.Fragment = l, se.Lazy = re, se.Memo = ee, se.Portal = t, se.Profiler = i, se.StrictMode = f, se.Suspense = D, se.isAsyncMode = function(o) {
62
+ return K(o) || ne(o) === X;
63
+ }, se.isConcurrentMode = K, se.isContextConsumer = function(o) {
64
+ return ne(o) === S;
65
65
  }, se.isContextProvider = function(o) {
66
- return J(o) === P;
66
+ return ne(o) === P;
67
67
  }, se.isElement = function(o) {
68
68
  return typeof o == "object" && o !== null && o.$$typeof === r;
69
69
  }, se.isForwardRef = function(o) {
70
- return J(o) === L;
70
+ return ne(o) === L;
71
71
  }, se.isFragment = function(o) {
72
- return J(o) === l;
72
+ return ne(o) === l;
73
73
  }, se.isLazy = function(o) {
74
- return J(o) === ne;
74
+ return ne(o) === re;
75
75
  }, se.isMemo = function(o) {
76
- return J(o) === te;
76
+ return ne(o) === ee;
77
77
  }, se.isPortal = function(o) {
78
- return J(o) === t;
78
+ return ne(o) === t;
79
79
  }, se.isProfiler = function(o) {
80
- return J(o) === i;
80
+ return ne(o) === i;
81
81
  }, se.isStrictMode = function(o) {
82
- return J(o) === f;
82
+ return ne(o) === f;
83
83
  }, se.isSuspense = function(o) {
84
- return J(o) === D;
84
+ return ne(o) === D;
85
85
  }, se.isValidElementType = function(o) {
86
- return typeof o == "string" || typeof o == "function" || o === l || o === H || o === i || o === f || o === D || o === ie || typeof o == "object" && o !== null && (o.$$typeof === ne || o.$$typeof === te || o.$$typeof === P || o.$$typeof === k || o.$$typeof === L || o.$$typeof === K || o.$$typeof === ue || o.$$typeof === Z || o.$$typeof === Q);
87
- }, se.typeOf = J, se;
86
+ return typeof o == "string" || typeof o == "function" || o === l || o === H || o === i || o === f || o === D || o === ie || typeof o == "object" && o !== null && (o.$$typeof === re || o.$$typeof === ee || o.$$typeof === P || o.$$typeof === S || o.$$typeof === L || o.$$typeof === J || o.$$typeof === ue || o.$$typeof === Z || o.$$typeof === Q);
87
+ }, se.typeOf = ne, se;
88
88
  }
89
89
  var oe = {};
90
90
  /** @license React v16.13.1
@@ -98,12 +98,12 @@ var oe = {};
98
98
  var Dt;
99
99
  function Rr() {
100
100
  return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
101
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, k = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, te = e ? Symbol.for("react.memo") : 60115, ne = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
102
- function J(h) {
101
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, l = e ? Symbol.for("react.fragment") : 60107, f = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, P = e ? Symbol.for("react.provider") : 60109, S = e ? Symbol.for("react.context") : 60110, X = e ? Symbol.for("react.async_mode") : 60111, H = e ? Symbol.for("react.concurrent_mode") : 60111, L = e ? Symbol.for("react.forward_ref") : 60112, D = e ? Symbol.for("react.suspense") : 60113, ie = e ? Symbol.for("react.suspense_list") : 60120, ee = e ? Symbol.for("react.memo") : 60115, re = e ? Symbol.for("react.lazy") : 60116, Q = e ? Symbol.for("react.block") : 60121, J = e ? Symbol.for("react.fundamental") : 60117, ue = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
102
+ function ne(h) {
103
103
  return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
104
- h === l || h === H || h === i || h === f || h === D || h === ie || typeof h == "object" && h !== null && (h.$$typeof === ne || h.$$typeof === te || h.$$typeof === P || h.$$typeof === k || h.$$typeof === L || h.$$typeof === K || h.$$typeof === ue || h.$$typeof === Z || h.$$typeof === Q);
104
+ h === l || h === H || h === i || h === f || h === D || h === ie || typeof h == "object" && h !== null && (h.$$typeof === re || h.$$typeof === ee || h.$$typeof === P || h.$$typeof === S || h.$$typeof === L || h.$$typeof === J || h.$$typeof === ue || h.$$typeof === Z || h.$$typeof === Q);
105
105
  }
106
- function ee(h) {
106
+ function K(h) {
107
107
  if (typeof h == "object" && h !== null) {
108
108
  var I = h.$$typeof;
109
109
  switch (I) {
@@ -120,10 +120,10 @@ function Rr() {
120
120
  default:
121
121
  var $ = N && N.$$typeof;
122
122
  switch ($) {
123
- case k:
123
+ case S:
124
124
  case L:
125
- case ne:
126
- case te:
125
+ case re:
126
+ case ee:
127
127
  case P:
128
128
  return $;
129
129
  default:
@@ -135,47 +135,47 @@ function Rr() {
135
135
  }
136
136
  }
137
137
  }
138
- var o = X, E = H, b = k, m = P, S = r, V = L, W = l, O = ne, B = te, U = t, M = i, A = f, Y = D, G = !1;
138
+ var o = X, _ = H, m = S, b = P, E = r, V = L, W = l, O = re, B = ee, U = t, M = i, A = f, Y = D, G = !1;
139
139
  function le(h) {
140
- return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(h) || ee(h) === X;
140
+ return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(h) || K(h) === X;
141
141
  }
142
142
  function g(h) {
143
- return ee(h) === H;
143
+ return K(h) === H;
144
144
  }
145
- function _(h) {
146
- return ee(h) === k;
145
+ function k(h) {
146
+ return K(h) === S;
147
147
  }
148
148
  function v(h) {
149
- return ee(h) === P;
149
+ return K(h) === P;
150
150
  }
151
151
  function u(h) {
152
152
  return typeof h == "object" && h !== null && h.$$typeof === r;
153
153
  }
154
154
  function a(h) {
155
- return ee(h) === L;
155
+ return K(h) === L;
156
156
  }
157
157
  function c(h) {
158
- return ee(h) === l;
158
+ return K(h) === l;
159
159
  }
160
160
  function y(h) {
161
- return ee(h) === ne;
161
+ return K(h) === re;
162
162
  }
163
163
  function p(h) {
164
- return ee(h) === te;
164
+ return K(h) === ee;
165
165
  }
166
166
  function F(h) {
167
- return ee(h) === t;
167
+ return K(h) === t;
168
168
  }
169
169
  function C(h) {
170
- return ee(h) === i;
170
+ return K(h) === i;
171
171
  }
172
172
  function T(h) {
173
- return ee(h) === f;
173
+ return K(h) === f;
174
174
  }
175
175
  function z(h) {
176
- return ee(h) === D;
176
+ return K(h) === D;
177
177
  }
178
- oe.AsyncMode = o, oe.ConcurrentMode = E, oe.ContextConsumer = b, oe.ContextProvider = m, oe.Element = S, oe.ForwardRef = V, oe.Fragment = W, oe.Lazy = O, oe.Memo = B, oe.Portal = U, oe.Profiler = M, oe.StrictMode = A, oe.Suspense = Y, oe.isAsyncMode = le, oe.isConcurrentMode = g, oe.isContextConsumer = _, oe.isContextProvider = v, oe.isElement = u, oe.isForwardRef = a, oe.isFragment = c, oe.isLazy = y, oe.isMemo = p, oe.isPortal = F, oe.isProfiler = C, oe.isStrictMode = T, oe.isSuspense = z, oe.isValidElementType = J, oe.typeOf = ee;
178
+ oe.AsyncMode = o, oe.ConcurrentMode = _, oe.ContextConsumer = m, oe.ContextProvider = b, oe.Element = E, oe.ForwardRef = V, oe.Fragment = W, oe.Lazy = O, oe.Memo = B, oe.Portal = U, oe.Profiler = M, oe.StrictMode = A, oe.Suspense = Y, oe.isAsyncMode = le, oe.isConcurrentMode = g, oe.isContextConsumer = k, oe.isContextProvider = v, oe.isElement = u, oe.isForwardRef = a, oe.isFragment = c, oe.isLazy = y, oe.isMemo = p, oe.isPortal = F, oe.isProfiler = C, oe.isStrictMode = T, oe.isSuspense = z, oe.isValidElementType = ne, oe.typeOf = K;
179
179
  }()), oe;
180
180
  }
181
181
  var Mt;
@@ -205,8 +205,8 @@ function Vr() {
205
205
  var i = new String("abc");
206
206
  if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
207
207
  return !1;
208
- for (var P = {}, k = 0; k < 10; k++)
209
- P["_" + String.fromCharCode(k)] = k;
208
+ for (var P = {}, S = 0; S < 10; S++)
209
+ P["_" + String.fromCharCode(S)] = S;
210
210
  var X = Object.getOwnPropertyNames(P).map(function(L) {
211
211
  return P[L];
212
212
  });
@@ -221,14 +221,14 @@ function Vr() {
221
221
  }
222
222
  }
223
223
  return ut = f() ? Object.assign : function(i, P) {
224
- for (var k, X = l(i), H, L = 1; L < arguments.length; L++) {
225
- k = Object(arguments[L]);
226
- for (var D in k)
227
- r.call(k, D) && (X[D] = k[D]);
224
+ for (var S, X = l(i), H, L = 1; L < arguments.length; L++) {
225
+ S = Object(arguments[L]);
226
+ for (var D in S)
227
+ r.call(S, D) && (X[D] = S[D]);
228
228
  if (e) {
229
- H = e(k);
229
+ H = e(S);
230
230
  for (var ie = 0; ie < H.length; ie++)
231
- t.call(k, H[ie]) && (X[H[ie]] = k[H[ie]]);
231
+ t.call(S, H[ie]) && (X[H[ie]] = S[H[ie]]);
232
232
  }
233
233
  }
234
234
  return X;
@@ -264,7 +264,7 @@ function Fr() {
264
264
  }
265
265
  };
266
266
  }
267
- function f(i, P, k, X, H) {
267
+ function f(i, P, S, X, H) {
268
268
  if (process.env.NODE_ENV !== "production") {
269
269
  for (var L in i)
270
270
  if (l(i, L)) {
@@ -272,21 +272,21 @@ function Fr() {
272
272
  try {
273
273
  if (typeof i[L] != "function") {
274
274
  var ie = Error(
275
- (X || "React class") + ": " + k + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
275
+ (X || "React class") + ": " + S + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
276
276
  );
277
277
  throw ie.name = "Invariant Violation", ie;
278
278
  }
279
- D = i[L](P, L, X, k, null, r);
280
- } catch (ne) {
281
- D = ne;
279
+ D = i[L](P, L, X, S, null, r);
280
+ } catch (re) {
281
+ D = re;
282
282
  }
283
283
  if (D && !(D instanceof Error) && e(
284
- (X || "React class") + ": type specification of " + k + " `" + L + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof D + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
284
+ (X || "React class") + ": type specification of " + S + " `" + L + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof D + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
285
285
  ), D instanceof Error && !(D.message in t)) {
286
286
  t[D.message] = !0;
287
- var te = H ? H() : "";
287
+ var ee = H ? H() : "";
288
288
  e(
289
- "Failed " + k + " type: " + D.message + (te ?? "")
289
+ "Failed " + S + " type: " + D.message + (ee ?? "")
290
290
  );
291
291
  }
292
292
  }
@@ -303,8 +303,8 @@ function Dr() {
303
303
  Nt = 1;
304
304
  var e = nr(), r = Vr(), t = _t(), l = ir(), f = Fr(), i = function() {
305
305
  };
306
- process.env.NODE_ENV !== "production" && (i = function(k) {
307
- var X = "Warning: " + k;
306
+ process.env.NODE_ENV !== "production" && (i = function(S) {
307
+ var X = "Warning: " + S;
308
308
  typeof console < "u" && console.error(X);
309
309
  try {
310
310
  throw new Error(X);
@@ -314,14 +314,14 @@ function Dr() {
314
314
  function P() {
315
315
  return null;
316
316
  }
317
- return dt = function(k, X) {
317
+ return dt = function(S, X) {
318
318
  var H = typeof Symbol == "function" && Symbol.iterator, L = "@@iterator";
319
319
  function D(g) {
320
- var _ = g && (H && g[H] || g[L]);
321
- if (typeof _ == "function")
322
- return _;
320
+ var k = g && (H && g[H] || g[L]);
321
+ if (typeof k == "function")
322
+ return k;
323
323
  }
324
- var ie = "<<anonymous>>", te = {
324
+ var ie = "<<anonymous>>", ee = {
325
325
  array: ue("array"),
326
326
  bigint: ue("bigint"),
327
327
  bool: ue("boolean"),
@@ -331,27 +331,27 @@ function Dr() {
331
331
  string: ue("string"),
332
332
  symbol: ue("symbol"),
333
333
  any: Z(),
334
- arrayOf: J,
335
- element: ee(),
334
+ arrayOf: ne,
335
+ element: K(),
336
336
  elementType: o(),
337
- instanceOf: E,
337
+ instanceOf: _,
338
338
  node: V(),
339
- objectOf: m,
340
- oneOf: b,
341
- oneOfType: S,
339
+ objectOf: b,
340
+ oneOf: m,
341
+ oneOfType: E,
342
342
  shape: O,
343
343
  exact: B
344
344
  };
345
- function ne(g, _) {
346
- return g === _ ? g !== 0 || 1 / g === 1 / _ : g !== g && _ !== _;
345
+ function re(g, k) {
346
+ return g === k ? g !== 0 || 1 / g === 1 / k : g !== g && k !== k;
347
347
  }
348
- function Q(g, _) {
349
- this.message = g, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
348
+ function Q(g, k) {
349
+ this.message = g, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
350
350
  }
351
351
  Q.prototype = Error.prototype;
352
- function K(g) {
352
+ function J(g) {
353
353
  if (process.env.NODE_ENV !== "production")
354
- var _ = {}, v = 0;
354
+ var k = {}, v = 0;
355
355
  function u(c, y, p, F, C, T, z) {
356
356
  if (F = F || ie, T = T || p, z !== t) {
357
357
  if (X) {
@@ -361,10 +361,10 @@ function Dr() {
361
361
  throw h.name = "Invariant Violation", h;
362
362
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
363
363
  var I = F + ":" + p;
364
- !_[I] && // Avoid spamming the console because they are often not actionable except for lib authors
364
+ !k[I] && // Avoid spamming the console because they are often not actionable except for lib authors
365
365
  v < 3 && (i(
366
366
  "You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
367
- ), _[I] = !0, v++);
367
+ ), k[I] = !0, v++);
368
368
  }
369
369
  }
370
370
  return y[p] == null ? c ? y[p] === null ? new Q("The " + C + " `" + T + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new Q("The " + C + " `" + T + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : g(y, p, F, C, T);
@@ -373,7 +373,7 @@ function Dr() {
373
373
  return a.isRequired = u.bind(null, !0), a;
374
374
  }
375
375
  function ue(g) {
376
- function _(v, u, a, c, y, p) {
376
+ function k(v, u, a, c, y, p) {
377
377
  var F = v[u], C = A(F);
378
378
  if (C !== g) {
379
379
  var T = Y(F);
@@ -384,13 +384,13 @@ function Dr() {
384
384
  }
385
385
  return null;
386
386
  }
387
- return K(_);
387
+ return J(k);
388
388
  }
389
389
  function Z() {
390
- return K(P);
390
+ return J(P);
391
391
  }
392
- function J(g) {
393
- function _(v, u, a, c, y) {
392
+ function ne(g) {
393
+ function k(v, u, a, c, y) {
394
394
  if (typeof g != "function")
395
395
  return new Q("Property `" + y + "` of component `" + a + "` has invalid PropType notation inside arrayOf.");
396
396
  var p = v[u];
@@ -405,48 +405,48 @@ function Dr() {
405
405
  }
406
406
  return null;
407
407
  }
408
- return K(_);
408
+ return J(k);
409
409
  }
410
- function ee() {
411
- function g(_, v, u, a, c) {
412
- var y = _[v];
413
- if (!k(y)) {
410
+ function K() {
411
+ function g(k, v, u, a, c) {
412
+ var y = k[v];
413
+ if (!S(y)) {
414
414
  var p = A(y);
415
415
  return new Q("Invalid " + a + " `" + c + "` of type " + ("`" + p + "` supplied to `" + u + "`, expected a single ReactElement."));
416
416
  }
417
417
  return null;
418
418
  }
419
- return K(g);
419
+ return J(g);
420
420
  }
421
421
  function o() {
422
- function g(_, v, u, a, c) {
423
- var y = _[v];
422
+ function g(k, v, u, a, c) {
423
+ var y = k[v];
424
424
  if (!e.isValidElementType(y)) {
425
425
  var p = A(y);
426
426
  return new Q("Invalid " + a + " `" + c + "` of type " + ("`" + p + "` supplied to `" + u + "`, expected a single ReactElement type."));
427
427
  }
428
428
  return null;
429
429
  }
430
- return K(g);
430
+ return J(g);
431
431
  }
432
- function E(g) {
433
- function _(v, u, a, c, y) {
432
+ function _(g) {
433
+ function k(v, u, a, c, y) {
434
434
  if (!(v[u] instanceof g)) {
435
435
  var p = g.name || ie, F = le(v[u]);
436
436
  return new Q("Invalid " + c + " `" + y + "` of type " + ("`" + F + "` supplied to `" + a + "`, expected ") + ("instance of `" + p + "`."));
437
437
  }
438
438
  return null;
439
439
  }
440
- return K(_);
440
+ return J(k);
441
441
  }
442
- function b(g) {
442
+ function m(g) {
443
443
  if (!Array.isArray(g))
444
444
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
445
445
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
446
446
  ) : i("Invalid argument supplied to oneOf, expected an array.")), P;
447
- function _(v, u, a, c, y) {
447
+ function k(v, u, a, c, y) {
448
448
  for (var p = v[u], F = 0; F < g.length; F++)
449
- if (ne(p, g[F]))
449
+ if (re(p, g[F]))
450
450
  return null;
451
451
  var C = JSON.stringify(g, function(z, h) {
452
452
  var I = Y(h);
@@ -454,10 +454,10 @@ function Dr() {
454
454
  });
455
455
  return new Q("Invalid " + c + " `" + y + "` of value `" + String(p) + "` " + ("supplied to `" + a + "`, expected one of " + C + "."));
456
456
  }
457
- return K(_);
457
+ return J(k);
458
458
  }
459
- function m(g) {
460
- function _(v, u, a, c, y) {
459
+ function b(g) {
460
+ function k(v, u, a, c, y) {
461
461
  if (typeof g != "function")
462
462
  return new Q("Property `" + y + "` of component `" + a + "` has invalid PropType notation inside objectOf.");
463
463
  var p = v[u], F = A(p);
@@ -471,16 +471,16 @@ function Dr() {
471
471
  }
472
472
  return null;
473
473
  }
474
- return K(_);
474
+ return J(k);
475
475
  }
476
- function S(g) {
476
+ function E(g) {
477
477
  if (!Array.isArray(g))
478
478
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), P;
479
- for (var _ = 0; _ < g.length; _++) {
480
- var v = g[_];
479
+ for (var k = 0; k < g.length; k++) {
480
+ var v = g[k];
481
481
  if (typeof v != "function")
482
482
  return i(
483
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(v) + " at index " + _ + "."
483
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(v) + " at index " + k + "."
484
484
  ), P;
485
485
  }
486
486
  function u(a, c, y, p, F) {
@@ -493,21 +493,21 @@ function Dr() {
493
493
  var I = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
494
494
  return new Q("Invalid " + p + " `" + F + "` supplied to " + ("`" + y + "`" + I + "."));
495
495
  }
496
- return K(u);
496
+ return J(u);
497
497
  }
498
498
  function V() {
499
- function g(_, v, u, a, c) {
500
- return U(_[v]) ? null : new Q("Invalid " + a + " `" + c + "` supplied to " + ("`" + u + "`, expected a ReactNode."));
499
+ function g(k, v, u, a, c) {
500
+ return U(k[v]) ? null : new Q("Invalid " + a + " `" + c + "` supplied to " + ("`" + u + "`, expected a ReactNode."));
501
501
  }
502
- return K(g);
502
+ return J(g);
503
503
  }
504
- function W(g, _, v, u, a) {
504
+ function W(g, k, v, u, a) {
505
505
  return new Q(
506
- (g || "React class") + ": " + _ + " type `" + v + "." + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + a + "`."
506
+ (g || "React class") + ": " + k + " type `" + v + "." + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + a + "`."
507
507
  );
508
508
  }
509
509
  function O(g) {
510
- function _(v, u, a, c, y) {
510
+ function k(v, u, a, c, y) {
511
511
  var p = v[u], F = A(p);
512
512
  if (F !== "object")
513
513
  return new Q("Invalid " + c + " `" + y + "` of type `" + F + "` " + ("supplied to `" + a + "`, expected `object`."));
@@ -521,10 +521,10 @@ function Dr() {
521
521
  }
522
522
  return null;
523
523
  }
524
- return K(_);
524
+ return J(k);
525
525
  }
526
526
  function B(g) {
527
- function _(v, u, a, c, y) {
527
+ function k(v, u, a, c, y) {
528
528
  var p = v[u], F = A(p);
529
529
  if (F !== "object")
530
530
  return new Q("Invalid " + c + " `" + y + "` of type `" + F + "` " + ("supplied to `" + a + "`, expected `object`."));
@@ -544,7 +544,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
544
544
  }
545
545
  return null;
546
546
  }
547
- return K(_);
547
+ return J(k);
548
548
  }
549
549
  function U(g) {
550
550
  switch (typeof g) {
@@ -557,12 +557,12 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
557
557
  case "object":
558
558
  if (Array.isArray(g))
559
559
  return g.every(U);
560
- if (g === null || k(g))
560
+ if (g === null || S(g))
561
561
  return !0;
562
- var _ = D(g);
563
- if (_) {
564
- var v = _.call(g), u;
565
- if (_ !== g.entries) {
562
+ var k = D(g);
563
+ if (k) {
564
+ var v = k.call(g), u;
565
+ if (k !== g.entries) {
566
566
  for (; !(u = v.next()).done; )
567
567
  if (!U(u.value))
568
568
  return !1;
@@ -579,43 +579,43 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
579
579
  return !1;
580
580
  }
581
581
  }
582
- function M(g, _) {
583
- return g === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
582
+ function M(g, k) {
583
+ return g === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
584
584
  }
585
585
  function A(g) {
586
- var _ = typeof g;
587
- return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : M(_, g) ? "symbol" : _;
586
+ var k = typeof g;
587
+ return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : M(k, g) ? "symbol" : k;
588
588
  }
589
589
  function Y(g) {
590
590
  if (typeof g > "u" || g === null)
591
591
  return "" + g;
592
- var _ = A(g);
593
- if (_ === "object") {
592
+ var k = A(g);
593
+ if (k === "object") {
594
594
  if (g instanceof Date)
595
595
  return "date";
596
596
  if (g instanceof RegExp)
597
597
  return "regexp";
598
598
  }
599
- return _;
599
+ return k;
600
600
  }
601
601
  function G(g) {
602
- var _ = Y(g);
603
- switch (_) {
602
+ var k = Y(g);
603
+ switch (k) {
604
604
  case "array":
605
605
  case "object":
606
- return "an " + _;
606
+ return "an " + k;
607
607
  case "boolean":
608
608
  case "date":
609
609
  case "regexp":
610
- return "a " + _;
610
+ return "a " + k;
611
611
  default:
612
- return _;
612
+ return k;
613
613
  }
614
614
  }
615
615
  function le(g) {
616
616
  return !g.constructor || !g.constructor.name ? ie : g.constructor.name;
617
617
  }
618
- return te.checkPropTypes = f, te.resetWarningCache = f.resetWarningCache, te.PropTypes = te, te;
618
+ return ee.checkPropTypes = f, ee.resetWarningCache = f.resetWarningCache, ee.PropTypes = ee, ee;
619
619
  }, dt;
620
620
  }
621
621
  var vt, qt;
@@ -629,7 +629,7 @@ function Mr() {
629
629
  function t() {
630
630
  }
631
631
  return t.resetWarningCache = r, vt = function() {
632
- function l(P, k, X, H, L, D) {
632
+ function l(P, S, X, H, L, D) {
633
633
  if (D !== e) {
634
634
  var ie = new Error(
635
635
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -683,7 +683,7 @@ function sr() {
683
683
  if (Ut)
684
684
  return ht;
685
685
  Ut = 1;
686
- var e = function(r, t, l, f, i, P, k, X) {
686
+ var e = function(r, t, l, f, i, P, S, X) {
687
687
  if (process.env.NODE_ENV !== "production" && t === void 0)
688
688
  throw new Error("invariant requires an error message argument");
689
689
  if (!r) {
@@ -693,7 +693,7 @@ function sr() {
693
693
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
694
694
  );
695
695
  else {
696
- var L = [l, f, i, P, k, X], D = 0;
696
+ var L = [l, f, i, P, S, X], D = 0;
697
697
  H = new Error(
698
698
  t.replace(/%s/g, function() {
699
699
  return L[D++];
@@ -716,8 +716,8 @@ function or() {
716
716
  var t = function(f, i) {
717
717
  var P = arguments.length;
718
718
  i = new Array(P > 1 ? P - 1 : 0);
719
- for (var k = 1; k < P; k++)
720
- i[k - 1] = arguments[k];
719
+ for (var S = 1; S < P; S++)
720
+ i[S - 1] = arguments[S];
721
721
  var X = 0, H = "Warning: " + f.replace(/%s/g, function() {
722
722
  return i[X++];
723
723
  });
@@ -730,8 +730,8 @@ function or() {
730
730
  r = function(l, f, i) {
731
731
  var P = arguments.length;
732
732
  i = new Array(P > 2 ? P - 2 : 0);
733
- for (var k = 2; k < P; k++)
734
- i[k - 2] = arguments[k];
733
+ for (var S = 2; S < P; S++)
734
+ i[S - 2] = arguments[S];
735
735
  if (f === void 0)
736
736
  throw new Error(
737
737
  "`warning(condition, format, ...args)` requires a warning message argument"
@@ -754,29 +754,29 @@ function Lr() {
754
754
  var f = e(sr());
755
755
  function i() {
756
756
  return (i = Object.assign || function(o) {
757
- for (var E = 1; E < arguments.length; E++) {
758
- var b = arguments[E];
759
- for (var m in b)
760
- Object.prototype.hasOwnProperty.call(b, m) && (o[m] = b[m]);
757
+ for (var _ = 1; _ < arguments.length; _++) {
758
+ var m = arguments[_];
759
+ for (var b in m)
760
+ Object.prototype.hasOwnProperty.call(m, b) && (o[b] = m[b]);
761
761
  }
762
762
  return o;
763
763
  }).apply(this, arguments);
764
764
  }
765
- function P(o, E) {
766
- o.prototype = Object.create(E.prototype), o.prototype.constructor = o, function(b, m) {
767
- for (var S = Object.getOwnPropertyNames(m), V = 0; V < S.length; V++) {
768
- var W = S[V], O = Object.getOwnPropertyDescriptor(m, W);
769
- O && O.configurable && b[W] === void 0 && Object.defineProperty(b, W, O);
765
+ function P(o, _) {
766
+ o.prototype = Object.create(_.prototype), o.prototype.constructor = o, function(m, b) {
767
+ for (var E = Object.getOwnPropertyNames(b), V = 0; V < E.length; V++) {
768
+ var W = E[V], O = Object.getOwnPropertyDescriptor(b, W);
769
+ O && O.configurable && m[W] === void 0 && Object.defineProperty(m, W, O);
770
770
  }
771
- }(o, E);
771
+ }(o, _);
772
772
  }
773
- function k(o, E) {
773
+ function S(o, _) {
774
774
  if (o == null)
775
775
  return {};
776
- var b, m, S = {}, V = Object.keys(o);
777
- for (m = 0; m < V.length; m++)
778
- b = V[m], E.indexOf(b) >= 0 || (S[b] = o[b]);
779
- return S;
776
+ var m, b, E = {}, V = Object.keys(o);
777
+ for (b = 0; b < V.length; b++)
778
+ m = V[b], _.indexOf(m) >= 0 || (E[m] = o[m]);
779
+ return E;
780
780
  }
781
781
  function X(o) {
782
782
  return requestAnimationFrame(o);
@@ -785,55 +785,55 @@ function Lr() {
785
785
  cancelAnimationFrame(o);
786
786
  }
787
787
  function L(o) {
788
- var E = o.ownerDocument;
789
- return E.hasFocus() && E.activeElement === o;
788
+ var _ = o.ownerDocument;
789
+ return _.hasFocus() && _.activeElement === o;
790
790
  }
791
791
  function D(o) {
792
792
  return o == null ? void 0 : o.ownerDocument;
793
793
  }
794
794
  function ie(o) {
795
- var E = function(b) {
796
- var m;
797
- return (m = D(b)) == null ? void 0 : m.defaultView;
795
+ var _ = function(m) {
796
+ var b;
797
+ return (b = D(m)) == null ? void 0 : b.defaultView;
798
798
  }(o);
799
- return !!E && o instanceof E.HTMLElement;
799
+ return !!_ && o instanceof _.HTMLElement;
800
800
  }
801
- function te(o) {
801
+ function ee(o) {
802
802
  return r.useCallback(function() {
803
- var E = o.current, b = typeof window < "u" && ie(E);
804
- if (!E || !b)
803
+ var _ = o.current, m = typeof window < "u" && ie(_);
804
+ if (!_ || !m)
805
805
  return null;
806
- if (E.nodeName !== "INPUT" && (E = E.querySelector("input")), !E)
806
+ if (_.nodeName !== "INPUT" && (_ = _.querySelector("input")), !_)
807
807
  throw new Error("react-input-mask: inputComponent doesn't contain input node");
808
- return E;
808
+ return _;
809
809
  }, [o]);
810
810
  }
811
- function ne(o, E) {
812
- var b, m, S, V, W = r.useRef({ start: null, end: null }), O = te(o), B = r.useCallback(function() {
811
+ function re(o, _) {
812
+ var m, b, E, V, W = r.useRef({ start: null, end: null }), O = ee(o), B = r.useCallback(function() {
813
813
  return function(g) {
814
- var _ = g.selectionStart, v = g.selectionEnd;
815
- return { start: _, end: v, length: v - _ };
814
+ var k = g.selectionStart, v = g.selectionEnd;
815
+ return { start: k, end: v, length: v - k };
816
816
  }(O());
817
817
  }, [O]), U = r.useCallback(function() {
818
818
  return W.current;
819
819
  }, []), M = r.useCallback(function(g) {
820
- var _ = O();
821
- _ && L(_) && (function(v, u, a) {
820
+ var k = O();
821
+ k && L(k) && (function(v, u, a) {
822
822
  a === void 0 && (a = u), v.setSelectionRange(u, a);
823
- }(_, g.start, g.end), W.current = B());
823
+ }(k, g.start, g.end), W.current = B());
824
824
  }, [O, B]), A = r.useCallback(function() {
825
825
  W.current = B();
826
- }, [B]), Y = (b = A, m = r.useRef(null), S = r.useCallback(function() {
827
- m.current === null && function g() {
828
- b(), m.current = X(g);
826
+ }, [B]), Y = (m = A, b = r.useRef(null), E = r.useCallback(function() {
827
+ b.current === null && function g() {
828
+ m(), b.current = X(g);
829
829
  }();
830
- }, [b]), V = r.useCallback(function() {
831
- H(m.current), m.current = null;
830
+ }, [m]), V = r.useCallback(function() {
831
+ H(b.current), b.current = null;
832
832
  }, []), r.useEffect(function() {
833
- m.current && (V(), S());
834
- }, [S, V]), r.useEffect(H, []), [S, V]), G = Y[0], le = Y[1];
833
+ b.current && (V(), E());
834
+ }, [E, V]), r.useEffect(H, []), [E, V]), G = Y[0], le = Y[1];
835
835
  return r.useLayoutEffect(function() {
836
- if (E) {
836
+ if (_) {
837
837
  var g = O();
838
838
  return g.addEventListener("focus", G), g.addEventListener("blur", le), L(g) && G(), function() {
839
839
  g.removeEventListener("focus", G), g.removeEventListener("blur", le), le();
@@ -841,21 +841,21 @@ function Lr() {
841
841
  }
842
842
  }), { getSelection: B, getLastSelection: U, setSelection: M };
843
843
  }
844
- function Q(o, E) {
845
- var b = r.useRef(), m = ne(b, E), S = m.getSelection, V = m.getLastSelection, W = m.setSelection, O = function(A, Y) {
846
- var G = te(A), le = r.useRef(Y);
844
+ function Q(o, _) {
845
+ var m = r.useRef(), b = re(m, _), E = b.getSelection, V = b.getLastSelection, W = b.setSelection, O = function(A, Y) {
846
+ var G = ee(A), le = r.useRef(Y);
847
847
  return { getValue: r.useCallback(function() {
848
848
  return G().value;
849
849
  }, [G]), getLastValue: r.useCallback(function() {
850
850
  return le.current;
851
851
  }, []), setValue: r.useCallback(function(g) {
852
852
  le.current = g;
853
- var _ = G();
854
- _ && (_.value = g);
853
+ var k = G();
854
+ k && (k.value = g);
855
855
  }, [G]) };
856
- }(b, o), B = O.getValue, U = O.getLastValue, M = O.setValue;
857
- return { inputRef: b, getInputState: function() {
858
- return { value: B(), selection: S() };
856
+ }(m, o), B = O.getValue, U = O.getLastValue, M = O.setValue;
857
+ return { inputRef: m, getInputState: function() {
858
+ return { value: B(), selection: E() };
859
859
  }, getLastInputState: function() {
860
860
  return { value: U(), selection: V() };
861
861
  }, setInputState: function(A) {
@@ -864,146 +864,146 @@ function Lr() {
864
864
  } };
865
865
  }
866
866
  or();
867
- var K = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], ue = { 9: /[0-9]/, a: /[A-Za-z]/, "*": /[A-Za-z0-9]/ }, Z = function(o) {
868
- var E = this;
869
- this.isCharacterAllowedAtPosition = function(b, m) {
870
- var S = E.maskOptions.maskPlaceholder;
871
- return !!E.isCharacterFillingPosition(b, m) || !!S && S[m] === b;
872
- }, this.isCharacterFillingPosition = function(b, m) {
873
- var S = E.maskOptions.mask;
874
- if (!b || m >= S.length)
867
+ var J = ["disabled", "onBlur", "onChange", "onFocus", "onMouseDown", "readOnly", "value"], ue = { 9: /[0-9]/, a: /[A-Za-z]/, "*": /[A-Za-z0-9]/ }, Z = function(o) {
868
+ var _ = this;
869
+ this.isCharacterAllowedAtPosition = function(m, b) {
870
+ var E = _.maskOptions.maskPlaceholder;
871
+ return !!_.isCharacterFillingPosition(m, b) || !!E && E[b] === m;
872
+ }, this.isCharacterFillingPosition = function(m, b) {
873
+ var E = _.maskOptions.mask;
874
+ if (!m || b >= E.length)
875
875
  return !1;
876
- if (!E.isPositionEditable(m))
877
- return S[m] === b;
878
- var V = S[m];
879
- return new RegExp(V).test(b);
880
- }, this.isPositionEditable = function(b) {
881
- var m = E.maskOptions, S = m.mask, V = m.permanents;
882
- return b < S.length && V.indexOf(b) === -1;
883
- }, this.isValueEmpty = function(b) {
884
- return b.split("").every(function(m, S) {
885
- return !E.isPositionEditable(S) || !E.isCharacterFillingPosition(m, S);
876
+ if (!_.isPositionEditable(b))
877
+ return E[b] === m;
878
+ var V = E[b];
879
+ return new RegExp(V).test(m);
880
+ }, this.isPositionEditable = function(m) {
881
+ var b = _.maskOptions, E = b.mask, V = b.permanents;
882
+ return m < E.length && V.indexOf(m) === -1;
883
+ }, this.isValueEmpty = function(m) {
884
+ return m.split("").every(function(b, E) {
885
+ return !_.isPositionEditable(E) || !_.isCharacterFillingPosition(b, E);
886
886
  });
887
- }, this.isValueFilled = function(b) {
888
- return E.getFilledLength(b) === E.maskOptions.lastEditablePosition + 1;
889
- }, this.getDefaultSelectionForValue = function(b) {
890
- var m = E.getFilledLength(b), S = E.getRightEditablePosition(m);
891
- return { start: S, end: S };
892
- }, this.getFilledLength = function(b) {
893
- return function(m, S) {
894
- for (var V = m.length - 1; V >= 0; V--)
895
- if (S(m[V], V))
887
+ }, this.isValueFilled = function(m) {
888
+ return _.getFilledLength(m) === _.maskOptions.lastEditablePosition + 1;
889
+ }, this.getDefaultSelectionForValue = function(m) {
890
+ var b = _.getFilledLength(m), E = _.getRightEditablePosition(b);
891
+ return { start: E, end: E };
892
+ }, this.getFilledLength = function(m) {
893
+ return function(b, E) {
894
+ for (var V = b.length - 1; V >= 0; V--)
895
+ if (E(b[V], V))
896
896
  return V;
897
897
  return -1;
898
- }(b.split(""), function(m, S) {
899
- return E.isPositionEditable(S) && E.isCharacterFillingPosition(m, S);
898
+ }(m.split(""), function(b, E) {
899
+ return _.isPositionEditable(E) && _.isCharacterFillingPosition(b, E);
900
900
  }) + 1;
901
- }, this.getStringFillingLengthAtPosition = function(b, m) {
902
- return b.split("").reduce(function(S, V) {
903
- return E.insertCharacterAtPosition(S, V, S.length);
904
- }, function(S, V) {
901
+ }, this.getStringFillingLengthAtPosition = function(m, b) {
902
+ return m.split("").reduce(function(E, V) {
903
+ return _.insertCharacterAtPosition(E, V, E.length);
904
+ }, function(E, V) {
905
905
  V === void 0 && (V = 1);
906
906
  for (var W = "", O = 0; O < V; O++)
907
- W += S;
907
+ W += E;
908
908
  return W;
909
- }(" ", m)).length - m;
910
- }, this.getLeftEditablePosition = function(b) {
911
- for (var m = b; m >= 0; m--)
912
- if (E.isPositionEditable(m))
913
- return m;
909
+ }(" ", b)).length - b;
910
+ }, this.getLeftEditablePosition = function(m) {
911
+ for (var b = m; b >= 0; b--)
912
+ if (_.isPositionEditable(b))
913
+ return b;
914
914
  return null;
915
- }, this.getRightEditablePosition = function(b) {
916
- for (var m = E.maskOptions.mask, S = b; S < m.length; S++)
917
- if (E.isPositionEditable(S))
918
- return S;
915
+ }, this.getRightEditablePosition = function(m) {
916
+ for (var b = _.maskOptions.mask, E = m; E < b.length; E++)
917
+ if (_.isPositionEditable(E))
918
+ return E;
919
919
  return null;
920
- }, this.formatValue = function(b) {
921
- var m = E.maskOptions, S = m.maskPlaceholder, V = m.mask;
922
- if (!S) {
923
- for (b = E.insertStringAtPosition("", b, 0); b.length < V.length && !E.isPositionEditable(b.length); )
924
- b += V[b.length];
925
- return b;
920
+ }, this.formatValue = function(m) {
921
+ var b = _.maskOptions, E = b.maskPlaceholder, V = b.mask;
922
+ if (!E) {
923
+ for (m = _.insertStringAtPosition("", m, 0); m.length < V.length && !_.isPositionEditable(m.length); )
924
+ m += V[m.length];
925
+ return m;
926
926
  }
927
- return E.insertStringAtPosition(S, b, 0);
928
- }, this.clearRange = function(b, m, S) {
929
- if (!S)
930
- return b;
931
- var V = m + S, W = E.maskOptions, O = W.maskPlaceholder, B = W.mask, U = b.split("").map(function(M, A) {
932
- var Y = E.isPositionEditable(A);
933
- return !O && A >= V && !Y ? "" : A < m || A >= V ? M : Y ? O ? O[A] : "" : B[A];
927
+ return _.insertStringAtPosition(E, m, 0);
928
+ }, this.clearRange = function(m, b, E) {
929
+ if (!E)
930
+ return m;
931
+ var V = b + E, W = _.maskOptions, O = W.maskPlaceholder, B = W.mask, U = m.split("").map(function(M, A) {
932
+ var Y = _.isPositionEditable(A);
933
+ return !O && A >= V && !Y ? "" : A < b || A >= V ? M : Y ? O ? O[A] : "" : B[A];
934
934
  }).join("");
935
- return E.formatValue(U);
936
- }, this.insertCharacterAtPosition = function(b, m, S) {
937
- var V = E.maskOptions, W = V.mask, O = V.maskPlaceholder;
938
- if (S >= W.length)
939
- return b;
940
- var B = E.isCharacterAllowedAtPosition(m, S), U = E.isPositionEditable(S), M = E.getRightEditablePosition(S), A = O && M ? m === O[M] : null, Y = b.slice(0, S);
941
- return !B && U || (b = Y + (B ? m : W[S])), B || U || A || (b = E.insertCharacterAtPosition(b, m, S + 1)), b;
942
- }, this.insertStringAtPosition = function(b, m, S) {
943
- var V = E.maskOptions, W = V.mask, O = V.maskPlaceholder;
944
- if (!m || S >= W.length)
945
- return b;
946
- var B = m.split(""), U = E.isValueFilled(b) || !!O, M = b.slice(S);
947
- return b = B.reduce(function(A, Y) {
948
- return E.insertCharacterAtPosition(A, Y, A.length);
949
- }, b.slice(0, S)), U ? b += M.slice(b.length - S) : E.isValueFilled(b) ? b += W.slice(b.length).join("") : b = M.split("").filter(function(A, Y) {
950
- return E.isPositionEditable(S + Y);
935
+ return _.formatValue(U);
936
+ }, this.insertCharacterAtPosition = function(m, b, E) {
937
+ var V = _.maskOptions, W = V.mask, O = V.maskPlaceholder;
938
+ if (E >= W.length)
939
+ return m;
940
+ var B = _.isCharacterAllowedAtPosition(b, E), U = _.isPositionEditable(E), M = _.getRightEditablePosition(E), A = O && M ? b === O[M] : null, Y = m.slice(0, E);
941
+ return !B && U || (m = Y + (B ? b : W[E])), B || U || A || (m = _.insertCharacterAtPosition(m, b, E + 1)), m;
942
+ }, this.insertStringAtPosition = function(m, b, E) {
943
+ var V = _.maskOptions, W = V.mask, O = V.maskPlaceholder;
944
+ if (!b || E >= W.length)
945
+ return m;
946
+ var B = b.split(""), U = _.isValueFilled(m) || !!O, M = m.slice(E);
947
+ return m = B.reduce(function(A, Y) {
948
+ return _.insertCharacterAtPosition(A, Y, A.length);
949
+ }, m.slice(0, E)), U ? m += M.slice(m.length - E) : _.isValueFilled(m) ? m += W.slice(m.length).join("") : m = M.split("").filter(function(A, Y) {
950
+ return _.isPositionEditable(E + Y);
951
951
  }).reduce(function(A, Y) {
952
- var G = E.getRightEditablePosition(A.length);
953
- return G === null ? A : (E.isPositionEditable(A.length) || (A += W.slice(A.length, G).join("")), E.insertCharacterAtPosition(A, Y, A.length));
954
- }, b), b;
955
- }, this.processChange = function(b, m) {
956
- var S = E.maskOptions, V = S.mask, W = S.prefix, O = S.lastEditablePosition, B = b.value, U = b.selection, M = m.value, A = m.selection, Y = B, G = "", le = 0, g = 0, _ = Math.min(A.start, U.start);
957
- return U.end > A.start ? (G = Y.slice(A.start, U.end), g = (le = E.getStringFillingLengthAtPosition(G, _)) ? A.length : 0) : Y.length < M.length && (g = M.length - Y.length), Y = M, g && (g === 1 && !A.length && (_ = A.start === U.start ? E.getRightEditablePosition(U.start) : E.getLeftEditablePosition(U.start)), Y = E.clearRange(Y, _, g)), Y = E.insertStringAtPosition(Y, G, _), (_ += le) >= V.length ? _ = V.length : _ < W.length && !le ? _ = W.length : _ >= W.length && _ < O && le && (_ = E.getRightEditablePosition(_)), { value: Y = E.formatValue(Y), enteredString: G, selection: { start: _, end: _ } };
958
- }, this.maskOptions = function(b) {
959
- var m = b.mask, S = b.maskPlaceholder, V = [];
960
- if (!m)
952
+ var G = _.getRightEditablePosition(A.length);
953
+ return G === null ? A : (_.isPositionEditable(A.length) || (A += W.slice(A.length, G).join("")), _.insertCharacterAtPosition(A, Y, A.length));
954
+ }, m), m;
955
+ }, this.processChange = function(m, b) {
956
+ var E = _.maskOptions, V = E.mask, W = E.prefix, O = E.lastEditablePosition, B = m.value, U = m.selection, M = b.value, A = b.selection, Y = B, G = "", le = 0, g = 0, k = Math.min(A.start, U.start);
957
+ return U.end > A.start ? (G = Y.slice(A.start, U.end), g = (le = _.getStringFillingLengthAtPosition(G, k)) ? A.length : 0) : Y.length < M.length && (g = M.length - Y.length), Y = M, g && (g === 1 && !A.length && (k = A.start === U.start ? _.getRightEditablePosition(U.start) : _.getLeftEditablePosition(U.start)), Y = _.clearRange(Y, k, g)), Y = _.insertStringAtPosition(Y, G, k), (k += le) >= V.length ? k = V.length : k < W.length && !le ? k = W.length : k >= W.length && k < O && le && (k = _.getRightEditablePosition(k)), { value: Y = _.formatValue(Y), enteredString: G, selection: { start: k, end: k } };
958
+ }, this.maskOptions = function(m) {
959
+ var b = m.mask, E = m.maskPlaceholder, V = [];
960
+ if (!b)
961
961
  return { maskPlaceholder: null, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
962
- if (typeof m == "string") {
962
+ if (typeof b == "string") {
963
963
  var W = !1, O = "";
964
- m.split("").forEach(function(M) {
964
+ b.split("").forEach(function(M) {
965
965
  W || M !== "\\" ? (!W && ue[M] || V.push(O.length), O += M, W = !1) : W = !0;
966
- }), m = O.split("").map(function(M, A) {
966
+ }), b = O.split("").map(function(M, A) {
967
967
  return V.indexOf(A) === -1 ? ue[M] : M;
968
968
  });
969
969
  } else
970
- m.forEach(function(M, A) {
970
+ b.forEach(function(M, A) {
971
971
  typeof M == "string" && V.push(A);
972
972
  });
973
- S && (S = S.length === 1 ? m.map(function(M, A) {
974
- return V.indexOf(A) !== -1 ? M : S;
975
- }) : S.split(""), V.forEach(function(M) {
976
- S[M] = m[M];
977
- }), S = S.join(""));
973
+ E && (E = E.length === 1 ? b.map(function(M, A) {
974
+ return V.indexOf(A) !== -1 ? M : E;
975
+ }) : E.split(""), V.forEach(function(M) {
976
+ E[M] = b[M];
977
+ }), E = E.join(""));
978
978
  for (var B = V.filter(function(M, A) {
979
979
  return M === A;
980
980
  }).map(function(M) {
981
- return m[M];
982
- }).join(""), U = m.length - 1; V.indexOf(U) !== -1; )
981
+ return b[M];
982
+ }).join(""), U = b.length - 1; V.indexOf(U) !== -1; )
983
983
  U--;
984
- return { maskPlaceholder: S, prefix: B, mask: m, lastEditablePosition: U, permanents: V };
984
+ return { maskPlaceholder: E, prefix: B, mask: b, lastEditablePosition: U, permanents: V };
985
985
  }(o);
986
- }, J = function(o) {
987
- function E() {
986
+ }, ne = function(o) {
987
+ function _() {
988
988
  return o.apply(this, arguments) || this;
989
989
  }
990
- return P(E, o), E.prototype.render = function() {
991
- var b = this.props, m = b.children, S = k(b, ["children"]);
992
- return t.cloneElement(m, S);
993
- }, E;
994
- }(t.Component), ee = r.forwardRef(function(o, E) {
995
- var b = o.alwaysShowMask, m = o.children, S = o.mask, V = o.maskPlaceholder, W = o.beforeMaskedStateChange, O = k(o, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
990
+ return P(_, o), _.prototype.render = function() {
991
+ var m = this.props, b = m.children, E = S(m, ["children"]);
992
+ return t.cloneElement(b, E);
993
+ }, _;
994
+ }(t.Component), K = r.forwardRef(function(o, _) {
995
+ var m = o.alwaysShowMask, b = o.children, E = o.mask, V = o.maskPlaceholder, W = o.beforeMaskedStateChange, O = S(o, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
996
996
  (function(h) {
997
997
  var I = h.mask, N = h.maskPlaceholder;
998
998
  I && N && N.length !== 1 && N.length !== I.length && f(!1);
999
999
  })(o);
1000
- var B, U, M = new Z({ mask: S, maskPlaceholder: V }), A = !!S, Y = !O.disabled && !O.readOnly, G = o.value !== null && o.value !== void 0, le = (B = A, U = r.useRef(), r.useEffect(function() {
1000
+ var B, U, M = new Z({ mask: E, maskPlaceholder: V }), A = !!E, Y = !O.disabled && !O.readOnly, G = o.value !== null && o.value !== void 0, le = (B = A, U = r.useRef(), r.useEffect(function() {
1001
1001
  U.current = B;
1002
1002
  }), U.current), g = Q(function(h) {
1003
1003
  return "" + h;
1004
- }((G ? o.value : o.defaultValue) || ""), A), _ = g.inputRef, v = g.getInputState, u = g.setInputState, a = g.getLastInputState, c = te(_);
1004
+ }((G ? o.value : o.defaultValue) || ""), A), k = g.inputRef, v = g.getInputState, u = g.setInputState, a = g.getLastInputState, c = ee(k);
1005
1005
  if (A && G) {
1006
- var y = c(), p = y && L(y) || b || o.value ? M.formatValue(o.value) : o.value;
1006
+ var y = c(), p = y && L(y) || m || o.value ? M.formatValue(o.value) : o.value;
1007
1007
  W && (p = W({ nextState: { value: p, selection: { start: null, end: null } } }).value), u(i({}, a(), { value: p }));
1008
1008
  }
1009
1009
  var F = a(), C = F.selection, T = F.value;
@@ -1012,13 +1012,13 @@ function Lr() {
1012
1012
  var h = L(c()), I = C, N = v(), $ = i({}, N);
1013
1013
  if (!G) {
1014
1014
  var ae = N.value, he = M.formatValue(ae), n = M.isValueEmpty(he);
1015
- !n || h || b ? $.value = he : n && !h && ($.value = "");
1015
+ !n || h || m ? $.value = he : n && !h && ($.value = "");
1016
1016
  }
1017
1017
  h && !le ? $.selection = M.getDefaultSelectionForValue($.value) : G && h && I && I.start !== null && I.end !== null && ($.selection = I), W && ($ = W({ currentState: N, nextState: $ })), u($);
1018
1018
  }
1019
1019
  });
1020
1020
  var z = i({}, O, { onFocus: function(h) {
1021
- _.current = h.target;
1021
+ k.current = h.target;
1022
1022
  var I = v().value;
1023
1023
  if (A && !M.isValueFilled(I)) {
1024
1024
  var N = M.formatValue(I), $ = M.getDefaultSelectionForValue(N), ae = { value: N, selection: $ };
@@ -1029,7 +1029,7 @@ function Lr() {
1029
1029
  o.onFocus && o.onFocus(h);
1030
1030
  }, onBlur: function(h) {
1031
1031
  var I = v().value, N = a().value;
1032
- if (A && !b && M.isValueEmpty(N)) {
1032
+ if (A && !m && M.isValueEmpty(N)) {
1033
1033
  var $ = "", ae = { value: $, selection: { start: null, end: null } };
1034
1034
  W && ($ = (ae = W({ currentState: v(), nextState: ae })).value), u(ae), $ !== I && o.onChange && o.onChange(h);
1035
1035
  }
@@ -1045,7 +1045,7 @@ function Lr() {
1045
1045
  if ($.removeEventListener("mouseup", s), L(I)) {
1046
1046
  var R = Math.abs(d.clientX - ae), w = Math.abs(d.clientY - he), x = Math.max(R, w), q = (/* @__PURE__ */ new Date()).getTime() - n;
1047
1047
  if (x <= 10 && q <= 200 || x <= 5 && q <= 300) {
1048
- var re = a(), fe = i({}, re, { selection: M.getDefaultSelectionForValue(re.value) });
1048
+ var te = a(), fe = i({}, te, { selection: M.getDefaultSelectionForValue(te.value) });
1049
1049
  u(fe);
1050
1050
  }
1051
1051
  }
@@ -1053,17 +1053,17 @@ function Lr() {
1053
1053
  }
1054
1054
  o.onMouseDown && o.onMouseDown(h);
1055
1055
  } : o.onMouseDown, ref: function(h) {
1056
- _.current = l.findDOMNode(h), /* @__PURE__ */ function(I) {
1056
+ k.current = l.findDOMNode(h), /* @__PURE__ */ function(I) {
1057
1057
  return typeof I == "function";
1058
- }(E) ? E(h) : E !== null && typeof E == "object" && (E.current = h);
1058
+ }(_) ? _(h) : _ !== null && typeof _ == "object" && (_.current = h);
1059
1059
  }, value: A && G ? T : o.value });
1060
- return m ? (function(h, I) {
1061
- K.filter(function(N) {
1060
+ return b ? (function(h, I) {
1061
+ J.filter(function(N) {
1062
1062
  return I.props[N] != null && I.props[N] !== h[N];
1063
1063
  }).length && f(!1);
1064
- }(o, m), t.createElement(J, z, m)) : t.createElement("input", z);
1064
+ }(o, b), t.createElement(ne, z, b)) : t.createElement("input", z);
1065
1065
  });
1066
- return ee.displayName = "InputMask", ee.defaultProps = { alwaysShowMask: !1, maskPlaceholder: "_" }, ot.exports = ee, ot.exports;
1066
+ return K.displayName = "InputMask", K.defaultProps = { alwaysShowMask: !1, maskPlaceholder: "_" }, ot.exports = K, ot.exports;
1067
1067
  }
1068
1068
  var yt, zt;
1069
1069
  function Ir() {
@@ -1074,7 +1074,7 @@ function Ir() {
1074
1074
  return v && typeof v == "object" && "default" in v ? v.default : v;
1075
1075
  }
1076
1076
  var r = we, t = e(r), l = rr, f = e(ar()), i = e(sr()), P = e(or());
1077
- function k(v, u) {
1077
+ function S(v, u) {
1078
1078
  for (var a = Object.getOwnPropertyNames(u), c = 0; c < a.length; c++) {
1079
1079
  var y = a[c], p = Object.getOwnPropertyDescriptor(u, y);
1080
1080
  p && p.configurable && v[y] === void 0 && Object.defineProperty(v, y, p);
@@ -1092,7 +1092,7 @@ function Ir() {
1092
1092
  }, X.apply(this, arguments);
1093
1093
  }
1094
1094
  function H(v, u) {
1095
- v.prototype = Object.create(u.prototype), v.prototype.constructor = v, k(v, u);
1095
+ v.prototype = Object.create(u.prototype), v.prototype.constructor = v, S(v, u);
1096
1096
  }
1097
1097
  function L(v, u) {
1098
1098
  if (v == null)
@@ -1108,10 +1108,10 @@ function Ir() {
1108
1108
  function ie(v) {
1109
1109
  cancelAnimationFrame(v);
1110
1110
  }
1111
- function te(v, u, a) {
1111
+ function ee(v, u, a) {
1112
1112
  a === void 0 && (a = u), v.setSelectionRange(u, a);
1113
1113
  }
1114
- function ne(v) {
1114
+ function re(v) {
1115
1115
  var u = v.selectionStart, a = v.selectionEnd;
1116
1116
  return {
1117
1117
  start: u,
@@ -1123,21 +1123,21 @@ function Ir() {
1123
1123
  var u = v.ownerDocument;
1124
1124
  return u.hasFocus() && u.activeElement === v;
1125
1125
  }
1126
- function K(v) {
1126
+ function J(v) {
1127
1127
  return v == null ? void 0 : v.ownerDocument;
1128
1128
  }
1129
1129
  function ue(v) {
1130
1130
  var u;
1131
- return (u = K(v)) == null ? void 0 : u.defaultView;
1131
+ return (u = J(v)) == null ? void 0 : u.defaultView;
1132
1132
  }
1133
1133
  function Z(v) {
1134
1134
  var u = ue(v);
1135
1135
  return !!u && v instanceof u.HTMLElement;
1136
1136
  }
1137
- function J(v) {
1137
+ function ne(v) {
1138
1138
  return typeof v == "function";
1139
1139
  }
1140
- function ee(v, u) {
1140
+ function K(v, u) {
1141
1141
  for (var a = v.length - 1; a >= 0; a--) {
1142
1142
  var c = v[a];
1143
1143
  if (u(c, a))
@@ -1151,10 +1151,10 @@ function Ir() {
1151
1151
  a += v;
1152
1152
  return a;
1153
1153
  }
1154
- function E(v) {
1154
+ function _(v) {
1155
1155
  return "" + v;
1156
1156
  }
1157
- function b(v) {
1157
+ function m(v) {
1158
1158
  return r.useCallback(function() {
1159
1159
  var u = v.current, a = typeof window < "u" && Z(u);
1160
1160
  if (!u || !a)
@@ -1164,7 +1164,7 @@ function Ir() {
1164
1164
  return u;
1165
1165
  }, [v]);
1166
1166
  }
1167
- function m(v) {
1167
+ function b(v) {
1168
1168
  var u = r.useRef(null), a = r.useCallback(function() {
1169
1169
  if (u.current !== null)
1170
1170
  return;
@@ -1179,21 +1179,21 @@ function Ir() {
1179
1179
  u.current && (c(), a());
1180
1180
  }, [a, c]), r.useEffect(ie, []), [a, c];
1181
1181
  }
1182
- function S(v, u) {
1182
+ function E(v, u) {
1183
1183
  var a = r.useRef({
1184
1184
  start: null,
1185
1185
  end: null
1186
- }), c = b(v), y = r.useCallback(function() {
1186
+ }), c = m(v), y = r.useCallback(function() {
1187
1187
  var I = c();
1188
- return ne(I);
1188
+ return re(I);
1189
1189
  }, [c]), p = r.useCallback(function() {
1190
1190
  return a.current;
1191
1191
  }, []), F = r.useCallback(function(I) {
1192
1192
  var N = c();
1193
- !N || !Q(N) || (te(N, I.start, I.end), a.current = y());
1193
+ !N || !Q(N) || (ee(N, I.start, I.end), a.current = y());
1194
1194
  }, [c, y]), C = r.useCallback(function() {
1195
1195
  a.current = y();
1196
- }, [y]), T = m(C), z = T[0], h = T[1];
1196
+ }, [y]), T = b(C), z = T[0], h = T[1];
1197
1197
  return r.useLayoutEffect(function() {
1198
1198
  if (u) {
1199
1199
  var I = c();
@@ -1208,7 +1208,7 @@ function Ir() {
1208
1208
  };
1209
1209
  }
1210
1210
  function V(v, u) {
1211
- var a = b(v), c = r.useRef(u), y = r.useCallback(function() {
1211
+ var a = m(v), c = r.useRef(u), y = r.useCallback(function() {
1212
1212
  var C = a();
1213
1213
  return C.value;
1214
1214
  }, [a]), p = r.useCallback(function() {
@@ -1225,7 +1225,7 @@ function Ir() {
1225
1225
  };
1226
1226
  }
1227
1227
  function W(v, u) {
1228
- var a = r.useRef(), c = S(a, u), y = c.getSelection, p = c.getLastSelection, F = c.setSelection, C = V(a, v), T = C.getValue, z = C.getLastValue, h = C.setValue;
1228
+ var a = r.useRef(), c = E(a, u), y = c.getSelection, p = c.getLastSelection, F = c.setSelection, C = V(a, v), T = C.getValue, z = C.getLastValue, h = C.setValue;
1229
1229
  function I() {
1230
1230
  return {
1231
1231
  value: z(),
@@ -1344,7 +1344,7 @@ function Ir() {
1344
1344
  end: p
1345
1345
  };
1346
1346
  }, this.getFilledLength = function(c) {
1347
- var y = c.split(""), p = ee(y, function(F, C) {
1347
+ var y = c.split(""), p = K(y, function(F, C) {
1348
1348
  return a.isPositionEditable(C) && a.isCharacterFillingPosition(F, C);
1349
1349
  });
1350
1350
  return p + 1;
@@ -1438,13 +1438,13 @@ function Ir() {
1438
1438
  var y = this.props, p = y.children, F = L(y, ["children"]);
1439
1439
  return t.cloneElement(p, F);
1440
1440
  }, u;
1441
- }(t.Component), _ = r.forwardRef(function(u, a) {
1441
+ }(t.Component), k = r.forwardRef(function(u, a) {
1442
1442
  var c = u.alwaysShowMask, y = u.children, p = u.mask, F = u.maskPlaceholder, C = u.beforeMaskedStateChange, T = L(u, ["alwaysShowMask", "children", "mask", "maskPlaceholder", "beforeMaskedStateChange"]);
1443
1443
  M(u), A(u);
1444
1444
  var z = new le({
1445
1445
  mask: p,
1446
1446
  maskPlaceholder: F
1447
- }), h = !!p, I = !T.disabled && !T.readOnly, N = u.value !== null && u.value !== void 0, $ = O(h), ae = E((N ? u.value : u.defaultValue) || ""), he = W(ae, h), n = he.inputRef, s = he.getInputState, d = he.setInputState, R = he.getLastInputState, w = b(n);
1447
+ }), h = !!p, I = !T.disabled && !T.readOnly, N = u.value !== null && u.value !== void 0, $ = O(h), ae = _((N ? u.value : u.defaultValue) || ""), he = W(ae, h), n = he.inputRef, s = he.getInputState, d = he.setInputState, R = he.getLastInputState, w = m(n);
1448
1448
  function x(be) {
1449
1449
  var de = s(), _e = R(), ke = z.processChange(de, _e);
1450
1450
  C && (ke = C({
@@ -1470,7 +1470,7 @@ function Ir() {
1470
1470
  }
1471
1471
  u.onFocus && u.onFocus(be);
1472
1472
  }
1473
- function re(be) {
1473
+ function te(be) {
1474
1474
  var de = s().value, _e = R().value;
1475
1475
  if (h && !c && z.isValueEmpty(_e)) {
1476
1476
  var ke = "", ve = {
@@ -1488,7 +1488,7 @@ function Ir() {
1488
1488
  u.onBlur && u.onBlur(be);
1489
1489
  }
1490
1490
  function fe(be) {
1491
- var de = w(), _e = s(), ke = _e.value, ve = K(de);
1491
+ var de = w(), _e = s(), ke = _e.value, ve = J(de);
1492
1492
  if (!Q(de) && !z.isValueFilled(ke)) {
1493
1493
  var it = be.clientX, Ye = be.clientY, ze = (/* @__PURE__ */ new Date()).getTime(), at = function yr(wt) {
1494
1494
  if (ve.removeEventListener("mouseup", yr), !!Q(de)) {
@@ -1535,20 +1535,20 @@ function Ir() {
1535
1535
  });
1536
1536
  var qe = X({}, T, {
1537
1537
  onFocus: q,
1538
- onBlur: re,
1538
+ onBlur: te,
1539
1539
  onChange: h && I ? x : u.onChange,
1540
1540
  onMouseDown: h && I ? fe : u.onMouseDown,
1541
1541
  ref: function(de) {
1542
- n.current = l.findDOMNode(de), J(a) ? a(de) : a !== null && typeof a == "object" && (a.current = de);
1542
+ n.current = l.findDOMNode(de), ne(a) ? a(de) : a !== null && typeof a == "object" && (a.current = de);
1543
1543
  },
1544
1544
  value: h && N ? nt : u.value
1545
1545
  });
1546
1546
  return y ? (Y(u, y), t.createElement(g, qe, y)) : t.createElement("input", qe);
1547
1547
  });
1548
- return _.displayName = "InputMask", _.defaultProps = {
1548
+ return k.displayName = "InputMask", k.defaultProps = {
1549
1549
  alwaysShowMask: !1,
1550
1550
  maskPlaceholder: "_"
1551
- }, _.propTypes = {
1551
+ }, k.propTypes = {
1552
1552
  alwaysShowMask: f.bool,
1553
1553
  beforeMaskedStateChange: f.func,
1554
1554
  children: f.element,
@@ -1558,7 +1558,7 @@ function Ir() {
1558
1558
  onBlur: f.func,
1559
1559
  onChange: f.func,
1560
1560
  onMouseDown: f.func
1561
- }, yt = _, yt;
1561
+ }, yt = k, yt;
1562
1562
  }
1563
1563
  process.env.NODE_ENV === "production" ? Et.exports = Lr() : Et.exports = Ir();
1564
1564
  var jr = Et.exports;
@@ -1608,15 +1608,15 @@ var rt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ge = (e) => e === voi
1608
1608
  let l = -1;
1609
1609
  const f = St(r) ? [r] : lr(r), i = f.length, P = i - 1;
1610
1610
  for (; ++l < i; ) {
1611
- const k = f[l];
1611
+ const S = f[l];
1612
1612
  let X = t;
1613
1613
  if (l !== P) {
1614
- const H = e[k];
1614
+ const H = e[S];
1615
1615
  X = me(H) || Array.isArray(H) ? H : isNaN(+f[l + 1]) ? {} : [];
1616
1616
  }
1617
- if (k === "__proto__")
1617
+ if (S === "__proto__")
1618
1618
  return;
1619
- e[k] = X, e = e[k];
1619
+ e[S] = X, e = e[S];
1620
1620
  }
1621
1621
  return e;
1622
1622
  };
@@ -1685,15 +1685,15 @@ const Ue = (e, r, t, l) => {
1685
1685
  for (const f of t || Object.keys(e)) {
1686
1686
  const i = j(e, f);
1687
1687
  if (i) {
1688
- const { _f: P, ...k } = i;
1688
+ const { _f: P, ...S } = i;
1689
1689
  if (P) {
1690
1690
  if (P.refs && P.refs[0] && r(P.refs[0], f) && !l)
1691
1691
  break;
1692
1692
  if (P.ref && r(P.ref, P.name) && !l)
1693
1693
  break;
1694
- Ue(k, r);
1694
+ Ue(S, r);
1695
1695
  } else
1696
- me(k) && Ue(k, r);
1696
+ me(S) && Ue(S, r);
1697
1697
  }
1698
1698
  }
1699
1699
  };
@@ -1743,31 +1743,31 @@ var Ie = (e) => me(e) && !Qe(e) ? e : {
1743
1743
  value: e,
1744
1744
  message: ""
1745
1745
  }, er = async (e, r, t, l, f) => {
1746
- const { ref: i, refs: P, required: k, maxLength: X, minLength: H, min: L, max: D, pattern: ie, validate: te, name: ne, valueAsNumber: Q, mount: K, disabled: ue } = e._f, Z = j(r, ne);
1747
- if (!K || ue)
1746
+ const { ref: i, refs: P, required: S, maxLength: X, minLength: H, min: L, max: D, pattern: ie, validate: ee, name: re, valueAsNumber: Q, mount: J, disabled: ue } = e._f, Z = j(r, re);
1747
+ if (!J || ue)
1748
1748
  return {};
1749
- const J = P ? P[0] : i, ee = (O) => {
1750
- l && J.reportValidity && (J.setCustomValidity(Fe(O) ? "" : O || ""), J.reportValidity());
1751
- }, o = {}, E = xt(i), b = We(i), m = E || b, S = (Q || Pt(i)) && ge(i.value) && ge(Z) || Ge(i) && i.value === "" || Z === "" || Array.isArray(Z) && !Z.length, V = on.bind(null, ne, t, o), W = (O, B, U, M = Te.maxLength, A = Te.minLength) => {
1749
+ const ne = P ? P[0] : i, K = (O) => {
1750
+ l && ne.reportValidity && (ne.setCustomValidity(Fe(O) ? "" : O || ""), ne.reportValidity());
1751
+ }, o = {}, _ = xt(i), m = We(i), b = _ || m, E = (Q || Pt(i)) && ge(i.value) && ge(Z) || Ge(i) && i.value === "" || Z === "" || Array.isArray(Z) && !Z.length, V = on.bind(null, re, t, o), W = (O, B, U, M = Te.maxLength, A = Te.minLength) => {
1752
1752
  const Y = O ? B : U;
1753
- o[ne] = {
1753
+ o[re] = {
1754
1754
  type: O ? M : A,
1755
1755
  message: Y,
1756
1756
  ref: i,
1757
1757
  ...V(O ? M : A, Y)
1758
1758
  };
1759
1759
  };
1760
- if (f ? !Array.isArray(Z) || !Z.length : k && (!m && (S || Pe(Z)) || Fe(Z) && !Z || b && !cr(P).isValid || E && !fr(P).isValid)) {
1761
- const { value: O, message: B } = Je(k) ? { value: !!k, message: k } : Ie(k);
1762
- if (O && (o[ne] = {
1760
+ if (f ? !Array.isArray(Z) || !Z.length : S && (!b && (E || Pe(Z)) || Fe(Z) && !Z || m && !cr(P).isValid || _ && !fr(P).isValid)) {
1761
+ const { value: O, message: B } = Je(S) ? { value: !!S, message: S } : Ie(S);
1762
+ if (O && (o[re] = {
1763
1763
  type: Te.required,
1764
1764
  message: B,
1765
- ref: J,
1765
+ ref: ne,
1766
1766
  ...V(Te.required, B)
1767
1767
  }, !t))
1768
- return ee(B), o;
1768
+ return K(B), o;
1769
1769
  }
1770
- if (!S && (!Pe(L) || !Pe(D))) {
1770
+ if (!E && (!Pe(L) || !Pe(D))) {
1771
1771
  let O, B;
1772
1772
  const U = Ie(D), M = Ie(L);
1773
1773
  if (!Pe(Z) && !isNaN(Z)) {
@@ -1778,50 +1778,50 @@ var Ie = (e) => me(e) && !Qe(e) ? e : {
1778
1778
  Ae(U.value) && Z && (O = G ? Y(Z) > Y(U.value) : le ? Z > U.value : A > new Date(U.value)), Ae(M.value) && Z && (B = G ? Y(Z) < Y(M.value) : le ? Z < M.value : A < new Date(M.value));
1779
1779
  }
1780
1780
  if ((O || B) && (W(!!O, U.message, M.message, Te.max, Te.min), !t))
1781
- return ee(o[ne].message), o;
1781
+ return K(o[re].message), o;
1782
1782
  }
1783
- if ((X || H) && !S && (Ae(Z) || f && Array.isArray(Z))) {
1783
+ if ((X || H) && !E && (Ae(Z) || f && Array.isArray(Z))) {
1784
1784
  const O = Ie(X), B = Ie(H), U = !Pe(O.value) && Z.length > +O.value, M = !Pe(B.value) && Z.length < +B.value;
1785
1785
  if ((U || M) && (W(U, O.message, B.message), !t))
1786
- return ee(o[ne].message), o;
1786
+ return K(o[re].message), o;
1787
1787
  }
1788
- if (ie && !S && Ae(Z)) {
1788
+ if (ie && !E && Ae(Z)) {
1789
1789
  const { value: O, message: B } = Ie(ie);
1790
- if (Qe(O) && !Z.match(O) && (o[ne] = {
1790
+ if (Qe(O) && !Z.match(O) && (o[re] = {
1791
1791
  type: Te.pattern,
1792
1792
  message: B,
1793
1793
  ref: i,
1794
1794
  ...V(Te.pattern, B)
1795
1795
  }, !t))
1796
- return ee(B), o;
1796
+ return K(B), o;
1797
1797
  }
1798
- if (te) {
1799
- if (De(te)) {
1800
- const O = await te(Z, r), B = Qt(O, J);
1801
- if (B && (o[ne] = {
1798
+ if (ee) {
1799
+ if (De(ee)) {
1800
+ const O = await ee(Z, r), B = Qt(O, ne);
1801
+ if (B && (o[re] = {
1802
1802
  ...B,
1803
1803
  ...V(Te.validate, B.message)
1804
1804
  }, !t))
1805
- return ee(B.message), o;
1806
- } else if (me(te)) {
1805
+ return K(B.message), o;
1806
+ } else if (me(ee)) {
1807
1807
  let O = {};
1808
- for (const B in te) {
1808
+ for (const B in ee) {
1809
1809
  if (!xe(O) && !t)
1810
1810
  break;
1811
- const U = Qt(await te[B](Z, r), J, B);
1811
+ const U = Qt(await ee[B](Z, r), ne, B);
1812
1812
  U && (O = {
1813
1813
  ...U,
1814
1814
  ...V(B, U.message)
1815
- }, ee(U.message), t && (o[ne] = O));
1815
+ }, K(U.message), t && (o[re] = O));
1816
1816
  }
1817
- if (!xe(O) && (o[ne] = {
1818
- ref: J,
1817
+ if (!xe(O) && (o[re] = {
1818
+ ref: ne,
1819
1819
  ...O
1820
1820
  }, !t))
1821
1821
  return o;
1822
1822
  }
1823
1823
  }
1824
- return ee(!0), o;
1824
+ return K(!0), o;
1825
1825
  };
1826
1826
  function ln(e, r) {
1827
1827
  const t = r.slice(0, -1).length;
@@ -1928,13 +1928,13 @@ function tr(e, r, t) {
1928
1928
  };
1929
1929
  const f = t.split(".");
1930
1930
  for (; f.length; ) {
1931
- const i = f.join("."), P = j(r, i), k = j(e, i);
1931
+ const i = f.join("."), P = j(r, i), S = j(e, i);
1932
1932
  if (P && !Array.isArray(P) && t !== i)
1933
1933
  return { name: t };
1934
- if (k && k.type)
1934
+ if (S && S.type)
1935
1935
  return {
1936
1936
  name: i,
1937
- error: k
1937
+ error: S
1938
1938
  };
1939
1939
  f.pop();
1940
1940
  }
@@ -1970,7 +1970,7 @@ function pn(e = {}) {
1970
1970
  action: !1,
1971
1971
  mount: !1,
1972
1972
  watch: !1
1973
- }, k = {
1973
+ }, S = {
1974
1974
  mount: /* @__PURE__ */ new Set(),
1975
1975
  unMount: /* @__PURE__ */ new Set(),
1976
1976
  array: /* @__PURE__ */ new Set(),
@@ -1988,17 +1988,17 @@ function pn(e = {}) {
1988
1988
  values: pt(),
1989
1989
  array: pt(),
1990
1990
  state: pt()
1991
- }, ie = Xt(r.mode), te = Xt(r.reValidateMode), ne = r.criteriaMode === Ce.all, Q = (n) => (s) => {
1991
+ }, ie = Xt(r.mode), ee = Xt(r.reValidateMode), re = r.criteriaMode === Ce.all, Q = (n) => (s) => {
1992
1992
  clearTimeout(H), H = setTimeout(n, s);
1993
- }, K = async (n) => {
1993
+ }, J = async (n) => {
1994
1994
  if (L.isValid || n) {
1995
- const s = r.resolver ? xe((await m()).errors) : await V(l, !0);
1995
+ const s = r.resolver ? xe((await b()).errors) : await V(l, !0);
1996
1996
  s !== t.isValid && D.state.next({
1997
1997
  isValid: s
1998
1998
  });
1999
1999
  }
2000
2000
  }, ue = (n, s) => {
2001
- (L.isValidating || L.validatingFields) && ((n || Array.from(k.mount)).forEach((d) => {
2001
+ (L.isValidating || L.validatingFields) && ((n || Array.from(S.mount)).forEach((d) => {
2002
2002
  d && (s ? ce(t.validatingFields, d, s) : pe(t.validatingFields, d));
2003
2003
  }), D.state.next({
2004
2004
  validatingFields: t.validatingFields,
@@ -2027,11 +2027,11 @@ function pn(e = {}) {
2027
2027
  });
2028
2028
  } else
2029
2029
  ce(i, n, s);
2030
- }, J = (n, s) => {
2030
+ }, ne = (n, s) => {
2031
2031
  ce(t.errors, n, s), D.state.next({
2032
2032
  errors: t.errors
2033
2033
  });
2034
- }, ee = (n) => {
2034
+ }, K = (n) => {
2035
2035
  t.errors = n, D.state.next({
2036
2036
  errors: t.errors,
2037
2037
  isValid: !1
@@ -2040,26 +2040,26 @@ function pn(e = {}) {
2040
2040
  const w = j(l, n);
2041
2041
  if (w) {
2042
2042
  const x = j(i, n, ge(d) ? j(f, n) : d);
2043
- ge(x) || R && R.defaultChecked || s ? ce(i, n, s ? x : bt(w._f)) : M(n, x), P.mount && K();
2043
+ ge(x) || R && R.defaultChecked || s ? ce(i, n, s ? x : bt(w._f)) : M(n, x), P.mount && J();
2044
2044
  }
2045
- }, E = (n, s, d, R, w) => {
2045
+ }, _ = (n, s, d, R, w) => {
2046
2046
  let x = !1, q = !1;
2047
- const re = {
2047
+ const te = {
2048
2048
  name: n
2049
2049
  }, fe = !!(j(l, n) && j(l, n)._f && j(l, n)._f.disabled);
2050
2050
  if (!d || R) {
2051
- L.isDirty && (q = t.isDirty, t.isDirty = re.isDirty = O(), x = q !== re.isDirty);
2051
+ L.isDirty && (q = t.isDirty, t.isDirty = te.isDirty = O(), x = q !== te.isDirty);
2052
2052
  const Ee = fe || Me(j(f, n), s);
2053
- q = !!(!fe && j(t.dirtyFields, n)), Ee || fe ? pe(t.dirtyFields, n) : ce(t.dirtyFields, n, !0), re.dirtyFields = t.dirtyFields, x = x || L.dirtyFields && q !== !Ee;
2053
+ q = !!(!fe && j(t.dirtyFields, n)), Ee || fe ? pe(t.dirtyFields, n) : ce(t.dirtyFields, n, !0), te.dirtyFields = t.dirtyFields, x = x || L.dirtyFields && q !== !Ee;
2054
2054
  }
2055
2055
  if (d) {
2056
2056
  const Ee = j(t.touchedFields, n);
2057
- Ee || (ce(t.touchedFields, n, d), re.touchedFields = t.touchedFields, x = x || L.touchedFields && Ee !== d);
2057
+ Ee || (ce(t.touchedFields, n, d), te.touchedFields = t.touchedFields, x = x || L.touchedFields && Ee !== d);
2058
2058
  }
2059
- return x && w && D.state.next(re), x ? re : {};
2060
- }, b = (n, s, d, R) => {
2059
+ return x && w && D.state.next(te), x ? te : {};
2060
+ }, m = (n, s, d, R) => {
2061
2061
  const w = j(t.errors, n), x = L.isValid && Fe(s) && t.isValid !== s;
2062
- if (e.delayError && d ? (X = Q(() => J(n, d)), X(e.delayError)) : (clearTimeout(H), X = null, d ? ce(t.errors, n, d) : pe(t.errors, n)), (d ? !Me(w, d) : w) || !xe(R) || x) {
2062
+ if (e.delayError && d ? (X = Q(() => ne(n, d)), X(e.delayError)) : (clearTimeout(H), X = null, d ? ce(t.errors, n, d) : pe(t.errors, n)), (d ? !Me(w, d) : w) || !xe(R) || x) {
2063
2063
  const q = {
2064
2064
  ...R,
2065
2065
  ...x && Fe(s) ? { isValid: s } : {},
@@ -2071,12 +2071,12 @@ function pn(e = {}) {
2071
2071
  ...q
2072
2072
  }, D.state.next(q);
2073
2073
  }
2074
- }, m = async (n) => {
2074
+ }, b = async (n) => {
2075
2075
  ue(n, !0);
2076
- const s = await r.resolver(i, r.context, dn(n || k.mount, l, r.criteriaMode, r.shouldUseNativeValidation));
2076
+ const s = await r.resolver(i, r.context, dn(n || S.mount, l, r.criteriaMode, r.shouldUseNativeValidation));
2077
2077
  return ue(n), s;
2078
- }, S = async (n) => {
2079
- const { errors: s } = await m(n);
2078
+ }, E = async (n) => {
2079
+ const { errors: s } = await b(n);
2080
2080
  if (n)
2081
2081
  for (const d of n) {
2082
2082
  const R = j(s, d);
@@ -2093,43 +2093,43 @@ function pn(e = {}) {
2093
2093
  if (w) {
2094
2094
  const { _f: x, ...q } = w;
2095
2095
  if (x) {
2096
- const re = k.array.has(x.name);
2096
+ const te = S.array.has(x.name);
2097
2097
  ue([R], !0);
2098
- const fe = await er(w, i, ne, r.shouldUseNativeValidation && !s, re);
2098
+ const fe = await er(w, i, re, r.shouldUseNativeValidation && !s, te);
2099
2099
  if (ue([R]), fe[x.name] && (d.valid = !1, s))
2100
2100
  break;
2101
- !s && (j(fe, x.name) ? re ? un(t.errors, fe, x.name) : ce(t.errors, x.name, fe[x.name]) : pe(t.errors, x.name));
2101
+ !s && (j(fe, x.name) ? te ? un(t.errors, fe, x.name) : ce(t.errors, x.name, fe[x.name]) : pe(t.errors, x.name));
2102
2102
  }
2103
2103
  !xe(q) && await V(q, s, d);
2104
2104
  }
2105
2105
  }
2106
2106
  return d.valid;
2107
2107
  }, W = () => {
2108
- for (const n of k.unMount) {
2108
+ for (const n of S.unMount) {
2109
2109
  const s = j(l, n);
2110
2110
  s && (s._f.refs ? s._f.refs.every((d) => !mt(d)) : !mt(s._f.ref)) && y(n);
2111
2111
  }
2112
- k.unMount = /* @__PURE__ */ new Set();
2113
- }, O = (n, s) => (n && s && ce(i, n, s), !Me(_(), f)), B = (n, s, d) => sn(n, k, {
2112
+ S.unMount = /* @__PURE__ */ new Set();
2113
+ }, O = (n, s) => (n && s && ce(i, n, s), !Me(k(), f)), B = (n, s, d) => sn(n, S, {
2114
2114
  ...P.mount ? i : ge(s) ? f : Ae(n) ? { [n]: s } : s
2115
2115
  }, d, s), U = (n) => rt(j(P.mount ? i : f, n, e.shouldUnregister ? j(f, n, []) : [])), M = (n, s, d = {}) => {
2116
2116
  const R = j(l, n);
2117
2117
  let w = s;
2118
2118
  if (R) {
2119
2119
  const x = R._f;
2120
- x && (!x.disabled && ce(i, n, gr(s, x)), w = Ge(x.ref) && Pe(s) ? "" : s, dr(x.ref) ? [...x.ref.options].forEach((q) => q.selected = w.includes(q.value)) : x.refs ? We(x.ref) ? x.refs.length > 1 ? x.refs.forEach((q) => (!q.defaultChecked || !q.disabled) && (q.checked = Array.isArray(w) ? !!w.find((re) => re === q.value) : w === q.value)) : x.refs[0] && (x.refs[0].checked = !!w) : x.refs.forEach((q) => q.checked = q.value === w) : Pt(x.ref) ? x.ref.value = "" : (x.ref.value = w, x.ref.type || D.values.next({
2120
+ x && (!x.disabled && ce(i, n, gr(s, x)), w = Ge(x.ref) && Pe(s) ? "" : s, dr(x.ref) ? [...x.ref.options].forEach((q) => q.selected = w.includes(q.value)) : x.refs ? We(x.ref) ? x.refs.length > 1 ? x.refs.forEach((q) => (!q.defaultChecked || !q.disabled) && (q.checked = Array.isArray(w) ? !!w.find((te) => te === q.value) : w === q.value)) : x.refs[0] && (x.refs[0].checked = !!w) : x.refs.forEach((q) => q.checked = q.value === w) : Pt(x.ref) ? x.ref.value = "" : (x.ref.value = w, x.ref.type || D.values.next({
2121
2121
  name: n,
2122
2122
  values: { ...i }
2123
2123
  })));
2124
2124
  }
2125
- (d.shouldDirty || d.shouldTouch) && E(n, w, d.shouldTouch, d.shouldDirty, !0), d.shouldValidate && g(n);
2125
+ (d.shouldDirty || d.shouldTouch) && _(n, w, d.shouldTouch, d.shouldDirty, !0), d.shouldValidate && g(n);
2126
2126
  }, A = (n, s, d) => {
2127
2127
  for (const R in s) {
2128
2128
  const w = s[R], x = `${n}.${R}`, q = j(l, x);
2129
- (k.array.has(n) || !et(w) || q && !q._f) && !je(w) ? A(x, w, d) : M(x, w, d);
2129
+ (S.array.has(n) || !et(w) || q && !q._f) && !je(w) ? A(x, w, d) : M(x, w, d);
2130
2130
  }
2131
2131
  }, Y = (n, s, d = {}) => {
2132
- const R = j(l, n), w = k.array.has(n), x = Oe(s);
2132
+ const R = j(l, n), w = S.array.has(n), x = Oe(s);
2133
2133
  ce(i, n, x), w ? (D.array.next({
2134
2134
  name: n,
2135
2135
  values: { ...i }
@@ -2137,7 +2137,7 @@ function pn(e = {}) {
2137
2137
  name: n,
2138
2138
  dirtyFields: Ze(f, i),
2139
2139
  isDirty: O(n, x)
2140
- })) : R && !R._f && !Pe(x) ? A(n, x, d) : M(n, x, d), Zt(n, k) && D.state.next({ ...t }), D.values.next({
2140
+ })) : R && !R._f && !Pe(x) ? A(n, x, d) : M(n, x, d), Zt(n, S) && D.state.next({ ...t }), D.values.next({
2141
2141
  name: P.mount ? n : void 0,
2142
2142
  values: { ...i }
2143
2143
  });
@@ -2145,29 +2145,29 @@ function pn(e = {}) {
2145
2145
  P.mount = !0;
2146
2146
  const s = n.target;
2147
2147
  let d = s.name, R = !0;
2148
- const w = j(l, d), x = () => s.type ? bt(w._f) : Gr(n), q = (re) => {
2149
- R = Number.isNaN(re) || re === j(i, d, re);
2148
+ const w = j(l, d), x = () => s.type ? bt(w._f) : Gr(n), q = (te) => {
2149
+ R = Number.isNaN(te) || te === j(i, d, te);
2150
2150
  };
2151
2151
  if (w) {
2152
- let re, fe;
2153
- const Ee = x(), Re = n.type === Ht.BLUR || n.type === Ht.FOCUS_OUT, Be = !vn(w._f) && !r.resolver && !j(t.errors, d) && !w._f.deps || hn(Re, j(t.touchedFields, d), t.isSubmitted, te, ie), Le = Zt(d, k, Re);
2152
+ let te, fe;
2153
+ const Ee = x(), Re = n.type === Ht.BLUR || n.type === Ht.FOCUS_OUT, Be = !vn(w._f) && !r.resolver && !j(t.errors, d) && !w._f.deps || hn(Re, j(t.touchedFields, d), t.isSubmitted, ee, ie), Le = Zt(d, S, Re);
2154
2154
  ce(i, d, Ee), Re ? (w._f.onBlur && w._f.onBlur(n), X && X(0)) : w._f.onChange && w._f.onChange(n);
2155
- const Ne = E(d, Ee, Re, !1), nt = !xe(Ne) || Le;
2155
+ const Ne = _(d, Ee, Re, !1), nt = !xe(Ne) || Le;
2156
2156
  if (!Re && D.values.next({
2157
2157
  name: d,
2158
2158
  type: n.type,
2159
2159
  values: { ...i }
2160
2160
  }), Be)
2161
- return L.isValid && K(), nt && D.state.next({ name: d, ...Le ? {} : Ne });
2161
+ return L.isValid && J(), nt && D.state.next({ name: d, ...Le ? {} : Ne });
2162
2162
  if (!Re && Le && D.state.next({ ...t }), r.resolver) {
2163
- const { errors: qe } = await m([d]);
2163
+ const { errors: qe } = await b([d]);
2164
2164
  if (q(Ee), R) {
2165
2165
  const be = tr(t.errors, l, d), de = tr(qe, l, be.name || d);
2166
- re = de.error, d = de.name, fe = xe(qe);
2166
+ te = de.error, d = de.name, fe = xe(qe);
2167
2167
  }
2168
2168
  } else
2169
- ue([d], !0), re = (await er(w, i, ne, r.shouldUseNativeValidation))[d], ue([d]), q(Ee), R && (re ? fe = !1 : L.isValid && (fe = await V(l, !0)));
2170
- R && (w._f.deps && g(w._f.deps), b(d, fe, re, Ne));
2169
+ ue([d], !0), te = (await er(w, i, re, r.shouldUseNativeValidation))[d], ue([d]), q(Ee), R && (te ? fe = !1 : L.isValid && (fe = await V(l, !0)));
2170
+ R && (w._f.deps && g(w._f.deps), m(d, fe, te, Ne));
2171
2171
  }
2172
2172
  }, le = (n, s) => {
2173
2173
  if (j(t.errors, s) && n.focus)
@@ -2176,19 +2176,19 @@ function pn(e = {}) {
2176
2176
  let d, R;
2177
2177
  const w = Ke(n);
2178
2178
  if (r.resolver) {
2179
- const x = await S(ge(n) ? n : w);
2179
+ const x = await E(ge(n) ? n : w);
2180
2180
  d = xe(x), R = n ? !w.some((q) => j(x, q)) : d;
2181
2181
  } else
2182
2182
  n ? (R = (await Promise.all(w.map(async (x) => {
2183
2183
  const q = j(l, x);
2184
2184
  return await V(q && q._f ? { [x]: q } : q);
2185
- }))).every(Boolean), !(!R && !t.isValid) && K()) : R = d = await V(l);
2185
+ }))).every(Boolean), !(!R && !t.isValid) && J()) : R = d = await V(l);
2186
2186
  return D.state.next({
2187
2187
  ...!Ae(n) || L.isValid && d !== t.isValid ? {} : { name: n },
2188
2188
  ...r.resolver || !n ? { isValid: d } : {},
2189
2189
  errors: t.errors
2190
- }), s.shouldFocus && !R && Ue(l, le, n ? w : k.mount), R;
2191
- }, _ = (n) => {
2190
+ }), s.shouldFocus && !R && Ue(l, le, n ? w : S.mount), R;
2191
+ }, k = (n) => {
2192
2192
  const s = {
2193
2193
  ...P.mount ? i : f
2194
2194
  };
@@ -2204,7 +2204,7 @@ function pn(e = {}) {
2204
2204
  errors: n ? t.errors : {}
2205
2205
  });
2206
2206
  }, a = (n, s, d) => {
2207
- const R = (j(l, n, { _f: {} })._f || {}).ref, w = j(t.errors, n) || {}, { ref: x, message: q, type: re, ...fe } = w;
2207
+ const R = (j(l, n, { _f: {} })._f || {}).ref, w = j(t.errors, n) || {}, { ref: x, message: q, type: te, ...fe } = w;
2208
2208
  ce(t.errors, n, {
2209
2209
  ...fe,
2210
2210
  ...s,
@@ -2217,18 +2217,18 @@ function pn(e = {}) {
2217
2217
  }, c = (n, s) => De(n) ? D.values.subscribe({
2218
2218
  next: (d) => n(B(void 0, s), d)
2219
2219
  }) : B(n, s, !0), y = (n, s = {}) => {
2220
- for (const d of n ? Ke(n) : k.mount)
2221
- k.mount.delete(d), k.array.delete(d), s.keepValue || (pe(l, d), pe(i, d)), !s.keepError && pe(t.errors, d), !s.keepDirty && pe(t.dirtyFields, d), !s.keepTouched && pe(t.touchedFields, d), !s.keepIsValidating && pe(t.validatingFields, d), !r.shouldUnregister && !s.keepDefaultValue && pe(f, d);
2220
+ for (const d of n ? Ke(n) : S.mount)
2221
+ S.mount.delete(d), S.array.delete(d), s.keepValue || (pe(l, d), pe(i, d)), !s.keepError && pe(t.errors, d), !s.keepDirty && pe(t.dirtyFields, d), !s.keepTouched && pe(t.touchedFields, d), !s.keepIsValidating && pe(t.validatingFields, d), !r.shouldUnregister && !s.keepDefaultValue && pe(f, d);
2222
2222
  D.values.next({
2223
2223
  values: { ...i }
2224
2224
  }), D.state.next({
2225
2225
  ...t,
2226
2226
  ...s.keepDirty ? { isDirty: O() } : {}
2227
- }), !s.keepIsValid && K();
2227
+ }), !s.keepIsValid && J();
2228
2228
  }, p = ({ disabled: n, name: s, field: d, fields: R, value: w }) => {
2229
2229
  if (Fe(n) && P.mount || n) {
2230
2230
  const x = n ? void 0 : ge(w) ? bt(d ? d._f : j(R, s)._f) : w;
2231
- ce(i, s, x), E(s, x, !1, !1, !0);
2231
+ ce(i, s, x), _(s, x, !1, !1, !0);
2232
2232
  }
2233
2233
  }, F = (n, s = {}) => {
2234
2234
  let d = j(l, n);
@@ -2241,7 +2241,7 @@ function pn(e = {}) {
2241
2241
  mount: !0,
2242
2242
  ...s
2243
2243
  }
2244
- }), k.mount.add(n), d ? p({
2244
+ }), S.mount.add(n), d ? p({
2245
2245
  field: d,
2246
2246
  disabled: s.disabled,
2247
2247
  name: n,
@@ -2262,15 +2262,15 @@ function pn(e = {}) {
2262
2262
  ref: (w) => {
2263
2263
  if (w) {
2264
2264
  F(n, s), d = j(l, n);
2265
- const x = ge(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, q = fn(x), re = d._f.refs || [];
2266
- if (q ? re.find((fe) => fe === x) : x === d._f.ref)
2265
+ const x = ge(w.value) && w.querySelectorAll && w.querySelectorAll("input,select,textarea")[0] || w, q = fn(x), te = d._f.refs || [];
2266
+ if (q ? te.find((fe) => fe === x) : x === d._f.ref)
2267
2267
  return;
2268
2268
  ce(l, n, {
2269
2269
  _f: {
2270
2270
  ...d._f,
2271
2271
  ...q ? {
2272
2272
  refs: [
2273
- ...re.filter(mt),
2273
+ ...te.filter(mt),
2274
2274
  x,
2275
2275
  ...Array.isArray(j(f, n)) ? [{}] : []
2276
2276
  ],
@@ -2279,10 +2279,10 @@ function pn(e = {}) {
2279
2279
  }
2280
2280
  }), o(n, !1, void 0, x);
2281
2281
  } else
2282
- d = j(l, n, {}), d._f && (d._f.mount = !1), (r.shouldUnregister || s.shouldUnregister) && !(en(k.array, n) && P.action) && k.unMount.add(n);
2282
+ d = j(l, n, {}), d._f && (d._f.mount = !1), (r.shouldUnregister || s.shouldUnregister) && !(en(S.array, n) && P.action) && S.unMount.add(n);
2283
2283
  }
2284
2284
  };
2285
- }, C = () => r.shouldFocusError && Ue(l, le, k.mount), T = (n) => {
2285
+ }, C = () => r.shouldFocusError && Ue(l, le, S.mount), T = (n) => {
2286
2286
  Fe(n) && (D.state.next({ disabled: n }), Ue(l, (s, d) => {
2287
2287
  const R = j(l, d);
2288
2288
  R && (s.disabled = R._f.disabled || n, Array.isArray(R._f.refs) && R._f.refs.forEach((w) => {
@@ -2296,7 +2296,7 @@ function pn(e = {}) {
2296
2296
  if (D.state.next({
2297
2297
  isSubmitting: !0
2298
2298
  }), r.resolver) {
2299
- const { errors: x, values: q } = await m();
2299
+ const { errors: x, values: q } = await b();
2300
2300
  t.errors = x, w = q;
2301
2301
  } else
2302
2302
  await V(l);
@@ -2320,19 +2320,19 @@ function pn(e = {}) {
2320
2320
  }), R)
2321
2321
  throw R;
2322
2322
  }, h = (n, s = {}) => {
2323
- j(l, n) && (ge(s.defaultValue) ? Y(n, Oe(j(f, n))) : (Y(n, s.defaultValue), ce(f, n, Oe(s.defaultValue))), s.keepTouched || pe(t.touchedFields, n), s.keepDirty || (pe(t.dirtyFields, n), t.isDirty = s.defaultValue ? O(n, Oe(j(f, n))) : O()), s.keepError || (pe(t.errors, n), L.isValid && K()), D.state.next({ ...t }));
2323
+ j(l, n) && (ge(s.defaultValue) ? Y(n, Oe(j(f, n))) : (Y(n, s.defaultValue), ce(f, n, Oe(s.defaultValue))), s.keepTouched || pe(t.touchedFields, n), s.keepDirty || (pe(t.dirtyFields, n), t.isDirty = s.defaultValue ? O(n, Oe(j(f, n))) : O()), s.keepError || (pe(t.errors, n), L.isValid && J()), D.state.next({ ...t }));
2324
2324
  }, I = (n, s = {}) => {
2325
2325
  const d = n ? Oe(n) : f, R = Oe(d), w = xe(n), x = w ? f : R;
2326
2326
  if (s.keepDefaultValues || (f = d), !s.keepValues) {
2327
2327
  if (s.keepDirtyValues)
2328
- for (const q of k.mount)
2328
+ for (const q of S.mount)
2329
2329
  j(t.dirtyFields, q) ? ce(x, q, j(i, q)) : Y(q, j(x, q));
2330
2330
  else {
2331
2331
  if (kt && ge(n))
2332
- for (const q of k.mount) {
2333
- const re = j(l, q);
2334
- if (re && re._f) {
2335
- const fe = Array.isArray(re._f.refs) ? re._f.refs[0] : re._f.ref;
2332
+ for (const q of S.mount) {
2333
+ const te = j(l, q);
2334
+ if (te && te._f) {
2335
+ const fe = Array.isArray(te._f.refs) ? te._f.refs[0] : te._f.ref;
2336
2336
  if (Ge(fe)) {
2337
2337
  const Ee = fe.closest("form");
2338
2338
  if (Ee) {
@@ -2350,8 +2350,8 @@ function pn(e = {}) {
2350
2350
  values: { ...x }
2351
2351
  });
2352
2352
  }
2353
- k = {
2354
- mount: s.keepDirtyValues ? k.mount : /* @__PURE__ */ new Set(),
2353
+ S = {
2354
+ mount: s.keepDirtyValues ? S.mount : /* @__PURE__ */ new Set(),
2355
2355
  unMount: /* @__PURE__ */ new Set(),
2356
2356
  array: /* @__PURE__ */ new Set(),
2357
2357
  watch: /* @__PURE__ */ new Set(),
@@ -2375,10 +2375,10 @@ function pn(e = {}) {
2375
2375
  getFieldState: v,
2376
2376
  handleSubmit: z,
2377
2377
  setError: a,
2378
- _executeSchema: m,
2378
+ _executeSchema: b,
2379
2379
  _getWatch: B,
2380
2380
  _getDirty: O,
2381
- _updateValid: K,
2381
+ _updateValid: J,
2382
2382
  _removeUnmounted: W,
2383
2383
  _updateFieldArray: Z,
2384
2384
  _updateDisabledField: p,
@@ -2398,7 +2398,7 @@ function pn(e = {}) {
2398
2398
  _disableForm: T,
2399
2399
  _subjects: D,
2400
2400
  _proxyFormState: L,
2401
- _setErrors: ee,
2401
+ _setErrors: K,
2402
2402
  get _fields() {
2403
2403
  return l;
2404
2404
  },
@@ -2415,10 +2415,10 @@ function pn(e = {}) {
2415
2415
  return f;
2416
2416
  },
2417
2417
  get _names() {
2418
- return k;
2418
+ return S;
2419
2419
  },
2420
2420
  set _names(n) {
2421
- k = n;
2421
+ S = n;
2422
2422
  },
2423
2423
  get _formState() {
2424
2424
  return t;
@@ -2441,7 +2441,7 @@ function pn(e = {}) {
2441
2441
  handleSubmit: z,
2442
2442
  watch: c,
2443
2443
  setValue: Y,
2444
- getValues: _,
2444
+ getValues: k,
2445
2445
  reset: N,
2446
2446
  resetField: h,
2447
2447
  clearErrors: u,
@@ -2511,47 +2511,49 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2511
2511
  isEmail: f,
2512
2512
  isPhone: i,
2513
2513
  isTextArea: P,
2514
- telegramLink: k = "https://t.me/stone_developer",
2514
+ telegramLink: S = "https://t.me/stone_developer",
2515
2515
  isRequiredPhone: X = !0,
2516
2516
  isRequiredEmail: H = !1,
2517
2517
  isRequiredPhoneOrEmail: L,
2518
2518
  textAreaPlaceholder: D,
2519
2519
  subTitle: ie,
2520
- submitHandler: te,
2521
- modalWidth: ne = "442px",
2520
+ submitHandler: ee,
2521
+ modalWidth: re = "442px",
2522
2522
  rowsTextArea: Q = 2,
2523
- advCheckBox: K = { text: En, isRequired: !0 },
2523
+ advCheckBox: J = { text: En, isRequired: !0 },
2524
2524
  isAdvCheckBox: ue,
2525
- addTitleClassName: Z
2525
+ addTitleClassName: Z,
2526
+ createPortalObj: ne
2526
2527
  }) => {
2527
2528
  const {
2528
- register: J,
2529
- handleSubmit: ee,
2530
- trigger: o,
2531
- reset: E,
2529
+ register: K,
2530
+ handleSubmit: o,
2531
+ trigger: _,
2532
+ reset: m,
2532
2533
  watch: b,
2533
- formState: { errors: m }
2534
- } = mn(), S = !!b("email"), { onChange: V, onBlur: W, ...O } = J("phone", {
2535
- required: H || X || L && !S,
2534
+ formState: { errors: E }
2535
+ } = mn(), V = !!b("email"), { onChange: W, onBlur: O, ...B } = K("phone", {
2536
+ required: H || X || L && !V,
2536
2537
  pattern: { value: xr, message: "" },
2537
- onBlur: () => o("phone")
2538
- }), { isMobile: B, currentClientWidth: U } = Ar(), M = b("personalCheckBox"), A = b("advCheckBox"), Y = (G) => {
2539
- te(G), E();
2538
+ onBlur: () => _("phone")
2539
+ }), { isMobile: U, currentClientWidth: M } = Ar(), A = b("personalCheckBox"), Y = b("advCheckBox"), G = (le) => {
2540
+ ee(le), m();
2540
2541
  };
2541
- return U ? /* @__PURE__ */ ye(
2542
+ return M ? /* @__PURE__ */ ye(
2542
2543
  Sr,
2543
2544
  {
2545
+ additionalClass: Se.modal,
2546
+ additionalClassModalBody: Se.modalBody,
2547
+ createPortalObj: ne,
2544
2548
  isOpen: e,
2549
+ isTransparentBack: !0,
2545
2550
  emitIsOpen: () => r(!1),
2546
- additionalClass: Se.modal,
2547
2551
  opacity: 0.7,
2548
- isTransparentBack: !0,
2549
- additionalClassModalBody: Se.modalBody,
2550
2552
  children: /* @__PURE__ */ Ve(
2551
2553
  "div",
2552
2554
  {
2553
2555
  className: Se.root,
2554
- style: { width: B ? "100%" : ne },
2556
+ style: { width: U ? "100%" : re },
2555
2557
  children: [
2556
2558
  /* @__PURE__ */ ye(
2557
2559
  "div",
@@ -2565,7 +2567,7 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2565
2567
  "a",
2566
2568
  {
2567
2569
  className: Se.telegramLink,
2568
- href: k,
2570
+ href: S,
2569
2571
  target: "_blank",
2570
2572
  children: /* @__PURE__ */ Ve("div", { className: Se.telegram, children: [
2571
2573
  /* @__PURE__ */ ye("div", { children: "Подписаться в Telegram" }),
@@ -2584,7 +2586,7 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2584
2586
  }
2585
2587
  }
2586
2588
  ),
2587
- /* @__PURE__ */ Ve("form", { onSubmit: ee(Y), children: [
2589
+ /* @__PURE__ */ Ve("form", { onSubmit: o(G), children: [
2588
2590
  /* @__PURE__ */ Ve(Pr, { className: Se.inputWrapper, children: [
2589
2591
  /* @__PURE__ */ ye(
2590
2592
  st,
@@ -2594,8 +2596,8 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2594
2596
  variant: "light",
2595
2597
  placeholder: "Введите имя",
2596
2598
  "data-testid": "modal_name",
2597
- ...J("name", { required: !0, pattern: wr }),
2598
- error: !!m.name
2599
+ ...K("name", { required: !0, pattern: wr }),
2600
+ error: !!E.name
2599
2601
  }
2600
2602
  ),
2601
2603
  i && /* @__PURE__ */ ye(
@@ -2604,9 +2606,9 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2604
2606
  inputMode: "numeric",
2605
2607
  name: "phone",
2606
2608
  mask: "+7 (999) 999-99-99",
2607
- onChange: V,
2609
+ onChange: W,
2608
2610
  placeholder: "+7 (- - -) - - - - - - -",
2609
- onBlur: W,
2611
+ onBlur: O,
2610
2612
  children: /* @__PURE__ */ ye(
2611
2613
  st,
2612
2614
  {
@@ -2615,9 +2617,9 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2615
2617
  type: "tel",
2616
2618
  size_s: "small",
2617
2619
  variant: "light",
2618
- ...O,
2619
- ...J("phone"),
2620
- error: !!m.phone
2620
+ ...B,
2621
+ ...K("phone"),
2622
+ error: !!E.phone
2621
2623
  }
2622
2624
  )
2623
2625
  }
@@ -2630,11 +2632,11 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2630
2632
  variant: "light",
2631
2633
  placeholder: "Введите email",
2632
2634
  "data-testid": "modal_email",
2633
- ...J("email", {
2634
- required: H || L && !S,
2635
+ ...K("email", {
2636
+ required: H || L && !V,
2635
2637
  pattern: Or
2636
2638
  }),
2637
- error: !!m.email
2639
+ error: !!E.email
2638
2640
  }
2639
2641
  ),
2640
2642
  P && /* @__PURE__ */ ye(
@@ -2644,26 +2646,26 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2644
2646
  placeholder: D,
2645
2647
  rows: Q,
2646
2648
  width: "full",
2647
- ...J("textarea")
2649
+ ...K("textarea")
2648
2650
  }
2649
2651
  ),
2650
- K && !t && ue && /* @__PURE__ */ ye(
2652
+ J && !t && ue && /* @__PURE__ */ ye(
2651
2653
  Vt,
2652
2654
  {
2653
2655
  "data-testid": "modal_advCheckBox",
2654
- isChecked: A,
2655
- error: !!m.advCheckBox,
2656
- text: K.text,
2657
- ...J("advCheckBox", { required: K == null ? void 0 : K.isRequired })
2656
+ isChecked: Y,
2657
+ error: !!E.advCheckBox,
2658
+ text: J.text,
2659
+ ...K("advCheckBox", { required: J == null ? void 0 : J.isRequired })
2658
2660
  }
2659
2661
  ),
2660
2662
  /* @__PURE__ */ Ve(
2661
2663
  Vt,
2662
2664
  {
2663
2665
  "data-testid": "modal_personalCheckBox",
2664
- isChecked: M,
2665
- error: !!m.personalCheckBox,
2666
- ...J("personalCheckBox", { required: !t }),
2666
+ isChecked: A,
2667
+ error: !!E.personalCheckBox,
2668
+ ...K("personalCheckBox", { required: !t }),
2667
2669
  children: [
2668
2670
  t && /* @__PURE__ */ Ve("div", { children: [
2669
2671
  "Согласен(-на)",
@@ -2705,7 +2707,7 @@ const bn = kr.bind(Se), En = "Я принимаю условия Политик
2705
2707
  size: "large",
2706
2708
  as: "button",
2707
2709
  additionalClass: Se.modalBtn,
2708
- disabled: !!m.name || !!m.phone && X || !!m.email && H || !!m.advCheckBox && (K == null ? void 0 : K.isRequired) || !!m.personalCheckBox && !t,
2710
+ disabled: !!E.name || !!E.phone && X || !!E.email && H || !!E.advCheckBox && (J == null ? void 0 : J.isRequired) || !!E.personalCheckBox && !t,
2709
2711
  children: "Отправить запрос"
2710
2712
  }
2711
2713
  )