@pnkx-lib/ui 1.0.9 → 1.1.1

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.
@@ -1,11 +1,11 @@
1
- import * as tt from "react";
2
- import T, { createContext as En, useContext as Rn, useEffect as Tn } from "react";
3
- import { Typography as On } from "antd";
4
- var $i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
- function An(e) {
1
+ import * as Oe from "react";
2
+ import k, { createContext as Rn, useContext as Tn, useEffect as On } from "react";
3
+ import { Typography as An } from "antd";
4
+ var Wi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
+ function Fn(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var ct = { exports: {} }, Ge = {};
8
+ var ct = { exports: {} }, Xe = {};
9
9
  /**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
@@ -15,21 +15,21 @@ var ct = { exports: {} }, Ge = {};
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
17
  */
18
- var gr;
19
- function Fn() {
20
- if (gr) return Ge;
21
- gr = 1;
22
- var e = T, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ var yr;
19
+ function kn() {
20
+ if (yr) return Xe;
21
+ yr = 1;
22
+ var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function l(c, h, _) {
24
- var b, C = {}, S = null, X = null;
25
- _ !== void 0 && (S = "" + _), h.key !== void 0 && (S = "" + h.key), h.ref !== void 0 && (X = h.ref);
26
- for (b in h) n.call(h, b) && !o.hasOwnProperty(b) && (C[b] = h[b]);
27
- if (c && c.defaultProps) for (b in h = c.defaultProps, h) C[b] === void 0 && (C[b] = h[b]);
28
- return { $$typeof: t, type: c, key: S, ref: X, props: C, _owner: i.current };
24
+ var m, C = {}, S = null, G = null;
25
+ _ !== void 0 && (S = "" + _), h.key !== void 0 && (S = "" + h.key), h.ref !== void 0 && (G = h.ref);
26
+ for (m in h) n.call(h, m) && !o.hasOwnProperty(m) && (C[m] = h[m]);
27
+ if (c && c.defaultProps) for (m in h = c.defaultProps, h) C[m] === void 0 && (C[m] = h[m]);
28
+ return { $$typeof: t, type: c, key: S, ref: G, props: C, _owner: i.current };
29
29
  }
30
- return Ge.Fragment = r, Ge.jsx = l, Ge.jsxs = l, Ge;
30
+ return Xe.Fragment = r, Xe.jsx = l, Xe.jsxs = l, Xe;
31
31
  }
32
- var Xe = {};
32
+ var Qe = {};
33
33
  /**
34
34
  * @license React
35
35
  * react-jsx-runtime.development.js
@@ -39,18 +39,18 @@ var Xe = {};
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
41
  */
42
- var yr;
43
- function kn() {
44
- return yr || (yr = 1, process.env.NODE_ENV !== "production" && function() {
45
- var e = T, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), Q = Symbol.iterator, N = "@@iterator";
46
- function q(s) {
42
+ var vr;
43
+ function Vn() {
44
+ return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() {
45
+ var e = k, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), X = Symbol.iterator, N = "@@iterator";
46
+ function Q(s) {
47
47
  if (s === null || typeof s != "object")
48
48
  return null;
49
- var d = Q && s[Q] || s[N];
49
+ var d = X && s[X] || s[N];
50
50
  return typeof d == "function" ? d : null;
51
51
  }
52
52
  var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
- function w(s) {
53
+ function x(s) {
54
54
  {
55
55
  for (var d = arguments.length, p = new Array(d > 1 ? d - 1 : 0), E = 1; E < d; E++)
56
56
  p[E - 1] = arguments[E];
@@ -61,16 +61,16 @@ function kn() {
61
61
  {
62
62
  var E = M.ReactDebugCurrentFrame, V = E.getStackAddendum();
63
63
  V !== "" && (d += "%s", p = p.concat([V]));
64
- var D = p.map(function(F) {
65
- return String(F);
64
+ var D = p.map(function(A) {
65
+ return String(A);
66
66
  });
67
67
  D.unshift("Warning: " + d), Function.prototype.apply.call(console[s], console, D);
68
68
  }
69
69
  }
70
- var J = !1, H = !1, we = !1, Ce = !1, Be = !1, ae;
70
+ var K = !1, H = !1, xe = !1, Ce = !1, He = !1, ae;
71
71
  ae = Symbol.for("react.module.reference");
72
72
  function ve(s) {
73
- return !!(typeof s == "string" || typeof s == "function" || s === n || s === o || Be || s === i || s === _ || s === b || Ce || s === X || J || H || we || typeof s == "object" && s !== null && (s.$$typeof === S || s.$$typeof === C || s.$$typeof === l || s.$$typeof === c || s.$$typeof === h || // This needs to include all possible module reference object
73
+ return !!(typeof s == "string" || typeof s == "function" || s === n || s === o || He || s === i || s === _ || s === m || Ce || s === G || K || H || xe || typeof s == "object" && s !== null && (s.$$typeof === S || s.$$typeof === C || s.$$typeof === l || s.$$typeof === c || s.$$typeof === h || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
@@ -83,13 +83,13 @@ function kn() {
83
83
  var V = d.displayName || d.name || "";
84
84
  return V !== "" ? p + "(" + V + ")" : p;
85
85
  }
86
- function k(s) {
86
+ function F(s) {
87
87
  return s.displayName || "Context";
88
88
  }
89
89
  function R(s) {
90
90
  if (s == null)
91
91
  return null;
92
- if (typeof s.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
92
+ if (typeof s.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
93
93
  return s.displayName || s.name || null;
94
94
  if (typeof s == "string")
95
95
  return s;
@@ -104,26 +104,26 @@ function kn() {
104
104
  return "StrictMode";
105
105
  case _:
106
106
  return "Suspense";
107
- case b:
107
+ case m:
108
108
  return "SuspenseList";
109
109
  }
110
110
  if (typeof s == "object")
111
111
  switch (s.$$typeof) {
112
112
  case c:
113
113
  var d = s;
114
- return k(d) + ".Consumer";
114
+ return F(d) + ".Consumer";
115
115
  case l:
116
116
  var p = s;
117
- return k(p._context) + ".Provider";
117
+ return F(p._context) + ".Provider";
118
118
  case h:
119
119
  return fe(s, s.render, "ForwardRef");
120
120
  case C:
121
121
  var E = s.displayName || null;
122
122
  return E !== null ? E : R(s.type) || "Memo";
123
123
  case S: {
124
- var V = s, D = V._payload, F = V._init;
124
+ var V = s, D = V._payload, A = V._init;
125
125
  try {
126
- return R(F(D));
126
+ return R(A(D));
127
127
  } catch {
128
128
  return null;
129
129
  }
@@ -131,18 +131,18 @@ function kn() {
131
131
  }
132
132
  return null;
133
133
  }
134
- var P = Object.assign, $ = 0, ee, oe, ce, me, Se, Fe, He;
135
- function $e() {
134
+ var P = Object.assign, $ = 0, ee, oe, ce, me, Se, ke, $e;
135
+ function We() {
136
136
  }
137
- $e.__reactDisabledLog = !0;
137
+ We.__reactDisabledLog = !0;
138
138
  function Ct() {
139
139
  {
140
140
  if ($ === 0) {
141
- ee = console.log, oe = console.info, ce = console.warn, me = console.error, Se = console.group, Fe = console.groupCollapsed, He = console.groupEnd;
141
+ ee = console.log, oe = console.info, ce = console.warn, me = console.error, Se = console.group, ke = console.groupCollapsed, $e = console.groupEnd;
142
142
  var s = {
143
143
  configurable: !0,
144
144
  enumerable: !0,
145
- value: $e,
145
+ value: We,
146
146
  writable: !0
147
147
  };
148
148
  Object.defineProperties(console, {
@@ -183,36 +183,36 @@ function kn() {
183
183
  value: Se
184
184
  }),
185
185
  groupCollapsed: P({}, s, {
186
- value: Fe
186
+ value: ke
187
187
  }),
188
188
  groupEnd: P({}, s, {
189
- value: He
189
+ value: $e
190
190
  })
191
191
  });
192
192
  }
193
- $ < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ $ < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
194
  }
195
195
  }
196
- var We = M.ReactCurrentDispatcher, ke;
197
- function Ve(s, d, p) {
196
+ var qe = M.ReactCurrentDispatcher, Ve;
197
+ function Pe(s, d, p) {
198
198
  {
199
- if (ke === void 0)
199
+ if (Ve === void 0)
200
200
  try {
201
201
  throw Error();
202
202
  } catch (V) {
203
203
  var E = V.stack.trim().match(/\n( *(at )?)/);
204
- ke = E && E[1] || "";
204
+ Ve = E && E[1] || "";
205
205
  }
206
206
  return `
207
- ` + ke + s;
207
+ ` + Ve + s;
208
208
  }
209
209
  }
210
210
  var Ee = !1, Re;
211
211
  {
212
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
213
- Re = new qe();
212
+ var Ye = typeof WeakMap == "function" ? WeakMap : Map;
213
+ Re = new Ye();
214
214
  }
215
- function Ye(s, d) {
215
+ function ze(s, d) {
216
216
  if (!s || Ee)
217
217
  return "";
218
218
  {
@@ -225,30 +225,30 @@ function kn() {
225
225
  var V = Error.prepareStackTrace;
226
226
  Error.prepareStackTrace = void 0;
227
227
  var D;
228
- D = We.current, We.current = null, Ct();
228
+ D = qe.current, qe.current = null, Ct();
229
229
  try {
230
230
  if (d) {
231
- var F = function() {
231
+ var A = function() {
232
232
  throw Error();
233
233
  };
234
- if (Object.defineProperty(F.prototype, "props", {
234
+ if (Object.defineProperty(A.prototype, "props", {
235
235
  set: function() {
236
236
  throw Error();
237
237
  }
238
238
  }), typeof Reflect == "object" && Reflect.construct) {
239
239
  try {
240
- Reflect.construct(F, []);
240
+ Reflect.construct(A, []);
241
241
  } catch (se) {
242
242
  E = se;
243
243
  }
244
- Reflect.construct(s, [], F);
244
+ Reflect.construct(s, [], A);
245
245
  } else {
246
246
  try {
247
- F.call();
247
+ A.call();
248
248
  } catch (se) {
249
249
  E = se;
250
250
  }
251
- s.call(F.prototype);
251
+ s.call(A.prototype);
252
252
  }
253
253
  } else {
254
254
  try {
@@ -260,17 +260,17 @@ function kn() {
260
260
  }
261
261
  } catch (se) {
262
262
  if (se && E && typeof se.stack == "string") {
263
- for (var O = se.stack.split(`
263
+ for (var T = se.stack.split(`
264
264
  `), te = E.stack.split(`
265
- `), L = O.length - 1, W = te.length - 1; L >= 1 && W >= 0 && O[L] !== te[W]; )
265
+ `), L = T.length - 1, W = te.length - 1; L >= 1 && W >= 0 && T[L] !== te[W]; )
266
266
  W--;
267
267
  for (; L >= 1 && W >= 0; L--, W--)
268
- if (O[L] !== te[W]) {
268
+ if (T[L] !== te[W]) {
269
269
  if (L !== 1 || W !== 1)
270
270
  do
271
- if (L--, W--, W < 0 || O[L] !== te[W]) {
271
+ if (L--, W--, W < 0 || T[L] !== te[W]) {
272
272
  var le = `
273
- ` + O[L].replace(" at new ", " at ");
273
+ ` + T[L].replace(" at new ", " at ");
274
274
  return s.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", s.displayName)), typeof s == "function" && Re.set(s, le), le;
275
275
  }
276
276
  while (L >= 1 && W >= 0);
@@ -278,71 +278,71 @@ function kn() {
278
278
  }
279
279
  }
280
280
  } finally {
281
- Ee = !1, We.current = D, at(), Error.prepareStackTrace = V;
281
+ Ee = !1, qe.current = D, at(), Error.prepareStackTrace = V;
282
282
  }
283
- var Ne = s ? s.displayName || s.name : "", Te = Ne ? Ve(Ne) : "";
283
+ var Ie = s ? s.displayName || s.name : "", Te = Ie ? Pe(Ie) : "";
284
284
  return typeof s == "function" && Re.set(s, Te), Te;
285
285
  }
286
286
  function St(s, d, p) {
287
- return Ye(s, !1);
287
+ return ze(s, !1);
288
288
  }
289
289
  function ot(s) {
290
290
  var d = s.prototype;
291
291
  return !!(d && d.isReactComponent);
292
292
  }
293
- function Pe(s, d, p) {
293
+ function De(s, d, p) {
294
294
  if (s == null)
295
295
  return "";
296
296
  if (typeof s == "function")
297
- return Ye(s, ot(s));
297
+ return ze(s, ot(s));
298
298
  if (typeof s == "string")
299
- return Ve(s);
299
+ return Pe(s);
300
300
  switch (s) {
301
301
  case _:
302
- return Ve("Suspense");
303
- case b:
304
- return Ve("SuspenseList");
302
+ return Pe("Suspense");
303
+ case m:
304
+ return Pe("SuspenseList");
305
305
  }
306
306
  if (typeof s == "object")
307
307
  switch (s.$$typeof) {
308
308
  case h:
309
309
  return St(s.render);
310
310
  case C:
311
- return Pe(s.type, d, p);
311
+ return De(s.type, d, p);
312
312
  case S: {
313
313
  var E = s, V = E._payload, D = E._init;
314
314
  try {
315
- return Pe(D(V), d, p);
315
+ return De(D(V), d, p);
316
316
  } catch {
317
317
  }
318
318
  }
319
319
  }
320
320
  return "";
321
321
  }
322
- var pe = Object.prototype.hasOwnProperty, ze = {}, ut = M.ReactDebugCurrentFrame;
323
- function De(s) {
322
+ var pe = Object.prototype.hasOwnProperty, Ke = {}, ut = M.ReactDebugCurrentFrame;
323
+ function je(s) {
324
324
  if (s) {
325
- var d = s._owner, p = Pe(s.type, s._source, d ? d.type : null);
325
+ var d = s._owner, p = De(s.type, s._source, d ? d.type : null);
326
326
  ut.setExtraStackFrame(p);
327
327
  } else
328
328
  ut.setExtraStackFrame(null);
329
329
  }
330
- function ar(s, d, p, E, V) {
330
+ function or(s, d, p, E, V) {
331
331
  {
332
332
  var D = Function.call.bind(pe);
333
- for (var F in s)
334
- if (D(s, F)) {
335
- var O = void 0;
333
+ for (var A in s)
334
+ if (D(s, A)) {
335
+ var T = void 0;
336
336
  try {
337
- if (typeof s[F] != "function") {
338
- var te = Error((E || "React class") + ": " + p + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ if (typeof s[A] != "function") {
338
+ var te = Error((E || "React class") + ": " + p + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
339
  throw te.name = "Invariant Violation", te;
340
340
  }
341
- O = s[F](d, F, E, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ T = s[A](d, A, E, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
342
  } catch (L) {
343
- O = L;
343
+ T = L;
344
344
  }
345
- O && !(O instanceof Error) && (De(V), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", p, F, typeof O), De(null)), O instanceof Error && !(O.message in ze) && (ze[O.message] = !0, De(V), w("Failed %s type: %s", p, O.message), De(null));
345
+ T && !(T instanceof Error) && (je(V), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", p, A, typeof T), je(null)), T instanceof Error && !(T.message in Ke) && (Ke[T.message] = !0, je(V), x("Failed %s type: %s", p, T.message), je(null));
346
346
  }
347
347
  }
348
348
  }
@@ -358,25 +358,25 @@ function kn() {
358
358
  }
359
359
  function f(s) {
360
360
  try {
361
- return m(s), !1;
361
+ return b(s), !1;
362
362
  } catch {
363
363
  return !0;
364
364
  }
365
365
  }
366
- function m(s) {
366
+ function b(s) {
367
367
  return "" + s;
368
368
  }
369
369
  function y(s) {
370
370
  if (f(s))
371
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", u(s)), m(s);
371
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", u(s)), b(s);
372
372
  }
373
- var g = M.ReactCurrentOwner, x = {
373
+ var g = M.ReactCurrentOwner, w = {
374
374
  key: !0,
375
375
  ref: !0,
376
376
  __self: !0,
377
377
  __source: !0
378
- }, A, I;
379
- function z(s) {
378
+ }, O, I;
379
+ function Y(s) {
380
380
  if (pe.call(s, "ref")) {
381
381
  var d = Object.getOwnPropertyDescriptor(s, "ref").get;
382
382
  if (d && d.isReactWarning)
@@ -392,13 +392,13 @@ function kn() {
392
392
  }
393
393
  return s.key !== void 0;
394
394
  }
395
- function Ke(s, d) {
395
+ function Je(s, d) {
396
396
  typeof s.ref == "string" && g.current;
397
397
  }
398
- function Je(s, d) {
398
+ function Ge(s, d) {
399
399
  {
400
400
  var p = function() {
401
- A || (A = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
401
+ O || (O = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
402
402
  };
403
403
  p.isReactWarning = !0, Object.defineProperty(s, "key", {
404
404
  get: p,
@@ -409,7 +409,7 @@ function kn() {
409
409
  function Rt(s, d) {
410
410
  {
411
411
  var p = function() {
412
- I || (I = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
412
+ I || (I = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
413
413
  };
414
414
  p.isReactWarning = !0, Object.defineProperty(s, "ref", {
415
415
  get: p,
@@ -417,70 +417,70 @@ function kn() {
417
417
  });
418
418
  }
419
419
  }
420
- var ft = function(s, d, p, E, V, D, F) {
421
- var O = {
420
+ var ft = function(s, d, p, E, V, D, A) {
421
+ var T = {
422
422
  // This tag allows us to uniquely identify this as a React Element
423
423
  $$typeof: t,
424
424
  // Built-in properties that belong on the element
425
425
  type: s,
426
426
  key: d,
427
427
  ref: p,
428
- props: F,
428
+ props: A,
429
429
  // Record the component responsible for creating this element.
430
430
  _owner: D
431
431
  };
432
- return O._store = {}, Object.defineProperty(O._store, "validated", {
432
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !0,
436
436
  value: !1
437
- }), Object.defineProperty(O, "_self", {
437
+ }), Object.defineProperty(T, "_self", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
441
  value: E
442
- }), Object.defineProperty(O, "_source", {
442
+ }), Object.defineProperty(T, "_source", {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
446
  value: V
447
- }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
447
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
448
448
  };
449
449
  function Tt(s, d, p, E, V) {
450
450
  {
451
- var D, F = {}, O = null, te = null;
452
- p !== void 0 && (y(p), O = "" + p), Et(d) && (y(d.key), O = "" + d.key), z(d) && (te = d.ref, Ke(d, V));
451
+ var D, A = {}, T = null, te = null;
452
+ p !== void 0 && (y(p), T = "" + p), Et(d) && (y(d.key), T = "" + d.key), Y(d) && (te = d.ref, Je(d, V));
453
453
  for (D in d)
454
- pe.call(d, D) && !x.hasOwnProperty(D) && (F[D] = d[D]);
454
+ pe.call(d, D) && !w.hasOwnProperty(D) && (A[D] = d[D]);
455
455
  if (s && s.defaultProps) {
456
456
  var L = s.defaultProps;
457
457
  for (D in L)
458
- F[D] === void 0 && (F[D] = L[D]);
458
+ A[D] === void 0 && (A[D] = L[D]);
459
459
  }
460
- if (O || te) {
460
+ if (T || te) {
461
461
  var W = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
462
- O && Je(F, W), te && Rt(F, W);
462
+ T && Ge(A, W), te && Rt(A, W);
463
463
  }
464
- return ft(s, O, te, V, E, g.current, F);
464
+ return ft(s, T, te, V, E, g.current, A);
465
465
  }
466
466
  }
467
- var je = M.ReactCurrentOwner, or = M.ReactDebugCurrentFrame;
468
- function Me(s) {
467
+ var Me = M.ReactCurrentOwner, ur = M.ReactDebugCurrentFrame;
468
+ function Ne(s) {
469
469
  if (s) {
470
- var d = s._owner, p = Pe(s.type, s._source, d ? d.type : null);
471
- or.setExtraStackFrame(p);
470
+ var d = s._owner, p = De(s.type, s._source, d ? d.type : null);
471
+ ur.setExtraStackFrame(p);
472
472
  } else
473
- or.setExtraStackFrame(null);
473
+ ur.setExtraStackFrame(null);
474
474
  }
475
475
  var Ot;
476
476
  Ot = !1;
477
477
  function At(s) {
478
478
  return typeof s == "object" && s !== null && s.$$typeof === t;
479
479
  }
480
- function ur() {
480
+ function lr() {
481
481
  {
482
- if (je.current) {
483
- var s = R(je.current.type);
482
+ if (Me.current) {
483
+ var s = R(Me.current.type);
484
484
  if (s)
485
485
  return `
486
486
 
@@ -489,13 +489,13 @@ Check the render method of \`` + s + "`.";
489
489
  return "";
490
490
  }
491
491
  }
492
- function yn(s) {
492
+ function vn(s) {
493
493
  return "";
494
494
  }
495
- var lr = {};
496
- function vn(s) {
495
+ var fr = {};
496
+ function bn(s) {
497
497
  {
498
- var d = ur();
498
+ var d = lr();
499
499
  if (!d) {
500
500
  var p = typeof s == "string" ? s : s.displayName || s.name;
501
501
  p && (d = `
@@ -505,39 +505,39 @@ Check the top-level render call using <` + p + ">.");
505
505
  return d;
506
506
  }
507
507
  }
508
- function fr(s, d) {
508
+ function cr(s, d) {
509
509
  {
510
510
  if (!s._store || s._store.validated || s.key != null)
511
511
  return;
512
512
  s._store.validated = !0;
513
- var p = vn(d);
514
- if (lr[p])
513
+ var p = bn(d);
514
+ if (fr[p])
515
515
  return;
516
- lr[p] = !0;
516
+ fr[p] = !0;
517
517
  var E = "";
518
- s && s._owner && s._owner !== je.current && (E = " It was passed a child from " + R(s._owner.type) + "."), Me(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, E), Me(null);
518
+ s && s._owner && s._owner !== Me.current && (E = " It was passed a child from " + R(s._owner.type) + "."), Ne(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, E), Ne(null);
519
519
  }
520
520
  }
521
- function cr(s, d) {
521
+ function dr(s, d) {
522
522
  {
523
523
  if (typeof s != "object")
524
524
  return;
525
525
  if (a(s))
526
526
  for (var p = 0; p < s.length; p++) {
527
527
  var E = s[p];
528
- At(E) && fr(E, d);
528
+ At(E) && cr(E, d);
529
529
  }
530
530
  else if (At(s))
531
531
  s._store && (s._store.validated = !0);
532
532
  else if (s) {
533
- var V = q(s);
533
+ var V = Q(s);
534
534
  if (typeof V == "function" && V !== s.entries)
535
- for (var D = V.call(s), F; !(F = D.next()).done; )
536
- At(F.value) && fr(F.value, d);
535
+ for (var D = V.call(s), A; !(A = D.next()).done; )
536
+ At(A.value) && cr(A.value, d);
537
537
  }
538
538
  }
539
539
  }
540
- function bn(s) {
540
+ function mn(s) {
541
541
  {
542
542
  var d = s.type;
543
543
  if (d == null || typeof d == "string")
@@ -553,109 +553,109 @@ Check the top-level render call using <` + p + ">.");
553
553
  return;
554
554
  if (p) {
555
555
  var E = R(d);
556
- ar(p, s.props, "prop", E, s);
556
+ or(p, s.props, "prop", E, s);
557
557
  } else if (d.PropTypes !== void 0 && !Ot) {
558
558
  Ot = !0;
559
559
  var V = R(d);
560
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
560
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
561
561
  }
562
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
562
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
563
  }
564
564
  }
565
- function mn(s) {
565
+ function pn(s) {
566
566
  {
567
567
  for (var d = Object.keys(s.props), p = 0; p < d.length; p++) {
568
568
  var E = d[p];
569
569
  if (E !== "children" && E !== "key") {
570
- Me(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Me(null);
570
+ Ne(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ne(null);
571
571
  break;
572
572
  }
573
573
  }
574
- s.ref !== null && (Me(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), Me(null));
574
+ s.ref !== null && (Ne(s), x("Invalid attribute `ref` supplied to `React.Fragment`."), Ne(null));
575
575
  }
576
576
  }
577
- var dr = {};
578
- function hr(s, d, p, E, V, D) {
577
+ var hr = {};
578
+ function gr(s, d, p, E, V, D) {
579
579
  {
580
- var F = ve(s);
581
- if (!F) {
582
- var O = "";
583
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
- var te = yn();
585
- te ? O += te : O += ur();
580
+ var A = ve(s);
581
+ if (!A) {
582
+ var T = "";
583
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var te = vn();
585
+ te ? T += te : T += lr();
586
586
  var L;
587
- s === null ? L = "null" : a(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (R(s.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, O);
587
+ s === null ? L = "null" : a(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (R(s.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, T);
588
588
  }
589
589
  var W = Tt(s, d, p, V, D);
590
590
  if (W == null)
591
591
  return W;
592
- if (F) {
592
+ if (A) {
593
593
  var le = d.children;
594
594
  if (le !== void 0)
595
595
  if (E)
596
596
  if (a(le)) {
597
- for (var Ne = 0; Ne < le.length; Ne++)
598
- cr(le[Ne], s);
597
+ for (var Ie = 0; Ie < le.length; Ie++)
598
+ dr(le[Ie], s);
599
599
  Object.freeze && Object.freeze(le);
600
600
  } else
601
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
601
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
602
602
  else
603
- cr(le, s);
603
+ dr(le, s);
604
604
  }
605
605
  if (pe.call(d, "key")) {
606
- var Te = R(s), se = Object.keys(d).filter(function(Sn) {
607
- return Sn !== "key";
606
+ var Te = R(s), se = Object.keys(d).filter(function(En) {
607
+ return En !== "key";
608
608
  }), Ft = se.length > 0 ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}";
609
- if (!dr[Te + Ft]) {
610
- var Cn = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
611
- w(`A props object containing a "key" prop is being spread into JSX:
609
+ if (!hr[Te + Ft]) {
610
+ var Sn = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
611
+ x(`A props object containing a "key" prop is being spread into JSX:
612
612
  let props = %s;
613
613
  <%s {...props} />
614
614
  React keys must be passed directly to JSX without using spread:
615
615
  let props = %s;
616
- <%s key={someKey} {...props} />`, Ft, Te, Cn, Te), dr[Te + Ft] = !0;
616
+ <%s key={someKey} {...props} />`, Ft, Te, Sn, Te), hr[Te + Ft] = !0;
617
617
  }
618
618
  }
619
- return s === n ? mn(W) : bn(W), W;
619
+ return s === n ? pn(W) : mn(W), W;
620
620
  }
621
621
  }
622
- function pn(s, d, p) {
623
- return hr(s, d, p, !0);
624
- }
625
622
  function _n(s, d, p) {
626
- return hr(s, d, p, !1);
627
- }
628
- var xn = _n, wn = pn;
629
- Xe.Fragment = n, Xe.jsx = xn, Xe.jsxs = wn;
630
- }()), Xe;
631
- }
632
- var vr;
633
- function Vn() {
634
- return vr || (vr = 1, process.env.NODE_ENV === "production" ? ct.exports = Fn() : ct.exports = kn()), ct.exports;
635
- }
636
- var Ae = Vn();
637
- const Wi = T.memo(
638
- ({ errorMessage: e, isTouched: t, isSubmitted: r }) => !(t || r) || !e ? null : /* @__PURE__ */ Ae.jsx("div", { className: "ml-2 text-red-600", children: e })
639
- ), { Title: Pn, Paragraph: Dn, Text: jn } = On, Mn = {
640
- Title: (e) => /* @__PURE__ */ Ae.jsx(Pn, { ...e }),
641
- Paragraph: (e) => /* @__PURE__ */ Ae.jsx(Dn, { ...e }),
642
- Text: (e) => /* @__PURE__ */ Ae.jsx(jn, { ...e })
643
- }, qi = ({ label: e, required: t }) => {
623
+ return gr(s, d, p, !0);
624
+ }
625
+ function wn(s, d, p) {
626
+ return gr(s, d, p, !1);
627
+ }
628
+ var xn = wn, Cn = _n;
629
+ Qe.Fragment = n, Qe.jsx = xn, Qe.jsxs = Cn;
630
+ }()), Qe;
631
+ }
632
+ var br;
633
+ function Pn() {
634
+ return br || (br = 1, process.env.NODE_ENV === "production" ? ct.exports = kn() : ct.exports = Vn()), ct.exports;
635
+ }
636
+ var Fe = Pn();
637
+ const qi = k.memo(
638
+ ({ errorMessage: e, isTouched: t, isSubmitted: r }) => !(t || r) || !e ? null : /* @__PURE__ */ Fe.jsx("div", { className: "ml-2 text-red-600", children: e })
639
+ ), { Title: Dn, Paragraph: jn, Text: Mn } = An, Nn = {
640
+ Title: (e) => /* @__PURE__ */ Fe.jsx(Dn, { ...e }),
641
+ Paragraph: (e) => /* @__PURE__ */ Fe.jsx(jn, { ...e }),
642
+ Text: (e) => /* @__PURE__ */ Fe.jsx(Mn, { ...e })
643
+ }, Yi = ({ label: e, required: t }) => {
644
644
  //! State
645
645
  //! Function
646
646
  //! Render
647
- return /* @__PURE__ */ Ae.jsxs("div", { className: "flex gap-1 mb-2 items-baseline", children: [
648
- /* @__PURE__ */ Ae.jsx(Mn.Text, { children: e }),
649
- t && /* @__PURE__ */ Ae.jsx("span", { className: "text-red-600 h-0", children: "*" })
647
+ return /* @__PURE__ */ Fe.jsxs("div", { className: "flex gap-1 mb-2 items-baseline", children: [
648
+ /* @__PURE__ */ Fe.jsx(Nn.Text, { children: e }),
649
+ t && /* @__PURE__ */ Fe.jsx("span", { className: "text-red-600 h-0", children: "*" })
650
650
  ] });
651
651
  };
652
- var st = (e) => e.type === "checkbox", Oe = (e) => e instanceof Date, ie = (e) => e == null;
653
- const Br = (e) => typeof e == "object";
654
- var B = (e) => !ie(e) && !Array.isArray(e) && Br(e) && !Oe(e), Hr = (e) => B(e) && e.target ? st(e.target) ? e.target.checked : e.target.value : e, Nn = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, $r = (e, t) => e.has(Nn(t)), In = (e) => {
652
+ var st = (e) => e.type === "checkbox", Ae = (e) => e instanceof Date, ie = (e) => e == null;
653
+ const Hr = (e) => typeof e == "object";
654
+ var B = (e) => !ie(e) && !Array.isArray(e) && Hr(e) && !Ae(e), $r = (e) => B(e) && e.target ? st(e.target) ? e.target.checked : e.target.value : e, In = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Wr = (e, t) => e.has(In(t)), Ln = (e) => {
655
655
  const t = e.constructor && e.constructor.prototype;
656
656
  return B(t) && t.hasOwnProperty("isPrototypeOf");
657
657
  }, Qt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
658
- function G(e) {
658
+ function J(e) {
659
659
  let t;
660
660
  const r = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
661
661
  if (e instanceof Date)
@@ -663,11 +663,11 @@ function G(e) {
663
663
  else if (e instanceof Set)
664
664
  t = new Set(e);
665
665
  else if (!(Qt && (e instanceof Blob || n)) && (r || B(e)))
666
- if (t = r ? [] : {}, !r && !In(e))
666
+ if (t = r ? [] : {}, !r && !Ln(e))
667
667
  t = e;
668
668
  else
669
669
  for (const i in e)
670
- e.hasOwnProperty(i) && (t[i] = G(e[i]));
670
+ e.hasOwnProperty(i) && (t[i] = J(e[i]));
671
671
  else
672
672
  return e;
673
673
  return t;
@@ -677,9 +677,9 @@ var _t = (e) => Array.isArray(e) ? e.filter(Boolean) : [], U = (e) => e === void
677
677
  return r;
678
678
  const n = _t(t.split(/[,[\].]+?/)).reduce((i, o) => ie(i) ? i : i[o], e);
679
679
  return U(n) || n === e ? U(e[t]) ? r : e[t] : n;
680
- }, ue = (e) => typeof e == "boolean", Zt = (e) => /^\w*$/.test(e), Wr = (e) => _t(e.replace(/["|']|\]/g, "").split(/\.|\[/)), j = (e, t, r) => {
680
+ }, ue = (e) => typeof e == "boolean", Zt = (e) => /^\w*$/.test(e), qr = (e) => _t(e.replace(/["|']|\]/g, "").split(/\.|\[/)), j = (e, t, r) => {
681
681
  let n = -1;
682
- const i = Zt(t) ? [t] : Wr(t), o = i.length, l = o - 1;
682
+ const i = Zt(t) ? [t] : qr(t), o = i.length, l = o - 1;
683
683
  for (; ++n < o; ) {
684
684
  const c = i[n];
685
685
  let h = r;
@@ -710,8 +710,8 @@ const gt = {
710
710
  pattern: "pattern",
711
711
  required: "required",
712
712
  validate: "validate"
713
- }, Ln = T.createContext(null), er = () => T.useContext(Ln);
714
- var qr = (e, t, r, n = !0) => {
713
+ }, Un = k.createContext(null), er = () => k.useContext(Un);
714
+ var Yr = (e, t, r, n = !0) => {
715
715
  const i = {
716
716
  defaultValues: t._defaultValues
717
717
  };
@@ -724,8 +724,9 @@ var qr = (e, t, r, n = !0) => {
724
724
  });
725
725
  return i;
726
726
  };
727
- function Un(e) {
728
- const t = er(), { control: r = t.control, disabled: n, name: i, exact: o } = e || {}, [l, c] = T.useState(r._formState), h = T.useRef({
727
+ const tr = typeof window < "u" ? Oe.useLayoutEffect : Oe.useEffect;
728
+ function Bn(e) {
729
+ const t = er(), { control: r = t.control, disabled: n, name: i, exact: o } = e || {}, [l, c] = k.useState(r._formState), h = k.useRef({
729
730
  isDirty: !1,
730
731
  isLoading: !1,
731
732
  dirtyFields: !1,
@@ -734,50 +735,48 @@ function Un(e) {
734
735
  isValidating: !1,
735
736
  isValid: !1,
736
737
  errors: !1
737
- }), _ = T.useRef(i);
738
- return _.current = i, T.useEffect(() => r._subscribe({
739
- name: _.current,
738
+ });
739
+ return tr(() => r._subscribe({
740
+ name: i,
740
741
  formState: h.current,
741
742
  exact: o,
742
- callback: (b) => {
743
+ callback: (_) => {
743
744
  !n && c({
744
745
  ...r._formState,
745
- ...b
746
+ ..._
746
747
  });
747
748
  }
748
- }), [r, n, o]), T.useEffect(() => {
749
+ }), [i, n, o]), k.useEffect(() => {
749
750
  h.current.isValid && r._setValid(!0);
750
- }, [r]), T.useMemo(() => qr(l, r, h.current, !1), [l, r]);
751
+ }, [r]), k.useMemo(() => Yr(l, r, h.current, !1), [l, r]);
751
752
  }
752
- var ge = (e) => typeof e == "string", Yr = (e, t, r, n, i) => ge(e) ? (n && t.watch.add(e), v(r, e, i)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), v(r, o))) : (n && (t.watchAll = !0), r);
753
- function Bn(e) {
754
- const t = er(), { control: r = t.control, name: n, defaultValue: i, disabled: o, exact: l } = e || {}, c = T.useRef(n), h = T.useRef(i);
755
- c.current = n, T.useEffect(() => r._subscribe({
756
- name: c.current,
753
+ var ge = (e) => typeof e == "string", zr = (e, t, r, n, i) => ge(e) ? (n && t.watch.add(e), v(r, e, i)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), v(r, o))) : (n && (t.watchAll = !0), r);
754
+ function Hn(e) {
755
+ const t = er(), { control: r = t.control, name: n, defaultValue: i, disabled: o, exact: l } = e || {}, c = k.useRef(i), [h, _] = k.useState(r._getWatch(n, c.current));
756
+ return tr(() => r._subscribe({
757
+ name: n,
757
758
  formState: {
758
759
  values: !0
759
760
  },
760
761
  exact: l,
761
- callback: (C) => !o && b(Yr(c.current, r._names, C.values || r._formValues, !1, h.current))
762
- }), [r, o, l]);
763
- const [_, b] = T.useState(r._getWatch(n, i));
764
- return T.useEffect(() => r._removeUnmounted()), _;
762
+ callback: (m) => !o && _(zr(n, r._names, m.values || r._formValues, !1, c.current))
763
+ }), [n, r, o, l]), k.useEffect(() => r._removeUnmounted()), h;
765
764
  }
766
- function Hn(e) {
767
- const t = er(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o } = e, l = $r(i._names.array, r), c = Bn({
765
+ function $n(e) {
766
+ const t = er(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o } = e, l = Wr(i._names.array, r), c = Hn({
768
767
  control: i,
769
768
  name: r,
770
769
  defaultValue: v(i._formValues, r, v(i._defaultValues, r, e.defaultValue)),
771
770
  exact: !0
772
- }), h = Un({
771
+ }), h = Bn({
773
772
  control: i,
774
773
  name: r,
775
774
  exact: !0
776
- }), _ = T.useRef(e), b = T.useRef(i.register(r, {
775
+ }), _ = k.useRef(e), m = k.useRef(i.register(r, {
777
776
  ...e.rules,
778
777
  value: c,
779
778
  ...ue(e.disabled) ? { disabled: e.disabled } : {}
780
- })), C = T.useMemo(() => Object.defineProperties({}, {
779
+ })), C = k.useMemo(() => Object.defineProperties({}, {
781
780
  invalid: {
782
781
  enumerable: !0,
783
782
  get: () => !!v(h.errors, r)
@@ -798,70 +797,65 @@ function Hn(e) {
798
797
  enumerable: !0,
799
798
  get: () => v(h.errors, r)
800
799
  }
801
- }), [h, r]), S = T.useCallback((q) => b.current.onChange({
800
+ }), [h, r]), S = k.useCallback((Q) => m.current.onChange({
802
801
  target: {
803
- value: Hr(q),
802
+ value: $r(Q),
804
803
  name: r
805
804
  },
806
805
  type: gt.CHANGE
807
- }), [r]), X = T.useCallback(() => b.current.onBlur({
806
+ }), [r]), G = k.useCallback(() => m.current.onBlur({
808
807
  target: {
809
808
  value: v(i._formValues, r),
810
809
  name: r
811
810
  },
812
811
  type: gt.BLUR
813
- }), [r, i._formValues]), Q = T.useCallback((q) => {
812
+ }), [r, i._formValues]), X = k.useCallback((Q) => {
814
813
  const M = v(i._fields, r);
815
- M && q && (M._f.ref = {
816
- focus: () => q.focus(),
817
- select: () => q.select(),
818
- setCustomValidity: (w) => q.setCustomValidity(w),
819
- reportValidity: () => q.reportValidity()
820
- });
821
- }, [i._fields, r]), N = T.useMemo(() => ({
814
+ M && Q && (M._f.ref = Q);
815
+ }, [i._fields, r]), N = k.useMemo(() => ({
822
816
  name: r,
823
817
  value: c,
824
818
  ...ue(n) || h.disabled ? { disabled: h.disabled || n } : {},
825
819
  onChange: S,
826
- onBlur: X,
827
- ref: Q
828
- }), [r, n, h.disabled, S, X, Q, c]);
829
- return T.useEffect(() => {
830
- const q = i._options.shouldUnregister || o;
820
+ onBlur: G,
821
+ ref: X
822
+ }), [r, n, h.disabled, S, G, X, c]);
823
+ return k.useEffect(() => {
824
+ const Q = i._options.shouldUnregister || o;
831
825
  i.register(r, {
832
826
  ..._.current.rules,
833
827
  ...ue(_.current.disabled) ? { disabled: _.current.disabled } : {}
834
828
  });
835
- const M = (w, Z) => {
836
- const J = v(i._fields, w);
837
- J && J._f && (J._f.mount = Z);
829
+ const M = (x, Z) => {
830
+ const K = v(i._fields, x);
831
+ K && K._f && (K._f.mount = Z);
838
832
  };
839
- if (M(r, !0), q) {
840
- const w = G(v(i._options.defaultValues, r));
841
- j(i._defaultValues, r, w), U(v(i._formValues, r)) && j(i._formValues, r, w);
833
+ if (M(r, !0), Q) {
834
+ const x = J(v(i._options.defaultValues, r));
835
+ j(i._defaultValues, r, x), U(v(i._formValues, r)) && j(i._formValues, r, x);
842
836
  }
843
837
  return !l && i.register(r), () => {
844
- (l ? q && !i._state.action : q) ? i.unregister(r) : M(r, !1);
838
+ (l ? Q && !i._state.action : Q) ? i.unregister(r) : M(r, !1);
845
839
  };
846
- }, [r, i, l, o]), T.useEffect(() => {
840
+ }, [r, i, l, o]), k.useEffect(() => {
847
841
  i._setDisabledField({
848
842
  disabled: n,
849
843
  name: r
850
844
  });
851
- }, [n, r, i]), T.useMemo(() => ({
845
+ }, [n, r, i]), k.useMemo(() => ({
852
846
  field: N,
853
847
  formState: h,
854
848
  fieldState: C
855
849
  }), [N, h, C]);
856
850
  }
857
- const Yi = (e) => e.render(Hn(e));
858
- var $n = (e, t, r, n, i) => t ? {
851
+ const zi = (e) => e.render($n(e));
852
+ var Wn = (e, t, r, n, i) => t ? {
859
853
  ...r[e],
860
854
  types: {
861
855
  ...r[e] && r[e].types ? r[e].types : {},
862
856
  [n]: i || !0
863
857
  }
864
- } : {}, rt = (e) => Array.isArray(e) ? e : [e], br = () => {
858
+ } : {}, rt = (e) => Array.isArray(e) ? e : [e], mr = () => {
865
859
  let e = [];
866
860
  return {
867
861
  get observers() {
@@ -880,11 +874,11 @@ var $n = (e, t, r, n, i) => t ? {
880
874
  e = [];
881
875
  }
882
876
  };
883
- }, Dt = (e) => ie(e) || !Br(e);
877
+ }, Dt = (e) => ie(e) || !Hr(e);
884
878
  function _e(e, t) {
885
879
  if (Dt(e) || Dt(t))
886
880
  return e === t;
887
- if (Oe(e) && Oe(t))
881
+ if (Ae(e) && Ae(t))
888
882
  return e.getTime() === t.getTime();
889
883
  const r = Object.keys(e), n = Object.keys(t);
890
884
  if (r.length !== n.length)
@@ -895,36 +889,36 @@ function _e(e, t) {
895
889
  return !1;
896
890
  if (i !== "ref") {
897
891
  const l = t[i];
898
- if (Oe(o) && Oe(l) || B(o) && B(l) || Array.isArray(o) && Array.isArray(l) ? !_e(o, l) : o !== l)
892
+ if (Ae(o) && Ae(l) || B(o) && B(l) || Array.isArray(o) && Array.isArray(l) ? !_e(o, l) : o !== l)
899
893
  return !1;
900
894
  }
901
895
  }
902
896
  return !0;
903
897
  }
904
- var ne = (e) => B(e) && !Object.keys(e).length, tr = (e) => e.type === "file", he = (e) => typeof e == "function", yt = (e) => {
898
+ var ne = (e) => B(e) && !Object.keys(e).length, rr = (e) => e.type === "file", he = (e) => typeof e == "function", yt = (e) => {
905
899
  if (!Qt)
906
900
  return !1;
907
901
  const t = e ? e.ownerDocument : 0;
908
902
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
909
- }, zr = (e) => e.type === "select-multiple", rr = (e) => e.type === "radio", Wn = (e) => rr(e) || st(e), kt = (e) => yt(e) && e.isConnected;
910
- function qn(e, t) {
903
+ }, Kr = (e) => e.type === "select-multiple", nr = (e) => e.type === "radio", qn = (e) => nr(e) || st(e), kt = (e) => yt(e) && e.isConnected;
904
+ function Yn(e, t) {
911
905
  const r = t.slice(0, -1).length;
912
906
  let n = 0;
913
907
  for (; n < r; )
914
908
  e = U(e) ? n++ : e[t[n++]];
915
909
  return e;
916
910
  }
917
- function Yn(e) {
911
+ function zn(e) {
918
912
  for (const t in e)
919
913
  if (e.hasOwnProperty(t) && !U(e[t]))
920
914
  return !1;
921
915
  return !0;
922
916
  }
923
- function Y(e, t) {
924
- const r = Array.isArray(t) ? t : Zt(t) ? [t] : Wr(t), n = r.length === 1 ? e : qn(e, r), i = r.length - 1, o = r[i];
925
- return n && delete n[o], i !== 0 && (B(n) && ne(n) || Array.isArray(n) && Yn(n)) && Y(e, r.slice(0, -1)), e;
917
+ function q(e, t) {
918
+ const r = Array.isArray(t) ? t : Zt(t) ? [t] : qr(t), n = r.length === 1 ? e : Yn(e, r), i = r.length - 1, o = r[i];
919
+ return n && delete n[o], i !== 0 && (B(n) && ne(n) || Array.isArray(n) && zn(n)) && q(e, r.slice(0, -1)), e;
926
920
  }
927
- var Kr = (e) => {
921
+ var Jr = (e) => {
928
922
  for (const t in e)
929
923
  if (he(e[t]))
930
924
  return !0;
@@ -934,22 +928,22 @@ function vt(e, t = {}) {
934
928
  const r = Array.isArray(e);
935
929
  if (B(e) || r)
936
930
  for (const n in e)
937
- Array.isArray(e[n]) || B(e[n]) && !Kr(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, vt(e[n], t[n])) : ie(e[n]) || (t[n] = !0);
931
+ Array.isArray(e[n]) || B(e[n]) && !Jr(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, vt(e[n], t[n])) : ie(e[n]) || (t[n] = !0);
938
932
  return t;
939
933
  }
940
- function Jr(e, t, r) {
934
+ function Gr(e, t, r) {
941
935
  const n = Array.isArray(e);
942
936
  if (B(e) || n)
943
937
  for (const i in e)
944
- Array.isArray(e[i]) || B(e[i]) && !Kr(e[i]) ? U(t) || Dt(r[i]) ? r[i] = Array.isArray(e[i]) ? vt(e[i], []) : { ...vt(e[i]) } : Jr(e[i], ie(t) ? {} : t[i], r[i]) : r[i] = !_e(e[i], t[i]);
938
+ Array.isArray(e[i]) || B(e[i]) && !Jr(e[i]) ? U(t) || Dt(r[i]) ? r[i] = Array.isArray(e[i]) ? vt(e[i], []) : { ...vt(e[i]) } : Gr(e[i], ie(t) ? {} : t[i], r[i]) : r[i] = !_e(e[i], t[i]);
945
939
  return r;
946
940
  }
947
- var Qe = (e, t) => Jr(e, t, vt(t));
948
- const mr = {
941
+ var Ze = (e, t) => Gr(e, t, vt(t));
942
+ const pr = {
949
943
  value: !1,
950
944
  isValid: !1
951
- }, pr = { value: !0, isValid: !0 };
952
- var Gr = (e) => {
945
+ }, _r = { value: !0, isValid: !0 };
946
+ var Xr = (e) => {
953
947
  if (Array.isArray(e)) {
954
948
  if (e.length > 1) {
955
949
  const t = e.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -957,24 +951,24 @@ var Gr = (e) => {
957
951
  }
958
952
  return e[0].checked && !e[0].disabled ? (
959
953
  // @ts-expect-error expected to work in the browser
960
- e[0].attributes && !U(e[0].attributes.value) ? U(e[0].value) || e[0].value === "" ? pr : { value: e[0].value, isValid: !0 } : pr
961
- ) : mr;
954
+ e[0].attributes && !U(e[0].attributes.value) ? U(e[0].value) || e[0].value === "" ? _r : { value: e[0].value, isValid: !0 } : _r
955
+ ) : pr;
962
956
  }
963
- return mr;
964
- }, Xr = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => U(e) ? e : t ? e === "" ? NaN : e && +e : r && ge(e) ? new Date(e) : n ? n(e) : e;
965
- const _r = {
957
+ return pr;
958
+ }, Qr = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => U(e) ? e : t ? e === "" ? NaN : e && +e : r && ge(e) ? new Date(e) : n ? n(e) : e;
959
+ const wr = {
966
960
  isValid: !1,
967
961
  value: null
968
962
  };
969
- var Qr = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
963
+ var Zr = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
970
964
  isValid: !0,
971
965
  value: r.value
972
- } : t, _r) : _r;
966
+ } : t, wr) : wr;
973
967
  function xr(e) {
974
968
  const t = e.ref;
975
- return tr(t) ? t.files : rr(t) ? Qr(e.refs).value : zr(t) ? [...t.selectedOptions].map(({ value: r }) => r) : st(t) ? Gr(e.refs).value : Xr(U(t.value) ? e.ref.value : t.value, e);
969
+ return rr(t) ? t.files : nr(t) ? Zr(e.refs).value : Kr(t) ? [...t.selectedOptions].map(({ value: r }) => r) : st(t) ? Xr(e.refs).value : Qr(U(t.value) ? e.ref.value : t.value, e);
976
970
  }
977
- var zn = (e, t, r, n) => {
971
+ var Kn = (e, t, r, n) => {
978
972
  const i = {};
979
973
  for (const o of e) {
980
974
  const l = v(t, o);
@@ -986,15 +980,15 @@ var zn = (e, t, r, n) => {
986
980
  fields: i,
987
981
  shouldUseNativeValidation: n
988
982
  };
989
- }, bt = (e) => e instanceof RegExp, Ze = (e) => U(e) ? e : bt(e) ? e.source : B(e) ? bt(e.value) ? e.value.source : e.value : e, wr = (e) => ({
983
+ }, bt = (e) => e instanceof RegExp, et = (e) => U(e) ? e : bt(e) ? e.source : B(e) ? bt(e.value) ? e.value.source : e.value : e, Cr = (e) => ({
990
984
  isOnSubmit: !e || e === de.onSubmit,
991
985
  isOnBlur: e === de.onBlur,
992
986
  isOnChange: e === de.onChange,
993
987
  isOnAll: e === de.all,
994
988
  isOnTouch: e === de.onTouched
995
989
  });
996
- const Cr = "AsyncFunction";
997
- var Kn = (e) => !!e && !!e.validate && !!(he(e.validate) && e.validate.constructor.name === Cr || B(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Cr)), Jn = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Sr = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
990
+ const Sr = "AsyncFunction";
991
+ var Jn = (e) => !!e && !!e.validate && !!(he(e.validate) && e.validate.constructor.name === Sr || B(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === Sr)), Gn = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Er = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
998
992
  const nt = (e, t, r, n) => {
999
993
  for (const i of r || Object.keys(e)) {
1000
994
  const o = v(e, i);
@@ -1012,7 +1006,7 @@ const nt = (e, t, r, n) => {
1012
1006
  }
1013
1007
  }
1014
1008
  };
1015
- function Er(e, t, r) {
1009
+ function Rr(e, t, r) {
1016
1010
  const n = v(e, r);
1017
1011
  if (n || Zt(r))
1018
1012
  return {
@@ -1035,15 +1029,15 @@ function Er(e, t, r) {
1035
1029
  name: r
1036
1030
  };
1037
1031
  }
1038
- var Gn = (e, t, r, n) => {
1032
+ var Xn = (e, t, r, n) => {
1039
1033
  r(e);
1040
1034
  const { name: i, ...o } = e;
1041
1035
  return ne(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((l) => t[l] === (!n || de.all));
1042
- }, Xn = (e, t, r) => !e || !t || e === t || rt(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), Qn = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, Zn = (e, t) => !_t(v(e, t)).length && Y(e, t), ei = (e, t, r) => {
1036
+ }, Qn = (e, t, r) => !e || !t || e === t || rt(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), Zn = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, ei = (e, t) => !_t(v(e, t)).length && q(e, t), ti = (e, t, r) => {
1043
1037
  const n = rt(v(e, r));
1044
1038
  return j(n, "root", t[r]), j(e, r, n), e;
1045
1039
  }, ht = (e) => ge(e);
1046
- function Rr(e, t, r = "validate") {
1040
+ function Tr(e, t, r = "validate") {
1047
1041
  if (ht(e) || Array.isArray(e) && e.every(ht) || ue(e) && !e)
1048
1042
  return {
1049
1043
  type: r,
@@ -1051,102 +1045,103 @@ function Rr(e, t, r = "validate") {
1051
1045
  ref: t
1052
1046
  };
1053
1047
  }
1054
- var Ie = (e) => B(e) && !bt(e) ? e : {
1048
+ var Le = (e) => B(e) && !bt(e) ? e : {
1055
1049
  value: e,
1056
1050
  message: ""
1057
- }, Tr = async (e, t, r, n, i, o) => {
1058
- const { ref: l, refs: c, required: h, maxLength: _, minLength: b, min: C, max: S, pattern: X, validate: Q, name: N, valueAsNumber: q, mount: M } = e._f, w = v(r, N);
1051
+ }, Or = async (e, t, r, n, i, o) => {
1052
+ const { ref: l, refs: c, required: h, maxLength: _, minLength: m, min: C, max: S, pattern: G, validate: X, name: N, valueAsNumber: Q, mount: M } = e._f, x = v(r, N);
1059
1053
  if (!M || t.has(N))
1060
1054
  return {};
1061
- const Z = c ? c[0] : l, J = (k) => {
1062
- i && Z.reportValidity && (Z.setCustomValidity(ue(k) ? "" : k || ""), Z.reportValidity());
1063
- }, H = {}, we = rr(l), Ce = st(l), Be = we || Ce, ae = (q || tr(l)) && U(l.value) && U(w) || yt(l) && l.value === "" || w === "" || Array.isArray(w) && !w.length, ve = $n.bind(null, N, n, H), fe = (k, R, P, $ = be.maxLength, ee = be.minLength) => {
1064
- const oe = k ? R : P;
1055
+ const Z = c ? c[0] : l, K = (F) => {
1056
+ i && Z.reportValidity && (Z.setCustomValidity(ue(F) ? "" : F || ""), Z.reportValidity());
1057
+ }, H = {}, xe = nr(l), Ce = st(l), He = xe || Ce, ae = (Q || rr(l)) && U(l.value) && U(x) || yt(l) && l.value === "" || x === "" || Array.isArray(x) && !x.length, ve = Wn.bind(null, N, n, H), fe = (F, R, P, $ = be.maxLength, ee = be.minLength) => {
1058
+ const oe = F ? R : P;
1065
1059
  H[N] = {
1066
- type: k ? $ : ee,
1060
+ type: F ? $ : ee,
1067
1061
  message: oe,
1068
1062
  ref: l,
1069
- ...ve(k ? $ : ee, oe)
1063
+ ...ve(F ? $ : ee, oe)
1070
1064
  };
1071
1065
  };
1072
- if (o ? !Array.isArray(w) || !w.length : h && (!Be && (ae || ie(w)) || ue(w) && !w || Ce && !Gr(c).isValid || we && !Qr(c).isValid)) {
1073
- const { value: k, message: R } = ht(h) ? { value: !!h, message: h } : Ie(h);
1074
- if (k && (H[N] = {
1066
+ if (o ? !Array.isArray(x) || !x.length : h && (!He && (ae || ie(x)) || ue(x) && !x || Ce && !Xr(c).isValid || xe && !Zr(c).isValid)) {
1067
+ const { value: F, message: R } = ht(h) ? { value: !!h, message: h } : Le(h);
1068
+ if (F && (H[N] = {
1075
1069
  type: be.required,
1076
1070
  message: R,
1077
1071
  ref: Z,
1078
1072
  ...ve(be.required, R)
1079
1073
  }, !n))
1080
- return J(R), H;
1074
+ return K(R), H;
1081
1075
  }
1082
1076
  if (!ae && (!ie(C) || !ie(S))) {
1083
- let k, R;
1084
- const P = Ie(S), $ = Ie(C);
1085
- if (!ie(w) && !isNaN(w)) {
1086
- const ee = l.valueAsNumber || w && +w;
1087
- ie(P.value) || (k = ee > P.value), ie($.value) || (R = ee < $.value);
1077
+ let F, R;
1078
+ const P = Le(S), $ = Le(C);
1079
+ if (!ie(x) && !isNaN(x)) {
1080
+ const ee = l.valueAsNumber || x && +x;
1081
+ ie(P.value) || (F = ee > P.value), ie($.value) || (R = ee < $.value);
1088
1082
  } else {
1089
- const ee = l.valueAsDate || new Date(w), oe = (Se) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Se), ce = l.type == "time", me = l.type == "week";
1090
- ge(P.value) && w && (k = ce ? oe(w) > oe(P.value) : me ? w > P.value : ee > new Date(P.value)), ge($.value) && w && (R = ce ? oe(w) < oe($.value) : me ? w < $.value : ee < new Date($.value));
1083
+ const ee = l.valueAsDate || new Date(x), oe = (Se) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Se), ce = l.type == "time", me = l.type == "week";
1084
+ ge(P.value) && x && (F = ce ? oe(x) > oe(P.value) : me ? x > P.value : ee > new Date(P.value)), ge($.value) && x && (R = ce ? oe(x) < oe($.value) : me ? x < $.value : ee < new Date($.value));
1091
1085
  }
1092
- if ((k || R) && (fe(!!k, P.message, $.message, be.max, be.min), !n))
1093
- return J(H[N].message), H;
1086
+ if ((F || R) && (fe(!!F, P.message, $.message, be.max, be.min), !n))
1087
+ return K(H[N].message), H;
1094
1088
  }
1095
- if ((_ || b) && !ae && (ge(w) || o && Array.isArray(w))) {
1096
- const k = Ie(_), R = Ie(b), P = !ie(k.value) && w.length > +k.value, $ = !ie(R.value) && w.length < +R.value;
1097
- if ((P || $) && (fe(P, k.message, R.message), !n))
1098
- return J(H[N].message), H;
1089
+ if ((_ || m) && !ae && (ge(x) || o && Array.isArray(x))) {
1090
+ const F = Le(_), R = Le(m), P = !ie(F.value) && x.length > +F.value, $ = !ie(R.value) && x.length < +R.value;
1091
+ if ((P || $) && (fe(P, F.message, R.message), !n))
1092
+ return K(H[N].message), H;
1099
1093
  }
1100
- if (X && !ae && ge(w)) {
1101
- const { value: k, message: R } = Ie(X);
1102
- if (bt(k) && !w.match(k) && (H[N] = {
1094
+ if (G && !ae && ge(x)) {
1095
+ const { value: F, message: R } = Le(G);
1096
+ if (bt(F) && !x.match(F) && (H[N] = {
1103
1097
  type: be.pattern,
1104
1098
  message: R,
1105
1099
  ref: l,
1106
1100
  ...ve(be.pattern, R)
1107
1101
  }, !n))
1108
- return J(R), H;
1102
+ return K(R), H;
1109
1103
  }
1110
- if (Q) {
1111
- if (he(Q)) {
1112
- const k = await Q(w, r), R = Rr(k, Z);
1104
+ if (X) {
1105
+ if (he(X)) {
1106
+ const F = await X(x, r), R = Tr(F, Z);
1113
1107
  if (R && (H[N] = {
1114
1108
  ...R,
1115
1109
  ...ve(be.validate, R.message)
1116
1110
  }, !n))
1117
- return J(R.message), H;
1118
- } else if (B(Q)) {
1119
- let k = {};
1120
- for (const R in Q) {
1121
- if (!ne(k) && !n)
1111
+ return K(R.message), H;
1112
+ } else if (B(X)) {
1113
+ let F = {};
1114
+ for (const R in X) {
1115
+ if (!ne(F) && !n)
1122
1116
  break;
1123
- const P = Rr(await Q[R](w, r), Z, R);
1124
- P && (k = {
1117
+ const P = Tr(await X[R](x, r), Z, R);
1118
+ P && (F = {
1125
1119
  ...P,
1126
1120
  ...ve(R, P.message)
1127
- }, J(P.message), n && (H[N] = k));
1121
+ }, K(P.message), n && (H[N] = F));
1128
1122
  }
1129
- if (!ne(k) && (H[N] = {
1123
+ if (!ne(F) && (H[N] = {
1130
1124
  ref: Z,
1131
- ...k
1125
+ ...F
1132
1126
  }, !n))
1133
1127
  return H;
1134
1128
  }
1135
1129
  }
1136
- return J(!0), H;
1130
+ return K(!0), H;
1137
1131
  };
1138
- const ti = {
1132
+ const ri = {
1139
1133
  mode: de.onSubmit,
1140
1134
  reValidateMode: de.onChange,
1141
1135
  shouldFocusError: !0
1142
1136
  };
1143
- function ri(e = {}) {
1137
+ function ni(e = {}) {
1144
1138
  let t = {
1145
- ...ti,
1139
+ ...ri,
1146
1140
  ...e
1147
1141
  }, r = {
1148
1142
  submitCount: 0,
1149
1143
  isDirty: !1,
1144
+ isReady: !1,
1150
1145
  isLoading: he(t.defaultValues),
1151
1146
  isValidating: !1,
1152
1147
  isSubmitted: !1,
@@ -1160,7 +1155,7 @@ function ri(e = {}) {
1160
1155
  disabled: t.disabled || !1
1161
1156
  };
1162
1157
  const n = {};
1163
- let i = B(t.defaultValues) || B(t.values) ? G(t.values || t.defaultValues) || {} : {}, o = t.shouldUnregister ? {} : G(i), l = {
1158
+ let i = B(t.defaultValues) || B(t.values) ? J(t.defaultValues || t.values) || {} : {}, o = t.shouldUnregister ? {} : J(i), l = {
1164
1159
  action: !1,
1165
1160
  mount: !1,
1166
1161
  watch: !1
@@ -1171,7 +1166,7 @@ function ri(e = {}) {
1171
1166
  array: /* @__PURE__ */ new Set(),
1172
1167
  watch: /* @__PURE__ */ new Set()
1173
1168
  }, h, _ = 0;
1174
- const b = {
1169
+ const m = {
1175
1170
  isDirty: !1,
1176
1171
  dirtyFields: !1,
1177
1172
  validatingFields: !1,
@@ -1181,42 +1176,42 @@ function ri(e = {}) {
1181
1176
  errors: !1
1182
1177
  };
1183
1178
  let C = {
1184
- ...b
1179
+ ...m
1185
1180
  };
1186
1181
  const S = {
1187
- array: br(),
1188
- state: br()
1189
- }, X = wr(t.mode), Q = wr(t.reValidateMode), N = t.criteriaMode === de.all, q = (a) => (u) => {
1182
+ array: mr(),
1183
+ state: mr()
1184
+ }, G = Cr(t.mode), X = Cr(t.reValidateMode), N = t.criteriaMode === de.all, Q = (a) => (u) => {
1190
1185
  clearTimeout(_), _ = setTimeout(a, u);
1191
1186
  }, M = async (a) => {
1192
- if (!t.disabled && (b.isValid || C.isValid || a)) {
1187
+ if (!t.disabled && (m.isValid || C.isValid || a)) {
1193
1188
  const u = t.resolver ? ne((await ae()).errors) : await fe(n, !0);
1194
1189
  u !== r.isValid && S.state.next({
1195
1190
  isValid: u
1196
1191
  });
1197
1192
  }
1198
- }, w = (a, u) => {
1199
- !t.disabled && (b.isValidating || b.validatingFields || C.isValidating || C.validatingFields) && ((a || Array.from(c.mount)).forEach((f) => {
1200
- f && (u ? j(r.validatingFields, f, u) : Y(r.validatingFields, f));
1193
+ }, x = (a, u) => {
1194
+ !t.disabled && (m.isValidating || m.validatingFields || C.isValidating || C.validatingFields) && ((a || Array.from(c.mount)).forEach((f) => {
1195
+ f && (u ? j(r.validatingFields, f, u) : q(r.validatingFields, f));
1201
1196
  }), S.state.next({
1202
1197
  validatingFields: r.validatingFields,
1203
1198
  isValidating: !ne(r.validatingFields)
1204
1199
  }));
1205
- }, Z = (a, u = [], f, m, y = !0, g = !0) => {
1206
- if (m && f && !t.disabled) {
1200
+ }, Z = (a, u = [], f, b, y = !0, g = !0) => {
1201
+ if (b && f && !t.disabled) {
1207
1202
  if (l.action = !0, g && Array.isArray(v(n, a))) {
1208
- const x = f(v(n, a), m.argA, m.argB);
1209
- y && j(n, a, x);
1203
+ const w = f(v(n, a), b.argA, b.argB);
1204
+ y && j(n, a, w);
1210
1205
  }
1211
1206
  if (g && Array.isArray(v(r.errors, a))) {
1212
- const x = f(v(r.errors, a), m.argA, m.argB);
1213
- y && j(r.errors, a, x), Zn(r.errors, a);
1207
+ const w = f(v(r.errors, a), b.argA, b.argB);
1208
+ y && j(r.errors, a, w), ei(r.errors, a);
1214
1209
  }
1215
- if ((b.touchedFields || C.touchedFields) && g && Array.isArray(v(r.touchedFields, a))) {
1216
- const x = f(v(r.touchedFields, a), m.argA, m.argB);
1217
- y && j(r.touchedFields, a, x);
1210
+ if ((m.touchedFields || C.touchedFields) && g && Array.isArray(v(r.touchedFields, a))) {
1211
+ const w = f(v(r.touchedFields, a), b.argA, b.argB);
1212
+ y && j(r.touchedFields, a, w);
1218
1213
  }
1219
- (b.dirtyFields || C.dirtyFields) && (r.dirtyFields = Qe(i, o)), S.state.next({
1214
+ (m.dirtyFields || C.dirtyFields) && (r.dirtyFields = Ze(i, o)), S.state.next({
1220
1215
  name: a,
1221
1216
  isDirty: R(a, u),
1222
1217
  dirtyFields: r.dirtyFields,
@@ -1225,7 +1220,7 @@ function ri(e = {}) {
1225
1220
  });
1226
1221
  } else
1227
1222
  j(o, a, u);
1228
- }, J = (a, u) => {
1223
+ }, K = (a, u) => {
1229
1224
  j(r.errors, a, u), S.state.next({
1230
1225
  errors: r.errors
1231
1226
  });
@@ -1234,54 +1229,54 @@ function ri(e = {}) {
1234
1229
  errors: r.errors,
1235
1230
  isValid: !1
1236
1231
  });
1237
- }, we = (a, u, f, m) => {
1232
+ }, xe = (a, u, f, b) => {
1238
1233
  const y = v(n, a);
1239
1234
  if (y) {
1240
1235
  const g = v(o, a, U(f) ? v(i, a) : f);
1241
- U(g) || m && m.defaultChecked || u ? j(o, a, u ? g : xr(y._f)) : ee(a, g), l.mount && M();
1236
+ U(g) || b && b.defaultChecked || u ? j(o, a, u ? g : xr(y._f)) : ee(a, g), l.mount && M();
1242
1237
  }
1243
- }, Ce = (a, u, f, m, y) => {
1244
- let g = !1, x = !1;
1245
- const A = {
1238
+ }, Ce = (a, u, f, b, y) => {
1239
+ let g = !1, w = !1;
1240
+ const O = {
1246
1241
  name: a
1247
1242
  };
1248
1243
  if (!t.disabled) {
1249
- if (!f || m) {
1250
- (b.isDirty || C.isDirty) && (x = r.isDirty, r.isDirty = A.isDirty = R(), g = x !== A.isDirty);
1244
+ if (!f || b) {
1245
+ (m.isDirty || C.isDirty) && (w = r.isDirty, r.isDirty = O.isDirty = R(), g = w !== O.isDirty);
1251
1246
  const I = _e(v(i, a), u);
1252
- x = !!v(r.dirtyFields, a), I ? Y(r.dirtyFields, a) : j(r.dirtyFields, a, !0), A.dirtyFields = r.dirtyFields, g = g || (b.dirtyFields || C.dirtyFields) && x !== !I;
1247
+ w = !!v(r.dirtyFields, a), I ? q(r.dirtyFields, a) : j(r.dirtyFields, a, !0), O.dirtyFields = r.dirtyFields, g = g || (m.dirtyFields || C.dirtyFields) && w !== !I;
1253
1248
  }
1254
1249
  if (f) {
1255
1250
  const I = v(r.touchedFields, a);
1256
- I || (j(r.touchedFields, a, f), A.touchedFields = r.touchedFields, g = g || (b.touchedFields || C.touchedFields) && I !== f);
1251
+ I || (j(r.touchedFields, a, f), O.touchedFields = r.touchedFields, g = g || (m.touchedFields || C.touchedFields) && I !== f);
1257
1252
  }
1258
- g && y && S.state.next(A);
1259
- }
1260
- return g ? A : {};
1261
- }, Be = (a, u, f, m) => {
1262
- const y = v(r.errors, a), g = (b.isValid || C.isValid) && ue(u) && r.isValid !== u;
1263
- if (t.delayError && f ? (h = q(() => J(a, f)), h(t.delayError)) : (clearTimeout(_), h = null, f ? j(r.errors, a, f) : Y(r.errors, a)), (f ? !_e(y, f) : y) || !ne(m) || g) {
1264
- const x = {
1265
- ...m,
1253
+ g && y && S.state.next(O);
1254
+ }
1255
+ return g ? O : {};
1256
+ }, He = (a, u, f, b) => {
1257
+ const y = v(r.errors, a), g = (m.isValid || C.isValid) && ue(u) && r.isValid !== u;
1258
+ if (t.delayError && f ? (h = Q(() => K(a, f)), h(t.delayError)) : (clearTimeout(_), h = null, f ? j(r.errors, a, f) : q(r.errors, a)), (f ? !_e(y, f) : y) || !ne(b) || g) {
1259
+ const w = {
1260
+ ...b,
1266
1261
  ...g && ue(u) ? { isValid: u } : {},
1267
1262
  errors: r.errors,
1268
1263
  name: a
1269
1264
  };
1270
1265
  r = {
1271
1266
  ...r,
1272
- ...x
1273
- }, S.state.next(x);
1267
+ ...w
1268
+ }, S.state.next(w);
1274
1269
  }
1275
1270
  }, ae = async (a) => {
1276
- w(a, !0);
1277
- const u = await t.resolver(o, t.context, zn(a || c.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
1278
- return w(a), u;
1271
+ x(a, !0);
1272
+ const u = await t.resolver(o, t.context, Kn(a || c.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
1273
+ return x(a), u;
1279
1274
  }, ve = async (a) => {
1280
1275
  const { errors: u } = await ae(a);
1281
1276
  if (a)
1282
1277
  for (const f of a) {
1283
- const m = v(u, f);
1284
- m ? j(r.errors, f, m) : Y(r.errors, f);
1278
+ const b = v(u, f);
1279
+ b ? j(r.errors, f, b) : q(r.errors, f);
1285
1280
  }
1286
1281
  else
1287
1282
  r.errors = u;
@@ -1289,161 +1284,161 @@ function ri(e = {}) {
1289
1284
  }, fe = async (a, u, f = {
1290
1285
  valid: !0
1291
1286
  }) => {
1292
- for (const m in a) {
1293
- const y = a[m];
1287
+ for (const b in a) {
1288
+ const y = a[b];
1294
1289
  if (y) {
1295
- const { _f: g, ...x } = y;
1290
+ const { _f: g, ...w } = y;
1296
1291
  if (g) {
1297
- const A = c.array.has(g.name), I = y._f && Kn(y._f);
1298
- I && b.validatingFields && w([m], !0);
1299
- const z = await Tr(y, c.disabled, o, N, t.shouldUseNativeValidation && !u, A);
1300
- if (I && b.validatingFields && w([m]), z[g.name] && (f.valid = !1, u))
1292
+ const O = c.array.has(g.name), I = y._f && Jn(y._f);
1293
+ I && m.validatingFields && x([b], !0);
1294
+ const Y = await Or(y, c.disabled, o, N, t.shouldUseNativeValidation && !u, O);
1295
+ if (I && m.validatingFields && x([b]), Y[g.name] && (f.valid = !1, u))
1301
1296
  break;
1302
- !u && (v(z, g.name) ? A ? ei(r.errors, z, g.name) : j(r.errors, g.name, z[g.name]) : Y(r.errors, g.name));
1297
+ !u && (v(Y, g.name) ? O ? ti(r.errors, Y, g.name) : j(r.errors, g.name, Y[g.name]) : q(r.errors, g.name));
1303
1298
  }
1304
- !ne(x) && await fe(x, u, f);
1299
+ !ne(w) && await fe(w, u, f);
1305
1300
  }
1306
1301
  }
1307
1302
  return f.valid;
1308
- }, k = () => {
1303
+ }, F = () => {
1309
1304
  for (const a of c.unMount) {
1310
1305
  const u = v(n, a);
1311
1306
  u && (u._f.refs ? u._f.refs.every((f) => !kt(f)) : !kt(u._f.ref)) && Ee(a);
1312
1307
  }
1313
1308
  c.unMount = /* @__PURE__ */ new Set();
1314
- }, R = (a, u) => !t.disabled && (a && u && j(o, a, u), !_e(He(), i)), P = (a, u, f) => Yr(a, c, {
1309
+ }, R = (a, u) => !t.disabled && (a && u && j(o, a, u), !_e($e(), i)), P = (a, u, f) => zr(a, c, {
1315
1310
  ...l.mount ? o : U(u) ? i : ge(a) ? { [a]: u } : u
1316
1311
  }, f, u), $ = (a) => _t(v(l.mount ? o : i, a, t.shouldUnregister ? v(i, a, []) : [])), ee = (a, u, f = {}) => {
1317
- const m = v(n, a);
1312
+ const b = v(n, a);
1318
1313
  let y = u;
1319
- if (m) {
1320
- const g = m._f;
1321
- g && (!g.disabled && j(o, a, Xr(u, g)), y = yt(g.ref) && ie(u) ? "" : u, zr(g.ref) ? [...g.ref.options].forEach((x) => x.selected = y.includes(x.value)) : g.refs ? st(g.ref) ? g.refs.length > 1 ? g.refs.forEach((x) => (!x.defaultChecked || !x.disabled) && (x.checked = Array.isArray(y) ? !!y.find((A) => A === x.value) : y === x.value)) : g.refs[0] && (g.refs[0].checked = !!y) : g.refs.forEach((x) => x.checked = x.value === y) : tr(g.ref) ? g.ref.value = "" : (g.ref.value = y, g.ref.type || S.state.next({
1314
+ if (b) {
1315
+ const g = b._f;
1316
+ g && (!g.disabled && j(o, a, Qr(u, g)), y = yt(g.ref) && ie(u) ? "" : u, Kr(g.ref) ? [...g.ref.options].forEach((w) => w.selected = y.includes(w.value)) : g.refs ? st(g.ref) ? g.refs.length > 1 ? g.refs.forEach((w) => (!w.defaultChecked || !w.disabled) && (w.checked = Array.isArray(y) ? !!y.find((O) => O === w.value) : y === w.value)) : g.refs[0] && (g.refs[0].checked = !!y) : g.refs.forEach((w) => w.checked = w.value === y) : rr(g.ref) ? g.ref.value = "" : (g.ref.value = y, g.ref.type || S.state.next({
1322
1317
  name: a,
1323
- values: G(o)
1318
+ values: J(o)
1324
1319
  })));
1325
1320
  }
1326
- (f.shouldDirty || f.shouldTouch) && Ce(a, y, f.shouldTouch, f.shouldDirty, !0), f.shouldValidate && Fe(a);
1321
+ (f.shouldDirty || f.shouldTouch) && Ce(a, y, f.shouldTouch, f.shouldDirty, !0), f.shouldValidate && ke(a);
1327
1322
  }, oe = (a, u, f) => {
1328
- for (const m in u) {
1329
- const y = u[m], g = `${a}.${m}`, x = v(n, g);
1330
- (c.array.has(a) || B(y) || x && !x._f) && !Oe(y) ? oe(g, y, f) : ee(g, y, f);
1323
+ for (const b in u) {
1324
+ const y = u[b], g = `${a}.${b}`, w = v(n, g);
1325
+ (c.array.has(a) || B(y) || w && !w._f) && !Ae(y) ? oe(g, y, f) : ee(g, y, f);
1331
1326
  }
1332
1327
  }, ce = (a, u, f = {}) => {
1333
- const m = v(n, a), y = c.array.has(a), g = G(u);
1328
+ const b = v(n, a), y = c.array.has(a), g = J(u);
1334
1329
  j(o, a, g), y ? (S.array.next({
1335
1330
  name: a,
1336
- values: G(o)
1337
- }), (b.isDirty || b.dirtyFields || C.isDirty || C.dirtyFields) && f.shouldDirty && S.state.next({
1331
+ values: J(o)
1332
+ }), (m.isDirty || m.dirtyFields || C.isDirty || C.dirtyFields) && f.shouldDirty && S.state.next({
1338
1333
  name: a,
1339
- dirtyFields: Qe(i, o),
1334
+ dirtyFields: Ze(i, o),
1340
1335
  isDirty: R(a, g)
1341
- })) : m && !m._f && !ie(g) ? oe(a, g, f) : ee(a, g, f), Sr(a, c) && S.state.next({ ...r }), S.state.next({
1336
+ })) : b && !b._f && !ie(g) ? oe(a, g, f) : ee(a, g, f), Er(a, c) && S.state.next({ ...r }), S.state.next({
1342
1337
  name: l.mount ? a : void 0,
1343
- values: G(o)
1338
+ values: J(o)
1344
1339
  });
1345
1340
  }, me = async (a) => {
1346
1341
  l.mount = !0;
1347
1342
  const u = a.target;
1348
- let f = u.name, m = !0;
1349
- const y = v(n, f), g = (x) => {
1350
- m = Number.isNaN(x) || Oe(x) && isNaN(x.getTime()) || _e(x, v(o, f, x));
1343
+ let f = u.name, b = !0;
1344
+ const y = v(n, f), g = (w) => {
1345
+ b = Number.isNaN(w) || Ae(w) && isNaN(w.getTime()) || _e(w, v(o, f, w));
1351
1346
  };
1352
1347
  if (y) {
1353
- let x, A;
1354
- const I = u.type ? xr(y._f) : Hr(a), z = a.type === gt.BLUR || a.type === gt.FOCUS_OUT, Et = !Jn(y._f) && !t.resolver && !v(r.errors, f) && !y._f.deps || Qn(z, v(r.touchedFields, f), r.isSubmitted, Q, X), Ke = Sr(f, c, z);
1355
- j(o, f, I), z ? (y._f.onBlur && y._f.onBlur(a), h && h(0)) : y._f.onChange && y._f.onChange(a);
1356
- const Je = Ce(f, I, z), Rt = !ne(Je) || Ke;
1357
- if (!z && S.state.next({
1348
+ let w, O;
1349
+ const I = u.type ? xr(y._f) : $r(a), Y = a.type === gt.BLUR || a.type === gt.FOCUS_OUT, Et = !Gn(y._f) && !t.resolver && !v(r.errors, f) && !y._f.deps || Zn(Y, v(r.touchedFields, f), r.isSubmitted, X, G), Je = Er(f, c, Y);
1350
+ j(o, f, I), Y ? (y._f.onBlur && y._f.onBlur(a), h && h(0)) : y._f.onChange && y._f.onChange(a);
1351
+ const Ge = Ce(f, I, Y), Rt = !ne(Ge) || Je;
1352
+ if (!Y && S.state.next({
1358
1353
  name: f,
1359
1354
  type: a.type,
1360
- values: G(o)
1355
+ values: J(o)
1361
1356
  }), Et)
1362
- return (b.isValid || C.isValid) && (t.mode === "onBlur" ? z && M() : z || M()), Rt && S.state.next({ name: f, ...Ke ? {} : Je });
1363
- if (!z && Ke && S.state.next({ ...r }), t.resolver) {
1357
+ return (m.isValid || C.isValid) && (t.mode === "onBlur" ? Y && M() : Y || M()), Rt && S.state.next({ name: f, ...Je ? {} : Ge });
1358
+ if (!Y && Je && S.state.next({ ...r }), t.resolver) {
1364
1359
  const { errors: ft } = await ae([f]);
1365
- if (g(I), m) {
1366
- const Tt = Er(r.errors, n, f), je = Er(ft, n, Tt.name || f);
1367
- x = je.error, f = je.name, A = ne(ft);
1360
+ if (g(I), b) {
1361
+ const Tt = Rr(r.errors, n, f), Me = Rr(ft, n, Tt.name || f);
1362
+ w = Me.error, f = Me.name, O = ne(ft);
1368
1363
  }
1369
1364
  } else
1370
- w([f], !0), x = (await Tr(y, c.disabled, o, N, t.shouldUseNativeValidation))[f], w([f]), g(I), m && (x ? A = !1 : (b.isValid || C.isValid) && (A = await fe(n, !0)));
1371
- m && (y._f.deps && Fe(y._f.deps), Be(f, A, x, Je));
1365
+ x([f], !0), w = (await Or(y, c.disabled, o, N, t.shouldUseNativeValidation))[f], x([f]), g(I), b && (w ? O = !1 : (m.isValid || C.isValid) && (O = await fe(n, !0)));
1366
+ b && (y._f.deps && ke(y._f.deps), He(f, O, w, Ge));
1372
1367
  }
1373
1368
  }, Se = (a, u) => {
1374
1369
  if (v(r.errors, u) && a.focus)
1375
1370
  return a.focus(), 1;
1376
- }, Fe = async (a, u = {}) => {
1377
- let f, m;
1371
+ }, ke = async (a, u = {}) => {
1372
+ let f, b;
1378
1373
  const y = rt(a);
1379
1374
  if (t.resolver) {
1380
1375
  const g = await ve(U(a) ? a : y);
1381
- f = ne(g), m = a ? !y.some((x) => v(g, x)) : f;
1382
- } else a ? (m = (await Promise.all(y.map(async (g) => {
1383
- const x = v(n, g);
1384
- return await fe(x && x._f ? { [g]: x } : x);
1385
- }))).every(Boolean), !(!m && !r.isValid) && M()) : m = f = await fe(n);
1376
+ f = ne(g), b = a ? !y.some((w) => v(g, w)) : f;
1377
+ } else a ? (b = (await Promise.all(y.map(async (g) => {
1378
+ const w = v(n, g);
1379
+ return await fe(w && w._f ? { [g]: w } : w);
1380
+ }))).every(Boolean), !(!b && !r.isValid) && M()) : b = f = await fe(n);
1386
1381
  return S.state.next({
1387
- ...!ge(a) || (b.isValid || C.isValid) && f !== r.isValid ? {} : { name: a },
1382
+ ...!ge(a) || (m.isValid || C.isValid) && f !== r.isValid ? {} : { name: a },
1388
1383
  ...t.resolver || !a ? { isValid: f } : {},
1389
1384
  errors: r.errors
1390
- }), u.shouldFocus && !m && nt(n, Se, a ? y : c.mount), m;
1391
- }, He = (a) => {
1385
+ }), u.shouldFocus && !b && nt(n, Se, a ? y : c.mount), b;
1386
+ }, $e = (a) => {
1392
1387
  const u = {
1393
1388
  ...l.mount ? o : i
1394
1389
  };
1395
1390
  return U(a) ? u : ge(a) ? v(u, a) : a.map((f) => v(u, f));
1396
- }, $e = (a, u) => ({
1391
+ }, We = (a, u) => ({
1397
1392
  invalid: !!v((u || r).errors, a),
1398
1393
  isDirty: !!v((u || r).dirtyFields, a),
1399
1394
  error: v((u || r).errors, a),
1400
1395
  isValidating: !!v(r.validatingFields, a),
1401
1396
  isTouched: !!v((u || r).touchedFields, a)
1402
1397
  }), Ct = (a) => {
1403
- a && rt(a).forEach((u) => Y(r.errors, u)), S.state.next({
1398
+ a && rt(a).forEach((u) => q(r.errors, u)), S.state.next({
1404
1399
  errors: a ? r.errors : {}
1405
1400
  });
1406
1401
  }, at = (a, u, f) => {
1407
- const m = (v(n, a, { _f: {} })._f || {}).ref, y = v(r.errors, a) || {}, { ref: g, message: x, type: A, ...I } = y;
1402
+ const b = (v(n, a, { _f: {} })._f || {}).ref, y = v(r.errors, a) || {}, { ref: g, message: w, type: O, ...I } = y;
1408
1403
  j(r.errors, a, {
1409
1404
  ...I,
1410
1405
  ...u,
1411
- ref: m
1406
+ ref: b
1412
1407
  }), S.state.next({
1413
1408
  name: a,
1414
1409
  errors: r.errors,
1415
1410
  isValid: !1
1416
- }), f && f.shouldFocus && m && m.focus && m.focus();
1417
- }, We = (a, u) => he(a) ? S.state.subscribe({
1411
+ }), f && f.shouldFocus && b && b.focus && b.focus();
1412
+ }, qe = (a, u) => he(a) ? S.state.subscribe({
1418
1413
  next: (f) => a(P(void 0, u), f)
1419
- }) : P(a, u, !0), ke = (a) => S.state.subscribe({
1414
+ }) : P(a, u, !0), Ve = (a) => S.state.subscribe({
1420
1415
  next: (u) => {
1421
- Xn(a.name, u.name, a.exact) && Gn(u, a.formState || b, De, a.reRenderRoot) && a.callback({
1416
+ Qn(a.name, u.name, a.exact) && Xn(u, a.formState || m, je, a.reRenderRoot) && a.callback({
1422
1417
  values: { ...o },
1423
1418
  ...r,
1424
1419
  ...u
1425
1420
  });
1426
1421
  }
1427
- }).unsubscribe, Ve = (a) => (l.mount = !0, C = {
1422
+ }).unsubscribe, Pe = (a) => (l.mount = !0, C = {
1428
1423
  ...C,
1429
1424
  ...a.formState
1430
- }, ke({
1425
+ }, Ve({
1431
1426
  ...a,
1432
1427
  formState: C
1433
1428
  })), Ee = (a, u = {}) => {
1434
1429
  for (const f of a ? rt(a) : c.mount)
1435
- c.mount.delete(f), c.array.delete(f), u.keepValue || (Y(n, f), Y(o, f)), !u.keepError && Y(r.errors, f), !u.keepDirty && Y(r.dirtyFields, f), !u.keepTouched && Y(r.touchedFields, f), !u.keepIsValidating && Y(r.validatingFields, f), !t.shouldUnregister && !u.keepDefaultValue && Y(i, f);
1430
+ c.mount.delete(f), c.array.delete(f), u.keepValue || (q(n, f), q(o, f)), !u.keepError && q(r.errors, f), !u.keepDirty && q(r.dirtyFields, f), !u.keepTouched && q(r.touchedFields, f), !u.keepIsValidating && q(r.validatingFields, f), !t.shouldUnregister && !u.keepDefaultValue && q(i, f);
1436
1431
  S.state.next({
1437
- values: G(o)
1432
+ values: J(o)
1438
1433
  }), S.state.next({
1439
1434
  ...r,
1440
1435
  ...u.keepDirty ? { isDirty: R() } : {}
1441
1436
  }), !u.keepIsValid && M();
1442
1437
  }, Re = ({ disabled: a, name: u }) => {
1443
1438
  (ue(a) && l.mount || a || c.disabled.has(u)) && (a ? c.disabled.add(u) : c.disabled.delete(u));
1444
- }, qe = (a, u = {}) => {
1439
+ }, Ye = (a, u = {}) => {
1445
1440
  let f = v(n, a);
1446
- const m = ue(u.disabled) || ue(t.disabled);
1441
+ const b = ue(u.disabled) || ue(t.disabled);
1447
1442
  return j(n, a, {
1448
1443
  ...f || {},
1449
1444
  _f: {
@@ -1455,113 +1450,113 @@ function ri(e = {}) {
1455
1450
  }), c.mount.add(a), f ? Re({
1456
1451
  disabled: ue(u.disabled) ? u.disabled : t.disabled,
1457
1452
  name: a
1458
- }) : we(a, !0, u.value), {
1459
- ...m ? { disabled: u.disabled || t.disabled } : {},
1453
+ }) : xe(a, !0, u.value), {
1454
+ ...b ? { disabled: u.disabled || t.disabled } : {},
1460
1455
  ...t.progressive ? {
1461
1456
  required: !!u.required,
1462
- min: Ze(u.min),
1463
- max: Ze(u.max),
1464
- minLength: Ze(u.minLength),
1465
- maxLength: Ze(u.maxLength),
1466
- pattern: Ze(u.pattern)
1457
+ min: et(u.min),
1458
+ max: et(u.max),
1459
+ minLength: et(u.minLength),
1460
+ maxLength: et(u.maxLength),
1461
+ pattern: et(u.pattern)
1467
1462
  } : {},
1468
1463
  name: a,
1469
1464
  onChange: me,
1470
1465
  onBlur: me,
1471
1466
  ref: (y) => {
1472
1467
  if (y) {
1473
- qe(a, u), f = v(n, a);
1474
- const g = U(y.value) && y.querySelectorAll && y.querySelectorAll("input,select,textarea")[0] || y, x = Wn(g), A = f._f.refs || [];
1475
- if (x ? A.find((I) => I === g) : g === f._f.ref)
1468
+ Ye(a, u), f = v(n, a);
1469
+ const g = U(y.value) && y.querySelectorAll && y.querySelectorAll("input,select,textarea")[0] || y, w = qn(g), O = f._f.refs || [];
1470
+ if (w ? O.find((I) => I === g) : g === f._f.ref)
1476
1471
  return;
1477
1472
  j(n, a, {
1478
1473
  _f: {
1479
1474
  ...f._f,
1480
- ...x ? {
1475
+ ...w ? {
1481
1476
  refs: [
1482
- ...A.filter(kt),
1477
+ ...O.filter(kt),
1483
1478
  g,
1484
1479
  ...Array.isArray(v(i, a)) ? [{}] : []
1485
1480
  ],
1486
1481
  ref: { type: g.type, name: a }
1487
1482
  } : { ref: g }
1488
1483
  }
1489
- }), we(a, !1, void 0, g);
1484
+ }), xe(a, !1, void 0, g);
1490
1485
  } else
1491
- f = v(n, a, {}), f._f && (f._f.mount = !1), (t.shouldUnregister || u.shouldUnregister) && !($r(c.array, a) && l.action) && c.unMount.add(a);
1486
+ f = v(n, a, {}), f._f && (f._f.mount = !1), (t.shouldUnregister || u.shouldUnregister) && !(Wr(c.array, a) && l.action) && c.unMount.add(a);
1492
1487
  }
1493
1488
  };
1494
- }, Ye = () => t.shouldFocusError && nt(n, Se, c.mount), St = (a) => {
1489
+ }, ze = () => t.shouldFocusError && nt(n, Se, c.mount), St = (a) => {
1495
1490
  ue(a) && (S.state.next({ disabled: a }), nt(n, (u, f) => {
1496
- const m = v(n, f);
1497
- m && (u.disabled = m._f.disabled || a, Array.isArray(m._f.refs) && m._f.refs.forEach((y) => {
1498
- y.disabled = m._f.disabled || a;
1491
+ const b = v(n, f);
1492
+ b && (u.disabled = b._f.disabled || a, Array.isArray(b._f.refs) && b._f.refs.forEach((y) => {
1493
+ y.disabled = b._f.disabled || a;
1499
1494
  }));
1500
1495
  }, 0, !1));
1501
1496
  }, ot = (a, u) => async (f) => {
1502
- let m;
1497
+ let b;
1503
1498
  f && (f.preventDefault && f.preventDefault(), f.persist && f.persist());
1504
- let y = G(o);
1499
+ let y = J(o);
1505
1500
  if (S.state.next({
1506
1501
  isSubmitting: !0
1507
1502
  }), t.resolver) {
1508
- const { errors: g, values: x } = await ae();
1509
- r.errors = g, y = x;
1503
+ const { errors: g, values: w } = await ae();
1504
+ r.errors = g, y = w;
1510
1505
  } else
1511
1506
  await fe(n);
1512
1507
  if (c.disabled.size)
1513
1508
  for (const g of c.disabled)
1514
1509
  j(y, g, void 0);
1515
- if (Y(r.errors, "root"), ne(r.errors)) {
1510
+ if (q(r.errors, "root"), ne(r.errors)) {
1516
1511
  S.state.next({
1517
1512
  errors: {}
1518
1513
  });
1519
1514
  try {
1520
1515
  await a(y, f);
1521
1516
  } catch (g) {
1522
- m = g;
1517
+ b = g;
1523
1518
  }
1524
1519
  } else
1525
- u && await u({ ...r.errors }, f), Ye(), setTimeout(Ye);
1520
+ u && await u({ ...r.errors }, f), ze(), setTimeout(ze);
1526
1521
  if (S.state.next({
1527
1522
  isSubmitted: !0,
1528
1523
  isSubmitting: !1,
1529
- isSubmitSuccessful: ne(r.errors) && !m,
1524
+ isSubmitSuccessful: ne(r.errors) && !b,
1530
1525
  submitCount: r.submitCount + 1,
1531
1526
  errors: r.errors
1532
- }), m)
1533
- throw m;
1534
- }, Pe = (a, u = {}) => {
1535
- v(n, a) && (U(u.defaultValue) ? ce(a, G(v(i, a))) : (ce(a, u.defaultValue), j(i, a, G(u.defaultValue))), u.keepTouched || Y(r.touchedFields, a), u.keepDirty || (Y(r.dirtyFields, a), r.isDirty = u.defaultValue ? R(a, G(v(i, a))) : R()), u.keepError || (Y(r.errors, a), b.isValid && M()), S.state.next({ ...r }));
1527
+ }), b)
1528
+ throw b;
1529
+ }, De = (a, u = {}) => {
1530
+ v(n, a) && (U(u.defaultValue) ? ce(a, J(v(i, a))) : (ce(a, u.defaultValue), j(i, a, J(u.defaultValue))), u.keepTouched || q(r.touchedFields, a), u.keepDirty || (q(r.dirtyFields, a), r.isDirty = u.defaultValue ? R(a, J(v(i, a))) : R()), u.keepError || (q(r.errors, a), m.isValid && M()), S.state.next({ ...r }));
1536
1531
  }, pe = (a, u = {}) => {
1537
- const f = a ? G(a) : i, m = G(f), y = ne(a), g = y ? i : m;
1532
+ const f = a ? J(a) : i, b = J(f), y = ne(a), g = y ? i : b;
1538
1533
  if (u.keepDefaultValues || (i = f), !u.keepValues) {
1539
1534
  if (u.keepDirtyValues) {
1540
- const x = /* @__PURE__ */ new Set([
1535
+ const w = /* @__PURE__ */ new Set([
1541
1536
  ...c.mount,
1542
- ...Object.keys(Qe(i, o))
1537
+ ...Object.keys(Ze(i, o))
1543
1538
  ]);
1544
- for (const A of Array.from(x))
1545
- v(r.dirtyFields, A) ? j(g, A, v(o, A)) : ce(A, v(g, A));
1539
+ for (const O of Array.from(w))
1540
+ v(r.dirtyFields, O) ? j(g, O, v(o, O)) : ce(O, v(g, O));
1546
1541
  } else {
1547
1542
  if (Qt && U(a))
1548
- for (const x of c.mount) {
1549
- const A = v(n, x);
1550
- if (A && A._f) {
1551
- const I = Array.isArray(A._f.refs) ? A._f.refs[0] : A._f.ref;
1543
+ for (const w of c.mount) {
1544
+ const O = v(n, w);
1545
+ if (O && O._f) {
1546
+ const I = Array.isArray(O._f.refs) ? O._f.refs[0] : O._f.ref;
1552
1547
  if (yt(I)) {
1553
- const z = I.closest("form");
1554
- if (z) {
1555
- z.reset();
1548
+ const Y = I.closest("form");
1549
+ if (Y) {
1550
+ Y.reset();
1556
1551
  break;
1557
1552
  }
1558
1553
  }
1559
1554
  }
1560
1555
  }
1561
- for (const x of c.mount)
1562
- ce(x, v(g, x));
1556
+ for (const w of c.mount)
1557
+ ce(w, v(g, w));
1563
1558
  }
1564
- o = G(g), S.array.next({
1559
+ o = J(g), S.array.next({
1565
1560
  values: { ...g }
1566
1561
  }), S.state.next({
1567
1562
  values: { ...g }
@@ -1575,35 +1570,35 @@ function ri(e = {}) {
1575
1570
  watch: /* @__PURE__ */ new Set(),
1576
1571
  watchAll: !1,
1577
1572
  focus: ""
1578
- }, l.mount = !b.isValid || !!u.keepIsValid || !!u.keepDirtyValues, l.watch = !!t.shouldUnregister, S.state.next({
1573
+ }, l.mount = !m.isValid || !!u.keepIsValid || !!u.keepDirtyValues, l.watch = !!t.shouldUnregister, S.state.next({
1579
1574
  submitCount: u.keepSubmitCount ? r.submitCount : 0,
1580
1575
  isDirty: y ? !1 : u.keepDirty ? r.isDirty : !!(u.keepDefaultValues && !_e(a, i)),
1581
1576
  isSubmitted: u.keepIsSubmitted ? r.isSubmitted : !1,
1582
- dirtyFields: y ? {} : u.keepDirtyValues ? u.keepDefaultValues && o ? Qe(i, o) : r.dirtyFields : u.keepDefaultValues && a ? Qe(i, a) : u.keepDirty ? r.dirtyFields : {},
1577
+ dirtyFields: y ? {} : u.keepDirtyValues ? u.keepDefaultValues && o ? Ze(i, o) : r.dirtyFields : u.keepDefaultValues && a ? Ze(i, a) : u.keepDirty ? r.dirtyFields : {},
1583
1578
  touchedFields: u.keepTouched ? r.touchedFields : {},
1584
1579
  errors: u.keepErrors ? r.errors : {},
1585
1580
  isSubmitSuccessful: u.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
1586
1581
  isSubmitting: !1
1587
1582
  });
1588
- }, ze = (a, u) => pe(he(a) ? a(o) : a, u), ut = (a, u = {}) => {
1589
- const f = v(n, a), m = f && f._f;
1590
- if (m) {
1591
- const y = m.refs ? m.refs[0] : m.ref;
1583
+ }, Ke = (a, u) => pe(he(a) ? a(o) : a, u), ut = (a, u = {}) => {
1584
+ const f = v(n, a), b = f && f._f;
1585
+ if (b) {
1586
+ const y = b.refs ? b.refs[0] : b.ref;
1592
1587
  y.focus && (y.focus(), u.shouldSelect && he(y.select) && y.select());
1593
1588
  }
1594
- }, De = (a) => {
1589
+ }, je = (a) => {
1595
1590
  r = {
1596
1591
  ...r,
1597
1592
  ...a
1598
1593
  };
1599
1594
  }, lt = {
1600
1595
  control: {
1601
- register: qe,
1596
+ register: Ye,
1602
1597
  unregister: Ee,
1603
- getFieldState: $e,
1598
+ getFieldState: We,
1604
1599
  handleSubmit: ot,
1605
1600
  setError: at,
1606
- _subscribe: ke,
1601
+ _subscribe: Ve,
1607
1602
  _runSchema: ae,
1608
1603
  _getWatch: P,
1609
1604
  _getDirty: R,
@@ -1614,14 +1609,14 @@ function ri(e = {}) {
1614
1609
  _getFieldArray: $,
1615
1610
  _reset: pe,
1616
1611
  _resetDefaultValues: () => he(t.defaultValues) && t.defaultValues().then((a) => {
1617
- ze(a, t.resetOptions), S.state.next({
1612
+ Ke(a, t.resetOptions), S.state.next({
1618
1613
  isLoading: !1
1619
1614
  });
1620
1615
  }),
1621
- _removeUnmounted: k,
1616
+ _removeUnmounted: F,
1622
1617
  _disableForm: St,
1623
1618
  _subjects: S,
1624
- _proxyFormState: b,
1619
+ _proxyFormState: m,
1625
1620
  get _fields() {
1626
1621
  return n;
1627
1622
  },
@@ -1656,28 +1651,28 @@ function ri(e = {}) {
1656
1651
  };
1657
1652
  }
1658
1653
  },
1659
- subscribe: Ve,
1660
- trigger: Fe,
1661
- register: qe,
1654
+ subscribe: Pe,
1655
+ trigger: ke,
1656
+ register: Ye,
1662
1657
  handleSubmit: ot,
1663
- watch: We,
1658
+ watch: qe,
1664
1659
  setValue: ce,
1665
- getValues: He,
1666
- reset: ze,
1667
- resetField: Pe,
1660
+ getValues: $e,
1661
+ reset: Ke,
1662
+ resetField: De,
1668
1663
  clearErrors: Ct,
1669
1664
  unregister: Ee,
1670
1665
  setError: at,
1671
1666
  setFocus: ut,
1672
- getFieldState: $e
1667
+ getFieldState: We
1673
1668
  };
1674
1669
  return {
1675
1670
  ...lt,
1676
1671
  formControl: lt
1677
1672
  };
1678
1673
  }
1679
- function zi(e = {}) {
1680
- const t = T.useRef(void 0), r = T.useRef(void 0), [n, i] = T.useState({
1674
+ function Ki(e = {}) {
1675
+ const t = k.useRef(void 0), r = k.useRef(void 0), [n, i] = k.useState({
1681
1676
  isDirty: !1,
1682
1677
  isValidating: !1,
1683
1678
  isLoading: he(e.defaultValues),
@@ -1691,37 +1686,44 @@ function zi(e = {}) {
1691
1686
  validatingFields: {},
1692
1687
  errors: e.errors || {},
1693
1688
  disabled: e.disabled || !1,
1689
+ isReady: !1,
1694
1690
  defaultValues: he(e.defaultValues) ? void 0 : e.defaultValues
1695
1691
  });
1696
1692
  t.current || (t.current = {
1697
- ...e.formControl ? e.formControl : ri(e),
1693
+ ...e.formControl ? e.formControl : ni(e),
1698
1694
  formState: n
1699
1695
  }, e.formControl && e.defaultValues && !he(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions));
1700
1696
  const o = t.current.control;
1701
- return o._options = e, T.useLayoutEffect(() => o._subscribe({
1702
- formState: o._proxyFormState,
1703
- callback: () => i({ ...o._formState }),
1704
- reRenderRoot: !0
1705
- }), [o]), T.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), T.useEffect(() => {
1697
+ return o._options = e, tr(() => {
1698
+ const l = o._subscribe({
1699
+ formState: o._proxyFormState,
1700
+ callback: () => i({ ...o._formState }),
1701
+ reRenderRoot: !0
1702
+ });
1703
+ return i((c) => ({
1704
+ ...c,
1705
+ isReady: !0
1706
+ })), o._formState.isReady = !0, l;
1707
+ }, [o]), k.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), k.useEffect(() => {
1708
+ e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode), e.errors && !ne(e.errors) && o._setErrors(e.errors);
1709
+ }, [o, e.errors, e.mode, e.reValidateMode]), k.useEffect(() => {
1710
+ e.shouldUnregister && o._subjects.state.next({
1711
+ values: o._getWatch()
1712
+ });
1713
+ }, [o, e.shouldUnregister]), k.useEffect(() => {
1706
1714
  if (o._proxyFormState.isDirty) {
1707
1715
  const l = o._getDirty();
1708
1716
  l !== n.isDirty && o._subjects.state.next({
1709
1717
  isDirty: l
1710
1718
  });
1711
1719
  }
1712
- }, [o, n.isDirty]), T.useEffect(() => {
1720
+ }, [o, n.isDirty]), k.useEffect(() => {
1713
1721
  e.values && !_e(e.values, r.current) ? (o._reset(e.values, o._options.resetOptions), r.current = e.values, i((l) => ({ ...l }))) : o._resetDefaultValues();
1714
- }, [e.values, o]), T.useEffect(() => {
1715
- e.errors && !ne(e.errors) && o._setErrors(e.errors);
1716
- }, [e.errors, o]), T.useEffect(() => {
1722
+ }, [o, e.values]), k.useEffect(() => {
1717
1723
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
1718
- }), T.useEffect(() => {
1719
- e.shouldUnregister && o._subjects.state.next({
1720
- values: o._getWatch()
1721
- });
1722
- }, [e.shouldUnregister, o]), t.current.formState = qr(n, o), t.current;
1724
+ }), t.current.formState = Yr(n, o), t.current;
1723
1725
  }
1724
- var Zr = /* @__PURE__ */ En({});
1726
+ var en = /* @__PURE__ */ Rn({});
1725
1727
  function jt() {
1726
1728
  return jt = Object.assign ? Object.assign.bind() : function(e) {
1727
1729
  for (var t = 1; t < arguments.length; t++) {
@@ -1731,10 +1733,10 @@ function jt() {
1731
1733
  return e;
1732
1734
  }, jt.apply(null, arguments);
1733
1735
  }
1734
- function ni(e) {
1736
+ function ii(e) {
1735
1737
  if (Array.isArray(e)) return e;
1736
1738
  }
1737
- function ii(e, t) {
1739
+ function si(e, t) {
1738
1740
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1739
1741
  if (r != null) {
1740
1742
  var n, i, o, l, c = [], h = !0, _ = !1;
@@ -1743,8 +1745,8 @@ function ii(e, t) {
1743
1745
  if (Object(r) !== r) return;
1744
1746
  h = !1;
1745
1747
  } else for (; !(h = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); h = !0) ;
1746
- } catch (b) {
1747
- _ = !0, i = b;
1748
+ } catch (m) {
1749
+ _ = !0, i = m;
1748
1750
  } finally {
1749
1751
  try {
1750
1752
  if (!h && r.return != null && (l = r.return(), Object(l) !== l)) return;
@@ -1755,56 +1757,56 @@ function ii(e, t) {
1755
1757
  return c;
1756
1758
  }
1757
1759
  }
1758
- function Or(e, t) {
1760
+ function Ar(e, t) {
1759
1761
  (t == null || t > e.length) && (t = e.length);
1760
1762
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1761
1763
  return n;
1762
1764
  }
1763
- function si(e, t) {
1765
+ function ai(e, t) {
1764
1766
  if (e) {
1765
- if (typeof e == "string") return Or(e, t);
1767
+ if (typeof e == "string") return Ar(e, t);
1766
1768
  var r = {}.toString.call(e).slice(8, -1);
1767
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Or(e, t) : void 0;
1769
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ar(e, t) : void 0;
1768
1770
  }
1769
1771
  }
1770
- function ai() {
1772
+ function oi() {
1771
1773
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1772
1774
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1773
1775
  }
1774
- function en(e, t) {
1775
- return ni(e) || ii(e, t) || si(e, t) || ai();
1776
+ function tn(e, t) {
1777
+ return ii(e) || si(e, t) || ai(e, t) || oi();
1776
1778
  }
1777
- function xe(e) {
1779
+ function we(e) {
1778
1780
  "@babel/helpers - typeof";
1779
- return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1781
+ return we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1780
1782
  return typeof t;
1781
1783
  } : function(t) {
1782
1784
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1783
- }, xe(e);
1785
+ }, we(e);
1784
1786
  }
1785
- function oi(e, t) {
1786
- if (xe(e) != "object" || !e) return e;
1787
+ function ui(e, t) {
1788
+ if (we(e) != "object" || !e) return e;
1787
1789
  var r = e[Symbol.toPrimitive];
1788
1790
  if (r !== void 0) {
1789
1791
  var n = r.call(e, t);
1790
- if (xe(n) != "object") return n;
1792
+ if (we(n) != "object") return n;
1791
1793
  throw new TypeError("@@toPrimitive must return a primitive value.");
1792
1794
  }
1793
1795
  return (t === "string" ? String : Number)(e);
1794
1796
  }
1795
- function tn(e) {
1796
- var t = oi(e, "string");
1797
- return xe(t) == "symbol" ? t : t + "";
1797
+ function rn(e) {
1798
+ var t = ui(e, "string");
1799
+ return we(t) == "symbol" ? t : t + "";
1798
1800
  }
1799
1801
  function re(e, t, r) {
1800
- return (t = tn(t)) in e ? Object.defineProperty(e, t, {
1802
+ return (t = rn(t)) in e ? Object.defineProperty(e, t, {
1801
1803
  value: r,
1802
1804
  enumerable: !0,
1803
1805
  configurable: !0,
1804
1806
  writable: !0
1805
1807
  }) : e[t] = r, e;
1806
1808
  }
1807
- function ui(e, t) {
1809
+ function li(e, t) {
1808
1810
  if (e == null) return {};
1809
1811
  var r = {};
1810
1812
  for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
@@ -1813,9 +1815,9 @@ function ui(e, t) {
1813
1815
  }
1814
1816
  return r;
1815
1817
  }
1816
- function rn(e, t) {
1818
+ function nn(e, t) {
1817
1819
  if (e == null) return {};
1818
- var r, n, i = ui(e, t);
1820
+ var r, n, i = li(e, t);
1819
1821
  if (Object.getOwnPropertySymbols) {
1820
1822
  var o = Object.getOwnPropertySymbols(e);
1821
1823
  for (n = 0; n < o.length; n++) r = o[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
@@ -1828,9 +1830,9 @@ var Vt = { exports: {} };
1828
1830
  Licensed under the MIT License (MIT), see
1829
1831
  http://jedwatson.github.io/classnames
1830
1832
  */
1831
- var Ar;
1832
- function li() {
1833
- return Ar || (Ar = 1, function(e) {
1833
+ var Fr;
1834
+ function fi() {
1835
+ return Fr || (Fr = 1, function(e) {
1834
1836
  (function() {
1835
1837
  var t = {}.hasOwnProperty;
1836
1838
  function r() {
@@ -1861,20 +1863,20 @@ function li() {
1861
1863
  })();
1862
1864
  }(Vt)), Vt.exports;
1863
1865
  }
1864
- var fi = li();
1865
- const ci = /* @__PURE__ */ An(fi), K = Math.round;
1866
+ var ci = fi();
1867
+ const di = /* @__PURE__ */ Fn(ci), z = Math.round;
1866
1868
  function Pt(e, t) {
1867
1869
  const r = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = r.map((i) => parseFloat(i));
1868
1870
  for (let i = 0; i < 3; i += 1)
1869
1871
  n[i] = t(n[i] || 0, r[i] || "", i);
1870
1872
  return r[3] ? n[3] = r[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
1871
1873
  }
1872
- const Fr = (e, t, r) => r === 0 ? e : e / 100;
1873
- function et(e, t) {
1874
+ const kr = (e, t, r) => r === 0 ? e : e / 100;
1875
+ function tt(e, t) {
1874
1876
  const r = t || 255;
1875
1877
  return e > r ? r : e < 0 ? 0 : e;
1876
1878
  }
1877
- class Le {
1879
+ class Ue {
1878
1880
  constructor(t) {
1879
1881
  re(this, "isValid", !0), re(this, "r", 0), re(this, "g", 0), re(this, "b", 0), re(this, "a", 1), re(this, "_h", void 0), re(this, "_s", void 0), re(this, "_l", void 0), re(this, "_v", void 0), re(this, "_max", void 0), re(this, "_min", void 0), re(this, "_brightness", void 0);
1880
1882
  function r(n) {
@@ -1886,10 +1888,10 @@ class Le {
1886
1888
  };
1887
1889
  const n = t.trim();
1888
1890
  /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : i("rgb") ? this.fromRgbString(n) : i("hsl") ? this.fromHslString(n) : (i("hsv") || i("hsb")) && this.fromHsvString(n);
1889
- } else if (t instanceof Le)
1891
+ } else if (t instanceof Ue)
1890
1892
  this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
1891
1893
  else if (r("rgb"))
1892
- this.r = et(t.r), this.g = et(t.g), this.b = et(t.b), this.a = typeof t.a == "number" ? et(t.a, 1) : 1;
1894
+ this.r = tt(t.r), this.g = tt(t.g), this.b = tt(t.b), this.a = typeof t.a == "number" ? tt(t.a, 1) : 1;
1893
1895
  else if (r("hsl"))
1894
1896
  this.fromHsl(t);
1895
1897
  else if (r("hsv"))
@@ -1930,7 +1932,7 @@ class Le {
1930
1932
  getHue() {
1931
1933
  if (typeof this._h > "u") {
1932
1934
  const t = this.getMax() - this.getMin();
1933
- t === 0 ? this._h = 0 : this._h = K(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
1935
+ t === 0 ? this._h = 0 : this._h = z(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
1934
1936
  }
1935
1937
  return this._h;
1936
1938
  }
@@ -1982,10 +1984,10 @@ class Le {
1982
1984
  */
1983
1985
  mix(t, r = 50) {
1984
1986
  const n = this._c(t), i = r / 100, o = (c) => (n[c] - this[c]) * i + this[c], l = {
1985
- r: K(o("r")),
1986
- g: K(o("g")),
1987
- b: K(o("b")),
1988
- a: K(o("a") * 100) / 100
1987
+ r: z(o("r")),
1988
+ g: z(o("g")),
1989
+ b: z(o("b")),
1990
+ a: z(o("a") * 100) / 100
1989
1991
  };
1990
1992
  return this._c(l);
1991
1993
  }
@@ -2014,7 +2016,7 @@ class Le {
2014
2016
  }, t);
2015
2017
  }
2016
2018
  onBackground(t) {
2017
- const r = this._c(t), n = this.a + r.a * (1 - this.a), i = (o) => K((this[o] * this.a + r[o] * r.a * (1 - this.a)) / n);
2019
+ const r = this._c(t), n = this.a + r.a * (1 - this.a), i = (o) => z((this[o] * this.a + r[o] * r.a * (1 - this.a)) / n);
2018
2020
  return this._c({
2019
2021
  r: i("r"),
2020
2022
  g: i("g"),
@@ -2045,7 +2047,7 @@ class Le {
2045
2047
  t += n.length === 2 ? n : "0" + n;
2046
2048
  const i = (this.b || 0).toString(16);
2047
2049
  if (t += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
2048
- const o = K(this.a * 255).toString(16);
2050
+ const o = z(this.a * 255).toString(16);
2049
2051
  t += o.length === 2 ? o : "0" + o;
2050
2052
  }
2051
2053
  return t;
@@ -2061,7 +2063,7 @@ class Le {
2061
2063
  }
2062
2064
  /** CSS support color pattern */
2063
2065
  toHslString() {
2064
- const t = this.getHue(), r = K(this.getSaturation() * 100), n = K(this.getLightness() * 100);
2066
+ const t = this.getHue(), r = z(this.getSaturation() * 100), n = z(this.getLightness() * 100);
2065
2067
  return this.a !== 1 ? `hsla(${t},${r}%,${n}%,${this.a})` : `hsl(${t},${r}%,${n}%)`;
2066
2068
  }
2067
2069
  /** Same as toHsb */
@@ -2091,7 +2093,7 @@ class Le {
2091
2093
  /** Return a new FastColor object with one channel changed */
2092
2094
  _sc(t, r, n) {
2093
2095
  const i = this.clone();
2094
- return i[t] = et(r, n), i;
2096
+ return i[t] = tt(r, n), i;
2095
2097
  }
2096
2098
  _c(t) {
2097
2099
  return new this.constructor(t);
@@ -2116,14 +2118,14 @@ class Le {
2116
2118
  a: i
2117
2119
  }) {
2118
2120
  if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof i == "number" ? i : 1, r <= 0) {
2119
- const S = K(n * 255);
2121
+ const S = z(n * 255);
2120
2122
  this.r = S, this.g = S, this.b = S;
2121
2123
  }
2122
2124
  let o = 0, l = 0, c = 0;
2123
- const h = t / 60, _ = (1 - Math.abs(2 * n - 1)) * r, b = _ * (1 - Math.abs(h % 2 - 1));
2124
- h >= 0 && h < 1 ? (o = _, l = b) : h >= 1 && h < 2 ? (o = b, l = _) : h >= 2 && h < 3 ? (l = _, c = b) : h >= 3 && h < 4 ? (l = b, c = _) : h >= 4 && h < 5 ? (o = b, c = _) : h >= 5 && h < 6 && (o = _, c = b);
2125
+ const h = t / 60, _ = (1 - Math.abs(2 * n - 1)) * r, m = _ * (1 - Math.abs(h % 2 - 1));
2126
+ h >= 0 && h < 1 ? (o = _, l = m) : h >= 1 && h < 2 ? (o = m, l = _) : h >= 2 && h < 3 ? (l = _, c = m) : h >= 3 && h < 4 ? (l = m, c = _) : h >= 4 && h < 5 ? (o = m, c = _) : h >= 5 && h < 6 && (o = _, c = m);
2125
2127
  const C = n - _ / 2;
2126
- this.r = K((o + C) * 255), this.g = K((l + C) * 255), this.b = K((c + C) * 255);
2128
+ this.r = z((o + C) * 255), this.g = z((l + C) * 255), this.b = z((c + C) * 255);
2127
2129
  }
2128
2130
  fromHsv({
2129
2131
  h: t,
@@ -2132,34 +2134,34 @@ class Le {
2132
2134
  a: i
2133
2135
  }) {
2134
2136
  this._h = t % 360, this._s = r, this._v = n, this.a = typeof i == "number" ? i : 1;
2135
- const o = K(n * 255);
2137
+ const o = z(n * 255);
2136
2138
  if (this.r = o, this.g = o, this.b = o, r <= 0)
2137
2139
  return;
2138
- const l = t / 60, c = Math.floor(l), h = l - c, _ = K(n * (1 - r) * 255), b = K(n * (1 - r * h) * 255), C = K(n * (1 - r * (1 - h)) * 255);
2140
+ const l = t / 60, c = Math.floor(l), h = l - c, _ = z(n * (1 - r) * 255), m = z(n * (1 - r * h) * 255), C = z(n * (1 - r * (1 - h)) * 255);
2139
2141
  switch (c) {
2140
2142
  case 0:
2141
2143
  this.g = C, this.b = _;
2142
2144
  break;
2143
2145
  case 1:
2144
- this.r = b, this.b = _;
2146
+ this.r = m, this.b = _;
2145
2147
  break;
2146
2148
  case 2:
2147
2149
  this.r = _, this.b = C;
2148
2150
  break;
2149
2151
  case 3:
2150
- this.r = _, this.g = b;
2152
+ this.r = _, this.g = m;
2151
2153
  break;
2152
2154
  case 4:
2153
2155
  this.r = C, this.g = _;
2154
2156
  break;
2155
2157
  case 5:
2156
2158
  default:
2157
- this.g = _, this.b = b;
2159
+ this.g = _, this.b = m;
2158
2160
  break;
2159
2161
  }
2160
2162
  }
2161
2163
  fromHsvString(t) {
2162
- const r = Pt(t, Fr);
2164
+ const r = Pt(t, kr);
2163
2165
  this.fromHsv({
2164
2166
  h: r[0],
2165
2167
  s: r[1],
@@ -2168,7 +2170,7 @@ class Le {
2168
2170
  });
2169
2171
  }
2170
2172
  fromHslString(t) {
2171
- const r = Pt(t, Fr);
2173
+ const r = Pt(t, kr);
2172
2174
  this.fromHsl({
2173
2175
  h: r[0],
2174
2176
  s: r[1],
@@ -2179,12 +2181,12 @@ class Le {
2179
2181
  fromRgbString(t) {
2180
2182
  const r = Pt(t, (n, i) => (
2181
2183
  // Convert percentage to number. e.g. 50% -> 128
2182
- i.includes("%") ? K(n / 100 * 255) : n
2184
+ i.includes("%") ? z(n / 100 * 255) : n
2183
2185
  ));
2184
2186
  this.r = r[0], this.g = r[1], this.b = r[2], this.a = r[3];
2185
2187
  }
2186
2188
  }
2187
- var dt = 2, kr = 0.16, di = 0.05, hi = 0.05, gi = 0.15, nn = 5, sn = 4, yi = [{
2189
+ var dt = 2, Vr = 0.16, hi = 0.05, gi = 0.05, yi = 0.15, sn = 5, an = 4, vi = [{
2188
2190
  index: 7,
2189
2191
  amount: 15
2190
2192
  }, {
@@ -2215,46 +2217,46 @@ var dt = 2, kr = 0.16, di = 0.05, hi = 0.05, gi = 0.15, nn = 5, sn = 4, yi = [{
2215
2217
  index: 1,
2216
2218
  amount: 98
2217
2219
  }];
2218
- function Vr(e, t, r) {
2220
+ function Pr(e, t, r) {
2219
2221
  var n;
2220
2222
  return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - dt * t : Math.round(e.h) + dt * t : n = r ? Math.round(e.h) + dt * t : Math.round(e.h) - dt * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
2221
2223
  }
2222
- function Pr(e, t, r) {
2224
+ function Dr(e, t, r) {
2223
2225
  if (e.h === 0 && e.s === 0)
2224
2226
  return e.s;
2225
2227
  var n;
2226
- return r ? n = e.s - kr * t : t === sn ? n = e.s + kr : n = e.s + di * t, n > 1 && (n = 1), r && t === nn && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
2228
+ return r ? n = e.s - Vr * t : t === an ? n = e.s + Vr : n = e.s + hi * t, n > 1 && (n = 1), r && t === sn && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
2227
2229
  }
2228
- function Dr(e, t, r) {
2230
+ function jr(e, t, r) {
2229
2231
  var n;
2230
- return r ? n = e.v + hi * t : n = e.v - gi * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
2231
- }
2232
- function vi(e) {
2233
- for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Le(e), i = n.toHsv(), o = nn; o > 0; o -= 1) {
2234
- var l = new Le({
2235
- h: Vr(i, o, !0),
2236
- s: Pr(i, o, !0),
2237
- v: Dr(i, o, !0)
2232
+ return r ? n = e.v + gi * t : n = e.v - yi * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
2233
+ }
2234
+ function bi(e) {
2235
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Ue(e), i = n.toHsv(), o = sn; o > 0; o -= 1) {
2236
+ var l = new Ue({
2237
+ h: Pr(i, o, !0),
2238
+ s: Dr(i, o, !0),
2239
+ v: jr(i, o, !0)
2238
2240
  });
2239
2241
  r.push(l);
2240
2242
  }
2241
2243
  r.push(n);
2242
- for (var c = 1; c <= sn; c += 1) {
2243
- var h = new Le({
2244
- h: Vr(i, c),
2245
- s: Pr(i, c),
2246
- v: Dr(i, c)
2244
+ for (var c = 1; c <= an; c += 1) {
2245
+ var h = new Ue({
2246
+ h: Pr(i, c),
2247
+ s: Dr(i, c),
2248
+ v: jr(i, c)
2247
2249
  });
2248
2250
  r.push(h);
2249
2251
  }
2250
- return t.theme === "dark" ? yi.map(function(_) {
2251
- var b = _.index, C = _.amount;
2252
- return new Le(t.backgroundColor || "#141414").mix(r[b], C).toHexString();
2252
+ return t.theme === "dark" ? vi.map(function(_) {
2253
+ var m = _.index, C = _.amount;
2254
+ return new Ue(t.backgroundColor || "#141414").mix(r[m], C).toHexString();
2253
2255
  }) : r.map(function(_) {
2254
2256
  return _.toHexString();
2255
2257
  });
2256
2258
  }
2257
- var Ki = {
2259
+ var Ji = {
2258
2260
  red: "#F5222D",
2259
2261
  volcano: "#FA541C",
2260
2262
  orange: "#FA8C16",
@@ -2294,7 +2296,7 @@ var Yt = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c4
2294
2296
  Yt.primary = Yt[5];
2295
2297
  var zt = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
2296
2298
  zt.primary = zt[5];
2297
- var Ji = {
2299
+ var Gi = {
2298
2300
  red: Mt,
2299
2301
  volcano: Nt,
2300
2302
  orange: It,
@@ -2309,7 +2311,7 @@ var Ji = {
2309
2311
  magenta: Yt,
2310
2312
  grey: zt
2311
2313
  };
2312
- function jr(e, t) {
2314
+ function Mr(e, t) {
2313
2315
  var r = Object.keys(e);
2314
2316
  if (Object.getOwnPropertySymbols) {
2315
2317
  var n = Object.getOwnPropertySymbols(e);
@@ -2322,18 +2324,18 @@ function jr(e, t) {
2322
2324
  function ye(e) {
2323
2325
  for (var t = 1; t < arguments.length; t++) {
2324
2326
  var r = arguments[t] != null ? arguments[t] : {};
2325
- t % 2 ? jr(Object(r), !0).forEach(function(n) {
2327
+ t % 2 ? Mr(Object(r), !0).forEach(function(n) {
2326
2328
  re(e, n, r[n]);
2327
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : jr(Object(r)).forEach(function(n) {
2329
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Mr(Object(r)).forEach(function(n) {
2328
2330
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
2329
2331
  });
2330
2332
  }
2331
2333
  return e;
2332
2334
  }
2333
- function bi() {
2335
+ function mi() {
2334
2336
  return !!(typeof window < "u" && window.document && window.document.createElement);
2335
2337
  }
2336
- function mi(e, t) {
2338
+ function pi(e, t) {
2337
2339
  if (!e)
2338
2340
  return !1;
2339
2341
  if (e.contains)
@@ -2345,74 +2347,74 @@ function mi(e, t) {
2345
2347
  }
2346
2348
  return !1;
2347
2349
  }
2348
- var Mr = "data-rc-order", Nr = "data-rc-priority", pi = "rc-util-key", Kt = /* @__PURE__ */ new Map();
2349
- function an() {
2350
+ var Nr = "data-rc-order", Ir = "data-rc-priority", _i = "rc-util-key", Kt = /* @__PURE__ */ new Map();
2351
+ function on() {
2350
2352
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
2351
- return t ? t.startsWith("data-") ? t : "data-".concat(t) : pi;
2353
+ return t ? t.startsWith("data-") ? t : "data-".concat(t) : _i;
2352
2354
  }
2353
- function xt(e) {
2355
+ function wt(e) {
2354
2356
  if (e.attachTo)
2355
2357
  return e.attachTo;
2356
2358
  var t = document.querySelector("head");
2357
2359
  return t || document.body;
2358
2360
  }
2359
- function _i(e) {
2361
+ function wi(e) {
2360
2362
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2361
2363
  }
2362
- function nr(e) {
2364
+ function ir(e) {
2363
2365
  return Array.from((Kt.get(e) || e).children).filter(function(t) {
2364
2366
  return t.tagName === "STYLE";
2365
2367
  });
2366
2368
  }
2367
- function on(e) {
2369
+ function un(e) {
2368
2370
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2369
- if (!bi())
2371
+ if (!mi())
2370
2372
  return null;
2371
- var r = t.csp, n = t.prepend, i = t.priority, o = i === void 0 ? 0 : i, l = _i(n), c = l === "prependQueue", h = document.createElement("style");
2372
- h.setAttribute(Mr, l), c && o && h.setAttribute(Nr, "".concat(o)), r != null && r.nonce && (h.nonce = r == null ? void 0 : r.nonce), h.innerHTML = e;
2373
- var _ = xt(t), b = _.firstChild;
2373
+ var r = t.csp, n = t.prepend, i = t.priority, o = i === void 0 ? 0 : i, l = wi(n), c = l === "prependQueue", h = document.createElement("style");
2374
+ h.setAttribute(Nr, l), c && o && h.setAttribute(Ir, "".concat(o)), r != null && r.nonce && (h.nonce = r == null ? void 0 : r.nonce), h.innerHTML = e;
2375
+ var _ = wt(t), m = _.firstChild;
2374
2376
  if (n) {
2375
2377
  if (c) {
2376
- var C = (t.styles || nr(_)).filter(function(S) {
2377
- if (!["prepend", "prependQueue"].includes(S.getAttribute(Mr)))
2378
+ var C = (t.styles || ir(_)).filter(function(S) {
2379
+ if (!["prepend", "prependQueue"].includes(S.getAttribute(Nr)))
2378
2380
  return !1;
2379
- var X = Number(S.getAttribute(Nr) || 0);
2380
- return o >= X;
2381
+ var G = Number(S.getAttribute(Ir) || 0);
2382
+ return o >= G;
2381
2383
  });
2382
2384
  if (C.length)
2383
2385
  return _.insertBefore(h, C[C.length - 1].nextSibling), h;
2384
2386
  }
2385
- _.insertBefore(h, b);
2387
+ _.insertBefore(h, m);
2386
2388
  } else
2387
2389
  _.appendChild(h);
2388
2390
  return h;
2389
2391
  }
2390
- function un(e) {
2391
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = xt(t);
2392
- return (t.styles || nr(r)).find(function(n) {
2393
- return n.getAttribute(an(t)) === e;
2392
+ function ln(e) {
2393
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = wt(t);
2394
+ return (t.styles || ir(r)).find(function(n) {
2395
+ return n.getAttribute(on(t)) === e;
2394
2396
  });
2395
2397
  }
2396
- function Gi(e) {
2397
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = un(e, t);
2398
+ function Xi(e) {
2399
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = ln(e, t);
2398
2400
  if (r) {
2399
- var n = xt(t);
2401
+ var n = wt(t);
2400
2402
  n.removeChild(r);
2401
2403
  }
2402
2404
  }
2403
2405
  function xi(e, t) {
2404
2406
  var r = Kt.get(e);
2405
- if (!r || !mi(document, r)) {
2406
- var n = on("", t), i = n.parentNode;
2407
+ if (!r || !pi(document, r)) {
2408
+ var n = un("", t), i = n.parentNode;
2407
2409
  Kt.set(e, i), e.removeChild(n);
2408
2410
  }
2409
2411
  }
2410
- function wi(e, t) {
2411
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = xt(r), i = nr(n), o = ye(ye({}, r), {}, {
2412
+ function Ci(e, t) {
2413
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = wt(r), i = ir(n), o = ye(ye({}, r), {}, {
2412
2414
  styles: i
2413
2415
  });
2414
2416
  xi(n, o);
2415
- var l = un(t, o);
2417
+ var l = ln(t, o);
2416
2418
  if (l) {
2417
2419
  var c, h;
2418
2420
  if ((c = o.csp) !== null && c !== void 0 && c.nonce && l.nonce !== ((h = o.csp) === null || h === void 0 ? void 0 : h.nonce)) {
@@ -2421,65 +2423,65 @@ function wi(e, t) {
2421
2423
  }
2422
2424
  return l.innerHTML !== e && (l.innerHTML = e), l;
2423
2425
  }
2424
- var b = on(e, o);
2425
- return b.setAttribute(an(o), t), b;
2426
+ var m = un(e, o);
2427
+ return m.setAttribute(on(o), t), m;
2426
2428
  }
2427
- function ln(e) {
2429
+ function fn(e) {
2428
2430
  var t;
2429
2431
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
2430
2432
  }
2431
- function Ci(e) {
2432
- return ln(e) instanceof ShadowRoot;
2433
- }
2434
2433
  function Si(e) {
2435
- return Ci(e) ? ln(e) : null;
2434
+ return fn(e) instanceof ShadowRoot;
2436
2435
  }
2437
- var Jt = {}, ir = [], Ei = function(t) {
2438
- ir.push(t);
2436
+ function Ei(e) {
2437
+ return Si(e) ? fn(e) : null;
2438
+ }
2439
+ var Jt = {}, sr = [], Ri = function(t) {
2440
+ sr.push(t);
2439
2441
  };
2440
- function Ri(e, t) {
2442
+ function Ti(e, t) {
2441
2443
  if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2442
- var r = ir.reduce(function(n, i) {
2444
+ var r = sr.reduce(function(n, i) {
2443
2445
  return i(n ?? "", "warning");
2444
2446
  }, t);
2445
2447
  r && console.error("Warning: ".concat(r));
2446
2448
  }
2447
2449
  }
2448
- function Ti(e, t) {
2450
+ function Oi(e, t) {
2449
2451
  if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
2450
- var r = ir.reduce(function(n, i) {
2452
+ var r = sr.reduce(function(n, i) {
2451
2453
  return i(n ?? "", "note");
2452
2454
  }, t);
2453
2455
  r && console.warn("Note: ".concat(r));
2454
2456
  }
2455
2457
  }
2456
- function Oi() {
2458
+ function Ai() {
2457
2459
  Jt = {};
2458
2460
  }
2459
- function fn(e, t, r) {
2461
+ function cn(e, t, r) {
2460
2462
  !t && !Jt[r] && (e(!1, r), Jt[r] = !0);
2461
2463
  }
2462
- function wt(e, t) {
2463
- fn(Ri, e, t);
2464
+ function xt(e, t) {
2465
+ cn(Ti, e, t);
2464
2466
  }
2465
- function Ai(e, t) {
2466
- fn(Ti, e, t);
2467
+ function Fi(e, t) {
2468
+ cn(Oi, e, t);
2467
2469
  }
2468
- wt.preMessage = Ei;
2469
- wt.resetWarned = Oi;
2470
- wt.noteOnce = Ai;
2471
- function Fi(e) {
2470
+ xt.preMessage = Ri;
2471
+ xt.resetWarned = Ai;
2472
+ xt.noteOnce = Fi;
2473
+ function ki(e) {
2472
2474
  return e.replace(/-(.)/g, function(t, r) {
2473
2475
  return r.toUpperCase();
2474
2476
  });
2475
2477
  }
2476
- function ki(e, t) {
2477
- wt(e, "[@ant-design/icons] ".concat(t));
2478
+ function Vi(e, t) {
2479
+ xt(e, "[@ant-design/icons] ".concat(t));
2478
2480
  }
2479
- function Ir(e) {
2480
- return xe(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (xe(e.icon) === "object" || typeof e.icon == "function");
2481
+ function Lr(e) {
2482
+ return we(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (we(e.icon) === "object" || typeof e.icon == "function");
2481
2483
  }
2482
- function Lr() {
2484
+ function Ur() {
2483
2485
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2484
2486
  return Object.keys(e).reduce(function(t, r) {
2485
2487
  var n = e[r];
@@ -2488,29 +2490,29 @@ function Lr() {
2488
2490
  t.className = n, delete t.class;
2489
2491
  break;
2490
2492
  default:
2491
- delete t[r], t[Fi(r)] = n;
2493
+ delete t[r], t[ki(r)] = n;
2492
2494
  }
2493
2495
  return t;
2494
2496
  }, {});
2495
2497
  }
2496
2498
  function Gt(e, t, r) {
2497
- return r ? /* @__PURE__ */ T.createElement(e.tag, ye(ye({
2499
+ return r ? /* @__PURE__ */ k.createElement(e.tag, ye(ye({
2498
2500
  key: t
2499
- }, Lr(e.attrs)), r), (e.children || []).map(function(n, i) {
2501
+ }, Ur(e.attrs)), r), (e.children || []).map(function(n, i) {
2500
2502
  return Gt(n, "".concat(t, "-").concat(e.tag, "-").concat(i));
2501
- })) : /* @__PURE__ */ T.createElement(e.tag, ye({
2503
+ })) : /* @__PURE__ */ k.createElement(e.tag, ye({
2502
2504
  key: t
2503
- }, Lr(e.attrs)), (e.children || []).map(function(n, i) {
2505
+ }, Ur(e.attrs)), (e.children || []).map(function(n, i) {
2504
2506
  return Gt(n, "".concat(t, "-").concat(e.tag, "-").concat(i));
2505
2507
  }));
2506
2508
  }
2507
- function cn(e) {
2508
- return vi(e)[0];
2509
- }
2510
2509
  function dn(e) {
2510
+ return bi(e)[0];
2511
+ }
2512
+ function hn(e) {
2511
2513
  return e ? Array.isArray(e) ? e : [e] : [];
2512
2514
  }
2513
- var Vi = `
2515
+ var Pi = `
2514
2516
  .anticon {
2515
2517
  display: inline-flex;
2516
2518
  align-items: center;
@@ -2565,40 +2567,40 @@ var Vi = `
2565
2567
  transform: rotate(360deg);
2566
2568
  }
2567
2569
  }
2568
- `, Pi = function(t) {
2569
- var r = Rn(Zr), n = r.csp, i = r.prefixCls, o = r.layer, l = Vi;
2570
+ `, Di = function(t) {
2571
+ var r = Tn(en), n = r.csp, i = r.prefixCls, o = r.layer, l = Pi;
2570
2572
  i && (l = l.replace(/anticon/g, i)), o && (l = "@layer ".concat(o, ` {
2571
2573
  `).concat(l, `
2572
- }`)), Tn(function() {
2573
- var c = t.current, h = Si(c);
2574
- wi(l, "@ant-design-icons", {
2574
+ }`)), On(function() {
2575
+ var c = t.current, h = Ei(c);
2576
+ Ci(l, "@ant-design-icons", {
2575
2577
  prepend: !o,
2576
2578
  csp: n,
2577
2579
  attachTo: h
2578
2580
  });
2579
2581
  }, []);
2580
- }, Di = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], it = {
2582
+ }, ji = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], it = {
2581
2583
  primaryColor: "#333",
2582
2584
  secondaryColor: "#E6E6E6",
2583
2585
  calculated: !1
2584
2586
  };
2585
- function ji(e) {
2587
+ function Mi(e) {
2586
2588
  var t = e.primaryColor, r = e.secondaryColor;
2587
- it.primaryColor = t, it.secondaryColor = r || cn(t), it.calculated = !!r;
2589
+ it.primaryColor = t, it.secondaryColor = r || dn(t), it.calculated = !!r;
2588
2590
  }
2589
- function Mi() {
2591
+ function Ni() {
2590
2592
  return ye({}, it);
2591
2593
  }
2592
- var Ue = function(t) {
2593
- var r = t.icon, n = t.className, i = t.onClick, o = t.style, l = t.primaryColor, c = t.secondaryColor, h = rn(t, Di), _ = tt.useRef(), b = it;
2594
- if (l && (b = {
2594
+ var Be = function(t) {
2595
+ var r = t.icon, n = t.className, i = t.onClick, o = t.style, l = t.primaryColor, c = t.secondaryColor, h = nn(t, ji), _ = Oe.useRef(), m = it;
2596
+ if (l && (m = {
2595
2597
  primaryColor: l,
2596
- secondaryColor: c || cn(l)
2597
- }), Pi(_), ki(Ir(r), "icon should be icon definiton, but got ".concat(r)), !Ir(r))
2598
+ secondaryColor: c || dn(l)
2599
+ }), Di(_), Vi(Lr(r), "icon should be icon definiton, but got ".concat(r)), !Lr(r))
2598
2600
  return null;
2599
2601
  var C = r;
2600
2602
  return C && typeof C.icon == "function" && (C = ye(ye({}, C), {}, {
2601
- icon: C.icon(b.primaryColor, b.secondaryColor)
2603
+ icon: C.icon(m.primaryColor, m.secondaryColor)
2602
2604
  })), Gt(C.icon, "svg-".concat(C.name), ye(ye({
2603
2605
  className: n,
2604
2606
  onClick: i,
@@ -2612,62 +2614,62 @@ var Ue = function(t) {
2612
2614
  ref: _
2613
2615
  }));
2614
2616
  };
2615
- Ue.displayName = "IconReact";
2616
- Ue.getTwoToneColors = Mi;
2617
- Ue.setTwoToneColors = ji;
2618
- function hn(e) {
2619
- var t = dn(e), r = en(t, 2), n = r[0], i = r[1];
2620
- return Ue.setTwoToneColors({
2617
+ Be.displayName = "IconReact";
2618
+ Be.getTwoToneColors = Ni;
2619
+ Be.setTwoToneColors = Mi;
2620
+ function gn(e) {
2621
+ var t = hn(e), r = tn(t, 2), n = r[0], i = r[1];
2622
+ return Be.setTwoToneColors({
2621
2623
  primaryColor: n,
2622
2624
  secondaryColor: i
2623
2625
  });
2624
2626
  }
2625
- function Ni() {
2626
- var e = Ue.getTwoToneColors();
2627
+ function Ii() {
2628
+ var e = Be.getTwoToneColors();
2627
2629
  return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
2628
2630
  }
2629
- var Ii = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2630
- hn(mt.primary);
2631
- var sr = /* @__PURE__ */ tt.forwardRef(function(e, t) {
2632
- var r = e.className, n = e.icon, i = e.spin, o = e.rotate, l = e.tabIndex, c = e.onClick, h = e.twoToneColor, _ = rn(e, Ii), b = tt.useContext(Zr), C = b.prefixCls, S = C === void 0 ? "anticon" : C, X = b.rootClassName, Q = ci(X, S, re(re({}, "".concat(S, "-").concat(n.name), !!n.name), "".concat(S, "-spin"), !!i || n.name === "loading"), r), N = l;
2631
+ var Li = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2632
+ gn(mt.primary);
2633
+ var ar = /* @__PURE__ */ Oe.forwardRef(function(e, t) {
2634
+ var r = e.className, n = e.icon, i = e.spin, o = e.rotate, l = e.tabIndex, c = e.onClick, h = e.twoToneColor, _ = nn(e, Li), m = Oe.useContext(en), C = m.prefixCls, S = C === void 0 ? "anticon" : C, G = m.rootClassName, X = di(G, S, re(re({}, "".concat(S, "-").concat(n.name), !!n.name), "".concat(S, "-spin"), !!i || n.name === "loading"), r), N = l;
2633
2635
  N === void 0 && c && (N = -1);
2634
- var q = o ? {
2636
+ var Q = o ? {
2635
2637
  msTransform: "rotate(".concat(o, "deg)"),
2636
2638
  transform: "rotate(".concat(o, "deg)")
2637
- } : void 0, M = dn(h), w = en(M, 2), Z = w[0], J = w[1];
2638
- return /* @__PURE__ */ tt.createElement("span", jt({
2639
+ } : void 0, M = hn(h), x = tn(M, 2), Z = x[0], K = x[1];
2640
+ return /* @__PURE__ */ Oe.createElement("span", jt({
2639
2641
  role: "img",
2640
2642
  "aria-label": n.name
2641
2643
  }, _, {
2642
2644
  ref: t,
2643
2645
  tabIndex: N,
2644
2646
  onClick: c,
2645
- className: Q
2646
- }), /* @__PURE__ */ tt.createElement(Ue, {
2647
+ className: X
2648
+ }), /* @__PURE__ */ Oe.createElement(Be, {
2647
2649
  icon: n,
2648
2650
  primaryColor: Z,
2649
- secondaryColor: J,
2650
- style: q
2651
+ secondaryColor: K,
2652
+ style: Q
2651
2653
  }));
2652
2654
  });
2653
- sr.displayName = "AntdIcon";
2654
- sr.getTwoToneColor = Ni;
2655
- sr.setTwoToneColor = hn;
2656
- function Xi(e, t) {
2655
+ ar.displayName = "AntdIcon";
2656
+ ar.getTwoToneColor = Ii;
2657
+ ar.setTwoToneColor = gn;
2658
+ function Qi(e, t) {
2657
2659
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2658
2660
  }
2659
- function Ur(e, t) {
2661
+ function Br(e, t) {
2660
2662
  for (var r = 0; r < t.length; r++) {
2661
2663
  var n = t[r];
2662
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, tn(n.key), n);
2664
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, rn(n.key), n);
2663
2665
  }
2664
2666
  }
2665
- function Qi(e, t, r) {
2666
- return t && Ur(e.prototype, t), r && Ur(e, r), Object.defineProperty(e, "prototype", {
2667
+ function Zi(e, t, r) {
2668
+ return t && Br(e.prototype, t), r && Br(e, r), Object.defineProperty(e, "prototype", {
2667
2669
  writable: !1
2668
2670
  }), e;
2669
2671
  }
2670
- function Li(e) {
2672
+ function Ui(e) {
2671
2673
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2672
2674
  return e;
2673
2675
  }
@@ -2676,7 +2678,7 @@ function Xt(e, t) {
2676
2678
  return r.__proto__ = n, r;
2677
2679
  }, Xt(e, t);
2678
2680
  }
2679
- function Zi(e, t) {
2681
+ function es(e, t) {
2680
2682
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
2681
2683
  e.prototype = Object.create(t && t.prototype, {
2682
2684
  constructor: {
@@ -2693,67 +2695,67 @@ function pt(e) {
2693
2695
  return t.__proto__ || Object.getPrototypeOf(t);
2694
2696
  }, pt(e);
2695
2697
  }
2696
- function gn() {
2698
+ function yn() {
2697
2699
  try {
2698
2700
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2699
2701
  }));
2700
2702
  } catch {
2701
2703
  }
2702
- return (gn = function() {
2704
+ return (yn = function() {
2703
2705
  return !!e;
2704
2706
  })();
2705
2707
  }
2706
- function Ui(e, t) {
2707
- if (t && (xe(t) == "object" || typeof t == "function")) return t;
2708
+ function Bi(e, t) {
2709
+ if (t && (we(t) == "object" || typeof t == "function")) return t;
2708
2710
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2709
- return Li(e);
2711
+ return Ui(e);
2710
2712
  }
2711
- function es(e) {
2712
- var t = gn();
2713
+ function ts(e) {
2714
+ var t = yn();
2713
2715
  return function() {
2714
2716
  var r, n = pt(e);
2715
2717
  if (t) {
2716
2718
  var i = pt(this).constructor;
2717
2719
  r = Reflect.construct(n, arguments, i);
2718
2720
  } else r = n.apply(this, arguments);
2719
- return Ui(this, r);
2721
+ return Bi(this, r);
2720
2722
  };
2721
2723
  }
2722
2724
  export {
2723
- Zr as A,
2724
- $i as B,
2725
- An as C,
2726
- Yi as D,
2727
- Wi as E,
2728
- Le as F,
2729
- sr as I,
2730
- qi as L,
2731
- Mn as T,
2725
+ en as A,
2726
+ Wi as B,
2727
+ Fn as C,
2728
+ zi as D,
2729
+ qi as E,
2730
+ Ue as F,
2731
+ ar as I,
2732
+ Yi as L,
2733
+ Nn as T,
2732
2734
  jt as _,
2733
- xe as a,
2734
- Or as b,
2735
- ci as c,
2736
- si as d,
2737
- Qi as e,
2738
- Xi as f,
2735
+ we as a,
2736
+ Ar as b,
2737
+ di as c,
2738
+ ai as d,
2739
+ Zi as e,
2740
+ Qi as f,
2739
2741
  re as g,
2740
- en as h,
2741
- Ri as i,
2742
- Ae as j,
2743
- bi as k,
2742
+ tn as h,
2743
+ Ti as i,
2744
+ Fe as j,
2745
+ mi as k,
2744
2746
  ye as l,
2745
- wi as m,
2746
- ni as n,
2747
- ai as o,
2748
- Oi as p,
2749
- vi as q,
2750
- Gi as r,
2751
- Ki as s,
2752
- Ji as t,
2753
- zi as u,
2754
- Zi as v,
2755
- wt as w,
2756
- es as x,
2757
- Li as y,
2758
- rn as z
2747
+ Ci as m,
2748
+ ii as n,
2749
+ oi as o,
2750
+ Ai as p,
2751
+ bi as q,
2752
+ Xi as r,
2753
+ Ji as s,
2754
+ Gi as t,
2755
+ Ki as u,
2756
+ es as v,
2757
+ xt as w,
2758
+ ts as x,
2759
+ Ui as y,
2760
+ nn as z
2759
2761
  };