@arkyn/components 1.3.0 → 1.3.2

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.
Files changed (63) hide show
  1. package/dist/bundle.js +1703 -1074
  2. package/dist/bundle.umd.cjs +17 -11
  3. package/dist/components/Checkbox/index.d.ts.map +1 -1
  4. package/dist/components/Checkbox/index.js +1 -1
  5. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +0 -1
  6. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -1
  7. package/dist/components/Input/CurrencyInput/getConfig.d.ts +0 -1
  8. package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -1
  9. package/dist/components/Input/MaskInput/getConfig.d.ts +0 -1
  10. package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -1
  11. package/dist/components/Input/SimpleInput/getConfig.d.ts +0 -1
  12. package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -1
  13. package/dist/components/Select/getConfig.d.ts +0 -1
  14. package/dist/components/Select/getConfig.d.ts.map +1 -1
  15. package/dist/components/Toast/index.d.ts +9 -0
  16. package/dist/components/Toast/index.d.ts.map +1 -0
  17. package/dist/components/Toast/index.js +6 -0
  18. package/dist/config/buildBadgeConfig.d.ts +0 -1
  19. package/dist/config/buildBadgeConfig.d.ts.map +1 -1
  20. package/dist/config/buildBreadcrumLinkConfig.d.ts +0 -1
  21. package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -1
  22. package/dist/config/buildBreadcrumbConfig.d.ts +0 -1
  23. package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -1
  24. package/dist/config/buildButtonConfig.d.ts +0 -1
  25. package/dist/config/buildButtonConfig.d.ts.map +1 -1
  26. package/dist/config/buildFormLabelConfig.d.ts +0 -1
  27. package/dist/config/buildFormLabelConfig.d.ts.map +1 -1
  28. package/dist/context/ModalContext.d.ts +5 -0
  29. package/dist/context/ModalContext.d.ts.map +1 -0
  30. package/dist/context/ModalContext.js +3 -0
  31. package/dist/context/ToastContext.d.ts +5 -0
  32. package/dist/context/ToastContext.d.ts.map +1 -0
  33. package/dist/context/ToastContext.js +3 -0
  34. package/dist/hooks/useAutomation.d.ts +3 -0
  35. package/dist/hooks/useAutomation.d.ts.map +1 -0
  36. package/dist/hooks/useAutomation.js +13 -0
  37. package/dist/hooks/useModal.d.ts +13 -0
  38. package/dist/hooks/useModal.d.ts.map +1 -0
  39. package/dist/hooks/useModal.js +20 -0
  40. package/dist/hooks/useToast.d.ts +3 -0
  41. package/dist/hooks/useToast.d.ts.map +1 -0
  42. package/dist/hooks/useToast.js +10 -0
  43. package/dist/index.d.ts +5 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +6 -0
  46. package/dist/provider/ModalProvider.d.ts +4 -0
  47. package/dist/provider/ModalProvider.d.ts.map +1 -0
  48. package/dist/provider/ModalProvider.js +21 -0
  49. package/dist/provider/ToastProvider.d.ts +4 -0
  50. package/dist/provider/ToastProvider.d.ts.map +1 -0
  51. package/dist/provider/ToastProvider.js +19 -0
  52. package/package.json +3 -2
  53. package/src/components/Checkbox/index.tsx +1 -2
  54. package/src/components/Toast/index.tsx +19 -0
  55. package/src/components/Toast/styles.css +30 -0
  56. package/src/context/ModalContext.ts +6 -0
  57. package/src/context/ToastContext.ts +6 -0
  58. package/src/hooks/useAutomation.ts +16 -0
  59. package/src/hooks/useModal.ts +45 -0
  60. package/src/hooks/useToast.ts +14 -0
  61. package/src/index.ts +7 -0
  62. package/src/provider/ModalProvider.tsx +35 -0
  63. package/src/provider/ToastProvider.tsx +33 -0
package/dist/bundle.js CHANGED
@@ -1,9 +1,10 @@
1
- import He, { createContext as Ze, useRef as ue, useId as wr, useContext as Qe, useState as Q, forwardRef as Or } from "react";
2
- import { Loader2 as ae, Check as er, ChevronDown as Fr, ChevronRight as Ue, X as Tr } from "lucide-react";
3
- import { useActionData as Lr, useLocation as rr, Link as zr } from "@remix-run/react";
4
- import { InputMask as Dr } from "@react-input/mask";
5
- import { AnimatePresence as Wr, motion as Ke } from "framer-motion";
6
- var Ne = { exports: {} }, me = {};
1
+ import v, { createContext as Ct, useRef as at, useId as wn, useContext as gt, useState as De, forwardRef as En, useEffect as Sn } from "react";
2
+ import { Loader2 as Qe, Check as on, ChevronDown as Tn, ChevronRight as Ht, X as _n } from "lucide-react";
3
+ import { useActionData as sn, useLocation as ln, Link as Nn } from "@remix-run/react";
4
+ import { InputMask as kn } from "@react-input/mask";
5
+ import { AnimatePresence as Cn, motion as Yt } from "framer-motion";
6
+ import Rn from "react-dom";
7
+ var Mt = { exports: {} }, dt = {};
7
8
  /**
8
9
  * @license React
9
10
  * react-jsx-runtime.production.min.js
@@ -13,25 +14,25 @@ var Ne = { exports: {} }, me = {};
13
14
  * This source code is licensed under the MIT license found in the
14
15
  * LICENSE file in the root directory of this source tree.
15
16
  */
16
- var Je;
17
- function Ar() {
18
- if (Je)
19
- return me;
20
- Je = 1;
21
- var r = He, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function f(a, d, h) {
23
- var p, x = {}, _ = null, C = null;
24
- h !== void 0 && (_ = "" + h), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (C = d.ref);
25
- for (p in d)
26
- i.call(d, p) && !u.hasOwnProperty(p) && (x[p] = d[p]);
27
- if (a && a.defaultProps)
28
- for (p in d = a.defaultProps, d)
29
- x[p] === void 0 && (x[p] = d[p]);
30
- return { $$typeof: n, type: a, key: _, ref: C, props: x, _owner: l.current };
17
+ var Vt;
18
+ function In() {
19
+ if (Vt)
20
+ return dt;
21
+ Vt = 1;
22
+ var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function h(u, p, o) {
24
+ var y, N = {}, k = null, b = null;
25
+ o !== void 0 && (k = "" + o), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (b = p.ref);
26
+ for (y in p)
27
+ s.call(p, y) && !c.hasOwnProperty(y) && (N[y] = p[y]);
28
+ if (u && u.defaultProps)
29
+ for (y in p = u.defaultProps, p)
30
+ N[y] === void 0 && (N[y] = p[y]);
31
+ return { $$typeof: t, type: u, key: k, ref: b, props: N, _owner: l.current };
31
32
  }
32
- return me.Fragment = t, me.jsx = f, me.jsxs = f, me;
33
+ return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
33
34
  }
34
- var pe = {};
35
+ var ft = {};
35
36
  /**
36
37
  * @license React
37
38
  * react-jsx-runtime.development.js
@@ -41,91 +42,91 @@ var pe = {};
41
42
  * This source code is licensed under the MIT license found in the
42
43
  * LICENSE file in the root directory of this source tree.
43
44
  */
44
- var qe;
45
- function Br() {
46
- return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
47
- var r = He, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), a = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), E = Symbol.iterator, j = "@@iterator";
48
- function R(e) {
49
- if (e === null || typeof e != "object")
45
+ var Gt;
46
+ function An() {
47
+ return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
49
+ function W(r) {
50
+ if (r === null || typeof r != "object")
50
51
  return null;
51
- var s = E && e[E] || e[j];
52
- return typeof s == "function" ? s : null;
52
+ var d = O && r[O] || r[P];
53
+ return typeof d == "function" ? d : null;
53
54
  }
54
- var g = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function v(e) {
55
+ var T = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function w(r) {
56
57
  {
57
- for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
58
- c[m - 1] = arguments[m];
59
- $("error", e, c);
58
+ for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), S = 1; S < d; S++)
59
+ g[S - 1] = arguments[S];
60
+ C("error", r, g);
60
61
  }
61
62
  }
62
- function $(e, s, c) {
63
+ function C(r, d, g) {
63
64
  {
64
- var m = g.ReactDebugCurrentFrame, k = m.getStackAddendum();
65
- k !== "" && (s += "%s", c = c.concat([k]));
66
- var N = c.map(function(S) {
67
- return String(S);
65
+ var S = T.ReactDebugCurrentFrame, Y = S.getStackAddendum();
66
+ Y !== "" && (d += "%s", g = g.concat([Y]));
67
+ var e = g.map(function(f) {
68
+ return String(f);
68
69
  });
69
- N.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, N);
70
+ e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
70
71
  }
71
72
  }
72
- var P = !1, I = !1, L = !1, w = !1, z = !1, V;
73
- V = Symbol.for("react.module.reference");
74
- function Y(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || z || e === l || e === h || e === p || w || e === C || P || I || L || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === x || e.$$typeof === f || e.$$typeof === a || e.$$typeof === d || // This needs to include all possible module reference object
73
+ var H = !1, z = !1, J = !1, X = !1, Q = !1, re;
74
+ re = Symbol.for("react.module.reference");
75
+ function V(r) {
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || Q || r === l || r === o || r === y || X || r === b || H || z || J || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === N || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
76
77
  // types supported by any Flight configuration anywhere since
77
78
  // we don't know which Flight build this will end up being used
78
79
  // with.
79
- e.$$typeof === V || e.getModuleId !== void 0));
80
+ r.$$typeof === re || r.getModuleId !== void 0));
80
81
  }
81
- function O(e, s, c) {
82
- var m = e.displayName;
83
- if (m)
84
- return m;
85
- var k = s.displayName || s.name || "";
86
- return k !== "" ? c + "(" + k + ")" : c;
82
+ function F(r, d, g) {
83
+ var S = r.displayName;
84
+ if (S)
85
+ return S;
86
+ var Y = d.displayName || d.name || "";
87
+ return Y !== "" ? g + "(" + Y + ")" : g;
87
88
  }
88
- function M(e) {
89
- return e.displayName || "Context";
89
+ function te(r) {
90
+ return r.displayName || "Context";
90
91
  }
91
- function y(e) {
92
- if (e == null)
92
+ function _(r) {
93
+ if (r == null)
93
94
  return null;
94
- if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
- return e.displayName || e.name || null;
96
- if (typeof e == "string")
97
- return e;
98
- switch (e) {
99
- case i:
95
+ if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
96
+ return r.displayName || r.name || null;
97
+ if (typeof r == "string")
98
+ return r;
99
+ switch (r) {
100
+ case s:
100
101
  return "Fragment";
101
- case t:
102
+ case a:
102
103
  return "Portal";
103
- case u:
104
+ case c:
104
105
  return "Profiler";
105
106
  case l:
106
107
  return "StrictMode";
107
- case h:
108
+ case o:
108
109
  return "Suspense";
109
- case p:
110
+ case y:
110
111
  return "SuspenseList";
111
112
  }
112
- if (typeof e == "object")
113
- switch (e.$$typeof) {
114
- case a:
115
- var s = e;
116
- return M(s) + ".Consumer";
117
- case f:
118
- var c = e;
119
- return M(c._context) + ".Provider";
120
- case d:
121
- return O(e, e.render, "ForwardRef");
122
- case x:
123
- var m = e.displayName || null;
124
- return m !== null ? m : y(e.type) || "Memo";
125
- case _: {
126
- var k = e, N = k._payload, S = k._init;
113
+ if (typeof r == "object")
114
+ switch (r.$$typeof) {
115
+ case u:
116
+ var d = r;
117
+ return te(d) + ".Consumer";
118
+ case h:
119
+ var g = r;
120
+ return te(g._context) + ".Provider";
121
+ case p:
122
+ return F(r, r.render, "ForwardRef");
123
+ case N:
124
+ var S = r.displayName || null;
125
+ return S !== null ? S : _(r.type) || "Memo";
126
+ case k: {
127
+ var Y = r, e = Y._payload, f = Y._init;
127
128
  try {
128
- return y(S(N));
129
+ return _(f(e));
129
130
  } catch {
130
131
  return null;
131
132
  }
@@ -133,1451 +134,2079 @@ function Br() {
133
134
  }
134
135
  return null;
135
136
  }
136
- var D = Object.assign, F = 0, B, H, re, ne, te, Z, W;
137
- function q() {
137
+ var R = Object.assign, B = 0, K, ue, ee, se, G, D, x;
138
+ function U() {
138
139
  }
139
- q.__reactDisabledLog = !0;
140
- function G() {
140
+ U.__reactDisabledLog = !0;
141
+ function I() {
141
142
  {
142
- if (F === 0) {
143
- B = console.log, H = console.info, re = console.warn, ne = console.error, te = console.group, Z = console.groupCollapsed, W = console.groupEnd;
144
- var e = {
143
+ if (B === 0) {
144
+ K = console.log, ue = console.info, ee = console.warn, se = console.error, G = console.group, D = console.groupCollapsed, x = console.groupEnd;
145
+ var r = {
145
146
  configurable: !0,
146
147
  enumerable: !0,
147
- value: q,
148
+ value: U,
148
149
  writable: !0
149
150
  };
150
151
  Object.defineProperties(console, {
151
- info: e,
152
- log: e,
153
- warn: e,
154
- error: e,
155
- group: e,
156
- groupCollapsed: e,
157
- groupEnd: e
152
+ info: r,
153
+ log: r,
154
+ warn: r,
155
+ error: r,
156
+ group: r,
157
+ groupCollapsed: r,
158
+ groupEnd: r
158
159
  });
159
160
  }
160
- F++;
161
+ B++;
161
162
  }
162
163
  }
163
- function fe() {
164
+ function ce() {
164
165
  {
165
- if (F--, F === 0) {
166
- var e = {
166
+ if (B--, B === 0) {
167
+ var r = {
167
168
  configurable: !0,
168
169
  enumerable: !0,
169
170
  writable: !0
170
171
  };
171
172
  Object.defineProperties(console, {
172
- log: D({}, e, {
173
- value: B
173
+ log: R({}, r, {
174
+ value: K
174
175
  }),
175
- info: D({}, e, {
176
- value: H
176
+ info: R({}, r, {
177
+ value: ue
177
178
  }),
178
- warn: D({}, e, {
179
- value: re
179
+ warn: R({}, r, {
180
+ value: ee
180
181
  }),
181
- error: D({}, e, {
182
- value: ne
182
+ error: R({}, r, {
183
+ value: se
183
184
  }),
184
- group: D({}, e, {
185
- value: te
185
+ group: R({}, r, {
186
+ value: G
186
187
  }),
187
- groupCollapsed: D({}, e, {
188
- value: Z
188
+ groupCollapsed: R({}, r, {
189
+ value: D
189
190
  }),
190
- groupEnd: D({}, e, {
191
- value: W
191
+ groupEnd: R({}, r, {
192
+ value: x
192
193
  })
193
194
  });
194
195
  }
195
- F < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ B < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
197
  }
197
198
  }
198
- var K = g.ReactCurrentDispatcher, ee;
199
- function ve(e, s, c) {
199
+ var M = T.ReactCurrentDispatcher, pe;
200
+ function ve(r, d, g) {
200
201
  {
201
- if (ee === void 0)
202
+ if (pe === void 0)
202
203
  try {
203
204
  throw Error();
204
- } catch (k) {
205
- var m = k.stack.trim().match(/\n( *(at )?)/);
206
- ee = m && m[1] || "";
205
+ } catch (Y) {
206
+ var S = Y.stack.trim().match(/\n( *(at )?)/);
207
+ pe = S && S[1] || "";
207
208
  }
208
209
  return `
209
- ` + ee + e;
210
+ ` + pe + r;
210
211
  }
211
212
  }
212
- var Se = !1, ge;
213
+ var Ie = !1, we;
213
214
  {
214
- var ar = typeof WeakMap == "function" ? WeakMap : Map;
215
- ge = new ar();
215
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
+ we = new Ae();
216
217
  }
217
- function Ie(e, s) {
218
- if (!e || Se)
218
+ function fe(r, d) {
219
+ if (!r || Ie)
219
220
  return "";
220
221
  {
221
- var c = ge.get(e);
222
- if (c !== void 0)
223
- return c;
222
+ var g = we.get(r);
223
+ if (g !== void 0)
224
+ return g;
224
225
  }
225
- var m;
226
- Se = !0;
227
- var k = Error.prepareStackTrace;
226
+ var S;
227
+ Ie = !0;
228
+ var Y = Error.prepareStackTrace;
228
229
  Error.prepareStackTrace = void 0;
229
- var N;
230
- N = K.current, K.current = null, G();
230
+ var e;
231
+ e = M.current, M.current = null, I();
231
232
  try {
232
- if (s) {
233
- var S = function() {
233
+ if (d) {
234
+ var f = function() {
234
235
  throw Error();
235
236
  };
236
- if (Object.defineProperty(S.prototype, "props", {
237
+ if (Object.defineProperty(f.prototype, "props", {
237
238
  set: function() {
238
239
  throw Error();
239
240
  }
240
241
  }), typeof Reflect == "object" && Reflect.construct) {
241
242
  try {
242
- Reflect.construct(S, []);
243
- } catch (J) {
244
- m = J;
243
+ Reflect.construct(f, []);
244
+ } catch (q) {
245
+ S = q;
245
246
  }
246
- Reflect.construct(e, [], S);
247
+ Reflect.construct(r, [], f);
247
248
  } else {
248
249
  try {
249
- S.call();
250
- } catch (J) {
251
- m = J;
250
+ f.call();
251
+ } catch (q) {
252
+ S = q;
252
253
  }
253
- e.call(S.prototype);
254
+ r.call(f.prototype);
254
255
  }
255
256
  } else {
256
257
  try {
257
258
  throw Error();
258
- } catch (J) {
259
- m = J;
259
+ } catch (q) {
260
+ S = q;
260
261
  }
261
- e();
262
+ r();
262
263
  }
263
- } catch (J) {
264
- if (J && m && typeof J.stack == "string") {
265
- for (var b = J.stack.split(`
266
- `), U = m.stack.split(`
267
- `), T = b.length - 1, A = U.length - 1; T >= 1 && A >= 0 && b[T] !== U[A]; )
268
- A--;
269
- for (; T >= 1 && A >= 0; T--, A--)
270
- if (b[T] !== U[A]) {
271
- if (T !== 1 || A !== 1)
264
+ } catch (q) {
265
+ if (q && S && typeof q.stack == "string") {
266
+ for (var i = q.stack.split(`
267
+ `), A = S.stack.split(`
268
+ `), j = i.length - 1, L = A.length - 1; j >= 1 && L >= 0 && i[j] !== A[L]; )
269
+ L--;
270
+ for (; j >= 1 && L >= 0; j--, L--)
271
+ if (i[j] !== A[L]) {
272
+ if (j !== 1 || L !== 1)
272
273
  do
273
- if (T--, A--, A < 0 || b[T] !== U[A]) {
274
- var X = `
275
- ` + b[T].replace(" at new ", " at ");
276
- return e.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", e.displayName)), typeof e == "function" && ge.set(e, X), X;
274
+ if (j--, L--, L < 0 || i[j] !== A[L]) {
275
+ var ie = `
276
+ ` + i[j].replace(" at new ", " at ");
277
+ return r.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ie), ie;
277
278
  }
278
- while (T >= 1 && A >= 0);
279
+ while (j >= 1 && L >= 0);
279
280
  break;
280
281
  }
281
282
  }
282
283
  } finally {
283
- Se = !1, K.current = N, fe(), Error.prepareStackTrace = k;
284
+ Ie = !1, M.current = e, ce(), Error.prepareStackTrace = Y;
284
285
  }
285
- var le = e ? e.displayName || e.name : "", ie = le ? ve(le) : "";
286
- return typeof e == "function" && ge.set(e, ie), ie;
286
+ var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
+ return typeof r == "function" && we.set(r, de), de;
287
288
  }
288
- function cr(e, s, c) {
289
- return Ie(e, !1);
289
+ function Xe(r, d, g) {
290
+ return fe(r, !1);
290
291
  }
291
- function lr(e) {
292
- var s = e.prototype;
293
- return !!(s && s.isReactComponent);
292
+ function qe(r) {
293
+ var d = r.prototype;
294
+ return !!(d && d.isReactComponent);
294
295
  }
295
- function xe(e, s, c) {
296
- if (e == null)
296
+ function ae(r, d, g) {
297
+ if (r == null)
297
298
  return "";
298
- if (typeof e == "function")
299
- return Ie(e, lr(e));
300
- if (typeof e == "string")
301
- return ve(e);
302
- switch (e) {
303
- case h:
299
+ if (typeof r == "function")
300
+ return fe(r, qe(r));
301
+ if (typeof r == "string")
302
+ return ve(r);
303
+ switch (r) {
304
+ case o:
304
305
  return ve("Suspense");
305
- case p:
306
+ case y:
306
307
  return ve("SuspenseList");
307
308
  }
308
- if (typeof e == "object")
309
- switch (e.$$typeof) {
310
- case d:
311
- return cr(e.render);
312
- case x:
313
- return xe(e.type, s, c);
314
- case _: {
315
- var m = e, k = m._payload, N = m._init;
309
+ if (typeof r == "object")
310
+ switch (r.$$typeof) {
311
+ case p:
312
+ return Xe(r.render);
313
+ case N:
314
+ return ae(r.type, d, g);
315
+ case k: {
316
+ var S = r, Y = S._payload, e = S._init;
316
317
  try {
317
- return xe(N(k), s, c);
318
+ return ae(e(Y), d, g);
318
319
  } catch {
319
320
  }
320
321
  }
321
322
  }
322
323
  return "";
323
324
  }
324
- var de = Object.prototype.hasOwnProperty, we = {}, Oe = g.ReactDebugCurrentFrame;
325
- function ye(e) {
326
- if (e) {
327
- var s = e._owner, c = xe(e.type, e._source, s ? s.type : null);
328
- Oe.setExtraStackFrame(c);
325
+ var me = Object.prototype.hasOwnProperty, $e = {}, Je = T.ReactDebugCurrentFrame;
326
+ function Ne(r) {
327
+ if (r) {
328
+ var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
329
+ Je.setExtraStackFrame(g);
329
330
  } else
330
- Oe.setExtraStackFrame(null);
331
+ Je.setExtraStackFrame(null);
331
332
  }
332
- function ur(e, s, c, m, k) {
333
+ function ot(r, d, g, S, Y) {
333
334
  {
334
- var N = Function.call.bind(de);
335
- for (var S in e)
336
- if (N(e, S)) {
337
- var b = void 0;
335
+ var e = Function.call.bind(me);
336
+ for (var f in r)
337
+ if (e(r, f)) {
338
+ var i = void 0;
338
339
  try {
339
- if (typeof e[S] != "function") {
340
- var U = Error((m || "React class") + ": " + c + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
- throw U.name = "Invariant Violation", U;
340
+ if (typeof r[f] != "function") {
341
+ var A = Error((S || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw A.name = "Invariant Violation", A;
342
343
  }
343
- b = e[S](s, S, m, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (T) {
345
- b = T;
344
+ i = r[f](d, f, S, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch (j) {
346
+ i = j;
346
347
  }
347
- b && !(b instanceof Error) && (ye(k), v("%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).", m || "React class", c, S, typeof b), ye(null)), b instanceof Error && !(b.message in we) && (we[b.message] = !0, ye(k), v("Failed %s type: %s", c, b.message), ye(null));
348
+ i && !(i instanceof Error) && (Ne(Y), 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).", S || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(Y), w("Failed %s type: %s", g, i.message), Ne(null));
348
349
  }
349
350
  }
350
351
  }
351
- var fr = Array.isArray;
352
- function _e(e) {
353
- return fr(e);
352
+ var Be = Array.isArray;
353
+ function Se(r) {
354
+ return Be(r);
354
355
  }
355
- function dr(e) {
356
+ function ye(r) {
356
357
  {
357
- var s = typeof Symbol == "function" && Symbol.toStringTag, c = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
- return c;
358
+ var d = typeof Symbol == "function" && Symbol.toStringTag, g = d && r[Symbol.toStringTag] || r.constructor.name || "Object";
359
+ return g;
359
360
  }
360
361
  }
361
- function hr(e) {
362
+ function Le(r) {
362
363
  try {
363
- return Fe(e), !1;
364
+ return ke(r), !1;
364
365
  } catch {
365
366
  return !0;
366
367
  }
367
368
  }
368
- function Fe(e) {
369
- return "" + e;
369
+ function ke(r) {
370
+ return "" + r;
370
371
  }
371
- function Te(e) {
372
- if (hr(e))
373
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dr(e)), Fe(e);
372
+ function Ue(r) {
373
+ if (Le(r))
374
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
374
375
  }
375
- var he = g.ReactCurrentOwner, mr = {
376
+ var Me = T.ReactCurrentOwner, We = {
376
377
  key: !0,
377
378
  ref: !0,
378
379
  __self: !0,
379
380
  __source: !0
380
- }, Le, ze, Ce;
381
+ }, He, Fe, Ce;
381
382
  Ce = {};
382
- function pr(e) {
383
- if (de.call(e, "ref")) {
384
- var s = Object.getOwnPropertyDescriptor(e, "ref").get;
385
- if (s && s.isReactWarning)
383
+ function le(r) {
384
+ if (me.call(r, "ref")) {
385
+ var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
+ if (d && d.isReactWarning)
386
387
  return !1;
387
388
  }
388
- return e.ref !== void 0;
389
+ return r.ref !== void 0;
389
390
  }
390
- function vr(e) {
391
- if (de.call(e, "key")) {
392
- var s = Object.getOwnPropertyDescriptor(e, "key").get;
393
- if (s && s.isReactWarning)
391
+ function ze(r) {
392
+ if (me.call(r, "key")) {
393
+ var d = Object.getOwnPropertyDescriptor(r, "key").get;
394
+ if (d && d.isReactWarning)
394
395
  return !1;
395
396
  }
396
- return e.key !== void 0;
397
+ return r.key !== void 0;
397
398
  }
398
- function gr(e, s) {
399
- if (typeof e.ref == "string" && he.current && s && he.current.stateNode !== s) {
400
- var c = y(he.current.type);
401
- Ce[c] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(he.current.type), e.ref), Ce[c] = !0);
399
+ function Ye(r, d) {
400
+ if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
401
+ var g = _(Me.current.type);
402
+ Ce[g] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(Me.current.type), r.ref), Ce[g] = !0);
402
403
  }
403
404
  }
404
- function xr(e, s) {
405
+ function E(r, d) {
405
406
  {
406
- var c = function() {
407
- Le || (Le = !0, v("%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)", s));
407
+ var g = function() {
408
+ He || (He = !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));
408
409
  };
409
- c.isReactWarning = !0, Object.defineProperty(e, "key", {
410
- get: c,
410
+ g.isReactWarning = !0, Object.defineProperty(r, "key", {
411
+ get: g,
411
412
  configurable: !0
412
413
  });
413
414
  }
414
415
  }
415
- function yr(e, s) {
416
+ function oe(r, d) {
416
417
  {
417
- var c = function() {
418
- ze || (ze = !0, v("%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)", s));
418
+ var g = function() {
419
+ Fe || (Fe = !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));
419
420
  };
420
- c.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
- get: c,
421
+ g.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
+ get: g,
422
423
  configurable: !0
423
424
  });
424
425
  }
425
426
  }
426
- var br = function(e, s, c, m, k, N, S) {
427
- var b = {
427
+ var Z = function(r, d, g, S, Y, e, f) {
428
+ var i = {
428
429
  // This tag allows us to uniquely identify this as a React Element
429
- $$typeof: n,
430
+ $$typeof: t,
430
431
  // Built-in properties that belong on the element
431
- type: e,
432
- key: s,
433
- ref: c,
434
- props: S,
432
+ type: r,
433
+ key: d,
434
+ ref: g,
435
+ props: f,
435
436
  // Record the component responsible for creating this element.
436
- _owner: N
437
+ _owner: e
437
438
  };
438
- return b._store = {}, Object.defineProperty(b._store, "validated", {
439
+ return i._store = {}, Object.defineProperty(i._store, "validated", {
439
440
  configurable: !1,
440
441
  enumerable: !1,
441
442
  writable: !0,
442
443
  value: !1
443
- }), Object.defineProperty(b, "_self", {
444
+ }), Object.defineProperty(i, "_self", {
444
445
  configurable: !1,
445
446
  enumerable: !1,
446
447
  writable: !1,
447
- value: m
448
- }), Object.defineProperty(b, "_source", {
448
+ value: S
449
+ }), Object.defineProperty(i, "_source", {
449
450
  configurable: !1,
450
451
  enumerable: !1,
451
452
  writable: !1,
452
- value: k
453
- }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
453
+ value: Y
454
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
454
455
  };
455
- function Sr(e, s, c, m, k) {
456
+ function Ee(r, d, g, S, Y) {
456
457
  {
457
- var N, S = {}, b = null, U = null;
458
- c !== void 0 && (Te(c), b = "" + c), vr(s) && (Te(s.key), b = "" + s.key), pr(s) && (U = s.ref, gr(s, k));
459
- for (N in s)
460
- de.call(s, N) && !mr.hasOwnProperty(N) && (S[N] = s[N]);
461
- if (e && e.defaultProps) {
462
- var T = e.defaultProps;
463
- for (N in T)
464
- S[N] === void 0 && (S[N] = T[N]);
458
+ var e, f = {}, i = null, A = null;
459
+ g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), le(d) && (A = d.ref, Ye(d, Y));
460
+ for (e in d)
461
+ me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
462
+ if (r && r.defaultProps) {
463
+ var j = r.defaultProps;
464
+ for (e in j)
465
+ f[e] === void 0 && (f[e] = j[e]);
465
466
  }
466
- if (b || U) {
467
- var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- b && xr(S, A), U && yr(S, A);
467
+ if (i || A) {
468
+ var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
+ i && E(f, L), A && oe(f, L);
469
470
  }
470
- return br(e, b, U, k, m, he.current, S);
471
+ return Z(r, i, A, Y, S, Me.current, f);
471
472
  }
472
473
  }
473
- var ke = g.ReactCurrentOwner, De = g.ReactDebugCurrentFrame;
474
- function ce(e) {
475
- if (e) {
476
- var s = e._owner, c = xe(e.type, e._source, s ? s.type : null);
477
- De.setExtraStackFrame(c);
474
+ var he = T.ReactCurrentOwner, ne = T.ReactDebugCurrentFrame;
475
+ function be(r) {
476
+ if (r) {
477
+ var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
478
+ ne.setExtraStackFrame(g);
478
479
  } else
479
- De.setExtraStackFrame(null);
480
+ ne.setExtraStackFrame(null);
480
481
  }
481
- var je;
482
- je = !1;
483
- function Re(e) {
484
- return typeof e == "object" && e !== null && e.$$typeof === n;
482
+ var st;
483
+ st = !1;
484
+ function et(r) {
485
+ return typeof r == "object" && r !== null && r.$$typeof === t;
485
486
  }
486
- function We() {
487
+ function tt() {
487
488
  {
488
- if (ke.current) {
489
- var e = y(ke.current.type);
490
- if (e)
489
+ if (he.current) {
490
+ var r = _(he.current.type);
491
+ if (r)
491
492
  return `
492
493
 
493
- Check the render method of \`` + e + "`.";
494
+ Check the render method of \`` + r + "`.";
494
495
  }
495
496
  return "";
496
497
  }
497
498
  }
498
- function _r(e) {
499
+ function vt(r) {
499
500
  {
500
- if (e !== void 0) {
501
- var s = e.fileName.replace(/^.*[\\\/]/, ""), c = e.lineNumber;
501
+ if (r !== void 0) {
502
+ var d = r.fileName.replace(/^.*[\\\/]/, ""), g = r.lineNumber;
502
503
  return `
503
504
 
504
- Check your code at ` + s + ":" + c + ".";
505
+ Check your code at ` + d + ":" + g + ".";
505
506
  }
506
507
  return "";
507
508
  }
508
509
  }
509
- var Ae = {};
510
- function Cr(e) {
510
+ var it = {};
511
+ function Rt(r) {
511
512
  {
512
- var s = We();
513
- if (!s) {
514
- var c = typeof e == "string" ? e : e.displayName || e.name;
515
- c && (s = `
513
+ var d = tt();
514
+ if (!d) {
515
+ var g = typeof r == "string" ? r : r.displayName || r.name;
516
+ g && (d = `
516
517
 
517
- Check the top-level render call using <` + c + ">.");
518
+ Check the top-level render call using <` + g + ">.");
518
519
  }
519
- return s;
520
+ return d;
520
521
  }
521
522
  }
522
- function Be(e, s) {
523
+ function lt(r, d) {
523
524
  {
524
- if (!e._store || e._store.validated || e.key != null)
525
+ if (!r._store || r._store.validated || r.key != null)
525
526
  return;
526
- e._store.validated = !0;
527
- var c = Cr(s);
528
- if (Ae[c])
527
+ r._store.validated = !0;
528
+ var g = Rt(d);
529
+ if (it[g])
529
530
  return;
530
- Ae[c] = !0;
531
- var m = "";
532
- e && e._owner && e._owner !== ke.current && (m = " It was passed a child from " + y(e._owner.type) + "."), ce(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, m), ce(null);
531
+ it[g] = !0;
532
+ var S = "";
533
+ r && r._owner && r._owner !== he.current && (S = " It was passed a child from " + _(r._owner.type) + "."), be(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, S), be(null);
533
534
  }
534
535
  }
535
- function Ve(e, s) {
536
+ function ct(r, d) {
536
537
  {
537
- if (typeof e != "object")
538
+ if (typeof r != "object")
538
539
  return;
539
- if (_e(e))
540
- for (var c = 0; c < e.length; c++) {
541
- var m = e[c];
542
- Re(m) && Be(m, s);
540
+ if (Se(r))
541
+ for (var g = 0; g < r.length; g++) {
542
+ var S = r[g];
543
+ et(S) && lt(S, d);
543
544
  }
544
- else if (Re(e))
545
- e._store && (e._store.validated = !0);
546
- else if (e) {
547
- var k = R(e);
548
- if (typeof k == "function" && k !== e.entries)
549
- for (var N = k.call(e), S; !(S = N.next()).done; )
550
- Re(S.value) && Be(S.value, s);
545
+ else if (et(r))
546
+ r._store && (r._store.validated = !0);
547
+ else if (r) {
548
+ var Y = W(r);
549
+ if (typeof Y == "function" && Y !== r.entries)
550
+ for (var e = Y.call(r), f; !(f = e.next()).done; )
551
+ et(f.value) && lt(f.value, d);
551
552
  }
552
553
  }
553
554
  }
554
- function kr(e) {
555
+ function It(r) {
555
556
  {
556
- var s = e.type;
557
- if (s == null || typeof s == "string")
557
+ var d = r.type;
558
+ if (d == null || typeof d == "string")
558
559
  return;
559
- var c;
560
- if (typeof s == "function")
561
- c = s.propTypes;
562
- else if (typeof s == "object" && (s.$$typeof === d || // Note: Memo only checks outer props here.
560
+ var g;
561
+ if (typeof d == "function")
562
+ g = d.propTypes;
563
+ else if (typeof d == "object" && (d.$$typeof === p || // Note: Memo only checks outer props here.
563
564
  // Inner props are checked in the reconciler.
564
- s.$$typeof === x))
565
- c = s.propTypes;
565
+ d.$$typeof === N))
566
+ g = d.propTypes;
566
567
  else
567
568
  return;
568
- if (c) {
569
- var m = y(s);
570
- ur(c, e.props, "prop", m, e);
571
- } else if (s.PropTypes !== void 0 && !je) {
572
- je = !0;
573
- var k = y(s);
574
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
569
+ if (g) {
570
+ var S = _(d);
571
+ ot(g, r.props, "prop", S, r);
572
+ } else if (d.PropTypes !== void 0 && !st) {
573
+ st = !0;
574
+ var Y = _(d);
575
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
575
576
  }
576
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
578
  }
578
579
  }
579
- function jr(e) {
580
+ function Ve(r) {
580
581
  {
581
- for (var s = Object.keys(e.props), c = 0; c < s.length; c++) {
582
- var m = s[c];
583
- if (m !== "children" && m !== "key") {
584
- ce(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), ce(null);
582
+ for (var d = Object.keys(r.props), g = 0; g < d.length; g++) {
583
+ var S = d[g];
584
+ if (S !== "children" && S !== "key") {
585
+ be(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), be(null);
585
586
  break;
586
587
  }
587
588
  }
588
- e.ref !== null && (ce(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
589
+ r.ref !== null && (be(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
589
590
  }
590
591
  }
591
- var Ye = {};
592
- function Me(e, s, c, m, k, N) {
592
+ var nt = {};
593
+ function ut(r, d, g, S, Y, e) {
593
594
  {
594
- var S = Y(e);
595
- if (!S) {
596
- var b = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var U = _r(k);
599
- U ? b += U : b += We();
600
- var T;
601
- e === null ? T = "null" : _e(e) ? T = "array" : e !== void 0 && e.$$typeof === n ? (T = "<" + (y(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, b);
595
+ var f = V(r);
596
+ if (!f) {
597
+ var i = "";
598
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var A = vt(Y);
600
+ A ? i += A : i += tt();
601
+ var j;
602
+ r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (_(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, i);
602
603
  }
603
- var A = Sr(e, s, c, k, N);
604
- if (A == null)
605
- return A;
606
- if (S) {
607
- var X = s.children;
608
- if (X !== void 0)
609
- if (m)
610
- if (_e(X)) {
611
- for (var le = 0; le < X.length; le++)
612
- Ve(X[le], e);
613
- Object.freeze && Object.freeze(X);
604
+ var L = Ee(r, d, g, Y, e);
605
+ if (L == null)
606
+ return L;
607
+ if (f) {
608
+ var ie = d.children;
609
+ if (ie !== void 0)
610
+ if (S)
611
+ if (Se(ie)) {
612
+ for (var ge = 0; ge < ie.length; ge++)
613
+ ct(ie[ge], r);
614
+ Object.freeze && Object.freeze(ie);
614
615
  } else
615
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ 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.");
616
617
  else
617
- Ve(X, e);
618
+ ct(ie, r);
618
619
  }
619
- if (de.call(s, "key")) {
620
- var ie = y(e), J = Object.keys(s).filter(function(Ir) {
621
- return Ir !== "key";
622
- }), Ee = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!Ye[ie + Ee]) {
624
- var Pr = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
625
- v(`A props object containing a "key" prop is being spread into JSX:
620
+ if (me.call(d, "key")) {
621
+ var de = _(r), q = Object.keys(d).filter(function(xn) {
622
+ return xn !== "key";
623
+ }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!nt[de + rt]) {
625
+ var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
626
+ w(`A props object containing a "key" prop is being spread into JSX:
626
627
  let props = %s;
627
628
  <%s {...props} />
628
629
  React keys must be passed directly to JSX without using spread:
629
630
  let props = %s;
630
- <%s key={someKey} {...props} />`, Ee, ie, Pr, ie), Ye[ie + Ee] = !0;
631
+ <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
631
632
  }
632
633
  }
633
- return e === i ? jr(A) : kr(A), A;
634
+ return r === s ? Ve(L) : It(L), L;
634
635
  }
635
636
  }
636
- function Rr(e, s, c) {
637
- return Me(e, s, c, !0);
637
+ function yt(r, d, g) {
638
+ return ut(r, d, g, !0);
638
639
  }
639
- function Er(e, s, c) {
640
- return Me(e, s, c, !1);
640
+ function At(r, d, g) {
641
+ return ut(r, d, g, !1);
641
642
  }
642
- var Nr = Er, $r = Rr;
643
- pe.Fragment = i, pe.jsx = Nr, pe.jsxs = $r;
644
- }()), pe;
643
+ var bt = At, Oe = yt;
644
+ ft.Fragment = s, ft.jsx = bt, ft.jsxs = Oe;
645
+ }()), ft;
645
646
  }
646
- process.env.NODE_ENV === "production" ? Ne.exports = Ar() : Ne.exports = Br();
647
- var o = Ne.exports;
648
- function be(r, n) {
649
- return n ? /* @__PURE__ */ o.jsx(n, { size: r, strokeWidth: 2.5 }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
647
+ process.env.NODE_ENV === "production" ? Mt.exports = In() : Mt.exports = An();
648
+ var m = Mt.exports;
649
+ function kt(n, t) {
650
+ return t ? /* @__PURE__ */ m.jsx(t, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
650
651
  }
651
- function Vr(r) {
652
+ function Ln(n) {
652
653
  const {
653
- variant: n = "ghost",
654
- scheme: t = "primary",
655
- size: i = "md",
654
+ variant: t = "ghost",
655
+ scheme: a = "primary",
656
+ size: s = "md",
656
657
  leftIcon: l,
657
- rightIcon: u,
658
- className: f = "",
659
- children: a,
660
- ...d
661
- } = r, p = { md: 12, lg: 14 }[i];
658
+ rightIcon: c,
659
+ className: h = "",
660
+ children: u,
661
+ ...p
662
+ } = n, y = { md: 12, lg: 14 }[s];
662
663
  return {
663
- className: `arkyn_badge ${n} ${t} ${i} ${f}`.trim(),
664
- children: a,
665
- leftIcon: be(p, l),
666
- rightIcon: be(p, u),
667
- ...d
664
+ className: `arkyn_badge ${t} ${a} ${s} ${h}`.trim(),
665
+ children: u,
666
+ leftIcon: kt(y, l),
667
+ rightIcon: kt(y, c),
668
+ ...p
668
669
  };
669
670
  }
670
- function gn(r) {
671
- const { leftIcon: n, children: t, rightIcon: i, ...l } = Vr(r);
672
- return /* @__PURE__ */ o.jsxs("div", { ...l, children: [
673
- n,
671
+ function Xr(n) {
672
+ const { leftIcon: t, children: a, rightIcon: s, ...l } = Ln(n);
673
+ return /* @__PURE__ */ m.jsxs("div", { ...l, children: [
674
674
  t,
675
- i
675
+ a,
676
+ s
676
677
  ] });
677
678
  }
678
- function xn(r) {
679
+ function qr(n) {
679
680
  const {
680
- className: n,
681
- orientation: t = "horizontal",
682
- ...i
683
- } = r, l = `arkyn_divider ${t} ${n}`;
684
- return /* @__PURE__ */ o.jsx("div", { className: l, ...i });
681
+ className: t,
682
+ orientation: a = "horizontal",
683
+ ...s
684
+ } = n, l = `arkyn_divider ${a} ${t}`;
685
+ return /* @__PURE__ */ m.jsx("div", { className: l, ...s });
685
686
  }
686
- function yn({ className: r, ...n }) {
687
- const t = "arkyn_skeleton " + r;
688
- return /* @__PURE__ */ o.jsx("div", { className: t.trim(), ...n });
687
+ function Jr({ className: n, ...t }) {
688
+ const a = "arkyn_skeleton " + n;
689
+ return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...t });
689
690
  }
690
- function Yr(r) {
691
+ function On(n) {
691
692
  const {
692
- isLoading: n = !1,
693
- scheme: t = "primary",
694
- variant: i = "solid",
693
+ isLoading: t = !1,
694
+ scheme: a = "primary",
695
+ variant: s = "solid",
695
696
  loadingText: l,
696
- size: u = "md",
697
- leftIcon: f,
698
- rightIcon: a,
699
- disabled: d,
700
- className: h = "",
701
- children: p,
702
- ...x
703
- } = r, C = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
697
+ size: c = "md",
698
+ leftIcon: h,
699
+ rightIcon: u,
700
+ disabled: p,
701
+ className: o = "",
702
+ children: y,
703
+ ...N
704
+ } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[c];
704
705
  return {
705
- className: `arkyn_button loading_text_${!!l} ${i} ${t} ${u} loading_${n} ${h}`.trim(),
706
+ className: `arkyn_button loading_text_${!!l} ${s} ${a} ${c} loading_${t} ${o}`.trim(),
706
707
  loadingText: l,
707
- children: p,
708
- iconSize: C,
709
- disabled: d || n,
710
- leftIcon: be(C, f),
711
- rightIcon: be(C, a),
712
- ...x
708
+ children: y,
709
+ iconSize: b,
710
+ disabled: p || t,
711
+ leftIcon: kt(b, h),
712
+ rightIcon: kt(b, u),
713
+ ...N
713
714
  };
714
715
  }
715
- function bn(r) {
716
- const { leftIcon: n, rightIcon: t, iconSize: i, children: l, loadingText: u, ...f } = Yr(r);
717
- return /* @__PURE__ */ o.jsxs("button", { ...f, children: [
718
- /* @__PURE__ */ o.jsxs("div", { className: "spinner", children: [
719
- /* @__PURE__ */ o.jsx(ae, { size: i, strokeWidth: 2.5 }),
720
- u && u
716
+ function Zr(n) {
717
+ const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: c, ...h } = On(n);
718
+ return /* @__PURE__ */ m.jsxs("button", { ...h, children: [
719
+ /* @__PURE__ */ m.jsxs("div", { className: "spinner", children: [
720
+ /* @__PURE__ */ m.jsx(Qe, { size: s, strokeWidth: 2.5 }),
721
+ c && c
721
722
  ] }),
722
- /* @__PURE__ */ o.jsxs("div", { className: "content", children: [
723
- n,
723
+ /* @__PURE__ */ m.jsxs("div", { className: "content", children: [
724
+ t,
724
725
  l,
725
- t
726
+ a
726
727
  ] })
727
728
  ] });
728
729
  }
729
- const nr = Ze({});
730
- function Sn({ children: r, ...n }) {
731
- var a, d;
732
- const t = Lr(), i = ue(null), l = ((a = i.current) == null ? void 0 : a.name) || "", u = ((d = t == null ? void 0 : t.fieldErrors) == null ? void 0 : d[l]) || null, f = wr();
733
- return /* @__PURE__ */ o.jsx(nr.Provider, { value: { error: u, id: f, inputRef: i }, children: /* @__PURE__ */ o.jsx("section", { className: "arkyn_form_controller", ...n, children: r }) });
730
+ const cn = Ct({});
731
+ function Qr({ children: n, ...t }) {
732
+ var u, p;
733
+ const a = sn(), s = at(null), l = ((u = s.current) == null ? void 0 : u.name) || "", c = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
+ return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: c, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
734
735
  }
735
- function oe() {
736
- return Qe(nr);
736
+ function Ke() {
737
+ return gt(cn);
737
738
  }
738
- function _n(r) {
739
+ function ea(n) {
739
740
  const {
740
- name: n,
741
- className: t = "",
742
- size: i = "md",
741
+ name: t,
742
+ className: a = "",
743
+ size: s = "md",
743
744
  isError: l,
744
- defaultChecked: u = !1,
745
- checked: f = null,
746
- onCheck: a,
747
- value: d,
748
- ...h
749
- } = r, { id: p, inputRef: x, error: _ } = oe(), C = l || !!_, [E, j] = Q(u || !1), R = typeof f == "boolean" ? f : E, g = `arkyn_checkbox ${i} ${C ? "error" : ""} ${R ? "checked" : ""} ${t}`;
750
- function v() {
751
- const $ = E;
752
- j(!$), a && a($ ? "" : d || "checked");
745
+ defaultChecked: c = !1,
746
+ checked: h = null,
747
+ onCheck: u,
748
+ value: p,
749
+ ...o
750
+ } = n, { id: y, inputRef: N, error: k } = Ke(), b = l || !!k, [O, P] = De(c || !1), W = typeof h == "boolean" ? h : O, T = `arkyn_checkbox ${s} ${b ? "error" : ""} ${W ? "checked" : ""} ${a}`;
751
+ function w() {
752
+ const C = O;
753
+ P(!C), u && u(C ? "" : p || "checked");
753
754
  }
754
- return /* @__PURE__ */ o.jsxs("div", { className: g, onClick: v, ...h, children: [
755
- /* @__PURE__ */ o.jsx(
755
+ return /* @__PURE__ */ m.jsxs("div", { id: y, className: T, onClick: w, ...o, children: [
756
+ /* @__PURE__ */ m.jsx(
756
757
  "input",
757
758
  {
758
759
  type: "hidden",
759
- name: n,
760
- id: p,
761
- ref: x,
762
- value: R ? d || "checked" : ""
760
+ name: t,
761
+ ref: N,
762
+ value: W ? p || "checked" : ""
763
763
  }
764
764
  ),
765
- /* @__PURE__ */ o.jsx(er, {})
765
+ /* @__PURE__ */ m.jsx(on, {})
766
766
  ] });
767
767
  }
768
- function Cn({ children: r }) {
769
- const { error: n } = oe();
770
- return r ? /* @__PURE__ */ o.jsx("strong", { className: "arkyn_form_error", children: r }) : n ? /* @__PURE__ */ o.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
768
+ function ta({ children: n }) {
769
+ const { error: t } = Ke();
770
+ return n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : t ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: t }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
771
771
  }
772
- function Mr(r) {
773
- const { showAsterisk: n = !1, className: t = "", ...i } = r;
772
+ function Pn(n) {
773
+ const { showAsterisk: t = !1, className: a = "", ...s } = n;
774
774
  return {
775
- className: `arkyn_form_label ${n ? "show-asterisk" : ""} ${t}`.trim(),
776
- ...i
775
+ className: `arkyn_form_label ${t ? "show-asterisk" : ""} ${a}`.trim(),
776
+ ...s
777
777
  };
778
778
  }
779
- function kn(r) {
780
- const { id: n } = oe();
781
- return /* @__PURE__ */ o.jsx("label", { ...Mr(r), htmlFor: n });
779
+ function na(n) {
780
+ const { id: t } = Ke();
781
+ return /* @__PURE__ */ m.jsx("label", { ...Pn(n), htmlFor: t });
782
782
  }
783
- const Ge = {
783
+ const Kt = {
784
784
  xs: 12,
785
785
  sm: 16,
786
786
  md: 20,
787
787
  lg: 24
788
788
  };
789
- function jn(r) {
789
+ function ra(n) {
790
790
  const {
791
- isLoading: n = !1,
792
- scheme: t = "primary",
793
- variant: i = "solid",
791
+ isLoading: t = !1,
792
+ scheme: a = "primary",
793
+ variant: s = "solid",
794
794
  size: l = "md",
795
- icon: u,
796
- disabled: f,
797
- className: a = "",
798
- ...d
799
- } = r, h = `arkyn_icon_button ${i} ${t} ${l} loading_${n} ${a}`;
800
- return /* @__PURE__ */ o.jsxs(
795
+ icon: c,
796
+ disabled: h,
797
+ className: u = "",
798
+ ...p
799
+ } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${u}`;
800
+ return /* @__PURE__ */ m.jsxs(
801
801
  "button",
802
802
  {
803
- disabled: f || n,
804
- className: h.trim(),
805
- ...d,
803
+ disabled: h || t,
804
+ className: o.trim(),
805
+ ...p,
806
806
  children: [
807
- /* @__PURE__ */ o.jsx("div", { className: "spinner", children: /* @__PURE__ */ o.jsx(ae, { size: Ge[l], strokeWidth: 2.5 }) }),
808
- /* @__PURE__ */ o.jsx("div", { className: "content " + l, children: /* @__PURE__ */ o.jsx(u, { size: Ge[l], strokeWidth: 2.5 }) })
807
+ /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Kt[l], strokeWidth: 2.5 }) }),
808
+ /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(c, { size: Kt[l], strokeWidth: 2.5 }) })
809
809
  ]
810
810
  }
811
811
  );
812
812
  }
813
- function se(r, n, t) {
814
- if (!r)
815
- return /* @__PURE__ */ o.jsx(o.Fragment, {});
816
- if (typeof r == "string")
817
- return /* @__PURE__ */ o.jsx("p", { className: t, children: r });
818
- const i = r;
819
- return /* @__PURE__ */ o.jsx("p", { className: t, children: /* @__PURE__ */ o.jsx(i, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
813
+ function Ge(n, t, a) {
814
+ if (!n)
815
+ return /* @__PURE__ */ m.jsx(m.Fragment, {});
816
+ if (typeof n == "string")
817
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
818
+ const s = n;
819
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
820
820
  }
821
- function $e(r) {
822
- return r && r.replace(/[^0-9]/g, "");
821
+ function Bt(n) {
822
+ return n && n.replace(/[^0-9]/g, "");
823
823
  }
824
- function tr(r, n) {
825
- let t = "", i = 0;
826
- return Array.from(r).forEach((l, u) => {
827
- n[u + i].match(/[0-9]/) || (t += n[u + i], i++), t += l;
828
- }), t;
824
+ function un(n, t) {
825
+ let a = "", s = 0;
826
+ return Array.from(n).forEach((l, c) => {
827
+ t[c + s].match(/[0-9]/) || (a += t[c + s], s++), a += l;
828
+ }), a;
829
829
  }
830
- function sr(r) {
831
- return r.length > 11 ? "CNPJ" : "CPF";
830
+ function dn(n) {
831
+ return n.length > 11 ? "CNPJ" : "CPF";
832
832
  }
833
- const Pe = {
833
+ const Ut = {
834
834
  CPF: "999.999.999-999",
835
835
  CNPJ: "99.999.999/9999-99"
836
- }, or = $e(Pe.CNPJ).length;
837
- function Ur(r, n) {
836
+ }, fn = Bt(Ut.CNPJ).length;
837
+ function jn(n, t) {
838
838
  const {
839
- isLoading: t,
840
- isError: i,
839
+ isLoading: a,
840
+ isError: s,
841
841
  size: l = "md",
842
- className: u = "",
843
- variant: f = "solid",
844
- prefix: a,
845
- sufix: d,
846
- leftIcon: h,
847
- rightIcon: p,
848
- disabled: x,
849
- defaultValue: _,
850
- readOnly: C,
851
- onFocus: E,
852
- onBlur: j,
853
- title: R,
854
- style: g,
855
- onChange: v,
856
- ...$
857
- } = r;
858
- function P(D) {
859
- let F = $e(D);
860
- const B = sr(F);
861
- if (!(F.length > or))
862
- return F = tr(F, Pe[B]), F;
842
+ className: c = "",
843
+ variant: h = "solid",
844
+ prefix: u,
845
+ sufix: p,
846
+ leftIcon: o,
847
+ rightIcon: y,
848
+ disabled: N,
849
+ defaultValue: k,
850
+ readOnly: b,
851
+ onFocus: O,
852
+ onBlur: P,
853
+ title: W,
854
+ style: T,
855
+ onChange: w,
856
+ ...C
857
+ } = n;
858
+ function H(R) {
859
+ let B = Bt(R);
860
+ const K = dn(B);
861
+ if (!(B.length > fn))
862
+ return B = un(B, Ut[K]), B;
863
863
  }
864
- const I = p ? "right" : "left", O = `arkyn_input ${a ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${x || C || t ? "opacity" : ""} ${i ? "errored" : ""} ${n ? "focused" : ""} ${u}`, y = { md: 20, lg: 20 }[l];
864
+ const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${N || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, _ = { md: 20, lg: 20 }[l];
865
865
  return {
866
- isLoading: t,
867
- className: O,
868
- prefix: se(a, y, "prefix"),
869
- sufix: se(d, y, "sufix"),
870
- LeftIcon: h,
871
- RightIcon: p,
872
- defaultValue: P(_ || ""),
873
- disabled: x,
874
- readOnly: C,
875
- onFocus: E,
876
- onBlur: j,
877
- title: R,
878
- style: g,
879
- onChange: v,
880
- loadingPosition: I,
881
- iconSize: y,
882
- Spinner: /* @__PURE__ */ o.jsx(ae, { className: "spinner", size: y, strokeWidth: 2.5 }),
883
- ...$
866
+ isLoading: a,
867
+ className: F,
868
+ prefix: Ge(u, _, "prefix"),
869
+ sufix: Ge(p, _, "sufix"),
870
+ LeftIcon: o,
871
+ RightIcon: y,
872
+ defaultValue: H(k || ""),
873
+ disabled: N,
874
+ readOnly: b,
875
+ onFocus: O,
876
+ onBlur: P,
877
+ title: W,
878
+ style: T,
879
+ onChange: w,
880
+ loadingPosition: z,
881
+ iconSize: _,
882
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: _, strokeWidth: 2.5 }),
883
+ ...C
884
884
  };
885
885
  }
886
- function Kr(r) {
887
- const [n, t] = Q(!1), i = ue(null), { inputRef: l, id: u, error: f } = oe(), a = l || i, d = r.isError || !!f, {
888
- disabled: h,
889
- title: p,
890
- style: x,
891
- className: _,
892
- prefix: C,
893
- sufix: E,
894
- iconSize: j,
895
- loadingPosition: R,
896
- isLoading: g,
897
- LeftIcon: v,
898
- readOnly: $,
899
- onFocus: P,
900
- onBlur: I,
901
- RightIcon: L,
902
- Spinner: w,
903
- onChange: z,
904
- value: V,
905
- defaultValue: Y,
906
- ...O
907
- } = Ur({ ...r, id: u, isError: d }, n), [M, y] = Q(Y), D = v && !g, F = L && !g, B = R === "left" && g, H = R === "right" && g;
908
- function re() {
909
- h || !(a != null && a.current) || (t(!0), a.current.focus());
886
+ function Dn(n) {
887
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
888
+ disabled: o,
889
+ title: y,
890
+ style: N,
891
+ className: k,
892
+ prefix: b,
893
+ sufix: O,
894
+ iconSize: P,
895
+ loadingPosition: W,
896
+ isLoading: T,
897
+ LeftIcon: w,
898
+ readOnly: C,
899
+ onFocus: H,
900
+ onBlur: z,
901
+ RightIcon: J,
902
+ Spinner: X,
903
+ onChange: Q,
904
+ value: re,
905
+ defaultValue: V,
906
+ ...F
907
+ } = jn({ ...n, id: c, isError: p }, t), [te, _] = De(V), R = w && !T, B = J && !T, K = W === "left" && T, ue = W === "right" && T;
908
+ function ee() {
909
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
910
910
  }
911
- function ne(W) {
912
- let q = $e(W.target.value);
913
- const G = sr(q);
914
- q.length > or || (q = tr(q, Pe[G]), W.target.value = q, y(q), z && z(W));
911
+ function se(x) {
912
+ let U = Bt(x.target.value);
913
+ const I = dn(U);
914
+ U.length > fn || (U = un(U, Ut[I]), x.target.value = U, _(U), Q && Q(x));
915
915
  }
916
- function te(W) {
917
- t(!0), P && P(W);
916
+ function G(x) {
917
+ a(!0), H && H(x);
918
918
  }
919
- function Z(W) {
920
- t(!1), I && I(W);
919
+ function D(x) {
920
+ a(!1), z && z(x);
921
921
  }
922
- return /* @__PURE__ */ o.jsxs(
922
+ return /* @__PURE__ */ m.jsxs(
923
923
  "section",
924
924
  {
925
- title: p,
926
- style: x,
927
- onClick: re,
928
- className: _,
925
+ title: y,
926
+ style: N,
927
+ onClick: ee,
928
+ className: k,
929
929
  children: [
930
- C,
931
- B && w,
932
- D && /* @__PURE__ */ o.jsx(v, { size: j, strokeWidth: 2.5 }),
933
- /* @__PURE__ */ o.jsx(
930
+ b,
931
+ K && X,
932
+ R && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
933
+ /* @__PURE__ */ m.jsx(
934
934
  "input",
935
935
  {
936
- disabled: h || g,
937
- readOnly: $,
938
- ref: a,
939
- value: V || M,
940
- onFocus: te,
941
- onChange: ne,
942
- onBlur: Z,
943
- ...O
936
+ disabled: o || T,
937
+ readOnly: C,
938
+ ref: u,
939
+ value: re || te,
940
+ onFocus: G,
941
+ onChange: se,
942
+ onBlur: D,
943
+ ...F
944
944
  }
945
945
  ),
946
- F && /* @__PURE__ */ o.jsx(L, { size: j, strokeWidth: 2.5 }),
947
- H && w,
948
- E
946
+ B && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
947
+ ue && X,
948
+ O
949
949
  ]
950
950
  }
951
951
  );
952
952
  }
953
- function Jr(r, n) {
953
+ function Mn(n, t) {
954
954
  const {
955
- isLoading: t,
956
- isError: i,
955
+ isLoading: a,
956
+ isError: s,
957
957
  size: l = "md",
958
- className: u = "",
959
- variant: f = "solid",
960
- prefix: a,
961
- sufix: d,
962
- leftIcon: h,
963
- rightIcon: p,
964
- disabled: x,
965
- readOnly: _,
966
- onFocus: C,
967
- onBlur: E,
968
- title: j,
969
- style: R,
970
- showCents: g = !1,
971
- max: v = 1e9,
972
- onChange: $,
973
- ...P
974
- } = r, I = p ? "right" : "left", O = `arkyn_input ${a ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${x || _ || t ? "opacity" : ""} ${i ? "errored" : ""} ${n ? "focused" : ""} ${u}`, y = { md: 20, lg: 20 }[l];
958
+ className: c = "",
959
+ variant: h = "solid",
960
+ prefix: u,
961
+ sufix: p,
962
+ leftIcon: o,
963
+ rightIcon: y,
964
+ disabled: N,
965
+ readOnly: k,
966
+ onFocus: b,
967
+ onBlur: O,
968
+ title: P,
969
+ style: W,
970
+ showCents: T = !1,
971
+ max: w = 1e9,
972
+ onChange: C,
973
+ ...H
974
+ } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${N || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, _ = { md: 20, lg: 20 }[l];
975
975
  return {
976
- isLoading: t,
977
- className: O,
978
- prefix: se(a, y, "prefix"),
979
- sufix: se(d, y, "sufix"),
980
- LeftIcon: h,
981
- RightIcon: p,
982
- disabled: x,
983
- readOnly: _,
984
- onFocus: C,
985
- onBlur: E,
986
- title: j,
987
- style: R,
988
- max: v,
989
- onChange: $,
990
- showCents: g,
991
- loadingPosition: I,
992
- iconSize: y,
993
- Spinner: /* @__PURE__ */ o.jsx(ae, { className: "spinner", size: y, strokeWidth: 2.5 }),
994
- ...P
976
+ isLoading: a,
977
+ className: F,
978
+ prefix: Ge(u, _, "prefix"),
979
+ sufix: Ge(p, _, "sufix"),
980
+ LeftIcon: o,
981
+ RightIcon: y,
982
+ disabled: N,
983
+ readOnly: k,
984
+ onFocus: b,
985
+ onBlur: O,
986
+ title: P,
987
+ style: W,
988
+ max: w,
989
+ onChange: C,
990
+ showCents: T,
991
+ loadingPosition: z,
992
+ iconSize: _,
993
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: _, strokeWidth: 2.5 }),
994
+ ...H
995
995
  };
996
996
  }
997
- const qr = /^[1-9]{1}$/, Gr = /^[0-9]{1}$/, Xe = 8;
998
- function Xr(r, n) {
999
- if (r === 0)
997
+ const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
998
+ function Fn(n, t) {
999
+ if (n === 0)
1000
1000
  return "";
1001
- const t = (r / 100).toLocaleString("pt-BR", {
1001
+ const a = (n / 100).toLocaleString("pt-BR", {
1002
1002
  style: "currency",
1003
1003
  currency: "BRL"
1004
1004
  });
1005
- return n ? t : t.replace("R$", "").trim();
1005
+ return t ? a : a.replace("R$", "").trim();
1006
1006
  }
1007
- function Hr(r) {
1008
- const { currencyValue: n, event: t, max: i, setCurrencyValue: l } = r, { key: u, keyCode: f } = t;
1009
- if (n === 0 && !qr.test(u) || n !== 0 && !Gr.test(u) && f !== Xe)
1007
+ function Bn(n) {
1008
+ const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: c, keyCode: h } = a;
1009
+ if (t === 0 && !zn.test(c) || t !== 0 && !$n.test(c) && h !== Xt)
1010
1010
  return;
1011
- const a = n.toString();
1012
- let d;
1013
- if (f !== Xe) {
1014
- const h = n === 0 ? u : `${a}${u}`;
1015
- d = Number.parseInt(h, 10);
1011
+ const u = t.toString();
1012
+ let p;
1013
+ if (h !== Xt) {
1014
+ const o = t === 0 ? c : `${u}${c}`;
1015
+ p = Number.parseInt(o, 10);
1016
1016
  } else {
1017
- const h = a.slice(0, -1);
1018
- d = h === "" ? 0 : Number.parseInt(h, 10);
1017
+ const o = u.slice(0, -1);
1018
+ p = o === "" ? 0 : Number.parseInt(o, 10);
1019
1019
  }
1020
- d > Number(i) || l(d);
1020
+ p > Number(s) || l(p);
1021
1021
  }
1022
- function Zr(r) {
1023
- const [n, t] = Q(!1), [i, l] = Q(r.defaultValue || 0), u = ue(null), { inputRef: f, id: a, error: d } = oe(), h = f || u, p = r.isError || !!d, {
1024
- disabled: x,
1025
- title: _,
1026
- style: C,
1027
- className: E,
1028
- prefix: j,
1029
- sufix: R,
1030
- iconSize: g,
1031
- loadingPosition: v,
1032
- isLoading: $,
1033
- LeftIcon: P,
1034
- readOnly: I,
1035
- onFocus: L,
1036
- onBlur: w,
1037
- RightIcon: z,
1038
- Spinner: V,
1039
- value: Y,
1040
- max: O,
1041
- onKeyDown: M,
1042
- onChange: y,
1043
- showCents: D,
1044
- ...F
1045
- } = Jr({ ...r, id: a, isError: p }, n), B = P && !$, H = z && !$, re = v === "left" && $, ne = v === "right" && $;
1046
- function te() {
1047
- x || !(h != null && h.current) || (t(!0), h.current.focus());
1022
+ function Un(n) {
1023
+ const [t, a] = De(!1), [s, l] = De(n.defaultValue || 0), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
1024
+ disabled: N,
1025
+ title: k,
1026
+ style: b,
1027
+ className: O,
1028
+ prefix: P,
1029
+ sufix: W,
1030
+ iconSize: T,
1031
+ loadingPosition: w,
1032
+ isLoading: C,
1033
+ LeftIcon: H,
1034
+ readOnly: z,
1035
+ onFocus: J,
1036
+ onBlur: X,
1037
+ RightIcon: Q,
1038
+ Spinner: re,
1039
+ value: V,
1040
+ max: F,
1041
+ onKeyDown: te,
1042
+ onChange: _,
1043
+ showCents: R,
1044
+ ...B
1045
+ } = Mn({ ...n, id: u, isError: y }, t), K = H && !C, ue = Q && !C, ee = w === "left" && C, se = w === "right" && C;
1046
+ function G() {
1047
+ N || !(o != null && o.current) || (a(!0), o.current.focus());
1048
1048
  }
1049
- function Z(G) {
1050
- Hr({ currencyValue: i, event: G, max: O, setCurrencyValue: l }), y && y(i), M && M(G);
1049
+ function D(I) {
1050
+ Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), _ && _(s), te && te(I);
1051
1051
  }
1052
- function W(G) {
1053
- t(!0), L && L(G);
1052
+ function x(I) {
1053
+ a(!0), J && J(I);
1054
1054
  }
1055
- function q(G) {
1056
- t(!1), w && w(G);
1055
+ function U(I) {
1056
+ a(!1), X && X(I);
1057
1057
  }
1058
- return /* @__PURE__ */ o.jsxs(
1058
+ return /* @__PURE__ */ m.jsxs(
1059
1059
  "section",
1060
1060
  {
1061
- title: _,
1062
- style: C,
1063
- onClick: te,
1064
- className: E,
1061
+ title: k,
1062
+ style: b,
1063
+ onClick: G,
1064
+ className: O,
1065
1065
  children: [
1066
- j,
1067
- re && V,
1068
- B && /* @__PURE__ */ o.jsx(P, { size: g, strokeWidth: 2.5 }),
1069
- /* @__PURE__ */ o.jsx(
1066
+ P,
1067
+ ee && re,
1068
+ K && /* @__PURE__ */ m.jsx(H, { size: T, strokeWidth: 2.5 }),
1069
+ /* @__PURE__ */ m.jsx(
1070
1070
  "input",
1071
1071
  {
1072
- value: Xr(Y || i, D),
1073
- onKeyDown: Z,
1074
- disabled: x || $,
1075
- readOnly: I,
1076
- ref: h,
1077
- onFocus: W,
1078
- onBlur: q,
1072
+ value: Fn(V || s, R),
1073
+ onKeyDown: D,
1074
+ disabled: N || C,
1075
+ readOnly: z,
1076
+ ref: o,
1077
+ onFocus: x,
1078
+ onBlur: U,
1079
1079
  onChange: () => {
1080
1080
  },
1081
- ...F
1081
+ ...B
1082
1082
  }
1083
1083
  ),
1084
- ne && V,
1085
- H && /* @__PURE__ */ o.jsx(z, { size: g, strokeWidth: 2.5 }),
1086
- R
1084
+ se && re,
1085
+ ue && /* @__PURE__ */ m.jsx(Q, { size: T, strokeWidth: 2.5 }),
1086
+ W
1087
1087
  ]
1088
1088
  }
1089
1089
  );
1090
1090
  }
1091
- function Qr(r, n) {
1091
+ function Wn(n, t) {
1092
1092
  const {
1093
- isLoading: t,
1094
- isError: i,
1093
+ isLoading: a,
1094
+ isError: s,
1095
1095
  size: l = "md",
1096
- className: u = "",
1097
- variant: f = "solid",
1098
- prefix: a,
1099
- sufix: d,
1100
- leftIcon: h,
1101
- rightIcon: p,
1102
- disabled: x,
1103
- readOnly: _,
1104
- onFocus: C,
1105
- onBlur: E,
1106
- title: j,
1107
- style: R,
1108
- onChange: g,
1109
- showMask: v = !1,
1110
- type: $,
1111
- ...P
1112
- } = r, I = p ? "right" : "left", O = `arkyn_input ${a ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${x || _ || t ? "opacity" : ""} ${i ? "errored" : ""} ${n ? "focused" : ""} ${u}`, y = { md: 20, lg: 20 }[l];
1096
+ className: c = "",
1097
+ variant: h = "solid",
1098
+ prefix: u,
1099
+ sufix: p,
1100
+ leftIcon: o,
1101
+ rightIcon: y,
1102
+ disabled: N,
1103
+ readOnly: k,
1104
+ onFocus: b,
1105
+ onBlur: O,
1106
+ title: P,
1107
+ style: W,
1108
+ onChange: T,
1109
+ showMask: w = !1,
1110
+ type: C,
1111
+ ...H
1112
+ } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${N || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, _ = { md: 20, lg: 20 }[l];
1113
1113
  return {
1114
- isLoading: t,
1115
- className: O,
1116
- prefix: se(a, y, "prefix"),
1117
- sufix: se(d, y, "sufix"),
1118
- LeftIcon: h,
1119
- RightIcon: p,
1120
- disabled: x,
1121
- readOnly: _,
1122
- onFocus: C,
1123
- onBlur: E,
1124
- title: j,
1125
- style: R,
1126
- onChange: g,
1127
- loadingPosition: I,
1128
- iconSize: y,
1129
- showMask: v,
1130
- Spinner: /* @__PURE__ */ o.jsx(ae, { className: "spinner", size: y, strokeWidth: 2.5 }),
1131
- ...P
1114
+ isLoading: a,
1115
+ className: F,
1116
+ prefix: Ge(u, _, "prefix"),
1117
+ sufix: Ge(p, _, "sufix"),
1118
+ LeftIcon: o,
1119
+ RightIcon: y,
1120
+ disabled: N,
1121
+ readOnly: k,
1122
+ onFocus: b,
1123
+ onBlur: O,
1124
+ title: P,
1125
+ style: W,
1126
+ onChange: T,
1127
+ loadingPosition: z,
1128
+ iconSize: _,
1129
+ showMask: w,
1130
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: _, strokeWidth: 2.5 }),
1131
+ ...H
1132
1132
  };
1133
1133
  }
1134
- const en = Or((r, n) => /* @__PURE__ */ o.jsx("input", { ref: n, ...r }));
1135
- function rn(r) {
1136
- const [n, t] = Q(!1), i = ue(null), { inputRef: l, id: u, error: f } = oe(), a = l || i, d = r.isError || !!f, {
1137
- disabled: h,
1138
- title: p,
1139
- style: x,
1140
- className: _,
1141
- prefix: C,
1142
- sufix: E,
1143
- iconSize: j,
1144
- loadingPosition: R,
1145
- isLoading: g,
1146
- LeftIcon: v,
1147
- readOnly: $,
1148
- onFocus: P,
1149
- onBlur: I,
1150
- RightIcon: L,
1151
- Spinner: w,
1152
- ...z
1153
- } = Qr({ ...r, id: u, isError: d }, n), V = v && !g, Y = L && !g, O = R === "left" && g, M = R === "right" && g;
1154
- function y() {
1155
- h || !(a != null && a.current) || (t(!0), a.current.focus());
1134
+ const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
1135
+ function Yn(n) {
1136
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1137
+ disabled: o,
1138
+ title: y,
1139
+ style: N,
1140
+ className: k,
1141
+ prefix: b,
1142
+ sufix: O,
1143
+ iconSize: P,
1144
+ loadingPosition: W,
1145
+ isLoading: T,
1146
+ LeftIcon: w,
1147
+ readOnly: C,
1148
+ onFocus: H,
1149
+ onBlur: z,
1150
+ RightIcon: J,
1151
+ Spinner: X,
1152
+ ...Q
1153
+ } = Wn({ ...n, id: c, isError: p }, t), re = w && !T, V = J && !T, F = W === "left" && T, te = W === "right" && T;
1154
+ function _() {
1155
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
1156
1156
  }
1157
- function D(B) {
1158
- t(!0), P && P(B);
1157
+ function R(K) {
1158
+ a(!0), H && H(K);
1159
1159
  }
1160
- function F(B) {
1161
- t(!1), I && I(B);
1160
+ function B(K) {
1161
+ a(!1), z && z(K);
1162
1162
  }
1163
- return /* @__PURE__ */ o.jsxs(
1163
+ return /* @__PURE__ */ m.jsxs(
1164
1164
  "section",
1165
1165
  {
1166
- title: p,
1167
- style: x,
1168
- onClick: y,
1169
- className: _,
1166
+ title: y,
1167
+ style: N,
1168
+ onClick: _,
1169
+ className: k,
1170
1170
  children: [
1171
- C,
1172
- O && w,
1173
- V && /* @__PURE__ */ o.jsx(v, { size: j, strokeWidth: 2.5 }),
1174
- /* @__PURE__ */ o.jsx(
1175
- Dr,
1171
+ b,
1172
+ F && X,
1173
+ re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1174
+ /* @__PURE__ */ m.jsx(
1175
+ kn,
1176
1176
  {
1177
- component: en,
1178
- ref: a,
1179
- onFocus: D,
1180
- onBlur: F,
1181
- ...z
1177
+ component: Hn,
1178
+ ref: u,
1179
+ onFocus: R,
1180
+ onBlur: B,
1181
+ ...Q
1182
1182
  }
1183
1183
  ),
1184
- Y && /* @__PURE__ */ o.jsx(L, { size: j, strokeWidth: 2.5 }),
1185
- M && w,
1186
- E
1184
+ V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1185
+ te && X,
1186
+ O
1187
1187
  ]
1188
1188
  }
1189
1189
  );
1190
1190
  }
1191
- function nn(r, n) {
1191
+ function Vn(n, t) {
1192
1192
  const {
1193
- isLoading: t,
1194
- isError: i,
1193
+ isLoading: a,
1194
+ isError: s,
1195
1195
  size: l = "md",
1196
- className: u = "",
1197
- variant: f = "solid",
1198
- prefix: a,
1199
- sufix: d,
1200
- leftIcon: h,
1201
- rightIcon: p,
1202
- disabled: x,
1203
- readOnly: _,
1204
- onFocus: C,
1205
- onBlur: E,
1206
- title: j,
1207
- style: R,
1208
- onChange: g,
1209
- ...v
1210
- } = r, $ = p ? "right" : "left", V = `arkyn_input ${a ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${x || _ || t ? "opacity" : ""} ${i ? "errored" : ""} ${n ? "focused" : ""} ${u}`, O = { md: 20, lg: 20 }[l];
1196
+ className: c = "",
1197
+ variant: h = "solid",
1198
+ prefix: u,
1199
+ sufix: p,
1200
+ leftIcon: o,
1201
+ rightIcon: y,
1202
+ disabled: N,
1203
+ readOnly: k,
1204
+ onFocus: b,
1205
+ onBlur: O,
1206
+ title: P,
1207
+ style: W,
1208
+ onChange: T,
1209
+ ...w
1210
+ } = n, C = y ? "right" : "left", re = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${N || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
1211
1211
  return {
1212
- isLoading: t,
1213
- className: V,
1214
- prefix: se(a, O, "prefix"),
1215
- sufix: se(d, O, "sufix"),
1216
- LeftIcon: h,
1217
- RightIcon: p,
1218
- disabled: x,
1219
- readOnly: _,
1220
- onFocus: C,
1221
- onBlur: E,
1222
- title: j,
1223
- style: R,
1224
- onChange: g,
1225
- loadingPosition: $,
1226
- iconSize: O,
1227
- Spinner: /* @__PURE__ */ o.jsx(ae, { className: "spinner", size: O, strokeWidth: 2.5 }),
1228
- ...v
1212
+ isLoading: a,
1213
+ className: re,
1214
+ prefix: Ge(u, F, "prefix"),
1215
+ sufix: Ge(p, F, "sufix"),
1216
+ LeftIcon: o,
1217
+ RightIcon: y,
1218
+ disabled: N,
1219
+ readOnly: k,
1220
+ onFocus: b,
1221
+ onBlur: O,
1222
+ title: P,
1223
+ style: W,
1224
+ onChange: T,
1225
+ loadingPosition: C,
1226
+ iconSize: F,
1227
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: F, strokeWidth: 2.5 }),
1228
+ ...w
1229
1229
  };
1230
1230
  }
1231
- function tn(r) {
1232
- const [n, t] = Q(!1), i = ue(null), { inputRef: l, id: u, error: f } = oe(), a = l || i, d = r.isError || !!f, {
1233
- disabled: h,
1234
- title: p,
1235
- style: x,
1236
- className: _,
1237
- prefix: C,
1238
- sufix: E,
1239
- iconSize: j,
1240
- loadingPosition: R,
1241
- isLoading: g,
1242
- LeftIcon: v,
1243
- readOnly: $,
1244
- onFocus: P,
1245
- onBlur: I,
1246
- RightIcon: L,
1247
- Spinner: w,
1248
- ...z
1249
- } = nn({ ...r, id: u, isError: d }, n), V = v && !g, Y = L && !g, O = R === "left" && g, M = R === "right" && g;
1250
- function y() {
1251
- h || !(a != null && a.current) || (t(!0), a.current.focus());
1231
+ function Gn(n) {
1232
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1233
+ disabled: o,
1234
+ title: y,
1235
+ style: N,
1236
+ className: k,
1237
+ prefix: b,
1238
+ sufix: O,
1239
+ iconSize: P,
1240
+ loadingPosition: W,
1241
+ isLoading: T,
1242
+ LeftIcon: w,
1243
+ readOnly: C,
1244
+ onFocus: H,
1245
+ onBlur: z,
1246
+ RightIcon: J,
1247
+ Spinner: X,
1248
+ ...Q
1249
+ } = Vn({ ...n, id: c, isError: p }, t), re = w && !T, V = J && !T, F = W === "left" && T, te = W === "right" && T;
1250
+ function _() {
1251
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
1252
1252
  }
1253
- function D(B) {
1254
- t(!0), P && P(B);
1253
+ function R(K) {
1254
+ a(!0), H && H(K);
1255
1255
  }
1256
- function F(B) {
1257
- t(!1), I && I(B);
1256
+ function B(K) {
1257
+ a(!1), z && z(K);
1258
1258
  }
1259
- return /* @__PURE__ */ o.jsxs(
1259
+ return /* @__PURE__ */ m.jsxs(
1260
1260
  "section",
1261
1261
  {
1262
- title: p,
1263
- style: x,
1264
- onClick: y,
1265
- className: _,
1262
+ title: y,
1263
+ style: N,
1264
+ onClick: _,
1265
+ className: k,
1266
1266
  children: [
1267
- C,
1268
- O && w,
1269
- V && /* @__PURE__ */ o.jsx(v, { size: j, strokeWidth: 2.5 }),
1270
- /* @__PURE__ */ o.jsx(
1267
+ b,
1268
+ F && X,
1269
+ re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1270
+ /* @__PURE__ */ m.jsx(
1271
1271
  "input",
1272
1272
  {
1273
- disabled: h || g,
1274
- readOnly: $,
1275
- ref: a,
1276
- onFocus: D,
1277
- onBlur: F,
1278
- ...z
1273
+ disabled: o || T,
1274
+ readOnly: C,
1275
+ ref: u,
1276
+ onFocus: R,
1277
+ onBlur: B,
1278
+ ...Q
1279
1279
  }
1280
1280
  ),
1281
- Y && /* @__PURE__ */ o.jsx(L, { size: j, strokeWidth: 2.5 }),
1282
- M && w,
1283
- E
1281
+ V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1282
+ te && X,
1283
+ O
1284
1284
  ]
1285
1285
  }
1286
1286
  );
1287
1287
  }
1288
- function Rn(r) {
1289
- return r.type === "currency" ? /* @__PURE__ */ o.jsx(Zr, { ...r }) : r.type === "masked" ? /* @__PURE__ */ o.jsx(rn, { ...r }) : r.type === "cpf-cpnj" ? /* @__PURE__ */ o.jsx(Kr, { ...r }) : /* @__PURE__ */ o.jsx(tn, { ...r });
1288
+ function aa(n) {
1289
+ return n.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...n }) : n.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ m.jsx(Dn, { ...n }) : /* @__PURE__ */ m.jsx(Gn, { ...n });
1290
1290
  }
1291
- function sn(r, n, t) {
1292
- if (!r)
1293
- return /* @__PURE__ */ o.jsx(o.Fragment, {});
1294
- if (typeof r == "string")
1295
- return /* @__PURE__ */ o.jsx("p", { className: t, children: r });
1296
- const i = r;
1297
- return /* @__PURE__ */ o.jsx("p", { className: t, children: /* @__PURE__ */ o.jsx(i, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
1291
+ function Kn(n, t, a) {
1292
+ if (!n)
1293
+ return /* @__PURE__ */ m.jsx(m.Fragment, {});
1294
+ if (typeof n == "string")
1295
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
1296
+ const s = n;
1297
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
1298
1298
  }
1299
- function on(r, n) {
1299
+ function Xn(n, t) {
1300
1300
  const {
1301
- isLoading: t,
1302
- isError: i,
1301
+ isLoading: a,
1302
+ isError: s,
1303
1303
  size: l = "md",
1304
- className: u = "",
1305
- variant: f = "solid",
1306
- prefix: a,
1307
- leftIcon: d,
1308
- disabled: h,
1309
- readOnly: p,
1310
- onFocus: x,
1311
- onBlur: _,
1312
- title: C,
1313
- style: E,
1314
- isSearchable: j = !1,
1315
- ...R
1316
- } = r, I = `arkyn_select ${a ? "hasPrefix" : ""} ${f} ${l} ${h || p || t ? "opacity" : ""} ${i ? "errored" : ""} ${n ? "focused" : ""} ${u}`, w = { md: 20, lg: 20 }[l];
1304
+ className: c = "",
1305
+ variant: h = "solid",
1306
+ prefix: u,
1307
+ leftIcon: p,
1308
+ disabled: o,
1309
+ readOnly: y,
1310
+ onFocus: N,
1311
+ onBlur: k,
1312
+ title: b,
1313
+ style: O,
1314
+ isSearchable: P = !1,
1315
+ ...W
1316
+ } = n, z = `arkyn_select ${u ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, X = { md: 20, lg: 20 }[l];
1317
1317
  return {
1318
- isLoading: t,
1319
- className: I,
1320
- prefix: sn(a, w, "prefix"),
1321
- LeftIcon: d,
1322
- disabled: h,
1323
- readOnly: p,
1324
- onFocus: x,
1325
- onBlur: _,
1326
- title: C,
1327
- style: E,
1328
- isSearchable: j,
1329
- iconSize: w,
1330
- Spinner: /* @__PURE__ */ o.jsx(ae, { className: "spinner", size: w, strokeWidth: 2.5 }),
1331
- ...R
1318
+ isLoading: a,
1319
+ className: z,
1320
+ prefix: Kn(u, X, "prefix"),
1321
+ LeftIcon: p,
1322
+ disabled: o,
1323
+ readOnly: y,
1324
+ onFocus: N,
1325
+ onBlur: k,
1326
+ title: b,
1327
+ style: O,
1328
+ isSearchable: P,
1329
+ iconSize: X,
1330
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: X, strokeWidth: 2.5 }),
1331
+ ...W
1332
1332
  };
1333
1333
  }
1334
- function En(r) {
1335
- var fe;
1336
- const [n, t] = Q(!1), { inputRef: i, id: l, error: u } = oe(), f = ue(null), a = i || f, d = r.isError || !!u, {
1337
- disabled: h,
1338
- title: p,
1339
- style: x,
1340
- className: _,
1341
- prefix: C,
1342
- iconSize: E,
1343
- isLoading: j,
1344
- LeftIcon: R,
1345
- value: g = null,
1346
- defaultValue: v = "",
1347
- readOnly: $,
1348
- onFocus: P,
1349
- onBlur: I,
1350
- Spinner: L,
1351
- name: w,
1352
- isSearchable: z,
1353
- placeholder: V,
1354
- onSelect: Y,
1355
- options: O,
1356
- optionMaxHeight: M,
1357
- ...y
1358
- } = on({ ...r, id: l, isError: d }, n), [D, F] = Q(v), [B, H] = Q("");
1359
- function re() {
1360
- h || !(a != null && a.current) || (t(!0), a.current.focus());
1334
+ function oa(n) {
1335
+ var ce;
1336
+ const [t, a] = De(!1), { inputRef: s, id: l, error: c } = Ke(), h = at(null), u = s || h, p = n.isError || !!c, {
1337
+ disabled: o,
1338
+ title: y,
1339
+ style: N,
1340
+ className: k,
1341
+ prefix: b,
1342
+ iconSize: O,
1343
+ isLoading: P,
1344
+ LeftIcon: W,
1345
+ value: T = null,
1346
+ defaultValue: w = "",
1347
+ readOnly: C,
1348
+ onFocus: H,
1349
+ onBlur: z,
1350
+ Spinner: J,
1351
+ name: X,
1352
+ isSearchable: Q,
1353
+ placeholder: re,
1354
+ onSelect: V,
1355
+ options: F,
1356
+ optionMaxHeight: te,
1357
+ ..._
1358
+ } = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [K, ue] = De("");
1359
+ function ee() {
1360
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
1361
1361
  }
1362
- function ne(K) {
1363
- t(!0), P && P(K);
1362
+ function se(M) {
1363
+ a(!0), H && H(M);
1364
1364
  }
1365
- function te() {
1366
- t(!1), I && a.current && a.current.blur();
1365
+ function G() {
1366
+ a(!1), z && u.current && u.current.blur();
1367
1367
  }
1368
- const Z = typeof g == "string" ? g : D, W = ((fe = O.find((K) => K.value === Z)) == null ? void 0 : fe.label) || "", q = () => {
1369
- if (z) {
1370
- if (!n && W)
1368
+ const D = typeof T == "string" ? T : R, x = ((ce = F.find((M) => M.value === D)) == null ? void 0 : ce.label) || "", U = () => {
1369
+ if (Q) {
1370
+ if (!t && x)
1371
1371
  return !0;
1372
- if (!n && !W || n)
1372
+ if (!t && !x || t)
1373
1373
  return !1;
1374
1374
  }
1375
- if (!z) {
1376
- if (!n && W)
1375
+ if (!Q) {
1376
+ if (!t && x)
1377
1377
  return !0;
1378
- if (!n && !W)
1378
+ if (!t && !x)
1379
1379
  return !1;
1380
- if (n && W)
1380
+ if (t && x)
1381
1381
  return !0;
1382
- if (n && !W)
1382
+ if (t && !x)
1383
1383
  return !1;
1384
1384
  }
1385
- }, G = O.filter((K) => z ? K.label.toLowerCase().includes(B.toLowerCase()) : !0);
1386
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1387
- /* @__PURE__ */ o.jsxs(
1385
+ }, I = F.filter((M) => Q ? M.label.toLowerCase().includes(K.toLowerCase()) : !0);
1386
+ return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1387
+ /* @__PURE__ */ m.jsxs(
1388
1388
  "section",
1389
1389
  {
1390
- title: p,
1391
- style: x,
1392
- onClick: re,
1393
- className: `${_} placeholder_dark_${q()}`,
1390
+ title: y,
1391
+ style: N,
1392
+ onClick: ee,
1393
+ className: `${k} placeholder_dark_${U()}`,
1394
1394
  children: [
1395
- C,
1396
- R && /* @__PURE__ */ o.jsx(R, { size: E, strokeWidth: 2.5 }),
1397
- /* @__PURE__ */ o.jsx(
1395
+ b,
1396
+ W && /* @__PURE__ */ m.jsx(W, { size: O, strokeWidth: 2.5 }),
1397
+ /* @__PURE__ */ m.jsx(
1398
1398
  "input",
1399
1399
  {
1400
- disabled: h || j,
1401
- readOnly: !z,
1402
- value: B || "",
1403
- placeholder: W || V,
1404
- ref: a,
1405
- onFocus: ne,
1406
- onBlur: () => H(""),
1407
- ...y,
1408
- onChange: (K) => H(K.target.value)
1400
+ disabled: o || P,
1401
+ readOnly: !Q,
1402
+ value: K || "",
1403
+ placeholder: x || re,
1404
+ ref: u,
1405
+ onFocus: se,
1406
+ onBlur: () => ue(""),
1407
+ ..._,
1408
+ onChange: (M) => ue(M.target.value)
1409
1409
  }
1410
1410
  ),
1411
- /* @__PURE__ */ o.jsx("input", { type: "hidden", name: w, value: Z || "", readOnly: !0 }),
1412
- n && /* @__PURE__ */ o.jsxs(
1411
+ /* @__PURE__ */ m.jsx("input", { type: "hidden", name: X, value: D || "", readOnly: !0 }),
1412
+ t && /* @__PURE__ */ m.jsxs(
1413
1413
  "ul",
1414
1414
  {
1415
1415
  className: "arkyn_select_content",
1416
- style: { overflow: "auto", maxHeight: M },
1416
+ style: { overflow: "auto", maxHeight: te },
1417
1417
  children: [
1418
- G.map(({ label: K, value: ee }) => /* @__PURE__ */ o.jsxs(
1418
+ I.map(({ label: M, value: pe }) => /* @__PURE__ */ m.jsxs(
1419
1419
  "li",
1420
1420
  {
1421
- className: Z === ee ? "active" : "",
1421
+ className: D === pe ? "active" : "",
1422
1422
  onClick: () => {
1423
- F(D !== ee ? ee : ""), Y && Y({ label: K, value: ee });
1423
+ B(R !== pe ? pe : ""), V && V({ label: M, value: pe });
1424
1424
  },
1425
1425
  children: [
1426
- K,
1426
+ M,
1427
1427
  " ",
1428
- /* @__PURE__ */ o.jsx(er, {})
1428
+ /* @__PURE__ */ m.jsx(on, {})
1429
1429
  ]
1430
1430
  },
1431
- ee
1431
+ pe
1432
1432
  )),
1433
- G.length <= 0 && /* @__PURE__ */ o.jsx("p", { children: "Sem opções disponíveis" })
1433
+ I.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1434
1434
  ]
1435
1435
  }
1436
1436
  ),
1437
- !j && /* @__PURE__ */ o.jsx(
1438
- Fr,
1437
+ !P && /* @__PURE__ */ m.jsx(
1438
+ Tn,
1439
1439
  {
1440
1440
  className: "arkyn_select_arrow",
1441
- size: E,
1441
+ size: O,
1442
1442
  strokeWidth: 2.5
1443
1443
  }
1444
1444
  ),
1445
- j && L
1445
+ P && J
1446
1446
  ]
1447
1447
  }
1448
1448
  ),
1449
- n && /* @__PURE__ */ o.jsx("aside", { className: "arkyn_select_overlay", onClick: te })
1449
+ t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
1450
1450
  ] });
1451
1451
  }
1452
- function an(r) {
1453
- const { className: n = "", ...t } = r;
1454
- return { className: `arkyn_breadcrumb ${n}`.trim(), ...t };
1452
+ function qn(n) {
1453
+ const { className: t = "", ...a } = n;
1454
+ return { className: `arkyn_breadcrumb ${t}`.trim(), ...a };
1455
1455
  }
1456
- function cn(r) {
1457
- const { pathname: n } = rr(), {
1458
- className: t = "",
1459
- disabled: i = !1,
1456
+ function Jn(n) {
1457
+ const { pathname: t } = ln(), {
1458
+ className: a = "",
1459
+ disabled: s = !1,
1460
1460
  to: l,
1461
- ...u
1462
- } = r, f = n === l ? "active" : "inactive", a = `arkyn_breadcrumb_link ${f} ${t}`;
1461
+ ...c
1462
+ } = n, h = t === l ? "active" : "inactive", u = `arkyn_breadcrumb_link ${h} ${a}`;
1463
1463
  return {
1464
1464
  to: l,
1465
- className: a.trim(),
1466
- disabled: i || f === "active",
1467
- ...u
1465
+ className: u.trim(),
1466
+ disabled: s || h === "active",
1467
+ ...c
1468
1468
  };
1469
1469
  }
1470
- function Nn(r) {
1471
- const { className: n, ...t } = an(r);
1472
- return /* @__PURE__ */ o.jsx("nav", { className: n, ...t });
1470
+ function sa(n) {
1471
+ const { className: t, ...a } = qn(n);
1472
+ return /* @__PURE__ */ m.jsx("nav", { className: t, ...a });
1473
1473
  }
1474
- function $n(r) {
1475
- const { children: n, className: t, disabled: i, ...l } = cn(r);
1476
- return i ? /* @__PURE__ */ o.jsxs("p", { className: t, children: [
1477
- /* @__PURE__ */ o.jsx(Ue, { size: 14, strokeWidth: 2.5 }),
1478
- n
1479
- ] }) : /* @__PURE__ */ o.jsxs(zr, { className: t, ...l, children: [
1480
- /* @__PURE__ */ o.jsx(Ue, { size: 14, strokeWidth: 2.5 }),
1481
- n
1474
+ function ia(n) {
1475
+ const { children: t, className: a, disabled: s, ...l } = Jn(n);
1476
+ return s ? /* @__PURE__ */ m.jsxs("p", { className: a, children: [
1477
+ /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1478
+ t
1479
+ ] }) : /* @__PURE__ */ m.jsxs(Nn, { className: a, ...l, children: [
1480
+ /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1481
+ t
1482
1482
  ] });
1483
1483
  }
1484
- const ir = Ze({});
1485
- function ln(r) {
1484
+ const mn = Ct({});
1485
+ function Zn(n) {
1486
1486
  const {
1487
- isVisibled: n,
1488
- makeInvisible: t,
1489
- children: i,
1487
+ isVisibled: t,
1488
+ makeInvisible: a,
1489
+ children: s,
1490
1490
  className: l = "",
1491
- ...u
1492
- } = r, a = `arkyn_modal_container ${n ? "visible" : ""} ${l}`;
1493
- return /* @__PURE__ */ o.jsx(ir.Provider, { value: { makeInvisible: t }, children: /* @__PURE__ */ o.jsx(Wr, { children: n && /* @__PURE__ */ o.jsxs("aside", { className: a.trim(), ...u, children: [
1494
- /* @__PURE__ */ o.jsx(
1495
- Ke.div,
1491
+ ...c
1492
+ } = n, u = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1493
+ return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: u.trim(), ...c, children: [
1494
+ /* @__PURE__ */ m.jsx(
1495
+ Yt.div,
1496
1496
  {
1497
1497
  className: "overlay",
1498
1498
  transition: { duration: 0.15, ease: "easeOut" },
1499
1499
  initial: { opacity: 0 },
1500
1500
  animate: { opacity: 1 },
1501
1501
  exit: { opacity: 0 },
1502
- onClick: t
1502
+ onClick: a
1503
1503
  }
1504
1504
  ),
1505
- /* @__PURE__ */ o.jsx(
1506
- Ke.div,
1505
+ /* @__PURE__ */ m.jsx(
1506
+ Yt.div,
1507
1507
  {
1508
1508
  className: "content",
1509
1509
  transition: { duration: 0.15, ease: "easeOut" },
1510
1510
  initial: { opacity: 0, scale: 0.75 },
1511
1511
  animate: { opacity: 1, scale: 1 },
1512
1512
  exit: { opacity: 0, scale: 0 },
1513
- children: i
1513
+ children: s
1514
1514
  }
1515
1515
  )
1516
1516
  ] }) }) });
1517
1517
  }
1518
- function un(r) {
1519
- const { alignment: n = "right", className: t, ...i } = r, l = `arkyn_modal_footer ${n} ${t}`;
1520
- return /* @__PURE__ */ o.jsx("footer", { className: l.trim(), ...i });
1518
+ function Qn(n) {
1519
+ const { alignment: t = "right", className: a, ...s } = n, l = `arkyn_modal_footer ${t} ${a}`;
1520
+ return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
1521
1521
  }
1522
- function fn(r) {
1523
- const { showCloseButton: n, className: t, children: i, ...l } = r, { makeInvisible: u } = Qe(ir), a = `arkyn_modal_header ${n ? "show-close" : ""} ${t}`;
1524
- return /* @__PURE__ */ o.jsxs("header", { className: a.trim(), ...l, children: [
1525
- i,
1526
- /* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ o.jsx(Tr, { size: 24 }) })
1522
+ function er(n) {
1523
+ const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: c } = gt(mn), u = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1524
+ return /* @__PURE__ */ m.jsxs("header", { className: u.trim(), ...l, children: [
1525
+ s,
1526
+ /* @__PURE__ */ m.jsx("button", { type: "button", onClick: c, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1527
1527
  ] });
1528
1528
  }
1529
- const Pn = { Container: ln, Header: fn, Footer: un };
1530
- function In(r) {
1529
+ const la = { Container: Zn, Header: er, Footer: Qn };
1530
+ function ca(n) {
1531
1531
  const {
1532
- text: n,
1533
- size: t = "lg",
1534
- children: i,
1532
+ text: t,
1533
+ size: a = "lg",
1534
+ children: s,
1535
1535
  orientation: l = "top",
1536
- className: u,
1537
- ...f
1538
- } = r;
1539
- return /* @__PURE__ */ o.jsxs(
1536
+ className: c,
1537
+ ...h
1538
+ } = n;
1539
+ return /* @__PURE__ */ m.jsxs(
1540
1540
  "div",
1541
1541
  {
1542
- className: `arkyn_tooltip ${t} ${l} ${u}`,
1543
- ...f,
1542
+ className: `arkyn_tooltip ${a} ${l} ${c}`,
1543
+ ...h,
1544
1544
  children: [
1545
- i,
1546
- /* @__PURE__ */ o.jsx("div", { className: "arkyn_tooltip_text", children: n })
1545
+ s,
1546
+ /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: t })
1547
1547
  ]
1548
1548
  }
1549
1549
  );
1550
1550
  }
1551
- function wn(r = "") {
1552
- const n = rr(), t = new URLSearchParams(n.search), i = r ? `${r}:` : "", l = (u) => {
1553
- Object.entries(u).forEach(([f, a]) => {
1554
- a === void 0 ? t.delete(`${i}${f}`) : t.set(`${i}${f}`, String(a));
1551
+ const Wt = Ct({});
1552
+ function ua() {
1553
+ const n = sn(), { closeModal: t } = gt(Wt);
1554
+ Sn(() => {
1555
+ const a = n == null ? void 0 : n.closeModalKey;
1556
+ a && t(a);
1557
+ }, [n]);
1558
+ }
1559
+ function da(n) {
1560
+ const t = gt(Wt);
1561
+ if (Object.entries(t).length === 0)
1562
+ throw new Error("useModal must be used within a Provider");
1563
+ if (n) {
1564
+ const {
1565
+ modalData: a,
1566
+ modalIsOpen: s,
1567
+ openModal: l,
1568
+ closeModal: c
1569
+ } = t, h = s(n), u = a(n);
1570
+ return { modalIsOpen: h, modalData: u, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => c(n) };
1571
+ } else
1572
+ return t;
1573
+ }
1574
+ function fa(n = "") {
1575
+ const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (c) => {
1576
+ Object.entries(c).forEach(([h, u]) => {
1577
+ u === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(u));
1555
1578
  });
1556
1579
  };
1557
1580
  return {
1558
- getParam: (u) => t.get(`${i}${u}`),
1559
- getScopedSearch: (u) => {
1560
- l(u);
1561
- let f = t.toString();
1562
- return f && (f = "?" + f), f;
1581
+ getParam: (c) => a.get(`${s}${c}`),
1582
+ getScopedSearch: (c) => {
1583
+ l(c);
1584
+ let h = a.toString();
1585
+ return h && (h = "?" + h), h;
1563
1586
  }
1564
1587
  };
1565
1588
  }
1589
+ const pn = Ct({});
1590
+ function ma() {
1591
+ const n = gt(pn);
1592
+ if (Object.entries(n).length === 0)
1593
+ throw new Error("useToast must be used within a Provider");
1594
+ return n;
1595
+ }
1596
+ function pa(n) {
1597
+ const { children: t = !1 } = n, [a, s] = De([]);
1598
+ function l(p) {
1599
+ return !!a.some((o) => o.key === p);
1600
+ }
1601
+ function c(p) {
1602
+ var o;
1603
+ return (o = a.find((y) => y.key === p)) == null ? void 0 : o.data;
1604
+ }
1605
+ function h(p, o) {
1606
+ s([...a, { key: p, data: o }]);
1607
+ }
1608
+ function u(p) {
1609
+ s(a.filter((o) => o.key !== p));
1610
+ }
1611
+ return /* @__PURE__ */ m.jsx(
1612
+ Wt.Provider,
1613
+ {
1614
+ value: { modalIsOpen: l, modalData: c, openModal: h, closeModal: u },
1615
+ children: t
1616
+ }
1617
+ );
1618
+ }
1619
+ var { entries: hn, setPrototypeOf: qt, isFrozen: tr, getPrototypeOf: nr, getOwnPropertyDescriptor: rr } = Object, { freeze: xe, seal: Re, create: gn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
1620
+ xe || (xe = function(n) {
1621
+ return n;
1622
+ });
1623
+ Re || (Re = function(n) {
1624
+ return n;
1625
+ });
1626
+ zt || (zt = function(n, t, a) {
1627
+ return n.apply(t, a);
1628
+ });
1629
+ $t || ($t = function(n, t) {
1630
+ return new n(...t);
1631
+ });
1632
+ var wt = _e(Array.prototype.forEach), Jt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Zt = _e(String.prototype.match), pt = _e(String.prototype.replace), ar = _e(String.prototype.indexOf), or = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = sr(TypeError);
1633
+ function _e(n) {
1634
+ return function(t) {
1635
+ for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
1636
+ s[l - 1] = arguments[l];
1637
+ return zt(n, t, s);
1638
+ };
1639
+ }
1640
+ function sr(n) {
1641
+ return function() {
1642
+ for (var t = arguments.length, a = new Array(t), s = 0; s < t; s++)
1643
+ a[s] = arguments[s];
1644
+ return $t(n, a);
1645
+ };
1646
+ }
1647
+ function $(n, t) {
1648
+ let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1649
+ qt && qt(n, null);
1650
+ let s = t.length;
1651
+ for (; s--; ) {
1652
+ let l = t[s];
1653
+ if (typeof l == "string") {
1654
+ let c = a(l);
1655
+ c !== l && (tr(t) || (t[s] = c), l = c);
1656
+ }
1657
+ n[l] = !0;
1658
+ }
1659
+ return n;
1660
+ }
1661
+ function ir(n) {
1662
+ for (let t = 0; t < n.length; t++)
1663
+ Pe(n, t) || (n[t] = null);
1664
+ return n;
1665
+ }
1666
+ function Ze(n) {
1667
+ let t = gn(null);
1668
+ for (let [a, s] of hn(n))
1669
+ Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
1670
+ return t;
1671
+ }
1672
+ function Et(n, t) {
1673
+ for (; n !== null; ) {
1674
+ let s = rr(n, t);
1675
+ if (s) {
1676
+ if (s.get)
1677
+ return _e(s.get);
1678
+ if (typeof s.value == "function")
1679
+ return _e(s.value);
1680
+ }
1681
+ n = nr(n);
1682
+ }
1683
+ function a() {
1684
+ return null;
1685
+ }
1686
+ return a;
1687
+ }
1688
+ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), lr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cr = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), en = xe(["#text"]), tn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), nn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ur = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dr = Re(/<%[\w\W]*|[\w\W]*%>/gm), fr = Re(/\${[\w\W]*}/gm), mr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), pr = Re(/^aria-[\-\w]+$/), vn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), hr = Re(/^(?:\w+script|data):/i), gr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), yn = Re(/^html$/i), vr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), rn = Object.freeze({ __proto__: null, MUSTACHE_EXPR: ur, ERB_EXPR: dr, TMPLIT_EXPR: fr, DATA_ATTR: mr, ARIA_ATTR: pr, IS_ALLOWED_URI: vn, IS_SCRIPT_OR_DATA: hr, ATTR_WHITESPACE: gr, DOCTYPE_NAME: yn, CUSTOM_ELEMENT: vr }), yr = function() {
1689
+ return typeof window > "u" ? null : window;
1690
+ }, br = function(n, t) {
1691
+ if (typeof n != "object" || typeof n.createPolicy != "function")
1692
+ return null;
1693
+ let a = null, s = "data-tt-policy-suffix";
1694
+ t && t.hasAttribute(s) && (a = t.getAttribute(s));
1695
+ let l = "dompurify" + (a ? "#" + a : "");
1696
+ try {
1697
+ return n.createPolicy(l, { createHTML(c) {
1698
+ return c;
1699
+ }, createScriptURL(c) {
1700
+ return c;
1701
+ } });
1702
+ } catch {
1703
+ return console.warn("TrustedTypes policy " + l + " could not be created."), null;
1704
+ }
1705
+ };
1706
+ function bn() {
1707
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1708
+ if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1709
+ return t.isSupported = !1, t;
1710
+ let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: c, HTMLTemplateElement: h, Node: u, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: N, DOMParser: k, trustedTypes: b } = n, O = p.prototype, P = Et(O, "cloneNode"), W = Et(O, "nextSibling"), T = Et(O, "childNodes"), w = Et(O, "parentNode");
1711
+ if (typeof h == "function") {
1712
+ let e = a.createElement("template");
1713
+ e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1714
+ }
1715
+ let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1716
+ t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
1717
+ let { MUSTACHE_EXPR: F, ERB_EXPR: te, TMPLIT_EXPR: _, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: K, ATTR_WHITESPACE: ue, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: se } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ce = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml", ze = le, Ye = !1, E = null, oe = $({}, [Fe, Ce, le], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1718
+ return e instanceof RegExp || e instanceof Function;
1719
+ }, tt = function() {
1720
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1721
+ if (!(be && be === e)) {
1722
+ if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, ne) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, ne) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, ne) : ke, ce = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, ne) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, se = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || le, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ce.tbody), e.TRUSTED_TYPES_POLICY) {
1723
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1724
+ throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1725
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1726
+ throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1727
+ C = e.TRUSTED_TYPES_POLICY, H = C.createHTML("");
1728
+ } else
1729
+ C === void 0 && (C = br(b, l)), C !== null && typeof H == "string" && (H = C.createHTML(""));
1730
+ xe && xe(e), be = e;
1731
+ }
1732
+ }, vt = $({}, ["mi", "mo", "mn", "ms", "mtext"]), it = $({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = $({}, ["title", "style", "font", "a", "script"]), lt = $({}, [...Ot, ...Pt, ...lr]), ct = $({}, [...jt, ...cr]), It = function(e) {
1733
+ let f = w(e);
1734
+ (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1735
+ let i = Nt(e.tagName), A = Nt(f.tagName);
1736
+ return E[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === le ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (A === "annotation-xml" || vt[A]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === le ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[A] : !!ct[i] : e.namespaceURI === le ? f.namespaceURI === Ce && !it[A] || f.namespaceURI === Fe && !vt[A] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Z === "application/xhtml+xml" && E[e.namespaceURI]) : !1;
1737
+ }, Ve = function(e) {
1738
+ mt(t.removed, { element: e });
1739
+ try {
1740
+ e.parentNode.removeChild(e);
1741
+ } catch {
1742
+ e.remove();
1743
+ }
1744
+ }, nt = function(e, f) {
1745
+ try {
1746
+ mt(t.removed, { attribute: f.getAttributeNode(e), from: f });
1747
+ } catch {
1748
+ mt(t.removed, { attribute: null, from: f });
1749
+ }
1750
+ if (f.removeAttribute(e), e === "is" && !x[e])
1751
+ if (ae || me)
1752
+ try {
1753
+ Ve(f);
1754
+ } catch {
1755
+ }
1756
+ else
1757
+ try {
1758
+ f.setAttribute(e, "");
1759
+ } catch {
1760
+ }
1761
+ }, ut = function(e) {
1762
+ let f = null, i = null;
1763
+ if (qe)
1764
+ e = "<remove></remove>" + e;
1765
+ else {
1766
+ let L = Zt(e, /^[\r\n\t ]+/);
1767
+ i = L && L[0];
1768
+ }
1769
+ Z === "application/xhtml+xml" && ze === le && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1770
+ let A = C ? C.createHTML(e) : e;
1771
+ if (ze === le)
1772
+ try {
1773
+ f = new k().parseFromString(A, Z);
1774
+ } catch {
1775
+ }
1776
+ if (!f || !f.documentElement) {
1777
+ f = z.createDocument(ze, "template", null);
1778
+ try {
1779
+ f.documentElement.innerHTML = Ye ? H : A;
1780
+ } catch {
1781
+ }
1782
+ }
1783
+ let j = f.body || f.documentElement;
1784
+ return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === le ? Q.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1785
+ }, yt = function(e) {
1786
+ return J.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1787
+ }, At = function(e) {
1788
+ return e instanceof N && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1789
+ }, bt = function(e) {
1790
+ return typeof u == "function" && e instanceof u;
1791
+ }, Oe = function(e, f, i) {
1792
+ V[e] && wt(V[e], (A) => {
1793
+ A.call(t, f, i, be);
1794
+ });
1795
+ }, r = function(e) {
1796
+ let f = null;
1797
+ if (Oe("beforeSanitizeElements", e, null), At(e))
1798
+ return Ve(e), !0;
1799
+ let i = ne(e.nodeName);
1800
+ if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1801
+ return Ve(e), !0;
1802
+ if (!G[i] || ce[i]) {
1803
+ if (!ce[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1804
+ return !1;
1805
+ if (Be && !Le[i]) {
1806
+ let A = w(e) || e.parentNode, j = T(e) || e.childNodes;
1807
+ if (j && A) {
1808
+ let L = j.length;
1809
+ for (let ie = L - 1; ie >= 0; --ie)
1810
+ A.insertBefore(P(j[ie], !0), W(e));
1811
+ }
1812
+ }
1813
+ return Ve(e), !0;
1814
+ }
1815
+ return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, te, _], (A) => {
1816
+ f = pt(f, A, " ");
1817
+ }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1818
+ }, d = function(e, f, i) {
1819
+ if (Je && (f === "id" || f === "name") && (i in a || i in st))
1820
+ return !1;
1821
+ if (!(ve && !M[f] && Te(R, f)) && !(pe && Te(B, f))) {
1822
+ if (!x[f] || M[f]) {
1823
+ if (!(g(e) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && Te(I.attributeNameCheck, f) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(f)) || f === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i))))
1824
+ return !1;
1825
+ } else if (!We[f] && !Te(se, pt(i, ue, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(K, pt(i, ue, ""))) && i)
1826
+ return !1;
1827
+ }
1828
+ return !0;
1829
+ }, g = function(e) {
1830
+ return e !== "annotation-xml" && Zt(e, ee);
1831
+ }, S = function(e) {
1832
+ Oe("beforeSanitizeAttributes", e, null);
1833
+ let { attributes: f } = e;
1834
+ if (!f)
1835
+ return;
1836
+ let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, A = f.length;
1837
+ for (; A--; ) {
1838
+ let j = f[A], { name: L, namespaceURI: ie, value: ge } = j, de = ne(L), q = L === "value" ? ge : or(ge);
1839
+ if (i.attrName = de, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(L, e), !i.keepAttr))
1840
+ continue;
1841
+ if (!we && Te(/\/>/i, q)) {
1842
+ nt(L, e);
1843
+ continue;
1844
+ }
1845
+ Ae && wt([F, te, _], (xt) => {
1846
+ q = pt(q, xt, " ");
1847
+ });
1848
+ let rt = ne(e.nodeName);
1849
+ if (d(rt, de, q)) {
1850
+ if (Ne && (de === "id" || de === "name") && (nt(L, e), q = ot + q), C && typeof b == "object" && typeof b.getAttributeType == "function" && !ie)
1851
+ switch (b.getAttributeType(rt, de)) {
1852
+ case "TrustedHTML": {
1853
+ q = C.createHTML(q);
1854
+ break;
1855
+ }
1856
+ case "TrustedScriptURL": {
1857
+ q = C.createScriptURL(q);
1858
+ break;
1859
+ }
1860
+ }
1861
+ try {
1862
+ ie ? e.setAttributeNS(ie, L, q) : e.setAttribute(L, q), Jt(t.removed);
1863
+ } catch {
1864
+ }
1865
+ }
1866
+ }
1867
+ Oe("afterSanitizeAttributes", e, null);
1868
+ }, Y = function e(f) {
1869
+ let i = null, A = yt(f);
1870
+ for (Oe("beforeSanitizeShadowDOM", f, null); i = A.nextNode(); )
1871
+ Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof c && e(i.content), S(i));
1872
+ Oe("afterSanitizeShadowDOM", f, null);
1873
+ };
1874
+ return t.sanitize = function(e) {
1875
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, A = null, j = null, L = null;
1876
+ if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1877
+ if (typeof e.toString == "function") {
1878
+ if (e = e.toString(), typeof e != "string")
1879
+ throw ht("dirty is not a string, aborting");
1880
+ } else
1881
+ throw ht("toString is not a function");
1882
+ if (!t.isSupported)
1883
+ return e;
1884
+ if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1885
+ if (e.nodeName) {
1886
+ let de = ne(e.nodeName);
1887
+ if (!G[de] || ce[de])
1888
+ throw ht("root node is forbidden and cannot be sanitized in-place");
1889
+ }
1890
+ } else if (e instanceof u)
1891
+ i = ut("<!---->"), A = i.ownerDocument.importNode(e, !0), A.nodeType === 1 && A.nodeName === "BODY" || A.nodeName === "HTML" ? i = A : i.appendChild(A);
1892
+ else {
1893
+ if (!ae && !Ae && !fe && e.indexOf("<") === -1)
1894
+ return C && $e ? C.createHTML(e) : e;
1895
+ if (i = ut(e), !i)
1896
+ return ae ? null : $e ? H : "";
1897
+ }
1898
+ i && qe && Ve(i.firstChild);
1899
+ let ie = yt(Se ? e : i);
1900
+ for (; j = ie.nextNode(); )
1901
+ r(j) || (j.content instanceof c && Y(j.content), S(j));
1902
+ if (Se)
1903
+ return e;
1904
+ if (ae) {
1905
+ if (me)
1906
+ for (L = X.call(i.ownerDocument); i.firstChild; )
1907
+ L.appendChild(i.firstChild);
1908
+ else
1909
+ L = i;
1910
+ return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
1911
+ }
1912
+ let ge = fe ? i.outerHTML : i.innerHTML;
1913
+ return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1914
+ ` + ge), Ae && wt([F, te, _], (de) => {
1915
+ ge = pt(ge, de, " ");
1916
+ }), C && $e ? C.createHTML(ge) : ge;
1917
+ }, t.setConfig = function() {
1918
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1919
+ tt(e), Xe = !0;
1920
+ }, t.clearConfig = function() {
1921
+ be = null, Xe = !1;
1922
+ }, t.isValidAttribute = function(e, f, i) {
1923
+ be || tt({});
1924
+ let A = ne(e), j = ne(f);
1925
+ return d(A, j, i);
1926
+ }, t.addHook = function(e, f) {
1927
+ typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1928
+ }, t.removeHook = function(e) {
1929
+ if (V[e])
1930
+ return Jt(V[e]);
1931
+ }, t.removeHooks = function(e) {
1932
+ V[e] && (V[e] = []);
1933
+ }, t.removeAllHooks = function() {
1934
+ V = {};
1935
+ }, t;
1936
+ }
1937
+ var xr = bn(), wr = (n) => {
1938
+ switch (n) {
1939
+ case "success":
1940
+ return Tr;
1941
+ case "info":
1942
+ return Nr;
1943
+ case "warning":
1944
+ return _r;
1945
+ case "error":
1946
+ return kr;
1947
+ default:
1948
+ return null;
1949
+ }
1950
+ }, Er = Array(12).fill(0), Sr = ({ visible: n }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": n }, v.createElement("div", { className: "sonner-spinner" }, Er.map((t, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), Tr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Cr = () => {
1951
+ let [n, t] = v.useState(!1);
1952
+ return v.useEffect(() => {
1953
+ let a = () => {
1954
+ t(document.hidden);
1955
+ };
1956
+ return document.addEventListener("visibilitychange", a), () => window.removeEventListener("visibilitychange", a);
1957
+ }, []), n;
1958
+ }, Ft = 1, Rr = class {
1959
+ constructor() {
1960
+ this.subscribe = (n) => (this.subscribers.push(n), () => {
1961
+ let t = this.subscribers.indexOf(n);
1962
+ this.subscribers.splice(t, 1);
1963
+ }), this.publish = (n) => {
1964
+ this.subscribers.forEach((t) => t(n));
1965
+ }, this.addToast = (n) => {
1966
+ this.publish(n), this.toasts = [...this.toasts, n];
1967
+ }, this.create = (n) => {
1968
+ var t;
1969
+ let { message: a, ...s } = n, l = typeof (n == null ? void 0 : n.id) == "number" || ((t = n.id) == null ? void 0 : t.length) > 0 ? n.id : Ft++, c = this.toasts.find((u) => u.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1970
+ return c ? this.toasts = this.toasts.map((u) => u.id === l ? (this.publish({ ...u, ...n, id: l, title: a }), { ...u, ...n, id: l, dismissible: h, title: a }) : u) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1971
+ }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1972
+ this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1973
+ }), this.subscribers.forEach((t) => t({ id: n, dismiss: !0 })), n), this.message = (n, t) => this.create({ ...t, message: n }), this.error = (n, t) => this.create({ ...t, message: n, type: "error" }), this.success = (n, t) => this.create({ ...t, type: "success", message: n }), this.info = (n, t) => this.create({ ...t, type: "info", message: n }), this.warning = (n, t) => this.create({ ...t, type: "warning", message: n }), this.loading = (n, t) => this.create({ ...t, type: "loading", message: n }), this.promise = (n, t) => {
1974
+ if (!t)
1975
+ return;
1976
+ let a;
1977
+ t.loading !== void 0 && (a = this.create({ ...t, promise: n, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1978
+ let s = n instanceof Promise ? n : n(), l = a !== void 0;
1979
+ return s.then((c) => {
1980
+ if (c && typeof c.ok == "boolean" && !c.ok) {
1981
+ l = !1;
1982
+ let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${c.status}`) : t.error, u = typeof t.description == "function" ? t.description(`HTTP error! status: ${c.status}`) : t.description;
1983
+ this.create({ id: a, type: "error", message: h, description: u });
1984
+ } else if (t.success !== void 0) {
1985
+ l = !1;
1986
+ let h = typeof t.success == "function" ? t.success(c) : t.success, u = typeof t.description == "function" ? t.description(c) : t.description;
1987
+ this.create({ id: a, type: "success", message: h, description: u });
1988
+ }
1989
+ }).catch((c) => {
1990
+ if (t.error !== void 0) {
1991
+ l = !1;
1992
+ let h = typeof t.error == "function" ? t.error(c) : t.error, u = typeof t.description == "function" ? t.description(c) : t.description;
1993
+ this.create({ id: a, type: "error", message: h, description: u });
1994
+ }
1995
+ }).finally(() => {
1996
+ var c;
1997
+ l && (this.dismiss(a), a = void 0), (c = t.finally) == null || c.call(t);
1998
+ }), a;
1999
+ }, this.custom = (n, t) => {
2000
+ let a = (t == null ? void 0 : t.id) || Ft++;
2001
+ return this.create({ jsx: n(a), id: a, ...t }), a;
2002
+ }, this.subscribers = [], this.toasts = [];
2003
+ }
2004
+ }, je = new Rr(), Ir = (n, t) => {
2005
+ let a = (t == null ? void 0 : t.id) || Ft++;
2006
+ return je.addToast({ title: n, ...t, id: a }), a;
2007
+ }, Ar = Ir, Tt = Object.assign(Ar, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
2008
+ function Lr(n, { insertAt: t } = {}) {
2009
+ if (!n || typeof document > "u")
2010
+ return;
2011
+ let a = document.head || document.getElementsByTagName("head")[0], s = document.createElement("style");
2012
+ s.type = "text/css", t === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = n : s.appendChild(document.createTextNode(n));
2013
+ }
2014
+ Lr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2015
+ `);
2016
+ function _t(n) {
2017
+ return n.label !== void 0 && typeof n.onClick == "function";
2018
+ }
2019
+ var Or = 3, Pr = "32px", jr = 4e3, Dr = 356, Mr = 14, zr = 20, $r = 200;
2020
+ function Fr(...n) {
2021
+ return n.filter(Boolean).join(" ");
2022
+ }
2023
+ var Br = (n) => {
2024
+ var t, a, s, l, c, h, u;
2025
+ let { invert: p, toast: o, unstyled: y, interacting: N, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: T, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: J, className: X = "", descriptionClassName: Q = "", duration: re, position: V, gap: F, loadingIcon: te, expandByDefault: _, classNames: R, icons: B, closeButtonAriaLabel: K = "Close toast", pauseWhenPageIsHidden: ue, cn: ee } = n, [se, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ce, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2026
+ var E;
2027
+ return (E = o.closeButton) != null ? E : C;
2028
+ }, [o.closeButton, C]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((E, oe, Z) => Z >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
2029
+ ye.current = v.useMemo(() => Ne * F + We, [Ne, We]), v.useEffect(() => {
2030
+ G(!0);
2031
+ }, []), v.useLayoutEffect(() => {
2032
+ if (!se)
2033
+ return;
2034
+ let E = fe.current, oe = E.style.height;
2035
+ E.style.height = "auto";
2036
+ let Z = E.getBoundingClientRect().height;
2037
+ E.style.height = oe, we(Z), k((Ee) => Ee.find((he) => he.toastId === o.id) ? Ee.map((he) => he.toastId === o.id ? { ...he, height: Z } : he) : [{ toastId: o.id, height: Z, position: o.position }, ...Ee]);
2038
+ }, [se, o.title, o.description, k, o.id]);
2039
+ let le = v.useCallback(() => {
2040
+ x(!0), ve(ye.current), k((E) => E.filter((oe) => oe.toastId !== o.id)), setTimeout(() => {
2041
+ w(o);
2042
+ }, $r);
2043
+ }, [o, w, k, ye]);
2044
+ v.useEffect(() => {
2045
+ if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
2046
+ return;
2047
+ let E, oe = Be;
2048
+ return T || N || ue && He ? (() => {
2049
+ if (Le.current < Se.current) {
2050
+ let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2051
+ oe = oe - Z;
2052
+ }
2053
+ Le.current = (/* @__PURE__ */ new Date()).getTime();
2054
+ })() : oe !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
2055
+ var Z;
2056
+ (Z = o.onAutoClose) == null || Z.call(o, o), le();
2057
+ }, oe)), () => clearTimeout(E);
2058
+ }, [T, N, _, o, Be, le, o.promise, ae, ue, He]), v.useEffect(() => {
2059
+ let E = fe.current;
2060
+ if (E) {
2061
+ let oe = E.getBoundingClientRect().height;
2062
+ return we(oe), k((Z) => [{ toastId: o.id, height: oe, position: o.position }, ...Z]), () => k((Z) => Z.filter((Ee) => Ee.toastId !== o.id));
2063
+ }
2064
+ }, [k, o.id]), v.useEffect(() => {
2065
+ o.delete && le();
2066
+ }, [le, o.delete]);
2067
+ function ze() {
2068
+ return B != null && B.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, B.loading) : te ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, te) : v.createElement(Sr, { visible: ae === "loading" });
2069
+ }
2070
+ function Ye(E) {
2071
+ return { __html: xr.sanitize(E) };
2072
+ }
2073
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(X, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": se, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ce, "data-expanded": !!(T || _ && se), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": _ ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
2074
+ Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (I(!0), ke.current = { x: E.clientX, y: E.clientY }));
2075
+ }, onPointerUp: () => {
2076
+ var E, oe, Z, Ee;
2077
+ if (ce || !me)
2078
+ return;
2079
+ ke.current = null;
2080
+ let he = Number(((E = fe.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((oe = Ae.current) == null ? void 0 : oe.getTime()), be = Math.abs(he) / ne;
2081
+ if (Math.abs(he) >= zr || be > 0.11) {
2082
+ ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), le(), M(!0);
2083
+ return;
2084
+ }
2085
+ (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), I(!1);
2086
+ }, onPointerMove: (E) => {
2087
+ var oe;
2088
+ if (!ke.current || !me)
2089
+ return;
2090
+ let Z = E.clientY - ke.current.y, Ee = E.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Z), ne = E.pointerType === "touch" ? 10 : 2;
2091
+ Math.abs(he) > ne ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2092
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": K, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2093
+ } : () => {
2094
+ var E;
2095
+ le(), (E = o.onDismiss) == null || E.call(o, o);
2096
+ }, className: ee(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, ae || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (B == null ? void 0 : B[ae]) || wr(ae) : null) : null, v.createElement("div", { "data-content": "", className: ee(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: ee(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: ee(Q, Je, R == null ? void 0 : R.description, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || z, onClick: (E) => {
2097
+ _t(o.cancel) && me && (le(), o.cancel.onClick(E));
2098
+ }, className: ee(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || J, onClick: (E) => {
2099
+ _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && le());
2100
+ }, className: ee(R == null ? void 0 : R.actionButton, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.actionButton) }, o.action.label) : null));
2101
+ };
2102
+ function an() {
2103
+ if (typeof window > "u" || typeof document > "u")
2104
+ return "ltr";
2105
+ let n = document.documentElement.getAttribute("dir");
2106
+ return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2107
+ }
2108
+ var Ur = (n) => {
2109
+ let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: N, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: T, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, J] = v.useState([]), X = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [Q, re] = v.useState([]), [V, F] = v.useState(!1), [te, _] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = v.useRef(null), ue = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), se = v.useRef(!1), G = v.useCallback((D) => J((x) => x.filter(({ id: U }) => U !== D.id)), []);
2110
+ return v.useEffect(() => je.subscribe((D) => {
2111
+ if (D.dismiss) {
2112
+ J((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
2113
+ return;
2114
+ }
2115
+ setTimeout(() => {
2116
+ Rn.flushSync(() => {
2117
+ J((x) => {
2118
+ let U = x.findIndex((I) => I.id === D.id);
2119
+ return U !== -1 ? [...x.slice(0, U), { ...x[U], ...D }, ...x.slice(U + 1)] : [D, ...x];
2120
+ });
2121
+ });
2122
+ });
2123
+ }), []), v.useEffect(() => {
2124
+ if (p !== "system") {
2125
+ B(p);
2126
+ return;
2127
+ }
2128
+ p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? B("dark") : B("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: D }) => {
2129
+ B(D ? "dark" : "light");
2130
+ });
2131
+ }, [p]), v.useEffect(() => {
2132
+ z.length <= 1 && F(!1);
2133
+ }, [z]), v.useEffect(() => {
2134
+ let D = (x) => {
2135
+ var U, I;
2136
+ s.every((ce) => x[ce] || x.code === ce) && (F(!0), (U = K.current) == null || U.focus()), x.code === "Escape" && (document.activeElement === K.current || (I = K.current) != null && I.contains(document.activeElement)) && F(!1);
2137
+ };
2138
+ return document.addEventListener("keydown", D), () => document.removeEventListener("keydown", D);
2139
+ }, [s]), v.useEffect(() => {
2140
+ if (K.current)
2141
+ return () => {
2142
+ ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, se.current = !1);
2143
+ };
2144
+ }, [K.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${ue}`, tabIndex: -1 }, X.map((D, x) => {
2145
+ var U;
2146
+ let [I, ce] = D.split("-");
2147
+ return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: K, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ce, style: { "--front-toast-height": `${((U = Q[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...N }, onBlur: (M) => {
2148
+ se.current && !M.currentTarget.contains(M.relatedTarget) && (se.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2149
+ }, onFocus: (M) => {
2150
+ M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || se.current || (se.current = !0, ee.current = M.relatedTarget);
2151
+ }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
2152
+ te || F(!1);
2153
+ }, onPointerDown: (M) => {
2154
+ M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || _(!0);
2155
+ }, onPointerUp: () => _(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
2156
+ var ve, Ie;
2157
+ return v.createElement(Br, { key: M.id, icons: T, index: pe, toast: M, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: te, position: D, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: z.filter((we) => we.position == M.position), heights: Q.filter((we) => we.position == M.position), setHeights: re, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
2158
+ }));
2159
+ })) : null;
2160
+ };
2161
+ /*! Bundled license information:
2162
+
2163
+ dompurify/dist/purify.es.mjs:
2164
+ (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
2165
+ */
2166
+ function ha({ children: n }) {
2167
+ function t(c) {
2168
+ Tt.success(c);
2169
+ }
2170
+ function a(c) {
2171
+ Tt.info(c);
2172
+ }
2173
+ function s(c) {
2174
+ Tt.error(c);
2175
+ }
2176
+ function l(c) {
2177
+ Tt.warning(c);
2178
+ }
2179
+ return /* @__PURE__ */ m.jsxs(
2180
+ pn.Provider,
2181
+ {
2182
+ value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
2183
+ children: [
2184
+ /* @__PURE__ */ m.jsx(Ur, { richColors: !0 }),
2185
+ n
2186
+ ]
2187
+ }
2188
+ );
2189
+ }
1566
2190
  export {
1567
- gn as Badge,
1568
- Nn as Breadcrumb,
1569
- $n as BreadcrumbLink,
1570
- bn as Button,
1571
- _n as Checkbox,
1572
- xn as Divider,
1573
- Sn as FormController,
1574
- Cn as FormError,
1575
- kn as FormLabel,
1576
- jn as IconButton,
1577
- Rn as Input,
1578
- Pn as Modal,
1579
- En as Select,
1580
- yn as Skeleton,
1581
- In as Tooltip,
1582
- wn as useScopedParams
2191
+ Xr as Badge,
2192
+ sa as Breadcrumb,
2193
+ ia as BreadcrumbLink,
2194
+ Zr as Button,
2195
+ ea as Checkbox,
2196
+ qr as Divider,
2197
+ Qr as FormController,
2198
+ ta as FormError,
2199
+ na as FormLabel,
2200
+ ra as IconButton,
2201
+ aa as Input,
2202
+ la as Modal,
2203
+ pa as ModalProvider,
2204
+ oa as Select,
2205
+ Jr as Skeleton,
2206
+ ha as ToastProvider,
2207
+ ca as Tooltip,
2208
+ ua as useAutomation,
2209
+ da as useModal,
2210
+ fa as useScopedParams,
2211
+ ma as useToast
1583
2212
  };