stp-ui-kit 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { jsx as l, jsxs as A, Fragment as Ut } from "react/jsx-runtime";
2
- import p, { useState as xe, useEffect as qe, forwardRef as Ft, createElement as wt, useRef as ze, createContext as To, useContext as Eo, useId as Ao } from "react";
3
- import Do, { createPortal as zo } from "react-dom";
1
+ import { jsx as l, jsxs as z, Fragment as Ut } from "react/jsx-runtime";
2
+ import p, { useState as xe, useEffect as qe, forwardRef as Ft, createElement as wt, useRef as De, createContext as To, useContext as Eo, useId as zo } from "react";
3
+ import Ao, { createPortal as Do } from "react-dom";
4
4
  import { createRoot as Oo } from "react-dom/client";
5
5
  var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function Xt(e) {
@@ -99,7 +99,7 @@ var Zt = { exports: {} };
99
99
  (function(o, n) {
100
100
  e.exports = n();
101
101
  })(Bo, function() {
102
- var o = 1e3, n = 6e4, a = 36e5, r = "millisecond", i = "second", f = "minute", u = "hour", m = "day", g = "week", s = "month", j = "quarter", M = "year", k = "date", z = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
102
+ var o = 1e3, n = 6e4, a = 36e5, r = "millisecond", i = "second", f = "minute", u = "hour", m = "day", g = "week", s = "month", j = "quarter", M = "year", k = "date", D = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
103
103
  var h = ["th", "st", "nd", "rd"], d = C % 100;
104
104
  return "[" + C + (h[(d - 20) % 10] || h[d] || h[0]) + "]";
105
105
  } }, V = function(C, h, d) {
@@ -169,7 +169,7 @@ var Zt = { exports: {} };
169
169
  }, h.$utils = function() {
170
170
  return E;
171
171
  }, h.isValid = function() {
172
- return this.$d.toString() !== z;
172
+ return this.$d.toString() !== D;
173
173
  }, h.isSame = function(d, b) {
174
174
  var c = q(d);
175
175
  return this.startOf(b) <= c && c <= this.endOf(b);
@@ -189,15 +189,15 @@ var Zt = { exports: {} };
189
189
  return $ ? ie : ie.endOf(m);
190
190
  }, T = function(te, U) {
191
191
  return E.w(c.toDate()[te].apply(c.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), c);
192
- }, x = this.$W, D = this.$M, G = this.$D, P = "set" + (this.$u ? "UTC" : "");
192
+ }, x = this.$W, A = this.$M, G = this.$D, P = "set" + (this.$u ? "UTC" : "");
193
193
  switch (I) {
194
194
  case M:
195
195
  return $ ? N(1, 0) : N(31, 11);
196
196
  case s:
197
- return $ ? N(1, D) : N(0, D + 1);
197
+ return $ ? N(1, A) : N(0, A + 1);
198
198
  case g:
199
199
  var H = this.$locale().weekStart || 0, ae = (x < H ? x + 7 : x) - H;
200
- return N($ ? G - ae : G + (6 - ae), D);
200
+ return N($ ? G - ae : G + (6 - ae), A);
201
201
  case m:
202
202
  case k:
203
203
  return T(P + "Hours", 0);
@@ -226,9 +226,9 @@ var Zt = { exports: {} };
226
226
  }, h.add = function(d, b) {
227
227
  var c, $ = this;
228
228
  d = Number(d);
229
- var I = E.p(b), N = function(D) {
229
+ var I = E.p(b), N = function(A) {
230
230
  var G = q($);
231
- return E.w(G.date(G.date() + Math.round(D * d)), $);
231
+ return E.w(G.date(G.date() + Math.round(A * d)), $);
232
232
  };
233
233
  if (I === s) return this.set(s, this.$M + d);
234
234
  if (I === M) return this.set(M, this.$y + d);
@@ -240,8 +240,8 @@ var Zt = { exports: {} };
240
240
  return this.add(-1 * d, b);
241
241
  }, h.format = function(d) {
242
242
  var b = this, c = this.$locale();
243
- if (!this.isValid()) return c.invalidDate || z;
244
- var $ = d || "YYYY-MM-DDTHH:mm:ssZ", I = E.z(this), N = this.$H, T = this.$m, x = this.$M, D = c.weekdays, G = c.months, P = c.meridiem, H = function(U, ie, ue, je) {
243
+ if (!this.isValid()) return c.invalidDate || D;
244
+ var $ = d || "YYYY-MM-DDTHH:mm:ssZ", I = E.z(this), N = this.$H, T = this.$m, x = this.$M, A = c.weekdays, G = c.months, P = c.meridiem, H = function(U, ie, ue, je) {
245
245
  return U && (U[ie] || U(b, $)) || ue[ie].slice(0, je);
246
246
  }, ae = function(U) {
247
247
  return E.s(N % 12 || 12, U, "0");
@@ -271,11 +271,11 @@ var Zt = { exports: {} };
271
271
  case "d":
272
272
  return String(b.$W);
273
273
  case "dd":
274
- return H(c.weekdaysMin, b.$W, D, 2);
274
+ return H(c.weekdaysMin, b.$W, A, 2);
275
275
  case "ddd":
276
- return H(c.weekdaysShort, b.$W, D, 3);
276
+ return H(c.weekdaysShort, b.$W, A, 3);
277
277
  case "dddd":
278
- return D[b.$W];
278
+ return A[b.$W];
279
279
  case "H":
280
280
  return String(N);
281
281
  case "HH":
@@ -307,7 +307,7 @@ var Zt = { exports: {} };
307
307
  }, h.utcOffset = function() {
308
308
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
309
309
  }, h.diff = function(d, b, c) {
310
- var $, I = this, N = E.p(b), T = q(d), x = (T.utcOffset() - this.utcOffset()) * n, D = this - T, G = function() {
310
+ var $, I = this, N = E.p(b), T = q(d), x = (T.utcOffset() - this.utcOffset()) * n, A = this - T, G = function() {
311
311
  return E.m(I, T);
312
312
  };
313
313
  switch (N) {
@@ -321,22 +321,22 @@ var Zt = { exports: {} };
321
321
  $ = G() / 3;
322
322
  break;
323
323
  case g:
324
- $ = (D - x) / 6048e5;
324
+ $ = (A - x) / 6048e5;
325
325
  break;
326
326
  case m:
327
- $ = (D - x) / 864e5;
327
+ $ = (A - x) / 864e5;
328
328
  break;
329
329
  case u:
330
- $ = D / a;
330
+ $ = A / a;
331
331
  break;
332
332
  case f:
333
- $ = D / n;
333
+ $ = A / n;
334
334
  break;
335
335
  case i:
336
- $ = D / o;
336
+ $ = A / o;
337
337
  break;
338
338
  default:
339
- $ = D;
339
+ $ = A;
340
340
  }
341
341
  return c ? $ : E.a($);
342
342
  }, h.daysInMonth = function() {
@@ -403,10 +403,10 @@ const Qo = /* @__PURE__ */ Xt(Jo), en = (e) => {
403
403
  R <= 0 ? (u(!0), g({ days: 0, hours: 0, minutes: 0, seconds: 0 })) : g(M(R));
404
404
  };
405
405
  k();
406
- const z = setInterval(k, 1e3);
407
- return () => clearInterval(z);
406
+ const D = setInterval(k, 1e3);
407
+ return () => clearInterval(D);
408
408
  }, [n]);
409
- const s = (j, M) => /* @__PURE__ */ A("div", { className: Me.timerCell, children: [
409
+ const s = (j, M) => /* @__PURE__ */ z("div", { className: Me.timerCell, children: [
410
410
  /* @__PURE__ */ l(
411
411
  de,
412
412
  {
@@ -417,18 +417,18 @@ const Qo = /* @__PURE__ */ Xt(Jo), en = (e) => {
417
417
  ),
418
418
  M
419
419
  ] });
420
- return /* @__PURE__ */ A(
420
+ return /* @__PURE__ */ z(
421
421
  "div",
422
422
  {
423
423
  className: Me.container,
424
424
  style: { backgroundColor: e },
425
425
  children: [
426
- /* @__PURE__ */ A("div", { className: Me.content, children: [
427
- /* @__PURE__ */ A("div", { className: Me.title, children: [
426
+ /* @__PURE__ */ z("div", { className: Me.content, children: [
427
+ /* @__PURE__ */ z("div", { className: Me.title, children: [
428
428
  /* @__PURE__ */ l(de, { variant: "heading-md", children: t }),
429
429
  /* @__PURE__ */ l(de, { variant: "body-md", children: en(n) })
430
430
  ] }),
431
- /* @__PURE__ */ A("div", { className: Me.timer, children: [
431
+ /* @__PURE__ */ z("div", { className: Me.timer, children: [
432
432
  s(m.days, "Days"),
433
433
  s(m.hours, "Hours"),
434
434
  s(m.minutes, "Minutes"),
@@ -688,7 +688,7 @@ const kn = [
688
688
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
689
689
  ], Ze = Ee("x", kn), $n = "_message_yijnh_29", Pt = {
690
690
  message: $n
691
- }, ct = ({ children: e }) => /* @__PURE__ */ A("div", { className: S(Pt.message), children: [
691
+ }, ct = ({ children: e }) => /* @__PURE__ */ z("div", { className: S(Pt.message), children: [
692
692
  /* @__PURE__ */ l(
693
693
  to,
694
694
  {
@@ -714,7 +714,7 @@ const kn = [
714
714
  onChange: i,
715
715
  ...f
716
716
  }) => {
717
- const u = ze(null);
717
+ const u = De(null);
718
718
  qe(() => {
719
719
  u.current && (u.current.indeterminate = !!r);
720
720
  }, [r]);
@@ -726,7 +726,7 @@ const kn = [
726
726
  i == null || i(g);
727
727
  }
728
728
  };
729
- return /* @__PURE__ */ A("div", { className: _e.formItem, children: [
729
+ return /* @__PURE__ */ z("div", { className: _e.formItem, children: [
730
730
  /* @__PURE__ */ l(
731
731
  "input",
732
732
  {
@@ -740,7 +740,7 @@ const kn = [
740
740
  ...f
741
741
  }
742
742
  ),
743
- /* @__PURE__ */ A("div", { className: _e.labelContainer, children: [
743
+ /* @__PURE__ */ z("div", { className: _e.labelContainer, children: [
744
744
  /* @__PURE__ */ l(
745
745
  "div",
746
746
  {
@@ -771,11 +771,11 @@ const kn = [
771
771
  )
772
772
  ] })
773
773
  ] });
774
- }, En = "_navigationItem_1epug_29", An = "_container_1epug_45", Dn = "_IconContainer_1epug_51", zn = "_ParentLine_1epug_57", On = "_secondaryIcon_1epug_69", Bn = "_active_1epug_80", Rn = "_collapsed_1epug_88", jn = "_label_1epug_92", $e = {
774
+ }, En = "_navigationItem_1epug_29", zn = "_container_1epug_45", An = "_IconContainer_1epug_51", Dn = "_ParentLine_1epug_57", On = "_secondaryIcon_1epug_69", Bn = "_active_1epug_80", Rn = "_collapsed_1epug_88", jn = "_label_1epug_92", $e = {
775
775
  navigationItem: En,
776
- container: An,
777
- IconContainer: Dn,
778
- ParentLine: zn,
776
+ container: zn,
777
+ IconContainer: An,
778
+ ParentLine: Dn,
779
779
  secondaryIcon: On,
780
780
  active: Bn,
781
781
  collapsed: Rn,
@@ -789,7 +789,7 @@ const kn = [
789
789
  isParentNode: r = !1,
790
790
  onClick: i,
791
791
  className: f
792
- }) => /* @__PURE__ */ A(
792
+ }) => /* @__PURE__ */ z(
793
793
  "div",
794
794
  {
795
795
  className: S(
@@ -799,8 +799,8 @@ const kn = [
799
799
  ),
800
800
  onClick: i,
801
801
  children: [
802
- /* @__PURE__ */ A("div", { className: $e.container, children: [
803
- /* @__PURE__ */ A("div", { className: $e.IconContainer, children: [
802
+ /* @__PURE__ */ z("div", { className: $e.container, children: [
803
+ /* @__PURE__ */ z("div", { className: $e.IconContainer, children: [
804
804
  e,
805
805
  r && /* @__PURE__ */ l(
806
806
  "img",
@@ -844,7 +844,7 @@ const kn = [
844
844
  ), [a, r] = xe(n !== -1), i = () => {
845
845
  o.children && r(!a), t(o);
846
846
  };
847
- return /* @__PURE__ */ A("div", { children: [
847
+ return /* @__PURE__ */ z("div", { children: [
848
848
  /* @__PURE__ */ l(
849
849
  lt,
850
850
  {
@@ -857,7 +857,7 @@ const kn = [
857
857
  className: S(a && n === -1 && Xe.isOpen)
858
858
  }
859
859
  ),
860
- /* @__PURE__ */ l("div", { className: Xe.childContainer, children: a && ((u = o.children) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ A(
860
+ /* @__PURE__ */ l("div", { className: Xe.childContainer, children: a && ((u = o.children) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ z(
861
861
  "div",
862
862
  {
863
863
  className: S(
@@ -866,7 +866,7 @@ const kn = [
866
866
  ),
867
867
  onClick: () => t(m),
868
868
  children: [
869
- /* @__PURE__ */ A("div", { className: Xe.arrowBlock, children: [
869
+ /* @__PURE__ */ z("div", { className: Xe.arrowBlock, children: [
870
870
  n === g && /* @__PURE__ */ l(
871
871
  "img",
872
872
  {
@@ -912,7 +912,7 @@ const kn = [
912
912
  ), [a, r] = xe(n !== -1), i = () => {
913
913
  o.children && r(!a), t(o);
914
914
  };
915
- return /* @__PURE__ */ A("div", { children: [
915
+ return /* @__PURE__ */ z("div", { children: [
916
916
  /* @__PURE__ */ l(
917
917
  lt,
918
918
  {
@@ -925,7 +925,7 @@ const kn = [
925
925
  className: S(a && n === -1 && Ve.isOpen)
926
926
  }
927
927
  ),
928
- /* @__PURE__ */ l("div", { className: Ve.childContainer, children: a && ((u = o.children) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ A(
928
+ /* @__PURE__ */ l("div", { className: Ve.childContainer, children: a && ((u = o.children) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ z(
929
929
  "div",
930
930
  {
931
931
  className: S(
@@ -934,7 +934,7 @@ const kn = [
934
934
  ),
935
935
  onClick: () => t(m),
936
936
  children: [
937
- /* @__PURE__ */ A("div", { className: Ve.arrowBlock, children: [
937
+ /* @__PURE__ */ z("div", { className: Ve.arrowBlock, children: [
938
938
  n === g && /* @__PURE__ */ l(
939
939
  "img",
940
940
  {
@@ -975,12 +975,12 @@ const kn = [
975
975
  options: Fn,
976
976
  container: Xn,
977
977
  option: Kn
978
- }, Ai = ({
978
+ }, zi = ({
979
979
  items: e,
980
980
  children: t,
981
981
  className: o
982
982
  }) => {
983
- const [n, a] = xe(!1), r = ze(null);
983
+ const [n, a] = xe(!1), r = De(null);
984
984
  return qe(() => {
985
985
  const i = (f) => {
986
986
  r.current && !r.current.contains(f.target) && a(!1);
@@ -988,7 +988,7 @@ const kn = [
988
988
  return n && document.addEventListener("mousedown", i), () => {
989
989
  document.removeEventListener("mousedown", i);
990
990
  };
991
- }, [n]), /* @__PURE__ */ A(
991
+ }, [n]), /* @__PURE__ */ z(
992
992
  "div",
993
993
  {
994
994
  className: S(o),
@@ -996,7 +996,7 @@ const kn = [
996
996
  style: { position: "relative" },
997
997
  children: [
998
998
  /* @__PURE__ */ l("div", { onClick: () => a((i) => !i), children: t }),
999
- n && /* @__PURE__ */ l("div", { className: pt.options, children: /* @__PURE__ */ l("div", { className: pt.container, children: e.map((i, f) => /* @__PURE__ */ A(
999
+ n && /* @__PURE__ */ l("div", { className: pt.options, children: /* @__PURE__ */ l("div", { className: pt.container, children: e.map((i, f) => /* @__PURE__ */ z(
1000
1000
  "div",
1001
1001
  {
1002
1002
  className: S(pt.option),
@@ -1022,7 +1022,7 @@ const kn = [
1022
1022
  buttonContent: es,
1023
1023
  mobile: ts,
1024
1024
  desktop: os
1025
- }, ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ l("div", { className: `${Te.emptyContainer} ${t}`, children: e }), ss = ({ children: e, className: t = "" }) => /* @__PURE__ */ A(Ut, { children: [
1025
+ }, ns = ({ children: e, className: t = "" }) => /* @__PURE__ */ l("div", { className: `${Te.emptyContainer} ${t}`, children: e }), ss = ({ children: e, className: t = "" }) => /* @__PURE__ */ z(Ut, { children: [
1026
1026
  /* @__PURE__ */ l(
1027
1027
  de,
1028
1028
  {
@@ -1135,7 +1135,7 @@ const us = "_formItem_4e017_29", ms = "_critical_4e017_36", fs = "_message_4e017
1135
1135
  ro.displayName = "FormItem.Input";
1136
1136
  const vs = ({ children: e }) => {
1137
1137
  const { state: t } = Mt();
1138
- return e ? /* @__PURE__ */ A(
1138
+ return e ? /* @__PURE__ */ z(
1139
1139
  "div",
1140
1140
  {
1141
1141
  className: S(
@@ -1202,14 +1202,14 @@ const ws = "_btn_vv6xf_29", xs = "_small_vv6xf_42", ks = "_medium_vv6xf_45", $s
1202
1202
  children: a
1203
1203
  }
1204
1204
  );
1205
- }, Ss = "_formItem_f27ec_29", Is = "_label_f27ec_36", Ts = "_disabled_f27ec_39", Es = "_readOnly_f27ec_42", As = "_inputContainer_f27ec_46", Ds = "_error_f27ec_76", zs = "_input_f27ec_46", Os = "_message_f27ec_94", he = {
1205
+ }, Ss = "_formItem_f27ec_29", Is = "_label_f27ec_36", Ts = "_disabled_f27ec_39", Es = "_readOnly_f27ec_42", zs = "_inputContainer_f27ec_46", As = "_error_f27ec_76", Ds = "_input_f27ec_46", Os = "_message_f27ec_94", he = {
1206
1206
  formItem: Ss,
1207
1207
  label: Is,
1208
1208
  disabled: Ts,
1209
1209
  readOnly: Es,
1210
- inputContainer: As,
1211
- error: Ds,
1212
- input: zs,
1210
+ inputContainer: zs,
1211
+ error: As,
1212
+ input: Ds,
1213
1213
  message: Os
1214
1214
  }, ao = ({
1215
1215
  label: e,
@@ -1220,7 +1220,7 @@ const ws = "_btn_vv6xf_29", xs = "_small_vv6xf_42", ks = "_medium_vv6xf_45", $s
1220
1220
  prefix: r,
1221
1221
  postfix: i,
1222
1222
  children: f
1223
- }) => /* @__PURE__ */ A("div", { className: he.formItem, children: [
1223
+ }) => /* @__PURE__ */ z("div", { className: he.formItem, children: [
1224
1224
  e && /* @__PURE__ */ l(
1225
1225
  "label",
1226
1226
  {
@@ -1231,7 +1231,7 @@ const ws = "_btn_vv6xf_29", xs = "_small_vv6xf_42", ks = "_medium_vv6xf_45", $s
1231
1231
  children: e
1232
1232
  }
1233
1233
  ),
1234
- /* @__PURE__ */ A(
1234
+ /* @__PURE__ */ z(
1235
1235
  "div",
1236
1236
  {
1237
1237
  className: S(he.inputContainer, {
@@ -1273,7 +1273,7 @@ const ws = "_btn_vv6xf_29", xs = "_small_vv6xf_42", ks = "_medium_vv6xf_45", $s
1273
1273
  }, M) => {
1274
1274
  const k = (_) => {
1275
1275
  u && !new RegExp(u).test(_.target.value) ? _.target.setCustomValidity("Неверный формат") : _.target.setCustomValidity(""), g == null || g(_);
1276
- }, z = (_) => {
1276
+ }, D = (_) => {
1277
1277
  if (m && !_.target.value) {
1278
1278
  const R = m;
1279
1279
  _.target.value = R, _.target.setSelectionRange(R.length, R.length), _.target.dispatchEvent(new Event("input", { bubbles: !0 }));
@@ -1298,7 +1298,7 @@ const ws = "_btn_vv6xf_29", xs = "_small_vv6xf_42", ks = "_medium_vv6xf_45", $s
1298
1298
  disabled: r,
1299
1299
  readOnly: i,
1300
1300
  onChange: k,
1301
- onFocus: z,
1301
+ onFocus: D,
1302
1302
  ...j
1303
1303
  }
1304
1304
  )
@@ -1595,7 +1595,7 @@ function ar(e) {
1595
1595
  }
1596
1596
  const ir = (e) => {
1597
1597
  var t, o, n, a, r, i, f, u, m;
1598
- const { invert: g, toast: s, unstyled: j, interacting: M, setHeights: k, visibleToasts: z, heights: _, index: R, toasts: Z, expanded: V, removeToast: J, defaultRichColors: Y, closeButton: W, style: L, cancelButtonStyle: y, actionButtonStyle: F, className: q = "", descriptionClassName: E = "", duration: K, position: re, gap: C, expandByDefault: h, classNames: d, icons: b, closeButtonAriaLabel: c = "Close toast" } = e, [$, I] = p.useState(null), [N, T] = p.useState(null), [x, D] = p.useState(!1), [G, P] = p.useState(!1), [H, ae] = p.useState(!1), [te, U] = p.useState(!1), [ie, ue] = p.useState(!1), [je, dt] = p.useState(0), [yo, Tt] = p.useState(0), Fe = p.useRef(s.duration || K || Ht), Et = p.useRef(null), ke = p.useRef(null), vo = R === 0, wo = R + 1 <= z, me = s.type, Le = s.dismissible !== !1, xo = s.className || "", ko = s.descriptionClassName || "", Qe = p.useMemo(() => _.findIndex((O) => O.toastId === s.id) || 0, [
1598
+ const { invert: g, toast: s, unstyled: j, interacting: M, setHeights: k, visibleToasts: D, heights: _, index: R, toasts: Z, expanded: V, removeToast: J, defaultRichColors: Y, closeButton: W, style: L, cancelButtonStyle: y, actionButtonStyle: F, className: q = "", descriptionClassName: E = "", duration: K, position: re, gap: C, expandByDefault: h, classNames: d, icons: b, closeButtonAriaLabel: c = "Close toast" } = e, [$, I] = p.useState(null), [N, T] = p.useState(null), [x, A] = p.useState(!1), [G, P] = p.useState(!1), [H, ae] = p.useState(!1), [te, U] = p.useState(!1), [ie, ue] = p.useState(!1), [je, dt] = p.useState(0), [yo, Tt] = p.useState(0), Fe = p.useRef(s.duration || K || Ht), Et = p.useRef(null), ke = p.useRef(null), vo = R === 0, wo = R + 1 <= D, me = s.type, Le = s.dismissible !== !1, xo = s.className || "", ko = s.descriptionClassName || "", Qe = p.useMemo(() => _.findIndex((O) => O.toastId === s.id) || 0, [
1599
1599
  _,
1600
1600
  s.id
1601
1601
  ]), $o = p.useMemo(() => {
@@ -1604,22 +1604,22 @@ const ir = (e) => {
1604
1604
  }, [
1605
1605
  s.closeButton,
1606
1606
  W
1607
- ]), At = p.useMemo(() => s.duration || K || Ht, [
1607
+ ]), zt = p.useMemo(() => s.duration || K || Ht, [
1608
1608
  s.duration,
1609
1609
  K
1610
- ]), ut = p.useRef(0), Pe = p.useRef(0), Dt = p.useRef(0), He = p.useRef(null), [No, Co] = re.split("-"), zt = p.useMemo(() => _.reduce((O, oe, se) => se >= Qe ? O : O + oe.height, 0), [
1610
+ ]), ut = p.useRef(0), Pe = p.useRef(0), At = p.useRef(0), He = p.useRef(null), [No, Co] = re.split("-"), Dt = p.useMemo(() => _.reduce((O, oe, se) => se >= Qe ? O : O + oe.height, 0), [
1611
1611
  _,
1612
1612
  Qe
1613
1613
  ]), Ot = Gs(), Mo = s.invert || g, mt = me === "loading";
1614
- Pe.current = p.useMemo(() => Qe * C + zt, [
1614
+ Pe.current = p.useMemo(() => Qe * C + Dt, [
1615
1615
  Qe,
1616
- zt
1616
+ Dt
1617
1617
  ]), p.useEffect(() => {
1618
- Fe.current = At;
1618
+ Fe.current = zt;
1619
1619
  }, [
1620
- At
1620
+ zt
1621
1621
  ]), p.useEffect(() => {
1622
- D(!0);
1622
+ A(!0);
1623
1623
  }, []), p.useEffect(() => {
1624
1624
  const O = ke.current;
1625
1625
  if (O) {
@@ -1676,11 +1676,11 @@ const ir = (e) => {
1676
1676
  if (s.promise && me === "loading" || s.duration === 1 / 0 || s.type === "loading") return;
1677
1677
  let O;
1678
1678
  return V || M || Ot ? (() => {
1679
- if (Dt.current < ut.current) {
1679
+ if (At.current < ut.current) {
1680
1680
  const fe = (/* @__PURE__ */ new Date()).getTime() - ut.current;
1681
1681
  Fe.current = Fe.current - fe;
1682
1682
  }
1683
- Dt.current = (/* @__PURE__ */ new Date()).getTime();
1683
+ At.current = (/* @__PURE__ */ new Date()).getTime();
1684
1684
  })() : (() => {
1685
1685
  Fe.current !== 1 / 0 && (ut.current = (/* @__PURE__ */ new Date()).getTime(), O = setTimeout(() => {
1686
1686
  s.onAutoClose == null || s.onAutoClose.call(s, s), Ce();
@@ -1781,21 +1781,21 @@ const ir = (e) => {
1781
1781
  x: 0,
1782
1782
  y: 0
1783
1783
  };
1784
- const jt = (Ae) => 1 / (1.5 + Math.abs(Ae) / 20);
1784
+ const jt = (ze) => 1 / (1.5 + Math.abs(ze) / 20);
1785
1785
  if ($ === "y") {
1786
1786
  if (ge.includes("top") || ge.includes("bottom"))
1787
1787
  if (ge.includes("top") && ne < 0 || ge.includes("bottom") && ne > 0)
1788
1788
  be.y = ne;
1789
1789
  else {
1790
- const Ae = ne * jt(ne);
1791
- be.y = Math.abs(Ae) < Math.abs(ne) ? Ae : ne;
1790
+ const ze = ne * jt(ne);
1791
+ be.y = Math.abs(ze) < Math.abs(ne) ? ze : ne;
1792
1792
  }
1793
1793
  } else if ($ === "x" && (ge.includes("left") || ge.includes("right")))
1794
1794
  if (ge.includes("left") && pe < 0 || ge.includes("right") && pe > 0)
1795
1795
  be.x = pe;
1796
1796
  else {
1797
- const Ae = pe * jt(pe);
1798
- be.x = Math.abs(Ae) < Math.abs(pe) ? Ae : pe;
1797
+ const ze = pe * jt(pe);
1798
+ be.x = Math.abs(ze) < Math.abs(pe) ? ze : pe;
1799
1799
  }
1800
1800
  (Math.abs(be.x) > 0 || Math.abs(be.y) > 0) && ue(!0), (se = ke.current) == null || se.style.setProperty("--swipe-amount-x", `${be.x}px`), (fe = ke.current) == null || fe.style.setProperty("--swipe-amount-y", `${be.y}px`);
1801
1801
  }
@@ -1874,7 +1874,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1874
1874
  const { invert: n, position: a = "bottom-right", hotkey: r = [
1875
1875
  "altKey",
1876
1876
  "KeyT"
1877
- ], expand: i, closeButton: f, className: u, offset: m, mobileOffset: g, theme: s = "light", richColors: j, duration: M, style: k, visibleToasts: z = Qs, toastOptions: _, dir: R = Vt(), gap: Z = nr, icons: V, containerAriaLabel: J = "Notifications" } = t, [Y, W] = p.useState([]), L = p.useMemo(() => Array.from(new Set([
1877
+ ], expand: i, closeButton: f, className: u, offset: m, mobileOffset: g, theme: s = "light", richColors: j, duration: M, style: k, visibleToasts: D = Qs, toastOptions: _, dir: R = Vt(), gap: Z = nr, icons: V, containerAriaLabel: J = "Notifications" } = t, [Y, W] = p.useState([]), L = p.useMemo(() => Array.from(new Set([
1878
1878
  a
1879
1879
  ].concat(Y.filter((N) => N.position).map((N) => N.position)))), [
1880
1880
  Y,
@@ -1882,7 +1882,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1882
1882
  ]), [y, F] = p.useState([]), [q, E] = p.useState(!1), [K, re] = p.useState(!1), [C, h] = p.useState(s !== "system" ? s : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), d = p.useRef(null), b = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), c = p.useRef(null), $ = p.useRef(!1), I = p.useCallback((N) => {
1883
1883
  W((T) => {
1884
1884
  var x;
1885
- return (x = T.find((D) => D.id === N.id)) != null && x.delete || ce.dismiss(N.id), T.filter(({ id: D }) => D !== N.id);
1885
+ return (x = T.find((A) => A.id === N.id)) != null && x.delete || ce.dismiss(N.id), T.filter(({ id: A }) => A !== N.id);
1886
1886
  });
1887
1887
  }, []);
1888
1888
  return p.useEffect(() => ce.subscribe((N) => {
@@ -1896,9 +1896,9 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1896
1896
  return;
1897
1897
  }
1898
1898
  setTimeout(() => {
1899
- Do.flushSync(() => {
1899
+ Ao.flushSync(() => {
1900
1900
  W((T) => {
1901
- const x = T.findIndex((D) => D.id === N.id);
1901
+ const x = T.findIndex((A) => A.id === N.id);
1902
1902
  return x !== -1 ? [
1903
1903
  ...T.slice(0, x),
1904
1904
  {
@@ -1930,8 +1930,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1930
1930
  N.addListener(({ matches: x }) => {
1931
1931
  try {
1932
1932
  h(x ? "dark" : "light");
1933
- } catch (D) {
1934
- console.error(D);
1933
+ } catch (A) {
1934
+ console.error(A);
1935
1935
  }
1936
1936
  });
1937
1937
  }
@@ -1973,7 +1973,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1973
1973
  suppressHydrationWarning: !0
1974
1974
  }, L.map((N, T) => {
1975
1975
  var x;
1976
- const [D, G] = N.split("-");
1976
+ const [A, G] = N.split("-");
1977
1977
  return Y.length ? /* @__PURE__ */ p.createElement("ol", {
1978
1978
  key: N,
1979
1979
  dir: R === "auto" ? Vt() : R,
@@ -1982,7 +1982,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
1982
1982
  className: u,
1983
1983
  "data-sonner-toaster": !0,
1984
1984
  "data-sonner-theme": C,
1985
- "data-y-position": D,
1985
+ "data-y-position": A,
1986
1986
  "data-x-position": G,
1987
1987
  style: {
1988
1988
  "--front-toast-height": `${((x = y[0]) == null ? void 0 : x.height) || 0}px`,
@@ -2021,7 +2021,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2021
2021
  className: _ == null ? void 0 : _.className,
2022
2022
  descriptionClassName: _ == null ? void 0 : _.descriptionClassName,
2023
2023
  invert: n,
2024
- visibleToasts: z,
2024
+ visibleToasts: D,
2025
2025
  closeButton: (te = _ == null ? void 0 : _.closeButton) != null ? te : f,
2026
2026
  interacting: K,
2027
2027
  position: N,
@@ -2042,7 +2042,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2042
2042
  });
2043
2043
  })) : null;
2044
2044
  }));
2045
- }), Di = (e) => /* @__PURE__ */ l(
2045
+ }), Ai = (e) => /* @__PURE__ */ l(
2046
2046
  cr,
2047
2047
  {
2048
2048
  position: "bottom-right",
@@ -2062,9 +2062,9 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2062
2062
  successIcon: gr,
2063
2063
  content: br,
2064
2064
  closeBtn: _r
2065
- }, zi = {
2065
+ }, Di = {
2066
2066
  default(e) {
2067
- Se.custom((t) => /* @__PURE__ */ A("div", { className: `${Q.customToast} ${Q.default}`, children: [
2067
+ Se.custom((t) => /* @__PURE__ */ z("div", { className: `${Q.customToast} ${Q.default}`, children: [
2068
2068
  /* @__PURE__ */ l("div", { className: Q.content, children: e }),
2069
2069
  /* @__PURE__ */ l(
2070
2070
  Je,
@@ -2077,8 +2077,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2077
2077
  ] }));
2078
2078
  },
2079
2079
  warning(e) {
2080
- Se.custom((t) => /* @__PURE__ */ A("div", { className: `${Q.customToast} ${Q.warning}`, children: [
2081
- /* @__PURE__ */ A("div", { className: Q.content, children: [
2080
+ Se.custom((t) => /* @__PURE__ */ z("div", { className: `${Q.customToast} ${Q.warning}`, children: [
2081
+ /* @__PURE__ */ z("div", { className: Q.content, children: [
2082
2082
  /* @__PURE__ */ l(no, { className: Q.warningIcon }),
2083
2083
  e
2084
2084
  ] }),
@@ -2093,8 +2093,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2093
2093
  ] }));
2094
2094
  },
2095
2095
  error(e) {
2096
- Se.custom((t) => /* @__PURE__ */ A("div", { className: `${Q.customToast} ${Q.error}`, children: [
2097
- /* @__PURE__ */ A("div", { className: Q.content, children: [
2096
+ Se.custom((t) => /* @__PURE__ */ z("div", { className: `${Q.customToast} ${Q.error}`, children: [
2097
+ /* @__PURE__ */ z("div", { className: Q.content, children: [
2098
2098
  /* @__PURE__ */ l(oo, { className: Q.criticalIcon }),
2099
2099
  e
2100
2100
  ] }),
@@ -2109,8 +2109,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2109
2109
  ] }));
2110
2110
  },
2111
2111
  success(e) {
2112
- Se.custom((t) => /* @__PURE__ */ A("div", { className: `${Q.customToast} ${Q.success}`, children: [
2113
- /* @__PURE__ */ A("div", { className: Q.content, children: [
2112
+ Se.custom((t) => /* @__PURE__ */ z("div", { className: `${Q.customToast} ${Q.success}`, children: [
2113
+ /* @__PURE__ */ z("div", { className: Q.content, children: [
2114
2114
  /* @__PURE__ */ l(vn, { className: Q.successIcon }),
2115
2115
  e
2116
2116
  ] }),
@@ -2127,14 +2127,14 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2127
2127
  show(e, t = "default") {
2128
2128
  return t === "error" ? this.error(e) : t === "warning" ? this.warning(e) : this.default(e);
2129
2129
  }
2130
- }, yr = "_modalLayout_1hm32_29", vr = "_modalContainer_1hm32_40", wr = "_lg_1hm32_50", xr = "_md_1hm32_53", kr = "_sm_1hm32_56", $r = "_slideUp_1hm32_1", Nr = "_header_1hm32_73", Cr = "_title_1hm32_82", Mr = "_close_1hm32_87", Sr = "_content_1hm32_97", Ir = "_section_1hm32_100", Tr = "_footer_1hm32_108", Er = "_primaryButton_1hm32_138", Ar = "_critical_1hm32_151", Dr = "_warning_1hm32_155", le = {
2131
- "shadow-0": "_shadow-0_1hm32_1",
2132
- "shadow-100": "_shadow-100_1hm32_5",
2133
- "shadow-200": "_shadow-200_1hm32_9",
2134
- "shadow-300": "_shadow-300_1hm32_13",
2135
- "shadow-400": "_shadow-400_1hm32_17",
2136
- "shadow-500": "_shadow-500_1hm32_21",
2137
- "shadow-600": "_shadow-600_1hm32_25",
2130
+ }, yr = "_modalLayout_17u5z_29", vr = "_modalContainer_17u5z_40", wr = "_lg_17u5z_50", xr = "_md_17u5z_53", kr = "_sm_17u5z_56", $r = "_slideUp_17u5z_1", Nr = "_header_17u5z_73", Cr = "_title_17u5z_82", Mr = "_close_17u5z_87", Sr = "_content_17u5z_97", Ir = "_section_17u5z_100", Tr = "_footer_17u5z_108", Er = "_primaryButton_17u5z_138", zr = "_critical_17u5z_151", Ar = "_warning_17u5z_155", le = {
2131
+ "shadow-0": "_shadow-0_17u5z_1",
2132
+ "shadow-100": "_shadow-100_17u5z_5",
2133
+ "shadow-200": "_shadow-200_17u5z_9",
2134
+ "shadow-300": "_shadow-300_17u5z_13",
2135
+ "shadow-400": "_shadow-400_17u5z_17",
2136
+ "shadow-500": "_shadow-500_17u5z_21",
2137
+ "shadow-600": "_shadow-600_17u5z_25",
2138
2138
  modalLayout: yr,
2139
2139
  modalContainer: vr,
2140
2140
  lg: wr,
@@ -2147,12 +2147,12 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2147
2147
  content: Sr,
2148
2148
  section: Ir,
2149
2149
  footer: Tr,
2150
- "tone-critical": "_tone-critical_1hm32_134",
2150
+ "tone-critical": "_tone-critical_17u5z_134",
2151
2151
  primaryButton: Er,
2152
- "tone-warning": "_tone-warning_1hm32_142",
2153
- critical: Ar,
2154
- warning: Dr
2155
- }, zr = ({
2152
+ "tone-warning": "_tone-warning_17u5z_142",
2153
+ critical: zr,
2154
+ warning: Ar
2155
+ }, Dr = ({
2156
2156
  open: e,
2157
2157
  onClose: t,
2158
2158
  title: o,
@@ -2165,8 +2165,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2165
2165
  }) => {
2166
2166
  if (!e) return null;
2167
2167
  const m = le[`tone-${r}`] || "";
2168
- return zo(
2169
- /* @__PURE__ */ l("div", { className: le.modalLayout, children: /* @__PURE__ */ A(
2168
+ return Do(
2169
+ /* @__PURE__ */ l("div", { className: le.modalLayout, children: /* @__PURE__ */ z(
2170
2170
  "div",
2171
2171
  {
2172
2172
  className: `${le.modalContainer} ${m} ${le[u]}`,
@@ -2175,8 +2175,8 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2175
2175
  "aria-modal": "true",
2176
2176
  "aria-labelledby": "modal-title",
2177
2177
  children: [
2178
- /* @__PURE__ */ A("div", { className: le.header, children: [
2179
- /* @__PURE__ */ A("div", { className: le.title, children: [
2178
+ /* @__PURE__ */ z("div", { className: le.header, children: [
2179
+ /* @__PURE__ */ z("div", { className: le.title, children: [
2180
2180
  r === "critical" && /* @__PURE__ */ l(oo, { className: le.critical }),
2181
2181
  r === "warning" && /* @__PURE__ */ l(no, { className: le.warning }),
2182
2182
  /* @__PURE__ */ l(de, { variant: "heading-sm", children: o })
@@ -2202,7 +2202,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2202
2202
  children: f
2203
2203
  }
2204
2204
  ),
2205
- /* @__PURE__ */ A("div", { className: le.footer, children: [
2205
+ /* @__PURE__ */ z("div", { className: le.footer, children: [
2206
2206
  a.map((g, s) => /* @__PURE__ */ l(
2207
2207
  it,
2208
2208
  {
@@ -2228,7 +2228,7 @@ const cr = /* @__PURE__ */ p.forwardRef(function(t, o) {
2228
2228
  ) }),
2229
2229
  document.body
2230
2230
  );
2231
- }, Or = ({ children: e }) => /* @__PURE__ */ l("section", { className: le.section, children: e }), kt = zr;
2231
+ }, Or = ({ children: e }) => /* @__PURE__ */ l("section", { className: le.section, children: e }), kt = Dr;
2232
2232
  kt.Section = Or;
2233
2233
  function ht(e) {
2234
2234
  const t = document.createElement("div");
@@ -2283,8 +2283,8 @@ const Oi = {
2283
2283
  isStretched: n = !0
2284
2284
  }) => {
2285
2285
  var a;
2286
- return /* @__PURE__ */ A("div", { children: [
2287
- /* @__PURE__ */ l("div", { className: Ye.topBar, children: e.map((r) => /* @__PURE__ */ A(
2286
+ return /* @__PURE__ */ z("div", { children: [
2287
+ /* @__PURE__ */ l("div", { className: Ye.topBar, children: e.map((r) => /* @__PURE__ */ z(
2288
2288
  "div",
2289
2289
  {
2290
2290
  className: S(
@@ -2324,7 +2324,7 @@ const Oi = {
2324
2324
  activeTab: o,
2325
2325
  onTabSelect: n,
2326
2326
  isStretched: a
2327
- }) => /* @__PURE__ */ A(Ut, { children: [
2327
+ }) => /* @__PURE__ */ z(Ut, { children: [
2328
2328
  /* @__PURE__ */ l("header", { className: Wr.pageHeader, children: /* @__PURE__ */ l(de, { variant: "heading-xl", children: e }) }),
2329
2329
  t && n && /* @__PURE__ */ l(
2330
2330
  Vr,
@@ -2374,7 +2374,7 @@ const Oi = {
2374
2374
  i(m);
2375
2375
  }
2376
2376
  };
2377
- return /* @__PURE__ */ A("div", { className: ve.formItem, children: [
2377
+ return /* @__PURE__ */ z("div", { className: ve.formItem, children: [
2378
2378
  /* @__PURE__ */ l(
2379
2379
  "input",
2380
2380
  {
@@ -2386,7 +2386,7 @@ const Oi = {
2386
2386
  ...f
2387
2387
  }
2388
2388
  ),
2389
- /* @__PURE__ */ A("div", { className: ve.labelContainer, children: [
2389
+ /* @__PURE__ */ z("div", { className: ve.labelContainer, children: [
2390
2390
  /* @__PURE__ */ l(
2391
2391
  "div",
2392
2392
  {
@@ -2421,7 +2421,7 @@ const Oi = {
2421
2421
  container: ta,
2422
2422
  notMobile: oa,
2423
2423
  mobile: na
2424
- }, Li = ({ title: e, extra: t }) => /* @__PURE__ */ A("div", { className: bt.container, children: [
2424
+ }, Li = ({ title: e, extra: t }) => /* @__PURE__ */ z("div", { className: bt.container, children: [
2425
2425
  /* @__PURE__ */ l(
2426
2426
  de,
2427
2427
  {
@@ -2471,7 +2471,7 @@ const Oi = {
2471
2471
  onFocus: g,
2472
2472
  onBlur: s
2473
2473
  }, j) => {
2474
- const [M, k] = xe(!1), [z, _] = xe(-1), R = ze(null), Z = ze([]), V = u.find((L) => L.value === f), J = () => {
2474
+ const [M, k] = xe(!1), [D, _] = xe(-1), R = De(null), Z = De([]), V = u.find((L) => L.value === f), J = () => {
2475
2475
  n || a || (M ? (k(!1), _(-1), s == null || s()) : (k(!0), _(V ? u.indexOf(V) : -1), g == null || g()));
2476
2476
  }, Y = (L) => {
2477
2477
  L.disabled || (m == null || m(L.value), k(!1), _(-1), s == null || s());
@@ -2484,8 +2484,8 @@ const Oi = {
2484
2484
  k(!0), _(
2485
2485
  V ? u.indexOf(V) : 0
2486
2486
  ), g == null || g();
2487
- else if (z >= 0) {
2488
- const y = u[z];
2487
+ else if (D >= 0) {
2488
+ const y = u[D];
2489
2489
  y.disabled || Y(y);
2490
2490
  }
2491
2491
  break;
@@ -2496,7 +2496,7 @@ const Oi = {
2496
2496
  if (L.preventDefault(), !M)
2497
2497
  k(!0), _(0), g == null || g();
2498
2498
  else {
2499
- const y = z < u.length - 1 ? z + 1 : 0;
2499
+ const y = D < u.length - 1 ? D + 1 : 0;
2500
2500
  _(y);
2501
2501
  }
2502
2502
  break;
@@ -2504,7 +2504,7 @@ const Oi = {
2504
2504
  if (L.preventDefault(), !M)
2505
2505
  k(!0), _(u.length - 1), g == null || g();
2506
2506
  else {
2507
- const y = z > 0 ? z - 1 : u.length - 1;
2507
+ const y = D > 0 ? D - 1 : u.length - 1;
2508
2508
  _(y);
2509
2509
  }
2510
2510
  break;
@@ -2517,10 +2517,10 @@ const Oi = {
2517
2517
  if (M)
2518
2518
  return document.addEventListener("mousedown", L), () => document.removeEventListener("mousedown", L);
2519
2519
  }, [M, s]), qe(() => {
2520
- z >= 0 && Z.current[z] && Z.current[z].scrollIntoView({
2520
+ D >= 0 && Z.current[D] && Z.current[D].scrollIntoView({
2521
2521
  block: "nearest"
2522
2522
  });
2523
- }, [z]), /* @__PURE__ */ A("div", { className: X.formItem, children: [
2523
+ }, [D]), /* @__PURE__ */ z("div", { className: X.formItem, children: [
2524
2524
  e && /* @__PURE__ */ l(
2525
2525
  "label",
2526
2526
  {
@@ -2531,7 +2531,7 @@ const Oi = {
2531
2531
  children: e
2532
2532
  }
2533
2533
  ),
2534
- /* @__PURE__ */ A(
2534
+ /* @__PURE__ */ z(
2535
2535
  "div",
2536
2536
  {
2537
2537
  ref: R,
@@ -2543,7 +2543,7 @@ const Oi = {
2543
2543
  }),
2544
2544
  onClick: J,
2545
2545
  children: [
2546
- /* @__PURE__ */ A(
2546
+ /* @__PURE__ */ z(
2547
2547
  "div",
2548
2548
  {
2549
2549
  ref: j,
@@ -2593,7 +2593,7 @@ const Oi = {
2593
2593
  ref: (F) => Z.current[y] = F,
2594
2594
  className: S(X.option, {
2595
2595
  [X.selected]: L.value === f,
2596
- [X.focused]: y === z,
2596
+ [X.focused]: y === D,
2597
2597
  [X.disabled]: L.disabled
2598
2598
  }),
2599
2599
  onClick: () => Y(L),
@@ -2683,14 +2683,14 @@ function Ta() {
2683
2683
  return n;
2684
2684
  }
2685
2685
  const It = "-", Ea = (e) => {
2686
- const t = Da(e), {
2686
+ const t = Aa(e), {
2687
2687
  conflictingClassGroups: o,
2688
2688
  conflictingClassGroupModifiers: n
2689
2689
  } = e;
2690
2690
  return {
2691
2691
  getClassGroupId: (i) => {
2692
2692
  const f = i.split(It);
2693
- return f[0] === "" && f.length !== 1 && f.shift(), lo(f, t) || Aa(i);
2693
+ return f[0] === "" && f.length !== 1 && f.shift(), lo(f, t) || za(i);
2694
2694
  },
2695
2695
  getConflictingClassGroupIds: (i, f) => {
2696
2696
  const u = o[i] || [];
@@ -2710,13 +2710,13 @@ const It = "-", Ea = (e) => {
2710
2710
  return (i = t.validators.find(({
2711
2711
  validator: f
2712
2712
  }) => f(r))) == null ? void 0 : i.classGroupId;
2713
- }, Yt = /^\[(.+)\]$/, Aa = (e) => {
2713
+ }, Yt = /^\[(.+)\]$/, za = (e) => {
2714
2714
  if (Yt.test(e)) {
2715
2715
  const t = Yt.exec(e)[1], o = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2716
2716
  if (o)
2717
2717
  return "arbitrary.." + o;
2718
2718
  }
2719
- }, Da = (e) => {
2719
+ }, Aa = (e) => {
2720
2720
  const {
2721
2721
  theme: t,
2722
2722
  classGroups: o
@@ -2735,7 +2735,7 @@ const It = "-", Ea = (e) => {
2735
2735
  return;
2736
2736
  }
2737
2737
  if (typeof a == "function") {
2738
- if (za(a)) {
2738
+ if (Da(a)) {
2739
2739
  $t(a(n), t, o, n);
2740
2740
  return;
2741
2741
  }
@@ -2757,7 +2757,7 @@ const It = "-", Ea = (e) => {
2757
2757
  validators: []
2758
2758
  }), o = o.nextPart.get(n);
2759
2759
  }), o;
2760
- }, za = (e) => e.isThemeGetter, Oa = (e) => {
2760
+ }, Da = (e) => e.isThemeGetter, Oa = (e) => {
2761
2761
  if (e < 1)
2762
2762
  return {
2763
2763
  get: () => {
@@ -2790,18 +2790,18 @@ const It = "-", Ea = (e) => {
2790
2790
  const r = [];
2791
2791
  let i = 0, f = 0, u = 0, m;
2792
2792
  for (let k = 0; k < a.length; k++) {
2793
- let z = a[k];
2793
+ let D = a[k];
2794
2794
  if (i === 0 && f === 0) {
2795
- if (z === Ct) {
2795
+ if (D === Ct) {
2796
2796
  r.push(a.slice(u, k)), u = k + Ba;
2797
2797
  continue;
2798
2798
  }
2799
- if (z === "/") {
2799
+ if (D === "/") {
2800
2800
  m = k;
2801
2801
  continue;
2802
2802
  }
2803
2803
  }
2804
- z === "[" ? i++ : z === "]" ? i-- : z === "(" ? f++ : z === ")" && f--;
2804
+ D === "[" ? i++ : D === "]" ? i-- : D === "(" ? f++ : D === ")" && f--;
2805
2805
  }
2806
2806
  const g = r.length === 0 ? a : a.substring(u), s = ja(g), j = s !== g, M = m && m > u ? m - u : void 0;
2807
2807
  return {
@@ -2859,13 +2859,13 @@ const It = "-", Ea = (e) => {
2859
2859
  modifiers: j,
2860
2860
  hasImportantModifier: M,
2861
2861
  baseClassName: k,
2862
- maybePostfixModifierPosition: z
2862
+ maybePostfixModifierPosition: D
2863
2863
  } = o(g);
2864
2864
  if (s) {
2865
2865
  u = g + (u.length > 0 ? " " + u : u);
2866
2866
  continue;
2867
2867
  }
2868
- let _ = !!z, R = n(_ ? k.substring(0, z) : k);
2868
+ let _ = !!D, R = n(_ ? k.substring(0, D) : k);
2869
2869
  if (!R) {
2870
2870
  if (!_) {
2871
2871
  u = g + (u.length > 0 ? " " + u : u);
@@ -2929,14 +2929,14 @@ const ee = (e) => {
2929
2929
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2930
2930
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2931
2931
  Ua.test(e) && !Fa.test(e)
2932
- ), fo = () => !1, Qa = (e) => Xa.test(e), ei = (e) => Ka.test(e), ti = (e) => !v(e) && !w(e), oi = (e) => Ge(e, go, fo), v = (e) => uo.test(e), De = (e) => Ge(e, bo, Ja), yt = (e) => Ge(e, ii, B), qt = (e) => Ge(e, po, fo), ni = (e) => Ge(e, ho, ei), rt = (e) => Ge(e, _o, Qa), w = (e) => mo.test(e), Ke = (e) => Ue(e, bo), si = (e) => Ue(e, li), Gt = (e) => Ue(e, po), ri = (e) => Ue(e, go), ai = (e) => Ue(e, ho), at = (e) => Ue(e, _o, !0), Ge = (e, t, o) => {
2932
+ ), fo = () => !1, Qa = (e) => Xa.test(e), ei = (e) => Ka.test(e), ti = (e) => !v(e) && !w(e), oi = (e) => Ge(e, go, fo), v = (e) => uo.test(e), Ae = (e) => Ge(e, bo, Ja), yt = (e) => Ge(e, ii, B), qt = (e) => Ge(e, po, fo), ni = (e) => Ge(e, ho, ei), rt = (e) => Ge(e, _o, Qa), w = (e) => mo.test(e), Ke = (e) => Ue(e, bo), si = (e) => Ue(e, li), Gt = (e) => Ue(e, po), ri = (e) => Ue(e, go), ai = (e) => Ue(e, ho), at = (e) => Ue(e, _o, !0), Ge = (e, t, o) => {
2933
2933
  const n = uo.exec(e);
2934
2934
  return n ? n[1] ? t(n[1]) : o(n[2]) : !1;
2935
2935
  }, Ue = (e, t, o = !1) => {
2936
2936
  const n = mo.exec(e);
2937
2937
  return n ? n[1] ? t(n[1]) : o : !1;
2938
2938
  }, po = (e) => e === "position" || e === "percentage", ho = (e) => e === "image" || e === "url", go = (e) => e === "length" || e === "size" || e === "bg-size", bo = (e) => e === "length", ii = (e) => e === "number", li = (e) => e === "family-name", _o = (e) => e === "shadow", ci = () => {
2939
- const e = ee("color"), t = ee("font"), o = ee("text"), n = ee("font-weight"), a = ee("tracking"), r = ee("leading"), i = ee("breakpoint"), f = ee("container"), u = ee("spacing"), m = ee("radius"), g = ee("shadow"), s = ee("inset-shadow"), j = ee("text-shadow"), M = ee("drop-shadow"), k = ee("blur"), z = ee("perspective"), _ = ee("aspect"), R = ee("ease"), Z = ee("animate"), V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], J = () => [
2939
+ const e = ee("color"), t = ee("font"), o = ee("text"), n = ee("font-weight"), a = ee("tracking"), r = ee("leading"), i = ee("breakpoint"), f = ee("container"), u = ee("spacing"), m = ee("radius"), g = ee("shadow"), s = ee("inset-shadow"), j = ee("text-shadow"), M = ee("drop-shadow"), k = ee("blur"), D = ee("perspective"), _ = ee("aspect"), R = ee("ease"), Z = ee("animate"), V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], J = () => [
2940
2940
  "center",
2941
2941
  "top",
2942
2942
  "bottom",
@@ -2962,7 +2962,7 @@ const ee = (e) => {
2962
2962
  repeat: ["", "x", "y", "space", "round"]
2963
2963
  }], N = () => ["auto", "cover", "contain", ri, oi, {
2964
2964
  size: [w, v]
2965
- }], T = () => [_t, Ke, De], x = () => [
2965
+ }], T = () => [_t, Ke, Ae], x = () => [
2966
2966
  // Deprecated since Tailwind CSS v4.0.0
2967
2967
  "",
2968
2968
  "none",
@@ -2970,7 +2970,7 @@ const ee = (e) => {
2970
2970
  m,
2971
2971
  w,
2972
2972
  v
2973
- ], D = () => ["", B, Ke, De], G = () => ["solid", "dashed", "dotted", "double"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [B, _t, Gt, qt], ae = () => [
2973
+ ], A = () => ["", B, Ke, Ae], G = () => ["solid", "dashed", "dotted", "double"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [B, _t, Gt, qt], ae = () => [
2974
2974
  // Deprecated since Tailwind CSS v4.0.0
2975
2975
  "",
2976
2976
  "none",
@@ -3670,7 +3670,7 @@ const ee = (e) => {
3670
3670
  * @see https://tailwindcss.com/docs/font-size
3671
3671
  */
3672
3672
  "font-size": [{
3673
- text: ["base", o, Ke, De]
3673
+ text: ["base", o, Ke, Ae]
3674
3674
  }],
3675
3675
  /**
3676
3676
  * Font Smoothing
@@ -3818,7 +3818,7 @@ const ee = (e) => {
3818
3818
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3819
3819
  */
3820
3820
  "text-decoration-thickness": [{
3821
- decoration: [B, "from-font", "auto", w, De]
3821
+ decoration: [B, "from-font", "auto", w, Ae]
3822
3822
  }],
3823
3823
  /**
3824
3824
  * Text Decoration Color
@@ -4120,70 +4120,70 @@ const ee = (e) => {
4120
4120
  * @see https://tailwindcss.com/docs/border-width
4121
4121
  */
4122
4122
  "border-w": [{
4123
- border: D()
4123
+ border: A()
4124
4124
  }],
4125
4125
  /**
4126
4126
  * Border Width X
4127
4127
  * @see https://tailwindcss.com/docs/border-width
4128
4128
  */
4129
4129
  "border-w-x": [{
4130
- "border-x": D()
4130
+ "border-x": A()
4131
4131
  }],
4132
4132
  /**
4133
4133
  * Border Width Y
4134
4134
  * @see https://tailwindcss.com/docs/border-width
4135
4135
  */
4136
4136
  "border-w-y": [{
4137
- "border-y": D()
4137
+ "border-y": A()
4138
4138
  }],
4139
4139
  /**
4140
4140
  * Border Width Start
4141
4141
  * @see https://tailwindcss.com/docs/border-width
4142
4142
  */
4143
4143
  "border-w-s": [{
4144
- "border-s": D()
4144
+ "border-s": A()
4145
4145
  }],
4146
4146
  /**
4147
4147
  * Border Width End
4148
4148
  * @see https://tailwindcss.com/docs/border-width
4149
4149
  */
4150
4150
  "border-w-e": [{
4151
- "border-e": D()
4151
+ "border-e": A()
4152
4152
  }],
4153
4153
  /**
4154
4154
  * Border Width Top
4155
4155
  * @see https://tailwindcss.com/docs/border-width
4156
4156
  */
4157
4157
  "border-w-t": [{
4158
- "border-t": D()
4158
+ "border-t": A()
4159
4159
  }],
4160
4160
  /**
4161
4161
  * Border Width Right
4162
4162
  * @see https://tailwindcss.com/docs/border-width
4163
4163
  */
4164
4164
  "border-w-r": [{
4165
- "border-r": D()
4165
+ "border-r": A()
4166
4166
  }],
4167
4167
  /**
4168
4168
  * Border Width Bottom
4169
4169
  * @see https://tailwindcss.com/docs/border-width
4170
4170
  */
4171
4171
  "border-w-b": [{
4172
- "border-b": D()
4172
+ "border-b": A()
4173
4173
  }],
4174
4174
  /**
4175
4175
  * Border Width Left
4176
4176
  * @see https://tailwindcss.com/docs/border-width
4177
4177
  */
4178
4178
  "border-w-l": [{
4179
- "border-l": D()
4179
+ "border-l": A()
4180
4180
  }],
4181
4181
  /**
4182
4182
  * Divide Width X
4183
4183
  * @see https://tailwindcss.com/docs/border-width#between-children
4184
4184
  */
4185
4185
  "divide-x": [{
4186
- "divide-x": D()
4186
+ "divide-x": A()
4187
4187
  }],
4188
4188
  /**
4189
4189
  * Divide Width X Reverse
@@ -4195,7 +4195,7 @@ const ee = (e) => {
4195
4195
  * @see https://tailwindcss.com/docs/border-width#between-children
4196
4196
  */
4197
4197
  "divide-y": [{
4198
- "divide-y": D()
4198
+ "divide-y": A()
4199
4199
  }],
4200
4200
  /**
4201
4201
  * Divide Width Y Reverse
@@ -4305,7 +4305,7 @@ const ee = (e) => {
4305
4305
  * @see https://tailwindcss.com/docs/outline-width
4306
4306
  */
4307
4307
  "outline-w": [{
4308
- outline: ["", B, Ke, De]
4308
+ outline: ["", B, Ke, Ae]
4309
4309
  }],
4310
4310
  /**
4311
4311
  * Outline Color
@@ -4357,7 +4357,7 @@ const ee = (e) => {
4357
4357
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
4358
4358
  */
4359
4359
  "ring-w": [{
4360
- ring: D()
4360
+ ring: A()
4361
4361
  }],
4362
4362
  /**
4363
4363
  * Ring Width Inset
@@ -4380,7 +4380,7 @@ const ee = (e) => {
4380
4380
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4381
4381
  */
4382
4382
  "ring-offset-w": [{
4383
- "ring-offset": [B, De]
4383
+ "ring-offset": [B, Ae]
4384
4384
  }],
4385
4385
  /**
4386
4386
  * Ring Offset Color
@@ -4396,7 +4396,7 @@ const ee = (e) => {
4396
4396
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
4397
4397
  */
4398
4398
  "inset-ring-w": [{
4399
- "inset-ring": D()
4399
+ "inset-ring": A()
4400
4400
  }],
4401
4401
  /**
4402
4402
  * Inset Ring Color
@@ -4910,7 +4910,7 @@ const ee = (e) => {
4910
4910
  * @see https://tailwindcss.com/docs/perspective
4911
4911
  */
4912
4912
  perspective: [{
4913
- perspective: [z, w, v]
4913
+ perspective: [D, w, v]
4914
4914
  }],
4915
4915
  /**
4916
4916
  * Perspective Origin
@@ -5330,7 +5330,7 @@ const ee = (e) => {
5330
5330
  * @see https://tailwindcss.com/docs/stroke-width
5331
5331
  */
5332
5332
  "stroke-w": [{
5333
- stroke: [B, Ke, De, yt]
5333
+ stroke: [B, Ke, Ae, yt]
5334
5334
  }],
5335
5335
  /**
5336
5336
  * Stroke
@@ -5596,20 +5596,20 @@ const Wi = (e) => /* @__PURE__ */ l(
5596
5596
  className: f,
5597
5597
  tooltipClassName: u
5598
5598
  }) => {
5599
- const [m, g] = xe(!1), [s, j] = xe(n), M = ze(null), k = ze(!1), z = ze(null), _ = e !== void 0 ? e : m, R = r === "hover" || r === "both", Z = r === "click" || r === "both", V = Ao(), J = vt[`tooltip-position-${s}`] || "", Y = S(vt.tooltipWrapper, f), W = S(
5599
+ const [m, g] = xe(!1), [s, j] = xe(n), M = De(null), k = De(!1), D = De(null), _ = e !== void 0 ? e : m, R = r === "hover" || r === "both", Z = r === "click" || r === "both", V = zo(), J = vt[`tooltip-position-${s}`] || "", Y = S(vt.tooltipWrapper, f), W = S(
5600
5600
  vt.tooltip,
5601
5601
  J,
5602
5602
  u
5603
5603
  );
5604
- return /* @__PURE__ */ A(
5604
+ return /* @__PURE__ */ z(
5605
5605
  "span",
5606
5606
  {
5607
- ref: z,
5607
+ ref: D,
5608
5608
  className: Y,
5609
5609
  onMouseEnter: () => {
5610
5610
  !R || e !== void 0 || (M.current && clearTimeout(M.current), M.current = window.setTimeout(() => {
5611
- if (n === "mostSpace" && z.current) {
5612
- const E = z.current.getBoundingClientRect(), K = E.top, re = window.innerHeight - E.bottom;
5611
+ if (n === "mostSpace" && D.current) {
5612
+ const E = D.current.getBoundingClientRect(), K = E.top, re = window.innerHeight - E.bottom;
5613
5613
  j(re >= K ? "below" : "above");
5614
5614
  } else
5615
5615
  j(n);
@@ -5623,8 +5623,8 @@ const Wi = (e) => /* @__PURE__ */ l(
5623
5623
  },
5624
5624
  onClick: () => {
5625
5625
  if (!(!Z || e !== void 0)) {
5626
- if (k.current = !k.current, n === "mostSpace" && z.current) {
5627
- const E = z.current.getBoundingClientRect(), K = E.top, re = window.innerHeight - E.bottom;
5626
+ if (k.current = !k.current, n === "mostSpace" && D.current) {
5627
+ const E = D.current.getBoundingClientRect(), K = E.top, re = window.innerHeight - E.bottom;
5628
5628
  j(re >= K ? "below" : "above");
5629
5629
  } else
5630
5630
  j(n);
@@ -5668,13 +5668,13 @@ const Wi = (e) => /* @__PURE__ */ l(
5668
5668
  rows: s = 4,
5669
5669
  ...j
5670
5670
  }, M) => {
5671
- const k = m !== void 0, [z, _] = xe(
5671
+ const k = m !== void 0, [D, _] = xe(
5672
5672
  (g == null ? void 0 : g.toString()) || ""
5673
5673
  );
5674
5674
  qe(() => {
5675
5675
  !k && g !== void 0 && _(g.toString());
5676
5676
  }, [g]);
5677
- const R = k ? m : z, Z = (V) => {
5677
+ const R = k ? m : D, Z = (V) => {
5678
5678
  const J = V.target.value;
5679
5679
  k || _(J), u == null || u(V);
5680
5680
  };
@@ -5713,8 +5713,8 @@ export {
5713
5713
  Ii as Checkbox,
5714
5714
  Ti as Collapse,
5715
5715
  Ei as CourseCollapse,
5716
- Di as CustomToaster,
5717
- Ai as Dropdown,
5716
+ Ai as CustomToaster,
5717
+ zi as Dropdown,
5718
5718
  Be as Empty,
5719
5719
  St as FormItem,
5720
5720
  Je as IconButton,
@@ -5739,6 +5739,6 @@ export {
5739
5739
  Ui as Tooltip,
5740
5740
  Vr as TopBar,
5741
5741
  de as Typography,
5742
- zi as message
5742
+ Di as message
5743
5743
  };
5744
5744
  //# sourceMappingURL=stp-ui-kit.es.js.map