@arkyn/components 1.2.5 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/bundle.js +1711 -1070
  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 +1 -2
  6. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -1
  7. package/dist/components/Input/CpfCpnjInput/getConfig.js +12 -1
  8. package/dist/components/Input/CpfCpnjInput/index.d.ts.map +1 -1
  9. package/dist/components/Input/CpfCpnjInput/index.js +2 -2
  10. package/dist/components/Input/CurrencyInput/getConfig.d.ts +0 -1
  11. package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -1
  12. package/dist/components/Input/MaskInput/getConfig.d.ts +0 -1
  13. package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -1
  14. package/dist/components/Input/MaskInput/getConfig.js +1 -1
  15. package/dist/components/Input/SimpleInput/getConfig.d.ts +0 -1
  16. package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -1
  17. package/dist/components/Select/getConfig.d.ts +1 -1
  18. package/dist/components/Select/getConfig.d.ts.map +1 -1
  19. package/dist/components/Select/index.d.ts.map +1 -1
  20. package/dist/components/Select/index.js +2 -2
  21. package/dist/components/Toast/index.d.ts +9 -0
  22. package/dist/components/Toast/index.d.ts.map +1 -0
  23. package/dist/components/Toast/index.js +6 -0
  24. package/dist/config/buildBadgeConfig.d.ts +0 -1
  25. package/dist/config/buildBadgeConfig.d.ts.map +1 -1
  26. package/dist/config/buildBreadcrumLinkConfig.d.ts +0 -1
  27. package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -1
  28. package/dist/config/buildBreadcrumbConfig.d.ts +0 -1
  29. package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -1
  30. package/dist/config/buildButtonConfig.d.ts +0 -1
  31. package/dist/config/buildButtonConfig.d.ts.map +1 -1
  32. package/dist/config/buildFormLabelConfig.d.ts +0 -1
  33. package/dist/config/buildFormLabelConfig.d.ts.map +1 -1
  34. package/dist/context/ModalContext.d.ts +5 -0
  35. package/dist/context/ModalContext.d.ts.map +1 -0
  36. package/dist/context/ModalContext.js +3 -0
  37. package/dist/context/ToastContext.d.ts +5 -0
  38. package/dist/context/ToastContext.d.ts.map +1 -0
  39. package/dist/context/ToastContext.js +3 -0
  40. package/dist/hooks/useAutomation.d.ts +3 -0
  41. package/dist/hooks/useAutomation.d.ts.map +1 -0
  42. package/dist/hooks/useAutomation.js +13 -0
  43. package/dist/hooks/useModal.d.ts +11 -0
  44. package/dist/hooks/useModal.d.ts.map +1 -0
  45. package/dist/hooks/useModal.js +15 -0
  46. package/dist/hooks/useToast.d.ts +3 -0
  47. package/dist/hooks/useToast.d.ts.map +1 -0
  48. package/dist/hooks/useToast.js +10 -0
  49. package/dist/index.d.ts +5 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +6 -0
  52. package/dist/provider/ModalProvider.d.ts +4 -0
  53. package/dist/provider/ModalProvider.d.ts.map +1 -0
  54. package/dist/provider/ModalProvider.js +21 -0
  55. package/dist/provider/ToastProvider.d.ts +4 -0
  56. package/dist/provider/ToastProvider.d.ts.map +1 -0
  57. package/dist/provider/ToastProvider.js +19 -0
  58. package/dist/style.css +1 -1
  59. package/package.json +3 -2
  60. package/src/components/Checkbox/index.tsx +1 -2
  61. package/src/components/Input/CpfCpnjInput/getConfig.tsx +15 -0
  62. package/src/components/Input/CpfCpnjInput/index.tsx +3 -4
  63. package/src/components/Input/MaskInput/getConfig.tsx +1 -1
  64. package/src/components/Select/index.tsx +5 -1
  65. package/src/components/Select/styles.css +1 -1
  66. package/src/components/Toast/index.tsx +19 -0
  67. package/src/components/Toast/styles.css +30 -0
  68. package/src/context/ModalContext.ts +6 -0
  69. package/src/context/ToastContext.ts +6 -0
  70. package/src/hooks/useAutomation.ts +16 -0
  71. package/src/hooks/useModal.ts +29 -0
  72. package/src/hooks/useToast.ts +14 -0
  73. package/src/index.ts +7 -0
  74. package/src/provider/ModalProvider.tsx +35 -0
  75. package/src/provider/ToastProvider.tsx +33 -0
package/dist/bundle.js CHANGED
@@ -1,9 +1,10 @@
1
- import Xe, { createContext as He, useRef as ue, useId as $r, useContext as Ze, useState as Q, forwardRef as Pr } from "react";
2
- import { Loader2 as ae, Check as Qe, ChevronDown as Ir, ChevronRight as Me, X as wr } from "lucide-react";
3
- import { useActionData as Or, useLocation as er, Link as Fr } from "@remix-run/react";
4
- import { InputMask as Tr } from "@react-input/mask";
5
- import { AnimatePresence as zr, motion as Ue } from "framer-motion";
6
- var Ne = { exports: {} }, he = {};
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: {} }, he = {};
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 Ke;
17
- function Lr() {
18
- if (Ke)
19
- return he;
20
- Ke = 1;
21
- var r = Xe, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = 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(c, d, h) {
23
- var p, g = {}, b = null, k = null;
24
- h !== void 0 && (b = "" + h), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (k = d.ref);
25
- for (p in d)
26
- o.call(d, p) && !u.hasOwnProperty(p) && (g[p] = d[p]);
27
- if (c && c.defaultProps)
28
- for (p in d = c.defaultProps, d)
29
- g[p] === void 0 && (g[p] = d[p]);
30
- return { $$typeof: n, type: c, key: b, ref: k, props: g, _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 he.Fragment = t, he.jsx = f, he.jsxs = f, he;
33
+ return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
33
34
  }
34
- var me = {};
35
+ var ft = {};
35
36
  /**
36
37
  * @license React
37
38
  * react-jsx-runtime.development.js
@@ -41,91 +42,91 @@ var me = {};
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 Je;
45
- function Dr() {
46
- return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
47
- var r = Xe, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), R = Symbol.iterator, E = "@@iterator";
48
- function N(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 = R && e[R] || e[E];
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 x = 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, a = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++)
58
- a[m - 1] = arguments[m];
59
- j("error", e, a);
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 j(e, s, a) {
63
+ function C(r, d, g) {
63
64
  {
64
- var m = x.ReactDebugCurrentFrame, C = m.getStackAddendum();
65
- C !== "" && (s += "%s", a = a.concat([C]));
66
- var $ = a.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
- $.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, $);
70
+ e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
70
71
  }
71
72
  }
72
- var I = !1, O = !1, T = !1, w = !1, z = !1, L;
73
- L = Symbol.for("react.module.reference");
74
- function A(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || z || e === l || e === h || e === p || w || e === k || I || O || T || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === g || e.$$typeof === f || e.$$typeof === c || 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 === L || e.getModuleId !== void 0));
80
+ r.$$typeof === re || r.getModuleId !== void 0));
80
81
  }
81
- function P(e, s, a) {
82
- var m = e.displayName;
83
- if (m)
84
- return m;
85
- var C = s.displayName || s.name || "";
86
- return C !== "" ? a + "(" + C + ")" : a;
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 _(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 o:
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 c:
115
- var s = e;
116
- return M(s) + ".Consumer";
117
- case f:
118
- var a = e;
119
- return M(a._context) + ".Provider";
120
- case d:
121
- return P(e, e.render, "ForwardRef");
122
- case g:
123
- var m = e.displayName || null;
124
- return m !== null ? m : _(e.type) || "Memo";
125
- case b: {
126
- var C = e, $ = C._payload, S = C._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 _(S($));
129
+ return _(f(e));
129
130
  } catch {
130
131
  return null;
131
132
  }
@@ -133,1436 +134,2076 @@ function Dr() {
133
134
  }
134
135
  return null;
135
136
  }
136
- var W = Object.assign, V = 0, B, re, ne, te, Z, U, K;
137
- function J() {
137
+ var R = Object.assign, B = 0, K, ue, ee, se, G, D, x;
138
+ function U() {
138
139
  }
139
- J.__reactDisabledLog = !0;
140
- function G() {
140
+ U.__reactDisabledLog = !0;
141
+ function I() {
141
142
  {
142
- if (V === 0) {
143
- B = console.log, re = console.info, ne = console.warn, te = console.error, Z = console.group, U = console.groupCollapsed, K = 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: J,
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
- V++;
161
+ B++;
161
162
  }
162
163
  }
163
- function X() {
164
+ function ce() {
164
165
  {
165
- if (V--, V === 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: W({}, e, {
173
- value: B
173
+ log: R({}, r, {
174
+ value: K
174
175
  }),
175
- info: W({}, e, {
176
- value: re
176
+ info: R({}, r, {
177
+ value: ue
177
178
  }),
178
- warn: W({}, e, {
179
- value: ne
179
+ warn: R({}, r, {
180
+ value: ee
180
181
  }),
181
- error: W({}, e, {
182
- value: te
182
+ error: R({}, r, {
183
+ value: se
183
184
  }),
184
- group: W({}, e, {
185
- value: Z
185
+ group: R({}, r, {
186
+ value: G
186
187
  }),
187
- groupCollapsed: W({}, e, {
188
- value: U
188
+ groupCollapsed: R({}, r, {
189
+ value: D
189
190
  }),
190
- groupEnd: W({}, e, {
191
- value: K
191
+ groupEnd: R({}, r, {
192
+ value: x
192
193
  })
193
194
  });
194
195
  }
195
- V < 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 ee = x.ReactCurrentDispatcher, be;
199
- function pe(e, s, a) {
199
+ var M = T.ReactCurrentDispatcher, pe;
200
+ function ve(r, d, g) {
200
201
  {
201
- if (be === void 0)
202
+ if (pe === void 0)
202
203
  try {
203
204
  throw Error();
204
- } catch (C) {
205
- var m = C.stack.trim().match(/\n( *(at )?)/);
206
- be = 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
- ` + be + e;
210
+ ` + pe + r;
210
211
  }
211
212
  }
212
- var Se = !1, ve;
213
+ var Ie = !1, we;
213
214
  {
214
- var sr = typeof WeakMap == "function" ? WeakMap : Map;
215
- ve = new sr();
215
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
+ we = new Ae();
216
217
  }
217
- function Pe(e, s) {
218
- if (!e || Se)
218
+ function fe(r, d) {
219
+ if (!r || Ie)
219
220
  return "";
220
221
  {
221
- var a = ve.get(e);
222
- if (a !== void 0)
223
- return a;
222
+ var g = we.get(r);
223
+ if (g !== void 0)
224
+ return g;
224
225
  }
225
- var m;
226
- Se = !0;
227
- var C = Error.prepareStackTrace;
226
+ var S;
227
+ Ie = !0;
228
+ var Y = Error.prepareStackTrace;
228
229
  Error.prepareStackTrace = void 0;
229
- var $;
230
- $ = ee.current, ee.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
+ Reflect.construct(f, []);
243
244
  } catch (q) {
244
- m = 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
+ f.call();
250
251
  } catch (q) {
251
- m = 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
259
  } catch (q) {
259
- m = q;
260
+ S = q;
260
261
  }
261
- e();
262
+ r();
262
263
  }
263
264
  } catch (q) {
264
- if (q && m && typeof q.stack == "string") {
265
- for (var y = q.stack.split(`
266
- `), Y = m.stack.split(`
267
- `), F = y.length - 1, D = Y.length - 1; F >= 1 && D >= 0 && y[F] !== Y[D]; )
268
- D--;
269
- for (; F >= 1 && D >= 0; F--, D--)
270
- if (y[F] !== Y[D]) {
271
- if (F !== 1 || D !== 1)
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 (F--, D--, D < 0 || y[F] !== Y[D]) {
274
- var H = `
275
- ` + y[F].replace(" at new ", " at ");
276
- return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && ve.set(e, H), H;
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 (F >= 1 && D >= 0);
279
+ while (j >= 1 && L >= 0);
279
280
  break;
280
281
  }
281
282
  }
282
283
  } finally {
283
- Se = !1, ee.current = $, X(), Error.prepareStackTrace = C;
284
+ Ie = !1, M.current = e, ce(), Error.prepareStackTrace = Y;
284
285
  }
285
- var le = e ? e.displayName || e.name : "", oe = le ? pe(le) : "";
286
- return typeof e == "function" && ve.set(e, oe), oe;
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 ir(e, s, a) {
289
- return Pe(e, !1);
289
+ function Xe(r, d, g) {
290
+ return fe(r, !1);
290
291
  }
291
- function or(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 ge(e, s, a) {
296
- if (e == null)
296
+ function ae(r, d, g) {
297
+ if (r == null)
297
298
  return "";
298
- if (typeof e == "function")
299
- return Pe(e, or(e));
300
- if (typeof e == "string")
301
- return pe(e);
302
- switch (e) {
303
- case h:
304
- return pe("Suspense");
305
- case p:
306
- return pe("SuspenseList");
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:
305
+ return ve("Suspense");
306
+ case y:
307
+ return ve("SuspenseList");
307
308
  }
308
- if (typeof e == "object")
309
- switch (e.$$typeof) {
310
- case d:
311
- return ir(e.render);
312
- case g:
313
- return ge(e.type, s, a);
314
- case b: {
315
- var m = e, C = m._payload, $ = 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 ge($(C), s, a);
318
+ return ae(e(Y), d, g);
318
319
  } catch {
319
320
  }
320
321
  }
321
322
  }
322
323
  return "";
323
324
  }
324
- var fe = Object.prototype.hasOwnProperty, Ie = {}, we = x.ReactDebugCurrentFrame;
325
- function xe(e) {
326
- if (e) {
327
- var s = e._owner, a = ge(e.type, e._source, s ? s.type : null);
328
- we.setExtraStackFrame(a);
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
- we.setExtraStackFrame(null);
331
+ Je.setExtraStackFrame(null);
331
332
  }
332
- function ar(e, s, a, m, C) {
333
+ function ot(r, d, g, S, Y) {
333
334
  {
334
- var $ = Function.call.bind(fe);
335
- for (var S in e)
336
- if ($(e, S)) {
337
- var y = 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 Y = Error((m || "React class") + ": " + a + " 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 Y.name = "Invariant Violation", Y;
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
- y = e[S](s, S, m, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (F) {
345
- y = F;
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
- y && !(y instanceof Error) && (xe(C), 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", a, S, typeof y), xe(null)), y instanceof Error && !(y.message in Ie) && (Ie[y.message] = !0, xe(C), v("Failed %s type: %s", a, y.message), xe(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 cr = Array.isArray;
352
- function _e(e) {
353
- return cr(e);
352
+ var Be = Array.isArray;
353
+ function Se(r) {
354
+ return Be(r);
354
355
  }
355
- function lr(e) {
356
+ function ye(r) {
356
357
  {
357
- var s = typeof Symbol == "function" && Symbol.toStringTag, a = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
- return a;
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 ur(e) {
362
+ function Le(r) {
362
363
  try {
363
- return Oe(e), !1;
364
+ return ke(r), !1;
364
365
  } catch {
365
366
  return !0;
366
367
  }
367
368
  }
368
- function Oe(e) {
369
- return "" + e;
369
+ function ke(r) {
370
+ return "" + r;
370
371
  }
371
- function Fe(e) {
372
- if (ur(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.", lr(e)), Oe(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 de = x.ReactCurrentOwner, fr = {
376
+ var Me = T.ReactCurrentOwner, We = {
376
377
  key: !0,
377
378
  ref: !0,
378
379
  __self: !0,
379
380
  __source: !0
380
- }, Te, ze, Ce;
381
+ }, He, Fe, Ce;
381
382
  Ce = {};
382
- function dr(e) {
383
- if (fe.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 hr(e) {
391
- if (fe.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 mr(e, s) {
399
- if (typeof e.ref == "string" && de.current && s && de.current.stateNode !== s) {
400
- var a = _(de.current.type);
401
- Ce[a] || (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', _(de.current.type), e.ref), Ce[a] = !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 pr(e, s) {
405
+ function E(r, d) {
405
406
  {
406
- var a = function() {
407
- Te || (Te = !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
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
410
- get: a,
410
+ g.isReactWarning = !0, Object.defineProperty(r, "key", {
411
+ get: g,
411
412
  configurable: !0
412
413
  });
413
414
  }
414
415
  }
415
- function vr(e, s) {
416
+ function oe(r, d) {
416
417
  {
417
- var a = 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
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
- get: a,
421
+ g.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
+ get: g,
422
423
  configurable: !0
423
424
  });
424
425
  }
425
426
  }
426
- var gr = function(e, s, a, m, C, $, S) {
427
- var y = {
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: a,
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: $
437
+ _owner: e
437
438
  };
438
- return y._store = {}, Object.defineProperty(y._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(y, "_self", {
444
+ }), Object.defineProperty(i, "_self", {
444
445
  configurable: !1,
445
446
  enumerable: !1,
446
447
  writable: !1,
447
- value: m
448
- }), Object.defineProperty(y, "_source", {
448
+ value: S
449
+ }), Object.defineProperty(i, "_source", {
449
450
  configurable: !1,
450
451
  enumerable: !1,
451
452
  writable: !1,
452
- value: C
453
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
453
+ value: Y
454
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
454
455
  };
455
- function xr(e, s, a, m, C) {
456
+ function Ee(r, d, g, S, Y) {
456
457
  {
457
- var $, S = {}, y = null, Y = null;
458
- a !== void 0 && (Fe(a), y = "" + a), hr(s) && (Fe(s.key), y = "" + s.key), dr(s) && (Y = s.ref, mr(s, C));
459
- for ($ in s)
460
- fe.call(s, $) && !fr.hasOwnProperty($) && (S[$] = s[$]);
461
- if (e && e.defaultProps) {
462
- var F = e.defaultProps;
463
- for ($ in F)
464
- S[$] === void 0 && (S[$] = F[$]);
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 (y || Y) {
467
- var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- y && pr(S, D), Y && vr(S, D);
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 gr(e, y, Y, C, m, de.current, S);
471
+ return Z(r, i, A, Y, S, Me.current, f);
471
472
  }
472
473
  }
473
- var ke = x.ReactCurrentOwner, Le = x.ReactDebugCurrentFrame;
474
- function ce(e) {
475
- if (e) {
476
- var s = e._owner, a = ge(e.type, e._source, s ? s.type : null);
477
- Le.setExtraStackFrame(a);
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
- Le.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 De() {
487
+ function tt() {
487
488
  {
488
- if (ke.current) {
489
- var e = _(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 yr(e) {
499
+ function vt(r) {
499
500
  {
500
- if (e !== void 0) {
501
- var s = e.fileName.replace(/^.*[\\\/]/, ""), a = 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 + ":" + a + ".";
505
+ Check your code at ` + d + ":" + g + ".";
505
506
  }
506
507
  return "";
507
508
  }
508
509
  }
509
- var We = {};
510
- function br(e) {
510
+ var it = {};
511
+ function Rt(r) {
511
512
  {
512
- var s = De();
513
- if (!s) {
514
- var a = typeof e == "string" ? e : e.displayName || e.name;
515
- a && (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 <` + a + ">.");
518
+ Check the top-level render call using <` + g + ">.");
518
519
  }
519
- return s;
520
+ return d;
520
521
  }
521
522
  }
522
- function Ae(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 a = br(s);
528
- if (We[a])
527
+ r._store.validated = !0;
528
+ var g = Rt(d);
529
+ if (it[g])
529
530
  return;
530
- We[a] = !0;
531
- var m = "";
532
- e && e._owner && e._owner !== ke.current && (m = " It was passed a child from " + _(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.', a, 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 Be(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 a = 0; a < e.length; a++) {
541
- var m = e[a];
542
- Re(m) && Ae(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 C = N(e);
548
- if (typeof C == "function" && C !== e.entries)
549
- for (var $ = C.call(e), S; !(S = $.next()).done; )
550
- Re(S.value) && Ae(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 Sr(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 a;
560
- if (typeof s == "function")
561
- a = 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 === g))
565
- a = s.propTypes;
565
+ d.$$typeof === N))
566
+ g = d.propTypes;
566
567
  else
567
568
  return;
568
- if (a) {
569
- var m = _(s);
570
- ar(a, e.props, "prop", m, e);
571
- } else if (s.PropTypes !== void 0 && !je) {
572
- je = !0;
573
- var C = _(s);
574
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "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 _r(e) {
580
+ function Ve(r) {
580
581
  {
581
- for (var s = Object.keys(e.props), a = 0; a < s.length; a++) {
582
- var m = s[a];
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 Ve = {};
592
- function Ye(e, s, a, m, C, $) {
592
+ var nt = {};
593
+ function ut(r, d, g, S, Y, e) {
593
594
  {
594
- var S = A(e);
595
- if (!S) {
596
- var y = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " 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 Y = yr(C);
599
- Y ? y += Y : y += De();
600
- var F;
601
- e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === n ? (F = "<" + (_(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : F = 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", F, y);
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 D = xr(e, s, a, C, $);
604
- if (D == null)
605
- return D;
606
- if (S) {
607
- var H = s.children;
608
- if (H !== void 0)
609
- if (m)
610
- if (_e(H)) {
611
- for (var le = 0; le < H.length; le++)
612
- Be(H[le], e);
613
- Object.freeze && Object.freeze(H);
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
- Be(H, e);
618
+ ct(ie, r);
618
619
  }
619
- if (fe.call(s, "key")) {
620
- var oe = _(e), q = Object.keys(s).filter(function(Nr) {
621
- return Nr !== "key";
622
- }), Ee = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!Ve[oe + Ee]) {
624
- var Er = q.length > 0 ? "{" + q.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, oe, Er, oe), Ve[oe + Ee] = !0;
631
+ <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
631
632
  }
632
633
  }
633
- return e === o ? _r(D) : Sr(D), D;
634
+ return r === s ? Ve(L) : It(L), L;
634
635
  }
635
636
  }
636
- function Cr(e, s, a) {
637
- return Ye(e, s, a, !0);
637
+ function yt(r, d, g) {
638
+ return ut(r, d, g, !0);
638
639
  }
639
- function kr(e, s, a) {
640
- return Ye(e, s, a, !1);
640
+ function At(r, d, g) {
641
+ return ut(r, d, g, !1);
641
642
  }
642
- var jr = kr, Rr = Cr;
643
- me.Fragment = o, me.jsx = jr, me.jsxs = Rr;
644
- }()), me;
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 = Lr() : Ne.exports = Dr();
647
- var i = Ne.exports;
648
- function ye(r, n) {
649
- return n ? /* @__PURE__ */ i.jsx(n, { size: r, strokeWidth: 2.5 }) : /* @__PURE__ */ i.jsx(i.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 Wr(r) {
652
+ function Ln(n) {
652
653
  const {
653
- variant: n = "ghost",
654
- scheme: t = "primary",
655
- size: o = "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: c,
660
- ...d
661
- } = r, p = { md: 12, lg: 14 }[o];
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} ${o} ${f}`.trim(),
664
- children: c,
665
- leftIcon: ye(p, l),
666
- rightIcon: ye(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: o, ...l } = Wr(r);
672
- return /* @__PURE__ */ i.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
- o
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
- ...o
683
- } = r, l = `arkyn_divider ${t} ${n}`;
684
- return /* @__PURE__ */ i.jsx("div", { className: l, ...o });
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__ */ i.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 Ar(r) {
691
+ function On(n) {
691
692
  const {
692
- isLoading: n = !1,
693
- scheme: t = "primary",
694
- variant: o = "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: c,
699
- disabled: d,
700
- className: h = "",
701
- children: p,
702
- ...g
703
- } = r, k = { 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} ${o} ${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: k,
709
- disabled: d || n,
710
- leftIcon: ye(k, f),
711
- rightIcon: ye(k, c),
712
- ...g
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: o, children: l, loadingText: u, ...f } = Ar(r);
717
- return /* @__PURE__ */ i.jsxs("button", { ...f, children: [
718
- /* @__PURE__ */ i.jsxs("div", { className: "spinner", children: [
719
- /* @__PURE__ */ i.jsx(ae, { size: o, 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__ */ i.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 rr = He({});
730
- function Sn({ children: r, ...n }) {
731
- var c, d;
732
- const t = Or(), o = ue(null), l = ((c = o.current) == null ? void 0 : c.name) || "", u = ((d = t == null ? void 0 : t.fieldErrors) == null ? void 0 : d[l]) || null, f = $r();
733
- return /* @__PURE__ */ i.jsx(rr.Provider, { value: { error: u, id: f, inputRef: o }, children: /* @__PURE__ */ i.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 ie() {
736
- return Ze(rr);
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: o = "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: c,
747
- value: d,
748
- ...h
749
- } = r, { id: p, inputRef: g, error: b } = ie(), k = l || !!b, [R, E] = Q(u || !1), N = typeof f == "boolean" ? f : R, x = `arkyn_checkbox ${o} ${k ? "error" : ""} ${N ? "checked" : ""} ${t}`;
750
- function v() {
751
- const j = R;
752
- E(!j), c && c(j ? "" : 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__ */ i.jsxs("div", { className: x, onClick: v, ...h, children: [
755
- /* @__PURE__ */ i.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: g,
762
- value: N ? d || "checked" : ""
760
+ name: t,
761
+ ref: N,
762
+ value: W ? p || "checked" : ""
763
763
  }
764
764
  ),
765
- /* @__PURE__ */ i.jsx(Qe, {})
765
+ /* @__PURE__ */ m.jsx(on, {})
766
766
  ] });
767
767
  }
768
- function Cn({ children: r }) {
769
- const { error: n } = ie();
770
- return r ? /* @__PURE__ */ i.jsx("strong", { className: "arkyn_form_error", children: r }) : n ? /* @__PURE__ */ i.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ i.jsx(i.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 Br(r) {
773
- const { showAsterisk: n = !1, className: t = "", ...o } = 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
- ...o
775
+ className: `arkyn_form_label ${t ? "show-asterisk" : ""} ${a}`.trim(),
776
+ ...s
777
777
  };
778
778
  }
779
- function kn(r) {
780
- const { id: n } = ie();
781
- return /* @__PURE__ */ i.jsx("label", { ...Br(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 qe = {
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: o = "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: c = "",
798
- ...d
799
- } = r, h = `arkyn_icon_button ${o} ${t} ${l} loading_${n} ${c}`;
800
- return /* @__PURE__ */ i.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__ */ i.jsx("div", { className: "spinner", children: /* @__PURE__ */ i.jsx(ae, { size: qe[l], strokeWidth: 2.5 }) }),
808
- /* @__PURE__ */ i.jsx("div", { className: "content " + l, children: /* @__PURE__ */ i.jsx(u, { size: qe[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__ */ i.jsx(i.Fragment, {});
816
- if (typeof r == "string")
817
- return /* @__PURE__ */ i.jsx("p", { className: t, children: r });
818
- const o = r;
819
- return /* @__PURE__ */ i.jsx("p", { className: t, children: /* @__PURE__ */ i.jsx(o, { 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
+ }
821
+ function Bt(n) {
822
+ return n && n.replace(/[^0-9]/g, "");
823
+ }
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
+ }
830
+ function dn(n) {
831
+ return n.length > 11 ? "CNPJ" : "CPF";
820
832
  }
821
- function Vr(r, n) {
833
+ const Ut = {
834
+ CPF: "999.999.999-999",
835
+ CNPJ: "99.999.999/9999-99"
836
+ }, fn = Bt(Ut.CNPJ).length;
837
+ function jn(n, t) {
822
838
  const {
823
- isLoading: t,
824
- isError: o,
839
+ isLoading: a,
840
+ isError: s,
825
841
  size: l = "md",
826
- className: u = "",
827
- variant: f = "solid",
828
- prefix: c,
829
- sufix: d,
830
- leftIcon: h,
831
- rightIcon: p,
832
- disabled: g,
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,
833
850
  readOnly: b,
834
- onFocus: k,
835
- onBlur: R,
836
- title: E,
837
- style: N,
838
- onChange: x,
839
- ...v
840
- } = r, j = p ? "right" : "left", L = `arkyn_input ${c ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${g || b || t ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${u}`, P = { md: 20, lg: 20 }[l];
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
+ }
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];
841
865
  return {
842
- isLoading: t,
843
- className: L,
844
- prefix: se(c, P, "prefix"),
845
- sufix: se(d, P, "sufix"),
846
- LeftIcon: h,
847
- RightIcon: p,
848
- disabled: g,
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,
849
874
  readOnly: b,
850
- onFocus: k,
851
- onBlur: R,
852
- title: E,
853
- style: N,
854
- onChange: x,
855
- loadingPosition: j,
856
- iconSize: P,
857
- Spinner: /* @__PURE__ */ i.jsx(ae, { className: "spinner", size: P, strokeWidth: 2.5 }),
858
- ...v
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
859
884
  };
860
885
  }
861
- function $e(r) {
862
- return r && r.replace(/[^0-9]/g, "");
863
- }
864
- function Yr(r, n) {
865
- let t = "", o = 0;
866
- return Array.from(r).forEach((l, u) => {
867
- n[u + o].match(/[0-9]/) || (t += n[u + o], o++), t += l;
868
- }), t;
869
- }
870
- function Mr(r) {
871
- return r.length > 11 ? "CNPJ" : "CPF";
872
- }
873
- const nr = {
874
- CPF: "999.999.999-999",
875
- CNPJ: "99.999.999/9999-99"
876
- }, Ur = $e(nr.CNPJ).length;
877
- function Kr(r) {
878
- const [n, t] = Q(!1), [o, l] = Q(
879
- $e((r == null ? void 0 : r.defaultValue) || "")
880
- ), u = ue(null), { inputRef: f, id: c, error: d } = ie(), h = f || u, p = r.isError || !!d, {
881
- disabled: g,
882
- title: b,
883
- style: k,
884
- className: R,
885
- prefix: E,
886
- sufix: N,
887
- iconSize: x,
888
- loadingPosition: v,
889
- isLoading: j,
890
- LeftIcon: I,
891
- readOnly: O,
892
- onFocus: T,
893
- onBlur: w,
894
- RightIcon: z,
895
- Spinner: L,
896
- onChange: A,
897
- value: P,
898
- defaultValue: M = "",
899
- ..._
900
- } = Vr({ ...r, id: c, isError: p }, n), W = I && !j, V = z && !j, B = v === "left" && j, re = v === "right" && j;
901
- function ne() {
902
- g || !(h != null && h.current) || (t(!0), h.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());
903
910
  }
904
- function te(K) {
905
- let J = $e(K.target.value);
906
- const G = Mr(J);
907
- J.length > Ur || (J = Yr(J, nr[G]), K.target.value = J, l(J), A && A(K));
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));
908
915
  }
909
- function Z(K) {
910
- t(!0), T && T(K);
916
+ function G(x) {
917
+ a(!0), H && H(x);
911
918
  }
912
- function U(K) {
913
- t(!1), w && w(K);
919
+ function D(x) {
920
+ a(!1), z && z(x);
914
921
  }
915
- return /* @__PURE__ */ i.jsxs(
922
+ return /* @__PURE__ */ m.jsxs(
916
923
  "section",
917
924
  {
918
- title: b,
919
- style: k,
920
- onClick: ne,
921
- className: R,
925
+ title: y,
926
+ style: N,
927
+ onClick: ee,
928
+ className: k,
922
929
  children: [
923
- E,
924
- B && L,
925
- W && /* @__PURE__ */ i.jsx(I, { size: x, strokeWidth: 2.5 }),
926
- /* @__PURE__ */ i.jsx(
930
+ b,
931
+ K && X,
932
+ R && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
933
+ /* @__PURE__ */ m.jsx(
927
934
  "input",
928
935
  {
929
- disabled: g || j,
930
- readOnly: O,
931
- ref: h,
932
- value: P || o,
933
- onFocus: Z,
934
- onChange: te,
935
- onBlur: U,
936
- ..._
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
937
944
  }
938
945
  ),
939
- V && /* @__PURE__ */ i.jsx(z, { size: x, strokeWidth: 2.5 }),
940
- re && L,
941
- N
946
+ B && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
947
+ ue && X,
948
+ O
942
949
  ]
943
950
  }
944
951
  );
945
952
  }
946
- function Jr(r, n) {
953
+ function Mn(n, t) {
947
954
  const {
948
- isLoading: t,
949
- isError: o,
955
+ isLoading: a,
956
+ isError: s,
950
957
  size: l = "md",
951
- className: u = "",
952
- variant: f = "solid",
953
- prefix: c,
954
- sufix: d,
955
- leftIcon: h,
956
- rightIcon: p,
957
- disabled: g,
958
- readOnly: b,
959
- onFocus: k,
960
- onBlur: R,
961
- title: E,
962
- style: N,
963
- showCents: x = !1,
964
- max: v = 1e9,
965
- onChange: j,
966
- ...I
967
- } = r, O = p ? "right" : "left", P = `arkyn_input ${c ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${g || b || t ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${u}`, _ = { 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];
968
975
  return {
969
- isLoading: t,
970
- className: P,
971
- prefix: se(c, _, "prefix"),
972
- sufix: se(d, _, "sufix"),
973
- LeftIcon: h,
974
- RightIcon: p,
975
- disabled: g,
976
- readOnly: b,
977
- onFocus: k,
978
- onBlur: R,
979
- title: E,
980
- style: N,
981
- max: v,
982
- onChange: j,
983
- showCents: x,
984
- loadingPosition: O,
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,
985
992
  iconSize: _,
986
- Spinner: /* @__PURE__ */ i.jsx(ae, { className: "spinner", size: _, strokeWidth: 2.5 }),
987
- ...I
993
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: _, strokeWidth: 2.5 }),
994
+ ...H
988
995
  };
989
996
  }
990
- const qr = /^[1-9]{1}$/, Gr = /^[0-9]{1}$/, Ge = 8;
991
- function Xr(r, n) {
992
- if (r === 0)
997
+ const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
998
+ function Fn(n, t) {
999
+ if (n === 0)
993
1000
  return "";
994
- const t = (r / 100).toLocaleString("pt-BR", {
1001
+ const a = (n / 100).toLocaleString("pt-BR", {
995
1002
  style: "currency",
996
1003
  currency: "BRL"
997
1004
  });
998
- return n ? t : t.replace("R$", "").trim();
1005
+ return t ? a : a.replace("R$", "").trim();
999
1006
  }
1000
- function Hr(r) {
1001
- const { currencyValue: n, event: t, max: o, setCurrencyValue: l } = r, { key: u, keyCode: f } = t;
1002
- if (n === 0 && !qr.test(u) || n !== 0 && !Gr.test(u) && f !== Ge)
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)
1003
1010
  return;
1004
- const c = n.toString();
1005
- let d;
1006
- if (f !== Ge) {
1007
- const h = n === 0 ? u : `${c}${u}`;
1008
- 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);
1009
1016
  } else {
1010
- const h = c.slice(0, -1);
1011
- d = h === "" ? 0 : Number.parseInt(h, 10);
1017
+ const o = u.slice(0, -1);
1018
+ p = o === "" ? 0 : Number.parseInt(o, 10);
1012
1019
  }
1013
- d > Number(o) || l(d);
1020
+ p > Number(s) || l(p);
1014
1021
  }
1015
- function Zr(r) {
1016
- const [n, t] = Q(!1), [o, l] = Q(r.defaultValue || 0), u = ue(null), { inputRef: f, id: c, error: d } = ie(), h = f || u, p = r.isError || !!d, {
1017
- disabled: g,
1018
- title: b,
1019
- style: k,
1020
- className: R,
1021
- prefix: E,
1022
- sufix: N,
1023
- iconSize: x,
1024
- loadingPosition: v,
1025
- isLoading: j,
1026
- LeftIcon: I,
1027
- readOnly: O,
1028
- onFocus: T,
1029
- onBlur: w,
1030
- RightIcon: z,
1031
- Spinner: L,
1032
- value: A,
1033
- max: P,
1034
- onKeyDown: M,
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,
1035
1042
  onChange: _,
1036
- showCents: W,
1037
- ...V
1038
- } = Jr({ ...r, id: c, isError: p }, n), B = I && !j, re = z && !j, ne = v === "left" && j, te = v === "right" && j;
1039
- function Z() {
1040
- g || !(h != null && h.current) || (t(!0), h.current.focus());
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());
1041
1048
  }
1042
- function U(G) {
1043
- Hr({ currencyValue: o, event: G, max: P, setCurrencyValue: l }), _ && _(o), M && M(G);
1049
+ function D(I) {
1050
+ Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), _ && _(s), te && te(I);
1044
1051
  }
1045
- function K(G) {
1046
- t(!0), T && T(G);
1052
+ function x(I) {
1053
+ a(!0), J && J(I);
1047
1054
  }
1048
- function J(G) {
1049
- t(!1), w && w(G);
1055
+ function U(I) {
1056
+ a(!1), X && X(I);
1050
1057
  }
1051
- return /* @__PURE__ */ i.jsxs(
1058
+ return /* @__PURE__ */ m.jsxs(
1052
1059
  "section",
1053
1060
  {
1054
- title: b,
1055
- style: k,
1056
- onClick: Z,
1057
- className: R,
1061
+ title: k,
1062
+ style: b,
1063
+ onClick: G,
1064
+ className: O,
1058
1065
  children: [
1059
- E,
1060
- ne && L,
1061
- B && /* @__PURE__ */ i.jsx(I, { size: x, strokeWidth: 2.5 }),
1062
- /* @__PURE__ */ i.jsx(
1066
+ P,
1067
+ ee && re,
1068
+ K && /* @__PURE__ */ m.jsx(H, { size: T, strokeWidth: 2.5 }),
1069
+ /* @__PURE__ */ m.jsx(
1063
1070
  "input",
1064
1071
  {
1065
- value: Xr(A || o, W),
1066
- onKeyDown: U,
1067
- disabled: g || j,
1068
- readOnly: O,
1069
- ref: h,
1070
- onFocus: K,
1071
- onBlur: J,
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,
1072
1079
  onChange: () => {
1073
1080
  },
1074
- ...V
1081
+ ...B
1075
1082
  }
1076
1083
  ),
1077
- te && L,
1078
- re && /* @__PURE__ */ i.jsx(z, { size: x, strokeWidth: 2.5 }),
1079
- N
1084
+ se && re,
1085
+ ue && /* @__PURE__ */ m.jsx(Q, { size: T, strokeWidth: 2.5 }),
1086
+ W
1080
1087
  ]
1081
1088
  }
1082
1089
  );
1083
1090
  }
1084
- function Qr(r, n) {
1091
+ function Wn(n, t) {
1085
1092
  const {
1086
- isLoading: t,
1087
- isError: o,
1093
+ isLoading: a,
1094
+ isError: s,
1088
1095
  size: l = "md",
1089
- className: u = "",
1090
- variant: f = "solid",
1091
- prefix: c,
1092
- sufix: d,
1093
- leftIcon: h,
1094
- rightIcon: p,
1095
- disabled: g,
1096
- readOnly: b,
1097
- onFocus: k,
1098
- onBlur: R,
1099
- title: E,
1100
- style: N,
1101
- onChange: x,
1102
- showMask: v = !0,
1103
- type: j,
1104
- ...I
1105
- } = r, O = p ? "right" : "left", P = `arkyn_input ${c ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${g || b || t ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${u}`, _ = { 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];
1106
1113
  return {
1107
- isLoading: t,
1108
- className: P,
1109
- prefix: se(c, _, "prefix"),
1110
- sufix: se(d, _, "sufix"),
1111
- LeftIcon: h,
1112
- RightIcon: p,
1113
- disabled: g,
1114
- readOnly: b,
1115
- onFocus: k,
1116
- onBlur: R,
1117
- title: E,
1118
- style: N,
1119
- onChange: x,
1120
- loadingPosition: O,
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,
1121
1128
  iconSize: _,
1122
- showMask: v,
1123
- Spinner: /* @__PURE__ */ i.jsx(ae, { className: "spinner", size: _, strokeWidth: 2.5 }),
1124
- ...I
1129
+ showMask: w,
1130
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: _, strokeWidth: 2.5 }),
1131
+ ...H
1125
1132
  };
1126
1133
  }
1127
- const en = Pr((r, n) => /* @__PURE__ */ i.jsx("input", { ref: n, ...r }));
1128
- function rn(r) {
1129
- const [n, t] = Q(!1), o = ue(null), { inputRef: l, id: u, error: f } = ie(), c = l || o, d = r.isError || !!f, {
1130
- disabled: h,
1131
- title: p,
1132
- style: g,
1133
- className: b,
1134
- prefix: k,
1135
- sufix: R,
1136
- iconSize: E,
1137
- loadingPosition: N,
1138
- isLoading: x,
1139
- LeftIcon: v,
1140
- readOnly: j,
1141
- onFocus: I,
1142
- onBlur: O,
1143
- RightIcon: T,
1144
- Spinner: w,
1145
- ...z
1146
- } = Qr({ ...r, id: u, isError: d }, n), L = v && !x, A = T && !x, P = N === "left" && x, M = N === "right" && x;
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;
1147
1154
  function _() {
1148
- h || !(c != null && c.current) || (t(!0), c.current.focus());
1155
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
1149
1156
  }
1150
- function W(B) {
1151
- t(!0), I && I(B);
1157
+ function R(K) {
1158
+ a(!0), H && H(K);
1152
1159
  }
1153
- function V(B) {
1154
- t(!1), O && O(B);
1160
+ function B(K) {
1161
+ a(!1), z && z(K);
1155
1162
  }
1156
- return /* @__PURE__ */ i.jsxs(
1163
+ return /* @__PURE__ */ m.jsxs(
1157
1164
  "section",
1158
1165
  {
1159
- title: p,
1160
- style: g,
1166
+ title: y,
1167
+ style: N,
1161
1168
  onClick: _,
1162
- className: b,
1169
+ className: k,
1163
1170
  children: [
1164
- k,
1165
- P && w,
1166
- L && /* @__PURE__ */ i.jsx(v, { size: E, strokeWidth: 2.5 }),
1167
- /* @__PURE__ */ i.jsx(
1168
- Tr,
1171
+ b,
1172
+ F && X,
1173
+ re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1174
+ /* @__PURE__ */ m.jsx(
1175
+ kn,
1169
1176
  {
1170
- component: en,
1171
- ref: c,
1172
- onFocus: W,
1173
- onBlur: V,
1174
- ...z
1177
+ component: Hn,
1178
+ ref: u,
1179
+ onFocus: R,
1180
+ onBlur: B,
1181
+ ...Q
1175
1182
  }
1176
1183
  ),
1177
- A && /* @__PURE__ */ i.jsx(T, { size: E, strokeWidth: 2.5 }),
1178
- M && w,
1179
- R
1184
+ V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1185
+ te && X,
1186
+ O
1180
1187
  ]
1181
1188
  }
1182
1189
  );
1183
1190
  }
1184
- function nn(r, n) {
1191
+ function Vn(n, t) {
1185
1192
  const {
1186
- isLoading: t,
1187
- isError: o,
1193
+ isLoading: a,
1194
+ isError: s,
1188
1195
  size: l = "md",
1189
- className: u = "",
1190
- variant: f = "solid",
1191
- prefix: c,
1192
- sufix: d,
1193
- leftIcon: h,
1194
- rightIcon: p,
1195
- disabled: g,
1196
- readOnly: b,
1197
- onFocus: k,
1198
- onBlur: R,
1199
- title: E,
1200
- style: N,
1201
- onChange: x,
1202
- ...v
1203
- } = r, j = p ? "right" : "left", L = `arkyn_input ${c ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${f} ${l} ${g || b || t ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${u}`, P = { 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];
1204
1211
  return {
1205
- isLoading: t,
1206
- className: L,
1207
- prefix: se(c, P, "prefix"),
1208
- sufix: se(d, P, "sufix"),
1209
- LeftIcon: h,
1210
- RightIcon: p,
1211
- disabled: g,
1212
- readOnly: b,
1213
- onFocus: k,
1214
- onBlur: R,
1215
- title: E,
1216
- style: N,
1217
- onChange: x,
1218
- loadingPosition: j,
1219
- iconSize: P,
1220
- Spinner: /* @__PURE__ */ i.jsx(ae, { className: "spinner", size: P, strokeWidth: 2.5 }),
1221
- ...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
1222
1229
  };
1223
1230
  }
1224
- function tn(r) {
1225
- const [n, t] = Q(!1), o = ue(null), { inputRef: l, id: u, error: f } = ie(), c = l || o, d = r.isError || !!f, {
1226
- disabled: h,
1227
- title: p,
1228
- style: g,
1229
- className: b,
1230
- prefix: k,
1231
- sufix: R,
1232
- iconSize: E,
1233
- loadingPosition: N,
1234
- isLoading: x,
1235
- LeftIcon: v,
1236
- readOnly: j,
1237
- onFocus: I,
1238
- onBlur: O,
1239
- RightIcon: T,
1240
- Spinner: w,
1241
- ...z
1242
- } = nn({ ...r, id: u, isError: d }, n), L = v && !x, A = T && !x, P = N === "left" && x, M = N === "right" && x;
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;
1243
1250
  function _() {
1244
- h || !(c != null && c.current) || (t(!0), c.current.focus());
1251
+ o || !(u != null && u.current) || (a(!0), u.current.focus());
1245
1252
  }
1246
- function W(B) {
1247
- t(!0), I && I(B);
1253
+ function R(K) {
1254
+ a(!0), H && H(K);
1248
1255
  }
1249
- function V(B) {
1250
- t(!1), O && O(B);
1256
+ function B(K) {
1257
+ a(!1), z && z(K);
1251
1258
  }
1252
- return /* @__PURE__ */ i.jsxs(
1259
+ return /* @__PURE__ */ m.jsxs(
1253
1260
  "section",
1254
1261
  {
1255
- title: p,
1256
- style: g,
1262
+ title: y,
1263
+ style: N,
1257
1264
  onClick: _,
1258
- className: b,
1265
+ className: k,
1259
1266
  children: [
1260
- k,
1261
- P && w,
1262
- L && /* @__PURE__ */ i.jsx(v, { size: E, strokeWidth: 2.5 }),
1263
- /* @__PURE__ */ i.jsx(
1267
+ b,
1268
+ F && X,
1269
+ re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1270
+ /* @__PURE__ */ m.jsx(
1264
1271
  "input",
1265
1272
  {
1266
- disabled: h || x,
1267
- readOnly: j,
1268
- ref: c,
1269
- onFocus: W,
1270
- onBlur: V,
1271
- ...z
1273
+ disabled: o || T,
1274
+ readOnly: C,
1275
+ ref: u,
1276
+ onFocus: R,
1277
+ onBlur: B,
1278
+ ...Q
1272
1279
  }
1273
1280
  ),
1274
- A && /* @__PURE__ */ i.jsx(T, { size: E, strokeWidth: 2.5 }),
1275
- M && w,
1276
- R
1281
+ V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1282
+ te && X,
1283
+ O
1277
1284
  ]
1278
1285
  }
1279
1286
  );
1280
1287
  }
1281
- function Rn(r) {
1282
- return r.type === "currency" ? /* @__PURE__ */ i.jsx(Zr, { ...r }) : r.type === "masked" ? /* @__PURE__ */ i.jsx(rn, { ...r }) : r.type === "cpf-cpnj" ? /* @__PURE__ */ i.jsx(Kr, { ...r }) : /* @__PURE__ */ i.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 });
1283
1290
  }
1284
- function sn(r, n, t) {
1285
- if (!r)
1286
- return /* @__PURE__ */ i.jsx(i.Fragment, {});
1287
- if (typeof r == "string")
1288
- return /* @__PURE__ */ i.jsx("p", { className: t, children: r });
1289
- const o = r;
1290
- return /* @__PURE__ */ i.jsx("p", { className: t, children: /* @__PURE__ */ i.jsx(o, { 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 }) });
1291
1298
  }
1292
- function on(r, n) {
1299
+ function Xn(n, t) {
1293
1300
  const {
1294
- isLoading: t,
1295
- isError: o,
1301
+ isLoading: a,
1302
+ isError: s,
1296
1303
  size: l = "md",
1297
- className: u = "",
1298
- variant: f = "solid",
1299
- prefix: c,
1300
- leftIcon: d,
1301
- disabled: h,
1302
- readOnly: p,
1303
- onFocus: g,
1304
- onBlur: b,
1305
- title: k,
1306
- style: R,
1307
- isSearchable: E = !1,
1308
- ...N
1309
- } = r, O = `arkyn_select ${c ? "hasPrefix" : ""} ${f} ${l} ${h || p || t ? "opacity" : ""} ${o ? "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];
1310
1317
  return {
1311
- isLoading: t,
1312
- className: O,
1313
- prefix: sn(c, w, "prefix"),
1314
- LeftIcon: d,
1315
- disabled: h,
1316
- readOnly: p,
1317
- onFocus: g,
1318
- onBlur: b,
1319
- title: k,
1320
- style: R,
1321
- isSearchable: E,
1322
- iconSize: w,
1323
- Spinner: /* @__PURE__ */ i.jsx(ae, { className: "spinner", size: w, strokeWidth: 2.5 }),
1324
- ...N
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
1325
1332
  };
1326
1333
  }
1327
- function En(r) {
1328
- var G;
1329
- const [n, t] = Q(!1), { inputRef: o, id: l, error: u } = ie(), f = ue(null), c = o || f, d = r.isError || !!u, {
1330
- disabled: h,
1331
- title: p,
1332
- style: g,
1333
- className: b,
1334
- prefix: k,
1335
- iconSize: R,
1336
- isLoading: E,
1337
- LeftIcon: N,
1338
- value: x = null,
1339
- defaultValue: v = "",
1340
- readOnly: j,
1341
- onFocus: I,
1342
- onBlur: O,
1343
- Spinner: T,
1344
- name: w,
1345
- isSearchable: z,
1346
- placeholder: L,
1347
- onSelect: A,
1348
- options: P,
1349
- ...M
1350
- } = on({ ...r, id: l, isError: d }, n), [_, W] = Q(v), [V, B] = Q("");
1351
- function re() {
1352
- h || !(c != null && c.current) || (t(!0), c.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());
1353
1361
  }
1354
- function ne(X) {
1355
- t(!0), I && I(X);
1362
+ function se(M) {
1363
+ a(!0), H && H(M);
1356
1364
  }
1357
- function te() {
1358
- t(!1), O && c.current && c.current.blur();
1365
+ function G() {
1366
+ a(!1), z && u.current && u.current.blur();
1359
1367
  }
1360
- const Z = typeof x == "string" ? x : _, U = ((G = P.find((X) => X.value === Z)) == null ? void 0 : G.label) || "", K = () => {
1361
- if (z) {
1362
- if (!n && U)
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)
1363
1371
  return !0;
1364
- if (!n && !U || n)
1372
+ if (!t && !x || t)
1365
1373
  return !1;
1366
1374
  }
1367
- if (!z) {
1368
- if (!n && U)
1375
+ if (!Q) {
1376
+ if (!t && x)
1369
1377
  return !0;
1370
- if (!n && !U)
1378
+ if (!t && !x)
1371
1379
  return !1;
1372
- if (n && U)
1380
+ if (t && x)
1373
1381
  return !0;
1374
- if (n && !U)
1382
+ if (t && !x)
1375
1383
  return !1;
1376
1384
  }
1377
- }, J = P.filter((X) => z ? X.label.toLowerCase().includes(V.toLowerCase()) : !0);
1378
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1379
- /* @__PURE__ */ i.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(
1380
1388
  "section",
1381
1389
  {
1382
- title: p,
1383
- style: g,
1384
- onClick: re,
1385
- className: `${b} placeholder_dark_${K()}`,
1390
+ title: y,
1391
+ style: N,
1392
+ onClick: ee,
1393
+ className: `${k} placeholder_dark_${U()}`,
1386
1394
  children: [
1387
- k,
1388
- N && /* @__PURE__ */ i.jsx(N, { size: R, strokeWidth: 2.5 }),
1389
- /* @__PURE__ */ i.jsx(
1395
+ b,
1396
+ W && /* @__PURE__ */ m.jsx(W, { size: O, strokeWidth: 2.5 }),
1397
+ /* @__PURE__ */ m.jsx(
1390
1398
  "input",
1391
1399
  {
1392
- disabled: h || E,
1393
- readOnly: !z,
1394
- value: V || "",
1395
- placeholder: U || L,
1396
- ref: c,
1397
- onFocus: ne,
1398
- onBlur: () => B(""),
1399
- ...M,
1400
- onChange: (X) => B(X.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
+ }
1410
+ ),
1411
+ /* @__PURE__ */ m.jsx("input", { type: "hidden", name: X, value: D || "", readOnly: !0 }),
1412
+ t && /* @__PURE__ */ m.jsxs(
1413
+ "ul",
1414
+ {
1415
+ className: "arkyn_select_content",
1416
+ style: { overflow: "auto", maxHeight: te },
1417
+ children: [
1418
+ I.map(({ label: M, value: pe }) => /* @__PURE__ */ m.jsxs(
1419
+ "li",
1420
+ {
1421
+ className: D === pe ? "active" : "",
1422
+ onClick: () => {
1423
+ B(R !== pe ? pe : ""), V && V({ label: M, value: pe });
1424
+ },
1425
+ children: [
1426
+ M,
1427
+ " ",
1428
+ /* @__PURE__ */ m.jsx(on, {})
1429
+ ]
1430
+ },
1431
+ pe
1432
+ )),
1433
+ I.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1434
+ ]
1401
1435
  }
1402
1436
  ),
1403
- /* @__PURE__ */ i.jsx("input", { type: "hidden", name: w, value: Z || "", readOnly: !0 }),
1404
- n && /* @__PURE__ */ i.jsxs("ul", { className: "arkyn_select_content", children: [
1405
- J.map(({ label: X, value: ee }) => /* @__PURE__ */ i.jsxs(
1406
- "li",
1407
- {
1408
- className: Z === ee ? "active" : "",
1409
- onClick: () => {
1410
- W(_ !== ee ? ee : ""), A && A({ label: X, value: ee });
1411
- },
1412
- children: [
1413
- X,
1414
- " ",
1415
- /* @__PURE__ */ i.jsx(Qe, {})
1416
- ]
1417
- },
1418
- ee
1419
- )),
1420
- J.length <= 0 && /* @__PURE__ */ i.jsx("p", { children: "Sem opções disponíveis" })
1421
- ] }),
1422
- !E && /* @__PURE__ */ i.jsx(
1423
- Ir,
1437
+ !P && /* @__PURE__ */ m.jsx(
1438
+ Tn,
1424
1439
  {
1425
1440
  className: "arkyn_select_arrow",
1426
- size: R,
1441
+ size: O,
1427
1442
  strokeWidth: 2.5
1428
1443
  }
1429
1444
  ),
1430
- E && T
1445
+ P && J
1431
1446
  ]
1432
1447
  }
1433
1448
  ),
1434
- n && /* @__PURE__ */ i.jsx("aside", { className: "arkyn_select_overlay", onClick: te })
1449
+ t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
1435
1450
  ] });
1436
1451
  }
1437
- function an(r) {
1438
- const { className: n = "", ...t } = r;
1439
- 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 };
1440
1455
  }
1441
- function cn(r) {
1442
- const { pathname: n } = er(), {
1443
- className: t = "",
1444
- disabled: o = !1,
1456
+ function Jn(n) {
1457
+ const { pathname: t } = ln(), {
1458
+ className: a = "",
1459
+ disabled: s = !1,
1445
1460
  to: l,
1446
- ...u
1447
- } = r, f = n === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${f} ${t}`;
1461
+ ...c
1462
+ } = n, h = t === l ? "active" : "inactive", u = `arkyn_breadcrumb_link ${h} ${a}`;
1448
1463
  return {
1449
1464
  to: l,
1450
- className: c.trim(),
1451
- disabled: o || f === "active",
1452
- ...u
1465
+ className: u.trim(),
1466
+ disabled: s || h === "active",
1467
+ ...c
1453
1468
  };
1454
1469
  }
1455
- function Nn(r) {
1456
- const { className: n, ...t } = an(r);
1457
- return /* @__PURE__ */ i.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 });
1458
1473
  }
1459
- function $n(r) {
1460
- const { children: n, className: t, disabled: o, ...l } = cn(r);
1461
- return o ? /* @__PURE__ */ i.jsxs("p", { className: t, children: [
1462
- /* @__PURE__ */ i.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1463
- n
1464
- ] }) : /* @__PURE__ */ i.jsxs(Fr, { className: t, ...l, children: [
1465
- /* @__PURE__ */ i.jsx(Me, { size: 14, strokeWidth: 2.5 }),
1466
- 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
1467
1482
  ] });
1468
1483
  }
1469
- const tr = He({});
1470
- function ln(r) {
1484
+ const mn = Ct({});
1485
+ function Zn(n) {
1471
1486
  const {
1472
- isVisibled: n,
1473
- makeInvisible: t,
1474
- children: o,
1487
+ isVisibled: t,
1488
+ makeInvisible: a,
1489
+ children: s,
1475
1490
  className: l = "",
1476
- ...u
1477
- } = r, c = `arkyn_modal_container ${n ? "visible" : ""} ${l}`;
1478
- return /* @__PURE__ */ i.jsx(tr.Provider, { value: { makeInvisible: t }, children: /* @__PURE__ */ i.jsx(zr, { children: n && /* @__PURE__ */ i.jsxs("aside", { className: c.trim(), ...u, children: [
1479
- /* @__PURE__ */ i.jsx(
1480
- Ue.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,
1481
1496
  {
1482
1497
  className: "overlay",
1483
1498
  transition: { duration: 0.15, ease: "easeOut" },
1484
1499
  initial: { opacity: 0 },
1485
1500
  animate: { opacity: 1 },
1486
1501
  exit: { opacity: 0 },
1487
- onClick: t
1502
+ onClick: a
1488
1503
  }
1489
1504
  ),
1490
- /* @__PURE__ */ i.jsx(
1491
- Ue.div,
1505
+ /* @__PURE__ */ m.jsx(
1506
+ Yt.div,
1492
1507
  {
1493
1508
  className: "content",
1494
1509
  transition: { duration: 0.15, ease: "easeOut" },
1495
1510
  initial: { opacity: 0, scale: 0.75 },
1496
1511
  animate: { opacity: 1, scale: 1 },
1497
1512
  exit: { opacity: 0, scale: 0 },
1498
- children: o
1513
+ children: s
1499
1514
  }
1500
1515
  )
1501
1516
  ] }) }) });
1502
1517
  }
1503
- function un(r) {
1504
- const { alignment: n = "right", className: t, ...o } = r, l = `arkyn_modal_footer ${n} ${t}`;
1505
- return /* @__PURE__ */ i.jsx("footer", { className: l.trim(), ...o });
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 });
1506
1521
  }
1507
- function fn(r) {
1508
- const { showCloseButton: n, className: t, children: o, ...l } = r, { makeInvisible: u } = Ze(tr), c = `arkyn_modal_header ${n ? "show-close" : ""} ${t}`;
1509
- return /* @__PURE__ */ i.jsxs("header", { className: c.trim(), ...l, children: [
1510
- o,
1511
- /* @__PURE__ */ i.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ i.jsx(wr, { 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 }) })
1512
1527
  ] });
1513
1528
  }
1514
- const Pn = { Container: ln, Header: fn, Footer: un };
1515
- function In(r) {
1529
+ const la = { Container: Zn, Header: er, Footer: Qn };
1530
+ function ca(n) {
1516
1531
  const {
1517
- text: n,
1518
- size: t = "lg",
1519
- children: o,
1532
+ text: t,
1533
+ size: a = "lg",
1534
+ children: s,
1520
1535
  orientation: l = "top",
1521
- className: u,
1522
- ...f
1523
- } = r;
1524
- return /* @__PURE__ */ i.jsxs(
1536
+ className: c,
1537
+ ...h
1538
+ } = n;
1539
+ return /* @__PURE__ */ m.jsxs(
1525
1540
  "div",
1526
1541
  {
1527
- className: `arkyn_tooltip ${t} ${l} ${u}`,
1528
- ...f,
1542
+ className: `arkyn_tooltip ${a} ${l} ${c}`,
1543
+ ...h,
1529
1544
  children: [
1530
- o,
1531
- /* @__PURE__ */ i.jsx("div", { className: "arkyn_tooltip_text", children: n })
1545
+ s,
1546
+ /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: t })
1532
1547
  ]
1533
1548
  }
1534
1549
  );
1535
1550
  }
1536
- function wn(r = "") {
1537
- const n = er(), t = new URLSearchParams(n.search), o = r ? `${r}:` : "", l = (u) => {
1538
- Object.entries(u).forEach(([f, c]) => {
1539
- c === void 0 ? t.delete(`${o}${f}`) : t.set(`${o}${f}`, String(c));
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
+ const {
1564
+ modalData: a,
1565
+ modalIsOpen: s,
1566
+ openModal: l,
1567
+ closeModal: c
1568
+ } = t, h = s(n), u = a(n);
1569
+ return { modalIsOpen: h, modalData: u, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => c(n) };
1570
+ }
1571
+ function fa(n = "") {
1572
+ const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (c) => {
1573
+ Object.entries(c).forEach(([h, u]) => {
1574
+ u === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(u));
1540
1575
  });
1541
1576
  };
1542
1577
  return {
1543
- getParam: (u) => t.get(`${o}${u}`),
1544
- getScopedSearch: (u) => {
1545
- l(u);
1546
- let f = t.toString();
1547
- return f && (f = "?" + f), f;
1578
+ getParam: (c) => a.get(`${s}${c}`),
1579
+ getScopedSearch: (c) => {
1580
+ l(c);
1581
+ let h = a.toString();
1582
+ return h && (h = "?" + h), h;
1583
+ }
1584
+ };
1585
+ }
1586
+ const pn = Ct({});
1587
+ function ma() {
1588
+ const n = gt(pn);
1589
+ if (Object.entries(n).length === 0)
1590
+ throw new Error("useToast must be used within a Provider");
1591
+ return n;
1592
+ }
1593
+ function pa(n) {
1594
+ const { children: t = !1 } = n, [a, s] = De([]);
1595
+ function l(p) {
1596
+ return !!a.some((o) => o.key === p);
1597
+ }
1598
+ function c(p) {
1599
+ var o;
1600
+ return (o = a.find((y) => y.key === p)) == null ? void 0 : o.data;
1601
+ }
1602
+ function h(p, o) {
1603
+ s([...a, { key: p, data: o }]);
1604
+ }
1605
+ function u(p) {
1606
+ s(a.filter((o) => o.key !== p));
1607
+ }
1608
+ return /* @__PURE__ */ m.jsx(
1609
+ Wt.Provider,
1610
+ {
1611
+ value: { modalIsOpen: l, modalData: c, openModal: h, closeModal: u },
1612
+ children: t
1548
1613
  }
1614
+ );
1615
+ }
1616
+ 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;
1617
+ xe || (xe = function(n) {
1618
+ return n;
1619
+ });
1620
+ Re || (Re = function(n) {
1621
+ return n;
1622
+ });
1623
+ zt || (zt = function(n, t, a) {
1624
+ return n.apply(t, a);
1625
+ });
1626
+ $t || ($t = function(n, t) {
1627
+ return new n(...t);
1628
+ });
1629
+ 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);
1630
+ function _e(n) {
1631
+ return function(t) {
1632
+ for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
1633
+ s[l - 1] = arguments[l];
1634
+ return zt(n, t, s);
1549
1635
  };
1550
1636
  }
1637
+ function sr(n) {
1638
+ return function() {
1639
+ for (var t = arguments.length, a = new Array(t), s = 0; s < t; s++)
1640
+ a[s] = arguments[s];
1641
+ return $t(n, a);
1642
+ };
1643
+ }
1644
+ function $(n, t) {
1645
+ let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1646
+ qt && qt(n, null);
1647
+ let s = t.length;
1648
+ for (; s--; ) {
1649
+ let l = t[s];
1650
+ if (typeof l == "string") {
1651
+ let c = a(l);
1652
+ c !== l && (tr(t) || (t[s] = c), l = c);
1653
+ }
1654
+ n[l] = !0;
1655
+ }
1656
+ return n;
1657
+ }
1658
+ function ir(n) {
1659
+ for (let t = 0; t < n.length; t++)
1660
+ Pe(n, t) || (n[t] = null);
1661
+ return n;
1662
+ }
1663
+ function Ze(n) {
1664
+ let t = gn(null);
1665
+ for (let [a, s] of hn(n))
1666
+ Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
1667
+ return t;
1668
+ }
1669
+ function Et(n, t) {
1670
+ for (; n !== null; ) {
1671
+ let s = rr(n, t);
1672
+ if (s) {
1673
+ if (s.get)
1674
+ return _e(s.get);
1675
+ if (typeof s.value == "function")
1676
+ return _e(s.value);
1677
+ }
1678
+ n = nr(n);
1679
+ }
1680
+ function a() {
1681
+ return null;
1682
+ }
1683
+ return a;
1684
+ }
1685
+ 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() {
1686
+ return typeof window > "u" ? null : window;
1687
+ }, br = function(n, t) {
1688
+ if (typeof n != "object" || typeof n.createPolicy != "function")
1689
+ return null;
1690
+ let a = null, s = "data-tt-policy-suffix";
1691
+ t && t.hasAttribute(s) && (a = t.getAttribute(s));
1692
+ let l = "dompurify" + (a ? "#" + a : "");
1693
+ try {
1694
+ return n.createPolicy(l, { createHTML(c) {
1695
+ return c;
1696
+ }, createScriptURL(c) {
1697
+ return c;
1698
+ } });
1699
+ } catch {
1700
+ return console.warn("TrustedTypes policy " + l + " could not be created."), null;
1701
+ }
1702
+ };
1703
+ function bn() {
1704
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1705
+ if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1706
+ return t.isSupported = !1, t;
1707
+ 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");
1708
+ if (typeof h == "function") {
1709
+ let e = a.createElement("template");
1710
+ e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1711
+ }
1712
+ let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1713
+ t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
1714
+ 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) {
1715
+ return e instanceof RegExp || e instanceof Function;
1716
+ }, tt = function() {
1717
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1718
+ if (!(be && be === e)) {
1719
+ 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) {
1720
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1721
+ throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1722
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1723
+ throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1724
+ C = e.TRUSTED_TYPES_POLICY, H = C.createHTML("");
1725
+ } else
1726
+ C === void 0 && (C = br(b, l)), C !== null && typeof H == "string" && (H = C.createHTML(""));
1727
+ xe && xe(e), be = e;
1728
+ }
1729
+ }, 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) {
1730
+ let f = w(e);
1731
+ (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1732
+ let i = Nt(e.tagName), A = Nt(f.tagName);
1733
+ 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;
1734
+ }, Ve = function(e) {
1735
+ mt(t.removed, { element: e });
1736
+ try {
1737
+ e.parentNode.removeChild(e);
1738
+ } catch {
1739
+ e.remove();
1740
+ }
1741
+ }, nt = function(e, f) {
1742
+ try {
1743
+ mt(t.removed, { attribute: f.getAttributeNode(e), from: f });
1744
+ } catch {
1745
+ mt(t.removed, { attribute: null, from: f });
1746
+ }
1747
+ if (f.removeAttribute(e), e === "is" && !x[e])
1748
+ if (ae || me)
1749
+ try {
1750
+ Ve(f);
1751
+ } catch {
1752
+ }
1753
+ else
1754
+ try {
1755
+ f.setAttribute(e, "");
1756
+ } catch {
1757
+ }
1758
+ }, ut = function(e) {
1759
+ let f = null, i = null;
1760
+ if (qe)
1761
+ e = "<remove></remove>" + e;
1762
+ else {
1763
+ let L = Zt(e, /^[\r\n\t ]+/);
1764
+ i = L && L[0];
1765
+ }
1766
+ Z === "application/xhtml+xml" && ze === le && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1767
+ let A = C ? C.createHTML(e) : e;
1768
+ if (ze === le)
1769
+ try {
1770
+ f = new k().parseFromString(A, Z);
1771
+ } catch {
1772
+ }
1773
+ if (!f || !f.documentElement) {
1774
+ f = z.createDocument(ze, "template", null);
1775
+ try {
1776
+ f.documentElement.innerHTML = Ye ? H : A;
1777
+ } catch {
1778
+ }
1779
+ }
1780
+ let j = f.body || f.documentElement;
1781
+ 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;
1782
+ }, yt = function(e) {
1783
+ return J.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1784
+ }, At = function(e) {
1785
+ 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");
1786
+ }, bt = function(e) {
1787
+ return typeof u == "function" && e instanceof u;
1788
+ }, Oe = function(e, f, i) {
1789
+ V[e] && wt(V[e], (A) => {
1790
+ A.call(t, f, i, be);
1791
+ });
1792
+ }, r = function(e) {
1793
+ let f = null;
1794
+ if (Oe("beforeSanitizeElements", e, null), At(e))
1795
+ return Ve(e), !0;
1796
+ let i = ne(e.nodeName);
1797
+ if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1798
+ return Ve(e), !0;
1799
+ if (!G[i] || ce[i]) {
1800
+ if (!ce[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1801
+ return !1;
1802
+ if (Be && !Le[i]) {
1803
+ let A = w(e) || e.parentNode, j = T(e) || e.childNodes;
1804
+ if (j && A) {
1805
+ let L = j.length;
1806
+ for (let ie = L - 1; ie >= 0; --ie)
1807
+ A.insertBefore(P(j[ie], !0), W(e));
1808
+ }
1809
+ }
1810
+ return Ve(e), !0;
1811
+ }
1812
+ 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) => {
1813
+ f = pt(f, A, " ");
1814
+ }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1815
+ }, d = function(e, f, i) {
1816
+ if (Je && (f === "id" || f === "name") && (i in a || i in st))
1817
+ return !1;
1818
+ if (!(ve && !M[f] && Te(R, f)) && !(pe && Te(B, f))) {
1819
+ if (!x[f] || M[f]) {
1820
+ 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))))
1821
+ return !1;
1822
+ } 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)
1823
+ return !1;
1824
+ }
1825
+ return !0;
1826
+ }, g = function(e) {
1827
+ return e !== "annotation-xml" && Zt(e, ee);
1828
+ }, S = function(e) {
1829
+ Oe("beforeSanitizeAttributes", e, null);
1830
+ let { attributes: f } = e;
1831
+ if (!f)
1832
+ return;
1833
+ let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, A = f.length;
1834
+ for (; A--; ) {
1835
+ let j = f[A], { name: L, namespaceURI: ie, value: ge } = j, de = ne(L), q = L === "value" ? ge : or(ge);
1836
+ 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))
1837
+ continue;
1838
+ if (!we && Te(/\/>/i, q)) {
1839
+ nt(L, e);
1840
+ continue;
1841
+ }
1842
+ Ae && wt([F, te, _], (xt) => {
1843
+ q = pt(q, xt, " ");
1844
+ });
1845
+ let rt = ne(e.nodeName);
1846
+ if (d(rt, de, q)) {
1847
+ if (Ne && (de === "id" || de === "name") && (nt(L, e), q = ot + q), C && typeof b == "object" && typeof b.getAttributeType == "function" && !ie)
1848
+ switch (b.getAttributeType(rt, de)) {
1849
+ case "TrustedHTML": {
1850
+ q = C.createHTML(q);
1851
+ break;
1852
+ }
1853
+ case "TrustedScriptURL": {
1854
+ q = C.createScriptURL(q);
1855
+ break;
1856
+ }
1857
+ }
1858
+ try {
1859
+ ie ? e.setAttributeNS(ie, L, q) : e.setAttribute(L, q), Jt(t.removed);
1860
+ } catch {
1861
+ }
1862
+ }
1863
+ }
1864
+ Oe("afterSanitizeAttributes", e, null);
1865
+ }, Y = function e(f) {
1866
+ let i = null, A = yt(f);
1867
+ for (Oe("beforeSanitizeShadowDOM", f, null); i = A.nextNode(); )
1868
+ Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof c && e(i.content), S(i));
1869
+ Oe("afterSanitizeShadowDOM", f, null);
1870
+ };
1871
+ return t.sanitize = function(e) {
1872
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, A = null, j = null, L = null;
1873
+ if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1874
+ if (typeof e.toString == "function") {
1875
+ if (e = e.toString(), typeof e != "string")
1876
+ throw ht("dirty is not a string, aborting");
1877
+ } else
1878
+ throw ht("toString is not a function");
1879
+ if (!t.isSupported)
1880
+ return e;
1881
+ if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1882
+ if (e.nodeName) {
1883
+ let de = ne(e.nodeName);
1884
+ if (!G[de] || ce[de])
1885
+ throw ht("root node is forbidden and cannot be sanitized in-place");
1886
+ }
1887
+ } else if (e instanceof u)
1888
+ i = ut("<!---->"), A = i.ownerDocument.importNode(e, !0), A.nodeType === 1 && A.nodeName === "BODY" || A.nodeName === "HTML" ? i = A : i.appendChild(A);
1889
+ else {
1890
+ if (!ae && !Ae && !fe && e.indexOf("<") === -1)
1891
+ return C && $e ? C.createHTML(e) : e;
1892
+ if (i = ut(e), !i)
1893
+ return ae ? null : $e ? H : "";
1894
+ }
1895
+ i && qe && Ve(i.firstChild);
1896
+ let ie = yt(Se ? e : i);
1897
+ for (; j = ie.nextNode(); )
1898
+ r(j) || (j.content instanceof c && Y(j.content), S(j));
1899
+ if (Se)
1900
+ return e;
1901
+ if (ae) {
1902
+ if (me)
1903
+ for (L = X.call(i.ownerDocument); i.firstChild; )
1904
+ L.appendChild(i.firstChild);
1905
+ else
1906
+ L = i;
1907
+ return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
1908
+ }
1909
+ let ge = fe ? i.outerHTML : i.innerHTML;
1910
+ 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 + `>
1911
+ ` + ge), Ae && wt([F, te, _], (de) => {
1912
+ ge = pt(ge, de, " ");
1913
+ }), C && $e ? C.createHTML(ge) : ge;
1914
+ }, t.setConfig = function() {
1915
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1916
+ tt(e), Xe = !0;
1917
+ }, t.clearConfig = function() {
1918
+ be = null, Xe = !1;
1919
+ }, t.isValidAttribute = function(e, f, i) {
1920
+ be || tt({});
1921
+ let A = ne(e), j = ne(f);
1922
+ return d(A, j, i);
1923
+ }, t.addHook = function(e, f) {
1924
+ typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1925
+ }, t.removeHook = function(e) {
1926
+ if (V[e])
1927
+ return Jt(V[e]);
1928
+ }, t.removeHooks = function(e) {
1929
+ V[e] && (V[e] = []);
1930
+ }, t.removeAllHooks = function() {
1931
+ V = {};
1932
+ }, t;
1933
+ }
1934
+ var xr = bn(), wr = (n) => {
1935
+ switch (n) {
1936
+ case "success":
1937
+ return Tr;
1938
+ case "info":
1939
+ return Nr;
1940
+ case "warning":
1941
+ return _r;
1942
+ case "error":
1943
+ return kr;
1944
+ default:
1945
+ return null;
1946
+ }
1947
+ }, 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 = () => {
1948
+ let [n, t] = v.useState(!1);
1949
+ return v.useEffect(() => {
1950
+ let a = () => {
1951
+ t(document.hidden);
1952
+ };
1953
+ return document.addEventListener("visibilitychange", a), () => window.removeEventListener("visibilitychange", a);
1954
+ }, []), n;
1955
+ }, Ft = 1, Rr = class {
1956
+ constructor() {
1957
+ this.subscribe = (n) => (this.subscribers.push(n), () => {
1958
+ let t = this.subscribers.indexOf(n);
1959
+ this.subscribers.splice(t, 1);
1960
+ }), this.publish = (n) => {
1961
+ this.subscribers.forEach((t) => t(n));
1962
+ }, this.addToast = (n) => {
1963
+ this.publish(n), this.toasts = [...this.toasts, n];
1964
+ }, this.create = (n) => {
1965
+ var t;
1966
+ 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;
1967
+ 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;
1968
+ }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1969
+ this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1970
+ }), 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) => {
1971
+ if (!t)
1972
+ return;
1973
+ let a;
1974
+ t.loading !== void 0 && (a = this.create({ ...t, promise: n, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1975
+ let s = n instanceof Promise ? n : n(), l = a !== void 0;
1976
+ return s.then((c) => {
1977
+ if (c && typeof c.ok == "boolean" && !c.ok) {
1978
+ l = !1;
1979
+ 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;
1980
+ this.create({ id: a, type: "error", message: h, description: u });
1981
+ } else if (t.success !== void 0) {
1982
+ l = !1;
1983
+ let h = typeof t.success == "function" ? t.success(c) : t.success, u = typeof t.description == "function" ? t.description(c) : t.description;
1984
+ this.create({ id: a, type: "success", message: h, description: u });
1985
+ }
1986
+ }).catch((c) => {
1987
+ if (t.error !== void 0) {
1988
+ l = !1;
1989
+ let h = typeof t.error == "function" ? t.error(c) : t.error, u = typeof t.description == "function" ? t.description(c) : t.description;
1990
+ this.create({ id: a, type: "error", message: h, description: u });
1991
+ }
1992
+ }).finally(() => {
1993
+ var c;
1994
+ l && (this.dismiss(a), a = void 0), (c = t.finally) == null || c.call(t);
1995
+ }), a;
1996
+ }, this.custom = (n, t) => {
1997
+ let a = (t == null ? void 0 : t.id) || Ft++;
1998
+ return this.create({ jsx: n(a), id: a, ...t }), a;
1999
+ }, this.subscribers = [], this.toasts = [];
2000
+ }
2001
+ }, je = new Rr(), Ir = (n, t) => {
2002
+ let a = (t == null ? void 0 : t.id) || Ft++;
2003
+ return je.addToast({ title: n, ...t, id: a }), a;
2004
+ }, 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 });
2005
+ function Lr(n, { insertAt: t } = {}) {
2006
+ if (!n || typeof document > "u")
2007
+ return;
2008
+ let a = document.head || document.getElementsByTagName("head")[0], s = document.createElement("style");
2009
+ 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));
2010
+ }
2011
+ 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%)}
2012
+ `);
2013
+ function _t(n) {
2014
+ return n.label !== void 0 && typeof n.onClick == "function";
2015
+ }
2016
+ var Or = 3, Pr = "32px", jr = 4e3, Dr = 356, Mr = 14, zr = 20, $r = 200;
2017
+ function Fr(...n) {
2018
+ return n.filter(Boolean).join(" ");
2019
+ }
2020
+ var Br = (n) => {
2021
+ var t, a, s, l, c, h, u;
2022
+ 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(() => {
2023
+ var E;
2024
+ return (E = o.closeButton) != null ? E : C;
2025
+ }, [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";
2026
+ ye.current = v.useMemo(() => Ne * F + We, [Ne, We]), v.useEffect(() => {
2027
+ G(!0);
2028
+ }, []), v.useLayoutEffect(() => {
2029
+ if (!se)
2030
+ return;
2031
+ let E = fe.current, oe = E.style.height;
2032
+ E.style.height = "auto";
2033
+ let Z = E.getBoundingClientRect().height;
2034
+ 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]);
2035
+ }, [se, o.title, o.description, k, o.id]);
2036
+ let le = v.useCallback(() => {
2037
+ x(!0), ve(ye.current), k((E) => E.filter((oe) => oe.toastId !== o.id)), setTimeout(() => {
2038
+ w(o);
2039
+ }, $r);
2040
+ }, [o, w, k, ye]);
2041
+ v.useEffect(() => {
2042
+ if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
2043
+ return;
2044
+ let E, oe = Be;
2045
+ return T || N || ue && He ? (() => {
2046
+ if (Le.current < Se.current) {
2047
+ let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2048
+ oe = oe - Z;
2049
+ }
2050
+ Le.current = (/* @__PURE__ */ new Date()).getTime();
2051
+ })() : oe !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
2052
+ var Z;
2053
+ (Z = o.onAutoClose) == null || Z.call(o, o), le();
2054
+ }, oe)), () => clearTimeout(E);
2055
+ }, [T, N, _, o, Be, le, o.promise, ae, ue, He]), v.useEffect(() => {
2056
+ let E = fe.current;
2057
+ if (E) {
2058
+ let oe = E.getBoundingClientRect().height;
2059
+ return we(oe), k((Z) => [{ toastId: o.id, height: oe, position: o.position }, ...Z]), () => k((Z) => Z.filter((Ee) => Ee.toastId !== o.id));
2060
+ }
2061
+ }, [k, o.id]), v.useEffect(() => {
2062
+ o.delete && le();
2063
+ }, [le, o.delete]);
2064
+ function ze() {
2065
+ 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" });
2066
+ }
2067
+ function Ye(E) {
2068
+ return { __html: xr.sanitize(E) };
2069
+ }
2070
+ 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) => {
2071
+ 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 }));
2072
+ }, onPointerUp: () => {
2073
+ var E, oe, Z, Ee;
2074
+ if (ce || !me)
2075
+ return;
2076
+ ke.current = null;
2077
+ 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;
2078
+ if (Math.abs(he) >= zr || be > 0.11) {
2079
+ ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), le(), M(!0);
2080
+ return;
2081
+ }
2082
+ (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), I(!1);
2083
+ }, onPointerMove: (E) => {
2084
+ var oe;
2085
+ if (!ke.current || !me)
2086
+ return;
2087
+ 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;
2088
+ Math.abs(he) > ne ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2089
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": K, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2090
+ } : () => {
2091
+ var E;
2092
+ le(), (E = o.onDismiss) == null || E.call(o, o);
2093
+ }, 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) => {
2094
+ _t(o.cancel) && me && (le(), o.cancel.onClick(E));
2095
+ }, 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) => {
2096
+ _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && le());
2097
+ }, className: ee(R == null ? void 0 : R.actionButton, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.actionButton) }, o.action.label) : null));
2098
+ };
2099
+ function an() {
2100
+ if (typeof window > "u" || typeof document > "u")
2101
+ return "ltr";
2102
+ let n = document.documentElement.getAttribute("dir");
2103
+ return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2104
+ }
2105
+ var Ur = (n) => {
2106
+ 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)), []);
2107
+ return v.useEffect(() => je.subscribe((D) => {
2108
+ if (D.dismiss) {
2109
+ J((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
2110
+ return;
2111
+ }
2112
+ setTimeout(() => {
2113
+ Rn.flushSync(() => {
2114
+ J((x) => {
2115
+ let U = x.findIndex((I) => I.id === D.id);
2116
+ return U !== -1 ? [...x.slice(0, U), { ...x[U], ...D }, ...x.slice(U + 1)] : [D, ...x];
2117
+ });
2118
+ });
2119
+ });
2120
+ }), []), v.useEffect(() => {
2121
+ if (p !== "system") {
2122
+ B(p);
2123
+ return;
2124
+ }
2125
+ 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 }) => {
2126
+ B(D ? "dark" : "light");
2127
+ });
2128
+ }, [p]), v.useEffect(() => {
2129
+ z.length <= 1 && F(!1);
2130
+ }, [z]), v.useEffect(() => {
2131
+ let D = (x) => {
2132
+ var U, I;
2133
+ 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);
2134
+ };
2135
+ return document.addEventListener("keydown", D), () => document.removeEventListener("keydown", D);
2136
+ }, [s]), v.useEffect(() => {
2137
+ if (K.current)
2138
+ return () => {
2139
+ ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, se.current = !1);
2140
+ };
2141
+ }, [K.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${ue}`, tabIndex: -1 }, X.map((D, x) => {
2142
+ var U;
2143
+ let [I, ce] = D.split("-");
2144
+ 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) => {
2145
+ se.current && !M.currentTarget.contains(M.relatedTarget) && (se.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2146
+ }, onFocus: (M) => {
2147
+ M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || se.current || (se.current = !0, ee.current = M.relatedTarget);
2148
+ }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
2149
+ te || F(!1);
2150
+ }, onPointerDown: (M) => {
2151
+ M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || _(!0);
2152
+ }, onPointerUp: () => _(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
2153
+ var ve, Ie;
2154
+ 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 });
2155
+ }));
2156
+ })) : null;
2157
+ };
2158
+ /*! Bundled license information:
2159
+
2160
+ dompurify/dist/purify.es.mjs:
2161
+ (*! @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 *)
2162
+ */
2163
+ function ha({ children: n }) {
2164
+ function t(c) {
2165
+ Tt.success(c);
2166
+ }
2167
+ function a(c) {
2168
+ Tt.info(c);
2169
+ }
2170
+ function s(c) {
2171
+ Tt.error(c);
2172
+ }
2173
+ function l(c) {
2174
+ Tt.warning(c);
2175
+ }
2176
+ return /* @__PURE__ */ m.jsxs(
2177
+ pn.Provider,
2178
+ {
2179
+ value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
2180
+ children: [
2181
+ /* @__PURE__ */ m.jsx(Ur, { richColors: !0 }),
2182
+ n
2183
+ ]
2184
+ }
2185
+ );
2186
+ }
1551
2187
  export {
1552
- gn as Badge,
1553
- Nn as Breadcrumb,
1554
- $n as BreadcrumbLink,
1555
- bn as Button,
1556
- _n as Checkbox,
1557
- xn as Divider,
1558
- Sn as FormController,
1559
- Cn as FormError,
1560
- kn as FormLabel,
1561
- jn as IconButton,
1562
- Rn as Input,
1563
- Pn as Modal,
1564
- En as Select,
1565
- yn as Skeleton,
1566
- In as Tooltip,
1567
- wn as useScopedParams
2188
+ Xr as Badge,
2189
+ sa as Breadcrumb,
2190
+ ia as BreadcrumbLink,
2191
+ Zr as Button,
2192
+ ea as Checkbox,
2193
+ qr as Divider,
2194
+ Qr as FormController,
2195
+ ta as FormError,
2196
+ na as FormLabel,
2197
+ ra as IconButton,
2198
+ aa as Input,
2199
+ la as Modal,
2200
+ pa as ModalProvider,
2201
+ oa as Select,
2202
+ Jr as Skeleton,
2203
+ ha as ToastProvider,
2204
+ ca as Tooltip,
2205
+ ua as useAutomation,
2206
+ da as useModal,
2207
+ fa as useScopedParams,
2208
+ ma as useToast
1568
2209
  };