@arkyn/components 1.3.12 → 1.3.14

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